/* Layerpath launch · brand v4 tokens */

@font-face {
  font-family: 'Tiempos Headline';
  src: url('../assets/Tiempos_Headline_Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #f7f6f3;
  --sunken: #f0efea;
  --ink: #1d1e22;
  --ink-soft: rgba(29, 30, 34, 0.62);
  --border: #e0e0db;
  --teal-ui: #13816a;
  --teal-text: #18a185;
  --teal-logo: #41e1c4;
  --ember: #e85d3a;
  --ember-deep: #b23d1f;
  --ember-wash: #fce4da;
  --dark: #141412;

  /* cumulative warmth: 0 = quiet studio, 1 = fully alive. Driven by unlock count + scroll. */
  --warmth: 0;

  --serif: 'Tiempos Headline', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --eyebrow: 'Alumni Sans', var(--sans);

  --col: min(720px, calc(100vw - 48px));
  --spine-gutter: 96px;
  --hero-frame-inset: clamp(20px, 3.333vw, 48px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  /* page-level grade shifts cool to warm with --warmth */
  background-color: var(--cream);
  background-image:
    radial-gradient(1200px 800px at 70% 10%, rgba(232, 93, 58, calc(var(--warmth) * 0.06)), transparent 70%),
    linear-gradient(rgba(29, 30, 34, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 30, 34, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 24px 24px, 24px 24px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.mono {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.eyebrow {
  font-family: var(--eyebrow);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-ui);
}
.eyebrow-ember { color: var(--ember-deep); }

/* ---------- top bar ---------- */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  min-height: 58px;
  box-sizing: border-box;
  background: var(--cream);
  border-bottom: 1px solid rgba(19, 129, 106, 0.16);
  pointer-events: none;
}
.topbar-inner {
  width: calc(100% - (var(--hero-frame-inset) * 2));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-logo { pointer-events: auto; display: block; }
.topbar-logo img { display: block; position: relative; z-index: 1; }
.topbar-status { color: var(--ink-soft); white-space: nowrap; }

/* ---------- chapter index (Editions grammar, our idiom) ---------- */

.chapter-index {
  position: fixed;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transition: opacity 400ms ease-out;
  pointer-events: none;
}
.chapter-index.visible { opacity: 1; pointer-events: auto; }

.ci-act {
  font-family: var(--eyebrow);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 10px 0 4px;
}
.ci-act:first-child { margin-top: 0; }

.ci-day {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-soft);
  text-align: left;
}
.ci-tick {
  display: inline-block;
  width: 12px;
  height: 2px;
  background: var(--border);
  transition: background 150ms ease-out, width 150ms ease-out;
}
.ci-day .ci-label { opacity: 0; transition: opacity 150ms ease-out; white-space: nowrap; }
.ci-day:hover .ci-label, .ci-day.current .ci-label { opacity: 1; }
.ci-day.current .ci-tick { background: var(--ink); width: 20px; }
.ci-day.live .ci-tick { background: var(--ember); }
.ci-day.live { color: var(--ember-deep); }

/* ---------- the spine ---------- */

#spine {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 5;
  pointer-events: none;
  overflow: visible;
}
#spine-trail {
  stroke: var(--ember);
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.45;
}
#spine-dot {
  fill: var(--ember);
  opacity: 0.25;
}
#spine-dot-core {
  fill: var(--ember);
}
#spine.dormant #spine-dot { animation: dormant-breathe 3.2s ease-in-out infinite; transform-origin: center; }
@keyframes dormant-breathe {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.4; }
}
@media (prefers-reduced-motion: reduce) {
  #spine.dormant #spine-dot { animation: none; }
}

