/* Archinomad, thearchinomad.com
   Light theme: a white architectural study model on paper, with one blueprint-cobalt accent.
   --paper page, --panel raised surfaces, --ink text, --muted secondary text,
   --accent actions, progress and anything that changes. */

:root {
  --paper: #FBFBFA;      /* page */
  --panel: #F2F3F1;      /* raised panels */
  --panel-2: #E8EAE7;
  --ink: #16181B;        /* text */
  --muted: #5E636A;      /* secondary text */
  --accent: #2F4BE8;     /* blueprint cobalt: actions, progress, what changes */
  --on-accent: #FFFFFF;
  --line: rgba(22, 24, 27, .12);
  --font: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  font-variation-settings: "opsz" 14;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 750; line-height: 1.02; letter-spacing: -.015em; text-wrap: balance; }
h2 { font-variation-settings: "opsz" 72; }
h3 { font-size: 1.3rem; font-variation-settings: "opsz" 24; letter-spacing: -.005em; line-height: 1.2; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); font-size: .95rem; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 46ch; line-height: 1.5; }
.ph { text-decoration: underline dotted var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--accent); color: var(--on-accent); padding: 8px 14px; }
.skip:focus { left: 8px; }
.mt { margin-top: 32px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 650 1rem var(--font); text-decoration: none; letter-spacing: .005em;
  padding: 13px 24px; border-radius: 6px; border: 1.5px solid transparent; cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: #2238C4; color: var(--on-accent); }
.btn.primary:active { transform: translateY(1px); }
.btn.line { border-color: var(--ink); color: var(--ink); }
.btn.line:hover { background: var(--ink); color: var(--paper); }
.btn.big { padding: 17px 32px; font-size: 1.1rem; }
.btn.small { padding: 9px 16px; font-size: .92rem; }
.btn[aria-disabled="true"] { background: transparent; border-color: var(--line); color: var(--muted); pointer-events: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Placeholder notice */
.notice { background: var(--ink); color: var(--paper); font-size: .85rem; }
.notice .wrap { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding-block: 8px; }
.notice .ph { text-decoration-color: var(--paper); }
.notice button { background: none; border: 1px solid currentColor; color: inherit; font: inherit; padding: 2px 10px; border-radius: 4px; cursor: pointer; flex-shrink: 0; }

/* Header */
header.site { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 66px; }
.brand { font-weight: 800; font-size: 1.5rem; letter-spacing: -.03em; text-decoration: none; font-variation-settings: "opsz" 48; }
nav.main { display: flex; align-items: center; gap: 28px; }
nav.main a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 500; }
nav.main a:not(.btn):hover { color: var(--ink); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--ink); font: 600 .9rem var(--font); padding: 8px 14px; border-radius: 6px; cursor: pointer; }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  nav.main { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 4px var(--gutter) 20px; }
  nav.main.open { display: flex; }
  nav.main a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 1.1rem; }
  nav.main .btn { margin-top: 16px; }
}

