/* =========================================================
   TELLO — site foundation
   Shared by every page: font, colour fields, type steps, the
   header bar, buttons, the footer, motion, and the consent banner
   and booking gate built by consent.js. Inner-page templates
   (hero, contents, prose, FAQ, prices, cards, form) follow below.
   The home page adds home.css on top of this file.
   ========================================================= */
/* ---------- Font: Albert Sans, variable 400–700, self-hosted ---------- */
@font-face {
  font-family: 'Albert Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/albert-sans-400-700-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Albert Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/albert-sans-400-700-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;
}

/* ---------- Tokens ---------- */
:root {
  /* Fields — the brand lime and its ink, plus three quiet grounds */
  --stone:    #EDEFEA;
  --stone-2:  #E0E4DB;
  --paper:    #F8F9F6;
  --ink:      #121410;
  --ink-2:    #1E211B;
  --lime:     #8ED800;
  --lime-2:   #7DC000;
  --sky:      #CBE4F2;
  --moss:     #1A3D14;
  --moss-2:   #234D1C;

  /* Five type steps, nothing in between */
  --t-display: clamp(2.5rem, 1.5rem + 4.4vw, 5.5rem);
  --t-head:    clamp(1.75rem, 1.2rem + 2.4vw, 3.25rem);
  --t-lead:    clamp(1.125rem, 1.02rem + 0.4vw, 1.375rem);
  --t-body:    clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);
  --t-small:   0.875rem;

  --f: 'Albert Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Frame: one pair of margins everywhere */
  --m:   clamp(16px, 3.2vw, 48px);
  --gap: clamp(16px, 2vw, 32px);
  --pad: clamp(72px, 7.5vw, 128px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--f);
  font-size: var(--t-body);
  line-height: 1.5;
  overflow-x: hidden;
}

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

::selection { background: var(--lime); color: var(--ink); }

:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.skip {
  position: absolute;
  top: -60px;
  left: var(--m);
  z-index: 9999;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--t-small);
  transition: top 200ms var(--ease);
}
.skip:focus { top: 12px; }

