/* ==========================================================================
   CLEVORISE · Poster theme (prototype)
   Design language from the launch-kit posters (Posters/src/kit.css):
   London shopfront signage — green ground, brass rules, cream type,
   Fredoka headings (sentence case), Plus Jakarta Sans body + labels,
   P3 mark (quarter-disc ground + brass dot), fascia frames, menu-board leaders,
   post-box orange "tickets" (one highlight per view).
   Breakpoints: phone < 640 · tablet 640–1023 · desktop 1024–1599 · wide 1600+
   ========================================================================== */

:root {
  --green: #12392b;
  --green-d: #0b2519;
  --green-l: #1b4a39;
  --brass: #b8862b;      /* rules, borders, mark — not small text on cream */
  --brass-l: #dcae5a;    /* brass text on green / ink (6.2:1) */
  --brass-d: #8a6216;    /* brass text on cream (4.8:1) */
  --cream: #f4efe0;
  --cream-d: #e6dfc9;
  --ink: #17221d;
  --pop: #ff5a3c;        /* tickets + one highlight; always ink text on it */

  --f-display: 'Fredoka', 'Nunito', system-ui, sans-serif;   /* headings: 600, UI accents: 500 */
  --f-body: 'Plus Jakarta Sans', system-ui, sans-serif;     /* body 400, strong 600/700 */
  --f-label: var(--f-body);                                 /* small caps labels: Jakarta 700, tracked */

  --wrap: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 1600px) { :root { --wrap: 1440px; } }
@media (min-width: 2200px) { html { font-size: 112.5%; } :root { --wrap: 1600px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--green);
  color: var(--cream);
  font: 400 1.0625rem/1.6 var(--f-body);   /* 17px phone, 18px from 1024 */
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
@media (min-width: 1024px) { body { font-size: 1.125rem; } }
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; }
::selection { background: var(--brass); color: var(--ink); }
:focus-visible { outline: 3px solid var(--pop); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--pop); color: var(--ink); padding: .6rem 1rem;
  font: 700 .8rem/1 var(--f-label); text-transform: uppercase; letter-spacing: .1em;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Surface themes (same model as kit.css) ---------- */
