:root {
  color-scheme: light;
  --paper: oklch(95.5% 0.012 90);
  --paper-bright: oklch(98.4% 0.008 90);
  --ink: oklch(17% 0.035 270);
  --hero-ink: #040414;
  --ink-2: oklch(24% 0.045 270);
  --muted: oklch(43% 0.028 270);
  --line: oklch(76% 0.028 270);
  --line-light: oklch(48% 0.045 270);
  --blue: oklch(51% 0.255 264);
  --blue-dark: oklch(37% 0.21 266);
  --violet: oklch(50% 0.245 300);
  --signal: oklch(82% 0.18 104);
  --serif: "Iowan Old Style", Baskerville, "Palatino Linotype", Georgia, serif;
  --sans: "Avenir Next", "Helvetica Neue", "Segoe UI Variable", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  --page-max: 1280px;
  --gutter: clamp(1rem, 3vw, 2.5rem);
  --page: min(calc(100% - (2 * var(--gutter))), var(--page-max));
  --header: 74px;
  --focus: var(--blue-dark);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.55; }
body::before { content: ""; position: fixed; inset: 0; z-index: -2; background: repeating-linear-gradient(90deg, transparent 0 calc(8.333vw - 1px), color-mix(in oklch, var(--ink) 7%, transparent) calc(8.333vw - 1px) 8.333vw); pointer-events: none; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.045em; }
h2 { margin-bottom: 1.25rem; font-size: clamp(2.8rem, 5vw, 5.6rem); line-height: .9; }
h3 { margin-bottom: .5rem; font-size: clamp(1.5rem, 2.2vw, 2.25rem); line-height: 1.04; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; margin: -1px; padding: 0; border: 0; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.workbench, .install, .site-footer { --focus: var(--signal); }
section { scroll-margin-top: calc(var(--header) + 18px); }
.skip-link { position: fixed; top: max(.75rem, env(safe-area-inset-top)); left: max(1rem, env(safe-area-inset-left)); z-index: 100; padding: .65rem .9rem; background: var(--ink); color: var(--paper); transform: translateY(-180%); transition: transform 180ms var(--ease); }
.skip-link:focus { transform: none; }
.overline { display: flex; gap: .7rem; align-items: center; margin-bottom: 1.15rem; color: var(--blue-dark); font-size: .7rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.overline span { font-family: var(--mono); font-size: .62rem; }
.overline span::after { content: "/"; margin-left: .7rem; opacity: .55; }
.overline.light { color: var(--signal); }
.button { display: inline-flex; min-height: 3.25rem; align-items: center; justify-content: space-between; gap: 2rem; padding: 0 1.2rem; border: 1px solid currentColor; text-decoration: none; font-size: .88rem; font-weight: 750; transition: color 200ms, background 200ms, border-color 200ms, transform 200ms var(--ease); }
.button:hover { transform: translateY(-3px); }
.button:active { transform: translateY(0) scale(.98); }
.button-primary { border-color: var(--blue); background: var(--blue); color: var(--paper-bright); }
.button-primary:hover { border-color: var(--ink); background: var(--ink); }
.button-ink { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.button-small { min-height: 2.75rem; padding-inline: 1rem; gap: .85rem; }
.button-paper { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.button-paper:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.text-link, .trace-link { display: inline-flex; min-width: 2.75rem; min-height: 2.75rem; align-items: center; justify-content: center; text-underline-offset: 5px; text-decoration-thickness: 1px; font-size: .88rem; font-weight: 650; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; width: 100%; min-height: var(--header); align-items: center; padding: max(.65rem, env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) .65rem max(var(--gutter), env(safe-area-inset-left)); border-bottom: 1px solid var(--line); background: color-mix(in oklch, var(--paper) 91%, transparent); backdrop-filter: blur(14px); transition: background 200ms, border-color 200ms, box-shadow 200ms; }
.site-header.is-scrolled { border-color: color-mix(in oklch, var(--ink) 24%, var(--paper)); background: color-mix(in oklch, var(--paper) 98%, transparent); box-shadow: 0 8px 30px color-mix(in oklch, var(--ink) 8%, transparent); }
.brand { display: inline-flex; min-height: 2.75rem; align-items: center; gap: .65rem; text-decoration: none; font-weight: 750; letter-spacing: -.03em; }
.brand img { border-radius: 7px; }
.nav-shell { display: flex; flex: 1; align-items: center; }
.site-nav { display: flex; gap: clamp(1.1rem, 2.6vw, 2.6rem); margin: 0 auto; }
.site-nav a { position: relative; display: inline-flex; min-height: 2.75rem; align-items: center; color: var(--muted); text-decoration: none; font-size: .84rem; font-weight: 650; }
.site-nav a::after { content: ""; position: absolute; right: 0; bottom: .35rem; left: 0; height: 1px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease); }
.site-nav a:hover, .site-nav a.is-active { color: var(--ink); }
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 1.4rem; }
.menu-toggle { display: none; min-width: 4.25rem; min-height: 2.75rem; align-items: center; justify-content: end; margin-left: auto; border: 0; background: transparent; font-size: .78rem; font-weight: 750; }
.menu-toggle i { width: 1.1rem; height: .6rem; margin-left: .5rem; border-block: 1px solid; transition: transform 220ms var(--ease); }
.site-header.menu-open .menu-toggle i { transform: rotate(90deg); }

.hero { min-height: 100vh; min-height: 100svh; overflow: hidden; background: var(--hero-ink); }
.hero-canvas { display: grid; min-height: 100vh; min-height: 100svh; grid-template-columns: minmax(0, 57fr) minmax(0, 43fr); }
.hero-copy { position: relative; z-index: 2; display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: calc(var(--header) + clamp(2rem, 5vh, 4.5rem)) clamp(7rem, 10vw, 12rem) clamp(3rem, 7vh, 6rem) max(var(--gutter), calc((100vw - var(--page-max)) / 2)); background: var(--paper); clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); }
.hero-eyebrow { display: flex; max-width: 42rem; justify-content: space-between; gap: 1rem; margin: 0 0 clamp(2.25rem, 4vh, 3rem); color: var(--blue-dark); font-family: var(--mono); font-size: clamp(.58rem, .68vw, .7rem); font-weight: 750; letter-spacing: .11em; text-transform: uppercase; animation: hero-enter 700ms 80ms var(--ease) both; }
.hero h1 { max-width: 7ch; margin: 0; font-size: clamp(4.75rem, 7.6vw, 8rem); line-height: .78; letter-spacing: -.065em; animation: hero-enter 850ms 150ms var(--ease) both; }
.hero h1 em { display: block; color: var(--blue); font-weight: 600; }
.hero-lede { max-width: 38ch; margin: clamp(2.25rem, 4vh, 3rem) 0 0; color: var(--muted); font-size: clamp(.94rem, 1.15vw, 1.15rem); line-height: 1.48; animation: hero-enter 750ms 250ms var(--ease) both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem 1.4rem; align-items: center; margin-top: clamp(2rem, 3.5vh, 2.5rem); animation: hero-enter 750ms 330ms var(--ease) both; }
.hero-actions .trace-link { gap: .75rem; color: var(--ink); }
.hero-proof { display: grid; max-width: 34rem; grid-template-columns: repeat(3, auto); gap: .75rem 1.15rem; justify-content: start; margin: clamp(2rem, 3.5vh, 2.5rem) 0 0; padding: 0; color: var(--muted); font-size: .58rem; font-weight: 750; letter-spacing: .09em; list-style: none; text-align: left; text-transform: uppercase; animation: hero-enter 750ms 410ms var(--ease) both; }
.hero-proof li { padding-top: .6rem; border-top: 1px solid var(--line); white-space: nowrap; }
.hero-mark { --j-x: 0px; --j-y: 0px; --j-rx: 0deg; --j-ry: 0deg; --trace-x: 0px; --trace-y: 0px; position: relative; min-width: 0; overflow: hidden; background: var(--hero-ink); perspective: 900px; }
.hero-j-entry { position: absolute; inset: 0; z-index: 2; animation: j-compile-in 760ms 120ms var(--ease) both; }
.hero-j-stage { position: absolute; inset: 0; transform: translate3d(var(--j-x), var(--j-y), 0) rotateX(var(--j-rx)) rotateY(var(--j-ry)); transform-style: preserve-3d; transition: transform 260ms var(--ease); will-change: transform; }
.hero-j-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; pointer-events: none; scale: .84; translate: 0 2.4rem; user-select: none; }
.hero-j-base { z-index: 1; animation: j-idle 6.8s 1.1s ease-in-out infinite; }
.hero-j-echo { z-index: 2; opacity: 0; mix-blend-mode: screen; }
.hero-j-echo-a { clip-path: inset(13% 0 62% 0); animation: j-phase-a 5.4s 1.1s var(--ease) infinite; }
.hero-j-echo-b { clip-path: inset(52% 0 17% 0); animation: j-phase-b 5.4s 1.28s var(--ease) infinite; }
.hero-j-echo-c { clip-path: inset(7% 10% 18% 47%); animation: j-phase-c 5.4s 1.42s var(--ease) infinite; }
.hero-circuits { position: absolute; inset: 0; z-index: 3; transform: translate3d(var(--trace-x), var(--trace-y), 0); transition: transform 260ms var(--ease); will-change: transform; }
.hero-circuit { position: absolute; height: auto; pointer-events: none; user-select: none; }
.hero-circuit-left { top: 49%; left: 11%; width: 42%; animation: circuit-left-flow 5.4s 1.05s var(--ease) infinite; }
.hero-circuit-right { top: 20%; right: 0; width: 29%; animation: circuit-right-flow 5.4s 1.24s var(--ease) infinite; }
.hero-circuit-tail { top: 66%; left: 8.5%; width: 10.5%; animation: circuit-tail-flow 5.4s 1.42s var(--ease) infinite; }
.hero-mark-label { position: absolute; right: clamp(.6rem, 1.2vw, 1.3rem); bottom: clamp(2rem, 5vh, 4.5rem); z-index: 4; margin: 0; color: var(--signal); font-family: var(--mono); font-size: .64rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; writing-mode: vertical-rl; animation: hero-enter 700ms 720ms var(--ease) both; }
.hero-mark-label span { margin-block: .65rem; }
@keyframes hero-enter { from { opacity: 0; transform: translateY(1.4rem); } to { opacity: 1; transform: none; } }
@keyframes j-compile-in { from { opacity: 0; transform: translate3d(1.75rem, 1rem, 0) scale(.955); } to { opacity: 1; transform: none; } }
@keyframes j-idle { 0%, 100% { filter: brightness(.96) saturate(.94); transform: translate3d(0, 0, 0); } 48% { filter: brightness(1.08) saturate(1.08); transform: translate3d(0, -.22rem, 0); } }
@keyframes j-phase-a { 0%, 5% { opacity: 0; transform: translate3d(-1.4rem, 0, 0); } 9% { opacity: .58; } 14% { opacity: 0; transform: translate3d(.7rem, 0, 0); } 18%, 100% { opacity: 0; transform: none; } }
@keyframes j-phase-b { 0%, 8% { opacity: 0; transform: translate3d(1.2rem, 0, 0); } 12% { opacity: .46; } 17% { opacity: 0; transform: translate3d(-.55rem, 0, 0); } 21%, 100% { opacity: 0; transform: none; } }
@keyframes j-phase-c { 0%, 11% { opacity: 0; transform: translate3d(0, -1rem, 0); } 15% { opacity: .34; } 20% { opacity: 0; transform: translate3d(0, 1rem, 0); } 24%, 100% { opacity: 0; transform: none; } }
@keyframes circuit-left-flow { 0%, 4% { clip-path: inset(0 100% 0 0); filter: brightness(.75); opacity: .18; transform: translate3d(-.7rem, 0, 0); } 14% { clip-path: inset(0); filter: brightness(1.5); opacity: 1; transform: none; } 25%, 100% { clip-path: inset(0); filter: brightness(.92); opacity: .76; transform: none; } }
@keyframes circuit-right-flow { 0%, 8% { clip-path: inset(0 0 100% 0); filter: brightness(.76); opacity: .16; transform: translate3d(0, -.7rem, 0); } 20% { clip-path: inset(0); filter: brightness(1.45); opacity: 1; transform: none; } 30%, 100% { clip-path: inset(0); filter: brightness(.95); opacity: .78; transform: none; } }
@keyframes circuit-tail-flow { 0%, 12% { clip-path: inset(0 100% 0 0); filter: brightness(.78); opacity: .15; transform: translate3d(-.45rem, 0, 0); } 22% { clip-path: inset(0); filter: brightness(1.55); opacity: 1; transform: none; } 32%, 100% { clip-path: inset(0); filter: brightness(.94); opacity: .74; transform: none; } }

