@font-face {
  font-family: Source Sans;
  src: url("fonts/source-sans.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

@font-face {
  font-family: Source Serif;
  src: url("fonts/source-serif.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0b1011;
  --surface: #101718;
  --raised: #162022;
  --text: #f1f3e9;
  --muted: #a7b3ad;
  --line: #2c3735;
  --accent: #d7ff87;
  --mint: #9de4c9;
  --orange: #ffb28c;
  --violet: #c2aff6;
  --blue: #94c9ff;
  --header: rgb(11 16 17 / 88%);
  --serif: "Source Serif", Georgia, serif;
  --sans: "Source Sans", Arial, sans-serif;
  --section: clamp(24px, 6vw, 110px);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f1f2e9;
  --surface: #e8ede4;
  --raised: #e0e7db;
  --text: #182723;
  --muted: #50625b;
  --line: #b9c7b9;
  --accent: #315322;
  --mint: #166b50;
  --orange: #964c22;
  --violet: #7153a5;
  --blue: #2f6395;
  --header: rgb(241 242 233 / 91%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; scroll-padding-bottom: 100px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.55; }
body:has(dialog[open]) { overflow: hidden; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; opacity: .55; }
button, select { border-radius: 0; }
button, a, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
a, button, input, select, summary, [tabindex] { scroll-margin-block: 110px; }
button:focus-visible, input:focus-visible, select:focus-visible { outline-offset: 3px; }
::selection { background: var(--accent); color: var(--bg); }
img, canvas, svg { max-width: 100%; }
[hidden] { display: none !important; }
p, h1, h2, h3, h4 { margin-top: 0; }
p { color: var(--muted); }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.06; letter-spacing: -.045em; }
.serif { font-family: var(--serif); font-weight: 400; }
.italic { font-style: italic; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 15px 22px; background: var(--accent); color: var(--bg); }
.skip:focus { top: 15px; }
.scroll-progress { position: fixed; top: 0; left: 0; width: 0; height: 3px; background: var(--accent); z-index: 50; }
.header { height: 100px; padding: 0 var(--section); display: flex; align-items: center; justify-content: space-between; gap: 28px; background: var(--header); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.monogram { font-family: var(--serif); font-size: 48px; letter-spacing: -.12em; font-weight: 600; line-height: 1; }
.monogram span { color: var(--accent); }
.brand-name { font-size: 18px; font-weight: 600; line-height: 1.15; }
.brand-name > span { display: block; margin-top: 8px; font-size: 12px; font-weight: 400; letter-spacing: .14em; color: var(--muted); }
.header nav { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.header nav a { padding: 14px 0; position: relative; }
.header nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 8px; height: 1px; background: var(--accent); transition: right .2s; }
.header nav a:hover::after { right: 0; }
.header nav span { color: var(--muted); font-size: 12px; margin-left: 6px; vertical-align: super; }
.header-tools { display: flex; gap: 8px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
.icon-button:hover { background: var(--raised); border-color: var(--muted); }
.icon-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.hero { min-height: 770px; height: calc(100svh - 100px); max-height: 1080px; position: relative; overflow: hidden; padding: 88px var(--section) 95px; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg,var(--line) 1px,transparent 1px); background-size: 92px 92px; opacity: .14; mask-image: linear-gradient(90deg, transparent, black); pointer-events: none; }
.hero-copy { position: relative; z-index: 2; max-width: 780px; }
.eyebrow, .tiny-label { font-size: 12px; letter-spacing: .13em; font-weight: 500; color: var(--muted); }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.eyebrow-separator { padding: 0 7px; color: var(--line); }
.status-dot, .live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.status-dot { box-shadow: 0 0 15px rgb(185 255 130 / 20%); }
.hero h1 { font-size: clamp(58px, 5.3vw, 94px); white-space: nowrap; line-height: 1.03; margin-bottom: 30px; }
.hero h1 .serif { color: var(--accent); letter-spacing: -.065em; }
.hero-lead { font-size: 19px; max-width: 430px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 27px; flex-wrap: wrap; margin-top: 34px; }
.button { display: inline-flex; gap: 36px; align-items: center; justify-content: space-between; padding: 15px 21px; min-height: 54px; font-size: 15px; border: 1px solid transparent; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-3px); }
.primary { background: var(--accent); color: var(--bg); font-weight: 600; }
.outline { border-color: var(--line); }
.outline:hover { background: var(--raised); }
.text-link { display: inline-block; font-size: 15px; border-bottom: 1px solid var(--line); padding: 7px 0; }
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.hero-role { font-size: 13px; margin: 46px 0 0; line-height: 1.6; }
.observatory-wrap { position: absolute; right: 0; top: 15px; width: 56%; height: calc(100% - 80px); z-index: 1; }
#observatory { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
#observatory:active { cursor: grabbing; }
.orbit-topline { position: absolute; top: 30px; left: 18%; right: var(--section); display: flex; justify-content: space-between; gap: 10px; pointer-events: none; }
.orbit-topline .tiny-label { font-size: 12px; letter-spacing: .1em; }
.orbit-topline .live-dot { width: 5px; height: 5px; margin-right: 5px; }
.orbit-modes { position: absolute; top: 80px; right: var(--section); z-index: 3; display: flex; gap: 5px; }
.orbit-modes button { font-size: 12px; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 30px; padding: 7px 13px; min-height: 34px; }
.orbit-modes button[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.orbit-caption { position: absolute; right: 12%; bottom: 21%; display: flex; gap: 15px; font-size: 12px; letter-spacing: .13em; color: var(--muted); pointer-events: none; }
.orbit-caption b { color: var(--text); font-weight: 500; font-size: 12px; }
.crosshair { color: var(--accent); font-size: 25px; font-weight: 300; }
.orbit-bottom { position: absolute; bottom: 60px; left: 20%; right: var(--section); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.orbit-bottom > span { color: var(--muted); font-size: 12px; letter-spacing: .1em; }
.small-button { background: none; padding: 8px 2px; border: 0; border-bottom: 1px solid var(--line); min-height: 34px; font-size: 13px; }
.small-button:hover { color: var(--accent); border-color: var(--accent); }
.orbit-tags { position: absolute; bottom: 5px; right: var(--section); left: 20%; display: flex; justify-content: space-between; gap: 10px; }
.orbit-tags a { display: flex; align-items: center; gap: 8px; font-size: 12px; min-height: 38px; }
.orbit-tags a:hover { color: var(--accent); }
.orbit-tags i, .chart-key i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; }
.mint { background: var(--mint); }
.orange { background: var(--orange); }
.violet { background: var(--violet); }
.blue { background: var(--blue); }
.hero-bottom { display: flex; position: absolute; bottom: 0; left: var(--section); right: var(--section); justify-content: space-between; align-items: center; border-top: 1px solid var(--line); height: 62px; font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.hero-bottom a span { padding-left: 10px; }
.section-shell { padding: 110px var(--section); border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 55px; margin-bottom: 52px; }
.section-heading .eyebrow, .ai-heading .eyebrow { margin-bottom: 25px; }
.section-number { border: 1px solid var(--line); width: 28px; height: 28px; display: inline-grid; place-items: center; font-size: 12px; letter-spacing: 0; }
h2 { font-size: clamp(42px, 4.6vw, 70px); margin-bottom: 0; }
h2 .serif { color: var(--muted); }
.section-intro { max-width: 350px; font-size: 17px; line-height: 1.6; }
.section-intro p { margin-bottom: 24px; }
.segmented { display: inline-flex; border: 1px solid var(--line); padding: 4px; gap: 4px; }
.segmented button { border: none; background: transparent; font-size: 13px; padding: 8px 17px; }
.segmented button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.case-card { background: var(--surface); border: 1px solid var(--line); overflow: hidden; position: relative; transition: border-color .25s, transform .25s; }
.case-card:hover { border-color: var(--case-color); transform: translateY(-4px); }
.case-card > a { display: block; }
.case-graphic { height: 300px; overflow: hidden; position: relative; background: radial-gradient(ellipse at center, color-mix(in srgb,var(--case-color) 8%,transparent),transparent 70%); border-bottom: 1px solid var(--line); }
.case-graphic svg { width: 100%; height: 100%; }
.graphic-meta { position: absolute; top: 23px; left: 26px; right: 26px; display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); letter-spacing: .12em; }
.graphic-corner { position: absolute; bottom: 16px; right: 24px; font-size: 12px; color: var(--case-color); }
.case-body { padding: 27px 30px 30px; }
.case-type { color: var(--case-color); font-size: 12px; letter-spacing: .1em; margin-bottom: 13px; }
.case-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.case-title-row h3 { font-size: clamp(26px, 2.3vw, 37px); margin-bottom: 16px; }
.case-arrow { width: 39px; height: 39px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; transition: background .2s; }
.case-card:hover .case-arrow { background: var(--case-color); color: var(--bg); border-color: transparent; }
.case-body p { margin-bottom: 25px; font-size: 16px; }
.case-status { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.case-status i { width: 5px; height: 5px; border-radius: 50%; background: var(--case-color); margin-top: 7px; flex-shrink: 0; }
.case-technical { padding: 18px 0 0; margin: 0; font-size: 14px; border-top: 1px solid var(--line); }
.case-card svg .flow { stroke-dasharray: 5 9; animation: dash 6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -140; } }
.laboratory { background: var(--surface); }
.lab-shell { border: 1px solid var(--line); background: var(--bg); }
.lab-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-right: 25px; border-bottom: 1px solid var(--line); }
.lab-tabs { display: flex; }
.lab-tabs button { display: flex; align-items: center; gap: 12px; border: none; border-right: 1px solid var(--line); border-bottom: 2px solid transparent; background: none; color: var(--muted); padding: 23px 24px; font-size: 15px; }
.lab-tabs button span { font-size: 12px; }
.lab-tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); background: var(--surface); }
.lab-badge { font-size: 12px; letter-spacing: .09em; color: var(--muted); }
.demo-notice { display: flex; gap: 10px; align-items: center; font-size: 13px; padding: 14px 26px; border-bottom: 1px solid var(--line); margin: 0; }
.demo-notice span { color: var(--accent); }
.lab-panel { display: grid; grid-template-columns: 32% 68%; }
.lab-controls { padding: 34px 32px; border-right: 1px solid var(--line); }
.lab-controls h3 { font-size: 32px; margin: 22px 0 18px; }
.lab-controls > p:not(.tiny-label) { font-size: 15px; line-height: 1.6; }
.lab-controls label { display: block; font-size: 13px; margin-top: 24px; margin-bottom: 9px; color: var(--text); }
.lab-controls output { float: right; color: var(--accent); font-size: 12px; padding-top: 2px; }
input[type="range"] { width: 100%; accent-color: var(--accent); cursor: pointer; min-height: 28px; }
select { width: 100%; background: var(--raised); border: 1px solid var(--line); color: var(--text); padding: 12px; font-size: 14px; }
.lab-note { font-size: 12px !important; color: var(--muted); margin: 20px 0; display: flex; align-items: flex-start; gap: 8px; }
.lab-note .status-dot { margin-top: 6px; width: 5px; height: 5px; }
.lab-visual { padding: 36px; min-width: 0; }
.metric-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 122px; }
.metric-row strong { display: block; font-size: 62px; font-weight: 400; letter-spacing: -.06em; line-height: 1.25; font-variant-numeric: tabular-nums; color: var(--accent); }
.unit { font-size: 13px; color: var(--muted); }
.chart-key { font-size: 12px; color: var(--muted); white-space: nowrap; }
.chart-key i { background: var(--mint); margin-right: 7px; }
.orange-key i { background: var(--orange); }
.chart { display: block; width: 100%; margin-top: 23px; overflow: visible; }
.chart-footer { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; letter-spacing: .08em; margin-top: 12px; }
.legend-line { width: 14px; height: 2px; display: inline-block; vertical-align: middle; margin-right: 5px; }
.comparison-state { border: 1px solid var(--line); padding: 8px 11px; color: var(--mint); font-size: 12px; }
.data-table { border-top: 1px solid var(--line); margin-top: 25px; font-size: 13px; }
.data-table summary { cursor: pointer; padding: 16px 0 0; min-height: 44px; color: var(--muted); }
.data-table p { margin: 15px 0; }
table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 13px; }
th, td { text-align: right; padding: 8px; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; }
caption { text-align: left; color: var(--muted); padding-bottom: 12px; }
.lab-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding: 13px 26px; }
.lab-bottom > span { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .1em; color: var(--muted); }
.lab-bottom .live-dot { width: 5px; height: 5px; }
.ai-section { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 70px; overflow: hidden; position: relative; }
.ai-heading { max-width: 520px; }
.ai-heading h2 { margin-bottom: 30px; }
.ai-heading > p:not(.eyebrow) { max-width: 380px; font-size: 18px; line-height: 1.7; }
.ai-heading .button { margin-top: 25px; }
.ai-visual { position: relative; }
.ai-orbit { width: 100%; aspect-ratio: 1.3; position: relative; display: grid; place-items: center; }
.ai-ring { position: absolute; border: 1px solid var(--line); width: 68%; aspect-ratio: 1; border-radius: 50%; }
.ring-one { transform: rotateX(56deg) rotateZ(-25deg); border-color: var(--violet); opacity: .5; }
.ring-two { transform: rotateY(56deg) rotateZ(25deg); border-color: var(--mint); opacity: .5; }
.ring-three { width: 78%; border-style: dashed; animation: orbit 65s linear infinite; opacity: .55; }
@keyframes orbit { to { transform: rotate(360deg); } }
.ai-center { width: 126px; height: 126px; background: var(--surface); border: 1px solid var(--accent); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--serif); font-size: 52px; line-height: 1.1; box-shadow: 0 0 90px color-mix(in srgb,var(--accent) 8%,transparent); }
.ai-center span { font-family: var(--sans); font-size: 12px; text-align: center; max-width: 100px; letter-spacing: .06em; color: var(--muted); padding-top: 10px; }
.ai-node { position: absolute; padding: 6px 13px; font-size: 12px; background: var(--bg); border: 1px solid var(--line); }
.node-one { top: 12%; left: 28%; color: var(--mint); }
.node-two { top: 43%; right: 1%; color: var(--violet); }
.node-three { bottom: 8%; left: 42%; color: var(--blue); }
.node-four { top: 57%; left: 0; color: var(--orange); }
.ai-principles { border-top: 1px solid var(--line); }
.ai-principles > div { display: flex; gap: 20px; border-bottom: 1px solid var(--line); padding: 14px 0; }
.ai-principles span { font-size: 12px; color: var(--accent); padding-top: 3px; }
.ai-principles p { font-size: 14px; margin: 0; }
.usage-section { padding-top: 65px; padding-bottom: 65px; }
.usage-panel { border: 1px solid var(--line); padding: 32px; background: var(--surface); }
.usage-heading { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.usage-heading h2 { font-size: 30px; margin: 12px 0; }
.usage-heading p { font-size: 13px; margin: 0; }
.usage-body { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; margin-top: 35px; }
.usage-total strong { display: block; font-size: 88px; letter-spacing: -.06em; font-weight: 300; line-height: 1; color: var(--violet); }
.usage-total > span { display: block; color: var(--muted); font-size: 14px; margin-top: 10px; }
.usage-total > p { font-size: 13px; max-width: 300px; margin: 20px 0 0; }
.usage-bar-row { display: grid; grid-template-columns: 85px 1fr 75px; align-items: center; gap: 15px; margin-bottom: 20px; font-size: 13px; }
.usage-bar-row > span:first-child { color: var(--muted); }
.usage-bar-row > span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.usage-bar-track { height: 30px; background: var(--bg); }
.usage-bar { height: 100%; min-width: 2px; background: linear-gradient(90deg,color-mix(in srgb,var(--violet) 35%,var(--surface)),var(--violet)); transition: width .6s; }
.usage-bar-row:nth-child(2) .usage-bar { opacity: .8; }
.usage-bar-row:nth-child(4) .usage-bar { opacity: .7; }
.usage-table-wrap { overflow-x: auto; }
.usage-panel table { min-width: 500px; }
.method-track { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); }
.method-track article { padding: 25px; position: relative; border-right: 1px solid var(--line); }
.method-track article:last-child { border-right: 0; }
.method-index { color: var(--muted); font-size: 12px; }
.method-mark { font-size: 50px; color: var(--accent); margin: 28px 0; font-weight: 300; }
.method-track h3 { font-size: 25px; }
.method-track p { font-size: 15px; margin-bottom: 8px; }
.editorial-note { font-size: 12px; margin: 18px 0 0; }
.contact-section { background: var(--surface); padding-bottom: 120px; }
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 70px; margin-top: 40px; }
.contact-grid h2 { margin-bottom: 35px; }
.contact-mail { display: block; font-size: clamp(18px, 2.1vw, 31px); color: var(--accent); letter-spacing: -.02em; overflow-wrap: anywhere; }
.contact-mail span { padding-left: 10px; }
#copy-email { color: var(--muted); margin-top: 13px; }
#contact-status { font-size: 13px; margin-top: 15px; }
.education > div { border-top: 1px solid var(--line); padding: 20px 0 14px; }
.education > div > span { font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.education p { color: var(--text); margin: 18px 0 12px; font-size: 17px; }
.education b { display: block; color: var(--muted); font-size: 14px; font-weight: 400; }
.education .text-link { margin-top: 10px; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: 35px var(--section) 105px; }
.footer > p { font-size: 14px; color: var(--text); margin-bottom: 0; }
.footer > p span { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; }
.footer > div { display: flex; gap: 20px; font-size: 12px; }
.footer-signoff { font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.experience-tools { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 15; display: flex; padding: 5px 7px; border: 1px solid var(--line); border-radius: 50px; background: var(--header); backdrop-filter: blur(20px); box-shadow: 0 8px 40px rgb(0 0 0 / 20%); }
.experience-tools button { display: flex; align-items: center; justify-content: center; gap: 7px; background: none; border: 0; border-right: 1px solid var(--line); padding: 7px 16px; font-size: 12px; min-height: 34px; }
.experience-tools button:last-child { border-right: 0; }
.experience-tools button:hover, .experience-tools button[aria-pressed="true"] { color: var(--accent); }
.experience-tools button > span:first-child { font-size: 18px; }
dialog { background: var(--bg); color: var(--text); padding: 0; border: 1px solid var(--line); width: min(940px, calc(100% - 36px)); max-height: 88svh; box-shadow: 0 30px 120px rgb(0 0 0 / 50%); }
dialog::backdrop { background: rgb(0 0 0 / 70%); backdrop-filter: blur(10px); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; position: sticky; top: 0; background: var(--header); backdrop-filter: blur(20px); padding: 15px 28px; border-bottom: 1px solid var(--line); z-index: 2; }
.dialog-top > div { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.dialog-top > .tiny-label { min-width: 0; overflow-wrap: anywhere; }
.dialog-top .close-dialog { flex-shrink: 0; }
.close-dialog { font-size: 26px; font-weight: 300; }
#case-content { padding: 40px; }
.case-detail-title { font-size: clamp(36px, 5vw, 65px); max-width: 700px; margin: 16px 0 24px; }
.case-detail-lead { font-size: 21px; color: var(--text); max-width: 700px; }
.case-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 35px 0; }
.case-detail-grid article { border-top: 1px solid var(--line); padding-top: 20px; }
.case-detail-grid h3 { font-size: 24px; }
.case-detail-grid p { font-size: 16px; }
.detail-limits { padding: 22px; background: var(--surface); border-left: 2px solid var(--case-color); margin: 30px 0; }
.detail-limits p { margin: 10px 0 0; font-size: 14px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 30px; }
#search-dialog { max-width: 660px; }
#search-title { font-size: 26px; }
#search-input { display: block; width: calc(100% - 56px); margin: 25px 28px; background: var(--surface); color: var(--text); border: 1px solid var(--line); padding: 16px; font-size: 16px; }
#search-results, #saved-views { margin: 0 28px; }
.search-result { display: flex; justify-content: space-between; align-items: center; gap: 15px; min-height: 56px; padding: 13px 10px; border-bottom: 1px solid var(--line); }
.search-result:hover { color: var(--accent); background: var(--surface); }
.search-result small { font-size: 12px; color: var(--muted); }
.search-hint { font-size: 12px; margin: 25px 28px; }
.saved-heading { color: var(--muted); font-size: 12px; letter-spacing: .08em; margin-top: 25px; }
.saved-row { display: flex; gap: 20px; align-items: center; }
.saved-row .search-result { flex: 1; }
.toast { position: fixed; bottom: 92px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 12px 20px; z-index: 60; max-width: min(90%,500px); font-size: 14px; }
.url-error { position: fixed; bottom: 100px; left: 20px; background: var(--raised); border: 1px solid var(--orange); color: var(--text); max-width: 400px; padding: 20px; z-index: 65; font-size: 14px; }
html[data-paused="true"] *, html[data-paused="true"] *::before, html[data-paused="true"] *::after { animation-play-state: paused !important; scroll-behavior: auto; }

@media (min-width: 1650px) {
  .hero { grid-template-columns: 1fr 1fr; }
  .observatory-wrap { width: 59%; }
}

@media (max-width: 1100px) {
  :root { --section: 40px; }
  .header nav { gap: 20px; }
  .hero { min-height: 740px; padding-top: 65px; }
  .hero h1 { font-size: 65px; }
  .hero-lead { max-width: 360px; }
  .observatory-wrap { width: 55%; opacity: .85; }
  .orbit-caption { display: none; }
  .orbit-topline { left: 20%; }
  .orbit-topline > span:last-child { display: none; }
  .hero-actions { gap: 15px; }
  .hero-actions .text-link { font-size: 13px; }
  .section-shell { padding-top: 80px; padding-bottom: 80px; }
  .section-heading { gap: 40px; }
  .section-intro { max-width: 290px; font-size: 16px; }
  .lab-panel { grid-template-columns: 36% 64%; }
  .lab-controls, .lab-visual { padding: 25px; }
  .lab-tabs button { padding: 20px; }
  .metric-row strong { font-size: 52px; }
  .chart-key { display: none; }
  .ai-section { gap: 40px; }
  .footer-signoff { display: none; }
}

@media (max-width: 760px) {
  :root { --section: 24px; }
  html { scroll-padding-top: 84px; }
  .header { height: 80px; gap: 15px; }
  .brand { gap: 12px; }
  .monogram { font-size: 41px; }
  .brand-name { font-size: 15px; }
  .brand-name > span { font-size: 12px; letter-spacing: .04em; margin-top: 5px; }
  .header nav { margin-left: auto; gap: 14px; }
  .header nav a { font-size: 13px; }
  .header nav a:nth-child(2), .header nav a:nth-child(3), .header nav span { display: none; }
  .header-tools { gap: 4px; }
  .icon-button { width: 38px; height: 38px; }
  .hero { height: auto; min-height: 0; padding-top: 50px; padding-bottom: 64px; display: flex; flex-direction: column; align-items: stretch; }
  .hero-copy { z-index: 2; }
  .hero .eyebrow { font-size: 12px; gap: 7px; letter-spacing: .06em; margin-bottom: 25px; }
  .eyebrow-separator { padding: 0 2px; }
  .hero h1 { font-size: clamp(42px, 9vw, 67px); line-height: 1.05; margin-bottom: 24px; }
  .hero-lead { font-size: 17px; max-width: 470px; }
  .hero-actions { margin-top: 25px; }
  .hero-role { font-size: 12px; margin-top: 26px; }
  .observatory-wrap { position: relative; width: calc(100% + 48px); margin: 10px -24px 0; right: auto; top: auto; height: 435px; opacity: 1; }
  .orbit-topline { top: 14px; left: 24px; right: 24px; }
  .orbit-topline > span:last-child { display: block; }
  .orbit-modes { top: 46px; right: 24px; }
  .orbit-modes button { padding: 5px 12px; font-size: 12px; min-height: 30px; }
  .orbit-bottom { left: 24px; right: 24px; bottom: 46px; }
  .orbit-tags { left: 24px; right: 24px; bottom: 0; }
  .hero-bottom { height: 58px; font-size: 12px; }
  .hero-bottom > span:first-child { display: none; }
  .section-shell { padding-top: 60px; padding-bottom: 60px; }
  .section-heading { display: block; margin-bottom: 32px; }
  .section-heading h2 { font-size: 44px; }
  .section-intro { max-width: 100%; margin-top: 24px; font-size: 16px; }
  .eyebrow { font-size: 12px; letter-spacing: .08em; }
  .case-grid { gap: 20px; grid-template-columns: 1fr; }
  .case-graphic { height: 240px; }
  .case-body { padding: 23px; }
  .case-title-row h3 { font-size: 30px; }
  .lab-toolbar { padding: 0; }
  .lab-tabs { width: 100%; }
  .lab-tabs button { justify-content: center; flex: 1; padding: 15px 5px; font-size: 13px; gap: 5px; }
  .lab-tabs button span, .lab-badge { display: none; }
  .demo-notice { padding: 14px 18px; font-size: 12px; align-items: flex-start; }
  .lab-panel { grid-template-columns: 1fr; }
  .lab-controls { border-right: 0; border-bottom: 1px solid var(--line); padding: 23px; }
  .lab-controls h3 { margin: 13px 0; font-size: 30px; }
  .lab-controls h3 br { display: none; }
  .lab-controls .tiny-label { margin-bottom: 0; }
  .lab-controls label { margin-top: 20px; }
  .lab-visual { padding: 23px 18px; }
  .metric-row { min-height: 100px; }
  .metric-row strong { font-size: 56px; }
  .comparison-state { max-width: 105px; }
  .chart { margin-top: 15px; }
  .lab-bottom { padding: 12px 18px; flex-wrap: wrap; }
  .lab-bottom > span { font-size: 12px; letter-spacing: .02em; }
  .ai-section { grid-template-columns: 1fr; gap: 10px; }
  .ai-heading { max-width: 100%; }
  .ai-heading h2 { font-size: 47px; }
  .ai-heading > p:not(.eyebrow) { font-size: 17px; }
  .ai-orbit { max-width: 440px; margin: 25px auto 15px; aspect-ratio: 1.2; }
  .ai-center { width: 115px; height: 115px; font-size: 45px; }
  .ai-node { padding: 4px 10px; }
  .usage-panel { padding: 23px; }
  .usage-heading { display: block; }
  .usage-heading h2 { font-size: 27px; }
  .usage-heading .segmented { margin-top: 20px; }
  .usage-body { grid-template-columns: 1fr; gap: 30px; margin-top: 25px; }
  .usage-total strong { font-size: 78px; }
  .usage-bar-row { grid-template-columns: 65px 1fr 65px; gap: 8px; font-size: 12px; }
  .usage-bar-track { height: 24px; }
  .method-track { grid-template-columns: 1fr 1fr; }
  .method-track article { padding: 20px; }
  .method-track article:nth-child(2) { border-right: 0; }
  .method-track article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .method-mark { margin: 20px 0; font-size: 42px; }
  .method-track h3 { font-size: 25px; }
  .method-track p { font-size: 14px; }
  .contact-grid { grid-template-columns: 1fr; gap: 35px; margin-top: 25px; }
  .contact-grid h2 { font-size: 44px; }
  .contact-mail { font-size: 21px; }
  .footer { flex-wrap: wrap; gap: 20px; padding-top: 25px; }
  .footer > div { width: 100%; justify-content: space-between; gap: 12px; }
  .experience-tools { bottom: 14px; white-space: nowrap; max-width: calc(100% - 20px); }
  .experience-tools button { padding: 6px 13px; gap: 6px; }
  dialog { width: calc(100% - 24px); max-height: 91svh; }
  .dialog-top { padding: 12px 16px; gap: 12px; }
  .dialog-top > div { gap: 12px; }
  #case-content { padding: 25px; }
  .case-detail-title { font-size: clamp(29px, 8.2vw, 41px); overflow-wrap: anywhere; }
  .case-detail-lead { font-size: 19px; }
  .case-detail-grid { grid-template-columns: 1fr; gap: 15px; }
  #search-input { width: calc(100% - 40px); margin: 20px; font-size: 15px; }
  #search-results, #saved-views { margin: 0 20px; }
}

@media (max-width: 370px) {
  :root { --section: 20px; }
  .header { padding: 0 16px; gap: 8px; }
  .brand-name > span { font-size: 12px; }
  .header nav { display: none; }
  .header-tools { margin-left: auto; }
  .hero h1 { font-size: 40px; }
  .hero .eyebrow { font-size: 12px; letter-spacing: 0; }
  .hero-actions { gap: 15px; }
  .hero-actions .button { width: 100%; }
  .observatory-wrap { height: 370px; width: calc(100% + 40px); margin-left: -20px; margin-right: -20px; }
  .orbit-topline > span:last-child { display: none; }
  .orbit-bottom { left: 20px; right: 20px; }
  .orbit-tags { left: 20px; right: 20px; gap: 7px; }
  .orbit-tags a { gap: 5px; }
  .section-heading h2, .contact-grid h2 { font-size: 38px; }
  .case-title-row h3 { font-size: 27px; }
  .method-track article { padding: 15px; }
  .method-track h3 { font-size: 23px; }
  .experience-tools button { padding: 6px 10px; }
  .tool-label { font-size: 12px; }
  .ai-heading h2 { font-size: 40px; }
  .lab-controls, .lab-visual { padding: 18px; }
  .lab-controls output { float: none; display: block; }
  .metric-row strong { font-size: 49px; }
  .metric-row .tiny-label { letter-spacing: .04em; }
  .contact-mail { font-size: 18px; }
}

@media (min-width: 371px) and (max-width: 600px) {
  .header nav { display: none; }
  .header-tools { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  :root { --bg: white; --surface: #f4f4f4; --raised: #eee; --text: #111; --muted: #444; --line: #bbb; --accent: #234521; }
  .header, .hero-grid, .observatory-wrap, .hero-bottom, .experience-tools, .scroll-progress, .lab-shell, .case-graphic, .ai-visual, .segmented, .hero-actions, .footer-signoff { display: none; }
  .hero { display: block; height: auto; min-height: 0; padding: 35px; }
  .hero h1 { font-size: 50px; }
  .section-shell { padding: 35px; }
  .section-heading { margin-bottom: 25px; }
  h2 { font-size: 34px; }
  .case-card { break-inside: avoid; }
  .case-body { padding: 18px; }
  .case-title-row h3 { font-size: 25px; }
  .ai-section { display: block; }
  .ai-heading { max-width: none; }
  .method-track article { padding: 15px; }
  .method-mark { display: none; }
  .footer { padding: 20px 35px; }
  .contact-section { break-inside: avoid; }
  a[href^="mailto:"]::after { content: none; }
}