/* Hero: broken-line statement, the one orchestrated motion on the page */
.hero { padding-block: clamp(56px, 10vw, 128px) clamp(56px, 8vw, 96px); }
.statement { font-size: clamp(3.6rem, 14.5vw, 11.5rem); line-height: .9; letter-spacing: -.045em; font-weight: 800; font-variation-settings: "opsz" 96; }
.statement .ln { display: block; }
.statement .ln:nth-child(2) { padding-left: .9em; }
.statement .ln:nth-child(3) { color: var(--accent); }
.hero-foot { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px 48px; margin-top: clamp(32px, 5vw, 56px); }
@media (prefers-reduced-motion: no-preference) {
  .hero .ln { animation: rise .9s cubic-bezier(.2, .7, .1, 1) both; }
  .hero .ln:nth-child(2) { animation-delay: .12s; }
  .hero .ln:nth-child(3) { animation-delay: .24s; }
  .hero-foot { animation: fade .8s ease .55s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(.35em); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Feature panel: the live competition and the final call to action */
.feature {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 4px;
  padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 64px);
  box-shadow: 0 1px 2px rgba(22, 24, 27, .04), 0 24px 48px -32px rgba(22, 24, 27, .18);
}

/* Live competition */
.live { padding-bottom: clamp(64px, 9vw, 112px); scroll-margin-top: 80px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); margin-bottom: 18px; }
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.live h2 { font-size: clamp(2.4rem, 6vw, 4.8rem); letter-spacing: -.035em; max-width: 14ch; }
.live h2 .season { display: block; color: var(--muted); }
.live .lede { margin-top: 20px; }
.live-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: clamp(32px, 5vw, 48px) 0; border-top: 1px solid var(--line); }
.fact { padding: 20px 24px 4px 0; display: grid; gap: 6px; align-content: start; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact dt { color: var(--muted); font-size: .95rem; }
.fact dd { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.fact dd small { display: block; font-size: .9rem; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.fact.prize dd { color: var(--accent); font-size: clamp(2rem, 4.4vw, 3.4rem); }
@media (max-width: 760px) {
  .live-facts { grid-template-columns: minmax(0, 1fr); }
  .fact, .fact + .fact { padding: 16px 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
}
.season-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; color: var(--muted); font-size: .95rem; }
.season-strip strong { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) { .season-strip { grid-template-columns: minmax(0, 1fr); gap: 10px; } }

/* Sections */
section.block { padding-block: clamp(64px, 9vw, 112px); border-top: 1px solid var(--line); scroll-margin-top: 66px; }
.section-title { font-size: clamp(2.2rem, 5.2vw, 4rem); letter-spacing: -.035em; margin-bottom: clamp(32px, 5vw, 52px); max-width: 16ch; }

/* Why take part */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.why h3 { font-size: clamp(1.6rem, 2.3vw, 2rem); letter-spacing: -.03em; font-variation-settings: "opsz" 60; margin-bottom: 10px; }
.why p { color: var(--muted); }
@media (max-width: 900px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .why { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* How it works: a real sequence, so it is numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; padding: 0 20px 0 0; display: grid; gap: 10px; align-content: start; position: relative; }
.steps li::before { content: counter(step); font-size: 3.4rem; font-weight: 800; line-height: 1; color: var(--accent); font-variation-settings: "opsz" 96; letter-spacing: -.04em; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps li { grid-template-columns: 3.2rem minmax(0, 1fr); column-gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
  .steps li::before { grid-row: 1 / span 2; font-size: 2.4rem; border: 0; padding: 0; margin: 0; }
}

/* Season 01 detail */
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 56px; }
.detail-grid article { display: grid; gap: 12px; align-content: start; border-top: 1.5px solid var(--ink); padding-top: 18px; }
.detail-grid p { max-width: 58ch; }
@media (max-width: 760px) { .detail-grid { grid-template-columns: minmax(0, 1fr); } }
.ticks, .crosses { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li, .crosses li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.crosses li { color: var(--muted); }
.crosses li::before, .crosses li::after { content: ""; position: absolute; left: 2px; top: .8em; width: 13px; height: 2px; background: var(--muted); transform: rotate(45deg); }
.crosses li::after { transform: rotate(-45deg); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; margin-top: clamp(56px, 7vw, 88px); }
.split h3 { margin-bottom: 18px; }
@media (max-width: 760px) { .split { grid-template-columns: minmax(0, 1fr); gap: 44px; } }
.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid var(--line); display: grid; gap: 22px; }
.timeline li { position: relative; display: grid; gap: 2px; }
.timeline li::before { content: ""; position: absolute; left: -29px; top: .5em; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); }
.timeline span { color: var(--muted); font-size: .92rem; }
.timeline b { font-weight: 600; font-size: 1.1rem; }
.prizes { list-style: none; margin: 0 0 12px; padding: 0; display: grid; }
.prizes li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.prizes li:first-child { border-top: 1px solid var(--line); }
.prizes span { color: var(--muted); font-size: 1.05rem; }
.prizes b { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; color: var(--accent); font-variant-numeric: tabular-nums; }
.prizes li:nth-child(n+2) b { color: var(--ink); }

.faq-title { margin: clamp(56px, 7vw, 88px) 0 12px; font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.03em; }
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; font-weight: 600; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.5rem; line-height: 1; flex-shrink: 0; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--muted); max-width: 64ch; }

.inline-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-top: clamp(48px, 6vw, 72px); padding: 26px 30px; background: var(--panel); border-radius: 6px; }
.inline-cta p { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; }

