/* ==========================================================================
   Escordium — site styles
   Monochrome system: paper ground, ink type, night bands (hero + footer).
   Type: Barlow Condensed (display) / Archivo (body) / IBM Plex Mono (labels)
   ========================================================================== */

:root {
  --paper: #f2f1ed;
  --paper-2: #e8e7e1;
  --ink: #121211;
  --ink-2: #45453f;
  --muted: #77776f;
  --rule: #d2d1ca;
  --night: #0c0c0b;
  --night-2: #1a1a18;
  --night-rule: #2c2c29;
  --night-text: #f2f1ed;
  --night-muted: #9a9a92;

  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
  font-feature-settings: "ss01", "kern";
}

img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.night :focus-visible { outline-color: var(--night-text); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* --- type roles ---------------------------------------------------------- */
.display {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: -.005em;
  text-wrap: balance;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: currentColor;
}
.night .eyebrow { color: var(--night-muted); }
.lede { font-size: clamp(15px, 1.25vw, 17px); color: var(--ink-2); max-width: 46ch; }

/* --- buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  padding: 14px 22px;
  border: 1px solid currentColor;
  transition: background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-solid:hover { background: transparent; color: var(--ink); }
.night .btn-solid { background: var(--night-text); color: var(--night); border-color: var(--night-text); }
.night .btn-solid:hover { background: transparent; color: var(--night-text); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.night .btn-ghost:hover { background: var(--night-text); color: var(--night); }

.link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.link svg { width: 12px; height: 12px; transition: transform .25s var(--ease); }
.link:hover { border-color: currentColor; }
.link:hover svg { transform: translateX(3px); }

/* --- header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 80px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: .06em;
  text-transform: uppercase;
}
.brand .mark { width: 18px; height: 18px; }
.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.nav a {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2);
  transition: color .2s;
}
.nav a:hover { color: var(--ink); }
.lang { display: inline-flex; gap: 6px; }
.lang span { color: var(--muted); }
.lang [aria-current] { color: var(--ink); border-bottom: 1px solid currentColor; }
.nav-toggle { display: none; width: 40px; height: 40px; place-items: center; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--ink); margin: 3px 0; transition: transform .25s, opacity .25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

/* --- hero ---------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--night); color: var(--night-text);
  padding-block: clamp(72px, 10vw, 140px) clamp(56px, 7vw, 96px);
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 80% at 80% 10%, #3a3a37 0%, transparent 55%),
    radial-gradient(70% 60% at 15% 100%, #262624 0%, transparent 60%),
    linear-gradient(180deg, #151514 0%, var(--night) 100%);
}
.hero-bg::after {
  /* faint architectural grid, the "corridor" feel of the reference shot */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 85%);
}
.hero-grain { position: absolute; inset: 0; z-index: -1; opacity: .35; mix-blend-mode: overlay; pointer-events: none; }
.hero .display {
  font-size: clamp(52px, 8.4vw, 124px);
  max-width: 12ch;
  margin-top: 28px;
}
.hero-foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end;
  margin-top: clamp(40px, 5vw, 72px);
}
.hero-foot p { max-width: 56ch; color: var(--night-muted); font-size: 15px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- section scaffolding ------------------------------------------------- */
.section { padding-block: var(--section); border-top: 1px solid var(--rule); }
.section-head {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px;
  align-items: end; margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head h2 { font-size: clamp(40px, 5.2vw, 72px); margin-top: 20px; }
.section-head .lede { justify-self: end; }
.section-head.stack { grid-template-columns: 1fr; }
.section-head.stack .lede { justify-self: start; }

/* --- services -------------------------------------------------------------- */
.services {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; background: var(--rule); border: 1px solid var(--rule);
}
.service {
  background: var(--paper); padding: 28px 26px 24px;
  display: flex; flex-direction: column; gap: 18px;
  min-height: 100%;
  transition: background .3s var(--ease);
}
.service:hover { background: var(--paper-2); }
.service h3 { font-size: 26px; margin-top: 6px; }
.service p { color: var(--ink-2); font-size: 14px; }
.service .deliverable { font-size: 13px; }
.service .deliverable dt { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.service-foot {
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--rule);
  display: flex; justify-content: flex-end; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.service-foot .link { color: var(--ink); font-size: 10px; }
.service-cta { grid-column: span 2; background: var(--ink); color: var(--paper); justify-content: center; }
.service-cta:hover { background: var(--night-2); }
.service-cta h3 { font-size: 34px; max-width: 16ch; }
.service-cta p { color: var(--night-muted); max-width: 44ch; }
.service-cta .btn { align-self: flex-start; margin-top: 8px; }

/* --- about ----------------------------------------------------------------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.sky {
  aspect-ratio: 4 / 5; position: relative; overflow: hidden;
  background: linear-gradient(180deg, #a9b6c1 0%, #cfd6db 55%, #e6e6e1 100%);
}
.sky .bird {
  position: absolute; left: 48%; top: 44%; width: 12%;
  fill: var(--ink);
  animation: drift 9s var(--ease) infinite alternate;
}
@keyframes drift { from { transform: translate(0, 0) rotate(-4deg); } to { transform: translate(-30px, 18px) rotate(3deg); } }
.about h2 { font-size: clamp(40px, 5vw, 68px); margin-top: 20px; }
.about-copy { display: grid; gap: 18px; margin-top: 28px; color: var(--ink-2); max-width: 54ch; }
.facts { margin-top: 36px; border-top: 1px solid var(--rule); }
.facts > div { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); align-self: center; }
.facts dd { font-family: var(--mono); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.about .link { margin-top: 28px; }

/* --- pillars (how the pieces fit) ----------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.pillar { border-top: 1px solid var(--ink); padding-top: 18px; display: grid; gap: 14px; align-content: start; }
.pillar h3 { font-size: 28px; }
.pillar p { color: var(--ink-2); font-size: 14px; max-width: 40ch; }

/* --- process (how we work) ------------------------------------------------ */
.process { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); }
.step { background: var(--paper); padding: 8px clamp(0px, 2vw, 32px) 0 0; }
.step + .step { padding-left: clamp(24px, 3vw, 48px); }
.step .num {
  font-family: var(--display); font-weight: 300; font-size: clamp(72px, 9vw, 128px); line-height: .9;
  letter-spacing: -.02em;
}
.step-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 22px; border-top: 1px solid var(--rule); padding-top: 14px; }
.step h3 { font-size: 28px; }
.step-meta span { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.step p { margin-top: 12px; color: var(--ink-2); font-size: 14px; max-width: 38ch; }

/* --- case study ------------------------------------------------------------- */
.case { background: var(--paper-2); }
.case h2 { font-size: clamp(36px, 4.6vw, 60px); margin-top: 20px; max-width: 22ch; }
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin-top: clamp(40px, 5vw, 64px); }
.case-col { border-top: 1px solid var(--ink); padding-top: 18px; display: grid; gap: 12px; align-content: start; }
.case-col h3 { font-size: 26px; }
.case-col p { color: var(--ink-2); font-size: 14px; max-width: 38ch; }
.results { display: grid; gap: 10px; margin-top: 4px; }
.results li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: baseline; font-size: 14px; color: var(--ink-2); }
.results b { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; min-width: 3.2ch; }
.case .link { margin-top: clamp(32px, 4vw, 48px); }

