/* Page sections. Start states for animations live in js/; without JS or with reduced motion
   every section renders as a normal, fully visible page. */

/* ---------- Logo (Barlow wordmark: "Ne" outlined, "xt" solid, ijb badge) ---------- */
.brand {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  padding-right: 18px;
  line-height: 1;
}

.logo-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 40px;
  line-height: 0.9;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-ne {
  color: transparent;
  -webkit-text-stroke: 1.2px var(--color-lime);
}

.logo-xt {
  color: var(--color-white);
}

.logo-badge {
  position: absolute;
  top: -6px;
  right: 0;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--color-lime);
  color: var(--color-on-lime);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 8px;
  letter-spacing: 0;
}

.brand-large .logo-word {
  font-size: clamp(64px, 10vw, 140px);
}

.brand-large .logo-ne {
  -webkit-text-stroke-width: 2px;
}

.brand-large {
  padding-right: clamp(28px, 4vw, 52px);
}

.brand-large .logo-badge {
  width: clamp(26px, 3.4vw, 46px);
  height: clamp(26px, 3.4vw, 46px);
  font-size: clamp(12px, 1.5vw, 20px);
  top: clamp(-10px, -1vw, -4px);
}

/* ---------- Intro ---------- */
.intro {
  display: none;
}

.motion .intro {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: var(--color-night);
  overflow: hidden;
}

.intro-glow {
  position: absolute;
  width: min(90vw, 900px);
  aspect-ratio: 1;
  background: var(--gradient-glow);
  filter: blur(60px);
  opacity: 0.35;
}

.intro-logo {
  position: relative;
  padding-right: clamp(34px, 5vw, 64px);
}

.intro-logo .logo-word {
  display: inline-block;
  font-size: clamp(96px, 18vw, 260px);
}

.intro-logo .logo-ne {
  -webkit-text-stroke-width: 2.5px;
}

.intro-logo .logo-badge {
  width: clamp(30px, 4.5vw, 64px);
  height: clamp(30px, 4.5vw, 64px);
  font-size: clamp(13px, 2vw, 28px);
  top: clamp(-14px, -1.2vw, -6px);
  box-shadow: var(--shadow-glow);
}

.intro-meta {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(24px, 6vh, 56px);
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--color-text-muted);
}

.intro-line {
  flex: 1;
  height: 1px;
  background: var(--color-line);
  overflow: hidden;
}

.intro-line-fill {
  display: block;
  height: 100%;
  background: var(--color-lime);
  transform-origin: left center;
  transform: scaleX(0);
}

.intro-count {
  min-width: 3ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-height);
  padding-inline: var(--gutter);
}

/* The header has no bar: logo, menu and button float over the page. Once you scroll, a soft fade with a progressive
   blur (strong at the top, fading out, no edge) keeps them readable when titles scroll underneath: dark over the
   dark chapters, light over the light ones (html.on-light, set in js/main.js). Solid bars in black, blue, green or
   grey all fought with the black-green chapters. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0 0 -48px;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(8, 12, 14, 0.88) 0%, rgba(8, 12, 14, 0.6) 55%, rgba(8, 12, 14, 0) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent);
  mask-image: linear-gradient(to bottom, #000 50%, transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base);
}

html.on-light .site-header::before {
  background: linear-gradient(
    to bottom,
    rgba(247, 250, 244, 0.96) 0%,
    rgba(247, 250, 244, 0.7) 55%,
    rgba(247, 250, 244, 0) 100%
  );
}

/* The phone bar at the bottom does need a surface: grey glass, light glass over the light chapters. */
:root {
  --bar-glass: rgba(30, 34, 35, 0.82);
  --bar-glass-solid: rgba(44, 49, 50, 0.96); /* pop-up list on phones: needs to stay readable */
}

/* Over light chapters: navy text and the logo for light backgrounds ("xt" in IJB blue). */
html.on-light {
  --bar-glass: rgba(247, 250, 244, 0.84);
  --bar-glass-solid: rgba(247, 250, 244, 0.97);
}

html.on-light :is(.site-header, .stepper) {
  --color-text: var(--color-navy);
  --color-text-muted: rgba(18, 41, 65, 0.7);
  --color-line: rgba(18, 41, 65, 0.14);
  --color-line-strong: rgba(18, 41, 65, 0.25);
  color: var(--color-text);
}

html.on-light .site-header .logo-xt {
  color: var(--color-navy);
}

.site-header .logo-xt {
  transition: color var(--duration-base);
}

.site-header.is-scrolled::before {
  opacity: 1;
}

/* Menu: plain Barlow links. It stays visible while you scroll and works as the stepper: the part you are
   reading shows a thin track with a lime fill (--fill, set by js/stepper.js), parts you have passed turn white. */
.site-nav {
  display: flex;
  gap: clamp(20px, 2.4vw, 40px);
  transition:
    opacity var(--duration-base),
    visibility 0s;
}

.site-nav a {
  position: relative;
  padding-block: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--size-button);
  color: var(--color-text-muted);
  transition: color var(--duration-fast);
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--color-lime);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--duration-base) var(--ease-out);
}