/* Makeover */
.makeover-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(32px, 5vw, 48px); }
.makeover-head .section-title { margin-bottom: 0; }
@media (max-width: 760px) { .makeover-head { grid-template-columns: minmax(0, 1fr); } }
.compare { margin: 0 0 clamp(48px, 6vw, 72px); }
.compare-stage { position: relative; aspect-ratio: 5 / 3; background: var(--panel); border-radius: 6px; overflow: hidden; --pos: 50%; }
.compare .layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.compare .after { clip-path: inset(0 0 0 var(--pos)); background: var(--panel-2); }
.compare .sk { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.compare .before .sk { stroke: var(--muted); }
.compare .gold-fill { fill: color-mix(in srgb, var(--accent) 35%, transparent); stroke: var(--accent); }
.compare .ground { fill: var(--muted); }
.compare .cap { fill: var(--muted); font: 500 15px var(--font); }
.compare .after .cap { fill: var(--accent); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--accent); pointer-events: none; }
.compare .handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 25%, transparent); }
.compare input[type=range] { width: 100%; margin: 16px 0 8px; accent-color: var(--accent); }
.compare figcaption { color: var(--muted); font-size: .88rem; }
.compare .after .cap { text-anchor: end; }
.makeover-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; }
.makeover-grid h3 { margin-bottom: 14px; }
@media (max-width: 1000px) { .makeover-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .makeover-grid { grid-template-columns: minmax(0, 1fr); } }
.slot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin-top: clamp(40px, 5vw, 56px); padding: 26px 30px; border: 1.5px solid var(--accent); border-radius: 6px; }
.slot-state { font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 700; margin-bottom: 4px; }
.slot.open .slot-state { color: var(--accent); }

/* Winners, about */
.empty { display: grid; gap: 20px; justify-items: start; padding: 32px; border: 1px dashed var(--line); border-radius: 6px; max-width: 760px; }
.empty p { font-size: 1.15rem; }
.about .lede { max-width: 60ch; color: var(--ink); font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.45; }

/* Final CTA */
.final { padding-block: clamp(56px, 8vw, 96px); }
.final .feature { display: grid; gap: 32px; justify-items: start; }
.statement.small { font-size: clamp(3rem, 10vw, 8rem); }
.statement.small .ln:nth-child(2) { color: var(--accent); padding-left: 0; }

/* Journal and Blogger pages */
.posts-area { padding-block: clamp(40px, 6vw, 72px) clamp(64px, 9vw, 112px); }
.posts-area.is-home { padding: 0; }
.page-title { font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -.035em; margin-bottom: 32px; max-width: 18ch; }
.post-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.post-card { padding: 24px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.post-card h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -.02em; }
.post-card h2 a { text-decoration: none; }
.post-card p { color: var(--muted); max-width: 70ch; }
.post-card .more { color: var(--accent); font-weight: 600; }
.post-body { max-width: 70ch; font-size: 1.08rem; line-height: 1.7; }
.post-body > * + * { margin-top: 1em; }
.post-body h2, .post-body h3 { margin-top: 1.6em; }
.post-body h2 { font-size: 1.9rem; }
.post-body img { height: auto; border-radius: 4px; }
.post-body a { color: var(--accent); }
.post-cta { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; padding: 24px 28px; background: var(--panel); border-radius: 6px; max-width: 70ch; }
.blog-pager { display: flex; gap: 20px; margin-top: 32px; }
.blog-pager a { color: var(--accent); }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding-block: 48px 104px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-grid nav, .foot-grid > div:last-child { display: grid; gap: 8px; align-content: start; }
.foot-grid nav a, .foot-grid > div:last-child a { color: var(--muted); text-decoration: none; }
.foot-grid nav a:hover, .foot-grid > div:last-child a:hover { color: var(--ink); }
.foot-grid .brand { display: inline-block; margin-bottom: 6px; }
.fine { margin-top: 40px; color: var(--muted); font-size: .85rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-grid > div:first-child { grid-column: 1 / -1; } }
@media (min-width: 901px) { footer.site { padding-bottom: 48px; } }

/* Sticky Enter now: phones only, after the hero */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; background: color-mix(in srgb, var(--panel) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 10px; transform: translateY(140%); transition: transform .3s ease; }
.sticky-cta p { font-size: .95rem; }
.sticky-cta b { color: var(--accent); }
.sticky-cta.show { transform: none; }
@media (min-width: 901px) { .sticky-cta { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 560px) { .compare .handle::after { width: 24px; height: 24px; margin: -12px 0 0 -12px; } }

/* Standalone pages */
.page-head { padding-block: clamp(48px, 8vw, 96px) 0; }
.page-head .section-title { margin-bottom: 16px; font-size: clamp(2.8rem, 8vw, 6rem); max-width: 14ch; }
.page-head + .live, .page-head + section.block.flush { margin-top: clamp(32px, 5vw, 56px); }
section.block.flush { border-top: 0; padding-top: 0; }
h1.section-title { font-size: clamp(2.8rem, 8vw, 6rem); font-weight: 800; letter-spacing: -.04em; font-variation-settings: "opsz" 96; }
body[data-page="season"] .live { padding-top: clamp(32px, 5vw, 56px); }
body[data-page="season"] .live h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); letter-spacing: -.04em; line-height: 1; max-width: 14ch; font-weight: 800; font-variation-settings: "opsz" 96; }
body[data-page="season"] .live h1 .season { display: block; color: var(--muted); }
nav.main a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.empty-page { display: grid; gap: 28px; justify-items: start; }

