/* ==========================================================================
   Aperi · base.css
   Shared design system for every page: tokens, type, layout, components,
   motion. Page-specific layout lives in home.css, service.css and flow.css.

   Direction: Apple-grade restraint (system type, generous space, springs,
   translucent chrome) on a phosphor-green terminal palette. Green is a
   signal, not a fill: it marks the one action, live states and focus.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts
   Sans is the platform system face (SF Pro on Apple devices, Segoe UI
   Variable on Windows). Mono is self-hosted Fragment Mono (SIL OFL).
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Fragment Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/fragment-mono-400-normal-latin.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: "Fragment Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/fragment-mono-400-normal-latin-ext.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;
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */
:root {
  color-scheme: dark;

  /* Colour: green-tinted neutrals so the black never reads as dead grey */
  --bg: #050706;
  --surface-1: #0a0d0b;
  --surface-2: #0e120f;
  --surface-3: #141915;
  --line: rgba(214, 255, 216, 0.08);
  --line-2: rgba(214, 255, 216, 0.13);
  --line-3: rgba(214, 255, 216, 0.22);
  --line-field: rgba(214, 255, 216, 0.36); /* text-field edge: 3.1:1+ on every surface (WCAG 1.4.11) */
  --text: #eef3ee;
  --text-2: #a3aca5;   /* 8.6:1 on --bg */
  --text-3: #7b847d;   /* 5.0:1 on --bg, 4.7:1 on --surface-2 */

  --green: #8dff90;    /* brand green (Candle A mark) */
  --green-hi: #b3ffb5;
  --green-ink: #03140a;
  --green-a06: rgba(141, 255, 144, 0.06);
  --green-a10: rgba(141, 255, 144, 0.1);
  --green-a16: rgba(141, 255, 144, 0.16);
  --green-a28: rgba(141, 255, 144, 0.28);
  --green-a50: rgba(141, 255, 144, 0.5);
  --amber: #ffc56e;
  --danger: #ff8a80;   /* 8.3:1 on --bg */

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Fragment Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --fs-hero: clamp(2.75rem, 1.15rem + 6.4vw, 6.25rem);   /* 44 → 100 */
  --fs-h1: clamp(2.5rem, 1.3rem + 4.6vw, 5rem);          /* 40 → 80 */
  --fs-h2: clamp(2.125rem, 1.25rem + 3.3vw, 4rem);       /* 34 → 64 */
  --fs-h3: clamp(1.5rem, 1.25rem + 0.85vw, 2rem);        /* 24 → 32 */
  --fs-h4: 1.3125rem;                                     /* 21 */
  --fs-lead: clamp(1.1875rem, 1.05rem + 0.5vw, 1.5rem);  /* 19 → 24 */
  --fs-body: 1.0625rem;                                   /* 17 */
  --fs-small: 0.9375rem;                                  /* 15 */
  --fs-mono: 0.8125rem;                                   /* 13 */
  --fs-mono-sm: 0.75rem;                                  /* 12 */

  /* Space (4pt base) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-7: 32px; --s-8: 40px; --s-9: 48px; --s-10: 64px;
  --s-11: 80px; --s-12: 96px; --s-13: 128px; --s-14: 160px;
  --section-y: clamp(96px, 7rem + 4vw, 176px);
  --gutter: clamp(20px, 4.5vw, 48px);
  --container: 1200px;
  --container-wide: 1320px;
  --nav-h: 64px;
  /* Cards: one padding and one gap everywhere, so boxes never change rhythm
     from page to page */
  --card-pad: clamp(24px, 2.6vw, 32px);
  --card-gap: 20px;

  /* Shape */
  --r-xs: 8px; --r-sm: 12px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px; --r-pill: 999px;

  /* Motion: critically damped springs sampled into linear() (no overshoot),
     plus one under-damped spring kept for momentum-driven moments. */
  --spring-smooth: linear(0, 0.0242, 0.083, 0.1607, 0.2466, 0.3338, 0.4178, 0.4961, 0.5674, 0.6311, 0.6872, 0.7361, 0.7783, 0.8145, 0.8453, 0.8713, 0.8933, 0.9117, 0.9271, 0.94, 0.9507, 0.9595, 0.9668, 0.9728, 0.9778, 0.9819, 0.9852, 0.988, 0.9902, 0.9921, 0.9935, 0.9948, 0.9958, 0.9966, 0.9972, 0.9977, 1);
  --spring-smooth-ms: 750ms;
  --spring-ui: linear(0, 0.0245, 0.0838, 0.1621, 0.2486, 0.3362, 0.4206, 0.4991, 0.5705, 0.6341, 0.6902, 0.7389, 0.781, 0.8169, 0.8475, 0.8734, 0.8951, 0.9134, 0.9286, 0.9412, 0.9518, 0.9605, 0.9676, 0.9736, 0.9784, 0.9824, 0.9857, 0.9884, 0.9905, 0.9923, 0.9938, 0.995, 0.9959, 0.9967, 0.9973, 0.9978, 1);
  --spring-ui-ms: 480ms;
  --spring-bounce: linear(0, 0.0228, 0.0807, 0.1604, 0.252, 0.3478, 0.4425, 0.5324, 0.615, 0.689, 0.7538, 0.8095, 0.8564, 0.8952, 0.9267, 0.9518, 0.9713, 0.9861, 0.997, 1.0047, 1.0098, 1.013, 1.0146, 1.0152, 1.0149, 1.014, 1.0128, 1.0115, 1.01, 1.0086, 1.0072, 1.0059, 1.0048, 1.0038, 1.0029, 1.0022, 1);
  --spring-bounce-ms: 520ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --press-ms: 90ms;
}
@media (max-width: 639px) {
  :root { --card-gap: 16px; }
}

