@font-face { font-family: "Schibsted Grotesk"; src: url("assets/schibsted-regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("assets/schibsted-semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("assets/schibsted-bold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
:root {
  --bg: #121316;
  --surface: #202226;
  --raised: #2c2e32;
  --ink: #f5f5f3;
  --muted: #b8b8b8;
  --accent: #ff784f;
  --accent-ink: #121316;
  --signal: #ff784f;
  --error: #ff9a9a;
  --gutter: clamp(20px, 2.2vw, 40px);
  --body: clamp(1rem, .95rem + .3vw, 1.1875rem);
  --lead: clamp(1.25rem, 1.1rem + .7vw, 1.625rem);
  --head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --small: 14px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--body)/1.5 "Schibsted Grotesk", Arial, sans-serif; }
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: inherit; text-underline-offset: 5px; }
button, input, select { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button { color: inherit; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
p, figure { margin: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.04em; text-wrap: balance; }
h2 { font-size: var(--head); line-height: 1.02; }
h3 { font-size: var(--lead); line-height: 1.15; letter-spacing: -.025em; }
h4 { font-size: var(--body); font-weight: 600; letter-spacing: 0; }
img, video { display: block; width: 100%; height: auto; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: 12px; left: 20px; z-index: 20; padding: 12px 20px; background: var(--accent); color: var(--accent-ink); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.navigation { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 24px var(--gutter); gap: 24px; }
.wordmark { font-weight: 600; }
.navigation a { display: inline-block; text-decoration: none; transition: transform 180ms var(--ease-out); }
.navigation a:hover { transform: translateY(-3px); }
.navigation nav { display: flex; gap: clamp(18px, 3vw, 46px); }
.hero { position: relative; isolation: isolate; overflow: clip; min-height: min(850px, calc(100svh - 76px)); padding: 32px var(--gutter) 28px; display: flex; flex-direction: column; justify-content: center; }
.hero-copy { position: relative; z-index: 2; text-align: center; margin: auto 0; }
.hero h1 { font-size: clamp(96px, 13.2vw, 210px); line-height: .88; letter-spacing: -.065em; }
.title-line { display: block; }
.title-line > span { display: inline-block; }
.hero-lead { font-size: var(--lead); line-height: 1.4; margin: 32px auto 0; padding: 8px 16px; width: fit-content; background: var(--bg); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; padding: 18px 24px; background: var(--accent); color: var(--accent-ink); text-decoration: none; white-space: nowrap; font-weight: 600; transition: transform 180ms var(--ease-out); }
.hero .button { margin-top: 24px; }
.button:hover { transform: translateY(-4px); }
.button:active { transform: scale(.97); }
.button span { font-size: var(--lead); }
.hero-foot { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 24px; margin-top: 44px; font-size: var(--small); color: var(--muted); }
.hero-foot > p:first-child { max-width: 55ch; }
.hero-foot [data-motion-toggle] { align-self: flex-start; background: var(--bg); padding: 10px 16px; border: 0; min-height: 44px; color: var(--ink); white-space: nowrap; }
.section-pad { padding: 120px var(--gutter); }
.section-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 36px; margin-bottom: 48px; }
.section-intro h2 { max-width: 17ch; }
.section-intro > p { max-width: 38ch; }
.journey { padding-bottom: 100px; }
.lab-disclaimer { max-width: 80ch; color: var(--muted); font-size: var(--small); }
.lab-index { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 20px 0 64px; }
.lab-index a { min-height: 44px; display: flex; align-items: center; text-decoration: none; transition: transform 200ms var(--ease-out); }
.lab-index a:hover { transform: translateY(-3px); }
.experience { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(32px, 6vw, 100px); align-items: center; margin-top: 120px; scroll-margin-top: 40px; }
.experience:nth-of-type(even) { grid-template-columns: 1.18fr .82fr; }
.experience:nth-of-type(even) .experience-copy { order: 2; }
.experience:first-of-type { margin-top: 0; }
.experience-copy h3 { font-size: var(--head); }
.experience-copy > p { max-width: 55ch; }
.career-company { font-weight: 600; margin: 20px 0 8px; }
.career-date { font-size: var(--small); color: var(--muted); margin-bottom: 24px; }
.career-stack { margin-top: 24px; font-size: var(--small); color: var(--muted); }
.experiment-prompt { margin-top: 28px; }
.lab { --lab-bg: #18191c; --lab-well: #282a2d; --lab-deep: #101114; --metal: #777a80; --paper: #ffffff; --paper-ink: #111111; padding: 24px; background: var(--lab-bg); min-width: 0; }
.experience:first-of-type { grid-template-columns: 1fr; gap: 40px; }
.experience:first-of-type .experience-copy { display: grid; grid-template-columns: .8fr 1.2fr; column-gap: 8vw; }
.experience:first-of-type .experience-copy h3, .experience:first-of-type .career-company, .experience:first-of-type .career-date { grid-column: 1; }
.experience:first-of-type .experience-copy > p:not(.career-company):not(.career-date) { grid-column: 2; }
.experience:first-of-type .career-date { grid-row: 3; }
.experience:first-of-type .experiment-prompt { margin-top: 0; }
.lab { padding: 32px; background: var(--surface); }
.lab-heading { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; margin-bottom: 24px; }
.lab-heading h4 { font-size: var(--lead); letter-spacing: -.025em; }
.lab-heading > span { color: var(--muted); font-size: var(--small); text-align: right; font-variant-numeric: tabular-nums; }
.lab-heading > span::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--signal); margin-right: 8px; border-radius: 50%; }
.lab-controls { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.lab button { border: 0; background: var(--lab-well); color: var(--ink); padding: 14px 20px; min-height: 48px; border-radius: 4px; transition: transform 180ms var(--ease-out); }
.lab button:hover:not(:disabled) { transform: translateY(-2px); }
.lab button:active:not(:disabled) { transform: scale(.96); }
.lab button:disabled { color: var(--muted); }
.lab-controls button:first-child, .label-input button { background: var(--ink); color: var(--bg); }
.lab-controls button:first-child:disabled, .label-input button:disabled { background: var(--lab-well); color: var(--muted); }
.lab-status { font-size: var(--small); margin-top: 18px; min-height: 42px; color: var(--muted); }
.lab-status[data-error="true"] { color: var(--error); }
.lab-status[data-error="true"]::before { content: "!"; display: inline-grid; place-items: center; width: 18px; height: 18px; background: var(--error); color: var(--bg); font-weight: 800; margin-right: 8px; }
.rack-lab { --rack-post: #b3b5b8; --rack-beam: #ff784f; --crate: #d8b383; --crate-side: #ae8355; --crate-ink: #262018; }
.rack-hud { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin: 0 0 24px; background: var(--lab-deep); padding: 20px 24px; font-size: var(--small); }
.rack-hud > div { display: flex; flex-direction: column; gap: 8px; }
.rack-hud > div > span { color: var(--muted); }
.rack-hud strong { font-size: var(--lead); font-weight: 600; font-variant-numeric: tabular-nums; }
.rack-hud progress { width: 100%; height: 10px; margin-top: 10px; border: 0; background: var(--lab-well); accent-color: var(--signal); }
.rack-hud progress::-webkit-progress-bar { background: var(--lab-well); }
.rack-hud progress::-webkit-progress-value { background: var(--signal); }
.rack-hud progress::-moz-progress-bar { background: var(--signal); }
.game-score { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; font-size: var(--small); color: var(--muted); }
.game-score button { font-size: var(--small); flex: none; }
.rack-floor { position: relative; background: var(--lab-deep); padding: 24px 40px 70px; overflow: clip; }
.warehouse-sign { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 24px; font-size: var(--small); color: var(--muted); }
.rack-floor::after { content: ""; height: 5px; background: var(--metal); position: absolute; bottom: 22px; left: 20px; right: 20px; }
.rack-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 0; perspective: 700px; border-top: 7px solid var(--rack-post); }
.rack-grid > span { min-height: 84px; background: var(--lab-well); display: grid; place-items: center; font-size: var(--small); }
.rack-grid .rack-bay { position: relative; height: 134px; border-bottom: 9px solid var(--rack-beam); border-left: 5px solid var(--rack-post); border-right: 5px solid var(--rack-post); border-radius: 0; padding: 12px 16px; background: var(--lab-well); display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; font-size: var(--small); text-align: left; transition: transform 200ms var(--ease-out); }
.rack-grid .rack-bay::before { content: ""; position: absolute; left: 0; top: 0; width: 12px; bottom: 0; background: var(--metal); opacity: .2; pointer-events: none; }
.rack-grid .rack-bay:hover:not(:disabled) { transform: none; background: var(--raised); }
.bay-address { color: var(--muted); font-size: 13px; line-height: 1; }
.bay-capacity { align-self: flex-end; color: var(--ink); background: var(--lab-deep); padding: 4px 8px; font-size: var(--small); line-height: 1.2; margin-top: -16px; }
.rack-bay[data-fit="overweight"] .bay-capacity { color: var(--error); }
.rack-bay[aria-pressed="true"], .rack-bay.drop-target { outline: 3px solid var(--ink); outline-offset: -7px; }
.pallet-crate { position: relative; background: var(--crate); color: var(--crate-ink); border-bottom: 8px solid var(--crate-side); border-right: 9px solid var(--crate-side); display: flex; justify-content: center; align-items: center; font-size: 22px; font-weight: 800; letter-spacing: -.02em; width: 90px; height: 66px; border-radius: 2px; transform: skewY(-3deg); }
.pallet-crate::before { content: ""; position: absolute; inset: 0 auto 0 50%; width: 5px; background: var(--crate-ink); opacity: .15; }
.stored-pallet { align-self: center; width: 78%; max-width: 154px; height: 62px; margin-top: auto; font-size: var(--body); border-bottom-width: 6px; border-right-width: 7px; }
.bay-load:empty { min-height: 45px; }
.rack-crane { position: absolute; inset: 0; pointer-events: none; }
.crane-mast { position: absolute; left: 0; top: 24px; bottom: 24px; width: 8px; background: var(--rack-post); opacity: .65; }
.crane-base { position: absolute; bottom: 0; left: -18px; width: 46px; height: 20px; background: var(--rack-beam); border-bottom: 6px solid var(--metal); }
.crane-carriage { position: absolute; width: 58px; height: 34px; top: 0; left: 0; border-bottom: 5px solid var(--ink); opacity: 0; }
.crane-load { display: block; width: 100%; height: 28px; background: var(--crate); color: var(--crate-ink); text-align: center; font-size: 13px; font-weight: 600; line-height: 28px; }
.is-carrying .crane-carriage { opacity: 1; }
.rack-legend { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); margin-top: 20px; }
.dock-heading { display: flex; justify-content: space-between; gap: 12px; font-size: var(--small); margin: 24px 0 16px; }
.dock-heading > :last-child { color: var(--muted); }
#rack-selected { color: var(--muted); }
.pallet-dock { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; min-height: 124px; padding: 24px; background: var(--lab-deep); }
.pallet-dock .dock-pallet { padding: 0; min-height: 82px; background: none; display: flex; flex-direction: column; gap: 12px; align-items: center; touch-action: none; }
.dock-pallet[aria-pressed="true"] .pallet-crate { outline: 3px solid var(--ink); outline-offset: 3px; }
.pallet-name { color: var(--muted); font-size: 12px; letter-spacing: 0; }
.pallet-dock .dock-return { padding: 12px; font-size: var(--small); align-self: center; }
.drag-pallet { position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none; font-size: 20px; }
.rack-lab.game-complete .game-score { color: var(--ink); }
.rack-lab.game-complete .rack-floor { outline: 2px solid var(--signal); outline-offset: -2px; }
.conveyor-scene { position: relative; background: var(--lab-deep); padding: 30px 18px; }
.line-machine { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; height: 80px; background: var(--raised); border-right: 12px solid var(--metal); padding: 20px; font-size: var(--small); color: var(--muted); }
.line-machine > :first-child { font-size: var(--lead); font-weight: 800; color: var(--ink); }
.line-labels { display: flex; justify-content: space-between; gap: 12px; font-size: var(--small); color: var(--muted); }
.conveyor-track { position: relative; height: 158px; margin-top: 24px; overflow: clip; }
.rollers { display: flex; gap: 5px; position: absolute; inset: auto 0 40px; padding: 8px; height: 30px; background: var(--metal); }
.rollers i { flex: 1; border-radius: 50%; background: var(--lab-deep); position: relative; }
.rollers i::after { content: ""; position: absolute; left: 50%; top: 0; width: 2px; height: 100%; background: var(--metal); }
.carton { position: absolute; bottom: 70px; left: 0; width: 52px; height: 52px; background: #d8b383; color: #262018; border-right: 8px solid #ae8355; border-bottom: 6px solid #ae8355; display: grid; place-items: center; font-weight: 800; font-size: var(--small); transform: translateX(var(--carton-x, 0px)) skewY(-5deg); }
.carton::before { content: ""; position: absolute; inset: 0 26px; background: var(--metal); opacity: .35; }
.line-sensor { position: absolute; right: 15%; bottom: 40px; width: 6px; height: 102px; background: var(--signal); }
.conveyor-leg { position: absolute; bottom: 0; left: 10%; height: 40px; width: 6px; background: var(--metal); }
.conveyor-leg::after { content: ""; position: absolute; left: min(270px, 55vw); top: 0; height: 40px; width: 6px; background: var(--metal); }
.line-speed { display: flex; align-items: center; gap: 16px; font-size: var(--small); }
.line-speed input { min-width: 0; flex: 1; accent-color: var(--ink); height: 44px; }
.line-speed output { flex: none; }
.is-running .rollers i::after { animation: roller-spin var(--belt-time, 1s) linear infinite; }
.line-readout { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; }
.line-readout strong { font-size: var(--lead); font-variant-numeric: tabular-nums; }
.lab .emergency-control { color: var(--bg); background: var(--error); }
.lab-controls button > span { display: inline-block; margin-right: 6px; }
.conveyor-lab.is-emergency .line-sensor { background: var(--error); }
.lab input:not([type="range"]), .lab select { min-width: 0; border: 1px solid var(--metal); min-height: 44px; background: var(--lab-deep); color: var(--ink); padding: 10px 12px; }
.line-speed { margin-top: 16px; }
.label-station { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--line, rgba(245, 245, 243, .1)); }
.label-station-printer > label { display: block; margin-bottom: 8px; font-size: var(--small); }
.label-station-printer input { width: 100%; font-family: var(--mono, monospace); }
.label-station-printer input:read-only { color: var(--muted); }
#label-help { font-size: 13px; color: var(--muted); margin-top: 10px; }
#label-help code { font-family: var(--mono, monospace); color: var(--ink); }
.printer-scene { max-width: 320px; margin: 28px auto 0; padding: 20px 0 0; }
.label-station .printer-machine { height: 128px; padding: 18px 20px 0; }
.label-station .printed-label svg { height: 60px; }
.label-manifest { display: flex; flex-direction: column; min-width: 0; padding: 18px; border-radius: 14px; background: var(--lab-deep); }
.manifest-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.manifest-head > :last-child { font-family: var(--mono, monospace); }
.manifest-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; flex: 1; }
.manifest-list li { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 40px; padding: 6px 10px; border-radius: 6px; border: 1px dashed rgba(245, 245, 243, .14); font: 12px var(--mono, monospace); color: var(--muted); overflow: hidden; }
.manifest-list svg { width: 72px; height: 26px; fill: #16171a; }
.manifest-list li.printed, .manifest-list li.verified { border: 0; background: linear-gradient(180deg, #fff, #f1efe9); color: #16171a; box-shadow: 0 8px 16px -10px rgba(0, 0, 0, .8); }
.manifest-list li span { overflow-wrap: anywhere; padding-right: 26px; }
.manifest-list li.verified::after { content: "\2713"; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #1f9d55; color: #fff; font-weight: 700; }
.label-station .label-verify { flex-wrap: wrap; gap: 10px 14px; margin-top: 16px; }
.carton.labeled::after { content: ""; position: absolute; right: 4px; bottom: 3px; width: 20px; height: 11px; border-radius: 1px; border: 2px solid #fff; background: #fff repeating-linear-gradient(90deg, #16171a 0 1px, transparent 1px 2px, #16171a 2px 4px, transparent 4px 5px, #16171a 5px 6px, transparent 6px 8px); box-shadow: 0 1px 2px rgba(0, 0, 0, .35); animation: sticker-on 380ms var(--ease-out, ease-out); }
@keyframes sticker-on { from { transform: translateY(-26px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.printer-machine { position: relative; background: var(--lab-well); padding: 22px 24px 0; height: 156px; border-radius: 16px 16px 0 0; border-bottom: 12px solid var(--metal); font-size: var(--lead); font-weight: 600; }
.printer-machine { background: var(--raised); border-right: 14px solid var(--metal); transform: perspective(900px) rotateY(-8deg); }
.printer-machine::before { content: ""; position: absolute; height: 20px; top: -20px; left: 10px; right: 0; background: var(--metal); transform: skewX(-25deg); transform-origin: bottom; }
.printer-light { position: absolute; right: 28px; top: 28px; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); }
.printer-display { margin-top: 12px; padding: 8px 12px; background: var(--lab-deep); font-size: 13px; font-weight: 400; color: var(--muted); }
.printer-slot { height: 14px; background: var(--lab-deep); margin-top: 16px; }
.printed-label { position: relative; background: var(--paper); color: var(--paper-ink); margin: -10px 24px 0; padding: 18px 14px; overflow-wrap: anywhere; transform-origin: top; }
.printed-label p { font-size: var(--small); }
.printed-label svg { display: block; width: 100%; height: 80px; margin: 12px 0; fill: var(--paper-ink); }
.printed-label strong { display: block; text-align: center; font-size: var(--small); }
.label-verify { display: flex; align-items: center; gap: 16px; margin-top: 20px; font-size: var(--small); }
.label-verify span { color: var(--muted); }
.label-verify button { flex: none; }
.replica-control { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.replica-control label { font-size: var(--small); }
.replica-control input { flex: 1; min-width: 100px; accent-color: var(--ink); height: 44px; }
.replica-control output { font-variant-numeric: tabular-nums; }
.cluster-plane { position: relative; background: var(--lab-deep); padding: 24px; margin-top: 16px; }
.controller { display: flex; justify-content: space-between; gap: 12px; font-size: var(--small); }
.controller strong { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.cluster-nodes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; font-size: 13px; color: var(--muted); margin-top: 24px; text-align: center; }
.cluster-nodes span { padding: 12px 8px; background: var(--raised); border-bottom: 6px solid var(--metal); }
.pods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.pods .pod { background: var(--lab-well); padding: 28px 8px; display: flex; flex-direction: column; align-items: center; gap: 18px; font-size: var(--small); min-height: 166px; border-radius: 0; border-bottom: 5px solid var(--metal); }
.pod-cube { display: block; position: relative; width: 60px; height: 60px; background: var(--ink); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.pod-cube::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 45%; background: var(--signal); clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%); }
.pod-cube::after { content: ""; display: block; height: 100%; width: 50%; background: var(--metal); }
.pod[data-state="failed"] .pod-cube { background: var(--error); }
.pod[data-state="failed"] { outline: 2px solid var(--error); outline-offset: -2px; }
.pod[data-state="failed"] .pod-cube { transform: rotate(25deg) scale(.65); opacity: .5; transition: transform 300ms, opacity 300ms; }
.cluster-reconcile { font-size: var(--small); text-align: center; color: var(--muted); margin-top: 24px; }
.is-reconciling .cluster-reconcile { color: var(--signal); }
.cloud-flow { position: relative; display: grid; grid-template-columns: 1fr 20px 1fr 20px 1fr; gap: 8px; align-items: center; }
.cloud-node { min-width: 0; background: var(--lab-deep); padding: 24px 12px; display: flex; flex-direction: column; gap: 20px; min-height: 290px; font-size: var(--small); }
.message-stack { position: relative; height: 70px; width: 64px; margin: 8px auto; }
.message-stack i { position: absolute; width: 54px; height: 32px; background: var(--ink); border-right: 8px solid var(--metal); transform: skewY(-8deg); }
.message-stack i:nth-child(1) { top: 0; left: 0; }
.message-stack i:nth-child(2) { top: 20px; left: 6px; }
.message-stack i:nth-child(3) { top: 40px; left: 12px; }
.response-mark { font-size: 64px; color: var(--signal); line-height: 1; margin: 12px auto; }
.response-mark { width: 44px; height: 64px; border-bottom: 8px solid var(--signal); border-right: 8px solid var(--signal); transform: rotate(40deg) scale(.7); }
.cloud-node strong { font-size: var(--body); font-variant-numeric: tabular-nums; }
.cloud-link { color: var(--muted); }
.queue-items { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); max-height: 112px; overflow: auto; }
.queue-items span { background: var(--lab-well); padding: 4px 6px; color: var(--ink); font-size: var(--small); }
.function-mark { font-size: var(--head); line-height: 1; color: var(--signal); text-align: center; }
.function-mark { min-height: 88px; display: grid; place-items: center; margin-top: 16px; background: var(--lab-well); }
.function-node.is-processing .function-mark { animation: function-work 600ms var(--ease-out); }
.cloud-packet { position: absolute; top: 0; left: 0; width: 28px; height: 20px; border: 3px solid var(--ink); background: var(--signal); opacity: 0; pointer-events: none; }
.is-processing .function-mark { animation: function-work 600ms var(--ease-out) infinite; }
.document-lab { padding: 32px; }
.document-controls { display: flex; align-items: center; gap: 20px; }
.document-controls label { font-size: var(--small); }
.document-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 24px 0; }
.document-steps button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.document-desk { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sample-document { position: relative; background: var(--paper); color: var(--paper-ink); padding: 28px; overflow: clip; }
.sample-document::after { content: ""; width: 28px; height: 28px; position: absolute; right: 0; top: 0; background: var(--metal); clip-path: polygon(0 0,100% 100%,0 100%); }
.document-desk h4 { margin-bottom: 20px; }
.document-desk p { white-space: pre-line; font-size: var(--body); overflow-wrap: anywhere; }
.document-result { background: var(--lab-deep); padding: 28px; }
.document-scan { position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--signal); opacity: 0; }
.document-fields { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.document-fields:empty { display: none; }
.extracted-field { background: var(--lab-well); padding: 12px 16px; display: flex; justify-content: space-between; gap: 16px; font-size: var(--small); }
.extracted-field strong { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.document-result[data-validation="fail"] { border-left: 5px solid var(--error); }
.document-result[data-validation="pass"] { border-left: 5px solid var(--signal); }
.ai { background: var(--surface); }
.ai-cases { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; margin-top: 48px; }
.ai-cases p { margin-top: 24px; max-width: 55ch; }
.ai-cases a { display: inline-block; margin-top: 24px; min-height: 44px; }
.ai-tools { font-size: var(--small); }
.repository-list article { display: grid; grid-template-columns: 1fr 1.4fr; gap: 7vw; padding: 32px 24px; }
.repository-list article:nth-child(odd) { background: var(--surface); }
.repository-list h3 a { text-decoration: none; display: inline-block; transition: transform 200ms var(--ease-out); }
.repository-list h3 a:hover { transform: translateX(6px); }
.repository-list p { max-width: 60ch; }
.repository-list p + p, .repository-list p + a { margin-top: 18px; }
.repository-list p + a { display: inline-block; min-height: 44px; }
.repository-tools { font-size: var(--small); color: var(--muted); }
.github-profile { display: inline-block; margin-top: 24px; padding: 12px 0; }
.work-layout { display: grid; grid-template-columns: 1.08fr 1fr; align-items: start; gap: 8vw; }
.project { padding: 20px 0; }
.project-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin: 0; font-weight: inherit; }
.project-name { font-size: clamp(32px, 4vw, 60px); font-weight: 600; letter-spacing: -.04em; transition: transform 240ms var(--ease-out); }
.project-kind { color: var(--muted); font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.project-body { padding: 22px 0 16px; max-width: 48ch; }
.project-body p { margin-top: 16px; }
.project-body .project-title { margin-top: 0; font-weight: 600; }
.project-tech, .work-note { font-size: var(--small); color: var(--muted); }
.work-note { max-width: 56ch; margin-top: 24px; }
.work-preview { position: sticky; top: 36px; margin-top: 20px; }
.image-frame { overflow: clip; background: var(--surface); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.work-preview .image-frame { aspect-ratio: 4 / 3; }
.work-preview img { object-fit: contain; padding: 28px; }
figcaption { font-size: var(--small); margin-top: 16px; line-height: 1.5; }
.image-note { margin-top: 10px; font-size: var(--small); color: var(--muted); }
.about-layout { margin-top: 120px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 8vw; align-items: center; }
.about-layout .about-statement { font-size: var(--lead); margin-top: 28px; }
.about-layout p + p { margin-top: 24px; max-width: 50ch; }
.about-layout .image-frame { aspect-ratio: 4 / 3; }
.credentials table { border-collapse: collapse; width: 100%; text-align: left; font-variant-numeric: tabular-nums; }
.credentials th, .credentials td { padding: 20px 24px; vertical-align: top; font-weight: 400; }
.credentials thead { color: var(--muted); }
.credentials tbody th { font-weight: 600; white-space: nowrap; }
.credentials tbody tr:nth-child(odd) { background: var(--surface); }
.credentials td:last-child { width: 20%; }
.education { margin-top: 64px; display: grid; grid-template-columns: 1fr 1.3fr 1.3fr; gap: 36px; }
.contact { background: var(--accent); color: var(--accent-ink); padding-bottom: 44px; }
.contact h2 { max-width: 22ch; }
.contact > p { margin-top: 32px; font-size: var(--lead); }
.email { font-size: clamp(45px, 9.2vw, 148px); line-height: 1.05; font-weight: 600; letter-spacing: -.06em; text-decoration: none; display: block; margin: 88px 0 72px; width: fit-content; transition: transform 300ms var(--ease-out); }
.email:hover { transform: translateX(8px); }
.contact a:focus-visible { outline-color: var(--accent-ink); }
.contact-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; }
.contact-bottom > a { min-height: 44px; display: flex; align-items: center; }
.credits { padding: 32px var(--gutter); display: grid; grid-template-columns: 1fr 1.5fr; gap: 32px; font-size: var(--small); color: var(--muted); }
.credits summary { cursor: pointer; min-height: 44px; color: var(--ink); }
.credits details p { margin: 16px 0; max-width: 80ch; }
.credits ul { padding-left: 20px; }
.credits li + li { margin-top: 10px; }
[data-motion-toggle] { background: var(--surface); border: 0; padding: 12px 18px; min-height: 44px; margin-top: 16px; color: var(--ink); }
.hero-foot [data-motion-toggle] { margin-top: 0; }
@media (max-width: 1000px) {
  .hero h1 { font-size: 16vw; }
  .experience, .experience:nth-of-type(even) { grid-template-columns: 1fr; gap: 36px; }
  .experience:nth-of-type(even) .experience-copy { order: 0; }
  .experience:first-of-type .experience-copy { column-gap: 36px; }
  .experience-copy { display: grid; grid-template-columns: 1fr 1.3fr; column-gap: 36px; }
  .experience-copy h3, .experience-copy .career-company, .experience-copy .career-date { grid-column: 1; }
  .experience-copy > p:not(.career-company):not(.career-date) { grid-column: 2; }
  .experience-copy > .career-date { grid-row: 3; }
  .experience-copy > .career-stack { margin-top: 18px; }
  .experience-copy > .experiment-prompt { margin-top: 18px; }
  .work-layout, .about-layout { gap: 40px; }
  .education { grid-template-columns: 1fr 1fr; }
  .education h3 { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .navigation { flex-wrap: wrap; padding-top: 20px; padding-bottom: 16px; gap: 12px; }
  .navigation nav { width: 100%; justify-content: space-between; gap: 12px; font-size: var(--small); }
  .navigation nav a { min-height: 44px; display: flex; align-items: center; }
  .hero { min-height: 660px; padding-top: 24px; }
  .hero h1 { font-size: 20.4vw; line-height: .9; }
  .hero-copy { padding-top: 52px; }
  .hero-lead { font-size: 18px; margin-top: 32px; }
  .hero .button { display: flex; margin-top: 24px; }
  .hero-foot { flex-direction: column; gap: 8px; margin-top: 48px; }
  .section-pad { padding-top: 88px; padding-bottom: 88px; }
  .section-intro { display: block; margin-bottom: 32px; }
  .section-intro > p { margin-top: 24px; }
  .lab-index { gap: 4px 24px; margin-bottom: 40px; }
  .experience { margin-top: 88px; }
  .experience-copy { display: block; }
  .experience:first-of-type .experience-copy { display: block; }
  .experience:first-of-type .experiment-prompt { margin-top: 28px; }
  .lab { padding: 18px; }
  .lab-heading { gap: 12px; }
  .lab-heading > span { max-width: 16ch; }
  .rack-floor { padding: 18px 8px 42px; }
  .rack-lab .lab-heading { margin-bottom: 16px; }
  .rack-lab .lab-heading h4 { font-size: 18px; }
  .rack-lab .lab-heading > span { max-width: none; font-size: 12px; white-space: nowrap; }
  .rack-lab .lab-heading > span::before { display: none; }
  .rack-lab .game-score { gap: 10px; flex-wrap: nowrap; margin-bottom: 16px; font-size: 12px; }
  .rack-lab .game-score > span { max-width: 22ch; }
  .rack-lab .game-score button { padding: 10px; font-size: 12px; min-height: 44px; }
  .rack-hud { grid-template-columns: 1fr 1fr; padding: 16px; gap: 16px; }
  .rack-hud { padding: 12px; gap: 10px; margin-bottom: 16px; font-size: 12px; }
  .rack-hud > div { gap: 4px; }
  .rack-hud > :last-child { grid-column: 1 / -1; }
  .rack-hud > :last-child { flex-direction: row; align-items: center; gap: 16px; }
  .rack-hud progress { margin-top: 0; flex: 1; }
  .rack-hud strong { font-size: var(--body); }
  .warehouse-sign { padding-bottom: 16px; font-size: 13px; }
  .rack-grid { gap: 4px; }
  .rack-grid .rack-bay { height: 110px; padding: 8px 4px; border-left-width: 3px; border-right-width: 3px; }
  .rack-grid .rack-bay { height: 92px; }
  .bay-capacity { font-size: 12px; align-self: flex-start; margin-top: 8px; }
  .bay-capacity { padding: 2px; }
  .stored-pallet { font-size: 11px; }
  .pallet-dock { gap: 20px 16px; padding: 20px 12px; }
  .pallet-dock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 8px; padding: 16px 8px; min-height: 180px; }
  .pallet-dock .dock-pallet { min-height: 66px; gap: 8px; }
  .pallet-dock .dock-return { grid-column: 1 / -1; }
  .pallet-crate { width: 64px; height: 52px; font-size: 18px; }
  .stored-pallet { width: 100%; }
  .stored-pallet { height: 42px; font-size: 11px; border-right-width: 4px; }
  .dock-heading { flex-wrap: wrap; }
  .rack-lab .dock-heading { display: block; margin: 16px 0; }
  .rack-lab .dock-heading > span { display: block; }
  .rack-lab .dock-heading > :last-child { font-size: 12px; margin-top: 4px; }
  .game-score { flex-wrap: wrap; }
  .lab-controls { gap: 8px; }
  .lab-controls button { flex: 1 1 auto; padding: 12px; }
  .line-labels { flex-wrap: wrap; }
  .line-labels > :nth-child(2) { order: 3; flex: 1 0 100%; text-align: center; }
  .conveyor-scene { padding: 24px 12px; }
  .label-station { grid-template-columns: 1fr; }
  .printer-scene { margin-top: 24px; }
  .printed-label { margin-left: 16px; margin-right: 16px; }
  .label-verify { flex-wrap: wrap; }
  .cluster-plane { padding: 20px 12px; }
  .pods { gap: 8px; }
  .pods .pod { padding: 12px 4px; }
  .cloud-flow { display: flex; flex-direction: column; }
  .cloud-node { width: 100%; min-height: 0; padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .cloud-node > :first-child { grid-column: 1 / -1; }
  .cloud-node .message-stack, .cloud-node .response-mark { display: none; }
  .cloud-link { transform: rotate(90deg); }
  .function-mark { font-size: 32px; }
  .document-controls { flex-direction: column; align-items: stretch; gap: 8px; }
  .document-steps { gap: 6px; }
  .document-steps button { padding: 12px 4px; font-size: var(--small); }
  .document-desk { grid-template-columns: 1fr; gap: 16px; }
  .sample-document, .document-result { padding: 20px; }
  .ai-cases { grid-template-columns: 1fr; gap: 36px; margin-top: 40px; }
  .repository-list article { display: block; padding: 28px 20px; }
  .repository-list article > div { margin-top: 22px; }
  .work-layout { display: flex; flex-direction: column; gap: 32px; }
  .work-preview { position: static; width: 100%; margin: 0; }
  .project-list { width: 100%; }
  .project { padding: 14px 0; }
  .about-layout { display: block; margin-top: 88px; }
  .about-layout figure { margin-top: 36px; }
  .credentials th, .credentials td { padding: 18px 12px; }
  .credentials th:last-child, .credentials td:last-child { display: none; }
  .credentials tbody th { width: 90px; }
  .education { display: block; margin-top: 40px; }
  .education p { margin-top: 24px; }
  .contact h2 { max-width: 16ch; }
  .email { margin: 56px 0; font-size: 14.6vw; }
  .email span { display: block; }
  .contact-bottom { font-size: var(--small); }
  .credits { display: block; }
  .credits details { margin-top: 22px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-lead, .hero .button { animation: settle 900ms var(--ease-out) backwards; }
  .reveal-arrived { animation: settle 800ms var(--ease-out) both; }
  .lab.reveal-arrived, figure.reveal-arrived { animation-name: picture-settle; }
  .repository-list .reveal-arrived, .project.reveal-arrived { animation-name: row-in; }
  .preview-arrived { animation: picture-settle 500ms var(--ease-out) both; }
  .label-arrived { animation: label-feed 900ms var(--ease-out) both; }
  .pod-arrived { animation: pod-in 500ms var(--ease-out) both; }
  .document-arrived { animation: row-in 400ms var(--ease-out) both; }
  @supports (animation-timeline: view()) {
    .about-layout img { animation: photo-drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  }
}
@keyframes title-rise { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes settle { from { opacity: .7; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes picture-settle { from { opacity: .7; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }
@keyframes row-in { from { opacity: .7; transform: translateX(-24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes hero-drift { from { transform: scale(1) translateY(-2%); } to { transform: scale(1.08) translateY(2%); } }
@keyframes gallery-travel { from { transform: translateY(0); } to { transform: translateY(100px); } }
@keyframes name-recede { from { transform: scale(1); } to { transform: scale(.88) translateY(-40px); } }
@keyframes photo-drift { from { transform: scale(1.06) translateY(-2%); } to { transform: scale(1.06) translateY(2%); } }
@keyframes label-feed { from { transform: translateY(-30px) scaleY(.8); opacity: .5; } to { transform: none; opacity: 1; } }
@keyframes pod-in { from { transform: scale(.75); opacity: .5; } to { transform: none; opacity: 1; } }
@keyframes function-work { 50% { transform: scale(.82); } }
@keyframes roller-spin { to { transform: rotate(360deg); } }
@keyframes pallet-land { from { transform: translateY(-12px) scale(.85); opacity: .5; } to { transform: none; opacity: 1; } }
@keyframes bay-shake { 25%, 75% { transform: translateX(-5px); } 50% { transform: translateX(5px); } }
@keyframes sensor-flash { 50% { transform: scaleX(3); opacity: .4; } }
@keyframes print-vibrate { 25%, 75% { transform: translateX(-2px); } 50% { transform: translateX(2px); } }
@keyframes pod-rebuild { from { transform: translateY(-24px) scale(.6); opacity: .2; } to { transform: none; opacity: 1; } }
@keyframes packet-receipt { 50% { transform: translateY(-4px); } }
@keyframes document-scanning { from { transform: translateY(0); opacity: 1; } to { transform: translateY(420px); opacity: 0; } }
.pallet-landed { animation: pallet-land 500ms var(--ease-out); }
.bay-rejected { animation: bay-shake 320ms ease; }
.sensor-hit { animation: sensor-flash 350ms ease; }
.printer-working { animation: print-vibrate 450ms ease; }
.pod-recovered { animation: pod-rebuild 600ms var(--ease-out); }
.packet-received { animation: packet-receipt 350ms var(--ease-out); }
.scan-active { animation: document-scanning 1100ms var(--ease-in-out); }
.label-checked { animation: packet-receipt 450ms var(--ease-out); outline: 4px solid var(--signal); outline-offset: -4px; }
.motion-paused .rollers i::after, .motion-paused .is-processing .function-mark { animation-play-state: paused; }
.motion-paused .about-layout img { animation: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  body * { visibility: hidden; }
  .printed-label, .printed-label * { visibility: visible; }
  .printed-label { position: fixed; left: 0; top: 0; margin: 0; width: 100mm; color: #000; background: #fff; }
}

/* ============ Visual layer v2: motion, illustrations, games, home lab ============ */
:root { --cool: #7dd3fc; --ok: #8fe3a0; --warn: #ffc857; --line: rgba(245, 245, 243, .1); --mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace; }
html { scroll-padding-top: 90px; }
body { overflow-x: clip; }
.skip-link { z-index: 40; }
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 35; background: linear-gradient(90deg, var(--accent), var(--warn)); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
.navigation { position: sticky; top: 0; z-index: 20; transition: transform 450ms var(--ease-out), background-color 300ms, box-shadow 300ms, padding 300ms; }
.navigation.is-scrolled { background: rgba(18, 19, 22, .74); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 1px 0 var(--line); padding-top: 12px; padding-bottom: 12px; }
.navigation.is-hidden { transform: translateY(-105%); }
.wordmark, .navigation .wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; }
.wordmark-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 14px; letter-spacing: -.02em; transition: transform 400ms var(--ease-out); }
.wordmark:hover .wordmark-mark { transform: rotate(-10deg) scale(1.08); }
.navigation nav a { position: relative; }
.navigation nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 300ms var(--ease-out); }
.navigation nav a:hover::after, .navigation nav a[aria-current]::after { transform: scaleX(1); }
.navigation nav a[aria-current] { color: var(--accent); }

/* Hero scene */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(55% 45% at 50% 55%, rgba(255, 120, 79, .09), transparent 70%), radial-gradient(35% 35% at 88% 22%, rgba(125, 211, 252, .08), transparent 70%); }
.hero-scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; overflow: visible; }
.hero-layer { transition: transform 700ms var(--ease-out); }
#hero-dots circle { fill: rgba(245, 245, 243, .11); }
.hero-scene .ln { fill: none; stroke: rgba(245, 245, 243, .34); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-scene .ln.thick { stroke-width: 8; stroke: rgba(245, 245, 243, .4); }
.hero-scene .ln.thin { stroke-width: 1.4; stroke: rgba(245, 245, 243, .25); }
.hero-scene .ln.accent { stroke: var(--accent); stroke-width: 4; }
.hero-scene .ln.route { stroke-dasharray: 2 10; stroke: rgba(245, 245, 243, .3); }
.hero-scene .comet { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 90 910; filter: drop-shadow(0 0 6px var(--accent)); animation: comet 6s linear infinite; }
.hero-scene .belt-dash { fill: none; stroke: rgba(245, 245, 243, .25); stroke-width: 6; stroke-dasharray: 6 12; animation: belt 1.2s linear infinite; }
.hero-scene .box rect { fill: #d8b383; opacity: .85; }
.hero-scene .packet rect { fill: var(--accent); filter: drop-shadow(0 0 6px rgba(255, 120, 79, .9)); }
.hero-scene .packet.cool circle { fill: var(--cool); filter: drop-shadow(0 0 6px var(--cool)); }
.hero-scene .node-ring { fill: var(--bg); stroke: var(--accent); stroke-width: 3; }
.hero-scene .win { fill: var(--accent); opacity: .15; animation: win-blink 4s steps(1) infinite; }
.hero-scene .win.w2 { animation-duration: 5s; animation-delay: -1s; }
.hero-scene .win.w3 { animation-duration: 3.4s; animation-delay: -2.3s; }
.hero-scene .win.w4 { animation-duration: 6s; animation-delay: -.6s; }
.hero-scene .smoke { fill: rgba(245, 245, 243, .18); transform-box: fill-box; transform-origin: center; animation: smoke 5s ease-out infinite; }
.hero-scene .smoke.s2 { animation-delay: -1.7s; }
.hero-scene .smoke.s3 { animation-delay: -3.4s; }
.hero-scene .joint { fill: var(--bg); stroke: var(--accent); stroke-width: 3; }
.hero-scene .arm-a { transform-origin: 102px 500px; animation: arm-a 6s var(--ease-in-out) infinite alternate; }
.hero-scene .arm-b { transform-origin: 140px 410px; animation: arm-b 6s var(--ease-in-out) infinite alternate; }
.hero-scene .node { fill: var(--cool); transform-box: fill-box; transform-origin: center; animation: node-pulse 2.4s ease-in-out infinite; }
.hero-scene .node.n2 { animation-delay: -.8s; }
.hero-scene .node.n3 { animation-delay: -1.6s; }
.hero-scene .spark { fill: var(--accent); transform-box: fill-box; transform-origin: center; filter: drop-shadow(0 0 8px rgba(255, 120, 79, .8)); animation: spark 4s ease-in-out infinite; }
.hero-scene .spark.s2 { fill: var(--ink); animation-delay: -2s; }
.hero-scene .hex { fill: rgba(125, 211, 252, .08); stroke: var(--cool); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: hex 3s ease-in-out infinite; }
.hero-scene .hex.h2 { animation-delay: -1s; }
.hero-scene .hex.h3 { animation-delay: -2s; }
.hero-scene .dash-flow { stroke-dasharray: 6 12; animation: belt 1s linear infinite; }
.hero-scene .unit { fill: rgba(245, 245, 243, .04); stroke: rgba(245, 245, 243, .22); stroke-width: 1.5; }
.hero-scene .led { fill: var(--ok); animation: led 1.6s steps(2) infinite; }
.hero-scene .led.cool { fill: var(--cool); }
.hero-scene .fan { fill: none; stroke: rgba(245, 245, 243, .32); stroke-width: 3; stroke-dasharray: 10 6; transform-box: fill-box; transform-origin: center; animation: spin 2s linear infinite; }
.hero-scene .fan.f2 { animation-duration: 1.4s; }
.hero-scene .lbl { font: 600 15px var(--mono); letter-spacing: .14em; fill: rgba(245, 245, 243, .45); }
.hero-scene .draw { stroke-dasharray: 1; animation: draw 2.4s var(--ease-out) .2s both; }
.hero-scene .screen { fill: rgba(125, 211, 252, .05); stroke: rgba(245, 245, 243, .18); stroke-width: 1.2; }
.hero-scene .grid-ln { fill: none; stroke: rgba(245, 245, 243, .07); stroke-width: 1; }
.hero-scene .trend { fill: none; stroke: var(--ok); stroke-width: 2.2; stroke-linejoin: round; stroke-dasharray: 1; filter: drop-shadow(0 0 4px rgba(143, 227, 160, .6)); animation: trend 5s var(--ease-out) infinite; }
.hero-scene .gauge { fill: var(--accent); opacity: .75; transform-box: fill-box; transform-origin: bottom; animation: gauge 1.8s ease-in-out infinite alternate; }
.hero-scene .gauge.g2 { animation-duration: 2.4s; animation-delay: -.7s; }
.hero-scene .gauge.g3 { animation-duration: 1.4s; animation-delay: -1.1s; }
.hero-scene .doc path:first-child { fill: #f1efe9; opacity: .85; }
.hero-scene .doc-ln { fill: none; stroke: #6c7077; stroke-width: 1.4; }
.hero-scene .chat-bg { fill: rgba(18, 19, 22, .72); }
.hero-scene .chat-dot { fill: rgba(245, 245, 243, .2); }
.hero-scene .mini { font: 500 11px var(--mono); fill: rgba(245, 245, 243, .55); }
.hero-scene .bubble { opacity: 0; transform-box: fill-box; }
.hero-scene .bubble.user rect { fill: rgba(255, 120, 79, .2); stroke: var(--accent); stroke-width: 1.5; }
.hero-scene .bubble.tool rect { fill: rgba(125, 211, 252, .1); stroke: var(--cool); stroke-width: 1.2; stroke-dasharray: 4 3; }
.hero-scene .bubble.tool .mini { fill: var(--cool); }
.hero-scene .bubble.agent rect { fill: rgba(245, 245, 243, .08); stroke: rgba(245, 245, 243, .3); stroke-width: 1.2; }
.hero-scene .bubble .txt { fill: none; stroke: rgba(245, 245, 243, .45); stroke-width: 3; stroke-linecap: round; }
.hero-scene .b1 { animation: chat-1 9s var(--ease-out) infinite; }
.hero-scene .b2 { animation: chat-2 9s var(--ease-out) infinite; }
.hero-scene .b3 { animation: chat-3 9s var(--ease-out) infinite; }
.hero-scene .typing { opacity: 0; animation: chat-typing 9s steps(1) infinite; }
.hero-scene .typing circle { fill: rgba(245, 245, 243, .55); transform-box: fill-box; transform-origin: center; animation: node-pulse 1s ease-in-out infinite; }
.hero-scene .typing circle:nth-child(2) { animation-delay: -.66s; }
.hero-scene .typing circle:nth-child(3) { animation-delay: -.33s; }
@keyframes trend { 0% { stroke-dashoffset: 1; opacity: 1; } 60%, 85% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes gauge { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
@keyframes chat-1 { 0%, 4% { opacity: 0; transform: translateY(8px); } 10%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes chat-2 { 0%, 22% { opacity: 0; transform: translateY(8px); } 28%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes chat-3 { 0%, 46% { opacity: 0; transform: translateY(8px); } 52%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes chat-typing { 0% { opacity: 0; } 12% { opacity: 1; } 22% { opacity: 0; } 30% { opacity: 1; } 46% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-scene .bubble { opacity: 1; } }
:is(.led, .ic-led, .hl-led).l2 { animation-duration: .9s; }
:is(.led, .ic-led, .hl-led).l3 { animation-duration: 2.3s; }
:is(.led, .ic-led, .hl-led).l4 { animation-duration: 1.2s; animation-delay: -.4s; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(18, 19, 22, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: var(--small); color: var(--muted); }
.pulse-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse-ring 2s infinite; }
.hero-lead { background: rgba(18, 19, 22, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-radius: 10px; }
.button { position: relative; overflow: hidden; border-radius: 14px; box-shadow: 0 14px 34px -14px rgba(255, 120, 79, .8); transition: transform 300ms var(--ease-out), box-shadow 300ms; }
.button::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite; pointer-events: none; }
.button:hover { box-shadow: 0 20px 44px -14px rgba(255, 120, 79, .95); }
.scroll-cue { display: flex; align-items: center; gap: 10px; }
.scroll-cue span { position: relative; width: 22px; height: 34px; border: 2px solid var(--muted); border-radius: 12px; }
.scroll-cue span::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: scroll-dot 1.8s var(--ease-in-out) infinite; }

/* Marquee */
.marquee { overflow: clip; padding: 22px 0; border-block: 1px solid var(--line); display: grid; gap: 6px; transform: skewX(var(--skew, 0deg)); }
.marquee-row { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee-row span { flex: none; padding-right: .35em; font-size: clamp(28px, 4vw, 56px); font-weight: 800; letter-spacing: -.035em; line-height: 1.15; white-space: nowrap; }
.marquee-row.reverse { animation-direction: reverse; animation-duration: 60s; }
.marquee-row.reverse span { color: rgba(245, 245, 243, .3); font-weight: 600; }

/* Path: horizontal scroll-driven timeline */
.path { position: relative; background: linear-gradient(180deg, var(--bg), #16171b 40%, var(--bg)); }
.section-pad-x { padding-left: var(--gutter); padding-right: var(--gutter); }
.path-sticky { padding: 110px 0 90px; }
.path.is-scrubbed .path-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; display: flex; flex-direction: column; justify-content: center; padding: 72px 0 32px; }
.path-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 36px; }
.path-head h2 { max-width: 17ch; }
.path-head p { max-width: 38ch; }
.path-progress { height: 2px; margin-top: 36px; background: var(--line); background-clip: content-box; }
.path:not(.is-scrubbed) .path-progress { display: none; }
.path-progress-fill { display: block; height: 2px; background: linear-gradient(90deg, var(--accent), var(--warn)); box-shadow: 0 0 14px var(--accent); transform-origin: left; transform: scaleX(0); }
.path-viewport { margin-top: 36px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; }
.path.is-scrubbed .path-viewport { overflow: visible; padding-bottom: 0; }
.path-track { display: flex; gap: 24px; width: max-content; margin: 0 auto; padding: 0 var(--gutter); list-style: none; will-change: transform; }
.path-stop { position: relative; flex: none; width: min(400px, 78vw); padding: 26px; border-radius: 22px; background: linear-gradient(180deg, #212328, #18191d); border: 1px solid var(--line); scroll-snap-align: center; transition: transform 600ms var(--ease-out), border-color 400ms, box-shadow 400ms, opacity 400ms; }
.path.is-scrubbed .path-stop { opacity: .42; transform: scale(.93) translateY(12px); }
.path.is-scrubbed .path-stop.is-past { opacity: .68; transform: scale(.95); }
.path.is-scrubbed .path-stop.is-active { opacity: 1; transform: none; border-color: rgba(255, 120, 79, .55); box-shadow: 0 40px 90px -40px rgba(255, 120, 79, .45); }
.path-stop::after { content: ""; position: absolute; top: -1px; left: 26px; right: 26px; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); opacity: 0; transition: opacity 400ms; }
.path-stop.is-active::after { opacity: 1; }
.path-icon { display: block; width: 100%; height: 140px; margin-bottom: 20px; border-radius: 16px; background: radial-gradient(70% 90% at 50% 100%, rgba(255, 120, 79, .1), transparent 70%), #111215; padding: 10px; }
.path-year { font: 600 13px var(--mono); color: var(--accent); letter-spacing: .1em; text-transform: uppercase; }
.path-stop h3 { font-size: clamp(26px, 2.4vw, 34px); margin: 8px 0 12px; }
.path-stop p { color: var(--muted); }
.ic-ln { fill: none; stroke: rgba(245, 245, 243, .45); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ic-ln.dashy { stroke-dasharray: 4 6; animation: dash 1s linear infinite reverse; }
.ic-acc { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.ic-cursor { fill: var(--accent); animation: caret 1s steps(1) infinite; }
.ic-type { fill: none; stroke: var(--cool); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; animation: type 3.2s steps(14) infinite; }
.ic-type.t2 { stroke: rgba(245, 245, 243, .5); animation-delay: .9s; }
.ic-fill { fill: rgba(216, 179, 131, .45); }
.ic-crate { fill: #d8b383; animation: crate-lift 4s var(--ease-in-out) infinite; }
.ic-needle { stroke: var(--accent); stroke-width: 4; stroke-linecap: round; transform-origin: 80px 92px; animation: needle 3.2s var(--ease-in-out) infinite alternate; }
.ic-dot { fill: var(--accent); }
.ic-hex { fill: rgba(125, 211, 252, .1); stroke: var(--cool); stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: hex 2.4s ease-in-out infinite; }
.ic-hex.h2 { animation-delay: -.8s; }
.ic-hex.h3 { animation-delay: -1.6s; }
.ic-packet { fill: var(--accent); animation: packet-up 1.6s ease-in infinite; }
.ic-acc.bolt { animation: soft-pulse 1.4s ease-in-out infinite; }
.ic-spark { fill: var(--accent); transform-box: fill-box; transform-origin: center; animation: spark 3s ease-in-out infinite; }
.ic-led { fill: var(--ok); animation: led 1.3s steps(2) infinite; }

/* Reveal motion */
.lab-index { gap: 10px; }
.lab-index a { padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; transition: transform 200ms var(--ease-out), border-color 200ms, background-color 200ms; }
.lab-index a:hover { border-color: var(--accent); background: rgba(255, 120, 79, .08); }
.lab-index a span { font: 12px var(--mono); color: var(--accent); margin-right: 8px; }

/* Labs: shared chrome */
.lab { position: relative; isolation: isolate; border-radius: 22px; background: linear-gradient(180deg, #24262b, #1b1c20); border: 1px solid rgba(255, 255, 255, .07); box-shadow: 0 50px 90px -60px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .06); }
:is(.lab, .homelab-network, .unit-card)::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: radial-gradient(440px circle at var(--mx, 50%) var(--my, -30%), rgba(255, 120, 79, .1), transparent 60%); opacity: 0; transition: opacity 400ms; }
:is(.lab, .homelab-network, .unit-card):hover::before { opacity: 1; }
.lab-heading > span { font-family: var(--mono); font-size: 12px; letter-spacing: .03em; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line); }
.lab-heading > span::before { box-shadow: 0 0 10px var(--signal); animation: led 1.6s steps(2) infinite; vertical-align: 1px; }
.lab button { border-radius: 12px; background: linear-gradient(180deg, #34373d, #2a2c31); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 18px -10px rgba(0, 0, 0, .8); transition: transform 180ms var(--ease-out), box-shadow 220ms, background 220ms; }
.lab button:hover:not(:disabled) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 12px 26px -12px rgba(255, 120, 79, .65); }
.lab-controls button:first-child, .label-input button { background: linear-gradient(180deg, #ff8d6a, #f2643a); color: var(--accent-ink); font-weight: 600; }
.lab-controls button:first-child:disabled, .label-input button:disabled { background: var(--lab-well); }
.lab .emergency-control { background: repeating-linear-gradient(-45deg, #ff6b6b 0 10px, #df4545 10px 20px); color: #fff; font-weight: 700; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.lab input[type="range"] { accent-color: var(--accent); }
.lab input:not([type="range"]), .lab select { border-radius: 10px; border-color: rgba(255, 255, 255, .14); }
.rack-hud, .rack-floor, .pallet-dock, .conveyor-scene, .cluster-plane, .cloud-node, .document-result { border-radius: 16px; border: 1px solid rgba(255, 255, 255, .05); box-shadow: inset 0 2px 16px rgba(0, 0, 0, .45); }
.rack-floor, .conveyor-scene, .cluster-plane, .pallet-dock { background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .07) 1px, transparent 0) 0 0 / 22px 22px, var(--lab-deep); }
.rack-grid .rack-bay, .pallet-dock .dock-pallet, .pods .pod, .document-steps button[aria-pressed="false"] { box-shadow: none; }

/* Rack game */
.rack-lab { --rack-post: #9da1a8; }
.rack-grid { box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .7); }
.rack-grid .rack-bay { background: linear-gradient(180deg, #23252a, #1a1b1f); transition: background 200ms, box-shadow 200ms; }
.rack-grid .rack-bay::after { content: ""; position: absolute; left: -4px; top: 0; bottom: 0; width: 3px; background: repeating-linear-gradient(180deg, transparent 0 8px, rgba(0, 0, 0, .55) 8px 11px); pointer-events: none; }
.rack-grid .rack-bay:hover:not(:disabled) { background: linear-gradient(180deg, #2c2f35, #222428); box-shadow: inset 0 0 0 1px rgba(255, 120, 79, .4), inset 0 -36px 40px -30px rgba(255, 120, 79, .28); }
.rack-bay[data-fit="overweight"] { background: linear-gradient(180deg, rgba(255, 107, 107, .1), rgba(255, 107, 107, .02)), #1b1c20 !important; }
.bay-capacity { border-radius: 6px; font-family: var(--mono); font-size: 12px; }
.rack-bay[aria-pressed="true"], .rack-bay.drop-target { outline-color: var(--accent); }
.rack-bay.drop-target { box-shadow: inset 0 0 40px rgba(255, 120, 79, .3) !important; }
.bay-rejected { box-shadow: inset 0 0 0 3px var(--error), inset 0 0 40px rgba(255, 107, 107, .35) !important; }
.pallet-crate { background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .07) 0 2px, transparent 2px 13px), linear-gradient(180deg, #e9cb98, #c99c62); border-bottom-color: #9b7045; border-right-color: #a97c4e; border-radius: 3px; box-shadow: 0 12px 18px -8px rgba(0, 0, 0, .75); text-shadow: 0 1px 0 rgba(255, 255, 255, .35); transition: transform 220ms var(--ease-out), box-shadow 220ms; }
.pallet-crate::after { content: ""; position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--tag, var(--ok)); box-shadow: 0 0 0 2px rgba(38, 32, 24, .35), 0 0 8px var(--tag, var(--ok)); }
[data-load="medium"] { --tag: var(--warn); }
[data-load="heavy"] { --tag: #ff6b6b; }
.dock-pallet:hover:not(:disabled) .pallet-crate { transform: skewY(-3deg) translateY(-5px); }
.dock-pallet[aria-pressed="true"] .pallet-crate { outline-color: var(--accent); box-shadow: 0 0 26px rgba(255, 120, 79, .5), 0 12px 18px -8px rgba(0, 0, 0, .75); animation: crate-bob 1.4s ease-in-out infinite; }
.crane-mast { background: linear-gradient(90deg, #d0d3d8, #7c8087); opacity: .85; border-radius: 3px; }
.crane-carriage { border-bottom-color: var(--warn); filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .6)); }
.crane-load { background: linear-gradient(180deg, #e9cb98, #c99c62); border-radius: 3px; }
.rack-hud progress { border-radius: 99px; overflow: hidden; }
.rack-hud progress::-webkit-progress-bar { border-radius: 99px; }
.rack-hud progress::-webkit-progress-value { background: linear-gradient(90deg, var(--accent), var(--warn)); border-radius: 99px; }
.rack-hud progress::-moz-progress-bar { background: linear-gradient(90deg, var(--accent), var(--warn)); border-radius: 99px; }
.win-stamp { position: absolute; left: 50%; top: 46%; z-index: 3; padding: 14px 26px; border: 4px solid var(--ok); border-radius: 12px; background: rgba(16, 17, 20, .88); color: var(--ok); font: 800 clamp(16px, 2.6vw, 30px)/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; transform: translate(-50%, -50%) rotate(-8deg) scale(1.7); opacity: 0; pointer-events: none; transition: opacity 250ms, transform 550ms cubic-bezier(.2, 1.6, .4, 1); box-shadow: 0 0 40px rgba(143, 227, 160, .25); }
.rack-lab.game-complete .win-stamp { opacity: 1; transform: translate(-50%, -50%) rotate(-8deg) scale(1); }
.rack-lab.game-complete .rack-floor { outline-color: var(--ok); }

/* Conveyor game */
.line-machine { position: relative; border-radius: 12px; background: linear-gradient(180deg, #34373d, #26282d); border-right-color: #5e6268; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); }
.line-beacon { position: absolute; right: 34px; top: -14px; width: 20px; height: 14px; border-radius: 10px 10px 2px 2px; background: #3a3d42; }
.is-running .line-beacon { background: var(--ok); box-shadow: 0 0 18px var(--ok); animation: led 1s steps(2) infinite; }
.is-emergency .line-beacon { background: #ff4d4d; box-shadow: 0 0 28px #ff4d4d; animation: led .45s steps(2) infinite; }
.rollers { border-radius: 8px; background: linear-gradient(180deg, #9a9ea5, #5d6167); box-shadow: 0 10px 18px -6px rgba(0, 0, 0, .75); }
.rollers::before { content: ""; position: absolute; left: 0; right: 0; top: -7px; height: 9px; border-radius: 5px; background: repeating-linear-gradient(90deg, #2c2e32 0 14px, #3b3d42 14px 28px); }
.is-running .rollers::before { animation: belt-slide var(--belt-time, 1s) linear infinite; }
.rollers i { background: radial-gradient(circle at 35% 35%, #e1e3e6, #6c7077 60%, #3b3e43); }
.rollers i::after { background: rgba(0, 0, 0, .45); }
.carton { background: linear-gradient(180deg, #e6c48f, #c9995e); border-right-color: #9f7446; border-bottom-color: #9f7446; border-radius: 3px; box-shadow: 0 14px 14px -8px rgba(0, 0, 0, .7); }
.carton::before { inset: 0 auto 0 calc(50% - 5px); width: 8px; background: rgba(255, 255, 255, .3); opacity: 1; }
.line-sensor { width: 4px; border-radius: 2px; background: linear-gradient(180deg, transparent, var(--signal) 25%, var(--signal)); box-shadow: 0 0 10px var(--signal), 0 0 26px rgba(255, 120, 79, .6); }
.line-sensor::before { content: ""; position: absolute; bottom: -4px; left: -8px; width: 20px; height: 14px; border-radius: 3px; background: #4a4d53; }
.line-sensor::after { content: ""; position: absolute; top: -6px; left: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 16px var(--signal); }
.conveyor-lab.is-emergency .conveyor-scene { animation: alarm 1s ease-in-out infinite; box-shadow: inset 0 0 0 2px rgba(255, 107, 107, .6), inset 0 0 60px rgba(255, 77, 77, .25); }
.line-readout strong { font-family: var(--mono); font-size: clamp(28px, 3vw, 40px); color: var(--accent); text-shadow: 0 0 20px rgba(255, 120, 79, .5); }

/* Printer game */
.printer-machine { border-radius: 18px 18px 6px 6px; background: linear-gradient(180deg, #3b3e44, #2a2c31); border-right-color: #50545b; border-bottom-color: #50545b; box-shadow: 0 26px 40px -20px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .08); }
.printer-machine::before { background: linear-gradient(90deg, #5f636a, #43464c); border-radius: 6px 6px 0 0; }
.printer-light { background: var(--ok); box-shadow: 0 0 12px var(--ok); animation: led 2s steps(2) infinite; }
.printer-working .printer-light { background: var(--warn); box-shadow: 0 0 16px var(--warn); animation-duration: .2s; }
.printer-display { border-radius: 6px; background: #0b120d; color: var(--ok); font-family: var(--mono); text-shadow: 0 0 8px rgba(143, 227, 160, .5); }
.printer-slot { border-radius: 4px; box-shadow: inset 0 3px 6px rgba(0, 0, 0, .85); }
.printed-label { border-radius: 2px 2px 8px 8px; background: linear-gradient(180deg, #fff, #f1efe9); box-shadow: 0 20px 30px -12px rgba(0, 0, 0, .75); }
.printed-label::before { content: ""; position: absolute; left: 0; right: 0; top: -5px; height: 10px; background: radial-gradient(circle at 6px 5px, #1c1d21 3px, transparent 3.5px) 0 0 / 12px 10px repeat-x; }
.printed-label::after { content: ""; position: absolute; left: -6px; right: -6px; top: 0; height: 3px; background: #ff3b3b; box-shadow: 0 0 12px #ff3b3b, 0 0 26px #ff3b3b; opacity: 0; pointer-events: none; }
.printed-label.label-checked::after { animation: laser 450ms ease-in-out; }

/* Cluster game */
.cluster-nodes span { position: relative; border-radius: 10px; background: linear-gradient(180deg, #2f3136, #24262a); border-bottom: 4px solid #4a4d53; font-family: var(--mono); }
.cluster-nodes span::after { content: ""; position: absolute; right: 10px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: led 1.4s steps(2) infinite; }
.controller strong { font-family: var(--mono); }
.pods .pod { position: relative; border-radius: 16px; border-bottom: 0; background: linear-gradient(180deg, #25272c, #1d1e22); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); transition: transform 200ms var(--ease-out), box-shadow 250ms; }
.pods .pod::before { content: ""; position: absolute; top: 12px; left: 50%; width: 100px; height: 100px; margin-left: -50px; border-radius: 50%; background: radial-gradient(rgba(125, 211, 252, .25), transparent 68%); pointer-events: none; }
.pods .pod:hover:not(:disabled) { box-shadow: inset 0 0 0 1px rgba(255, 107, 107, .65), 0 12px 28px -12px rgba(255, 107, 107, .6); }
.pod-cube { background: linear-gradient(160deg, #f0faff, #7dd3fc); animation: pod-float 3s ease-in-out infinite; }
.pod-cube::after { background: rgba(0, 0, 0, .22); }
.pod:nth-child(2n) .pod-cube { animation-delay: -1s; }
.pod:nth-child(3n) .pod-cube { animation-delay: -2s; }
.pod[data-state="failed"] { outline: none; box-shadow: inset 0 0 0 2px var(--error), 0 0 34px -8px rgba(255, 107, 107, .7); animation: bay-shake 380ms ease 2; }
.pod[data-state="failed"]::before { background: radial-gradient(rgba(255, 107, 107, .3), transparent 68%); }
.pod[data-state="failed"] .pod-cube { animation: none; background: linear-gradient(160deg, #ffc2c2, #ff6b6b); }
.is-reconciling .cluster-reconcile::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; border: 2px solid var(--signal); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }

/* Cloud game */
.cloud-node { position: relative; border-radius: 16px; background: linear-gradient(180deg, #17181c, #111215); }
.cloud-node > span:first-child { font-weight: 600; color: var(--ink); }
.message-stack i { background: linear-gradient(180deg, #f5f5f3, #d6d6d2); border-right-color: #9b9ea4; border-radius: 3px; }
.message-stack i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom right, transparent 48%, rgba(0, 0, 0, .25) 50%, transparent 53%), linear-gradient(to bottom left, transparent 48%, rgba(0, 0, 0, .25) 50%, transparent 53%); background-size: 100% 70%; background-repeat: no-repeat; }
.function-mark { border-radius: 14px; background: radial-gradient(circle, rgba(255, 120, 79, .2), transparent 70%), var(--lab-well); font-family: var(--mono); text-shadow: 0 0 18px rgba(255, 120, 79, .7); }
.cloud-lab:has(#cloud-toggle[aria-pressed="true"]) .function-node { opacity: .55; filter: grayscale(.8); }
.cloud-link { color: var(--accent); font-size: 22px; animation: nudge 1.2s ease-in-out infinite; }
.cloud-packet { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 120, 79, .25), 0 0 26px 6px rgba(255, 120, 79, .6); }
.response-mark { border-color: var(--ok); filter: drop-shadow(0 0 10px rgba(143, 227, 160, .6)); }
.queue-items span { border-radius: 6px; font-family: var(--mono); font-size: 12px; animation: pod-in 300ms var(--ease-out); }

/* Document workbench */
.document-steps { counter-reset: step; }
.document-steps button { counter-increment: step; border-radius: 12px; }
.document-steps button::before { content: counter(step, decimal-leading-zero); display: block; font: 600 11px var(--mono); color: var(--muted); margin-bottom: 2px; }
.document-steps button[aria-pressed="true"] { background: linear-gradient(180deg, #ff8d6a, #f2643a); color: var(--accent-ink); box-shadow: 0 12px 26px -12px rgba(255, 120, 79, .75); }
.document-steps button[aria-pressed="true"]::before { color: rgba(18, 19, 22, .7); }
.sample-document { border-radius: 6px; background: repeating-linear-gradient(180deg, transparent 0 27px, rgba(0, 0, 0, .04) 27px 28px), linear-gradient(180deg, #fff, #f2f0eb); box-shadow: 0 26px 40px -20px rgba(0, 0, 0, .85); transform: rotate(-.6deg); }
.sample-document p { font-family: var(--mono); font-size: 14px; }
.document-scan { height: 44px; background: linear-gradient(180deg, transparent, rgba(255, 120, 79, .3) 80%, var(--accent)); }
.extracted-field { border-radius: 8px; border-left: 3px solid var(--cool); }
.extracted-field strong { font-family: var(--mono); color: var(--cool); }
.document-result[data-validation="pass"] { border-left-color: var(--ok); }

/* Projects, stats, credentials */
.repository-list article { border-radius: 18px; transition: transform 300ms var(--ease-out), background-color 300ms; }
.repository-list article:hover { background: #24262b; transform: translateX(6px); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 40px 0 0; }
.stats div { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.stats dd { order: -1; margin: 0; font-size: clamp(44px, 5vw, 68px); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.stats dt { font-size: 13px; color: var(--muted); }
.cert { font-family: var(--mono); padding: 4px 10px; border-radius: 8px; background: rgba(255, 120, 79, .12); color: var(--accent); }
.credentials tbody tr { transition: background-color 200ms; }
.credentials tbody tr:hover { background: #2a2c31; }

/* Work scenes */
.scene-frame { position: relative; aspect-ratio: 4 / 3; overflow: clip; border-radius: 22px; border: 1px solid var(--line); background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .06) 1px, transparent 0) 0 0 / 24px 24px, radial-gradient(70% 70% at 50% 40%, #202227, #141518); }
.scene-frame .scene { display: block; width: 100%; height: 100%; }
.work-list { display: grid; gap: 0; }
.work-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: clamp(28px, 5vw, 80px); align-items: center; padding: 28px 0; border-top: 1px solid var(--line); }
.work-row:first-child { border-top: 0; }
.work-row .project { padding: 0; }
.work-scene { margin: 0; }
.work-scene .scene-frame { border-radius: 18px; }
.work-scene figcaption { margin-top: 10px; font-size: var(--small); color: var(--muted); }
.work-scene.reveal-arrived .scene-frame { animation: wipe 1200ms var(--ease-out) both; }
@media (max-width: 760px) { .work-row { grid-template-columns: 1fr; gap: 18px; } }
.scene .sc-paper { fill: #f5f5f3; }
.scene .sc-paper.ghost { fill: #b9b9b4; opacity: .5; }
.scene .sc-paper.scanned { fill: #e9e4d6; }
.scene .sc-text { fill: none; stroke: rgba(17, 17, 17, .3); stroke-width: 6; stroke-linecap: round; }
.scene .sc-scan { --scan: 192px; fill: var(--accent); opacity: .85; filter: drop-shadow(0 0 8px var(--accent)); animation: sc-scan 3.2s var(--ease-in-out) infinite; }
.scene .sc-scan.s2 { animation-delay: -1.6s; }
.scene .sc-link { fill: none; stroke: rgba(245, 245, 243, .25); stroke-width: 3; stroke-dasharray: 6 8; }
.scene .sc-link.flow { stroke: var(--accent); animation: dash 1s linear infinite; }
.scene .sc-panel { fill: #26282d; stroke: rgba(245, 245, 243, .14); stroke-width: 1.5; }
.scene .bubble { fill: #41444b; }
.scene .bubble.bot { fill: var(--accent); }
.scene .typing { fill: rgba(245, 245, 243, .7); animation: typing 1.2s ease-in-out infinite; }
.scene .typing.t2 { animation-delay: .2s; }
.scene .typing.t3 { animation-delay: .4s; }
.scene .seq-1 { animation: seq-1 8s ease infinite; }
.scene .seq-2 { animation: seq-2 8s ease infinite; }
.scene .seq-3 { animation: seq-3 8s ease infinite; }
.scene .seq-4 { animation: seq-4 8s ease infinite; }
.scene .sc-ln { fill: none; stroke: rgba(245, 245, 243, .55); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.scene .sc-ln.thin { stroke-width: 1.5; stroke: rgba(245, 245, 243, .3); }
.scene .sc-acc-ln { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.scene .sc-lbl { font: 600 13px var(--mono); fill: rgba(245, 245, 243, .6); letter-spacing: .04em; }
.scene .sc-lbl.strong { font-size: 18px; font-weight: 800; fill: var(--ink); }
.scene .sc-hub { fill: rgba(255, 120, 79, .15); stroke: var(--accent); stroke-width: 3; }
.scene .sc-ring { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 4 10; transform-box: fill-box; transform-origin: center; animation: spin 8s linear infinite; }
.scene .sc-box { fill: #d8b383; }
.scene .sc-packet rect { fill: var(--accent); filter: drop-shadow(0 0 5px var(--accent)); }
.scene .sc-packet.cool rect { fill: var(--cool); filter: drop-shadow(0 0 5px var(--cool)); }
.scene .sc-msg rect { fill: var(--ink); }
.scene .sc-gear { fill: none; stroke: var(--accent); stroke-width: 8; stroke-dasharray: 8 6; transform-box: fill-box; transform-origin: center; animation: spin 3s linear infinite; }
.scene .sc-api { font: 800 34px var(--mono); fill: var(--accent); animation: soft-pulse 1.6s ease-in-out infinite; }
.scene .ship { transform-origin: 240px 290px; animation: bob 4s ease-in-out infinite; }
.scene .sc-hull { fill: #3a3d43; stroke: rgba(245, 245, 243, .4); stroke-width: 2; }
.scene .sc-cont { fill: var(--accent); stroke: #141518; stroke-width: 2; }
.scene .sc-cont.c2 { fill: var(--cool); }
.scene .sc-cont.c3 { fill: #d8b383; }
.scene .sc-wave { fill: none; stroke: var(--cool); stroke-width: 2.5; opacity: .6; animation: wave 3s linear infinite; }
.scene .sc-wave.w2 { opacity: .3; animation-duration: 4.5s; }
.scene .sc-match { fill: none; stroke: var(--ok); stroke-width: 2.5; stroke-dasharray: 4 6; }
.scene .sc-ok-ring { fill: rgba(143, 227, 160, .12); stroke: var(--ok); stroke-width: 3; }
.scene .sc-ok { fill: none; stroke: var(--ok); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; animation: check 8s ease infinite; }
.scene .sc-mail rect { fill: var(--ink); }
.scene .sc-mail path { fill: none; stroke: #141518; stroke-width: 2; }
.scene .sc-mail.small rect { fill: var(--accent); }
.scene .sc-router { fill: rgba(255, 120, 79, .15); stroke: var(--accent); stroke-width: 3; }
.scene .sc-spark { fill: var(--accent); transform-box: fill-box; transform-origin: center; animation: spark 3s ease-in-out infinite; }
.scene .sc-lane { fill: #26282d; stroke: rgba(245, 245, 243, .2); stroke-width: 2; }

/* Home lab */
.homelab { position: relative; background: radial-gradient(55% 35% at 15% 8%, rgba(125, 211, 252, .07), transparent 70%), radial-gradient(45% 35% at 92% 55%, rgba(255, 120, 79, .07), transparent 70%), var(--bg); }
.homelab-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.homelab-rack figcaption { color: var(--muted); text-align: center; }
.rack-svg { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto; overflow: visible; }
.hl-frame { fill: #151619; stroke: rgba(245, 245, 243, .12); stroke-width: 2; }
.hl-holes { stroke: rgba(0, 0, 0, .65); stroke-width: 4; stroke-dasharray: 3 9; }
.hl-unit { cursor: pointer; outline: none; transition: transform 350ms var(--ease-out); }
.hl-unit:hover, .hl-unit:focus-visible { transform: translateX(10px); }
.hl-unit.is-selected { transform: translateX(16px); }
.hl-body { fill: url(#hl-metal); stroke: rgba(245, 245, 243, .12); stroke-width: 1.5; transition: stroke 200ms; }
.hl-unit:hover .hl-body { stroke: rgba(255, 120, 79, .6); }
.hl-unit.is-selected .hl-body { stroke: var(--accent); stroke-width: 2.5; filter: drop-shadow(0 0 12px rgba(255, 120, 79, .5)); }
.hl-unit:focus-visible .hl-body { stroke: var(--ink); stroke-width: 3; }
.hl-name { font: 700 16px var(--mono); fill: var(--ink); }
.hl-sub { font: 500 12px var(--mono); fill: var(--muted); letter-spacing: .06em; }
.hl-led { fill: var(--ok); animation: led 1.4s steps(2) infinite; }
.hl-led.cool { fill: var(--cool); }
.hl-led.p1 { animation-duration: .35s; }
.hl-led.p2 { animation-duration: .6s; }
.hl-led.p3 { animation-duration: .9s; }
.hl-led.p4 { animation-duration: .25s; }
.hl-led.disk { fill: var(--accent); animation: disk 1.1s steps(1) infinite; }
.hl-led.d2 { animation-duration: .7s; }
.hl-led.d3 { animation-duration: 1.6s; }
.hl-led.d4 { animation-duration: .9s; }
.hl-ports rect { fill: #0d0e10; stroke: rgba(245, 245, 243, .18); }
.hl-fan { transform-box: fill-box; transform-origin: center; animation: spin 1.2s linear infinite; }
.hl-fan.f2 { animation-duration: .9s; }
.hl-fan circle { fill: #141518; stroke: rgba(245, 245, 243, .22); stroke-width: 2; }
.hl-fan path { stroke: rgba(245, 245, 243, .32); stroke-width: 3; stroke-linecap: round; }
.hl-bar { fill: #0d0e10; }
.hl-bar-fill { fill: var(--cool); transform-box: fill-box; transform-origin: left; animation: load 5s ease-in-out infinite alternate; }
.hl-bar-fill.b2 { fill: var(--accent); animation-duration: 3.6s; }
.hl-drives rect { fill: #1a1b1e; stroke: rgba(245, 245, 243, .16); }
.hl-board { fill: #1d5638; stroke: #2f8a58; stroke-width: 1.5; }
.hl-charge { fill: var(--ok); transform-box: fill-box; transform-origin: left; animation: charge 6s ease-in-out infinite; }
.hl-feet { stroke: #3a3d42; stroke-width: 10; stroke-linecap: round; }
.homelab-side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.unit-card { position: relative; isolation: isolate; padding: 28px; border-radius: 22px; background: linear-gradient(180deg, #23252a, #1a1b1f); border: 1px solid var(--line); }
.unit-kicker { font: 600 12px var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: .12em; }
.unit-card h3 { font-family: var(--mono); font-size: clamp(28px, 3vw, 40px); letter-spacing: -.03em; margin: 8px 0 12px; }
.unit-card > p:not(.unit-kicker) { color: var(--muted); max-width: 52ch; }
.unit-specs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.unit-specs li { padding: 6px 12px; border-radius: 999px; background: rgba(125, 211, 252, .08); border: 1px solid rgba(125, 211, 252, .25); color: var(--cool); font-size: 13px; }
.unit-meters { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; font: 12px var(--mono); color: var(--muted); }
.unit-meters div { display: flex; align-items: center; gap: 10px; }
.unit-meters i { flex: 1; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.unit-meters b { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cool), var(--accent)); transition: width 800ms var(--ease-out); }
.unit-swap { animation: settle 500ms var(--ease-out); }
.terminal { overflow: clip; border-radius: 18px; border: 1px solid var(--line); background: #0b0c0e; box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .95); font-family: var(--mono); }
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #1c1d21; font-size: 12px; color: var(--muted); }
.terminal-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.terminal-bar i:nth-child(2) { background: #febc2e; }
.terminal-bar i:nth-child(3) { background: #28c840; }
.terminal-bar span { margin-left: 8px; }
.terminal-body { height: 250px; overflow: auto; padding: 16px; font-size: 13px; line-height: 1.55; color: #c6ebd0; background: linear-gradient(rgba(255, 255, 255, .025) 50%, transparent 50%) 0 0 / 100% 4px, #0b0c0e; }
.terminal-body p { white-space: pre; }
.terminal-body .cmd { color: var(--ink); margin-top: 8px; }
.terminal-body .cmd::after { content: ""; }
.terminal-body .dim { color: var(--muted); white-space: pre-wrap; }
.terminal-body .err { color: var(--error); white-space: pre-wrap; }
.terminal-input { display: flex; align-items: center; gap: 10px; padding: 6px 16px; border-top: 1px solid var(--line); }
.terminal-input:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.terminal-input label { color: var(--accent); }
.terminal-input input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent; color: var(--ink); font: 14px var(--mono); caret-color: var(--accent); }
.terminal-input input:focus-visible { outline: none; }
.terminal-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 16px 16px; }
.terminal-chips button { min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #17181b; color: var(--muted); font: 12px var(--mono); transition: color 200ms, border-color 200ms, transform 200ms var(--ease-out); }
.terminal-chips button:hover:not(:disabled) { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.homelab-network { position: relative; isolation: isolate; margin-top: 64px; padding: 28px; border-radius: 22px; background: linear-gradient(180deg, #1d1f23, #16171a); border: 1px solid var(--line); }
.homelab-network .lab-heading h3 { font-size: var(--lead); }
.network-svg { display: block; width: 100%; height: auto; }
.net-link { fill: none; stroke: rgba(245, 245, 243, .22); stroke-width: 2.5; }
.net-vpn { fill: none; stroke: var(--cool); stroke-width: 2; stroke-dasharray: 6 8; opacity: .7; animation: dash 1.4s linear infinite; }
.net-cloud { fill: rgba(245, 245, 243, .05); stroke: rgba(245, 245, 243, .5); stroke-width: 2.5; }
.net-node { fill: #26282d; stroke: rgba(245, 245, 243, .3); stroke-width: 2; }
.net-node.acc { fill: rgba(255, 120, 79, .12); stroke: var(--accent); }
.net-node.cool { fill: rgba(125, 211, 252, .1); stroke: var(--cool); }
.net-icon { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; }
.net-lbl { font: 600 14px var(--mono); fill: rgba(245, 245, 243, .62); }
.net-lbl.in { fill: var(--ink); }
.net-vms rect { fill: rgba(125, 211, 252, .18); stroke: var(--cool); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: vm 4s ease-in-out infinite; }
.net-vms rect.v2 { animation-delay: -1.3s; }
.net-vms rect.v3 { animation-delay: -2.6s; }
.net-packet circle { fill: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); }
.net-packet.cool circle { fill: var(--cool); filter: drop-shadow(0 0 6px var(--cool)); }
.homelab-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px; margin-top: 32px; align-items: start; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.metric { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 12px; padding: 16px 18px; border-radius: 16px; background: #1a1b1f; border: 1px solid var(--line); }
.metric span { font: 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.metric strong { font: 700 22px var(--mono); font-variant-numeric: tabular-nums; }
.metric svg { grid-column: 1 / -1; width: 100%; height: 40px; }
.metric polyline { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.metric:nth-child(even) polyline { stroke: var(--cool); }
.metrics-note { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.services li { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 16px 18px 16px 40px; border-radius: 14px; background: #1a1b1f; border: 1px solid var(--line); transition: transform 250ms var(--ease-out), border-color 250ms; }
.services li:hover { transform: translateY(-4px); border-color: rgba(255, 120, 79, .45); }
.services strong { font-weight: 600; }
.services li > span:last-child { font-size: 13px; color: var(--muted); }
.svc-dot { position: absolute; left: 18px; top: 24px; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse-ring 2.4s infinite; }
.services li:nth-child(odd) .svc-dot { animation-delay: -1.2s; }

/* Contact */
.contact { position: relative; isolation: isolate; overflow: clip; }
.contact-plane { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.plane-trail { fill: none; stroke: rgba(18, 19, 22, .25); stroke-width: 2; stroke-dasharray: 2 10; }
.plane path { fill: var(--accent-ink); }
.plane .plane-fold { fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: 1.5; }
.confetti { position: fixed; z-index: 60; width: 9px; height: 14px; border-radius: 2px; pointer-events: none; }

/* Pause control for ambient loops */
.motion-paused :is(.ambient, .ambient *, .lab-heading > span, .path-icon *, .button, .pulse-dot, .svc-dot, .scroll-cue span)::before,
.motion-paused :is(.ambient, .ambient *, .path-icon *, .pulse-dot, .svc-dot, .scroll-cue span, .cluster-nodes span, .pod-cube, .hl-led)::after,
.motion-paused :is(.ambient, .ambient *, .path-icon *, .pulse-dot, .svc-dot, .pod-cube, .cloud-link, .printer-light, .line-beacon) { animation-play-state: paused !important; }
.motion-paused .marquee { transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .hero-kicker { animation: settle 900ms var(--ease-out) backwards; }
  .reveal-arrived { animation: rise 900ms var(--ease-out) both; }
  .lab.reveal-arrived, .homelab-network.reveal-arrived, .homelab-rack.reveal-arrived { animation: lab-in 1000ms var(--ease-out) both; }
  figure.reveal-arrived .image-frame, .work-preview.reveal-arrived .scene-frame { animation: wipe 1200ms var(--ease-out) both; }
  .services .reveal-arrived:nth-child(2n) { animation-delay: 80ms; }
  .preview-arrived { animation: picture-settle 600ms var(--ease-out) both; }
}

@keyframes comet { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
@keyframes belt { to { stroke-dashoffset: -18; } }
@keyframes dash { to { stroke-dashoffset: -28; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes win-blink { 0%, 60% { opacity: .15; } 61%, 100% { opacity: .55; } }
@keyframes smoke { from { transform: translate(0, 0) scale(.6); opacity: .9; } to { transform: translate(30px, -110px) scale(2.4); opacity: 0; } }
@keyframes arm-a { from { transform: rotate(-14deg); } to { transform: rotate(18deg); } }
@keyframes arm-b { from { transform: rotate(24deg); } to { transform: rotate(-20deg); } }
@keyframes node-pulse { 50% { transform: scale(1.6); opacity: .6; } }
@keyframes spark { 0%, 100% { transform: rotate(0) scale(.85); } 50% { transform: rotate(90deg) scale(1.1); } }
@keyframes hex { 50% { transform: scale(.82); fill: rgba(125, 211, 252, .28); } }
@keyframes led { 50% { opacity: .25; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(143, 227, 160, .6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(143, 227, 160, 0); } }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@keyframes scroll-dot { 0% { transform: translateY(0); opacity: 1; } 80%, 100% { transform: translateY(14px); opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes caret { 50% { opacity: 0; } }
@keyframes type { 0% { stroke-dashoffset: 1; } 60%, 100% { stroke-dashoffset: 0; } }
@keyframes crate-lift { 0%, 15% { transform: translate(0, 0); } 45%, 60% { transform: translate(0, -60px); } 85%, 100% { transform: translate(0, 0); } }
@keyframes needle { from { transform: rotate(-60deg); } to { transform: rotate(62deg); } }
@keyframes packet-up { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-34px); opacity: 0; } }
@keyframes soft-pulse { 50% { opacity: .45; } }
@keyframes crate-bob { 50% { transform: skewY(-3deg) translateY(-5px); } }
@keyframes belt-slide { to { background-position: 28px 0; } }
@keyframes alarm { 50% { box-shadow: inset 0 0 0 2px rgba(255, 107, 107, .2), inset 0 0 30px rgba(255, 77, 77, .08); } }
@keyframes laser { from { top: 0; opacity: 1; } to { top: 100%; opacity: 1; } }
@keyframes pod-float { 50% { transform: translateY(-5px); } }
@keyframes nudge { 50% { transform: translateX(4px); opacity: .5; } }
@keyframes nudge-down { 0%, 100% { transform: rotate(90deg); } 50% { transform: rotate(90deg) translateX(4px); opacity: .5; } }
@keyframes sc-scan { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(var(--scan)); } }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes seq-1 { 0%, 3% { opacity: 0; transform: translateY(8px); } 8%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes seq-2 { 0%, 18% { opacity: 0; transform: translateY(8px); } 23%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes seq-3 { 0%, 34% { opacity: 0; transform: translateY(8px); } 39%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes seq-4 { 0%, 50% { opacity: 0; transform: translateY(8px); } 55%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes bob { 50% { transform: translateY(-5px) rotate(-.8deg); } }
@keyframes wave { to { transform: translateX(-80px); } }
@keyframes check { 0%, 60% { stroke-dashoffset: 1; } 70%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
@keyframes disk { 0%, 30% { opacity: 1; } 31%, 55% { opacity: .2; } 56%, 70% { opacity: 1; } 71%, 100% { opacity: .2; } }
@keyframes load { from { transform: scaleX(.25); } to { transform: scaleX(.85); } }
@keyframes charge { 0%, 100% { transform: scaleX(.92); } 50% { transform: scaleX(1); } }
@keyframes vm { 0%, 45%, 55%, 100% { opacity: 1; transform: none; } 50% { opacity: .2; transform: scale(.6); } }
@keyframes rise { from { opacity: 0; transform: translateY(44px); } to { opacity: 1; transform: none; } }
@keyframes lab-in { from { opacity: 0; transform: translateY(60px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes wipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }

@media (max-width: 1000px) {
  .homelab-grid, .homelab-bottom { grid-template-columns: 1fr; }
  .rack-svg { max-width: 360px; }
  .path-head { display: block; }
  .path-head p { margin-top: 16px; }
}
@media (max-width: 600px) {
  .wordmark-mark { width: 30px; height: 30px; font-size: 12px; border-radius: 8px; }
  .navigation nav { flex-wrap: wrap; }
  .navigation nav a::after { bottom: 8px; }
  .hero-kicker { margin-bottom: 20px; font-size: 13px; }
  .marquee { padding: 16px 0; }
  .marquee-row span { font-size: 26px; }
  .path.is-scrubbed .path-sticky { padding: 60px 0 20px; }
  .path-head h2 { font-size: 36px; }
  .path-head p { font-size: 15px; }
  .path-progress, .path-viewport { margin-top: 20px; }
  .path-stop { padding: 18px; border-radius: 18px; }
  .path-icon { height: 92px; margin-bottom: 14px; }
  .path-stop h3 { font-size: 23px; margin: 6px 0 8px; }
  .path-stop p { font-size: 15px; }
  .lab { border-radius: 16px; }
  .pallet-crate::after { width: 7px; height: 7px; top: 4px; right: 4px; }
  .win-stamp { font-size: 15px; padding: 10px 16px; }
  .cloud-link { animation-name: nudge-down; }
  .homelab-network { padding: 18px; overflow-x: auto; }
  .network-svg { min-width: 680px; }
  .services { grid-template-columns: 1fr; }
  .stats { gap: 10px; }
  .stats dd { font-size: 38px; }
  .terminal-body { height: 230px; font-size: 12px; }
  .unit-card { padding: 22px; }
  .unit-meters { grid-template-columns: 1fr; }
}

/* ============ v3: tidier editorial system, pinned hero, AI-first ============ */
:root { --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif; --hair: rgba(245, 245, 243, .12); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
h2 .serif, h3 .serif { color: var(--accent); }

/* Navigation: solid bar, never over content */
.navigation, .navigation.is-scrolled { background: rgba(18, 19, 22, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--hair); padding-top: 14px; padding-bottom: 14px; }
.navigation nav { gap: 0; }
.navigation nav a { padding: 8px clamp(10px, 1.4vw, 22px); font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-left: 1px solid var(--hair); }
.navigation nav a:first-child { border-left: 0; }
.navigation nav a:hover { color: var(--ink); transform: none; }
.navigation nav a::after { bottom: -15px; }
html { scroll-padding-top: 80px; }

/* Section rhythm */
.section-pad { border-top: 1px solid var(--hair); }
.section-intro { flex-wrap: wrap; row-gap: 20px; }
.eyebrow { flex-basis: 100%; display: flex; align-items: center; gap: 14px; font: 500 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.eyebrow span { color: var(--accent); }
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.path-head { flex-wrap: wrap; row-gap: 20px; }
.contact .eyebrow { color: rgba(18, 19, 22, .7); margin-bottom: 24px; }
.contact .eyebrow span { color: var(--accent-ink); }
.contact .eyebrow::after { background: rgba(18, 19, 22, .2); }

/* Pinned hero with letter transition */
.hero { padding: 0; display: block; min-height: 0; overflow: visible; }
.hero-pin { position: relative; isolation: isolate; overflow: clip; min-height: min(860px, calc(100svh - 64px)); padding: 32px var(--gutter) 28px; display: flex; flex-direction: column; justify-content: center; }
.hero::before { z-index: -3; }
.hero .ch { display: inline-block; will-change: transform; }
.hero-lead { max-width: 30ch; padding: 12px 20px; font-size: var(--lead); }
.hero-lead .serif { display: block; margin-top: 4px; color: var(--accent); }
.hero-ruler { position: absolute; right: var(--gutter); top: 18%; bottom: 18%; width: 18px; background: repeating-linear-gradient(180deg, var(--hair) 0 1px, transparent 1px 10%) right / 10px 100% no-repeat; border-right: 1px solid var(--hair); pointer-events: none; }
.ruler-read { position: absolute; right: 16px; top: 0; transform: translateY(-50%); padding-right: 10px; font: 500 11px var(--mono); color: var(--cool); letter-spacing: .08em; white-space: nowrap; }
.ruler-read::after { content: ""; position: absolute; right: -16px; top: 50%; width: 22px; height: 1px; background: var(--cool); box-shadow: 0 0 8px var(--cool); }
@media (prefers-reduced-motion: no-preference) {
  .js .hero { height: 185vh; }
  .js .hero-pin { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; }
  .js .hero-scene { transform-origin: 50% 55%; }
}

/* AI section */
.ai { background: radial-gradient(60% 40% at 80% 0%, rgba(255, 120, 79, .07), transparent 70%), var(--bg); }
.ai .section-intro > p { max-width: 46ch; }
.ai .section-intro .serif { display: block; margin-top: 8px; color: var(--ink); font-size: 1.15em; }
.ai-pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 120px; padding: 0; list-style: none; border-top: 1px solid var(--hair); }
.ai-pillars li { padding: 28px 28px 0 0; }
.ai-pillars li + li { padding-left: 28px; border-left: 1px solid var(--hair); }
.ai-pillars span { font: 500 12px var(--mono); color: var(--accent); }
.ai-pillars h3 { margin: 18px 0 10px; font-size: clamp(20px, 1.6vw, 24px); }
.ai-pillars p { color: var(--muted); font-size: 15px; }
.anatomy, .case { margin-top: 120px; padding-top: 48px; border-top: 1px solid var(--hair); scroll-margin-top: 80px; }
.anatomy { margin-top: 0; }
.case-head { max-width: 62ch; }
.case-tag { font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.case-head h3 { font-size: clamp(30px, 1.6rem + 1.6vw, 52px); line-height: 1.04; letter-spacing: -.04em; }
.case-head h3 .serif { display: inline; }
.case-head > p:not(.case-tag) { margin-top: 20px; color: var(--muted); }
.case-head > .case-stack { margin-top: 18px; font: 12px/1.7 var(--mono); color: var(--ink); opacity: .8; }

/* Flow diagrams */
.flow { margin-top: 40px; border-radius: 24px; border: 1px solid var(--hair); background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .06) 1px, transparent 0) 0 0 / 24px 24px, linear-gradient(180deg, #17181c, #121316); padding: clamp(10px, 2vw, 28px); overflow-x: auto; }
.flow-svg { display: block; width: 100%; height: auto; min-width: 680px; overflow: visible; }
.fl-edge { fill: none; stroke: rgba(245, 245, 243, .16); stroke-width: 2; stroke-dasharray: 3 7; transition: stroke 400ms; }
.fl-edge.is-on { stroke: rgba(255, 120, 79, .65); stroke-dasharray: none; }
.fl-edge.is-hot { stroke: var(--accent); stroke-width: 3; stroke-dasharray: 8 8; animation: dash .6s linear infinite; }
.fl-box { fill: #1f2125; stroke: rgba(245, 245, 243, .16); stroke-width: 1.5; transition: fill 400ms, stroke 400ms; }
.fl-icon { fill: none; stroke: rgba(245, 245, 243, .72); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke 400ms; }
.fl-icon.solid { fill: rgba(255, 120, 79, .25); stroke: var(--accent); }
.fl-label { font: 600 13px var(--mono); fill: var(--ink); }
.fl-sub { font: 500 11px var(--mono); fill: var(--muted); letter-spacing: .04em; }
.fl-ring { fill: none; stroke: rgba(255, 120, 79, .4); stroke-width: 1.5; stroke-dasharray: 3 9; animation: spin 14s linear infinite; transform-box: fill-box; transform-origin: center; }
.fl-node { transition: opacity 400ms; }
.fl-node.accent .fl-box { stroke: rgba(255, 120, 79, .55); }
.fl-node.is-on .fl-box { fill: #2a2420; stroke: var(--accent); }
.fl-node.is-on .fl-icon { stroke: var(--accent); }
.fl-node.is-hot .fl-box { animation: node-hit 600ms var(--ease-out); }
.fl-packet circle { fill: var(--accent); }
.fl-packet .fl-packet-halo { fill: rgba(255, 120, 79, .25); }
.flow-steps { margin: 28px 0 0; padding: 0; list-style: none; counter-reset: flow; }
.flow-steps li { counter-increment: flow; border-top: 1px solid var(--hair); }
.flow-steps button { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 2px 8px; width: 100%; padding: 16px 0; border: 0; background: none; text-align: left; color: var(--muted); transition: color 300ms; }
.flow-steps button::before { content: counter(flow, decimal-leading-zero); grid-row: span 2; font: 500 12px/1.9 var(--mono); color: var(--muted); }
.flow-steps button::after { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--accent); }
.flow-steps b { font-weight: 600; color: var(--ink); opacity: .6; transition: opacity 300ms; }
.flow-steps span { font-size: 15px; }
.flows-live .flow-steps span { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 500ms var(--ease-out), opacity 400ms; }
.flow-steps li.is-active b { opacity: 1; }
.flow-steps li.is-active button::before { color: var(--accent); }
.flow-steps li.is-active button::after { animation: step-line 900ms var(--ease-out) forwards; }
.flows-live .flow-steps li.is-active span { max-height: 6em; opacity: 1; }
.flows-live .flow-steps b { opacity: .6; }
.flow-steps b { opacity: 1; }
.flow-steps li.is-done b { opacity: .85; }
.flow-steps button:hover b { opacity: 1; }
.flow-steps.stepper { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 40px; }
.flow-steps.stepper li { border-top: 2px solid var(--hair); }
.flow-steps.stepper li.is-done { border-top-color: rgba(255, 120, 79, .5); }
.flow-steps.stepper button { grid-template-columns: 1fr; padding: 14px 12px 0 0; }
.flow-steps.stepper button::before { grid-row: auto; }
.flow-steps.stepper button::after { top: -2px; height: 2px; }
.case-rda .flow { margin-top: 16px; }

/* Anatomy */
.anatomy-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.code-card { margin-top: 28px; border-radius: 18px; border: 1px solid var(--hair); background: #0d0e10; overflow: hidden; }
.code-card figcaption { display: flex; justify-content: space-between; margin: 0; padding: 12px 18px; border-bottom: 1px solid var(--hair); font: 12px var(--mono); color: var(--muted); }
.code-card pre { margin: 0; padding: 20px; overflow-x: auto; font: 13px/1.7 var(--mono); color: #d7dae0; }
.code-card .k { color: #c792ea; }
.code-card .f { color: var(--cool); }
.code-card .s { color: var(--ok); }
.code-card .c { color: #6b717c; font-style: italic; }

/* RDA demo */
.rda-demo { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 20px; margin-top: 20px; }
.chat, .rda-sheet { border-radius: 20px; border: 1px solid var(--hair); background: #17181b; overflow: hidden; }
.pane-bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--hair); font: 600 14px var(--body-font, inherit); }
.pane-bar > span:last-child { margin-left: auto; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.chat-log { height: 380px; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.chat-empty { color: var(--muted); font-size: 14px; margin: auto; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; animation: msg-in 380ms var(--ease-out) both; }
.msg.user { align-self: flex-end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 4px; }
.msg.agent { align-self: flex-start; background: #26282d; border-bottom-left-radius: 4px; }
.msg.tool { align-self: flex-start; display: flex; align-items: center; gap: 8px; padding: 4px 0 4px 14px; border-radius: 0; font: 12px var(--mono); color: var(--cool); }
.msg.tool::before { content: ""; flex: none; width: 14px; height: 14px; border: 2px solid var(--cool); border-radius: 4px; background: rgba(125, 211, 252, .15); }
.msg.typing { display: flex; gap: 5px; padding: 14px 16px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing-dot 1s ease-in-out infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3) { animation-delay: .3s; }
.rda-form { margin: 0; padding: 6px 18px 12px; }
.rda-form > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--hair); font-size: 14px; }
.rda-form > div:last-child { border-bottom: 0; }
.rda-form dt { color: var(--muted); }
.rda-form dd { margin: 0; text-align: right; font-family: var(--mono); font-size: 13px; color: rgba(245, 245, 243, .3); }
.rda-form .is-filled dd { color: var(--ink); }
.rda-form .is-new { animation: field-flash 1.2s var(--ease-out); }
.rda-status { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--hair); }
.rda-status[data-state="draft"] { color: var(--warn) !important; border-color: rgba(255, 200, 87, .5); }
.rda-status[data-state="submitted"] { color: var(--ok) !important; border-color: rgba(143, 227, 160, .5); background: rgba(143, 227, 160, .08); }

/* Split cases */
.case-split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.case-split.reverse .case-head { order: 2; }
.case-split .case-visual { position: sticky; top: 100px; min-width: 0; }
.case-split .flow { margin-top: 0; }
.matchboard { display: block; width: 100%; height: auto; margin-top: 16px; padding: 16px; border-radius: 20px; border: 1px solid var(--hair); background: #f4f2ec; }
.match-h { font: 600 11px var(--mono); letter-spacing: .14em; fill: #6b6a66; }
.match-row rect { fill: #fff; stroke: #d9d6cd; }
.match-row.po rect { fill: #eef7f1; stroke: #b9dcc4; }
.match-row.miss rect { stroke: #f0b4b4; }
.match-t { font: 600 12px var(--mono); fill: #1d1e22; }
.match-v { font: 12px var(--mono); fill: #6b6a66; }
.match-link { fill: none; stroke: #2f9e5a; stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 1; animation: match-draw 9s var(--ease-out) infinite; }
.match-link.l2 { stroke: #c99a1e; animation-name: match-draw-2; }
.match-link.miss { stroke: #d65050; stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0; animation: match-fade-3 9s ease infinite; }
.match-chip rect { fill: #2f9e5a; }
.match-chip.mid rect { fill: #e2ad24; }
.match-chip.bad rect { fill: #d65050; }
.match-chip text { font: 700 12px var(--mono); fill: #fff; }
.match-chip, .match-note { opacity: 0; }
.c1 { animation: match-fade-1 9s ease infinite; }
.c2 { animation: match-fade-2 9s ease infinite; }
.c3 { animation: match-fade-3 9s ease infinite; }
.match-note { font: 600 12px var(--mono); fill: #b03a3a; }
.match-note.dim { font-weight: 400; fill: #6b6a66; }
.match-foot { font: 11px var(--mono); fill: #8a8984; }

/* Try it + toolbox */
.ai-try { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 80px); margin-top: 120px; padding-top: 48px; border-top: 1px solid var(--hair); align-items: start; }
.ai-try .case-head h3 { font-size: clamp(26px, 2.4vw, 36px); }
.ai-toolbox { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 80px); margin-top: 96px; padding-top: 48px; border-top: 1px solid var(--hair); }
.ai-toolbox > div > p:last-child { color: var(--muted); }
.ai-toolbox dl { margin: 0; }
.ai-toolbox dl > div { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.ai-toolbox dl > div:first-child { padding-top: 0; }
.ai-toolbox dt { font: 500 12px/1.9 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.ai-toolbox dd { margin: 0; }

.motion-paused :is(.fl-ring, .fl-edge, .msg, .match-link, .match-chip, .match-note) { animation-play-state: paused !important; }
.motion-paused .matchboard *, .motion-paused .flow-steps li.is-active button::after { animation: none !important; opacity: 1; stroke-dashoffset: 0; }
.motion-paused .flow-steps li.is-active button::after { width: 100%; }
@media (prefers-reduced-motion: reduce) {
  .match-link, .match-chip, .match-note { opacity: 1 !important; stroke-dashoffset: 0 !important; }
  .flow-steps li.is-active button::after { width: 100%; }
}

@keyframes node-hit { 0% { transform: scale(1); } 40% { transform: scale(1.07); } 100% { transform: scale(1); } }
@keyframes step-line { to { width: 100%; } }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes typing-dot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes field-flash { 0% { background: rgba(255, 120, 79, .28); } 100% { background: transparent; } }
@keyframes match-draw { 0%, 8% { stroke-dashoffset: 1; } 20%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
@keyframes match-draw-2 { 0%, 22% { stroke-dashoffset: 1; } 34%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
@keyframes match-fade-1 { 0%, 18% { opacity: 0; } 22%, 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes match-fade-2 { 0%, 32% { opacity: 0; } 36%, 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes match-fade-3 { 0%, 46% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }
.fl-node.is-hot .fl-box { transform-box: fill-box; transform-origin: center; }

@media (max-width: 1000px) {
  .ai-pillars { grid-template-columns: 1fr 1fr; }
  .ai-pillars li:nth-child(3) { padding-left: 0; border-left: 0; }
  .anatomy-bottom, .case-split, .ai-try, .ai-toolbox, .rda-demo { grid-template-columns: 1fr; }
  .case-split.reverse .case-head { order: 0; }
  .case-split .case-visual { position: static; }
  .navigation nav a { padding: 8px 10px; letter-spacing: .08em; }
}
@media (max-width: 600px) {
  .navigation nav a { border-left: 0; padding: 12px 4px; font-size: 11px; letter-spacing: .04em; }
  .hero-ruler { display: none; }
  .hero-pin { padding-top: 24px; }
  .ai-pillars { grid-template-columns: 1fr; margin-bottom: 80px; }
  .ai-pillars li, .ai-pillars li + li { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--hair); }
  .anatomy, .case { margin-top: 80px; padding-top: 36px; }
  .flow { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); border-radius: 0; border-left: 0; border-right: 0; }
  .flow-steps.stepper { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 8px; }
  .chat-log { height: 340px; }
  .ai-toolbox dl > div { grid-template-columns: 1fr; gap: 6px; }
  .ai-try { margin-top: 80px; }
}
.flow:empty { display: none; }

/* ============ v4: smaller, calmer scale ============ */
:root {
  --body: clamp(.9375rem, .9rem + .15vw, 1.0625rem);
  --lead: clamp(1.0625rem, 1rem + .3vw, 1.3125rem);
  --head: clamp(1.75rem, 1.25rem + 1.9vw, 3rem);
  --small: 13px;
  --gutter: clamp(18px, 4vw, 64px);
}
.wordmark { font-size: 15px; }
.wm-ch { display: inline-block; transition: opacity 120ms; }
.wordmark-mark { width: 30px; height: 30px; font-size: 12px; border-radius: 8px; }
.navigation, .navigation.is-scrolled { padding-top: 10px; padding-bottom: 10px; }
.navigation nav a { font-size: 11px; }
.hero h1 { font-size: clamp(56px, 8.4vw, 136px); line-height: .9; }
.hero-kicker { font-size: 12px; margin-bottom: 22px; }
.hero-lead { font-size: var(--lead); margin-top: 24px; }
.button { padding: 14px 20px; font-size: 15px; gap: 18px; border-radius: 12px; }
.button span { font-size: 18px; }
.hero-foot { font-size: 12px; }
@media (prefers-reduced-motion: no-preference) { .js .hero { height: 165vh; } }
.section-pad { padding-top: 88px; padding-bottom: 88px; }
.section-intro { margin-bottom: 36px; }
.section-intro > p { max-width: 42ch; font-size: var(--body); color: var(--muted); }
.marquee { padding: 14px 0; }
.marquee-row span { font-size: clamp(20px, 2.4vw, 34px); }
.path-sticky { padding: 80px 0 60px; }
.path-stop { width: min(330px, 76vw); padding: 20px; border-radius: 18px; }
.path-icon { height: 110px; margin-bottom: 14px; }
.path-stop h3 { font-size: clamp(20px, 1.6vw, 26px); }
.path-stop p { font-size: 14px; }
.ai-pillars { margin-bottom: 72px; }
.ai-pillars h3 { font-size: 18px; margin: 12px 0 8px; }
.ai-pillars p { font-size: 14px; }
.anatomy, .case { margin-top: 80px; padding-top: 36px; }
.case-head h3 { font-size: clamp(24px, 1.1rem + 1.2vw, 36px); }
.case-head > p:not(.case-tag) { font-size: var(--body); margin-top: 14px; }
.case-tag { margin-bottom: 12px; font-size: 11px; }
.flow { margin-top: 28px; border-radius: 18px; }
.flow-steps button { padding: 12px 0; font-size: 15px; }
.flow-steps span { font-size: 14px; }
.code-card pre { font-size: 12px; padding: 16px; }
.chat-log { height: 320px; }
.msg { font-size: 14px; }
.rda-form > div { padding: 9px 0; font-size: 13px; }
.ai-try, .ai-toolbox { margin-top: 80px; padding-top: 36px; }
.experience { margin-top: 88px; gap: clamp(28px, 4vw, 64px); }
.experience-copy h3 { font-size: clamp(26px, 1.2rem + 1.4vw, 40px); }
.experience-copy > p { font-size: var(--body); }
.lab { padding: 22px; border-radius: 18px; }
.lab-heading h4 { font-size: 18px; }
.lab button { padding: 11px 16px; min-height: 44px; font-size: 14px; }
.rack-grid .rack-bay { height: 112px; }
.rack-hud strong { font-size: 18px; }
.conveyor-track { height: 140px; }
.cloud-node { min-height: 250px; }
.function-mark { font-size: 36px; min-height: 72px; }
.line-readout strong { font-size: 28px; }
.project-name { font-size: clamp(24px, 2.6vw, 40px); }
.repository-list article { padding: 24px 20px; }
.repository-list h3 { font-size: 20px; }
.stats dd { font-size: clamp(36px, 3.6vw, 52px); }
.unit-card h3 { font-size: clamp(22px, 2.2vw, 30px); }
.terminal-body { height: 220px; font-size: 12px; }
.metric strong { font-size: 18px; }
.homelab-network { margin-top: 48px; }
.credentials th, .credentials td { padding: 14px 18px; font-size: 15px; }
.email { font-size: clamp(32px, 6.4vw, 96px); margin: 56px 0 48px; }
.contact > p { font-size: var(--lead); }
@media (max-width: 600px) {
  .hero h1 { font-size: 15.5vw; }
  .hero-pin { min-height: 0; }
  .hero-lead { font-size: 16px; padding: 10px 14px; }
  .section-pad { padding-top: 64px; padding-bottom: 64px; }
  .navigation nav a { font-size: 10.5px; padding: 10px 2px; }
  .wordmark { font-size: 14px; }
  .path-stop { width: 78vw; }
  .path-head h2 { font-size: 28px; }
  .path-icon { height: 80px; }
  .anatomy, .case, .ai-try, .ai-toolbox { margin-top: 56px; padding-top: 28px; }
  .experience { margin-top: 64px; }
  .lab { padding: 14px; }
  .rack-grid .rack-bay { height: 86px; }
  .chat-log { height: 300px; }
  .msg { max-width: 90%; }
  .email { font-size: 11.5vw; margin: 40px 0; }
}

/* ============ v5: readable diagrams, filled hero ============ */
/* Hero tagline replaces the name as it flies to the header */
.hero-stage { position: relative; }
.hero-tagline { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero { height: 150vh; }
  .js .hero-tagline { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .02em; margin: 0; pointer-events: none; font-size: clamp(36px, 5.2vw, 84px); font-weight: 800; line-height: 1; letter-spacing: -.045em; }
  .js .hero-tagline > * { display: block; opacity: 0; will-change: transform, opacity; }
  .js .hero-tagline .serif { color: var(--accent); font-weight: 400; letter-spacing: -.02em; padding-bottom: .08em; }
  .js .hero-tagline small { margin-top: 22px; font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
}

/* Diagrams sit next to their steps */
.anatomy-bottom { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); margin-top: 32px; }
.anatomy-bottom .flow { margin-top: 0; }
.anatomy-side .flow-steps { margin-top: 0; }
.case-split { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.case-rda .flow-svg { max-width: 900px; margin: 0 auto; }
.flow-svg { min-width: 560px; }

/* "Now playing" caption under each diagram */
.flow-caption { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: start; margin-top: 12px; padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(255, 120, 79, .35); background: linear-gradient(90deg, rgba(255, 120, 79, .1), rgba(255, 120, 79, .02)); }
.fc-num { font: 600 12px/1.9 var(--mono); color: var(--accent); }
.fc-text b { display: block; font-size: 16px; font-weight: 700; }
.fc-text span { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.fc-bar { grid-column: 1 / -1; display: flex; gap: 4px; margin-top: 6px; }
.fc-bar i { flex: 1; height: 3px; border-radius: 3px; background: var(--hair); transition: background 300ms; }
.fc-bar i.done { background: rgba(255, 120, 79, .5); }
.fc-bar i.on { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.flow-caption.fc-in .fc-text { animation: msg-in 400ms var(--ease-out); }

/* Steps: clearly visible, active one highlighted */
.flow-steps li { border-top-color: var(--hair); }
.flow-steps button { padding: 12px 12px 12px 0; border-radius: 10px; transition: background 300ms, padding 300ms; }
.flows-live .flow-steps b { opacity: .8; font-size: 15px; }
.flow-steps li.is-active button { padding-left: 12px; background: rgba(255, 120, 79, .1); box-shadow: inset 3px 0 0 var(--accent); }
.flow-steps li.is-active b { opacity: 1; color: var(--accent); }
.flow-steps li.is-active button::after { display: none; }
.flow-steps.stepper button { padding: 12px 10px; }
.flow-steps.stepper span { display: none; }
.flow-steps.stepper li.is-active button { padding-left: 10px; }

@media (max-width: 1000px) {
  .anatomy-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .js .hero-tagline { font-size: 10.5vw; }
  .flow-caption { margin-top: 10px; padding: 12px 14px; }
  .fc-text b { font-size: 15px; }
}
.anatomy-diagram { min-width: 0; }
.anatomy-diagram .flow { margin-top: 0; }

/* ============ v6: fixes ============ */
/* Eyebrows always take their own row (a generic p max-width squeezed them inline) */
.section-intro > .eyebrow, .path-head > .eyebrow { max-width: none; flex: 0 0 100%; }
.path-head h2 { flex: 1 1 auto; }

/* Hero: tagline only after the lead has gone, sized to fit */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-tagline { font-size: clamp(30px, 4.4vw, 68px); padding: 0 8px; text-align: center; }
  .js .hero-tagline small { font-size: 11px; letter-spacing: .12em; }
}
@media (max-width: 600px) {
  .js .hero-tagline { font-size: 9vw; }
  .js .hero-tagline small { font-size: 9px; letter-spacing: .08em; }
}

/* Warehouse: pallet types and legend instead of unexplained dots */
.pallet-crate::after { content: none; }
.pallet-crate[data-span="2"] { width: 150px; }
.pallet-crate[data-span="2"]::before { left: 50%; width: 3px; opacity: .35; }
.pallet-crate[data-span="2"]::after { content: "2 bays"; position: absolute; top: 4px; right: 6px; width: auto; height: auto; padding: 1px 6px; border-radius: 6px; background: rgba(38, 32, 24, .8); box-shadow: none; color: #f2d9b0; font: 600 10px var(--mono); letter-spacing: .04em; }
.dock-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); }
.dock-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.dock-legend i { display: inline-block; height: 12px; border-radius: 2px; background: linear-gradient(180deg, #e9cb98, #c99c62); }
.lg-euro { width: 16px; }
.lg-wide { width: 32px; }
.game-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
#rack-solve { background: linear-gradient(180deg, #ff8d6a, #f2643a); color: var(--accent-ink); font-weight: 600; }
.rack-hud { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rack-grid .rack-bay { overflow: visible; }
.rack-grid .rack-bay:has(.wide) { z-index: 2; }
.stored-pallet.wide { position: absolute; left: 11%; bottom: 12px; width: calc(178% + 10px); max-width: none; height: 52px; }
.rack-bay.wide-tail .bay-capacity { opacity: .5; }

/* Conveyor: smaller machine header, beacon inside the panel */
.line-machine { height: 56px; padding: 0 16px; margin-top: 18px; }
.line-machine > :first-child { display: grid; place-items: center; width: 34px; height: 26px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font: 700 12px var(--mono); }
.line-machine > :nth-child(2) { margin-left: 12px; margin-right: auto; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.line-beacon { position: static; flex: none; width: 12px; height: 12px; border-radius: 50%; }
.conveyor-track { margin-top: 12px; }

@media (max-width: 600px) {
  .rack-hud { grid-template-columns: 1fr 1fr; }
  .rack-hud > :last-child { grid-column: 1 / -1; }
  .pallet-crate[data-span="2"] { width: 100%; }
  .pallet-dock .dock-pallet[data-span="2"] { grid-column: span 2; }
  .stored-pallet.wide { height: 36px; bottom: 8px; left: 6%; width: calc(188% + 6px); }
  .game-actions button { flex: 1; }
  .rack-lab .game-score { flex-wrap: wrap; }
  .rack-lab .game-score > span:first-child { max-width: none; }
}

/* Home lab v2 */
.hl-wifi { fill: none; stroke: var(--cool); stroke-width: 2.5; stroke-linecap: round; animation: soft-pulse 2s ease-in-out infinite; }
.hl-laptop { fill: rgba(245, 245, 243, .06); stroke: rgba(245, 245, 243, .4); stroke-width: 2; stroke-linejoin: round; }
.hl-vms rect { fill: rgba(125, 211, 252, .18); stroke: var(--cool); stroke-width: 1.2; animation: vm 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.hl-vms rect.v2 { animation-delay: -1.3s; }
.hl-vms rect.v3 { animation-delay: -2.6s; }
.homelab-flow { margin-top: 72px; }
.homelab-flow-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: 28px; align-items: start; }
.homelab-diagram { min-width: 0; }
.homelab-diagram .flow, .homelab-flow-grid > .flow-steps { margin-top: 0; }
.roadmap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); margin-top: 64px; padding-top: 36px; border-top: 1px solid var(--hair); }
.roadmap h3 { font-size: clamp(22px, 1rem + 1vw, 30px); letter-spacing: -.03em; }
.roadmap > div > p:last-child { margin-top: 12px; color: var(--muted); }
.roadmap ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.roadmap li { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; border: 1px dashed rgba(125, 211, 252, .35); background: rgba(125, 211, 252, .04); }
.roadmap b { font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cool); }
.roadmap span { font-size: 13px; color: var(--muted); }
@media (max-width: 1000px) {
  .homelab-flow-grid, .roadmap { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .anatomy-bottom, .homelab-flow-grid, .case-split, .ai-try, .ai-toolbox, .rda-demo, .roadmap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .flow { margin-left: 0; margin-right: 0; border-radius: 14px; border: 1px solid var(--hair); padding: 8px; }
}

/* v7: straight crates, hidden idle crane, brief win stamp, GPU unit */
.pallet-crate, .dock-pallet:hover:not(:disabled) .pallet-crate { transform: none; }
.dock-pallet:hover:not(:disabled) .pallet-crate { translate: 0 -4px; }
.dock-pallet[aria-pressed="true"] .pallet-crate { animation: crate-lift-soft 1.4s ease-in-out infinite; }
@keyframes crate-lift-soft { 50% { translate: 0 -4px; } }
.stored-pallet { margin-bottom: 4px; }
.stored-pallet.wide { bottom: 14px; height: 48px; }
.rack-crane .crane-mast { opacity: 0; transition: opacity 250ms; }
.rack-crane.is-carrying .crane-mast { opacity: .85; }
.win-stamp { top: auto; bottom: 8px; transform: translate(-50%, 0) scale(.6); font-size: clamp(12px, 1.4vw, 16px); padding: 8px 16px; border-width: 2px; }
.rack-lab.game-complete .win-stamp { animation: stamp-flash 3s ease forwards; transform: translate(-50%, 0) scale(1); }
@keyframes stamp-flash { 0% { opacity: 0; transform: translate(-50%, 0) scale(1.4); } 12%, 75% { opacity: 1; transform: translate(-50%, 0) scale(1); } 100% { opacity: 0; transform: translate(-50%, 0) scale(1); } }
.hl-sub.dim { fill: rgba(245, 245, 243, .35); }
.hl-gpu { fill: #121316; stroke: rgba(245, 245, 243, .2); }
.hl-gpu-fan { transform-box: fill-box; transform-origin: center; animation: spin 2.4s linear infinite; }
.hl-gpu-fan.f2 { animation-duration: 2s; }
.hl-gpu-fan circle { fill: #1b1c20; stroke: rgba(245, 245, 243, .25); stroke-width: 1.5; }
.hl-gpu-fan path { stroke: rgba(245, 245, 243, .35); stroke-width: 2.5; stroke-linecap: round; }
.hl-gpu-glow { fill: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); animation: soft-pulse 3s ease-in-out infinite; }
.hl-vent { stroke: rgba(0, 0, 0, .45); stroke-width: 3; stroke-linecap: round; }
.hl-led.sleep { fill: var(--warn); animation: soft-pulse 3s ease-in-out infinite; }
.motion-paused :is(.hl-gpu-fan, .hl-gpu-glow, .hl-led.sleep) { animation-play-state: paused; }
@media (max-width: 600px) { .stored-pallet.wide { height: 34px; bottom: 8px; } }

/* Scrollbars in the site's style */
html { scrollbar-color: #3a3d43 var(--bg); }
* { scrollbar-width: thin; scrollbar-color: rgba(245, 245, 243, .18) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(245, 245, 243, .16); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 120, 79, .55); }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-corner { background: transparent; }
.chat-log, .terminal-body { scrollbar-gutter: stable; }
@media (max-width: 600px) { .rack-grid .rack-bay { height: 100px; } .stored-pallet, .stored-pallet.wide { height: 32px; font-size: 11px; } .stored-pallet.wide { bottom: 6px; } }

/* Split cases: no dead gap between text and visuals */
.case-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 3.5vw, 56px); }
.case-split .case-head { max-width: none; position: sticky; top: 96px; }
.case-split .case-visual { position: static; }
.case-split .matchboard { max-width: 760px; margin-left: auto; margin-right: auto; }
@media (max-width: 1000px) {
  .case-split .case-head { position: static; }
}
@media (max-width: 400px) { .bay-capacity { font-size: 10px; white-space: nowrap; } .rack-grid .rack-bay { height: 108px; } }

/* Segmented control instead of a native select */
.document-controls { border: 0; margin: 0; padding: 0; min-width: 0; }
.document-controls legend { float: left; margin-right: 16px; padding: 0; font-size: var(--small); color: var(--muted); line-height: 40px; }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; border: 1px solid var(--hair); background: var(--lab-deep); }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span { display: block; padding: 9px 14px; border-radius: 10px; font-size: 14px; color: var(--muted); transition: background 200ms, color 200ms; }
.segmented label:hover span { color: var(--ink); }
.segmented input:checked + span { background: #2c2f35; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 120, 79, .5); }
.segmented input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.segmented input:disabled + span { opacity: .5; cursor: not-allowed; }
@media (max-width: 600px) {
  .document-controls legend { float: none; line-height: 1.5; margin-bottom: 8px; }
  .segmented { display: flex; }
  .segmented label { flex: 1; }
  .segmented span { text-align: center; padding: 9px 8px; font-size: 13px; }
}

/* Chat prompts: hero summary and contact approval */
.hero-chat, .contact-chat { display: grid; gap: 16px; text-align: left; line-height: 1.5; }
.js .hero-tagline > .hero-chat { display: grid; width: min(700px, 94vw); margin-top: 28px; padding: 20px 22px; font-size: 14.5px; font-weight: 400; line-height: 1.55; letter-spacing: normal; border: 1px solid var(--line); border-radius: 16px; background: rgba(18, 19, 22, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.js .hero-tagline .hero-chat .serif { display: inline; margin: 0; padding: 0; font-size: 1.05em; letter-spacing: normal; color: var(--accent); }
.chat-user { justify-self: end; max-width: 88%; margin: 0; padding: 10px 18px; border-radius: 18px 18px 6px 18px; background: rgba(255, 120, 79, .16); border: 1px solid rgba(255, 120, 79, .45); }
.chat-agent { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; }
.chat-agent > [data-chat-stream] { margin: 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: 6px 18px 18px 18px; background: rgba(255, 255, 255, .04); }
.chat-avatar { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800; line-height: 28px; text-align: center; }
.chat-agent ul { list-style-position: outside; padding-left: 34px !important; display: grid; gap: 10px; }
.chat-agent li::marker { color: var(--accent); }
.chat-chips { display: flex; flex-wrap: wrap; gap: 10px; padding-left: 42px; }
.chat-chips a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font: 500 12px var(--mono); color: var(--ink); text-decoration: none; transition: border-color 200ms, background-color 200ms; }
.chat-chips a:hover { border-color: var(--accent); background: rgba(255, 120, 79, .1); }
.contact-chat { max-width: 640px; margin-top: 40px; padding: 16px; border-radius: 16px; background: #141518; color: var(--ink); font-size: 15px; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .6); }
.contact-chat p { margin: 0; font-size: 15px; }
.chat-tool code { display: inline-block; padding: 6px 10px; border-radius: 6px; border: 1px dashed rgba(125, 211, 252, .5); background: rgba(125, 211, 252, .08); color: var(--cool); font: 12.5px/1.5 var(--mono); overflow-wrap: anywhere; }
.contact-chat .chat-approval { margin-top: 10px; color: var(--muted); }
.chat-approval > span { color: var(--warn); }
.chat-approval strong { color: var(--warn); }
.contact-chat + .email { margin-top: 48px; }
.ai-disclaimer { margin: 0; font-size: 12px; text-align: center; opacity: .75; }
.chat-playing .chat-agent, .chat-playing [data-chat-tail] { opacity: 0; transform: translateY(6px); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
.chat-playing .chat-agent.shown, .chat-playing [data-chat-tail].shown { opacity: 1; transform: none; }
.chat-playing .chat-word { opacity: 0; transition: opacity 220ms; }
.chat-playing .chat-word.on { opacity: 1; }
.chat-caret::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: currentColor; animation: led 1s steps(2) infinite; }
@media (max-width: 600px) {
  .contact-chat, .contact-chat p { font-size: 14px; }
  .js .hero-tagline > .hero-chat { padding: 14px; gap: 12px; font-size: 13px; letter-spacing: normal; }
  .chat-agent > [data-chat-stream] { padding: 10px 12px; }
  .chat-agent ul { padding-left: 26px !important; }
  .chat-chips { padding-left: 0; }
  .contact-bottom { flex-wrap: wrap; }
  .ai-disclaimer { order: 3; flex-basis: 100%; text-align: left; }
}

/* Path: detail panel for the active stop fills the space under the cards */
.path-detail { display: none; }
.path.is-scrubbed .path-detail { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px clamp(32px, 6vw, 96px); align-items: end; margin-top: clamp(28px, 5vh, 64px); }
.path-count { font: 500 12px var(--mono); letter-spacing: .16em; color: var(--muted); }
.path-index { color: var(--accent); }
.path-now-title { margin-top: 10px; font-size: clamp(30px, 3.4vw, 52px); font-weight: 800; letter-spacing: -.045em; line-height: 1.05; }
.path-now-line { margin-top: 12px; max-width: 52ch; font-size: var(--lead); color: var(--muted); }
.path-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.path-tags li { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); font: 500 12px var(--mono); color: var(--ink); }
.path-next { margin-top: 18px; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.path-detail.is-changing .path-now { animation: path-swap 420ms var(--ease-out) both; }
.path-detail.is-changing .path-journey { display: block; width: 100%; height: clamp(190px, 30vh, 300px); border-radius: 18px; border: 1px solid var(--line); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02), 0 30px 60px -30px rgba(0, 0, 0, .8); }
.path-journey .j-ln { fill: none; stroke: rgba(245, 245, 243, .35); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.path-journey .j-ln.thick { stroke-width: 7; stroke: rgba(245, 245, 243, .42); }
.path-journey .j-acc { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.path-journey .j-lbl { font: 600 12px var(--mono); letter-spacing: .14em; fill: rgba(245, 245, 243, .45); }
.path-journey .j-star { fill: #f5f5f3; }
.path-journey .j-star.tw { filter: drop-shadow(0 0 4px rgba(255, 255, 255, .6)); animation: j-twinkle 3s ease-in-out infinite; }
.path-journey .j-star.tw:nth-of-type(3n) { animation-delay: -1.2s; }
@keyframes j-twinkle { 50% { opacity: .55; } }
.path-journey .j-dots { fill: none; stroke: #f5f5f3; stroke-linecap: round; }
.path-journey .j-dots.d1 { stroke-width: 1; opacity: .4; }
.path-journey .j-dots.d2 { stroke-width: 1.5; opacity: .65; }
.path-journey .j-dots.d3 { stroke-width: 2.1; opacity: .85; animation: j-twinkle 5s ease-in-out infinite; }
.path-journey .j-sat { animation: j-fly 26s linear infinite; }
.path-journey .j-sat rect, .path-journey .j-sat path { fill: #9a9ea5; stroke: rgba(125, 211, 252, .6); stroke-width: 1; }
.path-journey .j-sat-led, .path-journey .j-plane-led { fill: #ff4d4d; animation: led 1s steps(2) infinite; }
.path-journey .j-plane { animation: j-fly 16s linear infinite; animation-delay: -6s; }
.path-journey .j-plane path { fill: rgba(245, 245, 243, .8); }
.path-journey .j-birds { fill: none; stroke: rgba(245, 245, 243, .6); stroke-width: 1.6; stroke-linecap: round; animation: cloud-drift 6s ease-in-out infinite alternate; }
.path-journey .j-bolt { fill: none; stroke: var(--warn); stroke-width: 2.5; stroke-linejoin: round; opacity: 0; animation: j-flash 5s steps(1) infinite; }
.path-journey .j-uplink, .path-journey .j-hexlink { fill: none; stroke: rgba(125, 211, 252, .35); stroke-width: 1.5; stroke-dasharray: 4 6; }
.path-journey .j-pkt circle { fill: var(--accent); filter: drop-shadow(0 0 4px var(--accent)); }
.path-journey .j-pkt.cool circle { fill: var(--cool); filter: drop-shadow(0 0 4px var(--cool)); }
.path-journey .j-windows rect { fill: var(--warn); opacity: .7; animation: led 4s steps(2) infinite; }
.path-journey .j-windows .w2 { animation-duration: 6s; animation-delay: -2s; }
.path-journey .j-windows .w3 { animation-duration: 3s; animation-delay: -1s; }
.path-journey .j-rack { fill: #26282d; stroke: rgba(245, 245, 243, .35); stroke-width: 1.5; }
.path-journey .j-rack-ln { fill: none; stroke: rgba(245, 245, 243, .2); stroke-width: 1; }
.path-journey .j-led { fill: var(--ok); animation: led 1.4s steps(2) infinite; }
.path-journey .j-led.l2 { animation-duration: .8s; }
.path-journey .j-led.l3 { fill: var(--cool); animation-duration: 2s; }
.path-journey .j-pipe { fill: none; stroke: #5d6167; stroke-width: 8; stroke-linecap: round; }
.path-journey .j-valve { fill: none; stroke: var(--accent); stroke-width: 4; stroke-dasharray: 6 5; animation: spin 6s linear infinite; }
.path-journey .j-steam { fill: rgba(245, 245, 243, .2); transform-box: fill-box; transform-origin: center; animation: smoke 4s ease-out infinite; }
.path-journey .j-steam.s2 { animation-delay: -2s; }
.path-journey .j-gear { fill: none; stroke: rgba(245, 245, 243, .5); stroke-width: 7; stroke-dasharray: 7 5; animation: spin 4s linear infinite; }
.path-journey .j-beacon-pole { fill: none; stroke: #5d6167; stroke-width: 3; }
.path-journey .j-beacon { fill: var(--accent); filter: drop-shadow(0 0 8px var(--accent)); animation: led .8s steps(2) infinite; }
.path-journey .j-lamp-wire { fill: none; stroke: rgba(245, 245, 243, .35); stroke-width: 1.5; }
.path-journey .j-lamp-shade { fill: #5d6167; }
.path-journey .j-cone { fill: rgba(255, 200, 87, .07); }
.path-journey .j-tags rect { fill: #f5f5f3; opacity: .85; }
.path-journey .j-exit { fill: #1f9d55; }
.path-journey .j-exit-txt { font: 700 8px var(--mono); fill: #fff; text-anchor: middle; }
.path-journey .j-forklift { animation: j-drive 14s linear infinite; }
.path-journey .j-fk-body { fill: var(--warn); }
.path-journey .j-fk-cab, .path-journey .j-fk-mast { fill: none; stroke: rgba(245, 245, 243, .7); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.path-journey .j-fk-wheel { fill: #16171a; stroke: rgba(245, 245, 243, .7); stroke-width: 2; }
.path-journey .j-window { fill: #0e1424; stroke: rgba(245, 245, 243, .4); stroke-width: 2; }
.path-journey .j-window-bar { fill: none; stroke: rgba(245, 245, 243, .4); stroke-width: 2; }
.path-journey .j-moon { fill: #f5e6b8; }
.path-journey .j-wstar { fill: #f5f5f3; }
.path-journey .j-shelf { fill: none; stroke: rgba(245, 245, 243, .35); stroke-width: 3; }
.path-journey .j-book.b1 { fill: var(--accent); }
.path-journey .j-book.b2 { fill: var(--cool); opacity: .8; }
.path-journey .j-book.b3 { fill: var(--warn); opacity: .8; }
.path-journey .j-mug { fill: var(--accent); }
.path-journey .j-mug-h { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.path-journey .j-steam-l { fill: none; stroke: rgba(245, 245, 243, .35); stroke-width: 1.6; stroke-linecap: round; animation: j-steam 3s ease-in-out infinite; }
.path-journey .j-floppy { fill: #3b5bdb; stroke: #16171a; stroke-width: 1; }
.path-journey .j-floppy.f2 { fill: #2f2f35; }
.path-journey .j-cat ellipse, .path-journey .j-cat circle { fill: #e08a4f; }
.path-journey .j-cat path { fill: #e08a4f; stroke: #e08a4f; stroke-width: 2; stroke-linejoin: round; }
.path-journey .j-cat .j-tail { fill: none; stroke-width: 4; stroke-linecap: round; transform-box: fill-box; transform-origin: right bottom; animation: j-tail 2.4s ease-in-out infinite alternate; }
.path-journey .j-cat { animation: j-breathe 3s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom; }
.path-journey .j-rug { fill: rgba(255, 120, 79, .12); }
@keyframes j-fly { from { transform: translateX(-340px); } to { transform: translateX(1000px); } }
@keyframes j-drive { from { transform: translateX(-320px); } to { transform: translateX(980px); } }
@keyframes j-flash { 0%, 92%, 96% { opacity: 0; } 93%, 97% { opacity: 1; } }
@keyframes j-steam { 0% { opacity: 0; transform: translateY(4px); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes j-tail { to { transform: rotate(18deg); } }
@keyframes j-breathe { 50% { transform: scaleY(1.06); } }.path-journey .j-planet { fill: #2a2f4a; stroke: rgba(125, 211, 252, .5); stroke-width: 2; }
.path-journey .j-ring { fill: none; stroke: rgba(255, 200, 87, .55); stroke-width: 3; }
.path-journey .j-spark { fill: var(--accent); transform-box: fill-box; transform-origin: center; filter: drop-shadow(0 0 8px rgba(255, 120, 79, .9)); animation: spark 4s ease-in-out infinite; }
.path-journey .j-spark.s2 { fill: #f5f5f3; animation-delay: -2s; }
.path-journey .j-cloud path:first-child { fill: rgba(245, 245, 243, .08); stroke: rgba(245, 245, 243, .45); stroke-width: 2; }
.path-journey .j-cloud { animation: cloud-drift 9s ease-in-out infinite alternate; }
.path-journey .j-cloud.c2 { animation-duration: 12s; animation-delay: -4s; }
.path-journey .j-cloud.c3 { animation-duration: 7s; animation-delay: -2s; }
.path-journey .j-cloud-net { fill: none; stroke: rgba(125, 211, 252, .6); stroke-width: 1.5; }
.path-journey .j-node { fill: var(--cool); }
.path-journey .j-city { fill: rgba(245, 245, 243, .05); stroke: rgba(245, 245, 243, .3); stroke-width: 2; }
.path-journey .j-hex { fill: rgba(125, 211, 252, .1); stroke: var(--cool); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: hex 3s ease-in-out infinite; }
.path-journey .j-hex.h2 { animation-delay: -1s; }
.path-journey .j-hex.h3 { animation-delay: -2s; }
.path-journey .j-blink { fill: var(--accent); animation: led 1s steps(2) infinite; }
.path-journey .j-trend { fill: none; stroke: var(--ok); stroke-width: 2.2; stroke-dasharray: 1; animation: trend 5s var(--ease-out) infinite; }
.path-journey .j-arm { transform-box: view-box; transform-origin: 498px 1150px; animation: j-arm 3s var(--ease-in-out) infinite alternate; }
.path-journey .j-belt { fill: none; stroke: rgba(245, 245, 243, .25); stroke-width: 5; stroke-dasharray: 6 10; animation: belt 1.2s linear infinite; }
.path-journey .j-box { fill: #d8b383; animation: j-box 6s linear infinite; }
.path-journey .j-box.b2 { animation-delay: -3s; }
.path-journey .j-crate { fill: #c9995e; stroke: #9f7446; stroke-width: 2; }
.path-journey .j-poster { fill: rgba(255, 120, 79, .08); stroke: rgba(255, 120, 79, .5); stroke-width: 2; }
.path-journey .j-crt { fill: #2c2e33; stroke: rgba(245, 245, 243, .4); stroke-width: 2; }
.path-journey .j-screen { fill: #0b120d; }
.path-journey .j-code { fill: none; stroke: var(--ok); stroke-width: 2.5; stroke-linecap: round; opacity: .85; }
.path-journey .j-cursor { fill: var(--ok); animation: led 1s steps(2) infinite; }
.path-journey .j-lamp { fill: var(--warn); opacity: .8; }
.path-journey .j-hero { transition: transform 600ms var(--ease-out); }
.path-journey .j-body { fill: #3b3e44; stroke: rgba(245, 245, 243, .5); stroke-width: 2; stroke-linejoin: round; }
.path-journey .j-head { fill: #e8c4a0; }
.path-journey .j-hair { fill: #2a2018; }
.path-journey .j-eye { fill: #16171a; }
.path-journey .j-eye-line { fill: none; stroke: #16171a; stroke-width: 1.6; stroke-linecap: round; }
.path-journey .j-shine { fill: none; stroke: rgba(255, 255, 255, .7); stroke-width: 2; stroke-linecap: round; opacity: 0; transition: opacity 400ms; }
.path-journey .j-hair { transition: opacity 400ms, transform 400ms; transform-box: fill-box; transform-origin: bottom; }
.path-journey.is-bald .j-hair { opacity: 0; transform: translateY(-6px) scale(.6); }
.path-journey.is-bald .j-shine { opacity: 1; }
.path-journey .j-laptop { fill: #9a9ea5; stroke: #5d6167; stroke-width: 1.5; }
.path-journey .j-chair { fill: none; stroke: rgba(245, 245, 243, .6); stroke-width: 4; stroke-linecap: round; }
.path-journey .j-wheel { fill: #16171a; stroke: rgba(245, 245, 243, .6); stroke-width: 2; }
.path-journey .j-flame { opacity: 0; transform-box: fill-box; transform-origin: top; transition: opacity 300ms; }
.path-journey .j-flame path { fill: var(--accent); filter: drop-shadow(0 0 8px var(--accent)); }
.path-journey .j-flame .inner { fill: var(--warn); }
.path-journey.is-flying .j-flame { opacity: 1; animation: j-flame 180ms steps(2) infinite; }
.path-journey.is-flying .j-hero > :not(.j-flame) { animation: j-bob 2.4s ease-in-out infinite; }
@keyframes cloud-drift { to { transform: translateX(26px); } }
@keyframes j-arm { to { transform: rotate(-10deg); } }
@keyframes j-box { from { transform: translateX(-200px); } to { transform: translateX(260px); } }
@keyframes j-flame { 50% { transform: scaleY(.75); } }
@keyframes j-bob { 50% { transform: translateY(-5px); } }@keyframes path-swap { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px), (max-height: 760px) {
  .path.is-scrubbed .path-detail { display: none; }
}

/* Journey avatar beard (from 2017) */
.path-journey .j-beard { fill: #3a2a1e; opacity: 0; transform-box: fill-box; transform-origin: top; transform: scaleY(.4); transition: opacity 400ms, transform 400ms var(--ease-out); }
.path-journey.is-bearded .j-beard { opacity: 1; transform: none; }

/* Open source: list with a fan-made Magic card */
.oss-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 4vw, 64px); align-items: start; }
.mtg { position: sticky; top: 96px; margin: 0; perspective: 900px; }
.mtg figcaption { margin-top: 12px; font-size: 11px; line-height: 1.4; color: var(--muted); }
.mtg-card { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; position: relative; aspect-ratio: 63 / 88; padding: 11px; border-radius: 15px; background: #0d0d0f; box-shadow: 0 0 0 1px #2a2a2e, 0 34px 60px -24px rgba(0, 0, 0, .95); transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform 300ms var(--ease-out); outline-offset: 4px; }
.mtg-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .3), transparent 42%), linear-gradient(115deg, transparent 28%, rgba(125, 211, 252, .16) 42%, rgba(200, 140, 255, .14) 50%, rgba(255, 200, 120, .14) 58%, transparent 72%); mix-blend-mode: screen; opacity: .65; }
.mtg-frame { position: relative; display: flex; flex-direction: column; gap: 5px; height: 100%; padding: 7px 8px 6px; border-radius: 9px 9px 12px 12px; color: #111; font-family: Georgia, "Times New Roman", serif;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), radial-gradient(120% 60% at 50% 0%, rgba(255, 255, 255, .35), transparent 60%), repeating-radial-gradient(circle at 30% 120%, rgba(255, 255, 255, .05) 0 7px, rgba(0, 0, 0, .03) 7px 14px), linear-gradient(165deg, #c4dcf0 0%, #8fb3d4 35%, #6189b0 70%, #46698c 100%);
  box-shadow: inset 0 0 0 1.5px #1c2e40, inset 0 0 0 3px rgba(255, 255, 255, .25), inset 0 -18px 30px rgba(0, 20, 40, .35); }
.mtg-bar, .mtg-type { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 4px 6px 4px 9px; border-radius: 10px / 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), linear-gradient(180deg, #f6f9fb 0%, #d6e2ea 45%, #b7c8d4 55%, #dfe8ee 100%); box-shadow: inset 0 0 0 1.5px #1b2a38, inset 0 1px 0 2.5px rgba(255, 255, 255, .7), 0 2px 3px rgba(0, 0, 0, .45); font-weight: 700; z-index: 1; }
.mtg-name { font-size: 13px; color: #0d0d0d; line-height: 1.1; letter-spacing: -.01em; }
.mtg-cost { display: flex; gap: 2px; }
.mtg-cost img { width: 15px; height: 15px; border-radius: 50%; box-shadow: -.5px 1.5px 0 #111; }
.mtg-artbox { position: relative; margin: 0 3px; padding: 2px; background: linear-gradient(160deg, #1a2531, #0b1118); box-shadow: 0 0 0 1px rgba(255, 255, 255, .35), inset 0 0 0 1px #000; }
.mtg-art { display: block; width: 100%; height: auto; aspect-ratio: 4 / 2.9; object-fit: cover; }
.mtg-type { font-size: 11px; color: #0d0d0d; }
.mtg-set { width: 16px; height: 16px; flex: none; filter: drop-shadow(0 .5px 0 #000); }
.mtg-set path { fill: #c9973b; stroke: #111; stroke-width: 1.2; }
.mtg-set .bolt { fill: none; stroke: #fff6d0; stroke-width: 1.4; }
.mtg-text { position: relative; flex: 1; display: flex; flex-direction: column; gap: 4px; margin: 0 3px; padding: 6px 8px; overflow: hidden; background: linear-gradient(180deg, #fbf8f0, #efe8d6); box-shadow: inset 0 0 0 1.5px #1b2a38, inset 0 0 10px rgba(120, 90, 40, .12); font-size: 10.8px; line-height: 1.24; color: #121212; }
.mtg-text p { position: relative; margin: 0; }
.mtg-watermark { position: absolute; left: 50%; top: 50%; height: 84%; max-width: 84%; transform: translate(-50%, -50%); opacity: .1; pointer-events: none; }
.mtg-tap { display: inline-block; width: 12px; height: 12px; border-radius: 50%; box-shadow: -.5px 1px 0 #111; vertical-align: -2px; }
.mtg-rule-sep { height: 1px; margin: 1px 18px 0 !important; background: linear-gradient(90deg, transparent, rgba(60, 40, 10, .45), transparent); }
.mtg-flavor { font-style: italic; font-size: 10.5px; color: #2a2a2a; }
.mtg-foot { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px; min-height: 22px; padding: 0 2px 0 4px; }
.mtg-info { display: flex; flex-direction: column; font: 600 7px/1.35 var(--mono); letter-spacing: .06em; color: #f3efe6; text-shadow: 0 1px 0 rgba(0, 0, 0, .6); }
.mtg-holo { position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%); width: 18px; height: 11px; border-radius: 50%; background: conic-gradient(from 0deg, #c0c0c0, #fff, #9fe8ff, #e5b8ff, #ffe9a8, #c0c0c0); box-shadow: 0 0 0 1px #6b6b6b, inset 0 0 2px rgba(0, 0, 0, .4); }
.mtg-pt { margin: -12px -3px -2px 0; padding: 3px 9px; border-radius: 7px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), linear-gradient(180deg, #f6f9fb, #c9d6df); box-shadow: inset 0 0 0 1.5px #1b2a38, inset 0 1px 0 2.5px rgba(255, 255, 255, .7), 0 2px 3px rgba(0, 0, 0, .5); font: 700 14px Georgia, serif; color: #111; }
@media (max-width: 900px) {
  .oss-layout { grid-template-columns: minmax(0, 1fr); }
  .mtg { position: static; max-width: 300px; margin: 8px auto 0; }
}
@media (prefers-reduced-motion: no-preference) and (max-height: 860px) {
  .js .hero-tagline { font-size: clamp(28px, 3.4vw, 50px); transform: translateY(12px); }
  .js .hero-tagline small { margin-top: 12px; }
  .js .hero-tagline > .hero-chat { margin-top: 16px; padding: 14px 18px; gap: 12px; }
  .chat-agent > [data-chat-stream] { padding: 10px 14px; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 600px) {
  .js .hero-tagline { font-size: 7.5vw; transform: translateY(30px); }
  .js .hero-tagline small { margin-top: 10px; }
  .js .hero-tagline > .hero-chat { margin-top: 14px; font-size: 12.5px; line-height: 1.45; }
  .chat-chips a { padding: 6px 10px; font-size: 11px; }
}
/* Hero fits the visible area under the sticky header */
.js .hero-pin { top: var(--nav-h, 50px); height: calc(100vh - var(--nav-h, 50px)); height: calc(100svh - var(--nav-h, 50px)); padding-top: 16px; padding-bottom: 20px; }
.hero h1 { font-size: clamp(56px, min(8.4vw, 15svh), 136px); }
@media (max-height: 760px) {
  .hero-kicker { margin-bottom: 14px; }
  .hero-lead { margin-top: 16px; }
  .hero .button { margin-top: 14px; }
  .hero-foot { margin-top: 20px; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 15.5vw; }
}
.about-layout .map-frame { aspect-ratio: 800 / 611; border-radius: 18px; border: 1px solid var(--line); }
.map-frame img { filter: none; object-fit: contain; }

/* Hero: download the CV through the agent pipeline */
.hero-scene .cv-wire { fill: none; stroke: none; }
.hero-scene .cv-monitor { fill: #1b1d22; stroke: rgba(245, 245, 243, .45); stroke-width: 2; }
.hero-scene .cv-screen { fill: #0d1117; stroke: rgba(255, 120, 79, .35); stroke-width: 1.5; }
.hero-scene .cv-code { fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; opacity: .6; }
.hero-scene .cv-done-text { font: 700 14px var(--mono); fill: var(--ok); opacity: 0; transition: opacity 300ms; }
.hero-scene.cv-done .cv-done-text { opacity: 1; }
.hero-scene .cv-chat, .hero-scene .cv-step, .hero-scene .cv-packet, .hero-scene .cv-doc { opacity: 0; transition: opacity 300ms; }
.hero-scene.cv-run .chat .bubble, .hero-scene.cv-run .chat .typing { opacity: 0 !important; animation: none; }
.hero-scene.cv-chat-on .cv-chat, .hero-scene.cv-s2 .cv-step.s2, .hero-scene.cv-s3 .cv-step.s3 { opacity: 1; }
.hero-scene .cv-bubble.user { fill: rgba(255, 120, 79, .2); stroke: var(--accent); stroke-width: 1.5; }
.hero-scene .cv-bubble.agent { fill: rgba(245, 245, 243, .08); stroke: rgba(245, 245, 243, .3); stroke-width: 1.2; }
.hero-scene .cv-bubble.tool { fill: rgba(125, 211, 252, .1); stroke: var(--cool); stroke-width: 1.2; stroke-dasharray: 4 3; }
.hero-scene .cv-t { font: 500 11px var(--mono); fill: rgba(245, 245, 243, .9); }
.hero-scene .cv-t.tool { fill: var(--cool); }
.hero-scene .cv-packet circle { fill: var(--accent); filter: drop-shadow(0 0 8px var(--accent)) drop-shadow(0 0 16px var(--accent)); }
.hero-scene .cv-doc path:first-child { fill: #f5f5f3; filter: drop-shadow(0 0 8px rgba(255, 255, 255, .6)); }
.hero-scene .cv-doc .ln-doc { fill: none; stroke: var(--accent); stroke-width: 1.6; }
.hero-scene.cv-moving .cv-packet, .hero-scene.cv-returning .cv-doc { opacity: 1; }
.hero-scene.cv-returning .cv-packet { opacity: 0; }
.hero-scene.cv-cloud .node { fill: var(--accent); }
.hero-scene.cv-rack .led { fill: var(--accent); animation-duration: .3s; }
.cv-button { position: absolute; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 0 8px; border: 0; border-radius: 6px; background: radial-gradient(80% 90% at 50% 50%, rgba(255, 120, 79, .2), rgba(255, 120, 79, .04)); color: rgba(245, 245, 243, .78); font: 600 clamp(11px, .95vw, 15px)/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-align: center; cursor: pointer; transition: background 200ms, box-shadow 200ms, color 200ms; }
.cv-button small { font: 500 clamp(9px, .7vw, 11px) var(--mono); letter-spacing: .14em; color: rgba(245, 245, 243, .4); }
.cv-button:hover:not(:disabled), .cv-button:focus-visible { color: var(--ink); background: radial-gradient(80% 90% at 50% 50%, rgba(255, 120, 79, .42), rgba(255, 120, 79, .1)); box-shadow: 0 0 24px rgba(255, 120, 79, .4); }
.cv-button:disabled { cursor: progress; }
.cv-button .cv-label::before { content: "\2193"; display: block; margin-bottom: 4px; font-size: 1.5em; line-height: 1; color: var(--accent); }
.hero-pin:has(.cv-button:not([hidden])) .hero-scene :is(.cv-code, .cv-done-text) { display: none; }
.cv-button.is-done { color: var(--ok); }
.cv-button.is-done .cv-label::before { content: "\2713"; color: var(--ok); }
.cv-link { display: none; color: var(--ink); }
@media (max-width: 760px) {
  .cv-button { display: none; }
  .cv-link { display: inline-block; }
}