/* ==========================================================================
   Alex Website Automations — "Warm" theme
   Sans: DM Sans · Accent: Instrument Serif Italic · UI/data: Inter

   Warm paper ground, warm near-black ink, terracotta used sparingly and
   almost always as a serif italic. Rounded cards, a floating pill nav, and
   sections that alternate between paper and near-black.

   Character comes from the sans/serif-italic pairing and generous space —
   not from imagery. Every claim on the page is one that can be checked.
   ========================================================================== */

@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 100 1000; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-italic-latin.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}

:root {
  color-scheme: light;

  /* ---- Grounds ---------------------------------------------------------- */
  --paper:      #FBF9F4;   /* the page                                       */
  --paper-2:    #F4F1EA;   /* raised panels, hovers                          */
  --paper-3:    #FFFFFF;   /* the stat strip, cards on paper                 */
  --near:       #14120F;   /* the dark band                                  */
  --near-2:     #1F1C18;   /* cards on the dark band                         */

  /* ---- Ink -------------------------------------------------------------- */
  --ink:        #1A1714;   /* headings and body                              */
  --ink-2:      #5C5348;   /* secondary copy                    5.99:1       */
  --ink-3:      #6B6358;   /* meta, labels                      4.99:1       */
  --on-near:    #FBF9F4;   /* text on the dark band                          */
  --on-near-2:  #B8AFA1;   /* secondary text on the dark band   7.35:1       */

  /* ---- Accent. Terracotta, almost always in serif italic ---------------- */
  --clay:       #A64E2A;   /* the accent          4.97:1 on the alt ground   */
  --clay-deep:  #8F4324;   /* hover / pressed                                */
  --clay-soft:  #F0E4DC;   /* tint fill                                      */
  --clay-on-near: #D98A63;  /* the accent on the dark band      7.02:1       */

  /* ---- Signals ---------------------------------------------------------- */
  --live:       #2F7D1C;   /* the availability dot              4.71:1       */
  --alert:      #A33121;

  /* ---- Lines ------------------------------------------------------------ */
  --hair:       #E6DFD3;   /* dividers, card edges on paper                  */
  --edge:       #8A8073;   /* real control edges                3.14:1       */
  --hair-near:  #322D27;   /* dividers on the dark band                      */

  /* ---- Geometry. Rounded, unlike the old theme -------------------------- */
  --r-sm:  10px;
  --r:     16px;
  --r-lg:  24px;
  --r-pill: 999px;

  --shadow-pill: 0 1px 2px rgba(26,23,20,.06), 0 8px 24px rgba(26,23,20,.08);
  --shadow-card: 0 1px 2px rgba(26,23,20,.04), 0 12px 32px rgba(26,23,20,.06);

  /* ---- Spacing. 4px base ------------------------------------------------ */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 144px;

  --wrap:       1200px;
  --wrap-text:  62ch;
  --wrap-mid:   720px;

  /* The reference's signature curve: fast out, long settle. */
  --dur:  300ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-slow: 700ms;

  --z-base: 0; --z-raise: 1; --z-nav: 50; --z-panel: 60; --z-skip: 80;

  /* ---- Type scale ------------------------------------------------------- */
  --t--1: clamp(0.8125rem, 0.79rem  + 0.09vw, 0.875rem);   /* 13 → 14 */
  --t-0:  clamp(1rem,      0.978rem + 0.09vw, 1.0625rem);  /* 16 → 17 */
  --t-1:  clamp(1.125rem,  1.081rem + 0.19vw, 1.25rem);    /* 18 → 20 */
  --t-2:  clamp(1.375rem,  1.287rem + 0.38vw, 1.625rem);   /* 22 → 26 */
  --t-3:  clamp(1.75rem,   1.53rem  + 0.94vw, 2.375rem);   /* 28 → 38 */
  --t-4:  clamp(2.25rem,   1.766rem + 2.06vw, 3.625rem);   /* 36 → 58 */
  --t-5:  clamp(2.75rem,   1.925rem + 3.52vw, 5.125rem);   /* 44 → 82 */

  --font-sans:  "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ui:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
}

/* ==========================================================================
   Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--t-0);
  font-variation-settings: "opsz" 18, "wght" 400;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { display: block; max-width: 100%; }
/* The <picture> wrapper must not become the flex/grid child itself — but
   display:contents also promotes <source> to a grid/flex item, which silently
   consumed a column in every row it appeared in. Sources are metadata and must
   never take part in layout. */
picture { display: contents; }
picture > source { display: none; }
img { height: auto; }
::selection { background: var(--clay); color: var(--paper); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip { position: absolute; left: -9999px; }
.skip:focus {
  position: fixed; left: var(--s4); top: var(--s4); z-index: var(--z-skip);
  background: var(--ink); color: var(--paper);
  padding: var(--s3) var(--s5); border-radius: var(--r-pill);
  font-weight: 600; text-decoration: none;
  outline: 3px solid var(--clay); outline-offset: 2px;
}

/* ==========================================================================
   Type
   ========================================================================== */

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  font-variation-settings: "opsz" 40, "wght" 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
  text-wrap: balance;
}
h1 { font-size: var(--t-5); }
h2 { font-size: var(--t-4); }
h3 { font-size: var(--t-2); letter-spacing: -0.02em; line-height: 1.22; }
h4 { font-size: var(--t-1); letter-spacing: -0.01em; line-height: 1.3; }

/* The signature: the second half of a headline, in terracotta serif italic. */
.say {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--clay);
  letter-spacing: -0.01em;
  /* the serif runs small next to the sans at the same px size */
  font-size: 1.08em;
}
.on-near .say, .band--near .say { color: var(--clay-on-near); }

p { margin: 0 0 var(--s5); max-width: var(--wrap-text); }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: var(--t-1);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
}
.small { font-size: var(--t--1); color: var(--ink-3); }

/* Inter carries UI text: labels, pills, buttons, numerals. */
.ui {
  font-family: var(--font-ui);
  font-size: var(--t--1);
  letter-spacing: 0.01em;
  color: var(--ink-3);
}
.ui--caps {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 0.78rem;
}
.num { font-family: var(--font-ui); font-variant-numeric: tabular-nums lining-nums; }

a { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--clay) 55%, transparent); text-underline-offset: .16em; }
a:hover { color: var(--clay); }
a:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; border-radius: 4px; }
.band--near a { color: var(--paper); }
.band--near a:hover { color: var(--clay-on-near); }
.band--near a:focus-visible { outline-color: var(--clay-on-near); }

/* ==========================================================================
   Layout
   ========================================================================== */

.wrap { width: min(100% - (2 * var(--s5)), var(--wrap)); margin-inline: auto; }
@media (min-width: 768px) { .wrap { width: min(100% - (2 * var(--s8)), var(--wrap)); } }

.band { padding-block: clamp(3.5rem, 2.4rem + 4.7vw, 6.5rem); }
.band--tight { padding-block: clamp(2rem, 1.4rem + 2.6vw, 3.5rem); }
.band--flush-b { padding-bottom: clamp(2rem, 1.4rem + 2.6vw, 3.5rem); }
.band--near { background: var(--near); color: var(--on-near); }
.band--near h1, .band--near h2, .band--near h3, .band--near h4 { color: var(--on-near); }
.band--near p { color: var(--on-near-2); }
.band--near .lede { color: var(--on-near-2); }
.band--paper2 { background: var(--paper-2); }

/* A centred section head — the reference's rhythm. */
.head { max-width: 46ch; margin-inline: auto; text-align: center; margin-bottom: var(--s7); }
.head .lede { margin-inline: auto; }
.head .ui--caps { display: block; margin-bottom: var(--s4); color: var(--ink-3); }
.band--near .head .ui--caps { color: var(--on-near-2); }
.head h2 { margin-bottom: var(--s5); }

.stack { display: grid; gap: var(--s5); }
.center { text-align: center; }

/* ==========================================================================
   Pills and badges
   ========================================================================== */

.pill {
  display: inline-flex; align-items: center; gap: var(--s2);
  white-space: nowrap;
  font-family: var(--font-ui); font-size: var(--t--1); font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hair);
  background: var(--paper-3);
  color: var(--ink-2);
}
.band--near .pill { background: var(--near-2); border-color: var(--hair-near); color: var(--on-near-2); }

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); flex: none; }
.dot--clay { background: var(--clay); }
.band--near .dot--clay { background: var(--clay-on-near); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  font-family: var(--font-ui); font-size: var(--t-0); font-weight: 600;
  padding: 15px 26px; min-height: 52px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.btn--primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--primary:hover { background: var(--clay); border-color: var(--clay); color: var(--paper); transform: translateY(-1px); }
.btn--clay { background: var(--clay); color: #fff; border-color: var(--clay); }
.btn--clay:hover { background: var(--clay-deep); border-color: var(--clay-deep); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--edge); }
.btn--ghost:hover { background: var(--paper-2); border-color: var(--ink); color: var(--ink); }
.btn:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }
.btn:active { transform: none; }

.band--near .btn--primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.band--near .btn--primary:hover { background: var(--clay-on-near); border-color: var(--clay-on-near); color: var(--near); }
.band--near .btn--ghost { color: var(--on-near); border-color: var(--hair-near); }
.band--near .btn--ghost:hover { background: var(--near-2); border-color: var(--on-near-2); color: var(--on-near); }
.band--near .btn:focus-visible { outline-color: var(--clay-on-near); }

.actions { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; }
.actions--center { justify-content: center; }

/* ==========================================================================
   Floating pill nav
   ========================================================================== */

.nav {
  position: sticky; top: var(--s5); z-index: var(--z-nav);
  padding-inline: var(--s4);
  margin-bottom: calc(-1 * (64px + var(--s5)));
  display: flex; justify-content: center;
}
.nav__bar {
  width: max-content; max-width: 100%;
  display: flex; align-items: center; gap: var(--s4);
  background: color-mix(in srgb, var(--paper-3) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
          backdrop-filter: saturate(1.6) blur(14px);
  border: 1px solid var(--hair);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-pill);
  padding: 9px 9px 9px var(--s4);
  min-height: 64px;
}
@media (min-width: 900px) { .nav__bar { gap: var(--s5); padding-left: var(--s5); } }
.brand { display: flex; align-items: center; gap: var(--s3); text-decoration: none; color: var(--ink); min-width: 0; }
.brand__txt { min-width: 0; }
.brand__n, .brand__r { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 1100px) { .brand { flex: none; } .brand__n, .brand__r { overflow: visible; } }
.brand__mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--font-ui); font-weight: 700; font-size: 15px;
  flex: none;
}
.brand__txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand__n { font-weight: 700; font-size: var(--t--1); letter-spacing: -0.01em; }
.brand__r { font-family: var(--font-ui); font-size: 11px; color: var(--ink-3); }

.nav__links { display: none; gap: var(--s5); margin-inline: auto; }
@media (min-width: 900px) { .nav__links { display: flex; align-items: center; } }
.nav__links a {
  font-family: var(--font-ui); font-size: var(--t--1); font-weight: 500;
  color: var(--ink-2); text-decoration: none; padding-block: 6px;
}
.nav__links a:hover { color: var(--clay); }
.nav__links a.is-current { color: var(--ink); font-weight: 600; }

.nav__status { display: none; }
@media (min-width: 620px) { .nav__status { display: inline-flex; } }

/* Below the desktop breakpoint the panel carries the CTA, so the bar drops it
   rather than forcing itself wider than the viewport. */
.nav__cta { display: none; flex: none; }
@media (min-width: 900px) { .nav__cta { display: block; } }
.nav__cta .btn { min-height: 46px; padding: 11px 20px; font-size: var(--t--1); }

.nav-toggle {
  margin-left: auto; width: 46px; height: 46px; flex: none;
  border-radius: 50%; border: 1px solid var(--hair); background: var(--paper-3);
  display: grid; place-items: center; cursor: pointer; padding: 0;
}
@media (min-width: 900px) { .nav-toggle { display: none; } }
.nav-toggle:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }
.nav-toggle__b { position: relative; width: 17px; height: 9px; display: block; }
.nav-toggle__b::before, .nav-toggle__b::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.5px;
  background: var(--ink); border-radius: 2px;
}
.nav-toggle__b::before { top: 0; } .nav-toggle__b::after { bottom: 0; }

