/* Nexus public pages (homepage + legal).
   One stylesheet, no build step, nothing loaded from another host.

   Two worlds: paper (daylight, where documents live) and night (inside the
   memory). Lime is used for exactly one thing everywhere: the piece that was
   found. Glass is kept for what floats above content (the bar, the caption,
   controls) and is never used as a content surface. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
}

:root {
  --paper: #fbfbfd;
  --panel: #f2f2f5;
  --card: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --line: rgb(0 0 0 / .1);

  --night: #040706;
  --snow: #f5f5f7;
  --fog: #a3a8a5;
  --night-line: rgb(255 255 255 / .14);

  --lime: #b4ec3c;
  --lime-deep: #3d6900;
  --stop: #d70015;

  /* Apple's own faces where the device has them, Inter everywhere else. */
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --lift: 0 1px 2px rgb(0 0 0 / .05), 0 14px 36px -14px rgb(0 0 0 / .16);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.011em;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
}

h1, h2, h3, p, ol, ul { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; letter-spacing: inherit; color: inherit; }
[hidden] { display: none !important; }

h1 {
  font-size: clamp(46px, min(8.4vw, 12.4vh), 104px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.042em;
}
h2 {
  font-size: clamp(34px, 5.2vw, 64px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.037em;
  text-wrap: balance;
}
h3 {
  font-size: 21px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.022em;
}

.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }

.sub {
  max-width: 62ch;
  margin-top: 18px;
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.42;
  letter-spacing: -.014em;
  color: var(--ink-2);
}

.fine { font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.nb { white-space: nowrap; }   /* a name that must not break across lines */

.skip {
  position: fixed; z-index: 100; top: 12px; left: 12px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 600; text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

:focus-visible { outline: 3px solid var(--lime-deep); outline-offset: 3px; border-radius: 8px; }
[data-tone="dark"] :focus-visible,
.film.is-dark :focus-visible,
[data-nav-tone="dark"] .nav :focus-visible { outline-color: var(--lime); }

/* ── Glass ──────────────────────────────────────────────────────────────────
   A clear body, a bright rim on top, a soft one underneath, and a highlight
   that follows the pointer (--gx / --gy are set by site.js on hover). */
.glass {
  --g-body: rgb(255 255 255 / .56);
  --g-rim: rgb(255 255 255 / .95);
  --g-edge: rgb(0 0 0 / .07);
  --g-glow: rgb(255 255 255 / .55);
  --g-shadow: 0 10px 34px rgb(22 32 26 / .13), 0 1px 3px rgb(22 32 26 / .1);
  position: relative;
  isolation: isolate;
  background: var(--g-body);
  -webkit-backdrop-filter: blur(16px) saturate(1.9);
  backdrop-filter: blur(16px) saturate(1.9);
  box-shadow:
    inset 0 0 0 1px var(--g-edge),
    inset 0 1px 0 0 var(--g-rim),
    inset 0 -10px 14px -12px var(--g-glow),
    var(--g-shadow);
}
.glass::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: radial-gradient(140px circle at var(--gx, 50%) var(--gy, -40%), var(--g-glow), transparent 70%);
  opacity: var(--g-on, 0);
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
/* Where the browser can bend what is behind the glass (Chromium), site.js
   builds a lens for the element and names it here. */
.glass.has-lens {
  -webkit-backdrop-filter: var(--lens) blur(3px) saturate(1.9);
  backdrop-filter: var(--lens) blur(3px) saturate(1.9);
  --g-body: rgb(255 255 255 / .3);
}

[data-nav-tone="dark"] .nav.glass,
.film.is-dark .glass {
  --g-body: rgb(44 50 47 / .44);
  --g-rim: rgb(255 255 255 / .36);
  --g-edge: rgb(255 255 255 / .1);
  --g-glow: rgb(255 255 255 / .16);
  --g-shadow: 0 14px 40px rgb(0 0 0 / .5);
  color: var(--snow);
}
[data-nav-tone="dark"] .nav.glass.has-lens,
.film.is-dark .glass.has-lens { --g-body: rgb(44 50 47 / .26); }

/* ── Pills ────────────────────────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 22px;
  border: 0; border-radius: 999px;
  font-size: 16px; font-weight: 600; letter-spacing: -.016em; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease), opacity .2s var(--ease);
}
.pill:active { transform: scale(.97); }
.pill-solid { background: var(--ink); color: #fff; }
.pill-solid:hover { background: #000; }
.pill-tint { background: var(--lime); color: #12210a; }
.pill-tint:hover { background: #c3f455; }
.pill-quiet { height: 32px; padding: 0 14px; font-size: 13px; background: rgb(0 0 0 / .06); }
.pill-quiet:hover { background: rgb(0 0 0 / .1); }
.pill-big { height: 58px; padding: 0 30px; font-size: 19px; }

/* ── Floating bar ─────────────────────────────────────────────────────────── */
.nav {
  position: fixed; z-index: 50;
  top: max(12px, env(safe-area-inset-top));
  left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px;
  max-width: calc(100vw - 24px);
  padding: 6px 6px 6px 16px;
  border-radius: 999px;
  color: var(--ink);
  transition: color .4s var(--ease), background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.brand {
  display: flex; align-items: center; gap: 8px;
  min-height: 36px; padding-right: 10px;
  font-size: 16px; font-weight: 650; letter-spacing: -.02em;
  text-decoration: none; color: inherit;
  -webkit-user-select: none; user-select: none;
  touch-action: manipulation; cursor: default;
}
a.brand { cursor: pointer; }
.nav-links { display: flex; }
.nav-links a {
  padding: 8px 12px; border-radius: 999px;
  font-size: 14px; font-weight: 500; white-space: nowrap;
  text-decoration: none; opacity: .76;
  transition: opacity .2s var(--ease), background-color .2s var(--ease);
}
.nav-links a:hover { opacity: 1; background: rgb(127 127 127 / .16); }
.nav-cta { height: 36px; padding: 0 16px; font-size: 14px; margin-left: 6px; }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav { gap: 14px; }
}

/* ── The scroll film ──────────────────────────────────────────────────────────
   Without script (or with reduced motion) this is an ordinary section: the
   headline, the documents drawn once, the three steps as text. film.js turns
   it into a pinned stage by adding .film-live to <html>. */
.film {
  --film-bg: var(--paper);
  --film-fg: var(--ink);
  --film-fg2: var(--ink-2);
  position: relative;
  background: var(--film-bg);
  color: var(--film-fg);
}
.film-pin { position: relative; overflow: hidden; }
.film-canvas {
  position: absolute; inset: 0 0 auto 0;
  width: 100%; height: 100svh;
  display: block;
}
.film-intro {
  position: relative; z-index: 2;
  min-height: 100svh;
  max-width: 940px; margin: 0 auto;
  padding: clamp(92px, 14.5vh, 150px) 24px 0;
  text-align: center;
}
.lede {
  max-width: 34em; margin: clamp(14px, 2.4vh, 26px) auto 0;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.42; letter-spacing: -.014em;
  color: var(--film-fg2);
  text-wrap: pretty;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: clamp(18px, 3vh, 30px); }

.film-caption {
  position: relative; z-index: 3;
  width: min(580px, calc(100vw - 32px));
  margin: 0 auto 72px;
  padding: 22px 26px 24px;
  border-radius: 30px;
  display: grid; gap: 22px;
}
.film-steps { display: none; }
.film-act h2 { font-size: clamp(22px, 2.3vw, 27px); letter-spacing: -.028em; line-height: 1.15; }
.film-act p { margin-top: 7px; font-size: 16px; line-height: 1.45; color: var(--film-fg2); text-wrap: pretty; }
.film-hint { display: none; }

.film-live .film { height: 500vh; }
.film-live .film-pin { position: sticky; top: 0; height: 100svh; }
.film-live .film-canvas { height: 100%; }
.film-live .film-intro {
  min-height: 0;
  opacity: var(--intro, 1);
  transform: translateY(calc((1 - var(--intro, 1)) * -34px)) scale(calc(.955 + .045 * var(--intro, 1)));
  transform-origin: 50% 30%;
  will-change: opacity, transform;
}
.film-live .film.intro-gone .film-intro { visibility: hidden; }
.film-live .film-caption {
  position: absolute; left: 50%;
  bottom: max(26px, 4.5vh);
  margin: 0; gap: 0;
  opacity: var(--cap, 0);
  transform: translate(-50%, calc((1 - var(--cap, 0)) * 26px));
  will-change: opacity, transform;
}
.film-live .film.cap-gone .film-caption { visibility: hidden; }
.film-live .film-steps {
  display: flex; gap: 6px;
  margin: 0 0 15px; padding: 0; list-style: none;
}
.film-live .film-steps li {
  flex: 1; height: 3px; border-radius: 3px; overflow: hidden;
  background: rgb(127 127 127 / .3);
}
.film-live .film-steps li::after {
  content: ""; display: block; height: 100%;
  background: currentColor;
  transform-origin: 0 50%; transform: scaleX(var(--s, 0));
}
.film-live .film-act {
  grid-area: 2 / 1;
  opacity: 0; transform: translateY(10px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  pointer-events: none;
}
.film-live .film[data-act="1"] .film-act[data-act="1"],
.film-live .film[data-act="2"] .film-act[data-act="2"],
.film-live .film[data-act="3"] .film-act[data-act="3"] { opacity: 1; transform: none; pointer-events: auto; }
.film-live .film-hint {
  display: block;
  margin-top: 18px;
  font-size: 14px; font-weight: 500;
  color: var(--film-fg2);
}

/* ── Right now ────────────────────────────────────────────────────────────── */
.ledger {
  background: var(--night); color: var(--snow);
  padding: clamp(110px, 20vh, 220px) 24px clamp(90px, 15vh, 170px);
  text-align: center;
}
.ledger-line {
  max-width: 1040px; margin: 0 auto;
  font-size: clamp(29px, 4.7vw, 66px);
  font-weight: 650; line-height: 1.12; letter-spacing: -.038em;
  color: rgb(245 245 247 / .5);
  text-wrap: balance;
}
.ledger-line b { font-weight: 700; color: var(--lime); font-variant-numeric: tabular-nums; }
.ledger-note { margin-top: 30px; font-size: 15px; color: var(--fog); }

/* ── The model ────────────────────────────────────────────────────────────── */
.model { background: var(--night); color: var(--snow); }
.model-pin {
  display: grid; place-items: center; gap: 72px;
  padding: 120px 24px 96px;
  text-align: center;
}
.haiku p {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(30px, 5.2vw, 76px);
  line-height: 1.2; letter-spacing: -.012em;
}
.plate-over { font-size: clamp(17px, 1.7vw, 22px); font-weight: 500; color: var(--fog); }
.plate h2 {
  margin-top: .08em;
  font-size: clamp(50px, 11.6vw, 184px);
  line-height: .96; letter-spacing: -.055em;
}
.plate-under { margin-top: 1.2em; font-size: clamp(16px, 1.5vw, 20px); color: var(--fog); }
/* a default model with no story of its own: the name and one line, not pinned */
.model-plain .model-pin { min-height: 82svh; padding-bottom: 120px; }
.model-plain .plate-under { max-width: 36em; margin-inline: auto; text-wrap: balance; }

.model-live .model-stage { height: 420vh; }
.model-live .model-pin { position: sticky; top: 0; height: 100svh; padding: 0 24px; gap: 0; }
.model-live .haiku, .model-live .plate { grid-area: 1 / 1; }
.model-live .haiku { transition: opacity .7s var(--ease), transform .9s var(--ease); }
.model-live .haiku p {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .9s var(--ease);
}
.model-live .model[data-step="1"] .haiku p:nth-child(1),
.model-live .model[data-step="2"] .haiku p:nth-child(2),
.model-live .model[data-step="3"] .haiku p:nth-child(3),
.model-live .model[data-step="4"] .haiku p,
.model-live .model[data-step="5"] .haiku p { opacity: 1; transform: none; }
.model-live .model[data-step="2"] .haiku p:nth-child(1),
.model-live .model[data-step="3"] .haiku p:nth-child(-n+2) { opacity: .34; transform: none; }
.model-live .model[data-step="5"] .haiku { opacity: 0; transform: translateY(-9vh) scale(.94); }
.model-live .plate {
  opacity: 0; transform: translateY(5vh) scale(.965);
  transition: opacity .8s var(--ease), transform 1s var(--ease);
}
.model-live .model[data-step="5"] .plate { opacity: 1; transform: none; }

.model-facts {
  width: min(1120px, calc(100% - 48px)); margin: 0 auto;
  padding: 0 0 clamp(96px, 15vh, 170px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.model-facts > div { padding-top: 18px; border-top: 1px solid var(--night-line); }
.model-facts h3 { font-size: 19px; }
.model-facts p { margin-top: 8px; font-size: 16px; line-height: 1.45; color: var(--fog); }
/* after the pinned scene the name sits mid-screen: bring the facts up under it */
.model-live .model-facts { position: relative; margin-top: -17vh; }
@media (max-width: 960px) { .model-facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .model-facts { grid-template-columns: 1fr; gap: 24px; } }

/* ── The worked example ───────────────────────────────────────────────────── */
.try, .built, .promises { background: var(--paper); }
.cost { background: var(--panel); }
.try, .cost { padding: clamp(92px, 13vh, 150px) 0; }
.built { padding: clamp(92px, 13vh, 150px) 0 0; }
.promises { padding: clamp(84px, 12vh, 130px) 0 clamp(96px, 14vh, 160px); }

.desk {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
  margin-top: 54px;
}
.doc {
  display: flex; flex-direction: column;
  padding: 18px 20px 16px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--lift);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.try-live .doc { opacity: .5; transform: translateY(10px); }
.try-live .doc.is-in { opacity: 1; transform: none; }
.doc-head { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12.5px; color: var(--ink-2); }
.doc-kind { flex: none; padding: 2px 7px; border-radius: 6px; background: var(--panel); font-weight: 650; color: var(--ink); }
.doc-file { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-title { margin-top: 14px; font-size: 20px; }
.doc-lines { margin: 8px 0 0; padding: 0; list-style: none; }
.doc-lines li {
  padding: 5px 0;
  font-size: 15px; line-height: 1.46; letter-spacing: -.008em;
  color: #2c2c30;
  transition: opacity .4s var(--ease);
}
/* The highlighter: a lime stroke that runs under a line while it is being
   read, and stays on the lines an answer came from. */
.doc-lines span {
  margin: -1px -3px; padding: 1px 3px; border-radius: 4px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(var(--lime), var(--lime)) no-repeat 0 0 / 0% 100%;
  transition: background-size .55s var(--ease);
}
.doc-lines li.is-scan span { background-size: 100% 100%; transition-duration: .22s; }
.doc-lines li.is-found span { background-size: 100% 100%; }
.desk.has-answer .doc-lines li:not(.is-found) { opacity: .36; }
.doc-status {
  margin-top: auto; padding-top: 14px;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
}
.doc.is-kept .doc-status { color: var(--lime-deep); }

.talk {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 32px;
  margin-top: 22px; align-items: start;
}
.chat { border-radius: 28px; background: var(--card); box-shadow: var(--lift); overflow: hidden; }
.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--line);
}
.chat-head p { flex: 1; min-width: 0; display: grid; font-size: 15px; line-height: 1.25; }
.chat-head span { font-size: 13px; color: var(--ink-2); }
.chat-log { display: flex; flex-direction: column; gap: 8px; min-height: 196px; padding: 18px; }
.chat-log:empty::before {
  content: "Nothing asked yet.";
  margin: auto; font-size: 15px; color: var(--ink-2);
}
.msg {
  max-width: min(82%, 46ch);
  padding: 10px 15px; border-radius: 21px;
  font-size: 16px; line-height: 1.4;
}
@keyframes msg { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.msg { animation: msg .35s var(--ease) both; }
.msg.you { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 7px; }
.msg.it { align-self: flex-start; background: var(--panel); border-bottom-left-radius: 7px; }
.msg.is-typing { display: flex; gap: 5px; padding: 15px 16px; }
.msg.is-typing i {
  width: 7px; height: 7px; border-radius: 50%; background: #9a9aa0;
  animation: dot 1.1s var(--ease) infinite;
}
.msg.is-typing i:nth-child(2) { animation-delay: .15s; }
.msg.is-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px 18px; border-top: 1px solid var(--line); }
.chip {
  padding: 9px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  font-size: 15px; font-weight: 500; text-align: left; cursor: pointer;
  transition: background-color .2s var(--ease), opacity .3s var(--ease), transform .2s var(--ease);
}
.chip:hover:not(:disabled) { background: var(--panel); }
.chip:active:not(:disabled) { transform: scale(.97); }
.chip:disabled { opacity: .4; cursor: default; }
.chip.is-asked { background: var(--panel); color: var(--ink-2); }
.talk-note {
  padding-top: 18px;
  font-size: clamp(17px, 1.5vw, 20px); line-height: 1.42; letter-spacing: -.014em;
  color: var(--ink);
  text-wrap: pretty;
}

@media (max-width: 900px) {
  .desk {
    display: flex; gap: 14px;
    margin-inline: -24px; padding: 6px 24px 20px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .desk::-webkit-scrollbar { display: none; }
  .doc { flex: 0 0 min(80vw, 330px); scroll-snap-align: center; }
  .talk { grid-template-columns: 1fr; gap: 6px; margin-top: 8px; }
  .msg { max-width: 88%; }
}

/* ── Cost ─────────────────────────────────────────────────────────────────── */
.meter {
  margin-top: 46px; padding: clamp(22px, 3.2vw, 42px);
  border-radius: 28px; background: var(--card); box-shadow: var(--lift);
}
.meter-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; }
.meter-top label { font-size: 17px; font-weight: 600; }
.meter-top output {
  font-size: clamp(30px, 4.4vw, 48px); font-weight: 700; line-height: 1.05; letter-spacing: -.038em;
  font-variant-numeric: tabular-nums;
}
.slider {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; height: 34px; margin: 12px 0 24px;
  background: transparent; cursor: pointer;
}
.slider::-webkit-slider-runnable-track {
  height: 6px; border-radius: 6px;
  background: linear-gradient(to right, var(--ink) var(--fill, 50%), rgb(0 0 0 / .12) var(--fill, 50%));
}
.slider::-moz-range-track { height: 6px; border-radius: 6px; background: rgb(0 0 0 / .12); }
.slider::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--ink); }
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 42px; height: 28px; margin-top: -11px; border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 .5px rgb(0 0 0 / .1), 0 1px 2px rgb(0 0 0 / .2), 0 8px 18px rgb(0 0 0 / .16);
  transition: transform .2s var(--ease);
}
.slider::-moz-range-thumb {
  width: 42px; height: 28px; border: 0; border-radius: 999px; background: #fff;
  box-shadow: inset 0 0 0 .5px rgb(0 0 0 / .1), 0 1px 2px rgb(0 0 0 / .2), 0 8px 18px rgb(0 0 0 / .16);
}
.slider:active::-webkit-slider-thumb { transform: scale(1.12, 1.18); }
.meter-row {
  display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 6px 22px; align-items: center;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.meter-name { font-size: 16px; font-weight: 600; }
.meter-bar { height: 14px; border-radius: 14px; background: rgb(0 0 0 / .06); overflow: hidden; }
.meter-bar i {
  display: block; height: 100%; width: 66.7%; border-radius: inherit;
  background: var(--ink);
  transition: background-color .3s var(--ease);
}
.meter-row.is-over .meter-bar i { background: var(--stop); }
.meter-row.is-over .meter-read { color: var(--stop); }
.is-nexus .meter-bar i { width: 12px; background: var(--lime); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .14); }
.meter-read { grid-column: 2; font-size: 15px; color: var(--ink-2); transition: color .3s var(--ease); }
.meter .fine { margin: 0; padding-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 680px) {
  .meter-row { grid-template-columns: 1fr; }
  .meter-read { grid-column: 1; }
}

/* ── In use, promises ─────────────────────────────────────────────────────── */
/* the section has no bottom padding, so the card's shadow spills into .promises:
   layer it above that section's background, or the shadow shows only on hover */
.built-card {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 24px;
  max-width: 780px; margin-top: 36px; padding: 26px 30px;
  border-radius: 28px; background: var(--card); box-shadow: var(--lift);
  text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.built-card:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgb(0 0 0 / .05), 0 22px 44px -16px rgb(0 0 0 / .2); }
.built-card img { flex: none; width: 72px; height: 72px; object-fit: contain; border-radius: 18px; background: var(--panel); }
.built-card p { margin-top: 5px; color: var(--ink-2); }
.built-link { display: inline-block; margin-top: 9px; font-size: 15px; font-weight: 600; color: var(--lime-deep); }
@media (max-width: 560px) { .built-card { flex-direction: column; align-items: flex-start; gap: 16px; padding: 22px; } }

.promise-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 42px; }
.promise-list p { margin-top: 8px; color: var(--ink-2); }
.promise-more { margin-top: 36px; font-size: 15px; color: var(--ink-2); }
.promise-more a { color: var(--ink); text-underline-offset: 3px; }
@media (max-width: 820px) { .promise-list { grid-template-columns: 1fr; gap: 26px; } }

/* ── Contact + footer ─────────────────────────────────────────────────────── */
.contact { background: var(--night); color: var(--snow); padding-top: clamp(110px, 18vh, 200px); text-align: center; }
.contact h2 { font-size: clamp(40px, 7.6vw, 108px); letter-spacing: -.045em; line-height: 1; }
.contact .wrap > p { margin-top: 22px; font-size: clamp(18px, 1.7vw, 22px); color: var(--fog); }
.contact .pill-big { margin-top: 34px; }

.foot {
  width: min(1120px, calc(100% - 48px));
  margin: clamp(110px, 18vh, 200px) auto 0; padding: 26px 0 max(34px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--night-line);
  text-align: left; font-size: 14px; color: var(--fog);
}
.foot-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 28px; }
.foot-name { font-weight: 650; color: var(--snow); }
.foot-name span { margin-left: 8px; font-weight: 400; color: var(--fog); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-links a { text-decoration: none; padding: 4px 0; }
.foot-links a:hover { color: var(--snow); }
.foot-fine { margin-top: 14px; font-size: 13px; }

/* On the legal pages the footer sits on paper. */
.legal-page .foot { border-top-color: var(--line); color: var(--ink-2); margin-top: 96px; }
.legal-page .foot-name { color: var(--ink); }
.legal-page .foot-name span { color: var(--ink-2); }
.legal-page .foot-links a:hover { color: var(--ink); }

/* ── Legal pages ──────────────────────────────────────────────────────────── */
.legal { width: min(740px, calc(100% - 48px)); margin: 0 auto; padding-top: clamp(120px, 18vh, 170px); }
.legal h1 { font-size: clamp(40px, 6.4vw, 64px); letter-spacing: -.04em; }
.legal-meta { margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.legal-lead { margin-top: 28px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; letter-spacing: -.014em; }
.legal h2 { margin-top: 56px; font-size: 26px; letter-spacing: -.028em; line-height: 1.2; text-wrap: initial; }
.legal h3 { margin-top: 28px; font-size: 18px; }
.legal p, .legal ul, .legal ol { margin-top: 14px; line-height: 1.6; }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li + li { margin-top: 7px; }
.legal a { color: var(--lime-deep); text-underline-offset: 3px; }
.legal-table-wrap { margin-top: 18px; overflow-x: auto; border-radius: 14px; background: var(--card); box-shadow: var(--lift); }
.legal table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.legal th, .legal td { padding: 12px 16px; text-align: left; vertical-align: top; }
.legal th { font-size: 13px; font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.legal tr + tr td { border-top: 1px solid var(--line); }

/* ── Page not found ───────────────────────────────────────────────────────── */
.notfound {
  width: min(740px, calc(100% - 48px)); margin: 0 auto;
  min-height: 62vh; padding-top: clamp(140px, 24vh, 230px); text-align: center;
}
.notfound-code { font-size: 15px; font-weight: 650; letter-spacing: .08em; color: var(--lime-deep); }
.notfound h1 { margin-top: 10px; font-size: clamp(40px, 6.4vw, 64px); letter-spacing: -.04em; color: var(--ink); }
.notfound-lead { margin: 18px auto 0; max-width: 30em; text-wrap: balance; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; color: var(--ink-2); }
.notfound-actions { margin-top: 34px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.notfound-mail { height: 46px; padding: 0 22px; font-size: 16px; }

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