@font-face {
  font-family: Aktiv;
  src: url("assets/sans.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: GeistMono;
  src: url("assets/mono.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #141314;
  --paper: #eee;
  --brand: #fd551d;
  --muted: #818081;
  --line: #eeeeee1a;
  --pad: 32px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --sans: Aktiv, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  --mono: GeistMono, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.menu-is-open { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 6px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 400; }
ol, ul { margin: 0; padding: 0; list-style: none; }
img, canvas { display: block; }
img { max-width: 100%; }
::selection { color: var(--ink); background: var(--brand); }
[hidden] { display: none !important; }

.container {
  width: calc(100vw - var(--pad) * 2);
  max-width: 1920px;
  margin-inline: auto;
}
.mono, .eyebrow {
  font-family: var(--mono);
  font-size: clamp(11px, calc(10.39px + .1633vw), 13px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.eyebrow { display: block; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 200; padding: 10px 16px; background: var(--paper); color: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.section-pad { padding-block: clamp(88px, 9vw, 160px); }
h2 { font-size: clamp(34px, calc(22px + 2.5vw), 64px); line-height: 1.25; letter-spacing: -.045em; }
h3 { font-size: clamp(22px, 2vw, 32px); line-height: 1.4; letter-spacing: -.035em; }

/* Navigation */
.site-header { position: fixed; inset: 16px 0 auto; z-index: 50; pointer-events: none; transition: transform .6s var(--ease); }
.header-bar { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; min-height: 72px; padding-block: 16px; pointer-events: auto; transition: padding .5s var(--ease), background .3s; }
.site-header.is-scrolled .header-bar { padding-inline: 16px; background: #282728; }
.brand { display: inline-flex; width: max-content; align-items: center; gap: 12px; }
.brand-name { font-size: clamp(17px, 1.5vw, 23px); line-height: 1.2; letter-spacing: -.04em; white-space: nowrap; }
.brand-name > span { color: var(--muted); }
.brand-symbol { position: relative; display: flex; width: 29px; height: 29px; align-items: center; justify-content: center; gap: 3px; flex-shrink: 0; }
.brand-symbol::before, .brand-symbol::after { position: absolute; content: ""; top: 1px; bottom: 1px; width: 7px; border-block: 2px solid var(--brand); }
.brand-symbol::before { left: 0; border-left: 2px solid var(--brand); }
.brand-symbol::after { right: 0; border-right: 2px solid var(--brand); }
.brand-symbol i { display: block; width: 3px; height: 3px; background: var(--paper); }
.menu-toggle { justify-self: center; display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1; transition: opacity .2s; }
.menu-toggle:hover { opacity: .65; }
.menu-label { display: block; min-width: 3.5em; text-align: left; }
.menu-lines { display: block; position: relative; width: 16px; height: 16px; }
.menu-lines i { position: absolute; top: 50%; left: 0; width: 16px; height: 1px; background: currentColor; transform: translateY(-3px); transition: transform .3s; }
.menu-lines i + i { transform: translateY(3px); }
.menu-is-open .menu-lines i { transform: rotate(45deg); }
.menu-is-open .menu-lines i + i { transform: rotate(-45deg); }
.header-actions { display: flex; align-items: center; justify-self: end; gap: 24px; }
.lang-toggle { padding-block: 10px; color: var(--paper); font-size: 12px; transition: color .2s; }
.lang-toggle:hover { color: var(--brand); }
.header-cta { justify-self: end; }
.button { display: inline-flex; align-items: stretch; justify-content: space-between; gap: 4px; min-height: 44px; padding: 0; color: var(--ink); font-size: 13px; line-height: 1.5; letter-spacing: -.015em; white-space: nowrap; }
.button > span:first-child { display: flex; height: 44px; align-items: center; padding: 10px 18px; background: var(--brand); transition: background .25s; }
.button-icon { position: relative; display: block; width: 44px; height: 44px; background: var(--brand); flex-shrink: 0; transition: background .25s; }
.button-icon::before, .button-icon::after { position: absolute; content: ""; top: 21.5px; left: 17px; width: 10px; height: 1px; background: var(--ink); transition: transform .3s; }
.button-icon::after { transform: rotate(90deg); }
.button:hover > span:first-child, .button:hover .button-icon { background: #fd8d68; }
.button:hover .button-icon::after { transform: rotate(180deg); }
.text-link { display: inline-block; width: max-content; padding-bottom: 2px; border-bottom: 1px solid currentColor; font-size: 14px; line-height: 1.5; transition: color .2s; }
.text-link:hover { color: var(--brand); }
.text-link > [aria-hidden] { margin-left: 16px; }
.menu-backdrop { position: fixed; inset: 0; z-index: 46; background: #0008; backdrop-filter: blur(10px); }
.site-menu { margin-top: 8px; background: #292829; color: var(--paper); pointer-events: auto; }
.menu-content { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding: 64px; }
.menu-links { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.menu-links a { display: flex; align-items: baseline; gap: 24px; font-size: clamp(28px, 3.2vw, 48px); line-height: 1.4; letter-spacing: -.04em; transition: color .2s; }
.menu-links a:hover { color: var(--brand); }
.menu-links sup { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.menu-aside { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 24px; }
.menu-aside > p { font-size: 32px; line-height: 1.4; letter-spacing: -.04em; }

/* The first screen */
.hero { position: relative; min-height: 100svh; overflow: hidden; }
.hero-grid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); gap: 16px; height: 100svh; min-height: 100svh; padding-top: 72px; }
.hero-copy { position: relative; z-index: 2; display: flex; grid-column: span 5; flex-direction: column; justify-content: space-between; align-items: flex-start; min-height: 0; padding-bottom: 32px; pointer-events: none; }
.hero-content { display: flex; width: 100%; flex-direction: column; align-items: flex-start; gap: 32px; margin-block: auto; padding-block: 64px; }
.hero-eyebrow { color: var(--brand); }
.hero h1 { font-size: clamp(38px, calc(28px + 2.1vw), 60px); line-height: 1.25; letter-spacing: -.055em; }
.hero-title-line { position: relative; display: block; width: max-content; max-width: 100%; overflow: hidden; }
.title-text { position: relative; display: block; }
.title-wipe { position: absolute; inset: 0; background: var(--brand); pointer-events: none; }
.intro { max-width: 470px; color: #a6a3a6; font-size: 16px; line-height: 1.85; }
.hero-actions { display: flex; align-items: center; gap: 24px; pointer-events: auto; }
.hero-stack { display: flex; align-items: center; gap: 20px; color: var(--muted); pointer-events: auto; }
.hero-stack i { color: #474447; font-style: normal; }
.ascii-frame { position: relative; display: flex; grid-column: span 7; align-self: stretch; align-items: center; justify-content: center; min-width: 0; min-height: 0; overflow: hidden; touch-action: pan-y; }
#ascii { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; cursor: crosshair; }
.ascii-caption { position: absolute; right: 0; bottom: 32px; color: #666166; font-size: 10px; letter-spacing: -.01em; pointer-events: none; }
.is-loading .site-header { transform: translateY(-130%); }
.is-loading .hero-stack { opacity: 0; transform: translateY(20px); }
.hero-stack { transition: opacity .9s var(--ease), transform 1s var(--ease); }
.is-ready .hero-stack { transition-delay: .15s; }
.grid-overlay { position: fixed; inset: 0; z-index: 45; display: none; margin-inline: var(--pad); border-inline: 1px solid #fd551d55; background: repeating-linear-gradient(90deg, #fd551d12 0, #fd551d12 calc((100% - 176px)/12), transparent calc((100% - 176px)/12), transparent calc((100% - 176px)/12 + 16px)); pointer-events: none; }
.show-grid .grid-overlay { display: block; }

/* Three clear statements, with no invented metrics */
.principles { padding-block: 80px; border-top: 1px solid var(--line); }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.principle { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-left: 32px; border-left: 1px solid var(--line); }
.principle:first-child { padding-left: 0; border-left: 0; }
.principle > .mono { color: var(--brand); }
.principle > p { font-size: clamp(36px, 4vw, 64px); line-height: 1.25; letter-spacing: -.05em; }
.principle-note { color: var(--muted); font-size: 13px; }

/* Shared section layouts */
.paper-section { background: var(--paper); color: var(--ink); color-scheme: light; }
.paper-section .eyebrow { color: #777277; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 64px; margin-bottom: 72px; }
.section-heading > div { flex: 1 1 auto; }
.section-heading .eyebrow { margin-bottom: 28px; }
.section-summary { max-width: 350px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.paper-section .section-summary { color: #777277; }
.section-footnote { max-width: 700px; margin-top: 32px; color: #777277; font-size: 12px; line-height: 1.8; }

/* Compilation pipeline */
.pipeline-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #14131433; }
.pipeline-step { position: relative; padding: 32px 24px 0; border-right: 1px solid #14131426; }
.pipeline-step:first-child { padding-left: 0; }
.pipeline-step:last-child { padding-right: 0; border-right: 0; }
.step-index { color: #777277; }
.pipeline-step h3 { margin-top: 24px; font-size: 24px; }
.pipeline-step > p { min-height: 112px; margin-top: 18px; color: #777277; font-size: 13px; line-height: 1.9; }
.step-io { display: block; margin-top: 32px; font-size: 10px; }
.step-drawing { position: relative; height: 150px; margin-top: 30px; font-family: var(--mono); font-size: 10px; line-height: 1.5; }
.drawing-ast .ast-root { position: absolute; top: 10px; left: calc(50% - 32px); padding: 7px 10px; border: 1px solid #141314; }
.drawing-ast > i { position: absolute; top: 46px; left: 50%; width: 1px; height: 24px; background: #14131466; }
.drawing-ast > i::after { position: absolute; content: ""; top: 24px; left: -70px; width: 140px; height: 1px; background: #14131466; }
.ast-leaf { position: absolute; top: 96px; width: 48px; padding: 7px 0; background: var(--brand); text-align: center; }
.ast-leaf::before { position: absolute; content: ""; left: 50%; bottom: 100%; width: 1px; height: 26px; background: #14131466; }
.leaf-one { left: calc(50% - 94px); }
.leaf-two { left: calc(50% - 24px); }
.leaf-three { left: calc(50% + 46px); }
.drawing-ir { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px; }
.drawing-ir > span { display: block; width: 140px; padding: 5px 12px; border: 1px solid #14131466; }
.drawing-ir > span:nth-child(2) { margin-left: 28px; background: var(--brand); border-color: var(--brand); }
.drawing-ir > i { position: absolute; top: 42%; left: 0; font-size: 28px; font-style: normal; }
.drawing-bytecode { display: grid; grid-template-columns: repeat(4, 32px); grid-auto-rows: 32px; gap: 8px; justify-content: center; align-content: center; }
.drawing-bytecode > span { display: flex; align-items: center; justify-content: center; border: 1px solid #14131466; }
.drawing-bytecode > span:nth-child(3n) { background: var(--brand); border-color: var(--brand); }
.mini-vm { position: absolute; top: 38px; left: calc(50% - 36px); display: flex; width: 72px; height: 72px; align-items: center; justify-content: center; background: var(--ink); color: var(--paper); font-size: 22px; }
.mini-vm::before, .mini-vm::after { position: absolute; content: ""; left: -7px; width: 86px; height: 3px; background: repeating-linear-gradient(90deg, transparent 0 8px, var(--ink) 8px 12px); }
.mini-vm::before { top: -7px; }
.mini-vm::after { bottom: -7px; }
.vm-line { position: absolute; left: 0; width: calc(50% - 40px); height: 1px; background: #14131466; }
.line-one { top: 54px; }
.line-two { top: 74px; }
.line-three { top: 94px; }
.vm-out { position: absolute; top: 68px; right: -4px; font-size: 8px; color: #777277; }

/* Product architecture */
.technology-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 16px; align-items: start; }
.technology-intro { position: sticky; top: 144px; max-width: 460px; padding-right: 40px; }
.technology-intro > h2 { margin-top: 28px; }
.technology-intro > p:not(.eyebrow) { max-width: 350px; margin-top: 32px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.technology-intro .text-link { margin-top: 32px; }
.technology-showcases { display: flex; flex-direction: column; gap: 96px; }
.product-visual { background: #1b1a1b; overflow: hidden; border: 1px solid var(--line); }
.product-visual > img { width: 100%; height: auto; aspect-ratio: 1000/680; object-fit: contain; }
.product-visual-full > img { aspect-ratio: 2 / 1; }
.product-visual-interior > img, .product-visual-detail > img { aspect-ratio: 3 / 2; }
.technology-card-copy { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
.technology-card-copy > .eyebrow { font-size: 10px; color: var(--brand); }
.technology-card-copy > p { max-width: 560px; color: var(--muted); font-size: 14px; line-height: 1.9; }

/* The demo owns its internal styles in demo.js. */
.compiler-demo { min-height: 380px; }

/* Engineering capabilities */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; border-top: 1px solid var(--line); }
.feature-card { position: relative; padding: 32px 0 40px; border-bottom: 1px solid var(--line); }
.feature-number { color: var(--brand); }
.feature-card > h3 { margin-top: 48px; font-size: 25px; }
.feature-card > p { max-width: 350px; min-height: 98px; margin-top: 20px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.feature-tag { display: block; margin-top: 40px; color: #676267; font-size: 10px; }

/* Questions */
.faq { border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 16px; }
.faq-grid h2 { margin-top: 28px; }
.faq-intro { margin-top: 32px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.faq-items { border-top: 1px solid var(--line); }
.faq-items > details { border-bottom: 1px solid var(--line); }
.faq-items summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 26px; list-style: none; cursor: pointer; font-size: 17px; line-height: 1.65; }
.faq-items summary::-webkit-details-marker { display: none; }
.faq-items summary:hover { color: var(--brand); }
.faq-plus { position: relative; display: block; width: 12px; height: 12px; flex-shrink: 0; }
.faq-plus::before, .faq-plus::after { position: absolute; content: ""; top: 5.5px; left: 0; width: 12px; height: 1px; background: currentColor; }
.faq-plus::after { transform: rotate(90deg); transition: transform .25s; }
details[open] .faq-plus::after { transform: rotate(0deg); }
.faq-items details > p { max-width: 640px; padding-right: 40px; padding-bottom: 28px; color: var(--muted); font-size: 14px; line-height: 1.95; }
.faq-items details > .text-link { margin-bottom: 28px; }

/* Project handoff */
.contact { background: var(--brand); color: var(--ink); }
.contact > .container > .eyebrow { color: #14131499; }
.contact h2 { margin-top: 48px; font-size: clamp(38px, 5.3vw, 92px); line-height: 1.3; letter-spacing: -.06em; }
.footer-ascii-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 64px; }
.footer-ascii-frame { grid-column: auto; min-height: 0; height: 600px; background: var(--ink); border: 1px solid #14131422; }
.footer-ascii-frame > canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; cursor: crosshair; }
.footer-art-label { position: absolute; left: 24px; bottom: 24px; color: var(--muted); font-size: 10px; pointer-events: none; }
.contact-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-top: 72px; }
.contact-bottom > p { font-size: 15px; line-height: 1.8; }
.contact-actions { display: flex; align-items: center; gap: 24px; }
.button-inverse { color: var(--paper); }
.button-inverse > span:first-child, .button-inverse .button-icon { background: var(--ink); }
.button-inverse .button-icon::before, .button-inverse .button-icon::after { background: var(--paper); }
.button-inverse:hover > span:first-child, .button-inverse:hover .button-icon { background: #343034; }
.contact .text-link:hover { color: #14131499; }
.copy-status { min-height: 20px; margin-top: 18px; text-align: right; font-size: 12px; }

/* The footer is a way into the product, not an email form. */
.site-footer { padding-top: 0; }
.footer-prep { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-bottom: 96px; padding-block: 40px; border-bottom: 1px solid var(--line); }
.footer-prep > a { display: flex; align-items: center; gap: 64px; font-size: 15px; }
.footer-prep > a:hover { color: var(--brand); }
.footer-top { display: grid; grid-template-columns: 6fr 3fr 3fr; gap: 32px; padding-bottom: 112px; }
.footer-invitation > h2 { margin-top: 28px; }
.footer-invitation > .text-link { margin-top: 32px; }
.footer-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 4px; }
.footer-nav > .eyebrow { margin-bottom: 12px; font-size: 10px; }
.footer-nav > a { color: #bdb9bd; font-size: 14px; transition: color .2s; }
.footer-nav > a:hover { color: var(--brand); }
.footer-nav > a > [aria-hidden] { margin-left: 16px; }
.footer-watermark { display: flex; flex-direction: column; align-items: flex-start; padding-bottom: 40px; overflow: hidden; }
.footer-watermark > span { display: block; font-size: clamp(64px, 15.4vw, 296px); line-height: .9; letter-spacing: -.07em; }
.footer-watermark > span + span { align-self: flex-end; margin-top: 20px; font-size: clamp(108px, 24.5vw, 470px); }
.watermark-period { color: var(--brand); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 24px; border-top: 1px solid var(--line); }
.footer-bottom > .mono { color: var(--muted); font-size: 10px; }
.footer-description { color: #676267; font-size: 11px; }
.appearance-controls { display: flex; gap: 20px; }
.control { display: flex; align-items: center; gap: 12px; font-size: 10px; color: var(--muted); transition: color .2s; }
.control:hover, .control[aria-pressed="true"] { color: var(--brand); }
kbd { font: inherit; opacity: .5; }

/* Native document preview */
.docs-dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100svh - 48px); padding: 40px; border: 1px solid #eee3; background: #222022; color: var(--paper); }
.docs-dialog::backdrop { background: #000b; backdrop-filter: blur(8px); }
.docs-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.dialog-close { font-size: 32px; line-height: 1; }
.docs-dialog h2 { margin-top: 32px; font-size: 34px; }
.docs-dialog > p { margin-block: 24px 32px; color: #a6a3a6; font-size: 14px; line-height: 1.9; }

@media (max-width: 1200px) {
  .brand-name { font-size: 18px; }
  .brand { gap: 8px; }
  .section-heading { gap: 40px; }
  .section-summary { max-width: 300px; }
  .pipeline-step { padding-inline: 18px; }
  .pipeline-step > p { min-height: 142px; }
  .technology-intro { padding-right: 32px; }
  .technology-intro h2 { font-size: 42px; }
  .hero-content { gap: 28px; }
  .hero h1 { font-size: clamp(38px, 4.3vw, 60px); }
  .hero-stack { gap: 16px; }
}

@media (max-width: 1023px) {
  :root { --pad: 24px; }
  .header-bar { grid-template-columns: 1fr auto auto; gap: 32px; }
  .header-cta { display: none; }
  .menu-toggle { justify-self: end; }
  .hero-grid { grid-template-columns: 1fr; grid-template-rows: auto minmax(200px, 1fr); padding-top: 112px; padding-bottom: 60px; }
  .hero-copy { display: contents; }
  .hero-content { position: relative; z-index: 2; grid-row: 1; gap: 24px; margin: 0; padding: 0; }
  .hero h1 { font-size: clamp(36px, 5.4vw, 56px); }
  .intro { max-width: 560px; }
  .hero-stack { position: absolute; left: 0; bottom: 24px; z-index: 2; padding-top: 0; }
  .hero .ascii-frame { grid-column: 1; grid-row: 2; width: 100%; height: auto; min-height: 200px; margin: 0; }
  .ascii-caption { bottom: 24px; }
  .footer-ascii-frame { grid-column: auto; height: 480px; margin-top: 0; }
  .principles { padding-block: 64px; }
  .principle-grid { gap: 24px; }
  .principle { padding-left: 24px; }
  .principle > p { font-size: 40px; }
  .principle-note { max-width: 180px; font-size: 12px; }
  .section-heading { align-items: flex-start; margin-bottom: 56px; }
  .section-summary { max-width: 260px; }
  .pipeline-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .pipeline-step { padding-inline: 28px; }
  .pipeline-step:nth-child(2) { padding-right: 0; border-right: 0; }
  .pipeline-step:nth-child(3) { padding-left: 0; }
  .pipeline-step > p { min-height: 76px; }
  .step-drawing { max-width: 270px; margin-inline: auto; }
  .technology-grid { grid-template-columns: 1fr; gap: 56px; }
  .technology-intro { position: static; max-width: 100%; padding-right: 0; }
  .technology-intro h2 { font-size: 48px; }
  .technology-intro > p:not(.eyebrow) { max-width: 550px; }
  .technology-showcases { gap: 64px; }
  .technology-card-copy { grid-template-columns: 1fr 1fr; gap: 16px 24px; }
  .technology-card-copy > .eyebrow { grid-column: 1 / -1; }
  .technology-card-copy > h3 { font-size: 28px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card > p { min-height: 80px; }
  .faq-grid { grid-template-columns: 1fr; gap: 48px; }
  .faq-intro br { display: none; }
  .contact h2 { font-size: 6vw; }
  .contact-bottom { align-items: flex-start; flex-direction: column; gap: 32px; margin-top: 48px; }
  .copy-status { text-align: left; }
  .footer-top { grid-template-columns: 5fr 3fr 3fr; gap: 32px; padding-bottom: 88px; }
  .footer-invitation h2 { font-size: 38px; }
  .footer-bottom { flex-wrap: wrap; gap: 16px 32px; }
  .footer-description { display: none; }
  .menu-content { padding: 40px; gap: 40px; }
}

@media (max-width: 639px) {
  :root { --pad: 20px; }
  html { scroll-padding-top: 96px; }
  body { font-size: 14px; }
  .site-header { top: 12px; }
  .header-bar { min-height: 60px; padding-block: 14px; gap: 20px; }
  .header-actions { gap: 0; }
  .lang-toggle { font-size: 11px; }
  .brand-name { font-size: 16px; }
  .brand-symbol { width: 24px; height: 24px; }
  .brand-symbol::before, .brand-symbol::after { width: 6px; }
  .brand-symbol i { width: 2px; height: 2px; }
  .brand { gap: 8px; }
  .menu-toggle { font-size: 11px; gap: 4px; }
  .menu-label { min-width: 3em; }
  .menu-lines, .menu-lines i { width: 14px; }
  .site-header.is-scrolled .header-bar { padding-inline: 10px; }
  .hero-grid { padding-top: 108px; padding-bottom: 60px; gap: 16px; }
  .hero-content { gap: 20px; padding: 0; }
  .hero-eyebrow { max-width: 260px; font-size: 10px; line-height: 1.7; }
  .hero h1 { font-size: clamp(30px, 7.65vw, 46px); line-height: 1.4; letter-spacing: -.06em; }
  .intro { max-width: 100%; font-size: 14px; line-height: 1.9; }
  .hero-actions { gap: 24px; }
  .hero-actions .text-link { font-size: 13px; }
  .button { font-size: 12px; }
  .button > span:first-child { padding-inline: 14px; }
  .hero-stack { bottom: 24px; gap: 14px; font-size: 10px; }
  .hero .ascii-frame { height: auto; min-height: 200px; margin: 0; }
  .ascii-caption { right: 0; bottom: 12px; font-size: 8px; }
  .footer-ascii-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
  .footer-ascii-frame { height: 480px; margin-top: 0; }
  .footer-art-label { left: 20px; bottom: 20px; font-size: 9px; }
  .section-pad { padding-block: 72px; }
  h2 { font-size: clamp(30px, 8vw, 42px); line-height: 1.35; letter-spacing: -.045em; }
  h3 { font-size: 23px; }
  .eyebrow { font-size: 10px; }
  .principles { padding-block: 16px 40px; }
  .principle-grid { grid-template-columns: 1fr; gap: 0; }
  .principle { display: grid; grid-template-columns: 1fr 1.6fr; gap: 20px; padding: 32px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .principle:first-child { padding-top: 32px; }
  .principle > .mono { grid-column: 1; font-size: 10px; }
  .principle > p { grid-column: 2; grid-row: 1 / span 2; font-size: 34px; line-height: 1.25; }
  .principle-note { max-width: 135px; font-size: 11px; line-height: 1.8; }
  .section-heading { flex-direction: column; gap: 28px; margin-bottom: 40px; }
  .section-heading .eyebrow { margin-bottom: 24px; }
  .section-summary { max-width: 100%; font-size: 13px; line-height: 1.9; }
  .pipeline-grid { grid-template-columns: 1fr; gap: 0; }
  .pipeline-step, .pipeline-step:first-child, .pipeline-step:nth-child(2), .pipeline-step:nth-child(3), .pipeline-step:last-child { padding: 28px 0; border-right: 0; border-bottom: 1px solid #14131426; }
  .pipeline-step h3 { margin-top: 8px; font-size: 24px; }
  .pipeline-step > p { max-width: 100%; min-height: 0; margin-top: 16px; font-size: 13px; }
  .step-drawing { height: 150px; margin-block: 12px 20px; }
  .step-io { margin-top: 24px; }
  .section-footnote { margin-top: 24px; font-size: 11px; }
  .technology-grid { gap: 40px; }
  .technology-intro h2 { margin-top: 24px; font-size: 36px; }
  .technology-intro > p:not(.eyebrow) { margin-top: 24px; font-size: 13px; }
  .technology-intro .text-link { margin-top: 24px; }
  .technology-showcases { gap: 56px; }
  .product-visual { margin-inline: -8px; }
  .product-visual > img { min-height: 250px; object-fit: contain; }
  .technology-card-copy { grid-template-columns: 1fr; gap: 14px; margin-top: 24px; }
  .technology-card-copy > h3 { font-size: 25px; }
  .technology-card-copy > p { font-size: 13px; }
  .compiler-demo { min-height: 460px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { padding-block: 28px 32px; }
  .feature-card > h3 { margin-top: 28px; font-size: 24px; }
  .feature-card > p { min-height: 0; max-width: 100%; font-size: 13px; }
  .feature-tag { margin-top: 28px; font-size: 9px; }
  .faq-grid { gap: 36px; }
  .faq-grid h2 { margin-top: 24px; }
  .faq-intro { margin-top: 24px; font-size: 13px; }
  .faq-items summary { padding-block: 24px; font-size: 15px; line-height: 1.7; }
  .faq-items details > p { padding-right: 20px; font-size: 13px; line-height: 1.95; }
  .contact h2 { margin-top: 32px; font-size: clamp(26px, 6.7vw, 40px); line-height: 1.5; letter-spacing: -.055em; }
  .contact .eyebrow { font-size: 9px; }
  .contact-bottom { margin-top: 36px; }
  .contact-bottom > p { font-size: 13px; }
  .contact-actions { flex-wrap: wrap; gap: 24px; }
  .copy-status { margin-top: 14px; font-size: 11px; }
  .site-footer { padding-top: 0; }
  .footer-prep { align-items: flex-start; flex-direction: column; gap: 20px; margin-bottom: 64px; padding-block: 32px; }
  .footer-prep > a { gap: 24px; font-size: 13px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 48px 24px; padding-bottom: 72px; }
  .footer-invitation { grid-column: 1 / -1; }
  .footer-invitation > h2 { font-size: 36px; }
  .footer-invitation > .text-link { margin-top: 24px; }
  .footer-nav { gap: 14px; }
  .footer-nav > .eyebrow { font-size: 9px; }
  .footer-nav > a { font-size: 13px; }
  .footer-watermark { padding-bottom: 32px; }
  .footer-watermark > span { font-size: 15vw; }
  .footer-watermark > span + span { font-size: 25vw; margin-top: 16px; }
  .footer-bottom { align-items: flex-start; gap: 24px; padding-block: 24px 32px; }
  .footer-bottom > .mono { width: 100%; font-size: 9px; }
  .appearance-controls { width: 100%; justify-content: space-between; gap: 16px; }
  .control { font-size: 10px; }
  .menu-content { grid-template-columns: 1fr; gap: 40px; padding: 28px; max-height: calc(100svh - 110px); overflow-y: auto; }
  .menu-links { gap: 16px; }
  .menu-links a { font-size: 28px; gap: 20px; }
  .menu-aside { gap: 20px; }
  .menu-aside > p { font-size: 24px; }
  .menu-aside .eyebrow { font-size: 8px; }
  .docs-dialog { padding: 28px; }
  .docs-dialog h2 { font-size: 28px; line-height: 1.4; }
}

@media (max-width: 359px) {
  :root { --pad: 16px; }
  .brand-name { font-size: 14px; }
  .header-bar { gap: 14px; }
  .brand-symbol { width: 22px; height: 22px; }
  .hero-actions { gap: 18px; }
  .hero h1 { font-size: 27px; }
}

@media (max-width: 639px) and (max-height: 740px) {
  .hero-grid { padding-top: 92px; padding-bottom: 52px; gap: 12px; }
  .hero-content { gap: 16px; }
  .hero h1 { font-size: 28px; line-height: 1.35; }
  .hero .intro { font-size: 13px; line-height: 1.7; }
  .hero-stack { bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* Footer match composition */
/* Footer composition matched to the reference: compact utility row, low ASCII wave,
   centered credit, then a huge low-contrast brand mark. */
.site-footer-match {
  position: relative;
  min-height: 920px;
  padding: 52px 0 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}
.site-footer-match > .container { position: relative; min-height: 868px; }
.footer-match-top {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(150px, .8fr) minmax(200px, 1fr);
  gap: clamp(36px, 8vw, 140px);
  align-items: start;
  position: relative;
  z-index: 3;
}
.footer-subscribe h2 { margin: 0 0 16px; font-size: 16px; font-weight: 400; line-height: 1.35; }
.footer-cta-copy { max-width: 430px; margin: 0; color: #99959a; font-size: 13px; line-height: 1.7; }
.footer-cta-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 24px; }
.footer-cta-primary { min-height: 40px; padding: 0 16px; font-size: 11px; }
.footer-form { width: min(100%, 452px); display: grid; gap: 6px; }
.footer-form input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #eee4;
  border-radius: 0;
  outline: none;
  background: #373637;
  color: var(--paper);
  font: 13px var(--sans);
}
.footer-form input::placeholder { color: #a9a5a9; opacity: .72; }
.footer-form input:focus { border-color: var(--brand); }
.footer-form-submit { display: grid; grid-template-columns: 1fr 40px; gap: 6px; }
.footer-form-submit button,
.footer-form-plus { height: 40px; display: grid; place-items: center; background: var(--paper); color: var(--ink); font: 12px var(--mono); text-transform: uppercase; }
.footer-form-submit button:hover, .footer-form-plus:hover { background: var(--brand); }
.footer-form-plus { font-size: 18px; }
.footer-form-note { margin-top: 4px; color: var(--muted); font-size: 12px; }
.footer-status { min-height: 16px; margin-top: 2px; color: var(--brand); font-size: 9px; }
.footer-signals { display: grid; gap: 8px; margin-top: 14px; color: #8d898d; font-size: 10px; line-height: 1.4; }
.footer-signals > span { display: flex; align-items: center; gap: 8px; }
.footer-signals i { display: block; width: 8px; height: 8px; flex: 0 0 auto; background: var(--brand); }
.footer-match-nav,
.footer-match-contact { display: flex; flex-direction: column; align-items: flex-start; padding-top: 3px; font-size: 14px; line-height: 1.8; }
.footer-match-nav { justify-self: center; gap: 8px; }
.footer-match-contact { justify-self: end; min-width: 194px; gap: 0; color: #929095; }
.footer-match-nav a:hover, .footer-match-contact a:hover { color: var(--brand); }
.footer-contact-spacer { display: block; height: 20px; }
.footer-match-controls { display: grid; gap: 5px; margin-top: 12px; }
.footer-match-controls .control { display: inline-flex; gap: 8px; color: #6d696d; font-size: 11px; }
.footer-match-controls kbd { display: inline-grid; width: 24px; height: 24px; place-items: center; border: 1px solid #eee1; background: #292829; color: #8d898d; font-size: 11px; }
.footer-match-art { position: absolute; z-index: 1; left: calc(var(--pad) * -1); right: calc(var(--pad) * -1); top: 270px; height: 330px; pointer-events: none; }
.footer-match-art-panel { position: absolute; top: 0; width: 45%; height: 300px; opacity: .86; overflow: hidden; mask-image: radial-gradient(ellipse at center, #000 42%, #0009 65%, transparent 91%); }
.footer-match-art-left { left: 0; transform: translateX(-5%); }
.footer-match-art-right { right: 0; transform: translateX(5%); }
.footer-match-art-panel canvas { display: block; width: 100%; height: 100%; filter: saturate(.7); }
.footer-match-credit { position: absolute; z-index: 3; top: 496px; left: 50%; transform: translateX(-50%); width: max-content; color: #868286; text-align: center; font-size: 16px; line-height: 1.45; }
.footer-match-credit span { color: #969196; }
.footer-match-watermark { position: absolute; z-index: 2; inset: auto 0 -8px; height: 210px; overflow: hidden; pointer-events: none; color: #2c2b2d; font-family: var(--sans); font-weight: 400; line-height: .82; letter-spacing: -.075em; }
.footer-match-watermark > span { display: block; width: 100%; font-size: clamp(78px, 8.5vw, 180px); white-space: nowrap; text-align: center; }
.footer-match-watermark .watermark-period { color: #353033; }
.site-footer-match .footer-bottom,
.site-footer-match .footer-prep,
.site-footer-match > .container > .footer-top { display: none; }
.site-footer-match .control { padding: 0; border: 0; background: transparent; }
@media (max-width: 800px) {
  .site-footer-match { min-height: 880px; padding-top: 40px; }
  .site-footer-match > .container { min-height: 840px; }
  .footer-match-top { grid-template-columns: 1fr 1fr; gap: 46px 28px; }
  .footer-subscribe { grid-column: 1 / -1; }
  .footer-form { max-width: 460px; }
  .footer-match-contact { justify-self: start; }
  .footer-match-art { top: 352px; height: 240px; }
  .footer-match-art-panel { width: 60%; height: 240px; }
  .footer-match-credit { top: 566px; font-size: 14px; }
  .footer-match-watermark { height: 150px; }
  .footer-match-watermark > span { font-size: clamp(42px, 8.5vw, 150px); }
}
@media (max-width: 520px) {
  .site-footer-match { min-height: 820px; padding-top: 32px; }
  .site-footer-match > .container { min-height: 788px; }
  .footer-match-top { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
  .footer-subscribe h2 { font-size: 15px; }
  .footer-match-nav, .footer-match-contact { font-size: 12px; line-height: 1.85; }
  .footer-match-contact { min-width: 0; }
  .footer-match-art { top: 340px; height: 185px; }
  .footer-match-art-panel { width: 72%; height: 185px; }
  .footer-match-credit { top: 500px; font-size: 12px; }
  .footer-match-watermark { height: 116px; }
  .footer-match-watermark > span { font-size: clamp(36px, 8.5vw, 108px); }
}

/* Let the custom footer grow with its copy on phones. Fixed art offsets make
   translated CTA copy collide with the navigation when the text wraps. */
@media (max-width: 639px) {
  .site-footer-match { min-height: auto; padding-bottom: 24px; }
  .site-footer-match > .container { min-height: 0; }
  .footer-match-art { position: relative; inset: auto; height: 390px; margin: 72px calc(var(--pad) * -1) 0; }
  .footer-match-art-panel { left: 0; right: auto; width: 100%; height: 185px; transform: none; }
  .footer-match-art-right { top: 205px; }
  .footer-match-credit { position: relative; inset: auto; transform: none; width: auto; margin: 22px auto 0; font-size: 12px; }
  .footer-match-watermark { position: relative; inset: auto; height: auto; margin-top: 52px; overflow: visible; }
  .footer-match-watermark > span { font-size: 8.5vw; line-height: .9; }
}