.site-nav a:hover,
.site-nav a.is-passed,
.site-nav a.is-active {
  color: var(--color-text);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.site-nav a.is-active::after {
  transform: scaleX(1);
  background: linear-gradient(
    to right,
    var(--color-lime) calc(var(--fill, 0) * 100%),
    var(--color-line-strong) calc(var(--fill, 0) * 100%)
  );
}

.site-header .button {
  min-height: 42px;
  padding: 10px 20px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-content: end;
  padding-top: calc(var(--header-height) + 80px);
  padding-bottom: clamp(88px, 14vh, 150px);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(170deg, var(--tone-6) 0%, var(--color-night) 75%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 40%;
  opacity: 0.38;
  filter: grayscale(0.35) contrast(1.05);
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--color-night) 0%, rgba(8, 12, 14, 0.55) 45%, rgba(8, 12, 14, 0.2) 100%),
    linear-gradient(to right, rgba(8, 12, 14, 0.7), transparent 70%);
}

.hero-glow {
  position: absolute;
  z-index: -2;
  right: -18vw;
  bottom: -38vw;
  width: 85vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gradient-glow);
  filter: blur(50px);
  opacity: 0.75;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--color-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-line) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse at 30% 70%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 70%, black, transparent 70%);
}

.hero-title {
  display: grid;
}

.hero-line {
  display: block;
}

.hero-aside {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 64px;
  margin-top: clamp(32px, 6vh, 64px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 20px;
  display: grid;
  justify-items: center;
  gap: 10px;
  transform: translateX(-50%);
  color: var(--color-text-dim);
}

.scroll-cue-line {
  position: relative;
  width: 1px;
  height: 44px;
  background: var(--color-line);
  overflow: hidden;
}

.scroll-cue-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-lime);
  animation: scroll-cue 2.2s var(--ease-out) infinite;
}

@keyframes scroll-cue {
  0% {
    transform: translateY(-100%);
  }
  60%,
  100% {
    transform: translateY(100%);
  }
}

/* ---------- Shared section bits ---------- */

section {
  position: relative;
}

/* ---------- Chapter tones ----------
   Every chapter is a step lighter than the one above it. The dark chapters follow the brand gradient:
   from black to deep green, with a lime glow that grows a little per chapter; the last chapters are daylight.
   Each section fades in from the tone above it, so the steps feel gradual instead of one long gradient. */
.problem {
  --tone: var(--tone-1);
  --tone-prev: var(--tone-1);
}
.idea {
  --tone: var(--tone-2);
  --tone-prev: var(--tone-1);
  --glow: 0.07;
  --glow-at: 50% 45%;
}
.chain {
  --tone: var(--tone-3);
  --tone-prev: var(--tone-2);
  --glow: 0.08;
  --glow-at: 8% 0%;
}
.statement {
  --tone: var(--tone-4);
  --tone-prev: var(--tone-3);
  --glow: 0.1;
  --glow-at: 50% 55%;
}
.engine {
  --tone: var(--tone-5);
  --tone-prev: var(--tone-4);
  --glow: 0.13;
  --glow-at: 22% 45%;
}
.value {
  --tone: var(--tone-6);
  --tone-prev: var(--tone-5);
  --glow: 0.16;
  --glow-at: 88% 4%;
}
/* The step from dark to light happens below the photo (see .value::after), so the light chapters start clean. */
.audience {
  --tone: var(--tone-7);
  --tone-prev: var(--tone-7);
  --glow: 0.12;
  --glow-at: 100% 30%;
}
.roadmap {
  --tone: var(--tone-8);
  --tone-prev: var(--tone-7);
  --glow: 0.1;
  --glow-at: 0% 100%;
}
.start {
  --tone: var(--tone-9);
  --tone-prev: var(--tone-8);
}

:is(.problem, .idea, .chain, .statement, .engine, .value, .audience, .roadmap, .start) {
  isolation: isolate;
  background-color: var(--tone);
  background-image: radial-gradient(
    70% 55% at var(--glow-at, 80% 10%),
    rgba(133, 236, 0, var(--glow, 0)),
    transparent 72%
  );
}

:is(.problem, .idea, .chain, .statement, .engine, .value, .audience, .roadmap, .start)::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: var(--tone-blend, 200px);
  background: linear-gradient(var(--tone-prev), transparent);
  pointer-events: none;
}

/* ---------- 01 Problem / handover ---------- */
.problem {
  padding-top: clamp(120px, 22vh, 240px);
}

.problem-statement {
  max-width: 15em;
}

.handover {
  margin-top: clamp(40px, 8vh, 96px);
}

.motion .handover {
  height: 340vh;
}

.handover-sticky {
  display: flex;
  align-items: center;
  min-height: 80vh;
}

.motion .handover-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
}

.handover-inner {
  position: relative;
}

.handover-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(48px, 9vh, 96px);
}

.handover-counter {
  display: grid;
  justify-items: end;
  gap: 4px;
  color: var(--color-text-muted);
}

.handover-count {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(4rem, 3rem + 5vw, 9rem);
  line-height: 0.85;
  color: var(--color-lime);
  font-variant-numeric: tabular-nums;
}

.handover-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.handover-track::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--color-line-strong) 0 10px, transparent 10px 18px);
}

.handover-node {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
}

.handover-dot {
  position: relative;
  width: 15px;
  height: 15px;
  border: 1px solid var(--color-line-strong);
  border-radius: 50%;
  background: var(--color-night);
}

.handover-node.is-active .handover-dot {
  border-color: var(--color-lime);
  background: var(--color-lime);
  box-shadow: 0 0 0 8px var(--color-lime-soft);
}

.handover-note {
  max-width: 14em;
  color: var(--color-text-muted);
  font-size: clamp(1rem, 0.9rem + 0.35vw, 1.25rem);
  line-height: 1.35;
}

