:root {
  --ink: #070914;
  --ink-soft: #0c1020;
  --blue: #182b4b;
  --blue-bright: #294c78;
  --pink: #dfa0c5;
  --pink-hot: #ff7896;
  --red: #ff455d;
  --paper: #e9e5e8;
  --white: #fffafd;
  --muted: #9997a7;
  --line: rgba(255, 255, 255, 0.14);
  --page-pad: clamp(20px, 5vw, 76px);
  --mono: "Cascadia Code", "IBM Plex Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--white);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 72px;
  padding: 0 var(--page-pad);
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(5,7,15,.92), rgba(5,7,15,.5));
  backdrop-filter: blur(14px);
}

.header-brands { display: flex; gap: 12px; align-items: center; }
.ktune-home { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 50%; transition: transform .2s, filter .2s; }
.ktune-home img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ktune-home:hover, .ktune-home:focus-visible { transform: translateY(-2px); filter: brightness(1.12); }
.brand { display: flex; gap: 12px; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); color: var(--pink); font-size: 16px; }
.global-nav { display: flex; gap: clamp(18px, 3vw, 42px); }
.global-nav a { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.global-nav a span { margin-right: 6px; color: var(--pink); }
.menu-button { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
.menu-button span { display: block; width: 16px; height: 1px; margin: 5px auto; background: white; transition: transform .2s; }

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: 128px var(--page-pad) 76px;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}
.hero-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; image-rendering: pixelated; transform: scale(1.02); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,7,15,.98) 0%, rgba(5,7,15,.8) 42%, rgba(5,7,15,.2) 72%), linear-gradient(0deg, rgba(5,7,15,.92), transparent 56%); }
.scanlines { position: absolute; inset: 0; opacity: .12; pointer-events: none; background: repeating-linear-gradient(0deg, transparent 0 3px, #000 3px 4px); mix-blend-mode: multiply; }
.hero-copy { position: relative; z-index: 3; width: min(650px, 52vw); }
.system-label, .eyebrow { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.system-label { display: flex; margin: 0 0 28px; align-items: center; gap: 10px; color: #d0ccd2; }
.system-label span { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 16px var(--red); animation: pulse 1.7s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.title-logo { display: block; width: min(620px, 100%); height: auto; image-rendering: pixelated; filter: invert(1); mix-blend-mode: screen; }
.hero-lead { margin: 36px 0 12px; font-size: clamp(28px, 3.5vw, 54px); font-weight: 700; line-height: 1.35; letter-spacing: -.04em; }
.hero-description { max-width: 580px; color: #c6c3cb; font-size: 15px; line-height: 2; }
.hero-actions { display: flex; margin-top: 34px; gap: 12px; flex-wrap: wrap; }
.button { display: inline-flex; min-height: 54px; padding: 0 26px; align-items: center; justify-content: center; gap: 20px; border: 1px solid var(--line); border-radius: 4px; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: transform .2s, border-color .2s, background .2s; }
.button:hover, .button:focus-visible { transform: translateY(-3px); border-color: rgba(255,255,255,.5); }
.button-primary { background: var(--white); color: var(--ink); }
.button-ghost { background: rgba(10,12,24,.45); backdrop-filter: blur(8px); }
.hero-meta { display: flex; margin: 34px 0 0; padding: 0; gap: 10px; list-style: none; flex-wrap: wrap; }
.hero-meta li { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: #c8c5cd; font-family: var(--mono); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.hero-code { position: absolute; z-index: 2; right: 28px; bottom: 28px; color: rgba(255,255,255,.4); font-family: var(--mono); font-size: 8px; letter-spacing: .15em; }
.scroll-cue { position: absolute; z-index: 4; bottom: 28px; left: 50%; display: flex; flex-direction: column; align-items: center; gap: 10px; color: rgba(255,255,255,.6); font-family: var(--mono); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; transform: translateX(-50%); }
.scroll-cue i { display: block; width: 1px; height: 36px; background: linear-gradient(white, transparent); }

.story-section { padding: 150px var(--page-pad); background: var(--paper); color: var(--ink); }
.section-index { display: flex; max-width: 1440px; margin: 0 auto 90px; justify-content: space-between; border-bottom: 1px solid rgba(7,9,20,.2); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.section-index span { color: #8a617a; }
.story-grid { display: grid; max-width: 1440px; margin: 0 auto; grid-template-columns: 1.2fr .8fr; gap: clamp(50px, 8vw, 130px); }
.eyebrow { margin: 0 0 22px; color: #89697b; }
.story-heading h2 { margin: 0; font-size: clamp(54px, 7vw, 110px); line-height: 1.05; letter-spacing: -.07em; }
.story-heading h2 em { color: #b26992; font-style: normal; }
.story-copy { padding-top: 45px; }
.story-copy > p { margin: 0 0 24px; color: #45424a; font-size: 15px; line-height: 2.2; }
.spec-list { margin: 52px 0 0; border-top: 1px solid rgba(7,9,20,.18); }
.spec-list div { display: grid; padding: 16px 0; grid-template-columns: 110px 1fr; border-bottom: 1px solid rgba(7,9,20,.18); }
.spec-list dt { color: #857d84; font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.spec-list dd { margin: 0; font-family: var(--mono); font-size: 11px; }

.luna-panel { position: relative; display: grid; max-width: 1440px; min-height: 700px; margin: 140px auto 0; overflow: hidden; grid-template-columns: .8fr 1.2fr; border-radius: 8px; background: var(--ink); color: var(--white); }
.luna-panel::before { content: ""; position: absolute; inset: 0; opacity: .25; background: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 64px 64px; }
.luna-copy { position: relative; z-index: 2; padding: clamp(50px, 7vw, 110px); align-self: center; }
.luna-copy h3 { margin: 0 0 20px; font-family: var(--mono); font-size: clamp(70px, 10vw, 150px); letter-spacing: -.08em; }
.luna-copy > p:not(.eyebrow) { max-width: 440px; color: #c7c3cc; line-height: 2; }
.luna-copy > span { display: block; margin-top: 36px; color: #817d89; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.luna-visual { position: relative; min-height: 700px; }
.luna-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink), transparent 35%); }
.luna-visual img { position: absolute; right: 1%; bottom: -10%; width: min(78%, 650px); max-height: 112%; object-fit: contain; filter: drop-shadow(0 20px 65px rgba(0,0,0,.75)); }

.movie-section { display: grid; padding: 150px var(--page-pad); grid-template-columns: .55fr 1.45fr; gap: clamp(40px, 7vw, 110px); background: #090c18; }
.movie-heading h2 { margin: 0; font-family: var(--mono); font-size: clamp(64px, 8vw, 130px); line-height: .88; letter-spacing: -.08em; }
.movie-heading > p:last-child { margin-top: 36px; color: var(--muted); }
.video-shell { align-self: center; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #03040a; box-shadow: 0 36px 100px rgba(0,0,0,.45); }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-footer { display: flex; min-height: 62px; padding: 0 22px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.video-footer span { color: var(--muted); }

.wanted-section { padding: 150px var(--page-pad); background: #d9c4d0; color: var(--ink); }
.wanted-intro { display: grid; max-width: 1440px; margin: 0 auto 100px; grid-template-columns: 1fr 1fr; column-gap: 70px; }
.wanted-intro .eyebrow { grid-column: 1 / -1; }
.wanted-intro h2 { margin: 0; font-family: var(--mono); font-size: clamp(72px, 11vw, 180px); line-height: .78; letter-spacing: -.1em; }
.wanted-intro h2 span { color: #a34f78; }
.wanted-message { max-width: 530px; align-self: end; }
.wanted-message p { line-height: 2; }
.wanted-message strong { display: inline-block; padding: 8px 12px; background: var(--ink); color: var(--white); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; }
.role-grid { display: grid; max-width: 1440px; margin: 0 auto; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(7,9,20,.22); border-left: 1px solid rgba(7,9,20,.22); }
.role-card { min-height: 260px; padding: 30px; border-right: 1px solid rgba(7,9,20,.22); border-bottom: 1px solid rgba(7,9,20,.22); transition: background .2s, color .2s; }
.role-card:hover { background: var(--ink); color: var(--white); }
.role-card span { color: #85566f; font-family: var(--mono); font-size: 9px; }
.role-card h3 { margin: 70px 0 14px; font-family: var(--mono); font-size: clamp(24px, 3vw, 42px); letter-spacing: -.06em; }
.role-card p { margin: 0; color: #5a4d54; font-size: 13px; line-height: 1.8; }
.role-card:hover p { color: #c9c4cb; }
.role-card-wide { grid-column: span 3; min-height: 210px; }
.role-card-wide h3 { margin-top: 46px; }

.community-section { position: relative; display: grid; min-height: 760px; padding: 140px var(--page-pad); overflow: hidden; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 60px; background: radial-gradient(circle at 75% 45%, #233661, transparent 35%), var(--ink); }
.community-noise { position: absolute; inset: 0; opacity: .16; background-image: url("assets/images/tile.png"); image-rendering: pixelated; mix-blend-mode: screen; }
.community-copy { position: relative; z-index: 2; max-width: 760px; }
.community-copy h2 { margin: 0 0 36px; font-size: clamp(54px, 7vw, 105px); line-height: 1.05; letter-spacing: -.07em; }
.community-copy > p { max-width: 680px; color: #c3c0c9; line-height: 2; }
.button-discord { margin-top: 30px; background: #5865f2; border-color: #7781ff; }
.community-copy small { display: block; margin-top: 18px; color: #827f8b; font-size: 10px; line-height: 1.8; }
.community-signal { position: relative; z-index: 2; display: flex; min-height: 370px; padding: 44px; flex-direction: column; justify-content: center; border: 1px solid var(--line); background: rgba(8,11,24,.6); backdrop-filter: blur(10px); }
.community-signal span { color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .16em; }
.community-signal strong { margin-top: 18px; font-family: var(--mono); font-size: clamp(64px, 9vw, 130px); letter-spacing: -.09em; }
.community-signal i { display: block; width: 12px; height: 12px; margin-top: 30px; border-radius: 50%; background: #56f38c; box-shadow: 0 0 24px #56f38c; animation: pulse 1.7s infinite; }

.site-footer { display: grid; padding: 32px var(--page-pad); grid-template-columns: 1fr auto auto auto; align-items: center; gap: 28px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }
.site-footer > a { color: var(--white); }
.site-footer p { margin: 0; }
.site-footer div { display: flex; gap: 18px; }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .hero-copy { width: min(720px, 75vw); }
  .story-grid, .movie-section, .community-section { grid-template-columns: 1fr; }
  .movie-heading h2 { font-size: clamp(64px, 14vw, 110px); }
  .wanted-intro { grid-template-columns: 1fr; row-gap: 52px; }
  .wanted-message { align-self: auto; }
  .role-grid { grid-template-columns: repeat(2, 1fr); }
  .role-card-wide { grid-column: span 2; }
  .luna-panel { grid-template-columns: 1fr 1fr; }
  .site-footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .site-header { height: 60px; }
  .menu-button { display: block; position: relative; z-index: 102; }
  .global-nav { position: fixed; inset: 0; display: flex; padding: 120px 28px 40px; flex-direction: column; gap: 0; background: rgba(5,7,15,.98); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
  .global-nav a { padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 22px; }
  .global-nav.is-open { opacity: 1; visibility: visible; }
  .menu-button[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

  .hero { min-height: 920px; padding-top: 110px; align-items: start; }
  .hero-background { object-position: center; }
  .hero-shade { background: linear-gradient(0deg, rgba(5,7,15,.98) 0%, rgba(5,7,15,.74) 58%, rgba(5,7,15,.18) 100%); }
  .hero-copy { width: 100%; }
  .title-logo { width: 100%; }
  .hero-lead { margin-top: 330px; font-size: 30px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .hero-code, .scroll-cue { display: none; }

  .story-section, .movie-section, .wanted-section, .community-section { padding: 100px var(--page-pad); }
  .section-index { margin-bottom: 58px; }
  .story-heading h2 { font-size: clamp(48px, 15vw, 70px); }
  .story-copy { padding-top: 10px; }
  .luna-panel { min-height: 900px; margin-top: 90px; grid-template-columns: 1fr; }
  .luna-copy { padding: 44px 26px; }
  .luna-visual { min-height: 520px; }
  .luna-visual::after { background: linear-gradient(0deg, transparent 70%, var(--ink)); }
  .luna-visual img { right: -13%; bottom: -7%; width: 100%; max-height: 105%; }
  .movie-section { gap: 48px; }
  .video-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; }
  .wanted-intro { margin-bottom: 70px; }
  .wanted-intro h2 { font-size: clamp(68px, 22vw, 105px); }
  .role-grid { grid-template-columns: 1fr; }
  .role-card-wide { grid-column: span 1; }
  .role-card { min-height: 230px; }
  .community-section { min-height: 900px; }
  .community-copy h2 { font-size: clamp(48px, 14vw, 70px); }
  .community-signal { min-height: 260px; }
  .site-footer { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