/* --------------------------------------------------------------------------
   3. Reset and document
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:where(h1, h2, h3, h4) { text-wrap: balance; }
:where(p, li, dd) { text-wrap: pretty; }
::selection { background: var(--green); color: var(--green-ink); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--green); color: var(--green-ink); font-weight: 600;
  transform: translateY(-160%);
  transition: transform 200ms var(--ease-out);
}
.skip-link:focus-visible { transform: none; }

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: calc(var(--container-wide) + var(--gutter) * 2); }
.section { padding-block: var(--section-y); position: relative; }
.section + .section { padding-top: 0; }
.section-head {
  display: grid;
  gap: var(--s-5);
  max-width: 44rem;
  margin-bottom: clamp(48px, 5vw, 80px);
}
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
/* Desktop: title left, lead right, sharing a baseline row */
@media (min-width: 1000px) {
  .section-head--split {
    max-width: none;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(40px, 6vw, 96px);
    align-items: end;
  }
  .section-head--split > .eyebrow { grid-column: 1 / -1; }
  .section-head--split > .t-lead { padding-bottom: 0.1em; }
  @supports (align-items: last baseline) {
    .section-head--split { align-items: last baseline; }
    .section-head--split > .t-lead { padding-bottom: 0; }
  }
}

/* --------------------------------------------------------------------------
   5. Type
   -------------------------------------------------------------------------- */
.t-hero, .t-h1, .t-h2, .t-h3, .t-h4 { font-weight: 600; color: var(--text); }
.t-hero { font-size: var(--fs-hero); line-height: 1.02; letter-spacing: -0.034em; }
.t-h1   { font-size: var(--fs-h1);   line-height: 1.04; letter-spacing: -0.032em; }
.t-h2   { font-size: var(--fs-h2);   line-height: 1.06; letter-spacing: -0.03em; }
.t-h3   { font-size: var(--fs-h3);   line-height: 1.15; letter-spacing: -0.024em; }
.t-h4   { font-size: var(--fs-h4);   line-height: 1.25; letter-spacing: -0.018em; }
.t-lead { font-size: var(--fs-lead); line-height: 1.42; letter-spacing: -0.016em; color: var(--text-2); }
.t-body { font-size: var(--fs-body); line-height: 1.55; color: var(--text-2); }
.t-small { font-size: var(--fs-small); line-height: 1.5; color: var(--text-2); letter-spacing: -0.006em; }
.t-mono {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--text-3);
}
.t-strong { color: var(--text); }
/* Separator inside a mono meta line, e.g. "About a minute / Goes straight to Markus" */
.meta-sep { margin-inline: 0.75em; color: var(--text-3); }
.t-green { color: var(--green); }

