:root {
  --ink: #171815;
  --muted: rgba(23, 24, 21, .61);
  --line: rgba(23, 24, 21, .14);
  --line-strong: rgba(23, 24, 21, .25);
  --paper: #f2f0e9;
  --accent: #b56a2f;
  --left-a: #f1ebdf;
  --left-b: #dfe5f4;
  --right-a: #254b88;
  --right-b: #6d95bd;
  --serif: "Noto Serif SC", "Songti SC", serif;
  --sans: "Bricolage Grotesque", "Noto Sans SC", sans-serif;
  --mx: 0;
  --my: 0;
  color-scheme: light;
  font-family: var(--sans);
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { min-width: 320px; margin: 0; color: var(--ink); background: var(--paper); overflow-x: hidden; }

body::before {
  position: fixed;
  z-index: 2;
  top: 19%;
  left: 31%;
  width: clamp(10rem, 20vw, 21rem);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  box-shadow: inset 0 0 0 clamp(1rem, 3vw, 3.8rem) rgba(255,255,255,.04);
  transform: translate3d(calc(var(--mx) * 14px), calc(var(--my) * 10px), 0);
  transition: transform 900ms cubic-bezier(.2,.8,.2,1);
}

button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-head {
  position: fixed;
  z-index: 60;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 4.6rem;
  padding: 0 clamp(1.1rem, 2.8vw, 3.2rem);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, color-mix(in srgb,var(--left-a) 88%,transparent) 0 45%, color-mix(in srgb,var(--right-a) 88%,transparent) 45% 100%);
  backdrop-filter: blur(18px);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.site-head p { margin: 0; font-size: .62rem; font-weight: 600; }
.site-brand { justify-self: center; color: #fff; mix-blend-mode: difference; }
.site-section { justify-self: end; color: rgba(255,255,255,.78); }
.back-link { justify-self: start; color: var(--ink); font-size: .64rem; font-weight: 700; text-decoration: none; }
.back-link b { font: inherit; }
.back-link span { display: inline-block; margin-right: .5rem; color: var(--accent); font-size: 1rem; transition: transform 220ms ease; }
.back-link:hover span { transform: translateX(-.25rem); }

.atlas-shell {
  position: fixed;
  z-index: 4;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(31rem, .9fr) minmax(34rem, 1.1fr);
  height: 100svh;
  padding-top: 4.6rem;
}

.atlas-shell::after {
  position: absolute;
  z-index: 35;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 26%, rgba(255,255,255,.62) 0 .45px, transparent .72px),
    radial-gradient(circle at 74% 68%, rgba(0,0,0,.48) 0 .4px, transparent .68px),
    radial-gradient(circle at 42% 84%, rgba(255,255,255,.44) 0 .35px, transparent .64px);
  background-position: 0 0, 1px 2px, 2px 1px;
  background-size: 3px 3px, 4px 4px, 5px 5px;
  mix-blend-mode: soft-light;
  opacity: .2;
  animation: grain-shift 420ms steps(2,end) infinite;
}

.tech-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0,1fr) auto;
  gap: 0;
  min-width: 0;
  min-height: 0;
  padding: clamp(1.15rem,2.2vw,2.2rem) clamp(1.15rem,3vw,3.8rem) 1.15rem;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 16% 24%, rgba(255,255,255,.5), transparent 26rem),
    linear-gradient(145deg,var(--left-a),var(--left-b));
  transition: background 120ms linear;
}