/* ---------- Type roles ---------- */
.hero-title,
.h-giant {
  font-size: var(--t-display);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.h-chapter,
.h-tile {
  font-size: var(--t-head);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  max-width: 16ch;
}
.lead {
  font-size: var(--t-lead);
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 34ch;
}
.small { font-size: var(--t-small); line-height: 1.45; }

/* ---------- Actions ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--t-body);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: transform 200ms var(--ease), background-color 200ms var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-primary { --btn-bg: var(--ink); --btn-fg: var(--paper); }
.btn-ink     { --btn-bg: var(--ink); --btn-fg: var(--paper); }
.btn-ghost   { --btn-bg: var(--stone-2); --btn-fg: var(--ink); }

.link-under {
  display: inline-block;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: text-decoration-thickness 160ms var(--ease), text-underline-offset 160ms var(--ease);
}
.link-under:hover { text-decoration-thickness: 4px; text-underline-offset: 4px; }

/* the generated work-all block keeps its legacy markup */
.inline-cta {
  display: inline-flex;
  gap: 8px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.inline-cta:hover { text-decoration-thickness: 4px; }

/* =========================================================
   HEADER — a plain bar in the first chapter's colour
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 14px var(--m);
  background: var(--stone);
  font-size: var(--t-small);
}
.logo-img { height: 26px; width: auto; filter: brightness(0); }
.logo:hover .logo-img { opacity: 0.7; }

.nav { display: flex; gap: 28px; margin-inline: auto; }
.nav a { padding: 8px 0; font-weight: 500; transition: color 160ms var(--ease); }
.nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

.header-actions { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.lang-switch { display: flex; gap: 4px; }
.lang-btn { padding: 8px 6px; font-weight: 500; opacity: 0.6; }
.lang-btn:hover { opacity: 1; }
.lang-btn.is-active { opacity: 1; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  transition: background-color 160ms var(--ease);
}
.header-cta:hover { background: var(--moss); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: var(--ink);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.menu-toggle span { width: 18px; height: 2px; background: var(--paper); transition: transform 240ms var(--ease); }
.menu-toggle span:nth-child(3) { display: none; }
[data-menu-open] .menu-toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
[data-menu-open] .menu-toggle span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* =========================================================
   CHAPTERS
   ========================================================= */
.ch {
  position: relative;
  padding: var(--pad) var(--m);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-content: start;
}
.ch > * { grid-column: 1 / -1; }

.ch--stone { background: var(--stone); color: var(--ink); }
.ch--ink   { background: var(--ink);   color: var(--paper); }
.ch--lime  { background: var(--lime);  color: var(--ink); }
.ch--sky   { background: var(--sky);   color: var(--ink); }
.ch--moss  { background: var(--moss);  color: var(--paper); }

.ch--ink .btn-primary,
.ch--moss .btn-primary { --btn-bg: var(--lime); --btn-fg: var(--ink); }

/* =========================================================
   FOOTER — ink; the address is the headline
   ========================================================= */
.site-footer {
  padding: 64px var(--m) 32px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  gap: 72px;
  align-content: space-between;
}
.footer-top {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 40px;
}
.footer-brand { grid-column: 1 / span 4; display: grid; gap: 16px; align-content: start; }
.footer-logo-img { height: 26px; width: auto; filter: brightness(0) invert(1); }
.footer-tag { font-size: var(--t-small); max-width: 28ch; }
.footer-nav {
  grid-column: 5 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}
.footer-nav > div { display: grid; gap: 8px; align-content: start; font-size: var(--t-small); }
.footer-h { font-weight: 700; color: var(--lime); margin-bottom: 4px; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

.footer-mail {
  font-size: var(--t-display);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: var(--lime);
  justify-self: start;
  transition: color 200ms var(--ease);
}
.footer-mail:hover { color: var(--paper); }

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: var(--gap);
  font-size: var(--t-small);
  line-height: 1.45;
}
.footer-credits { opacity: 0.8; }
.footer-bottom > span:last-child { text-align: right; }

/* =========================================================
   MOTION — entrances, the shutter, reduced motion
   ========================================================= */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* the 1918 photograph opens like a shutter, once */
.js .shutter[data-reveal] { opacity: 1; transform: none; }
.js .shutter[data-reveal] img {
  clip-path: inset(0 100% 0 0);
  transform: scale(1.12);
  transition: clip-path 1.1s var(--ease), transform 1.4s var(--ease);
}
.js .shutter[data-reveal].is-visible img { clip-path: inset(0 0 0 0); transform: none; }

.js .stage[data-reveal] .stage-bar { transform: scaleX(0.2); transition: transform 900ms var(--ease); }
.js .stage[data-reveal].is-visible .stage-bar { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js .shutter[data-reveal] img, .js .stage[data-reveal] .stage-bar {
    opacity: 1; transform: none; clip-path: none;
  }
}

/* =========================================================
   CONSENT BANNER + BOOKING GATE (markup from consent.js)
   ========================================================= */
.cc {
  position: fixed;
  z-index: 9998;
  left: var(--m);
  right: var(--m);
  bottom: 16px;
  display: flex;
  pointer-events: none;
}
.cc-panel {
  pointer-events: auto;
  width: min(520px, 100%);
  padding: 24px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 16px 48px -16px rgba(18, 20, 16, 0.4); /* taste-skill-ignore: a real overlay */
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}
.cc.is-open .cc-panel { opacity: 1; transform: none; }
.cc-head { display: flex; align-items: center; justify-content: flex-end; }
.cc-label { display: none; }
.cc-x { width: 36px; height: 36px; font-size: 24px; line-height: 1; }
.cc-x:hover { background: var(--stone); }
.cc-title { font-size: var(--t-body); font-weight: 700; margin: 0 0 8px; }
.cc-desc { font-size: var(--t-small); line-height: 1.5; }
.cc-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 12px; font-size: var(--t-small); }
.cc-links a { text-decoration: underline; text-underline-offset: 4px; }
.cc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  font-size: var(--t-small);
  font-weight: 600;
  transition: background-color 160ms var(--ease);
}
/* Accept and reject carry the same weight and size — GDPR requires
   refusing to be as easy as accepting. */
