@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2"); }

:root {
  --bg: #0a0a0b;
  --bg-2: #101012;
  --card: #141417;
  --card-2: #1a1a1e;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --fg: #ededef;
  --muted: #a1a1aa;
  --dim: #80808a;
  --accent: #fb923c;
  --accent-2: #f97316;
  --accent-ink: #1a0d03;
  --pop: #2dd4bf;
  --top: #c084fc;
  --comp: #94a3b8;
  --chop: #4ade80;
  --radius: 14px;
  --max: 1160px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --nav-h: 64px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: rgba(251, 146, 60, .35); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .25s, border-color .25s, backdrop-filter .25s;
  border-bottom: 1px solid transparent;
}
.nav.solid, .nav.always {
  background: rgba(10, 10, 11, .78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; max-width: none; padding: 0 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; letter-spacing: -.01em; font-size: 17px; }
.brand svg { width: 24px; height: 24px; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a {
  text-decoration: none; color: var(--muted); font-size: 14.5px; padding: 6px 12px; border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--fg); background: rgba(255, 255, 255, .05); }
.nav-links a[aria-current="page"] { color: var(--fg); }
.nav-cta { margin-left: auto; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--fg); padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav .wrap { padding: 0 12px 0 16px; }
  body.menu-open .nav { background: var(--bg); border-bottom-color: var(--line); }
  body.menu-open .nav-links {
    display: flex; flex-direction: column; position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 8px 16px; margin: 0;
  }
  body.menu-open .nav-links a { font-size: 17px; padding: 12px; color: var(--fg); }
  body.menu-open .nav-links .menu-cta { display: flex; margin-top: 8px; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 18px; border-radius: 10px;
  font: 600 15px/1 var(--sans); letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s, border-color .15s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 0 rgba(251, 146, 60, 0); }
.btn-primary:hover { background: #fdba74; box-shadow: 0 10px 40px -10px rgba(251, 146, 60, .6); }
.btn-ghost { background: rgba(255, 255, 255, .06); color: var(--fg); border-color: var(--line-2); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-sm { --h: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn-xl { --h: 60px; padding: 0 30px; font-size: 18px; border-radius: 14px; gap: 12px; }
.btn-xl svg { width: 22px; height: 22px; }
@media (max-width: 480px) { .btn-xl { width: 100%; } }

.nav-links .menu-cta { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(100svh, 980px); display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 80px) 0 88px; isolation: isolate; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; animation: drift 30s ease-in-out infinite alternate; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(10, 10, 11, .7) 30%, rgba(10, 10, 11, .15) 65%, rgba(10, 10, 11, .55) 100%),
    linear-gradient(to right, rgba(10, 10, 11, .75) 0%, rgba(10, 10, 11, 0) 70%);
}
@keyframes drift { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); } }
@media (prefers-reduced-motion: reduce) { .hero-media img, .hero-media video { animation: none; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font: 500 12.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 22px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.hero h1 {
  font-size: clamp(42px, 7.2vw, 88px); line-height: .98; letter-spacing: -.045em; font-weight: 650;
  margin: 0 0 24px; max-width: 13ch;
}
.hero h1 em { font-style: normal; color: transparent; background: linear-gradient(100deg, #fed7aa, var(--accent) 50%, #ea580c); -webkit-background-clip: text; background-clip: text; }
.hero .lede { font-size: clamp(17px, 1.9vw, 20px); color: #c9c9d0; max-width: 46ch; margin: 0 0 36px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.reqs { margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--dim); font: 13px/1.4 var(--mono); }
.reqs span { display: inline-flex; align-items: center; gap: 8px; }
.reqs span + span::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--dim); margin-right: 10px; margin-left: -10px; }
.placeholder-note { position: absolute; right: 16px; bottom: 14px; font: 11px/1 var(--mono); color: rgba(255, 255, 255, .35); letter-spacing: .04em; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 112px 0; }
.section-tight { padding: 72px 0; }
@media (max-width: 640px) { .section { padding: 80px 0; } .hero { padding-bottom: 56px; } .reqs { flex-direction: column; gap: 6px; } .reqs span + span::before { display: none; } }
.section-head { max-width: 720px; margin: 0 0 48px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.06; letter-spacing: -.035em; font-weight: 650; margin: 0 0 16px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }
.kicker { font: 500 12.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin: 0 0 18px; display: block; }

/* ---------- Capabilities ---------- */
.caps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cap {
  position: relative; grid-column: span 2; min-height: 340px; border-radius: var(--radius); overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; background: var(--card);
  border: 1px solid var(--line); text-decoration: none;
}
.cap.wide { grid-column: span 3; min-height: 400px; }
.cap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2, .7, .2, 1), opacity .4s; opacity: .85; }
.cap::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10, 10, 11, .95) 10%, rgba(10, 10, 11, .55) 45%, rgba(10, 10, 11, .05) 80%); }
.cap:hover img { transform: scale(1.05); opacity: 1; }
.cap .num { position: absolute; top: 20px; left: 26px; font: 12px/1 var(--mono); color: rgba(255, 255, 255, .55); letter-spacing: .06em; }
.cap h3 { font-size: 22px; letter-spacing: -.02em; font-weight: 620; margin: 0 0 8px; }
.cap p { margin: 0; color: #c4c4cb; font-size: 15px; max-width: 44ch; }
.cap .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { font: 11.5px/1 var(--mono); color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 9px; background: rgba(10, 10, 11, .4); backdrop-filter: blur(6px); }
@media (max-width: 960px) { .cap, .cap.wide { grid-column: span 3; } }
@media (max-width: 640px) { .caps { grid-template-columns: 1fr; } .cap, .cap.wide { grid-column: auto; min-height: 300px; } }

.coupling {
  margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden;
}
.coupling .txt { padding: 36px; }
.coupling h3 { font-size: 22px; letter-spacing: -.02em; margin: 0 0 10px; font-weight: 620; }
.coupling p { color: var(--muted); margin: 0 0 20px; }
.coupling ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.coupling li { display: flex; gap: 12px; align-items: baseline; font-size: 15px; }
.coupling li b { font-weight: 560; }
.coupling li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }
.coupling .fig { background: #fff; display: flex; align-items: center; padding: 18px; }
@media (max-width: 860px) { .coupling { grid-template-columns: 1fr; } .coupling .txt { padding: 26px; } }

/* ---------- Workflow ---------- */
.workflow { background: linear-gradient(to bottom, var(--bg), var(--bg-2) 30%, var(--bg-2) 70%, var(--bg)); }
.graph {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 32px 34px;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .07) 1px, transparent 0) 0 0 / 22px 22px,
    #0d0d0f;
  overflow: hidden;
}
.graph-label { position: absolute; top: 14px; left: 18px; font: 11.5px/1 var(--mono); color: var(--dim); letter-spacing: .04em; }
.chain { display: flex; align-items: center; justify-content: space-between; gap: 0; }
.wire { flex: 1 1 24px; min-width: 18px; height: 2px; position: relative; background: rgba(255, 255, 255, .16); overflow: hidden; }
.wire::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -40%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: flow 2.6s linear infinite;
}
.wire.d1::after { animation-delay: .4s; } .wire.d2::after { animation-delay: .8s; } .wire.d3::after { animation-delay: 1.2s; }
@keyframes flow { to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .wire::after { display: none; } }
.node {
  --c: var(--comp);
  flex: none; width: 168px; border-radius: 10px; background: #18181c; border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .8); overflow: hidden; font-size: 13px;
}
.node .hd { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: color-mix(in srgb, var(--c) 16%, #18181c); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.node .hd::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.node .hd span { font: 11px/1 var(--mono); color: var(--c); letter-spacing: .05em; margin-left: auto; }
.node .bd { padding: 10px 10px 12px; color: var(--fg); font-weight: 560; line-height: 1.3; }
.node .bd small { display: block; color: var(--dim); font-weight: 400; font-size: 12px; margin-top: 3px; }
.node.pop { --c: var(--pop); } .node.top { --c: var(--top); } .node.comp { --c: var(--comp); } .node.chop { --c: var(--chop); }
.node.hrlw { border-color: rgba(251, 146, 60, .55); box-shadow: 0 0 0 1px rgba(251, 146, 60, .2), 0 14px 40px -14px rgba(251, 146, 60, .45); }
.node.hrlw .bd::after { content: "Harlow"; display: inline-block; margin-top: 8px; font: 10.5px/1 var(--mono); color: var(--accent); border: 1px solid rgba(251, 146, 60, .4); border-radius: 999px; padding: 4px 7px; }
.side { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; padding-right: 0; flex-wrap: wrap; align-items: center; }
.side-label { color: var(--dim); font-size: 13px; margin-right: auto; max-width: 30ch; }
.side .node { width: 150px; opacity: .92; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; color: var(--dim); font: 12px/1 var(--mono); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
@media (max-width: 1000px) {
  .graph { padding: 44px 18px 24px; }
  .chain { flex-direction: column; align-items: stretch; }
  .node { width: auto; }
  .wire { width: 2px; min-width: 0; height: 22px; flex: none; margin: 0 auto; }
  .wire::after { width: 100%; height: 40%; left: 0; top: -40%; background: linear-gradient(180deg, transparent, var(--accent), transparent); animation-name: flow-v; }
  .side { justify-content: stretch; }
  .side .node { flex: 1 1 140px; }
  .side-label { flex-basis: 100%; max-width: none; }
}
@keyframes flow-v { to { top: 100%; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; counter-reset: s; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--card); counter-increment: s; }
.step::before { content: "0" counter(s); display: block; font: 12px/1 var(--mono); color: var(--accent); margin-bottom: 16px; }
.step h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.015em; font-weight: 620; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.swap { margin-top: 56px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.swap h3 { font-size: 26px; letter-spacing: -.025em; margin: 0 0 12px; font-weight: 640; line-height: 1.15; }
.swap p { color: var(--muted); margin: 0 0 20px; }
.swap-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.swap-row { display: grid; grid-template-columns: 1fr 28px 1fr; align-items: center; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 15px; }
.swap-row:first-child { border-top: 0; }
.swap-row .from { color: var(--muted); }
.swap-row .to { font-weight: 560; }
.swap-row .arrow { color: var(--dim); text-align: center; }
.swap-row.head { background: var(--card); font: 11.5px/1 var(--mono); color: var(--dim); letter-spacing: .06em; text-transform: uppercase; padding: 12px 20px; }
@media (max-width: 860px) { .swap { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 480px) { .swap-row { grid-template-columns: 1fr; gap: 2px; padding: 12px 16px; } .swap-row .arrow { display: none; } .swap-row .to::before { content: "→ "; color: var(--accent); } .swap-row.head { display: none; } }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 14px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.gallery figure:first-child { grid-row: span 2; }
.gallery figure:last-child { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 14px; bottom: 12px; font: 11.5px/1 var(--mono); color: rgba(255, 255, 255, .7); background: rgba(10, 10, 11, .55); padding: 6px 8px; border-radius: 6px; backdrop-filter: blur(6px); }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 160px 160px; } .gallery figure:first-child { grid-row: auto; grid-column: span 2; } .gallery figure:last-child { grid-column: auto; } }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.cta-bg { position: absolute; inset: 0; z-index: -2; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 120%, rgba(10, 10, 11, .2), var(--bg) 70%); }
.cta .wrap { text-align: center; padding-top: 140px; padding-bottom: 140px; }
.cta h2 { font-size: clamp(34px, 5vw, 60px); letter-spacing: -.04em; line-height: 1.02; margin: 0 auto 18px; font-weight: 650; max-width: 16ch; }
.cta p { color: #c9c9d0; font-size: 18px; max-width: 52ch; margin: 0 auto 36px; }
.cta .fine { margin-top: 22px; font-size: 14px; color: var(--dim); }
.cta .fine a { color: var(--muted); }
.perks { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 26px; margin: 0 0 40px; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.perks li { display: inline-flex; gap: 8px; align-items: center; }
.perks svg { width: 16px; height: 16px; color: var(--accent); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 48px 0 56px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
footer .brand { color: var(--fg); margin-bottom: 10px; }
footer .cols { display: flex; gap: 56px; margin-left: auto; flex-wrap: wrap; }
footer h4 { margin: 0 0 12px; color: var(--muted); font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer a { text-decoration: none; color: var(--dim); }
footer a:hover { color: var(--fg); }
@media (max-width: 640px) { footer .cols { margin-left: 0; gap: 40px; } }

/* ---------- Plain pages (FAQ, Contact) ---------- */
.page-hero { position: relative; padding: calc(var(--nav-h) + 96px) 0 64px; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .5; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, var(--bg), rgba(10, 10, 11, .55)); }
.page-hero h1 { font-size: clamp(38px, 6vw, 64px); letter-spacing: -.04em; line-height: 1; margin: 0 0 14px; font-weight: 650; }
.page-hero p { color: #c9c9d0; font-size: 18px; margin: 0; max-width: 56ch; }

.faq { max-width: 820px; padding-top: 56px; padding-bottom: 96px; }
.faq h2 { font: 500 12.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin: 48px 0 12px; }
.faq h2:first-child { margin-top: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-size: 17.5px; font-weight: 560; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq summary:hover { color: #fff; }
.faq .a { padding: 0 0 22px; color: var(--muted); }
.faq .a p { margin: 0 0 12px; } .faq .a p:last-child { margin: 0; }
.faq .a a { color: var(--accent); }
.faq .a code { font: 14px var(--mono); background: var(--card-2); padding: 2px 6px; border-radius: 5px; color: var(--fg); }

.contact { padding-top: 56px; padding-bottom: 96px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.contact-card { display: flex; flex-direction: column; gap: 10px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); text-decoration: none; transition: border-color .2s, transform .2s, background .2s; }
.contact-card:hover { border-color: var(--line-2); background: var(--card-2); transform: translateY(-2px); }
.contact-card svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 10px; }
.contact-card h3 { margin: 0; font-size: 19px; letter-spacing: -.015em; font-weight: 620; }
.contact-card p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.contact-card .go { font: 13px/1 var(--mono); color: var(--fg); margin-top: 8px; word-break: break-all; }
.contact-note { margin-top: 40px; max-width: 720px; color: var(--muted); }
.contact-note h2 { color: var(--fg); font-size: 20px; letter-spacing: -.015em; margin: 0 0 10px; font-weight: 620; }
.contact-note ul { padding-left: 20px; }
.contact-note a { color: var(--accent); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Docs ---------- */
body.docs { --side: 272px; --toc: 220px; }
.docs-shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr) var(--toc); gap: 0; padding-top: var(--nav-h); max-width: 1440px; margin: 0 auto; }
.sidebar {
  position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); overflow-y: auto; padding: 28px 16px 40px 24px;
  border-right: 1px solid var(--line); scrollbar-width: thin;
}
.search-btn {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 0 12px; height: 38px; border-radius: 9px; margin-bottom: 24px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--dim); font: 14px var(--sans); cursor: pointer; text-align: left;
}
.search-btn:hover { color: var(--muted); border-color: rgba(255, 255, 255, .2); }
.search-btn svg { width: 15px; height: 15px; }
.search-btn kbd { margin-left: auto; font: 11px/1 var(--mono); border: 1px solid var(--line-2); border-radius: 5px; padding: 3px 5px; }
.side-group { margin: 0 0 24px; }
.side-group h4 { margin: 0 0 8px; padding: 0 10px; font: 500 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.side-group ul { list-style: none; margin: 0; padding: 0; }
.side-group a {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 7px; text-decoration: none; color: var(--muted); font-size: 14.5px;
  transition: background .12s, color .12s;
}
.side-group a:hover { color: var(--fg); background: rgba(255, 255, 255, .04); }
.side-group a[aria-current="page"] { color: var(--fg); background: rgba(251, 146, 60, .1); box-shadow: inset 2px 0 0 var(--accent); }
.side-group a .fam { margin-left: auto; font: 10.5px/1 var(--mono); color: var(--dim); }
.side-group a .fam.pop { color: color-mix(in srgb, var(--pop) 70%, var(--dim)); }
.side-group a .fam.top { color: color-mix(in srgb, var(--top) 70%, var(--dim)); }

.doc { padding: 48px 56px 96px; min-width: 0; }
.doc-inner { max-width: 780px; margin: 0 auto; }
.crumbs { font: 12.5px/1 var(--mono); color: var(--dim); margin: 0 0 18px; letter-spacing: .02em; }
.doc .crumbs a { text-decoration: none; color: var(--muted); } .crumbs a:hover { color: var(--fg); }
.doc h1 { font-size: clamp(32px, 4vw, 44px); letter-spacing: -.035em; line-height: 1.08; margin: 0 0 24px; font-weight: 650; }
.doc h2 { font-size: 26px; letter-spacing: -.025em; line-height: 1.2; margin: 56px 0 16px; font-weight: 630; padding-top: 8px; }
.doc h3 { font-size: 19px; letter-spacing: -.015em; margin: 36px 0 12px; font-weight: 620; }
.doc h4 { font-size: 16px; margin: 28px 0 10px; }
.doc h2 .anchor, .doc h3 .anchor { margin-left: 8px; color: var(--dim); text-decoration: none; opacity: 0; transition: opacity .15s; font-weight: 400; }
.doc h2:hover .anchor, .doc h3:hover .anchor { opacity: 1; }
.doc p, .doc li { color: #cfcfd5; }
.doc p { margin: 0 0 16px; }
.doc strong { color: var(--fg); font-weight: 600; }
.doc em { color: #e2e2e7; }
.doc a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(251, 146, 60, .35); text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: var(--accent); }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 18px; }
.doc li { margin: 4px 0; }
.doc li::marker { color: var(--dim); }
.doc code { font: .88em/1.4 var(--mono); background: var(--card-2); border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px; color: #f1f1f4; word-break: break-word; }
.doc pre { background: #0f0f12; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; overflow-x: auto; margin: 0 0 20px; }
.doc pre code { background: none; border: 0; padding: 0; font-size: 13.5px; word-break: normal; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.doc blockquote { margin: 0 0 28px; padding: 18px 22px; border: 1px solid var(--line); border-left: 2px solid var(--dim); border-radius: 10px; background: var(--card); }
.doc blockquote p:last-child { margin: 0; }
.doc blockquote.replaces { border-left-color: var(--accent); background: linear-gradient(90deg, rgba(251, 146, 60, .07), var(--card) 40%); }
.doc blockquote.replaces > p:first-child strong:first-child { color: var(--accent); font: 500 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; display: block; margin-bottom: 10px; }
.table-wrap { overflow-x: auto; margin: 0 0 24px; border: 1px solid var(--line); border-radius: 10px; -webkit-overflow-scrolling: touch; }
.doc table { border-collapse: collapse; width: 100%; font-size: 14px; }
.doc th, .doc td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.doc thead th { border-top: 0; background: var(--card); color: var(--fg); font-weight: 600; font-size: 13px; white-space: nowrap; }
.doc td { color: #c8c8cf; }
.doc tbody tr:hover td { background: rgba(255, 255, 255, .015); }
.doc td:first-child { color: var(--fg); }
.doc figure { margin: 8px 0 28px; }
.doc figure a { display: block; background: #fff; border-radius: 12px; padding: 14px; border: 1px solid var(--line); }
.doc figure img { width: 100%; height: auto; }
.doc figcaption { color: var(--dim); font-size: 13.5px; margin-top: 10px; text-align: center; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 72px; }
.pager a { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: border-color .15s, background .15s; }
.pager a:hover { border-color: var(--line-2); background: var(--card); }
.pager span { display: block; font: 12px/1 var(--mono); color: var(--dim); margin-bottom: 8px; }
.pager b { font-weight: 560; color: var(--fg); }
.pager .next { text-align: right; grid-column: 2; }
.doc .edit-note { margin-top: 28px; color: var(--dim); font-size: 13.5px; }

.toc { position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); overflow-y: auto; padding: 52px 20px 40px 8px; font-size: 13.5px; scrollbar-width: thin; }
.toc h4 { margin: 0 0 12px; font: 500 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 1px solid transparent; text-decoration: none; color: var(--dim); line-height: 1.4; }
.toc a:hover { color: var(--fg); }
.toc a.active { color: var(--fg); border-left-color: var(--accent); }
.toc .l3 a { padding-left: 26px; font-size: 13px; }
.toc .toc-cta { margin-top: 28px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.toc .toc-cta .btn { display: flex; width: 100%; margin: 0; padding: 0 12px; border: 0; color: var(--accent-ink); line-height: 1; }
.toc .toc-cta p { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }

.docs-bar { display: none; }
@media (max-width: 1240px) { body.docs { --toc: 0px; } .toc { display: none; } .doc { padding: 40px 40px 80px; } }
@media (max-width: 900px) {
  .docs-shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; top: var(--nav-h); left: 0; bottom: 0; width: min(86vw, 320px); height: auto; z-index: 40; background: var(--bg);
    transform: translateX(-100%); transition: transform .25s ease; border-right: 1px solid var(--line-2);
  }
  body.side-open .sidebar { transform: none; box-shadow: 30px 0 60px rgba(0, 0, 0, .6); }
  body.side-open::after { content: ""; position: fixed; inset: var(--nav-h) 0 0 0; background: rgba(0, 0, 0, .5); z-index: 30; }
  .docs-bar {
    display: flex; align-items: center; gap: 10px; position: sticky; top: var(--nav-h); z-index: 20; padding: 10px 16px;
    background: rgba(10, 10, 11, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
  }
  .docs-bar button { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line-2); color: var(--fg); border-radius: 8px; height: 36px; padding: 0 12px; font: 14px var(--sans); cursor: pointer; }
  .docs-bar button svg { width: 16px; height: 16px; }
  .docs-bar .where { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
  .doc { padding: 28px 16px 72px; }
  .doc h2 { margin-top: 44px; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: auto; }
}

/* Docs home */
.docs-home .lead { font-size: 18.5px; color: var(--muted); margin: 0 0 40px; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 0 40px; }
.card { display: block; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); text-decoration: none !important; transition: border-color .15s, background .15s, transform .15s; }
.card:hover { border-color: var(--line-2); background: var(--card-2); transform: translateY(-1px); }
.card .t { display: flex; align-items: center; gap: 8px; color: var(--fg); font-weight: 600; margin-bottom: 6px; }
.card .t .fam { margin-left: auto; font: 10.5px/1 var(--mono); color: var(--dim); font-weight: 400; }
.card p { margin: 0 !important; font-size: 14.5px; color: var(--muted) !important; }
.card.big { padding: 24px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .cards, .cards.three { grid-template-columns: 1fr; } }

/* Search dialog */
.search-dlg { width: min(640px, calc(100vw - 24px)); max-height: min(70vh, 640px); padding: 0; border: 1px solid var(--line-2); border-radius: 14px; background: #121215; color: var(--fg); box-shadow: 0 40px 120px rgba(0, 0, 0, .7); margin-top: 12vh; overflow: hidden; }
.search-dlg::backdrop { background: rgba(0, 0, 0, .55); backdrop-filter: blur(3px); }
.search-dlg form { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.search-dlg form svg { width: 18px; height: 18px; color: var(--dim); flex: none; }
.search-dlg input { flex: 1; height: 56px; background: none; border: 0; outline: none; color: var(--fg); font: 17px var(--sans); min-width: 0; }
.search-dlg .esc { font: 11px var(--mono); color: var(--dim); border: 1px solid var(--line-2); border-radius: 5px; padding: 3px 6px; background: none; cursor: pointer; }
.search-results { list-style: none; margin: 0; padding: 8px; overflow-y: auto; max-height: calc(min(70vh, 640px) - 58px); }
.search-results li a { display: block; padding: 10px 12px; border-radius: 9px; text-decoration: none; }
.search-results li a:hover, .search-results li a.sel { background: rgba(251, 146, 60, .1); }
.search-results .p { font: 11.5px/1.2 var(--mono); color: var(--dim); }
.search-results .h { font-weight: 560; margin: 3px 0 2px; }
.search-results .s { font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-results mark { background: none; color: var(--accent); }
.search-empty { padding: 28px 16px; color: var(--dim); text-align: center; font-size: 14px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Skip link, footer bar ---------- */
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; transition: top .15s; }
.skip:focus { top: 12px; }
.foot-bar { width: 100%; display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }
footer a[href^="mailto"] { color: var(--muted); }

/* ---------- Prose pages (Legal, Credits) ---------- */
.prose-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-top: 56px; padding-bottom: 96px; }
.prose-nav { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; font-size: 14px; }
.prose-nav h4 { margin: 0 0 12px; font: 500 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.prose-nav ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.prose-nav a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); text-decoration: none; }
.prose-nav a:hover, .prose-nav a.active { color: var(--fg); border-left-color: var(--accent); }
.doc.prose { padding: 0; max-width: 780px; }
.doc.prose h2:first-of-type { margin-top: 0; }
.doc.prose h2 { border-top: 1px solid var(--line); padding-top: 40px; }
.doc.prose h2:first-of-type { border-top: 0; padding-top: 0; }
.doc.prose li { font-size: 15.5px; }
@media (max-width: 900px) {
  .prose-shell { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 32px; }
  .prose-nav { position: static; }
  .prose-nav ul { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
  .prose-nav a { border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 12px; margin: 0; font-size: 13.5px; }
}

/* ---------- Print (docs and legal pages) ---------- */
@media print {
  :root { --bg: #fff; --fg: #111; --muted: #333; --dim: #555; --card: #f5f5f5; --card-2: #eee; --line: #ccc; --line-2: #bbb; }
  body { background: #fff; color: #111; }
  .nav, .sidebar, .toc, .docs-bar, .pager, footer, .skip, .prose-nav, .page-hero img, .search-dlg { display: none !important; }
  .docs-shell, .prose-shell { display: block; padding: 0; }
  .doc, .doc.prose { padding: 0; }
  .doc p, .doc li, .doc td { color: #111; }
  .doc a { color: #111; }
  .page-hero { padding: 0 0 16px; border: 0; }
  .page-hero::after { display: none; }
  .page-hero p { color: #333; }
}