.t-green { --lab: var(--brass-l); --bg: var(--green); --fg: var(--cream); --hl: var(--brass-l); --rule: var(--brass); --muted: rgba(244, 239, 224, .78); --card: var(--green-l); }
.t-cream { --lab: var(--brass-d); --bg: var(--cream); --fg: var(--ink); --hl: var(--brass-d); --rule: var(--brass); --muted: #3f4a44; --card: #fbf8ee; }
.t-brass { --lab: var(--ink); --bg: var(--brass); --fg: var(--ink); --hl: var(--cream); --rule: var(--ink); --muted: #2a2414; --card: #c8973c; }
.t-ink   { --lab: var(--brass-l); --bg: var(--ink);   --fg: var(--cream); --hl: var(--brass-l); --rule: var(--brass); --muted: rgba(244, 239, 224, .74); --card: #1f2d26; }
.t-green, .t-cream, .t-brass, .t-ink { background-color: var(--bg); color: var(--fg); }

/* ---------- Type ---------- */
.d {
  font-family: var(--f-display); font-weight: 600;
  line-height: 1.08; letter-spacing: -.01em; overflow-wrap: break-word; hyphens: manual; text-wrap: pretty;
}
/* Scale (desktop/phone): H1 72/44 · H2 48/32 · mid 40/28 · H3 28/22 */
.d-xl { font-size: clamp(2.75rem, 1.6rem + 3.6vw, 4.5rem); line-height: 1.04; letter-spacing: -.015em; }
.d-lg { font-size: clamp(2rem, 1.25rem + 2.4vw, 3rem); }
.d-md { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); line-height: 1.12; }
.d-sm { font-size: clamp(1.375rem, 1.1rem + .85vw, 1.75rem); line-height: 1.2; letter-spacing: 0; }
.hl { color: var(--hl); }
.lab, .kicker {
  font: 700 .78rem/1.3 var(--f-label); text-transform: uppercase; letter-spacing: .16em;
  color: var(--lab, var(--brass-l));
}
.kicker { display: inline-flex; align-items: center; gap: .75rem; }
.kicker::before { content: ""; width: 2.25rem; height: 2px; background: currentColor; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--muted); max-width: 40rem; }
.lead b, .lead strong { color: var(--fg); font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; white-space: nowrap; }

/* ---------- Brand: P3 lockup (inline SVG from build.py) ----------
   Full colour on light: green ground + logotype, brass dot.
   Reversed (.lockup-rev) on green / ink: cream ground + logotype, brass dot. */
.lockup { display: inline-flex; align-items: center; flex: none; line-height: 0; text-decoration: none; --lk-ground: var(--green); --lk-dot: var(--brass); --lk-wm: var(--green); }
.lockup-rev { --lk-ground: var(--cream); --lk-dot: var(--brass); --lk-wm: var(--cream); }
.lockup svg { display: block; height: var(--lk-h, 40px); width: auto; overflow: visible; }
.lockup .lk-ground { fill: var(--lk-ground); }
.lockup .lk-dot { fill: var(--lk-dot); transition: transform .5s var(--ease); }
.lockup .lk-wm { fill: var(--lk-wm); }
.lockup:hover .lk-dot { transform: translateY(-8px); }

/* ---------- Motifs ---------- */
.fascia {
  position: relative; border: 6px solid var(--brass);
  outline: 2px solid var(--brass); outline-offset: 8px;
  margin: 10px; padding: clamp(1.35rem, 4vw, 3rem);
}
@media (max-width: 520px) { .fascia { margin: 7px; border-width: 4px; outline-offset: 5px; } }

.tix {
  display: inline-block; background: var(--pop); color: var(--ink);
  font: 600 clamp(1.05rem, 1.6vw, 1.3rem)/1 var(--f-display); letter-spacing: 0;
  padding: .4em .7em .38em; border: 2px dashed var(--ink); transform: rotate(-3deg);
  text-decoration: none; white-space: nowrap; transition: transform .3s var(--ease);
}
a.tix:hover { transform: rotate(0deg) scale(1.05); }
.tix-sm { font-size: 1rem; }
.tix-ink { background: var(--ink); color: var(--cream); border-color: var(--cream); font-size: 1.05rem; }

.stripe { background-image: repeating-linear-gradient(0deg, transparent 0 22px, rgba(255, 255, 255, .035) 22px 44px); }

/* Pointer spotlight (set by site.js on [data-spot]) */
[data-spot] { --mx: 50%; --my: 50%; }
@media (hover: hover) {
  [data-spot]::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(220, 174, 90, .16), transparent 60%);
  }
  [data-spot]:hover::after { opacity: 1; }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .8rem 1.4rem; border: 2px solid transparent; border-radius: 4px;
  font: 600 1.0625rem/1 var(--f-display); letter-spacing: .005em;
  text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .arr { font-family: var(--f-body); font-weight: 700; transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-brass { background: var(--brass); color: var(--ink); border-color: var(--brass); box-shadow: 0 4px 0 var(--brass-d); }
.btn-brass:hover { background: var(--brass-l); border-color: var(--brass-l); }
.btn-line { background: transparent; color: var(--fg, var(--cream)); border-color: currentColor; }
.btn-line:hover { background: var(--fg, var(--cream)); color: var(--bg, var(--green)); }
.btn-ink { background: var(--ink); color: var(--cream); border-color: var(--ink); box-shadow: 0 4px 0 rgba(0, 0, 0, .35); }
.btn-ink:hover { background: var(--green); border-color: var(--green); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; }
@media (max-width: 479px) { .btn-row > .btn { flex: 1 1 100%; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--green);
  border-bottom: 2px solid var(--brass); transition: box-shadow .3s ease, background-color .3s ease;
}
.site-header.scrolled { background: var(--green-d); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.nav-bar .lockup { --lk-h: 46px; position: relative; z-index: 2; }
@media (max-width: 639px) { .nav-bar .lockup { --lk-h: 38px; } }
.nav-menu { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative; display: block; padding: .6rem .85rem; text-decoration: none;
  font: 600 .95rem/1 var(--f-body); letter-spacing: .005em; color: var(--cream);
}
.nav-links a::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .2rem; height: 2px; background: var(--brass-l);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links a:hover { color: var(--brass-l); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--brass-l); }
.nav-links .n { display: none; }
.nav-cta { margin-left: .75rem; }
.nav-cta .btn { min-height: 42px; padding: .6rem 1rem; font-size: .98rem; box-shadow: none; }
.nav-extra { display: none; }
.menu-btn {
  display: none; position: relative; z-index: 2; width: 48px; height: 48px; border: 2px solid var(--brass); border-radius: 4px;
  background: transparent; color: var(--cream); cursor: pointer; padding: 0;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 20px; height: 2px; background: currentColor; margin: 0 auto; position: relative; transition: transform .3s var(--ease), background-color .2s;
}
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.progress { position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--pop); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* Phone + tablet menu: full-screen sign board */
@media (max-width: 1023px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav-menu {
    position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: stretch;
    padding: calc(var(--header-h) + 1.5rem) var(--gutter) max(1.5rem, env(safe-area-inset-bottom));
    background: var(--green-d) repeating-linear-gradient(0deg, transparent 0 22px, rgba(255, 255, 255, .03) 22px 44px);
    overflow-y: auto; visibility: hidden; clip-path: inset(0 0 100% 0);
    transition: clip-path .5s var(--ease), visibility 0s linear .5s;
  }
  .nav-menu.open { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path .5s var(--ease), visibility 0s; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links li { opacity: 0; transform: translateY(16px); transition: opacity .4s ease, transform .4s var(--ease); }
  .nav-menu.open .nav-links li { opacity: 1; transform: none; transition-delay: calc(var(--i) * 60ms + 120ms); }
  .nav-links a {
    display: flex; align-items: baseline; gap: 1rem; padding: .9rem 0;
    font: 600 clamp(1.75rem, 6.5vw, 2.5rem)/1.1 var(--f-display); letter-spacing: -.01em;
    border-bottom: 1px solid rgba(184, 134, 43, .35);
  }
  .nav-links a::after { display: none; }
  .nav-links .n { display: inline; font: 700 .8rem/1 var(--f-label); letter-spacing: .14em; color: var(--brass-l); }
  .nav-cta { margin: 1.75rem 0 0; }
  .nav-cta .btn { width: 100%; min-height: 56px; font-size: 1.25rem; }
  .nav-extra { display: grid; gap: .4rem; margin-top: auto; padding-top: 2rem; }
  .nav-extra a { color: var(--cream); text-decoration: none; font-weight: 600; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .nav-links { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2rem; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); max-width: 52rem; }
.section-head .lead { margin-top: .25rem; }

/* Hero */
.hero { position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3.5rem, 8vw, 6rem); }
.hero-home { min-height: min(92vh, 980px); min-height: min(92svh, 980px); display: grid; align-items: center; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr); } }
@media (min-width: 1024px) { .hero-grid .d-xl { font-size: clamp(3.25rem, 5vw, 4.5rem); } }
.hero .fascia { background: var(--green); }
.hero-copy > .lab { display: block; margin: 0 0 1rem 10px; }
.hero-side { display: grid; gap: 1.5rem; justify-items: start; }
.hero-side .lead { color: var(--muted); }
.hero-lead { margin: clamp(1.5rem, 3vw, 2.25rem) 0 0 10px; }
@media (max-width: 520px) { .hero-lead { margin-left: 7px; } }
.hero-tix { justify-self: end; margin-right: .5rem; }
@media (max-width: 1023px) { .hero-tix { justify-self: start; } }