.cc-btn-primary { background: var(--ink); color: var(--paper); }
.cc-btn-primary:hover { background: var(--moss); }
.cc-btn-ghost { background: var(--stone-2); color: var(--ink); }
.cc-btn-ghost:hover { background: var(--lime); }
.cc-btn-link { margin-left: auto; padding: 10px 4px; font-size: var(--t-small); text-decoration: underline; text-underline-offset: 4px; }
.cc-groups { display: grid; gap: 8px; max-height: min(46vh, 340px); overflow-y: auto; }
.cc-group { padding: 14px 16px; background: var(--stone); }
.cc-group h3 { font-size: var(--t-small); font-weight: 700; }
.cc-group p { margin-top: 4px; font-size: var(--t-small); line-height: 1.5; }
.cc-group-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cc-locked, .cc-switch-txt { font-size: var(--t-small); font-weight: 500; white-space: nowrap; }
.cc-switch { position: relative; display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 2; }
.cc-switch-ui { position: relative; width: 40px; height: 22px; background: var(--stone-2); transition: background-color 160ms var(--ease); }
.cc-switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: var(--ink); transition: transform 160ms var(--ease); }
.cc-switch input:checked ~ .cc-switch-ui { background: var(--lime); }
.cc-switch input:checked ~ .cc-switch-ui::after { transform: translateX(18px); }
.cc-switch input:focus-visible ~ .cc-switch-ui { outline: 3px solid var(--ink); outline-offset: 2px; }