/* --- testimonial (Stitch "placard": white band, centered, tight bold caps) --- */
.quote { background: #fff; border-bottom: 1px solid var(--rule); text-align: center; padding-block: clamp(56px, 7vw, 96px); }
.quote .wrap { max-width: 60rem; display: grid; gap: 24px; justify-items: center; }
.eyebrow.plain { justify-content: center; }
.eyebrow.plain::before { content: none; }
.quote blockquote { margin: 0; }
.quote .display {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.14; letter-spacing: -.01em;
  text-wrap: balance;
}
.quote figcaption { margin-top: 20px; }
.quote cite { font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }

/* --- contact --------------------------------------------------------------- */
.contact-box { border: 1px solid var(--ink); padding: clamp(28px, 4vw, 56px); max-width: 880px; margin-inline: auto; }
.contact-box h2 { font-size: clamp(40px, 5vw, 64px); margin-top: 20px; }
.contact-box .lede { margin-top: 12px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; margin-top: 40px; }
.field { display: grid; gap: 8px; }
.field.wide { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--rule);
  padding: 10px 0; border-radius: 0; width: 100%;
  transition: border-color .2s;
}
.field select { appearance: none; -webkit-appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23121211' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right center; padding-right: 20px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.form-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 8px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--ink-2); max-width: 46ch; }
.consent input { margin: 3px 0 0; accent-color: var(--ink); }
.consent a { text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.form-note { grid-column: 1 / -1; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--ink-2); border-top: 1px solid var(--rule); padding-top: 14px; }
.form-note[hidden] { display: none; }

/* --- footer ---------------------------------------------------------------- */
.site-footer { background: var(--night); color: var(--night-text); padding-block: clamp(56px, 7vw, 96px) 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, .8fr)) 1.3fr; gap: 40px; }
.footer-grid h4 { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--night-muted); margin-bottom: 16px; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid li a { font-size: 13px; color: var(--night-text); opacity: .85; transition: opacity .2s; }
.footer-grid li a:hover { opacity: 1; }
.footer-brand p { margin-top: 18px; color: var(--night-muted); font-size: 13px; max-width: 30ch; }
.newsletter form { display: flex; border-bottom: 1px solid var(--night-rule); }
.newsletter input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--night-text); font: inherit; font-size: 14px; padding: 10px 0; }
.newsletter input:focus { outline: none; }
.newsletter input::placeholder { color: var(--night-muted); }
.newsletter button { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 10px 0 10px 12px; }
.newsletter p { margin-top: 12px; font-size: 12px; color: var(--night-muted); }
.footer-bottom {
  margin-top: clamp(40px, 5vw, 64px); padding-top: 20px; border-top: 1px solid var(--night-rule);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--night-muted);
}