.workbench-section { width: var(--page); margin: 0 auto; padding: clamp(4.5rem, 7vw, 6.5rem) 0; container-type: inline-size; }
.workbench-intro { display: grid; grid-template-columns: 3fr 6fr 3fr; gap: clamp(1.5rem, 3vw, 3.5rem); align-items: end; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.workbench-intro .overline { align-self: start; }
.workbench-intro h2 { max-width: 9ch; margin: 0; }
.workbench-intro > p:last-child { max-width: 42ch; margin: 0; color: var(--muted); }
.workbench { border-top: 3px solid var(--blue); background: var(--ink); color: var(--paper); }
.workbench-header { display: flex; justify-content: space-between; gap: 1.5rem; align-items: end; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line-light); }
.workbench-label { margin: 0 0 .25rem; color: var(--signal); font-size: .68rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.workbench-status { margin: 0; font-size: .75rem; }
.workbench-status span { display: inline-block; width: 7px; height: 7px; margin-right: .5rem; border-radius: 50%; background: var(--signal); }
.demo-tabs { display: flex; max-width: 100%; gap: .25rem; justify-content: end; visibility: hidden; }
.workbench.is-ready .demo-tabs { visibility: visible; }
.demo-tabs button { min-width: 3.2rem; min-height: 2.75rem; padding: 0 .65rem; border: 0; border-bottom: 1px solid var(--line-light); background: transparent; color: var(--paper); cursor: pointer; font-size: .68rem; transition: color 180ms, border-color 180ms, transform 180ms var(--ease); }
.demo-tabs button:hover { color: var(--signal); transform: translateY(-2px); }
.demo-tabs button[aria-selected="true"] { border-color: var(--signal); background: var(--signal); color: var(--ink); }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 4.5rem minmax(0, 1fr); min-height: 20rem; }
.editor-pane { min-width: 0; overflow-x: auto; }
.editor-pane header { position: sticky; left: 0; display: flex; min-width: max-content; justify-content: space-between; gap: 2rem; padding: .8rem 1.1rem; border-bottom: 1px solid var(--line-light); color: color-mix(in oklch, var(--paper) 70%, var(--ink)); font-family: var(--mono); font-size: .68rem; }
.editor-pane header b { color: var(--signal); font-family: var(--sans); font-weight: 650; }
.code-list { min-width: 34rem; margin: 0; padding: 1rem 0; font-family: var(--mono); font-size: clamp(.7rem, .88vw, .82rem); line-height: 1.65; list-style: none; }
.code-list li { min-width: max-content; }
.code-line { position: relative; display: grid; grid-template-columns: 2.8rem minmax(0, 1fr); width: 100%; min-height: 2.5rem; align-items: center; border: 0; padding: 0 1.1rem 0 0; background: transparent; color: color-mix(in oklch, var(--paper) 84%, var(--ink)); font: inherit; cursor: default; text-align: left; white-space: pre; transition: background 150ms, color 150ms; }
button.code-line { cursor: pointer; }
.code-line::before { content: attr(data-line); color: color-mix(in oklch, var(--paper) 55%, var(--ink)); text-align: center; }
button.code-line:hover, .code-line.is-active { background: var(--blue-dark); color: var(--paper-bright); }
button.code-line[aria-pressed="true"]::before { color: var(--signal); }
.token-mark { color: oklch(84% .16 104); }
.token-code { color: oklch(82% .13 173); }
.token-output { color: oklch(85% .11 299); }
.token-muted { color: oklch(68% .035 270); }
.mapping-lane { position: relative; display: grid; place-items: center; border-inline: 1px solid var(--line-light); overflow: hidden; }
.mapping-lane span { position: relative; z-index: 2; padding: .4rem; background: var(--ink); color: var(--signal); font-size: .6rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; transform: rotate(-90deg); }
.mapping-lane i { position: absolute; width: 1px; height: 72%; background: var(--line-light); }
.mapping-lane i::after { content: ""; position: absolute; top: var(--map-position, 15%); left: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 7px color-mix(in oklch, var(--signal) 15%, transparent); }
.workbench-footer { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1.2rem; border-top: 1px solid var(--line-light); color: color-mix(in oklch, var(--paper) 68%, var(--ink)); font-size: .68rem; }
kbd { margin-inline: .2rem; padding: .12rem .32rem; border: 1px solid var(--line-light); font-family: var(--mono); }
.workspace-proof { width: var(--page); margin: 0 auto; padding: clamp(4.5rem, 7vw, 6.5rem) 0; border-top: 1px solid var(--line); }
.workspace-proof-heading { display: grid; grid-template-columns: 3fr 9fr; gap: clamp(1.5rem, 3vw, 3.5rem); align-items: start; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.workspace-proof-heading .overline { margin: .35rem 0 0; }
.workspace-proof-heading h2 { max-width: 11ch; margin: 0; }
.workspace-proof-heading div > p { max-width: 42ch; margin: 1rem 0 0; color: var(--muted); }
.workspace-visual { display: grid; gap: 1rem; margin: 0; }
.workspace-registration { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-family: var(--mono); font-size: .58rem; letter-spacing: .1em; }
.workspace-registration i { height: 1px; flex: 1; background: var(--line); }
.workspace-screen { background: transparent; }
.workspace-screen img { width: 100%; height: auto; aspect-ratio: 1320 / 768; object-fit: contain; }
.workspace-visual figcaption { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; color: var(--muted); font-size: .62rem; letter-spacing: .07em; text-transform: uppercase; }
.workspace-visual figcaption span:nth-child(2) { color: var(--blue-dark); text-align: center; }
.workspace-visual figcaption span:last-child { text-align: right; }
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.feature-list article { padding-top: 1.25rem; border-top: 1px solid var(--ink); }
.feature-list span { color: var(--blue-dark); font-family: var(--mono); font-size: .64rem; }
.feature-list h3 { margin: .85rem 0 .45rem; font-family: var(--serif); font-weight: 550; letter-spacing: -.035em; }
.feature-list p { max-width: 28ch; margin: 0; color: var(--muted); font-size: .9rem; }
.product-meta { display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.product-meta p { margin: 0; }
.product-meta strong { color: var(--ink); }
.product-meta a { min-height: 2.75rem; display: inline-flex; flex: 0 0 auto; align-items: center; gap: .6rem; color: var(--ink); font-weight: 700; text-underline-offset: 4px; }

.install { display: grid; grid-template-columns: minmax(0, 7fr) minmax(20rem, 5fr); gap: clamp(3rem, 7vw, 7rem); align-items: end; padding: clamp(4.5rem, 7vw, 6.5rem) max(var(--gutter), calc((100vw - var(--page-max)) / 2)); background: var(--blue); color: var(--paper); }
.install h2 { max-width: 11ch; margin: 0; }
.install-copy > p:not(.overline) { max-width: 50ch; margin: 1.25rem 0 0; color: var(--paper); }
.install-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: center; justify-content: end; }
.light-link { color: var(--paper); }
.site-footer { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; padding: 1.5rem max(var(--gutter), env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left)); background: var(--ink); color: var(--paper); }
.site-footer p { margin: 0; color: color-mix(in oklch, var(--paper) 64%, var(--ink)); font-size: .76rem; }
.site-footer nav { display: flex; gap: 1rem; justify-content: end; flex-wrap: wrap; }
.site-footer nav a, .author-link { color: inherit; text-underline-offset: 5px; }
.site-footer nav a { display: inline-flex; min-width: 2.75rem; min-height: 2.75rem; align-items: center; justify-content: center; font-size: .73rem; }
.author-link:hover { color: var(--paper); }