.handover-doc {
  position: absolute;
  top: 0;
  left: 0;
  width: 52px;
  pointer-events: none;
  display: none;
}

.motion .handover-doc {
  display: block;
}

.handover-doc svg {
  width: 100%;
  stroke: var(--color-lime);
  stroke-width: 2;
  filter: drop-shadow(0 0 14px var(--color-lime-glow));
}

.handover-doc svg path:first-child {
  fill: var(--color-night);
}

.problem-quote {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: end;
  gap: 32px 80px;
  padding-block: clamp(96px, 18vh, 200px);
}

.problem-quote .title {
  max-width: 12em;
}

/* ---------- 02 Idea / convergence ---------- */
.idea {
  padding-bottom: clamp(96px, 16vh, 180px);
  overflow: clip;
}

.idea-sticky {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding-block: 120px;
}

.motion .idea-stage {
  height: 320vh;
}

.motion .idea-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  padding-block: 0;
}

.idea-fragments {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 720px;
  padding-inline: var(--gutter);
  margin-bottom: 40px;
}

.motion .idea-fragments {
  position: absolute;
  inset: 0;
  max-width: none;
  margin: 0;
  padding: 0;
}

.fragment {
  padding: 10px 16px;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* Positions are CSS variables in vw/vh, so they follow the viewport without recalculation. */
.motion .fragment {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) translate(calc(var(--fx, 0) * 1vw), calc(var(--fy, 0) * 1vh))
    rotate(calc(var(--fr, 0) * 1deg)) scale(var(--fs, 1));
}

.idea-core {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.idea-orbits {
  position: absolute;
  width: min(92vw, 760px);
  stroke: var(--color-lime);
  stroke-width: 1;
  opacity: 0.55;
}

.idea-orb {
  position: absolute;
  width: clamp(120px, 18vw, 220px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 30%,
    #d8ff9a,
    var(--color-lime) 35%,
    rgba(133, 236, 0, 0.15) 70%,
    transparent 72%
  );
  box-shadow:
    0 0 80px rgba(133, 236, 0, 0.55),
    0 0 220px rgba(133, 236, 0, 0.25);
}

.idea-copy {
  position: relative;
  z-index: 2;
  text-align: center;
}

.idea-title {
  display: grid;
  justify-items: center;
}

.idea-title-line {
  display: block;
}

.idea-text {
  display: grid;
  gap: clamp(32px, 6vh, 64px);
  padding-top: clamp(64px, 10vh, 120px);
}

.idea-text > .title {
  max-width: 22em;
}

.idea-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 64px;
  max-width: 980px;
  margin-left: auto;
}

/* ---------- 03 Chain: one scene for the five steps (js/story.js) ---------- */
.chain {
  padding-top: clamp(96px, 16vh, 180px);
}

.chain-intro {
  display: grid;
  gap: 24px;
  padding-bottom: clamp(48px, 8vh, 96px);
}

.chain-intro .title {
  max-width: 12em;
}

/* Without motion the steps are a plain list next to a still of the approved model (no JS: the list only). */
.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding-bottom: clamp(80px, 14vh, 160px);
}

.story-number {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(5rem, 3rem + 6vw, 10rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}

.story-steps {
  display: grid;
  gap: 4px;
  border-left: 1px solid var(--color-line);
}

.story-steps li {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 14px 0 14px 24px;
}

.story-steps .text-muted {
  font-size: 1rem;
}

.story-stage {
  position: relative;
  aspect-ratio: 10 / 7;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 60% at 50% 45%, rgba(133, 236, 0, 0.1), transparent 70%),
    linear-gradient(var(--color-line) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--color-line) 1px, transparent 1px) 0 0 / 40px 40px,
    rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

html:not(.js) .story-stage,
html:not(.motion) .story-number {
  display: none;
}

/* With motion: the story is tall and its content sticky; the scene and the active step follow the scroll. */
.motion .story {
  position: relative;
  height: 900vh;
}

.motion .story-sticky {
  position: sticky;
  top: 0;
  display: grid;
  align-items: center;
  height: 100vh;
  height: 100svh;
  padding-top: var(--header-height);
  overflow: hidden;
}

.motion .story-layout {
  padding-bottom: 0;
}

.motion .story-steps li {
  opacity: 0.35;
  transition: opacity var(--duration-base);
}

.motion .story-steps li::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: var(--color-lime);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--duration-base) var(--ease-out);
}

.motion .story-steps .text-muted {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-base) var(--ease-out);
}

.motion .story-steps li.is-done {
  opacity: 0.6;
}

.motion .story-steps li.is-active {
  opacity: 1;
}

.motion .story-steps li.is-active::before {
  transform: scaleY(1);
}

.motion .story-steps li.is-active .text-muted {
  max-height: 8em;
}

.motion .story-stage {
  aspect-ratio: auto;
  height: min(calc(100svh - var(--header-height) - 48px), 720px);
}