/* --- reveal on scroll (visible at rest; motion only adds) ----------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { transition: transform .8s var(--ease), opacity .8s var(--ease); }
  .reveal.is-hidden { transform: translateY(18px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sky .bird { animation: none; }
  *, *::before, *::after { transition: none !important; }
}

/* --- responsive ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-cta { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand, .newsletter { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .nav-toggle { display: grid; }
  .nav {
    position: absolute; left: 0; right: 0; top: 80px;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 16px;
    display: none;
  }
  .nav-open .nav { display: flex; }
  .nav a { padding: 12px 0; font-size: 12px; }
  .nav .btn { margin-top: 8px; padding: 14px 22px; }
  .hero-foot, .section-head, .about { grid-template-columns: 1fr; }
  .section-head .lede { justify-self: start; }
  .pillars, .process, .case-grid { grid-template-columns: 1fr; }
  .step + .step { padding-left: 0; padding-top: 32px; }
  .process { gap: 0; background: transparent; }
  .step { border-top: 1px solid var(--rule); padding-top: 24px; }
  .step:first-child { border-top: 0; padding-top: 0; }
  .form { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .services { grid-template-columns: 1fr; }
  .service-cta { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .facts dd { font-size: 11px; }
}

/* nav CTA: beat the `.nav a` colour rule */
.nav .btn-solid { color: var(--paper); padding: 12px 20px; }
.nav .btn-solid:hover { color: var(--ink); }
.lang { align-items: baseline; }

