/* Kambit teaser. One accent (coral), one family (Outfit), one radius scale:
   surfaces 24px, interactive pills fully round. Dark by design. */
@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --deep: #0b1236;
  --navy: #1a1a2e;
  --ink: #070a1f;
  --coral: #e94560;
  --coral-hi: #f0566f;
  --coral-lo: #cf3550;
  --text: #ffffff;
  --muted: #c4cade;
  --line: rgba(255, 255, 255, 0.14);
  --field: rgba(255, 255, 255, 0.08);
  --r-surface: 24px;
  --r-pill: 999px;
  --pad: clamp(20px, 5vw, 56px);
  --max: 1240px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--deep); }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--deep);
  overflow-x: clip;
}
/* Fixed backdrop layer: reliable on iOS and in full-page captures, unlike background-attachment. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 560px at 8% -6%, rgba(233, 69, 96, 0.16), transparent 62%),
    radial-gradient(1000px 640px at 100% 0%, rgba(70, 90, 210, 0.22), transparent 60%),
    linear-gradient(180deg, var(--deep) 0%, var(--navy) 55%, var(--ink) 100%);
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: var(--r-pill); background: #fff; color: var(--ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--coral-hi); outline-offset: 3px; border-radius: 8px; }

/* Nav: one line, 64px */
.nav { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding: 0 var(--pad); background: linear-gradient(180deg, rgba(11, 18, 54, 0.92), rgba(11, 18, 54, 0.6)); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand img { height: 32px; width: auto; }
.nav-link { text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 8px 18px; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: var(--r-pill); white-space: nowrap; transition: background 0.2s, border-color 0.2s; }
.nav-link:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }

/* Hero */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; max-width: var(--max); margin: 0 auto; padding: clamp(28px, 6vw, 64px) var(--pad) clamp(56px, 8vw, 96px); min-height: min(calc(100dvh - 64px), 820px); }
.hero::before, .hero::after { content: ""; position: absolute; top: -40px; width: 38vw; max-width: 520px; height: 78%; pointer-events: none; filter: blur(26px); opacity: 0.55; z-index: 0; clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); }
.hero::before { left: 2%; background: linear-gradient(180deg, rgba(233, 69, 96, 0.55), transparent 85%); transform: rotate(14deg); transform-origin: top center; animation: sway 14s ease-in-out infinite alternate; }
.hero::after { right: 4%; background: linear-gradient(180deg, rgba(120, 140, 255, 0.5), transparent 85%); transform: rotate(-14deg); transform-origin: top center; animation: sway 17s ease-in-out infinite alternate-reverse; }
@keyframes sway { from { transform: rotate(10deg); } to { transform: rotate(20deg); } }
.hero-copy, .stage { position: relative; z-index: 1; }
.eyebrow { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
h1 { font-size: clamp(3.2rem, 8.2vw, 6.4rem); font-weight: 800; line-height: 0.95; letter-spacing: -0.035em; }
h1 .accent { color: var(--coral); }
.lede { margin-top: 22px; max-width: 30ch; font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--muted); line-height: 1.4; }