.story-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Scene drawing */
.story-scene path {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sc-ground {
  fill: rgba(133, 236, 0, 0.03);
  stroke: var(--color-line-strong);
  stroke-width: 1;
  stroke-dasharray: 4 8;
}

/* --edge and --edge-a are set per frame: lime for the digital model, light grey for concrete. */
.sc-beam {
  stroke: var(--edge, rgba(244, 247, 241, 0.7));
  stroke-opacity: var(--edge-a, 1);
  stroke-width: 1.1;
}

.sc-poured {
  stroke: rgba(244, 247, 241, 0.7);
  stroke-width: 1.1;
}

.sc-pile {
  stroke: url(#pile-stroke);
  stroke-width: 1.4;
}

.story-scene .sc-pile:not(.sc-top) {
  fill: url(#pile-fill);
}

/* The part of a pile that is still above ground while it is driven in: solid, no fade. */
.story-scene .sc-pile-up {
  stroke: var(--color-lime);
}

.story-scene .sc-pile-up:not(.sc-top) {
  fill: #16251a;
}

.sc-top {
  fill: #1c2d1f;
}

.sc-x {
  fill: #131f16;
}

.sc-y {
  fill: #0e1811;
}

/* The part being checked in step 2 lights up. */
.story-scene .sc-hl {
  fill: var(--color-lime);
  stroke: var(--color-lime);
  stroke-width: 1.6;
}

.sc-outline {
  fill: none;
  stroke: rgba(244, 247, 241, 0.55);
  stroke-width: 1.2;
  stroke-dasharray: 5 6;
}

/* Bars get thinner when the camera is far away (--k, set per frame). */
.story-scene [data-layer='cage'] {
  filter: drop-shadow(0 0 3px rgba(133, 236, 0, 0.35));
}

.sc-stirrup {
  fill: none;
  stroke: rgba(244, 247, 241, 0.6);
  stroke-width: calc(var(--k, 1) * 1.3px);
}

.sc-bar {
  fill: none;
  stroke: var(--bar, var(--color-lime));
  stroke-width: calc(var(--k, 1) * 2.2px);
}

/* Overlays per step (shown by the timeline) */
.story-stage .ov {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ov-tick {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d1f05' stroke-width='3'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
      center / 14px no-repeat,
    var(--color-lime);
}

/* Step 1: a desktop computer; the IFC file icon beside it is dragged into the drop zone on the screen. All parts
   are placed in % of the desk box, so the drag (left/top in %) stays right at any size. */
.story-stage .ov-desktop {
  inset: 0;
  display: grid;
  place-items: center;
}

.ov-desk {
  position: relative;
  width: min(86%, 640px);
  aspect-ratio: 16 / 11;
  container-type: inline-size;
}

.ov-monitor {
  position: absolute;
  left: 9.4%;
  top: 2.3%;
  width: 68.75%;
  height: 65.9%;
  padding: 1.6cqw;
  border: 1.5px solid var(--color-line-strong);
  border-radius: 2.4cqw;
  background: rgba(8, 12, 14, 0.9);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.ov-screen {
  position: relative;
  height: 100%;
  border-radius: 1cqw;
  background: radial-gradient(80% 70% at 50% 30%, rgba(133, 236, 0, 0.12), transparent 70%), var(--color-night);
  overflow: hidden;
}

.ov-window {
  position: absolute;
  inset: 8% 7%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1.4cqw;
  padding-bottom: 1.4cqw;
  border: 1px solid var(--color-line-strong);
  border-radius: 1.2cqw;
  background: rgba(14, 23, 18, 0.95);
}

.ov-window-bar {
  display: flex;
  align-items: center;
  gap: 0.8cqw;
  padding: 1.1cqw 1.6cqw;
  border-bottom: 1px solid var(--color-line);
  font-weight: 600;
  font-size: clamp(8px, 1.9cqw, 13px);
  color: var(--color-text-muted);
}

.ov-window-bar > span {
  width: 1.1cqw;
  height: 1.1cqw;
  border-radius: 50%;
  background: var(--color-line-strong);
}

.ov-window-bar b {
  overflow: hidden;
  margin-left: 0.8cqw;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ov-window-sep {
  margin-inline: clamp(6px, 2.6cqw, 18px);
  font-weight: 400;
  color: var(--color-text-dim);
}

.ov-drop {
  display: grid;
  place-items: center;
  margin: 0 1.6cqw;
  border: 1.5px dashed var(--color-line-strong);
  border-radius: 1cqw;
}

.ov-drop-text {
  font-weight: 600;
  font-size: clamp(9px, 2.3cqw, 15px);
}

.ov-window-foot {
  display: flex;
  align-items: center;
  gap: 1.6cqw;
  min-height: 3.2cqw;
  padding: 0 1.6cqw;
}

.ov-progress {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--color-line);
  overflow: hidden;
}

.ov-progress-fill {
  display: block;
  height: 100%;
  background: var(--color-lime);
  transform-origin: left center;
}

.ov-received {
  display: flex;
  align-items: center;
  gap: 0.8cqw;
  font-weight: 600;
  font-size: clamp(8px, 1.9cqw, 13px);
  white-space: nowrap;
}

.ov-received .ov-tick {
  width: clamp(12px, 2.6cqw, 20px);
  height: clamp(12px, 2.6cqw, 20px);
  background-size: 62%, auto;
}

.ov-stand {
  position: absolute;
  left: 31.25%;
  top: 68.2%;
  width: 25%;
  height: 16%;
  overflow: visible;
}

.ov-stand path,
.ov-stand rect {
  fill: rgba(8, 12, 14, 0.9);
  stroke: var(--color-line-strong);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

/* The file icon starts beside the monitor (left/top are tweened; xPercent/yPercent centre it). */
.ov-file {
  position: absolute;
  left: 88%;
  top: 70%;
  display: grid;
  justify-items: center;
  gap: 0.6cqw;
  width: 9cqw;
  min-width: 34px;
}

.ov-file-icon {
  width: 100%;
  overflow: visible;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5));
}

.ov-file-sheet {
  fill: var(--color-deep);
  stroke: var(--color-text-muted);
  stroke-width: 1.5;
}

.ov-file-fold,
.ov-file-lines {
  fill: none;
  stroke: var(--color-text-muted);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ov-file-tag {
  fill: var(--color-lime);
}

/* The file type keeps the tracked capitals of the labels. */
.ov-file-type {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 8px;
  letter-spacing: 0.08em;
  fill: var(--color-on-lime);
}

.ov-file-name {
  padding: 0.2cqw 0.8cqw;
  border-radius: 0.6cqw;
  background: rgba(8, 12, 14, 0.75);
  font-weight: 600;
  font-size: clamp(8px, 1.8cqw, 12px);
  white-space: nowrap;
}

.ov-cursor {
  position: absolute;
  right: -2.4cqw;
  top: 45%;
  width: 3.4cqw;
  min-width: 14px;
  overflow: visible;
}

.ov-cursor path {
  fill: #f4f7f1;
  stroke: var(--color-night);
  stroke-width: 1.3;
  stroke-linejoin: round;
}

/* Step 2: the manufacturability check, one row per beam and pile; a spinner, then a tick. The list scrolls along. */
.ov-analysis {
  --rows: 6;
  --row: 30px;
  top: 28px;
  left: 28px;
  display: grid;
  gap: 10px;
  width: min(280px, 42%);
  padding: 14px 16px;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-md);
  background: rgba(8, 12, 14, 0.82);
  backdrop-filter: blur(var(--blur-glass));
  -webkit-backdrop-filter: blur(var(--blur-glass));
}

.ov-analysis-head,
.ov-analysis-done {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.ov-analysis-done {
  color: var(--color-lime);
}

.ov-analysis-window {
  height: calc(var(--rows) * var(--row));
  overflow: hidden;
  mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
}

.ov-analysis-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--row);
  font-size: 0.9rem;
}

.ov-state {
  display: grid;
  flex: none;
  width: 18px;
  height: 18px;
}

.ov-state > *,
.ov-state::before {
  grid-area: 1 / 1;
}

.ov-state::before {
  content: '';
  border: 1.5px solid var(--color-line-strong);
  border-radius: 50%;
}

.ov-spin {
  border: 2px solid var(--color-line-strong);
  border-top-color: var(--color-lime);
  border-radius: 50%;
  animation: ov-spin 0.8s linear infinite;
}

@keyframes ov-spin {
  to {
    transform: rotate(1turn);
  }
}

.ov-state .ov-tick {
  width: 18px;
  height: 18px;
  background-size: 11px, auto;
}

.ov-approved,
.ov-delivered {
  top: 28px;
  right: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 10px;
  border: 1px solid var(--color-lime);
  border-radius: var(--radius-pill);
  background: rgba(8, 12, 14, 0.8);
  font-weight: 600;
  color: var(--color-lime);
}

.ov-checklist {
  top: 28px;
  right: 28px;
  display: grid;
  gap: 8px;
  width: min(300px, 70%);
}

.ov-checklist li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  padding: 10px 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: rgba(8, 12, 14, 0.75);
  font-weight: 600;
  font-size: 0.95rem;
}

.ov-meta {
  margin-left: auto;
  font-weight: 400;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-muted);
}

/* Phones and tablets: the scene on top, below it the steps (with motion: only the active one). */
@media (max-width: 899px) {
  .story-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .story-stage {
    order: -1;
    border-radius: var(--radius-md);
  }

  .motion .story {
    height: 780vh;
  }

  .motion .story-sticky {
    align-items: start;
  }

  .motion .story-layout {
    align-content: start;
    gap: 16px;
    padding-top: 12px;
  }

  .motion .story-stage {
    height: min(52svh, 120vw);
  }

  .motion .story-number {
    display: none;
  }

  .motion .story-steps {
    border-left: 0;
  }

  .motion .story-steps li {
    display: none;
    padding-left: 0;
  }

  .motion .story-steps li::before {
    display: none;
  }

  .motion .story-steps li.is-active {
    display: grid;
  }

  .ov-desk {
    width: min(94%, 640px);
  }

  /* The check sits below the model, three rows high. */
  .ov-analysis {
    --rows: 3;
    --row: 22px;
    top: auto;
    bottom: 10px;
    left: 10px;
    right: 10px;
    gap: 6px;
    width: auto;
    padding: 10px 12px;
    font-size: 0.8rem;
  }

  .ov-analysis-list li {
    font-size: 0.75rem;
  }

  .ov-analysis-done {
    display: none;
  }

  /* Below the model, two by two, so it does not cover the block. */
  .ov-checklist {
    top: auto;
    bottom: 10px;
    left: 10px;
    right: 10px;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: auto;
  }

  .ov-checklist li {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 6px 8px;
    font-size: 0.75rem;
  }

  .ov-checklist .ov-tick {
    width: 16px;
    height: 16px;
    background-size: 10px, auto;
  }

  .ov-meta {
    display: none;
  }
}

/* ---------- Statement ---------- */
.statement {
  display: grid;
  place-items: center;
  min-height: 120vh;
  padding-block: 25vh;
  overflow: hidden;
  text-align: center;
}

.statement-x {
  position: absolute;
  left: 50%;
  top: 50%;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--size-giant);
  line-height: 0.7;
  transform: translate(-50%, -58%);
  -webkit-text-stroke-width: 2px;
  opacity: 0.55;
  pointer-events: none;
  filter: drop-shadow(0 0 24px rgba(133, 236, 0, 0.25));
}