/* re-anchor pulse: 220ms travel handled by the dot, 80ms arrival pulse + 40ms fade = ring */
.pulse-ring {
  position: absolute;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  border: 1.5px solid var(--ember);
  border-radius: 50%;
  z-index: 6;
  pointer-events: none;
  animation: reanchor 340ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes reanchor {
  0%   { transform: scale(0.4); opacity: 0; }
  65%  { transform: scale(1.6); opacity: 0.9; }  /* arrival pulse */
  88%  { transform: scale(2.1); opacity: 0.35; }
  100% { transform: scale(2.4); opacity: 0; }    /* fade */
}

/* ---------- hero: cinematic rescue ---------- */

main { position: relative; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  --hero-exit: 0;
  --hero-playback-focus: 0;
  --camera-x: 0px;
  --camera-y: 0px;
  --camera-scale: 1;
  position: relative;
  height: auto;
  min-height: 100svh;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cpath d='M48 43v10M43 48h10' stroke='%2313816a' stroke-opacity='0.16' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 96px 96px;
}

.hero-stage {
  position: relative;
  height: 100svh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-rail {
  position: absolute;
  left: var(--hero-frame-inset);
  right: var(--hero-frame-inset);
  z-index: 4;
  height: 1px;
  background: rgba(19, 129, 106, 0.26);
  pointer-events: none;
}
.hero-rail::before,
.hero-rail::after {
  content: '';
  position: absolute;
  top: -5px;
  width: 11px;
  height: 11px;
  border: solid rgba(19, 129, 106, 0.32);
  border-width: 1px 0 0 1px;
}
.hero-rail::before { left: 0; }
.hero-rail::after { right: 0; transform: rotate(90deg); }
.hero-rail-top { top: 68px; }
.hero-rail-bottom { bottom: 24px; }

.hero-art-shell {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(100% - (var(--hero-frame-inset) * 2));
  max-height: calc(100svh - 40px);
  aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%);
  z-index: 1;
  overflow: hidden;
}

.hero-art-entrance,
.hero-camera,
.hero-plate,
.hero-plate img,
.hero-path,
.hero-node-layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.hero-art-entrance {
  transform: scale(calc(1 - (var(--hero-exit) * 0.02)));
  opacity: calc(1 - (var(--hero-exit) * 0.14));
  filter: contrast(calc(1 - (var(--hero-exit) * 0.06)));
  transform-origin: center;
  will-change: transform, opacity, filter;
}
.hero-camera {
  transform: translate3d(var(--camera-x), var(--camera-y), 0) scale(var(--camera-scale));
  transform-origin: center;
  will-change: transform;
}
.hero-plate img { object-fit: contain; }

.hero-path {
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}
.hero-path-active {
  stroke: var(--ember);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.82;
}
.hero-signal {
  fill: var(--ember);
  stroke: rgba(247, 246, 243, 0.94);
  stroke-width: 5;
  filter: drop-shadow(0 2px 4px rgba(178, 61, 31, 0.3));
}

.hero-node-layer { z-index: 3; pointer-events: none; }
.hero-node {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  border: 2px solid rgba(247, 246, 243, 0.9);
  background: rgba(232, 93, 58, 0.34);
  box-shadow: 0 1px 4px rgba(29, 30, 34, 0.12);
  transition: background 220ms ease-out, transform 220ms ease-out, opacity 220ms ease-out;
}
.hero-node.is-passed { background: rgba(232, 93, 58, 0.72); opacity: 0.66; }
.hero-node.is-current { background: var(--ember); transform: scale(1.35); opacity: 1; }
.hero-node.is-future { opacity: 0.28; }
.hero-node.is-pulsing::after {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid var(--ember);
  border-radius: 50%;
  animation: hero-node-pulse 520ms ease-out forwards;
}
@keyframes hero-node-pulse {
  from { opacity: 0.8; transform: scale(0.7); }
  to { opacity: 0; transform: scale(3); }
}

.hero-inner {
  position: relative;
  z-index: 5;
  width: min(620px, calc(100% - (var(--hero-frame-inset) * 2)));
  text-align: left;
  opacity: calc(1 - (var(--hero-playback-focus) * 0.8) - (var(--hero-exit) * 0.06));
  transform: translateY(calc((var(--hero-playback-focus) * -4px) + (var(--hero-exit) * -18px)));
  transition: opacity 480ms ease-out, transform 260ms ease-out;
}
/* legibility scrim: a soft cream pool behind the copy so the sub and CTAs
   read over the relief plate. Lives inside .hero-inner so it fades with
   the copy during playback and exit. */
.hero-inner::before {
  content: '';
  position: absolute;
  inset: -72px -110px -64px -96px;
  z-index: -1;
  background: radial-gradient(closest-side,
    rgba(247, 246, 243, 0.95) 0%,
    rgba(247, 246, 243, 0.82) 52%,
    rgba(247, 246, 243, 0.42) 76%,
    rgba(247, 246, 243, 0) 100%);
  pointer-events: none;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 5.15vw, 74px);
  line-height: 1.02;
  letter-spacing: 0;
  margin: 14px 0 22px;
}
.hero-title > span { display: block; }
.hero-transform-word { display: inline-block; }
.hero-sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 600px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 154px;
  min-height: 42px;
  color: var(--cream);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 150ms ease-out, border-color 150ms ease-out;
}
.hero-primary:hover { background: var(--ember-deep); border-color: var(--ember-deep); }
.hero-watch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 0;
  border-bottom: 1px solid rgba(19, 129, 106, 0.38);
  background: transparent;
  color: var(--ink);
  padding: 9px 2px 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 180ms ease-out, border-color 180ms ease-out, transform 180ms ease-out;
}
.hero-watch > span:first-child { color: var(--ember-deep); font-size: 10px; }
.hero-watch:hover { color: var(--teal-ui); border-color: var(--teal-ui); }
.hero-watch:focus-visible,
.hero-hud-action:focus-visible { outline: 2px solid var(--teal-ui); outline-offset: 3px; }
.hero-watch.is-cued {
  animation: hero-watch-cue 900ms ease-out;
}
@keyframes hero-watch-cue {
  0%, 100% { transform: translateX(0); color: var(--ink); }
  40% { transform: translateX(3px); color: var(--ember-deep); }
}