.nav-panel {
  position: fixed; inset: 92px var(--s4) auto var(--s4); z-index: var(--z-panel);
  background: var(--paper-3); border: 1px solid var(--hair);
  border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  padding: var(--s3); max-height: calc(100dvh - 120px); overflow-y: auto;
}
@media (min-width: 900px) { .nav-panel { display: none !important; } }
.nav-panel a {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s4) var(--s4); min-height: 54px;
  border-radius: var(--r-sm); text-decoration: none; color: var(--ink);
  font-weight: 500;
}
.nav-panel a:hover, .nav-panel a:focus-visible { background: var(--paper-2); color: var(--clay); }
.nav-panel__cta { padding: var(--s3) var(--s2) var(--s2); }
.nav-panel__cta .btn { width: 100%; }
body.nav-open { overflow: hidden; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding-top: clamp(8rem, 5rem + 12vw, 11rem);
  padding-bottom: clamp(3rem, 2rem + 4vw, 5rem);
  overflow: hidden;
}
@media (min-width: 1000px) {
  .hero > .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--s7); align-items: start; }
  .hero__copy { grid-column: 1; }
  .hero__figure { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; }
}
/* A soft warm wash, the only gradient on the site. */
.hero::before {
  content: ""; position: absolute; inset: -10% -20% auto -20%; height: 130%;
  z-index: var(--z-base); pointer-events: none;
  background:
    radial-gradient(55% 50% at 18% 16%, rgba(166,78,42,.10), transparent 70%),
    radial-gradient(60% 55% at 78% 22%, rgba(190,186,178,.55), transparent 72%),
    radial-gradient(50% 45% at 92% 6%,  rgba(213,199,155,.28), transparent 72%),
    radial-gradient(80% 65% at 55% 96%, rgba(26,23,20,.07), transparent 72%);
}
.hero > * { position: relative; z-index: var(--z-raise); }
.hero h1 { max-width: 16ch; margin-bottom: var(--s6); }
.hero .lede { margin-bottom: var(--s7); }

/* ==========================================================================
   Stat strip
   ========================================================================== */

.stats {
  background: var(--paper-3);
  border-block: 1px solid var(--hair);
}
.stats__row {
  display: grid; gap: var(--s5);
  grid-template-columns: 1fr;
  padding-block: var(--s6);
}
@media (min-width: 700px) { .stats__row { grid-template-columns: repeat(3, 1fr); } }
/* Number over label: one of these figures is "$500–$700", which is far too
   wide to sit beside its label without wrapping into a mess. */
.stat { display: grid; gap: var(--s1); align-content: start; }
@media (min-width: 700px) {
  .stat + .stat { border-left: 1px solid var(--hair); padding-left: var(--s6); }
}
.stat__n {
  font-family: var(--font-ui); font-weight: 700;
  font-size: var(--t-3); letter-spacing: -0.03em; color: var(--ink);
  font-variant-numeric: tabular-nums lining-nums; line-height: 1.05;
  white-space: nowrap;
}
.stat__l { font-family: var(--font-ui); font-size: var(--t--1); color: var(--ink-3); line-height: 1.35; }

/* ==========================================================================
   Cards
   ========================================================================== */

.cards { display: grid; gap: var(--s5); grid-template-columns: 1fr; }
@media (min-width: 700px)  { .cards--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px)  { .cards--2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  display: flex; flex-direction: column; gap: var(--s4);
  padding: var(--s6);
  border-radius: var(--r-lg);
  background: var(--paper-3);
  border: 1px solid var(--hair);
  text-decoration: none; color: inherit;
  transition: border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
a.card:hover, a.card:focus-visible {
  border-color: var(--clay); transform: translateY(-3px); box-shadow: var(--shadow-card);
}
a.card:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }
.card__k { color: var(--ink-3); font-family: var(--font-ui); font-size: var(--t--1); }
.card p { color: var(--ink-2); margin: 0; }
.card__foot { margin-top: auto; padding-top: var(--s3); display: flex; align-items: center; gap: var(--s2); }
.card__go {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  border: 1px solid var(--hair); display: grid; place-items: center;
  font-family: var(--font-ui); color: var(--ink-2);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
a.card:hover .card__go, a.card:focus-visible .card__go { background: var(--clay); border-color: var(--clay); color: #fff; }

.band--near .card { background: var(--near-2); border-color: var(--hair-near); }
.band--near .card p { color: var(--on-near-2); }
.band--near .card__k { color: var(--on-near-2); }
.band--near .card__go { border-color: var(--hair-near); color: var(--on-near-2); }
.band--near a.card:hover, .band--near a.card:focus-visible { border-color: var(--clay-on-near); }
.band--near a.card:hover .card__go { background: var(--clay-on-near); border-color: var(--clay-on-near); color: var(--near); }

/* ==========================================================================
   Numbered process
   ========================================================================== */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s5); counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); gap: var(--s6); } }
.steps > li {
  counter-increment: s;
  display: grid; grid-template-columns: 44px 1fr; gap: var(--s5);
  padding: var(--s5) 0;
  border-top: 1px solid var(--hair);
}
.steps > li::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--font-ui); font-weight: 600; font-size: var(--t--1);
  color: var(--clay);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--hair); display: grid; place-items: center;
}
.steps h3 { margin-bottom: var(--s2); }
.steps p { color: var(--ink-2); margin: 0; }

/* ==========================================================================
   Work plates
   ========================================================================== */

.plate { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--paper-3); border: 1px solid var(--hair); display: flex; flex-direction: column; }
.plate img { width: 100%; height: auto; border-bottom: 1px solid var(--hair); }
.plate figcaption { padding: var(--s5) var(--s6) var(--s6); display: grid; gap: var(--s2); }
.plate h3 { margin: 0; }
.plate p { color: var(--ink-2); margin: 0; }
.plate__meta { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq {
  border: 1px solid var(--hair); border-radius: var(--r);
  background: var(--paper-3); margin-bottom: var(--s3);
}
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s5);
  padding: var(--s5) var(--s6); cursor: pointer; list-style: none;
  font-weight: 600; font-size: var(--t-1); letter-spacing: -0.01em;
  border-radius: var(--r);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--clay); }