.reveal { opacity: 1; transform: none; }
.js .reveal.will-reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal.will-reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .menu-ready .menu-toggle { display: inline-flex; }
  .menu-ready .nav-shell { position: absolute; top: var(--header); right: max(var(--gutter), env(safe-area-inset-right)); left: max(var(--gutter), env(safe-area-inset-left)); display: grid; grid-template-columns: 1fr auto; padding: 1rem; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 1.2rem 2.5rem color-mix(in oklch, var(--ink) 15%, transparent); opacity: 0; visibility: hidden; transform: translateY(-.75rem); pointer-events: none; transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 0s linear 220ms; }
  .menu-ready .site-header.menu-open .nav-shell { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
  .site-nav { margin: 0; }
  .header-actions { justify-self: end; }
  html:not(.menu-ready) .site-header { position: relative; flex-wrap: wrap; }
  html:not(.menu-ready) .nav-shell { display: grid; grid-template-columns: 1fr; flex-basis: 100%; padding-block: .5rem; }
  html:not(.menu-ready) .site-nav { flex-wrap: wrap; gap: 0 1.2rem; }
  html:not(.menu-ready) .header-actions { justify-self: start; padding-top: .5rem; }
  .hero-canvas { grid-template-columns: minmax(0, 61fr) minmax(0, 39fr); }
  .hero-copy { padding-right: clamp(5rem, 10vw, 8rem); }
  .hero h1 { font-size: clamp(4.5rem, 8.7vw, 7rem); }
  .workbench-intro, .workspace-proof-heading { grid-template-columns: 1fr 2fr; }
  .workbench-intro > p:last-child { grid-column: 2; }
}