/* Flip word */
.flip { display: block; position: relative; overflow: hidden; height: 1.08em; }
.flip > span { display: block; animation: flip-in .6s var(--ease) both; }
.flip.out > span { animation: flip-out .35s ease-in both; }
@keyframes flip-in { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes flip-out { to { transform: translateY(-100%); opacity: 0; } }

/* Crumbs */
.crumbs { display: flex; gap: .6rem; margin: 0 0 1.25rem 10px; font: 700 .74rem/1 var(--f-label); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.crumbs a { color: var(--brass-l); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Shop "open" sign */
.shop-sign {
  display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; padding: .85rem 1.1rem;
  border: 2px solid rgba(220, 174, 90, .5); border-radius: 4px; background: rgba(0, 0, 0, .14);
}
.shop-sign b { display: block; font-weight: 700; color: var(--cream); }
.shop-sign a { margin-left: auto; font: 600 1.25rem/1 var(--f-display); color: var(--brass-l); text-decoration: none; }
.shop-sign a:hover { color: var(--cream); }
.bulb { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #7d8a83; }
[data-open-sign].is-open .bulb { background: #5fd38a; box-shadow: 0 0 0 4px rgba(95, 211, 138, .2); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(95, 211, 138, 0); } }

/* Scroll cue */
.scroll-cue { position: absolute; left: 50%; bottom: 1.25rem; width: 26px; height: 42px; margin-left: -13px; border: 2px solid var(--brass-l); border-radius: 13px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--brass-l); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@media (max-height: 700px), (max-width: 639px) { .scroll-cue { display: none; } }

/* Marquee (stack) */
.stack-band { border-top: 2px solid var(--brass); border-bottom: 2px solid var(--brass); padding: 1rem 0; overflow: hidden; }
.stack-band .row { display: flex; align-items: center; gap: 1.25rem; }
.stack-band .lab { flex: none; color: var(--brass-l); }
@media (max-width: 639px) { .stack-band .row { flex-direction: column; align-items: stretch; gap: .75rem; } .stack-band .lab { text-align: center; } }
.marquee-mask { overflow: hidden; flex: 1; min-width: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee-mask:hover .marquee { animation-play-state: paused; }
.marquee-set { display: flex; }
.marquee span { font: 500 1.35rem/1 var(--f-display); letter-spacing: 0; color: var(--cream); white-space: nowrap; transition: color .2s; }
.marquee span:hover { color: var(--brass-l); }
.marquee span::after { content: "✦"; color: var(--brass); margin: 0 1.25rem; font-size: 1rem; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Cards */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
@media (min-width: 640px) and (max-width: 1023px) { .grid-3 { grid-template-columns: 1fr 1fr; } .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; } .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  position: relative; overflow: hidden;
  background: var(--card); color: var(--fg); border: 2px solid var(--rule); border-radius: 2px;
  padding: clamp(1.4rem, 3vw, 2rem); display: flex; flex-direction: column; gap: 1rem; min-width: 0;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 8px 10px 0 var(--rule); }
.card .num { font: 600 2.75rem/.9 var(--f-display); color: var(--hl); }
.card p { color: var(--muted); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.card .more {
  margin-top: auto; padding-top: .5rem; font: 700 .78rem/1 var(--f-label); text-transform: uppercase; letter-spacing: .14em;
  text-decoration: none; color: var(--fg); display: inline-flex; gap: .5rem; align-items: center;
}
.card .more span { transition: transform .25s var(--ease); }
.card .more:hover { color: var(--hl); }
.card:hover .more span { transform: translateX(5px); }
.card .more::before { content: ""; position: absolute; inset: 0; } /* whole card clickable */

/* Problem → fix rows */
.pf { display: grid; gap: .65rem; }
.pf div { position: relative; display: grid; gap: .25rem; padding: .85rem 1rem; border-left: 4px solid var(--rule); background: rgba(0, 0, 0, .04); transition: background-color .3s, border-color .3s; }
.t-green .pf div, .t-ink .pf div { background: rgba(255, 255, 255, .04); }
.pf .lab { font-size: .7rem; }
.pf .bad { border-left-color: var(--pop); }
.pf p { color: var(--fg); }
.pf .bad p { background: linear-gradient(var(--pop), var(--pop)) no-repeat 0 55% / 0 2px; transition: background-size .5s var(--ease); }
.pcard:hover .pf .bad p, .pcard:focus-within .pf .bad p { background-size: 100% 2px; }
.pcard:hover .pf .good { background: rgba(184, 134, 43, .14); border-left-color: var(--green); }

/* Stats on brass */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: clamp(1.75rem, 4vw, 2.75rem) clamp(.5rem, 2vw, 1.5rem); border-right: 2px solid var(--ink); text-align: center; }
.stat:last-child { border-right: 0; }
.stat .v { font: 600 clamp(2.25rem, 5.6vw, 4.5rem)/.95 var(--f-display); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat .lab { color: var(--ink); margin-top: .6rem; display: block; }
@media (max-width: 639px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 2px solid var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: left; padding: 1.25rem 0; }
  .stat:last-child { border-bottom: 0; }
  .stat .lab { margin: 0; text-align: right; max-width: 12rem; }
  .stat .v { font-size: 2.75rem; }
}

/* Timeline (steps) — vertical on phones, horizontal from tablet landscape */
.timeline { --p: 0; position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: rgba(184, 134, 43, .35); }
.timeline::after { background: var(--brass-l); transform-origin: top; transform: scaleY(var(--p)); }
.step { position: relative; display: grid; gap: .6rem; align-content: start; padding: 0 0 2.25rem 4.25rem; }
.step:last-child { padding-bottom: 0; }
.step .dot {
  position: absolute; left: 0; top: 0; z-index: 1; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font: 600 1.05rem/1 var(--f-display);
  background: var(--bg); color: var(--hl); border: 2px solid var(--brass); transition: background-color .4s, color .4s, transform .4s var(--ease);
}
.step.lit .dot { background: var(--brass); color: var(--ink); transform: scale(1.08); }
.step .when { font: 700 .74rem/1 var(--f-label); text-transform: uppercase; letter-spacing: .16em; color: var(--hl); padding-top: .9rem; }
.step p { color: var(--muted); max-width: 30rem; }
.tick { font: 700 .74rem/1.2 var(--f-label); text-transform: uppercase; letter-spacing: .12em; color: var(--hl); }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .timeline-3 { grid-template-columns: repeat(3, 1fr); }
  .timeline::before, .timeline::after { left: 22px; right: 22px; top: 21px; bottom: auto; width: auto; height: 2px; }
  .timeline::after { transform-origin: left; transform: scaleX(var(--p)); }
  .step { padding: 4.25rem 0 0; }
  .step .when { padding-top: 0; }
}
.hero .timeline { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.step h3 { color: var(--fg); }

/* Split layout */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split-top { align-items: start; }
@media (min-width: 1024px) { .split { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.split-copy { display: grid; gap: 1.25rem; justify-items: start; }
@media (min-width: 1024px) { .split-top > .split-copy, .split-top > .section-head, .split-top > .info-list { position: sticky; top: calc(var(--header-h) + 2rem); } }

/* Feature lists */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.ticks li { position: relative; padding-left: 1.65rem; color: var(--fg); line-height: 1.6; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .48em; width: .7rem; height: .7rem; background: var(--brass); border-radius: .35rem .35rem .05rem .05rem; }

/* Services: sticky index + rows */
.svc-section { padding-top: clamp(2.5rem, 5vw, 4rem); }
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.svc-index, .svc-list { min-width: 0; }
.svc-index ol { list-style: none; margin: 0; padding: 0; }
.svc-index a { text-decoration: none; }
@media (max-width: 1023px) {
  .svc-index {
    position: sticky; top: var(--header-h); z-index: 5; margin: 0 calc(var(--gutter) * -1); padding: .75rem var(--gutter);
    background: rgba(244, 239, 224, .95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 2px solid var(--brass);
  }
  .svc-index > .lab { display: none; }
  .svc-index ol { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
  .svc-index ol::-webkit-scrollbar { display: none; }
  .svc-index li { flex: none; scroll-snap-align: start; }
  .svc-index a {
    display: inline-flex; gap: .4rem; align-items: center; min-height: 40px; padding: .5rem .9rem; border: 2px solid var(--ink); border-radius: 999px;
    font: 700 .74rem/1 var(--f-label); text-transform: uppercase; letter-spacing: .1em; color: var(--ink); white-space: nowrap;
  }
  .svc-index a.active { background: var(--ink); color: var(--cream); }
  .svc-index .n { color: var(--brass-d); }
  .svc-index a.active .n { color: var(--brass-l); }
}
@media (min-width: 1024px) {
  .svc-layout { grid-template-columns: 240px minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
  .svc-index { position: sticky; top: calc(var(--header-h) + 2.5rem); display: grid; gap: 1rem; padding-top: clamp(2.5rem, 6vw, 4rem); }
  .svc-index ol { display: grid; border-left: 2px solid rgba(184, 134, 43, .4); }
  .svc-index a {
    display: flex; gap: .75rem; align-items: baseline; padding: .65rem 0 .65rem 1rem; margin-left: -2px; border-left: 2px solid transparent;
    font: 600 1.2rem/1.1 var(--f-display); color: var(--muted); transition: color .2s, border-color .2s, padding .2s;
  }
  .svc-index .n { font: 700 .72rem/1 var(--f-label); color: var(--brass-d); }
  .svc-index a:hover { color: var(--ink); }
  .svc-index a.active { color: var(--ink); border-left-color: var(--pop); padding-left: 1.4rem; }
}
.svc { position: relative; display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); padding: clamp(2.5rem, 6vw, 4rem) 0; border-top: 2px solid var(--rule); }
.svc:first-child { border-top: 0; }
@media (max-width: 1023px) { .svc { scroll-margin-top: calc(var(--header-h) + 4.5rem); } }
@media (min-width: 768px) { .svc { grid-template-columns: .95fr 1.05fr; align-items: start; } }
.svc-head { display: grid; gap: .75rem; }
.svc .idx { font: 600 clamp(3.5rem, 8vw, 5.5rem)/.9 var(--f-display); color: transparent; -webkit-text-stroke: 2px var(--brass); transition: color .4s; }
.svc.active .idx, .svc:hover .idx { color: var(--brass); }
.svc .body { display: grid; gap: 1.25rem; }
.svc .body > p { color: var(--muted); font-size: 1.15rem; }

/* Solution: big stat + pipeline */
.big-stat { --card: var(--green-d); }
.big-stat .d { font-size: clamp(3.5rem, 8vw, 5.5rem); line-height: .95; }
.pipe { position: relative; display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .pipe { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.pipe-card { z-index: 1; }
.pipe-card .lab { display: flex; gap: .6rem; align-items: center; }
.pipe-card .pn { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--brass); color: var(--ink); font-size: .7rem; letter-spacing: 0; }
.pipe-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: repeating-linear-gradient(180deg, var(--brass) 0 8px, transparent 8px 16px); }
.pipe-line i { position: absolute; left: 50%; top: 0; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--pop); box-shadow: 0 0 0 5px rgba(255, 90, 60, .25); animation: packet-v 4s var(--ease) infinite; }
@keyframes packet-v { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: calc(100% - 12px); opacity: 0; } }
@media (min-width: 900px) {
  .pipe-line { left: 0; right: 0; top: 50%; bottom: auto; width: auto; height: 2px; margin: -1px 0 0; background: repeating-linear-gradient(90deg, var(--brass) 0 8px, transparent 8px 16px); }
  .pipe-line i { left: 0; top: 50%; margin: -6px 0 0; animation-name: packet-h; }
  @keyframes packet-h { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: calc(100% - 12px); opacity: 0; } }
}

/* Segmented toggle */
.seg { display: inline-flex; padding: 4px; border: 2px solid var(--brass); border-radius: 999px; margin-bottom: 1.25rem; max-width: 100%; }
.seg button {
  border: 0; background: transparent; color: var(--fg); cursor: pointer; min-height: 40px; padding: .5rem 1.1rem; border-radius: 999px;
  font: 700 .74rem/1 var(--f-label); text-transform: uppercase; letter-spacing: .12em; transition: background-color .25s, color .25s;
}
.seg button[aria-pressed="true"] { background: var(--brass); color: var(--ink); }

/* Comparison table → cards on phones */
.table-wrap { border: 2px solid var(--rule); }
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 1.1rem 1.2rem; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(184, 134, 43, .35); transition: background-color .3s, color .3s, opacity .3s; }
.compare thead th { font: 700 .74rem/1.3 var(--f-label); text-transform: uppercase; letter-spacing: .14em; color: var(--brass-l); background: var(--green-d); }
.compare tbody th { font: 600 1.15rem/1.2 var(--f-display); }
.compare td { color: var(--muted); }
.compare tbody tr:hover { background: rgba(255, 255, 255, .03); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
[data-mode="us"] .compare .us, [data-mode="them"] .compare .them { color: var(--cream); font-weight: 700; background: rgba(184, 134, 43, .14); }
[data-mode="us"] .compare thead .us, [data-mode="them"] .compare thead .them { color: var(--ink); background: var(--brass); }
[data-mode="them"] .compare td.them { background: rgba(255, 90, 60, .12); }
@media (max-width: 767px) {
  .table-wrap { border: 0; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { border: 2px solid var(--rule); margin-bottom: 1rem; background: var(--green-l); }
  .compare tbody th { background: var(--green-d); }
  .compare td { display: grid; gap: .3rem; }
  .compare td::before { content: attr(data-label); font: 700 .7rem/1.2 var(--f-label); text-transform: uppercase; letter-spacing: .14em; color: var(--brass-l); }
}

/* About story */
.story { display: grid; gap: 1.1rem; font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--muted); }
.dropcap::first-letter { float: left; font: 600 3.9em/.85 var(--f-display); color: var(--brass-d); margin: .06em .12em 0 0; }

/* FAQ */
.faq { display: grid; gap: .75rem; }
.faq details { border: 2px solid var(--rule); background: var(--card); transition: border-color .3s; }
.faq details[open] { border-color: var(--brass-l); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.15rem 1.25rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  font: 600 clamp(1.15rem, 1.8vw, 1.35rem)/1.25 var(--f-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  border: 2px solid var(--brass-l); font: 700 1.1rem/1 var(--f-label); color: var(--brass-l); transition: transform .3s var(--ease), background-color .3s, color .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--brass-l); color: var(--ink); }
.faq-body { overflow: hidden; }
.faq details p { padding: 0 1.25rem 1.25rem; color: var(--muted); }

/* Form */
.form-panel { background: var(--green); color: var(--cream); box-shadow: 14px 16px 0 rgba(23, 34, 29, .14); }
.form-panel .fascia { background: var(--green); }
.form { display: grid; gap: 1.1rem; }
.form-head { display: grid; gap: .75rem; justify-items: start; }
.form-row { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.field { position: relative; display: grid; gap: .4rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label, .field legend { font: 700 .74rem/1.2 var(--f-label); text-transform: uppercase; letter-spacing: .14em; color: var(--brass-l); padding: 0; }
.field legend { margin-bottom: .4rem; }
.opt { color: rgba(244, 239, 224, .72); letter-spacing: .08em; }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: .8rem .9rem; border: 2px solid rgba(220, 174, 90, .45); border-radius: 4px;
  background: var(--green-d); color: var(--cream); font: 400 1rem/1.4 var(--f-body); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: rgba(220, 174, 90, .75); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brass-l); box-shadow: 0 0 0 3px rgba(220, 174, 90, .3); }
.field input:user-invalid { border-color: var(--pop); }
.field.ok input { border-color: #5fd38a; }
.count { justify-self: end; font: 700 .7rem/1 var(--f-label); color: rgba(244, 239, 224, .6); }
.chip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: .5rem; }
@media (max-width: 639px) { .chip-grid { grid-template-columns: 1fr 1fr; } .chip b { font-size: 1rem; } }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: grid; gap: .15rem; height: 100%; padding: .7rem .8rem; border: 2px solid rgba(220, 174, 90, .4); border-radius: 4px;
  background: var(--green-d); transition: border-color .2s, background-color .2s, transform .2s var(--ease);
}
.chip b { font: 600 1.05rem/1.1 var(--f-display); }
.chip small { font-size: .78rem; color: rgba(244, 239, 224, .7); }
.chip:hover span { border-color: var(--brass-l); }
.chip input:checked + span { background: var(--brass); border-color: var(--brass); color: var(--ink); transform: translateY(-2px); }
.chip input:checked + span small { color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--pop); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font: 700 .72rem/1.4 var(--f-label); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.form-status { display: none; padding: 1rem 1.15rem; border: 2px solid var(--brass-l); font-weight: 600; }
.form-status.show { display: block; animation: rise .4s var(--ease); }
.form-status.error { border-color: var(--pop); }
.form .btn { width: 100%; min-height: 58px; font-size: 1.3rem; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* Contact info */
.info-list { display: grid; gap: 1rem; }
.info { position: relative; overflow: hidden; border: 2px solid var(--rule); padding: 1.25rem 1.35rem; display: grid; gap: .4rem; background: var(--card); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.info:hover { transform: translateX(4px); box-shadow: -6px 0 0 var(--brass); }
.info .v { font: 600 clamp(1.4rem, 2.6vw, 1.85rem)/1.1 var(--f-display); overflow-wrap: anywhere; text-decoration: none; }
.info .v-mail { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
.info a.v:hover { color: var(--brass-d); }
.info p { color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: .55rem; }
.copy {
  position: relative; z-index: 1; margin-left: .35rem; padding: .3rem .6rem; border: 2px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink);
  font: 700 .68rem/1 var(--f-label); text-transform: uppercase; letter-spacing: .1em; cursor: pointer;
}
.copy:hover, .copy.done { background: var(--ink); color: var(--cream); }

/* CTA band */
.cta-band { text-align: center; position: relative; overflow: hidden; }
.cta-band .wrap { display: grid; justify-items: center; gap: 1.25rem; }
.cta-band .d { max-width: 18ch; }
.cta-band .lead { color: var(--ink); margin: 0 auto .5rem; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn-line { color: var(--ink); }
.cta-band .btn-line:hover { background: var(--ink); color: var(--brass); }

/* 404 */
.nf { min-height: 70vh; display: grid; align-items: center; text-align: center; }
.nf .fascia { display: grid; gap: 1.25rem; justify-items: center; max-width: 60rem; margin-inline: auto; }
.nf .btn-row { justify-content: center; }

/* Footer */
.site-footer { background: var(--ink); color: var(--cream); border-top: 2px solid var(--brass); --fg: var(--cream); --bg: var(--ink); --hl: var(--brass-l); overflow: hidden; }
.footer-cta { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; align-items: end; justify-content: space-between; padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid rgba(184, 134, 43, .4); }
.footer-grid { display: grid; gap: 2.5rem; padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
@media (min-width: 640px) and (max-width: 1023px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand { display: grid; gap: 1rem; align-content: start; }
.footer-brand .lockup { --lk-h: 52px; justify-self: start; }
.footer-brand p { color: rgba(244, 239, 224, .74); max-width: 26rem; }
.footer-col h2 { font: 700 .74rem/1 var(--f-label); text-transform: uppercase; letter-spacing: .16em; color: var(--brass-l); margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-col a { text-decoration: none; color: rgba(244, 239, 224, .86); overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--brass-l); text-decoration: underline; }
.footer-mark {
  font: 600 clamp(3.5rem, 15.5vw, 15rem)/.9 var(--f-display); letter-spacing: -.02em; text-align: center;
  color: transparent; -webkit-text-stroke: 1px rgba(184, 134, 43, .45); user-select: none; margin: 0 0 -.06em; white-space: nowrap;
}
.footer-sub {
  border-top: 1px solid rgba(184, 134, 43, .4); padding: 1.25rem 0 1.75rem; display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between;
  font: 700 .72rem/1.4 var(--f-label); text-transform: uppercase; letter-spacing: .12em; color: rgba(244, 239, 224, .7);
}
.proto { color: var(--pop); }

/* Phone dock + back to top */
.dock { display: none; }
@media (max-width: 639px) {
  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 2fr; gap: .6rem;
    padding: .65rem var(--gutter) max(.65rem, env(safe-area-inset-bottom));
    background: rgba(11, 37, 25, .96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-top: 2px solid var(--brass);
    --fg: var(--cream); --bg: var(--green-d);
    transform: translateY(110%); transition: transform .35s var(--ease);
  }
  .dock.show { transform: none; }
  .dock .btn { min-height: 48px; box-shadow: none; }
}
.to-top {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: 1.25rem; z-index: 39; width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--brass); background: var(--green-d); color: var(--brass-l); font: 700 1.2rem/1 var(--f-label); cursor: pointer;
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease), background-color .2s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--brass); color: var(--ink); }
@media (max-width: 639px) { .to-top { bottom: 5.25rem; } }

/* Field errors */
.err { min-height: 0; font-size: .85rem; font-weight: 600; color: #ffb4a3; }
.err:empty { display: none; }
.field.bad input { border-color: var(--pop); }
.form-note a { color: var(--brass-l); }

/* Text-styled button (footer "Cookie settings") */
.linkish { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.footer-col .linkish { color: rgba(244, 239, 224, .86); text-decoration: none; }
.footer-col .linkish:hover { color: var(--brass-l); text-decoration: underline; }

/* Cookie banner */
.cookie {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 60;
  max-width: 44rem; margin-left: auto; background: var(--ink); color: var(--cream); border: 2px solid var(--brass);
  box-shadow: 10px 12px 0 rgba(0, 0, 0, .3); --fg: var(--cream); --bg: var(--ink);
  opacity: 0; transform: translateY(20px); transition: opacity .3s ease, transform .3s var(--ease);
}
.cookie.show { opacity: 1; transform: none; }
.cookie-in { display: grid; gap: 1rem; padding: 1.1rem 1.25rem; }
.cookie p { font-size: .95rem; color: rgba(244, 239, 224, .88); }
.cookie p b { color: var(--cream); }
.cookie a { color: var(--brass-l); }
.cookie-btns { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie-btns .btn { flex: 1 1 10rem; min-height: 46px; font-size: 1rem; box-shadow: none; }
@media (min-width: 900px) { .cookie-in { grid-template-columns: 1fr auto; align-items: center; } .cookie-btns { flex-wrap: nowrap; } }

/* Legal pages */
.legal-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
.legal-tabs { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.legal-tabs a {
  display: inline-flex; align-items: center; min-height: 40px; padding: .5rem .9rem; border: 2px solid var(--ink); border-radius: 999px;
  font: 700 .74rem/1 var(--f-label); text-transform: uppercase; letter-spacing: .1em; color: var(--ink); text-decoration: none;
}
.legal-tabs a[aria-current="page"], .legal-tabs a:hover { background: var(--ink); color: var(--cream); }
.legal-toc { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .25rem; border-left: 2px solid rgba(184, 134, 43, .4); }
.legal-toc a {
  display: flex; gap: .65rem; align-items: baseline; padding: .35rem 0 .35rem .85rem; margin-left: -2px; border-left: 2px solid transparent;
  font: 600 .95rem/1.35 var(--f-body); color: var(--muted); text-decoration: none; transition: color .2s, border-color .2s, padding .2s;
}
.legal-toc .n { font: 700 .72rem/1 var(--f-label); color: var(--brass-d); letter-spacing: .08em; flex: none; }
.legal-toc a:hover { color: var(--ink); border-left-color: var(--brass); padding-left: 1.05rem; }
.legal-body { display: grid; gap: 2.25rem; max-width: 52rem; align-content: start; }
.legal-sec { display: grid; gap: .9rem; align-content: start; padding-top: 1.75rem; border-top: 1px solid rgba(184, 134, 43, .35); scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.legal-sec:first-of-type { padding-top: 0; border-top: 0; }
.legal-sec h2 { display: grid; grid-template-columns: 2.1rem 1fr; align-items: baseline; }
.legal-sec h2 .n { font: 700 .8rem/1 var(--f-label); color: var(--brass-d); letter-spacing: .1em; }
.legal-sec > p, .legal-sec > .ticks, .legal-sec > .table-wrap { margin-left: 2.1rem; }
@media (max-width: 639px) { .legal-sec > p, .legal-sec > .ticks, .legal-sec > .table-wrap { margin-left: 0; } }
.legal-sec p { color: var(--muted); }
.legal-sec a { color: var(--brass-d); font-weight: 600; }
.legal-sec .linkish { color: var(--brass-d); font-weight: 600; }
.legal-table { border-color: var(--brass); }
.legal-table tbody th { font: 600 .95rem/1.35 var(--f-label); text-transform: none; letter-spacing: 0; }
@media (min-width: 768px) {
  .legal-table tbody th, .legal-table th:last-child, .legal-table td:last-child { white-space: nowrap; }
}
.legal-table tbody tr:hover { background: rgba(0, 0, 0, .03); }
@media (max-width: 767px) { .legal .compare tr { background: var(--card); } .legal .compare tbody th { background: var(--cream-d); } .legal .compare td::before { color: var(--brass-d); } }
@media (min-width: 1024px) {
  .legal-layout { grid-template-columns: 260px minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
  .legal-side { position: sticky; top: calc(var(--header-h) + 2rem); }
  .legal-tabs { display: grid; }
  .legal-tabs a { display: flex; width: 100%; }
}

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee { animation: none; flex-wrap: wrap; width: auto; }
  .marquee-set[aria-hidden] { display: none; }
  .marquee-set { flex-wrap: wrap; justify-content: center; row-gap: .75rem; }
  .pipe-line i { display: none; }
}