.faq summary:focus-visible { outline: 3px solid var(--clay); outline-offset: -2px; }
.faq__m { position: relative; width: 16px; height: 16px; flex: none; }
.faq__m::before, .faq__m::after { content: ""; position: absolute; background: var(--clay); border-radius: 2px; }
.faq__m::before { left: 0; top: 7px; width: 16px; height: 2px; }
.faq__m::after  { top: 0; left: 7px; height: 16px; width: 2px; }
.faq[open] .faq__m::after { display: none; }
.faq__a { padding: 0 var(--s6) var(--s6); }
.faq__a p { color: var(--ink-2); }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer { background: var(--near); color: var(--on-near); padding-block: var(--s9) var(--s7); }
.footer h2 { margin-bottom: var(--s5); }
.footer a { color: var(--on-near); }
.footer-top { display: grid; gap: var(--s7); margin-bottom: var(--s9); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.2fr .8fr; align-items: end; } }
.footer-grid { display: grid; gap: var(--s6); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-grid h3 { font-size: var(--t--1); font-family: var(--font-ui); text-transform: uppercase; letter-spacing: .12em; color: var(--on-near-2); margin-bottom: var(--s4); font-weight: 600; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.footer-grid a { text-decoration: none; color: var(--on-near); font-size: var(--t--1); }
.footer-grid a:hover { color: var(--clay-on-near); }
.footer-base {
  margin-top: var(--s8); padding-top: var(--s5);
  border-top: 1px solid var(--hair-near);
  display: flex; flex-wrap: wrap; gap: var(--s4); justify-content: space-between;
  font-family: var(--font-ui); font-size: var(--t--1); color: var(--on-near-2);
}

/* ==========================================================================
   Forms (used on later pages; defined here so the theme is complete)
   ========================================================================== */

.field { margin-bottom: var(--s5); }
.field__label { display: block; font-family: var(--font-ui); font-size: var(--t--1); font-weight: 600; margin-bottom: var(--s2); }
input[type=text], input[type=email], input[type=tel], input[type=url], select, textarea {
  width: 100%; font-family: var(--font-sans); font-size: var(--t-0);
  color: var(--ink); background: var(--paper-3);
  border: 1px solid var(--edge); border-radius: var(--r-sm);
  padding: 13px var(--s4); min-height: 52px;
}
textarea { min-height: 160px; resize: vertical; }
:is(input,select,textarea):focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; border-color: var(--clay); }
:is(input,select,textarea)[aria-invalid=true] { border-color: var(--alert); border-width: 2px; }
.field__error { display: flex; gap: var(--s2); color: var(--alert); font-size: var(--t--1); margin-top: var(--s2); }

/* ==========================================================================
   Motion

   Four ideas, all borrowed from the reference:
     · things rise 14px as they arrive, on a fast-out/long-settle curve
     · whole sections reveal at 22px once they enter the viewport
     · the hero wash drifts for 26s and never repeats the same way twice
     · everything interactive answers in 300ms on the same curve
   All of it collapses to nothing under prefers-reduced-motion.
   ========================================================================== */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes drift {
  from { transform: translateZ(0) scale(1); }
  to   { transform: translate3d(-1.5%, 1%, 0) scale(1.03); }
}
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes shimmer { to { background-position: 300% 0; } }
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .55; transform: scale(.82); }
}

/* ---- The hero arrives, one element at a time ----------------------------
   The copy column moves but never fades: animating opacity from 0 disqualifies
   the h1 as an LCP candidate, which handed LCP to the decorative seal and
   tripled it. Transform alone keeps the headline paintable immediately. */
@keyframes rise-t { from { transform: translateY(14px); } to { transform: none; } }
.hero__copy > * { animation: rise-t .6s var(--ease) both; }
.hero__figure { animation: rise .6s var(--ease) both; }
.hero > .wrap > * {
  animation: rise .6s var(--ease) both;
}
.hero > .wrap > .hero__copy { animation: none; }
.hero__copy > *:nth-child(1) { animation-delay: .04s; }
.hero__copy > *:nth-child(2) { animation-delay: .10s; }
.hero__copy > *:nth-child(3) { animation-delay: .16s; }
.hero__copy > *:nth-child(4) { animation-delay: .22s; }
.hero__copy > *:nth-child(5) { animation-delay: .28s; }

/* ---- The wash never sits still ----------------------------------------- */
.hero::before { animation: drift 26s ease-in-out infinite alternate; }

/* ---- Sections reveal as they arrive ------------------------------------ */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  will-change: opacity, transform;
}
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; will-change: auto; }

/* Children stagger within a revealed section. */
.js-reveal [data-reveal] .reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.js-reveal [data-reveal].is-in .reveal { opacity: 1; transform: none; }
.js-reveal [data-reveal].is-in .reveal:nth-child(1) { transition-delay: .06s; }
.js-reveal [data-reveal].is-in .reveal:nth-child(2) { transition-delay: .14s; }
.js-reveal [data-reveal].is-in .reveal:nth-child(3) { transition-delay: .22s; }
.js-reveal [data-reveal].is-in .reveal:nth-child(4) { transition-delay: .30s; }
.js-reveal [data-reveal].is-in .reveal:nth-child(5) { transition-delay: .38s; }
.js-reveal [data-reveal].is-in .reveal:nth-child(6) { transition-delay: .46s; }

/* ---- The availability dot breathes ------------------------------------- */
.dot { animation: pulse-dot 2.6s var(--ease) infinite; }

/* ---- The nav settles in on load ---------------------------------------- */
.nav__bar { animation: rise-t .5s var(--ease) both; }

/* ---- Interactive answers -------------------------------------------------
   One curve, one duration, on the four properties that actually move.      */