/* GSAP takes over the centring transform (xPercent/yPercent) when motion runs. */
.motion .statement-x {
  transform: none;
}

.statement-inner {
  position: relative;
}

.statement-title {
  max-width: 14em;
  margin-inline: auto;
}

/* ---------- 04 Engine ---------- */
.engine {
  padding-block: clamp(96px, 16vh, 180px);
}

.engine-head {
  display: grid;
  gap: 24px;
}

.engine-head .title {
  max-width: 12em;
}

.engine-body {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.85fr);
  gap: 48px clamp(40px, 5vw, 88px);
  margin-top: clamp(48px, 10vh, 120px);
}

.engine-visual {
  position: sticky;
  top: calc(50vh - 230px);
  align-self: start;
}

/* Stylised project card in the page's own look (dark glass, lime accents, skeleton lines instead of
   invented data). With motion it fills up while you scroll: the timeline runs along and the panels light up
   (.is-lit) and stay lit. Without motion it shows a project in production. */
.portal-mock {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(var(--blur-glass));
  -webkit-backdrop-filter: blur(var(--blur-glass));
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
}

.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--color-line);
}

.mock-head-text {
  display: grid;
  flex: 1;
  gap: 10px;
}

.mock-skeleton {
  display: block;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  transition: background-color var(--duration-base);
}

