@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,400;6..72,500&display=swap');

:root {
  --cream: #f4efe6;
  --paper: #fffaf1;
  --ink: #22201d;
  --muted: #6f6960;
  --rust: #b94d32;
  --rust-dark: #8c321f;
  --teal: #246e66;
  --teal-pale: #d8e8e1;
  --line: #d8d0c3;
  --night: #17221f;
  --white: #fffdf8;
  --sans: 'Manrope', sans-serif;
  --serif: 'Newsreader', serif;
  --mono: 'DM Mono', monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--cream); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body::selection { background: var(--rust); color: var(--white); }
.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;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--teal); outline-offset: 5px; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 12px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: blur(14px);
}
.site-nav.no-switcher { grid-template-columns: auto auto; justify-content: space-between; }
.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 9px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.04em;
  text-decoration: none;
}
.brand-mark { width: 36px; height: 36px; color: var(--rust); }
.concept-switcher { display: flex; align-items: center; gap: 4px; }
.concept-switcher a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}
.concept-switcher a:hover { background: color-mix(in srgb, var(--line) 45%, transparent); color: var(--ink); }
.concept-switcher a[aria-current='page'] { background: var(--ink); color: var(--cream); }
.nav-cta {
  justify-self: end;
  color: var(--rust-dark);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.nav-cta::after { content: ' ↗'; }

.hero {
  min-height: 100svh;
  padding: 132px clamp(20px, 5vw, 76px) 56px;
}
.hero h1, .section-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.hero h1 { font-size: clamp(3.3rem, 7.7vw, 6rem); line-height: .94; }
.hero p { max-width: 58ch; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.18rem); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .28s var(--ease-out), background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); background: var(--rust); border-color: var(--rust); }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.button.secondary:hover { background: var(--paper); border-color: var(--ink); }
.fineprint { color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .02em; }

.section { padding: clamp(86px, 12vw, 170px) clamp(20px, 5vw, 76px); }
.section-title { max-width: 13ch; font-size: clamp(2.8rem, 5.4vw, 5rem); line-height: 1; }
.section-copy { max-width: 62ch; margin-top: 28px; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.15rem); }
.measure-label { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }

.context-section,
.operations-section,
.client-side-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(48px, 8vw, 130px);
  align-items: start;
}
.context-section { background: var(--paper); }
.context-section .section-title,
.operations-section .section-title,
.client-side-section .section-title { margin-top: 18px; }
.context-copy,
.operations-copy,
.client-side-copy { max-width: 66ch; }
.context-copy p,
.operations-copy p,
.client-side-copy > p,
.about-card p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
}
.context-emphasis { color: var(--ink) !important; font-weight: 700; }
.operations-section { background: var(--paper); }
.operations-heading .section-title { max-width: 11ch; }
.client-side-section { background: var(--paper); }
.client-side-copy .section-title { max-width: 12ch; margin-bottom: 30px; }
.about-card { padding: clamp(28px, 4vw, 52px); border: 1px solid var(--line); background: var(--cream); }
.about-card h2 { margin: 16px 0 24px; font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 4rem); font-weight: 400; letter-spacing: -.035em; line-height: 1; }
.about-card a { display: inline-block; margin-top: 8px; color: var(--rust-dark); font-weight: 700; text-decoration: none; }
.about-card a:hover { text-decoration: underline; }

.principles {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(48px, 8vw, 130px);
  align-items: start;
}
.principle-list { border-top: 1px solid var(--line); }
.principle {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.principle svg { width: 28px; height: 28px; color: var(--rust); }
.principle h3 { margin: 0 0 7px; font-size: 17px; letter-spacing: -.02em; }
.principle p { margin: 0; color: var(--muted); font-size: 14px; }

.closing {
  display: grid;
  min-height: 78svh;
  place-items: center;
  padding: 96px 24px;
  background: var(--night);
  color: var(--cream);
  text-align: center;
}
.closing-inner { max-width: 860px; }
.closing h2 { margin: 0; font-family: var(--serif); font-size: clamp(3rem, 7vw, 6.8rem); font-weight: 400; letter-spacing: -.04em; line-height: .93; }
.closing p { max-width: 54ch; margin: 28px auto 32px; color: #bec8c2; }
.closing .button { background: var(--cream); color: var(--night); border-color: var(--cream); }
.closing .button:hover { background: var(--rust); color: white; border-color: var(--rust); }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(20px, 5vw, 76px);
  background: var(--night);
  color: #93a098;
  font-size: 12px;
}
.site-footer div { display: flex; gap: 18px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--cream); }