.btn, a.card, .icon-btn, .nav__links a, .footer-grid a, .shot img,
.clients__row a, .faq summary, .quote, .tier {
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              opacity var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
a.card:hover, a.card:focus-visible { transform: translateY(-4px); }
.icon-btn:hover { transform: translateY(-2px); }
.shot:hover img { transform: scale(1.015); box-shadow: var(--shadow-card); }
.tier:hover { border-color: var(--clay-on-near); }
.clients__row a:hover { transform: translateY(-2px); }

/* ---- FAQ opens instead of jumping -------------------------------------- */
.faq__a { display: grid; grid-template-rows: 1fr; }
.faq:not([open]) .faq__a { grid-template-rows: 0fr; }
.faq__a > * { overflow: hidden; min-height: 0; }
.faq { transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.faq[open] { border-color: color-mix(in srgb, var(--clay) 40%, var(--hair)); }
.faq__m::before, .faq__m::after { transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.faq[open] .faq__m::after { display: block; opacity: 0; transform: rotate(90deg); }
.faq[open] .faq__m::before { transform: rotate(180deg); }

/* ---- Marquees ----------------------------------------------------------- */
.ticker__track { animation: slide 46s linear infinite; }
.reel__track   { animation: slide 80s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .js-reveal [data-reveal],
  .js-reveal [data-reveal] .reveal,
  .hero > .wrap > *, .hero__copy > *, .hero__figure, .nav__bar {
    opacity: 1 !important; transform: none !important; animation: none !important;
  }
  .hero::before { animation: none !important; }
  .ticker__track, .reel__track { animation: none !important; }
  .ticker, .reel { overflow-x: auto; }
  .btn:hover, a.card:hover, .icon-btn:hover, .shot:hover img, .clients__row a:hover { transform: none !important; }
  .faq__a, .faq:not([open]) .faq__a { grid-template-rows: 1fr; }
  .dot { animation: none !important; }
}

/* ==========================================================================
   Content classes carried over from the inner pages
   ========================================================================== */

/* A definition-style list: a bolded lead-in, then the explanation. */
.facts { list-style: none; margin: 0; padding: 0; }
.facts > li {
  display: grid; gap: var(--s1);
  padding-block: var(--s5);
  border-top: 1px solid var(--hair);
  color: var(--ink-2);
  max-width: 74ch;
}
.facts > li:last-child { border-bottom: 1px solid var(--hair); }
.facts strong {
  color: var(--ink); font-weight: 600;
  font-variation-settings: "opsz" 24, "wght" 600;
}
.band--near .facts > li { border-color: var(--hair-near); color: var(--on-near-2); }
.band--near .facts strong { color: var(--on-near); }

/* A left-ruled aside — the inner pages' marginalia, reflowed inline. */
.note {
  border-left: 2px solid var(--clay);
  padding: var(--s1) 0 var(--s1) var(--s5);
  margin-block: var(--s6);
  color: var(--ink-2);
  font-size: var(--t--1);
  max-width: 56ch;
}
.band--near .note { color: var(--on-near-2); border-left-color: var(--clay-on-near); }

/* Key/value table of real facts. */
.spec-table {
  width: 100%; border-collapse: collapse;
  border: 1px solid var(--hair); border-radius: var(--r);
  overflow: hidden; background: var(--paper-3);
}
.spec-table caption {
  text-align: left; padding: var(--s4) var(--s5);
  background: var(--clay-soft); color: var(--ink);
  font-family: var(--font-ui); font-size: var(--t--1);
  text-transform: uppercase; letter-spacing: .12em; font-weight: 600;
}
.spec-table th, .spec-table td {
  text-align: left; padding: var(--s4) var(--s5);
  border-top: 1px solid var(--hair); font-size: var(--t--1); vertical-align: top;
}
.spec-table th {
  font-family: var(--font-ui); color: var(--ink-3); font-weight: 500; width: 42%;
}
.spec-table td { color: var(--ink); font-weight: 500; }

/* Section head, left-aligned variant — not every page wants dead-centre. */
.head--left { margin-inline: 0; text-align: left; max-width: 34ch; }
.head--left .lede { margin-inline: 0; }
.head--wide { max-width: 56ch; }

.measure { max-width: var(--wrap-text); }
.mt-6 { margin-top: var(--s6); } .mt-7 { margin-top: var(--s7); }
.mb-5 { margin-bottom: var(--s5); } .mb-6 { margin-bottom: var(--s6); }

/* 12-col helpers, kept so inner-page layouts survive the theme change. */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: var(--s5); }
@media (max-width: 767px) { .grid > * { grid-column: 1 / -1 !important; } }
@media (min-width: 768px) {
  .c1-7 { grid-column: 1 / 8; }   .c1-8 { grid-column: 1 / 9; }
  .c2-8 { grid-column: 2 / 9; }   .c1-5 { grid-column: 1 / 6; }
  .c4-12 { grid-column: 4 / 13; } .c5-12 { grid-column: 5 / 13; }
  .c6-12 { grid-column: 6 / 13; } .c7-12 { grid-column: 7 / 13; }
  .c9-12 { grid-column: 9 / 13; } .c1-12 { grid-column: 1 / 13; }
}

/* ==========================================================================
   Components — ticker, reel, case cards, arc, tiers, quotes, clients
   (Transitions for these live in the Motion section above, deliberately.)
   ========================================================================== */

/* ---- Word ticker -------------------------------------------------------- */
.ticker {
  overflow: hidden; border-block: 1px solid var(--hair);
  background: var(--paper-3); padding-block: var(--s4);
}
.band--near .ticker { background: var(--near-2); border-color: var(--hair-near); }
.ticker__track { display: flex; width: max-content; }
.ticker__set { display: flex; flex: none; }
.ticker__i {
  display: inline-flex; align-items: center; gap: var(--s5);
  padding-inline: var(--s5);
  font-family: var(--font-ui); font-size: var(--t--1); font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3);
  white-space: nowrap;
}
.ticker__i::after { content: "·"; color: var(--clay); font-size: 1.5em; line-height: 0; }

/* ---- Portfolio reel ----------------------------------------------------- */
.reel { overflow: hidden; padding-block: var(--s3) 0; }
.reel__track { display: flex; gap: var(--s5); width: max-content; }
.reel__set { display: flex; gap: var(--s5); flex: none; }
.shot { width: 280px; flex: none; margin: 0; }
@media (min-width: 700px) { .shot { width: 340px; } }
.shot img {
  width: 100%; height: auto; border-radius: var(--r);
  border: 1px solid var(--hair); background: var(--paper-3);
}
.shot figcaption {
  margin-top: var(--s3); display: flex; align-items: baseline; gap: var(--s2);
  font-family: var(--font-ui); font-size: var(--t--1);
}
.shot b { color: var(--clay); font-weight: 600; }
.shot span { color: var(--ink-3); }

/* ---- Case-study cards --------------------------------------------------- */
.case {
  display: flex; flex-direction: column; gap: var(--s4);
  padding: var(--s6); border-radius: var(--r-lg);
  background: var(--paper-3); border: 1px solid var(--hair);
}
.case__tag {
  align-self: flex-start;
  border-color: color-mix(in srgb, var(--clay) 35%, var(--hair));
  color: var(--clay); font-weight: 600;
}
.case h3 { font-size: var(--t-3); letter-spacing: -0.025em; line-height: 1.12; }
.case ul { margin: 0; padding-left: 1.1em; display: grid; gap: var(--s2); color: var(--ink-2); }
.case ul li::marker { color: var(--clay); }

/* ---- Journey arc -------------------------------------------------------- */
.arc { position: relative; text-align: center; padding-block: var(--s4) 0; }
.arc__svg { width: min(100%, 760px); margin-inline: auto; height: auto; display: block; }
.arc__ends {
  width: min(100%, 760px); margin: var(--s3) auto 0; max-width: none;
  display: flex; justify-content: space-between;
  font-family: var(--font-ui); font-size: var(--t--1);
  text-transform: uppercase; letter-spacing: .12em; font-weight: 600;
}
.arc__a { color: var(--ink-3); }
.arc__b { color: var(--clay); }

/* ---- Pricing tiers ------------------------------------------------------ */
.tiers { display: grid; gap: var(--s5); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier {
  display: flex; flex-direction: column; gap: var(--s4);
  padding: var(--s6); border-radius: var(--r-lg);
  background: var(--near-2); border: 1px solid var(--hair-near); color: var(--on-near);
}
.tier--feature { border-color: var(--clay-on-near); }
.tier h3 { font-size: var(--t-2); color: var(--on-near); }
.tier__price {
  font-family: var(--font-ui); font-weight: 700; font-size: var(--t-3);
  letter-spacing: -0.03em; color: var(--on-near); margin: 0;
  font-variant-numeric: tabular-nums lining-nums;
}
.tier__note { font-family: var(--font-ui); font-size: var(--t--1); color: var(--on-near-2); margin: 0; }
.tier__list { list-style: none; margin: var(--s2) 0 0; padding: 0; display: grid; gap: var(--s3); }
.tier__list li {
  display: grid; grid-template-columns: 20px 1fr; gap: var(--s3);
  align-items: start; font-size: var(--t--1); color: var(--on-near);
}
.tier__list li::before {
  content: ""; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%;
  border: 1.5px solid var(--clay-on-near);
  background: linear-gradient(to bottom right, transparent 45%, var(--clay-on-near) 45%, var(--clay-on-near) 55%, transparent 55%);
}
.tier__foot { margin-top: auto; padding-top: var(--s5); display: grid; gap: var(--s3); }
.tier__call {
  display: flex; gap: var(--s3); align-items: flex-start;
  padding: var(--s4); border-radius: var(--r);
  background: rgba(255,255,255,.05); border: 1px solid var(--hair-near);
  font-size: var(--t--1); color: var(--on-near-2);
}
.tier__call b { color: var(--clay-on-near); font-weight: 600; }
.terms { text-align: center; color: var(--on-near-2); font-size: var(--t--1); max-width: 62ch; margin-inline: auto; }

/* ---- Testimonials ------------------------------------------------------- */
.quote {
  display: flex; flex-direction: column; gap: var(--s4);
  padding: var(--s6); border-radius: var(--r-lg);
  background: var(--paper-3); border: 1px solid var(--hair);
}
.stars { display: flex; gap: 3px; color: var(--clay); font-size: 15px; letter-spacing: 2px; }
.quote blockquote { margin: 0; color: var(--ink); font-size: var(--t-0); line-height: 1.6; }
.quote__who {
  margin-top: auto; padding-top: var(--s4); border-top: 1px solid var(--hair);
  display: flex; align-items: center; gap: var(--s3);
}
.quote__av {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--clay-soft); color: var(--clay);
  display: grid; place-items: center;
  font-family: var(--font-ui); font-weight: 700; font-size: 15px;
}
.quote__n { font-weight: 600; font-size: var(--t--1); line-height: 1.3; }
.quote__r { font-family: var(--font-ui); font-size: var(--t--1); color: var(--clay); }
.rating { display: inline-flex; align-items: center; gap: var(--s2); margin-inline: auto; }

/* ---- Client logos ------------------------------------------------------- */
.clients { text-align: center; }
.clients__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--s7); margin-top: var(--s5);
}
.clients__row a { display: block; opacity: .85; }
.clients__row a:hover, .clients__row a:focus-visible { opacity: 1; }
.clients__row img { height: 34px; width: auto; }
.clients__row img.is-mark { height: 44px; }

