.hero-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(650px,100svh,1090px);
  overflow: hidden;
  overflow: clip;
  background: var(--paper);
}
.hero-scenery {
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: min(92%,55vw);
  mask-image: linear-gradient(to bottom, transparent, #000 22%);
  overflow: hidden;
  pointer-events: none;
}
.scene-landscape {
  position: absolute;
  inset: auto -1% -15px;
  width: 102%;
  height: 105%;
  display: block;
  object-fit: cover;
  object-position: right bottom;
}
.hero-inner {
  width: min(870px,91%);
  margin-inline: auto;
  padding-block: 120px clamp(210px,28svh,310px);
  text-align: center;
}
.hero-inner h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(4.8rem,7.65vw,7.4rem);
  line-height: .975;
  letter-spacing: -.073em;
  font-weight: 480;
}
.hero-inner h1 .line-mask:last-child { color: #c3c8d0; }
.hero-inner p {
  max-width: 400px;
  margin: clamp(23px,2.7vh,32px) auto 26px;
  color: var(--muted);
  font-size: clamp(1.025rem,1.25vw,1.17rem);
  line-height: 1.58;
  text-wrap: pretty;
}
.chapter-link {
  position: absolute;
  bottom: clamp(17px,3.2vh,34px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 4px 12px;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: .85rem;
  white-space: nowrap;
  text-shadow: 0 1px 6px #050505;
}
.chapter-link::after { content: ''; width: 1px; height: 26px; background: linear-gradient(#e4e6eaa1,#e4e6ea2b); transform-origin: top; transition: transform .2s; }
.chapter-link:hover::after { transform: scaleY(1.2); }
.home-body { padding-block: clamp(75px,8vw,128px) clamp(68px,8vw,125px); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.section h2 { margin: 0; font-weight: 500; font-size: clamp(2.25rem,4.05vw,4.25rem); letter-spacing: -.06em; line-height: 1.06; }
#process-title { scroll-margin-top: 122px; }
#process-title:focus { outline: 0; }
/* The illustration, thread and caption share each column's center line. */
.flow-story {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  background: var(--panel);
  border-block: 1px solid var(--line);
}
.flow-story::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 12%;
  right: 2.4%;
  width: 6px;
  height: 6px;
  background: #c4cad31c;
  box-shadow: -22px 20px #b2bac614, 12px 44px #b2bac629, -42px 5px #b2bac60e,
    -76px 32px #b2bac615, -55px 55px #b2bac60d, 4px 88px #b2bac61d,
    -24px 118px #b2bac613, -100px -12px #b2bac613, 17px 147px #b2bac60f;
}
.flow-story::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 38%;
  background: url('/art/elysian-bay.webp') right 86% / cover no-repeat;
  opacity: .14;
  mask-image: linear-gradient(transparent, black 72%);
}
.flow-wrap { padding-block: clamp(73px,7.5vw,120px) clamp(70px,7vw,113px); }
.flow-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 25px; }
.flow-kicker {
  display: flex; align-items: center; gap: 9px; margin: 0 0 17px;
  color: var(--muted); font: 500 .78rem/1.5 ui-monospace,monospace; letter-spacing: .1em; text-transform: uppercase;
}
.flow-kicker::before { content: ''; width: 5px; height: 5px; background: var(--ice); }
.flow-heading h2 { font-size: clamp(2.55rem,4.2vw,4.4rem); font-weight: 455; letter-spacing: -.063em; line-height: 1.02; }
.flow-actions { display: flex; gap: clamp(16px,2vw,30px); align-items: center; }
.flow-control {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 91px; min-height: 40px;
  padding: 7px 14px; color: var(--accent); font-size: .88rem; font-weight: 500;
  background: #191a1c; border: 1px solid #a9adb442; border-radius: 100px;
  transition: background .2s,border-color .2s;
}
.flow-control:hover { background: var(--surface); border-color: #c5cbd375; }
.flow-control[hidden], .flow-control svg path { display: none; }
.flow-control[data-action="play"] .play-icon, .flow-control[data-action="pause"] .pause-icon { display: inline; }
.flow-track { --art-height: clamp(143px,15.5vw,193px); position: relative; margin-top: clamp(42px,4.1vw,65px); }
.flow-stages { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(15px,2.2vw,36px); }
.flow-visual { height: var(--art-height); display: grid; place-items: center; }
.flow-visual .flow-art { display: block; width: 100%; height: 100%; max-width: 268px; }
.flow-track > .flow-thread { position: absolute; pointer-events: none; inset: calc(var(--art-height) - 7px) 0 auto; width: 100%; height: clamp(30px,3.1vw,42px); }
.flow-caption { margin-top: clamp(46px,5vw,74px); }
.flow-index { display: flex; align-items: center; gap: 9px; width: 100%; color: #a7aeb6; font: 500 .79rem/1 ui-monospace,monospace; font-variant-numeric: tabular-nums; }
.flow-index::after { content: ''; width: 100%; height: 2px; background: repeating-linear-gradient(to right,#a7aeb662 0 3px,transparent 3px 8px); }
.flow-step.is-playing .flow-index,.flow-step.is-done .flow-index { color: var(--ice); }
.flow-step.is-playing .flow-index::after,.flow-step.is-done .flow-index::after { background: repeating-linear-gradient(to right,#c5d5e8ac 0 3px,transparent 3px 8px); }
.flow-caption h3 { margin: 20px 0 8px; font-size: clamp(1.12rem,1.55vw,1.55rem); font-weight: 500; line-height: 1.2; letter-spacing: -.04em; }
.flow-caption p { margin: 0; max-width: 31ch; line-height: 1.58; color: var(--muted); font-size: .98rem; }
.metrics-strip { margin: clamp(30px,4vw,56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(18px,2.8vw,42px); }
.metric { display: flex; flex-direction: column-reverse; gap: 10px; border-top: 1px solid var(--line); padding-top: 22px; }
.metric dd { margin: 0; font-size: clamp(2.2rem,3.45vw,3.6rem); font-weight: 430; letter-spacing: -.06em; line-height: 1; font-variant-numeric: tabular-nums; }
.metric dt { font-size: .9rem; color: var(--muted); }
.activity-feed { border-block: 1px solid var(--line); margin-top: clamp(31px,3.3vw,53px); padding-block: 21px; display: grid; grid-template-columns: 1fr 3.28fr; gap: 18px; align-items: baseline; }
.activity-feed h3 { margin: 0; font-size: 1rem; font-weight: 550; }
#home-feed { min-width: 0; color: var(--muted); font-size: .95rem; }
.feed { margin: 0; padding: 0; list-style: none; }
.feed li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.feed li + li { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.feed a { color: var(--highlight); text-underline-offset: 3px; }
@media(max-width:700px) {
  .hero-stage { min-height: max(605px,100svh); }
  .hero-inner { padding-block: 112px clamp(193px,30svh,330px); }
  .hero-inner h1 { font-size: clamp(2.2rem,12.3vw,5.15rem); }
  .hero-inner p { max-width: min(315px,86%); margin: 21px auto 23px; line-height: 1.55; }
  .hero-scenery { height: 47%; }
  .scene-landscape { object-position: 100% bottom; }
  .chapter-link { bottom: 16px; }
  .chapter-link::after { height: 19px; }
  .section-heading .quiet-link { font-size: .86rem; flex-shrink: 0; }
  .metrics-strip { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 23px 20px; }
  .metric { padding-top: 15px; gap: 7px; }
  .activity-feed { grid-template-columns: 1fr; gap: 8px; }
  #process-title { scroll-margin-top: 112px; }
}
@media(max-height:550px) and (min-width:701px) {
  .hero-stage { min-height: 560px; }
  .hero-inner { padding-block: 130px 90px; }
  .hero-inner h1 { font-size: min(10vh,5rem); }
}

@media(max-width:760px) {
  .flow-wrap { padding-block: 68px 54px; }
  .flow-heading { align-items: flex-start; flex-direction: column; gap: 19px; }
  .flow-kicker { margin-bottom: 14px; }
  .flow-track { margin-top: 28px; }
  .flow-track > .flow-thread { display: none; }
  .flow-stages { grid-template-columns: 1fr; gap: 0; }
  .flow-step { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(14px,4vw,32px); padding: 22px 0; align-items: center; border-top: 1px solid var(--line); }
  .flow-visual { height: auto; aspect-ratio: 240 / 165; }
  .flow-caption { margin: 0; }
  .flow-caption h3 { margin: 8px 0 5px; font-size: clamp(1.1rem,4.2vw,1.45rem); }
  .flow-caption p { font-size: .92rem; line-height: 1.48; }
  .flow-story::before { opacity: .55; }.flow-story::after { height: 16%; opacity: .09; }
}

@media(max-width:380px) {
  .flow-heading h2 { font-size: clamp(1.85rem,10.2vw,2.4rem); }
}

.hero-launch-actions {display:flex;justify-content:center;align-items:center;gap:16px 20px;flex-wrap:wrap;}
.hero-launch-actions .quiet-link {font-size:.88rem;}
.reach-note {color:var(--muted);font-size:.87rem;line-height:1.5;margin:20px 0 0;}
@media(max-width:480px){.hero-launch-actions{flex-direction:column;gap:12px;}}
.official-home {font-size:.9rem;line-height:1.5;margin:12px 0 0;}
.official-home a {color:var(--ink);text-underline-offset:3px;text-decoration-color:var(--line);}
.official-home span {color:var(--muted);}
.official-home:empty {display:none;}