/* A — Signal field */
.signal-page { --night: #12201c; }
.signal-hero { position: relative; display: grid; align-items: end; overflow: hidden; background: var(--night); color: var(--cream); }
.signal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(137, 178, 161, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(137, 178, 161, .08) 1px, transparent 1px);
  background-size: 8.333vw 8.333vw;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}
#signalCanvas { position: absolute; inset: 72px 0 0; width: 100%; height: calc(100% - 72px); }
.signal-hero-copy { position: relative; z-index: 2; max-width: 960px; padding-bottom: clamp(44px, 7vw, 90px); pointer-events: none; }
.hero-label { display: block; margin-bottom: 20px; color: #9eb1a8; }
.signal-hero h1 { max-width: 10ch; }
.signal-hero p { max-width: 48ch; color: #bfc9c3; }
.signal-hero .cta-row { pointer-events: auto; }
.signal-hero .button { background: var(--rust-dark); border-color: var(--rust-dark); }
.signal-hero .button.secondary { background: rgba(18, 32, 28, .55); color: var(--cream); border-color: #52635c; }
.signal-readout {
  position: absolute;
  right: clamp(20px, 5vw, 76px);
  bottom: 56px;
  z-index: 3;
  width: min(260px, 30vw);
  color: #9eb1a8;
  font-family: var(--mono);
  font-size: 10px;
  pointer-events: none;
}
.signal-readout div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #405049; }
.signal-readout output { color: #f2b09d; font: inherit; }
.signal-story { min-height: 420svh; position: relative; background: var(--cream); }
.signal-stage {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: minmax(260px, .65fr) minmax(0, 1.35fr);
  min-height: 100svh;
  padding: 110px clamp(20px, 5vw, 76px) 56px;
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
  overflow: hidden;
}
.signal-narrative h2 { max-width: 10.5ch; margin: 0; font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 5.2rem); font-weight: 400; letter-spacing: -.04em; line-height: .95; }
.signal-narrative p { max-width: 40ch; color: var(--muted); }
.signal-narrative { position: relative; min-height: 330px; flex: 1; min-width: 0; }
.signal-left { display: flex; align-items: flex-start; gap: 18px; min-width: 0; }
.stage-indicator { flex: none; display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.indicator-seg { --fill: 0; position: relative; width: 2px; height: 28px; background: var(--line); overflow: hidden; }
.indicator-seg::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: calc(var(--fill) * 100%); background: var(--rust); }
.indicator-seg.complete { background: var(--line); }
.story-step {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .24s ease, transform .4s var(--ease-out);
}
.story-step.active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.story-index { display: block; margin-bottom: 18px; color: var(--rust); font-family: var(--mono); font-size: 11px; }
.signal-board { position: relative; aspect-ratio: 1 / .78; min-height: 420px; border: 1px solid var(--line); background: var(--paper); overflow: hidden; }
.signal-board canvas { width: 100%; height: 100%; }

/* B — Diagnostic lens */
.lens-page { --night: #20211e; }
.lens-hero { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr); gap: 5vw; align-items: center; }
.lens-hero-copy { position: relative; z-index: 2; }
.lens-hero h1 { max-width: 8ch; }
.lens-hero h1 em { color: var(--rust); font-style: italic; }
.lens-window { position: relative; height: min(70vh, 650px); min-height: 460px; overflow: hidden; border: 1px solid var(--line); background: #ebe4d8; }
.lens-window svg { width: 100%; height: 100%; display: block; }
.lens-cursor {
  position: absolute;
  left: 54%;
  top: 46%;
  width: clamp(150px, 18vw, 250px);
  aspect-ratio: 1;
  border: 1px solid var(--rust);
  border-radius: 50%;
  box-shadow: 0 22px 70px rgba(34, 32, 29, .16);
  transform: translate(-50%, -50%);
  padding: 0;
  appearance: none;
  background: transparent;
  cursor: grab;
}
.lens-cursor:active { cursor: grabbing; }
.lens-cursor:focus-visible { outline-color: var(--rust-dark); outline-offset: 5px; }
.lens-cursor::after { content: ''; position: absolute; left: 83%; top: 83%; width: 42%; height: 1px; background: var(--rust); transform: rotate(45deg); transform-origin: left; }
.lens-tag { position: absolute; padding: 7px 9px; background: var(--night); color: white; font-family: var(--mono); font-size: 9px; letter-spacing: .06em; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.lens-tag.visible { opacity: 1; }
.lens-hero .fineprint { font-family: var(--sans); font-size: 12px; letter-spacing: 0; }
.lens-story { position: relative; min-height: 360vh; background: var(--night); color: var(--cream); }
.lens-stage {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: clamp(42px, 7vw, 110px);
  min-height: 100svh;
  padding: 110px clamp(20px, 5vw, 76px) 56px;
  align-items: center;
  overflow: hidden;
}
.lens-copy h2 { max-width: 8ch; margin: 0; font-family: var(--serif); font-size: clamp(3rem, 5.2vw, 5.3rem); font-weight: 400; letter-spacing: -.04em; line-height: .94; }
.lens-copy p { max-width: 40ch; color: #bfc3bd; }
.diagnostic-map { position: relative; height: min(68vh, 650px); border-block: 1px solid #46504a; }
.diagnostic-flow { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; clip-path: inset(0 calc(100% - var(--scan-progress, 6%)) 0 0); }
.diagnostic-flow path { fill: none; stroke: #56635c; stroke-width: 1.15; vector-effect: non-scaling-stroke; }
.diagnostic-line { position: absolute; left: 0; right: 0; height: 1px; background: #46504a; }
.diagnostic-line:nth-child(1) { top: 25%; }
.diagnostic-line:nth-child(2) { top: 50%; }
.diagnostic-line:nth-child(3) { top: 75%; }
.diag-item { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; max-width: 180px; color: #7e8d84; font-family: var(--mono); font-size: 10px; line-height: 1.35; transition: color .4s ease, transform .6s var(--ease-out); }
.diag-item::before { content: ''; width: 8px; height: 8px; border: 1px solid currentColor; transform: rotate(45deg); }
.diag-item.hot { color: #ff9d7f; transform: translateX(12px); }
.diag-item.align-right { transform: translateX(-100%); text-align: right; }
.diag-item.align-right.hot { transform: translateX(calc(-100% + 12px)); }
.scan-line { position: absolute; z-index: 1; top: 0; bottom: 0; left: 0; width: 1px; background: #ff9d7f; box-shadow: 0 0 26px rgba(255, 157, 127, .8); }
.scan-line::before { content: 'LECTURA'; position: absolute; top: -24px; left: 7px; color: #ff9d7f; font-family: var(--mono); font-size: 9px; }
.diagnostic-result { position: absolute; z-index: 2; right: 0; bottom: 0; width: 44%; padding: 18px 0; border-top: 1px solid #ff9d7f; color: #e8eee9; font-size: 13px; }

/* A — Roadmap vertical timeline (second scene, concept-a.html) */
.roadmap-story { position: relative; min-height: 360vh; background: var(--night); color: var(--cream); }
.roadmap-stage { position: sticky; top: 0; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 110px clamp(20px, 5vw, 76px) 56px; }
.roadmap-inner { max-width: 640px; width: 100%; }
.roadmap-head { max-width: 560px; margin-bottom: 32px; }
.roadmap-head h2 { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 4.6vw, 4rem); letter-spacing: -.035em; line-height: .98; }
.roadmap-head p { margin: 0; max-width: 46ch; color: #bfc9c3; }
.rm-track { position: relative; padding-left: 40px; }
.rm-line { position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px; background: #3a453f; }
.rm-line .rm-fill { display: block; width: 100%; height: 0%; background: var(--rust); }
.rm-node { position: relative; padding: 16px 0; opacity: .38; transition: opacity .35s ease; }
.rm-node.active { opacity: 1; }
.rm-dot { position: absolute; left: -40px; top: 21px; width: 9px; height: 9px; border-radius: 50%; background: #3a453f; transition: background .3s ease, box-shadow .3s ease; }
.rm-node.active .rm-dot { background: var(--rust); box-shadow: 0 0 0 5px rgba(185, 77, 50, .22); }
.rm-index { display: block; margin-bottom: 8px; color: var(--rust); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.rm-node.active .rm-index { color: #f2b09d; }
.rm-copy h3 { margin: 0 0 8px; color: var(--cream); font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -.02em; }
.rm-copy p { margin: 0; max-width: 46ch; color: #9eb1a8; font-size: 14.5px; }
.rm-node.active .rm-copy p { color: #d7ded9; }

/* C — Decision paths */
.path-page { --night: #25221f; }
.path-hero { position: relative; display: grid; align-items: center; padding-bottom: 20px; overflow: hidden; }
.path-hero h1 { position: relative; z-index: 2; max-width: 11ch; }
.path-hero h1 span { color: var(--rust); }
.path-hero p, .path-hero .cta-row { position: relative; z-index: 2; }
.hero-path-map { position: absolute; inset: 88px 0 0 28%; opacity: .95; }
.hero-path-map svg { width: 100%; height: 100%; overflow: visible; }
.route { fill: none; stroke: var(--line); stroke-width: 1.2; }
.route.active { stroke: var(--rust); stroke-width: 2; filter: drop-shadow(0 7px 12px rgba(185,77,50,.18)); }
.route-node { fill: var(--cream); stroke: var(--ink); stroke-width: 1.2; }
.route-node.active { fill: var(--rust); stroke: var(--rust); }
.route-label { fill: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .04em; }
.path-story { min-height: 400vh; position: relative; }
.path-stage { position: sticky; top: 0; min-height: 100svh; overflow: hidden; background: var(--cream); }
.path-map-full { position: absolute; inset: 74px 0 0; }
.path-map-full svg { width: 100%; height: 100%; }
.path-overlay { position: absolute; inset: 0; pointer-events: none; }
.path-caption { position: absolute; left: clamp(20px, 5vw, 76px); bottom: 8vh; max-width: 420px; }
.path-caption h2 { margin: 0; font-family: var(--serif); font-size: clamp(3rem, 5.5vw, 5.8rem); font-weight: 400; letter-spacing: -.04em; line-height: .92; }
.path-caption p { color: var(--muted); }
.decision-note { position: absolute; opacity: 0; transform: translateY(12px); transition: opacity .35s ease, transform .5s var(--ease-out); }
.decision-note.visible { opacity: 1; transform: none; }
.decision-note b { display: block; margin-bottom: 4px; font-size: 13px; }
.decision-note span { color: var(--muted); font-size: 11px; }
.roadmap-band { position: absolute; left: 48%; right: 6%; bottom: 7%; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .7s var(--ease-out); }
.roadmap-band.visible { opacity: 1; transform: none; }
.roadmap-band div { padding: 14px 8px 0 0; border-right: 1px solid var(--line); font-family: var(--mono); font-size: 9px; }
.roadmap-band strong { display: block; margin-top: 6px; font-family: var(--sans); font-size: 13px; }

/* comparison */
.gallery-page { background: #efe8dc; }
.gallery-intro { max-width: 1180px; margin: 0 auto; padding: 150px 24px 66px; }
.gallery-intro h1 { max-width: 11ch; margin: 0; font-family: var(--serif); font-size: clamp(3.5rem, 8vw, 7.4rem); line-height: .9; font-weight: 400; letter-spacing: -.05em; }
.gallery-intro p { max-width: 58ch; margin-top: 28px; color: var(--muted); }
.concept-gallery { max-width: 1280px; margin: 0 auto; padding: 0 24px 120px; display: grid; gap: 22px; }
.concept-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}
.concept-card-copy { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(34px, 5vw, 68px); }
.concept-card-copy h2 { max-width: 8ch; margin: 0; font-family: var(--serif); font-size: clamp(3rem, 5vw, 5.4rem); font-weight: 400; line-height: .92; letter-spacing: -.04em; }
.concept-card-copy p { max-width: 44ch; color: var(--muted); }
.concept-card-visual { position: relative; overflow: hidden; background: var(--night); }
.concept-card-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.concept-card-arrow { font-size: 30px; transition: transform .4s var(--ease-out); }
.concept-card:hover .concept-card-arrow { transform: translate(8px, -8px); }
.concept-card:hover .preview-motion { animation-play-state: running; }

@keyframes textIn { from { opacity: 0; transform: translateY(16px); filter: blur(7px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes pulseLine { 0%, 100% { opacity: .22; } 50% { opacity: 1; } }
@keyframes orbit { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .site-nav { grid-template-columns: 1fr auto; }
  .concept-switcher { display: none; }
  .lens-hero { grid-template-columns: 1fr; padding-top: 120px; }
  .lens-window { min-height: 390px; height: 52vh; }
  .signal-stage, .lens-stage, .principles, .context-section, .operations-section, .client-side-section { grid-template-columns: 1fr; }
  .signal-stage, .lens-stage { align-content: center; padding-top: 92px; }
  .roadmap-stage { padding-top: 92px; }
  .signal-left { flex-direction: column; }
  .stage-indicator { order: 2; flex-direction: row; gap: 10px; padding-top: 14px; }
  .signal-narrative { order: 1; }
  .indicator-seg { width: 26px; height: 2px; }
  .indicator-seg::after { width: calc(var(--fill) * 100%); height: 100%; }
  .signal-board { min-height: 330px; }
  .signal-readout { display: none; }
  .diagnostic-map { height: 46vh; min-height: 340px; }
  .diag-item { max-width: 140px; font-size: 9px; }
  .hero-path-map { left: 0; opacity: .24; }
  .hero-path-map .route-label { display: none; }
  .concept-card { grid-template-columns: 1fr; }
  .concept-card-visual { min-height: 340px; order: -1; }
  .path-caption { bottom: 15vh; }
  .roadmap-band { left: 20px; right: 20px; bottom: 4%; }
}

@media (max-width: 580px) {
  .site-nav { min-height: 62px; padding-inline: 18px; }
  .nav-cta { font-size: 0; }
  .nav-cta::after { content: 'Hablemos ↗'; font-size: 12px; }
  .hero { padding: 108px 20px 42px; }
  .hero h1 { font-size: clamp(3.1rem, 15.5vw, 4.7rem); }
  .section { padding-inline: 20px; }
  .signal-stage, .lens-stage, .roadmap-stage { padding-inline: 20px; }
  .signal-narrative h2, .lens-copy h2, .path-caption h2, .roadmap-head h2 { font-size: clamp(2.7rem, 13vw, 4rem); }
  .signal-board { min-height: 280px; aspect-ratio: 1; }
  .diagnostic-map { height: 52vh; min-height: 420px; }
  .diagnostic-map .diag-item { max-width: 120px; gap: 7px; padding: 2px 3px; background: var(--night); font-size: 10px; }
  .diagnostic-map .diag-item.milestone-branch { left: 18% !important; }
  .diagnostic-map .diag-item.milestone-output { left: 58% !important; }
  .diagnostic-map .diag-item.milestone-lower { top: 60% !important; }
  .diagnostic-map .diagnostic-result { background: var(--night); }
  .lens-window { min-height: 350px; }
  .lens-hero { gap: 18px; padding-top: 92px; }
  .lens-hero h1 { font-size: clamp(3rem, 14vw, 3.55rem); line-height: .91; }
  .lens-hero p { margin-block: 14px; }
  .lens-hero .cta-row { gap: 8px; }
  .lens-hero .button { min-height: 44px; padding-inline: 16px; }
  .lens-hero .fineprint { margin-bottom: 4px; }
  .lens-window { min-height: 310px; height: 310px; }
  .path-caption { left: 20px; right: 20px; }
  .decision-note { display: none; }
  .roadmap-band { grid-template-columns: 1fr; bottom: 2%; }
  .roadmap-band div { display: flex; justify-content: space-between; padding: 6px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .roadmap-band strong { display: inline; margin: 0; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .signal-story, .lens-story, .path-story, .roadmap-story { min-height: auto; }
  .signal-stage, .lens-stage, .path-stage, .roadmap-stage { position: relative; min-height: 100svh; }
  .signal-narrative { min-height: auto; }
  .story-step { position: relative; opacity: 1; visibility: visible; transform: none; margin-bottom: 48px; }
  .stage-indicator { display: none; }
  .lens-tag { opacity: 1; }
  .rm-node { opacity: 1; }
  .rm-line .rm-fill { height: 100% !important; }
}