.hero-hud {
  position: absolute;
  left: var(--hero-frame-inset);
  top: 88px;
  z-index: 8;
  width: min(340px, calc(100% - (var(--hero-frame-inset) * 2)));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 58px;
  color: var(--ink);
  background: rgba(247, 246, 243, 0.96);
  border: 1px solid rgba(19, 129, 106, 0.42);
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(29, 30, 34, 0.09);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 220ms ease-out, transform 220ms ease-out;
}
.hero.has-playback .hero-hud {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.hero-hud-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
}
.hero-hud-day { color: var(--teal-ui); }
.hero-hud-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
}
.hero-hud-action {
  align-self: stretch;
  min-width: 76px;
  border: 0;
  border-left: 1px solid rgba(19, 129, 106, 0.22);
  background: transparent;
  color: var(--ember-deep);
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .hero-node,
  .hero-node.is-pulsing::after,
  .hero-watch.is-cued { transition: none; animation: none; }
  .hero-art-entrance { transform: none; opacity: 1; filter: none; }
  .hero-camera { transform: none; }
  .hero-inner { opacity: 1; transform: none; transition: none; }
}

/* ---------- what changed: Chrome-simple product clarity before the calendar ---------- */

.launch-overview {
  position: relative;
  z-index: 10;
  width: var(--col);
  max-width: 860px;
  margin: 0 auto;
  padding: 96px 0 92px var(--spine-gutter);
}

.overview-kicker {
  color: var(--teal-ui);
  margin-bottom: 18px;
}

.overview-head {
  max-width: 680px;
  margin-bottom: 28px;
}

.overview-head h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 4.8vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
  margin: 12px 0 18px;
}

.overview-head p:not(.eyebrow) {
  color: var(--ink-soft);
  max-width: 590px;
}

.overview-evidence {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr);
  gap: 14px;
  margin: 34px 0 18px;
  padding: 14px 0;
  border-top: 1px solid rgba(19, 129, 106, 0.34);
  border-bottom: 1px solid rgba(19, 129, 106, 0.34);
}
.overview-evidence figure { min-width: 0; }
.overview-evidence img {
  display: block;
  width: 100%;
  height: 330px;
  object-fit: contain;
  object-position: center;
  background: #101212;
  border: 1px solid rgba(19, 129, 106, 0.24);
}
.overview-evidence figcaption {
  color: var(--ink-soft);
  margin-top: 8px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.overview-item {
  min-height: 168px;
  border: 1px solid rgba(19, 129, 106, 0.22);
  border-radius: 8px;
  background: rgba(247, 246, 243, 0.78);
  padding: 18px 18px 16px;
}

.overview-item.hot {
  border-color: rgba(232, 93, 58, 0.42);
  background: linear-gradient(160deg, rgba(247, 246, 243, 0.9) 50%, rgba(252, 228, 218, 0.8) 150%);
}

.overview-num {
  display: inline-block;
  color: var(--teal-ui);
  margin-bottom: 18px;
}
.overview-item.hot .overview-num { color: var(--ember-deep); }

.overview-item h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: 0;
  margin-bottom: 9px;
}