/* A dimmer second line inside a headline: one idea, two weights of attention */
.t-dim { color: var(--text-3); }
/* Green headline line: a soft phosphor gradient, solid green as fallback */
.t-signal {
  color: var(--green);
  background: linear-gradient(180deg, var(--green-hi) 0%, var(--green) 55%, #5fe466 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Eyebrow: mono label with a live dot, used above section titles */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
}
.eyebrow__index { color: var(--green); }
.eyebrow--pill {
  padding: 9px 14px 9px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-a16), 0 0 12px var(--green-a50);
  flex: none;
}
.dot--live { animation: dot-pulse 2.4s ease-in-out infinite; }
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--green-a16), 0 0 12px var(--green-a50); }
  50% { box-shadow: 0 0 0 5px var(--green-a06), 0 0 16px var(--green-a28); }
}

/* --------------------------------------------------------------------------
   6. Buttons and links
   Feedback lands on press (pointer-down), not on release.
   -------------------------------------------------------------------------- */
.btn {
  --btn-h: 48px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--btn-h);
  padding-inline: 22px;
  border-radius: var(--r-pill);
  font-size: var(--fs-body);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--spring-ui-ms) var(--spring-ui),
    background-color 200ms var(--ease-out),
    border-color 200ms var(--ease-out),
    color 200ms var(--ease-out),
    box-shadow 300ms var(--ease-out);
}
.btn:active { transform: scale(0.97); transition-duration: var(--press-ms); }
.btn--sm { --btn-h: 38px; padding-inline: 16px; font-size: var(--fs-small); gap: 8px; }
.btn--lg { --btn-h: 56px; padding-inline: 28px; font-size: 1.125rem; }

