:root {
  --canvas: #0D0E10;
  --surface: #17191C;
  --ink: #EEE9E1;
  --ink-soft: #A49D92;
  --accent: #FF6A1F;
  --accent-ink: #160B05;
  --line: rgba(238, 233, 225, .14);
  --display: "Archivo", system-ui, sans-serif;
  --text: "Bricolage Grotesque", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --measure: 46ch;
}

* { box-sizing: border-box; }
html { background: var(--canvas); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.62;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
}

/* Stage: the pinned 3D scene behind everything */
.stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Top bar */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gutter);
}
.mark {
  font-family: var(--display); font-weight: 800; font-stretch: 112%;
  font-size: 1.05rem; letter-spacing: -.01em; color: var(--ink); text-decoration: none;
}
.mark span { color: var(--accent); margin-left: .3em; }
.bar-cta {
  font-weight: 600; font-size: .9rem; color: var(--ink); text-decoration: none;
  padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(13, 14, 16, .78);
}
.bar-cta:hover { border-color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Acts */
main { position: relative; z-index: 2; }
.act { position: relative; min-height: 100vh; display: flex; padding: 0 var(--gutter); }
.act-hero { height: 130vh; align-items: center; }
.act-close { height: 160vh; align-items: flex-end; justify-content: flex-end; padding-bottom: 30vh; }
.act-explode { height: 320vh; align-items: flex-start; }
.act-inside { height: 300vh; }
.act-snap { height: 140vh; align-items: center; justify-content: flex-end; }
.act-end { min-height: 120vh; align-items: center; }

.copy { position: sticky; top: 0; max-width: var(--measure); }
.copy-lead { margin-right: auto; }
.copy-trail { margin-left: auto; text-align: right; }
.act-hero .copy { padding-top: 6vh; }
.copy-low { top: auto; position: sticky; top: 62vh; }

h1, h2, h3 {
  font-family: var(--display); font-stretch: 118%; font-weight: 850;
  letter-spacing: -.035em; line-height: .96; margin: 0 0 .45em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.8rem, 7.4vw, 6.4rem); }
h2 { font-size: clamp(2.2rem, 5.2vw, 4.4rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -.02em; line-height: 1.04; }
p { margin: 0; color: var(--ink-soft); text-wrap: pretty; }
.copy p { max-width: 40ch; }
.copy-trail p { margin-left: auto; }
.whisper {
  font-family: var(--display); font-stretch: 112%; font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem); line-height: 1.15; letter-spacing: -.02em;
  color: var(--ink) !important;
}

/* Reveal states, driven from JS */
[data-fade] { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
[data-fade].on { opacity: 1; transform: none; }

/* Inside: the three parts */
.parts { list-style: none; margin: 0; padding: 0; position: sticky; top: 0; height: 100vh; width: 100%; }
.part {
  position: absolute; left: 0; bottom: 14vh; max-width: 34ch;
  padding: 22px 24px 24px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(23, 25, 28, .94), rgba(23, 25, 28, .86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 40px -18px rgba(0, 0, 0, .7);
  opacity: 0; transform: translateY(24px); transition: opacity .45s ease, transform .55s cubic-bezier(.2,.7,.2,1);
}
.part.on { opacity: 1; transform: none; }
.part h3::before {
  content: ""; display: inline-block; width: .5em; height: .5em; border-radius: 50%;
  background: var(--accent); margin-right: .45em; vertical-align: .12em;
}



/* Close */
.end { width: 100%; max-width: 34rem; margin-right: auto; display: grid; gap: 32px; padding: 12vh 0; }
.end h2 { max-width: 12ch; margin: 0; }
.specs { display: flex; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.specs div { flex: 0 1 auto; margin-right: 32px; padding: 18px 18px 0 0; }
.specs dt { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.specs dd { white-space: nowrap; margin: 4px 0 0; font-family: var(--display); font-weight: 850; font-stretch: 118%; font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 1; letter-spacing: -.03em; }
.cta {
  justify-self: start; align-self: center;
  font: 650 1.05rem/1 var(--text); color: var(--accent-ink); background: var(--accent);
  text-decoration: none; padding: 20px 30px; border-radius: 999px;
  box-shadow: 0 14px 30px -12px rgba(255, 106, 31, .55), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -14px rgba(255, 106, 31, .65), inset 0 1px 0 rgba(255,255,255,.35); }
.credit { font-size: .78rem; max-width: 60ch; opacity: .8; padding-top: 4vh; }
.credit a { color: var(--ink); }

.nojs { position: relative; z-index: 3; padding: var(--gutter); }

/* Phone */
@media (max-width: 900px) {
  body { font-size: 1rem; }
  .act-hero { align-items: flex-start; }
  .act-hero .copy { padding-top: 13vh; }
  h1 { font-size: clamp(2.5rem, 11vw, 3.4rem); }
  .act-close { padding-bottom: 0; }
  .act-close .copy { top: 62vh; }
  .copy-low { top: 64vh; }
  .act-snap { align-items: flex-start; }
  .act-snap .copy { top: 14vh; }
  .part { left: 0; right: 0; bottom: 4vh; max-width: none; padding: 18px; }
  .part p { font-size: .95rem; }
  .end { position: relative; isolation: isolate; padding: 54vh 0 calc(6vh + env(safe-area-inset-bottom)); min-width: 0; }
  .end::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(var(--gutter) * -1); width: 100vw; pointer-events: none;
    background: linear-gradient(180deg, transparent 0, transparent 40vh, rgba(13,14,16,.88) 54vh); }
  .act-hero .copy p { text-shadow: 0 1px 14px rgba(13,14,16,.95), 0 0 2px rgba(13,14,16,.8); }
  .specs { flex-wrap: wrap; }
  .specs div { margin-right: 20px; padding-right: 0; }
  .specs dd { font-size: 2.1rem; }
  .cta { justify-self: stretch; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  [data-fade], .part { transition: opacity .2s linear; transform: none !important; }
}

/* back to somethingAI */
.bar-left { display: flex; align-items: center; gap: 18px; }
.back {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; color: var(--ink); text-decoration: none;
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(13, 14, 16, .78);
  transition: border-color .2s, transform .2s;
}
.back span { transition: transform .2s; }
.back:hover { border-color: var(--accent); }
.back:hover span { transform: translateX(-3px); }
@media (max-width: 520px) { .bar-left { gap: 12px; } .back { padding: 9px 13px; } }

/* keep text from running through the top bar */
.bar::before { content: ""; position: absolute; inset: 0 0 -28px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(13,14,16,.92) 0, rgba(13,14,16,.7) 60%, transparent); }