/* Legal drafts */
.legal .wrap > h2 { font-size: 1.5rem; margin: 36px 0 10px; letter-spacing: -.01em; }
.legal .wrap > p { max-width: 68ch; color: var(--muted); }
.legal-note { padding: 16px 20px; border-left: 3px solid var(--accent); background: var(--panel); max-width: 68ch; color: var(--ink) !important; }

/* Journal articles */
.post-single .page-title { margin-top: 12px; }
.post-body blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--muted); }
.post-body code { font-size: .92em; background: var(--panel); padding: 1px 6px; border-radius: 4px; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li + li { margin-top: .4em; }

/* ===================================================================== 3D journey (homepage)
   One scroll is one day: the sky, the light and the text colour follow the model from dawn to night.
   home3d.js sets --sky-top, --sky-bot, --j-ink and --j-muted on .journey, and --t / --out on each chapter. */
.journey { --sky-top: #EEF1F4; --sky-bot: #FBFBFA; --j-ink: var(--ink); --j-muted: var(--muted); position: relative; color: var(--j-ink); }
.journey-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; z-index: 0;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bot) 72%); }
/* A soft wash on the text side keeps words readable over the model at every time of day */
.journey-stage::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--sky-bot) 78%, transparent) 0%, color-mix(in srgb, var(--sky-bot) 40%, transparent) 32%, transparent 52%); }
.journey.static .journey-stage::after { display: none; }
.journey-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1s ease; }
.journey.live .journey-stage canvas { opacity: 1; }
.journey-still { position: absolute; right: 0; top: 50%; width: min(62vw, 980px); height: auto; transform: translateY(-50%); display: none; }
.journey-progress { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: color-mix(in srgb, var(--j-ink) 12%, transparent); }
.journey-progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