.case-rail {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.case-rail button {
  position: relative;
  min-width: 0;
  min-height: 3.25rem;
  padding: .75rem .45rem;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 220ms ease, background-color 220ms ease;
}

.case-rail button:last-child { border-right: 0; }
.case-rail button::after { position: absolute; right: .45rem; bottom: .42rem; width: .32rem; height: .32rem; border-radius: 50%; content: ""; background: transparent; transition: background-color 220ms ease, transform 220ms ease; }
.case-rail button:hover, .case-rail button.is-active { color: var(--ink); background: rgba(255,255,255,.42); }
.case-rail button.is-active::after { background: var(--accent); transform: scale(1.25); }
.case-rail strong { display: block; overflow: hidden; font-size: clamp(.58rem,.68vw,.7rem); font-weight: 650; letter-spacing: .035em; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }

.tech-copy {
  position: relative;
  padding: clamp(1.25rem,2.6vh,2.2rem) 0 clamp(.85rem,1.7vh,1.3rem);
  transition: opacity 220ms ease, transform 460ms cubic-bezier(.2,.8,.2,1);
}

.tech-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: clamp(.75rem,1.5vh,1.1rem); }
.case-eyebrow { margin: 0; color: var(--accent); font-size: .62rem; font-weight: 700; letter-spacing: .17em; }
.case-status { padding: .38rem .55rem; border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.34); font-size: .51rem; font-weight: 700; letter-spacing: .09em; white-space: nowrap; }
.case-status.is-ready { color: #285f55; }
.case-status.is-study { color: #6c4d9d; }
.case-status.is-pending { color: #945729; }

.tech-copy h1 { max-width: 12ch; margin: 0; font-family: var(--serif); font-size: clamp(2.7rem,4.8vw,5.7rem); font-weight: 500; letter-spacing: -.065em; line-height: 1.01; }
.case-lead { max-width: 42rem; margin: clamp(.75rem,1.6vh,1.25rem) 0 0; color: rgba(23,24,21,.72); font-size: clamp(.78rem,.98vw,.96rem); line-height: 1.76; }

.workflow-demo { position: relative; min-width: 0; min-height: 0; padding-top: .78rem; border-top: 1px solid var(--line-strong); transition: opacity 220ms ease, transform 460ms cubic-bezier(.2,.8,.2,1); }
.workflow-demo-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: .65rem; }
.workflow-demo-head > div { display: flex; align-items: baseline; gap: .72rem; min-width: 0; }
.workflow-demo-head p, .workflow-demo-head span, .tech-foot p { margin: 0; font-size: .52rem; font-weight: 700; letter-spacing: .115em; line-height: 1.4; text-transform: uppercase; }
.workflow-demo-head span, .workflow-demo-head > p { color: var(--muted); }

.workflow-preview {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 12.5rem;
  max-height: 26rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(23,24,21,.22);
  color: #edf1ec;
  background:
    radial-gradient(circle at 82% 26%, rgba(86,125,120,.24), transparent 28%),
    #121716;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
  box-shadow: 0 1rem 2.4rem rgba(29,36,34,.08);
  transition: transform 400ms cubic-bezier(.2,.8,.2,1), box-shadow 300ms ease;
}

.workflow-preview::before { position: absolute; z-index: 1; inset: 0; content: ""; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px); background-size: 18px 18px; }
.workflow-preview::after { position: absolute; z-index: 4; inset: 0; content: ""; pointer-events: none; background: linear-gradient(0deg,rgba(8,11,10,.9),transparent 37%); }
.workflow-preview:hover, .workflow-preview:focus-visible { transform: translateY(-.25rem); box-shadow: 0 1.35rem 3rem rgba(29,36,34,.18); }

.workflow-map { display: block; width: 100%; overflow: visible; }
.workflow-map-preview { position: absolute; inset: 0; height: 100%; opacity: .9; filter: saturate(.86); }
.graph-link { fill: none; stroke: rgba(158,205,196,.34); stroke-width: 5; vector-effect: non-scaling-stroke; }
.graph-group { fill: rgba(205,223,216,.035); stroke: rgba(205,223,216,.23); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.graph-group-label { fill: rgba(222,233,228,.55); font-family: var(--sans); font-size: 27px; font-weight: 700; letter-spacing: 2px; }
.graph-node { stroke: rgba(255,255,255,.19); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.graph-node[data-kind="model"] { fill: #67485a; }
.graph-node[data-kind="input"] { fill: #315d62; }
.graph-node[data-kind="sample"] { fill: #865a31; }
.graph-node[data-kind="output"] { fill: #315447; }
.graph-node[data-kind="control"] { fill: #505273; }
.graph-node[data-kind="utility"] { fill: #3b4140; }
.graph-node.is-bypassed { opacity: .28; }
.graph-node-label { fill: rgba(255,255,255,.84); font-family: var(--sans); font-size: 19px; font-weight: 600; pointer-events: none; }
.graph-node-dot { fill: #e7ab68; }

.map-loading { position: absolute; z-index: 3; top: 50%; left: 50%; color: rgba(255,255,255,.58); font-size: .52rem; font-weight: 700; letter-spacing: .14em; transform: translate(-50%,-50%); }
.map-loading.is-hidden { display: none; }
.preview-caption { position: absolute; z-index: 6; right: .85rem; bottom: .7rem; left: .85rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.preview-caption > span { display: grid; gap: .2rem; }
.preview-caption b { font-size: .7rem; letter-spacing: .05em; }
.preview-caption small { color: rgba(255,255,255,.56); font-size: .5rem; letter-spacing: .08em; }
.preview-caption i { font-size: 1.2rem; font-style: normal; transition: transform 300ms ease; }
.workflow-preview:hover .preview-caption i { transform: translate(.18rem,-.18rem); }

.workflow-popover {
  position: fixed;
  z-index: 80;
  top: clamp(7.8rem,17vh,11.5rem);
  left: clamp(21rem,36.5vw,44rem);
  width: min(31rem,39vw);
  max-height: min(72svh,48rem);
  overflow: auto;
  border: 1px solid rgba(17,23,22,.34);
  color: #e9eeea;
  background: rgba(16,21,20,.985);
  box-shadow: 0 2rem 5rem rgba(8,12,11,.35);
  opacity: 0;
  transform: translate3d(-.8rem,.7rem,0) scale(.985);
  transform-origin: 0 45%;
  transition: opacity 180ms ease, transform 360ms cubic-bezier(.2,.8,.2,1);
}

.workflow-popover.is-open { opacity: 1; transform: none; }
.popover-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem .85rem; border-bottom: 1px solid rgba(255,255,255,.13); }
.popover-head p { margin: 0 0 .25rem; font-size: .76rem; font-weight: 700; letter-spacing: .04em; }
.popover-head span { color: rgba(255,255,255,.53); font-size: .49rem; font-weight: 700; letter-spacing: .1em; }
.popover-close { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; padding: 0; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: #fff; background: transparent; font: 400 1.05rem/1 var(--sans); cursor: pointer; }

.popover-tabs { display: grid; grid-template-columns: repeat(3,1fr); border-bottom: 1px solid rgba(255,255,255,.13); }
.popover-tabs button { min-height: 2.8rem; border: 0; border-right: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.5); background: transparent; font: 600 .66rem var(--sans); cursor: pointer; }
.popover-tabs button:last-child { border-right: 0; }
.popover-tabs button[aria-selected="true"] { color: #fff; background: rgba(255,255,255,.08); box-shadow: inset 0 -2px #e7ab68; }

.popover-panel { padding: 1rem 1.1rem; }
.workflow-map-detail { height: clamp(12rem,29vh,18rem); border: 1px solid rgba(255,255,255,.1); background: #101514; }
.workflow-specs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: .8rem 0 0; border-top: 1px solid rgba(255,255,255,.12); }
.workflow-specs div { min-width: 0; padding: .7rem .55rem .35rem 0; }
.workflow-specs dt, .workflow-specs dd { margin: 0; }
.workflow-specs dt { color: rgba(255,255,255,.46); font-size: .48rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.workflow-specs dd { margin-top: .28rem; overflow: hidden; color: rgba(255,255,255,.88); font-size: .64rem; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }

.evidence-gallery { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .45rem; margin: 0 0 .85rem; }
.evidence-gallery[hidden] { display: none; }
.evidence-gallery.is-single { grid-template-columns: 1fr; }
.evidence-gallery figure { position: relative; min-width: 0; margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.12); background: #0d1110; }
.evidence-gallery img { display: block; width: 100%; height: 10.5rem; object-fit: cover; filter: saturate(.84); }
.evidence-gallery.is-single img { height: auto; max-height: 15rem; }
.evidence-gallery figcaption { position: absolute; right: .35rem; bottom: .3rem; left: .35rem; color: rgba(255,255,255,.82); font-size: .45rem; font-weight: 700; letter-spacing: .08em; text-shadow: 0 1px 8px rgba(0,0,0,.75); }
.evidence-states { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem; }
.evidence-state { min-height: 6.2rem; padding: .75rem; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.035); }
.evidence-state p { margin: 0 0 1.25rem; color: #e7ab68; font-size: .49rem; font-weight: 700; letter-spacing: .11em; }
.evidence-state strong { display: block; margin-bottom: .3rem; font-size: .66rem; }
.evidence-state span { display: block; color: rgba(255,255,255,.56); font-size: .56rem; line-height: 1.5; }

.more-note { margin: 0 0 .8rem; color: rgba(255,255,255,.62); font-size: .62rem; line-height: 1.6; }
.related-list { margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.12); list-style: none; }
.related-list li { display: grid; grid-template-columns: 1fr auto; gap: .7rem; padding: .75rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.related-list strong { font-size: .65rem; font-weight: 600; }
.related-list span { color: #b9d8cf; font-size: .5rem; font-weight: 700; letter-spacing: .08em; }

.popover-foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .75rem 1.1rem; border-top: 1px solid rgba(255,255,255,.12); }
.popover-foot span { color: rgba(255,255,255,.42); font-size: .48rem; letter-spacing: .06em; }
.popover-foot button { padding: .48rem .65rem; border: 1px solid rgba(255,255,255,.2); color: #fff; background: transparent; font: 600 .52rem var(--sans); cursor: pointer; }
.popover-foot button.is-pinned { color: #161918; background: #e7ab68; }

.tech-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .75rem; padding-top: .65rem; border-top: 1px solid var(--line); }
.tech-foot p:last-child { color: var(--muted); text-align: right; }
.tech-foot span { color: var(--accent); }

.motion-wall { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: linear-gradient(135deg,rgba(255,255,255,.18),transparent 42%), linear-gradient(145deg,var(--right-a),var(--right-b)); isolation: isolate; }
.motion-wall::before { position: absolute; z-index: 8; inset: 0; content: ""; pointer-events: none; background: linear-gradient(to bottom,rgba(8,12,18,.34),transparent 11%,transparent 88%,rgba(8,12,18,.42)), linear-gradient(to right,rgba(255,255,255,.12),transparent 12%,transparent 88%,rgba(8,12,18,.16)); }
.motion-wall::after { position: absolute; z-index: 9; right: clamp(1rem,2vw,2rem); bottom: 12%; width: clamp(5.5rem,8vw,8rem); aspect-ratio: 1; border: 1px solid rgba(255,255,255,.62); border-radius: 50%; content: ""; pointer-events: none; box-shadow: inset 0 0 0 1rem rgba(255,255,255,.08); mix-blend-mode: screen; }
.wall-head, .wall-footer { position: absolute; z-index: 12; right: clamp(1rem,2vw,2rem); left: clamp(1rem,2vw,2rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: rgba(255,255,255,.88); mix-blend-mode: difference; pointer-events: none; }
.wall-head { top: 1.15rem; }
.wall-footer { bottom: 1.1rem; }
.wall-head p, .wall-footer p { margin: 0; font-size: .52rem; font-weight: 700; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; }
.wall-head b { display: inline-block; margin-left: .4rem; font-size: .85rem; font-weight: 400; transition: transform 400ms cubic-bezier(.2,.8,.2,1); }
.motion-wall:hover .wall-head b { transform: translate(.2rem,-.2rem); }
.wall-columns { position: absolute; inset: -13% -4%; display: grid; grid-template-columns: .92fr 1.12fr .96fr; gap: clamp(.45rem,.8vw,.8rem); transform: rotate(-2.2deg) scale(1.04); transform-origin: center; }
.wall-column { position: relative; min-width: 0; overflow: hidden; }
.wall-column:nth-child(2) { transform: translateY(-3.5%); }
.wall-track { display: grid; gap: clamp(.45rem,.8vw,.8rem); will-change: transform; }
.wall-item { position: relative; min-height: 9rem; margin: 0; overflow: hidden; background: #d7d6cf; transform: translate3d(calc(var(--mx)*var(--shift-x,0px)),calc(var(--my)*var(--shift-y,0px)),0); transition: opacity 360ms ease, filter 360ms ease, transform 800ms cubic-bezier(.2,.8,.2,1); }
.wall-item[data-shape="wide"] { aspect-ratio: 1.45; }
.wall-item[data-shape="square"] { aspect-ratio: 1; }
.wall-item[data-shape="tall"] { aspect-ratio: .78; }
.wall-item img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.015); transition: transform 1.2s cubic-bezier(.2,.8,.2,1), filter 500ms ease; }
.wall-item::after { position: absolute; inset: 0; content: ""; pointer-events: none; background: linear-gradient(150deg,rgba(255,255,255,.08),transparent 42%,rgba(8,10,11,.11)); }
.wall-item figcaption { position: absolute; z-index: 2; right: .55rem; bottom: .45rem; color: rgba(255,255,255,.82); font-size: .48rem; font-weight: 700; letter-spacing: .12em; text-shadow: 0 1px 12px rgba(0,0,0,.46); }
.motion-wall:hover .wall-item img { transform: scale(1.045); }

body.is-switching .tech-copy, body.is-switching .workflow-demo { opacity: 0; transform: translateY(.5rem); }
body.is-switching .wall-item { opacity: .55; filter: saturate(.55); }
.scroll-story { position: relative; z-index: 0; height: 600svh; pointer-events: none; }
.scroll-story i { position: absolute; left: 0; width: 1px; height: 1px; opacity: 0; }
.scroll-story i:nth-child(1) { top: 20%; }
.scroll-story i:nth-child(2) { top: 40%; }
.scroll-story i:nth-child(3) { top: 60%; }
.scroll-story i:nth-child(4) { top: 80%; }
.scroll-story i:nth-child(5) { top: 100%; }
.page-hint { position: fixed; z-index: 62; left: clamp(1.1rem,2.8vw,3.2rem); bottom: .58rem; margin: 0; color: rgba(23,24,21,.45); font-size: .49rem; font-weight: 700; letter-spacing: .13em; pointer-events: none; }
#scroll-position { color: var(--accent); }
.popover-scrim { display: none; }

.entry-wipe { position: fixed; z-index: 100; inset: 0; visibility: hidden; overflow: hidden; pointer-events: none; }
.entry-wipe i { position: absolute; inset: 0; display: block; transform: translateX(-105%); }
.entry-wipe i:nth-child(1) { background: #ccd9fa; }
.entry-wipe i:nth-child(2) { background: #f1c7b8; }
.entry-wipe i:nth-child(3) { background: var(--paper); }
body.is-arriving .entry-wipe, body.is-leaving .entry-wipe { visibility: visible; }
body.is-arriving .entry-wipe i { animation: page-sweep-in 1080ms cubic-bezier(.72,0,.18,1) both; }
body.is-arriving .entry-wipe i:nth-child(2) { animation-delay: 70ms; }
body.is-arriving .entry-wipe i:nth-child(3) { animation-delay: 140ms; }
body.is-leaving .entry-wipe i { animation: page-sweep-out 760ms cubic-bezier(.68,0,.22,1) both; }
body.is-leaving .entry-wipe i:nth-child(2) { animation-delay: 55ms; }
body.is-leaving .entry-wipe i:nth-child(3) { animation-delay: 110ms; }
body.is-arriving .atlas-shell { animation: atlas-arrive 1120ms cubic-bezier(.18,.82,.18,1) both; }
body.is-leaving .atlas-shell { opacity: 0; transform: scale(.985); transition: opacity 500ms ease, transform 700ms cubic-bezier(.5,0,.8,.2); }

@keyframes page-sweep-in { 0% { transform: translateX(-105%); } 48% { transform: translateX(0); } 100% { transform: translateX(105%); } }
@keyframes page-sweep-out { 0% { transform: translateX(105%); } 100% { transform: translateX(0); } }
@keyframes atlas-arrive { 0%,32% { opacity: 0; transform: translateY(.8rem); } 100% { opacity: 1; transform: none; } }
@keyframes grain-shift { 0% { transform: translate3d(0,0,0); } 25% { transform: translate3d(-.7px,.5px,0); } 50% { transform: translate3d(.5px,-.6px,0); } 75% { transform: translate3d(.8px,.7px,0); } 100% { transform: translate3d(-.4px,-.5px,0); } }

@media (max-width: 1180px) {
  .atlas-shell { grid-template-columns: minmax(27rem,.92fr) minmax(29rem,1.08fr); }
  .tech-panel { padding-right: 1.45rem; padding-left: 1.45rem; }
  .case-rail strong { font-size: .55rem; }
  .workflow-popover { left: 31vw; width: min(32rem,48vw); }
}

@media (max-width: 900px) {
  .site-head {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .atlas-shell::after { animation: none; }
  body.is-switching .wall-item { filter: none; }
  .site-head { height: 4.2rem; }
  .atlas-shell { grid-template-columns: 1fr; grid-template-rows: minmax(0,65%) minmax(0,35%); height: 100svh; min-height: 0; padding-top: 4.2rem; }
  .tech-panel { grid-template-rows: auto auto minmax(0,1fr) auto; min-height: 0; padding: .68rem clamp(1rem,4vw,2rem) .5rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .case-rail { overflow-x: auto; grid-template-columns: repeat(6,6.8rem); overscroll-behavior-inline: contain; scrollbar-width: thin; }
  .case-rail button { min-width: 6.8rem; min-height: 2.85rem; padding: .62rem .48rem; }
  .tech-copy { padding: .72rem 0 .55rem; }
  .tech-meta { margin-bottom: .45rem; }
  .tech-copy h1 { font-size: clamp(2.25rem,8vw,3.8rem); }
  .case-lead { margin-top: .45rem; font-size: .7rem; line-height: 1.52; }
  .workflow-demo { padding-top: .48rem; }
  .workflow-demo-head { margin-bottom: .4rem; }
  .workflow-preview { min-height: 7.2rem; }
  .motion-wall { height: auto; min-height: 0; }
  .wall-columns { inset: -10% -5%; }
  .workflow-popover { top: auto; right: 0; bottom: 0; left: 0; width: 100%; max-height: 78svh; border-right: 0; border-bottom: 0; border-left: 0; transform: translateY(1.5rem); transform-origin: 50% 100%; }
  .workflow-popover.is-open { transform: none; }
  .popover-scrim { position: fixed; z-index: 75; inset: 0; display: block; visibility: hidden; background: rgba(7,10,9,.42); opacity: 0; pointer-events: none; transition: opacity 180ms ease, visibility 180ms ease; }
  .popover-scrim.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
  .page-hint { left: .85rem; bottom: .4rem; max-width: calc(100vw - 1.7rem); overflow: hidden; color: rgba(255,255,255,.72); mix-blend-mode: difference; text-overflow: ellipsis; white-space: nowrap; }
}

@media (max-width: 620px) {
  .site-head { grid-template-columns: 1fr auto; padding: 0 1rem; }
  .site-brand { display: none; }
  .site-section { font-size: .5rem !important; }
  .atlas-shell { grid-template-rows: minmax(0,67%) minmax(0,33%); }
  .tech-panel { padding-right: 1rem; padding-left: 1rem; }
  .case-rail { grid-template-columns: repeat(6,6.3rem); }
  .case-rail button { min-width: 6.3rem; }
  .tech-copy { padding-top: .55rem; padding-bottom: .4rem; }
  .case-eyebrow { font-size: .53rem; }
  .case-status { padding: .3rem .38rem; font-size: .44rem; }
  .tech-copy h1 { font-size: clamp(2rem,10.4vw,2.9rem); }
  .case-lead { display: -webkit-box; overflow: hidden; font-size: .66rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .workflow-demo-head > div { display: grid; gap: .1rem; }
  .workflow-demo-head > p { display: none; }
  .workflow-demo-head p, .workflow-demo-head span { font-size: .45rem; }
  .workflow-preview { min-height: 6.6rem; }
  .preview-caption b { font-size: .58rem; }
  .preview-caption small { font-size: .43rem; }
  .tech-foot { margin-top: .4rem; padding-top: .35rem; }
  .tech-foot p { max-width: 48%; font-size: .43rem; }
  .wall-columns { inset: -7% -13%; grid-template-columns: .9fr 1.1fr .92fr; gap: .38rem; transform: rotate(-1.6deg) scale(1.06); }
  .wall-track { gap: .38rem; }
  .wall-item { min-height: 5.4rem; }
  .wall-head p, .wall-footer p { font-size: .44rem; }
  .wall-footer p:first-child { max-width: 78%; }
  .wall-footer p:last-child { display: none; }
  .popover-panel { padding: .85rem 1rem; }
  .workflow-map-detail { height: 13rem; }
  .workflow-specs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .evidence-states { grid-template-columns: 1fr; }
  .evidence-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .evidence-state { min-height: 5.2rem; }
  .popover-foot { padding-right: 1rem; padding-left: 1rem; }
}

@media (max-width: 360px) {
  .atlas-shell { grid-template-rows: minmax(0,69%) minmax(0,31%); }
  .tech-copy h1 { font-size: 1.85rem; }
  .case-lead { font-size: .6rem; }
  .workflow-preview { min-height: 5.7rem; }
  .tech-foot p:first-child { display: none; }
  .tech-foot p:last-child { max-width: 100%; margin-left: auto; }
  .page-hint { font-size: 0; }
  .page-hint::after, #scroll-position { font-size: .46rem; }
  .page-hint::after { content: " · SCROLL"; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .wall-columns, .wall-track, .wall-item, body::before { transform: none !important; }
}
