/* HERO: a small orange hoodie standing under a moon the size of the sky. */

:root {
  --night: #1a1038;
  --dusk: #3a2468;
  --gold: #f6d36b;
  --paper: #f4efe4;
  --ink: #1c1730;
  --muted: #4e4860;
  --hoodie: #e86a2a;
  --watch: #14756f;
  --watch-on-night: #b7fff4;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Bricolage Grotesque", "Avenir Next Condensed", sans-serif;
  --font-body: "Literata", "Iowan Old Style", Palatino, serif;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body.home { color-scheme: dark; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

body.home { background: var(--night); }

a { color: var(--watch); text-underline-offset: 0.18em; }

a:hover { color: var(--ink); }

.home .stage a { color: var(--night); }

.skip {
  position: absolute;
  left: 16px;
  top: 0;
  transform: translateY(-120%);
  background: var(--paper);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 5;
  text-decoration: none;
  font-family: var(--font-display);
}

.skip:focus { transform: translateY(12px); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 32px;
  border-bottom: 1px solid #e4d9c8;
}

.home header {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto 0;
  border-bottom: 0;
  color: var(--paper);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.ring {
  width: 22px;
  height: 22px;
  border: 3px solid #7edcd2;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  min-width: 0;
}

nav a {
  color: inherit;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
}

.contact {
  border: 1px solid currentColor;
  border-radius: 2px;
  padding: 8px 14px;
  transition: transform 160ms var(--ease-out);
}

.contact:active { transform: scale(0.97); }

.stage {
  display: grid;
  grid-template-columns: minmax(280px, 46vw) minmax(0, 1fr);
  grid-template-rows: 100svh;
  height: 100svh;
  overflow: hidden;
  background: #140c2e;
  color: #f7f3ea;
}

.scene {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
}

.drift {
  transform-box: fill-box;
  animation: drift 9s linear infinite;
}

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-36px); }
}

.poster {
  grid-column: 1;
  grid-row: 1;
  z-index: 1;
  align-self: center;
  max-width: 640px;
  padding: 18vh 6vw 12vh 7vw;
  animation: rise 420ms var(--ease-out) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--watch-on-night);
}

.kicker svg { flex: none; }

.stage h1 {
  margin: 0;
  color: #f7f3ea;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5.5rem, 12vw, 9.5rem);
  line-height: 0.82;
  letter-spacing: -0.055em;
}

.lede {
  max-width: 38ch;
  margin: 22px 0 0;
  font-size: 1.125rem;
  line-height: 1.5;
  color: #f7f3ea;
}

.button {
  display: inline-block;
  margin-top: 26px;
  padding: 12px 18px;
  background: var(--paper);
  color: var(--night);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 2px;
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out);
}

.button:active { transform: scale(0.97); }

.sheet {
  background: var(--paper);
  color: var(--ink);
  padding: 6rem 32px 2rem;
}

.sheet h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.sheet .intro {
  max-width: 46ch;
  margin: 14px 0 0;
  color: var(--muted);
}

.reel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(168px, 190px);
  gap: 14px;
  margin-top: 32px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.reel article {
  scroll-snap-align: start;
  aspect-ratio: 9 / 14;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--paper);
  border-radius: 2px;
}

.reel h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.reel p {
  margin: 8px 0 0;
  font-size: 0.95rem;
  line-height: 1.35;
}

.reel article:nth-child(1) { background: #6e4a28; }
.reel article:nth-child(2) { background: #24315c; }
.reel article:nth-child(3) { background: #8a6418; }
.reel article:nth-child(4) { background: #1d3d52; }
.reel article:nth-child(5) { background: #3e4a62; }
.reel article:nth-child(6) { background: #3d4f78; }

.steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 36px;
  counter-reset: step;
}

.steps li { counter-increment: step; max-width: 36ch; }

.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.04em;
}

.steps h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.steps p,
.note p { margin: 0; color: var(--muted); max-width: 62ch; }

.note { margin-top: 4.5rem; }

.note h2 { max-width: 16ch; }

.note p + p { margin-top: 12px; }

footer {
  background: var(--paper);
  color: var(--ink);
  padding: 28px 32px 48px;
  border-top: 1px solid #e4d9c8;
}

footer nav { margin-bottom: 12px; }

footer p { margin: 8px 0 0; max-width: 68ch; color: var(--muted); font-size: 0.98rem; }

.legal {
  max-width: 72rem;
  margin: 0 auto;
  padding: 4rem 32px 5rem;
}

.legal h1 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  max-width: 14ch;
  margin: 10px 0 18px;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--watch);
}

.meta { color: var(--muted); margin-top: 0; }

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  margin: 2rem 0 0.4rem;
}

.legal p,
.legal li { max-width: 68ch; }

.legal ul { padding-left: 1.2rem; }

@media (hover: hover) and (pointer: fine) {
  .button:hover { transform: translateY(-1px); }
  .button:hover:active { transform: scale(0.97); }
  .contact:hover { background: rgba(255, 255, 255, 0.08); }
  body:not(.home) .contact:hover { background: rgba(26, 16, 56, 0.05); }
}

@media (max-width: 800px) {
  header { align-items: flex-start; flex-direction: column; gap: 14px; padding: 18px 20px; }
  nav { gap: 12px 16px; }
  header, nav { width: 100%; }
  .stage {
    display: block;
    position: relative;
    height: 100svh;
  }
  .poster {
    max-width: none;
    padding: 156px 20px 28px;
    background: linear-gradient(180deg, #140c2e 0%, #140c2e 62%, rgba(20, 12, 46, 0) 100%);
  }
  .scene {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
  }
  h1 { font-size: clamp(4.2rem, 22vw, 6.5rem); }
  .sheet { padding: 3.5rem 20px 1rem; }
  .steps { grid-template-columns: 1fr; }
  .legal { padding: 2.5rem 20px 3.5rem; }
  footer { padding: 24px 20px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .drift,
  .poster { animation: none; }
  .button,
  .contact { transition: background-color 160ms var(--ease-out); }
}