.rail { position: absolute; right: clamp(16px, 3vw, 40px); bottom: clamp(20px, 5vh, 48px); z-index: 2; text-align: right; pointer-events: none; color: var(--j-ink); }
.rail-time { font-size: .85rem; letter-spacing: .02em; color: var(--j-muted); font-variant-numeric: tabular-nums; }
.rail-pct { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; margin: 2px 0 14px; font-variation-settings: "opsz" 96; }
.rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rail li { font-size: .9rem; color: var(--j-muted); display: flex; justify-content: flex-end; align-items: center; gap: 10px; transition: color .3s ease; }
.rail li::after { content: ""; width: 18px; height: 2px; background: color-mix(in srgb, var(--j-ink) 18%, transparent); transition: width .3s ease, background .3s ease; }
.rail li.done { color: var(--j-ink); }
.rail li.done::after { background: var(--j-ink); }
.rail li.on { color: var(--accent); font-weight: 600; }
.rail li.on::after { width: 34px; background: var(--accent); }
body[data-tone="night"] .rail li.on { color: #8FA2FF; }
body[data-tone="night"] .rail li.on::after { background: #8FA2FF; }

.chapters { position: relative; z-index: 1; margin-top: -100vh; margin-top: -100svh; }
.chapter { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 96px var(--gutter); max-width: var(--wrap); margin-inline: auto; }
.chapter .copy { width: min(560px, 100%); display: grid; gap: 22px; justify-items: start; }
.chapter .lede { color: var(--j-muted); max-width: 44ch; }
.chapter h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -.035em; line-height: 1; }
.chapter h2 .season { display: block; color: var(--j-muted); }
.kicker { font-size: .9rem; color: var(--j-muted); display: flex; align-items: center; gap: 12px; font-variant-numeric: tabular-nums; }
.kicker::before { content: ""; width: 28px; height: 1.5px; background: var(--accent); }
.journey .statement { font-size: clamp(3.2rem, 8.6vw, 7.4rem); line-height: .92; letter-spacing: -.045em; font-weight: 800; font-variation-settings: "opsz" 96; }
.journey .statement.mid { font-size: clamp(2.6rem, 6vw, 5.2rem); }
.journey .statement .w:last-child { color: var(--accent); }
body[data-tone="night"] .journey .statement .w:last-child { color: #9AABFF; }
.journey .btn.line { border-color: var(--j-ink); color: var(--j-ink); }
.journey .btn.line:hover { background: var(--j-ink); color: var(--sky-bot); }
.scroll-cue { font-size: .9rem; color: var(--j-muted); display: flex; align-items: center; gap: 10px; }
.scroll-cue::before { content: ""; width: 1px; height: 28px; background: var(--j-ink); opacity: .35; }

/* The live competition sits on a frosted panel so the numbers stay crisp over the model */
.chapter .copy.panel { padding: clamp(22px, 3vw, 34px); border-radius: 10px; width: min(520px, 100%);
  background: color-mix(in srgb, #FFFFFF 74%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 30px 60px -36px rgba(22, 24, 27, .35); }
.mini-facts { display: grid; gap: 12px; margin: 0; width: 100%; border-top: 1px solid var(--line); padding-top: 14px; }
.mini-facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.mini-facts dt { color: var(--muted); font-size: .95rem; }
.mini-facts dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.mini-facts dd small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; }
.mini-facts dd.big { font-size: clamp(1.9rem, 3.8vw, 2.8rem); color: var(--accent); letter-spacing: -.03em; }

/* Why take part: four verbs that light up in turn */
.verbs { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.verbs li { display: grid; gap: 2px; }
.verbs b { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 800; letter-spacing: -.045em; line-height: .95; font-variation-settings: "opsz" 96; }
.verbs span { color: var(--j-muted); max-width: 40ch; }

/* How it works: a timeline that fills as you scroll */
.chapter.wide { align-items: flex-end; padding-bottom: clamp(40px, 8vh, 80px); }
.chapter.wide .copy { width: 100%; }
.timeline-h { list-style: none; margin: 8px 0 0; padding: 22px 0 0; width: 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; position: relative; }
.timeline-h::before, .timeline-h::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; }
.timeline-h::before { background: color-mix(in srgb, var(--j-ink) 15%, transparent); }
.timeline-h::after { background: var(--accent); transform-origin: left; transform: scaleX(var(--fill, 1)); }
.timeline-h li { display: grid; gap: 6px; position: relative; }
.timeline-h li::before { content: ""; position: absolute; top: -28px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--sky-bot); border: 2px solid var(--accent); }
.timeline-h b { font-size: 1.15rem; letter-spacing: -.01em; }
.timeline-h span { color: var(--j-muted); font-size: .95rem; }

/* Scroll-driven reveals, only when the animated version is running */
.journey.animated .chapter { --t: 1; --out: 0; }
.journey.animated .copy { opacity: calc(1 - var(--out) * 1.15); transform: translateY(calc(var(--out) * -40px)); }
.journey.animated .w { display: inline-block; --in: clamp(0, calc(var(--t) * 2.4 - var(--i) * .16), 1);
  opacity: var(--in); transform: translateY(calc((1 - var(--in)) * .5em)); filter: blur(calc((1 - var(--in)) * 8px)); }
.journey.animated .verbs li { --in: clamp(0, calc(var(--t) * 2.6 - var(--i) * .42), 1); opacity: calc(.12 + var(--in) * .88); transform: translateX(calc((1 - var(--in)) * -24px)); }
.journey.animated .timeline-h { --fill: clamp(0, calc(var(--t) * 1.6 - .3), 1); }
.journey.animated .timeline-h li { --in: clamp(0, calc(var(--t) * 3 - .5 - var(--i) * .35), 1); opacity: calc(.15 + var(--in) * .85); }
.journey.animated .timeline-h li::before { background: color-mix(in srgb, var(--accent) calc(var(--in) * 100%), var(--sky-bot)); }

/* Night: the header and controls darken with the sky */
body[data-tone="night"] header.site { background: rgba(10, 15, 40, .55); border-bottom-color: rgba(255, 255, 255, .08); }
body[data-tone="night"] header.site .brand, body[data-tone="night"] nav.main a:not(.btn), body[data-tone="night"] .menu-btn { color: #E9ECF7; }
body[data-tone="night"] .menu-btn { border-color: rgba(255, 255, 255, .2); }
header.site, header.site .brand, nav.main a { transition: background .5s ease, color .5s ease, border-color .5s ease; }

/* Sound toggle */
.sound-toggle { position: fixed; left: clamp(12px, 2vw, 24px); bottom: clamp(12px, 3vh, 24px); z-index: 45; display: inline-flex; align-items: center; gap: 10px;
  font: 500 .85rem var(--font); color: var(--ink); background: color-mix(in srgb, #FFFFFF 80%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
body[data-tone="night"] .sound-toggle { color: #E9ECF7; background: rgba(10, 15, 40, .55); border-color: rgba(255, 255, 255, .15); }
.sound-toggle .bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.sound-toggle .bars i { width: 2px; height: 4px; background: currentColor; border-radius: 1px; }
.sound-toggle.playing .bars i { animation: eq 1.1s ease-in-out infinite; }
.sound-toggle.playing .bars i:nth-child(2) { animation-delay: .2s; }
.sound-toggle.playing .bars i:nth-child(3) { animation-delay: .45s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }

@media (max-width: 860px) {
  .journey-stage::after { background: linear-gradient(0deg, color-mix(in srgb, var(--sky-bot) 70%, transparent) 0%, transparent 45%); }
  .rail { top: 74px; bottom: auto; right: 14px; }
  .rail ol { display: none; }
  .rail-pct { font-size: 1.6rem; margin: 0; }
  .chapter { align-items: flex-end; padding: 0 12px 18px; }
  .chapter .copy { width: 100%; gap: 16px; padding: 20px; border-radius: 12px;
    background: color-mix(in srgb, var(--sky-bot) 84%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .journey .statement { font-size: clamp(2.8rem, 13vw, 4.4rem); }
  .journey .statement.mid { font-size: clamp(2.2rem, 10vw, 3.4rem); }
  .verbs b { font-size: clamp(2rem, 10vw, 3rem); }
  .chapter.wide { padding-bottom: 18px; }
  .timeline-h { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 0 0 0 22px; }
  .timeline-h::before, .timeline-h::after { left: 5px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .timeline-h::after { transform-origin: top; transform: scaleY(var(--fill, 1)); }
  .timeline-h li::before { top: 4px; left: -22px; }
  .sound-toggle { top: 74px; bottom: auto; left: 12px; padding: 6px 12px; }
}

/* Still version: reduced motion, or no 3D support */
.journey.static .journey-stage { position: relative; height: auto; min-height: 0; padding-top: 24px; background: var(--paper); }
.journey.static .journey-stage canvas, .journey.static .rail, .journey.static .journey-progress { display: none; }
.journey.static .journey-still { display: block; position: relative; transform: none; top: auto; width: min(100%, 980px); margin: 0 auto; }
.journey.static .chapters { margin-top: 0; }
.journey.static .chapter { min-height: 0; padding-block: 48px; align-items: flex-start; }
.journey.static .chapter .copy { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; padding-inline: 0; }

/* Entry screen */
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 30%, #FFFFFF, var(--paper) 60%, #EEF1F4); transition: opacity .8s ease, visibility .8s; }
.gate.leaving { opacity: 0; visibility: hidden; }
.gate-inner { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 24px; }
.gate-brand { font-weight: 800; font-size: clamp(2.8rem, 9vw, 5.2rem); letter-spacing: -.05em; line-height: 1; font-variation-settings: "opsz" 96; }
.gate-line { color: var(--muted); max-width: 32ch; }
.gate-meter { width: min(320px, 70vw); height: 2px; background: var(--line); overflow: hidden; margin-top: 10px; }
.gate-meter span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform .2s linear; }
.gate-pct { font-variant-numeric: tabular-nums; font-weight: 600; }
.gate-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
.gate-enter { font: 600 1rem var(--font); background: var(--accent); color: #FFFFFF; border: 1.5px solid var(--accent); padding: 12px 24px; border-radius: 999px; cursor: pointer; opacity: .35; transition: opacity .3s ease, background .2s ease; }
.gate-enter.quiet { background: transparent; color: var(--ink); border-color: var(--ink); }
.gate.ready .gate-enter { opacity: 1; }
.gate.ready .gate-enter:hover { background: #2238C4; }
.gate.ready .gate-enter.quiet:hover { background: var(--ink); color: var(--paper); }
.gate-enter:disabled { cursor: default; }
.gate-hint { font-size: .85rem; color: var(--muted); }
html.gate-open, html.gate-open body { overflow: hidden; }