.btn--primary {
  background: var(--green);
  color: var(--green-ink);
  box-shadow: 0 0 0 0 var(--green-a16), 0 1px 0 rgba(255, 255, 255, 0.35) inset;
}
.btn--primary:hover {
  background: var(--green-hi);
  box-shadow: 0 0 0 5px var(--green-a10), 0 10px 32px -8px var(--green-a50), 0 1px 0 rgba(255, 255, 255, 0.4) inset;
}
.btn--secondary {
  background: rgba(238, 243, 238, 0.06);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.btn--secondary:hover { background: rgba(238, 243, 238, 0.1); box-shadow: inset 0 0 0 1px var(--line-3); }
.btn--ghost { color: var(--text-2); padding-inline: 14px; }
.btn--ghost:hover { color: var(--text); background: rgba(238, 243, 238, 0.05); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

/* The arrow nudges toward where the button goes */
.btn__arrow, .link-arrow__icon {
  width: 16px; height: 16px; flex: none;
  transition: transform var(--spring-ui-ms) var(--spring-ui);
}
.btn:hover .btn__arrow, .link-arrow:hover .link-arrow__icon { transform: translateX(3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-weight: 500;
  border-radius: 6px;
}
.link-arrow:hover { color: var(--green-hi); }
.link-inline {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-3);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.link-inline:hover { text-decoration-color: var(--green); color: var(--green-hi); }

/* Keyboard hint chip, e.g. "Enter ↵" */
.kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--text-2);
}

/* --------------------------------------------------------------------------
   7. Navigation: a translucent material layer, content scrolls under it.
   The hairline appears only once content actually sits beneath it.
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
}
/* The material lives on a pseudo-element. A backdrop-filter on .nav itself
   would make it a backdrop root and stop the mobile sheet's blur at the bar. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transition: background-color 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.nav[data-scrolled="true"]::before {
  background: rgba(5, 7, 6, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
}
/* Desktop: links sit on the page's centre axis, whatever the logo and CTA widths */
@media (min-width: 861px) {
  .nav__inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .nav__inner > .logo { justify-self: start; }
  .nav__actions { justify-self: end; }
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  border-radius: 8px;
}
.logo__mark { width: 28px; height: 28px; color: var(--green); margin: -2px 0 0 -4px; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: inline-flex; align-items: center;
  height: 36px; padding-inline: 14px;
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  color: var(--text-2);
  transition: color 200ms var(--ease-out), background-color 200ms var(--ease-out);
}
.nav__link:hover { color: var(--text); background: rgba(238, 243, 238, 0.05); }
.nav__link[aria-current="page"] { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__menu-btn {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--r-pill);
  align-items: center; justify-content: center;
  color: var(--text);
}
.nav__menu-btn:hover { background: rgba(238, 243, 238, 0.06); }
.nav__menu-icon { width: 18px; height: 18px; }
.nav__menu-icon line { transition: transform var(--spring-ui-ms) var(--spring-ui), opacity 150ms; transform-origin: 9px 9px; }
.nav[data-open="true"] .nav__menu-icon line:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav[data-open="true"] .nav__menu-icon line:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* Mobile sheet: originates from the menu button and returns to it */
.nav__sheet {
  position: absolute;
  top: calc(var(--nav-h) - 4px);
  right: var(--gutter);
  left: var(--gutter);
  padding: 8px;
  border-radius: var(--r-lg);
  background: rgba(14, 18, 15, 0.86);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 60px -12px rgba(0, 0, 0, 0.7);
  transform-origin: top right;
  opacity: 0;
  transform: scale(0.94) translateY(-6px);
  visibility: hidden;
  transition: opacity 180ms var(--ease-out), transform var(--spring-ui-ms) var(--spring-ui), visibility 0s linear 180ms;
}
.nav[data-open="true"] .nav__sheet {
  opacity: 1; transform: none; visibility: visible;
  transition: opacity 180ms var(--ease-out), transform var(--spring-ui-ms) var(--spring-ui), visibility 0s;
}
.nav__sheet a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 52px; padding: 0 16px;
  border-radius: var(--r-md);
  font-size: 1.0625rem; color: var(--text);
}
.nav__sheet a:hover, .nav__sheet a:focus-visible { background: rgba(238, 243, 238, 0.06); }
.nav__sheet hr { border: 0; height: 1px; background: var(--line); margin: 6px 12px; }
.nav__sheet .t-mono { padding: 12px 16px 6px; }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__menu-btn { display: inline-flex; }
  /* Without JavaScript the menu can't open: no dead control (the footer
     carries the full navigation) */
  html:not(.js) .nav__menu-btn { display: none; }
}
@media (min-width: 861px) {
  .nav__sheet { display: none; }
}

/* --------------------------------------------------------------------------
   8. Surfaces
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface-1) 100%);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  isolation: isolate;
}
/* Pointer spotlight: a faint green light follows the cursor across the card */
.card--spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, -20%), var(--green-a06), transparent 42%);
  opacity: 0;
  transition: opacity 400ms var(--ease-out);
  z-index: -1;
  pointer-events: none;
}
.card--spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, -20%), var(--green-a50), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 400ms var(--ease-out);
  pointer-events: none;
}
.card--spotlight:hover::before, .card--spotlight:hover::after,
.card--spotlight:focus-within::before, .card--spotlight:focus-within::after { opacity: 1; }

/* Hairline divider */
.rule { height: 1px; border: 0; margin: 0; background: var(--line); }

/* Check list used in cards and service pages */
.checklist { display: grid; gap: 12px; padding: 0; list-style: none; }
.checklist li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  font-size: var(--fs-small);
  line-height: 1.45;
  color: var(--text-2);
}
.checklist li::before {
  content: "";
  width: 18px; height: 18px; margin-top: 1px;
  border-radius: 6px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%238dff90' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat,
    var(--green-a10);
}

/* --------------------------------------------------------------------------
   9. Forms (shared by the contact form; the flow has its own big variant)
   -------------------------------------------------------------------------- */