/* Form */
.join { margin-top: 32px; max-width: 520px; }
.join label { display: block; margin-bottom: 8px; font-size: 0.95rem; font-weight: 600; color: #e6e9f5; }
.join-row { display: flex; gap: 10px; flex-wrap: wrap; }
.join input[type="email"] { flex: 1 1 220px; min-width: 0; height: 56px; padding: 0 20px; font: inherit; color: var(--text); background: var(--field); border: 1px solid rgba(255, 255, 255, 0.5); border-radius: var(--r-pill); }
.join input[type="email"]::placeholder { color: #9aa2c0; }
.join input[type="email"]:focus-visible { outline-offset: 2px; border-color: #fff; }
.join input[aria-invalid="true"] { border-color: #ff9aa9; }
.help { margin-top: 10px; font-size: 0.9rem; color: var(--muted); }
.help a { color: #fff; text-underline-offset: 3px; }
.doc .status[data-state="ok"] { font-size: 1.25rem; font-weight: 600; }
.status { min-height: 1.5em; margin-top: 8px; font-size: 0.95rem; font-weight: 500; }
.status[data-state="error"] { color: #ffb3bf; }
.status[data-state="ok"] { color: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.join.is-done .join-row, .join.is-done .help, .join.is-done label { display: none; }
.join.is-done .status { font-size: 1.25rem; font-weight: 600; margin-top: 0; }

.btn { position: relative; overflow: hidden; height: 56px; padding: 0 30px; font: inherit; font-size: 1.2rem; font-weight: 700; color: #fff; cursor: pointer; border: 0; border-radius: var(--r-pill); white-space: nowrap; background: linear-gradient(180deg, var(--coral-hi) 0%, var(--coral) 48%, var(--coral-lo) 52%, var(--coral) 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -2px 0 rgba(0, 0, 0, 0.2), 0 12px 32px rgba(233, 69, 96, 0.38); transition: transform 0.12s, box-shadow 0.2s, filter 0.2s; }
.btn::after { content: ""; position: absolute; inset: 3px 10px 52% 10px; border-radius: var(--r-pill); background: linear-gradient(rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.04)); pointer-events: none; }
.btn:hover { filter: brightness(1.06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -2px 0 rgba(0, 0, 0, 0.2), 0 14px 38px rgba(233, 69, 96, 0.5); }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn[disabled] { cursor: progress; filter: saturate(0.6) brightness(0.9); }

/* Hero visual */
.stage { margin: 0; }
.stage-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-surface); overflow: hidden; background: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 120px rgba(233, 69, 96, 0.18); }
.stage-poster, .stage-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage-video { opacity: 0; transition: opacity 0.5s; }
.stage-video.is-ready { opacity: 1; }
.sound { position: absolute; right: 14px; bottom: 14px; z-index: 2; height: 40px; padding: 0 18px; font: inherit; font-size: 0.9rem; font-weight: 600; color: #fff; cursor: pointer; background: rgba(7, 10, 31, 0.78); border: 1px solid rgba(255, 255, 255, 0.5); border-radius: var(--r-pill); backdrop-filter: blur(6px); }
.sound[hidden] { display: none; }
.float { position: absolute; width: clamp(96px, 17%, 190px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-surface); box-shadow: 0 0 0 3px var(--deep), 0 24px 50px rgba(0, 0, 0, 0.5); }
.float-a { left: -4%; bottom: -9%; transform: rotate(-5deg); }
.float-b { right: -3%; top: -9%; transform: rotate(5deg); }

/* Shared section rhythm */
.night, .bento, .own, .close { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 9vw, 120px) var(--pad); }
h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; max-width: 18ch; }
.sub { margin-top: 14px; max-width: 46ch; font-size: 1.15rem; color: var(--muted); }
h3 { font-size: 1.35rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }

/* 2. Timeline */
.night { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 34px; }
.steps::before { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; background: linear-gradient(180deg, var(--coral), rgba(233, 69, 96, 0.1)); }
.steps li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 22px; align-items: start; }
.steps .n { display: grid; place-items: center; width: 56px; height: 56px; font-size: 1.5rem; font-weight: 800; color: #fff; border-radius: var(--r-pill); background: linear-gradient(180deg, var(--coral-hi), var(--coral-lo)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 24px rgba(233, 69, 96, 0.35); }
.steps p { margin-top: 6px; color: var(--muted); max-width: 40ch; }

/* 3. Bento: 4 tiles, 7/5 then 5/7 */
.bento-title { max-width: 20ch; margin-bottom: clamp(28px, 4vw, 48px); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.tile { position: relative; overflow: hidden; border-radius: var(--r-surface); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line); }
.tile p { margin-top: 8px; color: var(--muted); max-width: 38ch; }
.tile-duet { grid-column: span 7; min-height: 360px; display: flex; align-items: flex-end; }
.tile-duet img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-duet::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(7, 10, 31, 0.92) 100%); pointer-events: none; }
.tile-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 18%, rgba(7, 10, 31, 0.78) 62%, rgba(7, 10, 31, 0.96) 100%); pointer-events: none; }
.tile .quote { margin: 0 0 auto; max-width: 11ch; font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: #fff; }
.tile-text { position: relative; z-index: 1; padding: 28px; }
.tile-challenge { grid-column: span 5; padding: 32px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 360px; background: radial-gradient(420px 260px at 85% 0%, rgba(233, 69, 96, 0.5), transparent 70%), linear-gradient(160deg, #2a1230, #160b26); }
.tile-request { grid-column: span 5; padding: 32px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 320px; background: radial-gradient(420px 260px at 10% 0%, rgba(110, 140, 255, 0.4), transparent 70%), linear-gradient(160deg, #14204a, #0d1432); }
.tile-art { grid-column: span 7; min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end; }
.art-pair { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; }
.art-pair img { width: 100%; height: 100%; object-fit: cover; }

/* 4. Statement */
.own { text-align: center; }
.own h2 { margin: 0 auto; max-width: 16ch; font-size: clamp(2.2rem, 5.6vw, 4.6rem); }
.own .sub { margin-left: auto; margin-right: auto; }

/* 5. Close */
.close { text-align: center; }
.close h2 { margin: 0 auto; }
.close .sub { margin-left: auto; margin-right: auto; }
.join-center { margin-left: auto; margin-right: auto; text-align: left; }
.close .join-row { justify-content: center; }

.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; max-width: var(--max); margin: 0 auto; padding: 28px var(--pad) 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { text-underline-offset: 3px; }
.foot a:hover { color: #fff; }

/* Privacy page */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(40px, 8vw, 96px) var(--pad) 72px; }
.doc h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 8px; }
.doc .meta { color: var(--muted); margin-bottom: 36px; }
.doc h2 { font-size: 1.5rem; max-width: none; margin: 36px 0 8px; letter-spacing: -0.01em; }
.doc p, .doc li { color: #dfe3f2; max-width: 68ch; }
.doc p, .doc ul { margin: 0 0 18px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc a { text-underline-offset: 3px; }

/* Scroll reveal: CSS only, progressive */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 38%; }
    @keyframes rise { from { transform: translateY(36px); } to { transform: none; } }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::before, .hero::after { animation: none; }
  .btn { transition: none; }
}

/* Mobile */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-bottom: 72px; }
  .hero::before, .hero::after { width: 70vw; }
  .stage { margin-top: 12px; }
  .float-a { left: 2%; bottom: -8%; }
  .float-b { right: 2%; top: -8%; }
  .night { grid-template-columns: minmax(0, 1fr); }
  .tile-duet, .tile-challenge, .tile-request, .tile-art { grid-column: 1 / -1; min-height: 300px; }
  .join-row { flex-direction: column; }
  .join input[type="email"], .btn { width: 100%; flex: none; }
}
@media (max-width: 420px) {
  .nav-link { padding: 8px 14px; font-size: 0.875rem; }
  .brand img { height: 28px; }
}