/* --- Stitch assets ---------------------------------------------------------- */
.brand .logo { height: 52px; width: auto; }
.site-footer .brand .logo { height: 76px; }
.hero-photo {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.hero-bg {
  /* darken the photo so the headline stays legible; grid removed */
  background:
    linear-gradient(90deg, rgba(12,12,11,.85) 0%, rgba(12,12,11,.55) 45%, rgba(12,12,11,.15) 100%),
    linear-gradient(180deg, rgba(12,12,11,.15) 0%, rgba(12,12,11,.6) 100%);
}
.hero-bg::after { content: none; }
.sky { aspect-ratio: 4 / 5; background: #c9d2d9; }
.sky img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }

/* slogan */
.footer-brand .tagline { margin-top: 18px; font-family: var(--display); font-weight: 700; font-size: 26px; text-transform: uppercase; color: var(--night-text); line-height: 1; }
.footer-brand .tagline + p { margin-top: 12px; }

@media (max-width: 560px) { .brand .logo { height: 44px; } .site-header .wrap { height: 68px; } .nav { top: 68px; } }

/* --- clients strip ---------------------------------------------------------- */
.clients { background: var(--night); color: var(--night-text); border-top: 1px solid var(--night-rule); padding-block: 36px 44px; }
.logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 40px; align-items: center; margin-top: 28px; }
.logos a {
  display: flex; align-items: center; justify-content: center; height: 64px;
  opacity: .72; filter: grayscale(1);
  transition: opacity .25s var(--ease), filter .25s var(--ease);
}
.logos a:hover, .logos a:focus-visible { opacity: 1; filter: none; }
.logos img, .logos svg { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.logos .westaves { height: 72px; filter: grayscale(1) brightness(2.1); }
.logos a:hover .westaves, .logos a:focus-visible .westaves { filter: none; }
.logos img[alt="Blue Lemon"] { height: 40px; }
@media (max-width: 820px) { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; } }
.logos .seago { height: 46px; }
.logos .interest { height: 42px; }
.logos .seago { filter: grayscale(1) brightness(2.6); }
.logos a:hover .seago, .logos a:focus-visible .seago { filter: none; }

/* ==========================================================================
   Legal pages (privacy / terms / cookies)
   Editorial single column with a sticky section index on wide screens.
   ========================================================================== */
.legal { padding-block: clamp(48px, 6vw, 88px) clamp(64px, 8vw, 112px); }
.legal-head { border-bottom: 1px solid var(--rule); padding-bottom: clamp(28px, 4vw, 44px); }
.legal-head h1 { font-size: clamp(44px, 7vw, 92px); margin-top: 20px; max-width: 18ch; }
.legal-lede { margin-top: 22px; font-size: clamp(15px, 1.3vw, 18px); color: var(--ink-2); max-width: 54ch; }

.legal-meta { margin-top: clamp(28px, 4vw, 40px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; }
.legal-meta dt { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.legal-meta dd { margin-top: 6px; font-family: var(--mono); font-size: 12px; color: var(--ink); }
.legal-meta a { border-bottom: 1px solid var(--rule); }
.legal-meta a:hover { border-color: var(--ink); }

.legal-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); margin-top: clamp(40px, 5vw, 64px); align-items: start; }
.legal-toc { position: sticky; top: 112px; }
.legal-toc ol { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 9px; counter-reset: none; }
.legal-toc a {
  display: grid; grid-template-columns: 2.4ch 1fr; gap: 10px;
  font-size: 13px; color: var(--ink-2); line-height: 1.35;
  transition: color .2s;
}
.legal-toc a:hover { color: var(--ink); }
.legal-toc .toc-num { font-family: var(--mono); font-size: 10px; color: var(--muted); padding-top: 3px; }