.mock-skeleton-title {
  width: 58%;
  height: 12px;
  background: rgba(255, 255, 255, 0.3);
}

.mock-skeleton-meta {
  width: 38%;
}

.mock-skeleton-short {
  width: 64%;
}

.mock-pill {
  flex: none;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-lime);
  color: var(--color-on-lime);
  font-weight: 600;
  font-size: 0.9rem;
  transition: box-shadow var(--duration-base);
}

.mock-body {
  padding: 24px 26px 26px;
}

.mock-label {
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.mock-timeline {
  position: relative;
}

.mock-track {
  position: absolute;
  top: 7px;
  left: calc(100% / 12);
  right: calc(100% / 12);
  height: 2px;
  background: rgba(255, 255, 255, 0.14);
}

/* Filled up to "In productie": 3 of the 5 spans between the 6 steps. */
.mock-track-fill {
  display: block;
  width: 60%;
  height: 100%;
  background: var(--color-lime);
  box-shadow: 0 0 10px var(--color-lime-glow);
  transform-origin: left center;
}

.mock-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  text-align: center;
}

.mock-step {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
  font-size: 0.8rem;
  line-height: 1.25;
  color: var(--color-text-dim);
  transition: opacity var(--duration-base);
}

.mock-step b {
  font-weight: 600;
  color: var(--color-text-dim);
}

.mock-step:is(.is-done, .is-now) b {
  color: var(--color-text);
}

.mock-dot {
  width: 16px;
  height: 16px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: #2b332d;
  box-shadow: 0 0 0 3px var(--tone-5);
}

.mock-step.is-done .mock-dot {
  background: var(--color-lime);
}

.mock-step.is-now .mock-dot {
  background: var(--color-white);
  animation: mock-pulse 2.4s var(--ease-out) infinite;
}

.mock-date {
  font-weight: 700;
  color: var(--color-lime);
}

@keyframes mock-pulse {
  0% {
    box-shadow:
      0 0 0 3px var(--tone-5),
      0 0 0 3px rgba(133, 236, 0, 0.6);
  }
  70%,
  100% {
    box-shadow:
      0 0 0 3px var(--tone-5),
      0 0 0 14px rgba(133, 236, 0, 0);
  }
}

.mock-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.mock-panel {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  transition:
    opacity var(--duration-base),
    border-color var(--duration-base),
    background-color var(--duration-base),
    box-shadow var(--duration-base);
}

.mock-icon {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--color-lime);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mock-panel-title {
  margin-bottom: 2px;
  font-weight: 600;
  font-size: 0.95rem;
}

.mock-panel.is-lit {
  border-color: var(--color-lime);
  background: rgba(133, 236, 0, 0.08);
  box-shadow: 0 0 40px rgba(133, 236, 0, 0.12);
}

.mock-skeleton-meta.is-lit {
  background: var(--color-lime);
}

.engine-list {
  display: grid;
}

.engine-item {
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 62vh;
  padding-block: 32px;
  border-top: 1px solid var(--color-line);
  opacity: 0.35;
  transition: opacity var(--duration-base);
}

.engine-item.is-active,
html:not(.motion) .engine-item {
  opacity: 1;
}

.engine-item .text-muted {
  max-width: 30em;
}

.principles {
  margin-top: clamp(80px, 14vh, 160px);
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.principle {
  position: relative;
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 240px;
  padding: 28px;
  overflow: hidden;
}

.principle .title {
  margin-top: 8px;
}

[data-spotlight] {
  --mx: 50%;
  --my: 0%;
}

[data-spotlight]::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(133, 236, 0, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity var(--duration-base);
}

[data-spotlight]:hover::before {
  opacity: 1;
}

/* ---------- 05 Value ---------- */
.value {
  padding-top: clamp(96px, 16vh, 180px);
  overflow: hidden;
}

.value::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: clamp(120px, 20vh, 220px);
  background: linear-gradient(transparent, var(--tone-7));
  pointer-events: none;
}

.value-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: end;
  gap: 32px 64px;
}