/* ---- Nav icon buttons --------------------------------------------------- */
/* Floating on their own at the top-right corner, outside the pill. */
.nav__icons { display: none; }
@media (min-width: 1080px) {
  .nav__icons {
    display: flex; gap: var(--s3);
    position: fixed; top: var(--s5); right: var(--s6);
    z-index: var(--z-nav);
  }
  .nav__icons .icon-btn { width: 52px; height: 52px; box-shadow: var(--shadow-pill); }
  .nav__icons .icon-btn svg { width: 20px; height: 20px; }
}
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  border: 1px solid var(--hair); background: var(--paper-3);
  display: grid; place-items: center; color: var(--ink-2);
}
.icon-btn:hover { background: var(--clay); border-color: var(--clay); color: #fff; }
.icon-btn:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }
.icon-btn svg { width: 18px; height: 18px; display: block; }

/* ---- CTA reassurance line ----------------------------------------------- */
.cta-note { font-family: var(--font-ui); font-size: var(--t--1); color: var(--ink-3); margin: var(--s2) 0 0; }
.band--near .cta-note { color: var(--on-near-2); }

/* ==========================================================================
   Bottom dock — the floating glass toolbar (small screens only)

   The glass is four things together: a translucent dark ground, a real
   backdrop blur with a touch of saturation, a hairline white border, and an
   inset highlight along the top edge. The inset is what sells it — without
   it the pill reads as flat grey plastic.
   ========================================================================== */