.overview-item p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ---------- day frames ---------- */

.days {
  position: relative;
  width: var(--col);
  max-width: 680px;
  margin: 0 auto;
  padding: 72px 0 160px var(--spine-gutter);
  z-index: 10;
}

.act-head {
  margin: 96px 0 40px;
}
.act-head:first-child { margin-top: 0; }
.act-head .act-numeral {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 15px;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 2px;
}

.day-frame {
  position: relative;
  margin: 0 0 48px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--cream);
  padding: 26px 28px 24px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease-out, transform 500ms ease-out,
              border-color 300ms ease-out, background 300ms ease-out;
}
.day-frame.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .day-frame { opacity: 1; transform: none; transition: none; }
}

/* locked: cool, still, teal-lined, sealed */
.day-frame.locked { border-color: rgba(19, 129, 106, 0.35); }
.day-frame.locked .day-title { color: var(--ink); opacity: 0.85; }

/* traced: the dot has passed this frame on this scroll */
.day-frame.traced { border-color: rgba(19, 129, 106, 0.6); }

/* live / asset-pending: ember warmth blooms in */
.day-frame.live, .day-frame.asset-pending {
  border-color: rgba(232, 93, 58, 0.45);
  background: linear-gradient(160deg, var(--cream) 55%, var(--ember-wash) 160%);
}

.day-node {
  position: absolute;
  left: calc(-1 * var(--spine-gutter) / 2);
  top: 34px;
  width: 9px; height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  border: 1.5px solid var(--teal-ui);
  background: var(--cream);
  transition: border-color 300ms ease-out, background 300ms ease-out;
}
.day-frame.traced .day-node { background: var(--sunken); }
.day-frame.live .day-node, .day-frame.asset-pending .day-node {
  border-color: var(--ember);
  background: var(--ember);
}

.day-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.day-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--teal-ui);
}
.day-frame.live .day-num, .day-frame.asset-pending .day-num { color: var(--ember-deep); }
.day-kind {
  font-family: var(--eyebrow);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.day-kind.main-path {
  color: var(--teal-ui);
}
.day-kind.field-notes {
  color: var(--ember-deep);
}

.day-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 27px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.day-blurb {
  font-size: 14.5px;
  color: var(--ink-soft);
  max-width: 520px;
}

/* the go-live ceremony: seam cracks along the frame (340ms), ember light
   pours through (680ms), then the artifact rises into place */
.day-frame.ceremony { border-color: var(--ember); overflow: hidden; }
.day-frame.ceremony::before {
  content: '';
  position: absolute;
  left: 0; top: 33px;
  height: 2px; width: 0;
  background: var(--ember);
  animation: seam 340ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes seam {
  70%  { width: 100%; opacity: 1; }
  100% { width: 100%; opacity: 0.35; }
}
.day-frame.ceremony::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(140% 130% at 0% 34px, var(--ember-wash), transparent 62%);
  opacity: 0;
  animation: bloom 680ms ease-out 220ms forwards;
  pointer-events: none;
}
@keyframes bloom { to { opacity: 1; } }
.day-frame.ceremony-in .artifact,
.day-frame.ceremony-in .day-slot {
  animation: rise 500ms ease-out both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
}
@media (prefers-reduced-motion: reduce) {
  .day-frame.ceremony::before, .day-frame.ceremony::after,
  .day-frame.ceremony-in .artifact, .day-frame.ceremony-in .day-slot { animation: none; }
}

/* artifact treatments (live days) */
.artifact { margin-top: 20px; }

.art-note {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.art-note .eyebrow { font-size: 13px; margin-bottom: 12px; display: block; }
.art-note p:not(.eyebrow):not(.art-stamp):not(.art-sign) {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink);
  max-width: 540px;
  margin-bottom: 14px;
}
.art-sign {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 18px;
}

.art-quote blockquote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 24px;
  line-height: 1.35;
  color: var(--ink);
  max-width: 520px;
}

.art-holder { position: relative; }
.art-media img, .art-media video {
  display: block;
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.art-stamp-overlay {
  position: absolute;
  left: 12px;
  bottom: 10px;
  margin: 0;
  color: rgba(247, 246, 243, 0.9);
  background: rgba(20, 20, 18, 0.55);
  padding: 3px 9px;
  border-radius: 4px;
}
.art-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--sunken);
}
.art-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.art-caption {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 11px;
}