@media (max-width: 760px) {
  :root { --gutter: clamp(.875rem, 4vw, 1.5rem); }
  .hero-canvas { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { min-height: 43rem; justify-content: start; padding: calc(var(--header) + 2.4rem) var(--gutter) 5.5rem; clip-path: polygon(0 0, 100% 0, 100% 93%, 0 100%); }
  .hero-eyebrow { margin-bottom: 2.4rem; }
  .hero h1 { max-width: 7ch; font-size: clamp(4.2rem, 16vw, 6rem); }
  .hero-lede { margin-top: 2rem; }
  .hero-mark { min-height: 25rem; margin-top: -3rem; }
  .hero-j-image { object-position: 50% 48%; }
  .hero-mark-label { bottom: 1.5rem; }
  .hero-actions { justify-content: space-between; }
  .hero-proof { grid-template-columns: repeat(3, 1fr); gap: .6rem; justify-content: stretch; text-align: left; }
  .hero-proof li { white-space: normal; }
  .workbench-intro, .workspace-proof-heading { grid-template-columns: 1fr; }
  .workbench-intro > p:last-child { grid-column: auto; }
  .workbench-intro h2, .workspace-proof-heading h2 { max-width: 11ch; }
  .workspace-proof-heading .overline { margin: 0; }
  .workspace-visual figcaption { grid-template-columns: 1fr auto; }
  .workspace-visual figcaption span:nth-child(2) { text-align: right; }
  .workspace-visual figcaption span:last-child { display: none; }
  .feature-list { grid-template-columns: 1fr; gap: 1.5rem; }
  .feature-list p { max-width: 40ch; }
  .product-meta { align-items: start; flex-direction: column; }
  .install { grid-template-columns: 1fr; gap: 2rem; }
  .install-actions { justify-content: start; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav { justify-content: start; }
}

@container (max-width: 760px) {
  .workbench-header { align-items: stretch; flex-direction: column; }
  .demo-tabs { justify-content: start; overflow-x: auto; padding-bottom: .25rem; }
  .demo-tabs button { flex: 0 0 auto; }
  .editor-grid { grid-template-columns: minmax(0, 1fr); min-width: 0; }
  .editor-pane { width: 100%; }
  .mapping-lane { min-height: 3.5rem; border: 0; border-block: 1px solid var(--line-light); }
  .mapping-lane span { transform: none; }
  .mapping-lane i { width: 65%; height: 1px; }
  .mapping-lane i::after { top: -3px; left: var(--map-position, 15%); }
}

@media (max-width: 560px) {
  h2 { font-size: clamp(2.7rem, 14vw, 4.25rem); }
  .site-header { padding-inline: max(var(--gutter), env(safe-area-inset-left)); }
  .brand span { font-size: .9rem; }
  .menu-ready .nav-shell { grid-template-columns: 1fr; }
  .site-nav { display: grid; gap: 0; }
  .site-nav a { border-top: 1px solid var(--line); }
  .header-actions { justify-self: stretch; padding-top: 1rem; }
  .header-actions .button { flex: 1; }
  .hero-eyebrow span:last-child { display: none; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .trace-link { justify-content: space-between; }
  .hero-proof { font-size: .53rem; letter-spacing: .04em; }
  .workbench { margin-inline: calc(-1 * var(--gutter)); }
  .workbench-header, .workbench-footer { padding-inline: var(--gutter); }
  .workbench-status { font-size: .7rem; }
  .keyboard-note { display: none; }
  .code-list { min-width: 32rem; }
}

@media (min-width: 561px) and (max-height: 560px) {
  .hero-copy { padding-top: calc(var(--header) + 1rem); padding-bottom: 1rem; }
  .hero-eyebrow { margin-bottom: 1.25rem; }
  .hero h1 { max-width: 10ch; font-size: clamp(3.5rem, 7vw, 5.5rem); }
  .hero-lede { display: none; }
  .hero-actions { margin-top: 1.5rem; }
  .hero-actions .button, .hero-actions .trace-link { min-height: 2.75rem; white-space: nowrap; }
  .hero-proof { display: none; }
}

@media (max-width: 560px) and (max-height: 779px) {
  .hero-copy { min-height: 39rem; padding-top: calc(var(--header) + 1.5rem); }
  .hero-eyebrow { margin-bottom: 1.5rem; }
  .hero h1 { font-size: clamp(3.7rem, 15vw, 5rem); }
  .hero-lede { font-size: .74rem; }
  .hero-actions { flex-flow: row nowrap; gap: .5rem; margin-top: 1.4rem; }
  .hero-actions .button { width: auto; min-width: 0; min-height: 2.75rem; flex: 1 1 auto; gap: .4rem; padding-inline: .65rem; font-size: .76rem; white-space: nowrap; }
  .hero-actions .trace-link { min-width: 0; flex: 1 1 auto; justify-content: center; gap: .3rem; font-size: .72rem; white-space: nowrap; }
  .hero-proof { display: none; }
}

@media (max-width: 360px) and (max-height: 640px) {
  .hero-lede { display: none; }
  .hero-actions .trace-link { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-j-entry, .hero-j-stage, .hero-circuits { transform: none !important; }
  .hero-j-echo { display: none; }
  .hero-circuit { animation: none !important; clip-path: none !important; filter: none !important; opacity: .76; transform: none !important; }
  .reveal, .js .reveal.will-reveal { opacity: 1; transform: none; }
}

@media (forced-colors: active) {
  :focus-visible { outline-color: Highlight; }
  .hero-mark, .workspace-screen, .workbench, .install { forced-color-adjust: none; }
  .reveal, .js .reveal.will-reveal { opacity: 1; transform: none; }
}