.dock {
  position: fixed;
  left: var(--s4); right: var(--s4);
  bottom: calc(var(--s5) + env(safe-area-inset-bottom, 0px));
  z-index: var(--z-nav);
  display: flex; align-items: center; gap: var(--s2);
}
@media (min-width: 900px) { .dock { display: none; } }

.dock__bar {
  flex: 1 1 auto; min-width: 0;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2px;
  padding: 0 6px;
  border-radius: 30px;
  background: rgba(26, 23, 20, .72);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
          backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35),
              inset 0 1px 0 rgba(255, 255, 255, .14);
}

.dock__bar a {
  flex: 1 1 0; min-width: 0;
  height: 48px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  border-radius: 24px;
  text-decoration: none;
  color: rgba(255, 255, 255, .72);
  font-family: var(--font-ui); font-size: 9px; font-weight: 500;
  letter-spacing: -0.01em; white-space: nowrap;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              flex-grow var(--dur) var(--ease);
}
.dock__bar a svg { width: 19px; height: 19px; display: block; }
.dock__bar a span { line-height: 1; }
.dock__bar a:hover { color: #fff; }
.dock__bar a:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

/* The current page expands into a solid pill, icon and label side by side. */
.dock__bar a.is-current {
  flex-grow: 2.2;
  flex-direction: row; gap: var(--s2);
  background: var(--paper);
  color: var(--ink);
  font-size: 12px; font-weight: 600; letter-spacing: -0.01em;
  padding-inline: var(--s3);
}
.dock__bar a.is-current svg { width: 17px; height: 17px; }

/* The round action button beside the bar. */
.dock__orb {
  width: 60px; height: 60px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--clay); color: #fff;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3),
              inset 0 1px 0 rgba(255, 255, 255, .2);
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.dock__orb svg { width: 22px; height: 22px; display: block; }
.dock__orb:hover { background: var(--clay-deep); color: #fff; transform: translateY(-2px); }
.dock__orb:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Keep the dock from covering the end of the page. */
@media (max-width: 899px) {
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  .dock__orb:hover { transform: none !important; }
}

/* ==========================================================================
   Hero portrait and the rotating seal
   ========================================================================== */

.hero__figure { position: relative; display: none; margin: 0; }
@media (min-width: 1000px) { .hero__figure { display: block; } }
.hero__figure img {
  width: 100%; height: auto; display: block;
  filter: grayscale(1) contrast(1.06);
  -webkit-mask-image: linear-gradient(to bottom, #000 76%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 76%, transparent 100%);
}

/* The slot before a photo exists: a stated placeholder, never a stock face. */
/* Until a portrait exists the figure just holds space for the seal. */
.hero__figure { min-height: 380px; }

@keyframes seal-spin { to { transform: rotate(360deg); } }
.seal {
  position: absolute; left: -76px; bottom: -28px; right: auto;
  width: 116px; height: 116px;
  display: grid; place-items: center;
}
.seal__ring { position: absolute; inset: 0; animation: seal-spin 22s linear infinite; }
.seal__ring text {
  font-family: var(--font-ui); font-size: 9.6px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; fill: var(--clay);
}
.seal__core {
  position: relative; width: 62px; height: 62px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(26,23,20,.24), inset 0 1px 0 rgba(255,255,255,.18);
}
.seal__core svg { width: 24px; height: 24px; }
@media (prefers-reduced-motion: reduce) { .seal__ring { animation: none !important; } }

/* Stats sit at the foot of the hero, as one full-bleed strip. */
.hero + .stats { margin-top: clamp(2rem, 1rem + 4vw, 4rem); }

/* Hero actions: a solid button beside a plain underlined link, as the
   reference does it — not two competing pills. */
.actions--hero { align-items: flex-start; gap: var(--s6); }
.text-link {
  font-family: var(--font-ui); font-weight: 600; font-size: var(--t-0);
  color: var(--ink); text-decoration: underline;
  text-decoration-color: var(--clay); text-underline-offset: .28em;
  text-decoration-thickness: 1.5px;
  padding-block: 14px;
}
.text-link:hover { color: var(--clay); }

/* ==========================================================================
   Scoping quiz
   Steps are visible by default and JS hides all but the current one, so with
   JavaScript off the whole thing still reads as an ordinary list of questions.
   ========================================================================== */

.quiz { max-width: 760px; margin-inline: auto; }

.quiz__bar {
  height: 4px; border-radius: 2px; background: var(--hair);
  overflow: hidden; margin-bottom: var(--s5);
}
.quiz__fill {
  height: 100%; width: 0%; background: var(--clay); border-radius: 2px;
  transition: width var(--dur-slow) var(--ease);
}
.quiz__meta {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-ui); font-size: var(--t--1); color: var(--ink-3);
  margin-bottom: var(--s6);
}

.quiz__step { margin-bottom: var(--s8); }
.js-quiz .quiz__step { display: none; margin-bottom: 0; }
.js-quiz .quiz__step.is-on { display: block; animation: rise .45s var(--ease) both; }

.quiz__q { font-size: var(--t-3); letter-spacing: -0.025em; line-height: 1.15; margin-bottom: var(--s3); }
.quiz__hint { color: var(--ink-2); font-size: var(--t--1); margin-bottom: var(--s6); }

.quiz__opts { display: grid; gap: var(--s3); }
.quiz__opt {
  display: flex; align-items: center; gap: var(--s4);
  width: 100%; text-align: left;
  padding: var(--s5); border-radius: var(--r);
  background: var(--paper-3); border: 1px solid var(--hair);
  color: var(--ink); font-family: var(--font-sans); font-size: var(--t-0);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.quiz__opt:hover { border-color: var(--clay); transform: translateY(-2px); }
.quiz__opt:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }
.quiz__opt[aria-pressed="true"] { border-color: var(--clay); background: var(--clay-soft); }
.quiz__key {
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  border: 1px solid var(--hair); display: grid; place-items: center;
  font-family: var(--font-ui); font-size: 12px; font-weight: 600; color: var(--ink-3);
}
.quiz__opt:hover .quiz__key,
.quiz__opt[aria-pressed="true"] .quiz__key { border-color: var(--clay); color: var(--clay); }

.quiz__nav { display: flex; gap: var(--s4); align-items: center; margin-top: var(--s6); }
.quiz__back {
  background: none; border: 0; padding: var(--s3) 0; cursor: pointer;
  font-family: var(--font-ui); font-size: var(--t--1); font-weight: 600; color: var(--ink-3);
}
.quiz__back:hover { color: var(--clay); }
.quiz__back:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }

/* ---- Result ------------------------------------------------------------- */
.quiz__result { display: none; }
.js-quiz .quiz__result.is-on { display: block; animation: rise .5s var(--ease) both; }
.result__card {
  padding: var(--s7); border-radius: var(--r-lg);
  background: var(--paper-3); border: 1px solid var(--hair);
}
.result__lead { font-size: var(--t-2); letter-spacing: -0.02em; line-height: 1.25; margin-bottom: var(--s5); }
.result__rows { list-style: none; margin: 0 0 var(--s6); padding: 0; display: grid; gap: 0; }
.result__rows li {
  display: grid; grid-template-columns: 148px 1fr; gap: var(--s4);
  padding-block: var(--s4); border-top: 1px solid var(--hair);
  font-size: var(--t--1);
}
.result__rows li:last-child { border-bottom: 1px solid var(--hair); }
.result__k { font-family: var(--font-ui); color: var(--ink-3); }
.result__v { color: var(--ink); font-weight: 500; }
.result__v b { color: var(--clay); font-weight: 600; }
@media (max-width: 600px) { .result__rows li { grid-template-columns: 1fr; gap: var(--s1); } }
.result__note { color: var(--ink-2); font-size: var(--t--1); margin-top: var(--s5); }

/* ==========================================================================
   Hero proof panel — the evidence, above the fold

   The first screen used to carry a headline and a button and nothing else;
   the price and both client names sat 955px down. Everything here is already
   stated elsewhere on the page — none of it is new, it is just no longer
   below the fold.
   ========================================================================== */

.proof {
  background: color-mix(in srgb, var(--paper-3) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
          backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: var(--s5);
  display: grid; gap: var(--s2);
}
.proof__k { color: var(--ink-3); padding: 0 var(--s3) var(--s2); }

.proof__row {
  display: grid; grid-template-columns: 52px 1fr 18px;
  align-items: center; gap: var(--s4);
  padding: var(--s3);
  border-radius: var(--r);
  text-decoration: none; color: var(--ink);
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.proof__row:hover, .proof__row:focus-visible { background: var(--paper-2); transform: translateX(2px); }
.proof__row:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }
.proof__row img { width: 100%; height: auto; max-height: 26px; object-fit: contain; object-position: left center; }
.proof__row img.is-mark { max-height: 34px; }
.proof__t {
  display: grid; gap: 2px;
  font-size: var(--t--1); font-weight: 600; line-height: 1.3;
}
.proof__t span { font-family: var(--font-ui); font-weight: 400; color: var(--ink-3); font-size: 12px; }
.proof__go { color: var(--ink-3); font-size: 15px; justify-self: end; }
.proof__row:hover .proof__go { color: var(--clay); }

.proof__facts { margin: var(--s3) 0 0; padding: var(--s4) var(--s3) var(--s1); border-top: 1px solid var(--hair); display: grid; gap: var(--s3); }
.proof__facts > div { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); }
.proof__facts dt { font-family: var(--font-ui); font-size: 12px; color: var(--ink-3); }
.proof__facts dd { margin: 0; font-size: var(--t--1); font-weight: 600; text-align: right; }
.proof__facts dd.num { color: var(--clay); }

/* Below the hero's two-column breakpoint the panel becomes an ordinary block. */
@media (max-width: 999px) {
  .hero__figure { display: block; min-height: 0; margin-top: var(--s7); }
  .seal { display: none; }
}

/* ==========================================================================
   Arrows, drawn rather than typed

   None of the three faces contains U+2192, U+2190 or U+2715, so every arrow
   and every form-error mark was rendering in whatever the OS substituted —
   a different weight, size and baseline on every platform. These are drawn in
   CSS instead: they inherit colour, scale with font-size, and look identical
   everywhere. No icon font, no asset, no request.
   ========================================================================== */

.arw {
  display: inline-block; position: relative;
  width: .82em; height: .82em;
  vertical-align: -0.08em;
  flex: none;
}
.arw::before {           /* the shaft */
  content: ""; position: absolute; left: 4%; right: 22%; top: 50%;
  height: 1.5px; background: currentColor; transform: translateY(-50%);
  border-radius: 1px;
}
.arw::after {            /* the head */
  content: ""; position: absolute; right: 20%; top: 50%;
  width: .34em; height: .34em;
  border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  border-radius: 1px;
}
.arw--back { transform: scaleX(-1); }

/* A button's arrow eases forward on hover. */
.btn .arw, .text-link .arw, .card__go .arw { transition: transform var(--dur) var(--ease); }
.btn:hover .arw, .text-link:hover .arw { transform: translateX(3px); }
.btn:hover .arw--back, .quiz__back:hover .arw--back { transform: scaleX(-1) translateX(3px); }
a.card:hover .card__go .arw { transform: translateX(2px); }

/* The form error mark, likewise drawn. */
.field__error::before {
  content: ""; flex: none;
  width: .85em; height: .85em; margin-top: .18em;
  background: currentColor;
  -webkit-mask: no-repeat center / contain;
          mask: no-repeat center / contain;
  -webkit-mask-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
          mask-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
  -webkit-mask-size: 100% 1.6px, 1.6px 100%;
          mask-size: 100% 1.6px, 1.6px 100%;
  transform: rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover .arw, .text-link:hover .arw, a.card:hover .card__go .arw { transform: none !important; }
  .btn:hover .arw--back { transform: scaleX(-1) !important; }
}