.legal-body { max-width: 68ch; min-width: 0; display: grid; gap: clamp(36px, 4.5vw, 56px); }
.legal-section { display: grid; gap: 16px; min-width: 0; scroll-margin-top: 104px; }
.legal-section h2 {
  font-size: clamp(26px, 3vw, 38px);
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: baseline;
  border-top: 1px solid var(--ink); padding-top: 16px;
}
.legal-section .sec-num { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.legal-section h3 { font-family: var(--body); font-weight: 500; font-size: 14px; letter-spacing: .01em; margin-top: 8px; }
.legal-section p { color: var(--ink-2); font-size: 15px; }
.legal-section strong { color: var(--ink); font-weight: 500; }
.legal-section a:not(.btn) { color: var(--ink); border-bottom: 1px solid var(--rule); transition: border-color .2s; }
.legal-section a:not(.btn):hover { border-color: var(--ink); }
.legal-section code { font-family: var(--mono); font-size: 12.5px; background: var(--paper-2); padding: 1px 5px; overflow-wrap: anywhere; }

/* definition rows shared by "who we are", bases, processors, retention */
.kv { display: grid; gap: 0; border-top: 1px solid var(--rule); margin-top: 6px; }
.kv > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 12px 28px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.kv dt { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.kv dd { font-size: 14px; color: var(--ink-2); }
.kv.wide > div { grid-template-columns: 170px minmax(0, 1fr); }
.kv.wide dt { text-transform: none; letter-spacing: .04em; font-size: 11px; color: var(--ink); }

.ticks { display: grid; gap: 9px; }
.ticks li { display: grid; grid-template-columns: 14px 1fr; gap: 12px; font-size: 14px; color: var(--ink-2); }
.ticks li::before { content: "—"; font-family: var(--mono); font-size: 11px; color: var(--muted); padding-top: 3px; }

.callout { border-left: 2px solid var(--ink); padding: 4px 0 4px 20px; }
.callout, .legal-section .callout { color: var(--ink); }

.legal-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); }
.legal-table thead th { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--ink); }
.legal-table td { color: var(--ink-2); }

.legal-note {
  margin-top: 8px; border-top: 1px solid var(--rule); padding-top: 18px;
  font-family: var(--mono); font-size: 11px; line-height: 1.7; letter-spacing: .02em; color: var(--muted);
}

/* unresolved placeholder — deliberately loud so it cannot ship unnoticed */
.tbd {
  font-family: var(--mono); font-size: .92em;
  background: #ffe9a8; color: #5a4300;
  padding: 0 4px; border-bottom: 1px dotted #a98a1e;
}

.site-footer.compact { padding-block: 28px; }
.site-footer.compact .footer-bottom { margin-top: 0; padding-top: 0; border-top: 0; }
.site-footer.compact a:hover { color: var(--night-text); }

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 40px; }
  .legal-toc { position: static; border-bottom: 1px solid var(--rule); padding-bottom: 28px; }
  .legal-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 28px; }
  .legal-meta { grid-template-columns: 1fr; gap: 16px; }
  .kv > div, .kv.wide > div { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 720px) {
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal-table tr { border-top: 1px solid var(--ink); padding-top: 4px; }
  .legal-table td { border-bottom: 1px solid var(--rule); padding: 10px 0; }
  .legal-table td::before {
    content: attr(data-label);
    display: block; margin-bottom: 4px;
    font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  }
}
@media (max-width: 560px) {
  .legal-toc ol { grid-template-columns: 1fr; }
  .legal-table { font-size: 13px; }
}
noscript { grid-column: 1 / -1; }

/* --- 404 ------------------------------------------------------------------ */
.notfound { background: var(--night); color: var(--night-text); padding-block: clamp(72px, 12vw, 160px); }
.notfound h1 { font-size: clamp(44px, 7.5vw, 104px); margin-top: 28px; max-width: 14ch; }
.notfound-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); margin-top: clamp(40px, 5vw, 64px); }
.notfound-cols p { color: var(--night-muted); max-width: 42ch; }
.notfound-cols .eyebrow { margin-bottom: 14px; }
.notfound-cols .hero-actions { margin-top: 28px; }
@media (max-width: 720px) { .notfound-cols { grid-template-columns: 1fr; } }