.value-card {
  display: grid;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--color-line-strong);
}

.value-card > .label {
  color: var(--color-text-muted);
}

.marquee {
  margin-block: clamp(80px, 14vh, 160px);
  padding-block: 28px;
  border-block: 1px solid var(--color-line);
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 1.5rem + 4vw, 6rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.marquee-track span:nth-child(4n + 3) {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--color-lime);
}

.marquee-dot {
  width: 0.28em;
  height: 0.28em;
  border-radius: 50%;
  background: var(--color-lime);
}

.value-photo {
  padding-bottom: clamp(120px, 20vh, 220px);
}

.value-figure {
  position: relative;
}

.value-figure-media {
  position: relative;
  height: clamp(480px, 86vh, 880px);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Darkens the bottom of the photo so the statement on top stays readable. */
.value-figure-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 12, 14, 0.88), rgba(8, 12, 14, 0.2) 55%, transparent 75%);
  pointer-events: none;
}

.value-figure-media img {
  width: 100%;
  height: 130%;
  margin-top: -15%;
  object-fit: cover;
}

.value-caption {
  position: absolute;
  z-index: 1;
  left: clamp(20px, 4vw, 56px);
  right: clamp(20px, 4vw, 56px);
  bottom: clamp(24px, 5vw, 64px);
  display: grid;
  gap: 16px;
  color: var(--color-white);
}

/* ---------- 06 Audience ---------- */
.audience {
  padding-block: clamp(96px, 16vh, 180px);
}

.audience-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px 96px;
}

.audience-head {
  position: sticky;
  top: calc(var(--header-height) + 40px);
  align-self: start;
}

.audience-item {
  display: grid;
  gap: 16px;
  padding-block: clamp(28px, 5vh, 48px);
  border-top: 1px solid var(--color-line);
}

.audience-item:last-child {
  border-bottom: 1px solid var(--color-line);
}

.audience-name {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 4rem);
  line-height: 1;
  transition:
    color var(--duration-base),
    transform var(--duration-base) var(--ease-out);
}

.audience-item.is-active .audience-name {
  color: var(--color-accent-text);
  transform: translateX(12px);
}

.audience-item .text-muted {
  max-width: 32em;
}

.voices {
  display: grid;
  gap: 28px;
  margin-top: clamp(96px, 16vh, 180px);
}

.voice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 64px;
}

.voice {
  padding-left: 28px;
  border-left: 2px solid var(--color-lime);
}

/* ---------- 07 Roadmap ---------- */
.roadmap {
  padding-top: clamp(96px, 16vh, 180px);
  padding-bottom: clamp(96px, 16vh, 180px);
  overflow: hidden;
}

.roadmap-head {
  display: grid;
  gap: 24px;
}

.road {
  margin-top: clamp(48px, 8vh, 96px);
}

.road-art {
  width: 100%;
  height: clamp(120px, 18vw, 260px);
  overflow: visible;
}

/* The route still to go: a faint dotted line that the lit road covers as the statuses switch on. */
.road-base {
  stroke: var(--color-line-strong);
  stroke-width: 8;
  stroke-dasharray: 2 14;
  stroke-linecap: round;
}

.road-asphalt {
  stroke: var(--color-navy);
  stroke-width: 34;
  stroke-linecap: round;
}

.road-lane {
  stroke: var(--color-lime);
  stroke-width: 2.5;
  stroke-dasharray: 22 18;
  filter: drop-shadow(0 0 6px var(--color-lime-glow));
}

.road-phases {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.road-phase {
  display: grid;
  align-content: start;
  gap: 10px;
}

.road-phase .title {
  font-size: clamp(1.4rem, 1.1rem + 0.8vw, 2rem);
  line-height: 1.05;
}

.road-light {
  width: 14px;
  height: 14px;
  margin-bottom: 8px;
  border: 1px solid var(--color-line-strong);
  border-radius: 50%;
  transition:
    background-color var(--duration-base),
    box-shadow var(--duration-base),
    border-color var(--duration-base);
}

.road-phase.is-lit .road-light,
html:not(.motion) .road-light {
  border-color: var(--color-lime);
  background: var(--color-lime);
  box-shadow:
    0 0 0 6px var(--color-lime-soft),
    0 0 24px var(--color-lime-glow);
}

/* ---------- 08 Start ---------- */
.start {
  padding-block: clamp(120px, 20vh, 220px);
  overflow: hidden;
}

.start-glow {
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -60%;
  width: 120vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gradient-glow);
  filter: blur(80px);
  opacity: 0.35;
  transform: translateX(-50%);
}

.start-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: end;
  gap: 64px 96px;
}

.start-copy {
  display: grid;
  gap: 28px;
}

.start-title {
  font-size: clamp(3rem, 1.6rem + 6vw, 8.5rem);
}

.start-cards {
  display: grid;
  gap: 16px;
}

.start-card {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: 32px;
  overflow: hidden;
  isolation: isolate;
}

.start-card .button {
  margin-top: 8px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-top: clamp(80px, 12vh, 140px);
  padding-bottom: 32px;
  background: var(--color-navy);
  border-top: 1px solid var(--color-line);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding-bottom: clamp(56px, 10vh, 96px);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  gap: 32px 72px;
}

.footer-columns div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-columns .label {
  margin-bottom: 6px;
  color: var(--color-text-dim);
}

.footer-columns a {
  color: var(--color-text-muted);
  transition: color var(--duration-fast);
}