.art-stamp {
  margin-top: 14px;
  font-size: 10px;
  color: var(--ink-soft);
}

.day-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  gap: 16px;
}
.day-count { color: var(--teal-ui); }
.day-frame.live .day-count, .day-frame.asset-pending .day-count { color: var(--ember-deep); }
.day-dra {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-soft);
}

/* artifact slot: sealed when locked, player when live, shipped-note when pending */
.day-slot {
  margin-top: 18px;
  border: 1px dashed rgba(19, 129, 106, 0.4);
  border-radius: 8px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
}
.day-frame.live .day-slot, .day-frame.asset-pending .day-slot {
  border-style: solid;
  border-color: rgba(232, 93, 58, 0.4);
}

/* ---------- the close ---------- */

.close {
  position: relative;
  z-index: 10;
  padding: 140px 24px 160px;
  text-align: center;
  background:
    radial-gradient(720px 420px at 50% 30%, rgba(232, 93, 58, 0.10), transparent 70%);
}
.close-inner { max-width: 560px; margin: 0 auto; }
.path-end {
  position: absolute;
  top: 64px;
  left: 50%;
  width: 1px; height: 1px;
}
.close-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.12;
  margin: 18px 0 20px;
}
.close-sub { color: var(--ink-soft); margin-bottom: 36px; }
.close-cta {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  color: var(--cream);
  background: var(--ink);
  border-radius: 8px;
  padding: 13px 28px;
  text-decoration: none;
  transition: background 150ms ease-out;
}
.close-cta:hover { background: var(--ember-deep); }
.close-note { margin-top: 16px; color: var(--ink-soft); }

/* ---------- footer: dark bookend ---------- */

.foot {
  background: var(--dark);
  color: var(--cream);
  padding: 72px 28px 88px;
  text-align: center;
}
.foot-logo { filter: invert(1) hue-rotate(180deg); opacity: 0.9; margin-bottom: 14px; }
.foot-line {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 18px;
  color: rgba(247, 246, 243, 0.75);
}
.foot-stamp {
  margin-top: 40px;
  font-size: 10px;
  color: rgba(247, 246, 243, 0.45);
  text-align: left;
}

/* ---------- narration (the reasoning is the interface) ---------- */

.narration {
  position: fixed;
  left: 28px;
  bottom: 22px;
  z-index: 40;
  color: var(--ink-soft);
  font-size: 11px;
  transition: opacity 200ms ease-out;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .chapter-index { display: none; }
  .narration { display: none; }
  :root { --spine-gutter: 52px; }
  .hero { min-height: 100svh; }
  .hero-stage { min-height: 100svh; }
  .hero-inner { margin-left: 0; }
  .launch-overview {
    max-width: var(--col);
    margin-top: 0;
    padding: 64px 0 76px var(--spine-gutter);
  }
  .overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  :root { --col: calc(100vw - 40px); }
  .topbar { padding: 14px 0; }
  .topbar-status { display: block; font-size: 9px; }
  .hero { height: auto; min-height: auto; }
  .hero,
  .hero-stage {
    width: 100vw;
    max-width: 100vw;
  }
  .hero-stage {
    position: relative;
    top: auto;
    height: auto;
    min-height: 100svh;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 116px 0 112px;
    overflow: hidden;
  }
  .hero-inner {
    width: calc(100vw - (var(--hero-frame-inset) * 2));
    max-width: none;
    margin: 0 auto;
    text-align: left;
  }
  .hero-title {
    font-size: 32px;
    line-height: 1.05;
    margin: 12px 0 16px;
  }
  .hero-sub {
    font-size: 14px;
    line-height: 1.55;
    max-width: 350px;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 8px;
    margin-top: 16px;
  }
  .hero-primary { min-width: 148px; }
  .hero-watch { min-height: 36px; }
  .hero-art-shell {
    position: absolute;
    left: 50%;
    top: 60%;
    width: 182vw;
    min-width: 670px;
    max-width: 760px;
    max-height: none;
    aspect-ratio: 16 / 9;
    transform: translate(-50%, -50%);
    margin: 0;
  }
  /* copy sits above the plate on mobile: give it a taller, softer pool */
  .hero-inner::before {
    inset: -110px -48px -72px -48px;
    background: radial-gradient(closest-side,
      rgba(247, 246, 243, 0.96) 0%,
      rgba(247, 246, 243, 0.88) 58%,
      rgba(247, 246, 243, 0.5) 80%,
      rgba(247, 246, 243, 0) 100%);
  }
  .hero-hud {
    position: fixed;
    left: var(--hero-frame-inset);
    top: auto;
    bottom: 20px;
    width: calc(100vw - (var(--hero-frame-inset) * 2));
    min-height: 58px;
    transform: translateY(6px);
    margin: 0;
  }
  .hero.has-playback .hero-hud {
    transform: none;
  }
  .hero-rail-top { top: 52px; }
  .hero-rail-bottom { bottom: 8px; }
  .overview-evidence { grid-template-columns: 1fr; }
  .overview-evidence img { height: auto; max-height: 420px; }
  .overview-grid { grid-template-columns: 1fr; }
  .day-frame { padding: 20px 18px 18px; }
  .day-foot { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; min-height: 100svh; }
  .hero-stage { position: relative; top: auto; height: auto; min-height: 100svh; }
}

