/* Self-hosted fonts (SIL Open Font License 1.1, files from Fontsource): Onest and Geist Mono. */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 300; font-display: swap; src: url(/assets/fonts/onest-latin-300-normal.woff2?v=ac15ec863f) 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: "Onest"; font-style: normal; font-weight: 300; font-display: swap; src: url(/assets/fonts/onest-latin-ext-300-normal.woff2?v=5120734a09) 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: "Onest"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/onest-latin-400-normal.woff2?v=93dfb945d2) 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: "Onest"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/onest-latin-ext-400-normal.woff2?v=f16900be50) 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: "Onest"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/onest-latin-500-normal.woff2?v=83c1e16166) 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: "Onest"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/onest-latin-ext-500-normal.woff2?v=243d6b5b30) 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: "Onest"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/onest-latin-600-normal.woff2?v=a56e6d2dcc) 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: "Onest"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/onest-latin-ext-600-normal.woff2?v=6e99f31334) 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: "Geist Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/geist-mono-latin-400-normal.woff2?v=3f98383b12) 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: "Geist Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/geist-mono-latin-ext-400-normal.woff2?v=8ede9cb664) 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: "Geist Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/geist-mono-latin-500-normal.woff2?v=72971bd490) 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: "Geist Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/geist-mono-latin-ext-500-normal.woff2?v=84c2a01e0e) 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; }
/* zacharybhenley.com v16: shared design tokens and primitives.
   Load order on every page: tokens.css, chrome.css, then the page's own CSS.
   Put this inline script in <head> before the CSS so the theme never flashes:
   <script>(function(){var q=new URLSearchParams(location.search),t=q.get('theme');if(!t){try{t=localStorage.getItem('zbh-theme')}catch(e){}}document.documentElement.dataset.theme=t||'dark';document.documentElement.dataset.ed=document.documentElement.dataset.ed||'all';document.documentElement.classList.add('js')})();</script>
   Fonts (Google Fonts only):
   <link href="https://fonts.googleapis.com/css2?family=Geist+Mono:wght@400;500&family=Onest:wght@300;400;500;600&display=swap" rel="stylesheet"> */

:root {
  --sans: "Onest", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;

  /* motion */
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);      /* expo-out, used for reveals */
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --dur-1: .2s; --dur-2: .4s; --dur-3: .8s; --dur-4: 1.2s;

  /* 8 pt spacing */
  --sp-h: 4px; --sp1: 8px; --sp2: 16px; --sp3: 24px; --sp4: 32px; --sp5: 40px; --sp6: 48px;
  --sp8: 64px; --sp10: 80px; --sp12: 96px; --sp16: 128px;
  --gut: clamp(16px, 3.4vw, 48px);
  --sec-y: clamp(72px, 8vw, 120px);              /* vertical padding of a section */
  --maxw: 1344px;

  /* radii */
  --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 22px; --r-xl: 28px; --r-pill: 999px;

  /* type scale */
  --t-display: clamp(42px, 4.6vw, 68px);
  --t-h2: clamp(32px, 3.6vw, 52px);
  --t-h3: clamp(20px, 1.7vw, 24px);
  --t-lead: 17px; --t-body: 16px; --t-small: 13.5px; --t-micro: 11px;

  --ok: #5ccf95;
  --tint: transparent;
}

