/* Self-hosted OFL fonts (see THIRD-PARTY-NOTICES.txt); Latin Extended files download only when used. */
@font-face { font-family: "Funnel Display"; src: url("../fonts/FunnelDisplay-Variable.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; 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: "Funnel Display"; src: url("../fonts/FunnelDisplay-Variable-LatinExt.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; 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: "Funnel Sans"; src: url("../fonts/FunnelSans-Variable.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; 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: "Funnel Sans"; src: url("../fonts/FunnelSans-Variable-LatinExt.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; 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: "Funnel Sans"; src: url("../fonts/FunnelSans-Italic-Variable.woff2") format("woff2"); font-weight: 300 800; font-style: italic; font-display: swap; 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: "Funnel Sans"; src: url("../fonts/FunnelSans-Italic-Variable-LatinExt.woff2") format("woff2"); font-weight: 300 800; font-style: italic; font-display: swap; 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: "Martian Mono"; src: url("../fonts/MartianMono-Variable.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; 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: "Martian Mono"; src: url("../fonts/MartianMono-Variable-LatinExt.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; 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; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  font: 400 1rem/1.6 var(--font);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(70% 60% at 85% 30%, var(--bg-glow), transparent 60%), var(--bg);
}
/* Film grain: fixed, static, non-interactive */
body::after {
  content: ""; position: fixed; inset: 0; z-index: var(--z-grain); pointer-events: none; opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[hidden] { display: none !important; } /* display rules must not defeat hidden */
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
/* Funnel Display has no italic: headings emphasise with colour, never a synthesised slant. */
h1 em, h2 em, h3 em { font-style: normal; }
address { font-style: normal; }
.icon { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-ink); font-weight: 600; }
.skip-link:focus { top: 16px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 .95rem/1 var(--font); white-space: nowrap; border: 1px solid transparent; cursor: pointer;
  transition: scale .3s var(--ease), box-shadow .3s var(--ease), background-color .3s, color .3s; /* GSAP drives transform (magnetic) */
}
.btn:active { scale: .98; }
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { background: var(--btn-bg); color: var(--btn-ink); box-shadow: 0 10px 30px -12px rgb(var(--shadow) / .55); }
.btn--primary:hover { box-shadow: 0 16px 40px -14px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn--glass { background: var(--surface); border-color: var(--edge); color: var(--ink); box-shadow: 0 8px 30px -16px rgb(var(--shadow) / .35); }

/* Custom cursor (fine pointers, motion allowed; cursor.js turns it on) */
.cursor { display: none; }
.has-cursor body, .has-cursor a, .has-cursor button { cursor: none; }
.has-cursor .stage canvas, .has-cursor .stage canvas:active { cursor: none; }
.has-cursor :is(input, select, textarea, label) { cursor: auto; } /* form fields keep the native cursor (cursor.js hides the custom one); segment labels keep health.css's pointer only because it loads later at equal specificity */
.cursor.is-field span { opacity: 0; }
.has-cursor .cursor { display: block; }
.cursor span { position: fixed; left: 0; top: 0; z-index: var(--z-cursor); pointer-events: none; border-radius: 50%; will-change: transform; transition: opacity .2s; }
.cursor .dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--ink); }
.cursor .ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid var(--ring);
  display: grid; place-items: center; font: 600 11px/1 var(--font); color: transparent;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .2s, opacity .2s;
}
.cursor.is-label .ring { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-ink); }
.cursor.is-label .dot, .cursor.is-hidden span { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --surface: var(--surface-solid); --chip-bg: var(--surface-solid); }
}
@media (forced-colors: active) {
  .has-cursor * { cursor: auto !important; }
  .cursor { display: none !important; }
}
