:root {
  --black: #000000;
  --charcoal: #131313;
  --panel: #1b1b1b;
  --line: #3a3a3a;
  --white: #ffffff;
  --orange: #ff4b16;
  --yellow: #ffd316;
  --red: #e72812;
  --green: #c7ff16;
  --blue: #1aa8ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 74px; }
body { margin: 0; background: var(--black); color: var(--white); font-family: Inter, Arial, Helvetica, sans-serif; line-height: 1.5; }
body.motion-paused *, body.motion-paused *::before, body.motion-paused *::after { animation-play-state: paused !important; transition-duration: .01ms !important; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 200; padding: 10px 14px; background: var(--green); color: var(--black); font-weight: 900; }
.skip-link:focus { top: 16px; }

.loading-screen { position: fixed; inset: 0; z-index: 300; display: grid; place-content: center; justify-items: center; gap: 12px; background: var(--black); transition: opacity 400ms ease, visibility 400ms ease; }
.loading-screen.is-hidden { opacity: 0; visibility: hidden; }
.loading-screen p { margin: 0; text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; font-weight: 900; }
.loading-screen strong { font-size: 3rem; line-height: 1; }
.loading-track { width: min(330px, 72vw); height: 5px; background: var(--line); }
.loading-track span { display: block; width: 0; height: 100%; background: var(--orange); transition: width 120ms linear; }
.loading-mark { position: relative; width: 92px; height: 58px; border: 4px solid var(--white); border-radius: 10px; }
.loading-mark::before { content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; border: 4px solid var(--white); border-radius: 50%; transform: translate(-50%, -50%); }
.loading-mark::after { content: ""; position: absolute; left: 12px; top: -12px; width: 24px; height: 12px; background: var(--white); }
.loading-mark span { position: absolute; right: 8px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

.topbar { position: fixed; z-index: 100; inset: 0 0 auto; min-height: 74px; padding: 10px clamp(14px, 3vw, 42px); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: var(--black); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: .96rem; }
.brand small { margin-top: 2px; color: #9a9a9a; font-size: .67rem; }
.brand-icon { position: relative; width: 43px; height: 30px; border: 2px solid var(--white); border-radius: 5px; }
.brand-icon::before { content: ""; position: absolute; top: -8px; left: 7px; width: 15px; height: 8px; background: var(--white); }
.brand-icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 14px; border: 2px solid var(--white); border-radius: 50%; transform: translate(-50%, -50%); }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 900; }
.status-pill i, .specimen-state i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.soundless-button, .viewer-actions button, .panel-controls button { border: 1px solid var(--white); background: transparent; color: var(--white); cursor: pointer; }
.soundless-button { min-height: 38px; padding: 7px 12px; border-radius: 999px; font-size: .72rem; font-weight: 800; }

.hero { position: relative; min-height: 100vh; overflow: hidden; display: grid; align-items: center; padding: 140px clamp(22px, 7vw, 110px) 80px; background: var(--white); color: var(--black); }
.hero-copy { position: relative; z-index: 3; max-width: 1080px; }
.eyebrow { margin: 0 0 13px; font-size: .72rem; line-height: 1.2; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.hero h1 { max-width: 1150px; margin: 0; font-size: clamp(4.2rem, 9vw, 9.6rem); line-height: .84; letter-spacing: -.075em; }
.hero-lede { max-width: 720px; margin: 30px 0; font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 650; }
.primary-link { display: inline-flex; align-items: center; gap: 12px; min-height: 50px; padding: 10px 18px; border: 2px solid var(--black); border-radius: 999px; color: var(--black); font-weight: 900; text-decoration: none; }
.hero-diagram { position: absolute; z-index: 1; right: clamp(-92px, -4vw, -28px); bottom: clamp(-16px, 1.4vw, 28px); width: min(56vw, 820px); aspect-ratio: 82 / 62; opacity: .98; pointer-events: none; }
.hero-diagram::before { content: ""; position: absolute; inset: 14% 5% 8% 8%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 211, 22, .12), rgba(255, 211, 22, 0) 67%); filter: blur(20px); }
.optical-cutaway { position: relative; display: block; width: 100%; height: 100%; overflow: visible; }
.optic-grid path { fill: none; stroke: #c9ccca; stroke-width: 1; }
.optic-label path { fill: none; stroke: #858b89; stroke-width: 1.5; }
.optic-label text, .optic-specs text { fill: #555b59; font-family: "Arial Narrow", "Roboto Condensed", sans-serif; font-size: 12px; font-weight: 800; letter-spacing: .18em; }
.optic-label .optic-index { fill: #a4a9a7; font-size: 10px; }
.optic-rail { fill: none; stroke: #252b2d; stroke-width: 7; stroke-linecap: round; }
.optic-rail-detail { fill: none; stroke: #737a7d; stroke-width: 2; }
.hero-rays path { fill: none; stroke: #ffd316; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.hero-rays-glow { opacity: .28; }
.hero-rays-glow path { stroke-width: 10; }
.lens-element { transform-box: fill-box; transform-origin: center; animation: optic-breathe 7s ease-in-out infinite; }
.lens-second { animation-delay: -1.1s; }
.lens-third { animation-delay: -2.3s; }
.lens-rear { animation-delay: -3.4s; }
.lens-corrector { animation-delay: -4.6s; }
.aperture-blades { transform-box: fill-box; transform-origin: center; animation: iris-turn 12s ease-in-out infinite; }
.sensor-assembly { animation: sensor-shimmer 6s ease-in-out infinite; }
.optic-specs::before { content: ""; }

.explorer-section { padding: 110px clamp(12px, 3vw, 46px) 90px; background: var(--black); }
.explorer-heading, .section-heading { max-width: 1050px; margin-bottom: 46px; }
.explorer-heading { display: flex; justify-content: space-between; align-items: end; gap: 36px; }
.explorer-heading h2, .section-heading h2 { margin: 0; font-size: clamp(3rem, 6vw, 6.2rem); line-height: .9; letter-spacing: -.06em; }
.explorer-heading > p { max-width: 410px; margin: 0; color: #bfbfbf; }
.explorer-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 370px); width: 100%; max-width: 100%; border: 1px solid var(--line); min-height: 760px; overflow: hidden; }
.viewer-column { min-width: 0; border-right: 1px solid var(--line); }
.viewer-topline { min-height: 58px; padding: 8px 12px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); background: #0a0a0a; }
.specimen-state { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 900; }
.view-tabs { display: inline-flex; border: 1px solid var(--white); border-radius: 999px; overflow: hidden; }
.view-tabs button { min-height: 35px; padding: 7px 13px; border: 0; border-right: 1px solid var(--white); background: var(--black); color: var(--white); font-size: .7rem; font-weight: 900; cursor: pointer; }
.view-tabs button:last-child { border-right: 0; }
.view-tabs button.is-active { background: var(--white); color: var(--black); }
.viewer-wrap { position: relative; min-height: 650px; overflow: hidden; background: #111214; touch-action: none; }
#cameraCanvas { display: block; width: 100%; height: 650px; cursor: grab; }
#cameraCanvas:active { cursor: grabbing; }
.hotspot-layer { position: absolute; inset: 0; pointer-events: none; }
.hotspot-leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hotspot-leader { stroke: rgba(255, 255, 255, .68); stroke-width: 1; vector-effect: non-scaling-stroke; transition: opacity 140ms ease, stroke 140ms ease; }
.hotspot-leader.is-active { stroke: var(--orange); stroke-width: 1.5; }
.hotspot { position: absolute; width: 31px; height: 31px; border: 2px solid var(--white); border-radius: 50%; background: var(--black); color: var(--white); font-size: .62rem; font-weight: 900; transform: translate(-50%, -50%); pointer-events: auto; cursor: pointer; transition: transform 140ms ease, background 140ms ease, color 140ms ease, opacity 140ms ease; }
.hotspot:hover, .hotspot.is-active { z-index: 3; background: var(--yellow); color: var(--black); transform: translate(-50%, -50%) scale(1.14); }
.hotspot.is-surface { border-color: var(--green); }
.hotspot.is-light-muted { filter: brightness(.58); }
.hotspot-leader.is-light-muted { stroke: rgba(255, 255, 255, .28); }
.hotspot.is-light-muted.is-active { filter: none; }
.hotspot-leader.is-light-muted.is-active { stroke: var(--orange); }
.hotspot[hidden] { display: none; }
.viewer-help { position: absolute; left: 12px; bottom: 14px; display: grid; min-width: 180px; padding: 10px 12px; border: 1px solid var(--white); background: var(--black); font-size: .66rem; }
.viewer-help strong { color: var(--orange); }
.viewer-actions { position: absolute; right: 12px; bottom: 14px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.viewer-actions button { min-height: 38px; padding: 8px 13px; border-radius: 999px; font-size: .68rem; font-weight: 900; }
.viewer-actions button.is-active { background: var(--green); color: var(--black); border-color: var(--green); }
.viewer-actions .accent-button { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.capture-flash { position: absolute; inset: 0; background: var(--white); opacity: 0; pointer-events: none; }
.capture-flash.is-flashing { animation: capture-flash 420ms ease; }
.webgl-fallback { position: absolute; inset: 0; z-index: 8; display: grid; grid-template-columns: minmax(260px, 520px) minmax(240px, 420px); place-content: center; align-items: center; gap: 34px; padding: 34px; text-align: left; background: var(--black); }
.webgl-fallback[hidden] { display: none !important; }
.webgl-fallback h3 { margin: 0 0 10px; font-size: clamp(1.8rem, 3vw, 3rem); line-height: .95; }
.webgl-fallback p { margin: 0; color: #c8c8c8; }
.fallback-camera { width: min(100%, 520px); height: auto; filter: drop-shadow(0 24px 30px rgba(0,0,0,.55)); }
.fallback-copy { max-width: 410px; }
.fallback-kicker { display: block; margin-bottom: 10px; color: var(--green); font-size: .68rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.layer-bar { min-height: 52px; padding: 10px 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 14px; border-top: 1px solid var(--line); background: #080808; font-size: .66rem; }
.layer-bar > strong { color: var(--orange); text-transform: uppercase; letter-spacing: .1em; }
.layer-bar label { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.layer-bar input { accent-color: var(--orange); }
.explorer-capture { padding: 24px 12px 12px; border-top: 1px solid var(--line); background: #0b0b0b; }
.capture-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.capture-heading .eyebrow { margin: 0; color: var(--orange); }
.capture-heading > p:last-child { max-width: 510px; margin: 0; color: #bfbfbf; font-size: .8rem; text-align: right; }

.info-panel { min-width: 0; padding: 24px; background: #0b0b0b; overflow: auto; }
.part-heading { display: grid; grid-template-columns: 66px 1fr; gap: 14px; align-items: start; }
.part-heading > span { display: grid; place-items: center; width: 62px; height: 62px; border: 2px solid var(--white); border-radius: 50%; color: var(--orange); font-size: 1.3rem; font-weight: 900; }
.part-heading h3 { margin: 0; font-size: clamp(2rem, 3.2vw, 3.4rem); line-height: .9; letter-spacing: -.05em; }
.part-definition { margin: 26px 0; font-size: 1.05rem; font-weight: 750; }
.fact-block { padding: 16px 0; border-top: 1px solid var(--line); }
.fact-block span, .notice-block span { display: block; margin-bottom: 6px; color: #a8a8a8; font-size: .66rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.fact-block p, .notice-block p { margin: 0; }
.notice-block { margin: 10px 0 20px; padding: 16px; border: 1px solid var(--black); background: var(--yellow); color: var(--black); }
.notice-block span { color: var(--black); }
.panel-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.panel-controls button { min-height: 42px; padding: 8px; font-size: .68rem; font-weight: 900; }
.panel-controls button:first-child { background: var(--white); color: var(--black); }
.part-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.part-index button { min-height: 38px; padding: 6px 8px; border: 1px solid var(--line); background: var(--black); color: var(--white); text-align: left; font-size: .64rem; font-weight: 800; cursor: pointer; }
.part-index button.is-active { border-color: var(--orange); color: var(--orange); }

.exposure-lab, .comparison-section { padding: 110px clamp(22px, 7vw, 110px); background: var(--white); color: var(--black); }
.capture-timeline { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 2px solid var(--black); background: var(--black); }
.capture-timeline button { min-width: 0; min-height: 230px; padding: 16px; display: grid; align-content: space-between; gap: 12px; border: 0; border-right: 2px solid var(--black); background: var(--white); color: var(--black); text-align: left; cursor: pointer; }
.capture-timeline button:last-child { border-right: 0; }
.capture-timeline button span { font-size: 2.6rem; font-weight: 900; line-height: 1; }
.capture-timeline button strong { font-size: 1.15rem; line-height: 1; }
.capture-timeline button small { font-size: .73rem; line-height: 1.4; }
.capture-timeline button.is-active { background: var(--yellow); }

.exposure-lab { background: var(--orange); }
.lab-grid { display: grid; grid-template-columns: minmax(300px, .65fr) minmax(0, 1fr); gap: 20px; }
.control-panel, .photo-preview-wrap { padding: 26px; border: 2px solid var(--black); background: var(--white); }
.control-row { padding: 18px 0; border-bottom: 2px solid var(--black); }
.control-row:first-child { padding-top: 0; }
.control-row label { display: flex; justify-content: space-between; gap: 16px; font-weight: 900; }
.control-row input { width: 100%; margin: 20px 0 8px; accent-color: var(--black); }
.range-ends { display: flex; justify-content: space-between; color: #555; font-size: .66rem; font-weight: 800; }
.meter { margin-top: 24px; }
.meter > span { font-size: .68rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.meter-track { position: relative; height: 18px; margin: 10px 0; border: 2px solid var(--black); background: var(--white); }
.meter-track i { position: absolute; top: -8px; left: 50%; width: 4px; height: 30px; background: var(--orange); transform: translateX(-50%); transition: left 180ms ease; }
.preview-label { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; font-size: .7rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.photo-preview { position: relative; min-height: 430px; overflow: hidden; border: 2px solid var(--black); background: var(--blue); isolation: isolate; transition: filter 180ms ease; }
.preview-sky { position: absolute; inset: 0 0 35%; background: #1aa8ff; }
.preview-sun { position: absolute; top: 42px; right: 64px; width: 72px; height: 72px; border: 3px solid var(--black); border-radius: 50%; background: var(--yellow); }
.preview-ground { position: absolute; inset: 65% 0 0; background: var(--green); border-top: 3px solid var(--black); }
.preview-tree { position: absolute; left: 12%; bottom: 30%; width: 55px; height: 165px; }
.preview-tree i { position: absolute; left: 22px; bottom: 0; width: 16px; height: 85px; background: #6b3218; }
.preview-tree span { position: absolute; left: 0; top: 0; width: 58px; height: 85px; border: 3px solid var(--black); border-radius: 50%; background: #0c7d37; }
.preview-cyclist { position: absolute; right: 18%; bottom: 18%; width: 160px; height: 120px; transform-origin: center; transition: filter 180ms ease; }
.wheel { position: absolute; bottom: 0; width: 58px; height: 58px; border: 5px solid var(--black); border-radius: 50%; background: transparent; }
.wheel-one { left: 0; }
.wheel-two { right: 0; }
.bike-frame { position: absolute; left: 35px; bottom: 28px; width: 78px; height: 44px; border: 5px solid var(--red); transform: skewX(-14deg); }
.rider-head { position: absolute; left: 76px; top: 0; width: 27px; height: 27px; border: 3px solid var(--black); border-radius: 50%; background: var(--yellow); }
.rider-body { position: absolute; left: 68px; top: 29px; width: 14px; height: 48px; background: var(--black); transform: rotate(24deg); }
.focus-frame { position: absolute; left: 50%; top: 50%; width: 58%; height: 66%; border: 2px solid var(--white); transform: translate(-50%, -50%); }
.noise-layer { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: multiply; opacity: .05; pointer-events: none; }
.photo-preview-wrap > p { margin: 18px 0 0; font-weight: 700; }

.inversion-section { padding: 110px clamp(22px, 7vw, 110px); background: var(--black); }
.light-heading { color: var(--white); }
.inversion-diagram { position: relative; min-height: 360px; border: 1px solid var(--line); padding: 18px; overflow: hidden; }
.formation-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.formation-svg { display: block; width: 100%; height: auto; overflow: visible; }
.formation-mobile, .formation-mobile-note { display: none; }
.formation-svg text { font-family: inherit; }
.formation-label { fill: var(--white); font-size: 16px; font-weight: 900; letter-spacing: 1.8px; }
.formation-sub-label { fill: #9d9d9d; font-size: 9px; font-weight: 900; letter-spacing: 1.1px; }
.formation-annotation { fill: #c5c5c5; font-size: 11px; font-weight: 700; }
.formation-sun { fill: var(--yellow); stroke: var(--black); stroke-width: 3; }
.formation-mountain { fill: #2b759c; stroke: var(--white); stroke-width: 2; }
.formation-mountain-back { fill: #183d51; }
.formation-snow { fill: var(--white); }
.formation-ground { fill: #182b20; }
.formation-house { fill: var(--white); stroke: var(--black); stroke-width: 2; }
.formation-roof { fill: var(--yellow); stroke: var(--black); stroke-width: 2; }
.formation-door { fill: var(--orange); stroke: var(--black); stroke-width: 2; }
.formation-window { fill: var(--blue); stroke: var(--black); stroke-width: 2; }
.formation-tree-trunk { fill: var(--orange); stroke: var(--black); stroke-width: 2; }
.formation-tree { fill: var(--green); stroke: var(--black); stroke-width: 2; stroke-linejoin: bevel; }
.formation-horizon, .formation-baseline { fill: none; stroke: var(--white); stroke-width: 2; }
.formation-housing { fill: none; stroke: #777d84; stroke-width: 3; }
.formation-glass { fill: rgba(26, 168, 255, .16); stroke: #53c9ff; stroke-width: 4; }
.formation-glass-secondary { fill: rgba(26, 168, 255, .08); stroke: #238fc7; }
.formation-aperture { fill: #b9bec4; stroke: var(--black); stroke-width: 2; }
.formation-aperture-opening { fill: var(--black); stroke: var(--yellow); stroke-width: 2; }
.formation-rays path { fill: none; stroke: var(--yellow); stroke-width: 4; stroke-linecap: square; stroke-linejoin: miter; stroke-dasharray: 760; stroke-dashoffset: 760; }
.formation-light-label { fill: var(--yellow); opacity: 0; }
.formation-sensor-edge { fill: #070707; stroke: #848b91; stroke-width: 3; }
.formation-sensor-plate { fill: #101820; stroke: var(--white); stroke-width: 2; }
.formation-sensor-bed { fill: #071017; }
.formation-sensor-image { opacity: 0; }
.formation-pixel-grid { opacity: .42; }
.photosite-red { fill: var(--red); }
.photosite-green { fill: var(--green); }
.photosite-blue { fill: var(--blue); }
.formation-process { opacity: 0; }
.formation-process-line, .formation-process-pins { fill: none; stroke: var(--orange); stroke-width: 3; }
.formation-process-chip { fill: var(--black); stroke: var(--orange); stroke-width: 2; }
.formation-process-tip { fill: var(--orange); }
.formation-screen-frame { fill: #080808; stroke: var(--white); stroke-width: 3; }
.formation-screen-inner { fill: #15191c; stroke: #666d72; stroke-width: 2; }
.formation-display-bed { fill: #d8f2ff; }
.formation-display-image { opacity: 0; }
.formation-screen-control { fill: var(--orange); }
.formation-stage { opacity: 0; transform: translateY(8px); }
.inversion-diagram.is-visible .formation-scene { animation: formation-reveal .6s .08s ease-out both; }
.inversion-diagram.is-visible .formation-lens-stage { animation: formation-reveal .55s .55s ease-out both; }
.inversion-diagram.is-visible .formation-rays-in path { animation: formation-draw 1.25s .95s ease-in-out both; }
.inversion-diagram.is-visible .formation-rays-out path { animation: formation-draw 1.35s 1.85s ease-in-out both; }
.inversion-diagram.is-visible .formation-light-label { animation: formation-opacity .4s .95s ease-out both; }
.inversion-diagram.is-visible .formation-sensor-stage { animation: formation-reveal .5s 2.8s ease-out both; }
.inversion-diagram.is-visible .formation-sensor-image { animation: formation-opacity .9s 3.15s ease-out both; }
.inversion-diagram.is-visible .formation-process { animation: formation-opacity .65s 3.9s ease-out both; }
.inversion-diagram.is-visible .formation-display-stage { animation: formation-reveal .5s 4.35s ease-out both; }
.inversion-diagram.is-visible .formation-display-image { animation: formation-opacity .8s 4.65s ease-out both; }

.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--black); }
.comparison-grid article { min-height: 430px; padding: 34px; }
.comparison-grid article + article { border-left: 2px solid var(--black); background: var(--yellow); }
.comparison-number { display: grid; place-items: center; width: 62px; height: 62px; border: 2px solid var(--black); border-radius: 50%; font-size: 1.5rem; font-weight: 900; }
.comparison-grid h3 { margin: 28px 0 10px; font-size: clamp(2.6rem, 5vw, 5rem); line-height: .9; }
.comparison-grid p { max-width: 620px; }
.path-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 42px; }
.path-strip i { padding: 8px 10px; border: 2px solid var(--black); font-style: normal; font-weight: 900; }
.path-strip b { font-size: 1.5rem; }
.final-section { padding: 120px clamp(22px, 7vw, 110px); background: var(--yellow); color: var(--black); }
.final-section h2 { max-width: 1200px; margin: 0 0 30px; font-size: clamp(3.4rem, 7vw, 7.5rem); line-height: .88; letter-spacing: -.065em; }
.final-section a { color: var(--black); font-weight: 900; }
footer { padding: 26px 20px; border-top: 1px solid var(--line); background: var(--black); text-align: center; font-weight: 900; }
footer p { margin: 0; }

@keyframes capture-flash { 0% { opacity: 0; } 18% { opacity: .96; } 100% { opacity: 0; } }
@keyframes optic-breathe { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
@keyframes iris-turn { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(7deg); } }
@keyframes sensor-shimmer { 0%, 100% { opacity: .88; } 50% { opacity: 1; } }
@keyframes formation-reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes formation-opacity { from { opacity: 0; } to { opacity: 1; } }
@keyframes formation-draw { from { stroke-dashoffset: 760; } to { stroke-dashoffset: 0; } }
@media (max-width: 1180px) {
  .hero-diagram { right: -120px; width: min(64vw, 760px); opacity: .72; }
  .explorer-shell { grid-template-columns: 1fr; }
  .viewer-column { border-right: 0; border-bottom: 1px solid var(--line); }
  .part-index { grid-template-columns: repeat(4, 1fr); }
  .capture-timeline { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .capture-timeline button { grid-column: span 3; border-bottom: 2px solid var(--black); }
  .capture-timeline button:nth-child(4) { border-right: 0; }
  .capture-timeline button:nth-child(n+5) { grid-column: span 4; border-bottom: 0; }
  .inversion-diagram { padding: 12px; }
}
@media (max-width: 820px) {
  .hero-diagram { right: -210px; bottom: 10px; width: 780px; opacity: .38; }
  .explorer-heading { display: block; }
  .explorer-heading > p { margin-top: 18px; }
  .viewer-topline { align-items: flex-start; flex-direction: column; }
  .view-tabs { width: 100%; }
  .view-tabs button { flex: 1; padding-inline: 7px; }
  #cameraCanvas, .viewer-wrap { min-height: 560px; height: 560px; }
  .viewer-actions { left: 12px; right: 12px; bottom: 60px; justify-content: center; }
  .viewer-help { bottom: 10px; min-width: 0; }
  .layer-bar { padding-top: 14px; padding-bottom: 14px; }
  .lab-grid, .comparison-grid { grid-template-columns: 1fr; }
  .comparison-grid article + article { border-top: 2px solid var(--black); border-left: 0; }
  .capture-heading { display: block; }
  .capture-heading > p:last-child { margin-top: 7px; text-align: left; }
  .capture-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capture-timeline button, .capture-timeline button:nth-child(4), .capture-timeline button:nth-child(n+5) { grid-column: span 1; border-right: 2px solid var(--black); border-bottom: 2px solid var(--black); }
  .capture-timeline button:nth-child(even) { border-right: 0; }
  .capture-timeline button:last-child { grid-column: span 2; border-right: 0; border-bottom: 0; }
  .inversion-diagram { padding: 8px; }
}
@media (max-width: 620px) {
  .topbar { padding: 9px 12px; }
  .brand small, .status-pill { display: none; }
  .hero { padding-inline: 16px; }
  .hero h1 { font-size: clamp(4rem, 20vw, 6rem); }
  .hero-diagram { right: -280px; bottom: 48px; width: 720px; opacity: .3; }
  .explorer-section, .exposure-lab, .inversion-section, .comparison-section, .final-section { padding-inline: 12px; }
  .part-index { grid-template-columns: repeat(2, 1fr); }
  .panel-controls { grid-template-columns: 1fr; }
  .viewer-actions button { padding: 7px 9px; }
  .formation-desktop { display: none; }
  .formation-mobile { display: block; }
  .formation-mobile-note { display: block; margin: 4px 0 0; color: #c5c5c5; font-size: .72rem; font-weight: 700; text-align: center; }
  .inversion-diagram.is-visible .formation-mobile-note { animation: formation-opacity .8s 4.65s ease-out both; }
  .hotspot { width: 24px; height: 24px; border-width: 1.5px; font-size: .52rem; }
  .hotspot-leader { stroke-width: .8; }
  .layer-bar { align-items: flex-start; flex-direction: column; }
  .capture-timeline { grid-template-columns: 1fr; }
  .capture-timeline button, .capture-timeline button:nth-child(even), .capture-timeline button:nth-child(n+5), .capture-timeline button:last-child { grid-column: span 1; min-height: 170px; border-right: 0; border-bottom: 2px solid var(--black); }
  .capture-timeline button:last-child { border-bottom: 0; }
  .photo-preview { min-height: 350px; }
  .preview-cyclist { right: 7%; transform: scale(.82); }
  .final-section h2 { font-size: 3.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .formation-stage, .formation-light-label, .formation-sensor-image, .formation-process, .formation-display-image, .formation-mobile-note { opacity: 1 !important; transform: none !important; }
  .formation-rays path { stroke-dashoffset: 0 !important; }
}

@media (max-width: 760px) {
  .webgl-fallback { grid-template-columns: 1fr; gap: 18px; align-content: center; padding: 22px; text-align: center; }
  .fallback-camera { max-height: 310px; margin: auto; }
  .fallback-copy { margin: auto; }
}