/* dark is the default theme */
:root[data-theme="dark"] {
  --bg: #05070c; --bg-2: #0a0d14; --bg-3: #0f131c;
  --ink: #eef1f6; --ink-2: #b9c0cc; --muted: #8b94a4;
  --line: rgba(255, 255, 255, .085); --line-2: rgba(255, 255, 255, .16);
  --glass: rgba(13, 17, 26, .62); --glass-hi: rgba(255, 255, 255, .07);
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .65);
  --accent: #9fb7ff; --on-accent: #05070c; --s2: #4b5568;
  --warm: #e9b98c;
  color-scheme: dark;
}
:root[data-theme="dark"][data-ed="ecom"] { --accent: #e7c58f; }
:root[data-theme="dark"][data-ed="data"] { --accent: #82d8c4; }
:root[data-theme="dark"][data-ed="ops"] { --accent: #c4a8ff; }

:root[data-theme="light"] {
  --bg: #f2f3f5; --bg-2: #ffffff; --bg-3: #e9ebef;
  --ink: #0b0d12; --ink-2: #333944; --muted: #586070;
  --line: rgba(11, 13, 18, .09); --line-2: rgba(11, 13, 18, .18);
  --glass: rgba(255, 255, 255, .74); --glass-hi: rgba(255, 255, 255, .6);
  --shadow: 0 1px 2px rgba(15, 20, 30, .04), 0 24px 48px -28px rgba(15, 20, 30, .24);
  --accent: #3553c2; --on-accent: #ffffff; --s2: #b9bec8;
  --warm: #a2652a;
  color-scheme: light;
}
:root[data-theme="light"][data-ed="ecom"] { --accent: #8d5c14; }
:root[data-theme="light"][data-ed="data"] { --accent: #0d7361; }
:root[data-theme="light"][data-ed="ops"] { --accent: #6441bb; }

/* base */
* { box-sizing: border-box; }
/* overflow-x: clip on html AND body: iOS Safari ignores body-only overflow-x: hidden, which let pages drift sideways; clip keeps position: sticky working (Opus, Oct 7) */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--t-body)/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; transition: background-color .6s, color .6s; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
kbd { font: 500 10.5px/1 var(--mono); padding: 3px 5px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--muted); }
.k { color: var(--accent); transition: color .6s; }   /* SQL keyword */
.s { color: var(--ink); }                             /* SQL string */

/* glass + subtle depth (from Spatial glass): add data-tilt for the pointer tilt */
.glass { position: relative; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3); }
.glass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(380px circle at var(--mx, 30%) var(--my, -20%), var(--glass-hi), transparent 60%); opacity: var(--spec, .6); transition: opacity .5s; }
:root[data-theme="light"] .glass { box-shadow: var(--shadow); }
[data-tilt] { transition: transform .6s var(--ease); will-change: transform; }

/* section heads: numbered eyebrow, title, optional sub */
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 var(--sp2); font: 500 var(--t-micro)/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); transition: color .6s; }
.eyebrow .n { color: var(--muted); letter-spacing: .06em; }
.eyebrow .n::after { content: ""; display: inline-block; width: 24px; height: 1px; margin-left: 10px; vertical-align: 3px; background: var(--line-2); }
.sec-head { max-width: 860px; margin-bottom: var(--sp6); }
.sec-head.split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--sp3) var(--sp8); align-items: end; }
.sec-head h2, .h2 { margin: 0; font: 400 var(--t-h2)/1.06 var(--sans); letter-spacing: -.04em; text-wrap: balance; }
.sec-sub { margin: 0; max-width: 52ch; font-size: var(--t-body); line-height: 1.6; color: var(--ink-2); font-weight: 300; }
@media (max-width: 860px) { .sec-head.split { grid-template-columns: 1fr; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: var(--sp1); padding: 13px 22px; border-radius: var(--r-pill); text-decoration: none; font-size: 14.5px; font-weight: 500; border: 1px solid transparent; background: none; cursor: pointer; transition: transform .35s var(--ease), border-color .3s, background-color .6s, color .3s; }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.primary:hover { transform: translateY(-1px); }
.btn.ghost { border-color: var(--line-2); }
.btn.ghost.mono { font: 400 13px/1.2 var(--mono); }
.btn.ghost-s { border-color: var(--line-2); padding: 10px 16px; font-size: var(--t-small); }
.btn.ghost:hover, .btn.ghost-s:hover { border-color: var(--ink-2); }
.btn.big { padding: 17px 28px; font-size: 16px; }
.btn .arr { display: inline-block; transition: transform .45s var(--ease-out); }
.btn:hover .arr, a:hover > .arr { transform: translateX(3px); }
.btn .arr.ne { transform: none; }
.btn:hover .arr.ne { transform: translate(2px, -2px); }

/* scroll reveals (expo-out). chrome.js adds .in; only use below the first screen */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--rd, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* section backdrops: faint, distinct texture per section */
.bd-grid, .bd-dust, .bd-contour, .bd-dots, .bd-rings { position: relative; isolation: isolate; }
.bd-grid::before, .bd-dust::before, .bd-contour::before, .bd-dots::before, .bd-rings::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bd-grid::before { background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; background-position: -1px -1px; -webkit-mask: radial-gradient(80% 70% at 50% 40%, #000 20%, transparent 75%); mask: radial-gradient(80% 70% at 50% 40%, #000 20%, transparent 75%); opacity: .55; }
.bd-dust::before { background-image: radial-gradient(1px 1px at 12% 22%, var(--ink-2), transparent), radial-gradient(1px 1px at 68% 14%, var(--ink-2), transparent), radial-gradient(1.2px 1.2px at 84% 62%, var(--ink-2), transparent), radial-gradient(1px 1px at 32% 78%, var(--ink-2), transparent), radial-gradient(1px 1px at 52% 46%, var(--muted), transparent), radial-gradient(1px 1px at 92% 30%, var(--muted), transparent), radial-gradient(1px 1px at 6% 64%, var(--muted), transparent), radial-gradient(1px 1px at 44% 8%, var(--muted), transparent); background-size: 420px 300px; opacity: .35; -webkit-mask: linear-gradient(transparent, #000 18%, #000 82%, transparent); mask: linear-gradient(transparent, #000 18%, #000 82%, transparent); }
.bd-contour::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='320' viewBox='0 0 640 320' fill='none' stroke='%23889' stroke-width='1'%3E%3Cpath d='M-20 260C80 200 160 250 260 200S440 120 660 170'/%3E%3Cpath d='M-20 230C90 170 170 220 270 168S450 92 660 140'/%3E%3Cpath d='M-20 200C100 140 180 190 280 136S460 64 660 110'/%3E%3Cpath d='M-20 170C110 110 190 160 290 104S470 36 660 80'/%3E%3Cpath d='M-20 290C70 230 150 280 250 232S430 150 660 200'/%3E%3C/svg%3E"); background-size: 640px 320px; opacity: .12; -webkit-mask: radial-gradient(90% 80% at 60% 50%, #000, transparent 80%); mask: radial-gradient(90% 80% at 60% 50%, #000, transparent 80%); }
.bd-dots::before { background-image: radial-gradient(circle, var(--line-2) 1px, transparent 1.3px); background-size: 24px 24px; -webkit-mask: radial-gradient(70% 70% at 30% 30%, #000, transparent 75%); mask: radial-gradient(70% 70% at 30% 30%, #000, transparent 75%); opacity: .6; }
.bd-rings::before { background: repeating-radial-gradient(circle at 85% 20%, transparent 0 46px, var(--line) 46px 47px); -webkit-mask: radial-gradient(60% 70% at 85% 20%, #000, transparent 75%); mask: radial-gradient(60% 70% at 85% 20%, #000, transparent 75%); opacity: .8; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01s !important; animation: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