/* ---------- people hero (v=people-hero-1): the collage is the page ---------- */

.hero {
  height: auto;
  min-height: 0;
  padding: 58px 0 0;
}
.hero-stage {
  position: relative;
  top: auto;
  height: auto;
  min-height: calc(100svh - 58px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 16px 0 6px;
}
.hero-rail-top { top: 8px; }
.hero-inner {
  width: min(720px, calc(100% - 48px));
  text-align: center;
  opacity: 1;
  transform: none;
}
.hero-inner::before { content: none; }
.hero-title {
  font-size: clamp(40px, 4.6vw, 62px);
  margin: 8px 0 6px;
}
.hero-sub {
  margin: 0 auto;
  font-size: 17px;
}
.hero-actions {
  justify-content: center;
  margin-top: 16px;
}
.hero-scroll-cue {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(19, 129, 106, 0.38);
  padding: 9px 2px 8px;
  transition: color 180ms ease-out, border-color 180ms ease-out;
}
.hero-scroll-cue:hover { color: var(--teal-ui); border-color: var(--teal-ui); }
.hero-launch-status {
  margin-top: 10px;
  color: var(--ink-soft);
}
.hero-art {
  width: min(1400px, calc(100% - 24px));
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-art canvas {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  /* the whole hero fits one viewport: art takes what the headline leaves */
  max-height: calc(100svh - 400px);
  min-height: 300px;
}
.hero-art-hint {
  text-align: center;
  color: var(--ink-soft);
  font-size: 10px;
  margin: 2px 0 6px;
}

/* day-0 letter link */
.art-link { margin-top: 16px; }
.art-link a {
  color: var(--ember-deep);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 93, 58, 0.4);
  padding-bottom: 2px;
}
.art-link a:hover { border-color: var(--ember-deep); }

/* changelog strip */
.changelog-strip {
  position: relative;
  z-index: 10;
  width: var(--col);
  max-width: 680px;
  margin: 0 auto;
  padding: 30px 0 30px var(--spine-gutter);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.changelog-strip .mono { color: var(--ink-soft); margin-bottom: 6px; }
.changelog-strip a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(19, 129, 106, 0.38);
  padding-bottom: 2px;
}
.changelog-strip a:hover { color: var(--teal-ui); }

.close-note a { color: var(--ember-deep); }

@media (max-width: 560px) {
  .hero { padding-top: 78px; }
  .hero-stage { padding: 24px 0 4px; position: relative; height: auto; min-height: 0; }
  .hero-inner { text-align: center; margin: 0 auto; }
  .hero-title { font-size: 38px; }
  .hero-actions { grid-template-columns: 1fr; justify-items: center; display: grid; }
  .hero-art { width: calc(100% - 8px); }
  .hero-art-hint { display: none; }
}


/* overview day cards are links */
.overview-days .overview-item {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 160ms ease-out, transform 160ms ease-out;
  min-height: 150px;
}
.overview-days .overview-item:hover {
  border-color: rgba(19, 129, 106, 0.6);
  transform: translateY(-2px);
}
.overview-days .overview-num { margin-bottom: 12px; }
@media (max-width: 560px) {
  .hero-art canvas { max-height: none; width: 100%; }
  .hero-stage { min-height: 0; }
}