.footer-columns a:hover {
  color: var(--color-lime);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--color-line);
  color: var(--color-text-dim);
}

.footer-group img {
  width: 140px;
  height: auto;
  opacity: 0.85;
}

/* ---------- Reading progress ----------
   Wide screens: the header menu itself is the stepper (see .site-nav). Phones: the same parts in a compact bar
   at the bottom; tapping it opens the list. Filled by js/stepper.js. */
.stepper {
  display: none;
}

@media (max-width: 899px) {
  .stepper {
    position: fixed;
    z-index: 110;
    left: 50%;
    bottom: 12px;
    display: block;
    width: min(calc(100vw - 24px), 380px);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 12px);
    transition:
      opacity var(--duration-base),
      transform var(--duration-base) var(--ease-out),
      visibility 0s linear var(--duration-base);
  }

  .stepper.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition:
      opacity var(--duration-base),
      transform var(--duration-base) var(--ease-out),
      visibility 0s;
  }

  .stepper-toggle {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px 12px;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-line);
    border-radius: calc(var(--radius-button) + 4px);
    background: var(--bar-glass);
    backdrop-filter: blur(var(--blur-glass));
    -webkit-backdrop-filter: blur(var(--blur-glass));
    text-align: left;
  }

  .stepper-toggle::after {
    content: '';
    grid-row: 1;
    grid-column: 2;
    width: 8px;
    height: 8px;
    margin-right: 4px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(-135deg) translate(-2px, -2px);
    transition: transform var(--duration-fast);
  }

  .stepper.is-open .stepper-toggle::after {
    transform: rotate(45deg);
  }

  .stepper-current-title {
    font-weight: 600;
  }

  .stepper-segments {
    grid-column: 1 / -1;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 6px;
  }

  .stepper-segments span {
    height: 2px;
    background: linear-gradient(
      to right,
      var(--color-lime) calc(var(--fill, 0) * 100%),
      var(--color-line-strong) calc(var(--fill, 0) * 100%)
    );
  }

  .stepper-list {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 8px);
    display: grid;
    padding: 6px 16px;
    border: 1px solid var(--color-line);
    border-radius: calc(var(--radius-button) + 4px);
    background: var(--bar-glass-solid);
    backdrop-filter: blur(var(--blur-glass));
    -webkit-backdrop-filter: blur(var(--blur-glass));
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition:
      opacity var(--duration-fast),
      transform var(--duration-fast) var(--ease-out),
      visibility 0s linear var(--duration-fast);
  }

  .stepper.is-open .stepper-list {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity var(--duration-fast),
      transform var(--duration-fast) var(--ease-out),
      visibility 0s;
  }

  .stepper-link {
    display: block;
    padding-block: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
  }

  .stepper-item.is-passed .stepper-link,
  .stepper-item.is-active .stepper-link {
    color: var(--color-text);
  }

  .stepper-title {
    padding-bottom: 4px;
    background: linear-gradient(var(--color-lime), var(--color-lime)) left bottom / 0 2px no-repeat;
  }

  .stepper-item.is-active .stepper-title {
    background-size: calc(var(--fill, 0) * 100%) 2px;
  }
}

/* ---------- Split text helpers ---------- */
.split-line,
.split-word {
  will-change: transform;
}

/* Titles use a 0.9 line height; give line masks room so ascenders, descenders and the
   underline are not clipped. */
.split-line-mask,
.split-word-mask {
  padding-block: 0.12em 0.2em;
  margin-block: -0.12em -0.2em;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .site-nav a {
    padding-inline: 12px;
  }

  .principle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .engine-body {
    gap: 48px;
  }
}

@media (max-width: 899px) {
  .site-nav {
    display: none;
  }

  .hero-aside {
    flex-direction: column;
    align-items: flex-start;
  }

  .problem-quote,
  .idea-columns,
  .value-intro,
  .voice-grid,
  .start-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .engine-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .engine-visual {
    position: relative;
    top: auto;
  }

  .mock-head {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }

  .mock-head-text {
    align-self: stretch;
  }

  .mock-body {
    padding: 18px;
  }

  .mock-step {
    font-size: 0.7rem;
  }

  .mock-panels {
    grid-template-columns: minmax(0, 1fr);
  }

  .engine-item {
    min-height: 0;
    opacity: 1;
  }

  .audience-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .audience-head {
    position: static;
  }

  .road-phases {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    width: auto;
    margin-inline: var(--gutter);
    padding-inline: 28px 0;
    border-left: 1px solid var(--color-line);
  }

  .road-light {
    margin-left: -36px;
    margin-bottom: -22px;
  }

  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 72px;
  }

  .logo-word {
    font-size: 34px;
  }

  .site-header .button {
    min-height: 38px;
    padding: 8px 16px;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .handover-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .handover-counter {
    justify-items: start;
  }

  .handover-track {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-left: 32px;
  }

  .handover-track::before {
    top: 0;
    bottom: 0;
    left: 7px;
    right: auto;
    width: 1px;
    height: auto;
    background: repeating-linear-gradient(180deg, var(--color-line-strong) 0 10px, transparent 10px 18px);
  }

  .handover-node {
    gap: 4px;
  }

  .handover-dot {
    position: absolute;
    left: -32px;
    top: 2px;
  }

  .handover-doc {
    width: 36px;
  }

  .motion .handover {
    height: 260vh;
  }

  .principle-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .principle {
    min-height: 0;
  }

  .footer-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue-line::after {
    animation: none;
  }
}