.embed-frame { display: block; width: 100%; min-height: 720px; border: 0; background: #FFFFFF; }
.embed-gate { display: grid; gap: 16px; justify-items: start; padding: clamp(28px, 4vw, 56px); }
.embed-gate-label { display: none; }
.embed-gate-title { font-size: var(--t-lead); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.embed-gate-desc { max-width: 62ch; }
.embed-gate-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.embed-gate .btn-primary { --btn-bg: var(--lime); --btn-fg: var(--ink); }
.embed-gate .btn-ghost { --btn-bg: var(--ink-2); --btn-fg: var(--paper); }
.embed-gate .btn-arrow { display: none; }
.embed-gate-alt { font-size: var(--t-small); }
.embed-gate-alt a { color: var(--lime); text-decoration: underline; text-underline-offset: 4px; }

/* =========================================================
   TABLET
   ========================================================= */
@media (max-width: 1024px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .header-cta { display: none; }
  .nav.is-open {
    display: flex;
    position: fixed;
    inset: 72px 0 auto 0;
    z-index: 40;
    flex-direction: column;
    gap: 4px;
    padding: 16px var(--m) 32px;
    background: var(--stone);
  }
  .nav.is-open a { padding: 14px 0; font-size: var(--t-lead); font-weight: 600; }
  .footer-brand, .footer-nav { grid-column: 1 / -1; }
}

/* =========================================================
   PHONE — its own composition
   ========================================================= */
@media (max-width: 720px) {
  :root { --pad: 88px; }
  .site-header { gap: 12px; padding-block: 12px; }
  .logo-img { height: 22px; }
  .header-actions { gap: 8px; }
  .nav.is-open { inset: 68px 0 auto 0; }
  .ch { min-height: 0; }
  .site-footer { gap: 72px; min-height: 0; }
  .footer-nav { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .footer-bottom { grid-template-columns: 1fr; gap: 8px; }
  .footer-bottom > span:last-child { text-align: left; }
  .cc { left: 0; right: 0; bottom: 0; }
  .cc-panel { width: 100%; max-height: 90vh; overflow-y: auto; padding: 16px var(--m) 20px; }
  .cc-head { position: absolute; right: 8px; top: 8px; }
  .cc-title { padding-right: 40px; }
  .cc-desc { font-size: 0.875rem; line-height: 1.42; }
  .cc-links { margin-top: 8px; font-size: 0.875rem; }
  .cc-actions { margin-top: 12px; }
  .cc-btn-link { padding: 4px; min-height: 0; }
  .cc-btn-primary, .cc-btn-ghost { flex: 1 1 auto; }
  .cc-btn-link { margin-left: 0; width: 100%; }
  .embed-gate-actions, .embed-gate-actions .btn { width: 100%; }
}

/* =========================================================
   INNER PAGES — one template for services, projects,
   articles, contact and the legal pages. Each section of the
   site opens on its own field colour (set on <body>).
   ========================================================= */
.page { --hero-bg: var(--stone); --hero-fg: var(--ink); --hero-accent: var(--ink); }
.page--lime { --hero-bg: var(--lime);  --hero-fg: var(--ink);   --hero-accent: var(--ink); }
.page--sky { --hero-bg: var(--sky);   --hero-fg: var(--ink);   --hero-accent: var(--ink); }
.page--ink { --hero-bg: var(--ink);   --hero-fg: var(--paper); --hero-accent: var(--lime); }
.page--moss { --hero-bg: var(--moss);  --hero-fg: var(--paper); --hero-accent: var(--lime); }

/* legacy decoration the new design does without */
.grain, .section-label, .col-num, .card-num, .btn-arrow,
.page .lang-switch > span[aria-hidden], .page .header-cta > span[aria-hidden] { display: none; }
.page .section-title em, .page h1 em, .page h2 em { font-style: normal; color: inherit; }

/* ---------- breadcrumbs: the top line of the hero field ---------- */
.page .crumbs {
  padding: 20px var(--m) 0;
  background: var(--hero-bg);
  color: var(--hero-fg);
  font-size: var(--t-small);
}
.page .crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.page .crumbs li { display: flex; gap: 10px; }
.page .crumbs li + li::before { content: "/"; opacity: 0.5; }
.page .crumbs a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.page .crumbs a:hover { text-decoration-thickness: 2px; }
.page .crumbs [aria-current="page"] { font-weight: 600; }

/* ---------- hero ---------- */
.page .legal-hero {
  padding: clamp(40px, 5vw, 80px) var(--m) clamp(56px, 6vw, 96px);
  background: var(--hero-bg);
  color: var(--hero-fg);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}
.page .legal-hero > * { grid-column: 1 / -1; }
.page .legal-hero .section-head { grid-column: 1 / span 9; }
.page .section-title {
  font-size: var(--t-head);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 30ch;
}
.page .section-desc {
  margin-top: 24px;
  font-size: var(--t-lead);
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-width: 54ch;
}
.page .legal-meta {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px var(--gap);
  font-size: var(--t-small);
}
.page .legal-meta span { display: grid; gap: 4px; }
.page .legal-meta b { font-size: var(--t-lead); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.page .post-meta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: var(--t-small);
}
.page .post-meta a { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- body: contents left, prose right ---------- */
.page .legal-body {
  padding: var(--pad) var(--m);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: start;
}
.page .legal-toc {
  grid-column: 1 / span 3;
  position: sticky;
  top: 96px;
  display: grid;
  gap: 2px;
  font-size: var(--t-small);
}
.page .legal-toc-label { font-weight: 700; margin-bottom: 10px; }
.page .legal-toc a {
  padding: 8px 12px;
  margin-left: -12px;
  transition: background-color 160ms var(--ease);
}
.page .legal-toc a:hover { background: var(--stone-2); }
.page .legal-prose { grid-column: 5 / -1; min-width: 0; }
.page .legal-body > .legal-prose:only-child { grid-column: 1 / -1; }

.legal-prose > section + section,
.legal-prose > section + div,
.page .legal-prose > div + section { margin-top: 80px; }
.page .legal-prose section { scroll-margin-top: 96px; }
.page .legal-prose h2 {
  font-size: var(--t-lead);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
  max-width: 34ch;
}
.page .legal-prose h2::before {
  content: "";
  display: block;
  width: 40px;
  height: 8px;
  margin-bottom: 20px;
  background: var(--lime);
}
.page .legal-prose h3 { font-size: var(--t-body); font-weight: 700; margin: 36px 0 10px; }
.page .legal-prose p, .page .legal-prose li { max-width: 68ch; }
.page .legal-prose p + p { margin-top: 1em; }
.page .legal-prose p + h3, .page .legal-prose ul + h3 { margin-top: 36px; }
.page .legal-prose ul, .page .legal-prose ol { margin: 16px 0; display: grid; gap: 10px; }
.page .legal-prose ul > li { position: relative; padding-left: 22px; }
.page .legal-prose ul > li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; background: var(--lime); }
.page .legal-prose ol { counter-reset: n; }
.page .legal-prose ol > li { counter-increment: n; position: relative; padding-left: 28px; }
.page .legal-prose ol > li::before { content: counter(n) "."; position: absolute; left: 0; font-weight: 700; }
.page .legal-prose ul + p, .page .legal-prose ol + p, .page .legal-prose div + p { margin-top: 1em; }
.page .legal-prose a:not(.btn):not(.related a) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.page .legal-prose a:not(.btn):hover { text-decoration-thickness: 2px; }
.page .legal-prose strong { font-weight: 700; }
.page .legal-prose code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.9em;
  padding: 2px 6px;
  background: var(--stone-2);
}
.page .legal-back { display: inline-block; margin-top: 56px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* callout, table, prices */
.page .legal-callout { margin: 28px 0; padding: 22px 26px; background: var(--sky); }
.page .legal-callout p { max-width: none; }
.page .legal-table-wrap { margin: 24px 0; overflow-x: auto; }
.page .legal-table { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
.page .legal-table th, .page .legal-table td { padding: 12px 16px; text-align: left; vertical-align: top; }
.page .legal-table th { font-weight: 700; width: 34%; }
.page .legal-table thead th { background: var(--ink); color: var(--paper); }
.page .legal-table tbody tr:nth-child(odd) { background: var(--paper); }
.page .legal-table tbody tr:nth-child(even) { background: var(--stone-2); }

.page .price-box { margin: 24px 0; display: grid; gap: 4px; }
.page .price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  padding: 18px 22px;
  background: var(--paper);
  transition: background-color 160ms var(--ease);
}
.page .price-row:hover { background: var(--lime); }
.page .price-name { font-weight: 600; }
.page .price-val { font-size: var(--t-lead); font-weight: 700; letter-spacing: -0.015em; white-space: nowrap; }

/* FAQ — real toggles on the inner pages */
.page .faq-list { margin-top: 24px; display: grid; gap: 4px; }
.page .faq-item { background: var(--paper); }
.page .faq-item summary {
  position: relative;
  padding: 18px 56px 18px 22px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.page .faq-item summary::-webkit-details-marker { display: none; }
.page .faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--t-lead);
  font-weight: 400;
  transition: transform 200ms var(--ease);
}
.page .faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.page .faq-item summary:hover { background: var(--stone-2); }
.page .faq-item p { padding: 0 22px 22px; }

/* closing call to action and related links */
.page .prose-cta {
  margin-top: 80px;
  padding: clamp(24px, 3vw, 40px);
  background: var(--lime);
  display: grid;
  gap: 24px;
  justify-items: start;
}
.page .prose-cta p { font-size: var(--t-lead); line-height: 1.35; max-width: 40ch; }
.page .related {
  margin-top: 8px;
  padding: clamp(24px, 3vw, 40px);
  background: var(--ink);
  color: var(--paper);
  display: grid;
  gap: 4px;
}
.page .related .footer-h { margin-bottom: 12px; }
.page .related a { padding: 8px 0; font-weight: 500; transition: color 160ms var(--ease); }
.page .related a:hover { color: var(--lime); }

/* ---------- index pages: a board of filled cards ---------- */
main > .index-grid,
.page main > section:not(.legal-hero):not(.legal-body) {
  padding: var(--pad) var(--m);
}
main > section:not(.legal-hero):not(.legal-body) + .index-grid,
.page main > .index-grid + section:not(.legal-hero):not(.legal-body) { padding-top: 0; }
.page .index-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.page section > .index-grid { margin-top: 48px; }
.page .index-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 300px;
  padding: clamp(22px, 2.6vw, 40px);
  background: var(--stone-2);
  transition: transform 240ms var(--ease);
}
.page .index-card:nth-child(4n+1) { background: var(--lime); }
.page .index-card:nth-child(4n+2) { background: var(--sky); }
.page .index-card:nth-child(4n+3) { background: var(--ink); color: var(--paper); }
.page .index-card:hover { transform: translateY(-4px); }
.page .index-card h2, .page .index-card h3 { font-size: var(--t-lead); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; max-width: 26ch; }
.page .index-card .service-lead { font-weight: 600; }
.page .index-card p { max-width: 58ch; }
.page .card-more {
  margin-top: auto;
  font-size: var(--t-small);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.page .section-head .section-title + .section-desc { margin-top: 20px; }
.page main > section:not(.legal-hero):not(.legal-body) .section-head { max-width: 900px; }
.page .services-cta, .page .services-foot.cta { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.page .cta-micro { font-size: var(--t-small); max-width: 44ch; }
.page .btn-large { min-height: 52px; }

/* project rows on a light ground */
.page .work-strip { margin-top: 64px; }
.page .work-strip-title { font-size: var(--t-lead); font-weight: 700; margin-bottom: 20px; }
.page .work-list { display: grid; gap: 4px; }
.page .work-row a {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr 80px 24px;
  align-items: baseline;
  gap: 16px;
  padding: 18px 20px;
  background: var(--paper);
  transition: background-color 200ms var(--ease);
}
.page .work-row a:hover { background: var(--lime); }
.page .work-num { display: none; }
.page .work-name { font-size: var(--t-lead); font-weight: 600; letter-spacing: -0.015em; }
.page .work-tag, .page .work-year { font-size: var(--t-small); }
.page .work-year { text-align: right; }
.page .work-arrow { text-align: right; transition: transform 200ms var(--ease); }
.page .work-row a:hover .work-arrow { transform: translateX(4px); }

/* the technology names running across a lime band */
.page .tech {
  padding: 40px 0 !important;
  background: var(--lime);
  overflow: hidden;
  display: grid;
  gap: 16px;
}
.page .tech-label { display: none; }
.page .marquee { overflow: hidden; }
.page .marquee-track {
  display: flex;
  gap: 0.5em;
  width: max-content;
  font-size: var(--t-head);
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
  animation: marquee 50s linear infinite;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* problem note used as a short cross-link */
.page .problem, .page .problem--note { background: var(--stone-2); }
.page .problem-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 32px; }
.page .problem-foot p { max-width: 56ch; }

/* ---------- contact page: details, form ---------- */
.page .nap { margin: 24px 0 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.page .nap > div { padding: 22px; background: var(--paper); display: grid; gap: 6px; align-content: start; }
.page .block-label { font-size: var(--t-small); font-weight: 700; }
.page .nap a, .page .nap address { font-size: var(--t-lead); font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.page .nap a:hover { text-decoration: underline; text-underline-offset: 4px; }

.page .cform { margin-top: 28px; display: grid; gap: 16px; }
.page .cform .field { display: grid; gap: 6px; }
.page .cform .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.page .cform label { font-size: var(--t-small); font-weight: 700; }
.page .cform .req { color: var(--moss); }
.page .cform input, .page .cform textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--stone-2);
  border-radius: 0;
  transition: border-color 160ms var(--ease);
}
.page .cform input:hover, .page .cform textarea:hover { border-color: var(--ink); }
.page .cform input:focus-visible, .page .cform textarea:focus-visible { outline: 3px solid var(--lime); outline-offset: 0; border-color: var(--ink); }
.page .cform textarea { min-height: 9rem; resize: vertical; }
.page .cform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.page .cform .consent { display: flex; gap: 12px; align-items: flex-start; font-size: var(--t-small); }
.page .cform .consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--ink); }
.page .cform .consent label { font-weight: 400; }
.page .cform button { justify-self: start; }
.page .notice { margin: 24px 0; padding: 18px 22px; background: var(--lime); font-weight: 500; }
.page .notice--error { background: #F2C4BC; }

/* 404 */
.page .err-links { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.page .err-links a { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

@media (max-width: 1024px) {
  .page .legal-hero .section-head { grid-column: 1 / -1; }
  .page .legal-toc { grid-column: 1 / -1; position: static; margin-bottom: 48px; padding: 20px; background: var(--paper); }
  .page .legal-toc a { margin-left: 0; padding: 6px 0; }
  .page .legal-toc { grid-template-columns: 1fr 1fr; column-gap: var(--gap); }
  .page .legal-toc-label { grid-column: 1 / -1; }
  .page .legal-prose, .page .legal-body > .legal-prose:only-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .page .index-grid { grid-template-columns: 1fr; }
  .page .index-card { min-height: 0; }
  .page .nap, .page .cform .field-row { grid-template-columns: 1fr; }
  .page .work-row a { grid-template-columns: 1fr auto 20px; padding: 16px; }
  .page .work-tag { display: none; }
  .page .legal-prose > section + section { margin-top: 64px; }
  .page .prose-cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .page .marquee-track { animation: none; flex-wrap: wrap; width: auto; white-space: normal; padding: 0 var(--m); }
}

/* footer: the address line sits above the bottom row on every page */
.site-footer > .footer-mail { order: 2; }
.site-footer > .footer-bottom { order: 3; }

/* a full-width picture between an inner hero and its body */
.page .hero-pic { background: var(--hero-bg); padding: 0 var(--m); }
.page .hero-pic img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; object-position: top center; }
.page .hero-pic figcaption { padding: 10px 0 0; font-size: var(--t-small); color: var(--hero-fg); }
.page .hero-pic + .legal-body { padding-top: var(--pad); }
@media (max-width: 720px) { .page .hero-pic img { aspect-ratio: 16 / 10; } }
