/* TWINK-FINK — landing, v2
   Layout: full-bleed night hero, then a sticky stack of full-screen days (Mon → Sun), each with an in-game toast.
   The scenes carry the color; the chrome stays night + one lime. Single dark look by design. */

:root {
  color-scheme: dark;

  --night: #0f0b17;
  --night-2: #171124;
  --night-3: #211933;
  --ink: #f5f0ea;
  --ink-2: #c9c1d2;
  --ink-3: #9a90a8;
  --line: rgba(245, 240, 234, 0.10);
  --lime: #c8f53c;
  --lime-press: #b5e126;
  --lime-ink: #141a03;

  --display: "Archivo", "Arial Black", "Helvetica Neue", sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", monospace;

  --gutter: clamp(16px, 3.4vw, 48px);
  --nav-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 400 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
b { font-weight: 600; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 8px 12px; border-radius: 8px;
  background: var(--lime); color: var(--lime-ink); text-decoration: none;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 28px;
  border-radius: 14px;
  background: var(--lime); color: var(--lime-ink);
  font: 600 17px/1 var(--body);
  text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.14);
  transition: background-color 160ms var(--ease), transform 160ms var(--ease);
}
.btn:hover { background: var(--lime-press); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn__icon { width: 16px; height: 16px; fill: currentColor; flex: none; }
.btn--small { height: 38px; padding: 0 16px; border-radius: 10px; font-size: 14px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color 220ms var(--ease), box-shadow 220ms var(--ease);
}
.nav.is-stuck { background: rgba(15, 11, 23, 0.94); box-shadow: 0 1px 0 var(--line); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 32px; padding: 0 var(--gutter); }
.nav__brand {
  font: italic 900 20px/1 var(--display);
  font-variation-settings: "wdth" 112;
  letter-spacing: -0.02em;
  color: var(--lime); text-decoration: none;
  opacity: 0; transition: opacity 220ms var(--ease);
}
.nav.is-stuck .nav__brand { opacity: 1; }
.nav__links { display: flex; gap: 24px; margin-left: auto; }
.nav__links a { font-size: 15px; color: var(--ink-2); text-decoration: none; transition: color 160ms var(--ease); }
.nav__links a:hover { color: var(--ink); }

/* ---------- In-game toast (signature) ---------- */
.toast {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 10px;
  border-radius: 14px;
  background: rgba(23, 17, 36, 0.92);
  box-shadow: 0 0 0 1px var(--line), 0 16px 40px -12px rgba(0, 0, 0, 0.6);
  font-size: 15px; line-height: 1.3; color: var(--ink-2);
  max-width: min(360px, calc(100vw - 2 * var(--gutter)));
}
.toast b { color: var(--ink); }
.toast__icon {
  display: grid; place-items: center; flex: none;
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--lime);
}
.toast__icon svg { width: 16px; height: 16px; fill: none; stroke: var(--lime-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 1. Hero ---------- */
.hero {
  position: relative;
  min-height: max(640px, min(100svh, 62vw));
  overflow: hidden;
  isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero__art {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 30%;
}
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(15,11,23,0.55) 0%, rgba(15,11,23,0) 30%),
    linear-gradient(to top, rgba(15,11,23,0.96) 0%, rgba(15,11,23,0.7) 22%, rgba(15,11,23,0) 50%);
}
.hero__wordmark {
  position: absolute; left: 0; right: 0;
  top: calc(var(--nav-h) + 0.6vw);
  text-align: center;
  font: italic 900 13.1vw/0.86 var(--display);
  font-variation-settings: "wdth" 112;
  letter-spacing: -0.04em;
  color: var(--lime);
  white-space: nowrap;
  user-select: none;
}
.toast--hero { position: absolute; left: 53%; top: 27%; }

.hero__bottom {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 64px;
  padding: 0 var(--gutter) clamp(32px, 4.4vw, 64px);
}
.hero__copy { max-width: 720px; }
.hero__title {
  font: italic 800 clamp(34px, 4vw, 60px)/1 var(--display);
  font-variation-settings: "wdth" 100;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero__sub { margin-top: 16px; max-width: 34rem; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.hero__cta { display: flex; align-items: center; gap: 12px; flex: none; }

/* platform badge: quiet, not a button */
.soon {
  display: inline-flex; align-items: center; gap: 8px;
  height: 56px; padding: 0 18px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(245, 240, 234, 0.22);
  background: rgba(15, 11, 23, 0.55);
  font: 400 14px/1 var(--mono); color: var(--ink-2);
  white-space: nowrap;
}
.soon__icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }

@media (prefers-reduced-motion: no-preference) {
  .hero__wordmark { animation: drop 900ms var(--ease) both; }
  .hero__bottom > * { animation: rise 700ms 200ms var(--ease) both; }
  .hero__bottom > :nth-child(2) { animation-delay: 280ms; }
  .toast--hero { animation: pop 600ms 700ms var(--ease) both; }
}
@keyframes drop { from { opacity: 0; translate: 0 -20px; } to { opacity: 1; translate: 0 0; } }
@keyframes rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes pop  { from { opacity: 0; translate: 0 10px; scale: 0.96; } to { opacity: 1; translate: 0 0; scale: 1; } }

/* pride stripe */
.pride { display: flex; height: 8px; }
.pride i { flex: 1; }
.pride i:nth-child(1) { background: #e40303; }
.pride i:nth-child(2) { background: #ff8c00; }
.pride i:nth-child(3) { background: #ffed00; }
.pride i:nth-child(4) { background: #008026; }
.pride i:nth-child(5) { background: #004dff; }
.pride i:nth-child(6) { background: #750787; }

/* ---------- 2. What it is ---------- */
.what { padding-block: clamp(80px, 10vw, 144px); }
.eyebrow { font: 500 14px/1 var(--mono); color: var(--lime); }
.what__statement {
  margin-top: 24px;
  max-width: 22em;
  font: 600 clamp(28px, 3.6vw, 54px)/1.1 var(--display);
  font-variation-settings: "wdth" 96;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
.what__statement em { font-style: italic; font-weight: 800; color: var(--lime); }
.facts {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
}
.facts dt { font: 400 13px/1.4 var(--mono); color: var(--ink-3); }
.facts dd { margin-top: 6px; font-size: 17px; font-weight: 500; }

/* ---------- Section heads ---------- */
.section-title {
  font: italic 800 clamp(40px, 5.4vw, 80px)/0.95 var(--display);
  font-variation-settings: "wdth" 100;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.section-sub { margin-top: 16px; font-size: 19px; color: var(--ink-2); max-width: 34rem; }

/* ---------- 3. One week in town: sticky stack ---------- */
.week__head { padding-bottom: clamp(40px, 5vw, 64px); }
.days { position: relative; }
.day {
  position: sticky; top: 0;
  height: 100svh; min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
  box-shadow: 0 -24px 48px -8px rgba(0, 0, 0, 0.55);
}
.day__art {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: var(--pos, 70% 50%);
}
.day__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to right, rgba(15,11,23,0.9) 0%, rgba(15,11,23,0.6) 32%, rgba(15,11,23,0) 58%),
    linear-gradient(to top, rgba(15,11,23,0.7) 0%, rgba(15,11,23,0) 35%);
}
.day__copy {
  position: absolute;
  left: var(--gutter); bottom: clamp(48px, 10vh, 112px);
  max-width: min(560px, 44vw);
}
.day__clock { font: 400 14px/1.4 var(--mono); color: var(--lime); }
.day__title {
  margin-top: 16px;
  font: italic 900 clamp(48px, 6.6vw, 104px)/0.9 var(--display);
  font-variation-settings: "wdth" 100;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.day__text { margin-top: 20px; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 28em; }
.day .toast { position: absolute; right: var(--gutter); top: calc(var(--nav-h) + 32px); }

@media (prefers-reduced-motion: no-preference) {
  /* the toast is visible at rest; it replays a pop each time its day comes into view */
  .day.is-on .toast { animation: pop 520ms 180ms var(--ease) both; }
}

/* ---------- 4. How it plays ---------- */
.feel {
  position: relative; z-index: 1;
  padding-block: clamp(96px, 11vw, 160px);
  background: var(--night);
}
.feel__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 56px clamp(48px, 8vw, 128px); align-items: center; }
.beats { margin-top: 40px; }
.beat { padding: 24px 0; border-top: 1px solid var(--line); }
.beat:last-child { border-bottom: 1px solid var(--line); }
.beat__title {
  font: italic 800 clamp(26px, 2.4vw, 34px)/1 var(--display);
  font-variation-settings: "wdth" 100;
  letter-spacing: -0.02em;
}
.beat__text { margin-top: 8px; font-size: 18px; color: var(--ink-2); }

.choice {
  background: var(--night-2);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 0 0 1px var(--line), 0 32px 64px -24px rgba(0, 0, 0, 0.7);
  rotate: -1.5deg;
}
.choice__head { display: flex; align-items: center; gap: 12px; }
.choice__avatar {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  background: var(--night-3) url("assets/marcus.webp") center / cover no-repeat;
  box-shadow: 0 0 0 2px var(--lime);
}
.choice__name { font: 600 17px/1.2 var(--body); }
.choice__rel { margin-top: 2px; font: 400 13px/1.4 var(--mono); color: var(--ink-3); }
.meter { margin-left: auto; display: grid; gap: 6px; justify-items: end; }
.meter__label { font: 400 12px/1 var(--mono); color: var(--ink-3); }
.meter__track { width: 96px; height: 6px; border-radius: 3px; background: var(--night-3); overflow: hidden; }
.meter__fill { display: block; height: 100%; width: var(--v); border-radius: 3px; background: var(--lime); }
.choice__bubble {
  margin-top: 20px; padding: 16px 20px;
  background: var(--night-3);
  border-radius: 4px 16px 16px 16px;
  font-size: 18px; line-height: 1.45;
}
.choice__options { margin-top: 16px; display: grid; gap: 8px; }
.opt {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 8px 16px 8px 8px;
  border: 1px solid var(--line); border-radius: 12px;
  background: transparent;
  font: 500 16px/1.3 var(--body); color: var(--ink); text-align: left;
  cursor: pointer;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease);
}
.opt kbd {
  display: inline-grid; place-items: center; flex: none;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--night-3);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.35), 0 0 0 1px var(--line);
  font: 500 13px/1 var(--mono); color: var(--ink-2);
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.opt:hover { background: rgba(200, 245, 60, 0.08); border-color: rgba(200, 245, 60, 0.35); }
.opt.is-picked { background: rgba(200, 245, 60, 0.12); border-color: var(--lime); }
.opt.is-picked kbd { background: var(--lime); color: var(--lime-ink); box-shadow: none; }
.choice__foot { margin-top: 16px; font: 400 13px/1.4 var(--mono); color: var(--ink-3); text-align: center; }

/* ---------- 5. Final CTA ---------- */
/* copy sits in the night sky; the crew photo rises from below into it */
.final {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  overflow: hidden; isolation: isolate;
  text-align: center;
  background: #130526; /* matches the dusk sky at the top of the photo */
}
.final__copy {
  position: relative; z-index: 1;
  display: grid; justify-items: center; gap: 24px;
  padding: clamp(96px, 9vw, 144px) var(--gutter) 0;
}
.final__art {
  order: 2;
  width: 100%; height: auto;
  margin-top: -17vw;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 30%);
}
.final__shade { display: none; }
.final__wordmark {
  font: italic 900 clamp(56px, 11vw, 200px)/0.86 var(--display);
  font-variation-settings: "wdth" 112;
  letter-spacing: -0.04em;
  color: var(--lime);
  white-space: nowrap;
}
.final__line {
  font: italic 700 clamp(22px, 2.2vw, 32px)/1.1 var(--display);
  font-variation-settings: "wdth" 100;
  color: var(--ink);
}
.final__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.final__meta { font: 400 13px/1.4 var(--mono); color: var(--ink-2); margin-top: -8px; }

/* ---------- Footer ---------- */
.foot { position: relative; z-index: 1; background: #0a0710; color: var(--ink-3); font-size: 14px; }
.foot__inner { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; min-height: 72px; flex-wrap: wrap; padding-block: 16px; }
.foot nav { display: flex; gap: 24px; }
.foot a { text-decoration: none; transition: color 160ms var(--ease); }
.foot a:hover { color: var(--ink); }

/* ---------- Tablet / mobile ---------- */
@media (max-width: 900px) {
  :root { --nav-h: 56px; }
  .nav__links { display: none; }
  .nav__inner { justify-content: space-between; }

  .hero { min-height: 100svh; }
  .hero__art { object-position: 52% 50%; }
  .hero__shade {
    background:
      linear-gradient(to bottom, rgba(15,11,23,0.85) 0%, rgba(15,11,23,0) 26%),
      linear-gradient(to top, rgba(15,11,23,0.97) 0%, rgba(15,11,23,0.8) 34%, rgba(15,11,23,0) 62%);
  }
  .hero__wordmark { font-size: calc((100vw - 2 * var(--gutter)) / 7.1); top: calc(var(--nav-h) + 12px); }
  .toast--hero { display: none; }
  .hero__bottom { flex-direction: column; align-items: stretch; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn, .soon { justify-content: center; }
  .soon { height: 44px; }
  .hero__title { font-size: clamp(32px, 8.6vw, 48px); }

  .facts { grid-template-columns: 1fr 1fr; }

  .day__shade {
    background: linear-gradient(to top, rgba(15,11,23,0.95) 0%, rgba(15,11,23,0.75) 34%, rgba(15,11,23,0) 62%);
  }
  .day__copy { right: var(--gutter); max-width: none; bottom: 40px; }
  .day__title { font-size: clamp(40px, 11vw, 64px); }
  .day .toast { left: var(--gutter); right: auto; top: calc(var(--nav-h) + 16px); }

  .feel__grid { grid-template-columns: minmax(0, 1fr); }
  .choice { rotate: 0deg; }

  .final__art { width: 190%; max-width: none; margin: -12vw 0 0 -45%; }
  .final__wordmark { font-size: calc((100vw - 2 * var(--gutter)) / 7.1); }
  .final__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .final__copy .btn { justify-content: center; }
}

@media (max-width: 420px) {
  .facts { grid-template-columns: 1fr; }
  .meter__track { width: 64px; }
}