.field { display: grid; gap: 8px; }
.field__label { font-size: var(--fs-small); font-weight: 500; color: var(--text); letter-spacing: -0.008em; }
.field__hint { font-size: 0.8125rem; color: var(--text-3); }
.input, .textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 0;
  border-radius: var(--r-sm);
  background: rgba(238, 243, 238, 0.04);
  box-shadow: inset 0 0 0 1px var(--line-field);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.4;
  outline: none;
  transition: box-shadow 200ms var(--ease-out), background-color 200ms var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}
.textarea { min-height: 132px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); opacity: 1; }
.input:hover, .textarea:hover { box-shadow: inset 0 0 0 1px rgba(214, 255, 216, 0.5); }
.input:focus, .textarea:focus {
  background: rgba(141, 255, 144, 0.035);
  box-shadow: inset 0 0 0 1px var(--green), 0 0 0 4px var(--green-a10);
}
.field[data-invalid="true"] .input, .field[data-invalid="true"] .textarea {
  box-shadow: inset 0 0 0 1px var(--danger), 0 0 0 4px rgba(255, 138, 128, 0.1);
}
.field__error { font-size: 0.8125rem; color: var(--danger); min-height: 0; }
.field__error:empty { display: none; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Turnstile renders invisibly ("interaction-only"); it only takes space when it
   actually needs the visitor to do something. */
.turnstile-slot { display: flex; }
.turnstile-slot:empty { display: none; }

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  padding-block: clamp(64px, 8vw, 112px) 40px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--s-9) var(--s-7);
}
.footer__brand { display: grid; gap: var(--s-4); align-content: start; max-width: 22rem; }
.footer__col { display: grid; gap: 14px; align-content: start; }
.footer__col h2 {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}
.footer__col a { font-size: var(--fs-small); color: var(--text-2); transition: color 200ms var(--ease-out); border-radius: 4px; justify-self: start; }
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
/* Oversized outline wordmark, centred, fading into the page edge. Tracking
   stays loose enough that outlined letters never cross; the mask starts dim
   so the floating dot of the i doesn't outshine the word. */
.footer__wordmark {
  margin: clamp(40px, 6vw, 72px) auto calc(-0.2em);
  font-size: clamp(6rem, 33vw, 30rem);
  line-height: 0.8;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(214, 255, 216, 0.1);
  user-select: none;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, #000 30%, transparent 85%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, #000 30%, transparent 85%);
}
@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (min-width: 561px) and (max-width: 860px) {
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .footer__wordmark { display: none; }
}

/* --------------------------------------------------------------------------
   11. Atmosphere: dot grid and phosphor glow
   -------------------------------------------------------------------------- */
.bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(214, 255, 216, 0.11) 1px, transparent 1.2px);
  background-size: 28px 28px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}
.bg-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(141, 255, 144, 0.16), rgba(141, 255, 144, 0.05) 55%, transparent);
  filter: blur(10px);
}

/* --------------------------------------------------------------------------
   12. Reveal on scroll (site.js adds .is-in). Content stays visible
   without JavaScript: the hidden start state needs html.js.
   -------------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 600ms var(--ease-out),
    transform var(--spring-smooth-ms) var(--spring-smooth);
  transition-delay: calc(var(--reveal-i, 0) * 70ms);
}
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: translateY(28px) scale(0.98); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   13. Reduced motion, transparency and contrast
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .js [data-reveal] { transform: none !important; transition: opacity 200ms linear !important; transition-delay: 0ms !important; }
  .dot--live { animation: none; }
  .btn, .btn__arrow, .link-arrow__icon { transition-duration: 0ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav[data-scrolled="true"]::before, .nav__sheet { background: var(--surface-2); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --line: rgba(214, 255, 216, 0.24); --line-2: rgba(214, 255, 216, 0.34); --line-3: rgba(214, 255, 216, 0.5); --text-2: #c9d1cb; --text-3: #a9b2ab; }
}
@media (forced-colors: active) {
  .btn, .card, .input, .textarea { border: 1px solid CanvasText; }
  .t-signal { -webkit-text-fill-color: currentColor; background: none; }
}
