/* ============================================================
   Angkor Design — clean corporate design system
   Inspired by the UX/UI of ev-cambodia.com: bright, card-based,
   generous whitespace, sans-serif, solid rounded buttons.
   Colours are the existing Angkor Design gold + cream.
   ============================================================ */

:root {
  /* ---- Brand colour ----
     Blue and navy, on white. The primary is #ffb236 and the dark surface is
     #0d0d0d (both taken from the owner's reference, 22 Oct 2026).

     The token NAMES are historical: --gold* was the champagne-gold accent until
     this date and has ~1,500 references, so the names stayed and the values
     changed. Read --gold as "the accent", --gold-deep as "accent text", and
     --brand-burgundy* as "the navy dark surface". Renaming would be a separate,
     mechanical job with no visible effect. */
  --gold: #ffb236;
  --gold-bright: #ffb236;
  --gold-deep: #0d0d0d;
  --gold-soft: #f4f5ef;
  /* Fill ramps. Anything painted with the accent AND carrying --on-gold text
     takes its colours from here, so fill and text always flip together: in
     light mode a dark blue with white text, in dark mode a light blue with dark
     text. Every stop clears 4.5:1 against its --on-gold (worst: 4.7:1). */
  --ramp-1: #ffb236;
  --ramp-2: #ffb236;
  --ramp-3: #ffb236;
  /* Hover moves AWAY from the text colour — darker here, lighter in dark mode —
     so a hovered button never loses contrast. */
  --ramp-h1: #ffb236;
  --ramp-h2: #ffb236;
  --ramp-h3: #0d0d0d;

  /* Status colours for the domain tools. Semantic, not brand: availability,
     expiry and DNS findings need to read as good/warning/bad without borrowing
     the gold accent, which means "action" everywhere else on the site. */
  --ok: #1c7a4a;
  --ok-ink: #145c38;
  --ok-tint: #f2faf5;
  --ok-edge: #e9f6ee;
  --warn: #8a5a12;
  --warn-ink: #6b460e;
  --warn-tint: #fdf8ee;
  --bad: #a3372f;
  --bad-ink: #7d2a24;
  --bad-tint: #fdf4f3;
  --brand-burgundy: #0d0d0d;
  --brand-burgundy-mid: #0d0d0d;
  --brand-burgundy-deep: #000000;
  --on-gold: #ffffff;

  /* ---- Surfaces ---- */
  --bg: #ffffff;
  --bg-alt: #f4f5ef;
  --bg-tint: #f4f5ef;
  --surface: #ffffff;
  --ink: #000000;
  --ink-soft: #0d0d0d;
  --muted: #686868;
  --line: #f4f5ef;
  --line-strong: #d4d4d4;
  --accent: var(--gold-deep);
  --danger: #b3261e;

  /* Deep band (footer / CTA) */
  --deep-bg: #0d0d0d;
  --deep-ink: #f4f5ef;
  --deep-muted: #c3c3c3;
  --deep-line: rgba(255, 255, 255, 0.12);

  /* Canonical deep-band gradient — the "WHY WORK WITH US" surface.
     Single source of truth so every dark section reads identically. */
  --grad-deep-band:
    radial-gradient(58% 95% at 0% 0%, rgba(255, 178, 54, 0.34), transparent 68%),
    radial-gradient(55% 85% at 100% 100%, rgba(244, 245, 239, 0.08), transparent 70%),
    linear-gradient(128deg, #0d0d0d 0%, #0d0d0d 46%, #000000 100%);

  /* Danger / error */
  --danger: #9b3b3b;
  --danger-soft: #f2e0e0;

  /* Gradient + glass system (advanced-tech look) */
  --grad-gold: linear-gradient(135deg, var(--ramp-1) 0%, var(--ramp-2) 42%, var(--ramp-3) 100%);
  --grad-gold-soft: linear-gradient(
    150deg,
    color-mix(in srgb, var(--gold-soft) 90%, transparent),
    transparent 78%
  );
  --glass-bg: color-mix(in srgb, var(--surface) 62%, transparent);
  --glass-border: color-mix(in srgb, var(--gold) 16%, var(--line));
  --glass-rim: color-mix(in srgb, #ffffff 55%, transparent);
  --glass-glow: 0 30px 70px -40px color-mix(in srgb, var(--gold) 45%, transparent);

  --shadow-sm: 0 4px 14px -8px rgba(0, 0, 0, 0.18);
  --shadow-card: 0 18px 40px -26px rgba(0, 0, 0, 0.24);
  --shadow-card-hover: 0 26px 54px -26px rgba(0, 0, 0, 0.3);

  /* ---- Type ---- */
  --font-body: var(--next-font-body, 'Poppins'), system-ui, sans-serif;

  /* Refined, consistent type scale (~1.22 ratio). Smaller, luxury hierarchy;
     h1/h2/h3 scale down gracefully on small screens. */
  --fs-h1: clamp(28px, 3vw, 34px);
  --fs-h2: clamp(21px, 2.2vw, 25px);
  --fs-h3: clamp(18px, 1.6vw, 20px);
  --fs-h4: 17px;
  --fs-h5: 15px;
  --fs-h6: 13px;
  /* Small-text steps — the sizes the UI actually uses below h6. */
  --fs-sm: 14px;
  --fs-caption: 12px;
  --fs-micro: 11px;
  --fs-nano: 10px;
  --fs-tiny: 9px;
  --fs-body: 16px;
  --lh-body: 1.6;
  --lh-heading: 1.2;
  --fs-lede: 18px;
  --fs-nav: 15px;
  --track-caps: 0.14em;

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  /* The reference button's timing: half a second on Tailwind's default ease,
     which is slow enough to watch the disc cross and not so slow that a
     pointer passing over it looks stuck. */
  --dur-swap: 500ms;
  --ease-swap: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 180ms;
  --dur: 300ms;
  --dur-slow: 560ms;

  /* ---- Shape / layout ---- */
  --radius: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --container: 1380px;
  --container-text: 68ch;
  --gutter: clamp(20px, 4vw, 48px);
  --section-pad: clamp(64px, 8vw, 112px);
  --header-h: 76px;

  color-scheme: light;
}

/* ---------- Dark theme ----------
   Whole system is token-driven, so overriding these cascades everywhere.
   Applied when the user picks Dark, when they pick Auto and the OS is dark (see
   the prefers-color-scheme block below), or when they pick Auto and the local
   clock is inside the night window — data-night is set before first paint by the
   inline script in the layout, because CSS cannot read the time. */
:root[data-theme='dark'],
:root[data-theme='auto'][data-night='1'] {
  color-scheme: dark;
  --gold: #ffb236;
  --gold-bright: #ffb236;
  --gold-deep: #ffb236;
  --gold-soft: #0d0d0d;
  --ramp-1: #ffb236;
  --ramp-2: #ffb236;
  --ramp-3: #ffb236;
  --ramp-h1: #ffb236;
  --ramp-h2: #ffb236;
  --ramp-h3: #ffb236;
  --on-gold: #000000;

  /* Lifted well above the light-mode values: #1c7a4a on a #000000 surface is
     barely legible, so dark mode uses tints that read against near-black and
     translucent fills that pick up whatever sits behind them. */
  --ok: #52c98d;
  --ok-ink: #86dcb0;
  --ok-tint: rgba(82, 201, 141, 0.12);
  --ok-edge: rgba(82, 201, 141, 0.18);
  --warn: #e0ac52;
  --warn-ink: #efc881;
  --warn-tint: rgba(224, 172, 82, 0.12);
  --bad: #ef8d83;
  --bad-ink: #f6b0a8;
  --bad-tint: rgba(239, 141, 131, 0.12);

  --bg: #000000;
  --bg-alt: #000000;
  --bg-tint: #000000;
  --surface: #000000;
  --ink: #f4f5ef;
  --ink-soft: #ffb236;
  --muted: #9f9f9f;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --accent: var(--gold-deep);

  --deep-bg: #000000;
  --deep-ink: #f4f5ef;
  --deep-muted: #ffb236;
  --deep-line: rgba(255, 255, 255, 0.12);

  --danger: #f0a3a0;
  --danger-soft: rgba(220, 90, 85, 0.16);

  --glass-bg: color-mix(in srgb, var(--surface) 58%, transparent);
  --glass-border: color-mix(in srgb, var(--gold) 22%, rgba(255, 255, 255, 0.08));
  --glass-rim: rgba(255, 255, 255, 0.1);

  --shadow-sm: 0 4px 14px -8px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 20px 44px -26px rgba(0, 0, 0, 0.72);
  --shadow-card-hover: 0 28px 58px -26px rgba(0, 0, 0, 0.82);
}

@media (prefers-color-scheme: dark) {
  :root[data-theme='auto'] {
    color-scheme: dark;
    --gold: #ffb236;
    --gold-bright: #ffb236;
    --gold-deep: #ffb236;
    --gold-soft: #0d0d0d;
    --ramp-1: #ffb236;
    --ramp-2: #ffb236;
    --ramp-3: #ffb236;
    --ramp-h1: #ffb236;
    --ramp-h2: #ffb236;
    --ramp-h3: #ffb236;
    --on-gold: #000000;

    --bg: #000000;
    --bg-alt: #000000;
    --bg-tint: #000000;
    --surface: #000000;
    --ink: #f4f5ef;
    --ink-soft: #ffb236;
    --muted: #9f9f9f;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.2);
    --accent: var(--gold-deep);

    --deep-bg: #000000;
    --deep-ink: #f4f5ef;
    --deep-muted: #ffb236;
    --deep-line: rgba(255, 255, 255, 0.12);

    --danger: #f0a3a0;
    --danger-soft: rgba(220, 90, 85, 0.16);

    --glass-bg: color-mix(in srgb, var(--surface) 58%, transparent);
    --glass-border: color-mix(in srgb, var(--gold) 22%, rgba(255, 255, 255, 0.08));
    --glass-rim: rgba(255, 255, 255, 0.1);

    --shadow-sm: 0 4px 14px -8px rgba(0, 0, 0, 0.6);
    --shadow-card: 0 20px 44px -26px rgba(0, 0, 0, 0.72);
    --shadow-card-hover: 0 28px 58px -26px rgba(0, 0, 0, 0.82);
  }
}

/* Smoothly cross-fade the whole page when the theme flips */
html.js body,
html.js .site-header__bar,
html.js .card,
html.js .surface,
html.js .mega {
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

/* ---------- Base ---------- */

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

/* Form controls default to the OS font — pull them onto the body face so the
   whole site renders in one typeface. */
button,
input,
select,
textarea {
  font-family: inherit;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
picture,
video,
svg {
  max-width: 100%;
  display: block;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-body);
  line-height: var(--lh-heading);
  /* Refined luxury weight — headings are medium, not heavy bold. */
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Large display headings read lighter (500) for an elegant, luxury feel. */
h1 {
  font-size: var(--fs-h1);
  font-weight: 500;
  letter-spacing: -0.025em;
}
h2 {
  font-size: var(--fs-h2);
  font-weight: 500;
  letter-spacing: -0.022em;
}
h3 {
  font-size: var(--fs-h3);
}
h4 {
  font-size: var(--fs-h4);
}
h5 {
  font-size: var(--fs-h5);
}
h6 {
  font-size: var(--fs-h6);
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

a:hover {
  color: var(--gold-deep);
}

/* Underline only genuine inline links inside body prose, where it aids reading.
   Everywhere else (nav, cards, buttons, lists) stays clean — no hover underline. */
/* Links: never underlined. Text is gold; on hover a bright glint sweeps across
   the letters (background-clip: text) — a premium shimmer, not a plain line. */
.prose a,
.rich-text a {
  text-decoration: none;
  color: var(--gold-deep);
  font-weight: 600;
  background-image: linear-gradient(
    110deg,
    var(--gold-deep) 0%,
    var(--gold-deep) 42%,
    #ffb236 50%,
    var(--gold-deep) 58%,
    var(--gold-deep) 100%
  );
  background-size: 260% 100%;
  background-position: 100% 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 0.6s var(--ease);
}
.prose a:hover,
.rich-text a:hover {
  background-position: 0 0;
}

::selection {
  background: color-mix(in srgb, var(--gold) 26%, transparent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */

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

.section {
  padding-block: var(--section-pad);
}

/* Follows a page-intro banner: no full section gap, but keep a comfortable
   breathing space so content never butts against the divider. */
.section--flush-top {
  padding-top: clamp(40px, 4.5vw, 64px);
}

.section--tint {
  background: var(--bg-alt);
}

.section--gold {
  background: var(--bg-tint);
}

.narrow {
  max-width: 900px;
}

.measure {
  max-width: var(--container-text);
}

.stack-lg {
  display: grid;
  /* `minmax(0, 1fr)`, not the implicit `auto`. An auto track is floored at the
     min-content of its widest child, so one item that cannot wrap drags the
     whole column past the viewport and every sibling with it — and because
     `body` clips overflow-x, the result is silently chopped rather than
     scrollable. The breadcrumb did exactly that on service pages: 427px of
     unwrappable chips in a 335px column. */
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 5vw, 64px);
}

/* Service content: give the intro (prose) headings the same weight + gold
   underline as the section headings, so every h2 on the page is consistent. */
.stack-lg .prose {
  max-width: none;
}

.stack-lg .prose h2 {
  font-weight: 500;
  letter-spacing: -0.022em;
  margin-top: 1.4em;
}

.stack-lg .prose h2::after {
  content: '';
  display: block;
  width: 52px;
  height: 3px;
  border-radius: 3px;
  background: var(--gold);
  margin-top: 14px;
}

.stack-lg .prose > :first-child {
  margin-top: 0;
}

.muted {
  color: var(--muted);
}

.center {
  text-align: center;
  margin-top: 36px;
}

.center-block {
  margin-inline: auto;
  text-align: center;
}

/* ---------- Typography ---------- */

.eyebrow {
  display: inline-block;
  font-size: var(--fs-micro);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* Pill eyebrow — the EV-style chip */
.eyebrow--chip {
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  color: var(--gold-deep);
  margin-bottom: 20px;
}

/* Canonical section title — one treatment everywhere: serif display face at
   the h1 step. Section-level headings should use .display and nothing else. */
/* Canonical section title — one restrained, editorial treatment everywhere.
   Deliberately smaller than the hero so the page has a clear hierarchy. */
.display {
  font-family: var(--font-body);
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.26;
  letter-spacing: -0.012em;
}

.lede {
  color: var(--muted);
  font-size: var(--fs-lede);
  line-height: 1.6;
  max-width: 60ch;
}

.hairline::after {
  content: '';
  display: block;
  width: 52px;
  height: 3px;
  border-radius: 3px;
  background: var(--gold);
  margin-top: 18px;
}

.hairline--center::after {
  margin-inline: auto;
}

.section-head {
  margin-bottom: 12px;
}

.section-head--center {
  text-align: center;
  max-width: 660px;
  margin-inline: auto;
  margin-bottom: clamp(30px, 3.6vw, 42px);
}

/* Short gold rules either side of the label — a quiet, couture-style accent. */
.section-head--center .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.section-head--center .eyebrow::before,
.section-head--center .eyebrow::after {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--grad-gold);
  opacity: 0.65;
}

/* The lede supports the title rather than competing with it. */
.section-head .lede,
.section-head--center .lede {
  font-size: var(--fs-h5);
  line-height: 1.65;
  max-width: 54ch;
  margin-top: 12px;
}
.section-head--center .lede {
  margin-inline: auto;
}

.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.feature-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--line);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

/* Luxury gold button: champagne fill + thin bright rim + shine sweep.
   Shared by every .btn--primary across the site (no drop shadow). 

   The ramp used to end at #9a672d, where this button's ink measures 3.49:1 —
   under the 4.5 a 14px bold label needs, and it is the bottom-right corner a
   short button's label runs into. It stops at #c88934 now (5.68:1 at the worst
   point, 13.4 at the best), the same place .cta-pill and the form buttons
   stop. The highlight end is untouched, so the metal still reads as metal. */
.btn--primary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--on-gold);
  background:
    linear-gradient(135deg, var(--ramp-1) 0%, var(--ramp-2) 52%, var(--ramp-3) 100%) padding-box,
    linear-gradient(
        135deg,
        rgba(244, 245, 239, 0.95),
        rgba(244, 245, 239, 0.16) 50%,
        rgba(255, 255, 255, 0.3) 100%
      )
      border-box;
}

/* diagonal light sweep, above the fill and below the label */
.btn--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -125%;
  width: 55%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s var(--ease);
  pointer-events: none;
}

.btn--primary:hover {
  color: var(--on-gold);
  background:
    linear-gradient(135deg, var(--ramp-h1) 0%, var(--ramp-h2) 52%, var(--ramp-h3) 100%) padding-box,
    linear-gradient(
        135deg,
        rgba(244, 245, 239, 0.98),
        rgba(244, 245, 239, 0.2) 50%,
        rgba(255, 255, 255, 0.34) 100%
      )
      border-box;
  transform: translateY(-2px);
}

.btn--primary:hover::before {
  left: 135%;
}

@media (prefers-reduced-motion: reduce) {
  .btn--primary::before {
    transition: none;
  }
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
}

.btn--on-deep {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--on-deep:hover {
  background: #fff;
  /* Fixed dark ink — the deep band is dark in both themes, so var(--ink)
     (which flips light in dark mode) would vanish on the white hover fill. */
  color: #000000;
  border-color: #fff;
}

.btn--lg {
  padding: 15px 30px;
  font-size: var(--fs-body);
}

/* btn--sm was used in markup but had no rule at all, so a "small" button
   rendered slightly LARGER than a default one. */
.btn--sm {
  padding: 8px 18px;
  font-size: var(--fs-caption);
}

.btn:disabled {
  opacity: 0.55;
  cursor: progress;
}

/* ---------- Card ---------- */

.card {
  position: relative;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: clamp(22px, 2.6vw, 30px);
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--gold) 40%, var(--line));
  box-shadow: var(--shadow-card);
}

a.card {
  display: block;
  color: inherit;
}

/* Cards are links, but the global a:hover underline must not bleed into the
   body copy. Only the card title underlines on hover (requested behaviour). */
a.card,
a.card:hover,
.card a,
.card a:hover,
.card p,
.card em {
  text-decoration: none;
}

.card :is(h2, h3) {
  transition: color 0.25s var(--ease);
}
.card:hover :is(h2, h3) {
  color: var(--gold-deep);
}

.cards-grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  margin-top: 40px;
}

/* Cards sit inside .reveal wrappers; stretch them so every card fills its grid
   row and CTAs line up along a common baseline. */
.cards-grid > .reveal {
  display: flex;
  flex-direction: column;
}

.cards-grid > .reveal > .card {
  flex: 1;
}

.cards-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}
.cards-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.cards-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 1000px) {
  .cards-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .cards-grid--3 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .cards-grid--4,
  .cards-grid--2 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Service card ---------- */

/* Flex column so the "Learn more" cue pins to the bottom and lines up across
   cards regardless of description length. (.card.service-card out-specifies the
   `a.card { display:block }` rule.) */
.card.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Gold accent line that draws itself across the top on hover. */
.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold-deep));
  transition: transform var(--dur) var(--ease);
}

.card.service-card:hover::after {
  transform: scaleX(1);
}

.card.service-card:hover .service-card__icon {
  background: var(--grad-gold);
  color: var(--on-gold);
  transform: translateY(-2px);
}

.service-card h2,
.service-card h3 {
  font-size: var(--fs-h4);
  margin: 0 0 8px;
}

.service-card h2 a {
  color: inherit;
}

.service-card p {
  color: var(--muted);
  font-size: var(--fs-sm);
  margin: 0;
}

/* ---------- Resources hub page ---------- */

/* Trim the top/bottom whitespace so the hub feels compact and intentional. */
.reading-layout.resources-layout {
  padding-top: clamp(22px, 2.6vw, 34px);
  padding-bottom: clamp(36px, 4.5vw, 56px);
}

/* Tighter, more intentional rhythm between the three sections. */
.resources-main {
  display: grid;
  gap: clamp(28px, 3.2vw, 44px);
}
.resources-main .section-head--split {
  margin-bottom: 16px;
}
/* Standalone section heading (Explore) — space before its grid. */
.resources-main > section > .display.hairline {
  margin-bottom: 18px;
}

/* Highlighted "Latest from the blog" post cards. */
.res-post {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.res-post:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--gold) 30%, var(--line));
  box-shadow: var(--shadow-card);
  text-decoration: none;
}
.res-post__media {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-alt);
}
.res-post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.res-post:hover .res-post__media img {
  transform: scale(1.06);
}
.res-post__ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 44px;
  font-weight: 700;
  color: color-mix(in srgb, var(--gold) 55%, transparent);
  background: var(--grad-gold-soft);
}
.res-post__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(14px, 1.6vw, 20px);
}
.res-post__body h3 {
  margin: 2px 0 0;
  font-size: var(--fs-h4);
  line-height: 1.3;
  color: var(--ink);
}
.res-post__body p {
  margin: 0;
  font-size: var(--fs-h6);
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Glossary 12-term preview grid. */
.glossary-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}
.glossary-chip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition:
    transform var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}
.glossary-chip:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--gold) 32%, var(--line));
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.glossary-chip b {
  font-size: var(--fs-sm);
  letter-spacing: -0.01em;
  color: var(--gold-deep);
}
.glossary-chip span {
  font-size: var(--fs-caption);
  line-height: 1.5;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card__icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: var(--gold-deep);
  background: var(--gold-soft);
  margin-bottom: 18px;
  transition:
    background var(--dur) var(--ease),
    color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.service-card__price {
  display: inline-block;
  margin-top: 16px;
  font-weight: 700;
  color: var(--gold-deep);
}

.service-card__children {
  list-style: none;
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
}

.service-card__children li {
  margin-bottom: 7px;
  font-size: var(--fs-sm);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 18px;
  font-size: var(--fs-h6);
  font-weight: 600;
  color: var(--gold-deep);
}

.service-card__link svg {
  transition: transform var(--dur) var(--ease);
}

.card:hover .service-card__link svg {
  transform: translateX(4px);
}

/* ---------- Work / portfolio card ---------- */

.work-card {
  padding: 0;
  overflow: hidden;
}

.work-card__media {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--bg-alt);
}

.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.work-card:hover .work-card__media img {
  transform: scale(1.07);
}

/* Luxury glossy light sweep across the cover on hover (sits above the image,
   below the overlaid copy). */
.work-card__media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 38%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 62%
  );
  transform: translateX(-130%);
  transition: transform 0.9s var(--ease);
}

.work-card:hover .work-card__media::before {
  transform: translateX(130%);
}

@media (prefers-reduced-motion: reduce) {
  .work-card__media img,
  .work-card__media::before {
    transition: none;
  }
  .work-card:hover .work-card__media img {
    transform: none;
  }
  .work-card:hover .work-card__media::before {
    transform: translateX(-130%);
  }
}

.work-card__veil {
  display: none;
}

.work-card__body {
  display: block;
  padding: 22px 24px 24px;
}

.work-card__body h3 {
  font-size: var(--fs-h4);
  margin: 0 0 6px;
}

.work-card__body p {
  color: var(--muted);
  font-size: var(--fs-sm);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-card__cue {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-size: var(--fs-h6);
  font-weight: 600;
  color: var(--gold-deep);
}

.work-card__cue svg {
  transition: transform var(--dur) var(--ease);
}

.work-card:hover .work-card__cue svg {
  transform: translateX(4px);
}

/* ---------- Home "Selected work" — premium overlay showcase ---------- */

.home-work .cards-grid,
.portfolio-grid {
  counter-reset: work;
}
.home-work .cards-grid {
  margin-top: 44px;
}

:is(.home-work, .portfolio-grid) .work-card {
  counter-increment: work;
  position: relative;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border-radius: 22px;
  background: var(--deep-bg);
  border: 1px solid color-mix(in srgb, var(--gold) 22%, var(--line));
  box-shadow: 0 20px 46px -30px rgba(0, 0, 0, 0.55);
  isolation: isolate;
}

:is(.home-work, .portfolio-grid) .work-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--gold) 55%, transparent);
  box-shadow:
    0 36px 66px -32px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(244, 245, 239, 0.22);
}

/* Image fills the whole tile */
:is(.home-work, .portfolio-grid) .work-card__media {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  border-radius: inherit;
  background: var(--deep-bg);
  z-index: 0;
}

/* Bottom scrim so the overlaid copy always reads */
:is(.home-work, .portfolio-grid) .work-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.94) 2%,
    rgba(0, 0, 0, 0.66) 26%,
    rgba(0, 0, 0, 0.08) 52%,
    transparent 68%
  );
}

/* Numbered glass index badge, top-left (01 / 02 / 03 via counters) */
:is(.home-work, .portfolio-grid) .work-card::before {
  content: counter(work, decimal-leading-zero);
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(244, 245, 239, 0.32);
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--gold-bright);
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.14em;
}

/* Overlaid copy resting on the scrim */
:is(.home-work, .portfolio-grid) .work-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: clamp(20px, 2vw, 26px);
  color: #fff;
}

:is(.home-work, .portfolio-grid) .work-card__body h3,
/* `.card:hover :is(h2, h3)` turns card headings gold on hover, which is right
   for a heading on a white card and wrong for this one: it sits on a dark
   scrim over the photograph, where gold-deep measures 2.76:1 and the title
   disappears under the pointer that is about to click it. */
:is(.home-work, .portfolio-grid) .card.work-card:hover .work-card__body h3 {
  color: #fff;
  font-size: var(--fs-h3);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
}

:is(.home-work, .portfolio-grid) .work-card__body p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  max-height: 0;
  opacity: 0;
  transform: translateY(8px);
  color: color-mix(in srgb, var(--deep-ink) 92%, transparent);
  font-size: var(--fs-h6);
  transition:
    max-height var(--dur) var(--ease),
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    margin-top var(--dur) var(--ease);
}

:is(.home-work, .portfolio-grid) .work-card:hover .work-card__body p {
  max-height: 4.4em;
  opacity: 1;
  transform: none;
  margin-top: 10px;
}

:is(.home-work, .portfolio-grid) .work-card__cue {
  margin-top: 12px;
  color: var(--gold-bright);
}

/* Touch devices can't hover — keep the summary visible */
@media (hover: none) {
  :is(.home-work, .portfolio-grid) .work-card__body p {
    max-height: 4.4em;
    opacity: 1;
    transform: none;
    margin-top: 10px;
  }
}

@media (max-width: 760px) {
  :is(.home-work, .portfolio-grid) .work-card {
    aspect-ratio: 16 / 10;
  }
}

/* ---------- Chips ---------- */

.chip {
  display: inline-block;
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--gold-deep);
  background: var(--gold-soft);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(760px, 80svh);
  padding-top: calc(var(--header-h) + clamp(58px, 6.5vw, 96px));
  padding-bottom: clamp(30px, 3.5vw, 48px);
  background: var(--grad-deep-band);
  color: var(--deep-ink);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 178, 54, 0.8), transparent);
}

/* Aurora — soft gold light drifting slowly behind the banner */
.hero__aura {
  position: absolute;
  inset: -10% -5% 0;
  z-index: -2;
  pointer-events: none;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform;
}

.hero__orb--1 {
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  top: -16vw;
  left: 50%;
  margin-left: -23vw;
  background: radial-gradient(circle at 50% 50%, rgba(244, 245, 239, 0.2), transparent 68%);
  opacity: 0.78;
  animation: hero-orb-1 18s ease-in-out infinite;
}

.hero__orb--2 {
  width: 34vw;
  height: 34vw;
  max-width: 440px;
  max-height: 440px;
  top: 4vw;
  left: 2%;
  background: radial-gradient(circle at 50% 50%, rgba(244, 245, 239, 0.24), transparent 70%);
  opacity: 0.55;
  animation: hero-orb-2 22s ease-in-out infinite;
}

.hero__orb--3 {
  width: 30vw;
  height: 30vw;
  max-width: 400px;
  max-height: 400px;
  top: 0;
  right: 3%;
  background: radial-gradient(circle at 50% 50%, rgba(206, 72, 82, 0.34), transparent 70%);
  opacity: 0.5;
  animation: hero-orb-3 26s ease-in-out infinite;
}

/* Faint precision grid, masked to a soft glow in the centre */
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 245, 239, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 245, 239, 0.055) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(84% 76% at 50% 38%, #000 0%, transparent 82%);
  mask-image: radial-gradient(84% 76% at 50% 38%, #000 0%, transparent 82%);
  opacity: 0.9;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
  align-items: center;
  gap: clamp(44px, 6vw, 92px);
  text-align: left;
}

.hero__copy {
  max-width: 640px;
}

.hero h1 {
  max-width: 10.8ch;
  color: var(--deep-ink);
  font-size: clamp(24px, 2.7vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 22px 0 20px;
}

.hero h1 .accent {
  color: var(--gold-deep);
}

/* Living gold shimmer swept across the accent word */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 .accent {
    background: linear-gradient(
      100deg,
      #ffb236 0%,
      #ffb236 28%,
      #ffb236 48%,
      #ffb236 68%,
      #ffb236 100%
    );
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: hero-shimmer 6.5s linear infinite;
  }
}

/* Live pulse dot on the eyebrow chip, hero only */
/* Smaller than the shared chip. At 11px with 0.2em tracking and 9px of padding
   this ran almost the width of the headline below it — a label introducing the
   page was reading as loudly as the page's own first line. --fs-nano with the
   tracking eased off keeps it a caption. */
.hero .eyebrow--chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  font-size: var(--fs-nano);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  color: var(--gold-bright);
  background: rgba(244, 245, 239, 0.055);
  border: 1px solid rgba(244, 245, 239, 0.3);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.hero .eyebrow--chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffb236;
  box-shadow: 0 0 0 5px rgba(244, 245, 239, 0.1);
  animation: hero-pulse 2.4s ease-out infinite;
  flex: none;
}

/* Typewriter eyebrow — types like a code terminal, with a blinking block cursor.
   A hidden ghost reserves full width so the chip never resizes as it types. */
.tw {
  position: relative;
  display: inline-block;
}
.tw__ghost {
  visibility: hidden;
}
.tw__live {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.tw__caret {
  display: inline-block;
  width: 0.5em;
  height: 1.05em;
  margin-left: 3px;
  border-radius: 1px;
  background: currentColor;
  box-shadow: 0 0 6px rgba(255, 178, 54, 0.6);
  animation: tw-blink-fast 0.5s steps(1) infinite;
}
.tw__caret--slow {
  animation: tw-blink 1.05s steps(1) infinite;
}
@keyframes tw-blink {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0;
  }
}
@keyframes tw-blink-fast {
  0%,
  55% {
    opacity: 1;
  }
  55.01%,
  100% {
    opacity: 0.2;
  }
}

.hero .lede {
  color: color-mix(in srgb, var(--deep-ink) 82%, transparent);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.7;
  max-width: 49ch;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 28px;
}

.hero__actions .btn {
  /* .btn--lg's 15px block padding is what actually sets the height, so trimming
     it — not min-height alone — is what makes these shorter. */
  min-height: 46px;
  padding: 11px 24px;
  font-size: var(--fs-sm);
}

.hero__actions .btn--primary {
  gap: 12px;
  color: var(--on-gold);
  background: linear-gradient(135deg, var(--ramp-1), var(--ramp-3));
  border-color: rgba(244, 245, 239, 0.56);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.28),
    inset 0 1px rgba(255, 255, 255, 0.7);
}

.hero__actions .btn--primary:hover {
  color: var(--on-gold);
  background: linear-gradient(135deg, var(--ramp-h1), var(--ramp-h3));
  transform: translateY(-2px);
}

/* The hero used to nudge this arrow two pixels on hover. The shared primary
   button now carries the disc that crosses the button instead, and these two
   rules outranked it — 0-2-1 against 0-1-1 — so the hero was the one place the
   new behaviour did not happen. Removed rather than reconciled: one button
   should behave one way. */

.hero__actions .btn--ghost {
  color: var(--deep-ink);
  border-color: color-mix(in srgb, var(--deep-ink) 36%, transparent);
  background: rgba(255, 255, 255, 0.035);
}

.hero__actions .btn--ghost:hover {
  color: #fff;
  border-color: rgba(255, 178, 54, 0.62);
  background: rgba(255, 255, 255, 0.08);
}

/* ---- Hero slider (unified premium banner) ---- */
.hero__showcase {
  position: relative;
  width: 100%;
}

.hero__showcase-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 8px 14px;
  color: color-mix(in srgb, var(--gold-bright) 76%, transparent);
  font-size: var(--fs-nano);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__showcase-shell {
  position: relative;
}

.hero__showcase-shell::before {
  content: '';
  position: absolute;
  inset: -10px 12px 10px -10px;
  border: 1px solid rgba(244, 245, 239, 0.36);
  border-radius: 36px 150px 36px 96px;
  pointer-events: none;
}

.hero__disciplines {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  margin: 46px 6px 0;
  color: color-mix(in srgb, var(--deep-ink) 68%, transparent);
  font-size: var(--fs-nano);
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero__disciplines span + span::before {
  content: '•';
  margin: 0 12px;
  color: var(--gold-bright);
}

.hero-slider__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 28px 138px 28px 86px;
  overflow: hidden;
  border: 1px solid rgba(244, 245, 239, 0.44);
  background: #000000;
  box-shadow:
    0 38px 80px -32px rgba(0, 0, 0, 0.82),
    0 0 0 1px rgba(255, 255, 255, 0.035) inset,
    0 28px 80px -44px rgba(255, 178, 54, 0.65);
}

.hero-slider {
  outline: none;
  touch-action: pan-y;
}

.hero-slider:focus-visible .hero-slider__frame {
  outline: 2px solid #ffb236;
  outline-offset: 5px;
}

.hero-slider__track {
  position: absolute;
  inset: 0;
}

.hero-slider__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  z-index: 0;
  clip-path: inset(0 0 0 14% round 0 0 0 52px);
  transform: scale(1.025);
  transition:
    opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
    clip-path 1100ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 1100ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.hero-slider__slide.is-active {
  opacity: 1;
  z-index: 1;
  clip-path: inset(0 round 0);
  transform: scale(1);
  pointer-events: auto;
}

.hero-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-slider__slide.is-active img {
  animation: hero-kenburns 6.2s cubic-bezier(0.2, 0.6, 0.3, 1) both;
}

@keyframes hero-kenburns {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.11);
  }
}

.hero-slider__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 16px;
  padding: 82px 30px 25px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.12) 78%, transparent);
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 700ms 300ms var(--ease),
    transform 700ms 300ms var(--ease);
}

.hero-slider__slide.is-active .hero-slider__caption {
  opacity: 1;
  transform: none;
}

.hero-slider__caption-index {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(244, 245, 239, 0.42);
  border-radius: 50%;
  color: var(--gold-bright);
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-slider__caption-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.hero-slider__tag {
  font-size: var(--fs-micro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--track-caps);
  color: var(--gold-bright);
}

.hero-slider__title {
  max-width: 30ch;
  font-size: var(--fs-h4);
  font-weight: 600;
  color: #fff;
}

.hero-slider__frame-shine {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 34%, rgba(244, 245, 239, 0.12) 48%, transparent 61%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.08), transparent 22%);
  background-size:
    240% 100%,
    100% 100%;
  animation: hero-frame-shine 8s ease-in-out infinite;
  mix-blend-mode: screen;
}

@keyframes hero-frame-shine {
  0%,
  38% {
    background-position:
      130% 0,
      0 0;
  }
  64%,
  100% {
    background-position:
      -90% 0,
      0 0;
  }
}

.hero-slider__controls {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 42px minmax(100px, 1fr) auto 42px;
  align-items: center;
  gap: 12px;
  width: min(92%, 520px);
  margin: -18px auto 0;
  padding: 8px;
  border: 1px solid rgba(244, 245, 239, 0.22);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  box-shadow:
    0 18px 44px -20px rgba(0, 0, 0, 0.85),
    inset 0 1px rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
}

.hero-slider__arrow {
  position: static;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 245, 239, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
  color: var(--gold-bright);
  cursor: pointer;
  transition:
    border-color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.hero-slider__arrow:hover {
  border-color: rgba(255, 178, 54, 0.65);
  background: rgba(244, 245, 239, 0.16);
  transform: scale(1.07);
}

.hero-slider__timeline {
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(244, 245, 239, 0.16);
}

.hero-slider__progress {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffb236, #ffb236);
  transform-origin: left;
  animation-name: hero-slider-progress;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

.hero-slider[data-paused] .hero-slider__progress {
  animation-play-state: paused;
}

@keyframes hero-slider-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.hero-slider__counter {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 56px;
  color: color-mix(in srgb, var(--deep-ink) 52%, transparent);
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-slider__counter b {
  color: var(--gold-bright);
  font-size: var(--fs-h6);
}

.hero-slider__counter i {
  font-style: normal;
  color: color-mix(in srgb, var(--deep-ink) 35%, transparent);
}

.hero-slider__dots {
  position: absolute;
  left: 50%;
  top: calc(100% + 11px);
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  justify-content: center;
}

.hero-slider__dot {
  width: 24px;
  height: 22px;
  padding: 0 3px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: color-mix(in srgb, var(--deep-ink) 45%, transparent);
  cursor: pointer;
  font-size: 8px;
  font-weight: 700;
  transition:
    color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease);
}

.hero-slider__dot.is-active {
  color: var(--gold-bright);
  border-color: rgba(244, 245, 239, 0.3);
  background: rgba(244, 245, 239, 0.09);
}

.hero__trust {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  margin-top: 32px;
  padding: 5px 3px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid rgba(244, 245, 239, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero__trust span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px clamp(14px, 1.6vw, 22px);
  border-right: 1px solid rgba(244, 245, 239, 0.16);
}

.hero__trust span:last-child {
  border-right: 0;
}

.hero__trust b {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--gold-bright);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__trust b {
    background: linear-gradient(135deg, #ffb236, #ffb236);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

.hero__trust em {
  font-style: normal;
  font-size: var(--fs-micro);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--deep-ink) 64%, transparent);
}

/* Hero stacks below the split breakpoint: copy centered above the slider. */
@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__copy {
    max-width: 640px;
    margin-inline: auto;
  }
  .hero h1 {
    margin-inline: auto;
  }
  .hero .lede {
    margin-inline: auto;
  }
  .hero__actions,
  .hero__trust {
    justify-content: center;
  }
  .hero-slider__frame {
    aspect-ratio: 16 / 10;
  }
  .hero__disciplines {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: calc(var(--header-h) + 40px);
    padding-bottom: 34px;
  }
  .hero h1 {
    margin-top: 18px;
    font-size: clamp(25px, 7.48vw, 33px);
  }
  .hero .lede {
    line-height: 1.6;
  }
  .hero__actions {
    gap: 10px;
  }
  .hero__actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
  .hero__trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }
  .hero__trust span {
    padding-inline: 8px;
  }
  .hero__trust b {
    font-size: 19px;
  }
  .hero__trust em {
    font-size: 8px;
  }
  .hero__showcase-head {
    margin-inline: 2px;
  }
  .hero__showcase-shell::before {
    inset: -7px 7px 7px -7px;
    border-radius: 24px 72px 24px 48px;
  }
  .hero-slider__frame {
    aspect-ratio: 4 / 3;
    border-radius: 20px 66px 20px 44px;
  }
  .hero-slider__caption {
    gap: 10px;
    padding: 54px 18px 17px;
  }
  .hero-slider__caption-index {
    width: 36px;
    height: 36px;
    font-size: var(--fs-tiny);
  }
  .hero-slider__tag {
    font-size: var(--fs-tiny);
  }
  .hero-slider__title {
    font-size: var(--fs-sm);
    line-height: 1.35;
  }
  .hero-slider__controls {
    grid-template-columns: 34px minmax(70px, 1fr) auto 34px;
    gap: 8px;
    width: 94%;
    padding: 6px;
  }
  .hero-slider__arrow {
    width: 32px;
    height: 32px;
  }
  .hero-slider__counter {
    min-width: 48px;
  }
  .hero__disciplines {
    margin-top: 42px;
    font-size: 8px;
  }
  .hero__disciplines span + span::before {
    margin-inline: 8px;
  }
}

/* ---------- Intro / About ---------- */

.intro {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.intro__lead .eyebrow {
  color: var(--gold-deep);
}

.intro__lead h2 {
  margin: 0 0 24px;
  max-width: 16ch;
}

.intro__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.intro__media {
  margin: 0 0 24px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow:
    0 24px 60px -34px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 var(--glass-rim);
}

.intro__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.intro__body .lede {
  margin: 0 0 24px;
  color: var(--ink-soft);
  max-width: 60ch;
}

.intro__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.intro__facts li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-rim);
}

.intro__facts b {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gold-deep);
}

.intro__facts span {
  font-size: var(--fs-h6);
  color: var(--muted);
}

@media (max-width: 860px) {
  .intro {
    grid-template-columns: 1fr;
  }
}

/* ---------- Stat band ---------- */

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.stat {
  text-align: center;
  padding: clamp(26px, 3vw, 40px) 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.stat__value {
  display: block;
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--gold-deep);
  line-height: 1;
}

.stat__label {
  display: block;
  margin-top: 12px;
  font-size: var(--fs-h6);
  color: var(--muted);
}

@media (max-width: 860px) {
  .stat-band {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Compare (without / with) ---------- */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 24px);
  margin-top: 44px;
}

.compare__col {
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
}

.compare__col--bad {
  background: var(--bg-alt);
}

.compare__col--good {
  background: var(--bg-tint);
  border-color: color-mix(in srgb, var(--gold) 36%, var(--line));
}

.compare h3 {
  font-size: var(--fs-h4);
  margin-bottom: 18px;
}

.compare ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 13px;
}

.compare li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: var(--fs-h5);
  color: var(--ink-soft);
}

.compare__mark {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-top: 1px;
  font-size: var(--fs-caption);
  font-weight: 700;
}

.compare__col--bad .compare__mark {
  background: var(--danger-soft);
  color: var(--danger);
}

.compare__col--good .compare__mark {
  background: var(--gold-soft);
  color: var(--gold-deep);
}

@media (max-width: 760px) {
  .compare {
    grid-template-columns: 1fr;
  }
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(20px, 3vw, 32px);
  margin-top: 48px;
}

.step {
  position: relative;
}

.step__num {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-weight: 700;
  font-size: var(--fs-h4);
  margin-bottom: 18px;
}

.step__medallion {
  display: none;
}

.step h3 {
  font-size: var(--fs-h4);
}

.step p {
  color: var(--muted);
  font-size: var(--fs-sm);
}

/* ---------- Page intro ---------- */

/* Luxury burgundy masthead with a restrained dot field and champagne rule. */
.page-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(30px, 3.4vw, 50px));
  padding-bottom: clamp(26px, 3vw, 42px);
  color: #fff;
  background: var(--grad-deep-band);
}

/* White dot matrix — a crisp, refined pattern over the red, fading left. */
.page-intro::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.3) 1px,
    transparent 1.7px
  );
  background-size: 24px 24px;
  background-position: right -6px top -6px;
  -webkit-mask-image: linear-gradient(105deg, transparent 18%, rgba(0, 0, 0, 0.55) 52%, #000 100%);
  mask-image: linear-gradient(105deg, transparent 18%, rgba(0, 0, 0, 0.55) 52%, #000 100%);
  opacity: 0.85;
}

/* Soft gold rule at the base, lifting the band off the content below. */
.page-intro::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, #ffb236, rgba(244, 245, 239, 0.15) 45%, transparent 72%);
}

/* Editorial eyebrow — small caps with a fine leading rule, not a badge. */
.page-intro .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: var(--gold-deep);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.22em;
  margin-bottom: 15px;
}

.page-intro .eyebrow::before {
  content: '';
  width: 30px;
  height: 1px;
  border-radius: 0;
  background: var(--gold);
  box-shadow: none;
}

.page-intro h1 {
  font-size: clamp(14px, 1.5vw, 17px);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
  font-weight: 600;
  margin: 0;
}

/* The title, in a compact card with a gold accent bar on the left. */
.page-intro__lead {
  position: relative;
  align-self: center;
  justify-self: start;
  overflow: hidden;
  padding: clamp(6px, 0.8vw, 8px) clamp(24px, 2.6vw, 36px) clamp(6px, 0.8vw, 8px)
    clamp(26px, 2.8vw, 38px);
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.5);
}

/* Gold accent bar down the left edge */
.page-intro__lead::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--grad-gold);
}

.page-intro .lede {
  margin-top: 14px;
  font-size: clamp(15px, 1.35vw, 16.5px);
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.92);
}

/* Split masthead: the title card and the intro paragraph share one row,
   vertically centred (flex centring is exact, so they always line up). */
.page-intro__grid {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 56px);
}

.page-intro__lead {
  flex: 0 0 auto;
}

.page-intro__grid .lede {
  flex: 1 1 320px;
  margin: 0;
  max-width: none;
  padding-left: clamp(22px, 3vw, 44px);
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.page-intro__grid .page-intro__media {
  flex: 1 0 100%;
  margin-top: clamp(20px, 3vw, 32px);
}

@media (max-width: 860px) {
  .page-intro__grid {
    gap: 18px;
  }

  .page-intro__lead {
    flex: 1 1 100%;
  }

  .page-intro__grid .lede {
    flex: 1 1 100%;
    padding-left: 0;
    border-left: 0;
  }
}

.page-intro__media {
  margin-top: clamp(22px, 3vw, 34px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 26px 64px -36px rgba(0, 0, 0, 0.55);
}

.page-intro__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

/* ---------- Prose ---------- */

.prose {
  max-width: var(--container-text);
  color: var(--ink-soft);
}

.prose h2 {
  font-size: var(--fs-h2);
  margin-top: 1.8em;
}

.prose h3 {
  font-size: var(--fs-h3);
  margin-top: 1.5em;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
  margin-bottom: 1em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose li::marker {
  color: var(--gold);
}

.prose img {
  border-radius: var(--radius-sm);
  margin-block: 1.5em;
}

/* In-article images span the full content column (the <figure> otherwise keeps
   the browser's default 40px side margins, insetting the picture from the text). */
.article__image {
  margin: clamp(22px, 3vw, 34px) 0;
}

.article__image img {
  display: block;
  width: 100%;
  height: auto;
  margin-block: 0;
}

.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--gold);
  color: var(--muted);
}

/* ---------- Premium boxed reading layout (About) ---------- */

.prose-boxed {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.4vw, 28px);
  color: var(--ink-soft);
}

/* Each `## ` section becomes a premium card with a gold spine. */
.prose-boxed .prose-box {
  position: relative;
  padding: clamp(24px, 3vw, 40px);
  padding-left: clamp(28px, 3.2vw, 44px);
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition:
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.prose-boxed .prose-box:hover {
  border-color: color-mix(in srgb, var(--gold) 30%, var(--line));
  box-shadow: var(--shadow-card);
}

/* Gold spine down the left edge of every box. */
.prose-boxed .prose-box::before {
  content: '';
  position: absolute;
  left: 0;
  top: clamp(22px, 3vw, 34px);
  bottom: clamp(22px, 3vw, 34px);
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--grad-gold);
}

.prose-boxed .prose-box > h2 {
  margin: 0 0 16px;
  font-size: var(--fs-h2);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.prose-boxed .prose-box__subs > .prose-sub > p {
  margin: 0 0 0.85em;
  color: var(--ink-soft);
}

.prose-boxed .prose-box__subs > .prose-sub > p:last-child {
  margin-bottom: 0;
}

/* When a section carries 2+ sub-topics, stack them one per row.

   This was an auto-fit grid with a 186px minimum, chosen on the assumption that
   the column is 640px — which made four tracks impossible. That assumption does
   not hold: on a service page the prose column measures 888px, so auto-fit took
   four tracks of 191px. Minus ~30px of padding each side, that leaves about
   130px for body copy, and a paragraph set to 130px breaks every two or three
   words: "Everything / is / customisable".

   The auto-fit was trying to be clever about how many fit. The honest answer is
   that these are paragraphs, not tiles, and a paragraph needs a reading measure
   — so one per row, at whatever width the column happens to be. Phones already
   rendered them this way, so this only changes the wide layout. */
.prose-boxed .prose-box--features .prose-box__subs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(14px, 1.4vw, 20px);
  counter-reset: feat;
}

/* Each sub-topic in a *multi*-feature section is a numbered mini-panel.
   Scoped to .prose-box--features on purpose: a section with a single
   sub-topic was getting the same treatment, which put a bordered card inside
   the outer panel — a box drawn around the only thing in the box — and
   numbered it "01" with nothing to be first of. A lone sub-topic is just the
   section's content, so it renders as a heading and a paragraph. */
.prose-boxed .prose-box--features .prose-sub--feature {
  counter-increment: feat;
  position: relative;
  /* `gap` on the grid does the spacing. */
  padding: clamp(22px, 2vw, 30px);
  border-radius: 18px;
  background: linear-gradient(
    162deg,
    var(--gold-soft),
    color-mix(in srgb, var(--gold-soft) 26%, var(--surface))
  );
  border: 1px solid color-mix(in srgb, var(--gold) 16%, var(--line));
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.prose-boxed .prose-box--features .prose-sub--feature:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--gold) 42%, var(--line));
  box-shadow: var(--shadow-card);
}

.prose-boxed .prose-box--features .prose-sub--feature::before {
  content: counter(feat, decimal-leading-zero);
  position: absolute;
  top: clamp(16px, 1.8vw, 22px);
  right: clamp(18px, 1.8vw, 24px);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  color: transparent;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0.28;
}

.prose-boxed .prose-sub--feature h3 {
  margin: 0 0 10px;
  font-size: var(--fs-h4);
  letter-spacing: -0.01em;
  color: var(--gold-deep);
}

/* Only where a number is actually drawn. */
.prose-boxed .prose-box--features .prose-sub--feature h3 {
  padding-right: 40px;
}

.prose-boxed .prose-sub--feature p {
  margin: 0 0 0.7em;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--ink-soft);
}

.prose-boxed .prose-sub--feature p:last-child {
  margin-bottom: 0;
}

/* Lists inside a highlighted panel */
.prose-boxed .prose-sub--feature ul,
.prose-boxed .prose-sub--feature ol {
  margin: 4px 0 0;
  padding-left: 1.1em;
}

.prose-boxed .prose-sub--feature li {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}

/* The box carries the gold spine, so drop the per-heading underline here. */
.prose-boxed .prose-box h2::after {
  display: none;
}

/* ---------- FAQ ---------- */

/* `.faq-section` was the per-category wrapper on the old /faqs page. The hub
   filters in one list now, and service pages never used it. */

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease);
}

.faq-item:hover,
.faq-item[open] {
  border-color: color-mix(in srgb, var(--gold) 42%, var(--line));
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 52px 18px 22px;
  font-weight: 600;
  color: var(--ink);
  font-size: var(--fs-body);
  list-style: none;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--gold-deep);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: '–';
}

.faq-item > p,
.faq-item .faq-answer {
  padding: 0 22px 20px;
  color: var(--muted);
  margin: 0;
  max-width: none;
}

/* ---------- Plans ---------- */

/* `.plan-card` (the old generic three-up card) was removed with the markup it
   styled — the price table now lives in the `.pricing` block near the end of
   this file. Leaving dead rules behind is how two definitions of one component
   start competing. */

.price-from {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-deep);
  margin-top: 24px;
}

/* The old three-up card grid lived here and, being later in the file, silently
   beat the row layout above. Removed rather than overridden — two full
   definitions of the same component is how that happens in the first place. */

/* ---------- Case study ---------- */

/* ---------- Portfolio case study ---------- */

/* Full-width tinted band: a gold-washed panel with a top accent line and a
   soft drifting glow. The band spans the viewport, but its content rides the
   shared .container edge so the title lines up with the header, the story
   below, and the footer. */
.case-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-top: calc(var(--header-h) + clamp(30px, 4vw, 54px));
  padding-bottom: clamp(30px, 4vw, 50px);
  background: linear-gradient(
    158deg,
    var(--surface),
    color-mix(in srgb, var(--gold-soft) 46%, var(--surface))
  );
  border-bottom: 1px solid var(--line);
}
.case-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold-deep));
}
.case-hero::after {
  content: '';
  position: absolute;
  top: -18%;
  right: 4%;
  z-index: 0;
  width: clamp(240px, 32vw, 420px);
  height: clamp(240px, 32vw, 420px);
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--gold) 20%, transparent),
    transparent 66%
  );
  filter: blur(8px);
  pointer-events: none;
  animation: case-glow 9s ease-in-out infinite;
}
.case-hero__inner {
  position: relative;
  z-index: 1;
}

/* Premium content card floating on the hero band. */
.case-hero__card {
  position: relative;
  overflow: hidden;
  margin-top: clamp(14px, 1.8vw, 22px);
  padding: clamp(22px, 2.8vw, 36px);
  padding-left: clamp(26px, 3.2vw, 44px);
  border-radius: clamp(16px, 1.8vw, 24px);
  background: linear-gradient(
    155deg,
    var(--surface),
    color-mix(in srgb, var(--gold-soft) 42%, var(--surface))
  );
  border: 1px solid color-mix(in srgb, var(--gold) 18%, var(--line));
  box-shadow: 0 30px 66px -40px rgba(140, 28, 34, 0.34);
}
/* Gold spine down the left edge. */
.case-hero__card::before {
  content: '';
  position: absolute;
  left: 0;
  top: clamp(20px, 3vw, 30px);
  bottom: clamp(20px, 3vw, 30px);
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--grad-gold);
  z-index: 1;
}
/* Soft gold glow in the corner. */
.case-hero__card::after {
  content: '';
  position: absolute;
  top: -32%;
  right: -6%;
  z-index: 0;
  width: clamp(180px, 26vw, 320px);
  height: clamp(180px, 26vw, 320px);
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--gold) 16%, transparent),
    transparent 66%
  );
  pointer-events: none;
}
.case-hero__card > * {
  position: relative;
  z-index: 1;
}
@keyframes case-glow {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-16px, 14px) scale(1.06);
  }
}

/* Premium breadcrumb: a glass pill with a home icon, chevron separators and a
   highlighted current-page chip. */
.crumb {
  margin-bottom: clamp(16px, 2vw, 24px);
}
/* On the project (Our Work) detail hero only, keep the breadcrumb to 60% width
   (full width on smaller screens so it stays usable). */
.case-hero .crumb ol {
  width: 60%;
}
@media (max-width: 780px) {
  .case-hero .crumb ol {
    width: 100%;
  }
}
.crumb ol {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  width: 100%;
  margin: 0;
  padding: 5px 5px 5px 8px;
  list-style: none;
  border: 1px solid color-mix(in srgb, var(--gold) 16%, var(--line));
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  box-shadow: 0 14px 34px -26px rgba(140, 28, 34, 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: var(--fs-h6);
  line-height: 1;
}
.crumb li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
/* Keep everything on one row: the leading crumbs stay full, the current page
   takes the rest and shortens with an ellipsis if the title is long. */
.crumb li:not(:last-child) {
  flex: none;
}
.crumb li:last-child {
  flex: 1 1 auto;
}
/* A little extra breathing room before the current-page chip. */
.crumb li:last-child::before {
  margin-right: 8px;
}
.crumb li + li::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  margin: 0 3px;
  border-top: 1.6px solid color-mix(in srgb, var(--gold-deep) 45%, var(--muted));
  border-right: 1.6px solid color-mix(in srgb, var(--gold-deep) 45%, var(--muted));
  transform: rotate(45deg);
  opacity: 0.7;
}
.crumb a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-weight: 600;
  transition:
    color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}
.crumb a:hover {
  color: var(--gold-deep);
  background: var(--surface);
  transform: translateY(-1px);
  text-decoration: none;
}
.crumb a svg {
  color: var(--gold-deep);
}
.crumb [aria-current='page'] span {
  display: block;
  width: 100%;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--grad-gold);
  /* Ink, not #fff — white on this ramp is 1.9:1 at its lightest end. */
  color: var(--on-gold);
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Luxury image slider (2+ images): sliding stage, glass arrows, counter and a
   thumbnail rail. */
.case-slider {
  margin-bottom: clamp(24px, 3.4vw, 40px);
  outline: none;
}
.case-slider__stage {
  position: relative;
  border-radius: clamp(14px, 1.6vw, 22px);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 44px 96px -52px rgba(0, 0, 0, 0.62);
  isolation: isolate;
}
.case-slider__track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.case-slider__slide {
  flex: 0 0 100%;
  margin: 0;
  min-width: 0;
}
.case-slider__slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1400 / 832;
  object-fit: cover;
}
.case-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: clamp(38px, 3.4vw, 46px);
  height: clamp(38px, 3.4vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 62%, transparent);
  color: var(--ink);
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px -14px rgba(0, 0, 0, 0.6);
  transition:
    background-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}
.case-slider__arrow:hover {
  background: var(--gold-deep);
  color: #fff;
  transform: translateY(-50%) scale(1.06);
}
.case-slider__arrow--prev {
  left: clamp(10px, 1.4vw, 18px);
}
.case-slider__arrow--next {
  right: clamp(10px, 1.4vw, 18px);
}
.case-slider__count {
  position: absolute;
  top: clamp(10px, 1.4vw, 16px);
  right: clamp(10px, 1.4vw, 16px);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--deep-bg) 68%, transparent);
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.04em;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.case-slider__count b {
  color: #fff;
}
.case-slider__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.case-slider__thumb {
  flex: 0 0 auto;
  width: clamp(64px, 8vw, 92px);
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  opacity: 0.55;
  transition:
    opacity var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}
.case-slider__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}
.case-slider__thumb:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}
.case-slider__thumb.is-active {
  opacity: 1;
  border-color: var(--gold);
  box-shadow: 0 8px 20px -12px rgba(140, 28, 34, 0.55);
}
@media (prefers-reduced-motion: reduce) {
  .case-slider__track {
    transition: none;
  }
}

.case-hero__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.case-hero__year {
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* Sized to match the boxed section titles elsewhere (About / Services). */
.case-hero__title {
  font-size: var(--fs-h2);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

/* Short teaser: keep the full summary in the markup (for SEO) but show only
   the first couple of lines in the hero. */
.case-hero__lede {
  font-size: clamp(14px, 1.3vw, 15.5px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 66ch;
  margin: 0 0 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-hero__cta {
  gap: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .case-hero__inner::after {
    animation: none;
  }
}

/* Large cover + gallery images */
.case-cover {
  margin: 0;
  border-radius: clamp(14px, 1.6vw, 22px);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 44px 96px -52px rgba(0, 0, 0, 0.62);
}

.case-cover img {
  display: block;
  width: 100%;
  height: auto;
}

/* Lead cover now sits at the top of the story column, not full-bleed. */
.case-cover--lead {
  margin-bottom: clamp(22px, 3vw, 34px);
}

/* Story + facts sidebar */
.case-body {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

/* Overview presented as a premium boxed card with a gold spine, and a
   collapsible body that shows the first paragraph until "Read more". */
.case-overview {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 2.6vw, 34px);
  padding-left: clamp(26px, 3vw, 42px);
  border-radius: clamp(16px, 1.8vw, 22px);
  background: linear-gradient(
    158deg,
    var(--surface),
    color-mix(in srgb, var(--gold-soft) 30%, var(--surface))
  );
  border: 1px solid color-mix(in srgb, var(--gold) 15%, var(--line));
  box-shadow: 0 24px 54px -38px rgba(140, 28, 34, 0.3);
}
.case-overview::before {
  content: '';
  position: absolute;
  left: 0;
  top: clamp(20px, 2.6vw, 30px);
  bottom: clamp(20px, 2.6vw, 30px);
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--grad-gold);
}

.case-overview-title {
  margin: 0 0 14px;
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

/* Collapsible "read more" region. */
.case-overview__more {
  margin-top: 4px;
}
.case-overview__rest {
  padding-top: 6px;
}
/* The control spans the box and sits on its own rule, so it reads as the seam
   between what is shown and what is folded away — rather than a stray button
   left-aligned under the last paragraph. */
.case-overview__toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-top: 22px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  list-style: none;
}

/* The rule itself, drawn either side and fading out towards the edges so it
   never reads as a hard border. */
.case-overview__toggle::before,
.case-overview__toggle::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gold) 42%, transparent));
  transition: background var(--dur) var(--ease);
}

.case-overview__toggle::after {
  background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 42%, transparent), transparent);
}

/* Hovering lights the rule right along its length — the whole seam responds,
   not just the words. */
.case-overview__toggle:hover::before {
  background: linear-gradient(90deg, transparent, var(--gold));
}

.case-overview__toggle:hover::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.case-overview__toggle-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line));
  background: var(--surface);
  color: var(--gold-deep);
  font-size: var(--fs-h6);
  font-weight: 700;
  transition:
    background-color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.case-overview__toggle::-webkit-details-marker {
  display: none;
}

.case-overview__toggle:hover .case-overview__toggle-pill {
  background: var(--gold-soft);
  border-color: color-mix(in srgb, var(--gold) 55%, transparent);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -14px rgba(255, 178, 54, 0.85);
}

/* Open, the pill fills — the seam has been crossed, and it should not still
   look like an invitation. */
.case-overview__more[open] .case-overview__toggle-pill {
  background: var(--grad-gold);
  border-color: transparent;
  color: var(--on-gold);
}

/* The revealed copy rises in rather than appearing, so the eye is led to where
   the new text starts instead of hunting for it. */
.case-overview__more[open] .case-overview__rest {
  animation: case-more-in 0.42s var(--ease) both;
}

@keyframes case-more-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-overview__toggle::before,
  .case-overview__toggle::after,
  .case-overview__toggle-pill {
    transition: none;
  }

  .case-overview__more[open] .case-overview__rest {
    animation: none;
  }
}
.case-overview__toggle-text::after {
  content: 'Read more';
}
.case-overview__more[open] .case-overview__toggle-text::after {
  content: 'Read less';
}
.case-overview__toggle svg {
  transition: transform var(--dur-fast) var(--ease);
}
.case-overview__more[open] .case-overview__toggle svg {
  transform: rotate(180deg);
}

.case-body__main .prose {
  max-width: none;
}

/* Right rail: project facts card stacked above the shared contact sidebar. */
.case-rail {
  display: grid;
  gap: clamp(16px, 1.8vw, 22px);
  align-content: start;
}

.case-facts {
  display: grid;
  padding: clamp(22px, 2.2vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.case-fact {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.case-fact:first-of-type {
  padding-top: 0;
}

.case-fact__label {
  display: block;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

.case-fact__value {
  margin: 0;
  font-size: var(--fs-h5);
  color: var(--ink);
}

.case-fact__value a {
  color: var(--gold-deep);
  word-break: break-word;
}

.case-facts__cta {
  margin-top: 20px;
  width: 100%;
  justify-content: center;
}

/* The detail page closes on its own content (no closing band), so the article
   carries the bottom rhythm itself — matching the site-wide section padding. */
.case {
  padding-bottom: var(--section-pad);
}

@media (max-width: 900px) {
  .case-body {
    grid-template-columns: 1fr;
  }

  .case-facts {
    position: static;
  }
}

/* ---------- Testimonials ---------- */

.testimonial-feature {
  position: relative;
  text-align: center;
  max-width: 880px;
  margin-inline: auto;
}

.testimonial-feature__mark {
  position: absolute;
  top: clamp(-6px, 0.5vw, 4px);
  left: clamp(20px, 4vw, 44px);
  font-size: clamp(70px, 8vw, 110px);
  line-height: 1;
  color: color-mix(in srgb, var(--gold) 30%, transparent);
  font-weight: 700;
  pointer-events: none;
}

.testimonial-feature__stars {
  display: inline-flex;
  gap: 5px;
  color: var(--gold);
  margin-bottom: 20px;
}

.testimonial-feature blockquote {
  margin: 0;
}

.testimonial-feature blockquote p {
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
  text-wrap: balance;
}

.testimonial-feature blockquote footer {
  margin-top: 22px;
}

.testimonial-feature cite {
  font-style: normal;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  font-size: var(--fs-h5);
  font-weight: 700;
  color: var(--ink);
}

.testimonial-feature__company {
  font-size: var(--fs-h6);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--track-caps);
  color: var(--gold-deep);
}

.testimonial-feature .btn {
  margin-top: 28px;
}

/* ---- Home testimonials: curated premium review grid ---- */
.home-testimonials {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background:
    radial-gradient(
      55% 100% at 100% 0%,
      color-mix(in srgb, var(--gold) 12%, transparent),
      transparent 65%
    ),
    radial-gradient(
      45% 90% at 0% 100%,
      color-mix(in srgb, var(--gold-soft) 70%, transparent),
      transparent 68%
    ),
    var(--bg-alt);
}

.home-testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(
    circle,
    color-mix(in srgb, var(--gold) 18%, transparent) 1px,
    transparent 1.5px
  );
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(115deg, transparent 32%, #000 100%);
  mask-image: linear-gradient(115deg, transparent 32%, #000 100%);
  opacity: 0.5;
}

.home-testimonials__head {
  align-items: flex-end;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.home-testimonials__head .display {
  margin-bottom: 10px;
}

.home-testimonials__head .lede {
  max-width: 64ch;
  margin: 0;
}

.home-testimonials__head .btn {
  flex: none;
}

.home-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 24px);
  align-items: stretch;
}

.home-testimonial-card {
  isolation: isolate;
  display: flex;
  width: 100%;
  min-height: 360px;
  margin: 0;
  padding: clamp(22px, 2.4vw, 30px);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--gold-soft) 44%, transparent), transparent 58%),
    var(--glass-bg);
  box-shadow:
    0 26px 56px -38px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 var(--glass-rim);
}

.home-testimonial-card::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 180px;
  height: 180px;
  top: -100px;
  right: -90px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--gold) 16%, transparent),
    transparent 68%
  );
  pointer-events: none;
}

.home-testimonial-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.home-testimonial-card__top .testimonial-card__mark {
  height: auto;
  line-height: 0.62;
}

.home-testimonial-card__stars {
  flex: none;
  color: var(--gold-deep);
  font-size: var(--fs-caption);
  letter-spacing: 0.12em;
}

.home-testimonial-card blockquote p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
  font-size: var(--fs-h5);
  line-height: 1.7;
}

.home-testimonial-card .testi-foot {
  align-items: flex-start;
  margin-top: 6px;
}

.home-testimonial-card .testi-role {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 1000px) {
  .home-testimonials__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-testimonials__grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    min-height: 0;
  }

  .home-testimonials__grid > :last-child:nth-child(odd) blockquote p {
    -webkit-line-clamp: 5;
  }
}

@media (max-width: 640px) {
  .home-testimonials__head {
    align-items: stretch;
  }

  .home-testimonials__grid {
    grid-template-columns: 1fr;
  }

  .home-testimonials__grid > :last-child:nth-child(odd) {
    grid-column: auto;
  }

  .home-testimonial-card,
  .home-testimonials__grid > :last-child:nth-child(odd) {
    min-height: 0;
  }

  .home-testimonial-card blockquote p,
  .home-testimonials__grid > :last-child:nth-child(odd) blockquote p {
    -webkit-line-clamp: 7;
  }
}

/* Shared identity pieces (avatar + name + role + badge) */
.testi-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--grad-gold);
  color: var(--on-gold);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.testi-avatar--lg {
  width: 52px;
  height: 52px;
  font-size: var(--fs-h4);
}

.testi-avatar--sm {
  width: 34px;
  height: 34px;
  font-size: var(--fs-caption);
}

.testi-id {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.testi-name {
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.3;
}

.testi-role {
  color: var(--muted);
  font-size: var(--fs-caption);
  line-height: 1.35;
}

.testi-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: var(--fs-nano);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: var(--gold-soft);
  border: 1px solid color-mix(in srgb, var(--gold) 26%, transparent);
}

.testimonial-card__mark {
  display: block;
  height: 20px;
  font-family: var(--font-body);
  font-size: 44px;
  line-height: 0.5;
  font-weight: 800;
  color: var(--gold);
}

/* ---- Grid view ---- */
.testi-grid {
  --testi-grid-gap: clamp(14px, 1.2vw, 18px);
  columns: 3 320px;
  column-gap: var(--testi-grid-gap);
}

.testimonial-card {
  /* Masonry flow removes empty row space while preserving one balanced gap. */
  break-inside: avoid;
  width: 100%;
  margin: 0 0 var(--testi-grid-gap);
  display: inline-flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(20px, 2vw, 26px);
  overflow: hidden;
}

.testimonial-card > .testi-badge {
  position: absolute;
  top: 16px;
  right: 16px;
}

.testimonial-card--featured {
  border-color: color-mix(in srgb, var(--gold) 34%, var(--line));
}

.testimonial-card--featured::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-gold);
}

.testimonial-card blockquote {
  flex: 1;
  margin: 0;
}

.testimonial-card blockquote p {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.62;
  color: var(--ink-soft);
}

.testi-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ---- List view ---- */
.testi-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.testi-list__item {
  display: grid;
  grid-template-columns: 232px 1fr;
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
  margin: 0;
  padding: clamp(22px, 2.4vw, 30px);
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur) var(--ease);
}

.testi-list__item:hover {
  border-color: color-mix(in srgb, var(--gold) 30%, var(--line));
}

.testi-list__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.testi-list__aside .testi-id {
  gap: 3px;
}

.testi-list__quote {
  position: relative;
  margin: 0;
  padding-left: 32px;
}

.testi-list__quote .testimonial-card__mark {
  position: absolute;
  left: -2px;
  top: -4px;
  height: auto;
}

.testi-list__quote p {
  margin: 0;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ---- Compact view ---- */
.testi-compact {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.testi-compact__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px clamp(14px, 1.6vw, 20px);
  border-top: 1px solid var(--line);
  transition: background-color var(--dur-fast) var(--ease);
}

.testi-compact__item:first-child {
  border-top: 0;
}

.testi-compact__item:hover {
  background: color-mix(in srgb, var(--gold-soft) 45%, transparent);
}

.testi-compact__id {
  flex: 0 0 210px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.testi-compact__id .testi-name,
.testi-compact__id .testi-role {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testi-compact__snippet {
  flex: 1;
  min-width: 0;
  color: var(--ink-soft);
  font-size: var(--fs-h6);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Entry animation ---- */
.testi-grid > *,
.testi-list__item,
.testi-compact__item {
  animation: testi-in var(--dur) var(--ease) both;
  animation-delay: calc(var(--i, 0) * 40ms);
}

@keyframes testi-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .testi-list__item {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .testi-list__aside {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .testi-compact__id {
    flex-basis: 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .testi-grid > *,
  .testi-list__item,
  .testi-compact__item {
    animation: none;
  }
}

/* ---------- Forms ---------- */

.form-page {
  max-width: 720px;
}

.inquiry-form {
  display: grid;
  gap: 18px;
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3vw, 38px);
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.inquiry-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold-deep));
}

/* Floating-label field (2026 form UI) */
.field {
  position: relative;
}
.field-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field-row3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.field__input {
  display: block;
  width: 100%;
  padding: 23px 16px 8px 46px;
  font-family: var(--font-body);
  font-size: var(--fs-h5);
  color: var(--ink);
  background: color-mix(in srgb, var(--gold-soft) 24%, var(--surface));
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  transition:
    border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease);
}
textarea.field__input {
  min-height: 132px;
  resize: vertical;
  line-height: 1.6;
  padding-top: 26px;
}
.field--select .field__input {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238c1c22' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.field__ic {
  position: absolute;
  left: 15px;
  top: 16px;
  color: var(--muted);
  pointer-events: none;
  z-index: 1;
  transition: color var(--dur-fast) var(--ease);
}
.field--area .field__ic {
  top: 17px;
}
.field__label {
  position: absolute;
  left: 46px;
  top: 15px;
  color: var(--muted);
  font-size: var(--fs-h5);
  font-weight: 500;
  pointer-events: none;
  transform-origin: left center;
  transition:
    transform 0.18s ease,
    color 0.18s ease;
}
.field__label span {
  color: var(--gold-deep);
}
.field__input:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 14%, transparent);
}
.field:focus-within .field__ic {
  color: var(--gold-deep);
}
.field:focus-within .field__label,
.field__input:not(:placeholder-shown) + .field__label,
.field--select .field__label {
  transform: translateY(-10px) scale(0.76);
  color: var(--gold-deep);
}

.inquiry-form__fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.inquiry-form legend {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  padding: 0;
}

/* Same gold asterisk the individual required fields use. */
.inquiry-form legend span[aria-hidden] {
  color: var(--gold);
  font-weight: 700;
}

@media (max-width: 560px) {
  .field-row2,
  .field-row3 {
    grid-template-columns: 1fr;
  }
}

/* Service picker: selectable tiles rather than a row of plain checkbox pills —
   this is the question that decides the whole enquiry, so it earns the space. */
/* Five services laid out 3 over 2, both rows filling the full width. A six
   column track makes that exact: the first three span 2 each, the last two
   span 3 each. Assumes five options — revisit the spans if that count changes. */
.inquiry-form__checks {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

/* Three abreast, six tiles as two even rows — was hand-tuned for five (3
   narrow + 2 wide) before "Fix my WordPress CMS" made it six; a uniform
   span now lines both rows up instead of orphaning the last tile alone. */
.svc-tile {
  grid-column: span 2;
}

/* Two-up once three abreast would squeeze the labels. */
@media (max-width: 640px) {
  .svc-tile {
    grid-column: span 3;
  }
}

.svc-tile {
  position: relative;
  display: block;
  cursor: pointer;
}

.svc-tile input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.svc-tile__face {
  position: relative;
  /* One line: the 3-over-2 grid gives each tile 254px+, enough for the icon and
     label side by side (it only had to stack back when five sat abreast). */
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 12px 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition:
    border-color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

/* Gold wash that sweeps in from the left as the tile is selected. */
.svc-tile__face::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    color-mix(in srgb, var(--gold) 20%, transparent),
    transparent 62%
  );
  opacity: 0;
  transform: translateX(-24%);
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.svc-tile__ic {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  transition:
    background-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.svc-tile__ic svg {
  width: 19px;
  height: 19px;
}

.svc-tile__label {
  position: relative;
  flex: 1;
  min-width: 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* Tick sits in the corner and only appears once the tile is chosen. */
.svc-tile__tick {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--grad-gold);
  color: var(--on-gold);
  opacity: 0;
  transform: scale(0.5);
  transition:
    opacity var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.svc-tile__tick svg {
  width: 12px;
  height: 12px;
}

.svc-tile:hover .svc-tile__face {
  border-color: color-mix(in srgb, var(--gold) 46%, var(--line));
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -20px rgba(0, 0, 0, 0.5);
}

.svc-tile input:focus-visible + .svc-tile__face {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.svc-tile input:checked + .svc-tile__face {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold-soft) 62%, var(--surface));
  box-shadow: 0 14px 30px -22px rgba(255, 178, 54, 0.85);
}

.svc-tile input:checked + .svc-tile__face::before {
  opacity: 1;
  transform: translateX(0);
}

.svc-tile input:checked + .svc-tile__face .svc-tile__ic {
  background: var(--grad-gold);
  color: var(--on-gold);
}

.svc-tile input:checked + .svc-tile__face .svc-tile__tick {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .svc-tile__face,
  .svc-tile__face::before,
  .svc-tile__tick {
    transition: none;
  }
  .svc-tile:hover .svc-tile__face {
    transform: none;
  }
}

.check {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 9px 15px;
  cursor: pointer;
  font-weight: 500 !important;
  font-size: var(--fs-sm) !important;
  transition:
    border-color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease);
}

.check:has(input:checked) {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.check input {
  accent-color: var(--gold-deep);
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line));
  background: var(--gold-soft);
  color: var(--gold-deep);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  font-weight: 500;
}

.form-success p {
  margin: 0;
}

.form-success__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.form-error {
  color: var(--danger);
  font-weight: 500;
  margin: 0;
}

.reply-promise {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-h6);
  color: var(--muted);
  margin: 0;
}
.reply-promise svg {
  flex: none;
  color: var(--gold);
}

/* Send button — deep burgundy (distinct from the site's gold pills). */
/* ---- The submit button on every form ----
   Contact, quote and the consultation popup all share this. It is the last
   thing anyone touches before committing, so it should look like the most
   considered object on the page.

   It was `linear-gradient(135deg, #c22633, var(--gold) 45%, #6b1519)` with a red
   drop shadow — two hard-coded reds from the palette the site left in July, on
   the single most important control it has. White text over that measured about
   2:1 where the gradient passed through gold.

   Now: champagne, held in its lighter half so ink sits on it at 5.7:1, with the
   sheen and the halo the aside CTA uses. Same treatment, same reasoning — a
   visitor should not be able to tell that two people built these. */
.inquiry-form__send,
.aside-cta__btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  margin-top: 4px;
  padding: 0 26px;
  font-size: var(--fs-sm);
  border: 1px solid rgba(244, 245, 239, 0.3);
  border-radius: var(--radius-pill);
  color: var(--on-gold);
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  /* Not --grad-gold: that ramp ends at #9a672d, which drops ink-on-gold to
     3.5:1 in the button's far corner. */
  background: linear-gradient(135deg, var(--ramp-1) 0%, var(--ramp-2) 46%, var(--ramp-3) 100%);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.45) inset,
    0 14px 30px -14px rgba(0, 0, 0, 0.65),
    0 0 0 0 rgba(244, 245, 239, 0.4);
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.2s var(--ease);
}

/* The sheen. Parked off the left edge, sweeping across on hover — behind the
   label, because the label is a bare <span> beside an <svg> and a highlight
   travelling over the text washes it out instead of lighting the metal. */
.inquiry-form__send::before,
.aside-cta__btn::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 42%,
    rgb(255 255 255 / 0.34) 49%,
    rgb(255 255 255 / 0.08) 54%,
    transparent 60%
  );
  transform: translateX(-120%);
  transition: transform 780ms var(--ease);
}

.inquiry-form__send:hover::before,
.inquiry-form__send:focus-visible::before,
.aside-cta__btn:hover::before,
.aside-cta__btn:focus-visible::before {
  transform: translateX(120%);
}

.inquiry-form__send:hover,
.inquiry-form__send:focus-visible,
.aside-cta__btn:hover,
.aside-cta__btn:focus-visible {
  transform: translateY(-2px);
  /* No brightness filter. Lightening gold dulls it — the lift, the deeper drop
     and the halo carry the interaction while the metal stays put. */
  border-color: rgba(244, 245, 239, 0.5);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.55) inset,
    0 22px 44px -16px rgba(0, 0, 0, 0.7),
    0 0 30px -6px rgba(244, 245, 239, 0.55);
}

.inquiry-form__send:focus-visible,
.aside-cta__btn:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.inquiry-form__send:active,
.aside-cta__btn:active {
  transform: translateY(0);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.4) inset,
    0 6px 14px -10px rgba(0, 0, 0, 0.6);
}

.inquiry-form__send:disabled {
  opacity: 0.62;
  cursor: default;
  transform: none;
  box-shadow: 0 8px 18px -12px rgba(0, 0, 0, 0.5);
}

/* Sending: the sheen stops being decoration and becomes the progress signal,
   which is the one time a repeating animation on a button is honest. */
.inquiry-form__send:disabled::before {
  animation: send-sheen 1.5s linear infinite;
  transform: none;
}

@keyframes send-sheen {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(120%);
  }
}

.inquiry-form__arrow,
.aside-cta__btn svg {
  flex: none;
  transition: transform 0.25s var(--ease);
}

.inquiry-form__send:hover .inquiry-form__arrow,
.aside-cta__btn:hover svg {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  .inquiry-form__send,
  .inquiry-form__send::before,
  .inquiry-form__arrow,
  .aside-cta__btn,
  .aside-cta__btn::before,
  .aside-cta__btn svg {
    transition: none;
  }

  .inquiry-form__send:disabled::before {
    animation: none;
  }

  .inquiry-form__send:hover,
  .aside-cta__btn:hover {
    transform: none;
  }

  .inquiry-form__send:hover::before,
  .inquiry-form__send:focus-visible::before {
    transform: translateX(-120%);
  }
}

/* ---- Security + consent (creative 2026 secure block) ---- */
.secure-row {
  display: grid;
  gap: 12px;
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition:
    max-height 0.42s var(--ease),
    opacity 0.3s var(--ease),
    margin 0.3s var(--ease);
}
.secure-row.is-shown {
  max-height: 340px;
  margin-top: 6px;
  opacity: 1;
  pointer-events: auto;
}
.human-check {
  position: relative;
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 11px;
  padding: 10px 16px 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: color-mix(in srgb, var(--gold-soft) 24%, var(--surface));
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease);
}
.human-check::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 35%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 65%
  );
  transform: translateX(-130%);
  transition: transform 0.7s var(--ease);
}
.human-check:hover {
  border-color: color-mix(in srgb, var(--gold) 40%, var(--line-strong));
}
.human-check input,
.consent-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.human-check__box,
.consent-check__box {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 2px solid var(--line-strong);
  background: var(--surface);
  color: #fff;
  transition:
    background-color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}
.human-check__box svg,
.consent-check__box svg {
  width: 16px;
  height: 16px;
  opacity: 0;
  transform: scale(0.5);
  transition:
    opacity 0.18s var(--ease),
    transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.6);
}
.human-check input:checked ~ .human-check__box,
.consent-check input:checked ~ .consent-check__box {
  background: var(--ok, #2f7d52);
  border-color: var(--ok, #2f7d52);
}
.human-check input:checked ~ .human-check__box svg,
.consent-check input:checked ~ .consent-check__box svg {
  opacity: 1;
  transform: none;
}
.human-check input:checked ~ .human-check__shield {
  color: var(--ok, #2f7d52);
}
.human-check:has(input:checked) {
  border-color: color-mix(in srgb, var(--ok, #2f7d52) 45%, var(--line-strong));
  background: color-mix(in srgb, var(--ok, #2f7d52) 8%, var(--surface));
}
.human-check:has(input:checked)::before {
  transform: translateX(130%);
}
.human-check__txt {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.human-check__txt b {
  font-size: var(--fs-sm);
  color: var(--ink);
}
.human-check__txt small {
  font-size: var(--fs-caption);
  color: var(--muted);
}
.human-check__shield {
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
  padding-left: 2px;
}
.consent-check__box {
  margin-top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 7px;
}
.consent-check__box svg {
  width: 13px;
  height: 13px;
}
.consent-check__txt {
  font-size: var(--fs-h6);
  color: var(--muted);
  line-height: 1.55;
}
.consent-check__txt a {
  color: var(--gold-deep);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.consent-check__txt a:hover {
  color: var(--gold);
}

/* Contact-page "Chat with us" — icons only, no hover-reveal label. */
.contact-card--chats .chat-btn__label {
  display: none;
}
.contact-card--chats .chat-btn:hover,
.contact-card--chats .chat-btn:focus-visible {
  padding-right: 5px;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(250px, 0.6fr);
  gap: clamp(24px, 3.5vw, 48px);
  align-items: start;
}

.contact-aside {
  display: grid;
  gap: 12px;
}

/* Collapsible contact cards (native <details>), professional accordion. */
.contact-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
  transition:
    border-color 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}
.contact-card:hover {
  border-color: color-mix(in srgb, var(--gold) 28%, var(--line));
  box-shadow: 0 14px 32px -26px rgba(140, 28, 34, 0.35);
}
.contact-card__head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 15px;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.contact-card__head::-webkit-details-marker {
  display: none;
}
.contact-card--static .contact-card__head {
  cursor: default;
}
.contact-card__ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  transition:
    background 0.22s var(--ease),
    color 0.22s var(--ease);
}
.contact-card__ic svg {
  width: 17px;
  height: 17px;
}
.contact-card h2 {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.contact-card__chev {
  flex: none;
  color: var(--muted);
  transition:
    transform 0.26s var(--ease),
    color 0.2s var(--ease);
}
.contact-card[open] .contact-card__chev {
  transform: rotate(180deg);
  color: var(--gold-deep);
}
/* The "open" tile was `linear-gradient(var(--gold-bright), var(--gold-deep))`
   with `color: #fff`. Both of those tokens are light golds in dark mode, so it
   became white on pale gold — the cream tiles with a barely-there icon, next to
   the closed cards which flip correctly to a dark tile with a gold icon.

   Two separate fixes, because there were two separate mistakes:

   A static card is not an open one. "Talk to us" and "Chat with us" do not
   toggle, so they were wearing an interaction state they can never leave. They
   now look like every other tile. */
.contact-card--static .contact-card__ic {
  background: var(--gold-soft);
  color: var(--gold-deep);
}

/* And a card that really is open keeps a distinct tile — but built from the
   tokens that hold still in both modes, so ink sits on gold at 5.7:1 instead of
   white sitting on gold at 1.5. */
.contact-card[open] .contact-card__ic {
  background: linear-gradient(135deg, var(--ramp-1) 0%, var(--ramp-2) 46%, var(--ramp-3) 100%);
  color: var(--on-gold);
}
.contact-card__body {
  padding: 0 16px 15px 60px;
}
.contact-card[open] .contact-card__body {
  animation: cc-reveal 0.28s ease;
}
@keyframes cc-reveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.contact-card__body p {
  font-size: var(--fs-h6);
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 8px;
}
.contact-card__body p:last-child {
  margin-bottom: 0;
}
.contact-card__map {
  display: inline-block;
  margin-top: 4px;
  color: var(--gold-deep);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
.contact-card__map:hover {
  color: var(--gold);
}

/* "Talk to us" — always open, highlighted, with contact rows */
.contact-card--static {
  border-color: color-mix(in srgb, var(--gold) 26%, var(--line));
  background: linear-gradient(
    180deg,
    var(--surface),
    color-mix(in srgb, var(--gold-soft) 34%, var(--surface))
  );
}
.contact-card__body--links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  color: var(--ink);
  font-weight: 600;
  font-size: var(--fs-h6);
  text-decoration: none;
  transition: color 0.16s var(--ease);
}
.contact-link:hover {
  color: var(--gold-deep);
}
.contact-link__ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  transition:
    background 0.18s var(--ease),
    color 0.18s var(--ease);
}
.contact-link:hover .contact-link__ic {
  background: var(--gold-deep);
  color: #fff;
}

/* "Chat with us" card — chat buttons adapted for the light aside (premium). */
.contact-card--chats .contact-card__body {
  padding: 2px 15px 15px;
}
.contact-card--chats .footer-chats {
  margin: 0;
  gap: 8px;
}
.contact-card--chats .chat-btn {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}
.contact-card--chats .chat-btn__ic {
  background: var(--gold-soft);
  color: var(--gold-deep);
}
.contact-card--chats .chat-btn__ic::after {
  animation-name: fc-pulse-light;
}
@keyframes fc-pulse-light {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 34%, transparent);
  }
  70%,
  100% {
    box-shadow: 0 0 0 8px transparent;
  }
}

@media (max-width: 820px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Blog: two-column premium layout ---------- */

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(32px, 4vw, 60px);
  align-items: start;
}

.blog-layout--article {
  padding-top: calc(var(--header-h) + clamp(28px, 4vw, 52px));
}

.blog-main {
  min-width: 0;
}

/* Reading layout — a text column beside the sidebar. Fills the container so
   its edges line up with the header and footer; the text column stays a
   comfortable width and the sidebar sits flush to the right edge. */
.reading-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

/* --header-h clears the fixed header; the clamp is the only *visible* gap above
   the breadcrumb. It was clamp(24px, 4vw, 44px), which sat at its 44px maximum
   on any wide screen and read as a blank band before the article started. */
.reading-layout--top {
  padding-top: calc(var(--header-h) + clamp(16px, 1.8vw, 24px));
}

.reading-main {
  min-width: 0;
}

/* In these layouts the column already sets the width, so let prose fill it. */
.reading-layout .prose,
.reading-layout .article {
  max-width: none;
}

/* --- Post cards (index) --- */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 30px);
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: color-mix(in srgb, var(--gold) 32%, var(--line));
}

.post-card__cover {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}

.post-card__cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.post-card:hover .post-card__cover img {
  transform: scale(1.07);
}

/* Luxury glossy light sweep across the image on hover. */
.post-card__cover::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 38%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 62%
  );
  transform: translateX(-130%);
  transition: transform 0.9s var(--ease);
}

.post-card:hover .post-card__cover::after,
.blog-row:hover .post-card__cover::after {
  transform: translateX(130%);
}

@media (prefers-reduced-motion: reduce) {
  .post-card__cover img,
  .post-card__cover::after {
    transition: none;
  }
  .post-card:hover .post-card__cover img,
  .blog-row:hover .post-card__cover img {
    transform: none;
  }
  .post-card:hover .post-card__cover::after,
  .blog-row:hover .post-card__cover::after {
    transform: translateX(-130%);
  }
}

.post-card__cover-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  font-size: 56px;
  font-weight: 700;
  color: color-mix(in srgb, var(--gold) 55%, transparent);
  background: var(--grad-gold-soft);
}

.post-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(18px, 2vw, 24px);
  flex: 1;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-caption);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.post-card__dot {
  color: color-mix(in srgb, var(--gold) 60%, transparent);
}

.post-card__title {
  font-size: var(--fs-h4);
  line-height: 1.35;
  margin: 0;
}

.post-card__title a {
  color: var(--ink);
}

.post-card__title a:hover {
  color: var(--gold-deep);
  text-decoration: none;
}

.post-card__excerpt {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--gold-deep);
  padding-top: 4px;
}

.post-card__more svg {
  transition: transform var(--dur) var(--ease);
}

.post-card:hover .post-card__more svg {
  transform: translateX(4px);
}

/* --- Blog explorer: search + grid/list/compact views --- */

.blog-explorer {
  display: grid;
  gap: 20px;
}

/* Dropdown + view toggles stay grouped on the right of the search box. */
.blog-explorer__tail {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Keep the blog toolbar on a single row: search grows, filter + view toggles
   sit beside it. Wraps again on small screens. */
.blog-explorer .glossary__toolbar {
  flex-wrap: nowrap;
}
.blog-explorer .blog-explorer__tail {
  flex: none;
  flex-wrap: nowrap;
}
@media (max-width: 680px) {
  .blog-explorer .glossary__toolbar,
  .blog-explorer .blog-explorer__tail {
    flex-wrap: wrap;
  }

  /* The tail must take a full row and be allowed to shrink. Flex items default
     to min-width:auto, so without this it refuses to go below its content width
     and pushes the category select past the container edge — and the select's
     `width: 100%` then resolves against that inflated box. */
  .blog-explorer .blog-explorer__tail {
    flex: 1 1 100%;
    min-width: 0;
  }
}

/* Category filter — a dropdown on the toolbar row, after the search box. */
.blog-explorer__filter {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.blog-explorer__filter-icon {
  position: absolute;
  left: 16px;
  color: var(--muted);
  pointer-events: none;
}

.blog-explorer__select {
  appearance: none;
  -webkit-appearance: none;
  height: 52px;
  min-width: 178px;
  max-width: 230px;
  padding: 0 40px 0 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition:
    border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.blog-explorer__select:hover {
  border-color: color-mix(in srgb, var(--gold) 40%, var(--line));
}

.blog-explorer__select:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--gold) 55%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 13%, transparent);
}

.blog-explorer__select.is-active {
  border-color: color-mix(in srgb, var(--gold) 55%, var(--line));
  color: var(--gold-deep);
  background: var(--gold-soft);
}

.blog-explorer__filter-caret {
  position: absolute;
  right: 15px;
  color: var(--muted);
  pointer-events: none;
}

@media (max-width: 560px) {
  .blog-explorer__filter,
  .blog-explorer__select {
    width: 100%;
    max-width: none;
    /* min-width from the desktop rule (178px) plus 82px of padding would keep
       the select from shrinking on narrow phones. */
    min-width: 0;
  }
}

/* List view — full-width horizontal cards */
.blog-list {
  display: grid;
  gap: clamp(14px, 1.6vw, 20px);
}

.blog-row {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.blog-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: color-mix(in srgb, var(--gold) 32%, var(--line));
}

.blog-row .post-card__cover {
  height: 100%;
}

.blog-row .post-card__cover img {
  height: 100%;
  aspect-ratio: auto;
}

.blog-row:hover .post-card__cover img {
  transform: scale(1.07);
}

.blog-row__body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: clamp(18px, 2vw, 24px);
}

.blog-row .post-card__excerpt {
  -webkit-line-clamp: 2;
}

@media (max-width: 620px) {
  .blog-row {
    grid-template-columns: 1fr;
  }
  .blog-row .post-card__cover img {
    aspect-ratio: 16 / 10;
  }
}

/* Compact view — dense title rows */
.blog-compact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.blog-compact li + li {
  border-top: 1px solid var(--line);
}

.blog-compact a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  color: var(--ink);
  transition: background-color var(--dur-fast) var(--ease);
}

.blog-compact a:hover {
  background: var(--bg-alt);
  text-decoration: none;
}

.blog-compact__title {
  font-weight: 600;
  font-size: var(--fs-h5);
  color: var(--ink);
}

.blog-compact a:hover .blog-compact__title {
  color: var(--gold-deep);
}

.blog-compact__meta {
  flex: none;
  font-size: var(--fs-caption);
  color: var(--muted);
  white-space: nowrap;
}

/* --- Pagination --- */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(36px, 4vw, 52px);
}

.pagination__pages {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination__num,
.pagination__edge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: var(--fs-caption);
  font-weight: 600;
  transition: all var(--dur-fast) var(--ease);
}

.pagination__num svg,
.pagination__edge svg {
  width: 14px;
  height: 14px;
}

.pagination__num:hover,
.pagination__edge:hover {
  border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
  color: var(--gold-deep);
  text-decoration: none;
}

.pagination__num.is-current {
  background: var(--grad-gold);
  border-color: transparent;
  color: var(--on-gold);
  box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--gold) 70%, transparent);
}

.pagination__edge[aria-disabled='true'],
.pagination__edge:disabled {
  opacity: 0.4;
  pointer-events: none;
}

.pagination__gap {
  padding: 0 4px;
  color: var(--muted);
}

/* --- Article --- */

.article {
  min-width: 0;
}

.article__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.article__meta-dot {
  color: color-mix(in srgb, var(--gold) 60%, transparent);
}

.article__header h1 {
  /* One step down the scale from --fs-h1 (34px → 25px). Kept on a token rather
     than a hand-set 27px, per the no-per-page-sizes rule. */
  font-size: var(--fs-h2);
  /* Overrides the global `h1..h6 { text-wrap: balance }`. Balance evens the
     lines rather than filling the first, so a title needing 744px was split
     across two rows inside an 889px column. The keyword is `wrap`, not
     `normal` — `normal` is invalid here and gets dropped, leaving balance. */
  text-wrap: wrap;
}

.article__cover {
  margin: clamp(24px, 3vw, 36px) 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 60px -34px rgba(0, 0, 0, 0.55);
}

.article__cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* --- Sidebar (right rail) --- */

.blog-aside {
  display: grid;
  gap: 24px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.aside-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 2vw, 26px);
  box-shadow: var(--shadow-sm);
}

.aside-card__title,
.aside-cta__title {
  font-size: var(--fs-body);
  margin: 0 0 16px;
}

.aside-card__title {
  position: relative;
  padding-bottom: 12px;
  color: var(--ink);
}

.aside-card__title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad-gold);
}

/* Luxury consultation card */
.aside-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius);
  padding: clamp(24px, 2.4vw, 30px);
  color: var(--deep-ink);
  background: linear-gradient(145deg, var(--brand-burgundy-mid), var(--brand-burgundy-deep));
  border: 1px solid rgba(244, 245, 239, 0.42);
  box-shadow: 0 24px 54px -34px rgba(0, 0, 0, 0.72);
}

.aside-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, 0.22), transparent 55%);
}

.aside-cta__eyebrow {
  display: inline-block;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 10px;
}

.aside-cta__title {
  color: var(--deep-ink);
  font-size: var(--fs-h4);
  margin-bottom: 10px;
}

.aside-cta__text {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: color-mix(in srgb, var(--deep-ink) 92%, transparent);
  margin: 0 0 18px;
}

/* The card's own keywords — the same symptoms and promise its target page is
   built around — lifted just enough to catch the eye scanning past, and to
   read as the important words if the sentence is ever parsed rather than
   read: the visible emphasis and the semantic <strong> agree with each other. */
.aside-cta__text strong {
  color: var(--gold-bright);
  font-weight: 700;
}

/* The card's CTA is the same object as a form's submit button, so it is styled
   by the same rule rather than a lookalike copy of it — see
   `.inquiry-form__send, .aside-cta__btn` further down. Only the layout inside
   the card belongs here. */
.aside-cta__btn {
  margin-top: 2px;
}

/* Recent articles list */
.aside-recent {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.aside-recent__item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.aside-recent__thumb {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-alt);
  flex-shrink: 0;
}

.aside-recent__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur) var(--ease);
}

.aside-recent__item:hover .aside-recent__thumb img {
  transform: scale(1.08);
}

.aside-recent__thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 24px;
  font-weight: 700;
  color: color-mix(in srgb, var(--gold) 55%, transparent);
  background: var(--grad-gold-soft);
}

.aside-recent__meta {
  min-width: 0;
}

.aside-recent__headline {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  transition: color var(--dur-fast) var(--ease);
}

.aside-recent__item:hover .aside-recent__headline {
  color: var(--gold-deep);
}

.aside-recent__date {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-caption);
  color: var(--muted);
}

/* Topic / explore pills */
.aside-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aside-topic {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--bg-alt);
  font-size: var(--fs-h6);
  font-weight: 600;
  color: var(--ink-soft);
  transition: all var(--dur-fast) var(--ease);
}

.aside-topic:hover {
  border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
  color: var(--gold-deep);
  background: var(--gold-soft);
  text-decoration: none;
}

/* Services list in the sidebar */
.aside-services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.aside-service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  margin: 0 -12px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-soft);
  transition:
    background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.aside-service svg {
  flex-shrink: 0;
  color: color-mix(in srgb, var(--gold) 55%, transparent);
  transition:
    transform var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.aside-service:hover {
  background: var(--bg-alt);
  color: var(--gold-deep);
  text-decoration: none;
}

.aside-service.is-current {
  color: var(--gold-deep);
  background: var(--gold-soft);
  box-shadow: inset 3px 0 0 var(--gold);
}

.aside-service.is-current svg {
  color: var(--gold-deep);
}

.aside-service:hover svg {
  transform: translateX(3px);
  color: var(--gold-deep);
}

/* Service detail pages share the editorial right rail. Their content column is
   intentionally narrower, so complex card groups reflow before they become
   cramped while the sidebar remains aligned with the first paragraph. */
.service-main {
  min-width: 0;
}

.service-layout .steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-layout .steps::before {
  display: none;
}

.service-layout .closing-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.9fr);
  gap: 0;
  overflow: hidden;
  padding: clamp(14px, 1.6vw, 18px);
  color: var(--deep-ink);
  background: #000000;
  border: 1px solid #ffb236;
  border-radius: 22px;
  box-shadow:
    inset 0 0 0 4px #000000,
    0 26px 52px -38px rgba(0, 0, 0, 0.72);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.closing-cta__message {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(280px, 28vw, 340px);
  padding: clamp(30px, 4vw, 52px);
  color: #000000;
  background: #f4f5ef;
  border: 1px solid #ffb236;
  border-radius: 14px;
}

.closing-cta__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: #ffb236;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.closing-cta__eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
}

.closing-cta__message h2 {
  max-width: 14ch;
  margin: 0;
  color: #000000;
  font-size: var(--fs-h1);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.16;
}

.closing-cta__lede {
  max-width: 38ch;
  margin: 28px 0 0;
  color: #695d59;
  font-size: var(--fs-body);
  line-height: 1.7;
}

.closing-cta__action {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(30px, 4vw, 48px);
}

.closing-cta__button {
  align-self: stretch;
  justify-content: center;
  min-height: 58px;
  color: var(--on-gold);
  background: var(--ramp-3);
  border-color: #ffb236;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.closing-cta__button:hover,
.closing-cta__button:focus-visible {
  color: var(--on-gold);
  background: var(--ramp-h3);
  border-color: #ffb236;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 12px 26px -18px rgba(255, 178, 54, 0.85);
}

.closing-cta__response {
  margin: 18px 0 0;
  color: #ffb236;
  font-size: var(--fs-h6);
  line-height: 1.5;
  text-align: center;
}

.closing-cta__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: auto 0 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(244, 245, 239, 0.2);
  list-style: none;
}

.closing-cta__steps li {
  min-width: 0;
  padding-inline: 10px;
  color: #bbbbbb;
  font-size: var(--fs-nano);
  font-weight: 600;
  letter-spacing: 0.11em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.closing-cta__steps li + li {
  border-left: 1px solid rgba(244, 245, 239, 0.2);
}

.closing-cta__steps span {
  color: var(--gold-bright);
}

@media (max-width: 1180px) and (min-width: 981px) {
  .service-layout .cards-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .blog-layout,
  .reading-layout {
    grid-template-columns: 1fr;
  }

  .blog-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aside-cta {
    grid-column: 1 / -1;
  }

  .service-layout .closing-cta {
    grid-template-columns: minmax(0, 1.15fr) minmax(270px, 0.85fr);
  }
}

@media (max-width: 720px) {
  .service-layout .closing-cta {
    grid-template-columns: 1fr;
  }

  .closing-cta__message {
    min-height: 0;
    padding: clamp(28px, 8vw, 42px);
  }

  .closing-cta__message h2 {
    max-width: 16ch;
    font-size: var(--fs-h1);
  }

  .closing-cta__action {
    min-height: 250px;
    padding: clamp(28px, 8vw, 42px);
  }
}

@media (max-width: 620px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-aside {
    grid-template-columns: 1fr;
  }

  .service-layout .steps,
  .service-layout .cards-grid--3 {
    grid-template-columns: 1fr;
  }

  .closing-cta__steps li {
    padding-inline: 6px;
    font-size: var(--fs-tiny);
    letter-spacing: 0.08em;
  }
}

/* ---------- Glossary ---------- */

.glossary {
  display: grid;
  gap: 20px;
}

/* Sidebar layout: A–Z stays on top, filters live in a sticky right rail. */
.glossary__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}
.glossary__main {
  min-width: 0;
  display: grid;
  gap: 18px;
  align-content: start;
}
.glossary__side {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  display: grid;
  gap: 18px;
  align-content: start;
}
.glossary__side-group {
  display: grid;
  gap: 10px;
}
.glossary__side-label {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--muted);
}
/* The moved controls adapt to the narrow rail. */
.glossary__side .glossary__search {
  flex: none;
  min-width: 0;
}
.glossary__side .glossary__cats {
  flex-direction: column;
  gap: 6px;
}
.glossary__side .glossary__cat {
  text-align: left;
}
.glossary__side .glossary__views {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
}
.glossary__side .glossary__view {
  justify-content: center;
  padding: 9px 8px;
}
.glossary__side .glossary__view-label {
  display: none;
}
@media (max-width: 900px) {
  .glossary__layout {
    grid-template-columns: 1fr;
  }
  .glossary__side {
    position: static;
    order: -1;
  }
  /* One row instead of three: the six chips total ~633px against a ~335px
     column, so the row scrolls sideways in its own container rather than
     wrapping. The page itself never scrolls horizontally. */
  .glossary__side .glossary__cats {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    /* Room for the chip focus ring, which would otherwise be clipped. */
    padding: 3px 0 6px;
    scrollbar-width: none;
  }

  .glossary__side .glossary__cats::-webkit-scrollbar {
    display: none;
  }

  .glossary__side .glossary__cat {
    flex: none;
    scroll-snap-align: start;
  }

  .glossary__side .glossary__view-label {
    display: inline;
  }
}

/* Toolbar: search + view toggle */
.glossary__toolbar {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.glossary__search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 340px;
  min-width: 240px;
}

.glossary__search > svg:first-child {
  position: absolute;
  left: 17px;
  color: var(--muted);
  pointer-events: none;
}

.glossary__search input {
  width: 100%;
  height: 52px;
  padding: 0 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--fs-h5);
  font-family: inherit;
  box-shadow: var(--shadow-sm);
  transition:
    border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.glossary__search input::placeholder {
  color: var(--muted);
}

.glossary__search input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--gold) 55%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 13%, transparent);
}

.glossary__search-clear {
  position: absolute;
  right: 12px;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  color: var(--muted);
  background: var(--bg-alt);
  transition: color var(--dur-fast) var(--ease);
}

.glossary__search-clear:hover {
  color: var(--gold-deep);
}

.glossary__views {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
}

.glossary__view {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  cursor: pointer;
  font-size: var(--fs-h6);
  font-weight: 600;
  color: var(--muted);
  opacity: 0.85;
  transition: all var(--dur-fast) var(--ease);
}

.glossary__view:hover:not(.is-active) {
  color: var(--ink);
  opacity: 1;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}

.glossary__view.is-active {
  background: var(--surface);
  color: var(--gold-deep);
  opacity: 1;
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.3);
}

/* Category chips */
.glossary__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.glossary__cat {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: var(--fs-h6);
  font-weight: 600;
  color: var(--ink-soft);
  transition: all var(--dur-fast) var(--ease);
}

.glossary__cat:hover {
  border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
  color: var(--gold-deep);
}

.glossary__cat.is-active {
  background: var(--grad-gold);
  border-color: transparent;
  color: var(--on-gold);
  box-shadow: 0 8px 20px -12px color-mix(in srgb, var(--gold) 70%, transparent);
}

/* A–Z index */
.glossary__az {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 14px 0;
  border-block: 1px solid var(--line);
}

.glossary__letter {
  min-width: 30px;
  height: 30px;
  padding: 0 4px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-size: var(--fs-h6);
  font-weight: 600;
  color: var(--muted);
  transition: all var(--dur-fast) var(--ease);
}

.glossary__letter:hover:not(:disabled) {
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.glossary__letter.is-active {
  background: var(--grad-gold);
  color: var(--on-gold);
  box-shadow: 0 6px 16px -9px color-mix(in srgb, var(--gold) 65%, transparent);
}

.glossary__letter:disabled {
  opacity: 0.25;
  cursor: default;
}

/* Meta row */
.glossary__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--fs-sm);
  color: var(--muted);
}

.glossary__meta strong {
  color: var(--ink);
  font-weight: 700;
}

.glossary__clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: var(--fs-h6);
  cursor: pointer;
  transition:
    color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease);
}

.glossary__clear svg {
  opacity: 0.7;
}

.glossary__clear:hover {
  color: var(--gold-deep);
  border-color: color-mix(in srgb, var(--gold) 42%, var(--line));
  background: var(--gold-soft);
  text-decoration: none;
}

/* Layouts */
.glossary__list {
  display: grid;
  gap: 14px;
}

/* List rows read as a two-column reference entry: term on the left, the full
   definition filling the right — so the row uses its full width, no blank gap. */
.glossary__list .glossary-term {
  display: grid;
  grid-template-columns: minmax(200px, 264px) minmax(0, 1fr);
  column-gap: clamp(24px, 3.2vw, 52px);
  row-gap: 8px;
  align-items: start;
}

.glossary__list .glossary-term__cats {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}

.glossary__list .glossary-term__title {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
}

.glossary__list .glossary__prose {
  grid-column: 2;
  grid-row: 1 / span 2;
  max-width: none;
}

@media (max-width: 700px) {
  .glossary__list .glossary-term {
    grid-template-columns: 1fr;
  }

  .glossary__list .glossary-term__cats,
  .glossary__list .glossary-term__title,
  .glossary__list .glossary__prose {
    grid-column: 1;
    grid-row: auto;
  }
}

.glossary__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* Term card — a refined reference entry */
.glossary-term {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(20px, 2vw, 26px);
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

/* Oversized, faded first letter — a fine-dictionary flourish behind the text. */
.glossary-term::after {
  content: attr(data-letter);
  position: absolute;
  right: 8px;
  bottom: -30px;
  z-index: -1;
  font-size: 132px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: color-mix(in srgb, var(--gold) 7%, transparent);
  pointer-events: none;
  user-select: none;
}

.glossary-term:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--gold) 32%, var(--line));
  box-shadow:
    var(--shadow-card),
    inset 0 2px 0 0 var(--gold);
}

.glossary-term:hover::after {
  color: color-mix(in srgb, var(--gold) 11%, transparent);
}

.glossary-term__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 13px;
}

.glossary-term__badge {
  display: inline-block;
  font-size: var(--fs-nano);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 4px 11px;
  border: 1px solid color-mix(in srgb, var(--gold) 26%, var(--line));
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--gold-deep);
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}

.glossary-term__badge:hover {
  background: var(--gold-soft);
  border-color: color-mix(in srgb, var(--gold) 42%, var(--line));
  text-decoration: none;
}

.glossary-term__title {
  font-size: var(--fs-h3);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.glossary-term__title a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  transition: color var(--dur-fast) var(--ease);
}

.glossary-term__title a:hover {
  color: var(--gold-deep);
  text-decoration: none;
}

.glossary-term__arrow {
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-5px);
  color: var(--gold);
  transition:
    opacity var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.glossary-term:hover .glossary-term__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Compact: link to the full term page */
.glossary__readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: var(--fs-h6);
  font-weight: 600;
  color: var(--gold-deep);
}

.glossary__readmore svg {
  transition: transform var(--dur-fast) var(--ease);
}

.glossary__readmore:hover {
  text-decoration: none;
}

.glossary__readmore:hover svg {
  transform: translateX(3px);
}

/* Related terms (term page) */
.glossary-related {
  margin-top: clamp(28px, 4vw, 40px);
  padding-top: clamp(22px, 3vw, 30px);
  border-top: 1px solid var(--line);
}

.glossary-related__title {
  font-size: var(--fs-h6);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin: 0 0 14px;
}

.glossary-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 900px) {
  .glossary-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .glossary-related__grid {
    grid-template-columns: 1fr;
  }
}

.glossary-term__excerpt {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Definition prose inside a term */
.glossary__prose {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}

.glossary__prose h3 {
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--gold-deep);
  margin: 1.3em 0 0.5em;
}

.glossary__prose > :first-child {
  margin-top: 0;
}

.glossary__prose p:last-child,
.glossary__prose ul:last-child {
  margin-bottom: 0;
}

/* Compact accordion */
.glossary__compact {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.glossary__compact > li {
  border-bottom: 1px solid var(--line);
}

.glossary__compact summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 6px;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

.glossary__compact summary::-webkit-details-marker {
  display: none;
}

.glossary__compact-term {
  flex: 1;
  font-weight: 600;
  color: var(--ink);
  font-size: var(--fs-h5);
}

.glossary__compact summary:hover .glossary__compact-term {
  color: var(--gold-deep);
}

.glossary__compact-cat {
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.glossary__compact summary::after {
  content: '';
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease);
}

.glossary__compact details[open] summary::after {
  transform: rotate(-135deg);
  border-color: var(--gold-deep);
}

.glossary__compact details[open] .glossary__compact-term {
  color: var(--gold-deep);
}

.glossary__compact-body {
  padding: 0 6px 16px;
  animation: office-reveal var(--dur) var(--ease) both;
}

/* Empty state */
.glossary__empty {
  display: grid;
  place-items: center;
  gap: 16px;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

@media (max-width: 560px) {
  .glossary__view-label {
    display: none;
  }

  /* Icon-only buttons leave the pill floating at ~161px against a full-width
     search and filter. Three equal segments across the row instead, so the
     toolbar reads as one stack and each control is an easier tap target. */
  .glossary__views {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }

  .glossary__view {
    justify-content: center;
  }
}

/* ---------- HTML sitemap (grouped, 2026) ---------- */

.sitemap-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
  margin-bottom: clamp(26px, 4vw, 42px);
}
.sitemap-stat {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(
    155deg,
    var(--surface),
    color-mix(in srgb, var(--gold-soft) 42%, var(--surface))
  );
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.28s var(--ease),
    box-shadow 0.28s var(--ease),
    border-color 0.28s var(--ease);
}
.sitemap-stat:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--gold) 40%, var(--line));
  box-shadow: 0 22px 44px -28px rgba(140, 28, 34, 0.5);
}
.sitemap-stat__ic {
  position: absolute;
  top: 14px;
  right: 14px;
  color: color-mix(in srgb, var(--gold) 40%, transparent);
}
.sitemap-stat__ic svg {
  width: 30px;
  height: 30px;
}
.sitemap-stat__num {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--gold-deep);
}
.sitemap-stat__label {
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.sitemap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 24px);
  align-items: stretch;
}
/* Long lists (Pages) flow into two columns so the top row stays balanced. */
.sitemap-card--cols .sitemap-links {
  columns: 2;
  column-gap: 22px;
}
.sitemap-card {
  position: relative;
  overflow: hidden;
  padding: 22px 22px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  animation: sm-rise 0.5s both;
  animation-delay: calc(var(--gi, 0) * 90ms);
  transition:
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.sitemap-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold-deep));
}
.sitemap-card:hover {
  border-color: color-mix(in srgb, var(--gold) 30%, var(--line));
  box-shadow: 0 20px 44px -30px rgba(140, 28, 34, 0.4);
}
.sitemap-card--wide {
  grid-column: 1 / -1;
}
.sitemap-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.sitemap-card__ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold-deep);
}
.sitemap-card__ic svg {
  width: 20px;
  height: 20px;
}
.sitemap-card__head h2 {
  flex: 1;
  margin: 0;
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--ink);
}
.sitemap-card__count {
  flex: none;
  min-width: 26px;
  height: 24px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--gold-deep);
  color: #fff;
  font-size: var(--fs-caption);
  font-weight: 700;
}
.sitemap-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sitemap-card--wide .sitemap-links {
  columns: 2;
  column-gap: 26px;
}
.sitemap-links li {
  break-inside: avoid;
}
.sitemap-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 9px;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  text-decoration: none;
  transition:
    background-color 0.16s var(--ease),
    color 0.16s var(--ease),
    padding 0.16s var(--ease);
}
.sitemap-links__dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--gold) 55%, var(--line-strong));
  transition:
    transform 0.16s var(--ease),
    background-color 0.16s var(--ease);
}
.sitemap-links__label {
  flex: 1;
}
/* Nested sub-services sit indented under their parent, with a lighter dot. */
.sitemap-links li.is-child {
  margin-left: 18px;
}
.sitemap-links li.is-child .sitemap-links__dot {
  width: 5px;
  height: 5px;
  background: color-mix(in srgb, var(--gold) 32%, var(--line-strong));
}
.sitemap-links li.is-child .sitemap-links__label {
  color: var(--muted);
  font-size: var(--fs-h6);
}
.sitemap-links__go {
  flex: none;
  color: var(--gold-deep);
  font-weight: 700;
  opacity: 0;
  transform: translateX(-5px);
  transition:
    opacity 0.16s var(--ease),
    transform 0.16s var(--ease);
}
.sitemap-links a:hover {
  background: var(--gold-soft);
  color: var(--gold-deep);
  padding-left: 13px;
}
.sitemap-links a:hover .sitemap-links__dot {
  transform: scale(1.5);
  background: var(--gold-deep);
}
.sitemap-links a:hover .sitemap-links__go {
  opacity: 1;
  transform: none;
}
@keyframes sm-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 720px) {
  .sitemap-grid {
    grid-template-columns: 1fr;
  }
  .sitemap-card--cols .sitemap-links {
    columns: 1;
  }
}
@media (max-width: 640px) {
  .sitemap-card--wide .sitemap-links {
    columns: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sitemap-card {
    animation: none;
  }
}

/* ---------- Portfolio filter ---------- */

/* Editorial underline tab bar: labels on a hairline, a gold underline slides
   to the selected tab, which also gets a soft gold wash rising from the base. */
.glass-pill {
  position: relative;
  display: flex;
  width: 100%;
  border-bottom: 1px solid var(--line);
}

.glass-pill__thumb {
  position: absolute;
  bottom: -1px;
  height: 2.5px;
  border-radius: 3px 3px 0 0;
  background: var(--grad-gold);
  box-shadow: 0 0 12px -1px color-mix(in srgb, var(--gold) 60%, transparent);
  transition:
    left var(--dur) var(--ease),
    width var(--dur) var(--ease);
  pointer-events: none;
}

.glass-pill__opt {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 12px;
  border: 0;
  background: none;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition:
    color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease);
}

/* Every non-selected tab shares one muted colour; hover darkens uniformly. */
.glass-pill__opt:hover:not(.is-under) {
  color: var(--ink);
}

/* The selected tab: gold label over a soft gold wash from the underline. */
.glass-pill__opt.is-under {
  color: var(--gold-deep);
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--gold-soft) 75%, transparent),
    transparent 72%
  );
}

.portfolio-filter {
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
}

/* Premium segmented filter shared by Testimonials and Our Work. */
.premium-filter {
  display: flex;
  justify-content: center;
  overflow: visible;
  padding-bottom: 0;
}

/* Real frosted glass, iOS segmented-control style: the track refracts what sits
   behind it rather than painting a solid tint, and the selected capsule is a
   brighter pane lifted off that surface by its own shadow. */
.premium-filter .glass-pill {
  isolation: isolate;
  width: 100%;
  padding: 5px;
  overflow: hidden;
  /* --glass-* are already defined for light, dark and auto themes, so the panel
     follows the theme without a second hand-written dark block. */
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--glass-rim), transparent 62%), var(--glass-bg);
  /* saturate() is what stops blurred backdrops going flat and grey. */
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  box-shadow:
    0 18px 40px -28px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 var(--glass-rim);
}

.premium-filter .glass-pill__thumb {
  top: 5px;
  bottom: 5px;
  height: auto;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--gold) 26%, var(--glass-rim));
  border-radius: var(--radius-pill);
  /* More opaque than the track so it reads as a nearer, brighter pane — and it
     inverts correctly in dark mode because both tokens flip. */
  background:
    linear-gradient(180deg, var(--glass-rim), transparent 58%),
    color-mix(in srgb, var(--surface) 82%, var(--gold-soft));
  -webkit-backdrop-filter: blur(10px) saturate(200%) brightness(1.06);
  backdrop-filter: blur(10px) saturate(200%) brightness(1.06);
  /* Two shadows read as thickness: a tight contact line plus a soft cast. */
  box-shadow:
    0 1px 2px rgba(20, 20, 22, 0.16),
    0 10px 20px -10px rgba(20, 20, 22, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -8px 14px -10px color-mix(in srgb, var(--gold) 55%, transparent);
  /* A gentle spring rather than a linear glide — the overshoot is what makes it
     feel like iOS. Width eases without overshoot so the capsule never wobbles. */
  transition:
    left 480ms cubic-bezier(0.34, 1.32, 0.44, 1),
    width 380ms cubic-bezier(0.32, 0.9, 0.3, 1);
}

/* Specular glint across the capsule, brightest at the top-left. */
.premium-filter .glass-pill__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.62) 0%,
    rgba(255, 255, 255, 0.12) 34%,
    transparent 58%
  );
  pointer-events: none;
}

.premium-filter .glass-pill__opt {
  min-height: 42px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-h6);
  letter-spacing: 0.02em;
}

.premium-filter .glass-pill__opt:hover:not(.is-under) {
  color: var(--gold-deep);
  background: color-mix(in srgb, var(--gold-soft) 46%, transparent);
}

/* The capsule is now light glass, not a solid gold slab, so the selected label
   flips from on-gold to deep gold to keep its contrast. */
.premium-filter .glass-pill__opt.is-under {
  color: var(--gold-deep);
  background: transparent;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

@media (prefers-reduced-motion: reduce) {
  .premium-filter .glass-pill__thumb {
    transition: none;
  }
}

/* Dark mode only needs the label and its highlight adjusting — the glass itself
   follows the --glass-* tokens. Both theme states are covered, since `auto` is
   the default and never matches [data-theme='dark']. */
:root[data-theme='dark'] .premium-filter .glass-pill__opt.is-under {
  color: var(--gold-bright);
  text-shadow: none;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme='auto'] .premium-filter .glass-pill__opt.is-under {
    color: var(--gold-bright);
    text-shadow: none;
  }
}

@media (max-width: 900px) {
  .portfolio-industry-filter {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }

  .portfolio-industry-filter .glass-pill {
    min-width: 900px;
  }
}

.portfolio-count {
  margin-top: 18px;
  font-size: var(--fs-h6);
  color: var(--muted);
}

/* ---- Portfolio toolbar: search + view toggle ---- */
.portfolio-toolbar {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.portfolio-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 340px;
  min-width: 240px;
}

.portfolio-search > svg:first-child {
  position: absolute;
  left: 17px;
  color: var(--muted);
  pointer-events: none;
}

.portfolio-search input {
  width: 100%;
  height: 52px;
  padding: 0 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--fs-h5);
  font-family: inherit;
  box-shadow: var(--shadow-sm);
  transition:
    border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.portfolio-search input::placeholder {
  color: var(--muted);
}

.portfolio-search input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--gold) 55%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 13%, transparent);
}

.portfolio-search__clear {
  position: absolute;
  right: 12px;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: var(--bg-alt);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease);
}

.portfolio-search__clear:hover {
  color: var(--gold-deep);
}

.portfolio-views {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
}

.portfolio-view {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  cursor: pointer;
  font-size: var(--fs-h6);
  font-weight: 600;
  color: var(--muted);
  opacity: 0.85;
  transition: all var(--dur-fast) var(--ease);
}

.portfolio-view:hover:not(.is-active) {
  color: var(--ink);
  opacity: 1;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}

.portfolio-view.is-active {
  background: var(--surface);
  color: var(--gold-deep);
  opacity: 1;
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.3);
}

/* ---- Portfolio: list view ---- */
.portfolio-list {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.portfolio-list__item {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 32px);
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.portfolio-list__item:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--gold) 30%, var(--line));
  box-shadow: var(--shadow-card);
  text-decoration: none;
}

.portfolio-list__media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}

.portfolio-list__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.portfolio-list__item:hover .portfolio-list__media img {
  transform: scale(1.05);
}

.portfolio-list__body {
  min-width: 0;
}

.portfolio-list__body h3 {
  font-size: var(--fs-h4);
  margin: 0 0 6px;
  color: var(--ink);
}

.portfolio-list__body p {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portfolio-list__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.portfolio-tag {
  font-size: var(--fs-nano);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--gold) 26%, var(--line));
  color: var(--gold-deep);
}

.portfolio-list__cue {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-size: var(--fs-h6);
  font-weight: 600;
  color: var(--gold-deep);
}

.portfolio-list__item:hover .portfolio-list__cue svg,
.portfolio-compact__item:hover svg {
  transform: translateX(3px);
}

.portfolio-list__cue svg,
.portfolio-compact__item svg {
  transition: transform var(--dur-fast) var(--ease);
}

/* ---- Portfolio: compact view ---- */
.portfolio-compact {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.portfolio-compact > li {
  border-bottom: 1px solid var(--line);
}

.portfolio-compact__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 8px;
  color: var(--ink);
}

.portfolio-compact__item:hover {
  text-decoration: none;
  background: var(--bg-alt);
}

.portfolio-compact__title {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-h5);
  font-weight: 600;
}

.portfolio-compact__item:hover .portfolio-compact__title {
  color: var(--gold-deep);
}

.portfolio-compact__meta {
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}

.portfolio-compact__item svg {
  color: var(--gold);
  flex-shrink: 0;
}

.portfolio-empty {
  display: grid;
  place-items: center;
  gap: 16px;
  text-align: center;
  padding: 56px 20px;
  color: var(--muted);
}

@media (max-width: 560px) {
  .portfolio-view__label {
    display: none;
  }

  /* Same treatment as the blog/glossary toggles: icon-only buttons leave the
     pill stranded at ~160px, so the three views split the row evenly. */
  .portfolio-views {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }

  .portfolio-view {
    justify-content: center;
  }

  .portfolio-list__item {
    grid-template-columns: 1fr;
  }
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--grad-deep-band);
  color: var(--deep-ink);
  border-radius: clamp(18px, 3vw, 28px);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
}

.cta-band h2 {
  color: #fff;
  font-size: var(--fs-h1);
  margin-bottom: 14px;
}

.cta-band p {
  color: var(--deep-muted);
  max-width: 54ch;
  margin: 0 auto 28px;
  font-size: var(--fs-h4);
}

/* ---------- Header — floating pill bar (ev-cambodia style) ---------- */

.site-header {
  position: fixed;
  top: var(--ann-h, 0);
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  padding-top: clamp(10px, 1.4vw, 16px);
  transition: padding-top var(--dur) var(--ease);
}

/* Announcement bar sits above the header; its height is --ann-h (set in the
   layout when active) so the header + content shift down to make room. */
#main {
  padding-top: var(--ann-h, 0);
}
.ann-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 55;
  height: var(--ann-h, 42px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 44px;
  /*
   * Ink on gold, in fixed colours.
   *
   * This was white on `--gold-deep → --gold → --gold-bright`, and every one of
   * those three flips between light and dark. In dark mode the ramp inverts to
   * pale gold and the white text lands on it at about 1.6:1 — invisible. Even
   * in light mode the right-hand end (#e7c27a) was carrying white at 1.7:1.
   *
   * The bar is a fixed surface, so it takes fixed colours: the ramp held
   * light in both modes, and `--on-gold`, which does not flip either. Darkest
   * stop against the ink measures 5.7:1.
   */
  color: var(--on-gold);
  background: linear-gradient(90deg, var(--ramp-1), var(--ramp-2) 55%, var(--ramp-3));
  box-shadow: 0 2px 12px -6px rgba(0, 0, 0, 0.45);
}
.ann-bar__text {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-h6);
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
}
.ann-bar__msg {
  overflow: hidden;
  text-overflow: ellipsis;
}
.ann-bar__link {
  flex: none;
  color: var(--on-gold);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.45);
  padding-bottom: 1px;
  transition: border-color 0.15s;
}
.ann-bar__link:hover {
  border-bottom-color: var(--on-gold);
}
/* On scroll the whole header docks a touch tighter */
.site-header.is-scrolled {
  padding-top: clamp(6px, 1vw, 10px);
}

/* The white capsule that floats on the page */
.site-header__bar {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.28);
  padding: 9px 9px 9px clamp(16px, 2vw, 26px);
  min-height: 62px;
  transition:
    box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    min-height var(--dur) var(--ease),
    backdrop-filter var(--dur) var(--ease);
}

/* Stuck: clear frosted-glass bar at ~80% so the page glides beneath it */
.site-header.is-scrolled .site-header__bar {
  min-height: 56px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  backdrop-filter: blur(20px) saturate(1.8);
  border-color: color-mix(in srgb, var(--gold) 22%, var(--line));
  box-shadow:
    0 16px 40px -18px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.site-header__logo {
  flex: none;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Luxury sheen: a soft diagonal glint sweeps across the logo every 3s. */
.site-header__logo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.15) 46%,
    rgba(255, 255, 255, 0.65) 50%,
    rgba(255, 255, 255, 0.15) 54%,
    transparent 62%
  );
  transform: translateX(-160%);
  animation: logo-sheen 6s ease-in-out infinite;
}
@keyframes logo-sheen {
  0% {
    transform: translateX(-160%);
  }
  /* slow sweep (~1.5s), then rest until the 6s cycle repeats */
  25%,
  100% {
    transform: translateX(160%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-header__logo::after {
    animation: none;
    display: none;
  }
}

.site-header__logo-img {
  width: auto;
  height: clamp(34px, 3.4vw, 41px);
  max-height: 100%;
}
/* Two variants live in the DOM; the theme decides which one shows. Light is
   visible by default; the dark variant is revealed under a dark theme. */
.site-header__logo-img--dark {
  display: none;
}

/* An unset logo falls back to the built-in white-on-transparent wordmark, which
   is tinted to ink (light) or white (dark). Custom uploads render untouched. */
.site-header__logo-img--light.is-default {
  filter: brightness(0) saturate(100%) opacity(0.9);
}
.site-header__logo-img--dark.is-default {
  filter: brightness(0) invert(1) opacity(0.92);
}

/* Dark theme: hide the light variant, show the dark one. */
:root[data-theme='dark'] .site-header__logo-img--light {
  display: none;
}
:root[data-theme='dark'] .site-header__logo-img--dark {
  display: inline-block;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme='auto'] .site-header__logo-img--light {
    display: none;
  }
  :root[data-theme='auto'] .site-header__logo-img--dark {
    display: inline-block;
  }
}

/* Dark theme: the primary button's gold flips light, so its text must go dark
   (a light-gold button with dark ink, like iOS). */
:root[data-theme='dark'] .btn--primary {
  color: var(--on-gold);
}
:root[data-theme='dark'] .btn--primary:hover {
  background: var(--gold-bright);
  color: var(--on-gold);
}
:root[data-theme='dark'] .skip-link,
:root[data-theme='dark'] .skip-link:focus-visible {
  background: var(--gold-bright);
  color: var(--on-gold);
}
@media (prefers-color-scheme: dark) {
  :root[data-theme='auto'] .btn--primary {
    color: var(--on-gold);
  }
  :root[data-theme='auto'] .btn--primary:hover {
    background: var(--gold-bright);
    color: var(--on-gold);
  }
  :root[data-theme='auto'] .skip-link,
  :root[data-theme='auto'] .skip-link:focus-visible {
    background: var(--gold-bright);
    color: var(--on-gold);
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  margin-left: clamp(10px, 2vw, 28px);
}

.site-nav__list {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.6vw, 8px);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* iOS-style segmented control: a glass pill slides under whichever tab the
   cursor is over, and settles on the current page when the cursor leaves.
   Position/width are written by JS; the slide is CSS. */
.site-nav__thumb {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  border-radius: 999px;
  /* Same frosted-glass capsule as the segmented filter, scaled for the header:
     a brighter pane over the bar rather than a flat gold fill. Tokens carry the
     theme, so dark mode smokes it without a separate block. */
  background:
    linear-gradient(180deg, var(--glass-rim), transparent 58%),
    color-mix(in srgb, var(--surface) 82%, var(--gold-soft));
  -webkit-backdrop-filter: blur(10px) saturate(200%) brightness(1.04);
  backdrop-filter: blur(10px) saturate(200%) brightness(1.04);
  /* The 1px ring stays an inset shadow, not a border, so the thumb's measured
     geometry is untouched — the component positions it from offsetLeft/Width. */
  box-shadow:
    0 1px 2px color-mix(in srgb, var(--gold-deep) 18%, transparent),
    0 6px 14px -8px color-mix(in srgb, var(--gold-deep) 30%, transparent),
    inset 0 1px 0 var(--glass-rim),
    inset 0 0 0 1px color-mix(in srgb, var(--gold) 26%, transparent),
    inset 0 -6px 12px -9px color-mix(in srgb, var(--gold) 48%, transparent);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  /* Motion deliberately unchanged — the slide keeps its existing timing. */
  transition:
    left var(--dur) var(--ease),
    width var(--dur) var(--ease),
    opacity var(--dur-fast) var(--ease);
}

/* Specular glint, matching the filter capsule. */
.site-nav__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    115deg,
    color-mix(in srgb, var(--glass-rim) 90%, transparent) 0%,
    transparent 52%
  );
  pointer-events: none;
}

.site-nav__list > li > a,
.site-nav__list > li > button {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-size: var(--fs-nav);
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  background: none;
  border: 0;
  padding: 9px clamp(10px, 0.9vw, 14px);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--dur-fast) var(--ease);
}

.site-nav__list > li > a:hover,
.site-nav__list > li > button:hover,
.site-nav__list > li > a:focus-visible,
.site-nav__list > li > button:focus-visible {
  color: var(--gold-deep);
  text-decoration: none;
}

/* No underline for the main menu — the glass pill is the active indicator.
   The dropdown triggers are <button>s marked aria-current="true" when the route
   is inside their section, so they colour the same as a current link. */
.site-nav__list > li > a[aria-current='page'],
.site-nav__list > li > button[aria-current='true'] {
  color: var(--gold-deep);
}

/* Client Portal is a circular icon on desktop; hide the text nav item there. */
.site-nav__portal-item {
  display: none;
}

/* ---- Actions cluster: gradient CTA pill + circular portal icon ---- */

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.cta-pill {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  /* Same luxury treatment as .btn--primary: gradient fill + thin gold border. */
  border: 1.5px solid transparent;
  color: var(--on-gold);
  font-weight: 600;
  font-size: var(--fs-h5);
  --pill-badge: 30px;
  --pill-gap: 6px;
  /*
   * A ramp held light, because the label is ink.
   *
   * The shared gold gradient ends at #9a672d, and ink on that is 3.49:1 —
   * under the 4.5 a body-size label needs, which is why this button was hard
   * to read at its right-hand end in both modes. Ending at #c88934 instead
   * puts the worst point at 5.68:1 and the best at 13.4:1. Fixed hex rather
   * than tokens: this pill sits on a white bar in light mode and a dark one in
   * dark, so it has to hold the same value in both.
   */
  background:
    linear-gradient(135deg, var(--ramp-1) 0%, var(--ramp-2) 48%, var(--ramp-3) 100%) padding-box,
    linear-gradient(
        135deg,
        rgba(244, 245, 239, 0.95),
        rgba(244, 245, 239, 0.3) 50%,
        rgba(255, 255, 255, 0.4) 100%
      )
      border-box;
  padding: 8px calc(var(--pill-badge) + var(--pill-gap) + 10px) 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  transition:
    transform var(--dur-fast) var(--ease),
    padding var(--dur-swap) var(--ease-swap);
}

/* Same swap as the primary button: the paddings trade places while the badge
   crosses the pill. */
.cta-pill:hover,
.cta-pill:focus-visible {
  padding-left: calc(var(--pill-badge) + var(--pill-gap) + 10px);
  padding-right: 18px;
}

.cta-pill__label {
  position: relative;
  z-index: 2;
}

/* diagonal light sweep, above the fill and below the label */
.cta-pill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -125%;
  width: 55%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s var(--ease);
  pointer-events: none;
}

.cta-pill:hover {
  transform: translateY(-1px);
  color: var(--on-gold);
  text-decoration: none;
}

.cta-pill:hover::before {
  left: 135%;
}

@media (prefers-reduced-motion: reduce) {
  .cta-pill::before {
    transition: none;
  }
}

/* On the lighter pill the disc goes the other way — ink with a bright gold
   arrow — because a white disc on champagne is two pale things touching. */
.cta-pill__badge {
  position: absolute;
  top: 50%;
  right: var(--pill-gap);
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--pill-badge);
  height: var(--pill-badge);
  border-radius: 50%;
  background: #000000;
  color: #ffb236;
  box-shadow: 0 2px 8px -5px rgba(0, 0, 0, 0.55);
  transform: translateY(-50%);
  transition:
    right var(--dur-swap) var(--ease-swap),
    transform var(--dur-swap) var(--ease-swap),
    background-color var(--dur-swap) var(--ease-swap),
    color var(--dur-swap) var(--ease-swap);
}

.cta-pill:hover .cta-pill__badge,
.cta-pill:focus-visible .cta-pill__badge {
  right: calc(100% - var(--pill-badge) - var(--pill-gap));
  transform: translateY(-50%) rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
  .cta-pill,
  .cta-pill__badge {
    transition: none;
  }

  .cta-pill:hover .cta-pill__badge,
  .cta-pill:focus-visible .cta-pill__badge {
    transform: translateY(-50%);
  }
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: var(--surface);
  transition:
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease);
}

.icon-btn:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
  background: var(--gold-soft);
  text-decoration: none;
}

/* ---- Theme switcher (light / dark / auto) ---- */

.theme-toggle {
  position: relative;
}

.theme-toggle__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
  /* No overflow: hidden — the hover ring below deliberately sits a few
     pixels outside the circle, and clipping it here would clip that too. */
  transition:
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.theme-toggle__btn:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
  background: var(--gold-soft);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 14%, transparent);
}

/* The button's own little sky — a faint tint of whichever mode is live, so
   the switch reads at a glance even before the glyph registers. Light stays
   the plain surface (it's the default look everywhere else on the header),
   dark warms toward the burgundy the site already uses for night surfaces,
   auto gets both as a sweep so it visibly reads as "a bit of each". */
.theme-toggle__btn[data-mode='dark'] {
  background: linear-gradient(
    155deg,
    color-mix(in srgb, var(--brand-burgundy-mid) 38%, var(--surface)),
    var(--surface) 75%
  );
}

.theme-toggle__btn[data-mode='auto'] {
  background: conic-gradient(
    from 210deg,
    color-mix(in srgb, var(--gold-soft) 65%, var(--surface)) 0deg,
    color-mix(in srgb, var(--brand-burgundy-mid) 30%, var(--surface)) 180deg,
    color-mix(in srgb, var(--gold-soft) 65%, var(--surface)) 360deg
  );
}

/* A hairline ring that only exists on hover/open — a spark of motion rather
   than a permanent spinner. Built as a conic-gradient masked down to its own
   border so it reads as a ring, not a filled disc, and the exclude composite
   is what turns the disc into a hairline. */
.theme-toggle__ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  padding: 1.5px;
  background: conic-gradient(
    from 0deg,
    var(--gold) 0%,
    transparent 30%,
    var(--gold) 55%,
    transparent 85%,
    var(--gold) 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  animation: theme-orbit 5s linear infinite;
  animation-play-state: paused;
  transition: opacity var(--dur-fast) var(--ease);
  pointer-events: none;
}

.theme-toggle__btn:hover .theme-toggle__ring,
.theme-toggle__btn[aria-expanded='true'] .theme-toggle__ring {
  opacity: 1;
  animation-play-state: running;
}

@keyframes theme-orbit {
  to {
    transform: rotate(360deg);
  }
}

/* The current-mode glyph spins-and-scales in when the theme changes */
.theme-toggle__icon {
  position: relative;
  display: grid;
  place-items: center;
  animation: theme-icon-in var(--dur) var(--ease) both;
}

@keyframes theme-icon-in {
  from {
    opacity: 0;
    transform: rotate(-90deg) scale(0.4);
  }
  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

.theme-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 60;
  width: 186px;
  padding: 7px;
  /* frosted-glass panel with a faint gold bloom in the top corner */
  background:
    radial-gradient(
      130% 90% at 100% 0%,
      color-mix(in srgb, var(--gold) 11%, transparent),
      transparent 62%
    ),
    color-mix(in srgb, var(--surface) 85%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid color-mix(in srgb, var(--gold) 20%, var(--line));
  border-radius: 16px;
  box-shadow:
    0 24px 60px -28px rgba(0, 0, 0, 0.5),
    0 2px 10px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform-origin: top right;
  animation: theme-menu-in var(--dur) var(--ease) both;
}

/* Small caret pointing up toward the toggle.

   It has to be painted with the panel's recipe, not with `--surface`. The panel
   is 85% opaque over a backdrop blur, so what you actually see is the header
   image showing through it; a solid `--surface` caret stayed pure white on top
   of that and read as a different colour — worst over a dark hero, in both
   light and dark mode.

   Clipped to the half that shows above the panel: the other half overlaps the
   panel, and two translucent layers there would stack into a denser wedge. The
   kept triangle is the top-left one, which after the 45° turn is the point —
   and its two retained edges are exactly the ones carrying the border. */
.theme-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 15px;
  width: 11px;
  height: 11px;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
  border-top: 1px solid color-mix(in srgb, var(--gold) 20%, var(--line));
  border-left: 1px solid color-mix(in srgb, var(--gold) 20%, var(--line));
  border-radius: 3px 0 0 0;
  transform: rotate(45deg);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

@keyframes theme-menu-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* The sky strip: a miniature day/night gradient with a sun/moon riding over
   it. Its resting position mirrors the live mode; hovering an item slides it
   there as a preview, entirely in CSS — the same :has()-driven hover-preview
   already used on the services comparison table, so no extra render state is
   needed just to watch a dot move. Order matters: the mode-driven rules come
   first, the :hover ones after, so hovering always wins over the resting
   state at equal specificity. */
.theme-menu__sky {
  position: relative;
  height: 38px;
  margin: -7px -7px 8px;
  border-radius: 15px 15px 0 0;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--gold-soft) 85%, transparent),
    transparent
  );
  transition: background var(--dur) var(--ease);
}

/* A scatter of stars, dormant until the sky goes dark. */
.theme-menu__sky::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.4px 1.4px at 18% 35%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 38% 65%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 62% 28%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 80% 58%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 92% 22%, #fff, transparent);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.theme-menu__sky-body {
  position: absolute;
  top: 50%;
  left: 16%;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--grad-gold);
  box-shadow: 0 0 12px 2px color-mix(in srgb, var(--gold) 55%, transparent);
  transform: translate(-50%, -50%);
  transition:
    left var(--dur) var(--ease),
    background var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.theme-menu[data-mode='dark'] .theme-menu__sky,
.theme-menu:has(.theme-menu__item:nth-of-type(2):hover) .theme-menu__sky {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--brand-burgundy-mid) 90%, black),
    color-mix(in srgb, var(--brand-burgundy-deep) 70%, transparent)
  );
}

.theme-menu[data-mode='dark'] .theme-menu__sky::after,
.theme-menu:has(.theme-menu__item:nth-of-type(2):hover) .theme-menu__sky::after {
  opacity: 0.85;
}

.theme-menu[data-mode='dark'] .theme-menu__sky-body,
.theme-menu:has(.theme-menu__item:nth-of-type(2):hover) .theme-menu__sky-body {
  left: 84%;
  background: linear-gradient(155deg, #f4f5ef, #bdbdbd);
  box-shadow: 0 0 10px 1px rgba(244, 245, 239, 0.5);
}

.theme-menu[data-mode='auto'] .theme-menu__sky,
.theme-menu:has(.theme-menu__item:nth-of-type(3):hover) .theme-menu__sky {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--gold-soft) 85%, transparent) 0%,
    color-mix(in srgb, var(--brand-burgundy-mid) 80%, black) 100%
  );
}

.theme-menu[data-mode='auto'] .theme-menu__sky::after,
.theme-menu:has(.theme-menu__item:nth-of-type(3):hover) .theme-menu__sky::after {
  opacity: 0.45;
}

.theme-menu[data-mode='auto'] .theme-menu__sky-body,
.theme-menu:has(.theme-menu__item:nth-of-type(3):hover) .theme-menu__sky-body {
  left: 50%;
  background: linear-gradient(90deg, var(--gold) 50%, #bdbdbd 50%);
}

.theme-menu:has(.theme-menu__item:nth-of-type(1):hover) .theme-menu__sky {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--gold-soft) 92%, transparent),
    color-mix(in srgb, var(--gold-bright) 30%, transparent)
  );
}

.theme-menu:has(.theme-menu__item:nth-of-type(1):hover) .theme-menu__sky::after {
  opacity: 0;
}

.theme-menu:has(.theme-menu__item:nth-of-type(1):hover) .theme-menu__sky-body {
  left: 16%;
  background: var(--grad-gold);
  box-shadow: 0 0 12px 2px color-mix(in srgb, var(--gold) 55%, transparent);
}

.theme-menu__label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px 8px;
  font-size: var(--fs-nano);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* gold hairline trailing the label */
.theme-menu__label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 45%, transparent), transparent);
}

.theme-menu__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 9px;
  border: 0;
  border-radius: 11px;
  background: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-h6);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition:
    background-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
  /* staggered pop, set per item by --i */
  animation: theme-item-in var(--dur) var(--ease) both;
  animation-delay: calc(var(--i, 0) * 45ms + 40ms);
}

@keyframes theme-item-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* the mode glyph sits in a rounded chip that lights up gold */
.theme-menu__item > svg:first-of-type {
  flex: none;
  box-sizing: border-box;
  width: 29px;
  height: 29px;
  padding: 6px;
  border-radius: 9px;
  color: var(--muted);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  transition:
    background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.theme-menu__item:hover {
  background: color-mix(in srgb, var(--ink) 5%, transparent);
}

.theme-menu__item:hover > svg:first-of-type {
  color: var(--gold-deep);
  background: var(--gold-soft);
  transform: scale(1.05);
}

.theme-menu__item[aria-checked='true'] {
  background: color-mix(in srgb, var(--gold-soft) 70%, transparent);
  color: var(--gold-deep);
  font-weight: 600;
}

.theme-menu__item[aria-checked='true'] > svg:first-of-type {
  color: var(--on-gold);
  background: var(--grad-gold);
}

.theme-menu__check {
  flex: none;
  margin-left: auto;
  color: var(--gold);
  opacity: 0;
  transform: scale(0.5);
  transition:
    opacity var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.theme-menu__item[aria-checked='true'] .theme-menu__check {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle__ring {
    animation: none;
  }
}

.caret {
  transition: transform var(--dur-fast) var(--ease);
}

.caret.is-open {
  transform: rotate(180deg);
}

.has-dropdown {
  position: relative;
}

.mega {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow:
    0 40px 90px -38px rgba(0, 0, 0, 0.46),
    0 2px 10px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transform-origin: top center;
  animation: mega-in var(--dur) var(--ease) both;
}

/* Little pointer connecting the card to the pill above it */
.mega::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  z-index: 2;
  width: 14px;
  height: 14px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--surface);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  border-radius: 3px 0 0 0;
}

@keyframes mega-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

/* ---- Services: gold feature panel + single-column list ----
   The panel is wide, so anchoring it under the (left-of-centre) trigger made it
   sprawl over the logo. Pin it centred in the viewport instead, just below the
   header bar — clear of the logo and the actions at every desktop width. */
.mega--services {
  position: fixed;
  /* The announcement bar pushes the header down, and these two panels are
     positioned against the viewport rather than against their trigger — so
     without --ann-h they open behind the header on any page showing an
     announcement. The narrow panels never had the fault: they are absolute,
     so they follow the button. */
  top: calc(var(--ann-h, 0px) + var(--header-h) + 12px);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(880px, 94vw);
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
}

/* No pointer — the centred panel is no longer tied to the trigger position. */
.mega--services::before {
  display: none;
}

.mega__feature {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(
      130% 110% at 0% 0%,
      color-mix(in srgb, var(--gold-soft) 92%, transparent),
      transparent 68%
    ),
    linear-gradient(165deg, color-mix(in srgb, var(--gold-soft) 62%, transparent), transparent 70%);
}

.mega__feature .eyebrow {
  margin: 0 0 14px;
}

.mega__feature-title {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

.mega__feature-note {
  margin: 0 0 auto;
  font-size: var(--fs-h6);
  line-height: 1.6;
  color: var(--muted);
}

.mega__feature-cta {
  align-self: flex-start;
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  background: var(--grad-gold);
  color: var(--on-gold);
  font-size: var(--fs-h6);
  font-weight: 600;
  transition: box-shadow var(--dur-fast) var(--ease);
}

.mega__feature-cta:hover {
  color: var(--on-gold);
  text-decoration: none;
  box-shadow: 0 12px 26px -12px rgba(255, 178, 54, 0.7);
}

.mega__feature-cta svg {
  transition: transform var(--dur-fast) var(--ease);
}

.mega__feature-cta:hover svg {
  transform: translateX(3px);
}

/* ---- Resources: single padded column ---- */
.mega--narrow {
  width: min(460px, 90vw);
  padding: 18px;
}

.mega__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 8px 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.mega__head .eyebrow {
  margin: 0;
}

.mega__head a {
  font-size: var(--fs-h6);
  font-weight: 600;
  color: var(--gold-deep);
}

.mega__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

.mega--services .mega__list {
  padding: 16px;
}

.mega__list > li > a {
  display: flex;
  gap: 13px;
  padding: 12px 13px;
  border-radius: 14px;
  color: var(--ink);
  transition:
    background-color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.mega__list > li > a:hover {
  background: var(--gold-soft);
  text-decoration: none;
  transform: translateY(-1px);
}

.mega__index {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--gold-soft);
  font-weight: 700;
  font-size: var(--fs-caption);
  color: var(--gold-deep);
  transition: background-color var(--dur-fast) var(--ease);
}

.mega__list > li > a:hover .mega__index {
  background: color-mix(in srgb, var(--gold) 30%, transparent);
}

.mega__list strong {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
}

.mega__list em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: var(--fs-caption);
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mega__children {
  list-style: none;
  margin: 0 0 8px 32px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.mega__children a {
  display: block;
  padding: 5px 0;
  font-size: var(--fs-caption);
  color: var(--muted);
}

.site-header__burger {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
  color: var(--ink);
  margin-left: auto;
}

.burger,
.burger::before,
.burger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition:
    transform var(--dur-fast) var(--ease),
    opacity var(--dur-fast) var(--ease);
}

.burger {
  position: relative;
}

.burger::before,
.burger::after {
  content: '';
  position: absolute;
  left: 0;
}

.burger::before {
  top: -7px;
}
.burger::after {
  top: 7px;
}

.burger.is-open {
  background: transparent;
}
.burger.is-open::before {
  transform: translateY(7px) rotate(45deg);
}
.burger.is-open::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* Full horizontal nav needs room once the labels are uppercase; below this the
   floating bar switches to the burger menu rather than squeezing/wrapping. */
@media (max-width: 1200px) {
  .site-header__bar {
    position: relative;
  }

  .site-header__burger {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    margin-left: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    box-shadow: var(--shadow-card-hover);
    max-height: calc(100dvh - var(--header-h) - 20px);
    overflow-y: auto;
  }

  .site-nav.is-open {
    display: flex;
    animation: fade-up var(--dur-fast) var(--ease) both;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  /* The sliding pill is a desktop interaction; mobile uses tinted rows. */
  .site-nav__thumb {
    display: none;
  }

  .site-nav__list > li > a,
  .site-nav__list > li > button {
    width: 100%;
    justify-content: space-between;
    padding: 13px 12px;
    font-size: var(--fs-body);
  }

  /* Full-width rows: tint the current page, no underline. */
  .site-nav__list > li > a::after,
  .site-nav__list > li > button::after {
    display: none;
  }

  .site-nav__list > li > a:hover,
  .site-nav__list > li > button:hover,
  .site-nav__list > li > a[aria-current='page'],
  .site-nav__list > li > button[aria-current='true'] {
    background: var(--gold-soft);
    border-radius: var(--radius-sm);
    color: var(--gold-deep);
  }

  /* Client Portal shows as text in the menu; the icon is redundant here. */
  .site-nav__portal-item {
    display: block;
  }

  /* Drawer copy only. Unscoped, this drew its separator rule above the bar
     cluster too — a stray line hanging over the saved-domain count. */
  .site-header__actions--drawer {
    margin: 10px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .icon-btn {
    display: none;
  }

  .cta-pill {
    flex: 1;
    justify-content: space-between;
  }

  .mega,
  .mega--narrow,
  .mega--services {
    position: static;
    transform: none;
    display: block;
    width: auto;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    background: none;
    padding: 0 0 0 12px;
    margin: 0 0 8px 12px;
    overflow: visible;
    animation: none;
  }

  .mega::before {
    display: none;
  }

  /* The feature panel and section header are desktop framing. In the mobile
     drawer they just push the actual links further down, so they are dropped
     and the menu goes straight to the navigation. */
  .mega__feature,
  .mega__head {
    display: none;
  }

  .mega--services .mega__list {
    padding: 0;
  }

  .mega__list {
    grid-template-columns: 1fr;
  }

  /* The child list keeps its own rule and a 44px indent from the desktop
     layout, and in the drawer that sits inside the .mega rule's indent as
     well — 68px gone before a sub-item's first character, which is what was
     wrapping "WordPress CMS Website Development" onto two lines. One rule is
     enough to show the nesting here; the second only cost width. */
  .mega__children {
    margin-left: 0;
    /* Matches the parent link's own padding, so a child starts exactly where
       its parent's number does. Flush at 0 the children sat 13px to the *left*
       of those numbers, which reads as outdented from the thing they belong
       to. This is the smallest indent that still reads as nested. */
    padding-left: 13px;
    border-left: 0;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--deep-bg);
  color: var(--deep-ink);
}

.site-footer a:not(.btn) {
  color: var(--deep-muted);
  transition: color var(--dur-fast) var(--ease);
}

.site-footer a:not(.btn):hover {
  color: #fff;
  text-decoration: none;
}

.footer-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--deep-line);
  background:
    linear-gradient(
        90deg,
        transparent,
        rgba(244, 245, 239, 0.5) 28%,
        rgba(244, 245, 239, 0.14) 72%,
        transparent
      )
      top left / 100% 2px no-repeat,
    var(--grad-deep-band);
}

/* fine dot matrix, fading in from the right for depth */
.footer-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.06) 1px,
    transparent 1.6px
  );
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(75deg, transparent 32%, #000 100%);
  mask-image: linear-gradient(75deg, transparent 32%, #000 100%);
  opacity: 0.75;
  pointer-events: none;
}

/* soft brand orb glowing behind the invitation */
.footer-cta::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: 50%;
  right: clamp(-160px, -7vw, -90px);
  width: min(48vw, 540px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(255, 178, 54, 0.3), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}

.footer-cta__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 5vw, 56px);
  flex-wrap: wrap;
  padding-block: clamp(34px, 4.4vw, 54px);
}

.footer-cta .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  /* Sits on the gold band — the light ink clears WCAG AA where gold does not. */
  color: var(--deep-ink);
}

.footer-cta .eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-bright), transparent);
}

.footer-cta__title {
  position: relative;
  font-size: var(--fs-h1);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 8px 0 0;
  max-width: 20ch;
  /* mostly-white headline with a warm gold glint that sweeps across it */
  background: linear-gradient(
    100deg,
    #ffffff 0%,
    #ffffff 38%,
    #ffb236 50%,
    #ffffff 62%,
    #ffffff 100%
  );
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ctaSheen 8s ease-in-out infinite;
}

@keyframes ctaSheen {
  0%,
  18% {
    background-position: 100% 0;
  }
  62%,
  100% {
    background-position: 0% 0;
  }
}

.footer-cta__actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

/* Footer CTA button: inherits the luxury .btn--primary look; only size + arrow here */
/* Padding is left to the shared rule when this button carries an icon: it is
   what swaps on hover, and a fixed value here would pin the label in place
   while the disc crossed under it. */
.footer-cta__btn {
  gap: 10px;
  padding: 12px 26px;
  font-size: var(--fs-sm);
  letter-spacing: 0.01em;
}

.footer-cta__btn.btn--primary:has(> svg) {
  padding-top: 12px;
  padding-bottom: 12px;
}

.footer-cta__btn > span {
  position: relative;
}

/* The arrow-nudge that used to live here is gone. `.footer-cta__btn:hover
   .footer-cta__btn-arrow` is 0-3-0 and beat the shared `.btn--primary:hover >
   svg` at 0-2-1, so this button wore the disc but kept the old three-pixel
   slide — the same override the hero had, in a second place. The primary
   button's own behaviour now reaches it. */

@media (prefers-reduced-motion: reduce) {
  .footer-cta__title {
    animation: none;
    background-position: 0 0;
  }
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.5fr;
  gap: clamp(24px, 3.5vw, 46px);
  padding-block: clamp(36px, 4.5vw, 58px);
}

.site-footer__wordmark {
  /* Pinned (not the shared --fs-h4 token) so the footer stays as-is. */
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 12px;
}

.site-footer__desc {
  color: var(--deep-muted);
  margin: 0 0 16px;
  font-size: var(--fs-h6);
  line-height: 1.6;
  max-width: 40ch;
}

.site-footer__trust {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: var(--track-caps);
  color: var(--gold-bright);
}

.site-footer__heading {
  font-size: var(--fs-caption);
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: var(--track-caps);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 7px;
  font-size: var(--fs-sm);
}

.site-footer__col a {
  display: inline-block;
  padding: 3px 0;
}

.office-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

/* Collapsible office card (native <details>) */
.office-card {
  position: relative;
  border: 1px solid var(--deep-line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition:
    border-color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease),
    transform 0.28s cubic-bezier(0.2, 0.8, 0.3, 1.2),
    box-shadow 0.28s var(--ease);
}
/* growing gradient accent bar on the left edge */
.office-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s var(--ease);
}
/* soft sheen that sweeps across on hover */
.office-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 40%,
    rgba(244, 245, 239, 0.12) 50%,
    transparent 60%
  );
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.office-card:hover::after {
  transform: translateX(120%);
}
.office-card:hover::before,
.office-card[open]::before {
  transform: scaleY(1);
}

.office-card:hover,
.office-card[open] {
  border-color: color-mix(in srgb, var(--gold) 42%, var(--deep-line));
}
.office-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px -22px rgba(244, 245, 239, 0.45);
}

.office-card[open] {
  background: rgba(255, 255, 255, 0.05);
}

.office-card__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

.office-card__summary::-webkit-details-marker {
  display: none;
}

.office-card__pin {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  color: var(--gold-bright);
  background: color-mix(in srgb, var(--gold) 20%, transparent);
  transition: background var(--dur-fast) var(--ease);
}

.office-card[open] .office-card__pin,
.office-card__summary:hover .office-card__pin {
  background: color-mix(in srgb, var(--gold) 34%, transparent);
}
/* map-pin gives a little bounce when you hover the card */
.office-card__summary:hover .office-card__pin {
  animation: pin-bounce 0.6s var(--ease);
}
@keyframes pin-bounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  30% {
    transform: translateY(-4px) scale(1.1);
  }
  55% {
    transform: translateY(0) scale(0.97);
  }
  78% {
    transform: translateY(-1px) scale(1.02);
  }
}
.office-card__summary:hover .office-card__chevron {
  color: var(--gold-bright);
}
@media (prefers-reduced-motion: reduce) {
  .office-card:hover {
    transform: none;
  }
  .office-card::after {
    display: none;
  }
  .office-card__summary:hover .office-card__pin {
    animation: none;
  }
}

.office-card h3 {
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: var(--track-caps);
  color: var(--gold-bright);
  margin: 0;
}

.office-card__chevron {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--deep-muted);
  transition:
    transform var(--dur) var(--ease),
    color var(--dur-fast) var(--ease);
}

.office-card[open] .office-card__chevron {
  transform: rotate(180deg);
  color: var(--gold-bright);
}

.office-card__addr {
  margin: 0;
  padding: 0 16px 14px 56px;
  font-size: var(--fs-h6);
  line-height: 1.5;
  color: var(--deep-muted);
  animation: office-reveal var(--dur) var(--ease) both;
}

/* Scoped with .office-card so it out-ranks the `.site-footer ul/li` resets and
   lines up with .office-card__addr (same 56px indent under the label). */
.office-card .office-card__direct {
  list-style: none;
  margin: 0;
  padding: 0 16px 14px 56px;
  display: grid;
  gap: 8px;
  font-size: var(--fs-h6);
  animation: office-reveal var(--dur) var(--ease) both;
}

.office-card .office-card__direct li {
  margin: 0;
  font-size: var(--fs-h6);
  line-height: 1.5;
}

.office-card .office-card__direct a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--deep-muted);
  transition: color var(--dur-fast) var(--ease);
}

.office-card__ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--gold-bright);
  opacity: 0.85;
  transition: opacity var(--dur-fast) var(--ease);
}

.office-card .office-card__direct a:hover {
  color: var(--gold-bright);
}

.office-card .office-card__direct a:hover .office-card__ico {
  opacity: 1;
}

@keyframes office-reveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Footer contact channels: premium chat + social buttons (2026) ---- */
.footer-connect {
  margin-top: 22px;
}
.footer-connect__label {
  margin: 0 0 12px;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.footer-chats,
.footer-socials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-chats li,
.footer-socials li {
  animation: fc-rise 0.5s both;
  animation-delay: calc(var(--i, 0) * 80ms);
}
@keyframes fc-rise {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Chat channels — labelled pills with an animated icon coin */
.chat-btn {
  --accent: #ffffff;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 5px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-decoration: none;
  font-size: var(--fs-h6);
  font-weight: 600;
  transition:
    transform 0.26s cubic-bezier(0.2, 0.8, 0.3, 1.3),
    border-color 0.26s,
    background-color 0.26s,
    box-shadow 0.26s,
    padding 0.34s ease;
}
/* Label is hidden (icon-only) at rest, and slides open on hover/focus. */
.chat-btn__label {
  max-width: 0;
  margin-left: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition:
    max-width 0.34s ease,
    opacity 0.24s ease,
    margin-left 0.34s ease;
}
.chat-btn:hover,
.chat-btn:focus-visible {
  padding-right: 17px;
}
.chat-btn:hover .chat-btn__label,
.chat-btn:focus-visible .chat-btn__label {
  max-width: 160px;
  margin-left: 9px;
  opacity: 1;
}
.chat-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 32%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 68%
  );
  transform: translateX(-130%);
  transition: transform 0.6s ease;
}
.chat-btn:hover::before {
  transform: translateX(130%);
}
.chat-btn__ic {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  color: #fff;
  transition:
    background-color 0.26s,
    transform 0.4s cubic-bezier(0.2, 0.8, 0.3, 1.5);
}
.chat-btn__ic svg {
  width: 17px;
  height: 17px;
}
.chat-btn__ic::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: fc-pulse 3.2s ease-out infinite;
  animation-delay: calc(var(--i, 0) * 0.5s);
}
@keyframes fc-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.22);
  }
  70%,
  100% {
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
  }
}
.chat-btn:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  box-shadow: 0 14px 30px -16px var(--accent);
}
.chat-btn:hover .chat-btn__ic {
  background: var(--accent);
  transform: scale(1.06) rotate(-6deg);
}
.chat-btn:hover .chat-btn__ic::after {
  animation: none;
}
.chat-btn--telegram {
  --accent: #ffb236;
}
.chat-btn--whatsapp {
  --accent: #25d366;
}
.chat-btn--messenger {
  --accent: #a855f7;
}
.chat-btn--messenger:hover .chat-btn__ic {
  background: linear-gradient(135deg, #a855f7, #ec4899 55%, #f97316);
}

/* Follow-us — circular icon buttons that fill with the brand colour */
.soc-btn {
  --accent: #ffffff;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  transition:
    transform 0.26s cubic-bezier(0.2, 0.8, 0.3, 1.5),
    background-color 0.26s,
    border-color 0.26s,
    box-shadow 0.26s;
}
.soc-btn svg {
  width: 19px;
  height: 19px;
}
.soc-btn:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: transparent;
  background: var(--accent);
  box-shadow: 0 14px 28px -14px var(--accent);
}
.soc-btn--facebook {
  --accent: #ffb236;
}
.soc-btn--instagram {
  --accent: #dc2743;
}
.soc-btn--instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.soc-btn--linkedin {
  --accent: #ffb236;
}
.soc-btn--youtube {
  --accent: #ff0000;
}
.soc-btn--twitter {
  --accent: #000000;
}
.soc-btn--twitter:hover {
  background: #000;
  border-color: #333;
}
.soc-btn--tiktok:hover {
  background: #000;
  border-color: #333;
  box-shadow:
    0 14px 26px -14px #ffb236,
    0 8px 20px -12px #fe2c55;
}

@media (prefers-reduced-motion: reduce) {
  .footer-chats li,
  .footer-socials li {
    animation: none;
  }
  .chat-btn__ic::after,
  .chat-btn::before {
    display: none;
  }
}

.site-footer__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--deep-line);
  padding-block: 22px;
  font-size: var(--fs-h6);
  color: var(--deep-muted);
}

.site-footer__legal p {
  margin: 0;
}

.site-footer__legal ul {
  display: flex;
  gap: 20px;
}

@media (max-width: 900px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  /* The 14px comes from the <li>, not the link — the anchor just inherits it.
     Resetting the item lets both fall back to the 13px the copyright uses. */
  .site-footer__legal ul li,
  .site-footer__legal ul a {
    font-size: inherit;
  }

  .site-footer__legal ul {
    gap: 14px;
  }
}

/* ---------- Back to top ---------- */

.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 30px);
  /* Stacked above the chat bubble, which owns the corner. This is the bubble's
     height plus a gap, so the two never touch at any width the clamp covers —
     change one and this has to change with it. */
  bottom: calc(clamp(16px, 3vw, 30px) + 46px + 16px);
  z-index: 45;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--gold-deep);
  cursor: pointer;
  opacity: 0;
  transform: translateY(22px) scale(0.6);
  pointer-events: none;
  transition:
    opacity 0.35s var(--ease),
    transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.6);
}

.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  transform: scale(1.08);
}

/* Live scroll-progress ring (conic fills clockwise as you scroll down). */
.to-top__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from -90deg,
    var(--gold-bright),
    var(--gold-deep) calc(var(--p, 0) * 360deg),
    color-mix(in srgb, var(--gold) 16%, var(--surface)) 0
  );
  box-shadow: 0 12px 26px -12px rgba(140, 28, 34, 0.55);
  transition: box-shadow 0.25s var(--ease);
}

.to-top:hover .to-top__ring {
  box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--gold) 60%, transparent);
}

/* Inner disc leaves only a thin ring of the conic showing. */
.to-top::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--surface);
}

.to-top__ship {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  color: var(--gold-deep);
}

.to-top.is-visible .to-top__ship {
  animation: rocket-bob 2.6s ease-in-out infinite;
}

.to-top:hover .to-top__ship {
  animation: rocket-shake 0.32s ease-in-out infinite;
}

.to-top.is-launching .to-top__ship {
  animation: rocket-launch 0.6s cubic-bezier(0.5, 0, 0.75, 0) forwards;
}

.to-top__flame {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 8px;
  height: 0;
  margin-top: -3px;
  border-radius: 0 0 60% 60%;
  background: linear-gradient(#ffb236, #ff7a18 70%, transparent);
  filter: blur(0.6px);
  transform: translateX(-50%);
  transition: height 0.2s var(--ease);
}

.to-top:hover .to-top__flame {
  height: 11px;
  animation: flame-flicker 0.16s infinite alternate;
}

.to-top.is-launching .to-top__flame {
  height: 20px;
  animation: flame-flicker 0.09s infinite alternate;
}

@keyframes rocket-bob {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-2px) rotate(-4deg);
  }
}

@keyframes rocket-shake {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-1px) rotate(3deg);
  }
}

@keyframes rocket-launch {
  0% {
    transform: translateY(0);
  }
  22% {
    transform: translateY(4px) scale(0.94);
  }
  100% {
    transform: translateY(-58px) scale(0.8);
    opacity: 0;
  }
}

@keyframes flame-flicker {
  from {
    opacity: 0.7;
    transform: translateX(-50%) scaleY(0.85);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scaleY(1.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  .to-top__ship,
  .to-top:hover .to-top__ship {
    animation: none;
  }
  .to-top__flame {
    display: none;
  }
}

/* ---------- Hero animation ---------- */

/* Staggered entrance on first paint (JS-gated so nothing hides without JS) */
html.js .hero__copy > *,
html.js .hero__showcase {
  animation: hero-rise var(--dur-slow) var(--ease) both;
}
html.js .hero__copy > *:nth-child(1) {
  animation-delay: 0.05s;
}
html.js .hero__copy > *:nth-child(2) {
  animation-delay: 0.14s;
}
html.js .hero__copy > *:nth-child(3) {
  animation-delay: 0.23s;
}
html.js .hero__copy > *:nth-child(4) {
  animation-delay: 0.32s;
}
html.js .hero__copy > *:nth-child(5) {
  animation-delay: 0.41s;
}
html.js .hero__showcase {
  animation-delay: 0.2s;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes hero-shimmer {
  from {
    background-position: 0% 0;
  }
  to {
    background-position: -220% 0;
  }
}

@keyframes hero-sheen {
  0% {
    background-position: 150% 0;
  }
  55%,
  100% {
    background-position: -90% 0;
  }
}

@keyframes hero-pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 55%, transparent);
  }
  70%,
  100% {
    box-shadow: 0 0 0 9px transparent;
  }
}

@keyframes hero-orb-1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(0, 26px) scale(1.06);
  }
}

@keyframes hero-orb-2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(34px, 20px) scale(1.1);
  }
}

@keyframes hero-orb-3 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-30px, 30px) scale(1.08);
  }
}

/* ---------- Scroll reveal ---------- */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

html.js .reveal {
  opacity: 0;
}

.reveal.is-inview {
  animation: fade-up var(--dur-slow) var(--ease) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}

/* ---------- Kbach divider ---------- */

.kbach {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  color: var(--gold);
}

.kbach::before,
.kbach::after {
  content: '';
  flex: 1;
  max-width: 160px;
  height: 1px;
  background: var(--line-strong);
}

/* ---------- Accessibility ---------- */

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: var(--gold-deep);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  transition: top var(--dur-fast) var(--ease);
}

.skip-link:focus-visible {
  top: 0;
  /* Left as #fff: in light mode this chip is --gold-deep, a dark brown, and
     white on it is 5.6:1. In dark mode the chip flips to --gold-bright and the
     text has to flip with it — which the theme rules below now do for the
     focused state as well as the parked one. Pinning ink here instead broke
     the light mode that was working. */
  color: #fff;
}

/* ============================================================
   Glass + gradient system (advanced-tech look)
   Overrides the base component styles above; kept in one block
   so the aesthetic is easy to tune in one place.
   ============================================================ */

/* Soft gradient light behind tinted / gold sections so the glass has depth. */
.section--tint,
.section--gold {
  position: relative;
  isolation: isolate;
}

.section--tint::before,
.section--gold::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      50% 60% at 12% 0%,
      color-mix(in srgb, var(--gold) 16%, transparent),
      transparent 60%
    ),
    radial-gradient(
      46% 60% at 92% 100%,
      color-mix(in srgb, var(--gold) 12%, transparent),
      transparent 62%
    );
}

/* ---- Glass cards ---- */
.card {
  background:
    linear-gradient(155deg, color-mix(in srgb, var(--gold-soft) 30%, transparent), transparent 62%),
    var(--glass-bg);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  backdrop-filter: blur(16px) saturate(1.25);
  border: 1px solid var(--glass-border);
  box-shadow:
    var(--shadow-sm),
    inset 0 1px 0 var(--glass-rim);
}

.card:hover {
  border-color: color-mix(in srgb, var(--gold) 55%, var(--line));
  box-shadow:
    var(--shadow-card),
    inset 0 1px 0 var(--glass-rim),
    var(--glass-glow);
}

/* ---- Stat tiles: glass + gradient numbers ---- */
.stat {
  background:
    linear-gradient(155deg, color-mix(in srgb, var(--gold-soft) 34%, transparent), transparent 60%),
    var(--glass-bg);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  backdrop-filter: blur(16px) saturate(1.25);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow:
    var(--shadow-sm),
    inset 0 1px 0 var(--glass-rim);
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.stat:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--gold) 50%, var(--line));
  box-shadow: var(--shadow-card), var(--glass-glow);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .stat__value {
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

/* ---- Compare columns: glass ---- */
.compare__col {
  border-radius: 20px;
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 1px 0 var(--glass-rim);
}

.compare__col--bad {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

.compare__col--good {
  background:
    linear-gradient(155deg, color-mix(in srgb, var(--gold-soft) 46%, transparent), transparent 60%),
    var(--glass-bg);
  border: 1px solid color-mix(in srgb, var(--gold) 42%, var(--line));
}

/* ---- Process: connected gradient timeline (fixes the 5-in-4 orphan) ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
  margin-top: 56px;
  position: relative;
}

.steps > .step,
.steps > .reveal.step {
  text-align: center;
  padding: 30px 16px 24px;
  border-radius: 20px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-rim);
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.steps > .step:hover,
.steps > .reveal.step:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--gold) 50%, var(--line));
  box-shadow: var(--glass-glow);
}

/* Gradient node connecting line across the row (behind the numbers). */
.steps::before {
  content: '';
  position: absolute;
  top: 67px;
  left: 10%;
  right: 10%;
  height: 2px;
  z-index: 0;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--gold) 55%, transparent) 12%,
    color-mix(in srgb, var(--gold) 55%, transparent) 88%,
    transparent
  );
}

/* Medallion = a conic "progress ring" that fills more with each step
   (--fill degrees, set per step in the markup), number gradient-filled inside. */
.step__medallion {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: conic-gradient(
    from -90deg,
    var(--gold-bright),
    var(--gold-deep) var(--fill, 90deg),
    color-mix(in srgb, var(--gold) 14%, var(--line)) 0
  );
  box-shadow: 0 12px 28px -12px color-mix(in srgb, var(--gold) 65%, transparent);
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.step__medallion::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--surface);
}
.step__num {
  position: relative;
  z-index: 1;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold-deep);
}
.steps > .step:hover .step__medallion,
.steps > .reveal.step:hover .step__medallion {
  transform: scale(1.07) rotate(8deg);
  box-shadow: 0 16px 34px -12px color-mix(in srgb, var(--gold) 78%, transparent);
}

.step h3 {
  font-size: var(--fs-h5);
  margin-bottom: 6px;
}

.step p {
  font-size: var(--fs-h6);
}

@media (max-width: 1080px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps::before {
    display: none;
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---- Homepage process: luxury editorial timeline ---- */
.home-process {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--deep-ink);
  background: var(--grad-deep-band);
  border-block: 1px solid rgba(244, 245, 239, 0.16);
}

.home-process::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  z-index: -1;
  width: min(88vw, 1100px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 178, 54, 0.8), transparent);
  transform: translateX(-50%);
}

.home-process__grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(244, 245, 239, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 245, 239, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(80% 85% at 50% 45%, #000, transparent 88%);
  mask-image: radial-gradient(80% 85% at 50% 45%, #000, transparent 88%);
}

.home-process__inner {
  position: relative;
}

.home-process__head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: end;
  gap: clamp(36px, 7vw, 100px);
  padding-bottom: clamp(36px, 5vw, 64px);
  border-bottom: 1px solid rgba(244, 245, 239, 0.16);
}

.home-process .eyebrow {
  color: var(--gold-bright);
}

.home-process .eyebrow::before {
  background: #ffb236;
}

.home-process__head h2 {
  max-width: 12ch;
  margin: 16px 0 0;
  color: var(--deep-ink);
  font-family: var(--font-body);
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.26;
  letter-spacing: -0.012em;
}

.home-process__intro {
  padding-left: clamp(22px, 3vw, 36px);
  border-left: 1px solid rgba(244, 245, 239, 0.32);
}

.home-process__count {
  display: block;
  margin-bottom: 14px;
  color: var(--gold-bright);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.2em;
}

.home-process__intro p {
  max-width: 38ch;
  margin: 0;
  color: color-mix(in srgb, var(--deep-ink) 72%, transparent);
  font-size: var(--fs-h5);
  line-height: 1.7;
}

.home-process__steps {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 20px);
  margin-top: clamp(48px, 6vw, 76px);
}

.home-process__steps::before {
  display: none;
}

.home-process__steps > .home-process__step,
.home-process__steps > .reveal.home-process__step {
  position: relative;
  min-height: 286px;
  padding: 26px 22px 24px;
  overflow: hidden;
  text-align: left;
  border: 1px solid rgba(244, 245, 239, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
    rgba(0, 0, 0, 0.46);
  box-shadow:
    0 28px 60px -42px rgba(0, 0, 0, 0.95),
    inset 0 1px rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
  backdrop-filter: blur(16px) saturate(1.12);
}

.home-process__steps > .home-process__step::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, #ffb236 38%, #ffb236 62%, transparent);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.home-process__steps > .home-process__step::after {
  content: '';
  position: absolute;
  top: -54px;
  right: -48px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(244, 245, 239, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(244, 245, 239, 0.025);
}

.home-process__steps > .home-process__step:nth-child(even) {
  transform: translateY(24px);
}

.home-process__steps > .home-process__step:hover {
  transform: translateY(-7px);
  border-color: rgba(244, 245, 239, 0.45);
  background:
    linear-gradient(145deg, rgba(194, 70, 82, 0.14), rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.64);
  box-shadow:
    0 34px 74px -40px rgba(0, 0, 0, 0.95),
    0 0 34px rgba(255, 178, 54, 0.08);
}

.home-process__steps > .home-process__step:hover::before {
  opacity: 1;
}

.home-process__phase {
  display: block;
  margin-bottom: 8px;
  color: color-mix(in srgb, var(--deep-ink) 72%, transparent);
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-process__step .step__num {
  display: block;
  width: auto;
  height: auto;
  margin: 0 0 42px;
  color: var(--gold-bright);
  background: none;
  box-shadow: none;
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.055em;
}

.home-process__step h3 {
  margin: 0 0 10px;
  color: var(--deep-ink);
  font-size: var(--fs-h4);
}

.home-process__step p {
  margin: 0;
  color: color-mix(in srgb, var(--deep-ink) 65%, transparent);
  font-size: var(--fs-h6);
  line-height: 1.62;
}

@media (max-width: 1080px) {
  .home-process__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-process__steps > .home-process__step:nth-child(even) {
    transform: none;
  }
  .home-process__steps > .home-process__step:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    min-height: 230px;
  }
}

@media (max-width: 760px) {
  .home-process__head {
    grid-template-columns: 1fr;
  }
  .home-process__intro {
    padding: 22px 0 0;
    border-top: 1px solid rgba(244, 245, 239, 0.25);
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .home-process__steps {
    grid-template-columns: 1fr;
  }
  .home-process__steps > .home-process__step:last-child:nth-child(odd) {
    grid-column: auto;
  }
  .home-process__steps > .home-process__step,
  .home-process__steps > .reveal.home-process__step {
    min-height: 0;
  }
  .home-process__step .step__num {
    margin-bottom: 28px;
  }
}

/* ---- Testimonial: glass feature card ---- */
.testimonial-feature {
  position: relative;
  max-width: 880px;
  padding: clamp(32px, 4vw, 56px) clamp(24px, 4vw, 60px) clamp(28px, 3vw, 44px);
  border-radius: 26px;
  background:
    radial-gradient(
      80% 120% at 50% 0%,
      color-mix(in srgb, var(--gold-soft) 40%, transparent),
      transparent 60%
    ),
    var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
  border: 1px solid var(--glass-border);
  box-shadow:
    var(--shadow-card),
    inset 0 1px 0 var(--glass-rim),
    var(--glass-glow);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .testimonial-feature__mark {
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

/* ---- Hero showcase: gradient ring + glass caption ---- */
.hero__showcase {
  isolation: isolate;
}

.hero__showcase::before {
  content: '';
  position: absolute;
  inset: -8% -6%;
  z-index: -1;
  border-radius: 40px;
  background: radial-gradient(60% 60% at 70% 20%, rgba(244, 245, 239, 0.26), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.hero-slider__frame {
  border: 1px solid rgba(244, 245, 239, 0.44);
  box-shadow:
    0 38px 80px -32px rgba(0, 0, 0, 0.82),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 28px 80px -44px rgba(255, 178, 54, 0.65);
}

/* ---- CTA band: animated aurora + gradient ---- */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      60% 120% at 15% 0%,
      color-mix(in srgb, var(--gold-deep) 55%, transparent),
      transparent 55%
    ),
    radial-gradient(
      60% 120% at 90% 100%,
      color-mix(in srgb, #000000 70%, transparent),
      transparent 55%
    ),
    var(--deep-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.6);
}

.cta-band::before {
  content: '';
  position: absolute;
  width: 60%;
  height: 140%;
  top: -20%;
  left: -10%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--gold) 30%, transparent),
    transparent 65%
  );
  filter: blur(50px);
  animation: cta-aurora 16s ease-in-out infinite;
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

@keyframes cta-aurora {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translate(40%, 12%) scale(1.25);
    opacity: 1;
  }
}

/* Closing product-launch CTA — a responsive web + app scene built entirely in
   CSS so it stays crisp, lightweight and theme-independent. */
.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  align-items: center;
  gap: clamp(40px, 6vw, 84px);
  min-height: 490px;
  padding: clamp(42px, 5.5vw, 72px);
  text-align: left;
  background: var(--grad-deep-band);
  border-color: rgba(244, 245, 239, 0.22);
  border-radius: clamp(26px, 4vw, 48px);
  box-shadow:
    0 42px 100px -48px rgba(0, 0, 0, 0.82),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cta-band::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.09),
    transparent 18%,
    transparent 78%,
    rgba(244, 245, 239, 0.08)
  );
}

.cta-band__mesh {
  position: absolute;
  inset: 0;
  z-index: 0 !important;
  pointer-events: none;
  opacity: 0.22;
  background-image: radial-gradient(rgba(244, 245, 239, 0.5) 0.7px, transparent 0.7px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%, #000);
  mask-image: linear-gradient(90deg, transparent, #000 45%, #000);
}

.cta-band__content,
.cta-band__visual {
  position: relative;
  z-index: 2 !important;
}

.cta-band__content {
  max-width: 610px;
}

.cta-band__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--gold-bright);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.cta-band__eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, #ffb236, #ffb236);
}

.cta-band h2 {
  max-width: 11ch;
  margin: 0 0 20px;
  color: var(--deep-ink);
  font-size: var(--fs-h1);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.cta-band p {
  max-width: 54ch;
  margin: 0 0 30px;
  color: color-mix(in srgb, var(--deep-ink) 78%, transparent);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.7;
}

.cta-band__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.cta-band__actions .btn--on-deep {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 46px;
  padding: 11px 24px;
  font-size: var(--fs-sm);
  color: var(--on-gold);
  background: linear-gradient(135deg, var(--ramp-1), var(--ramp-3));
  border-color: rgba(244, 245, 239, 0.55);
  box-shadow:
    0 16px 38px -18px rgba(255, 178, 54, 0.72),
    inset 0 1px rgba(255, 255, 255, 0.7);
}

.cta-band__actions .btn--on-deep:hover {
  color: var(--on-gold);
  background: linear-gradient(135deg, var(--ramp-h1), var(--ramp-h3));
  transform: translateY(-2px);
}

.cta-band__work-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: color-mix(in srgb, var(--deep-ink) 88%, transparent);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.cta-band__work-link:hover {
  color: var(--gold-bright);
  text-decoration: none;
}

.cta-band__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.cta-band__proof li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: color-mix(in srgb, var(--deep-ink) 65%, transparent);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.cta-band__proof li::before {
  content: '✓';
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(244, 245, 239, 0.3);
  border-radius: 50%;
  color: var(--gold-bright);
  font-size: var(--fs-nano);
}

.cta-band__visual {
  display: grid;
  align-content: center;
  min-height: 370px;
  isolation: isolate;
}

.cta-band__tech-label {
  position: absolute;
  top: 4px;
  left: 0;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(244, 245, 239, 0.3);
  border-radius: 999px;
  color: color-mix(in srgb, var(--deep-ink) 92%, transparent);
  background: rgba(0, 0, 0, 0.64);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cta-band__art-shell {
  position: relative;
  z-index: 2;
  width: min(100%, 560px);
  margin: 22px 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(244, 245, 239, 0.36);
  border-radius: 34px;
  background: #000000;
  box-shadow:
    0 42px 90px -34px rgba(0, 0, 0, 0.96),
    0 24px 70px -40px rgba(255, 178, 54, 0.72),
    inset 0 1px rgba(255, 255, 255, 0.11);
  transform: rotateY(-4deg) rotateX(1.5deg);
  transform-origin: center;
  animation: cta-art-float 8s ease-in-out infinite;
}

.cta-band__art-shell::before {
  content: '';
  position: absolute;
  inset: -18%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 245, 239, 0.2), transparent 64%);
  filter: blur(22px);
}

.cta-band__artwork {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Connected website + mobile + AI system. Kept as native vector artwork so it
   stays sharp at every breakpoint and needs no additional image download. */
.cta-ai-motion {
  overflow: visible;
  font-family: var(--font-sans);
  background: #000000;
}

.cta-ai-motion__beam {
  fill: url(#cta-ai-gold);
  opacity: 0.12;
}

.cta-ai-motion__signal-lines path {
  fill: none;
  stroke: #ffb236;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 3 7;
  opacity: 0.72;
}

.cta-ai-motion__device-shadow {
  fill: #050204;
  opacity: 0.5;
}

.cta-ai-motion__device {
  fill: #000000;
  stroke: rgba(244, 245, 239, 0.58);
  stroke-width: 1.4;
}

.cta-ai-motion__device-rim,
.cta-ai-motion__phone-speaker {
  fill: none;
  stroke: rgba(244, 245, 239, 0.34);
  stroke-width: 1.2;
  stroke-linecap: round;
}

.cta-ai-motion__browser > circle {
  fill: #ffb236;
  opacity: 0.72;
}

.cta-ai-motion__address {
  fill: rgba(255, 255, 255, 0.06);
  stroke: rgba(244, 245, 239, 0.12);
}

.cta-ai-motion__url {
  fill: rgba(244, 245, 239, 0.52);
  font-size: 6.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.cta-ai-motion__screen {
  fill: url(#cta-ai-screen);
}

.cta-ai-motion__nav {
  fill: #000000;
  opacity: 0.88;
}

.cta-ai-motion__nav-dot {
  fill: #ffb236;
}

.cta-ai-motion__screen-kicker,
.cta-ai-motion__app-kicker {
  fill: #9e5c1f;
  font-size: 6.5px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.cta-ai-motion__screen-title {
  fill: #000000;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.cta-ai-motion__button {
  fill: url(#cta-ai-gold);
}

.cta-ai-motion__button-text {
  fill: #000000;
  font-size: 6px;
  font-weight: 850;
  letter-spacing: 0.11em;
}

.cta-ai-motion__web-cards rect,
.cta-ai-motion__app-card {
  fill: rgba(255, 255, 255, 0.5);
  stroke: rgba(20, 20, 22, 0.16);
}

.cta-ai-motion__web-cards path,
.cta-ai-motion__app-card-line {
  fill: none;
  stroke: #ffb236;
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.48;
}

.cta-ai-motion__web-cards circle,
.cta-ai-motion__app-card-dot {
  fill: #ffb236;
  opacity: 0.72;
}

.cta-ai-motion__phone-body {
  fill: #000000;
  stroke: #ffb236;
  stroke-width: 1.6;
}

.cta-ai-motion__phone-screen {
  fill: url(#cta-ai-screen);
}

.cta-ai-motion__app-title {
  fill: #000000;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: -0.025em;
}

.cta-ai-motion__home {
  fill: rgba(0, 0, 0, 0.42);
}

.cta-ai-motion__ai-orbit {
  transform-origin: 397px 205px;
}

.cta-ai-motion__ai-orbit circle:not(.cta-ai-motion__orbit-node) {
  fill: none;
  stroke: rgba(244, 245, 239, 0.38);
  stroke-width: 1;
  stroke-dasharray: 4 8;
}

.cta-ai-motion__ai-orbit circle:nth-child(2) {
  stroke-dasharray: 1 7;
  opacity: 0.7;
}

.cta-ai-motion__orbit-node,
.cta-ai-motion__data circle {
  fill: #ffb236;
}

.cta-ai-motion__ai-core {
  transform-box: fill-box;
  transform-origin: center;
}

.cta-ai-motion__core-halo {
  fill: rgba(244, 245, 239, 0.08);
  stroke: rgba(244, 245, 239, 0.44);
  stroke-width: 1;
}

.cta-ai-motion__core {
  fill: url(#cta-ai-core);
  stroke: #ffb236;
  stroke-width: 1.4;
}

.cta-ai-motion__core-circuit {
  fill: none;
  stroke: rgba(244, 245, 239, 0.78);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cta-ai-motion__ai-core text {
  fill: #f4f5ef;
  font-size: 17px;
  font-weight: 850;
  text-anchor: middle;
  letter-spacing: 0.04em;
}

.cta-ai-motion__data circle {
  opacity: 0.86;
}

.cta-ai-motion__chip rect {
  fill: rgba(255, 255, 255, 0.055);
  stroke: rgba(244, 245, 239, 0.28);
}

.cta-ai-motion__chip circle {
  fill: #ffb236;
}

.cta-ai-motion__chip text {
  fill: rgba(244, 245, 239, 0.82);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.cta-ai-motion__chip--ai rect {
  fill: rgba(255, 178, 54, 0.12);
  stroke: rgba(244, 245, 239, 0.52);
}

.cta-ai-motion__browser,
.cta-ai-motion__phone,
.cta-ai-motion__ai-orbit,
.cta-ai-motion__ai-core {
  will-change: transform;
}

/* Every device, not just desktops. These were gated at 981px, which meant the
   two motion graphics were static on exactly the screens most people use. The
   reduced-motion condition stays — that one is a real preference, unlike a
   guess about what a narrow screen can handle. */
@media (prefers-reduced-motion: no-preference) {
  .cta-ai-motion__browser {
    animation: cta-ai-browser-float 9s ease-in-out infinite;
  }

  .cta-ai-motion__phone {
    animation: cta-ai-phone-float 8s ease-in-out infinite;
  }

  .cta-ai-motion__ai-orbit {
    animation: cta-ai-orbit-turn 28s linear infinite;
  }

  .cta-ai-motion__ai-core {
    animation: cta-ai-core-pulse 5.5s ease-in-out infinite;
  }
}

@keyframes cta-ai-browser-float {
  0%,
  100% {
    transform: translate(28px, 78px);
  }
  50% {
    transform: translate(28px, 69px);
  }
}

@keyframes cta-ai-phone-float {
  0%,
  100% {
    transform: translate(468px, 92px);
  }
  50% {
    transform: translate(468px, 101px);
  }
}

@keyframes cta-ai-orbit-turn {
  to {
    transform: rotate(360deg);
  }
}

@keyframes cta-ai-core-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.07);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-ai-motion__browser,
  .cta-ai-motion__phone,
  .cta-ai-motion__ai-orbit,
  .cta-ai-motion__ai-core {
    animation: none !important;
  }
}

.cta-band__art-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 34%,
    rgba(244, 245, 239, 0.14) 47%,
    transparent 58%
  );
  transform: translateX(-120%);
  animation: cta-art-sheen 7.5s 1.4s ease-in-out infinite;
}

.cta-band__art-caption {
  position: absolute;
  right: -10px;
  bottom: 12px;
  z-index: 4;
  display: grid;
  gap: 3px;
  min-width: 230px;
  padding: 15px 19px;
  border: 1px solid rgba(244, 245, 239, 0.32);
  border-radius: 18px;
  color: var(--deep-ink);
  background: rgba(0, 0, 0, 0.76);
  box-shadow: 0 22px 50px -26px rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
}

.cta-band__art-caption span {
  color: var(--gold-bright);
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.cta-band__art-caption strong {
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
}

@media (hover: hover) and (pointer: fine) {
  .cta-band:hover .cta-band__artwork {
    transform: scale(1.035);
  }
}

@keyframes cta-art-float {
  0%,
  100% {
    transform: rotateY(-4deg) rotateX(1.5deg) translateY(0);
  }
  50% {
    transform: rotateY(-2deg) rotateX(0.5deg) translateY(-10px);
  }
}

@keyframes cta-art-sheen {
  0%,
  68% {
    transform: translateX(-120%);
    opacity: 0;
  }
  76% {
    opacity: 1;
  }
  92%,
  100% {
    transform: translateX(120%);
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .cta-band {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .cta-band__content {
    max-width: 680px;
  }
  .cta-band__visual {
    /* Match the copy column instead of stopping short of it. Stacked, the copy
       runs to 680 while this capped at 620 — and the shell inside capped again
       at 560 and pushed itself to the right edge with `margin-left: auto`,
       which is right beside the copy and wrong beneath it. The artwork ended up
       120px narrower than the text it belongs to and off to one side. */
    width: min(100%, 680px);
    margin-inline: auto;
  }

  .cta-band__art-shell {
    width: 100%;
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .cta-band {
    min-height: 0;
    padding: 34px 22px 30px;
    border-radius: 26px;
  }
  .cta-band h2 {
    font-size: var(--fs-h1);
  }
  .cta-band__actions {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }
  .cta-band__actions .btn--on-deep {
    justify-content: center;
  }
  .cta-band__work-link {
    justify-content: center;
  }
  .cta-band__proof {
    display: grid;
    grid-template-columns: 1fr;
  }
  .cta-band__visual {
    min-height: 280px;
  }
  .cta-band__tech-label {
    left: 0;
    right: auto;
  }
  .cta-band__art-shell {
    width: 100%;
    margin-top: 52px;
    border-radius: 22px;
    transform: none;
    animation: cta-art-mobile-float 8s ease-in-out infinite;
  }
  .cta-band__art-caption {
    right: 10px;
    bottom: -12px;
    min-width: 0;
    padding: 11px 14px;
    border-radius: 14px;
  }
  .cta-band__art-caption strong {
    font-size: var(--fs-caption);
  }
}

@keyframes cta-art-mobile-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* ---------- Homepage hero: art-directed portfolio marquee ---------- */

.hero {
  min-height: 80svh;
  padding-top: calc(var(--header-h) + clamp(48px, 5vw, 72px));
  padding-bottom: clamp(30px, 3vw, 44px);
  background: var(--grad-deep-band);
}

.hero__grid {
  background-size: 48px 48px;
  opacity: 0.56;
}

.hero__inner {
  grid-template-columns: minmax(390px, 0.82fr) minmax(550px, 1.18fr);
  gap: clamp(38px, 5vw, 78px);
}

.hero__copy {
  position: relative;
  z-index: 3;
  max-width: 610px;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  max-width: none;
  margin: 24px 0 22px;
  color: var(--deep-ink);
  /* Up 15%. Four `.hero h1` blocks set a size — this one and the three
     breakpoints below it — and this is the one that wins on desktop; the base
     declaration much earlier in the file is overridden at every width. Change
     them as a set or the headline grows at one size and not the others. */
  font-size: clamp(38px, 3.63vw, 59px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.hero h1 span {
  display: block;
}

.hero h1 .accent {
  margin-bottom: 0.12em;
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
  letter-spacing: -0.065em;
}

/* Only the word "bold" carries the heavy weight; the rest of the headline
   sits at the h1's lighter 500 so the emphasis reads as deliberate. */
.hero h1 .accent strong {
  font-weight: 800;
}

.hero .lede {
  max-width: 43ch;
  color: color-mix(in srgb, var(--deep-ink) 82%, transparent);
  /* Flat 15px (--fs-h5), not a clamp — it scaled to 18px on wide screens. */
  font-size: var(--fs-h5);
  line-height: 1.62;
}

.hero__actions {
  align-items: center;
  flex-wrap: wrap;
  margin-top: 28px;
  gap: 22px;
}

.hero__actions .btn--primary {
  min-width: 190px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ramp-1) 0%, var(--ramp-3) 100%);
  box-shadow:
    0 18px 38px -18px rgba(255, 178, 54, 0.72),
    inset 0 1px rgba(255, 255, 255, 0.72);
}

.hero__actions .btn--ghost {
  min-height: auto;
  padding: 10px 2px 7px;
  border: 0;
  border-bottom: 1px solid rgba(255, 178, 54, 0.7);
  border-radius: 0;
  background: transparent;
  font-size: var(--fs-sm);
}

.hero__actions .btn--ghost:hover {
  border-bottom-color: #ffb236;
  background: transparent;
  transform: translateX(3px);
}

.home-tools-launcher {
  position: relative;
  isolation: isolate;
  flex: 0 0 min(100%, 460px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    'status meta'
    'title meta';
  align-items: center;
  gap: 3px 18px;
  width: min(100%, 460px);
  min-height: 66px;
  margin-top: 2px;
  padding: 12px 15px 12px 18px;
  overflow: hidden;
  border: 1px solid rgba(244, 245, 239, 0.34);
  border-radius: 18px;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.07), transparent 42%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.98), rgba(0, 0, 0, 0.96));
  box-shadow:
    0 22px 50px -28px rgba(0, 0, 0, 0.9),
    inset 0 1px rgba(255, 255, 255, 0.08);
  color: #f4f5ef;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 240ms ease,
    box-shadow 240ms ease,
    transform 240ms var(--ease);
}

.home-tools-launcher::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(244, 245, 239, 0.11) 43%,
    transparent 66%
  );
  transform: translateX(-110%);
  animation: home-tools-launcher-sheen 5.8s ease-in-out infinite;
}

.home-tools-launcher:hover,
.home-tools-launcher:focus-visible {
  border-color: rgba(255, 178, 54, 0.72);
  box-shadow:
    0 26px 58px -27px rgba(255, 178, 54, 0.54),
    inset 0 1px rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}

.home-tools-launcher:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.home-tools-launcher__status {
  grid-area: status;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-bright);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.home-tools-launcher__status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 5px rgba(244, 245, 239, 0.09);
  animation: home-tools-live 2.2s ease-in-out infinite;
}

.home-tools-launcher__title {
  grid-area: title;
  font-size: var(--fs-body);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.home-tools-launcher__meta {
  grid-area: meta;
  display: grid;
  min-width: 70px;
  padding: 8px 12px;
  border-left: 1px solid rgba(244, 245, 239, 0.24);
  color: var(--gold-bright);
  text-align: right;
}

.home-tools-launcher__meta b {
  font-size: var(--fs-h4);
  line-height: 1;
  letter-spacing: -0.04em;
}

.home-tools-launcher__meta small {
  margin-top: 4px;
  color: rgba(244, 245, 239, 0.58);
  font-size: 8px;
  font-weight: 750;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

@keyframes home-tools-launcher-sheen {
  0%,
  62% {
    transform: translateX(-110%);
  }
  88%,
  100% {
    transform: translateX(110%);
  }
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  row-gap: 14px;
  width: 100%;
  margin-top: clamp(34px, 5.5vh, 54px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.hero__trust span {
  min-width: 0;
  /* Grow from content width so a longer label (e.g. "Domain, hosting, web
     & apps") claims the room it needs instead of being forced into a rigid
     third and wrapping awkwardly. */
  flex: 1 1 auto;
  padding: 0 clamp(13px, 1.5vw, 23px);
  border-right-color: rgba(244, 245, 239, 0.22);
}

.hero__trust span:first-child {
  padding-left: 0;
}

.hero__trust b {
  font-size: clamp(18px, 1.7vw, 24px);
}

.hero__trust em {
  margin-top: 4px;
  font-size: var(--fs-tiny);
  letter-spacing: 0.12em;
  text-wrap: balance;
}

.hero__showcase {
  overflow: visible;
  isolation: isolate;
}

.hero__showcase-shell::before {
  display: none;
}

.hero-slider__stage {
  position: relative;
  padding-right: 14%;
}

.hero-slider__previews {
  position: absolute;
  inset: 5% 0 7% auto;
  width: 31%;
  pointer-events: none;
}

.hero-slider__preview {
  position: absolute;
  inset-block: 0;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(244, 245, 239, 0.34);
  border-radius: 0 22px 22px 0;
  background: #000000;
  box-shadow: 18px 24px 48px -26px rgba(0, 0, 0, 0.9);
}

.hero-slider__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  filter: saturate(0.82) brightness(0.7);
}

.hero-slider__preview--back {
  left: 42%;
  right: 0;
  z-index: -2;
  transform: translateX(16px) scale(0.9);
  opacity: 0.56;
}

.hero-slider__preview--middle {
  left: 7%;
  right: 14%;
  z-index: -1;
  transform: translateX(12px) scale(0.96);
  opacity: 0.82;
}

.hero-slider__frame {
  aspect-ratio: 16 / 10.5;
  border-radius: 22px;
  border: 1px solid rgba(244, 245, 239, 0.48);
  box-shadow:
    0 38px 74px -32px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 24px 68px -42px rgba(255, 178, 54, 0.7);
}

.hero-slider__slide {
  clip-path: inset(0 8% 0 0 round 22px);
}

.hero-slider__slide.is-active {
  clip-path: inset(0 round 22px);
}

.hero-slider__slide img {
  object-position: center top;
}

.hero-slider__caption {
  padding: 90px 26px 22px;
}

.hero-slider__tag {
  color: var(--gold-bright);
  font-size: var(--fs-tiny);
}

.hero-slider__title {
  max-width: 26ch;
  font-size: clamp(14px, 1.25vw, 18px);
}

.hero-slider__controls {
  width: min(78%, 440px);
  margin: -17px auto 0 7%;
}

.hero-slider__dots {
  top: calc(100% + 9px);
}

@media (max-width: 1100px) {
  .hero__inner {
    grid-template-columns: minmax(330px, 0.78fr) minmax(480px, 1.22fr);
    gap: 34px;
  }

  .hero h1 {
    font-size: clamp(34px, 3.77vw, 46px);
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 48px);
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero h1 {
    font-size: clamp(36px, 6.61vw, 52px);
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__trust {
    max-width: 560px;
    margin-inline: auto;
  }

  .hero__showcase {
    width: min(720px, 100%);
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: calc(var(--header-h) + 34px);
    padding-bottom: 48px;
  }

  .hero .eyebrow--chip {
    font-size: var(--fs-tiny);
    letter-spacing: 0.12em;
  }

  .hero h1 {
    margin-top: 20px;
    font-size: clamp(30px, 9.9vw, 43px);
    line-height: 0.94;
  }

  .hero .lede {
    font-size: var(--fs-h5);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn--primary {
    width: 100%;
  }

  .hero__actions .btn--ghost {
    flex: none;
  }

  .hero__trust {
    display: none;
  }

  .hero-slider__stage {
    padding-right: 0;
  }

  .hero-slider__previews {
    display: none;
  }

  .hero-slider__frame {
    aspect-ratio: 4 / 3;
    border-radius: 18px;
  }

  .hero-slider__slide.is-active {
    clip-path: inset(0 round 18px);
  }

  .hero-slider__controls {
    width: 92%;
    margin-inline: auto;
  }
}

/* ---------- Hero carousel: 2026 editorial index rail ---------- */

.hero-slider__stage {
  position: relative;
  padding-right: 16%;
}

.hero-slider__frame {
  z-index: 3;
  aspect-ratio: 5 / 4;
  border-radius: 18px 0 0 18px;
  border: 1px solid rgba(244, 245, 239, 0.52);
  border-right: 0;
  background: #000000;
}

.hero-slider__slide,
.hero-slider__slide.is-active {
  clip-path: inset(0 round 18px 0 0 18px);
}

.hero-slider__slide img {
  object-fit: cover;
  object-position: center top;
  height: calc(100% - 94px);
}

.hero-slider__caption {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px;
  min-height: 94px;
  padding: 18px 92px 18px 24px;
  background: rgba(0, 0, 0, 0.96);
}

.hero-slider__caption-copy {
  gap: 5px;
}

.hero-slider__tag {
  color: var(--gold-bright);
  font-size: var(--fs-tiny);
  letter-spacing: 0.18em;
}

.hero-slider__title {
  max-width: 31ch;
  color: var(--deep-ink);
  font-size: clamp(14px, 1.32vw, 18px);
  line-height: 1.3;
}

.hero-slider__caption-count {
  display: none;
}

.hero-slider__caption-count b {
  color: var(--gold-bright);
  font-size: var(--fs-h4);
}

.hero-slider__caption-count i {
  color: color-mix(in srgb, var(--deep-ink) 34%, transparent);
  font-style: normal;
}

.hero-slider__next-preview {
  position: absolute;
  top: 10%;
  right: -6%;
  bottom: 10%;
  z-index: 0;
  width: 15%;
  overflow: hidden;
  border: 1px solid rgba(244, 245, 239, 0.38);
  border-radius: 0 16px 16px 0;
  background: #000000;
  box-shadow: 20px 24px 50px -30px rgba(0, 0, 0, 0.95);
  opacity: 0.68;
}

.hero-slider__next-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.34);
}

.hero-slider__next-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}

.hero-slider__index-rail {
  position: absolute;
  top: 0;
  right: 8%;
  bottom: 0;
  z-index: 6;
  display: flex;
  width: 8%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(244, 245, 239, 0.46);
  border-radius: 0 18px 18px 0;
  background: rgba(0, 0, 0, 0.88);
  box-shadow: 15px 20px 44px -30px rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  backdrop-filter: blur(18px) saturate(1.1);
}

.hero-slider__index-item {
  position: relative;
  display: flex;
  min-height: 0;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: color-mix(in srgb, var(--deep-ink) 58%, transparent);
  cursor: pointer;
  font: inherit;
  font-size: var(--fs-caption);
  font-weight: 700;
  transition:
    color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease);
}

.hero-slider__index-item + .hero-slider__index-item {
  border-top: 1px solid rgba(244, 245, 239, 0.08);
}

.hero-slider__index-item:hover {
  color: var(--deep-ink);
  background: rgba(255, 255, 255, 0.04);
}

.hero-slider__index-item.is-active {
  color: var(--gold-bright);
  background: rgba(244, 245, 239, 0.07);
}

.hero-slider__index-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to top, #ffb236, #ffb236);
  transform: scaleY(0);
  transform-origin: bottom;
  animation: hero-slider-rail-progress linear forwards;
}

.hero-slider[data-paused] .hero-slider__index-progress {
  animation-play-state: paused;
}

@keyframes hero-slider-rail-progress {
  to {
    transform: scaleY(1);
  }
}

/* Paired prev/next navigator — a joined glass segment resting in the
   caption bar's lower-right, clear of the image content. */
.hero-slider__stage > .hero-slider__arrow {
  position: absolute;
  top: auto;
  bottom: 31px;
  z-index: 8;
  width: 31px;
  height: 28px;
  border: 1px solid rgba(244, 245, 239, 0.32);
  background: rgba(0, 0, 0, 0.58);
  color: var(--gold-bright);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 16px 34px -20px rgba(0, 0, 0, 0.9);
  transition:
    opacity 240ms var(--ease),
    visibility 240ms var(--ease),
    border-color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.hero-slider__stage > .hero-slider__arrow:hover {
  background: rgba(255, 178, 54, 0.92);
  border-color: rgba(255, 178, 54, 0.85);
  color: var(--on-gold);
}

.hero-slider__stage > .hero-slider__arrow:active {
  transform: scale(0.94);
}

.hero-slider__stage > .hero-slider__arrow svg {
  width: 13px;
  height: 13px;
}

.hero-slider__arrow--prev {
  right: calc(16% + 20px + 31px);
  left: auto;
  border-radius: 9px 0 0 9px;
  border-right: 0;
}

.hero-slider__arrow--next {
  right: calc(16% + 20px);
  border-radius: 0 9px 9px 0;
}

@media (max-width: 700px) {
  .hero-slider__stage {
    padding-right: 0;
    padding-bottom: 46px;
  }

  .hero-slider__next-preview {
    display: none;
  }

  .hero-slider__index-rail {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 36px;
    flex-direction: row;
    border-radius: 999px;
  }

  .hero-slider__index-item + .hero-slider__index-item {
    border-top: 0;
    border-left: 1px solid rgba(244, 245, 239, 0.08);
  }

  .hero-slider__index-progress {
    right: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    animation-name: hero-slider-mobile-progress;
  }

  @keyframes hero-slider-mobile-progress {
    to {
      transform: scaleX(1);
    }
  }

  .hero-slider__stage > .hero-slider__arrow {
    top: 50%;
    bottom: auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(244, 245, 239, 0.32);
    transform: translateY(-50%);
  }

  .hero-slider__stage > .hero-slider__arrow svg {
    width: 16px;
    height: 16px;
  }

  .hero-slider__stage > .hero-slider__arrow:active {
    transform: translateY(-50%) scale(0.94);
  }

  .hero-slider__arrow--next {
    right: 14px;
  }

  .hero-slider__arrow--prev {
    right: auto;
    left: 14px;
  }

  .hero-slider__caption {
    padding-right: 24px;
  }
}

@media (min-width: 701px) and (max-width: 980px) {
  .hero-slider__frame {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 560px) {
  .hero-slider__frame,
  .hero-slider__slide,
  .hero-slider__slide.is-active {
    border-radius: 16px;
  }

  .hero-slider__caption {
    min-height: 82px;
    padding: 14px 16px;
  }

  .hero-slider__slide img {
    height: calc(100% - 82px);
  }

  .hero-slider__title {
    font-size: var(--fs-h6);
  }

  .hero-slider__caption-count b {
    font-size: var(--fs-sm);
  }

  .hero-slider__stage > .hero-slider__arrow {
    width: 38px;
    height: 38px;
  }
}

/* Shared homepage feature-heading scale keeps the process and CTA titles aligned. */
.home-process__head .hero-cta-heading,
/* Matches the site-wide section-title treatment; the measure is set so the
   line breaks into two, not three. */
.cta-band .hero-cta-heading {
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.26;
  letter-spacing: -0.012em;
  max-width: 22ch;
  text-wrap: balance;
}

@media (max-width: 560px) {
  .home-process__head .hero-cta-heading,
  .cta-band .hero-cta-heading {
    font-size: clamp(26px, 3.2vw, 38px);
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
  html.js .reveal {
    opacity: 1;
  }
  /* Kill the looping hero motion outright rather than let the global
     0.01ms override flash it many times a second. */
  .hero__orb,
  .hero-slider__slide.is-active img,
  .hero-slider__frame-shine,
  .hero .eyebrow--chip::before,
  .hero h1 .accent,
  .cta-band::before,
  .cta-band__art-shell,
  .cta-band__art-sheen {
    animation: none !important;
  }
}

/* ============================================================
   Founder portrait — luxury animated photo floated into "About"
   ============================================================ */
.founder-photo {
  float: right;
  width: clamp(200px, 34%, 300px);
  margin: 6px 0 20px 34px;
}
/* Rounded photo: fills the frame, empty sky at the top trimmed off. */
.founder-photo__frame {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 5 / 7;
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.45);
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
}
.founder-photo__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  transition: transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1);
}
/* Luxury hover: the photo zooms smoothly, the frame lifts, and a soft sheen
   deepens the bottom. */
.founder-photo:hover .founder-photo__frame {
  transform: translateY(-5px);
  box-shadow: 0 38px 70px -30px rgba(0, 0, 0, 0.52);
}
.founder-photo:hover .founder-photo__frame img {
  transform: scale(1.08);
}
.founder-photo__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.32));
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.founder-photo:hover .founder-photo__frame::after {
  opacity: 1;
}
.founder-photo__shine {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .founder-photo__frame,
  .founder-photo__frame img,
  .founder-photo__frame::after {
    transition: none;
  }
  .founder-photo:hover .founder-photo__frame,
  .founder-photo:hover .founder-photo__frame img {
    transform: none;
  }
}
.founder-photo__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
/* Premium name plate: a gold-washed card with a fine gold divider. */
.founder-photo__cap {
  margin-top: 14px;
  padding: 14px 18px 16px;
  text-align: center;
  border-radius: 16px;
  background: linear-gradient(
    162deg,
    var(--surface),
    color-mix(in srgb, var(--gold-soft) 45%, var(--surface))
  );
  border: 1px solid color-mix(in srgb, var(--gold) 20%, var(--line));
  box-shadow: 0 16px 34px -24px rgba(140, 28, 34, 0.42);
}
.founder-photo__cap b {
  display: block;
  color: var(--ink);
  font-size: var(--fs-body);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.founder-photo__cap span {
  display: block;
  color: var(--gold-deep);
  font-size: var(--fs-nano);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
/* Fine gold divider between the name and the role. */
.founder-photo__cap span::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  margin: 8px auto;
  border-radius: 2px;
  background: var(--grad-gold);
}
@media (max-width: 640px) {
  /* Full width on a phone. Unfloated it was capped at 240px, which on a 335px
     column left it looking like a thumbnail dropped into the text rather than
     the portrait the section is built around. */
  .founder-photo {
    float: none;
    width: 100%;
    margin: 0 0 22px;
  }
}

/* ---- Link cards ("Name: website.com" lists → clickable cards) ---- */
.link-cards {
  clear: both;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
  margin: 14px 0 6px;
  padding: 0;
  list-style: none;
}
/* No underline — the hover lift/accent is the affordance (beats `.prose a`). */
.link-cards a,
.link-cards a:hover {
  text-decoration: none;
}
.link-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px 15px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(
    180deg,
    var(--surface),
    color-mix(in srgb, var(--gold-soft) 45%, var(--surface))
  );
  text-decoration: none;
  box-shadow: 0 10px 26px -22px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.24s cubic-bezier(0.2, 0.8, 0.3, 1.2),
    border-color 0.24s,
    box-shadow 0.24s;
}
.link-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.26s ease;
}
.link-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--gold) 42%, var(--line));
  box-shadow: 0 18px 36px -22px rgba(140, 28, 34, 0.4);
}
.link-card:hover::before {
  transform: scaleY(1);
}
.link-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.link-card__name {
  font-weight: 700;
  color: var(--ink);
  font-size: var(--fs-h5);
  line-height: 1.25;
}
.link-card__url {
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--gold-deep);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.link-card__go {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  transition:
    background-color 0.24s,
    color 0.24s,
    transform 0.24s;
}
.link-card:hover .link-card__go {
  background: var(--grad-gold, linear-gradient(135deg, var(--gold-bright), var(--gold-deep)));
  color: #fff;
  transform: translate(2px, -2px);
}

/* ============================================================
   Home editorial journey — welcome, comparison and stories
   ============================================================ */

.home-welcome {
  overflow: hidden;
  background:
    radial-gradient(
      55% 90% at 98% 15%,
      color-mix(in srgb, var(--gold-soft) 58%, transparent),
      transparent 72%
    ),
    var(--bg-tint);
}

.home-welcome__inner {
  display: grid;
  /* The visual column hugs the graphic instead of taking a full half, so the
     space between the two cards is the gap itself rather than gap + slack. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 556px);
  grid-template-areas: 'copy visual';
  align-items: stretch;
  gap: clamp(8px, 0.8vw, 12px);
}

.home-welcome__copy {
  grid-area: copy;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(32px, 3vw, 44px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--gold) 36%, var(--line));
  border-radius: 36px;
  background: color-mix(in srgb, var(--surface) 94%, var(--gold-soft));
  box-shadow:
    0 34px 70px -56px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 color-mix(in srgb, var(--surface) 92%, transparent);
  animation: home-welcome-panel-breathe 7s ease-in-out infinite;
}

.home-welcome__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(24px, 2.6vw, 36px);
}

.home-welcome__copy .eyebrow {
  margin: 0;
  color: var(--gold-deep);
}

.home-welcome__edition {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--gold) 32%, var(--line));
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-welcome__title {
  max-width: none;
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(25px, 2.21vw, 33px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.home-welcome__accent {
  color: var(--gold-deep);
  font-style: normal;
  font-weight: 500;
}

/* Living champagne shimmer drawn through the accent words — the same treatment
   the hero headline uses, so the two read as one brand gesture. Solid gold
   remains the fallback wherever background-clip: text is unavailable. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .home-welcome__accent {
    background: linear-gradient(
      100deg,
      var(--gold) 0%,
      var(--gold-bright) 28%,
      var(--gold) 48%,
      var(--gold-bright) 68%,
      var(--gold-deep) 100%
    );
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: hero-shimmer 7.5s linear infinite;
  }
}

/* The heading resolves out of a soft focus rather than simply sliding up. Only
   opacity, transform and filter are animated — tracking or width would rewrap
   the lines mid-animation and shift everything below it. */
.home-welcome__copy.is-inview .home-welcome__title {
  animation: home-welcome-title-in 1.25s cubic-bezier(0.2, 0.75, 0.25, 1) 0.08s both;
}

@keyframes home-welcome-title-in {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20px) scale(0.985);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

.home-welcome__message {
  max-width: 58ch;
  margin-top: clamp(24px, 2.8vw, 36px);
  padding-left: 20px;
  border-left: 1px solid color-mix(in srgb, var(--gold) 50%, var(--line));
}

.home-welcome__lede {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.65;
}

.home-welcome__support {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.65;
}

.home-welcome__disciplines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: clamp(28px, 3vw, 40px) 0 0;
  padding: 16px 0 0;
  list-style: none;
  border-top: 1px solid color-mix(in srgb, var(--gold) 26%, var(--line));
}

.home-welcome__disciplines li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-welcome__disciplines li + li {
  padding-left: 14px;
  border-left: 1px solid color-mix(in srgb, var(--gold) 22%, var(--line));
}

.home-welcome__disciplines span {
  color: var(--gold-deep);
  font-size: var(--fs-micro);
  animation: home-welcome-signal 4.8s ease-in-out infinite;
}

.home-welcome__disciplines li:nth-child(2) span {
  animation-delay: -1.6s;
}

.home-welcome__disciplines li:nth-child(3) span {
  animation-delay: -3.2s;
}

.home-welcome__copy.is-inview > * {
  animation: home-welcome-copy-in 0.72s var(--ease) both;
}

.reveal.home-welcome__copy.is-inview {
  animation:
    fade-up var(--dur-slow) var(--ease) both,
    home-welcome-panel-breathe 7s ease-in-out 0.9s infinite;
}

.home-welcome__copy.is-inview > *:nth-child(2) {
  animation-delay: 0.08s;
}

.home-welcome__copy.is-inview > *:nth-child(3) {
  animation-delay: 0.16s;
}

.home-welcome__copy.is-inview > *:nth-child(4) {
  animation-delay: 0.24s;
}

@keyframes home-welcome-copy-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes home-welcome-panel-breathe {
  0%,
  100% {
    border-color: color-mix(in srgb, var(--gold) 30%, var(--line));
    box-shadow:
      0 34px 70px -56px rgba(0, 0, 0, 0.58),
      inset 0 1px 0 color-mix(in srgb, var(--surface) 92%, transparent);
  }
  50% {
    border-color: color-mix(in srgb, var(--gold) 52%, var(--line));
    box-shadow:
      0 38px 76px -52px color-mix(in srgb, var(--gold) 38%, transparent),
      inset 0 1px 0 color-mix(in srgb, var(--surface) 92%, transparent);
  }
}

@keyframes home-welcome-signal {
  0%,
  100% {
    opacity: 0.55;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

/* Connected-studio SVG — a private, brand-led alternative to a personal portrait. */
.home-studio-visual {
  grid-area: visual;
  position: relative;
  align-self: stretch;
  justify-self: end;
  display: flex;
  width: min(556px, 100%);
  margin: 0;
}

.home-studio-visual::before {
  content: '';
  position: absolute;
  inset: 14% 9% 8%;
  border-radius: 50%;
  background: color-mix(in srgb, var(--gold) 18%, transparent);
  filter: blur(46px);
  pointer-events: none;
}

.home-studio-motion {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.home-studio-motion__panel {
  stroke: color-mix(in srgb, var(--gold) 34%, var(--line));
  stroke-width: 1.25;
}

.home-studio-motion__status text,
.home-studio-motion__node text,
.home-studio-motion__core text {
  font-family: var(--font-body);
}

.home-studio-motion__status text {
  fill: var(--gold-deep);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.home-studio-motion__status path {
  fill: none;
  stroke: color-mix(in srgb, var(--gold) 58%, var(--line));
  stroke-width: 1;
}

.home-studio-motion__status > circle:last-child {
  fill: var(--gold-soft);
  stroke: var(--gold);
  stroke-width: 1.5;
}

.home-studio-motion__orbit {
  fill: none;
  stroke: color-mix(in srgb, var(--gold) 30%, var(--line));
  stroke-width: 1.2;
  stroke-dasharray: 8 13;
  transform-origin: 280px 268px;
}

.home-studio-motion__orbit--outer {
  animation: studio-orbit-clockwise 24s linear infinite;
}

.home-studio-motion__orbit--inner {
  stroke: color-mix(in srgb, var(--gold-deep) 36%, var(--line));
  stroke-dasharray: 3 10;
  animation: studio-orbit-counter 18s linear infinite;
}

.home-studio-motion__flow path {
  fill: none;
  stroke: url(#studio-gold);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 4 12;
  opacity: 0.74;
  animation: studio-data-flow 3.6s linear infinite;
}

.home-studio-motion__satellite {
  transform-origin: 280px 268px;
}

.home-studio-motion__satellite--one {
  animation: studio-spin 13s linear infinite;
}

.home-studio-motion__satellite--two {
  animation: studio-spin-reverse 9s linear infinite;
}

.home-studio-motion__node {
  color: var(--gold-deep);
  animation: studio-node-float 5.4s ease-in-out infinite;
}

.home-studio-motion__node:nth-of-type(even) {
  animation-delay: -2.7s;
}

.home-studio-motion__node > rect {
  fill: color-mix(in srgb, var(--surface) 92%, var(--gold-soft));
  stroke: color-mix(in srgb, var(--gold) 34%, var(--line));
  stroke-width: 1;
}

.home-studio-motion__node circle {
  fill: var(--gold-soft);
  stroke: color-mix(in srgb, var(--gold) 56%, var(--line));
  stroke-width: 1;
}

.home-studio-motion__node path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-studio-motion__node text {
  fill: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.home-studio-motion__node .home-studio-motion__node-sub {
  fill: var(--muted);
  font-size: 7.5px;
  letter-spacing: 0.1em;
}

.home-studio-motion__core {
  transform-origin: 280px 268px;
  filter: drop-shadow(0 22px 18px rgba(0, 0, 0, 0.2));
  animation: studio-core-breathe 5.4s ease-in-out infinite;
}

.home-studio-motion__core-rim {
  fill: none;
  stroke: color-mix(in srgb, var(--gold-bright) 48%, transparent);
  stroke-width: 1.5;
}

.home-studio-motion__core > circle:not(.home-studio-motion__core-pulse) {
  fill: color-mix(in srgb, var(--gold-bright) 72%, transparent);
}

.home-studio-motion__core-line {
  fill: none;
  stroke: color-mix(in srgb, var(--gold-bright) 28%, transparent);
}

.home-studio-motion__core-kicker {
  fill: var(--gold-bright);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.home-studio-motion__core-title {
  fill: var(--deep-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.home-studio-motion__core-pulse {
  transform-box: fill-box;
  transform-origin: center;
  fill: var(--gold-bright);
  filter: url(#studio-glow);
  animation: studio-signal-pulse 2.6s ease-in-out infinite;
}

.home-studio-motion__phone {
  transform-origin: 396px 297px;
  color: var(--gold-bright);
  filter: drop-shadow(0 18px 14px rgba(0, 0, 0, 0.28));
  animation: studio-phone-float 4.8s ease-in-out infinite;
}

.home-studio-motion__phone > rect:first-child {
  fill: var(--brand-burgundy-deep);
  stroke: color-mix(in srgb, var(--gold-bright) 48%, transparent);
}

.home-studio-motion__phone > rect:nth-child(2) {
  fill: color-mix(in srgb, var(--surface) 92%, var(--gold-soft));
}

.home-studio-motion__phone path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.home-studio-motion__phone circle {
  fill: var(--gold);
}

.home-studio-motion__sweep {
  animation: studio-sweep 9s ease-in-out infinite;
}

@keyframes studio-orbit-clockwise {
  to {
    stroke-dashoffset: -168;
    transform: rotate(360deg);
  }
}

@keyframes studio-orbit-counter {
  to {
    stroke-dashoffset: 132;
    transform: rotate(-360deg);
  }
}

@keyframes studio-data-flow {
  to {
    stroke-dashoffset: -64;
  }
}

@keyframes studio-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes studio-spin-reverse {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes studio-node-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -7px;
  }
}

@keyframes studio-core-breathe {
  0%,
  100% {
    scale: 1;
  }
  50% {
    scale: 1.018;
  }
}

@keyframes studio-signal-pulse {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(0.84);
  }
  50% {
    opacity: 1;
    transform: scale(1.22);
  }
}

@keyframes studio-phone-float {
  0%,
  100% {
    translate: 0 0;
    rotate: 0deg;
  }
  50% {
    translate: 0 -8px;
    rotate: 1.5deg;
  }
}

/* Travel is kept short on purpose: the stripe spans the panel diagonally, so a
   long translate slides it out of the card and leaves a dead zone on one side.
   This range keeps its edges at or beyond the panel bounds the whole way. */
@keyframes studio-sweep {
  0%,
  100% {
    translate: 0 0;
    opacity: 0.03;
  }
  50% {
    translate: 80px 0;
    opacity: 0.09;
  }
}

.home-welcome__facts {
  grid-area: facts;
  align-self: start;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--gold) 20%, var(--line));
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
}

.home-welcome__facts li {
  min-width: 0;
  padding: 18px 14px;
}

.home-welcome__facts li + li {
  border-left: 1px solid color-mix(in srgb, var(--gold) 18%, var(--line));
}

.home-welcome__facts b,
.home-welcome__facts span {
  display: block;
}

.home-welcome__facts b {
  color: var(--gold-deep);
  font-family: var(--font-body);
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: 1.2;
}

.home-welcome__facts span {
  margin-top: 7px;
  color: var(--muted);
  font-size: var(--fs-micro);
  line-height: 1.5;
}

.home-compare {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.home-compare .section-head {
  margin-bottom: clamp(34px, 4vw, 54px);
}

.compare--journey {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 68px);
  margin-top: 0;
  perspective: 1400px;
}

.compare--journey .compare__col {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 500px;
  padding: clamp(28px, 3vw, 38px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--gold) 24%, var(--line));
  border-radius: 32px;
  box-shadow: 0 30px 72px -54px rgba(0, 0, 0, 0.58);
  transform: translateZ(0);
  transform-origin: center;
  backface-visibility: hidden;
  transition:
    transform 0.55s var(--ease),
    filter 0.45s var(--ease),
    border-color 0.45s var(--ease),
    box-shadow 0.55s var(--ease);
}

.compare--journey .compare__col--bad {
  /* The quiet accent for the "old way" column — its numbers and its hover
     edge. Burgundy against the light card: darker than the text, so the
     numbering stays subordinate to the gold column opposite it.

     A variable rather than the colour itself because dark mode has no
     darker-than-the-surface left to go to. #21070d on a #000000 card is not
     subdued, it is gone — the numbers vanished entirely. There the same
     intent has to invert: muted grey, still plainly quieter than gold. */
  --compare-bad-accent: var(--brand-burgundy);
  background: color-mix(in srgb, var(--surface) 90%, var(--bg-alt));
}

:root[data-theme='dark'] .compare--journey .compare__col--bad,
:root[data-theme='auto'][data-night='1'] .compare--journey .compare__col--bad {
  --compare-bad-accent: var(--muted);
}

@media (prefers-color-scheme: dark) {
  :root[data-theme='auto'] .compare--journey .compare__col--bad {
    --compare-bad-accent: var(--muted);
  }
}

.compare--journey .compare__col--good {
  border-color: color-mix(in srgb, var(--gold) 52%, transparent);
  color: var(--deep-ink);
  background: var(--brand-burgundy-deep);
  box-shadow:
    0 34px 78px -54px rgba(0, 0, 0, 0.92),
    inset 0 1px 0 color-mix(in srgb, var(--gold-bright) 20%, transparent);
}

.compare__card-meta,
.compare__outcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.compare__card-meta {
  margin-bottom: 22px;
}

.compare__kicker,
.compare__card-index {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.compare__kicker {
  color: var(--gold-deep);
}

.compare__card-index {
  padding: 7px 11px;
  border: 1px solid color-mix(in srgb, var(--gold) 28%, var(--line));
  border-radius: var(--radius-pill);
  color: var(--muted);
}

.compare__col--good .compare__kicker {
  color: var(--gold-bright);
}

.compare__col--good .compare__card-index {
  border-color: color-mix(in srgb, var(--gold-bright) 30%, transparent);
  color: color-mix(in srgb, var(--deep-ink) 80%, transparent);
}

.compare--journey h3 {
  max-width: none;
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-size: clamp(20px, 1.75vw, 24px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.compare--journey .compare__col--good h3 {
  color: var(--deep-ink);
}

.compare--journey ul {
  flex: 1;
  gap: 0;
}

.compare--journey li {
  align-items: center;
  min-height: 54px;
  padding: 10px 0;
  border-top: 1px solid color-mix(in srgb, var(--gold) 16%, var(--line));
  font-size: var(--fs-sm);
  line-height: 1.55;
  transition:
    transform 0.48s var(--ease),
    color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    opacity 0.35s var(--ease);
}

.compare--journey li:first-child {
  border-top: 0;
}

.compare--journey .compare__mark {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: var(--fs-nano);
  letter-spacing: 0.06em;
  transition:
    transform 0.45s var(--ease),
    color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    background-color 0.35s var(--ease),
    box-shadow 0.45s var(--ease);
}

.compare--journey .compare__col--bad .compare__mark {
  border-color: color-mix(in srgb, var(--compare-bad-accent) 34%, var(--line));
  color: var(--compare-bad-accent);
}

.compare--journey .compare__col--good .compare__mark {
  border-color: color-mix(in srgb, var(--gold-bright) 48%, transparent);
  background: color-mix(in srgb, var(--gold-bright) 10%, transparent);
  color: var(--gold-bright);
}

.compare--journey .compare__col--good li {
  border-color: color-mix(in srgb, var(--gold-bright) 16%, transparent);
  color: color-mix(in srgb, var(--deep-ink) 92%, transparent);
}

.compare__outcome {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid color-mix(in srgb, var(--gold) 24%, var(--line));
  color: var(--muted);
  font-size: var(--fs-tiny);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.45s var(--ease);
}

.compare__outcome strong {
  color: var(--ink);
  font-size: var(--fs-sm);
  letter-spacing: 0;
  text-transform: none;
}

.compare__col--good .compare__outcome {
  border-color: color-mix(in srgb, var(--gold-bright) 22%, transparent);
  color: color-mix(in srgb, var(--deep-ink) 74%, transparent);
}

.compare__col--good .compare__outcome strong {
  color: var(--gold-bright);
}

.compare__bridge {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  padding: 10px;
  border: 7px solid var(--bg);
  border-radius: 50%;
  background: var(--brand-burgundy-deep);
  color: var(--gold-bright);
  box-shadow:
    0 18px 38px -18px rgba(0, 0, 0, 0.68),
    inset 0 0 0 1px color-mix(in srgb, var(--gold) 42%, transparent);
  font-size: var(--fs-micro);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transform: translate(-50%, -50%);
  transition:
    transform 0.55s var(--ease),
    color 0.4s var(--ease),
    background-color 0.4s var(--ease),
    box-shadow 0.5s var(--ease);
}

.reveal.compare__col.is-inview {
  animation: compare-card-enter 0.72s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 110ms);
}

@keyframes compare-card-enter {
  from {
    opacity: 0;
    translate: 0 22px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.compare--journey .compare__col:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

@media (hover: hover) and (pointer: fine) {
  .compare--journey .compare__col--bad:is(:hover, :focus) {
    border-color: color-mix(in srgb, var(--compare-bad-accent) 44%, var(--line));
    box-shadow: 0 36px 82px -50px color-mix(in srgb, var(--brand-burgundy) 40%, transparent);
    transform: translateY(-7px) rotateY(1.2deg);
  }

  .compare--journey .compare__col--bad:is(:hover, :focus) li:nth-child(odd) {
    transform: translateX(-7px);
  }

  .compare--journey .compare__col--bad:is(:hover, :focus) li:nth-child(even) {
    transform: translateX(5px);
  }

  .compare--journey .compare__col--bad:is(:hover, :focus) .compare__mark {
    border-color: color-mix(in srgb, var(--compare-bad-accent) 60%, var(--line));
    background: color-mix(in srgb, var(--compare-bad-accent) 7%, transparent);
    transform: rotate(-7deg);
  }

  .compare--journey .compare__col--bad:is(:hover, :focus) .compare__outcome {
    transform: translateX(-4px);
  }

  .compare--journey .compare__col--good:is(:hover, :focus) {
    border-color: color-mix(in srgb, var(--gold-bright) 72%, transparent);
    box-shadow:
      0 44px 92px -48px rgba(0, 0, 0, 0.96),
      0 18px 58px -34px color-mix(in srgb, var(--gold) 60%, transparent),
      inset 0 1px 0 color-mix(in srgb, var(--gold-bright) 32%, transparent);
    transform: translateY(-10px) rotateY(-1.2deg) scale(1.012);
  }

  .compare--journey .compare__col--good:is(:hover, :focus) li {
    color: var(--deep-ink);
    transform: translateX(8px);
  }

  .compare--journey .compare__col--good:is(:hover, :focus) li:nth-child(2) {
    transition-delay: 35ms;
  }

  .compare--journey .compare__col--good:is(:hover, :focus) li:nth-child(3) {
    transition-delay: 70ms;
  }

  .compare--journey .compare__col--good:is(:hover, :focus) li:nth-child(4) {
    transition-delay: 105ms;
  }

  .compare--journey .compare__col--good:is(:hover, :focus) .compare__mark {
    border-color: var(--gold-bright);
    background: var(--gold);
    color: var(--on-gold);
    box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--gold) 86%, transparent);
    transform: scale(1.1);
  }

  .compare--journey .compare__col--good:is(:hover, :focus) .compare__outcome {
    transform: translateX(5px);
  }

  .compare--journey:has(.compare__col:is(:hover, :focus)) .compare__col:not(:hover, :focus) {
    filter: saturate(0.55) brightness(0.96);
    transform: scale(0.985);
  }

  .compare--journey:has(.compare__col--bad:is(:hover, :focus)) .compare__bridge {
    transform: translate(-50%, -50%) scale(1.08) rotate(-5deg);
  }

  .compare--journey:has(.compare__col--good:is(:hover, :focus)) .compare__bridge {
    color: var(--on-gold);
    background: var(--gold);
    box-shadow: 0 20px 46px -18px color-mix(in srgb, var(--gold) 82%, transparent);
    transform: translate(-50%, -50%) scale(1.14) rotate(5deg);
  }
}

/* ---- Homepage journal: featured article + recent index ------------------
   Print-contents weighting: one lead with its image carries the section, the
   remainder sit beside it as a numbered index. Light surface — no tint — so the
   imagery supplies the colour. */

.home-journal__head {
  max-width: 62ch;
  margin-bottom: clamp(30px, 3.4vw, 48px);
}

.home-journal__head .display {
  margin: 6px 0 10px;
}

.home-journal__grid {
  display: grid;
  /* Even columns: weighting the lead at 1.12fr pushed the cover to ~700px and
     left the index 265px short, which read as a hole beside it. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 52px);
  align-items: stretch;
}

/* ---- Lead article ---- */

.home-journal__lead-link {
  display: grid;
  gap: clamp(16px, 1.8vw, 24px);
  color: var(--ink);
  text-decoration: none;
}

.home-journal__figure {
  position: relative;
  display: block;
  overflow: hidden;
  /* 16:9 rather than 16:11 — the taller crop made the cover the dominant object
     on the page instead of the lead story. */
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  background: color-mix(in srgb, var(--gold-soft) 60%, var(--bg-alt));
  box-shadow: 0 30px 60px -44px color-mix(in srgb, var(--ink) 46%, transparent);
}

.home-journal__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Slow, small push-in — a luxury move only when it stays subtle. */
  transition: transform 900ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.home-journal__lead-link:hover .home-journal__figure img,
.home-journal__lead-link:focus-visible .home-journal__figure img {
  transform: scale(1.04);
}

.home-journal__figure-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: color-mix(in srgb, var(--gold) 55%, transparent);
  font-family: var(--font-body);
  font-size: var(--fs-h1);
  font-weight: 700;
}

.home-journal__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--grad-gold);
  color: var(--on-gold);
  font-size: var(--fs-nano);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-journal__lead-body {
  display: grid;
  gap: 12px;
}

/* Body font and the shared scale — the stylesheet uses var(--font-body)
   everywhere else, and CLAUDE.md rules out per-page font sizes. This was a raw
   clamp rendering at 29px, above every heading token on the page. */
.home-journal__lead-title {
  font-family: var(--font-body);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: var(--lh-heading);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.home-journal__lead-link:hover .home-journal__lead-title,
.home-journal__lead-link:focus-visible .home-journal__lead-title {
  color: var(--gold-deep);
}

.home-journal__lead-excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  max-width: 58ch;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.68;
}

.home-journal__more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 2px;
  color: var(--gold-deep);
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.home-journal__more svg {
  transition: transform var(--dur) var(--ease);
}

.home-journal__lead-link:hover .home-journal__more svg,
.home-journal__lead-link:focus-visible .home-journal__more svg {
  transform: translateX(4px);
}

/* ---- Shared meta line ---- */

.home-journal__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: var(--fs-micro);
  letter-spacing: 0.02em;
}

.home-journal__cat {
  color: var(--gold-deep);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---- Recent index ---- */

.home-journal__aside {
  display: grid;
  /* Rows size to content, then a final flexible track absorbs whatever height
     the lead column has spare — so the "browse" link lands on the same
     baseline as the lead instead of stopping short. */
  grid-template-rows: auto auto 1fr;
  align-content: stretch;
}

.home-journal__aside-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line));
  color: var(--ink);
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-journal__count {
  color: var(--muted);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
}

.home-journal__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-journal__list > li + li {
  border-top: 1px solid color-mix(in srgb, var(--gold) 16%, var(--line));
}

.home-journal__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 16px 10px 16px 2px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
  transition:
    background-color var(--dur) var(--ease),
    padding-left var(--dur) var(--ease);
}

.home-journal__row:hover,
.home-journal__row:focus-visible {
  background: color-mix(in srgb, var(--gold-soft) 52%, transparent);
  padding-left: 12px;
}

.home-journal__num {
  /* --gold at 72% over white is 2.13:1. --gold-deep is the same hue with the
     value it needs to be read at this size, and it flips with the theme. */
  color: var(--gold-deep);
  font-family: var(--font-body);
  font-size: var(--fs-h5);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

.home-journal__row-body {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.home-journal__row-title {
  /* Two lines: these headlines run past 70 characters and would otherwise make
     the rows wildly uneven. */
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.42;
}

.home-journal__row:hover .home-journal__row-title,
.home-journal__row:focus-visible .home-journal__row-title {
  color: var(--gold-deep);
}

.home-journal__all {
  display: inline-flex;
  align-self: end;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding-top: 16px;
  width: 100%;
  border-top: 1px solid color-mix(in srgb, var(--gold) 16%, var(--line));
  color: var(--gold-deep);
  font-size: var(--fs-caption);
  font-weight: 700;
  text-decoration: none;
}

.home-journal__all svg {
  transition: transform var(--dur) var(--ease);
}

.home-journal__all:hover svg,
.home-journal__all:focus-visible svg {
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .home-journal__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-journal__figure img,
  .home-journal__row,
  .home-journal__more svg,
  .home-journal__all svg {
    transition: none;
  }

  .home-journal__lead-link:hover .home-journal__figure img {
    transform: none;
  }
}

.home-testimonials--spotlight {
  color: var(--ink);
  border: 0;
  overflow-x: clip;
  background:
    radial-gradient(
      54% 78% at 100% 0%,
      color-mix(in srgb, var(--gold-soft) 72%, transparent),
      transparent 72%
    ),
    var(--bg-alt);
}

.home-testimonials--spotlight::before {
  background-image: radial-gradient(
    circle,
    color-mix(in srgb, var(--gold) 18%, transparent) 1px,
    transparent 1.5px
  );
  -webkit-mask-image: linear-gradient(105deg, transparent 18%, #000 100%);
  mask-image: linear-gradient(105deg, transparent 18%, #000 100%);
  opacity: 0.3;
}

.home-testimonials--spotlight .eyebrow {
  color: var(--gold-deep);
}

.home-testimonials--spotlight .display {
  color: var(--ink);
}

.home-testimonials--spotlight .lede {
  color: var(--muted);
}

/* Compact masthead: title block and action cluster share one band rather than
   stacking centred, which cost ~90px of vertical space for a section header. */
.home-testimonials--spotlight .home-testimonials__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: clamp(24px, 4vw, 56px);
  row-gap: 20px;
  text-align: left;
}

.home-testimonials--spotlight .home-testimonials__head .lede {
  max-width: 46ch;
  margin-top: 8px;
}

.home-testimonials__actions {
  display: grid;
  justify-items: end;
  gap: 12px;
}

/* Live review count — social proof that pays for the space it takes. */
.home-testimonials__score {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border: 1px solid color-mix(in srgb, var(--gold) 34%, var(--line));
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  white-space: nowrap;
}

.home-testimonials__score-stars {
  /* The stars carry the rating, so they are content, not decoration: --gold on
     this card is 2.88:1 and --gold-deep is 5.9. */
  color: var(--gold-deep);
  font-size: var(--fs-caption);
  letter-spacing: 1px;
}

.home-testimonials__score-text {
  font-size: var(--fs-caption);
  color: var(--muted);
}

.home-testimonials__score-text strong {
  color: var(--ink);
  font-weight: 700;
}

.home-testimonials__buttons {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

/* Below ~900px the two columns no longer both fit — drop to a single column. */
@media (max-width: 900px) {
  .home-testimonials--spotlight .home-testimonials__head {
    grid-template-columns: 1fr;
  }

  .home-testimonials__actions {
    justify-items: start;
  }
}

/* Must live after the base rules above: an identical-specificity selector
   earlier in the file loses regardless of the media query. */
@media (max-width: 640px) {
  .home-testimonials__actions {
    width: 100%;
    justify-items: stretch;
  }

  /* "Share your experience" wraps to two lines if it has to share a 375px row,
     leaving the pair mismatched — stack them instead. */
  .home-testimonials__buttons {
    flex-direction: column;
  }

  .home-testimonials__actions .home-testimonials__buttons > * {
    width: 100%;
    justify-content: center;
  }

  .home-testimonials__score {
    justify-content: center;
  }
}

/* Equal heights so the pair reads as one aligned row, not two stray controls. */
.home-testimonials__buttons > * {
  min-height: 38px;
  padding-block: 0;
  font-size: var(--fs-caption);
}

.home-testimonials__all {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid color-mix(in srgb, var(--gold) 42%, var(--line));
  border-radius: var(--radius-pill);
  color: var(--gold-deep);
  font-size: var(--fs-caption);
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}

.home-testimonials__all:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
  text-decoration: none;
}

.home-stories__viewport {
  display: grid;
  grid-template-columns: minmax(206px, 0.76fr) minmax(420px, 1.3fr) minmax(206px, 0.76fr);
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  /* Stay inside the container so the cards line up with the header, footer and
     every other section (side cards peek, they don't bleed off-screen). */
  margin-inline: 0;
  overflow: hidden;
  perspective: 1200px;
}

.home-story-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 306px;
  padding: clamp(24px, 3vw, 42px);
  border: 1px solid color-mix(in srgb, var(--gold) 24%, var(--line));
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 94%, var(--gold-soft));
  color: var(--ink);
  box-shadow:
    0 28px 64px -42px color-mix(in srgb, var(--ink) 34%, transparent),
    0 1px 0 color-mix(in srgb, #ffffff 68%, transparent) inset;
  transition:
    transform 560ms cubic-bezier(0.2, 0.75, 0.25, 1),
    opacity 420ms var(--ease),
    box-shadow 420ms var(--ease),
    filter 420ms var(--ease);
}

.home-story-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

/* Full-card hit area on the neighbouring quotes. Sits above the content but
   below nothing else, so the whole card reads as one control. */
.home-story-card__jump {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}

.home-story-card__jump:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.home-story-card--active {
  z-index: 2;
  min-height: 342px;
  overflow: hidden;
  /* A real border, not a masked gradient ring. The ring depended on
     mask-composite, which renders inconsistently across browsers and dropped its
     horizontal edges — this draws identically on all four sides everywhere. The
     white inset highlight is also dropped; stacked with the border it read as a
     doubled band across the top and bottom. */
  border: 2px solid var(--gold);
  box-shadow: 0 28px 64px -42px color-mix(in srgb, var(--ink) 34%, transparent);
  transform: translateZ(34px);
  animation: home-story-active-in 620ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

/* Oversized quote glyph bled off the corner — depth behind the words. It fades
   out before the card edge: overflow:hidden would otherwise slice it flat and
   leave a hard block sitting on the bottom border. */
.home-story-card--active::after {
  content: '\201D';
  position: absolute;
  right: clamp(10px, 2vw, 30px);
  bottom: clamp(-70px, -6vw, -44px);
  z-index: 0;
  color: color-mix(in srgb, var(--gold) 13%, transparent);
  font-family: var(--font-body);
  font-size: clamp(150px, 14vw, 215px);
  line-height: 1;
  -webkit-mask-image: linear-gradient(to bottom, #000 38%, transparent 88%);
  mask-image: linear-gradient(to bottom, #000 38%, transparent 88%);
  pointer-events: none;
  user-select: none;
}

.home-story-card--active .home-story-card__body {
  position: relative;
  z-index: 2;
}

/* Side cards sit flush with the container edge — no inward offset — so the row
   lines up with the header, footer and every other section. */
.home-story-card--previous {
  opacity: 0.72;
  filter: saturate(0.82);
  transform-origin: left center;
  transform: scale(0.9) rotateY(6deg);
  animation: home-story-side-left-in 620ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.home-story-card--next {
  opacity: 0.72;
  filter: saturate(0.82);
  transform-origin: right center;
  transform: scale(0.9) rotateY(-6deg);
  animation: home-story-side-right-in 620ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

/* The neighbours are now controls, so they answer to the pointer: they come
   forward and clear their haze on hover rather than sitting there inert. */
.home-story-card--previous:hover,
.home-story-card--previous:focus-within {
  opacity: 0.95;
  filter: none;
  transform: scale(0.94) rotateY(3deg);
  box-shadow:
    0 34px 70px -40px color-mix(in srgb, var(--ink) 40%, transparent),
    0 1px 0 color-mix(in srgb, #ffffff 68%, transparent) inset;
}

.home-story-card--next:hover,
.home-story-card--next:focus-within {
  opacity: 0.95;
  filter: none;
  transform: scale(0.94) rotateY(-3deg);
  box-shadow:
    0 34px 70px -40px color-mix(in srgb, var(--ink) 40%, transparent),
    0 1px 0 color-mix(in srgb, #ffffff 68%, transparent) inset;
}

@keyframes home-story-active-in {
  from {
    opacity: 0.28;
    filter: blur(2px) saturate(0.85);
    transform: translateY(18px) scale(0.975);
  }
  to {
    opacity: 1;
    filter: none !important;
    filter: none;
    transform: translateZ(34px);
  }
}

@keyframes home-story-side-left-in {
  from {
    opacity: 0;
    transform: translateX(12%) scale(0.86) rotateY(8deg);
  }
  to {
    opacity: 0.72;
    transform: scale(0.9) rotateY(6deg);
  }
}

@keyframes home-story-side-right-in {
  from {
    opacity: 0;
    transform: translateX(-12%) scale(0.86) rotateY(-8deg);
  }
  to {
    opacity: 0.72;
    transform: scale(0.9) rotateY(-6deg);
  }
}

@keyframes home-story-mobile-in {
  from {
    opacity: 0.25;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes home-testimonials-reveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@supports (animation-timeline: view()) {
  .home-testimonials--spotlight .home-testimonials__head,
  .home-testimonials--spotlight .home-stories__viewport,
  .home-testimonials--spotlight .home-stories__controls {
    animation: home-testimonials-reveal both;
    animation-timeline: view();
    animation-range: entry 8% cover 30%;
  }

  .home-testimonials--spotlight .home-stories__viewport {
    animation-range: entry 4% cover 28%;
  }

  .home-testimonials--spotlight .home-stories__controls {
    animation-range: entry 0% cover 22%;
  }
}

.home-story-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.home-story-card__mark {
  height: 40px;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 72px;
  line-height: 0.82;
}

.home-story-card__stars {
  color: var(--gold-deep);
  font-size: var(--fs-caption);
  letter-spacing: 0.12em;
}

.home-story-card blockquote {
  margin: 22px 0;
}

.home-story-card blockquote p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
  font-size: var(--fs-h5);
  line-height: 1.75;
}

/* Neighbouring quotes read as a preview, not a paragraph someone chopped:
   fewer lines, and the last one dissolves instead of ending on a hard cut. */
.home-story-card--previous blockquote p,
.home-story-card--next blockquote p {
  -webkit-line-clamp: 5;
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.home-story-card--active .testi-avatar {
  background: var(--grad-gold);
  color: var(--on-gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent);
}

.home-story-card__client {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.home-stories__controls {
  display: grid;
  grid-template-columns: auto auto minmax(180px, 520px) auto;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  margin-top: 34px;
}

.home-stories__control {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid color-mix(in srgb, var(--gold) 44%, var(--line));
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-caption);
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}

.home-stories__control:hover,
.home-stories__control:focus-visible {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.home-stories__count {
  color: var(--gold-deep);
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.home-stories__progress {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  gap: 5px;
}

.home-stories__progress button {
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--gold) 24%, var(--line));
  cursor: pointer;
  transition:
    background-color var(--dur),
    transform var(--dur);
}

.home-stories__progress button.is-active {
  background: var(--gold);
  transform: scaleY(2);
}

.home-stories__progress button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* The neighbouring story cards need roughly 260px before their quotes stop
   wrapping into three-word lines and client roles stop stacking four deep.
   Below this they are dropped for the single card rather than shown squeezed. */
@media (max-width: 1200px) {
  .home-stories__viewport {
    display: block;
    margin-inline: 0;
    overflow: visible;
  }

  .home-story-card--previous,
  .home-story-card--next {
    display: none;
  }

  .home-story-card--active {
    min-height: 360px;
    transform: none;
    animation-name: home-story-mobile-in;
  }
}

/* The studio graphic is aspect-locked, so it cannot grow taller to follow the
   copy. Below this width the copy column gets narrow enough to wrap into a
   noticeably taller card, so the two stack instead of sitting side by side at
   mismatched heights. */
@media (max-width: 1100px) {
  .home-welcome__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      'copy'
      'visual';
  }

  .home-welcome__title {
    max-width: 18ch;
  }

  .home-studio-visual {
    align-self: center;
    justify-self: center;
    height: auto;
    /* Stacked under the copy, the 556px cap left the graphic as a narrow island
       beneath a card up to 963px wide — 407px short of it at 1024. It takes the
       card's width now.
       The cap is where the aspect-locked graphic stops being sensible rather
       than an arbitrary round number: it is 0.88 as tall as it is wide, so at
       820px it already stands 717px high, and letting it fill 963px would make
       it 842px — taller than the screen it is being read on. Portrait tablets
       (768 and 820) come in under the cap and match the card exactly. */
    width: min(100%, 820px);
  }

  .home-studio-motion {
    height: auto;
  }
}

@media (max-width: 1000px) {
  .home-stories__viewport {
    grid-template-columns: minmax(130px, 0.4fr) minmax(380px, 1fr) minmax(130px, 0.4fr);
    margin-inline: 0;
  }
}

@media (max-width: 760px) {
  .home-welcome__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .home-welcome__title {
    font-size: clamp(30px, 8vw, 42px);
  }

  .home-studio-visual {
    width: min(520px, 100%);
    margin-top: 12px;
  }

  .home-welcome__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-welcome__facts li:nth-child(3) {
    border-left: 0;
  }

  .home-welcome__facts li:nth-child(n + 3) {
    border-top: 1px solid color-mix(in srgb, var(--gold) 18%, var(--line));
  }

  .compare--journey {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .compare--journey .compare__col {
    min-height: 0;
  }

  .compare--journey h3 {
    white-space: normal;
  }

  .compare__bridge {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    height: auto;
    justify-self: center;
    padding: 9px 18px;
    border-width: 4px;
    border-radius: var(--radius-pill);
    transform: none;
  }

  .home-testimonials__head {
    align-items: flex-start;
  }

  .home-testimonials--spotlight .home-testimonials__head {
    justify-items: start;
    text-align: left;
  }

  .home-testimonials--spotlight .home-testimonials__head > div:not(.home-testimonials__actions) {
    justify-items: start;
  }

  .home-stories__controls {
    grid-template-columns: auto 1fr auto;
  }

  .home-stories__count {
    text-align: center;
  }

  .home-stories__progress {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 520px) {
  .home-welcome__copy {
    padding: 26px 22px;
    border-radius: 26px;
  }

  .home-welcome__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .home-welcome__message {
    margin-top: 22px;
    padding-left: 14px;
  }

  .home-welcome__disciplines {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 24px;
  }

  .home-welcome__disciplines li + li {
    padding-left: 8px;
    border-left: 1px solid color-mix(in srgb, var(--gold) 18%, var(--line));
  }

  .home-welcome__disciplines li {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    font-size: 9px;
    letter-spacing: 0.05em;
  }

  .home-studio-visual {
    margin-inline: -8px;
    width: calc(100% + 16px);
  }

  .home-testimonials__all {
    align-self: flex-start;
  }

  .home-story-card {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-studio-motion *,
  .home-welcome__copy,
  .home-welcome__copy.is-inview > *,
  /* Listed explicitly: the title and accent rules outrank the `> *` selector
     above on specificity, so they would otherwise keep animating here. */
  .home-welcome__copy.is-inview .home-welcome__title,
  .home-welcome__accent,
  .home-welcome__disciplines span,
  .compare--journey .compare__col,
  .compare--journey li,
  .compare--journey .compare__mark,
  .compare--journey .compare__outcome,
  .compare--journey .compare__bridge,
  .home-story-card,
  .home-stories__progress button,
  .home-testimonials--spotlight .home-testimonials__head,
  .home-testimonials--spotlight .home-stories__viewport,
  .home-testimonials--spotlight .home-stories__controls {
    animation: none;
    transition: none;
  }

  .compare--journey .compare__col,
  .compare--journey li,
  .compare--journey .compare__mark,
  .compare--journey .compare__outcome {
    opacity: 1;
    transform: none !important;
    translate: 0 0;
  }

  .compare--journey .compare__bridge {
    transform: translate(-50%, -50%) !important;
  }

  .home-story-card--previous,
  .home-story-card--active,
  .home-story-card--next {
    transform: none;
  }
}

/* ---- 404 --------------------------------------------------------------
   Reuses the studio graphic's language: same panel, orbits and service nodes,
   but the core reads 404 and one link is severed. The point is that the page
   is missing, not the studio. */

.nf__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
}

.nf__code {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid color-mix(in srgb, var(--danger) 34%, var(--line));
  border-radius: var(--radius-pill);
  color: var(--danger);
}

.nf__copy .display {
  margin: 14px 0 12px;
}

.nf__copy .lede {
  max-width: 52ch;
}

.nf__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(20px, 2.4vw, 30px);
}

.nf__services {
  margin-top: clamp(24px, 2.8vw, 36px);
  padding-top: clamp(18px, 2vw, 24px);
  border-top: 1px solid color-mix(in srgb, var(--gold) 26%, var(--line));
}

.nf__services-label {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nf__services ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nf__service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid color-mix(in srgb, var(--gold) 24%, var(--line));
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--fs-caption);
  font-weight: 600;
  text-decoration: none;
  transition:
    border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.nf__service:hover,
.nf__service:focus-visible {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.nf__service-arrow {
  color: var(--gold-deep);
}

.nf__links {
  margin-top: clamp(18px, 2vw, 24px);
  color: var(--muted);
  font-size: var(--fs-sm);
}

.nf-visual {
  margin: 0;
  min-width: 0;
}

.nf-motion {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* The severed link: same stroke as the live flows, cut at the break point. */
.nf-broken path {
  fill: none;
  stroke: color-mix(in srgb, var(--danger) 44%, transparent);
  stroke-width: 2;
  stroke-dasharray: 5 7;
  stroke-linecap: round;
}

.nf-break circle {
  fill: color-mix(in srgb, var(--danger) 14%, var(--surface));
  stroke: color-mix(in srgb, var(--danger) 52%, transparent);
  stroke-width: 1.5;
}

.nf-break path {
  stroke: var(--danger);
  stroke-width: 2;
  stroke-linecap: round;
}

/* The unreachable node reads as dimmed and dashed rather than gold. */
.nf-node--offline > rect {
  stroke-dasharray: 6 6;
  opacity: 0.75;
}

.nf-node--offline text {
  fill: var(--muted);
}

.nf-core-code {
  fill: var(--deep-ink);
  font-family: var(--font-body);
  font-size: 54px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

@media (max-width: 900px) {
  .nf__inner {
    grid-template-columns: 1fr;
  }

  /* Graphic after the copy on a phone: the way out matters more than the art. */
  .nf-visual {
    order: 2;
  }
}

@media (max-width: 520px) {
  .nf__services ul {
    grid-template-columns: 1fr;
  }
}

/* ---- Article tags -------------------------------------------------------
   Posts carry 1–71 tags (median 12), so this is a wrapping cloud rather than a
   row: it has to stay readable at both extremes. */

.article__tags {
  margin-top: clamp(30px, 3.4vw, 46px);
  padding-top: clamp(20px, 2.2vw, 28px);
  border-top: 1px solid color-mix(in srgb, var(--gold) 26%, var(--line));
}

.article__tags-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--ink);
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article__tags-count {
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--gold) 16%, var(--surface));
  color: var(--gold-deep);
  font-size: var(--fs-nano);
  letter-spacing: 0.04em;
}

.article__tags ul {
  --tag-row: 29px; /* pill height: 11px text × 1.5 + 10px padding + 2px border */
  --tag-gap: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: var(--tag-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Three rows, derived from the pill height rather than a guessed pixel value so
   it stays exact if the type scale moves. */
.article__tags ul.is-clamped {
  overflow: hidden;
  max-height: calc(var(--tag-row) * 3 + var(--tag-gap) * 2);
}

.article__tags-toggle {
  margin-top: 14px;
  padding: 7px 15px;
  border: 1px solid color-mix(in srgb, var(--gold) 38%, var(--line));
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--gold-deep);
  font: inherit;
  font-size: var(--fs-caption);
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.article__tags-toggle:hover,
.article__tags-toggle:focus-visible {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.article__tags li a,
.article__tags li span {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid color-mix(in srgb, var(--gold) 22%, var(--line));
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--gold-soft) 40%, transparent);
  color: var(--muted);
  font-size: var(--fs-micro);
  line-height: 1.5;
  text-decoration: none;
  transition:
    border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.article__tags li a:hover,
.article__tags li a:focus-visible {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold-deep);
}

/* ---- Prose code ---------------------------------------------------------
   The renderer only started emitting <code>/<pre> once inline code and fenced
   blocks were supported, so these had no styling at all before. */

.prose code {
  padding: 2px 6px;
  border: 1px solid color-mix(in srgb, var(--gold) 20%, var(--line));
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--gold-soft) 42%, transparent);
  color: var(--gold-deep);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  word-break: break-word;
}

/* Code box: a titled bar with a copy button above the snippet. */
.codebox {
  margin: clamp(18px, 2vw, 26px) 0;
  border: 1px solid color-mix(in srgb, var(--gold) 24%, var(--line));
  border-radius: var(--radius);
  background: var(--bg-alt);
  overflow: hidden;
}

.codebox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px 8px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 20%, var(--line));
  background: color-mix(in srgb, var(--gold-soft) 34%, transparent);
}

.codebox__lang {
  color: var(--gold-deep);
  font-size: var(--fs-nano);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.codebox__copy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid color-mix(in srgb, var(--gold) 34%, var(--line));
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--gold-deep);
  font: inherit;
  font-size: var(--fs-nano);
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.codebox__copy:hover,
.codebox__copy:focus-visible {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.codebox__copy.is-copied {
  border-color: color-mix(in srgb, var(--gold) 60%, transparent);
  background: var(--gold-soft);
}

.codebox pre {
  /* Wide snippets scroll inside their own box; the page never scrolls sideways. */
  overflow-x: auto;
  margin: 0;
  padding: clamp(14px, 1.6vw, 20px);
  background: none;
}

.prose pre {
  overflow-x: auto;
  margin: clamp(18px, 2vw, 26px) 0;
  padding: clamp(16px, 1.8vw, 22px);
  border: 1px solid color-mix(in srgb, var(--gold) 22%, var(--line));
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.codebox pre code {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--fs-caption);
  line-height: 1.7;
  white-space: pre;
  word-break: normal;
}

.prose pre code {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--ink);
  font-size: var(--fs-caption);
  line-height: 1.7;
  white-space: pre;
  word-break: normal;
}

/* h5/h6 now render as real headings rather than literal hashes. */
.prose h5,
.prose h6 {
  margin: clamp(20px, 2.2vw, 28px) 0 8px;
  color: var(--ink);
  font-size: var(--fs-h6);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---- Tag index & tag pages ---------------------------------------------
   1,904 tags, so the index is grouped A–Z with a jump bar; a flat cloud that
   long is unusable. */

.tag-index__popular {
  margin-bottom: clamp(28px, 3vw, 40px);
}

.tag-index__cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px 7px 14px;
  border: 1px solid color-mix(in srgb, var(--gold) 22%, var(--line));
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--fs-micro);
  font-weight: 600;
  text-decoration: none;
  transition:
    border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.tag-chip:hover,
.tag-chip:focus-visible {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.tag-chip--lg {
  padding: 9px 9px 9px 16px;
  font-size: var(--fs-caption);
}

.tag-chip__count {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--gold) 16%, var(--bg-alt));
  color: var(--gold-deep);
  font-size: var(--fs-nano);
  font-weight: 700;
}

/* Sticky jump bar: scrolls with 26 letter groups below it. */
.tag-index__jump {
  position: sticky;
  top: calc(var(--header-h) + 8px);
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: clamp(24px, 2.6vw, 34px) 0 clamp(18px, 2vw, 26px);
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--gold) 20%, var(--line));
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
}

.tag-index__jump a {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: var(--fs-caption);
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.tag-index__jump a:hover,
.tag-index__jump a:focus-visible {
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.tag-index__group {
  /* Clears the sticky jump bar when an anchor link lands here. */
  scroll-margin-top: calc(var(--header-h) + 64px);
  margin-bottom: clamp(24px, 2.8vw, 36px);
}

.tag-index__letter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line));
  color: var(--gold-deep);
  font-size: var(--fs-h4);
  font-weight: 700;
}

.tag-index__letter span {
  color: var(--muted);
  font-size: var(--fs-micro);
  font-weight: 600;
}

.tag-head {
  margin-bottom: clamp(20px, 2.4vw, 30px);
}

.tag-head .lede {
  margin-top: 8px;
}

/* ---- Review form + testimonials sidebar --------------------------------- */

.review-block {
  margin-top: clamp(36px, 4vw, 56px);
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid color-mix(in srgb, var(--gold) 26%, var(--line));
}

.review-block .lede {
  max-width: 62ch;
  margin-bottom: clamp(20px, 2.4vw, 28px);
}

.review-form {
  display: grid;
  gap: 16px;
}

.review-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.review-form__sum {
  max-width: 320px;
}

.review-form__error {
  margin: 0;
  padding: 10px 14px;
  border: 1px solid color-mix(in srgb, var(--danger) 34%, var(--line));
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--danger) 8%, transparent);
  color: var(--danger);
  font-size: var(--fs-sm);
}

.review-form .btn {
  justify-self: start;
}

.review-form__note {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-micro);
}

.review-form--done {
  justify-items: start;
  gap: 8px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid color-mix(in srgb, var(--gold) 34%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--gold-soft) 42%, transparent);
}

.review-form__tick {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--grad-gold);
  color: var(--on-gold);
  font-size: var(--fs-h5);
  font-weight: 700;
}

.review-form--done h3 {
  margin: 6px 0 0;
  font-size: var(--fs-h4);
}

.review-form--done p {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: var(--fs-sm);
}

/* ---- Sidebar ---- */

.reviews-side {
  display: grid;
  align-content: start;
  gap: 16px;
  position: sticky;
  top: calc(var(--header-h) + 18px);
}

.reviews-side__card {
  padding: clamp(18px, 2vw, 24px);
  border: 1px solid color-mix(in srgb, var(--gold) 22%, var(--line));
  border-radius: var(--radius);
  background: var(--surface);
}

.reviews-side__card h2 {
  margin: 0 0 12px;
  font-size: var(--fs-h5);
  font-weight: 700;
}

.reviews-side__card--stat {
  display: grid;
  justify-items: start;
  gap: 2px;
  background:
    radial-gradient(
      120% 90% at 100% 0%,
      /* Fixed hex, not var(--gold): the token flips to #e7c27a in dark, so a
         14% wash that barely tints a white card lifted the dark one to
         rgb(57,54,50) and dropped the 11px small print under it to 4.39:1.
         The light-mode gold holds the same warmth in both modes. */
      rgba(255, 178, 54, 0.14),
      transparent 62%
    ),
    var(--surface);
}

.reviews-side__stars {
  /* Same reasoning as the home score row: --gold on this tinted card measured
     2.59:1. */
  color: var(--gold-deep);
  font-size: var(--fs-h5);
  letter-spacing: 0.1em;
}

.reviews-side__card--stat strong {
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.05;
}

.reviews-side__card--stat > span:last-of-type {
  color: var(--muted);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.reviews-side__card--stat p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: var(--fs-micro);
  line-height: 1.6;
}

.reviews-side__hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: var(--fs-micro);
  line-height: 1.6;
}

.reviews-side__links {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reviews-side__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease);
}

.reviews-side__links a:hover,
.reviews-side__links a:focus-visible {
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.reviews-side__links span {
  color: var(--gold-deep);
}

.reviews-side__card--cta {
  border-color: transparent;
  background: linear-gradient(150deg, var(--brand-burgundy-mid), var(--brand-burgundy-deep));
  color: var(--deep-ink);
}

.reviews-side__card--cta h2,
.reviews-side__card--cta .eyebrow {
  color: var(--gold-bright);
}

.reviews-side__card--cta p {
  margin: 0 0 14px;
  color: var(--deep-muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .reviews-side {
    position: static;
  }
}

@media (max-width: 640px) {
  .review-form__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Domain tools — WHOIS / SSL / DNS
   A single widget with three tabs, embedded on the home page and the domain
   service page, and used standalone on the /tools/ pages.
   ========================================================================== */

.dt {
  --dt-radius: 20px;
  width: 100%;
  container-type: inline-size;
}

.dt__shell {
  position: relative;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid color-mix(in srgb, var(--gold) 26%, var(--line));
  border-radius: var(--dt-radius);
  background:
    radial-gradient(
      68% 120% at 100% 0%,
      color-mix(in srgb, var(--gold-soft) 62%, transparent),
      transparent 70%
    ),
    var(--surface);
  box-shadow: 0 26px 60px -44px rgba(0, 0, 0, 0.6);
}

/* ---- tabs ----
   A horizontal accordion: the chosen tool expands and the other three collapse
   to icon + name. flex-grow (not width) keeps all four sharing the row exactly,
   whatever the container width — but it is set, not transitioned: animating it
   re-runs layout on every frame, and the size change is now instant. */
.dt__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.dt__tab {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  /* No overflow clipping. It was here to contain the old full-width sweep,
     which is gone — and it also clipped the New badge, which is pinned just
     outside the corner. The underline that replaced the sweep is inset
     within the box, so nothing needs cropping any more. */
  border: 1px solid transparent;
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg-alt) 74%, transparent);
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
  /* No flex-grow here on purpose. Animating it re-ran layout every frame for
     420ms — for all four tabs and the input row under them — which is the
     expensive kind of animation and the reason a tab took most of a second to
     settle. The size change now happens on the frame you click, and only
     colour moves. */
  transition:
    background-color 120ms var(--ease),
    border-color 120ms var(--ease),
    color 120ms var(--ease),
    box-shadow 120ms var(--ease);
}

/* A gold rule that wipes in along the bottom of the tab you just chose.
   Replaces a 900ms sweep across the whole tab, which was still visibly running
   long after the click had registered — the effect outlasting the interaction
   is what reads as slow, not the effect itself.

   scaleX on a pseudo-element: transform and opacity only, so it never touches
   layout or paint. 200ms, no delay. */
.dt__tab.is-on::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-gold);
  transform: scaleX(0);
  transform-origin: left center;
  animation: dt-underline 200ms var(--ease) both;
  pointer-events: none;
}

@keyframes dt-underline {
  to {
    transform: scaleX(1);
  }
}

/* The icon settles into place with it — one 160ms pop, not a second gesture
   competing with the rule above. */
.dt__tab.is-on .dt__tab-ic {
  animation: dt-pop 160ms var(--ease) both;
}

@keyframes dt-pop {
  from {
    transform: scale(0.86);
  }
  to {
    transform: scale(1);
  }
}

/* Someone who asked for less movement gets the state, not the gesture. */
@media (prefers-reduced-motion: reduce) {
  .dt__tab.is-on::after,
  .dt__tab.is-on .dt__tab-ic {
    animation: none;
  }

  .dt__tab.is-on::after {
    transform: scaleX(1);
  }
}

.dt__tab:hover {
  border-color: color-mix(in srgb, var(--gold) 38%, var(--line));
  color: var(--ink);
}

.dt__tab.is-on {
  flex-grow: 2.15;
  border-color: color-mix(in srgb, var(--gold) 52%, transparent);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 12px 26px -20px rgba(255, 178, 54, 0.9);
}

.dt__tab-ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  transition:
    background-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.dt__tab-ic svg {
  width: 18px;
  height: 18px;
}

.dt__tab.is-on .dt__tab-ic {
  background: var(--grad-gold);
  color: var(--on-gold);
}

.dt__tab-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.dt__tab-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: var(--fs-sm);
  font-weight: 700;
  /* A collapsed tab is narrow — without this "Domain Search" broke onto two
     lines and the three tabs stopped sharing a baseline. */
  white-space: nowrap;
}

.dt__tab-index {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--gold) 26%, transparent);
  color: var(--gold-deep);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* --on-gold is near-black, which is correct on the bright gold gradient but
   measured only 2.36:1 on the dark --gold-deep fill — the digit was
   effectively unreadable. Cream on that fill measures about 7:1. */
.dt__tab.is-on .dt__tab-index {
  background: var(--gold-deep);
  color: var(--gold-soft);
}

.dt__tab-note {
  display: block;
  font-size: var(--fs-caption);
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  /* Collapsed tabs keep icon + name only; the note grows back with the tab. */
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.34s var(--ease),
    opacity 0.24s var(--ease);
}

.dt__tab.is-on .dt__tab-note {
  max-height: 22px;
  opacity: 1;
}

/* When the widget is embedded in a narrower panel, the two inactive tools
   collapse to tactile icon buttons automatically. The active tool keeps the
   descriptive label, so the row stays useful without clipping at tablet and
   mobile widths. */
.dt__tab-short {
  display: none;
}

/* 870, not the 650 this was tuned at. That number gave three tabs about 210px
   each; a fourth tool arrived and the same width now clips every label to
   "SSL Ch", "DNS Cl", "AI Rea". The threshold is a function of how many tabs
   there are, so it moved with them. */
@container (max-width: 870px) {
  .dt__tab:not(.is-on) {
    /* Wider than the old 56px icon-only button so the name fits under it. */
    flex: 0 0 74px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding-inline: 8px;
  }

  /* An icon alone does not say which tool it is, so a collapsed tab shows its
     short name — Domain / SSL / DNS — instead of nothing. */
  .dt__tab:not(.is-on) .dt__tab-short {
    display: block;
    color: var(--muted);
    font-size: var(--fs-nano);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
  }

  .dt__tab:not(.is-on):hover .dt__tab-short {
    color: var(--gold-deep);
  }

  .dt__tab:not(.is-on) .dt__tab-text {
    width: 0;
    max-width: 0;
    opacity: 0;
    transform: translateX(-7px);
    transition:
      max-width 0.36s var(--ease),
      opacity 0.2s var(--ease),
      transform 0.36s var(--ease);
  }

  .dt__tab.is-on {
    flex: 1 1 auto;
  }
}

/* ---- search bar ---- */
.dt__bar {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line));
  border-radius: var(--radius-pill);
  background: var(--surface);
  overflow: hidden;
  transition:
    border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.dt__bar:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 16%, transparent);
}

.dt__prefix {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 0 2px 0 20px;
  color: var(--gold-deep);
  font-size: var(--fs-sm);
  font-weight: 700;
  user-select: none;
}

.dt__input {
  flex: 1;
  min-width: 0;
  padding: 14px 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-sm);
}

.dt__input:focus {
  outline: none;
}

.dt__input::placeholder {
  color: color-mix(in srgb, var(--muted) 78%, transparent);
}

.dt__go {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 clamp(18px, 2.4vw, 30px);
  border: 0;
  background: var(--grad-gold);
  color: var(--on-gold);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 700;
  cursor: pointer;
  transition: filter var(--dur-fast) var(--ease);
}

.dt__go:hover:not(:disabled) {
  filter: brightness(1.06);
}

.dt__go:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.dt__spinner {
  width: 14px;
  height: 14px;
  border: 2px solid color-mix(in srgb, var(--on-gold) 35%, transparent);
  border-top-color: var(--on-gold);
  border-radius: 50%;
  animation: dt-spin 0.7s linear infinite;
}

@keyframes dt-spin {
  to {
    transform: rotate(360deg);
  }
}

.dt__hint {
  margin: 10px 2px 0;
  font-size: var(--fs-caption);
  color: var(--muted);
}

/* ---- results ---- */
.dt__result {
  margin-top: 14px;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid var(--line);
  border-radius: var(--dt-radius);
  background: var(--surface);
  animation: dt-rise var(--dur) var(--ease) both;
}

@keyframes dt-rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.dt__error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: var(--danger);
  font-size: var(--fs-sm);
}

.dt__error-ic {
  flex: none;
  width: 18px;
  height: 18px;
}

.dt__error-ic svg {
  width: 18px;
  height: 18px;
}

/* verdict banner */
.dt-verdict {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg-alt);
}

.dt-verdict__ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
}

.dt-verdict__ic svg {
  width: 19px;
  height: 19px;
}

.dt-verdict.is-good .dt-verdict__ic {
  background: var(--grad-gold);
  color: var(--on-gold);
}

.dt-verdict.is-taken .dt-verdict__ic,
.dt-verdict.is-bad .dt-verdict__ic {
  background: color-mix(in srgb, var(--danger) 14%, var(--surface));
  color: var(--danger);
}

.dt-verdict.is-warn .dt-verdict__ic {
  background: var(--warn-tint);
  color: var(--warn);
}

.dt-verdict__text {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.dt-verdict__text strong {
  font-size: var(--fs-h5);
  word-break: break-all;
}

.dt-verdict__text span {
  font-size: var(--fs-sm);
  color: var(--muted);
}

.dt-verdict__cta {
  flex: none;
}

.dt-days {
  flex: none;
  display: grid;
  justify-items: center;
  padding: 6px 14px;
  border-radius: 12px;
  background: var(--surface);
  line-height: 1.15;
}

.dt-days strong {
  font-size: var(--fs-h4, 20px);
  color: var(--gold-deep);
}

.dt-days.is-warn strong {
  color: var(--warn);
}

.dt-days span {
  font-size: var(--fs-nano, 10px);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* detail grid */
.dt-grid {
  display: grid;
  /* 320px floor: at 240 this fell into four columns and hostnames such as
     eva.ns.cloudflare.com broke mid-word. */
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2px 26px;
  margin: 16px 0 0;
}

.dt-row {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.dt-row dt {
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--muted);
}

.dt-row dd {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--ink);
  overflow-wrap: anywhere;
}

.dt-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 3px;
}

.dt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dt-chip {
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: var(--fs-caption);
  font-weight: 600;
}

/* raw record */
.dt-raw {
  margin-top: 16px;
}

/* Green, matching the copy buttons and the available verdict: this reads as a
   safe, informational action rather than a commercial one, which is what the
   gold accent signals elsewhere on the page. */
.dt-raw__toggle {
  padding: 7px 15px;
  border: 1px solid color-mix(in srgb, var(--ok) 34%, var(--line));
  border-radius: var(--radius-pill);
  background: var(--ok-tint);
  color: var(--ok);
  font: inherit;
  font-size: var(--fs-caption);
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}

.dt-raw__toggle:hover {
  border-color: transparent;
  background: var(--ok);
  color: #fff;
}

.dt-raw__body {
  max-height: 340px;
  margin: 12px 0 0;
  padding: 14px 16px;
  overflow: auto;
  border-radius: 12px;
  background: var(--bg-alt);
  color: var(--ink);
  font-size: var(--fs-caption);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

/* DNS flags */
.dt-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dt-flag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: var(--fs-caption);
  font-weight: 600;
}

.dt-flag.is-on {
  border-color: color-mix(in srgb, var(--gold) 46%, transparent);
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.dt-flag__ic {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
}

.dt-flag__ic svg {
  width: 13px;
  height: 13px;
}

/* DNS records */
.dt-records {
  display: grid;
  gap: 2px;
  margin-top: 16px;
}

.dt-record {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.dt-record__type {
  font-size: var(--fs-caption);
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--gold-deep);
}

.dt-record__values {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.dt-record__values code {
  font-size: var(--fs-caption);
  color: var(--ink);
  word-break: break-all;
}

.dt-record__err {
  font-size: var(--fs-caption);
  color: var(--danger);
}

/* Below 720px the tabs stack: one full-width row per tool, each keeping its
   name and description. That is the readable, tappable shape on a phone.

   Everything from `.dt__tab-short` down undoes the `@container (max-width:
   870px)` collapse above, which is a *different* design for the same widths —
   inactive tabs shrunk to 74px icon buttons in a row. Both fired below 650px,
   so each inactive tool rendered as a full-width box containing a centred icon,
   a tiny SSL/DNS label, and its real text still occupying space at `width: 0;
   opacity: 0`. Two layouts in one element, which is what made it look broken.

   These rules match the container query's `.dt__tab:not(.is-on)` specificity
   and sit later in the sheet, so the stacked layout wins outright. */
@media (max-width: 720px) {
  .dt__tabs {
    flex-direction: column;
    gap: 6px;
  }
  .dt__tab,
  .dt__tab.is-on {
    flex-grow: 0;
  }

  /* Every tab is a full-width row again, active or not. */
  .dt__tab:not(.is-on) {
    flex: 0 0 auto;
    flex-direction: row;
    justify-content: flex-start;
    gap: 13px;
    padding-inline: 14px;
  }

  /* The short name is for the icon-only shape, which no longer exists here. */
  .dt__tab:not(.is-on) .dt__tab-short {
    display: none;
  }

  /* And the real label comes back out of its collapsed state. */
  .dt__tab:not(.is-on) .dt__tab-text {
    width: auto;
    max-width: none;
    opacity: 1;
    transform: none;
  }
  .dt__tab-note {
    max-height: 40px;
    opacity: 1;
    white-space: normal;
  }
  .dt__bar {
    flex-wrap: wrap;
    border-radius: 18px;
  }
  .dt__prefix {
    padding-left: 16px;
  }
  .dt__input {
    flex: 1 1 60%;
  }
  .dt__go {
    flex: 1 1 100%;
    justify-content: center;
    padding: 13px 20px;
  }
  .dt-row,
  .dt-record {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .dt-verdict {
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   Cookie consent — banner + preferences dialog
   ========================================================================== */

.ck {
  position: fixed;
  left: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
  z-index: 120;
  /*
   * A consent card, not a bar. At min(1080px, …) this sat 925px wide across
   * the foot of the page, which read as an interruption and covered whatever
   * was behind it — on the contact page, the form itself.
   */
  width: min(372px, calc(100vw - 24px));
  animation: ck-in 0.42s var(--ease) both;
}

@keyframes ck-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

.ck__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 11px 12px;
  padding: 16px 17px 14px;
  border: 1px solid color-mix(in srgb, var(--gold) 26%, var(--line));
  border-radius: 16px;
  /*
   * Opaque. The old panel was 94% surface over a 14px backdrop blur, and the
   * blur does not land everywhere the site runs — so on a pale page the text
   * underneath showed straight through the notice and the two sets of words
   * sat on top of one another. A consent notice has to be legible before it
   * is atmospheric; the gold wash stays, over a solid base.
   */
  background:
    radial-gradient(
      70% 120% at 0% 0%,
      color-mix(in srgb, var(--gold-soft) 55%, transparent),
      transparent 70%
    ),
    var(--surface);
  box-shadow: 0 24px 56px -30px rgba(0, 0, 0, 0.5);
}

.ck__ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  /* Pale, not filled. A saturated gold tile up here competed with the gold
     button below it, and on a notice with one action the action should be the
     only thing wearing the accent. */
  background: color-mix(in srgb, var(--gold-soft) 85%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--gold) 28%, transparent);
  color: var(--gold-deep);
}

.ck__ic svg {
  width: 17px;
  height: 17px;
}

.ck__copy {
  min-width: 0;
}

.ck__copy strong {
  display: block;
  margin-bottom: 3px;
  font-size: var(--fs-sm);
  line-height: 1.3;
}

.ck__copy p {
  margin: 0;
  font-size: var(--fs-caption);
  line-height: 1.55;
  color: var(--muted);
}

.ck__copy a {
  color: var(--gold-deep);
  font-weight: 600;
}

/* Full width under the icon and the copy, so the buttons line up with the
   card's edges rather than with the text column. */
.ck__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  /* Spacing does the separating. The hairline made a three-part card out of
     what is one short notice. */
  margin-top: 3px;
}

.ck__actions .btn {
  /* Not stretched. With one button left on the banner, flex-grow turned
     "Accept all" into a bar the width of the card, which reads as the only
     thing there is to do. */
  flex: 0 0 auto;
  justify-content: center;
}

/* Only where the row genuinely runs out of room. At 375px the link and the
   button still sit side by side with space to spare; stretching them there
   made a phone look more cramped than it is. */
@media (max-width: 335px) {
  .ck__actions .btn {
    flex: 1 1 100%;
  }
}

.ck__prefs {
  /* Held at the left edge, away from the decision on the right: it is a way in
     to the detail, not a second answer to the question. */
  margin-right: auto;
  /*
   * Quiet until it is wanted. "Preferences" is a longer word than "Accept
   * all", so as a fully drawn ghost button it came out wider than the primary
   * one and the hierarchy read backwards. Muted text on an invisible border
   * keeps the button's shape and hover without competing.
   */
  border-color: transparent;
  color: var(--muted);
}

.ck__prefs:hover {
  border-color: var(--line);
  color: var(--ink);
}

/* ---- preferences dialog ---- */
.ck-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 16px;
}

.ck-modal__scrim {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(3px);
  cursor: pointer;
  animation: ck-fade 0.25s var(--ease) both;
}

@keyframes ck-fade {
  from {
    opacity: 0;
  }
}

.ck-modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(620px, 100%);
  max-height: min(84vh, 780px);
  border: 1px solid color-mix(in srgb, var(--gold) 26%, var(--line));
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 40px 90px -50px rgba(20, 6, 2, 0.85);
  animation: ck-pop 0.3s var(--ease) both;
  overflow: hidden;
}

@keyframes ck-pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
}

.ck-modal__panel:focus {
  outline: none;
}

.ck-modal__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(18px, 2.2vw, 24px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(
      70% 150% at 100% 0%,
      color-mix(in srgb, var(--gold-soft) 62%, transparent),
      transparent 70%
    ),
    var(--surface);
}

.ck-modal__ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--grad-gold);
  color: var(--on-gold);
}

.ck-modal__ic svg {
  width: 22px;
  height: 22px;
}

.ck-modal__head h2 {
  margin: 0 0 3px;
  font-size: var(--fs-h5);
}

.ck-modal__head p {
  margin: 0;
  font-size: var(--fs-caption);
  color: var(--muted);
}

.ck-modal__x {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.ck-modal__x:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
}

.ck-modal__x svg {
  width: 15px;
  height: 15px;
}

.ck-modal__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px clamp(18px, 2.2vw, 24px);
}

.ck-cat {
  border-bottom: 1px solid var(--line);
}

.ck-cat:last-child {
  border-bottom: 0;
}

.ck-cat__top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
}

.ck-cat__disclose {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.ck-cat__chev {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: transform var(--dur-fast) var(--ease);
}

.ck-cat__chev svg {
  width: 14px;
  height: 14px;
}

.ck-cat.is-open .ck-cat__chev {
  transform: rotate(90deg);
}

.ck-cat__always {
  flex: none;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: var(--fs-caption);
  font-weight: 700;
}

.ck-cat__desc {
  margin: 0 0 14px 24px;
  font-size: var(--fs-caption);
  line-height: 1.65;
  color: var(--muted);
}

/* switch */
.ck-switch {
  flex: none;
  display: inline-flex;
  cursor: pointer;
}

.ck-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.ck-switch__track {
  display: block;
  width: 44px;
  height: 25px;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--muted) 32%, transparent);
  transition: background-color var(--dur-fast) var(--ease);
}

.ck-switch__thumb {
  display: block;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
  transition: transform var(--dur-fast) var(--ease);
}

.ck-switch input:checked + .ck-switch__track {
  background: var(--grad-gold);
}

.ck-switch input:checked + .ck-switch__track .ck-switch__thumb {
  transform: translateX(19px);
}

.ck-switch input:focus-visible + .ck-switch__track {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.ck-modal__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
  padding: clamp(14px, 1.8vw, 18px) clamp(18px, 2.2vw, 24px);
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}

@media (max-width: 780px) {
  .ck-modal__foot {
    justify-content: stretch;
  }
  .ck-modal__foot .btn {
    flex: 1;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ck,
  .ck-modal__panel,
  .ck-modal__scrim {
    animation: none;
  }
}

/* Footer cookie settings — a clean standalone icon within the legal links. */
.site-footer__cookie {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition:
    color 180ms ease,
    opacity 180ms ease;
}

.site-footer__cookie:hover,
.site-footer__cookie:focus-visible {
  color: var(--gold-bright);
  opacity: 1;
}

.site-footer__cookie:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
}

.site-footer__cookie svg {
  display: block;
  width: 17px;
  height: 17px;
}

@media (min-width: 561px) and (max-width: 1200px) {
  .site-footer__cookie {
    margin-inline-end: 56px;
  }
}

/* Home "Free tools" band.
   A dark burgundy stage directly under the hero: it breaks the run of light
   sections, and the white widget reads as an object floating on it rather than
   another panel in a column. Two columns keep the whole band short — a centred
   heading above a full-width widget ran to ~600px for one search box. */
.home-tools {
  position: relative;
  isolation: isolate;
  /* clip-path, not overflow: hidden. Both clip, but overflow makes this a
     scroll container, and a scroll container traps `position: sticky` in every
     descendant — which is what the copy column needs. Same for the two boxes
     below. */
  clip-path: inset(0);
  padding-block: clamp(44px, 5vw, 72px);
  padding-bottom: 0;
  background: var(--bg-tint);
  color: var(--deep-ink);
}

.home-tools--collapsible {
  display: grid;
  grid-template-rows: 0fr;
  padding-top: 0;
  opacity: 0;
  visibility: hidden;
  scroll-margin-top: 96px;
  transition:
    grid-template-rows 720ms var(--ease),
    padding-top 720ms var(--ease),
    opacity 320ms ease,
    visibility 0s linear 720ms;
}

.home-tools--collapsible[data-state='open'] {
  grid-template-rows: 1fr;
  padding-top: clamp(44px, 5vw, 72px);
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.home-tools__collapse {
  min-height: 0;
  clip-path: inset(0);
}

.home-tools__collapse-inner {
  transform: translateY(-22px) scale(0.985);
  transform-origin: top center;
  transition: transform 720ms var(--ease);
}

.home-tools--collapsible[data-state='open'] .home-tools__collapse-inner {
  transform: translateY(0) scale(1);
}

/* Dot field is contained inside the rounded stage; the full-width section
   stays on the site's normal ivory background. */
.home-tools__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(
    circle,
    color-mix(in srgb, var(--gold) 26%, transparent) 1px,
    transparent 1.6px
  );
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(100deg, #000 8%, transparent 62%);
  mask-image: linear-gradient(100deg, #000 8%, transparent 62%);
  opacity: 0.5;
}

/* Two slow gold orbs, the same device the hero uses. */
.home-tools__aura {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.home-tools__aura span {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.5;
}

/* Slow aurora wash — a wide, very soft sweep that keeps the stage alive
   without anything visibly "animating". */
.home-tools__aura::before {
  content: '';
  position: absolute;
  inset: -30% -10%;
  background: conic-gradient(
    from 200deg at 30% 50%,
    transparent 0deg,
    color-mix(in srgb, var(--gold) 13%, transparent) 70deg,
    transparent 150deg,
    color-mix(in srgb, var(--gold-bright) 10%, transparent) 250deg,
    transparent 360deg
  );
  filter: blur(38px);
  animation: home-tools-spin 46s linear infinite;
}

@keyframes home-tools-spin {
  to {
    transform: rotate(1turn);
  }
}

.home-tools__aura span:first-child {
  width: 340px;
  height: 340px;
  top: -140px;
  left: 6%;
  background: color-mix(in srgb, var(--gold) 46%, transparent);
  animation: home-tools-drift 17s var(--ease) infinite alternate;
}

.home-tools__aura span:last-child {
  width: 280px;
  height: 280px;
  right: 4%;
  bottom: -150px;
  background: color-mix(in srgb, var(--gold-bright) 34%, transparent);
  animation: home-tools-drift 21s var(--ease) infinite alternate-reverse;
}

@keyframes home-tools-drift {
  to {
    transform: translate3d(38px, 26px, 0) scale(1.12);
  }
}

/* Perspective floor grid, echoing the hero. Sits under the copy only, so the
   widget side stays clean. */
.home-tools__grid {
  position: absolute;
  inset: auto 0 0;
  z-index: 0;
  height: 46%;
  background-image:
    linear-gradient(color-mix(in srgb, var(--gold) 15%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--gold) 15%, transparent) 1px, transparent 1px);
  background-size: 52px 52px;
  transform: perspective(340px) rotateX(56deg);
  transform-origin: bottom center;
  -webkit-mask-image: linear-gradient(transparent, #000 70%);
  mask-image: linear-gradient(transparent, #000 70%);
  opacity: 0.5;
  pointer-events: none;
}

.home-tools__inner {
  position: relative;
  isolation: isolate;
  width: calc(100% - (2 * var(--gutter)));
  max-width: calc(var(--container) - (2 * var(--gutter)));
  display: grid;
  /* 0.5/1.5 rather than 0.8/1.2: the console takes 75% of the row instead of
     60%, a quarter more width. The row is already at the container's maximum,
     so the width has to come out of the copy column beside it. */
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 1.5fr);
  align-items: stretch;
  column-gap: clamp(20px, 3vw, 44px);
  row-gap: 24px;
  padding: clamp(16px, 2.2vw, 28px);
  /* The radius has to be restated here: clip-path knows nothing about
     border-radius, and the dot layer is what needed clipping. */
  clip-path: inset(0 round clamp(28px, 3vw, 42px));
  border: 1px solid color-mix(in srgb, var(--gold) 24%, transparent);
  border-radius: clamp(28px, 3vw, 42px);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.055), transparent 42%),
    radial-gradient(
      70% 120% at 12% 0%,
      color-mix(in srgb, var(--gold) 16%, transparent),
      transparent 62%
    ),
    linear-gradient(
      150deg,
      var(--brand-burgundy-deep),
      var(--brand-burgundy-mid) 58%,
      var(--brand-burgundy)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 40px 90px -72px rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
}

.home-tools__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(12px, 1.8vw, 24px);
}

.home-tools__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.home-tools__meta .eyebrow {
  margin: 0;
}

.home-tools .eyebrow {
  color: var(--gold-bright);
}

/* One step down the scale from a normal section heading (--fs-h2 → --fs-h3):
   this band is a utility, not a headline act, and the widget is the subject. */
.home-tools__copy .display {
  margin-bottom: 9px;
  font-size: var(--fs-h3);
  color: #fff;
}

/* The one italic word carries the emphasis without a second colour. */
.home-tools__copy .display em {
  font-style: italic;
  color: var(--gold-bright);
}

.home-tools__copy .lede {
  max-width: 38ch;
  margin: 0;
  font-size: var(--fs-h5);
  line-height: 1.6;
  color: color-mix(in srgb, var(--deep-ink) 84%, transparent);
}

.home-tools__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.home-tools__chips li {
  padding: 6px 13px;
  border: 1px solid color-mix(in srgb, var(--gold) 34%, transparent);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  color: var(--gold-bright);
  font-size: var(--fs-caption);
  font-weight: 600;
}

.home-tools__console {
  position: relative;
  z-index: 1;
  align-self: center;
  min-width: 0;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
  border-radius: 27px;
  background: rgba(0, 0, 0, 0.28);
  box-shadow:
    0 38px 70px -44px rgba(0, 0, 0, 0.92),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transform: perspective(1100px) rotateY(-1.4deg) translateZ(0);
  transform-origin: center left;
  animation: home-tools-console-float 6.5s ease-in-out infinite;
  transition:
    transform 0.55s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.55s var(--ease);
}

.home-tools__console:hover,
.home-tools__console:focus-within {
  border-color: color-mix(in srgb, var(--gold-bright) 58%, transparent);
  box-shadow:
    0 52px 90px -48px rgba(0, 0, 0, 0.96),
    0 0 0 1px color-mix(in srgb, var(--gold) 20%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.11);
  transform: perspective(1100px) rotateY(0deg) translateY(-4px);
}

.home-tools__console-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 12px 11px;
  color: color-mix(in srgb, var(--deep-ink) 62%, transparent);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-tools__console-bar span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gold-bright);
}

.home-tools__console-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--gold) 14%, transparent);
  animation: home-tools-live 2.2s ease-in-out infinite;
}

/* In the homepage console the selected tool is the only descriptive tab.
   The two alternatives stay as clean icon controls until chosen, which keeps
   the interface balanced at every width and makes the accordion behaviour
   immediately visible. */
.tools-dark .dt__tab:not(.is-on) {
  /* Stacked, and wide enough for the short name beneath the icon. This block
     is more specific than the container-query rule above, so the width and
     direction have to be restated here or the homepage console keeps the old
     56px icon-only button and the label has nowhere to go. */
  flex: 0 0 78px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding-inline: 8px;
}

.tools-dark .dt__tab:not(.is-on) .dt__tab-short {
  display: block;
  color: var(--muted);
  font-size: var(--fs-nano);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.tools-dark .dt__tab:not(.is-on):hover .dt__tab-short {
  color: var(--gold-deep);
}

.tools-dark .dt__tab:not(.is-on) .dt__tab-text {
  width: 0;
  max-width: 0;
  opacity: 0;
  transform: translateX(-7px);
}

.tools-dark .dt__tab.is-on {
  flex: 1 1 auto;
}

@keyframes home-tools-console-float {
  0%,
  100% {
    transform: perspective(1100px) rotateY(-1.4deg) translateY(0);
  }
  50% {
    transform: perspective(1100px) rotateY(-0.6deg) translateY(-5px);
  }
}

@keyframes home-tools-live {
  50% {
    opacity: 0.62;
    transform: scale(0.78);
  }
}

/* Lift the widget off the dark stage. */
.tools-dark .dt__shell {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 40px 80px -50px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

@media (max-width: 980px) {
  .home-tools__inner {
    grid-template-columns: 1fr;
  }

  .home-tools__copy {
    padding-bottom: 4px;
  }

  .home-tools__copy .lede {
    max-width: none;
  }

  .home-tools__console {
    width: 100%;
    transform: none;
    animation: none;
  }
}

@media (max-width: 560px) {
  .home-tools-launcher {
    flex-basis: 100%;
    width: 100%;
    min-height: 62px;
    border-radius: 16px;
  }

  .home-tools__inner {
    padding: 10px;
    border-radius: 26px;
  }

  .home-tools__copy {
    padding: 18px 12px 10px;
  }

  .home-tools__console {
    padding: 5px;
    border-radius: 23px;
  }

  .home-tools__console-bar {
    padding-inline: 10px;
  }

  .tools-dark .dt__tabs {
    flex-direction: row;
    gap: 6px;
  }

  .tools-dark .dt__tab:not(.is-on) {
    flex: 0 0 68px;
  }

  .tools-dark .dt__tab.is-on {
    flex: 1 1 auto;
  }

  .tools-dark .dt__tab-note,
  .tools-dark .dt__tab.is-on .dt__tab-note {
    max-height: 22px;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-tools--collapsible,
  .home-tools__collapse-inner,
  .home-tools-launcher,
  .home-tools-launcher::before,
  .home-tools-launcher__status i,
  .home-tools__aura span,
  .home-tools__aura::before,
  .home-tools__console,
  .home-tools__console-bar i {
    animation: none;
    transition-duration: 0.01ms;
  }
}

/* ---- /tools/<slug> pages ---- */
.tool-page__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: clamp(24px, 3.5vw, 52px);
  margin-top: clamp(28px, 3.4vw, 44px);
}

.tool-page__side {
  align-self: start;
  padding: 20px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-alt);
}

.tool-page__side h2 {
  margin: 0 0 12px;
  font-size: var(--fs-caption);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.tool-page__side ul {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}

.tool-page__side li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
}

.tool-page__side li a:hover {
  color: var(--gold-deep);
}

.tool-page__side li a span {
  color: var(--gold);
}

.tool-page__cta-note {
  margin: 0 0 12px;
  font-size: var(--fs-caption);
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 900px) {
  .tool-page__body {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Lean effects mode
   Keep the premium composition, but avoid continuously repainting large blur,
   glass and SVG layers. Lower sections are skipped until they approach the
   viewport, and carousels now pause their timers while off-screen in React.
   ============================================================ */

main#main > :is(.section, .home-testimonials) {
  content-visibility: auto;
  contain-intrinsic-size: auto 760px;
}

/* Large blurred decorative surfaces are the most expensive effects on the
   homepage. Their parent panels already carry equivalent static gradients. */
.hero__aura,
.home-tools__aura,
.hero__showcase::before,
.home-studio-visual::before,
.cta-band::before,
.cta-band__art-shell::before {
  display: none;
}

/* Stop ambient motion. Hover/focus transitions and explicit carousel controls
   remain interactive, but the page no longer repaints when the user is idle. */
.hero .accent,
.hero .eyebrow--chip::before,
.hero__orb,
.hero-slider__slide.is-active img,
.hero-slider__frame-shine,
.site-header__logo::after,
.home-tools__aura span,
.home-tools-launcher::before,
.home-tools-launcher__status i,
.home-tools__console,
.home-tools__console-bar i,
.reveal.home-welcome__copy,
.home-welcome__accent,
.home-welcome__disciplines span,
.home-studio-motion__orbit,
.home-studio-motion__flow path,
.home-studio-motion__satellite,
.home-studio-motion__node,
.home-studio-motion__core,
.home-studio-motion__core-pulse,
.home-studio-motion__phone,
.home-studio-motion__sweep,
.home-story-card,
.cta-band__art-shell,
.cta-band__art-sheen,
.footer-cta__title,
.to-top.is-visible .to-top__ship {
  animation: none !important;
}

.reveal.home-welcome__copy {
  opacity: 1 !important;
  transform: none !important;
}

.hero-slider__slide.is-active img,
.cta-band__art-shell {
  transform: none;
}

.home-studio-motion__core,
.home-studio-motion__core-pulse,
.home-studio-motion__phone,
.hero__orb,
.home-tools__aura span {
  filter: none;
}

/* Opaque premium surfaces replace live backdrop sampling. This avoids a new
   composited blur pass for every card and control while preserving contrast. */
.site-header.is-scrolled .site-header__bar,
.site-nav__thumb,
.premium-filter .glass-pill,
.premium-filter .glass-pill__thumb,
.hero-slider__arrow,
.hero-slider__index-rail,
.home-tools__inner,
#main .card,
.home-compare .compare__col,
.home-process__step,
.cta-band__tech-label,
.cta-band__art-caption {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.site-header.is-scrolled .site-header__bar {
  background: color-mix(in srgb, var(--surface) 96%, var(--bg));
}

/* Selected motion accents: deliberately limited to the two areas requested.
   The hero label reveals once; the studio graphic uses four slow SVG transforms
   on desktop only, keeping the rest of the page idle and inexpensive. */
.hero .tw__live {
  overflow: hidden;
  clip-path: inset(0 100% 0 0);
  animation: tw-reveal-once 1.45s steps(34, end) 160ms both;
}

.hero .tw__live::after {
  content: '';
  flex: 0 0 0.5em;
  width: 0.5em;
  height: 1.05em;
  margin-left: 3px;
  border-radius: 1px;
  background: currentColor;
  animation: tw-caret-once 0.46s steps(1) 4 both;
}

@keyframes tw-reveal-once {
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes tw-caret-once {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

/* Every device, not just desktops. These were gated at 981px, which meant the
   two motion graphics were static on exactly the screens most people use. The
   reduced-motion condition stays — that one is a real preference, unlike a
   guess about what a narrow screen can handle. */
@media (prefers-reduced-motion: no-preference) {
  .home-studio-motion__orbit--outer {
    animation: studio-orbit-clockwise 40s linear infinite !important;
  }

  .home-studio-motion__orbit--inner {
    animation: studio-orbit-counter 32s linear infinite !important;
  }

  .home-studio-motion__core {
    animation: studio-core-breathe 7s ease-in-out infinite !important;
  }

  .home-studio-motion__phone {
    animation: studio-phone-float 7.5s ease-in-out infinite !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .tw__live,
  .hero .tw__live::after,
  .home-studio-motion__orbit,
  .home-studio-motion__core,
  .home-studio-motion__phone {
    animation: none !important;
    clip-path: none;
  }
}

/* ---------------------------------------------------------------------------
   Author attribution (E-E-A-T)
   Byline in the article meta row, the "About the author" card closing an
   article, and the author's own profile page — hero, skills, roadmap.
--------------------------------------------------------------------------- */

.article__byline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
}

.article__byline:hover {
  color: var(--gold-deep);
}

.article__byline-photo {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-pill);
  object-fit: cover;
  border: 1px solid var(--line);
}

.author-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: clamp(24px, 3.2vw, 38px);
  align-items: center;
  overflow: hidden;
  margin-top: clamp(32px, 4vw, 48px);
  padding: clamp(28px, 3.4vw, 40px);
  border: 1px solid color-mix(in srgb, var(--gold) 36%, var(--line));
  border-radius: clamp(24px, 3vw, 32px);
  background:
    radial-gradient(
      70% 130% at 100% 0%,
      color-mix(in srgb, var(--gold) 14%, transparent),
      transparent 65%
    ),
    linear-gradient(
      135deg,
      var(--surface),
      color-mix(in srgb, var(--gold-soft) 46%, var(--surface))
    );
  box-shadow:
    0 30px 64px -46px rgba(0, 0, 0, 0.38),
    inset 0 1px rgba(255, 255, 255, 0.84);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.author-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  z-index: -1;
  width: 5px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold), var(--brand-burgundy-mid));
}

.author-card::after {
  content: '';
  position: absolute;
  right: -78px;
  bottom: -112px;
  z-index: -1;
  width: 260px;
  height: 260px;
  border: 1px solid color-mix(in srgb, var(--gold) 18%, transparent);
  border-radius: 50%;
  box-shadow:
    0 0 0 30px color-mix(in srgb, var(--gold) 4%, transparent),
    0 0 0 62px color-mix(in srgb, var(--gold) 3%, transparent);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .author-card:hover {
    border-color: color-mix(in srgb, var(--gold) 62%, var(--line));
    box-shadow:
      0 34px 72px -42px rgba(0, 0, 0, 0.46),
      inset 0 1px rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
  }
}

.author-card__portrait {
  position: relative;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border: 1px solid color-mix(in srgb, var(--gold) 42%, var(--line));
  border-radius: 50%;
  background: var(--surface);
  box-shadow:
    0 18px 40px -24px rgba(0, 0, 0, 0.42),
    0 0 0 8px color-mix(in srgb, var(--gold) 5%, transparent);
}

.author-card__portrait::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid color-mix(in srgb, var(--gold) 24%, transparent);
  border-radius: inherit;
  pointer-events: none;
}

.author-card__portrait {
  position: relative;
  flex: none;
}

.author-card__photo {
  display: block;
  width: clamp(92px, 11vw, 116px);
  aspect-ratio: 5 / 8;
  height: auto;
  margin-block: 0;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 2px solid color-mix(in srgb, var(--gold) 35%, transparent);
}

/* Years-of-experience chip, straddling the portrait's lower corner. */
.author-card__experience {
  position: absolute;
  left: -8px;
  bottom: 10px;
  display: grid;
  place-items: center;
  gap: 0;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--grad-gold);
  color: var(--on-gold);
  line-height: 1.05;
  box-shadow: 0 6px 16px rgb(0 0 0 / 0.16);
}

.author-card__experience strong {
  font-size: var(--fs-sm);
  font-weight: 800;
}

.author-card__experience span {
  font-size: var(--fs-nano);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.author-card__body {
  min-width: 0;
}

.author-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.author-card__meta .eyebrow {
  color: var(--gold-deep);
}

.author-card__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid color-mix(in srgb, var(--gold) 26%, var(--line));
  border-radius: var(--radius-pill);
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  font-size: var(--fs-tiny);
  font-weight: 600;
}

.author-card__status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 10%, transparent);
}

.author-card__name {
  margin: 0 0 3px;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.author-card__name a {
  color: var(--ink);
  text-decoration: none;
}

.author-card__name a:hover {
  color: var(--gold-deep);
}

.author-card__role {
  margin: 0 0 12px;
  color: var(--gold-deep);
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.author-card__bio {
  max-width: 64ch;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.author-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.author-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.author-card__status {
  padding: 2px 9px;
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  border-radius: var(--radius-pill);
  color: var(--gold-deep);
  font-size: var(--fs-nano);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.author-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.author-card__disciplines {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.author-card__disciplines span {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  color: var(--muted);
  font-size: var(--fs-nano);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.author-card__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid color-mix(in srgb, var(--brand-burgundy-mid) 34%, var(--line));
  border-radius: var(--radius-pill);
  color: var(--surface);
  background: linear-gradient(135deg, var(--brand-burgundy-mid), var(--brand-burgundy-deep));
  box-shadow: 0 14px 28px -20px rgba(0, 0, 0, 0.68);
  font-size: var(--fs-caption);
  font-weight: 700;
  text-decoration: none;
  transition:
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.author-card__more:hover {
  color: var(--gold-bright);
  box-shadow: 0 18px 34px -18px rgba(0, 0, 0, 0.78);
  transform: translateY(-1px);
}

.author-card__disciplines {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.author-card__disciplines span {
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--gold) 22%, var(--line));
  border-radius: var(--radius-pill);
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  font-size: var(--fs-tiny);
  font-weight: 600;
}

/* ---- Profile hero ---- */

.author-hero {
  position: relative;
  display: flex;
  gap: clamp(22px, 3vw, 38px);
  align-items: center;
  margin-bottom: clamp(26px, 3.5vw, 40px);
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

/* A soft gold bloom behind the portrait — the page's one piece of theatre.
   Sized in percentages of the hero itself so the glow always fades out before
   the edge; a fixed circle in an inset box left a hard vertical seam once the
   hero went tall and narrow on mobile. */
.author-hero__aura {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    70% 85% at 18% 42%,
    color-mix(in srgb, var(--gold) 20%, transparent),
    transparent 72%
  );
  pointer-events: none;
}

/* Portrait frame: the image keeps its own 5:8 ratio so nothing is cropped, and
   an oversized conic gradient turns slowly behind it as a living gold border.
   `inset: -50%` keeps the rotating square covering the corners of the rect. */
.author-hero__frame {
  position: relative;
  flex: none;
  padding: 4px;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 14px 34px rgb(0 0 0 / 0.18);
  transition: transform 0.3s ease;
}

.author-hero:hover .author-hero__frame {
  transform: translateY(-4px);
}

.author-hero__ring {
  position: absolute;
  inset: -50%;
  z-index: 0;
  background: conic-gradient(
    from 0deg,
    var(--gold-bright),
    var(--gold),
    var(--gold-deep),
    var(--gold),
    var(--gold-bright)
  );
  animation: author-spin 11s linear infinite;
}

@keyframes author-spin {
  to {
    transform: rotate(1turn);
  }
}

.author-hero__photo {
  position: relative;
  z-index: 1;
  display: block;
  width: clamp(150px, 19vw, 214px);
  aspect-ratio: 5 / 8;
  height: auto;
  margin-block: 0;
  border-radius: var(--radius);
  object-fit: cover;
}

/* Diagonal glare that crosses the portrait on hover. */
.author-hero__shine {
  position: absolute;
  inset: 4px;
  z-index: 2;
  border-radius: var(--radius);
  background: linear-gradient(
    100deg,
    transparent 38%,
    rgb(255 255 255 / 0.34) 50%,
    transparent 62%
  );
  transform: translateX(-120%);
  pointer-events: none;
  transition: transform 0.75s ease;
}

.author-hero:hover .author-hero__shine {
  transform: translateX(120%);
}

.author-hero__intro {
  position: relative;
  min-width: 0;
}

.author-hero__intro .lede {
  margin-bottom: 16px;
}

/* Fixed 2×2 rather than auto-fit: the intro column's width swings with the
   viewport, and any auto track count kept landing on three tiles with a lone
   fourth underneath. Four stats read as a balanced block at every width. */
.author-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.author-stat {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 14px 14px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  overflow: hidden;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

/* Gold corner bloom, revealed on hover. */
.author-stat::before {
  content: '';
  position: absolute;
  inset: -60% -60% auto auto;
  width: 120px;
  height: 120px;
  border-radius: var(--radius-pill);
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--gold) 30%, transparent),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.28s ease;
}

.author-stat:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.08);
}

.author-stat:hover::before {
  opacity: 1;
}

.author-stat__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.author-stat__value {
  position: relative;
  color: var(--gold-deep);
  font-size: var(--fs-h4);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.author-stat__label {
  position: relative;
  color: var(--muted);
  font-size: var(--fs-nano);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Gold rule that draws itself across the tile's foot on hover. */
.author-stat__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--grad-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.author-stat:hover .author-stat__bar {
  transform: scaleX(1);
}

.author-block {
  margin-top: clamp(30px, 3.8vw, 48px);
}

/* ---- Current focus: the loud block ---- */

.author-focus {
  position: relative;
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--brand-burgundy-mid), var(--brand-burgundy-deep));
  color: var(--deep-ink);
  overflow: hidden;
}

.author-focus::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    color-mix(in srgb, var(--gold-bright) 26%, transparent) 1px,
    transparent 1px
  );
  background-size: 22px 22px;
  opacity: 0.5;
  pointer-events: none;
}

.author-focus__head {
  position: relative;
  z-index: 1;
  max-width: 62ch;
  margin-bottom: clamp(18px, 2.4vw, 26px);
}

.author-focus__badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--grad-gold);
  color: var(--on-gold);
  font-size: var(--fs-micro);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.author-focus__title {
  margin: 0 0 8px;
  color: var(--deep-ink);
  font-size: var(--fs-h3);
}

.author-focus__lede {
  margin: 0;
  color: var(--deep-muted);
  line-height: 1.65;
}

.author-focus__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.author-focus__card {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 18px 18px 20px;
  border: 1px solid color-mix(in srgb, var(--gold-bright) 26%, transparent);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, #fff 7%, transparent);
  overflow: hidden;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.author-focus__card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-bright);
  background: color-mix(in srgb, #fff 12%, transparent);
}

.author-focus__num {
  color: var(--gold-bright);
  font-size: var(--fs-micro);
  font-weight: 800;
  letter-spacing: 0.14em;
}

.author-focus__name {
  color: var(--deep-ink);
  font-size: var(--fs-h6);
  font-weight: 700;
  line-height: 1.35;
}

/* Gold sweep that rises on hover. */
.author-focus__spark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--grad-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.author-focus__card:hover .author-focus__spark {
  transform: scaleX(1);
}

/* ---- Supporting skills ---- */

.author-skills {
  display: grid;
  gap: 20px;
}

.author-skills__title {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: var(--fs-micro);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.author-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.author-tags li {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition:
    border-color 0.18s ease,
    color 0.18s ease;
}

.author-tags li:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
}

/* ---- Roadmap ---- */

.author-road {
  position: relative;
  padding: 0 0 0 34px;
  margin: 0;
  list-style: none;
}

/* The rail itself, fading out at the end of the journey. */
.author-road::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--gold) 55%, transparent),
    color-mix(in srgb, var(--gold) 22%, transparent) 78%,
    transparent
  );
}

.author-road__step {
  position: relative;
  padding-bottom: 18px;
}

.author-road__step:last-child {
  padding-bottom: 0;
}

.author-road__marker {
  position: absolute;
  left: -34px;
  top: 20px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
}

.author-road__dot {
  width: 11px;
  height: 11px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 2px solid var(--gold);
  transition: transform 0.2s ease;
}

.author-road__card {
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.author-road__step:hover .author-road__card {
  transform: translateX(4px);
  border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
  box-shadow: 0 8px 22px rgb(0 0 0 / 0.07);
}

.author-road__step:hover .author-road__dot {
  transform: scale(1.25);
}

.author-road__year {
  display: block;
  margin-bottom: 2px;
  color: var(--gold-deep);
  font-size: var(--fs-micro);
  font-weight: 800;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

.author-road__title {
  margin: 0 0 4px;
  font-size: var(--fs-h6);
}

.author-road__text {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

/* The step you are standing on — gold fill, filled dot, soft pulse. */
.author-road__step.is-current .author-road__card {
  border-color: color-mix(in srgb, var(--gold) 55%, var(--line));
  background: var(--gold-soft);
}

.author-road__step.is-current .author-road__dot {
  background: var(--gold);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 55%, transparent);
  animation: author-pulse 2.4s ease-out infinite;
}

@keyframes author-pulse {
  70% {
    box-shadow: 0 0 0 10px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

/* ---- Articles list ---- */

.author-posts {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0 0 18px;
  list-style: none;
}

.author-posts li {
  display: grid;
  gap: 3px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.author-posts a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.author-posts a:hover {
  color: var(--gold-deep);
}

.author-posts__meta {
  color: var(--muted);
  font-size: var(--fs-caption);
}

/* ---- Author sidebar ---- */

.author-cta {
  text-align: left;
}

.author-cta__photo {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-pill);
  object-fit: cover;
  border: 2px solid color-mix(in srgb, var(--gold-bright) 50%, transparent);
  margin-bottom: 12px;
}

.author-cta__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--gold-bright);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.author-cta__dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--gold-bright);
  animation: author-pulse 2.4s ease-out infinite;
}

.author-cta__chats {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--gold-bright) 18%, transparent);
}

.author-cta__chats-label {
  color: var(--deep-muted);
  font-size: var(--fs-nano);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* The shared chat buttons sit on a dark card here, so centre them and let the
   brand colours in `.chat-btn--<key>` carry the styling. */
.author-cta__chat-list {
  justify-content: center;
}

.author-places {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.author-places li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.author-places svg {
  flex: none;
  color: var(--gold);
}

/* Eight sites in a sidebar card: a name-per-row list ran the full height of
   the rail, so these are compact two-up tiles — brand first, role beneath. */
.author-ventures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.author-ventures a {
  position: relative;
  display: grid;
  gap: 1px;
  height: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease;
}

.author-ventures a:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--gold) 50%, var(--line));
  background: var(--gold-soft);
}

.author-ventures__name {
  color: var(--ink);
  font-size: var(--fs-caption);
  font-weight: 700;
  line-height: 1.25;
}

.author-ventures a:hover .author-ventures__name {
  color: var(--gold-deep);
}

.author-ventures__note {
  color: var(--muted);
  font-size: var(--fs-nano);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Outbound arrow, revealed on hover so the resting state stays quiet. */
.author-ventures a::after {
  content: '↗';
  position: absolute;
  top: 6px;
  right: 8px;
  color: var(--gold);
  font-size: var(--fs-nano);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.author-ventures a:hover::after {
  opacity: 1;
}

/* The hero stayed one row down to 620px, not 900px. A tablet has room for a
   180px portrait and a 400px column of text side by side, and stacking it there
   pushed the name and the lede below the fold for no gain. Only a phone, where
   the portrait goes full width, genuinely needs the column. */
@media (max-width: 620px) {
  .author-hero {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  /* Full width on a phone. `flex: none` on the frame keeps it at the image's
     own size, so the width has to be claimed here as well as on the image. */
  .author-hero__frame {
    width: 100%;
  }

  /* The ratio stays 5:8 — the portrait is uncropped by design, and switching
     to a wider crop here would cut the subject off at the knees. */
  .author-hero__photo {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .author-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 26px 22px 24px;
  }

  .author-card__portrait {
    width: 106px;
    height: 106px;
  }

  .author-card__photo {
    width: 90px;
    height: 90px;
  }

  .author-card__experience {
    right: -12px;
    width: 48px;
    height: 48px;
  }

  .author-card__meta,
  .author-card__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .author-card__name {
    font-size: 26px;
  }

  .author-card__disciplines {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .author-hero__ring,
  .author-cta__dot,
  .author-road__step.is-current .author-road__dot,
  .author-card,
  .author-card__more {
    animation: none;
    transition: none;
  }
}

/* ---- About page → founder profile doorway ---- */

/* The second selector is not redundant: this card lives inside `.prose`, and
   `.prose a` (0-1-1) outranks a bare `.founder-link` (0-1-0). That rule paints
   a gold gradient clipped to the *text* — so without winning the specificity
   fight here the panel never renders and the card's own text is gold-filled.
   The background-clip / text-fill resets below undo that treatment. */
.founder-link,
.prose a.founder-link {
  position: relative;
  display: flex;
  gap: clamp(16px, 2.2vw, 26px);
  align-items: center;
  margin-top: clamp(24px, 3vw, 34px);
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: var(--radius);
  background-image: linear-gradient(135deg, var(--brand-burgundy-mid), var(--brand-burgundy-deep));
  background-size: auto;
  background-position: 0 0;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  color: var(--deep-ink);
  font-weight: 400;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease;
}

.founder-link:hover,
.prose a.founder-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgb(0 0 0 / 0.24);
  /* `.prose a:hover` slides its gradient; this card must not inherit that. */
  background-position: 0 0;
}

/* Gold light sweeping across on hover — the "door opening" moment. */
.founder-link__sheen {
  position: absolute;
  inset: 0 auto 0 -55%;
  width: 45%;
  z-index: -1;
  background: linear-gradient(
    100deg,
    transparent,
    color-mix(in srgb, var(--gold-bright) 26%, transparent),
    transparent
  );
  transform: skewX(-16deg);
  transition: left 0.65s ease;
}

.founder-link:hover .founder-link__sheen {
  left: 110%;
}

.founder-link__media {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
}

/* Also matched via `.prose` (0-2-0): `.prose img` (0-1-1) would otherwise round
   this to --radius-sm and add a 1.5em margin-block, which stretched the media
   box and turned the circular ring into a tall ellipse. */
.founder-link__photo,
.prose .founder-link__photo {
  position: relative;
  z-index: 1;
  width: clamp(64px, 8vw, 84px);
  height: clamp(64px, 8vw, 84px);
  margin-block: 0;
  border-radius: var(--radius-pill);
  object-fit: cover;
  border: 2px solid color-mix(in srgb, var(--brand-burgundy-deep) 80%, transparent);
}

.founder-link__ring {
  position: absolute;
  inset: -6px;
  border-radius: var(--radius-pill);
  background: conic-gradient(
    from 0deg,
    var(--gold-bright),
    var(--gold),
    var(--gold-deep),
    var(--gold-bright)
  );
  opacity: 0.85;
  transition: transform 0.5s ease;
}

.founder-link:hover .founder-link__ring {
  transform: rotate(180deg);
}

.founder-link__body {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.founder-link__eyebrow {
  color: var(--gold-bright);
  font-size: var(--fs-micro);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.founder-link__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--deep-ink);
  font-size: var(--fs-h5);
  font-weight: 700;
}

.founder-link__arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: var(--grad-gold);
  color: var(--on-gold);
  transition: transform 0.24s ease;
}

.founder-link:hover .founder-link__arrow {
  transform: translateX(5px);
}

.founder-link__text {
  color: var(--deep-muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.founder-link__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.founder-link__chips span {
  padding: 3px 10px;
  border: 1px solid color-mix(in srgb, var(--gold-bright) 30%, transparent);
  border-radius: var(--radius-pill);
  color: var(--gold-bright);
  font-size: var(--fs-nano);
  font-weight: 700;
  letter-spacing: 0.04em;
}

@media (max-width: 620px) {
  /* Both selectors, for the same reason the base rule needs both: this card
     lives inside `.prose`, so `.prose a.founder-link` (0-2-1) outranks a bare
     `.founder-link` (0-1-0) whatever the order. On its own this rule never
     applied and the portrait stayed centred by the base `align-items: center`
     it could not beat. */
  .founder-link,
  .prose a.founder-link {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .founder-link,
  .founder-link__sheen,
  .founder-link__ring,
  .founder-link__arrow {
    transition: none;
  }
}

/* ---- Profile Q&A (answer-engine block) ---- */

.author-answers {
  display: grid;
  gap: 10px;
}

.author-answers__item {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid color-mix(in srgb, var(--gold) 55%, transparent);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition:
    border-left-color 0.2s ease,
    transform 0.2s ease;
}

.author-answers__item:hover {
  border-left-color: var(--gold);
  transform: translateX(3px);
}

.author-answers__q {
  margin: 0 0 5px;
  /* The rule `.faq-card__q` and `.home-faq__q` follow, at this block's own
     smaller scale: question and answer share a size and are told apart by
     weight and colour. --fs-h6 is 13px, which set the question below its own
     14px answer. */
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.65;
  color: var(--ink);
}

/* The answer is what an assistant reads aloud, so it stays a single, complete,
   quotable paragraph — never split across elements. */
.author-answers__a {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.65;
}

/* ---- "New" badge on the free-tools launcher ---- */

/* The launcher is the entry point to a feature people do not know is there,
   so the badge is allowed to be louder than anything else in the hero:
   a rotating gold halo, a twinkling spark and a shimmer that crosses the pill. */
.home-tools-launcher {
  position: relative;
  overflow: visible;
}

.home-tools-launcher__badge {
  position: absolute;
  top: -11px;
  right: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.home-tools-launcher__badge-face {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 11px 4px 9px;
  border-radius: var(--radius-pill);
  background: var(--grad-gold);
  color: var(--on-gold);
  font-size: var(--fs-nano);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow: hidden;
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.3);
}

/* Light sweeping across the pill, on a longer cycle than the bob so the two
   never fall into an obvious rhythm. */
.home-tools-launcher__badge-face::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / 0.75), transparent);
  transform: skewX(-18deg);
  animation: tools-badge-sweep 3.4s ease-in-out infinite;
}

@keyframes tools-badge-sweep {
  0%,
  62% {
    left: -60%;
  }
  100% {
    left: 130%;
  }
}

.home-tools-launcher__badge-face svg {
  animation: tools-badge-twinkle 2.2s ease-in-out infinite;
}

@keyframes tools-badge-twinkle {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  40% {
    transform: scale(1.35) rotate(90deg);
    opacity: 0.75;
  }
}

/* Once the panel is open the feature has been found; stop selling it. */
.home-tools-launcher[aria-expanded='true'] .home-tools-launcher__badge {
  opacity: 0;
  transform: translateY(-6px) scale(0.9);
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .home-tools-launcher__badge-face::after,
  .home-tools-launcher__badge-face svg {
    animation: none;
  }
  .home-tools-launcher__badge-face::after {
    display: none;
  }
}

/* ---- Hero headline entrance ---- */

/* Each line rises out of a blur, the second a beat behind the first, and a
   gold hairline draws itself underneath. Gated on html.js so that with
   scripting off the headline is simply there rather than stuck invisible. */
html.js .hero h1 span {
  animation: hero-line-rise 0.9s var(--ease) both;
}

html.js .hero h1 span:nth-child(2) {
  animation-delay: 0.14s;
}

/* The accent already carries the shimmer, and `animation` is a shorthand — so
   both have to be named here or the rise would silently replace it. The blur
   is left off this line: it is painted with background-clip:text, which some
   browsers drop entirely while a filter is animating.
   Written flat rather than inside @supports: the shimmer it restates is
   already inside one, and a second wrapper only made the cascade harder to
   follow when this rule was being overridden. */
html.js .hero h1 span.accent {
  animation:
    hero-shimmer 6.5s linear infinite,
    hero-line-lift 0.9s var(--ease) both;
}

@keyframes hero-line-rise {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(12px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes hero-line-lift {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* The rule underneath, drawn left to right once the lines have landed. */
html.js .hero h1::after {
  content: '';
  display: block;
  width: clamp(88px, 9vw, 132px);
  height: 3px;
  margin-top: 18px;
  border-radius: 2px;
  background: var(--grad-gold);
  transform-origin: left;
  animation: hero-rule-draw 0.7s var(--ease) 0.5s both;
}

@keyframes hero-rule-draw {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

/* Flat, not an @supports nested inside the media query — that nesting is what
   was silently switching the accent's animation off at every width. */
@media (prefers-reduced-motion: reduce) {
  html.js .hero h1 span,
  html.js .hero h1 span.accent,
  html.js .hero h1::after {
    animation: none;
  }
}

/* ---- Domain verdict: compact, and green when the name is free ---- */

/* Availability is a status, not brand expression, so it uses a semantic green
   rather than the gold accent — the same reasoning that reserves --danger for
   errors. Gold stays the colour of the action next to it. */
.dt-verdict {
  --verdict: var(--muted);
  --verdict-tint: var(--bg-alt);
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.dt-verdict.is-good {
  --verdict: var(--ok);
  --verdict-tint: var(--ok-edge);
  border-color: color-mix(in srgb, var(--ok) 30%, var(--line));
  background: linear-gradient(180deg, var(--ok-tint), var(--surface));
}

.dt-verdict.is-good .dt-verdict__ic {
  width: 30px;
  height: 30px;
  background: var(--verdict);
  color: #fff;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 12%, transparent);
}

.dt-verdict.is-good .dt-verdict__ic svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.6;
}

.dt-verdict__ic {
  width: 30px;
  height: 30px;
}

.dt-verdict__ic svg {
  width: 16px;
  height: 16px;
}

.dt-verdict__text strong {
  font-size: var(--fs-h6);
  word-break: break-word;
}

.dt-verdict.is-good .dt-verdict__text strong {
  color: var(--ok-ink);
}

.dt-verdict__text span {
  font-size: var(--fs-caption);
}

/* "Available" earns a small badge rather than a whole sentence in body copy. */
.dt-verdict.is-good .dt-verdict__text span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--verdict);
  font-weight: 700;
}

.dt-verdict.is-good .dt-verdict__text span::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--verdict);
  animation: dt-verdict-pulse 2s ease-out infinite;
}

@keyframes dt-verdict-pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent);
  }
  70% {
    box-shadow: 0 0 0 7px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.dt-verdict__cta {
  padding-inline: 14px;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .dt-verdict.is-good .dt-verdict__text span::before {
    animation: none;
  }
}

@media (max-width: 560px) {
  .dt-verdict {
    flex-wrap: wrap;
  }
  .dt-verdict__cta {
    width: 100%;
    justify-content: center;
  }
}

/* ---- WHOIS record modal ---- */

.dt-raw__toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dt-modal {
  width: min(760px, calc(100vw - 32px));
  max-height: min(78vh, 720px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  overflow: visible;
}

.dt-modal::backdrop {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(3px);
}

.dt-modal__panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: min(78vh, 720px);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--brand-burgundy-mid), var(--brand-burgundy-deep));
  color: var(--deep-ink);
  box-shadow: 0 40px 90px rgb(0 0 0 / 0.5);
  overflow: hidden;
}

.dt-modal__head {
  position: relative;
  padding: 18px 56px 16px 22px;
  border-bottom: 1px solid color-mix(in srgb, var(--gold-bright) 20%, transparent);
}

.dt-modal__eyebrow {
  display: block;
  color: var(--gold-bright);
  font-size: var(--fs-nano);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dt-modal__title {
  margin: 4px 0 0;
  color: var(--deep-ink);
  font-size: var(--fs-h5);
  word-break: break-word;
}

.dt-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid color-mix(in srgb, var(--gold-bright) 26%, transparent);
  border-radius: 50%;
  background: transparent;
  color: var(--deep-muted);
  cursor: pointer;
  transition:
    color 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

.dt-modal__close:hover {
  color: var(--on-gold);
  background: var(--grad-gold);
  border-color: transparent;
}

/* The record is machine output, so it is set in mono and never re-wrapped —
   WHOIS alignment carries meaning. It scrolls in both directions instead. */
.dt-modal__body {
  margin: 0;
  padding: 18px 22px;
  overflow: auto;
  background: rgb(0 0 0 / 0.22);
  color: color-mix(in srgb, var(--deep-ink) 88%, transparent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre;
  tab-size: 2;
}

.dt-modal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 22px;
  border-top: 1px solid color-mix(in srgb, var(--gold-bright) 18%, transparent);
}

.dt-modal__note {
  color: var(--deep-muted);
  font-size: var(--fs-caption);
}

.dt-modal__copy {
  padding: 7px 16px;
  border: 1px solid color-mix(in srgb, var(--gold-bright) 40%, transparent);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--gold-bright);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.16s ease,
    color 0.16s ease;
}

.dt-modal__copy:hover {
  background: var(--grad-gold);
  border-color: transparent;
  color: var(--on-gold);
}

/* Enter from slightly below, once, when the dialog is promoted to the top
   layer. `allow-discrete` is what lets display participate in the transition. */
@media (prefers-reduced-motion: no-preference) {
  .dt-modal[open] .dt-modal__panel {
    animation: dt-modal-in 0.28s var(--ease) both;
  }

  @keyframes dt-modal-in {
    from {
      opacity: 0;
      transform: translateY(14px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

@media (max-width: 560px) {
  .dt-modal__foot {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

/* Taken / invalid: the same compact treatment as the available state, in a
   muted rose. Deliberately softer than --danger — a registered domain is a
   fact to work around, not an error the visitor caused. */
.dt-verdict.is-taken,
.dt-verdict.is-bad {
  --verdict: var(--bad);
  border-color: color-mix(in srgb, var(--bad) 26%, var(--line));
  background: linear-gradient(180deg, var(--bad-tint), var(--surface));
}

.dt-verdict.is-taken .dt-verdict__ic,
.dt-verdict.is-bad .dt-verdict__ic {
  width: 30px;
  height: 30px;
  background: var(--verdict);
  color: #fff;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--bad) 11%, transparent);
}

.dt-verdict.is-taken .dt-verdict__ic svg,
.dt-verdict.is-bad .dt-verdict__ic svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.6;
}

.dt-verdict.is-taken .dt-verdict__text strong,
.dt-verdict.is-bad .dt-verdict__text strong {
  color: var(--bad-ink);
}

.dt-verdict.is-taken .dt-verdict__text span,
.dt-verdict.is-bad .dt-verdict__text span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--verdict);
  font-weight: 700;
}

/* Static, unlike the available dot: nothing here is live or waiting. */
.dt-verdict.is-taken .dt-verdict__text span::before,
.dt-verdict.is-bad .dt-verdict__text span::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--verdict);
}

/* Expiring-soon SSL keeps its own amber, on the same compact frame. */
.dt-verdict.is-warn {
  --verdict: var(--warn);
  border-color: color-mix(in srgb, var(--warn) 26%, var(--line));
  background: linear-gradient(180deg, var(--warn-tint), var(--surface));
}

.dt-verdict.is-warn .dt-verdict__ic {
  width: 30px;
  height: 30px;
  background: var(--verdict);
  color: #fff;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 12%, transparent);
}

.dt-verdict.is-warn .dt-verdict__text strong {
  color: var(--warn-ink);
}

/* ---- WHOIS detail grid ---- */

/* Paired rows on a hairline grid rather than a flat list: the label sits in a
   fixed column so every value starts on the same line, which is what makes a
   record like this scannable. */
.dt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0 clamp(18px, 2.4vw, 34px);
  margin: 14px 0 0;
  padding: 4px clamp(14px, 1.8vw, 20px);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.dt-row {
  display: grid;
  grid-template-columns: minmax(92px, 34%) 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.dt-row dt {
  color: var(--muted);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.dt-row dd {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.dt-list {
  display: grid;
  gap: 5px;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* ---- Copyable values ---- */

.dt-copy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 4px 9px 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-caption);
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    color 0.16s ease;
}

.dt-copy:hover {
  border-color: color-mix(in srgb, var(--gold) 50%, var(--line));
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.dt-copy.is-copied {
  border-color: color-mix(in srgb, var(--ok) 45%, var(--line));
  background: var(--ok-edge);
  color: var(--ok);
}

.dt-copy__value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dt-copy__ic {
  flex: none;
  display: grid;
  place-items: center;
  opacity: 0.55;
}

.dt-copy:hover .dt-copy__ic,
.dt-copy.is-copied .dt-copy__ic {
  opacity: 1;
}

/* The word only appears on hover, so a column of values stays quiet at rest. */
.dt-copy__tip {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-body, inherit);
  font-size: var(--fs-nano);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transition:
    max-width 0.2s var(--ease),
    opacity 0.16s var(--ease);
}

.dt-copy:hover .dt-copy__tip,
.dt-copy.is-copied .dt-copy__tip {
  max-width: 60px;
  opacity: 1;
}

/* "Copy all" sits under the individual entries, quieter than them. */
.dt-list--copy + .dt-copy {
  margin-top: 7px;
  border-style: dashed;
  background: transparent;
  font-family: inherit;
  font-size: var(--fs-nano);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dt-list--copy + .dt-copy .dt-copy__value,
/* Its label is already "Copy all"; the hover tip would repeat the word. */
.dt-list--copy + .dt-copy .dt-copy__tip {
  display: none;
}

.dt-list--copy + .dt-copy::before {
  content: 'Copy all';
}

@media (max-width: 520px) {
  .dt-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* ---- Domain age, shown on a registered result ---- */

/* Sits where the CTA sits on an available name, so the verdict row keeps one
   shape whichever answer comes back. */
.dt-age {
  flex: none;
  display: grid;
  justify-items: end;
  gap: 1px;
  padding-left: clamp(12px, 2vw, 20px);
  border-left: 1px solid color-mix(in srgb, var(--verdict, var(--line)) 22%, transparent);
  text-align: right;
}

.dt-age__label {
  color: var(--muted);
  font-size: var(--fs-nano);
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.dt-age__figure {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--verdict, var(--ink));
  line-height: 1.05;
}

.dt-age__figure b {
  font-size: var(--fs-h5);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.dt-age__figure i {
  font-style: normal;
  font-size: var(--fs-nano);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* The exact figure, for anyone who wants it — quiet by default. */
.dt-age__total {
  color: var(--muted);
  font-size: var(--fs-nano);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 620px) {
  .dt-age {
    justify-items: start;
    width: 100%;
    margin-top: 10px;
    padding-left: 0;
    padding-top: 10px;
    border-left: 0;
    border-top: 1px solid color-mix(in srgb, var(--verdict, var(--line)) 22%, transparent);
    text-align: left;
  }
}

/* Full-width detail rows: status codes and nameserver lists are long enough
   that half a column wraps them badly while the other half sits empty. */
.dt-row--wide {
  grid-column: 1 / -1;
  grid-template-columns: minmax(92px, 16%) 1fr;
}

.dt-row--wide dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* One nameserver per line: they are read and copied individually, and side by
   side they scan as a single run-on string. */
.dt-row--wide .dt-list {
  display: grid;
  justify-items: start;
  gap: 6px;
}

@media (max-width: 520px) {
  .dt-row--wide {
    grid-template-columns: 1fr;
  }
}

/* ---- SSL: certificate lifetime meter ---- */

.dt-life {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.dt-life__head,
.dt-life__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: var(--fs-caption);
}

.dt-life__pct {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.dt-life__foot {
  margin-top: 6px;
  font-size: var(--fs-nano);
}

.dt-life__track {
  position: relative;
  height: 7px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--bg-alt);
  overflow: hidden;
}

.dt-life__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ok), var(--ok));
}

/* Past ~85% of its life a certificate should already have renewed. */
.dt-life__track.is-warn .dt-life__fill {
  background: linear-gradient(90deg, var(--warn), var(--warn));
}

/* ---- DNS: detected providers and findings ---- */

.dt-hosts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.dt-host {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: var(--fs-sm);
}

.dt-host__label {
  color: var(--muted);
  font-size: var(--fs-nano);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dt-host b {
  color: var(--ink);
  font-weight: 700;
}

.dt-advice {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.dt-advice__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: start;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

.dt-advice__dot {
  width: 7px;
  height: 7px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--muted);
}

.dt-advice__item.is-good {
  background: var(--ok-tint);
}
.dt-advice__item.is-good .dt-advice__dot {
  background: var(--ok);
}
.dt-advice__item.is-warn {
  background: var(--warn-tint);
}
.dt-advice__item.is-warn .dt-advice__dot {
  background: var(--warn);
}
.dt-advice__item.is-bad {
  background: var(--bad-tint);
}
.dt-advice__item.is-bad .dt-advice__dot {
  background: var(--bad);
}

/* ---------- Deliverables ----------
   One promise per row. The previous three-up grid of identical gold ticks
   carried no information and read as filler; a single column with a mark that
   matches each promise reads as a list of commitments. Appended here as the
   only definition — there were two competing blocks before, and the later one
   silently won. */

/* Two up: with an icon, a title and a body each, the rows carry enough
   structure to read side by side, and seven full-width bands was a lot of
   vertical space for a list of short promises. */
.deliverables {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  max-width: none;
}

.deliverable {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  height: 100%;
  transition:
    transform var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.deliverable:hover {
  transform: translateX(4px);
  border-color: color-mix(in srgb, var(--gold) 42%, var(--line));
  box-shadow: var(--shadow-sm);
}

/* Gold edge that grows on hover, so the row responds without shifting text. */
.deliverable::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--grad-gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--dur) var(--ease);
}

.deliverable:hover::before {
  transform: scaleY(1);
}

.deliverable__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  transition:
    background var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.deliverable:hover .deliverable__mark {
  background: var(--grad-gold);
  color: var(--on-gold);
}

.deliverable__text {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding-top: 3px;
}

.deliverable__title {
  color: var(--ink);
  font-size: var(--fs-h6);
  font-weight: 700;
  line-height: 1.3;
}

.deliverable__body {
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

@media (max-width: 520px) {
  .deliverable {
    gap: 12px;
    padding: 14px 16px;
  }

  .deliverable__mark {
    width: 36px;
    height: 36px;
  }
}

/* ---------- Service page: two-up prose cards ----------
   Two columns suit short, parallel selling points. Measured across the seven
   services, only domain-registration-hosting is written that way — its longest
   section is 309 characters, against 766 to 1,786 everywhere else. Long-form
   copy in a half-width column produces a tall ragged card beside a short one,
   so every other service keeps one column and reads down the page.

   Hence the attribute selector rather than a plain .service-main: the layout
   follows the shape of the content, and only one service has that shape. */

@media (min-width: 860px) {
  .service-main[data-service='domain-registration-hosting'] .prose-boxed {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 1.8vw, 22px);
    align-items: stretch;
  }

  .service-main .prose-boxed .prose-box {
    display: flex;
    flex-direction: column;
    padding: clamp(22px, 2.4vw, 30px);
    padding-left: clamp(26px, 2.6vw, 34px);
  }

  /* Equal heights are a *row* concern: cards side by side should line up. Left
     applying to the single-column pages it forced every box to one height —
     padding the short ones with dead space and clipping the long ones, which
     is what "content does not fit the box" was. Scoped to the grid layout. */
  .service-main[data-service='domain-registration-hosting'] .prose-boxed .prose-box {
    height: 100%;
  }

  /* --fs-h5 was here, which is 15px — under the 16px body beneath it, so the
     section title read as smaller than its own paragraph. Note the scale: h5
     (15px) and h6 (13px) both sit BELOW --fs-body (16px), so a heading only
     looks like one from --fs-h4 up. h3 clears the body with room to spare
     without overpowering a two-column card. */
  .service-main .prose-boxed .prose-box h2 {
    font-size: var(--fs-h3);
    line-height: 1.3;
    text-wrap: balance;
  }

  /* The opening paragraph has no heading of its own, so it is tinted instead —
     that keeps it visually distinct while still occupying one cell, which is
     what makes four sections land as a clean 2 x 2. */
  .service-main .prose-boxed .prose-box:first-child:not(:has(h2)) {
    background: linear-gradient(140deg, var(--gold-soft), var(--surface) 72%);
  }

  /* --fs-h6 was here, which shrank this to 13px — smaller than the 16px body
     it was meant to lead. The heading tokens in this scale run *below* body
     size; the intro reads bigger only if it is given a bigger value. */
  .service-main .prose-boxed .prose-box:first-child:not(:has(h2)) p {
    font-size: var(--fs-body);
    line-height: 1.7;
    color: var(--ink);
    font-weight: 500;
  }
}

/* ---------- Pricing table (service plans) -------------------------------- */
/* Structure follows the hostingcambodia.com reference — billing switch, three
   tiers, a highlighted one — but in this site's palette. The reference is
   green; green here would be a second accent competing with gold, which is the
   exact problem color-audit.md was written about. Gold carries the emphasis,
   burgundy carries the weight. */

.pricing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(26px, 3.4vw, 40px);
  container-type: inline-size;
}

/* --- Monthly / yearly switch --- */

.pricing__switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px -18px rgba(0, 0, 0, 0.5);
}

.pricing__thumb {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  border-radius: var(--radius-pill);
  background: var(--grad-gold);
  box-shadow: 0 6px 16px -8px rgba(255, 178, 54, 0.85);
  transition: transform 0.34s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing__thumb--yearly {
  transform: translateX(100%);
}

.pricing__opt {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 26px;
  border: 0;
  background: transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  /* Bare --muted is 4.41:1 here — the switch sits on the page rather than on a
     card, so the token lands on white with nothing to help it. Half a step
     toward --ink keeps the unselected half secondary and legible. */
  color: color-mix(in srgb, var(--muted) 70%, var(--ink));
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.24s ease;
}

.pricing__opt[aria-pressed='true'] {
  color: var(--on-gold);
}

.pricing__save {
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: var(--fs-nano);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Selected, the badge sits on the gold thumb, so it inverts to a dark chip.
   A white chip breaks in dark mode, where --gold-deep resolves to a light
   gold and leaves the text at 1.7:1 against it. */
.pricing__opt[aria-pressed='true'] .pricing__save {
  background: var(--brand-burgundy-deep);
  color: var(--gold-bright);
}

/* The switch is two 1fr columns with a thumb hard-coded to half its width, so
   the halves have to actually be equal. `min-width: 0` lets a column shrink to
   its share instead of being floored at the width of its own text — without it
   "Yearly · Save up to 21%" claimed 206px against Monthly's 117px on a phone,
   and the thumb slid to a 50% mark that matched neither button. */
.pricing__opt {
  min-width: 0;
}

@media (max-width: 560px) {
  /* Shorter label and tighter padding so the long half fits its share. The
     qualifier is what has to survive, not the verb: "up to 21%" stays honest
     about the tiers saving different amounts, which a bare "21%" would not. */
  .pricing__opt {
    gap: 6px;
    padding: 10px 12px;
  }

  .pricing__save-verb {
    display: none;
  }
}

/* --- Cards --- */

/* Two priced tiers share the row; the quote tier takes a row of its own. Three
   equal columns left the paid plans too narrow to read, and those are the two
   a visitor is actually choosing between. Column count comes from the data via
   --plan-cols (see PricingPlans), not from auto-fit, so a wide container cannot
   open a third column that nothing fills. */
.pricing__grid {
  display: grid;
  width: 100%;
  gap: clamp(16px, 1.8vw, 22px);
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

@container (min-width: 640px) {
  .pricing__grid {
    grid-template-columns: repeat(var(--plan-cols, 2), minmax(0, 1fr));
  }
}

.pricing-card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.6vw, 32px);
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.55);
}

/* The two dark tiers. Burgundy is a surface here, never an action colour. */
.pricing-card--featured,
.pricing-card--quote {
  border-color: transparent;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 178, 54, 0.12), transparent 60%),
    linear-gradient(158deg, var(--brand-burgundy-mid), var(--brand-burgundy) 62%);
  color: var(--deep-ink);
  box-shadow: 0 26px 56px -32px rgba(0, 0, 0, 0.72);
}

/* On the two dark tiers the accent is the light one: --gold is a dark blue in
   light mode, which is invisible on navy. */
.pricing-card--featured .pricing-card__currency,
.pricing-card--quote .pricing-card__currency {
  color: var(--gold-bright);
}

.pricing-card--featured {
  box-shadow:
    0 0 0 1px rgba(244, 245, 239, 0.34),
    0 30px 64px -30px rgba(0, 0, 0, 0.78);
}

.pricing-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pricing-card__name {
  margin: 0;
  font-size: var(--fs-h5);
  line-height: 1.2;
}

.pricing-card--featured .pricing-card__name,
.pricing-card--quote .pricing-card__name {
  color: var(--deep-ink);
}

.pricing-card__badge {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--grad-gold);
  color: var(--on-gold);
  font-size: var(--fs-nano);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-card__tagline {
  margin: 10px 0 0;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--muted);
}

.pricing-card--featured .pricing-card__tagline,
.pricing-card--quote .pricing-card__tagline {
  color: var(--deep-muted);
}

/* --- Price --- */

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: clamp(18px, 2vw, 26px);
  flex-wrap: wrap;
}

/* Superscripted against a 52px number, the symbol needed lifting off the
   baseline. At half that size it just sits on it — the row is already
   baseline-aligned, so dropping the offset is the whole change. */
.pricing-card__currency {
  font-size: var(--fs-h6);
  font-weight: 700;
  color: var(--gold);
}

/* Half the previous clamp(38px, 4.4vw, 52px). Still the largest thing in the
   card by a clear margin — the note under it is 12px — so the price keeps the
   hierarchy without shouting. */
.pricing-card__amount,
.pricing-card__talk {
  font-size: clamp(19px, 2.2vw, 26px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* A fixed light ramp, not --grad-gold: this text sits on the navy quote tier in
   both themes, and --grad-gold is a dark fill ramp in light mode. */
.pricing-card__talk {
  background: linear-gradient(135deg, #ffb236 0%, #ffb236 48%, #ffb236 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pricing-card__per {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--muted);
}

.pricing-card--featured .pricing-card__per,
.pricing-card--quote .pricing-card__per {
  color: var(--deep-muted);
}

.pricing-card__note {
  margin: 10px 0 0;
  font-size: var(--fs-caption);
  color: var(--muted);
}

.pricing-card--featured .pricing-card__note,
.pricing-card--quote .pricing-card__note {
  color: var(--deep-muted);
}

/* --- Feature list --- */

.pricing-card__list {
  list-style: none;
  margin: clamp(18px, 2vw, 24px) 0 0;
  padding: clamp(18px, 2vw, 24px) 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.pricing-card--featured .pricing-card__list,
.pricing-card--quote .pricing-card__list {
  border-top-color: rgba(244, 245, 239, 0.22);
}

.pricing-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--fs-sm);
  line-height: 1.45;
}

/* --- Collapsed to four lines --- */

/* Hidden with CSS, not removed from the markup: the full feature list still
   ships in the HTML for crawlers and for find-in-page. */
.pricing-card__list.is-collapsed > li[data-extra] {
  display: none;
}

/* Revealed items cascade in rather than appearing all at once, so the eye can
   follow what just arrived. `--n` is the item's position past the fold. */
.pricing-card__list:not(.is-collapsed) > li[data-extra] {
  animation: feature-in 0.42s var(--ease) backwards;
  animation-delay: calc(var(--n) * 55ms);
}

@keyframes feature-in {
  from {
    opacity: 0;
    transform: translateY(-7px);
  }
}

.pricing-card__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
  padding: 8px 18px;
  border: 1px dashed color-mix(in srgb, var(--gold) 45%, var(--line));
  border-radius: var(--radius-pill);
  background: transparent;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--gold-deep);
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}

.pricing-card__toggle:hover {
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  border-color: var(--gold);
}

.pricing-card--featured .pricing-card__toggle,
.pricing-card--quote .pricing-card__toggle {
  border-color: rgba(244, 245, 239, 0.38);
  color: var(--gold-bright);
}

.pricing-card--featured .pricing-card__toggle:hover,
.pricing-card--quote .pricing-card__toggle:hover {
  background: rgba(244, 245, 239, 0.12);
  border-color: rgba(255, 178, 54, 0.7);
}

.pricing-card__chev {
  display: grid;
  place-items: center;
  transition: transform 0.32s var(--ease);
}

.pricing-card__toggle[aria-expanded='true'] .pricing-card__chev {
  transform: rotate(180deg);
}

.pricing-card__tick {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.pricing-card--featured .pricing-card__tick,
.pricing-card--quote .pricing-card__tick {
  background: rgba(244, 245, 239, 0.16);
  color: var(--gold-bright);
}

/* --- Call to action --- */

.pricing-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: clamp(20px, 2.2vw, 26px);
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  background: var(--grad-gold);
  color: var(--on-gold);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.pricing-card__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -14px rgba(255, 178, 54, 0.9);
  color: var(--on-gold);
}

.pricing-card__cta svg {
  transition: transform 0.22s ease;
}

.pricing-card__cta:hover svg {
  transform: translateX(3px);
}

/* The quote tier inverts, so the two dark cards do not read as the same offer. */
.pricing-card--quote .pricing-card__cta {
  background: var(--deep-ink);
  color: var(--brand-burgundy);
}

.pricing-card--quote .pricing-card__cta:hover {
  color: var(--brand-burgundy);
  box-shadow: 0 14px 28px -14px rgba(244, 245, 239, 0.45);
}

/* --- The quote tier, on its own row --- */

@container (min-width: 700px) {
  /* Lift the highlighted tier only when tiers sit side by side — raising a
     full-width card on a phone just opens a gap above it. */
  .pricing-card--featured {
    transform: translateY(-10px);
  }

  /* Named areas rather than source order: the expander has to sit under the
     features it opens, in the right-hand column, not under the price. */
  .pricing-card--quote {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(230px, 0.85fr) minmax(0, 1.5fr);
    grid-template-areas:
      'intro list'
      'cta   toggle';
    align-items: center;
    column-gap: clamp(28px, 3.2vw, 46px);
    row-gap: 20px;
  }

  .pricing-card--quote .pricing-card__intro {
    grid-area: intro;
    align-self: center;
  }

  /* Sideways, the divider belongs between the columns, not above the list. */
  .pricing-card--quote .pricing-card__list {
    grid-area: list;
    margin: 0;
    padding: 0 0 0 clamp(28px, 3.2vw, 46px);
    border-top: 0;
    border-left: 1px solid rgba(244, 245, 239, 0.22);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px 26px;
    align-content: center;
  }

  .pricing-card--quote .pricing-card__toggle {
    grid-area: toggle;
    width: auto;
    margin: 0 0 0 clamp(28px, 3.2vw, 46px);
    justify-self: start;
    padding-inline: 22px;
  }

  .pricing-card--quote .pricing-card__cta {
    grid-area: cta;
    margin-top: 0;
    justify-self: start;
  }

  .pricing-card--quote .pricing-card__price {
    margin-top: 14px;
  }

  /* --- Quote tier sharing its row with an aside --- */
  /* Declared after the sideways rules above so it overrides them: with a second
     box on the row the card is half as wide, and its intro-beside-features
     layout has nowhere to go. It stacks instead. */
  .pricing__grid--with-aside .pricing-card--quote {
    grid-column: span 1;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'intro'
      'list'
      'toggle'
      'cta';
    align-items: stretch;
    row-gap: 0;
  }

  .pricing__grid--with-aside .pricing-card--quote .pricing-card__intro {
    align-self: start;
  }

  .pricing__grid--with-aside .pricing-card--quote .pricing-card__list {
    padding: clamp(18px, 2vw, 24px) 0 0;
    border-left: 0;
    border-top: 1px solid rgba(244, 245, 239, 0.22);
    margin-top: clamp(18px, 2vw, 24px);
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
  }

  .pricing__grid--with-aside .pricing-card--quote .pricing-card__toggle {
    width: 100%;
    margin: 16px 0 0;
    justify-self: stretch;
  }

  .pricing__grid--with-aside .pricing-card--quote .pricing-card__cta {
    justify-self: stretch;
    margin-top: clamp(20px, 2.2vw, 26px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pricing__thumb,
  .pricing-card__cta,
  .pricing-card__cta svg,
  .pricing-card__chev,
  .pricing-card__toggle {
    transition: none;
  }

  .pricing-card__list:not(.is-collapsed) > li[data-extra] {
    animation: none;
  }

  .pricing-card__cta:hover {
    transform: none;
  }
}

/* ---------- FAQ hub (/faqs) --------------------------------------------- */
/* The service pages keep the compact `.faq-item` list above. This is the hub:
   one searchable set of every answer on the site, so it drops the sidebar and
   uses the full container width. */

/* `.faq-page` is now only a modifier on `.reading-layout` — the grid and the
   340px rail come from that. The column stacking moved to `.faq-main`. */
.faq-main {
  display: flex;
  flex-direction: column;
  gap: clamp(38px, 4.5vw, 60px);
  min-width: 0;
}

.faq-explorer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 2.2vw, 26px);
}

/* --- Search --- */

.faq-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px -28px rgba(0, 0, 0, 0.6);
  transition:
    border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.faq-search:focus-within {
  border-color: color-mix(in srgb, var(--gold) 62%, var(--line));
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--gold) 18%, transparent),
    0 16px 40px -26px rgba(0, 0, 0, 0.6);
}

.faq-search__icon {
  display: grid;
  place-items: center;
  padding-left: 22px;
  color: var(--gold-deep);
  flex: none;
}

.faq-search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 17px 16px;
  font: inherit;
  font-size: var(--fs-body);
  color: var(--ink);
}

.faq-search__input:focus {
  outline: none;
}

.faq-search__input::placeholder {
  color: var(--muted);
}

/* The browser's own clear affordance would sit next to ours. */
.faq-search__input::-webkit-search-cancel-button {
  display: none;
}

.faq-search__clear {
  flex: none;
  margin-right: 8px;
  padding: 9px 18px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  color: var(--muted);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease);
}

.faq-search__clear:hover {
  color: var(--gold-deep);
}

/* The tab track deliberately exceeds the column and scrolls inside `.faq-filter`
   (see that block). A `max-width: 100%` here capped it back to the column —
   max-width beats width — and clipped the last two categories. */

.faq-count {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* --- Accordion --- */

.faq-accordion {
  width: min(920px, 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
  transition:
    border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.faq-card:hover {
  border-color: color-mix(in srgb, var(--gold) 42%, var(--line));
}

.faq-card[open] {
  border-color: color-mix(in srgb, var(--gold) 55%, var(--line));
  box-shadow: 0 18px 44px -32px rgba(0, 0, 0, 0.6);
}

/* A gold spine on the open answer, so the eye can find where it is. */
.faq-card[open]::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--grad-gold);
}

.faq-card__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  padding: 19px clamp(18px, 2vw, 26px);
  /* Matches `.faq-item summary` on the service pages: the question and its
     answer share --fs-body and a 1.6 line-height, and are told apart by weight
     and colour. --fs-h6 is 13px here, which set the question *below* its own
     16px answer text. */
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
  list-style: none;
}

.faq-card__q::-webkit-details-marker {
  display: none;
}

/* Plus that rotates into a minus — one element, no content swap. */
.faq-card__mark {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold-soft);
  transition: background var(--dur-fast) var(--ease);
}

.faq-card__mark::before,
.faq-card__mark::after {
  content: '';
  position: absolute;
  inset: 50% 7px auto 7px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-deep);
  transform: translateY(-50%);
  transition: transform 0.28s var(--ease);
}

.faq-card__mark::after {
  transform: translateY(-50%) rotate(90deg);
}

.faq-card[open] .faq-card__mark {
  background: var(--grad-gold);
}

.faq-card[open] .faq-card__mark::before,
.faq-card[open] .faq-card__mark::after {
  background: var(--on-gold);
  transform: translateY(-50%) rotate(180deg);
}

.faq-card__a {
  padding: 0 clamp(18px, 2vw, 26px) 22px;
}

.faq-card__a .faq-answer {
  margin: 0;
  max-width: none;
  color: var(--muted);
}

.faq-card__more {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--muted);
}

.faq-hit {
  background: color-mix(in srgb, var(--gold) 32%, transparent);
  color: inherit;
  border-radius: 3px;
  padding: 0 2px;
}

/* --- Empty state --- */

.faq-empty {
  width: min(560px, 100%);
  text-align: center;
  padding: clamp(30px, 4vw, 46px);
  border-radius: 20px;
  border: 1px dashed color-mix(in srgb, var(--gold) 40%, var(--line));
  background: linear-gradient(160deg, var(--gold-soft), var(--surface) 70%);
}

.faq-empty h3 {
  margin: 0 0 10px;
  font-size: var(--fs-h5);
}

.faq-empty p {
  margin: 0 0 22px;
  color: var(--muted);
}

/* --- Closing "still stuck?" band --- */

/* Light on purpose: the site-wide closing CTA band directly below this is dark
   burgundy, and two dark bands in a row read as one repeated block. */
.faq-ask {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(22px, 3vw, 40px);
  flex-wrap: wrap;
  padding: clamp(26px, 3.2vw, 42px);
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--gold) 34%, var(--line));
  background:
    radial-gradient(
      120% 140% at 100% 0%,
      color-mix(in srgb, var(--gold) 16%, transparent),
      transparent 64%
    ),
    linear-gradient(150deg, var(--gold-soft), var(--surface) 72%);
}

.faq-ask__body {
  flex: 1 1 340px;
}

.faq-ask__body h2,
.faq-ask__body .prose h2 {
  margin: 0 0 8px;
  font-size: var(--fs-h4);
  color: var(--ink);
}

/* The shared prose rule paints an underline beneath every h2; here the panel
   itself already separates the heading, so the rule reads as a stray line. */
.faq-ask__body .prose h2::after {
  display: none;
}

.faq-ask__body p,
.faq-ask__body .prose p {
  margin: 0;
  max-width: 60ch;
  /* Not --muted: this panel is a gold wash, lighter than the page the token
     was chosen against, and --muted lands on it at 4.0:1. --ink still reads as
     body copy beside the heading above it, and measures 9.4. */
  color: var(--ink);
}

.faq-ask__promise {
  margin-top: 12px !important;
  font-size: var(--fs-sm);
  font-style: italic;
}

.faq-ask__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
  .faq-card,
  .faq-card__mark,
  .faq-card__mark::before,
  .faq-card__mark::after,
  .faq-search {
    transition: none;
  }
}

/* ---------- Home: hosting price band ------------------------------------ */
/* Its own soft gold wash rather than `.section--tint`: it sits between a tinted
   services grid and a plain comparison band, and a third flat surface there
   would flatten the page rhythm. */

.home-pricing {
  position: relative;
  background:
    radial-gradient(
      90% 60% at 50% 0%,
      color-mix(in srgb, var(--gold) 11%, transparent),
      transparent 70%
    ),
    var(--surface);
}

.home-pricing::before,
.home-pricing::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.55;
}

.home-pricing::before {
  top: 0;
}

.home-pricing::after {
  bottom: 0;
}

.home-pricing .pricing {
  margin-top: clamp(26px, 3vw, 38px);
}

/* A grid item beside the quote tier now, not a strip under the table — so it
   is drawn as its own box and fills the row's height. Two columns: the copy,
   and the server motif filling what would otherwise be dead space. */
.home-pricing__foot {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 2.4vw, 30px);
  height: 100%;
  padding: clamp(24px, 2.6vw, 32px);
  border-radius: 22px;
  border: 1px dashed color-mix(in srgb, var(--gold) 38%, var(--line));
  background: linear-gradient(150deg, var(--gold-soft), var(--surface) 74%);
  overflow: hidden;
}

.home-pricing__foot-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(14px, 1.8vw, 20px);
}

.home-pricing__foot p {
  margin: 0;
  max-width: 46ch;
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--muted);
}

.home-pricing__foot .btn {
  flex: none;
}

/* The FAQ hub reuses the shared `.premium-filter` glass control (Our Work,
   Testimonials). `.faq-explorer` centres its children, so the wrapper has to
   claim the full width for the track to span it. */
.faq-filter {
  width: 100%;
  margin-top: 0;
}

/* Eight categories total ~1050px and the column is 744px beside the rail, so
   they cannot sit on one line. Rather than scroll them out of sight — a
   category you cannot see is a category nobody filters by — the track wraps
   and the capsule travels in two dimensions to reach the row below. */
.faq-filter .glass-pill--wrap {
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 4px;
  /* A 999px radius assumes one row: once the track is several rows tall it
     turns the whole panel into an oval. A rounded rectangle holding pill
     capsules is the correct shape for a multi-row track. */
  border-radius: clamp(20px, 2.2vw, 28px);
}

/* Tighter tabs on a phone, or eight categories become five rows. */
@media (max-width: 560px) {
  .faq-filter .glass-pill--wrap .glass-pill__opt {
    min-height: 38px;
    padding: 9px 14px;
    font-size: var(--fs-sm);
  }
}

/* The capsule now has a row to change as well as a column, so `top` joins the
   spring. It arcs to the new row instead of sliding along a line it has left. */
.faq-filter .glass-pill--wrap .glass-pill__thumb {
  bottom: auto;
  transition:
    left 480ms cubic-bezier(0.34, 1.32, 0.44, 1),
    top 420ms cubic-bezier(0.34, 1.24, 0.44, 1),
    width 380ms cubic-bezier(0.32, 0.9, 0.3, 1),
    height 380ms cubic-bezier(0.32, 0.9, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  .faq-filter .glass-pill--wrap .glass-pill__thumb {
    transition: none;
  }
}

/* `.section-head` is already capped at 660px — almost exactly half the 1302px
   container — so the head is at 50% and it is the paragraph inside that was
   short of it: `.center-block` held the lede to ~509px and left it six lines
   tall. Letting it fill the head is the whole fix. */
.home-pricing .section-head .lede {
  max-width: 100%;
}

/* ---------- Plan card hover ---------- */
/* Three layers on hover: a gold spotlight that follows the cursor (--mx/--my
   are written by PricingPlans on mousemove), a light sweeping across once, and
   the card lifting toward you.

   Both pseudo-elements sit at z-index -1 inside an isolated stacking context.
   That paints them above the card's own background but below its content, so
   no child needs a z-index of its own and nothing intercepts clicks. */
.pricing-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.42s ease,
    border-color 0.3s ease;
}

/* The spotlight. */
.pricing-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, 0%),
    color-mix(in srgb, var(--gold) 24%, transparent),
    transparent 60%
  );
  transition: opacity 0.38s ease;
}

.pricing-card:hover::after {
  opacity: 1;
}

/* The sweep — one pass, triggered by hover rather than looping forever. */
.pricing-card::before {
  content: '';
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: -65%;
  width: 42%;
  z-index: -1;
  pointer-events: none;
  transform: skewX(-14deg);
  background: linear-gradient(
    100deg,
    transparent,
    color-mix(in srgb, var(--gold-bright) 34%, transparent),
    transparent
  );
}

.pricing-card:hover::before {
  animation: plan-sheen 0.95s cubic-bezier(0.3, 0.7, 0.4, 1) forwards;
}

@keyframes plan-sheen {
  to {
    left: 125%;
  }
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--gold) 52%, var(--line));
  box-shadow: 0 32px 64px -30px rgba(0, 0, 0, 0.5);
}

/* The featured tier is already lifted by the container query, so its hover has
   to add to that offset rather than replace it. */
@container (min-width: 700px) {
  .pricing-card--featured:hover {
    transform: translateY(-17px);
  }
}

.pricing-card--featured:hover,
.pricing-card--quote:hover {
  border-color: transparent;
  box-shadow:
    0 0 0 1px rgba(244, 245, 239, 0.55),
    0 34px 68px -30px rgba(0, 0, 0, 0.8);
}

/* The tick marks warm up together — a small sign the card is "live". */
.pricing-card:hover .pricing-card__tick {
  background: var(--grad-gold);
  color: var(--on-gold);
}

.pricing-card__tick {
  transition:
    background 0.35s ease,
    color 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
  .pricing-card,
  .pricing-card::after,
  .pricing-card__tick {
    transition: none;
  }

  .pricing-card:hover {
    transform: none;
  }

  .pricing-card:hover::before {
    animation: none;
  }

  @container (min-width: 700px) {
    .pricing-card--featured:hover {
      transform: translateY(-10px);
    }
  }
}

/* ---------- WHOIS modal: light green ------------------------------------ */
/* Recoloured from the burgundy/gold panel to the green status family. Built on
   the --ok-* tokens rather than literal greens so it inverts by itself in dark
   mode: --ok-tint is a pale wash on white and a translucent green over a dark
   surface, and --ok-ink flips from deep green to mint. The panel text must move
   off --deep-ink at the same time, or near-white type lands on a pale panel. */

.dt-modal::backdrop {
  background: rgb(6 20 13 / 0.62);
}

.dt-modal__panel {
  background: linear-gradient(160deg, var(--ok-tint), var(--surface) 78%);
  color: var(--ink);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--ok) 22%, transparent),
    0 40px 90px rgb(6 20 13 / 0.42);
}

.dt-modal__head {
  border-bottom-color: color-mix(in srgb, var(--ok) 26%, transparent);
  background: color-mix(in srgb, var(--ok) 8%, transparent);
}

.dt-modal__eyebrow {
  color: var(--ok-ink);
}

.dt-modal__title {
  color: var(--ink);
}

.dt-modal__close {
  border-color: color-mix(in srgb, var(--ok) 34%, transparent);
  color: var(--ok-ink);
}

.dt-modal__close:hover {
  background: var(--ok);
  border-color: transparent;
  color: #fff;
}

/* The record itself sits on a plain surface, not a tint: WHOIS is dense
   monospace and every extra wash under it costs legibility. */
.dt-modal__body {
  background: var(--surface);
  color: var(--ink);
  border-block: 1px solid color-mix(in srgb, var(--ok) 14%, transparent);
}

.dt-modal__foot {
  border-top-color: color-mix(in srgb, var(--ok) 26%, transparent);
  background: color-mix(in srgb, var(--ok) 6%, transparent);
}

.dt-modal__note {
  color: var(--muted);
}

.dt-modal__copy {
  border-color: color-mix(in srgb, var(--ok) 45%, transparent);
  color: var(--ok-ink);
}

.dt-modal__copy:hover {
  background: var(--ok);
  border-color: transparent;
  color: #fff;
}

/* ---------- Hero domain search --------------------------------------------
   Replaces the old `.home-tools-launcher` button. That button revealed the
   panel and nothing else, so a visitor had to click, find the field, then type.
   This is the same journey in one action, and it puts the highest-intent thing
   on the page — a domain name — directly under the headline.
   The old launcher rules above are now dead: nothing renders that markup. */

/* `flex: 1 1 320px` was wrong here. `.hero__actions` turns into a column on a
   phone, where flex-basis is the *height* — so the box was pinned to 320px tall
   around 90px of content and left ~230px of dead space under the field.
   Width intent belongs in min-width, which means the same rule works in both
   directions with no breakpoint. */
.home-tools-search {
  flex: 1 1 auto;
  min-width: min(320px, 100%);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.home-tools-search__form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px 5px 5px 18px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--gold) 26%, var(--line));
  box-shadow: 0 18px 44px -26px rgba(0, 0, 0, 0.62);
  transition:
    border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.home-tools-search__form:focus-within {
  border-color: color-mix(in srgb, var(--gold) 65%, transparent);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--gold) 18%, transparent),
    0 18px 44px -24px rgba(0, 0, 0, 0.62);
}

.home-tools-search__prefix {
  flex: none;
  color: var(--gold-deep);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
}

.home-tools-search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 12px 8px;
  font: inherit;
  font-size: var(--fs-body);
  color: var(--ink);
}

.home-tools-search__input:focus {
  outline: none;
}

.home-tools-search__input::placeholder {
  color: var(--muted);
}

.home-tools-search__go {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--grad-gold);
  color: var(--on-gold);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.home-tools-search__go:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -12px rgba(255, 178, 54, 0.9);
}

.home-tools-search__hide {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: inherit;
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* On a phone the label is the first thing to go — the icon still says search,
   and the field needs every pixel it can get. */
@media (max-width: 520px) {
  .home-tools-search__form {
    padding-left: 14px;
  }

  /* Dropping the label shrank the button to a 38px target. Square it off at 44
     so it still meets the touch guideline with only the icon left. */
  .home-tools-search__go {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
  }

  .home-tools-search__go span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-tools-search__form,
  .home-tools-search__go {
    transition: none;
  }

  .home-tools-search__go:hover {
    transform: none;
  }
}

/* ---------- Free-tools panel: close control ------------------------------ */
/* Anchored to the container's right edge rather than the viewport's, so on a
   wide screen it sits over the panel rather than drifting off into the margin.
   The max() keeps it inside the gutter once the viewport is narrower than the
   container, where that calc would go negative. */

.home-tools__close {
  position: absolute;
  z-index: 4;
  top: clamp(18px, 2.4vw, 30px);
  right: max(20px, calc((100% - var(--container)) / 2 + 20px));
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 5px;
  border: 1px solid rgba(244, 245, 239, 0.28);
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--deep-ink);
  cursor: pointer;
  transition:
    background 0.28s var(--ease),
    border-color 0.28s var(--ease),
    box-shadow 0.28s var(--ease);
}

.home-tools__close:hover,
.home-tools__close:focus-visible {
  background: rgba(0, 0, 0, 0.78);
  border-color: rgba(255, 178, 54, 0.6);
  box-shadow: 0 10px 26px -14px rgb(0 0 0 / 0.7);
}

/* The label is folded away until wanted: an icon alone is ambiguous the first
   time, and a permanent label would compete with the panel heading. */
.home-tools__close-label {
  display: block;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-bright);
  transition:
    max-width 0.38s var(--ease),
    opacity 0.28s var(--ease),
    padding 0.38s var(--ease);
}

.home-tools__close:hover .home-tools__close-label,
.home-tools__close:focus-visible .home-tools__close-label {
  max-width: 8rem;
  padding-inline: 10px 4px;
  opacity: 1;
}

.home-tools__close-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: rgba(244, 245, 239, 0.12);
  transition:
    transform 0.42s cubic-bezier(0.34, 1.28, 0.44, 1),
    background 0.28s var(--ease),
    color 0.28s var(--ease);
}

/* A quarter turn on hover: the X becomes a + on the way round and back again,
   which is the whole trick — one shape reading as both states. */
.home-tools__close:hover .home-tools__close-mark,
.home-tools__close:focus-visible .home-tools__close-mark {
  transform: rotate(90deg);
  background: var(--grad-gold);
  color: var(--on-gold);
}

/* A ring that draws itself around the mark, from nothing to full. */
.home-tools__close-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--gold-bright);
  opacity: 0;
  transform: scale(0.72);
  pointer-events: none;
  transition:
    opacity 0.34s var(--ease),
    transform 0.44s cubic-bezier(0.34, 1.28, 0.44, 1);
}

.home-tools__close:hover .home-tools__close-ring,
.home-tools__close:focus-visible .home-tools__close-ring {
  opacity: 0.55;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .home-tools__close,
  .home-tools__close-label,
  .home-tools__close-mark,
  .home-tools__close-ring {
    transition: none;
  }

  .home-tools__close:hover .home-tools__close-mark,
  .home-tools__close:focus-visible .home-tools__close-mark {
    transform: none;
  }
}

/* ---------- Header: the bar-level actions cluster ------------------------ */
/* Saved domains, the quote CTA and the theme switch travel together as one
   `.site-header__bar` child, sitting before the burger in the markup. Below
   1200px that is exactly where they should render — on the bar, left of the
   menu button — instead of folding into the drawer with the nav. On desktop
   `order` moves the whole cluster past the nav to the end of the row, which is
   where it has always appeared. */

@media (max-width: 1200px) {
  .site-header__bar > .site-header__actions--bar {
    margin-left: auto;
  }

  /* The burger's own auto margin would otherwise split the free space with the
     cluster and strand the two apart. */
  .site-header__burger {
    margin-left: 4px;
  }
}

@media (min-width: 1201px) {
  .site-header__bar > .site-header__actions--bar {
    order: 3;
  }
}

/* The word beside the burger. Tablet only: on a desktop there is no burger,
   and on a phone the bar has already had to give up the theme switch's word
   for room — the 620px measurement that moved it into the drawer — so a
   second word would not fit either. Styled as the twin of the theme
   switch's "LIGHT" it sits next to. */
.site-header__burger-word {
  display: none;
}

@media (min-width: 621px) and (max-width: 1200px) {
  .site-header__burger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  .site-header__burger-word {
    display: block;
    font-size: var(--fs-caption);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
  }
}

/* The hero centres at 980px, but the gold rule under the headline is a
   fixed-width block with no auto margins, so it stayed pinned left under
   centred text. It draws from the middle out to match. */
@media (max-width: 980px) {
  html.js .hero h1::after,
  .hero h1::after {
    margin-inline: auto;
    transform-origin: center;
  }
}

/* Desktop keeps the icon-only circle; the bar's own 24px gap is wider than the
   8px inside the cluster, so pull the cluster back by the difference and the
   spacing is what it was when these lived inside the nav. */
@media (min-width: 1201px) {
  .site-header__bar > .site-header__actions--bar {
    margin-left: calc(8px - clamp(12px, 2vw, 24px));
  }
}

/* --- Which copy of the CTA is on show --- */
/* One and only one, at every width: `display: none` keeps the other out of the
   accessibility tree entirely, so nobody meets two "Get a Quote" buttons.

   620px is measured, not guessed: below it the logo, the saved-domain count,
   the pill, the theme label and the burger no longer fit on one bar. */

.cta-pill--drawer {
  display: none;
}

@media (max-width: 620px) {
  .cta-pill--bar {
    display: none;
  }

  .cta-pill--drawer {
    display: inline-flex;
  }
}

/* The drawer copy is a full-width row, like every other item in the drawer. */
@media (max-width: 1200px) {
  .site-header__actions--drawer .cta-pill {
    justify-content: center;
    width: 100%;
  }
}

/* Above 620px the drawer's action row holds nothing at all, and an empty row
   still draws its top rule and its margin — a stray line across the menu. */
@media (min-width: 621px) {
  .site-header__actions--drawer {
    display: none;
  }
}

.theme-toggle__text {
  display: none;
}

/* --- Theme switch: bar copy vs. drawer copy — same 620px split as the CTA --- */

.theme-drawer {
  display: none;
}

@media (max-width: 620px) {
  /* The icon-and-word button that lives beside the burger above 620px: gone
     below it, in favour of the segmented row underneath. */
  .theme-toggle {
    display: none;
  }

  .theme-drawer {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .theme-drawer__label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: var(--fs-caption);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .theme-drawer__label svg {
    color: var(--gold-deep);
  }

  /* A segmented control, not three loose buttons — one champagne-tinted track
     with the active third lit, so switching reads as sliding a state rather
     than picking from a list. */
  .theme-drawer__options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 4px;
    border-radius: var(--radius-pill);
    background: var(--bg-alt);
  }

  .theme-drawer__opt {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px 6px;
    border: 0;
    border-radius: var(--radius-pill);
    background: none;
    color: var(--muted);
    font: inherit;
    cursor: pointer;
    transition:
      background var(--dur-fast) var(--ease),
      color var(--dur-fast) var(--ease),
      transform var(--dur-fast) var(--ease);
  }

  .theme-drawer__opt svg {
    width: 21px;
    height: 21px;
  }

  .theme-drawer__opt:hover {
    color: var(--gold-deep);
  }

  .theme-drawer__opt.is-active {
    background: var(--surface);
    color: var(--gold-deep);
    box-shadow:
      0 1px 2px rgba(0, 0, 0, 0.06),
      0 6px 14px -8px color-mix(in srgb, var(--gold) 55%, transparent);
    transform: translateY(-1px);
  }

  .theme-drawer__opt.is-active svg {
    color: var(--gold);
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-drawer__opt {
    transition: none;
  }
}

/* On the mobile bar the switch sits alone beside the burger with no menu label
   near it, so the glyph alone does not say which mode is on. The button becomes
   a pill and names it. */
@media (max-width: 1200px) {
  /* Not styled as a button at all here — the glyph and its word *are* the
     control. No border, no fill, no padding box; height alone carries the tap
     target, and at ~66x40 it is still comfortably past the 24px minimum. */
  .theme-toggle__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: auto;
    min-width: 0;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ink);
  }

  .theme-toggle__btn:hover,
  .theme-toggle__btn:active {
    border: 0;
    background: transparent;
    color: var(--gold-deep);
    box-shadow: none;
  }

  /* The desktop button's mode tints and its hover ring belong to a 44px
     circle. Here there is no circle: the tint would sit as a blob behind
     the word (the [data-mode] selector outranks the plain one above), and
     the ring, drawn round a 66×40 box, came out as a lopsided oval. */
  .theme-toggle__btn[data-mode] {
    background: transparent;
  }

  .theme-toggle__ring {
    display: none;
  }

  /* With the border gone, focus needs a ring of its own or it vanishes for
     keyboard users. */
  .theme-toggle__btn:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
  }

  .theme-toggle__text {
    display: block;
    font-size: var(--fs-caption);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
  }
}

/* Measured, not guessed: at 375px the bar still has 48px spare with the label
   in, so the label survives every common phone width. Only below ~330px — an
   iPhone SE 1 and little else — does it have to go. */
@media (max-width: 330px) {
  .theme-toggle__text {
    display: none;
  }
}

/* The hero centres its text at 980px and the slider caption inherited it, so
   the project name sat centred over a left-aligned screenshot. The caption is
   a label on an image, not hero copy — it reads left. */
@media (max-width: 980px) {
  .hero-slider__caption,
  .hero-slider__caption-copy {
    text-align: left;
  }
}

/* Hide the slider arrows on touch widths. They are redundant there — the track
   already handles swipe, autoplay keeps running, and the numbered rail below
   stays as both an indicator and a jump control — and at this size they sit on
   top of the screenshot they are meant to reveal. */
@media (max-width: 980px) {
  .hero-slider__arrow,
  .hero-slider__stage > .hero-slider__arrow {
    display: none;
  }
}

/* ---------- Saved domains (header) --------------------------------------- */
/* Only rendered once the visitor has looked something up, so nothing here has
   an empty state to design for. */

.domain-history {
  position: relative;
  display: flex;
  align-items: center;
}

/* A pill, not a circle: it carries the glyph and the count side by side, so the
   number is part of the control instead of a bubble stuck to its corner. */
.domain-history__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition:
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.domain-history__btn:hover,
.domain-history__btn[aria-expanded='true'] {
  border-color: var(--gold);
  color: var(--gold-deep);
}

/* Inside the pill now rather than pinned to its corner — it reads as the
   control's value, which is what it is. */
.domain-history__count {
  font-size: var(--fs-caption);
  font-weight: 800;
  line-height: 1;
  color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
}

.domain-history__panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 60;
  width: min(330px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 26px 60px -26px rgba(0, 0, 0, 0.5);
  animation: history-in 0.24s var(--ease) both;
}

@keyframes history-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.domain-history__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.domain-history__title {
  margin: 0;
  font-size: var(--fs-nano);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.domain-history__clear {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.domain-history__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  /* Twenty-four entries would run off the screen; the list scrolls, the header
     and footer stay put. */
  max-height: min(52vh, 340px);
  overflow-y: auto;
}

.domain-history__item {
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast) var(--ease);
}

.domain-history__item:hover {
  background: var(--bg-alt);
}

.domain-history__link {
  flex: 1;
  min-width: 0;
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
}

.domain-history__name {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.domain-history__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
  font-size: var(--fs-nano);
  color: var(--muted);
}

.domain-history__tool {
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Availability keeps the same semantics as the tool itself: green for free,
   plain muted for taken. Gold stays the colour of the action. */
.domain-history__state {
  font-weight: 700;
}

.domain-history__state.is-free {
  color: var(--ok-ink);
}

.domain-history__remove {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 6px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.domain-history__remove:hover {
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  color: var(--danger);
}

.domain-history__foot {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-nano);
  color: var(--muted);
}

/* This used to left-align the panel below 1200px, from when the saved-domain
   button lived inside the mobile drawer. The button moved onto the header bar,
   and the rule outlived its reason: anchored left to a button sitting 155px in,
   a 327px panel ran 107px past the right edge of a phone screen.

   From 621px up the base `right: 0` is correct again — the button is near the
   right of the bar, so the panel hangs inward. */

/* On a phone neither edge works: the panel is wider than the space on either
   side of the button. So it stops hanging off the button altogether and becomes
   a sheet spanning the viewport, positioned from the header rather than from
   its trigger. Fixed, not absolute — its containing block is a 60px button. */
@media (max-width: 620px) {
  .domain-history__panel {
    position: fixed;
    /* Tokens, not a measured constant: --header-h is the header's own height
       and --ann-h is the announcement bar when one is showing. */
    top: calc(var(--ann-h, 0px) + var(--header-h) + 6px);
    left: 12px;
    right: 12px;
    width: auto;
    max-height: calc(100dvh - var(--ann-h, 0px) - var(--header-h) - 24px);
    overflow-y: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .domain-history__panel {
    animation: none;
  }
}

/* ---------- Hosting motif (decorative) ----------------------------------- */
/* A server stack broadcasting upward, filling the space beside the migration
   copy. Ornament only: aria-hidden, no information of its own. Every moving
   part is CSS, so the component stays server-rendered and ships no JS. */

.hosting-motif {
  display: block;
  width: clamp(96px, 12vw, 132px);
  height: auto;
  flex: none;
  overflow: visible;
}

/* Signal arcs sweeping outward, one after another. */
.hosting-motif__wave {
  stroke-width: 2;
  opacity: 0;
  transform-origin: 80px 46px;
  animation: hosting-wave 3.6s ease-out infinite;
}

@keyframes hosting-wave {
  0% {
    opacity: 0;
    transform: scale(0.72);
  }
  22% {
    opacity: 0.5;
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.06);
  }
}

/* Packets climbing the uplink from the rack to the arcs. */
.hosting-motif__packet {
  opacity: 0;
  animation: hosting-packet 2.4s ease-in-out infinite;
}

@keyframes hosting-packet {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  18% {
    opacity: 1;
  }
  75%,
  100% {
    opacity: 0;
    transform: translateY(-22px);
  }
}

/* Status lights. They never blink in unison — the delays are set per node. */
.hosting-motif__led {
  animation: hosting-led 1.8s ease-in-out infinite;
}

@keyframes hosting-led {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}

/* Below ~560px the copy needs the whole box. */
@media (max-width: 560px) {
  .home-pricing__foot {
    grid-template-columns: minmax(0, 1fr);
  }

  .hosting-motif {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hosting-motif__wave,
  .hosting-motif__packet,
  .hosting-motif__led {
    animation: none;
  }

  /* Without the animation these would sit at opacity 0 and vanish. */
  .hosting-motif__wave {
    opacity: 0.35;
  }

  .hosting-motif__packet {
    opacity: 0.8;
  }
}

/* ---------- Hosting motif (decorative) ----------------------------------- */
/* A server stack broadcasting upward, filling the space beside the migration
   copy. Ornament only: aria-hidden, no information of its own. Every moving
   part is CSS, so the component stays server-rendered and ships no JS. */

.hosting-motif {
  display: block;
  width: clamp(96px, 12vw, 132px);
  height: auto;
  flex: none;
  overflow: visible;
}

/* Signal arcs sweeping outward, one after another. */
.hosting-motif__wave {
  stroke-width: 2;
  opacity: 0;
  transform-origin: 80px 46px;
  animation: hosting-wave 3.6s ease-out infinite;
}

@keyframes hosting-wave {
  0% {
    opacity: 0;
    transform: scale(0.72);
  }
  22% {
    opacity: 0.5;
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.06);
  }
}

/* Packets climbing the uplink from the rack to the arcs. */
.hosting-motif__packet {
  opacity: 0;
  animation: hosting-packet 2.4s ease-in-out infinite;
}

@keyframes hosting-packet {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  18% {
    opacity: 1;
  }
  75%,
  100% {
    opacity: 0;
    transform: translateY(-22px);
  }
}

/* Status lights. They never blink in unison — the delays are set per node. */
.hosting-motif__led {
  animation: hosting-led 1.8s ease-in-out infinite;
}

@keyframes hosting-led {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}

/* Below ~560px the copy needs the whole box. */
@media (max-width: 560px) {
  .home-pricing__foot {
    grid-template-columns: minmax(0, 1fr);
  }

  .hosting-motif {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hosting-motif__wave,
  .hosting-motif__packet,
  .hosting-motif__led {
    animation: none;
  }

  /* Without the animation these would sit at opacity 0 and vanish. */
  .hosting-motif__wave {
    opacity: 0.35;
  }

  .hosting-motif__packet {
    opacity: 0.8;
  }
}

/* ---------- Saved-domains bookmark: motion ------------------------------- */
/* Two behaviours. A quiet attention pulse on a six-second cycle — most of that
   cycle is deliberately still, because a badge that never stops moving is
   noise, not a signal. And a one-shot flourish the moment a domain is actually
   saved, which is the only time the thing has news. */

.domain-history__btn svg,
.domain-history__count {
  will-change: transform;
}

/* Idle ping: a ring leaves the button, then eighty per cent of the cycle is
   silence. */
.domain-history__btn::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  opacity: 0;
  pointer-events: none;
  animation: bookmark-ping 6s ease-out infinite;
}

@keyframes bookmark-ping {
  0% {
    opacity: 0.6;
    transform: scale(0.92);
  }
  16% {
    opacity: 0;
    transform: scale(1.55);
  }
  100% {
    opacity: 0;
    transform: scale(1.55);
  }
}

/* The mark tips like a real bookmark being dropped in, on the same beat. */
.domain-history__btn svg {
  animation: bookmark-tip 6s ease-in-out infinite;
}

@keyframes bookmark-tip {
  0% {
    transform: translateY(-3px) rotate(-8deg);
  }
  9% {
    transform: translateY(1px) rotate(3deg);
  }
  14% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

.domain-history__count {
  animation: bookmark-count 6s ease-in-out infinite;
}

@keyframes bookmark-count {
  0% {
    transform: scale(1);
  }
  7% {
    transform: scale(1.28);
  }
  16%,
  100% {
    transform: scale(1);
  }
}

/* --- The moment something is saved --- */

.domain-history__btn.is-saved {
  border-color: var(--gold);
  color: var(--gold-deep);
  animation: bookmark-pop 0.85s cubic-bezier(0.34, 1.5, 0.44, 1);
}

@keyframes bookmark-pop {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.26) rotate(-6deg);
  }
  55% {
    transform: scale(0.94) rotate(3deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

/* A filled burst, distinct from the hairline idle ring so the two never read
   as the same event. */
.domain-history__btn.is-saved::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--gold) 45%, transparent),
    transparent 62%
  );
  pointer-events: none;
  animation: bookmark-burst 0.85s ease-out;
}

@keyframes bookmark-burst {
  0% {
    opacity: 0.9;
    transform: scale(0.6);
  }
  100% {
    opacity: 0;
    transform: scale(1.7);
  }
}

.domain-history__btn.is-saved .domain-history__count {
  animation: bookmark-count-pop 0.85s cubic-bezier(0.34, 1.5, 0.44, 1);
}

@keyframes bookmark-count-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.55);
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .domain-history__btn::after,
  .domain-history__btn::before,
  .domain-history__btn svg,
  .domain-history__count,
  .domain-history__btn.is-saved,
  .domain-history__btn.is-saved .domain-history__count {
    animation: none;
  }
}

/* ---------- Plan card watermark ------------------------------------------ */
/* The collapsed feature list leaves a gap above the CTA; the server motif fills
   it. Anchored bottom-right and allowed to bleed past the corner so it reads as
   a pattern the card is cut from rather than a picture dropped into it.

   z-index -1 inside the card's existing isolated stacking context: above the
   card's own background, below all of its content. `pointer-events: none` so it
   never intercepts the cursor the card is tracking. */

.pricing-card__motif {
  position: absolute;
  /* Below the header row rather than bleeding off the corner: the scene has a
     ground line and two labels, and the card clips its overflow, so hanging it
     over the edge would cut the destination in half. Clearing the header also
     keeps it out from under the "Most popular" badge. */
  top: 64px;
  right: 14px;
  z-index: -1;
  width: clamp(124px, 40%, 186px);
  opacity: 0.5;
  pointer-events: none;
  /* Lights the card's own gradient rather than sitting on top of it: the gold
     adds to whatever is beneath, so the burgundy tier glows warm and the light
     one stays a whisper. This is the "reflects the background" part — the same
     markup reads differently on each surface without a second rule. */
  mix-blend-mode: plus-lighter;
}

/* plus-lighter only brightens, so on the light card it washes almost to
   nothing. Multiply keeps it legible there by darkening instead. */
.pricing-card:not(.pricing-card--featured) .pricing-card__motif {
  mix-blend-mode: multiply;
  opacity: 0.28;
}

/* ...but in dark mode that card is a dark surface too, and multiply crushes
   the gold to black there — the motif was invisible, not subtle. Add back
   instead, the same way the burgundy tier does. The whole point of the blend is
   that it reads on whatever it sits on. */
:root[data-theme='dark'] .pricing-card:not(.pricing-card--featured) .pricing-card__motif {
  mix-blend-mode: plus-lighter;
  opacity: 0.34;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme='auto'] .pricing-card:not(.pricing-card--featured) .pricing-card__motif {
    mix-blend-mode: plus-lighter;
    opacity: 0.34;
  }
}

@media (max-width: 560px) {
  .pricing-card__motif {
    width: 108px;
    top: 58px;
    right: 10px;
  }
}

/* ---------- Saved domains: the deck ------------------------------------- */
/* The glyph is a stack of cards, not a bookmark ribbon. A ribbon means "saved
   article"; this holds a shortlist of names, and a deck shows there is more
   than one before the number is read. */

.domain-history__stack {
  flex: none;
  overflow: visible;
}

.domain-history__card {
  fill: currentColor;
  /* fill-box, so each card turns about its own middle rather than the SVG's
     top-left corner. */
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.42s cubic-bezier(0.34, 1.36, 0.44, 1);
}

.domain-history__card--back {
  opacity: 0.4;
}

.domain-history__card--mid {
  opacity: 0.68;
}

/* Fan on hover: the deck spreads the way a hand of cards does. */
.domain-history__btn:hover .domain-history__card--back,
.domain-history__btn:focus-visible .domain-history__card--back {
  transform: translate(-2.4px, -1.6px) rotate(-9deg);
}

.domain-history__btn:hover .domain-history__card--mid,
.domain-history__btn:focus-visible .domain-history__card--mid {
  transform: translate(1.4px, 0) rotate(4deg);
}

.domain-history__btn:hover .domain-history__card--front,
.domain-history__btn:focus-visible .domain-history__card--front {
  transform: translate(-1px, 1.8px) rotate(-3deg);
}

.domain-history__btn:hover,
.domain-history__btn[aria-expanded='true'] {
  border-color: var(--gold);
  color: var(--gold-deep);
  box-shadow: 0 10px 24px -16px rgba(0, 0, 0, 0.6);
}

/* --- Idle: one card lifts and settles, every six seconds --- */
/* Five of those six seconds are still on purpose. A badge that never stops
   moving is noise, not a signal. */
.domain-history__btn:not(:hover) .domain-history__card--back {
  animation: deck-breathe 6s ease-in-out infinite;
}

@keyframes deck-breathe {
  0%,
  86%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  90% {
    transform: translateY(-2.2px) rotate(-7deg);
  }
  95% {
    transform: translateY(0.4px) rotate(2deg);
  }
}

/* --- A card joining the deck --- */
/* The saved animation is the story the old pop could not tell: the new name
   drops onto the top of the stack. */
.domain-history__btn.is-saved .domain-history__card--back {
  animation: deck-deal 0.85s cubic-bezier(0.34, 1.45, 0.44, 1);
}

@keyframes deck-deal {
  0% {
    transform: translateY(-11px) rotate(-16deg);
    opacity: 0;
  }
  55% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.4;
  }
}

.domain-history__btn.is-saved {
  border-color: var(--gold);
  color: var(--gold-deep);
}

.domain-history__btn.is-saved::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  border: 1px solid var(--gold);
  pointer-events: none;
  animation: deck-ring 0.85s ease-out;
}

@keyframes deck-ring {
  0% {
    opacity: 0.7;
    transform: scale(0.94);
  }
  100% {
    opacity: 0;
    transform: scale(1.14);
  }
}

.domain-history__btn.is-saved .domain-history__count {
  animation: deck-count 0.85s cubic-bezier(0.34, 1.5, 0.44, 1);
}

@keyframes deck-count {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(1);
  }
}

.domain-history__count {
  display: inline-block;
  transform-origin: center;
}

@media (prefers-reduced-motion: reduce) {
  .domain-history__card,
  .domain-history__btn:not(:hover) .domain-history__card--back,
  .domain-history__btn.is-saved .domain-history__card--back,
  .domain-history__btn.is-saved::before,
  .domain-history__btn.is-saved .domain-history__count {
    animation: none;
    transition: none;
  }
}

/* ---------- Free-tools panel: the copy column ---------------------------- */
/* The console takes 75% of the row, leaving this column ~296px. Pills wrapped
   to two ragged rows at that width and the block read as squeezed rather than
   composed. It is rebuilt as a narrow editorial column: a ruled eyebrow, a
   tight heading, and the three promises as a checklist that reads down the
   column instead of across it. */

.home-tools__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* A rule running off the eyebrow gives the column a top edge to sit against. */
.home-tools__meta::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 55%, transparent), transparent);
}

.home-tools__copy h2 {
  margin: 14px 0 0;
  font-size: clamp(var(--fs-h4), 2.4vw, var(--fs-h3));
  line-height: 1.15;
  /* Two lines of similar length rather than a long one and an orphan. */
  text-wrap: balance;
}

.home-tools__copy .lede {
  margin-top: 12px;
  max-width: 34ch;
  font-size: var(--fs-sm);
  line-height: 1.6;
}

/* Down the column, not across it: three short promises, each on its own line
   with a gold tick, which a 296px column can hold without wrapping. */
.home-tools__chips {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, var(--gold) 22%, transparent);
}

.home-tools__chips li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--deep-ink);
  font-size: var(--fs-sm);
  font-weight: 500;
}

/* The gold disc. */
.home-tools__chips li::before {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--grad-gold);
  box-shadow: 0 3px 10px -5px rgba(255, 178, 54, 0.9);
}

/* The tick itself: two borders of an empty box, turned 45 degrees. A single
   gradient bar reads as a slash — a check needs both strokes, and this is the
   only way to get them without an SVG per item. */
.home-tools__chips li::after {
  content: '';
  position: absolute;
  left: 5.5px;
  width: 4px;
  height: 8px;
  margin-top: -2px;
  border: solid var(--on-gold);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  pointer-events: none;
}

.home-tools__chips li {
  position: relative;
}

/* Back to the original pill row once the panel stacks and the column is full
   width again — a checklist reads as filler across 1200px. */
@media (max-width: 980px) {
  .home-tools__chips {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 0;
    border-top: 0;
  }

  .home-tools__chips li {
    padding: 6px 13px;
    border: 1px solid color-mix(in srgb, var(--gold) 34%, transparent);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.05);
    color: var(--gold-bright);
    font-size: var(--fs-caption);
    font-weight: 600;
  }

  .home-tools__chips li::before,
  .home-tools__chips li::after {
    display: none;
  }
}

/* ---------- Hero search: living border ----------------------------------- */
/* A gold highlight travels the rim of the field on a slow loop. Built from two
   pseudo-elements rather than a border image: `::before` paints a rotating
   conic gradient across the whole box, `::after` covers all but a hairline of
   it with the field's own surface, so what is left showing *is* the border.

   Both sit at z-index -1 inside an isolated stacking context, which paints them
   above the form's background and below the input and button. Among equal
   z-index, the later pseudo wins — which is why ::after covers ::before. */

.home-tools-search__form {
  isolation: isolate;
  overflow: hidden;
  /* The ring supplies the edge now; a solid border under it would double up. */
  border-color: transparent;
}

.home-tools-search__form::before {
  content: '';
  position: absolute;
  /* Oversized so the square gradient still covers the pill's corners as it
     turns; the overflow above clips it back to the shape. */
  inset: -120%;
  z-index: -1;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 200deg,
    color-mix(in srgb, var(--gold) 55%, transparent) 268deg,
    var(--gold-bright) 300deg,
    color-mix(in srgb, var(--gold) 55%, transparent) 332deg,
    transparent 360deg
  );
  animation: search-rim 5.5s linear infinite;
  pointer-events: none;
}

.home-tools-search__form::after {
  content: '';
  position: absolute;
  inset: 1.5px;
  z-index: -1;
  border-radius: inherit;
  background: var(--surface);
  pointer-events: none;
}

@keyframes search-rim {
  to {
    transform: rotate(1turn);
  }
}

/* Focused, the light picks up and a gold halo joins it — the field says it is
   listening without changing size or shifting anything around it. */
.home-tools-search__form:focus-within::before {
  animation-duration: 2.6s;
}

.home-tools-search__form:focus-within {
  border-color: transparent;
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--gold) 16%, transparent),
    0 18px 44px -22px rgba(255, 178, 54, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .home-tools-search__form::before {
    animation: none;
    /* Still a gold edge, just a still one. */
    background: var(--gold);
    opacity: 0.5;
  }
}

/* ---------- Hero search: pinned to the dark treatment --------------------- */
/* This field sits on the dark burgundy hero in *both* themes, so following the
   page theme was the bug: light mode turned it into a bright white pill on a
   near-black band. It now wears the dark-mode colours always.

   Only three properties differed — surface, input colour, prefix colour.
   Everything else (the gold button, the hint, the shadow) already matched. */

.home-tools-search__form,
.home-tools-search__form::after {
  /* The dark theme's --surface. Written out rather than tokenised because
     --surface flips with the page and this element must not. */
  background: #000000;
}

/* --deep-* are the always-on-a-dark-surface tokens: identical in both themes,
   which is exactly the property needed here. */
.home-tools-search__input {
  color: var(--deep-ink);
}

.home-tools-search__input::placeholder {
  color: var(--deep-muted);
}

/* Pinned too: --gold-bright flips with the theme, so tokenising it would have
   left the prefix a shade lighter in dark mode than the value being copied. */
.home-tools-search__prefix {
  color: #ffb236;
}

/* ---------- Recent searches (service page) ------------------------------- */
/* The same saved list the header bookmark holds, shown inline under the tools.
   Only on the hosting page: the home panel is a teaser that collapses away,
   while this is where someone returns to pick a name back up. */

.dt-recent {
  margin-top: 18px;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.dt-recent__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.dt-recent__title {
  margin: 0;
  font-size: var(--fs-h6);
  font-weight: 700;
  color: var(--ink);
}

/* The provenance matters more than it looks: it tells someone why the list
   follows them here but not onto their phone. */
.dt-recent__note {
  font-weight: 400;
  color: var(--muted);
}

.dt-recent__clear {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.dt-recent__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  /* Two-up where there is room: this column is wider than the header popover,
     and a single file of short names would waste most of it. */
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
}

.dt-recent__item {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  transition:
    border-color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease);
}

.dt-recent__item:hover {
  border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
  background: var(--surface);
}

.dt-recent__link {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  text-decoration: none;
  color: inherit;
}

.dt-recent__name {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.dt-recent__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  font-size: var(--fs-nano);
  color: var(--muted);
}

.dt-recent__tool {
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Green means free here exactly as it does in the verdict above — same
   vocabulary, so the list needs no legend. */
.dt-recent__state {
  font-weight: 700;
}

.dt-recent__state.is-free {
  color: var(--ok-ink);
}

.dt-recent__remove {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 6px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.dt-recent__remove:hover {
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  color: var(--danger);
}

@media (prefers-reduced-motion: reduce) {
  .dt-recent__item,
  .dt-recent__remove {
    transition: none;
  }
}

/* ---------- Free-tools copy: stays with you ------------------------------ */
/* With a result and the saved list on screen the panel runs past the viewport,
   and the copy column would scroll away while someone is still reading the
   answer it introduced. It sticks instead.

   `align-self: start` is what makes it possible: the grid stretches its items
   by default, so the column was exactly as tall as the console and had 58px to
   travel. Released from the stretch it is its own height, and can move. */
@media (min-width: 981px) {
  .home-tools__copy {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    align-self: start;
    /* Its own height must stay under the viewport or it can never unstick. */
    max-height: calc(100vh - var(--header-h) - 40px);
    overflow-y: auto;
    scrollbar-width: none;
  }

  .home-tools__copy::-webkit-scrollbar {
    display: none;
  }
}

/* ---------- Free-tools tabs on a phone ----------------------------------- */
/* The 68px inactive tabs kept their full label *and* their note *and* the short
   label, so all three buttons overflowed their own box and the row stood 119px
   tall. On a 375px screen there is room for an icon and one word, so that is
   what it shows: three equal tabs, each icon over a short label. */

@media (max-width: 560px) {
  .tools-dark .dt__tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  /* The flex sizing above assumed one wide tab and two narrow ones; equal
     columns are the point here, so it has to go. */
  .tools-dark .dt__tab,
  .tools-dark .dt__tab.is-on,
  .tools-dark .dt__tab:not(.is-on) {
    flex: initial;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 4px;
    text-align: center;
  }

  /* The long label and its note are what did not fit. */
  .tools-dark .dt__tab-text {
    display: none;
  }

  .tools-dark .dt__tab-short,
  .tools-dark .dt__tab:not(.is-on) .dt__tab-short,
  .tools-dark .dt__tab.is-on .dt__tab-short {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--fs-nano);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 1;
  }

  .tools-dark .dt__tab-ic {
    flex: none;
  }
}

/* The console bar is a chrome label, not content — on a phone it should sit
   quietly under the panel edge rather than compete with the heading above it.
   Tighter tracking too: 0.1em on an already-small uppercase string costs more
   width than the characters do. */
@media (max-width: 560px) {
  .home-tools__console-bar {
    gap: 10px;
    padding: 4px 8px 8px;
    font-size: var(--fs-nano);
    letter-spacing: 0.06em;
  }
}

/* ---------- Chat buttons in the author sidebar --------------------------- */
/* The shared button slides its label open on hover, which suits a wide footer
   row. In the 340px sidebar card the four circles sit shoulder to shoulder, so
   one expanding to a 160px pill shoves the rest sideways — the row lurches
   under the cursor. Here they stay circles and answer with colour and lift
   instead.

   The label is only removed visually. Each link already carries its own
   aria-label ("Telegram — chat with us"), so nothing is lost to a screen
   reader, and keeping the span in the DOM leaves the markup shared. */

.author-cta__chat-list .chat-btn__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The padding change was the other half of the lurch. */
.author-cta__chat-list .chat-btn,
.author-cta__chat-list .chat-btn:hover,
.author-cta__chat-list .chat-btn:focus-visible {
  padding: 5px;
}

.author-cta__chat-list .chat-btn:hover .chat-btn__label,
.author-cta__chat-list .chat-btn:focus-visible .chat-btn__label {
  max-width: 1px;
  margin-left: 0;
  opacity: 0;
}

/* ---------- Author hero: the name --------------------------------------- */
/* 34px down to 24px — 30% smaller — and set in capitals to match the eyebrow
   above it, so the two read as one stacked title block rather than two
   competing weights.
   The negative tracking inherited from the display scale is meant for large
   lower-case type; on small capitals it closes the letters up. Positive
   tracking is what capitals need to stay legible. */
.author-hero__intro h1 {
  font-size: 24px;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Two up, so four skills land as a square 2x2 instead of three across with the
   fourth stranded on a row of its own. `auto-fit` was picking the column count
   from the available width rather than from how many items there are — which
   is only ever right when the count is unknown. */
@media (min-width: 620px) {
  .author-focus__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Author stat tiles: shorter ----------------------------------- */
/* The icon sat on its own line above the number, so each tile ran 103px tall
   for 62px of content. Moving it alongside puts the number and its label in a
   column beside the icon — the tile is as tall as its text, not as tall as its
   parts stacked. The accent bar is absolutely positioned and unaffected. */

.author-stat {
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    'icon value'
    'icon label';
  align-items: center;
  column-gap: 12px;
  row-gap: 1px;
  padding: 13px 14px;
}

.author-stat__icon {
  grid-area: icon;
  align-self: center;
}

/* The pair sits as one block against the icon: value's baseline low, label
   directly under it, no gap opening between them. */
.author-stat__value {
  grid-area: value;
  align-self: end;
}

.author-stat__label {
  grid-area: label;
  align-self: start;
}

/* ---------- The craft underneath: three discipline cards ----------------- */
/* Three stacked lists of outlined pills read as one undifferentiated field —
   the groupings were doing no work. Each discipline becomes its own card with
   a numbered watermark, so the eye counts three areas of practice before it
   reads a single tag.

   The numerals come from a CSS counter, so adding a fourth group in the CMS
   numbers itself with no markup change. */

.author-skills {
  counter-reset: craft;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(14px, 1.6vw, 18px);
  align-items: start;
}

.author-skills__group {
  counter-increment: craft;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 100%;
  padding: clamp(18px, 2vw, 24px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(160deg, var(--surface), var(--bg-alt) 88%);
  transition:
    border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

/* The watermark. Big, ghosted, cropped by the corner — it numbers the card
   without taking a line of its own. */
.author-skills__group::before {
  content: counter(craft, decimal-leading-zero);
  position: absolute;
  top: -14px;
  right: -6px;
  z-index: -1;
  font-size: 74px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: color-mix(in srgb, var(--gold) 13%, transparent);
  pointer-events: none;
  transition:
    color var(--dur) var(--ease),
    transform 0.5s var(--ease);
}

.author-skills__group:hover {
  border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
  box-shadow: 0 22px 44px -30px rgba(0, 0, 0, 0.55);
  transform: translateY(-3px);
}

.author-skills__group:hover::before {
  color: color-mix(in srgb, var(--gold) 26%, transparent);
  transform: scale(1.06) rotate(-4deg);
}

/* A gold rule runs out from the title, so each card opens the same way the
   section headings on this page do. */
.author-skills__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--gold-deep);
}

.author-skills__title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 50%, transparent), transparent);
}

/* Tags fill their card rather than running across the whole page. */
.author-skills .author-tags li {
  background: color-mix(in srgb, var(--gold) 7%, var(--surface));
  border-color: color-mix(in srgb, var(--gold) 22%, var(--line));
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.author-skills .author-tags li:hover {
  background: var(--gold-soft);
  border-color: color-mix(in srgb, var(--gold) 55%, transparent);
  color: var(--gold-deep);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .author-skills__group,
  .author-skills__group::before,
  .author-skills .author-tags li {
    transition: none;
  }

  .author-skills__group:hover {
    transform: none;
  }

  .author-skills__group:hover::before {
    transform: none;
  }

  .author-skills .author-tags li:hover {
    transform: none;
  }
}

/* ---------- Plan card: the Singapore → Cambodia hop ---------------------- */
/* The route the hosting actually takes. The rack alone belongs in the hosting
   band, where the subject is the hardware; on a price card what matters is
   where it sits and who it serves, which is a journey, not a box. */

.plan-motif {
  display: block;
  overflow: visible;
}

/* The flow along the route. A dash marching over the static rail beneath it
   reads as continuous traffic, not one packet at a time. */
.plan-motif__link {
  stroke-dasharray: 3 9;
  animation: plan-flow 1.4s linear infinite;
}

@keyframes plan-flow {
  to {
    stroke-dashoffset: -12;
  }
}

/* The packets run the exact arc the rail is drawn from — the path is set
   inline in PlanMotif, from the same `d`. Each fades in off the rack and out
   over the spire, so nothing pops into existence mid-air. */
.plan-motif__packet {
  offset-distance: 0%;
  opacity: 0;
  animation: plan-hop 3.3s linear infinite;
}

@keyframes plan-hop {
  0% {
    offset-distance: 0%;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  84% {
    opacity: 1;
  }
  100% {
    offset-distance: 100%;
    opacity: 0;
  }
}

/* Arrival, at the spire the packets land on. */
.plan-motif__ping {
  transform-box: view-box;
  transform-origin: 101px 39px;
  opacity: 0;
  animation: plan-ping 3.6s ease-out infinite;
}

@keyframes plan-ping {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  18% {
    opacity: 0.5;
  }
  100% {
    transform: scale(4.2);
    opacity: 0;
  }
}

.plan-motif__led {
  animation: plan-led 2.6s ease-in-out infinite;
}

@keyframes plan-led {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

/* The stone catches the light slowly — long enough that it never competes with
   the traffic for attention. */
.plan-motif__temple {
  animation: plan-stone 6s ease-in-out infinite;
}

@keyframes plan-stone {
  0%,
  100% {
    opacity: 0.82;
  }
  50% {
    opacity: 1;
  }
}

.plan-motif__tag {
  fill: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  opacity: 0.55;
}

@media (prefers-reduced-motion: reduce) {
  .plan-motif__link,
  .plan-motif__packet,
  .plan-motif__ping,
  .plan-motif__led,
  .plan-motif__temple {
    animation: none;
  }

  /* Without the animation the packets would all stack on the rack and the
     pings would sit invisible — park one packet mid-route and drop the rest. */
  .plan-motif__packet {
    offset-distance: 62%;
    opacity: 1;
  }

  .plan-motif__packet:not(:first-of-type) {
    display: none;
  }
}

/* One tag per row inside each card. Wrapping made the three cards disagree —
   "SEO" and "SEM and EDM" shared a line while "Domain registration and web
   hosting" took two, so no two cards had the same rhythm. Stacked, every tag is
   one row in every card, and the long ones stop wrapping into lumps. */
.author-skills .author-tags {
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
}

.author-skills .author-tags li {
  padding: 7px 13px;
  font-size: 13px;
  line-height: 1.35;
}

/* ---------- Free consultation dialog ------------------------------------ */
/* A native <dialog>, so focus trapping, Escape, the inert page behind it and
   the backdrop all come from the browser. Everything below is appearance.

   The luxury is spent entirely on the band at the top. Below it the form sits
   on the site's ordinary surface and reuses the .field system from the contact
   and quote pages — a form someone has to fill in at speed is not the place to
   invent a second visual language. */

.consult {
  width: min(680px, calc(100vw - 28px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: none;
  overflow: visible;
  color: var(--ink);
}

.consult::backdrop {
  background: color-mix(in srgb, var(--brand-burgundy-deep) 72%, transparent);
  backdrop-filter: blur(6px) saturate(120%);
}

.consult__panel {
  position: relative;
  max-height: min(92dvh, 900px);
  overflow: hidden auto;
  border-radius: 26px;
  background: var(--surface);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--gold) 34%, transparent),
    0 50px 110px -40px rgba(0, 0, 0, 0.7);
}

/* Rises into place rather than appearing. Only the open direction is animated:
   close() removes the element immediately, so an exit animation would need a
   state machine to hold it in the DOM, for a frame nobody watches. */
.consult[open] .consult__panel {
  animation: consult-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.consult[open]::backdrop {
  animation: consult-fade 0.32s ease both;
}

@keyframes consult-in {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.97);
  }
}

@keyframes consult-fade {
  from {
    opacity: 0;
  }
}

/* --- The band --- */

.consult__band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(26px, 4vw, 36px) clamp(24px, 4vw, 40px) clamp(22px, 3vw, 30px);
  color: var(--deep-ink);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(255, 178, 54, 0.3), transparent 62%),
    linear-gradient(150deg, var(--brand-burgundy-mid), var(--brand-burgundy) 64%);
  border-bottom: 2px solid var(--gold);
}

/* The same dot matrix the footer band uses, so this reads as part of the site
   rather than a widget dropped on top of it. */
.consult__band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(
    circle at center,
    rgb(255 255 255 / 0.07) 1px,
    transparent 1.6px
  );
  background-size: 24px 24px;
}

/* A slow sweep of light across the band. Nothing moves in a popup otherwise,
   and a completely static panel reads as an image, not an offer. */
.consult__ray {
  position: absolute;
  top: -60%;
  left: -35%;
  z-index: -1;
  width: 45%;
  height: 220%;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--gold-bright) 22%, transparent),
    transparent
  );
  transform: rotate(14deg);
  animation: consult-ray 6.5s ease-in-out 0.6s infinite;
}

@keyframes consult-ray {
  0% {
    left: -45%;
    opacity: 0;
  }
  22% {
    opacity: 1;
  }
  60%,
  100% {
    left: 115%;
    opacity: 0;
  }
}

.consult__eyebrow {
  color: var(--gold-bright);
}

.consult__title {
  margin: 6px 0 10px;
  font-size: clamp(23px, 2.6vw, 31px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--deep-ink);
}

.consult__lede {
  max-width: 48ch;
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: color-mix(in srgb, var(--deep-ink) 92%, transparent);
}

.consult__promises {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.consult__promises li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-caption);
  font-weight: 600;
  color: color-mix(in srgb, var(--deep-ink) 88%, transparent);
}

.consult__promise-tick {
  display: grid;
  place-items: center;
  flex: none;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--gold) 26%, transparent);
  color: var(--gold-bright);
}

.consult__promise-tick svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
}

/* --- Close --- */

.consult__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--gold-bright) 34%, transparent);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.08);
  color: var(--deep-ink);
  cursor: pointer;
  transition:
    background-color 0.24s var(--ease),
    transform 0.24s var(--ease);
}

.consult__close:hover {
  background: var(--gold);
  color: var(--on-gold);
  transform: rotate(90deg);
}

/* --- The form --- */

.consult__body {
  padding: clamp(22px, 3.2vw, 30px) clamp(20px, 3.4vw, 36px) clamp(24px, 3.4vw, 34px);
}

.consult__form {
  display: grid;
  gap: 14px;
}

/* A date or time input is never `:placeholder-shown`, so the floating label has
   nothing to float away from and would sit on top of the value. Park it in the
   raised position from the start, exactly like a select. */
.field--always .field__label {
  transform: translateY(-10px) scale(0.76);
  color: var(--gold-deep);
}

.consult__consent {
  margin-top: 2px;
}

.consult__send {
  justify-content: center;
  width: 100%;
}

/* --- Thank you --- */

.consult__done {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: clamp(18px, 3vw, 30px) 0;
  text-align: center;
}

.consult__done-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.consult__done-mark svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
}

.consult__done h3 {
  margin: 0;
  font-size: var(--fs-h4);
}

.consult__done p {
  max-width: 42ch;
  margin: 0;
  color: var(--muted);
}

@media (max-width: 560px) {
  .consult__promises {
    gap: 6px 14px;
  }

  /* Two columns of 14px date pickers is narrower than the widget Chrome and
     Safari draw inside them, which then clips. One per row on a phone. */
  .consult__form .field-row2 {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .consult[open] .consult__panel,
  .consult[open]::backdrop,
  .consult__ray {
    animation: none;
  }

  .consult__close:hover {
    transform: none;
  }
}

/* --- The footer's second button --- */
/* Outlined, not a second gold pill: two identical buttons side by side make the
   visitor choose between them instead of acting. The quote keeps the emphasis;
   this reads as the lower-commitment option, which is what it is. */

.footer-cta__btn--ghost {
  border: 1px solid color-mix(in srgb, var(--gold-bright) 46%, transparent);
  background: rgb(255 255 255 / 0.04);
  color: var(--deep-ink);
}

.footer-cta__btn--ghost:hover {
  border-color: var(--gold-bright);
  background: color-mix(in srgb, var(--gold-bright) 14%, transparent);
  color: var(--deep-ink);
}

.footer-cta__btn-spark {
  flex: none;
  color: var(--gold-bright);
  transition: transform 0.4s var(--ease);
}

.footer-cta__btn--ghost:hover .footer-cta__btn-spark {
  transform: rotate(90deg) scale(1.14);
}

/* ---------- Booking picker (inside the consultation dialog) -------------- */
/* Replaces a native date and time input. Those ask someone to know the date
   they want and then spell it in the browser's own format; this asks them to
   point at a day. The chosen values still travel as hidden inputs, so nothing
   downstream can tell the difference. */

.booking {
  min-width: 0;
  margin: 0;
  padding: 14px 14px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: color-mix(in srgb, var(--gold-soft) 26%, var(--surface));
}

.booking__legend {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 6px;
  margin-left: -2px;
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.booking__legend-ic {
  display: grid;
  place-items: center;
  color: var(--gold-deep);
}

.booking__legend-ic svg {
  width: 15px;
  height: 15px;
}

/* --- The day strip --- */
/* Scrolls rather than wrapping: fourteen days in a grid is a wall, and a strip
   reads as "there is more that way", which is what a booking widget should
   say. Snapping stops it settling half-way across a card. */

.booking__days {
  display: flex;
  gap: 8px;
  padding-bottom: 6px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--gold) 42%, transparent) transparent;
  -webkit-overflow-scrolling: touch;
}

.day-chip {
  display: grid;
  flex: none;
  gap: 1px;
  justify-items: center;
  scroll-snap-align: start;
  width: 62px;
  padding: 9px 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  line-height: 1.15;
  cursor: pointer;
  transition:
    border-color 0.22s var(--ease),
    background-color 0.22s var(--ease),
    color 0.22s var(--ease),
    transform 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}

.day-chip__top {
  font-size: var(--fs-nano);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  /* A safety net, not a feature: the card is a fixed 62px and any label longer
     than "Today" would otherwise stretch it and break the strip's rhythm. */
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-chip__num {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.day-chip__month {
  font-size: var(--fs-nano);
  font-weight: 600;
  color: var(--muted);
}

/* Weekends stay pickable — plenty of people would rather talk on a Saturday —
   but sit back a shade so the working week reads first. */
.day-chip.is-weekend .day-chip__num {
  color: var(--muted);
}

.day-chip:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.day-chip:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.day-chip.is-on {
  border-color: transparent;
  background: var(--grad-gold);
  color: var(--on-gold);
  box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--gold) 88%, transparent);
}

.day-chip.is-on .day-chip__top,
.day-chip.is-on .day-chip__month,
.day-chip.is-on .day-chip__num {
  color: var(--on-gold);
}

/* --- Time slots --- */
/* A strip, not a grid. Eleven slots wrapped onto three rows and made the panel
   taller than the day picker above it; on one scrolling line they cost ~110px
   less, and the gesture matches the day row directly above. */

.booking__slots {
  display: flex;
  gap: 7px;
  padding-bottom: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--gold) 42%, transparent) transparent;
  -webkit-overflow-scrolling: touch;
}

.slot-chip {
  flex: none;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-caption);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition:
    border-color 0.22s var(--ease),
    background-color 0.22s var(--ease),
    color 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}

.slot-chip:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
}

.slot-chip:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.slot-chip.is-on {
  border-color: transparent;
  background: var(--grad-gold);
  color: var(--on-gold);
  box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--gold) 88%, transparent);
}

.booking__hint {
  margin: 10px 0 0;
  font-size: var(--fs-nano);
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 460px) {
  .day-chip {
    width: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .day-chip:hover {
    transform: none;
  }
}

/* The policy link is its own paragraph now (see CookieConsent), so it needs the
   small gap two adjacent paragraphs would otherwise not have — `.ck__copy p`
   zeroes every margin. Scoped to beat that rule on specificity rather than with
   !important, which in a stylesheet this long is a debt someone else pays. */
.ck__copy .ck__policy {
  margin-top: 5px;
}

/* ---------- Footer CTA on a phone --------------------------------------- */
/* Two buttons whose labels differ by ten characters give the row two ragged
   right edges once it wraps to one per line. Full width settles both: the
   labels centre themselves inside equal buttons, and the block lines up with
   the title above it instead of trailing off. */

@media (max-width: 620px) {
  .footer-cta__actions {
    align-items: stretch;
    width: 100%;
    gap: 12px;
  }

  .footer-cta__btn {
    justify-content: center;
    width: 100%;
  }
}

/* ---------- Glass tabs as a carousel ------------------------------------ */
/* One row that scrolls and advances itself, instead of wrapping onto two.

   What moves is the view, never the selection — see GlassPillTabs. Autoplay
   stands down on hover, on focus, while the tab is in the background, after any
   manual scroll, and entirely under prefers-reduced-motion. */

.glass-carousel {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
}

/* Both selectors, and this is not belt-and-braces. `.premium-filter .glass-pill`
   sets `overflow: hidden` at 0-2-0, which outranks a bare `.glass-pill--carousel`
   at 0-1-0 whatever the order — so the `overflow-x: auto` below never applied
   and the strip computed to `hidden`.

   It looked fine, because a script can still set `scrollLeft` on a
   hidden-overflow box: the autoplay and the arrows worked exactly as intended.
   What silently did not work was the visitor. Nobody could swipe or trackpad
   the strip, and on a phone the arrows are hidden — so waiting for the autoplay
   was the only way to reach the far categories. */
.glass-pill--carousel,
.premium-filter .glass-pill--carousel {
  flex-wrap: nowrap;
  /* The axes have to be split: hidden vertically so the thumb cannot bulge the
     row, scrollable horizontally so the tabs can actually be reached. */
  overflow-x: auto;
  overflow-y: hidden;
  /* No scroll-snap. Snapping and a scripted `scrollTo` fight each other: the
     script lands on a tab, the snap engine drags it to its own nearest point,
     and the strip ends up stepping forwards then backwards. The autoplay
     already lands on exact tab positions, which is what snapping was for. */
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.glass-pill--carousel::-webkit-scrollbar {
  display: none;
}

/* Natural width, not an equal share: eight equal columns in a scrolling row
   would each be too narrow to read and the row would never need to scroll. */
.glass-pill--carousel .glass-pill__opt {
  flex: 0 0 auto;
}

/* --- Arrows --- */

.glass-carousel__nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--gold) 26%, var(--glass-rim));
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 88%, var(--gold-soft));
  color: var(--gold-deep);
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 6px 16px -8px rgba(20, 20, 22, 0.4);
  transition:
    opacity 0.24s var(--ease),
    background-color 0.24s var(--ease),
    color 0.24s var(--ease);
}

/* Both halves of the transform in one property. As a separate `rotate`, the
   180deg is applied *before* `transform`, so translateY(-50%) then ran in the
   flipped coordinate space and pushed this arrow 30px down instead of up. */
.glass-carousel__nav--prev {
  left: -6px;
  transform: translateY(-50%) rotate(180deg);
}

.glass-carousel__nav--next {
  right: -6px;
}

.glass-carousel__nav:hover:not(:disabled) {
  background: var(--gold);
  color: var(--on-gold);
}

/* Nothing that way: fade out and stop taking clicks, rather than vanish — a
   control that disappears makes the row jump sideways as it goes. */
.glass-carousel__nav:disabled {
  opacity: 0;
  pointer-events: none;
}

/* Room for the arrows to sit over, so a tab is never hidden under one. */
.glass-pill--carousel .glass-pill__opt:first-of-type {
  margin-left: 22px;
}

.glass-pill--carousel .glass-pill__opt:last-of-type {
  margin-right: 22px;
}

/* The FAQ hub's track is the frosted capsule, so keep its own radius and let
   the arrows overhang it slightly. */
.faq-filter .glass-carousel {
  overflow: visible;
}

@media (max-width: 560px) {
  .faq-filter .glass-pill--carousel .glass-pill__opt {
    min-height: 38px;
    padding: 9px 14px;
    font-size: var(--fs-sm);
  }

  /* A thumb-swipe is the native gesture here and the arrows only cover tabs. */
  .glass-carousel__nav {
    display: none;
  }

  .glass-pill--carousel .glass-pill__opt:first-of-type,
  .glass-pill--carousel .glass-pill__opt:last-of-type {
    margin-inline: 0;
  }
}

/* ---------- Boxed prose: the sub-heading ---------------------------------- */
/* "Andy Sim's Background and Career Journey" and its siblings were plain
   paragraphs that happened to sit above the text they introduced — they looked
   like headings, read like headings, and were invisible to the page outline and
   to anything parsing it. They are `#### ` in the content now, so this is a
   real h4, and the treatment below is what makes it look like one.

   A `### ` would have turned each into a feature card and rebuilt the section
   as a grid; the ask was to dress the titles, not to move them. */

.prose-boxed .prose-sub h4 {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 34px 0 12px;
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* No leading gap when it opens the box — the box's own padding is the gap. */
.prose-boxed .prose-sub h4:first-child {
  margin-top: 0;
}

/* A gold lozenge, not a bullet: square-on it would read as a list marker, and
   turned 45° it matches the diamond the rest of the site uses for emphasis. */
.prose-boxed .prose-sub h4::before {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--grad-gold);
  rotate: 45deg;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 12%, transparent);
}

/* The rule takes whatever width the title leaves, so it ends where the text
   ends rather than at a guessed length — a short title gets a long rule and a
   long one gets a short rule, and both finish on the same line. */
.prose-boxed .prose-sub h4::after {
  content: '';
  flex: 1;
  min-width: 18px;
  height: 1px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--gold) 46%, transparent),
    transparent 88%
  );
}

@media (max-width: 560px) {
  .prose-boxed .prose-sub h4 {
    gap: 10px;
    margin-top: 26px;
  }
}

/* ---------- "Work with Andy" aside on a phone ---------------------------- */
/* Left-aligned, the card had the photo, the status, the title and the text
   ranged left while the chat row underneath was already centred — two
   alignments in one card. On a phone the card is the full column width, so
   centring the lot is the version that reads as one object.

   Desktop keeps the left rail: there it sits beside a column of text and
   sharing that text's edge is what makes it look attached to the article. */

@media (max-width: 620px) {
  .author-cta {
    text-align: center;
  }

  /* The portrait is an inline replaced element, so `text-align` alone would
     centre it — but only until something gives it a block display. Explicit
     auto margins survive that. */
  .author-cta__photo {
    display: block;
    margin-inline: auto;
  }

  /* The label and its arrow were pushed to opposite ends by
     `space-between`, which is the one thing in the card that would still have
     read as left-aligned. Scoped to this card: the same button class carries
     the split layout on the other asides, where it is correct. */
  .author-cta .aside-cta__btn {
    justify-content: center;
  }
}

/* ---------- The drawer's service dropdown -------------------------------- */
/* Below 1200px the mega panel loses its desktop framing and becomes a plain
   indented list — a rule down the left, a badge, a title, and a description
   truncated mid-sentence. It read as an outline, not a menu.

   Here each service becomes a card: its own surface and edge, the number as a
   gold chip, the title, and a one-line summary. Cards give every row a tap
   target with a visible boundary, which is the thing a finger needs and a
   bulleted list never had. */

@media (max-width: 1200px) {
  /* The rule and the indent go: the cards carry their own edges now, and the
     22px they cost was width the titles needed. */
  .mega,
  .mega--narrow,
  .mega--services {
    border-left: 0;
    padding-left: 0;
    margin-left: 2px;
  }

  .mega--services .mega__list {
    gap: 8px;
  }

  .mega__list > li > a {
    align-items: center;
    gap: 11px;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 8px 20px -18px rgba(0, 0, 0, 0.5);
  }

  /* Pressed rather than hovered: a finger has no hover, and the row needs to
     acknowledge the tap it just took. */
  .mega__list > li > a:active {
    border-color: color-mix(in srgb, var(--gold) 42%, transparent);
    background: var(--gold-soft);
    transform: scale(0.99);
  }

  .mega__index {
    width: 27px;
    height: 27px;
    border-radius: 9px;
    background: var(--grad-gold);
    color: var(--on-gold);
    box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--gold) 85%, transparent);
  }

  /* A step below the menu row above it, not level with it. The parent items
     are 16px uppercase; a 16px sub-item made the two read as siblings and the
     dropdown looked bigger than the menu it belongs to. */
  .mega__list strong {
    font-size: var(--fs-sm);
    line-height: 1.35;
  }

  /* One line, not two. A description clipped mid-sentence looks unfinished,
     and in a menu the summary is a hint — the page itself is one tap away. */
  .mega__list em {
    -webkit-line-clamp: 1;
    margin-top: 3px;
  }

  /* Sub-pages become chips under their parent. As a list they read as four
     more services of equal weight; as chips they read as what they are —
     variations on the one above. */
  .mega__children {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 2px 38px;
    padding-left: 0;
    border-left: 0;
  }

  /* One step below its own parent again — and 12px with 8px of padding keeps
     the chip past the minimum a thumb needs, which 10px would not have. */
  .mega__children a {
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--bg-alt);
    font-size: var(--fs-caption);
    font-weight: 600;
    color: var(--ink-soft);
  }

  .mega__children a:active {
    border-color: color-mix(in srgb, var(--gold) 42%, transparent);
    background: var(--gold-soft);
    color: var(--gold-deep);
    text-decoration: none;
  }
}

/* On a phone the summaries go entirely. The drawer is for getting somewhere,
   the titles already say where, and five fewer lines is five fewer scrolls. */
@media (max-width: 620px) {
  .mega__list em {
    display: none;
  }

  .mega__children {
    margin-left: 34px;
  }
}

/* ---------- First-visit boot screen -------------------------------------- */
/* A terminal reading the studio into memory, once per browser. The head script
   in the layout sets `data-boot` before first paint; without it none of this
   renders, so a returning visitor pays a few hundred bytes of HTML and nothing
   else — no flash, no timers, no work.

   Every visual below is a CSS animation, and the last of them is what removes
   the overlay: `boot-out` ends `forwards`, so the screen lifts on its own even
   if the JavaScript never runs. A full-viewport overlay that needs JS to go
   away is a broken site waiting for one failed bundle. */

.boot {
  display: none;
}

:root[data-boot='1'] .boot {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 24px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(0, 0, 0, 0.9), transparent 62%),
    linear-gradient(160deg, #000000, #000000 70%);
  animation: boot-out 0.34s ease 2.06s forwards;
}

/* Skipped: cut to the same end state immediately. */
.boot.is-skipped {
  animation: boot-out 0.18s ease forwards;
}

/* A faint engineering grid, drifting. It reads as a workspace rather than a
   splash image, which is the whole idea. */
.boot__grid {
  position: absolute;
  inset: -40px;
  background-image:
    linear-gradient(rgba(244, 245, 239, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 245, 239, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  animation: boot-drift 6s linear infinite;
}

.boot__panel {
  position: relative;
  width: min(560px, 100%);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: clamp(11px, 2.6vw, 13.5px);
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: #bbbbbb;
}

/* --- The prompt line --- */

.boot__prompt {
  margin: 0 0 10px;
  opacity: 0;
  animation: boot-in 0.3s ease 0.05s forwards;
}

.boot__user {
  color: var(--gold-bright);
  font-weight: 600;
}

.boot__path {
  margin: 0 8px;
  color: #6f5f52;
}

.boot__cmd {
  color: #f4f5ef;
}

/* --- The task list --- */

.boot__lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.boot__lines li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  opacity: 0;
  /* 0.32s apart: fast enough not to be a wait, slow enough to read as steps
     rather than a block of text appearing at once. */
  animation: boot-in 0.32s ease calc(0.32s + var(--i) * 0.32s) forwards;
}

.boot__task {
  flex: none;
  white-space: nowrap;
}

/* The leader dots are a repeating gradient, not typed characters — so the row
   fills whatever space is left at any width without measuring anything. */
.boot__dots {
  flex: 1;
  min-width: 12px;
  align-self: center;
  height: 1px;
  background-image: radial-gradient(circle, #5a4a3d 1px, transparent 1.2px);
  background-size: 6px 1px;
  background-repeat: repeat-x;
}

.boot__ok {
  flex: none;
  color: var(--gold-bright);
  font-weight: 600;
  white-space: nowrap;
}

/* --- Ready, and the caret --- */

.boot__ready {
  margin: 12px 0 0;
  color: #f4f5ef;
  font-weight: 600;
  opacity: 0;
  animation: boot-in 0.3s ease 1.64s forwards;
}

.boot__caret {
  display: inline-block;
  width: 8px;
  height: 1em;
  margin-left: 8px;
  vertical-align: text-bottom;
  background: var(--gold-bright);
  animation: boot-blink 0.9s steps(1) infinite;
}

/* --- The progress rule --- */

.boot__rule {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  transform-origin: left;
  scale: 0 1;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  box-shadow: 0 0 18px -2px var(--gold);
  animation: boot-fill 2s cubic-bezier(0.5, 0, 0.2, 1) forwards;
}

@keyframes boot-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes boot-fill {
  to {
    scale: 1 1;
  }
}

@keyframes boot-blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

@keyframes boot-drift {
  to {
    transform: translate(44px, 44px);
  }
}

/* The lift. `visibility` is what makes this safe: opacity alone would leave an
   invisible sheet swallowing every click on the page underneath. */
@keyframes boot-out {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

/* --- One panel, two labelled rows --- */
/* The caption is what lets the two strips share a single legend without either
   becoming ambiguous: the legend says what the panel is for, "Day" and "Time"
   say which strip is which. */

.booking__row + .booking__row {
  margin-top: 12px;
}

.booking__caption {
  display: block;
  margin-bottom: 6px;
  font-size: var(--fs-nano);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Breadcrumb on a phone --------------------------------------- */
/* The one-row design holds at three levels: the leading crumbs keep their width
   and the current page ellipsises. At four — Home › Our Services › CMS Website
   Development › WordPress CMS Website Development — it cannot. The middle crumb
   alone is 201px in a 335px column, so it pushed 116px past the screen and the
   current-page chip was squeezed to 28px of nothing.

   Squeezing every chip to an ellipsis would leave a row of stubs saying nothing.
   So the row scrolls instead: the whole trail survives, each chip stays
   readable, and it uses the same swipe the day and time strips already use in
   the consultation form. Starting at Home is right — the current page is the h1
   directly beneath it. */

@media (max-width: 620px) {
  .crumb ol {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .crumb ol::-webkit-scrollbar {
    display: none;
  }

  /* With somewhere to scroll, the current page no longer has to give up its
     width to fit — it keeps its full label like every other crumb. */
  .crumb li:last-child {
    flex: none;
  }
}

/* ---------- Hero CTA on a phone ----------------------------------------- */
/* The primary button goes below 560px. The hero already asks three things of a
   phone screen in a row — start a project, explore the work, search a domain —
   and the search box is the one that earns its place: it is the only thing here
   that does something on the spot rather than navigating away.

   Nothing is lost by removing it. The same action is reachable from "Get a
   Quote" in the menu, from the footer's Request a Quote, and from the free
   consultation button beside it. */

@media (max-width: 560px) {
  .hero__actions .btn--primary {
    display: none;
  }

  /* With one button left, the column gap belonged to a pair. */
  .hero__actions {
    margin-top: 20px;
  }
}

/* ---------- First-visit tour: the appearance modes ----------------------- */
/* A spotlight on the theme button and a card that lets you try all three modes
   on the spot. Tapping one sets the real theme, so the whole page changes behind
   the cut-out while you watch — which teaches the control far faster than a
   sentence describing it.

   The cut-out is the ring's own outer shadow spread across the viewport. No
   mask, no four-panel scrim, and it follows the button exactly: the component
   measures the live element and feeds the numbers in as custom properties. */

/* Above everything it might be asked to explain. The typing tutor's
   full-screen board is a fixed overlay at 120, and a tour that opens behind it
   is a button that does nothing — which is exactly how this was found. The
   cookie modal at 130 never shares the screen with a tour (the tour hands the
   gate over when it closes), so passing it costs nothing. */
.tour {
  position: fixed;
  inset: 0;
  z-index: 140;
  animation: tour-in 0.34s var(--ease) both;
}

.tour.is-leaving {
  animation: tour-out 0.22s ease forwards;
}

/* Transparent, and above nothing — it exists to catch "anywhere else". */
.tour__scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: default;
}

/* The hole. Everything outside it is dimmed by this element's own shadow. */
.tour__ring {
  position: absolute;
  top: var(--tour-top);
  left: var(--tour-left);
  width: var(--tour-w);
  height: var(--tour-h);
  border-radius: var(--radius-pill);
  /* 200vmax, not 100.
   *
   * A spread also grows the corner radius by the same amount, so at this size
   * the dimmed shape is not a rectangle — it is effectively a circle of radius
   * = spread, centred on the ring. It therefore has to reach the *diagonal*,
   * and the far corner can be up to sqrt(vw² + vh²) away, which is as much as
   * 1.41 x vmax. At 100vmax a ring near one corner left the opposite corner
   * outside the circle: on a 1800x1250 window the bottom-left corner is 1928px
   * from the ring and the shadow stopped at 1800, so a white wedge of the live
   * page showed through the dimming. 150 would always be enough; 200 leaves
   * room and costs nothing, since nothing is painted beyond the viewport. */
  box-shadow:
    0 0 0 200vmax rgba(0, 0, 0, 0.66),
    0 0 0 2px color-mix(in srgb, var(--gold-bright) 70%, transparent),
    0 0 26px -2px color-mix(in srgb, var(--gold) 80%, transparent);
  pointer-events: none;
  animation: tour-pulse 2.4s ease-in-out 0.4s infinite;
}

.tour__card {
  position: absolute;
  top: var(--tour-card-top);
  right: var(--tour-card-right);
  width: min(330px, calc(100vw - 24px));
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--gold) 34%, transparent);
  border-radius: 20px;
  color: var(--deep-ink);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(255, 178, 54, 0.28), transparent 62%),
    linear-gradient(158deg, var(--brand-burgundy-mid), var(--brand-burgundy) 66%);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8);
  animation: tour-card-in 0.4s var(--ease) 0.1s both;
  /* The last line of defence, for a window shorter than the card itself: the
     card scrolls inside rather than running its buttons off the screen. The
     tour blocks page scrolling, so anything below the fold is unreachable. */
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
}

/* The little nib pointing back at the button it is talking about. */
.tour__card::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 26px;
  width: 12px;
  height: 12px;
  border-top: 1px solid color-mix(in srgb, var(--gold) 34%, transparent);
  border-left: 1px solid color-mix(in srgb, var(--gold) 34%, transparent);
  border-radius: 3px 0 0 0;
  background: var(--brand-burgundy-mid);
  transform: rotate(45deg);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* Flipped above its target, so the nib points down at it instead of up. */
.tour__card--above::before {
  top: auto;
  bottom: -6px;
  transform: rotate(225deg);
}

/* Neither side had room and the card is pinned to the bottom edge, so it is no
   longer beside the thing it describes — a nib would point at nothing. The
   ring still says which control this is about. */
.tour__card--clamped::before {
  display: none;
}

.tour__eyebrow {
  display: block;
  font-size: var(--fs-nano);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.tour__title {
  margin: 6px 0 6px;
  font-size: var(--fs-h4);
  line-height: 1.2;
  color: var(--deep-ink);
}

.tour__text {
  margin: 0 0 14px;
  font-size: var(--fs-caption);
  line-height: 1.55;
  color: color-mix(in srgb, var(--deep-ink) 90%, transparent);
}

/* --- The three tries --- */

.tour__modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.tour__mode {
  display: grid;
  gap: 2px;
  padding: 10px 6px;
  border: 1px solid color-mix(in srgb, var(--gold-bright) 26%, transparent);
  border-radius: 13px;
  background: rgb(255 255 255 / 0.06);
  color: var(--deep-ink);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition:
    background-color 0.22s var(--ease),
    border-color 0.22s var(--ease),
    transform 0.22s var(--ease);
}

.tour__mode:hover {
  background: rgb(255 255 255 / 0.12);
  transform: translateY(-2px);
}

.tour__mode.is-on {
  border-color: transparent;
  background: var(--grad-gold);
  color: var(--on-gold);
}

.tour__mode-label {
  font-size: var(--fs-caption);
  font-weight: 700;
}

.tour__mode-blurb {
  font-size: var(--fs-nano);
  line-height: 1.3;
  opacity: 0.75;
}

.tour__note {
  margin: 12px 0 14px;
  font-size: var(--fs-nano);
  line-height: 1.5;
  color: color-mix(in srgb, var(--deep-ink) 82%, transparent);
}

.tour__note b {
  color: var(--gold-bright);
}

.tour__done {
  width: 100%;
  justify-content: center;
}

@keyframes tour-in {
  from {
    opacity: 0;
  }
}

@keyframes tour-out {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes tour-card-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }
}

/* A slow breath on the ring, so the eye is drawn to the button and not only to
   the card explaining it.
   
   Both frames restate the whole box-shadow, so the dimming spread lives here
   too and has to match the base rule. It did not: the base said 200vmax and
   these still said 100, and because a running animation overrides a plain
   declaration, these were the only values that ever applied. Changing the rule
   above without changing these did precisely nothing. */
@keyframes tour-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 200vmax rgba(0, 0, 0, 0.66),
      0 0 0 2px color-mix(in srgb, var(--gold-bright) 70%, transparent),
      0 0 26px -2px color-mix(in srgb, var(--gold) 80%, transparent);
  }
  50% {
    box-shadow:
      0 0 0 200vmax rgba(0, 0, 0, 0.66),
      0 0 0 4px color-mix(in srgb, var(--gold-bright) 55%, transparent),
      0 0 34px 2px color-mix(in srgb, var(--gold) 60%, transparent);
  }
}

/* On a phone the card spans the screen rather than hanging off the button —
   there is no room to the side of a 44px control. */
@media (max-width: 560px) {
  .tour__card {
    right: 12px;
    left: 12px;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tour,
  .tour__card,
  .tour__ring {
    animation: none;
  }

  .tour__mode:hover {
    transform: none;
  }
}

/* --- Tour: multi-step chrome --- */

.tour__eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tour__count {
  font-size: var(--fs-nano);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--deep-ink) 65%, transparent);
}

.tour__nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Back is a quiet text button — it should be findable, not competing with the
   one that moves the tour forward. */
.tour__back {
  flex: none;
  padding: 10px 14px;
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  color: color-mix(in srgb, var(--deep-ink) 82%, transparent);
  font: inherit;
  font-size: var(--fs-caption);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.tour__back:hover {
  color: var(--deep-ink);
}

.tour__done {
  flex: 1;
  justify-content: center;
}

/* The nib points up at the target on every step except one: when the spotlight
   is the hero search box, the card sits below a wide element and the nib would
   land nowhere near it. Nothing to fix in CSS — it stays right-aligned with the
   card, which is where the eye already is. */

/* ---------- Footer: replay the tour ----------
   A button that has to pass for one of the legal links beside it, so everything
   a <button> brings of its own — font, colour, padding, border — is handed back
   to the <li>. The dot is the only thing marking it as an action rather than a
   destination. */
.site-footer__tour {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: color 180ms ease;
}

.site-footer__tour::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  /* Steady by default. The pulse is a hover reward, not a permanent request for
     attention in the footer of every page. */
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.site-footer__tour:hover,
.site-footer__tour:focus-visible {
  color: var(--gold-bright);
}

.site-footer__tour:hover::before,
.site-footer__tour:focus-visible::before {
  transform: scale(1.25);
  box-shadow: 0 0 0 4px rgba(255, 178, 54, 0.22);
}

.site-footer__tour:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__tour,
  .site-footer__tour::before {
    transition: none;
  }
}

/* ---------- Footer legal row on phones ----------
   Five items will not sit on one 335px line, and a plain flex row answers that
   by breaking the labels mid-phrase ("Privacy / Policy"). Three auto columns
   split it where the meaning already splits: the three legal destinations, then
   the two controls. The controls landing on the left of the second row also
   takes them out from under the floating back-to-top button, which sits over
   this exact corner. */
@media (max-width: 560px) {
  .site-footer__legal ul {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    align-items: center;
    column-gap: 16px;
    row-gap: 12px;
  }

  /* The row wraps; the words inside it do not. */
  .site-footer__legal ul li,
  .site-footer__legal ul a,
  .site-footer__tour {
    white-space: nowrap;
  }
}

/* ---------- The author card's CTA ----------
   The aside button that used to live here is now styled with the form submit
   buttons, since it is the same object doing the same job. What remains is the
   author card's own link, which is deliberately quieter. */

/* The author card's link is secondary to the aside's, so it stays an outline
   until you reach for it, then fills with the same gold. */
.author-card__more {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--deep-ink);
  background: linear-gradient(135deg, var(--brand-burgundy-mid), var(--brand-burgundy-deep));
  border: 1px solid rgba(244, 245, 239, 0.5);
  transition:
    color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.author-card__more::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Same reason as the aside button: the label is a loose text node. */
  z-index: -1;
  pointer-events: none;
  /* The same held-lighter champagne the aside button uses, for the same
     contrast reason once the label turns to ink on hover. */
  background: linear-gradient(135deg, var(--ramp-1) 0%, var(--ramp-2) 46%, var(--ramp-3) 100%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.author-card__more:hover,
.author-card__more:focus-visible {
  color: var(--on-gold);
  border-color: rgba(255, 178, 54, 0.85);
  transform: translateY(-1px);
  box-shadow:
    0 18px 34px -18px rgba(0, 0, 0, 0.8),
    0 0 22px -8px rgba(244, 245, 239, 0.55);
}

.author-card__more:hover::before,
.author-card__more:focus-visible::before {
  opacity: 1;
}

/* The arrow leads the eye out of the button; it should move with it. */
.author-card__more span[aria-hidden] {
  transition: transform var(--dur-fast) var(--ease);
}

.author-card__more:hover span[aria-hidden] {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  .aside-cta__btn,
  .aside-cta__btn::before,
  .author-card__more,
  .author-card__more::before,
  .author-card__more span[aria-hidden] {
    transition: none;
  }

  .aside-cta__btn:hover,
  .author-card__more:hover {
    transform: none;
  }

  /* Without the sweep the sheen would sit frozen across the face. */
  .aside-cta__btn:hover::before,
  .aside-cta__btn:focus-visible::before {
    transform: translateX(-120%);
  }
}

/* ---------- Hero: the quiet way into the tour ----------
   A small outlined box rather than a third solid button. The two above it are
   the page's actual business and the primary one is its best-converting
   element, so this is deliberately the lightest thing in the group: a hairline
   border, a question-mark glyph, no fill until you reach for it.

   The lead-in sits *inside* the control so the whole box is one target — a
   label next to a smaller button gives you two things to aim at for one action.

   --deep-muted and --deep-ink are used rather than --muted and --ink because
   the hero is a fixed dark surface in both colour modes, and those two tokens
   hold still while --muted/--ink invert. */
.hero__tour {
  margin: 16px 0 0;
}

.hero__tour-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border: 1px solid rgba(244, 245, 239, 0.22);
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 0.04);
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--deep-muted);
  cursor: pointer;
  transition:
    border-color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.hero__tour-btn svg {
  flex: none;
  color: var(--gold-bright);
  transition: transform var(--dur-fast) var(--ease);
}

/* Scoped: the same component renders in the footer, where this styling would
   be wrong. */
.hero__tour-btn .tourlink__label {
  color: var(--deep-ink);
  font-weight: 600;
}

.hero__tour-btn:hover,
.hero__tour-btn:focus-visible {
  border-color: rgba(244, 245, 239, 0.55);
  background: rgba(244, 245, 239, 0.1);
  color: var(--deep-ink);
}

.hero__tour-btn:hover svg {
  transform: rotate(-12deg) scale(1.08);
}

.hero__tour-btn:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .hero__tour-btn,
  .hero__tour-btn svg {
    transition: none;
  }

  .hero__tour-btn:hover svg {
    transform: none;
  }
}

/* The primary button is hidden below 560px, so on a phone this is the only
   in-hero route to the tour. */
@media (max-width: 560px) {
  .hero__tour {
    margin-top: 14px;
  }
}

/* ---------- Quote form service tiles on phones ----------
   Two-up survives to 640px, but on a 375px screen each tile is ~150px wide and
   the label — which carries `overflow-wrap: anywhere` so it can never overflow
   its tile — breaks mid-word into vertical letter stacks ("Dom / ain / & /
   Host / ing"). The wrap rule is not the bug; the width is.

   One per row gives the label the whole line, so it needs no breaking at all,
   and a tile that holds one short line can be much shorter. */
@media (max-width: 560px) {
  .inquiry-form__checks {
    gap: 8px;
  }

  .svc-tile,
  .svc-tile:nth-child(n + 4) {
    grid-column: span 6;
  }

  .svc-tile__face {
    gap: 11px;
    padding: 8px 12px;
    border-radius: 12px;
  }

  .svc-tile__ic {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .svc-tile__ic svg {
    width: 16px;
    height: 16px;
  }

  /* With a full line to sit on, the label should break at spaces like normal
     text — the anywhere-rule only existed to survive the narrow tile. */
  .svc-tile__label {
    overflow-wrap: normal;
    line-height: 1.25;
  }
}

/* ---------- "New" badge in the Resources menu ----------
   Small, gold, and it breathes rather than blinks. A pulse that fades a ring
   outward reads as "recently added"; anything faster reads as an error state,
   and this sits inside a navigation menu people open on purpose. */
.mega__badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--grad-gold);
  color: var(--on-gold);
  font-size: var(--fs-nano);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* The ring. Drawn on a pseudo-element so it can expand past the pill without
   moving anything around it. */
.mega__badge::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(255, 178, 54, 0.7);
  animation: mega-badge-pulse 2.4s ease-out infinite;
}

@keyframes mega-badge-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 178, 54, 0.65);
  }
  /* Most of the cycle is the rest between pulses — a badge that pulses
     continuously is a badge nobody can read the label next to. */
  55%,
  100% {
    box-shadow: 0 0 0 7px rgba(244, 245, 239, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mega__badge::after {
    animation: none;
  }
}

/* ---------- Author card and founder link on phones ----------
   Both stack to a single column below 720px, but everything inside stayed
   left-aligned against a centred portrait — the photo sat in the middle with
   the eyebrow, name and bio hanging off to the left. Once a card is one column
   wide, centring is the alignment that reads as deliberate.

   The name was also set at 26px next to a 22px card padding, so "Andy Sim" ran
   nearly the full width and the role beneath it wrapped. The scale here is not
   the desktop scale shrunk a little; it is the size that fits the column. */
@media (max-width: 720px) {
  .author-card {
    justify-items: center;
    text-align: center;
  }

  .author-card__meta,
  .author-card__footer,
  .author-card__disciplines {
    align-items: center;
    justify-content: center;
  }

  .author-card__name {
    font-size: 22px;
  }

  .author-card__role {
    font-size: var(--fs-caption);
  }

  .author-card__bio {
    font-size: var(--fs-sm);
  }

  /* The badge overlapped the portrait's edge at -12px, which reads as a mistake
     once the portrait is centred rather than tucked beside a column of text. */
  .author-card__experience {
    right: -6px;
    width: 44px;
    height: 44px;
  }

  .author-card__experience strong {
    font-size: 13px;
  }

  .author-card__experience span {
    font-size: 8px;
  }

  .founder-link,
  .prose a.founder-link {
    text-align: center;
  }

  .founder-link__media {
    margin-inline: auto;
  }

  .founder-link__body,
  .founder-link__title,
  .founder-link__chips {
    align-items: center;
    justify-content: center;
  }
}

/* ---------- Free-tools panel: intro copy off on phones ----------
   The search field and the tool tabs are the reason anyone opens this panel; on
   a phone the heading, lede and three chips push all of that below the fold
   before a single thing can be done.

   The heading is not removed, only taken out of the flow. It carries
   `id="home-tools-title"`, and the panel is `aria-labelledby` that id — display:
   none would leave the whole region with no accessible name. So it keeps the
   name and loses the space. */
@media (max-width: 560px) {
  #home-tools-title {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .home-tools__copy .lede,
  .home-tools__chips {
    display: none;
  }
}

/* ==========================================================================
   Live tool activity — the ticker under the hero
   ==========================================================================
   Proof the free tools get used, in the row between the hero and the tools
   panel it is advertising. Champagne rather than the reference site's green:
   this palette has one accent, and a second one here would undo that.

   The marquee is one animation on a doubled track, so it loops seamlessly
   with no JavaScript running per frame. */

.pulse {
  position: relative;
  overflow: hidden;
  padding-block: clamp(13px, 1.7vw, 18px);
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}
.pulse__inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
}
.pulse__lead {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

/* The running total — the one number that says these tools are worth trying.
   Not --grad-gold: that ramp ends at #9a672d, which is 3.49:1 behind this
   11px bold label. The submit buttons already use a ramp that stays legible
   the whole way down, and this reuses it. */
.pulse__count {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--ramp-1) 0%, var(--ramp-2) 46%, var(--ramp-3) 100%);
  color: var(--on-gold);
  font-size: var(--fs-nano);
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.pulse__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.pulse__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 60%, transparent);
  animation: pulse-beat 2.4s ease-out infinite;
}
@keyframes pulse-beat {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 60%, transparent);
  }
  70% {
    box-shadow: 0 0 0 9px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}
.pulse__cta {
  padding: 5px 12px;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line));
  border-radius: var(--radius-pill);
  color: var(--gold-deep);
  font-size: var(--fs-nano);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}
.pulse__cta:hover,
.pulse__cta:focus-visible {
  background: var(--gold-soft);
  border-color: var(--gold);
}

/* The fade at both ends makes entries enter and leave rather than appear and
   vanish against a hard edge. */
.pulse__viewport {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 40px,
    #000 calc(100% - 40px),
    transparent
  );
  mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}
.pulse__track {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  animation: pulse-marquee 46s linear infinite;
}
@keyframes pulse-marquee {
  /* Exactly half, because the track holds the list twice. */
  to {
    transform: translateX(-50%);
  }
}
.pulse__viewport:hover .pulse__track,
.pulse__viewport:focus-within .pulse__track {
  animation-play-state: paused;
}

.pulse__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  white-space: nowrap;
}
.pulse__ic {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-deep);
}
.pulse__ic svg {
  width: 13px;
  height: 13px;
}
.pulse__domain {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink);
  max-width: 26ch;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pulse__sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.5;
}
.pulse__tool,
.pulse__when {
  font-size: var(--fs-micro);
  color: var(--muted);
}
.pulse__outcome {
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: var(--fs-nano);
  font-weight: 700;
}

@media (max-width: 980px) {
  /* The caption stacks above the track rather than taking half the width. */
  .pulse__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 11px;
  }
  /* Centred once it wraps. Left-aligned, the count and the button stack into
     two ragged rows against the edge and read as a layout that ran out of
     room; centred, the wrap looks intended. */
  .pulse__lead {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  .pulse__viewport {
    width: 100%;
  }
}
@media (max-width: 560px) {
  /* `.pulse__cta { display: none }` used to live here, from when the button
     said "Try it free" and was worth dropping to save a row on a phone. It is
     now the only place the AI readiness tool is introduced, so it stays — and
     it had in fact already stopped hiding, because `.pulse__cta--new` sets
     `display: inline-flex` later in this file and a media query adds no
     specificity. Leaving a rule that reads as "hidden on phones" while the
     button is plainly visible is the sort of thing that costs somebody an
     afternoon. */
  .pulse__live {
    letter-spacing: 0.05em;
    white-space: normal;
  }
}

/* A marquee is the clearest case of motion that has to stop when the visitor
   has asked for less of it. The list stays, and wraps instead. */
@media (prefers-reduced-motion: reduce) {
  .pulse__track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
  }
  .pulse__dot {
    animation: none;
  }
  .pulse__viewport {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .pulse__item[aria-hidden='true'] {
    display: none;
  }
}

/* The welcome section opens tighter than the site default.
   It follows the tools panel, which already ends on its own generous run of
   space, so the standard --section-pad on top of that reads as a hole rather
   than a breath. 40% off the top only — the bottom keeps the site rhythm, and
   every value is scaled rather than pinned so it still tracks the viewport:
   clamp(64px, 8vw, 112px) × 0.6. */
.home-welcome {
  padding-top: clamp(38px, 4.8vw, 67px);
}

/* ==========================================================================
   Standalone tools stage
   ==========================================================================
   The burgundy surface the console needs, for pages that have no dark section
   of their own — the three tool pages. It repeats the home stage's gradient
   deliberately: the .tools-dark rules were measured against these colours, and
   a stage that was merely similar would leave the tab labels at a contrast
   nobody had checked.

   One column rather than the home page's two, because there is no copy beside
   it here — the page's own heading and prose already say what the tool does. */

.tools-stage {
  position: relative;
  isolation: isolate;
  /* clip-path rather than overflow: a scroll container would trap the sticky
     positioning the widget uses inside. Same reasoning as the home stage. */
  clip-path: inset(0 round clamp(24px, 2.6vw, 38px));
  padding: clamp(14px, 2vw, 26px);
  border: 1px solid color-mix(in srgb, var(--gold) 24%, transparent);
  border-radius: clamp(24px, 2.6vw, 38px);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.055), transparent 42%),
    radial-gradient(
      70% 120% at 12% 0%,
      color-mix(in srgb, var(--gold) 16%, transparent),
      transparent 62%
    ),
    linear-gradient(
      150deg,
      var(--brand-burgundy-deep),
      var(--brand-burgundy-mid) 58%,
      var(--brand-burgundy)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 40px 90px -72px rgba(0, 0, 0, 0.95);
  color: var(--deep-ink);
}

/* The single gold orb, at a fraction of the home page's aura — that stage is
   a full-bleed section and can carry two; this is a card. */
.tools-stage__aura {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    46% 62% at 82% 6%,
    color-mix(in srgb, var(--gold) 20%, transparent),
    transparent 70%
  );
}

.tools-stage > .home-tools__console {
  /* The home page tilts the console because it sits offset in a two-column
     row and the angle reads as depth. Here it is centred and full width, where
     the same tilt only looks like a mistake. The float stays. */
  transform: none;
  animation: none;
}
.tools-stage > .home-tools__console:hover,
.tools-stage > .home-tools__console:focus-within {
  transform: translateY(-3px);
}

/* The tool pages put the console in the text column, so the console, the prose
   and the sidebar share two edges instead of three. The grid row now starts at
   the top of the page rather than below the console, which is what lets the
   sidebar run the full height beside it. */
.tool-page__body--top {
  margin-top: 0;
}
.tool-page__main {
  min-width: 0;
  display: grid;
  gap: clamp(24px, 3.4vw, 44px);
  align-content: start;
}
/* The console fills its column.

   It was briefly capped to --container-text so its right edge matched the
   prose. That did line the two up, but the prose measure is much narrower than
   the column, so it opened 300px of dead white between the console and the
   sidebar — the alignment was real and the page still looked broken. The
   column is the shared edge that matters: console and sidebar now tile the
   full width with one gap between them, and the prose keeps its own narrower
   measure inside, which is what a reading measure is for. */
.tool-page__main .tools-stage {
  padding: clamp(10px, 1.4vw, 16px);
}
@media (max-width: 900px) {
  /* One column: the console leads, the prose follows, the sidebar closes. The
     stacking order is already the source order, so nothing needs reordering. */
  .tool-page__main {
    gap: clamp(20px, 4vw, 32px);
  }
}

/* The breadcrumb carries its own margin-bottom, for the layouts that stack by
   margin. Inside a grid that already declares a row gap the two add up rather
   than collapsing — margins do not collapse through a grid — so the space under
   the breadcrumb came out at 88px where every other block on the page was
   separated by 64px. It read as a hole, and on the service pages it was one.

   Zeroed only where a gap is already doing the work. Layouts that genuinely
   stack by margin, such as the portfolio case hero, keep it. */
.stack-lg > .crumb,
.reading-layout > .crumb,
.blog-layout > .crumb,
.blog-main > .crumb {
  margin-bottom: 0;
}

/* Tool page sidebar — the second and third blocks.
   The first heading sits at the top of the card and needs no space above it;
   the ones that follow a list do. :not(:first-child) rather than a margin on
   every heading and a reset on the first. */
.tool-page__side h2:not(:first-child) {
  margin-top: 26px;
}

/* The link text can now wrap — "69 Free Web Tools" carries a badge beside it —
   so the row stops being a single line pinned to both edges. */
.tool-page__side li a {
  flex-wrap: wrap;
}
.tool-page__side li a > span[aria-hidden] {
  margin-left: auto;
}

/* Same badge the Resources menu puts on this link, so the two agree. */
.tool-page__new {
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: var(--fs-nano);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tool-page__side li a .tool-page__new {
  /* The chevron rule above tints every span gold; this one owns its colour. */
  color: var(--gold-deep);
}

/* The body text fills its column, like the console above it.
   .prose caps itself at --container-text, a reading measure meant for long
   articles. In this column that left the text 683px wide under a 936px console
   — 252px of ragged margin down the right, and the block below the box not
   lining up with the box. These pages carry three short paragraphs, not an
   essay, so the column edge is the better guide and the two now share one left
   and one right edge. */
.tool-page__main .prose {
  max-width: none;
}

/* ==========================================================================
   Tool page sidebar — premium pass
   ==========================================================================
   Was a flat tinted block with hard rules between every row. Rebuilt on the
   card language the rest of the site already uses — hairline border, the gold
   glow cast from the top-right corner, a short gold rule under each heading —
   so it reads as a considered panel rather than a leftover list.

   Colour comes from tokens throughout, so it follows the theme; the closing
   offer is the one deliberate exception and sits on burgundy, which is a dark
   surface in both modes. */

.tool-page__side {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 24px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 26px 60px -46px rgba(0, 0, 0, 0.55);
}
.tool-page__side::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  z-index: -1;
  width: 190px;
  height: 190px;
  pointer-events: none;
  background: radial-gradient(
    circle at 100% 0,
    color-mix(in srgb, var(--gold) 15%, transparent),
    transparent 70%
  );
}

/* Heading, with the short gold rule the section headings use — scaled down,
   because this is a sidebar caption and not a section title. */
.tool-page__side h2 {
  position: relative;
  margin: 0 0 14px;
  padding-bottom: 9px;
  font-size: var(--fs-caption);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.tool-page__side h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-gold);
}
.tool-page__side h2:not(:first-child) {
  margin-top: 24px;
}

.tool-page__side ul {
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}

/* The rows lose their full-width rules. A divider between every item made the
   card look like a table; the hover tint and the moving chevron carry the
   separation instead, and the eye gets a list rather than a grid. */
.tool-page__side li a {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 30px 10px 13px;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition:
    background 0.22s var(--ease),
    color 0.22s var(--ease);
}
/* The gold marker that appears on hover, from the leading edge. */
.tool-page__side li a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 3px;
  background: var(--grad-gold);
  transform: translateY(-50%);
  transition: height 0.24s var(--ease);
}
.tool-page__side li a:hover,
.tool-page__side li a:focus-visible {
  background: var(--gold-soft);
  color: var(--gold-deep);
}
.tool-page__side li a:hover::before,
.tool-page__side li a:focus-visible::before {
  height: 60%;
}

/* Pinned rather than pushed to the end by margin: auto. A label long enough
   to wrap — "Domain Registration & Hosting" does — took the chevron with it
   onto a second line, leaving it stranded under the text. Out of flow it stays
   on the row's centre line however many lines the label runs to, and the
   padding above reserves its space so it never sits on the words. */
.tool-page__side li a > span[aria-hidden] {
  position: absolute;
  right: 12px;
  top: 50%;
  color: var(--gold);
  transform: translateY(-50%);
  transition: transform 0.24s var(--ease);
}
.tool-page__side li a:hover > span[aria-hidden] {
  transform: translateY(-50%) translateX(3px);
}

.tool-page__new {
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: var(--fs-nano);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
/* On hover the row's background becomes gold-soft too, so the badge needs its
   own surface back or it disappears into the row. */
.tool-page__side li a:hover .tool-page__new {
  background: var(--surface);
  color: var(--gold-deep);
}

/* The closing offer — burgundy, so the ask is the one thing on this card that
   is not ivory. Same surface family as the console beside it. */
.tool-page__offer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 22px;
  padding: 18px 18px 20px;
  border: 1px solid color-mix(in srgb, var(--gold) 26%, transparent);
  border-radius: 16px;
  background: linear-gradient(
    150deg,
    var(--brand-burgundy-deep),
    var(--brand-burgundy-mid) 58%,
    var(--brand-burgundy)
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.tool-page__offer-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    60% 80% at 88% 4%,
    color-mix(in srgb, var(--gold) 26%, transparent),
    transparent 70%
  );
}
.tool-page__offer .tool-page__cta-note {
  margin: 0 0 14px;
  font-size: var(--fs-caption);
  line-height: 1.55;
  /* Fixed light ink: this panel is dark in both themes, so a token that flips
     would be unreadable in one of them. */
  color: var(--deep-ink);
}

/* ==========================================================================
   Mega menu sub-items — hover and current state
   ==========================================================================
   The child links were static muted text: no hover, no indication of where you
   already are. In a menu whose whole job is navigation that is the one thing
   it has to say. Same vocabulary as the tool sidebar — a gold marker growing
   from the leading edge, a soft gold wash, a small step to the right — so the
   two lists behave alike.

   The connector rail stays, since it is what ties a child to its parent, but it
   now brightens with the row so the relationship reads on hover too. */

.mega__children {
  position: relative;
  margin-left: 32px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  transition: border-color 0.25s var(--ease);
}
.mega__children:hover {
  border-left-color: color-mix(in srgb, var(--gold) 45%, var(--line));
}

.mega__children a {
  position: relative;
  display: block;
  margin: 1px 0;
  padding: 7px 12px 7px 11px;
  border-radius: 9px;
  font-size: var(--fs-caption);
  font-weight: 500;
  line-height: 1.35;
  color: var(--muted);
  text-decoration: none;
  transition:
    background 0.22s var(--ease),
    color 0.22s var(--ease),
    transform 0.22s var(--ease);
}

/* The marker, out of flow so a title that wraps to two lines still gets a
   centred bar rather than one anchored to the first line. */
.mega__children a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 3px;
  background: var(--grad-gold);
  transform: translateY(-50%);
  transition: height 0.24s var(--ease);
}

.mega__children a:hover,
.mega__children a:focus-visible {
  background: var(--gold-soft);
  color: var(--gold-deep);
  transform: translateX(2px);
}
.mega__children a:hover::before,
.mega__children a:focus-visible::before {
  height: 62%;
}

/* Where you are. Heavier than hover on purpose: hover is a question, current
   is a fact, and the two have to be told apart at a glance when the pointer
   happens to be resting on the row you are already on. */
.mega__children a[aria-current='page'] {
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-weight: 700;
}
.mega__children a[aria-current='page']::before {
  height: 100%;
}

/* The parent service row, marked the same way when it is the page itself. */
.mega__list > li > a[aria-current='page'] strong {
  color: var(--gold-deep);
}
.mega__list > li > a[aria-current='page'] .mega__index {
  background: var(--gold-soft);
  color: var(--gold-deep);
}

@media (prefers-reduced-motion: reduce) {
  .mega__children a,
  .mega__children a::before,
  .mega__children {
    transition: none;
  }
  .mega__children a:hover {
    transform: none;
  }
}

/* ---- "Skip tour" -----------------------------------------------------------
 *
 * In the button row, left of the primary action. On its own line it cost the
 * card a whole extra row of height for one word.
 *
 * Quieter than Back, which is itself quieter than Next — three levels, so the
 * eye still lands on the one that moves the tour forward. Next keeps `flex: 1`,
 * so it takes whatever the two quiet buttons leave.
 */
.tour__skip {
  flex: none;
  padding: 10px 8px;
  border: 0;
  background: none;
  color: color-mix(in srgb, var(--deep-ink) 76%, transparent);
  font: inherit;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.tour__skip:hover,
.tour__skip:focus-visible {
  color: var(--deep-ink);
}

/* ---- Article meta: byline and the figures about the piece -----------------
 *
 * Was one flat run of text separated by gold dots. It read as a single
 * sentence, so on a narrow screen it broke wherever it happened to run out of
 * room — often leaving a dot stranded at the start of a line.
 *
 * Two groups instead: the person on the left, the figures on the right. They
 * separate onto their own rows when the column is narrow, and the figures wrap
 * as a unit.
 */
.article__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 18px;
}

/* The byline, as a struck coin.
 *
 * It lost the role line and with it the reason to be two lines tall, so the
 * whole thing is built around a 30px portrait now. Everything else is one layer
 * of light: a gold rim, a sheen across the top, and a ring that brightens on
 * hover. */
.article__byline {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 4px 15px 4px 4px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  isolation: isolate;
  /* The rim is a gradient, not a colour — it catches the light along one edge
     the way a bevel does, instead of outlining the shape evenly. */
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(
        135deg,
        color-mix(in srgb, var(--gold) 62%, transparent),
        color-mix(in srgb, var(--line) 90%, transparent) 42%,
        color-mix(in srgb, var(--gold-bright, #ffb236) 48%, transparent)
      )
      border-box;
  border: 1px solid transparent;
  transition:
    box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
}

/* A specular band across the upper half — what makes a flat pill read as
   something with a surface. */
.article__byline::before {
  content: '';
  position: absolute;
  inset: 1px 1px 45%;
  z-index: -1;
  border-radius: var(--radius-pill) var(--radius-pill) 0 0;
  background: linear-gradient(rgb(255 255 255 / 0.1), transparent);
  pointer-events: none;
}

.article__byline:hover,
.article__byline:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    0 10px 24px -16px color-mix(in srgb, var(--gold-deep) 85%, transparent),
    0 0 0 3px color-mix(in srgb, var(--gold) 14%, transparent);
}

/* The portrait sits in a gold ring with the page colour between, so it reads as
   set into the pill rather than pasted onto it. */
.article__byline-photo {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 1.5px var(--surface),
    0 0 0 3px color-mix(in srgb, var(--gold) 55%, transparent),
    0 2px 6px -2px color-mix(in srgb, var(--gold-deep) 60%, transparent);
  transition: box-shadow 0.25s var(--ease);
}

.article__byline:hover .article__byline-photo {
  box-shadow:
    0 0 0 1.5px var(--surface),
    0 0 0 3px var(--gold),
    0 3px 10px -2px color-mix(in srgb, var(--gold-deep) 75%, transparent);
}

.article__byline-name {
  min-width: 0;
  font-size: var(--fs-caption);
  letter-spacing: 0.01em;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article__facts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Icons instead of dot separators: each figure says what it is on its own, so
   nothing depends on reading them as one sequence. */
.article__fact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.article__fact svg {
  flex: none;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Phones: the byline takes the row, the figures take the next one. Left-aligned
   rather than spread, so the two groups share one edge. */
@media (max-width: 560px) {
  .article__meta {
    justify-content: flex-start;
    gap: 12px;
  }

  .article__byline {
    width: 100%;
  }

  .article__facts {
    gap: 6px;
  }

  .article__fact {
    padding: 5px 9px;
    font-size: var(--fs-micro);
  }
}

/* ==========================================================================
   AI readiness report  (.airc__*)

   Rendered inside the tools console's result area, so there is no panel, no
   form and no input here — the console owns all three. What is left is the
   report itself: a score, four groups of findings, and the ask at the end.

   Appended, like everything else in this file: it is read top to bottom and a
   rule placed above an existing one loses. See CLAUDE.md §8.
   ========================================================================== */

.airc__result {
  margin-top: 4px;
}

/* --- the score band --- */

.airc__score {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--line);
}

.airc__dial {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex: 0 0 auto;
}

.airc__num {
  font-size: clamp(38px, 6vw, 54px);
  font-weight: 700;
  line-height: 1;
  color: var(--gold-deep);
}

.airc__score--weak .airc__num {
  color: var(--danger);
}

.airc__outof {
  font-size: var(--fs-caption);
  color: var(--muted);
}

.airc__verdict {
  flex: 1 1 240px;
  min-width: 0;
}

.airc__band {
  margin: 0;
  font-size: var(--fs-h5);
  font-weight: 700;
  color: var(--ink);
}

.airc__line {
  margin: 4px 0 0;
  font-size: var(--fs-sm);
  color: var(--muted);
}

.airc__host {
  margin: 8px 0 0;
  font-size: var(--fs-micro);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.airc__summary {
  margin: 18px 0 0;
  font-size: var(--fs-sm);
  color: var(--ink);
}

/* --- the findings --- */

.airc__group {
  margin-top: 26px;
}

.airc__gtitle {
  margin: 0;
  font-size: var(--fs-h6);
  font-weight: 700;
  color: var(--ink);
}

.airc__gblurb {
  margin: 2px 0 12px;
  font-size: var(--fs-caption);
  color: var(--muted);
}

.airc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.airc__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
}

.airc__item.is-bad {
  border-color: color-mix(in srgb, var(--danger) 34%, var(--line));
  background: color-mix(in srgb, var(--danger) 5%, var(--surface));
}

.airc__mark {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin-top: 2px;
}

/* The one place a second hue is allowed: gold for a pass would make a failing
   audit look like a passing one at a glance. */
.airc__mark--ok {
  color: #1f7a4d;
}

.airc__mark--no {
  color: var(--danger);
}

.airc__ilabel {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
}

.airc__idetail {
  margin: 3px 0 0;
  font-size: var(--fs-caption);
  color: var(--muted);
  line-height: 1.55;
}

/* --- the ask --- */

.airc__cta {
  margin-top: 30px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--brand-burgundy);
  color: var(--deep-ink);
  text-align: center;
}

.airc__ctitle {
  margin: 0;
  font-size: var(--fs-h6);
  font-weight: 700;
  color: var(--deep-ink);
}

.airc__cbody {
  margin: 8px auto 16px;
  max-width: 52ch;
  font-size: var(--fs-sm);
  color: var(--deep-muted);
}

/* --------------------------------------------------------------------------
   The New badge on a tab, the advanced section, and the reveal.

   The reveal is deliberately restrained: the score counts up and the findings
   arrive in a short stagger, then it stops. Anything longer would repeat the
   mistake the tab sweep made — an effect that outlives the moment it belongs
   to reads as slowness, not polish. Total 340ms, all transform and opacity.
   -------------------------------------------------------------------------- */

/* Pinned to the corner of the tab, not tucked into the label.

   It has to survive the collapse: the whole point of a New badge is to catch
   someone looking at a *different* tab, and the label it used to live in is
   zero-width and invisible whenever that is true.

   The sheen is a slow loop rather than a one-shot. An interaction effect must
   end before the eye returns — this one is not tied to an interaction, it is
   there to be noticed in passing, so it may breathe. 3.2s, transform only,
   and it stops for anyone who asked for less movement. */
.dt__tab-badge {
  position: absolute;
  top: -7px;
  right: -6px;
  z-index: 2;
  overflow: hidden;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-nano);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
  /* White, not --on-gold. That token is a dark ink chosen for large gold
     surfaces like a button; at 8px on a small gradient pill it turns to mud.
     A deeper gold behind it and a hairline shadow keep the letters crisp on
     the light end of the gradient. */
  color: #fff;
  text-shadow: 0 1px 1px rgba(20, 20, 22, 55%);
  /* Both stops measured against white: #9a6318 gives 5.03:1 and #7d4e12 7.07:1,
     so the letters clear 4.5:1 across the whole gradient, not just the dark end.
     #b8791f looked right and measured 3.63. */
  background: linear-gradient(135deg, #ffb236, #ffb236);
  border: 1px solid rgb(255 255 255 / 30%);
  box-shadow:
    0 2px 6px -1px rgba(255, 178, 54, 45%),
    0 0 0 3px color-mix(in srgb, var(--gold) 15%, transparent);
}

/* The sheen. A pseudo-element so the text underneath never moves. */
.dt__tab-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 32%, rgb(255 255 255 / 62%) 50%, transparent 68%);
  transform: translateX(-140%);
  animation: dt-badge-sheen 3.2s var(--ease) infinite;
  pointer-events: none;
}

@keyframes dt-badge-sheen {
  0%,
  55% {
    transform: translateX(-140%);
  }
  85%,
  100% {
    transform: translateX(140%);
  }
}

/* Collapsed, the tab is a 74px icon button — the full pill would sit wider
   than the thing it is labelling, so it loses its padding and keeps its
   meaning. */
@container (max-width: 870px) {
  .dt__tab:not(.is-on) .dt__tab-badge {
    top: -5px;
    right: -4px;
    padding: 2px 6px;
    font-size: 8px;
    letter-spacing: 0.04em;
  }
}

/*
 * Dropped on a phone.
 *
 * The tile is 85x78 there, and the badge cannot be put anywhere good in that
 * space: outside it, it floats between grid rows and reads as belonging to the
 * tile above; inside it, it crowds the icon and the label. It is decorative —
 * the tab is reachable and named either way — so on a phone it simply goes.
 * Better a clean grid of four than a fifth thing competing inside one cell.
 */
@media (max-width: 640px) {
  .dt__tab-badge {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dt__tab-badge::after {
    animation: none;
    opacity: 0;
  }
}

/* --- advanced section --- */

.airc__group--adv {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
}

.airc__count {
  margin-left: 10px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-nano);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--gold-deep);
  background: var(--gold-soft);
  vertical-align: middle;
}

/* An advanced signal that is missing is an opportunity, not a fault — so it
   gets the resting surface, not the danger one. */
.airc__item.is-todo {
  border-style: dashed;
}

.airc__mark--todo {
  color: var(--gold-deep);
}

/* --- the reveal --- */

.airc__result .airc__score {
  animation: airc-in 260ms var(--ease) both;
}

.airc__result .airc__summary {
  animation: airc-in 260ms var(--ease) 60ms both;
}

.airc__result .airc__group {
  animation: airc-in 260ms var(--ease) both;
}

.airc__result .airc__group:nth-of-type(1) {
  animation-delay: 80ms;
}
.airc__result .airc__group:nth-of-type(2) {
  animation-delay: 120ms;
}
.airc__result .airc__group:nth-of-type(3) {
  animation-delay: 160ms;
}
.airc__result .airc__group:nth-of-type(4) {
  animation-delay: 200ms;
}
.airc__result .airc__group:nth-of-type(5) {
  animation-delay: 240ms;
}

.airc__result .airc__cta {
  animation: airc-in 260ms var(--ease) 280ms both;
}

@keyframes airc-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* The number is the first thing anyone looks at, so it gets one flourish and
   nothing else does. */
.airc__num {
  animation: airc-score 340ms cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

@keyframes airc-score {
  from {
    opacity: 0;
    transform: scale(0.72);
  }
}

@media (prefers-reduced-motion: reduce) {
  .airc__result .airc__score,
  .airc__result .airc__summary,
  .airc__result .airc__group,
  .airc__result .airc__cta,
  .airc__num {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   The verdict box.

   One custom property carries the band colour and everything downstream reads
   it, so a band is one line to change rather than nine. Green for a site that
   passes, gold for one part-way there, red only for a genuine failure — the
   same three meanings the ticks and crosses already use, so nothing has to be
   learned twice.

   Strong gets a celebration, once. Reaching 80 on this is genuinely difficult
   — almost nothing on the web does — and a plain number would undersell it.
   It fires on arrival and never repeats: a looping party is a distraction, and
   the report underneath it is the thing worth reading.
   -------------------------------------------------------------------------- */

.airc__score {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  gap: 24px;
  padding: 24px 26px;
  border: 1px solid color-mix(in srgb, var(--band) 34%, var(--line));
  background:
    radial-gradient(
      120% 160% at 0% 0%,
      color-mix(in srgb, var(--band) 13%, transparent),
      transparent 62%
    ),
    var(--bg-alt);
}

.airc__score--strong {
  --band: #1f7a4d;
}

.airc__score--partial {
  --band: var(--gold);
}

.airc__score--weak {
  --band: var(--danger);
}

/* The number sits in a ring tinted by the band, so the verdict is legible
   before a word of it is read. */
.airc__dial {
  position: relative;
  align-items: baseline;
  padding: 10px 20px 10px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--band) 26%, transparent),
    0 10px 24px -18px color-mix(in srgb, var(--band) 70%, transparent);
}

.airc__num,
.airc__score--weak .airc__num {
  color: var(--band);
}

.airc__band {
  display: flex;
  align-items: center;
  gap: 9px;
}

/* A dot in the band colour, so the verdict reads at a glance in a screenshot
   as well as in prose. */
.airc__band::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--band);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--band) 16%, transparent);
  flex: 0 0 auto;
}

/* --- the celebration, strong only, once --- */

.airc__score--strong::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    52% 130% at 14% 50%,
    color-mix(in srgb, var(--band) 30%, transparent),
    transparent 70%
  );
  transform: scale(0.4);
  opacity: 0;
  animation: airc-burst 900ms cubic-bezier(0.2, 0.8, 0.3, 1) 120ms both;
}

@keyframes airc-burst {
  40% {
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.55;
  }
}

.airc__score--strong .airc__dial::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--band);
  opacity: 0;
  animation: airc-ring 1000ms cubic-bezier(0.2, 0.8, 0.3, 1) 160ms both;
  pointer-events: none;
}

@keyframes airc-ring {
  0% {
    transform: scale(1);
    opacity: 0.85;
  }
  100% {
    transform: scale(1.28);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .airc__score--strong::before,
  .airc__score--strong .airc__dial::after {
    animation: none;
  }

  .airc__score--strong::before {
    opacity: 0.55;
    transform: scale(1);
  }
}

/* --------------------------------------------------------------------------
   Which assistants may read this site.

   "Can ChatGPT read my site" is the question people arrive with, so this sits
   above the four groups rather than four scrolls below them. A two-column grid
   on anything but a phone: fourteen rows in one column is a list nobody
   finishes.
   -------------------------------------------------------------------------- */

.airc__agents {
  margin-top: 26px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--line);
}

.airc__agentlist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(252px, 1fr));
}

.airc__agent {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
}

.airc__agent-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--state);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--state) 18%, transparent);
}

.airc__agent.is-allowed {
  --state: #1f7a4d;
}

.airc__agent.is-partial {
  --state: var(--gold);
}

.airc__agent.is-blocked {
  --state: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 32%, var(--line));
  background: color-mix(in srgb, var(--danger) 5%, var(--surface));
}

.airc__agent-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.airc__agent-name {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
}

.airc__agent-what {
  font-size: var(--fs-nano);
  color: var(--muted);
}

.airc__agent-state {
  flex: 0 0 auto;
  font-size: var(--fs-nano);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--state);
}

.airc__result .airc__agents {
  animation: airc-in 260ms var(--ease) 70ms both;
}

@media (prefers-reduced-motion: reduce) {
  .airc__result .airc__agents {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   The explanatory copy under a tool, as cards.

   It was a single column of paragraphs running the height of the page — the
   shape people stop reading. One card per section gives each idea an edge, and
   the gold rule already under each heading now has something to sit on.
   -------------------------------------------------------------------------- */

.tool-page__copy {
  display: grid;
  gap: clamp(14px, 1.8vw, 20px);
  margin-top: clamp(28px, 3.5vw, 40px);
}

.tool-page__copy > section {
  padding: clamp(20px, 2.6vw, 30px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tool-page__copy > section > h2 {
  margin-top: 0;
}

.tool-page__copy > section > p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   The report, on paper.

   No PDF library and no headless browser: this host ran out of processes
   twice in one day, so spawning Chrome per download is out, and a client
   library would mean running npm install on a server we would rather leave
   alone. Browsers write good PDFs already — selectable text, real links,
   correct fonts. The work is handing one a document worth printing.

   Margins are set twice on purpose. `@page` is honoured only while the print
   dialog's margin setting is Default; a visitor who picks None overrides it
   and the first version came out with the text clipped against the paper
   edge. The sheet carries its own padding as well, so the layout survives
   either choice.
   ========================================================================== */

.printhead,
.printfoot,
.printmeta,
.printrun {
  display: none;
}

/* The save control sits in the result's own top-right corner rather than on a
   line of its own above it. That line cost a whole row of vertical space to
   hold one button, and pushed the score — the thing people came for — further
   down the page. The corner it now occupies was empty in every result. */
.dt__result {
  position: relative;
}

.airc__save {
  position: absolute;
  top: clamp(12px, 1.6vw, 18px);
  right: clamp(12px, 1.6vw, 18px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px 7px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--gold) 34%, var(--line));
  background: var(--surface);
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--gold-deep);
  transition:
    border-color 0.14s var(--ease),
    background-color 0.14s var(--ease),
    transform 0.14s var(--ease);
}

.airc__save:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
  transform: translateY(-1px);
}

.airc__save-ic {
  width: 15px;
  height: 15px;
}

/* Room for it, so a long verdict never runs underneath. */
.airc__score {
  padding-right: 150px;
}

@media (max-width: 560px) {
  /* On a phone the corner is not wide enough to give away — it goes back to
     its own row, where at least it is reachable with a thumb. */
  .airc__save {
    position: static;
    margin-bottom: 12px;
  }

  .airc__score {
    padding-right: 22px;
  }
}

@media print {
  /* Paper is light, whatever the screen was. `background: transparent` alone
     is not enough: under color-scheme dark the browser paints its own canvas
     dark behind transparent elements, and a visitor reading at night would
     save a black PDF and spend a cartridge on it. */
  /* Reset the palette, not every element.

     Everything on this site takes its colour from these tokens, and in dark
     mode --ink is near-white — which on white paper is invisible ink. Setting
     the tokens fixes every heading, label and caption at once and lets the few
     meaningful colours below still override, where a blunt `* { color }` would
     flatten those too.

     The theme sets its tokens on `:root[data-theme='auto']` and its siblings,
     which outranks a bare `:root` — the first attempt at this changed nothing
     at all and the headings printed in invisible ink. Matching that
     specificity, and sitting last in the file, is what makes it stick. */
  :root,
  :root[data-theme],
  :root[data-theme='auto'],
  :root[data-theme='dark'],
  :root[data-theme='light'] {
    color-scheme: light !important;
    --bg: #fff !important;
    --bg-tint: #fff !important;
    --ink: #0d0d0d !important;
    --ink-soft: #45474e !important;
    --muted: #6a6c72 !important;
    --line: #dedede !important;
    --surface: #fff !important;
    --bg-alt: #fff !important;
    --deep-ink: #0d0d0d !important;
    --deep-muted: #6a6c72 !important;
    --gold-deep: #ffb236 !important;
    --gold-soft: #f4f5ef !important;
    --on-gold: #0d0d0d !important;
  }

  html,
  body {
    background: #fff !important;
    color: #0d0d0d !important;
    font-size: 10.5pt;
  }

  /* Print the colours that were asked for.

     Browsers drop background colours from printed pages unless told not to —
     an ink-saving default. It cost this document its gold rule, the tint
     behind the score, and every status dot, which printed as hollow rings.
     Half the design was simply not being inked, which is most of why the
     first drafts looked flat. */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  /* Every fill goes, and the few that matter are put back below.

     This was a short list of known panels, which worked on the tools pages and
     failed everywhere else: on the hosting service page and the home page the
     console sits inside a dark shell, and that shell is not on any list I could
     write from memory. It printed a burgundy page with dark text on it — the
     headings were invisible and the report was unreadable.

     `*` has no specificity, so the gold rule, the score tint and the status
     dots below all override it and still print. */
  * {
    background: transparent !important;
  }

  /* Generous, and the same on every page. 12mm looked cramped on A4 and left
     pages two and three starting hard against the top edge. The running head
     and foot sit inside this margin, so the content clears them with its own
     padding below. */
  @page {
    margin: 15mm 16mm 16mm;
  }

  /* Print the report and nothing else.

     This was a hand-written list of things to hide, which is a losing game:
     it worked on the tools pages, then the hosting service page printed its
     breadcrumb and its dark shell, and the home page printed the entire hero.
     Every page the console is embedded in has different furniture around it,
     and no list written from memory covers the next one.

     Inverted, it cannot miss. Everything is hidden unless it is the result,
     inside the result, or an ancestor on the path to it. Nothing new on any
     page can leak in, because leaking in now requires containing the report. */
  /* Only on a page that HAS something to print on its own. Without the
     `body:has(…)` guard this rule ran everywhere, so Ctrl+P on the home page,
     the FAQs or any article printed a single empty sheet — everything was
     hidden and nothing was ever named to survive. */
  body:has(:is(.dt__result, .inv-doc))
    *:not(:has(:is(.dt__result, .inv-doc))):not(:is(.dt__result, .inv-doc)):not(
      :is(.dt__result, .inv-doc) *
    ) {
    display: none !important;
  }

  /* Ancestors are on the path, so they survive — but their padding, borders
     and max-widths are page furniture and would inset the sheet twice. */
  body:has(:is(.dt__result, .inv-doc)) *:has(:is(.dt__result, .inv-doc)):not(.dt):not(.inv) {
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    width: auto !important;
    max-width: none !important;
  }

  /* Inside the result, the controls are not part of the document. */
  .airc__save,
  .airc__cta,
  .dt__error {
    display: none !important;
  }

  .printhead,
  .printfoot,
  .printmeta {
    display: block;
  }

  /* Vertical margins are `@page`'s job and cannot be done any other way for
     pages after the first. If a report comes out with page two hard against
     the top edge, the print dialog's Margins is set to None. */

  /* ---- running head, every page ---- */

  /* Repeating a header on every printed page.

     `position: fixed` does not do this — it painted the head and the foot on
     page one and nothing after, which is exactly the fault this was meant to
     cure. Table header and footer groups are the technique browsers have
     actually repeated across pages for twenty years, and the display
     properties can be applied to the existing markup without a table in the
     HTML: the main column becomes the table, the running head its thead, the
     report its tbody, the footer its tfoot. Groups are hoisted into place
     regardless of source order. */
  /* The sheet, and its own margins.

     Two attempts at a repeating running head failed — `position: fixed`
     painted page one only, and table header groups did the same. Rather than
     try a third, the head appears once at the top like a letterhead and the
     footer once at the end, which is what a report normally does anyway.

     The horizontal margin lives here rather than in `@page`, because `@page`
     is discarded the moment the print dialog's Margins is set to anything but
     Default — and that is how a document came out with its logo touching the
     edge of the paper. Padding on the sheet cannot be overridden by a dialog. */
  /* The sheet is the console, not the page around it.

     `.tool-page__main` exists on the tools pages and nowhere else, so a report
     saved from the home page hero or the hosting service page — the same tool,
     the same button — came out with no margins and no letterhead at all. The
     console travels; the page wrapper does not. */
  .dt {
    display: block !important;
    padding: 0 14mm !important;
  }

  .printrun {
    display: none !important;
  }

  /* The groups are laid out as table sections, so the visible bar inside each
     needs to be the thing that is styled. */

  /* No padding to clear the running head: a table header group is a real row
     and reserves its own space on every page. The padding that compensated
     for the old fixed positioning became a hole under the letterhead. */
  .dt__shell,
  .dt__result {
    padding-top: 0 !important;
  }

  .dt__shell,
  .dt__result,
  .tool-page__body,
  .tool-page,
  .container,
  .section {
    border: 0 !important;
    margin: 0 !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
  }

  /* .dt is deliberately absent: it carries the sheet's own horizontal margin,
     and listing it here is what zeroed that margin and put the logo against
     the edge of the paper. */
  .tool-page__main,
  .tool-page__body,
  .tool-page,
  .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* The second half of the margin story — see the note at the top. */
  /* Clears the running head above and the footer below on every page. */

  /* ---- letterhead ---- */

  .printhead__bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 14px;
  }

  .printhead__logo {
    height: 46px;
    width: auto;
  }

  .printhead__wordmark {
    font-size: 20pt;
    font-weight: 700;
    letter-spacing: -0.01em;
  }

  .printhead__contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 8.5pt;
    line-height: 1.65;
    color: #6a6c72 !important;
  }

  /* Two rules, thick over thin — the letterpress convention, and it reads as
     deliberate where a single line reads as a border. */
  .printhead::after {
    content: '';
    display: block;
    height: 2.5pt;
    background: #ffb236 !important;
    margin-bottom: 1.5pt;
  }

  .printhead__title {
    margin: 26px 0 4px;
    font-size: 23pt;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
  }

  .printhead__note {
    margin: 0;
    font-size: 8.5pt;
    color: #6a6c72 !important;
  }

  /* Who it was prepared for, and when. A report with no date is a report
     nobody can act on six weeks later. */
  .printmeta {
    margin: 3px 0 14px;
    font-size: 8.5pt;
    color: #6a6c72 !important;
  }

  .printmeta strong {
    color: #0d0d0d !important;
  }

  /* ---- the verdict ---- */

  .airc__score {
    display: flex !important;
    align-items: center;
    gap: 24px;
    margin-top: 20px !important;
    border: 1px solid #dedede !important;
    border-left: 4px solid #ffb236 !important;
    border-radius: 3px !important;
    padding: 18px 22px !important;
    page-break-inside: avoid;
  }

  .airc__score--strong {
    border-left-color: #1f7a4d !important;
  }

  .airc__score--weak {
    border-left-color: #b3261e !important;
  }

  .airc__dial {
    padding: 0 !important;
    border: 0 !important;
  }

  .airc__num {
    font-size: 34pt;
    line-height: 1;
    font-weight: 700;
    color: #0d0d0d !important;
  }

  .airc__score--strong .airc__num {
    color: #1f7a4d !important;
  }

  .airc__score--weak .airc__num {
    color: #b3261e !important;
  }

  .airc__outof,
  .airc__host {
    font-size: 8pt;
    color: #6a6c72 !important;
  }

  .airc__band {
    font-size: 13pt;
    font-weight: 700;
  }

  /* The status dot loses its ring when shadows go, and a hollow circle beside
     a verdict looks like a checkbox nobody ticked. */
  .airc__band::before {
    width: 7px;
    height: 7px;
    background: #ffb236 !important;
  }

  .airc__score--strong .airc__band::before {
    background: #1f7a4d !important;
  }

  .airc__score--weak .airc__band::before {
    background: #b3261e !important;
  }

  .airc__line {
    font-size: 9.5pt;
    color: #45474e !important;
  }

  .airc__summary {
    margin: 14px 0 0 !important;
    font-size: 10pt;
  }

  /* ---- sections ---- */

  .airc__group,
  .airc__agents {
    margin-top: 16px !important;
    padding: 0 !important;
    border: 0 !important;
  }

  /* The gold hairline the site uses under a heading, carried onto paper so
     the document and the site look like the same studio made them. */
  .airc__gtitle {
    font-size: 11.5pt;
    font-weight: 700;
    padding-bottom: 4px;
    border-bottom: 1px solid #dedede !important;
    page-break-after: avoid;
  }

  .airc__gblurb {
    margin: 4px 0 8px !important;
    font-size: 8.5pt;
    color: #6a6c72 !important;
    page-break-after: avoid;
  }

  .airc__count {
    padding: 1px 6px !important;
    border: 1px solid #ffb236 !important;
    border-radius: 20px !important;
    font-size: 7.5pt;
    color: #ffb236 !important;
  }

  .airc__item,
  .airc__agent {
    border: 0 !important;
    border-bottom: 1px solid #f4f5ef !important;
    border-radius: 0 !important;
    padding: 6px 0 !important;
    page-break-inside: avoid;
  }

  .airc__list {
    gap: 0 !important;
  }

  .airc__agentlist {
    grid-template-columns: 1fr 1fr !important;
    gap: 0 18px !important;
  }

  .airc__ilabel,
  .airc__agent-name {
    font-size: 9.5pt;
    font-weight: 600;
  }

  .airc__idetail,
  .airc__agent-what {
    font-size: 8.5pt;
    color: #6a6c72 !important;
    line-height: 1.45;
  }

  .airc__mark {
    width: 13px;
    height: 13px;
  }

  /* Colour survives only where it carries meaning. A report in which a pass
     and a failure look identical is not worth the paper. */
  .airc__mark--ok,
  .airc__agent.is-allowed .airc__agent-state {
    color: #1f7a4d !important;
  }

  .airc__mark--no,
  .airc__agent.is-blocked .airc__agent-state {
    color: #b3261e !important;
  }

  .airc__mark--todo,
  .airc__agent.is-partial .airc__agent-state {
    color: #ffb236 !important;
  }

  .airc__agent-state {
    font-size: 7.5pt;
  }

  .airc__agent-dot {
    width: 6px;
    height: 6px;
  }

  .airc__agent.is-allowed .airc__agent-dot {
    background: #1f7a4d !important;
  }

  .airc__agent.is-blocked .airc__agent-dot {
    background: #b3261e !important;
  }

  .airc__agent.is-partial .airc__agent-dot {
    background: #ffb236 !important;
  }

  /* ---- foot of every page ---- */

  .printfoot {
    margin-top: 12mm;
    padding-top: 6px;
    border-top: 1px solid #dedede !important;
    font-size: 7.5pt;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8a8c93 !important;
    text-align: center;
  }

  /* A reveal caught mid-flight would print a half-faded report. */
  .airc__result *,
  .airc__num,
  .airc__result {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   Home — questions we are asked most
   Six answers lifted from /faqs/ and rendered where every crawler looks. Native
   <details>, so an assistant parsing the HTML reads every answer whether or not
   the panel is open, and the section needs no JavaScript at all.
   ========================================================================== */

.home-faq__list {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.home-faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.home-faq__item:hover {
  border-color: color-mix(in srgb, var(--gold) 42%, var(--line));
}

.home-faq__item[open] {
  border-color: color-mix(in srgb, var(--gold) 55%, var(--line));
  box-shadow: 0 10px 30px -18px color-mix(in srgb, var(--gold) 60%, transparent);
}

.home-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  /* Same rule as `.faq-card__q` on /faqs/: question and answer share --fs-body
     and a 1.6 line-height, and are told apart by weight and colour. --fs-h6 is
     13px, which sets the question *below* its own 16px answer. */
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
}

.home-faq__q::-webkit-details-marker {
  display: none;
}

.home-faq__q:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -3px;
}

/* A + that becomes a − — two bars, one of which rotates away. */
.home-faq__mark {
  position: relative;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold-soft);
}

.home-faq__mark::before,
.home-faq__mark::after {
  content: '';
  position: absolute;
  inset: 50% 7px auto;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-deep);
  transform: translateY(-50%);
  transition: transform 0.24s ease;
}

.home-faq__mark::after {
  transform: translateY(-50%) rotate(90deg);
}

.home-faq__item[open] .home-faq__mark::after {
  transform: translateY(-50%) rotate(0deg);
}

.home-faq__a {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: var(--fs-body);
}

.home-faq__a > :first-child {
  margin-top: 0;
}

.home-faq__a > :last-child {
  margin-bottom: 0;
}

.home-faq__more {
  margin: 28px 0 0;
  text-align: center;
}

.home-faq__more a {
  font-weight: 600;
  color: var(--gold-deep);
  text-decoration: none;
}

.home-faq__more a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .home-faq__q {
    padding: 15px 16px;
    gap: 12px;
  }

  .home-faq__a {
    padding: 0 16px 16px;
  }
}

/* ---- The ticker's call to action, pointing at the newest tool ----
   Filled rather than outlined, because it is competing for attention with a
   moving strip of domain names two centimetres to its right. */
.pulse__cta--new {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-inline: 6px 13px;
  border-color: transparent;
  background: var(--grad-gold);
  color: var(--on-gold);
}

.pulse__cta--new:hover,
.pulse__cta--new:focus-visible {
  background: var(--grad-gold);
  border-color: color-mix(in srgb, var(--gold-bright) 70%, transparent);
  filter: brightness(1.06);
}

.pulse__cta-flag {
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  /* Solid ink with light-gold type, the same inversion the pricing switch
     uses. It was a 20% ink wash over the gold fill — rgb(129,88,43) — with ink
     text on top, which measured 2.7:1 at nine pixels. */
  background: var(--brand-burgundy-deep);
  color: var(--gold-bright);
  font-size: var(--fs-tiny);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ==========================================================================
   The seven solo audit tools — /tools/llms-txt-generator/ and siblings

   These sit inside the same ToolsConsole shell as the domain tools, which is
   permanently dark. The domain tools put *light cards* inside that shell —
   .dt__bar and .dt__result are both var(--surface) — and the first version of
   this block ignored that and painted everything on the dark stage instead, so
   the new tools looked like a different product to the four beside them.

   Every surface below therefore uses the same tokens .dt__* uses: --surface,
   --line, --ink, --muted. They flip with the theme, which means these cards go
   white in light mode and #000000 in dark exactly as the older tools do.
   Nothing here is a fixed colour that could end up dark-on-dark.
   ========================================================================== */

.solo {
  position: relative;
  max-width: 100%;
}

/* A soft gold bloom behind the field. Kept faint: on a light card it is a
   highlight, not a spotlight. */
.solo__halo {
  position: absolute;
  inset: -30px -6% auto;
  height: 150px;
  pointer-events: none;
  background: radial-gradient(
    58% 100% at 50% 0%,
    color-mix(in srgb, var(--gold) 16%, transparent),
    transparent 72%
  );
}

.solo__form {
  position: relative;
}

/* Matches .dt__bar — same surface, same gold-tinted border, same focus ring. */
.solo__field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 7px 7px 20px;
  border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line));
  border-radius: var(--radius-pill);
  background: var(--surface);
  transition:
    border-color var(--dur-fast, 0.18s) var(--ease, ease),
    box-shadow var(--dur-fast, 0.18s) var(--ease, ease);
}

.solo__field:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 16%, transparent);
}

.solo__prompt {
  flex: none;
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-deep);
  white-space: nowrap;
}

.solo__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: var(--fs-body);
  font-weight: 600;
}

.solo__input::placeholder {
  color: var(--muted);
  font-weight: 400;
}

.solo__input:focus {
  outline: none;
}

.solo__go {
  flex: none;
  padding: 11px 24px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--grad-gold);
  color: var(--on-gold);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    filter 0.2s ease,
    transform 0.2s ease;
}

.solo__go:hover:not(:disabled) {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.solo__go:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* The hint and the progress line sit on the dark console, not on a card, so
   they take the deep-surface tokens rather than --muted. */
.solo__hint {
  margin: 12px 2px 0;
  font-size: var(--fs-caption);
  color: var(--deep-muted);
}

.solo__running {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  font-size: var(--fs-sm);
  color: var(--gold-bright);
}

.solo__bar {
  flex: none;
  width: 120px;
  height: 3px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--gold) 22%, transparent);
  overflow: hidden;
}

.solo__bar span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 2px;
  background: var(--grad-gold);
  animation: solo-slide 1.15s ease-in-out infinite;
}

@keyframes solo-slide {
  0% {
    transform: translateX(-105%);
  }
  100% {
    transform: translateX(360%);
  }
}

.solo__error {
  margin-top: 20px;
  padding: 14px 18px;
  border: 1px solid color-mix(in srgb, var(--bad) 45%, transparent);
  border-radius: var(--dt-radius);
  background: var(--bad-tint);
  color: var(--bad-ink);
  font-size: var(--fs-sm);
}

/* ---- The result card — the same surface as .dt__result ------------------- */

.solo-result {
  max-width: 100%;
  margin-top: 14px;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid var(--line);
  border-radius: var(--dt-radius);
  background: var(--surface);
  animation: solo-rise 0.45s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

@keyframes solo-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.solo-result__head {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* The grade medallion. Colour carries the verdict, so it never carries it
   alone — the headline beside it says the same thing in words. */
.solo-result__grade {
  flex: none;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: conic-gradient(
    from 180deg,
    var(--gold-bright),
    var(--gold),
    var(--gold-deep),
    var(--gold-bright)
  );
  box-shadow: 0 10px 26px -14px color-mix(in srgb, var(--gold) 75%, transparent);
}

.solo-result__grade span {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--gold-deep);
  font-size: var(--fs-h3);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.solo-result--good .solo-result__grade {
  background: conic-gradient(from 180deg, var(--ok-ink), var(--ok), var(--ok-ink));
}

.solo-result--good .solo-result__grade span {
  color: var(--ok-ink);
}

.solo-result--poor .solo-result__grade {
  background: conic-gradient(from 180deg, var(--bad-ink), var(--bad), var(--bad-ink));
}

.solo-result--poor .solo-result__grade span {
  color: var(--bad-ink);
}

.solo-result__headline h3 {
  margin: 0;
  font-size: var(--fs-h4);
  line-height: 1.35;
  color: var(--ink);
}

.solo-result__meta {
  margin: 6px 0 0;
  font-size: var(--fs-caption);
  color: var(--muted);
}

/* ---- The fact strip ------------------------------------------------------ */

.solo-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  margin: 22px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--line);
  overflow: hidden;
}

.solo-facts__item {
  padding: 13px 15px;
  background: var(--bg-alt);
}

.solo-facts__item dt {
  font-size: var(--fs-nano);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.solo-facts__item dd {
  margin: 5px 0 0;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--gold-deep);
  overflow-wrap: anywhere;
}

/* ---- Check rows ---------------------------------------------------------- */

.solo-group {
  margin-top: 26px;
}

.solo-group__head {
  margin: 0 0 13px;
  padding-bottom: 8px;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 34%, var(--line));
  font-size: var(--fs-caption);
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.solo-rows {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.solo-row {
  display: flex;
  gap: 13px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}

.solo-row--pass {
  border-left-color: var(--ok);
}
.solo-row--warn {
  border-left-color: var(--warn);
}
.solo-row--fail {
  border-left-color: var(--bad);
}
.solo-row--info {
  border-left-color: var(--muted);
}

/* The mark is a shape as well as a colour — tick, bars, cross — so the verdict
   survives greyscale printing and colour blindness. */
.solo-row__mark {
  flex: none;
  position: relative;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  border-radius: 50%;
}

.solo-row--pass .solo-row__mark {
  background: var(--ok-tint);
}
.solo-row--warn .solo-row__mark {
  background: var(--warn-tint);
}
.solo-row--fail .solo-row__mark {
  background: var(--bad-tint);
}
.solo-row--info .solo-row__mark {
  background: color-mix(in srgb, var(--muted) 18%, transparent);
}

.solo-row__mark::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
}

.solo-row--pass .solo-row__mark::before {
  width: 4px;
  height: 8px;
  margin-top: 4px;
  border: solid var(--ok-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(43deg);
}

.solo-row--warn .solo-row__mark::before {
  width: 2px;
  height: 8px;
  margin-top: -3px;
  border-radius: 1px;
  background: var(--warn-ink);
  box-shadow: 0 5px 0 var(--warn-ink);
}

.solo-row--fail .solo-row__mark::before {
  width: 9px;
  height: 2px;
  border-radius: 1px;
  background: var(--bad-ink);
  transform: rotate(45deg);
}

.solo-row--fail .solo-row__mark::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 9px;
  height: 2px;
  border-radius: 1px;
  background: var(--bad-ink);
  transform: rotate(-45deg);
}

.solo-row--info .solo-row__mark::before {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
}

.solo-row__body {
  min-width: 0;
}

.solo-row__label {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink);
}

.solo-row__verdict {
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-nano);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.solo-row--pass .solo-row__verdict {
  background: var(--ok-tint);
  color: var(--ok-ink);
}
.solo-row--warn .solo-row__verdict {
  background: var(--warn-tint);
  color: var(--warn-ink);
}
.solo-row--fail .solo-row__verdict {
  background: var(--bad-tint);
  color: var(--bad-ink);
}
.solo-row--info .solo-row__verdict {
  background: color-mix(in srgb, var(--muted) 16%, transparent);
  color: var(--muted);
}

.solo-row__detail {
  margin: 6px 0 0;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--muted);
}

.solo-row__value {
  display: block;
  margin-top: 9px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--fs-caption);
  color: var(--gold-deep);
  overflow-wrap: anywhere;
}

/* ---- The generated file -------------------------------------------------- */

.solo-file {
  max-width: 100%;
  margin-top: 22px;
  border: 1px solid color-mix(in srgb, var(--gold) 38%, var(--line));
  border-radius: var(--dt-radius);
  overflow: hidden;
}

.solo-file__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: var(--gold-soft);
}

.solo-file__name {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--gold-deep);
}

.solo-file__name em {
  margin-left: 9px;
  font-family: inherit;
  font-style: normal;
  font-size: var(--fs-caption);
  font-weight: 400;
  color: var(--muted);
}

.solo-file__actions {
  display: flex;
  gap: 8px;
}

.solo-file__btn {
  padding: 7px 15px;
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--gold-deep);
  font-family: inherit;
  font-size: var(--fs-caption);
  font-weight: 700;
  cursor: pointer;
  transition:
    filter 0.2s ease,
    background 0.2s ease;
}

.solo-file__btn:hover {
  background: color-mix(in srgb, var(--gold) 14%, var(--surface));
}

.solo-file__btn--primary {
  border-color: transparent;
  background: var(--grad-gold);
  color: var(--on-gold);
}

.solo-file__btn--primary:hover {
  background: var(--grad-gold);
  filter: brightness(1.07);
}

.solo-file__body {
  max-width: 100%;
  max-height: 340px;
  margin: 0;
  padding: 16px;
  overflow: auto;
  overflow-x: auto;
  background: var(--bg-alt);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--fs-caption);
  line-height: 1.65;
  color: var(--ink);
  white-space: pre;
}

/* ---- Caveats ------------------------------------------------------------- */

.solo-notes {
  margin-top: 24px;
  padding: 15px 17px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}

.solo-notes h4 {
  margin: 0 0 9px;
  font-size: var(--fs-nano);
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.solo-notes ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.solo-notes li {
  font-size: var(--fs-caption);
  line-height: 1.65;
  color: var(--muted);
}

/* A grid item defaults to min-width:auto — "never shrink below my content".
   The generated llms.txt is a <pre> that does not wrap, so the console grew to
   1674px inside a 779px column and ran under the sidebar instead of scrolling.
   min-width:0 lets the column win and hands the overflow back to the element
   that knows how to scroll it. */
.tool-page__main,
.tool-page__main > .tools-stage {
  min-width: 0;
}

@media (max-width: 640px) {
  .solo__field {
    flex-wrap: wrap;
    padding: 14px;
    border-radius: var(--radius);
  }

  .solo__prompt {
    width: 100%;
  }

  .solo__input {
    flex: 1 1 140px;
  }

  .solo__go {
    width: 100%;
  }

  .solo-result__head {
    gap: 14px;
  }

  .solo-result__grade {
    width: 56px;
    height: 56px;
  }

  .solo-result__grade span {
    width: 48px;
    height: 48px;
    font-size: var(--fs-h5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .solo__bar span {
    animation: none;
    width: 100%;
  }

  .solo-result {
    animation: none;
  }
}

/* ---- The tool you are currently reading, in the sidebar list -------------
   The list used to hide the current page, which saved a line and cost the
   reader their place. It is shown and marked instead: a gold rail down the
   left, the label in gold-deep, and the row lifted onto --gold-soft so it
   reads as "you are here" rather than as a hover state that got stuck.
   `<span aria-current="page">` rather than a link, so it also has to restate
   the layout the `li a` rules give every other row. */
.tool-page__side li.is-current > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: -12px;
  padding: 9px 10px 9px 9px;
  border-bottom: 1px solid transparent;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: var(--fs-sm);
  font-weight: 800;
}

.tool-page__side li.is-current > span > span[aria-hidden] {
  margin-left: auto;
  color: var(--gold);
}

/* ---- Section headings in the tool-page copy ------------------------------
   --fs-h2 is the site-wide section size and it is right on a page whose
   headings are the structure. Under a tool it is not: the console above is
   the point of the page, and 25px headings on the explanatory copy below
   compete with it. Dropped to --fs-h3, which is what `.home-tools__copy
   .display` already does for the copy beside the console on the home page —
   a scale token, not a new size. */
.tool-page__copy .display,
.tool-page__copy .prose h2 {
  font-size: var(--fs-h3);
}

/* ---- The ticker caption on a phone ---------------------------------------
   One row, not two. The long labels give way to short ones at 560px and the
   caption stops wrapping — "106+ checks · Live · New AI check" fits a 375px
   screen with room to spare, where "106+ searches run · Live · New Check AI
   readiness" needed two.

   Swapped with `display` rather than `content` or `aria-label`: a hidden-by-
   display element leaves the accessibility tree too, so a screen reader hears
   one label per item instead of both. */
.pulse__short {
  display: none;
}

@media (max-width: 560px) {
  .pulse__long {
    display: none;
  }

  .pulse__short {
    display: inline;
  }

  /* Now that it fits, stop it wrapping — a lone "New AI check" dropping to a
     second row is what this was fixing. */
  .pulse__lead {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .pulse__count {
    padding-inline: 10px;
  }

  .pulse__cta--new {
    padding-inline: 5px 11px;
    gap: 6px;
  }

  .pulse__live {
    white-space: nowrap;
  }
}

/* ==========================================================================
   Live chat widget

   On the gold tokens, not a colour of its own. The clone spec suggested a
   green accent; this site has exactly one interactive colour and a second one
   recreates the two-accent problem in color-audit.md. Every surface here uses
   --surface / --line / --ink so the panel follows the theme the way the tool
   consoles do.
   ========================================================================== */

/*
 * A circle, and it owns the corner.
 *
 * Both this and `.to-top` want the same spot. Starting a conversation is the
 * more valuable of the two actions and the corner is where a thumb already
 * rests, so this sits there and back-to-top moves up by its own height plus a
 * gap — see `.to-top`, which carries the offset.
 */
.chatw__bubble {
  position: fixed;
  right: clamp(16px, 3vw, 30px);
  bottom: clamp(16px, 3vw, 30px);
  z-index: 61;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--grad-gold);
  color: var(--on-gold);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 40px -18px color-mix(in srgb, var(--gold) 85%, transparent);
  transition:
    transform 0.24s var(--ease, ease),
    filter 0.2s ease;
}

.chatw__bubble svg {
  width: 19px;
  height: 19px;
  flex: none;
}

.chatw__bubble:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

/* The nudge — a six-second beat, in three layers.
 *
 * Two halo rings leave the button and fade, the button itself lifts and
 * settles, and the glyph swings like a struck bell. They are one gesture: the
 * rings say "over here", the lift carries the weight, the swing gives it life.
 *
 * The whole performance is over inside 1.1s and then nothing happens for five
 * seconds. That ratio is the entire design. A loop that runs continuously is
 * noise you stop seeing by the second minute; a loud, brief thing separated by
 * real silence is still arriving fresh on the tenth repeat. The rest is not
 * dead time, it is what makes the next beat land.
 *
 * Transform and opacity only — both composited, so the beat costs the main
 * thread nothing and cannot stutter the page it is trying to sell.
 */
.chatw__bubble.is-nudging {
  animation: chatw-beat 6s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

/* Hovering means it worked, so it stops asking. `animation: none` rather than
   a paused state, because a paused animation keeps its transform and the
   hover lift would have nothing to move. */
.chatw__bubble.is-nudging:hover {
  animation: none;
}

.chatw__bubble.is-nudging::before,
.chatw__bubble.is-nudging::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--gold-bright);
  border-radius: 50%;
  /* Invisible until its keyframes say otherwise. The animation does not fill
     backwards, so during the trailing ring's 380ms delay the element falls
     back to this base style — and at the default opacity that was a solid gold
     ring sitting around the button for a third of a second before the first
     beat, which read as a rendering fault rather than a flourish. */
  opacity: 0;
  animation: chatw-halo 6s cubic-bezier(0.16, 0.84, 0.44, 1) infinite;
  pointer-events: none;
}

/* The second ring trails the first. One ring is a pulse; two, offset, read as
   something travelling outward. */
.chatw__bubble.is-nudging::after {
  animation-delay: 0.38s;
}

/* Both glyphs occupy the same grid cell so one can fade into the other in
   place. Without this the grid gives them a row each and the button grows. */
.chatw__bubble > svg {
  grid-area: 1 / 1;
}

/* The dots exist at rest but are not shown. Only the beat, or a cursor, brings
   them out. The transition is for the hover swap; while the nudge is running
   its keyframes drive opacity directly and this has nothing to act on. */
.chatw__bubble-dots {
  opacity: 0;
  transition: opacity 0.18s ease;
}

.chatw__bubble-ic {
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.chatw__bubble.is-nudging .chatw__bubble-ic {
  transform-origin: 50% 55%;
  animation: chatw-glyph 6s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

.chatw__bubble.is-nudging .chatw__bubble-dots {
  animation: chatw-dots 6s var(--ease, ease) infinite;
}

/* Each dot on its own short loop rather than a slice of the six-second one.
   A typing indicator has its own tempo — tying it to the master cycle would
   stretch it to whatever the beat interval happens to be, and the whole point
   is that it reads as the rhythm everybody has seen in a messaging app. */
.chatw__bubble.is-nudging .chatw__bubble-dots circle {
  animation: chatw-dot 0.9s ease-in-out infinite;
}

.chatw__bubble.is-nudging .chatw__bubble-dots circle:nth-child(2) {
  animation-delay: 0.15s;
}

.chatw__bubble.is-nudging .chatw__bubble-dots circle:nth-child(3) {
  animation-delay: 0.3s;
}

/* Hover: the glyph becomes a typing indicator.
 *
 * The six-second beat already does this swap once a cycle, on its own schedule.
 * Doing it on hover hands the same gesture to the visitor: point at it and
 * somebody starts typing. It answers the question the button is actually being
 * asked — is there a person behind this — before the click.
 *
 * Held, not timed. The nudge's version fades in and out inside one 6s cycle;
 * this one stays for exactly as long as the cursor does, because it is a
 * response rather than a performance.
 *
 * `@media (hover: hover)` because a touch device fires :hover on tap and then
 * keeps it until you touch something else — the dots would still be bouncing
 * on a button whose panel is already open.
 */
@media (hover: hover) and (pointer: fine) {
  /* Both of these have to beat `.chatw__bubble.is-nudging .chatw__bubble-*`,
     which they tie with on specificity and win on source order. Without the
     `animation: none` the mid-nudge keyframes keep driving opacity and the
     hover swap flickers against them. */
  .chatw__bubble:hover .chatw__bubble-ic {
    animation: none;
    opacity: 0;
    transform: scale(0.86);
  }

  .chatw__bubble:hover .chatw__bubble-dots {
    animation: none;
    opacity: 1;
  }

  .chatw__bubble:hover .chatw__bubble-dots circle {
    animation: chatw-dot 0.9s ease-in-out infinite;
  }

  .chatw__bubble:hover .chatw__bubble-dots circle:nth-child(2) {
    animation-delay: 0.15s;
  }

  .chatw__bubble:hover .chatw__bubble-dots circle:nth-child(3) {
    animation-delay: 0.3s;
  }

  /* The rings stop too. The rule below already says hovering means it worked
     and the button stops asking — but it only ever silenced the button itself,
     so the halo carried on pulsing around a bubble that had been noticed. */
  .chatw__bubble.is-nudging:hover::before,
  .chatw__bubble.is-nudging:hover::after {
    animation: none;
    opacity: 0;
  }
}

@keyframes chatw-beat {
  0%,
  18%,
  100% {
    transform: translateY(0) scale(1);
  }
  3% {
    transform: translateY(-2px) scale(1.08);
  }
  6% {
    transform: translateY(-9px) scale(1.12);
  }
  10% {
    transform: translateY(0) scale(0.96);
  }
  14% {
    transform: translateY(-3px) scale(1.03);
  }
}

/* The speech bubble swings, then hands over.
 *
 * Transform and opacity are listed at different percentages on purpose — CSS
 * interpolates each property only across the keyframes that mention it, so the
 * swing can finish on its own schedule while the fade runs on another. */
@keyframes chatw-glyph {
  0%,
  18%,
  100% {
    transform: rotate(0deg);
  }
  4% {
    transform: rotate(-14deg);
  }
  8% {
    transform: rotate(11deg);
  }
  12% {
    transform: rotate(-6deg);
  }
  15% {
    transform: rotate(3deg);
  }
  0%,
  15% {
    opacity: 1;
  }
  19%,
  46% {
    opacity: 0;
  }
  50%,
  100% {
    opacity: 1;
  }
}

/* The dots hold the middle of the cycle — roughly 1.1s to 2.8s, long enough
   for two full bounces. Any shorter and it is a flicker rather than a message.
   Then the bubble comes back and the button goes quiet for three seconds. */
@keyframes chatw-dots {
  0%,
  15% {
    opacity: 0;
  }
  19%,
  46% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes chatw-dot {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-3px);
  }
}

/* Held at the end state for the rest of the cycle rather than looping back —
   a ring that shrinks home again looks like a mistake. */
@keyframes chatw-halo {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }
  20%,
  100% {
    opacity: 0;
    transform: scale(2.2);
  }
}

.chatw__badge {
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 19px;
  height: 19px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--danger);
  color: #fff;
  font-size: var(--fs-nano);
  font-weight: 800;
  line-height: 19px;
  text-align: center;
}

.chatw {
  position: fixed;
  right: clamp(14px, 3vw, 26px);
  bottom: clamp(14px, 3vw, 26px);
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: min(380px, calc(100vw - 28px));
  max-height: min(620px, calc(100vh - 90px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.5);
  animation: chatw-in 0.28s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

@keyframes chatw-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
}

.chatw__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--grad-gold);
  color: var(--on-gold);
}

.chatw__title {
  margin: 0;
  font-size: var(--fs-body);
  font-weight: 800;
}

.chatw__status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 3px 0 0;
  font-size: var(--fs-caption);
  opacity: 0.85;
}

.chatw__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--on-gold) 45%, transparent);
}

.chatw__dot.is-on {
  background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 30%, transparent);
}

/* The assistant is here but a person is not. Lit, so the label does not sit
   beside a dead light, and gold rather than green so it is not mistaken for
   somebody at the desk. */
.chatw__dot.is-ai {
  background: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 28%, transparent);
}

.chatw__head-actions {
  display: flex;
  gap: 4px;
}

/*
 * Solid white, not a tint of the header.
 *
 * A translucent wash of --on-gold over gold is gold, so the bell and the close
 * were reading as texture rather than controls. White gives the icons a
 * surface of their own and the contrast to be seen at a glance, which is the
 * minimum for a mute button and a way out.
 */
.chatw__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  /*
   * A fixed surface needs a fixed ink.
   *
   * The circle is white in both themes, but --gold-deep flips from #76501f to
   * #e7c27a in dark — pale gold on white, which is close to invisible. Any
   * token that inverts is wrong on a surface that does not, so both colours
   * are literal here. This is the same trap as the print stylesheet: the
   * variable is right nearly everywhere and wrong exactly where the
   * background refuses to move with it.
   */
  background: #fff;
  color: #ffb236;
  cursor: pointer;
  line-height: 1;
  box-shadow: 0 2px 6px -2px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.16s ease,
    color 0.16s ease;
}

.chatw__icon svg {
  width: 17px;
  height: 17px;
}

.chatw__icon:hover {
  transform: translateY(-1px);
  color: #000000;
}

.chatw__icon:active {
  transform: scale(0.94);
}

.chatw__body {
  flex: 1 1 auto;
  min-height: 180px;
  padding: 16px;
  overflow-y: auto;
  background: var(--bg-alt);
}

.chatw__intro {
  margin: 0 0 14px;
  font-size: var(--fs-caption);
  line-height: 1.6;
  color: var(--muted);
}

.chatw__msg {
  max-width: 84%;
  margin-bottom: 10px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

.chatw__msg p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/*
 * A light gold wash, not the full gradient.
 *
 * The solid ramp is a button colour — right on something you press, heavy on
 * something you read. As a message it fought the assistant's reply beside it
 * and dragged the eye to whatever the visitor typed last. Tinted, the two
 * sides read as one conversation and the ink stays --ink, which is where the
 * contrast comes from.
 */
.chatw__msg--visitor {
  margin-left: auto;
  background: var(--gold-soft);
  border: 1px solid color-mix(in srgb, var(--gold) 34%, transparent);
  color: var(--ink);
  border-bottom-right-radius: 4px;
}

.chatw__msg--agent {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}

.chatw__from {
  display: block;
  margin-bottom: 3px;
  font-size: var(--fs-nano);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.chatw__typing {
  display: inline-flex;
  gap: 4px;
  padding: 3px 0;
}

.chatw__typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: chatw-blink 1.1s infinite;
}

.chatw__typing i:nth-child(2) {
  animation-delay: 0.18s;
}
.chatw__typing i:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes chatw-blink {
  0%,
  60%,
  100% {
    opacity: 0.28;
  }
  30% {
    opacity: 1;
  }
}

.chatw__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.chatw__chip {
  padding: 8px 13px;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line));
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--gold-deep);
  font-family: inherit;
  font-size: var(--fs-caption);
  font-weight: 700;
  cursor: pointer;
}

.chatw__chip:hover {
  background: var(--gold-soft);
}

.chatw__detail {
  margin-top: 14px;
  padding: 12px;
  border: 1px dashed color-mix(in srgb, var(--gold) 45%, var(--line));
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.chatw__detail p {
  margin: 0 0 8px;
  font-size: var(--fs-caption);
  color: var(--muted);
}

.chatw__detail input {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--ink);
  font-family: inherit;
  font-size: var(--fs-sm);
}

.chatw__detail button {
  margin-top: 8px;
  padding: 8px 16px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--grad-gold);
  color: var(--on-gold);
  font-family: inherit;
  font-size: var(--fs-caption);
  font-weight: 800;
  cursor: pointer;
}

.chatw__channels {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.chatw__channels a {
  flex: 1;
  padding: 8px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--gold-deep);
  font-size: var(--fs-caption);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.chatw__channels a:hover {
  background: var(--gold-soft);
  border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
}

.chatw__composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.chatw__input {
  flex: 1 1 auto;
  min-height: 40px;
  max-height: 110px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--ink);
  font-family: inherit;
  font-size: var(--fs-sm);
  line-height: 1.5;
  resize: none;
}

.chatw__input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 16%, transparent);
}

.chatw__send {
  flex: none;
  padding: 11px 18px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--grad-gold);
  color: var(--on-gold);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 800;
  cursor: pointer;
}

.chatw__send:disabled {
  opacity: 0.5;
  cursor: default;
}

@media (max-width: 560px) {
  .chatw {
    right: 8px;
    left: 8px;
    bottom: 8px;
    width: auto;
    max-height: calc(100vh - 70px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .chatw,
  .chatw__typing i {
    animation: none;
  }

  /* Every layer of the beat, and the rings stop existing rather than freezing
     mid-flight where they would read as a stray outline. The dots need naming
     too: with the animation cancelled they keep the base opacity, so the rule
     that hides them has to be the one that survives. */
  .chatw__bubble.is-nudging,
  .chatw__bubble.is-nudging svg,
  .chatw__bubble.is-nudging .chatw__bubble-dots circle {
    transform: none;
    animation: none;
  }

  .chatw__bubble.is-nudging .chatw__bubble-dots {
    opacity: 0;
  }

  .chatw__bubble.is-nudging .chatw__bubble-ic {
    opacity: 1;
  }

  .chatw__bubble.is-nudging::before,
  .chatw__bubble.is-nudging::after {
    display: none;
  }

  /* The hover swap survives, the bouncing does not.
     Reduced motion is a request to stop things moving, not to stop things
     responding — the glyph still becomes a typing indicator, it just holds
     still instead of bouncing. Losing the swap entirely would take away the
     answer the hover exists to give. */
  .chatw__bubble:hover .chatw__bubble-ic {
    transform: none;
  }

  .chatw__bubble:hover .chatw__bubble-dots circle {
    animation: none;
  }
}

/* Links inside a bot answer. Underlined rather than colour-only: the agent
   bubble is already a tinted surface and colour alone would not read as a link
   on it. */
.chatw__msg a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chatw__msg--visitor a {
  color: var(--gold-deep);
}

/* ---- The proactive hello --------------------------------------------------
   A card that rises above the chat bubble once a visitor has settled. It sits
   clear of the bubble rather than replacing it, so dismissing the card leaves
   the way in exactly where it was.
   -------------------------------------------------------------------------- */

.chatw-invite {
  position: fixed;
  right: clamp(16px, 3vw, 30px);
  bottom: calc(clamp(16px, 3vw, 30px) + 46px + 12px);
  z-index: 62;
  width: min(320px, calc(100vw - 32px));
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 26px 60px -26px rgba(0, 0, 0, 0.45);
  animation: chatw-invite-in 0.42s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

@keyframes chatw-invite-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
}

/* A tail, so the card reads as coming from the bubble rather than floating. */
.chatw-invite::after {
  content: '';
  position: absolute;
  right: 22px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}

.chatw-invite__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.chatw-invite__close:hover {
  background: var(--bg-alt);
  color: var(--ink);
}

.chatw-invite__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
}

.chatw-invite__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--grad-gold);
  color: var(--on-gold);
  font-size: var(--fs-caption);
  font-weight: 800;
}

.chatw-invite__who {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--ink);
}

.chatw-invite__sub {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 0;
  font-size: var(--fs-caption);
  color: var(--muted);
}

.chatw-invite__msg {
  margin: 0 0 12px;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--ink);
}

.chatw-invite__chips {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

/* Stacked, not wrapped: these are full questions, and a wrapped row turns them
   into fragments that have to be read twice. */
.chatw-invite__chips .chatw__chip {
  width: 100%;
  text-align: left;
}

.chatw-invite__go {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--grad-gold);
  color: var(--on-gold);
  font-family: inherit;
  font-size: var(--fs-caption);
  font-weight: 800;
  cursor: pointer;
}

.chatw-invite__go:hover {
  filter: brightness(1.06);
}

/* The bubble acknowledges the card above it — one slow pulse, not a loop. */
.chatw__bubble.is-inviting {
  animation: chatw-bubble-pop 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

@keyframes chatw-bubble-pop {
  40% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .chatw-invite,
  .chatw__bubble.is-inviting {
    animation: none;
  }
}

/* ---- The visitor thread, shaped like a chat -------------------------------
   The same treatment as the admin side: a date only where the day changes, a
   run from one side grouped under one name, a clock on every bubble, and a
   receipt on the last thing the visitor sent.
   -------------------------------------------------------------------------- */

.chatw__day {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 14px 0 10px;
  color: var(--muted);
  font-size: var(--fs-nano);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.chatw__day::before,
.chatw__day::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* A run from one side tucks together — less noise, and the shape alone says
   who is speaking without repeating the name. */
.chatw__msg.is-grouped {
  margin-top: -5px;
}

.chatw__msg--agent.is-grouped {
  border-top-left-radius: 5px;
}

.chatw__msg--visitor.is-grouped {
  border-top-right-radius: 5px;
}

.chatw__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  font-size: var(--fs-nano);
  opacity: 0.65;
}

.chatw__msg--visitor .chatw__meta {
  justify-content: flex-end;
}

.chatw__seen {
  font-weight: 700;
}

/* Green only once it has actually been read. "Sent" stays neutral, because a
   receipt that looks the same either way is not a receipt. */
.chatw__seen.is-seen {
  color: var(--ok);
}

.chatw__msg--visitor .chatw__seen.is-seen {
  color: var(--ok);
}

.chatw__msg.is-typing {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 13px;
}

.chatw__saved {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--ok) 12%, transparent);
  color: var(--ok);
  font-size: var(--fs-caption);
  font-weight: 600;
}

.chatw__detail input + input {
  margin-top: 7px;
}

/* ---- The hand-over --------------------------------------------------------
   When the assistant gives up, the message has to look different from the
   dozen it has already sent — otherwise it reads as another guess rather than
   as somebody taking over.
   -------------------------------------------------------------------------- */

.chatw__msg.is-escalated {
  border-color: color-mix(in srgb, var(--gold) 55%, transparent);
  background: var(--gold-soft);
  box-shadow: 0 6px 18px -10px color-mix(in srgb, var(--gold) 70%, transparent);
}

.chatw__msg.is-escalated .chatw__from {
  color: var(--gold-deep);
}

/* The message tells them Telegram and WhatsApp are quicker; the row it is
   pointing at should not look like the same quiet strip it was a moment ago. */
.chatw__channels.is-urgent {
  background: var(--gold-soft);
  border-top-color: color-mix(in srgb, var(--gold) 45%, var(--line));
}

.chatw__channels.is-urgent a {
  border-color: color-mix(in srgb, var(--gold) 55%, transparent);
  background: var(--surface);
  font-weight: 800;
}

.chatw__channels.is-urgent a:hover {
  background: var(--grad-gold);
  color: var(--on-gold);
  border-color: transparent;
}

/* ---- Invoice generator -----------------------------------------------------
 *
 * Editor left, document right. The right-hand side is not a preview of the
 * invoice — it IS the invoice, and the print rules at the bottom of this block
 * put that same element on the page. One set of markup, so what somebody
 * approves on screen is what lands in the PDF. */
.inv {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.inv__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.inv__bar-left {
  display: flex;
  gap: 8px;
}

.inv__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 20px;
  align-items: start;
}

/* min-width:0 on both columns: a grid item defaults to min-content, so one
   long unbroken line in the document would push the whole console wider than
   the page rather than wrapping. */
.inv__edit,
.inv-doc {
  min-width: 0;
}

.inv__edit {
  display: grid;
  gap: 14px;
}

.inv-group {
  margin: 0;
  padding: 14px 16px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.inv-group legend {
  padding: 0 6px;
  font-size: var(--fs-micro);
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.inv-field {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
}

.inv-field > span {
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--muted);
}

.inv-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.inv input,
.inv textarea,
.inv select {
  width: 100%;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--ink);
  padding: 9px 12px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background-color 0.15s;
}

.inv textarea {
  resize: vertical;
  line-height: 1.5;
}

.inv input:focus,
.inv textarea:focus,
.inv select:focus {
  outline: 0;
  background: var(--surface);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent);
}

/* One line of the invoice. The description takes the room; the numbers take
   only what they need and stay right-aligned so a column of them reads. */
.inv-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px 90px auto auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.inv-item__qty,
.inv-item__price {
  text-align: right;
}

.inv-item__sum {
  min-width: 78px;
  font-size: var(--fs-sm);
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.inv-item__del,
.inv-saved__del {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  padding: 6px;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.inv-item__del:hover:not(:disabled),
.inv-saved__del:hover {
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 10%, transparent);
}

.inv-item__del:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ---- saved drafts ---- */
.inv-saved {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.inv-saved__empty {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--muted);
}

.inv-saved__list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.inv-saved__row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.inv-saved__open {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.inv-saved__open:hover {
  border-color: var(--gold);
}

.inv-saved__num {
  font-weight: 700;
  color: var(--gold-deep);
}

.inv-saved__who {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inv-saved__amt {
  font-weight: 700;
  white-space: nowrap;
}

/* ---- the document ---- */
.inv-doc {
  padding: 30px 32px 34px;
  background: #fff;
  color: #000000;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 50px -34px rgba(0, 0, 0, 0.5);
  /* Fixed ink on a fixed sheet: this is paper, and paper does not turn dark
     because the site did. Every colour inside is literal for the same reason. */
}

.inv-doc__head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 2px solid #ffb236;
}

.inv-doc__label {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffb236;
}

.inv-doc__number {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 800;
}

.inv-doc__dates {
  text-align: right;
  font-size: 12.5px;
}

.inv-doc__dates p {
  margin: 0 0 3px;
}

.inv-doc__dates span {
  display: inline-block;
  min-width: 46px;
  color: #6a6c72;
}

.inv-doc__parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 22px 0 24px;
}

.inv-doc__party-label {
  margin: 0 0 5px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6a6c72;
}

.inv-doc__party-name {
  margin: 0 0 3px;
  font-size: 14.5px;
  font-weight: 700;
}

.inv-doc__party-line {
  margin: 0 0 2px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #3d3f45;
  white-space: pre-line;
}

.inv-doc__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.inv-doc__table th {
  padding: 8px 6px;
  border-bottom: 1px solid #d4d4d4;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a6c72;
  text-align: left;
}

.inv-doc__table td {
  padding: 10px 6px;
  border-bottom: 1px solid #f4f5ef;
  vertical-align: top;
}

.inv-doc__table .is-num {
  text-align: right;
  white-space: nowrap;
}

.inv-doc__ghost {
  color: #a8a5a0;
}

.inv-doc__totals {
  margin: 18px 0 0;
  margin-left: auto;
  width: min(290px, 100%);
  font-size: 13px;
}

.inv-doc__totals p {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 7px;
}

.inv-doc__totals span {
  color: #6a6c72;
}

.inv-doc__grand {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 2px solid #ffb236;
  font-size: 16px;
}

.inv-doc__grand b {
  color: #ffb236;
}

.inv-doc__foot {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #f4f5ef;
  font-size: 12px;
  line-height: 1.6;
  color: #3d3f45;
}

.inv-doc__foot p {
  margin: 0 0 6px;
}

.inv-doc__notes {
  white-space: pre-line;
}

@media (max-width: 900px) {
  .inv__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .inv-item {
    grid-template-columns: minmax(0, 1fr) 54px 76px auto;
  }

  .inv-item__sum {
    display: none;
  }

  .inv-doc {
    padding: 20px 18px 24px;
  }

  .inv-doc__parties {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ---- printing --------------------------------------------------------------
 *
 * `visibility` rather than `display`, and this is the whole trick. Hiding the
 * page with display:none would take the invoice's ancestors with it and there
 * would be nothing left to print. Visibility hides what is painted while
 * leaving the boxes in place, so the document can be pulled to the top of a
 * page that is still, structurally, all there. */
@media print {
  /*
   * No visibility trick here.
   *
   * The first version hid `body *` and re-showed the document, which reads
   * well and does not work: this stylesheet already carries an inverted print
   * rule that sets `display: none !important` on everything not on the path to
   * a print target, and visibility cannot argue with that. The invoice printed
   * as an entirely blank sheet. `.inv-doc` is named as a print target instead,
   * beside `.dt__result`.
   */
  .inv-doc {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  /* A row split across two sheets is unreadable and looks like a mistake. */
  .inv-doc__table tr,
  .inv-doc__totals,
  .inv-doc__foot {
    break-inside: avoid;
  }

  /* A4 explicitly. Without a size the sheet follows whatever the printer or
     the browser defaults to — US Letter on a machine set up for it — and an
     invoice sized for one paper and printed on the other is either short of
     the footer or has a band of white where the footer should be. This is
     inside the invoice's own print block, so it applies when an invoice is
     what is being printed and leaves every other page alone.
  
     Kept alongside the sheet's own padding, not instead of it: a print dialog
     set to Margins: None discards this rule and keeps the padding. */
  @page {
    size: A4;
    margin: 12mm;
  }
}

/* Sub-items: what a line included, indented beneath it. Unpriced by design —
   see the note on InvoiceItem.details. */
.inv-item {
  grid-template-areas: 'desc qty price sum del' 'detail detail detail detail detail';
}

.inv-item__desc {
  grid-area: desc;
}
.inv-item__qty {
  grid-area: qty;
}
.inv-item__price {
  grid-area: price;
}
.inv-item__sum {
  grid-area: sum;
}
.inv-item__del {
  grid-area: del;
}

.inv-item__more,
.inv-item__details {
  grid-area: detail;
}

.inv-item__more {
  justify-self: start;
  padding: 2px 0 0 2px;
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--fs-caption);
  color: var(--muted);
  cursor: pointer;
}

.inv-item__more:hover {
  color: var(--gold-deep);
  text-decoration: underline;
}

.inv-item__details {
  font-size: var(--fs-caption) !important;
}

.inv-doc__sub {
  margin: 6px 0 0;
  padding-left: 15px;
  list-style: none;
}

.inv-doc__sub li {
  position: relative;
  margin-bottom: 2px;
  font-size: 11.5px;
  line-height: 1.5;
  color: #6a6c72;
}

/* A dash rather than a bullet: these sit inside a table cell under a priced
   line, and a bullet reads as a list of things you are being charged for. */
.inv-doc__sub li::before {
  content: '–';
  position: absolute;
  left: -13px;
}

/* ---- invoice: profile, status, logo, clients ---- */
.inv__bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Three states as one segmented control. A dropdown would hide two thirds of
   the information the row is there to give. */
.inv-status {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}

.inv-status__btn {
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--fs-nano);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.inv-status__btn.is-on {
  background: var(--surface);
  color: var(--gold-deep);
  box-shadow: 0 2px 6px -3px rgba(0, 0, 0, 0.4);
}

/* The logo dropzone.
 *
 * A dashed well rather than a link, because a target you can drop onto has to
 * look like one — the dashes and the arrow are the whole affordance. It grows
 * a gold wash while a file is over it so there is no doubt the drop will land.
 */
.inv-logo {
  position: relative;
  margin-bottom: 14px;
  border: 1.5px dashed var(--line-strong, #d4d4d4);
  border-radius: var(--radius);
  background: var(--bg-alt);
  transition:
    border-color 0.16s,
    background-color 0.16s,
    transform 0.16s;
}

.inv-logo.is-over {
  border-color: var(--gold);
  border-style: solid;
  background: color-mix(in srgb, var(--gold) 12%, var(--bg-alt));
  transform: scale(1.01);
}

.inv-logo.has-logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-style: solid;
  border-color: var(--line);
  background: var(--surface);
}

/* The label IS the target: a click anywhere opens the picker, which means the
   dropzone and the browse button are the same 130px of screen. */
.inv-logo__drop {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 22px 16px;
  cursor: pointer;
  text-align: center;
}

.inv-logo__drop input {
  display: none;
}

.inv-logo__drop svg {
  width: 26px;
  height: 26px;
  color: var(--gold);
}

.inv-logo__title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
}

.inv-logo__title u {
  text-decoration-color: var(--gold);
  text-underline-offset: 2px;
}

.inv-logo__hint {
  font-size: var(--fs-caption);
  color: var(--muted);
}

.inv-logo__img {
  max-width: 132px;
  max-height: 46px;
  object-fit: contain;
}

.inv-logo__acts {
  display: flex;
  gap: 12px;
}

.inv-logo__pick {
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--gold-deep);
  cursor: pointer;
  text-decoration: underline;
}

.inv-logo__pick input {
  display: none;
}

.inv-logo__clear {
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--fs-caption);
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
}

.inv-logo__clear:hover {
  color: var(--danger);
}

.inv-logo__err {
  margin: 0;
  padding: 0 14px 12px;
  font-size: var(--fs-caption);
  color: var(--danger);
}

@media (prefers-reduced-motion: reduce) {
  .inv-logo {
    transition: none;
  }

  .inv-logo.is-over {
    transform: none;
  }
}

.inv-clients {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.inv-clients__label {
  font-size: var(--fs-caption);
  color: var(--muted);
  margin-right: 2px;
}

.inv-clients__chip {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  font: inherit;
  font-size: var(--fs-caption);
  color: var(--ink);
  cursor: pointer;
}

.inv-clients__chip:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
}

.inv-saved__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong, #d4d4d4);
}

.inv-saved__dot.is-sent {
  background: var(--gold);
}
.inv-saved__dot.is-paid {
  background: var(--ok);
}

.inv-saved__open {
  grid-template-columns: auto auto minmax(0, 1fr) auto;
}

.inv-saved__dup {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  padding: 6px;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.inv-saved__dup:hover {
  color: var(--gold-deep);
  background: color-mix(in srgb, var(--gold) 12%, transparent);
}

.inv-doc {
  position: relative;
}

.inv-doc__logo {
  display: block;
  max-width: 150px;
  max-height: 52px;
  object-fit: contain;
  margin-bottom: 12px;
}

/* Rotated, translucent, and behind nothing — it must read as a stamp on the
   paper rather than a banner the tool added. pointer-events off so it can
   never intercept a click on the document beneath. */
.inv-doc__stamp {
  position: absolute;
  top: 34%;
  right: 8%;
  z-index: 1;
  padding: 6px 22px;
  border: 3px solid rgb(31 157 85 / 45%);
  border-radius: 8px;
  color: rgb(31 157 85 / 55%);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-14deg);
  pointer-events: none;
}

/* ---- the invoice bar sits on the dark stage ---------------------------------
 *
 * `.tools-stage.tools-dark` is dark in BOTH themes — it is a lit console, not
 * a surface that follows the site. So the controls on it cannot take their
 * colour from --ink and friends: in light mode those resolve to near-black,
 * and "New invoice" and "Saved" rendered at 1.21:1 against the console. They
 * were not faint, they were two empty pills.
 *
 * --deep-ink and --deep-muted exist for exactly this: light inks that stay
 * light whichever theme is on. (They flip in @media print, which is correct
 * and cannot reach here — the bar is not printed.) */
.tools-dark .inv__bar-left .btn--ghost {
  color: var(--deep-ink);
  border-color: rgb(255 255 255 / 22%);
  background: rgb(255 255 255 / 6%);
}

.tools-dark .inv__bar-left .btn--ghost:hover {
  color: var(--gold-bright);
  border-color: color-mix(in srgb, var(--gold) 55%, transparent);
  background: rgb(255 255 255 / 10%);
}

/* The saved drawer and the status strip are on the console too. */
.tools-dark .inv-status {
  background: rgb(255 255 255 / 7%);
  border-color: rgb(255 255 255 / 16%);
}

.tools-dark .inv-status__btn {
  color: var(--deep-muted);
}

.tools-dark .inv-status__btn.is-on {
  background: var(--surface);
  color: var(--gold-deep);
}

.tools-dark .inv-saved {
  background: rgb(255 255 255 / 5%);
  border-color: rgb(255 255 255 / 14%);
}

.tools-dark .inv-saved__empty {
  color: var(--deep-muted);
}

/* A legend straddles its fieldset's border, so half of it can land outside the
   card's background and on the console behind. Its own background keeps the
   whole word on the card. */
.inv-group legend {
  background: var(--surface);
  border-radius: 4px;
}

/* ---- the invoice follows you down the form ---------------------------------
 *
 * The editor is long — five groups and a line per item — and the document was
 * scrolling away at the top of it, so the half of the screen showing what you
 * are making was empty by the time you reached the totals. It is pinned below
 * the header now, which is the whole point of putting it beside the form
 * rather than under it.
 *
 * A max-height with its own scroll, because an invoice with twenty lines is
 * taller than the viewport and a sticky element taller than its window can
 * never reach its own bottom.
 */
@media (min-width: 901px) {
  .inv-doc {
    position: sticky;
    top: calc(var(--header-h) + 14px);
    max-height: calc(100vh - var(--header-h) - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* Weighted towards the editor. The document was the wider column, which made
   the thing you type into the smaller half of a screen you spend all your time
   typing into.
   
   Inside the same min-width as the sticky rule, and that matters: a bare
   `.inv__grid` here would sit after the max-width:900px rule that stacks the
   two columns on a phone, and a media query adds no specificity — so the
   later plain rule won and a 375px screen tried to show the editor and the
   invoice side by side in 147px each. */
@media (min-width: 901px) {
  .inv__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
}

/* And a size down. It is a preview of a sheet of A4, not the sheet — the PDF
   is made at full size from the same markup whatever this is set to. */
.inv-doc {
  padding: 24px 26px 26px;
}

.inv-doc__number {
  font-size: 19px;
}
.inv-doc__label {
  font-size: 10px;
}
.inv-doc__dates {
  font-size: 11.5px;
}
.inv-doc__parties {
  margin: 18px 0 20px;
}
.inv-doc__party-name {
  font-size: 13px;
}
.inv-doc__party-line {
  font-size: 11.5px;
}
.inv-doc__table {
  font-size: 12px;
}
.inv-doc__table th {
  font-size: 9.5px;
  padding: 7px 5px;
}
.inv-doc__table td {
  padding: 8px 5px;
}
.inv-doc__totals {
  font-size: 12px;
  width: min(260px, 100%);
}
.inv-doc__grand {
  font-size: 14.5px;
}
.inv-doc__foot {
  margin-top: 20px;
  font-size: 11px;
}
.inv-doc__stamp {
  font-size: 25px;
  padding: 5px 18px;
}

@media print {
  /* Pinning and clipping are screen concerns. On paper the document is the
     page: static, so it is in normal flow and can paginate.
     `position: absolute` here — left over from making the preview sticky —
     took the invoice out of flow, its ancestors collapsed to no height, and
     Chrome printed a single empty sheet.
  
     The sheet keeps its own margin, exactly as `.dt` does above and for the
     same reason: `@page` is discarded the moment the print dialog's Margins is
     set to anything but Default. `padding: 0` here was the whole fault — the
     invoice printed with "INVOICE" clipped against the left edge of the paper
     and the issue date cut off the right. Padding on the sheet cannot be
     overridden by a dialog. */
  .inv-doc {
    position: static;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    max-height: none;
    overflow: visible;
    padding: 4mm 14mm 14mm;
  }

  /* Anything that could push the sheet wider than the paper. The ancestors are
     reset by the rule above, but the console keeps its own grid. */
  .inv,
  .inv__grid {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}

/* ---- invoice item rows on a narrow screen ----------------------------------
 *
 * Areas and columns have to be declared together or they disagree. The base
 * rule names five areas — desc, qty, price, sum, del — and the old phone rule
 * gave four columns, so the browser invented a fifth at auto width, the row
 * could not shrink below 334px inside a 301px card, and the entire editor
 * overflowed the screen sideways.
 *
 * Below 620px the row stacks instead of squeezing: the description gets the
 * full width, then the numbers sit under it. Five controls on one line at
 * 300px is not a layout, it is a scroll bar. */
@media (max-width: 620px) {
  .inv-item {
    grid-template-areas:
      'desc desc desc'
      'qty price del'
      'detail detail detail';
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--line);
  }

  .inv-item:last-of-type {
    border-bottom: 0;
  }

  /* Right-aligned numbers only make sense in a column of them. Once they are
     side by side under a description they read better left. */
  .inv-item__qty,
  .inv-item__price {
    text-align: left;
  }

  .inv-item__sum {
    display: none;
  }

  .inv-item__del {
    justify-self: end;
  }
}

/* The bar stacks rather than wrapping into three ragged rows. */
@media (max-width: 620px) {
  .inv__bar {
    display: grid;
    gap: 10px;
  }

  .inv__bar-left,
  .inv__bar-right {
    display: flex;
    gap: 8px;
  }

  .inv__bar-right {
    justify-content: space-between;
    align-items: center;
  }
}

/* Let the editor actually shrink.
 *
 * Two defaults were fighting the layout. A grid item's min-width is `auto`,
 * meaning it refuses to go below its content's minimum — so every group, row
 * and item pushed the column wider than the console rather than wrapping
 * inside it. And a <fieldset> carries its own `min-inline-size: min-content`
 * from the UA stylesheet, which does the same thing again one level down.
 *
 * At 375px the console is 301px and the groups were rendering at 368: the
 * whole form hung off the right of the screen. */
.inv__edit > *,
.inv-group,
.inv-group > *,
.inv-row > *,
.inv-item > *,
.inv-field > * {
  min-width: 0;
}

.inv-group {
  min-inline-size: 0;
}

/* Paired fields go one above the other on a phone.
 *
 * A date input is the reason. At 128px it renders "24/08/2026" plus its own
 * picker icon and quietly clips the year — and it does not report the overflow,
 * so scrollWidth says everything is fine while the screen shows "202€". The
 * pair of number fields comes with it, which is no loss: two full-width
 * targets are easier to hit than two half-width ones. */
@media (max-width: 620px) {
  .inv-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

/* The document's header on a phone.
 *
 * Side by side in 300px, "INV-2026-0004" broke across two lines and each date
 * wrapped its year onto a third. Stacked, the number gets the width it needs
 * and the dates read as one line each. Only the preview changes — the printed
 * page is A4 and never sees this. */
@media (max-width: 620px) {
  .inv-doc__head {
    display: grid;
    gap: 10px;
  }

  .inv-doc__dates {
    display: flex;
    gap: 16px;
    text-align: left;
  }

  .inv-doc__dates p {
    margin: 0;
  }

  .inv-doc__dates span {
    min-width: 0;
    margin-right: 3px;
  }

  .inv-doc__number {
    font-size: 17px;
  }
}

/* The two icon buttons on each saved row sit outside the light card, straight
   on the console — so like the bar above them they need an ink that stays
   light. They were --muted, which is a mid grey chosen for white backgrounds
   and reads as almost nothing on a dark one. */
.tools-dark .inv-saved__dup,
.tools-dark .inv-saved__del {
  color: var(--deep-muted);
}

.tools-dark .inv-saved__dup:hover {
  color: var(--gold-bright);
  background: color-mix(in srgb, var(--gold) 20%, transparent);
}

.tools-dark .inv-saved__del:hover {
  color: #ff8b82;
  background: rgb(255 255 255 / 10%);
}

/* The row card is a light tile on a dark console. Give it a little more lift
   so the whole drawer reads as a list rather than a smudge. */
.tools-dark .inv-saved__open {
  border-color: rgb(255 255 255 / 12%);
}

/* ---- tooltips on the icon-only buttons -------------------------------------
 *
 * An icon with no word beside it is a guess until you hover, and the browser's
 * own `title` takes about a second to appear — long enough that people click
 * to find out instead. This shows on hover and on keyboard focus, straight
 * away.
 *
 * The aria-label stays and is what a screen reader announces; this is purely
 * the sighted equivalent, so it is aria-hidden by being generated content and
 * never read twice. */
[data-tip] {
  position: relative;
}

[data-tip]::after,
[data-tip]::before {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s;
}

[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  z-index: 5;
  transform: translateX(-50%);
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  background: #000000;
  color: #fff;
  font-size: var(--fs-nano);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 6px 16px -8px rgb(0 0 0 / 60%);
}

/* The little pointer. Same colour as the bubble, so the two read as one. */
[data-tip]::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  z-index: 5;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #000000;
}

[data-tip]:hover::after,
[data-tip]:hover::before,
[data-tip]:focus-visible::after,
[data-tip]:focus-visible::before {
  opacity: 1;
}

/* A tooltip that its own row clips is not a tooltip. */
.inv-saved__row,
.inv-item,
.inv-saved__list {
  overflow: visible;
}

/* Touch has no hover, so the tooltip would only ever appear mid-tap and sit
   there afterwards. The aria-label still names the button. */
@media (hover: none) {
  [data-tip]::after,
  [data-tip]::before {
    content: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-tip]::after,
  [data-tip]::before {
    transition: none;
  }
}

/* The one line of the invoice tool that leaves the browser, said where the
   name is typed rather than buried in a policy page. */
.inv-listed {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 4px 0 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  cursor: pointer;
}

.inv-listed input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.inv-listed .sw {
  margin-top: 1px;
}

.inv-listed input:checked + .sw {
  background: var(--grad-gold, linear-gradient(135deg, var(--gold-bright), var(--gold)));
}

.inv-listed input:checked + .sw::after {
  transform: translateX(19px);
}

.inv-listed input:focus-visible + .sw {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 30%, transparent);
}

/* ---- free tools beside the home FAQ ----------------------------------------
 *
 * Somebody reading "what does hosting cost" is comparing us to other people,
 * and a box that checks their own domain answers that better than another
 * paragraph would. */
.home-faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 44px);
  align-items: start;
}

.home-faq__tools {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  padding: 20px 20px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 40px -32px rgba(0, 0, 0, 0.55);
}

.home-faq__tools-title {
  margin: 0;
  font-size: var(--fs-h6);
  font-weight: 800;
}

.home-faq__tools-lede {
  margin: 5px 0 14px;
  font-size: var(--fs-caption);
  line-height: 1.5;
  color: var(--muted);
}

.home-faq__tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-faq__tool {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  /* --fs-sm, not --fs-caption: these are names to read, not captions. */
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  text-decoration: none;
  transition:
    border-color 0.15s,
    background-color 0.15s,
    transform 0.15s;
}

.home-faq__tool:hover {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 8%, var(--surface));
  transform: translateY(-1px);
}

.home-faq__tool-go {
  flex: none;
  color: var(--gold-deep);
  opacity: 0;
  transform: translateX(-3px);
  transition:
    opacity 0.15s,
    transform 0.15s;
}

.home-faq__tool:hover .home-faq__tool-go {
  opacity: 1;
  transform: translateX(0);
}

.home-faq__tools-all {
  margin: 14px 0 0;
  font-size: var(--fs-caption);
  font-weight: 700;
}

.home-faq__tools-all a {
  color: var(--gold-deep);
  text-decoration: none;
}

.home-faq__tools-all a:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .home-faq__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-faq__tools {
    position: static;
  }
}

@media (max-width: 480px) {
  .home-faq__tools-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-faq__tool,
  .home-faq__tool-go {
    transition: none;
  }

  .home-faq__tool:hover {
    transform: none;
  }
}

/* The questions column carries the heading, so the eyebrow, the title, the
   questions and the "all questions" link share one left edge — and the tools
   card lines up with them on the right. */
.home-faq__main {
  min-width: 0;
}

.home-faq__main .section-head {
  margin-bottom: 22px;
  text-align: left;
}

.home-faq__more {
  margin: 18px 0 0;
  text-align: left;
}

.inv-listed__label {
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--ink);
}

/* ---- the tool cards --------------------------------------------------------
 *
 * Twelve cards is a lot of identical rectangles, so the interest is put where
 * it costs nothing to read: a gold hairline that draws itself across the top
 * on hover, an index number that fades up, and the card lifting a single
 * pixel. No shadows growing, no scaling — a grid that jumps around when the
 * pointer crosses it is harder to use, not more alive.
 */
.tool-cards {
  margin-top: clamp(36px, 5vw, 56px);
}

.tool-cards__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tool-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 7px;
  height: 100%;
  padding: 20px 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  overflow: hidden;
  transition:
    border-color 0.18s var(--ease, ease),
    transform 0.18s var(--ease, ease),
    box-shadow 0.18s var(--ease, ease);
}

/* The hairline. Scaled from the left rather than animating width, so it is a
   compositor job and cannot judder on a grid of twelve. */
.tool-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--grad-gold, linear-gradient(90deg, var(--gold-bright), var(--gold)));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s var(--ease, ease);
}

.tool-card:hover,
.tool-card:focus-visible {
  border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
  transform: translateY(-1px);
  box-shadow: 0 16px 34px -26px rgba(0, 0, 0, 0.55);
}

.tool-card:hover::before,
.tool-card:focus-visible::before {
  transform: scaleX(1);
}

.tool-card__no {
  font-size: var(--fs-nano);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--muted);
  /* Was 0.65. At ten pixels that composited to 3.34:1 on the card — the
     opacity, not the token, was doing the failing. --muted on its own is
     already the quiet end of the scale and measures 5.84:1. */
  opacity: 1;
  transition:
    color 0.18s,
    opacity 0.18s;
}

.tool-card:hover .tool-card__no {
  color: var(--gold-deep);
  opacity: 1;
}

/*
 * Sized off `.post-card`, which is this site's card: title --fs-h4, body
 * --fs-sm. These were --fs-h6 and --fs-caption, a full step smaller on both.
 *
 * --fs-h6 is the trap. It reads like the smallest heading and is 13px — below
 * --fs-sm at 14 and barely above --fs-caption at 12 — so "use the heading
 * token" produces text smaller than the paragraph beside it. The FAQ page hit
 * this earlier and carries the same warning.
 */
.tool-card__name {
  font-size: var(--fs-h4);
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
}

.tool-card__lede {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--muted);
}

.tool-card__go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--gold-deep);
}

.tool-card__arrow {
  transition: transform 0.18s var(--ease, ease);
}

.tool-card:hover .tool-card__arrow {
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .tool-card,
  .tool-card::before,
  .tool-card__arrow,
  .tool-card__no {
    transition: none;
  }

  .tool-card:hover {
    transform: none;
  }

  .tool-card:hover::before,
  .tool-card:focus-visible::before {
    transform: scaleX(1);
  }
}

/* ---- Tool finder: search + shelf chips above the card grid ----------------
 *
 * Thirty-one cards is past the point where scanning works, so the grid gets a
 * search field and a row of shelf chips. The field borrows the card's own
 * language rather than inventing a second one: the same gold hairline drawn
 * across the top, this time on focus instead of hover, so the control and the
 * things it filters read as one component.
 */
.tool-finder__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
}

.tool-finder__head h2 {
  margin: 0;
}

.tool-finder__search {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 340px;
  max-width: 460px;
  padding: 6px 8px 6px 12px;
  border: 1px solid color-mix(in srgb, var(--gold) 26%, var(--line));
  border-radius: var(--radius-pill);
  background: var(--surface);
  overflow: visible;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.05),
    0 18px 34px -26px color-mix(in srgb, var(--gold) 55%, transparent);
  transition:
    border-color 0.22s var(--ease, ease),
    box-shadow 0.22s var(--ease, ease),
    transform 0.22s var(--ease, ease);
}

/* A soft gold bloom behind the pill, faint at rest and lit on focus — same
   idea as .solo__halo, so the tool console's "premium" field and this one
   read as the same family instead of two different search boxes. */
.tool-finder__search::before {
  content: '';
  position: absolute;
  inset: -20px -8% auto;
  z-index: -1;
  height: 90px;
  pointer-events: none;
  background: radial-gradient(
    60% 100% at 50% 0%,
    color-mix(in srgb, var(--gold) 20%, transparent),
    transparent 72%
  );
  opacity: 0.45;
  transition: opacity 0.28s var(--ease, ease);
}

.tool-finder__search:focus-within {
  border-color: var(--gold);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.05),
    0 0 0 4px color-mix(in srgb, var(--gold) 15%, transparent),
    0 22px 40px -24px color-mix(in srgb, var(--gold) 60%, transparent);
  transform: translateY(-1px);
}

.tool-finder__search:focus-within::before {
  opacity: 1;
}

/* The magnifier in its own gold badge rather than a bare line icon — the
   detail that makes the field read as designed, not as a default input. */
.tool-finder__search-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad-gold, linear-gradient(135deg, var(--gold-bright), var(--gold)));
  color: var(--on-gold);
  box-shadow: 0 4px 10px -4px color-mix(in srgb, var(--gold) 65%, transparent);
}

.tool-finder__search-icon svg {
  width: 16px;
  height: 16px;
}

.tool-finder__search input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 4px;
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--fs-body, 1rem);
  font-weight: 500;
  color: var(--ink);
  outline: none;
}

.tool-finder__search input::placeholder {
  color: var(--muted);
  font-weight: 400;
}

.tool-finder__search input::-webkit-search-cancel-button {
  display: none;
}

.tool-finder__clear {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-right: 2px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-soft, inherit);
  cursor: pointer;
  opacity: 0.6;
  transition:
    opacity 0.18s var(--ease, ease),
    background 0.18s var(--ease, ease);
}

.tool-finder__clear:hover {
  opacity: 1;
  background: var(--bg-alt);
}

/* ---- Suggestions --------------------------------------------------------- */
.tool-finder__suggest {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 340px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid color-mix(in srgb, var(--gold) 22%, var(--line));
  border-radius: var(--radius);
  /* Opaque on purpose: a translucent panel over a grid of cards is unreadable. */
  background: var(--surface);
  box-shadow: 0 26px 50px -28px rgba(0, 0, 0, 0.6);
}

.tool-finder__suggestion {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: calc(var(--radius) - 4px);
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.tool-finder__suggestion.is-active {
  background: color-mix(in srgb, var(--gold) 12%, transparent);
}

.tool-finder__suggestion-name {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  font-size: var(--fs-sm, 0.95rem);
}

.tool-finder__suggestion-name mark {
  padding: 0;
  border-radius: 2px;
  background: color-mix(in srgb, var(--gold) 34%, transparent);
  color: inherit;
}

.tool-finder__suggestion-lede {
  grid-column: 1;
  overflow: hidden;
  font-size: var(--fs-nano, 0.76rem);
  line-height: 1.45;
  color: var(--ink-soft, inherit);
  opacity: 0.75;
  /* One line: the dropdown is a shortlist, not the card grid. */
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tool-finder__suggestion-group {
  grid-row: 1;
  grid-column: 2;
  align-self: center;
  white-space: nowrap;
  font-size: var(--fs-nano, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-deep, var(--gold));
  opacity: 0.85;
}

.tool-finder__hint {
  display: flex;
  gap: 14px;
  margin-top: 4px;
  padding: 8px 11px 4px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-nano, 0.72rem);
  color: var(--ink-soft, inherit);
  opacity: 0.6;
}

/* ---- Shelf chips --------------------------------------------------------- */
.tool-finder__shelves {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.tool-finder__shelf {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font: inherit;
  font-size: var(--fs-nano, 0.78rem);
  font-weight: 650;
  cursor: pointer;
  transition:
    border-color 0.18s var(--ease, ease),
    background 0.18s var(--ease, ease),
    color 0.18s var(--ease, ease);
}

.tool-finder__shelf:hover {
  border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
}

.tool-finder__shelf.is-active {
  border-color: transparent;
  background: var(--gold-deep, var(--gold));
  color: #fff;
}

.tool-finder__shelf-count {
  padding: 1px 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gold) 16%, transparent);
  font-size: 0.86em;
  font-weight: 700;
}

.tool-finder__shelf.is-active .tool-finder__shelf-count {
  background: rgba(255, 255, 255, 0.22);
}

.tool-finder__reset {
  padding: 6px 4px;
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--fs-nano, 0.78rem);
  color: var(--ink-soft, inherit);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  opacity: 0.75;
}

.tool-finder__reset:hover {
  opacity: 1;
}

.tool-finder .tool-cards__grid {
  margin-top: 20px;
}

.tool-finder__empty {
  margin-top: 24px;
  padding: 28px 22px;
  border: 1px dashed color-mix(in srgb, var(--gold) 35%, var(--line));
  border-radius: var(--radius);
  text-align: center;
}

.tool-finder__empty p {
  margin: 0 0 14px;
  color: var(--ink-soft, inherit);
}

.tool-card__name mark {
  padding: 0;
  border-radius: 2px;
  background: color-mix(in srgb, var(--gold) 30%, transparent);
  color: inherit;
}

@media (max-width: 640px) {
  .tool-finder__search {
    max-width: none;
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tool-finder__search,
  .tool-finder__search::before,
  .tool-finder__shelf,
  .tool-finder__clear {
    transition: none;
  }
}

/* ---- Case study: story, figures, quote -----------------------------------
 *
 * All three sit in the story column under the Overview card, and all three are
 * absent unless somebody has filled them in. Deliberately quieter than the
 * Overview above them: that card earns its gold spine by being the one thing
 * every project has, and repeating the treatment three more times down the
 * page would leave nothing to look at first.
 */

.case-story {
  margin-top: clamp(34px, 4.5vw, 56px);
  display: grid;
  gap: clamp(26px, 3.4vw, 40px);
  /* Numbered by CSS rather than by hand, because the sections are filtered:
     a project with no measured outcome shows two parts, and they have to read
     as 1 and 2 rather than 1 and 3. */
  counter-reset: case-part;
}

.case-story__part {
  counter-increment: case-part;
  position: relative;
  padding-left: clamp(38px, 4.4vw, 54px);
}

/* The numeral, in the margin. Outside the text block so the paragraph keeps a
   straight left edge — a number indented into the copy would make each section
   start at a different place down the page. */
.case-story__part::before {
  content: counter(case-part);
  position: absolute;
  left: 0;
  top: -0.08em;
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1;
  color: color-mix(in srgb, var(--gold) 45%, transparent);
  font-variant-numeric: tabular-nums;
}

.case-story__heading {
  font-size: var(--fs-h4);
  margin: 0 0 8px;
}

.case-story__text {
  margin: 0;
  font-size: var(--fs-body);
  color: var(--ink);
  /* Authored in a textarea, so the line breaks somebody typed are the ones
     they meant. Without this a two-paragraph answer arrives as one block. */
  white-space: pre-line;
}

/* ---- Figures ---- */

.case-results {
  margin-top: clamp(34px, 4.5vw, 56px);
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: clamp(16px, 1.8vw, 22px);
  background: var(--bg-alt);
  border: 1px solid var(--line);
}

.case-results__heading {
  font-size: var(--fs-h5);
  margin: 0 0 clamp(16px, 2vw, 22px);
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* auto-fit rather than a fixed count: two figures should not leave two empty
   columns, and four should not be squeezed into three. */
.case-results__grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}

/* Flex only so `order` can lift the figure above its label. The markup keeps
   <dt> before <dd> for anything reading the document in order — the label is
   what makes the number mean something, and a screen reader hearing "42%"
   first has nothing to attach it to. */
.case-result {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.case-result__value {
  order: -1;
  margin: 0;
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.05;
  color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.case-result__label {
  margin-top: 6px;
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* ---- Client quote ---- */

.case-quote {
  margin: clamp(34px, 4.5vw, 56px) 0 0;
  padding-left: clamp(20px, 2.4vw, 30px);
  border-left: 3px solid var(--gold);
}

.case-quote__text {
  margin: 0;
  font-size: var(--fs-lede);
  line-height: 1.5;
  color: var(--ink);
}

.case-quote__by {
  margin-top: 12px;
  font-size: var(--fs-sm);
  color: var(--muted);
}

.case-quote__by::before {
  content: '— ';
}

@media (max-width: 640px) {
  /* The numeral moves above the heading rather than shrinking the text column
     to fit beside it — at this width the indent costs more than it gives. */
  .case-story__part {
    padding-left: 0;
  }

  .case-story__part::before {
    position: static;
    display: block;
    margin-bottom: 4px;
  }
}

/* ---- Testimonial avatar: the photo state --------------------------------
 *
 * `.testi-avatar` already sizes and rounds the circle and centres the initials
 * inside it; this only handles the case where a photo fills it instead. The
 * size modifiers (--sm, --lg) keep working because nothing here sets a size.
 */

.testi-avatar--photo {
  /* The initials are centred text; an image is not, and without this the
     photo sits on the text baseline with a sliver of the circle showing
     underneath it. */
  padding: 0;
  overflow: hidden;
}

.testi-avatar--photo img {
  width: 100%;
  height: 100%;
  /* Cover, not contain: these are uploaded by hand at whatever crop the
     client sent, and letterboxing a portrait inside a circle looks like a
     mistake where a tight crop looks like a decision. */
  object-fit: cover;
  object-position: center;
  display: block;
}

/* The last-resort silhouette. Sized against the circle rather than given
   fixed pixels, so it follows --sm and --lg like the initials do. */
.testi-avatar--anon svg {
  width: 62%;
  height: 62%;
  opacity: 0.55;
}

/* ---- Chat widget: ending a conversation ----------------------------------
 *
 * Three states at the foot of the thread: a quiet way out, an inline
 * confirmation, and a farewell that replaces the conversation.
 *
 * The whole block is deliberately the least prominent thing in the panel until
 * it is touched. Somebody who wants to keep talking should never notice it;
 * somebody who has finished is already looking at the bottom of the thread.
 */

.chatw__end {
  display: flex;
  justify-content: center;
  padding: 16px 0 4px;
}

/* A text button, not a button-looking button. Ending a chat is not the action
   this panel is for, and giving it a filled pill would put it in competition
   with Send. */
.chatw__end-btn {
  padding: 7px 14px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font-size: var(--fs-caption);
  font-family: inherit;
  cursor: pointer;
  transition:
    color 0.16s ease,
    background-color 0.16s ease;
}

.chatw__end-btn:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}

.chatw__end-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* The confirmation. A card rather than a row of buttons, because it is asking
   a question and the sentence is the point — the consequence is the part
   people need before they choose. */
.chatw__end-ask {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  animation: chatw-end-in 0.18s var(--ease, ease) both;
}

@keyframes chatw-end-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

.chatw__end-copy {
  margin: 0 0 12px;
  font-size: var(--fs-caption);
  line-height: 1.45;
  color: var(--muted);
}

.chatw__end-row {
  display: flex;
  gap: 8px;
}

.chatw__end-no,
.chatw__end-yes {
  flex: 1;
  padding: 9px 12px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-caption);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition:
    filter 0.16s ease,
    background-color 0.16s ease;
}

/* "Keep chatting" is the safe choice, so it is the solid one. The destructive
   option gets the outline — the opposite of the usual arrangement, and correct
   here: the default should be the one that loses nothing. */
.chatw__end-no {
  border: 0;
  background: var(--grad-gold);
  color: var(--on-gold);
}

.chatw__end-yes {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}

.chatw__end-no:hover {
  filter: brightness(1.05);
}

.chatw__end-yes:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 5%, transparent);
}

.chatw__end-no:focus-visible,
.chatw__end-yes:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---- the farewell ---- */

.chatw__done {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 34px 18px 26px;
  animation: chatw-end-in 0.26s var(--ease, ease) both;
}

/* A tick that draws itself. One short gesture, once — it marks the end of
   something rather than asking for attention. */
.chatw__done-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 50%;
  color: var(--on-gold);
  background: var(--grad-gold);
  box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--gold) 70%, transparent);
}

.chatw__done-mark svg {
  width: 22px;
  height: 22px;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: chatw-tick 0.42s var(--ease, ease) 0.16s forwards;
}

@keyframes chatw-tick {
  to {
    stroke-dashoffset: 0;
  }
}

.chatw__done-title {
  margin: 0;
  font-size: var(--fs-h5);
  font-weight: 700;
  color: var(--ink);
}

.chatw__done-copy {
  margin: 6px 0 18px;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--muted);
  max-width: 30ch;
}

.chatw__done-new {
  padding: 11px 22px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--grad-gold);
  color: var(--on-gold);
  font-size: var(--fs-sm);
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    filter 0.16s ease,
    transform 0.16s ease;
}

.chatw__done-new:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.chatw__done-new:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  /* The tick still ends drawn — it is the state that carries the meaning, not
     the drawing of it. */
  .chatw__done,
  .chatw__end-ask {
    animation: none;
  }

  .chatw__done-mark svg {
    animation: none;
    stroke-dashoffset: 0;
  }

  .chatw__done-new:hover {
    transform: none;
  }
}

/* ---- Chat widget: the rating -------------------------------------------- */

.chatw__rate {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 18px 22px;
  animation: chatw-end-in 0.26s var(--ease, ease) both;
}

.chatw__rate-title {
  margin: 0 0 14px;
  font-size: var(--fs-h5);
  font-weight: 700;
  color: var(--ink);
}

.chatw__stars {
  display: flex;
  gap: 4px;
}

/* Generous hit areas. Five targets in a row is where a rating is most often
   mis-tapped, and a mis-tap here is a wrong score rather than a wrong page. */
.chatw__star {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--line);
  cursor: pointer;
  transition:
    color 0.14s ease,
    transform 0.14s ease;
}

.chatw__star svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* Hover lights every star up to the one under the pointer, so the gesture
   reads as "this many" rather than "this one". */
.chatw__star.is-on {
  color: var(--gold);
}

.chatw__star:hover {
  transform: scale(1.12);
}

.chatw__star:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.chatw__rate-note {
  width: 100%;
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: var(--fs-caption);
  line-height: 1.45;
  resize: none;
  animation: chatw-end-in 0.2s var(--ease, ease) both;
}

.chatw__rate-note:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: transparent;
}

.chatw__rate-send {
  margin-top: 12px;
  padding: 11px 22px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--grad-gold);
  color: var(--on-gold);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.16s ease;
}

.chatw__rate-send:hover:not(:disabled) {
  filter: brightness(1.05);
}

.chatw__rate-send:disabled {
  /* Not opacity. A disabled button already takes the browser's greyed colour,
     and multiplying that by an opacity is how a label becomes unreadable. */
  cursor: default;
  filter: saturate(0.4);
}

/* Skipping is a real option, not a punishment. Quiet, but the same size as
   anything else you can tap — a survey that is hard to leave gets answered
   dishonestly by the people who wanted to leave. */
.chatw__rate-skip {
  margin-top: 10px;
  padding: 8px 14px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: var(--fs-caption);
  cursor: pointer;
  transition: color 0.16s ease;
}

.chatw__rate-skip:hover {
  color: var(--ink);
}

.chatw__rate-skip:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .chatw__rate,
  .chatw__rate-note {
    animation: none;
  }

  .chatw__star:hover {
    transform: none;
  }
}

/* The verdict on an address, under the field that caused it. */
.chatw__detail-err {
  margin: 0;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  /* Not --danger on a tint of itself: this panel is dark in both themes, and
     the site's red on a dark surface is the pairing that fails to read. A warm
     light tone sits on the burgundy and stays legible in either mode. */
  background: color-mix(in srgb, #f0b8a8 18%, transparent);
  color: #ffd9cc;
  font-size: var(--fs-caption);
  line-height: 1.4;
}

/* ---- Chat channels: icon buttons ----------------------------------------
 *
 * Four marks in one row rather than four words. Words here read as a paragraph
 * to be parsed; icons read as a set of choices, and the row stops competing
 * with the message above it.
 *
 * The names live in `title` and `aria-label`, so hovering names the account
 * and a screen reader announces it. That matters most for the two Telegram
 * buttons: the icons are identical and the handle is the only thing that tells
 * them apart.
 */
.chatw__channels {
  justify-content: center;
  gap: 10px;
}

.chatw__channels a {
  /* A fixed square, not `flex: 1`. Four stretched pills containing one 15px
     glyph each is mostly empty pill. */
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease,
    transform 0.16s ease;
}

.chatw__channels a svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  opacity: 0.9;
}

.chatw__channels a:hover {
  border-color: color-mix(in srgb, var(--gold) 60%, var(--line));
  background: color-mix(in srgb, var(--gold) 10%, transparent);
  transform: translateY(-1px);
}

.chatw__channels a:hover svg {
  opacity: 1;
}

.chatw__channels a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .chatw__channels a:hover {
    transform: none;
  }
}

/* ---- The chat channel tooltip -------------------------------------------
 *
 * Scoped to this row rather than restyling `[data-tip]` everywhere: the site's
 * plain dark bubble is right on a white tool page, and would disappear against
 * the burgundy of this panel. Here it gets the gold.
 *
 * It also arrives rather than appearing. The base tooltip cross-fades opacity,
 * which on a 42px target reads as a flicker when the pointer crosses the row;
 * a short rise with a slight overshoot makes it feel attached to the button it
 * belongs to, and the 60ms delay means sweeping past four icons does not fire
 * four bubbles.
 */
.chatw__channels [data-tip]::after,
.chatw__channels [data-tip]::before {
  opacity: 0;
}

.chatw__channels [data-tip]:hover::after,
.chatw__channels [data-tip]:hover::before,
.chatw__channels [data-tip]:focus-visible::after,
.chatw__channels [data-tip]:focus-visible::before {
  opacity: 1;
}

.chatw__channels [data-tip]::after {
  /* Declared here as well as in the base rule.
   *
   * Measured on the live panel, `content` resolved to `none` on these anchors,
   * so the pseudo-element was never generated and no amount of styling it
   * could show anything — the button lit up on hover and nothing else
   * happened. Restating it costs one line and removes the dependency on
   * whatever was suppressing the inherited one. */
  content: attr(data-tip);
  bottom: calc(100% + 10px);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--grad-gold);
  color: var(--on-gold);
  font-size: var(--fs-nano);
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow:
    0 10px 22px -10px rgba(0, 0, 0, 0.9),
    0 0 0 1px color-mix(in srgb, var(--gold-bright) 45%, transparent);
  transform: translateX(-50%) translateY(4px) scale(0.94);
  transform-origin: 50% 100%;
  transition:
    opacity 0.14s ease,
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: 60ms;
}

/* The pointer takes the gold too, and the flat end of the gradient so the two
   read as one shape rather than a bubble with a differently-coloured tip. */
.chatw__channels [data-tip]::before {
  content: '';
  position: absolute;
  left: 50%;
  z-index: 5;
  border: 5px solid transparent;
  pointer-events: none;
  bottom: calc(100% + 4px);
  border-top-color: var(--gold);
  transform: translateX(-50%) translateY(4px);
  transition:
    opacity 0.14s ease,
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: 60ms;
}

.chatw__channels [data-tip]:hover::after,
.chatw__channels [data-tip]:focus-visible::after {
  transform: translateX(-50%) translateY(0) scale(1);
}

.chatw__channels [data-tip]:hover::before,
.chatw__channels [data-tip]:focus-visible::before {
  transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  /* Still appears, just does not travel. The bubble is the information; the
     rise is decoration. */
  .chatw__channels [data-tip]::after,
  .chatw__channels [data-tip]::before {
    transition: opacity 0.14s ease;
    transform: translateX(-50%);
  }

  .chatw__channels [data-tip]:hover::after,
  .chatw__channels [data-tip]:focus-visible::after {
    transform: translateX(-50%);
  }
}

/* ============================================================
   Booking console (/book)
   Angkor Design's own face on the shared appointments calendar.
   Three stages side by side on desktop so a visitor sees the whole
   journey at once; one at a time on phones. Gold system throughout —
   the calendar lives on hostingcambodia.com but must not look it.
   ============================================================ */

.bk {
  display: grid;
  gap: 14px;
}

/* --- step rail --- */
.bk__rail {
  display: flex;
  align-items: center;
  gap: 2px;
  align-self: flex-start;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.bk__rail-link {
  width: 18px;
  height: 1px;
  background: var(--line-strong);
}
.bk__step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
.bk__step:hover:not(:disabled) {
  background: var(--gold-soft);
}
.bk__step.is-on {
  background: var(--gold-deep);
  color: #fff;
}
.bk__step.is-locked {
  color: var(--line-strong);
  cursor: default;
}
.bk__step-n {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-alt);
  font-size: 10px;
  font-weight: 700;
}
.bk__step.is-on .bk__step-n {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

/* --- console shell --- */
.bk__console {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  overflow: hidden;
}
.bk__panes {
  display: grid;
}
@media (min-width: 1024px) {
  .bk__panes {
    grid-template-columns: 300px minmax(0, 1fr) 330px;
  }
}

.bk__pane {
  display: none;
  border-top: 1px solid var(--line);
}
.bk__pane.is-active {
  display: block;
}
.bk__pane:first-child {
  border-top: 0;
}
@media (min-width: 1024px) {
  .bk__pane {
    display: block;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
  .bk__pane:first-child {
    border-left: 0;
  }
}
.bk__pane-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-tint);
}
.bk__pane-head h3 {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.bk__pane-head span {
  font-size: 11px;
  color: var(--muted);
}
.bk__pane-body {
  display: grid;
  gap: 10px;
  padding: 16px;
  max-height: min(58vh, 460px);
  overflow-y: auto;
}

/* --- service cards --- */
.bk-type {
  display: flex;
  gap: 10px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
.bk-type:hover {
  border-color: var(--gold);
}
.bk-type.is-on {
  border-color: var(--gold-deep);
  background: var(--gold-soft);
  box-shadow: 0 6px 18px -12px rgba(255, 178, 54, 0.5);
}
.bk-type__tick {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  font-size: 11px;
  color: #fff;
}
.bk-type.is-on .bk-type__tick {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
}
.bk-type__body {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.bk-type__body strong {
  font-size: 14px;
  color: var(--ink);
}
.bk-type__body em {
  font-style: normal;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}
.bk-type__meta {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold-deep);
}

/* --- day strip + times --- */
.bk-days {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
}
.bk-day {
  flex: 0 0 auto;
  width: 60px;
  scroll-snap-align: start;
  cursor: pointer;
  display: grid;
  gap: 1px;
  justify-items: center;
  padding: 7px 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink-soft);
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.bk-day:hover {
  border-color: var(--gold);
}
.bk-day.is-on {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  color: #fff;
}
.bk-day__n {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
}
.bk-day strong {
  font-size: 17px;
  line-height: 1.1;
}
.bk-day__m {
  font-size: 9.5px;
  opacity: 0.75;
}
.bk-day__c {
  margin-top: 2px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: 9.5px;
  font-weight: 700;
}
.bk-day.is-on .bk-day__c {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.bk-day--more {
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  border-style: dashed;
}

.bk-times {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
@media (min-width: 640px) {
  .bk-times {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1280px) {
  .bk-times {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
.bk-time {
  padding: 9px 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.18s;
}
.bk-time:hover {
  border-color: var(--gold);
}
.bk-time.is-on {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  color: #fff;
}

/* --- dock --- */
.bk__dock {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: var(--bg-tint);
  position: sticky;
  bottom: 0;
}
.bk__dock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.bk__summary {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.bk__summary strong {
  font-size: 14px;
  color: var(--ink);
}
.bk__summary span {
  font-size: 12px;
  color: var(--muted);
}
.bk__error {
  margin: 0 0 9px;
  padding: 8px 11px;
  border-radius: 11px;
  background: var(--bad-tint);
  color: var(--bad-ink);
  font-size: 13px;
  font-weight: 600;
}

/* The shared .field reserves 46px for a leading icon. These have none, so pull the text
   and the floating label back to a normal inset. */
.field--plain .field__input {
  padding-left: 16px;
}
.field--plain .field__label {
  left: 16px;
}

/* --- states --- */
.bk-locked {
  margin: 26px 0;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--line-strong);
}
.bk-note {
  margin: 0;
  font-size: 11.5px;
  color: var(--muted);
}
.bk-foot {
  margin: 0;
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
}

.bk-panel {
  padding: 40px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}
.bk-panel__title {
  margin: 0;
  font-size: 22px;
  color: var(--ink);
}
.bk-panel__text {
  margin: 8px 0 0;
  color: var(--muted);
}

/* --- confirmation --- */
.bk-done {
  max-width: 520px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
}
.bk-done__head {
  padding: 30px 24px;
  text-align: center;
  color: var(--deep-ink);
  background: linear-gradient(135deg, var(--brand-burgundy-mid), var(--brand-burgundy));
}
.bk-done__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 22px;
}
.bk-done__title {
  margin: 12px 0 0;
  font-size: 24px;
  /* The panel sets a light colour for this burgundy surface, and the global
     h1–h6 rule takes it straight back with var(--ink) — dark ink on dark
     burgundy, unreadable in light mode and legible in dark only by accident.
     A heading on a fixed deep surface has to name its own colour, the way
     .cta-band h2 does. */
  color: var(--deep-ink);
}
.bk-done__msg {
  margin: 6px 0 0;
  font-size: 13.5px;
  opacity: 0.9;
}
.bk-done__body {
  display: grid;
  gap: 12px;
  padding: 22px;
}
.bk-done__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.bk-done__cell {
  display: grid;
  gap: 2px;
  padding: 12px;
  border-radius: 14px;
  background: var(--bg-tint);
}
.bk-done__cell span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.bk-done__cell strong {
  font-size: 14px;
  color: var(--ink);
}
.bk-done__cal {
  justify-content: center;
}

/* ==========================================================================
   Live chat — emoji and pictures
   The composer used to be one flex row. It is now a column: attachment
   preview, emoji tray and the input row stack inside it, so the row keeps its
   original alignment and nothing above it disturbs the send button.
   ========================================================================== */

.chatw__composer {
  flex-direction: column;
  align-items: stretch;
}

.chatw__row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

/* Emoji and attach: quiet until wanted. They sit beside the input at the same
   height as the send button so the row reads as one control. */
.chatw__tool {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.chatw__tool svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chatw__tool:hover,
.chatw__tool.is-on {
  background: var(--gold-soft);
  color: var(--gold-deep);
}

/* ---- the emoji tray ---- */

.chatw__emoji {
  max-height: 188px;
  overflow-y: auto;
  margin-bottom: 10px;
  padding: 10px 4px 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}

.chatw__emoji-group + .chatw__emoji-group {
  margin-top: 10px;
}

.chatw__emoji-label {
  display: block;
  padding: 0 8px 4px;
  color: var(--muted);
  font-size: var(--fs-micro);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chatw__emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
}

.chatw__emoji-grid button {
  padding: 4px 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 20px;
  line-height: 1.35;
  cursor: pointer;
}

.chatw__emoji-grid button:hover {
  background: var(--gold-soft);
}

/* ---- the picture waiting to be sent ---- */

.chatw__attach {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}

.chatw__attach img {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.chatw__attach span {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--muted);
  font-size: var(--fs-micro);
  line-height: 1.4;
}

.chatw__attach strong {
  display: block;
  color: var(--ink);
  font-size: var(--fs-caption);
}

.chatw__attach-x {
  flex: none;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}

.chatw__attach-x:hover {
  background: var(--surface);
  color: var(--ink);
}

.chatw__attach-err {
  margin: 0 0 10px;
  color: var(--danger);
  font-size: var(--fs-micro);
}

/* ---- a picture in the thread ---- */

.chatw__photo {
  display: block;
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.chatw__photo img {
  display: block;
  /* The thumbnail is 260px wide; this keeps the bubble tidy without ever
     scaling it past what was actually fetched. */
  max-width: min(200px, 100%);
  height: auto;
  border-radius: var(--radius-sm);
}

/* The note that replaces a picture once the file has gone. It reads as a
   status line rather than an error, because nothing went wrong. */
.chatw__photo-gone {
  display: block;
  margin-bottom: 4px;
  padding: 8px 10px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: var(--fs-micro);
  line-height: 1.45;
}

/* ---- full size ---- */

.chatw__lightbox {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgb(0 0 0 / 0.82);
  cursor: zoom-out;
}

.chatw__lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.chatw__lightbox button {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  /* Fixed dark scrim underneath, so this pair must not follow the theme —
     white on black stays white on black in dark mode. */
  background: rgb(255 255 255 / 0.14);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 420px) {
  .chatw__emoji-grid {
    grid-template-columns: repeat(7, 1fr);
  }
}

/* ==========================================================================
   Live chat — tool tooltips and the Hosting Cambodia line
   ========================================================================== */

/* The tooltip is one pseudo-element driven by `data-tip`, so a button only has
   to declare its text. Positioned above the button and left-aligned to it: the
   composer sits at the bottom of the panel, so upward is the only direction
   with room, and the panel clips anything that leaves it. */
.chatw__tool {
  position: relative;
}

.chatw__tool[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  z-index: 4;
  width: max-content;
  max-width: min(260px, calc(100vw - 72px));
  padding: 11px 13px;
  border-radius: 12px;
  /* Inverted against the thread it floats over: a dark chip on a light page,
     a light chip on a dark one. Following the surface instead would give a
     dark chip on a dark thread, which is where a tooltip stops reading as a
     layer above and starts reading as part of the panel. */
  background: #1c1c1e;
  color: #fff;
  font-size: var(--fs-micro);
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transform: translateY(3px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0.16s;
  pointer-events: none;
  box-shadow: 0 12px 30px -12px rgb(0 0 0 / 0.55);
}

.chatw__tool[data-tip]:hover::after,
.chatw__tool[data-tip]:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* A touch screen has no hover, and a tooltip that appears on tap would fight
   the file picker it is describing. */
@media (hover: none) {
  .chatw__tool[data-tip]::after {
    display: none;
  }
}

/* ---- powered by ---- */

.chatw__by {
  margin: 0;
  padding: 0 12px 11px;
  background: var(--surface);
  color: var(--muted);
  font-size: var(--fs-micro);
  font-weight: 600;
  text-align: center;
}

/* Only the name is clickable — the credit itself is just a line of text. */
.chatw__by a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.chatw__by a:hover,
.chatw__by a:focus-visible {
  /* No underline: it is a credit line, not a call to action, and underlining
     it on hover makes it compete with the composer directly above. */
  color: var(--gold-deep);
}

/*
 * Dark mode, for both halves.
 *
 * The gold tokens all lighten in dark mode — `--gold-deep` becomes #e7c27a,
 * which is the brightest thing in the panel and pulls the eye off the reply
 * box. This uses the light mode's base gold instead: still gold, still legible
 * on the dark surface at about 5:1, but it sits back where a credit line
 * belongs.
 */
:root[data-theme='dark'] .chatw__tool[data-tip]::after,
:root[data-theme='auto'][data-night='1'] .chatw__tool[data-tip]::after {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 12px 30px -12px rgb(0 0 0 / 0.75);
}

:root[data-theme='dark'] .chatw__by a:hover,
:root[data-theme='dark'] .chatw__by a:focus-visible,
:root[data-theme='auto'][data-night='1'] .chatw__by a:hover,
:root[data-theme='auto'][data-night='1'] .chatw__by a:focus-visible {
  color: #ffb236;
}

/* ==========================================================================
   Live chat — buttons inside the message box
   On their own line the two icons and a text Send button were 172px of a
   354px row, leaving 156px to type in. Moving them inside the pill and
   making Send an icon gives that space back without a second row.
   ========================================================================== */

.chatw__row {
  align-items: flex-end;
  gap: 8px;
}

/* The pill: it carries the border, background and focus ring that used to be
   on the textarea, so the buttons sit inside the same shape as the text. */
.chatw__field {
  display: flex;
  align-items: flex-end;
  flex: 1 1 auto;
  min-width: 0;
  gap: 2px;
  padding: 4px 6px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg-alt);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.chatw__field:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

/* Stripped back to text: the pill around it is the input now. */
.chatw__composer .chatw__input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 34px;
  max-height: 104px;
  padding: 7px 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  /* Past the cap it scrolls; below it the height is set as the visitor types
     so the whole message stays visible. */
  overflow-y: auto;
}

.chatw__composer .chatw__input:focus {
  outline: none;
  border: 0;
  box-shadow: none;
}

/* Smaller inside the pill, and round so the hover wash reads as a button
   rather than as a panel inside the field. */
.chatw__field .chatw__tool {
  width: 32px;
  height: 32px;
  margin-bottom: 1px;
}

.chatw__field .chatw__tool svg {
  width: 19px;
  height: 19px;
}

/* Send is an icon now. The word was 72px of a 354px row for something every
   chat window on a phone already draws as a paper plane. */
.chatw__send {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
}

.chatw__send svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  /* Nudged off-centre: a paper plane's visual weight sits low and left of the
     box that contains it, so a mathematically centred one looks high. */
  transform: translate(-1px, 1px);
}

/* The tooltip is anchored to a button that now sits inside the pill, a little
   further from the panel's left edge — still clear of the right edge at the
   narrowest the panel gets. */
.chatw__tool[data-tip]::after {
  bottom: calc(100% + 12px);
  left: -4px;
}

/* ==========================================================================
   Free tools — the browser-only consoles
   These five do their work on the visitor's machine, so they need controls
   the server-side audits never did: a drop target, sliders, previews. They
   sit inside the same `.solo` frame and reuse its result vocabulary
   (`solo-group`, `solo-facts`, `solo-notes`) so a visitor moving between
   tools is never learning a second layout.
   ========================================================================== */

.ctool {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ctool__label {
  color: var(--muted);
  font-size: var(--fs-micro);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ctool__area {
  width: 100%;
  min-height: 168px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--ink);
  font-family: inherit;
  font-size: var(--fs-body);
  line-height: 1.75;
  resize: vertical;
}

.ctool__area--short {
  min-height: 84px;
}

.ctool__area:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

/* ---- a labelled single field ---- */

.ctool__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ctool__field span {
  color: var(--muted);
  font-size: var(--fs-micro);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ctool__field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--ink);
  font-family: inherit;
  font-size: var(--fs-body);
}

.ctool__field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.ctool__pair {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* ---- buttons and hints ---- */

.ctool__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ctool__row .ctool__hint {
  flex: 1 1 220px;
}

.ctool__btn {
  flex: none;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
}

.ctool__btn:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold-deep);
}

.ctool__btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.ctool__btn--primary {
  border-color: transparent;
  background: var(--grad-gold);
  color: var(--on-gold);
}

.ctool__btn--primary:hover:not(:disabled) {
  color: var(--on-gold);
}

.ctool__hint {
  /* Only stretches when it is sharing a row with a button. As a direct child
     of the column it must not grow, or it fills the panel with empty space. */
  flex: 0 0 auto;
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-micro);
  line-height: 1.5;
}

.ctool__empty {
  margin: 0;
  padding: 28px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
  text-align: center;
}

/* ---- sliders and colour pickers ---- */

.ctool__controls {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}

.ctool__controls label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.ctool__controls label > span {
  color: var(--muted);
  font-size: var(--fs-micro);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ctool__controls em {
  min-width: 58px;
  color: var(--ink);
  font-size: var(--fs-sm);
  font-style: normal;
  font-weight: 700;
  text-align: right;
}

.ctool__controls input[type='range'] {
  width: 100%;
  accent-color: var(--gold);
}

.ctool__colour {
  grid-template-columns: auto 1fr !important;
}

.ctool__colour input[type='color'] {
  width: 44px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: none;
  cursor: pointer;
}

.ctool__check {
  grid-template-columns: auto auto !important;
  justify-content: start;
}

.ctool__check input {
  accent-color: var(--gold);
}

/* ---- the pill tab strip, same shape as the listing filters ---- */

.ctool__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ctool__tab {
  padding: 8px 15px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.ctool__tab:hover {
  color: var(--ink);
}

.ctool__tab.is-on {
  background: var(--surface);
  color: var(--gold-deep);
  box-shadow: 0 2px 10px -4px rgb(0 0 0 / 0.35);
}

/* ---- the number tiles ---- */

.ctool__tiles {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.ctool__tile {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  text-align: center;
}

.ctool__tile.is-hero {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.ctool__tile strong {
  display: block;
  color: var(--ink);
  font-size: var(--fs-h4);
  font-weight: 800;
  line-height: 1.2;
}

.ctool__tile.is-hero strong {
  color: var(--gold-deep);
}

.ctool__tile span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---- the drop target ---- */

.ctool__drop {
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 150px;
  padding: 24px;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    background 0.16s ease;
}

.ctool__drop:hover,
.ctool__drop:focus-visible {
  outline: none;
  border-color: var(--gold);
  background: var(--gold-soft);
}

.ctool__drop strong {
  color: var(--ink);
  font-size: var(--fs-lede);
  font-weight: 800;
}

.ctool__drop span {
  color: var(--muted);
  font-size: var(--fs-sm);
}

.ctool__drop-preview {
  max-width: 160px;
  max-height: 120px;
  object-fit: contain;
}

/* ---- QR ---- */

.ctool__qr {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.ctool__qr-art {
  flex: none;
  /* The code is drawn dark-on-white and must stay that way in dark mode: a QR
     that follows the theme is a QR that half the scanners refuse. */
  padding: 10px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  line-height: 0;
}

.ctool__qr-side {
  display: flex;
  flex: 1 1 200px;
  flex-direction: column;
  gap: 9px;
}

.ctool__qr-meta {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-micro);
  font-weight: 700;
}

/* ---- icon and picture lists ---- */

.ctool__icons,
.ctool__shots {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ctool__icons li,
.ctool__shots li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.ctool__icon-art {
  flex: none;
  display: grid;
  place-items: center;
  min-width: 48px;
}

.ctool__icon-art img,
.ctool__shots img {
  display: block;
  border-radius: 6px;
}

.ctool__shots img {
  flex: none;
  width: 84px;
  height: 60px;
  object-fit: cover;
}

.ctool__icon-body,
.ctool__shot-body {
  flex: 1 1 auto;
  min-width: 0;
}

.ctool__icon-body strong,
.ctool__shot-body strong {
  display: block;
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ctool__icon-body span,
.ctool__shot-body span {
  display: block;
  color: var(--muted);
  font-size: var(--fs-micro);
  line-height: 1.5;
}

.ctool__icon-body code {
  color: var(--gold-deep);
  font-size: var(--fs-nano);
}

.ctool__shot-size b {
  color: var(--ink);
}

.ctool__shot-size em {
  color: var(--gold-deep);
  font-style: normal;
  font-weight: 800;
}

/* ---- font previews ---- */

.ctool__fonts {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ctool__font {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.ctool__font-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.ctool__font-head strong {
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 800;
}

.ctool__font-head span {
  color: var(--muted);
  font-size: var(--fs-micro);
}

.ctool__font-sample {
  margin: 0 0 8px;
  color: var(--ink);
  /* The whole point is the glyphs, so nothing here may be clipped. */
  overflow-wrap: anywhere;
}

.ctool__font-css {
  color: var(--gold-deep);
  font-size: var(--fs-nano);
}

@media (max-width: 560px) {
  .ctool__controls label {
    grid-template-columns: 1fr auto;
  }

  .ctool__controls label > span {
    grid-column: 1 / -1;
  }

  .ctool__shots li,
  .ctool__icons li {
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   Free tools — the browser-only tools get their own surface
   The console frame is a fixed dark panel in both themes. That suits the
   audits, which are a short form and then result cards, but these five are
   all working area — sliders, previews, lists — and a page of controls
   floating on a dark panel in light mode is hard to read whatever colour the
   labels are.
   So they sit on a card that follows the theme: light in light mode, dark
   after dark. Everything inside can then use --ink and --muted normally,
   because the surface under them flips in the same direction they do.
   ========================================================================== */

.ctool {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

/* Nested panels need to separate from the card now that the card is light —
   --bg-alt against --surface is the same pairing the rest of the site uses
   for a well inside a card. */
.ctool__area,
.ctool__field input,
.ctool__controls,
.ctool__drop {
  background: var(--bg-alt);
}

/* …and the things that were white against the dark console would now be
   white on white, so they take the recessed tone instead. */
.ctool__tile,
.ctool__font,
.ctool__icons li,
.ctool__shots li,
.ctool__qr {
  background: var(--bg-alt);
}

.ctool__tile.is-hero {
  background: var(--gold-soft);
}

/* The active pill has to lift off a light card rather than a dark one. */
.ctool__tab.is-on {
  background: var(--surface);
  box-shadow: 0 1px 6px -2px rgb(0 0 0 / 0.28);
}

/* The headings and notes borrowed from the audit console assume the dark
   panel; inside this card they follow the theme like everything else. */
.ctool .solo-group__head {
  color: var(--gold-deep);
}

.ctool .solo-notes {
  border-color: var(--line);
}

.ctool .solo-notes h4 {
  color: var(--ink);
}

.ctool .solo-notes li {
  color: var(--muted);
}

.ctool .solo-facts__item {
  background: var(--surface);
}

/* ==========================================================================
   QR studio — the artwork beside its controls
   Two columns on a desktop because every control changes the picture, and a
   setting you have to scroll away from to see the effect of is a setting you
   change by guessing.
   ========================================================================== */

.qr-studio {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  align-items: start;
}

.qr-studio__art {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.qr-studio__canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.qr-studio__panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qr-set {
  /* A column with one gap rather than each child bringing its own margin.
     The download block had its pills against the legend and its buttons
     against the pills, because nothing in it had been given any room. */
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 14px 16px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}

.qr-set legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: var(--fs-micro);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qr-set .ctool__controls {
  padding: 0;
  border: 0;
  background: none;
}

/* The legend is the block's title, so it wants a little more air under it
   than the controls want between themselves. */
.qr-set legend + * {
  margin-top: 2px;
}

.qr-set .ctool__hint {
  padding-top: 2px;
  border-top: 1px solid var(--line);
}

/* ---- the capacity meter ---- */

.qr-meter {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qr-meter__bar {
  flex: 1 1 auto;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.qr-meter__bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--grad-gold);
  transition: width 0.18s ease;
}

.qr-meter.is-over .qr-meter__bar span {
  background: var(--danger);
}

.qr-meter__text {
  flex: none;
  color: var(--muted);
  font-size: var(--fs-micro);
  font-weight: 700;
}

/* ---- the scan verdict ---- */

.qr-scan {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-micro);
  line-height: 1.45;
}

.qr-scan strong {
  font-size: var(--fs-caption);
  font-weight: 800;
}

.qr-scan--ok {
  background: var(--ok-tint, rgb(82 201 141 / 0.12));
  color: var(--ok-ink, #1c7a4a);
}

.qr-scan--ok span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qr-scan--fail {
  background: rgb(179 38 30 / 0.12);
  color: var(--danger);
}

.qr-scan--none {
  background: var(--surface);
  color: var(--muted);
}

/* ---- colour presets ---- */

.qr-presets {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  margin-top: 8px;
}

.qr-preset {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 8px 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  font-family: inherit;
  font-size: var(--fs-nano);
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.qr-preset:hover {
  border-color: var(--gold);
}

.qr-preset > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.qr-preset em {
  width: 15px;
  height: 15px;
  border-radius: 3px;
}

@media (max-width: 760px) {
  .qr-studio {
    grid-template-columns: 1fr;
  }

  .qr-studio__art {
    position: static;
  }
}

/* ==========================================================================
   Free tools — one control vocabulary
   The QR panel had grown three ways of saying "pick one" and two ways of
   saying "do something", none of them the same height. This settles it:
     · choose one of N  → .ctool__tab, 34px, pill, gold when chosen
     · a colour         → .qr-preset, same 34px row, ring when chosen
     · do something     → .ctool__btn, same 34px, gold for the main action,
                          borderless for the one that undoes
   Every control in these panels is now the same height and the same radius,
   which is most of what "consistent" means before anything is styled at all.
   ========================================================================== */

.ctool__tab,
.ctool__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 15px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1;
}

/* A tab with a drawing in it needs room for the drawing, not more words. */
.ctool__tab--icon {
  padding: 0 13px;
}

.ctool__tab svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  /* Muted while unchosen so the row reads as one control rather than as three
     competing marks. */
  opacity: 0.75;
}

.ctool__tab.is-on svg {
  opacity: 1;
}

/* The quiet third tier: reverses something, so it should not carry the same
   weight as the action it reverses. */
.ctool__btn--quiet {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.ctool__btn--quiet:hover:not(:disabled) {
  border-color: transparent;
  background: var(--surface);
  color: var(--danger);
}

/* ---- colour presets, matched to the tabs ---- */

.qr-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.qr-preset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 13px 0 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.qr-preset:hover {
  color: var(--ink);
}

.qr-preset.is-on {
  border-color: var(--gold);
  background: var(--surface);
  color: var(--gold-deep);
}

/* The swatch is a fragment of an actual code, which is the only thing the
   pairing is going to be used for. */
.qr-preset__chip {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  box-shadow: 0 0 0 1px var(--line) inset;
}

/* ---- the two colour wells ---- */

.qr-wells {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.qr-well {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px 7px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.qr-well:hover,
.qr-well:focus-within {
  border-color: var(--gold);
}

/* The well itself is the swatch — no separate preview square to fall out of
   step with the value it is previewing. */
.qr-well input[type='color'] {
  flex: none;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  overflow: hidden;
}

.qr-well input[type='color']::-webkit-color-swatch-wrapper {
  padding: 0;
}

.qr-well input[type='color']::-webkit-color-swatch {
  border: 0;
  border-radius: 50%;
}

.qr-well input[type='color']::-moz-color-swatch {
  border: 0;
  border-radius: 50%;
}

.qr-well > span {
  display: grid;
  min-width: 0;
  color: var(--muted);
  font-size: var(--fs-micro);
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.25;
  text-transform: uppercase;
}

.qr-well em {
  color: var(--ink);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: var(--fs-nano);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
}

/* Said before the scan test has to say it. */
.qr-warn {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  background: rgb(179 38 30 / 0.1);
  color: var(--danger);
  font-size: var(--fs-micro);
  line-height: 1.45;
}

/* ---- sliders ---- */

/* `accent-color` alone left the unfilled half of the track rendering near
   black inside a light panel — heavier than anything else on the page. Both
   halves are drawn explicitly instead. */
.ctool__controls input[type='range'] {
  height: 20px;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.ctool__controls input[type='range']::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: var(--line);
}

.ctool__controls input[type='range']::-moz-range-track {
  height: 5px;
  border-radius: 999px;
  background: var(--line);
}

.ctool__controls input[type='range']::-moz-range-progress {
  height: 5px;
  border-radius: 999px;
  background: var(--gold);
}

.ctool__controls input[type='range']::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -5.5px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 1px 5px -1px rgb(0 0 0 / 0.4);
}

.ctool__controls input[type='range']::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 1px 5px -1px rgb(0 0 0 / 0.4);
}

.ctool__controls input[type='range']:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ---- the colour wells, sized like everything else in the row ---- */

.ctool__colour input[type='color'] {
  width: 100%;
  max-width: 64px;
  height: 30px;
  border-radius: var(--radius-sm);
}

/* Chrome draws a thick inner border on a colour well by default. */
.ctool__colour input[type='color']::-webkit-color-swatch-wrapper {
  padding: 3px;
}

.ctool__colour input[type='color']::-webkit-color-swatch {
  border: 0;
  border-radius: 5px;
}

/* ==========================================================================
   Khmer font previewer — views, actions and the kit
   ========================================================================== */

.kf-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

/* The stage the sample is drawn on.
   Both grounds are fixed values, not theme tokens. A specimen has to be judged
   against a known background: when this followed the theme, the same face
   looked different to two people over a setting that has nothing to do with
   the face — and the "on dark" check did nothing at all for anyone already
   reading in dark mode, because that is where they started. */
.kf-stage {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.kf-stage.is-light {
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--line) inset;
}

.kf-stage.is-light .ctool__font-sample {
  color: #000000;
}

.kf-stage.is-dark {
  background: #000000;
}

.kf-stage.is-dark .ctool__font-sample {
  color: #f4f5ef;
}

.kf-rung {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line);
}

.kf-rung:last-child {
  border-bottom: 0;
}

.kf-stage.is-light .kf-rung {
  border-color: rgb(0 0 0 / 0.1);
}

.kf-stage.is-dark .kf-rung {
  border-color: rgb(255 255 255 / 0.1);
}

/* The size marker stays a fixed small size while the sample beside it grows. */
.kf-rung__px {
  flex: none;
  width: 34px;
  color: var(--muted);
  font-family: inherit;
  font-size: var(--fs-nano);
  font-weight: 800;
  line-height: 1;
}

.kf-stage.is-light .kf-rung__px {
  color: rgb(0 0 0 / 0.4);
}

.kf-stage.is-dark .kf-rung__px {
  color: rgb(255 255 255 / 0.5);
}

/* ---- the action row under each face ---- */

.kf-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.kf-actions__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* Anchors styled as buttons need the same box as the buttons beside them. */
.kf-actions .ctool__btn {
  min-height: 30px;
  padding: 0 12px;
  font-size: var(--fs-micro);
  text-decoration: none;
}

/* The site marks a link that leaves it with an arrow — the sidebar's "69 Free
   Web Tools" does the same. Without it these two read as buttons that do
   something here rather than as doors out. */
.kf-actions .ctool__btn span {
  font-size: 0.9em;
  opacity: 0.7;
}

.kf-pin {
  margin-left: auto;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: var(--fs-nano);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
}

.kf-pin:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
}

.kf-pin.is-on {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.ctool__font-head {
  /* The pin sits at the right end of the name row, so the note must not push
     it off on a narrow card. */
  flex-wrap: wrap;
}

.ctool__font-head span {
  flex: 1 1 160px;
  min-width: 0;
}

.kf-kit {
  position: sticky;
  bottom: 8px;
}

/* ==========================================================================
   Tool pulse — the quiet line under each console
   Small on purpose. It is a signal that the tool is alive and used, sitting
   between the console and the writing, and it should be read in a glance and
   then ignored.
   ========================================================================== */

/* The console and its counter are one block, so the page grid's 44px gap
   applies around the pair rather than on both sides of the caption. */
.tool-page__console {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tool-pulse {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin: 0;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--muted);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.tool-pulse strong {
  color: var(--ink);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* The one piece of decoration: a slow pulse, because the number behind it is
   live rather than a figure somebody typed into the copy. */
.tool-pulse__dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(255, 178, 54, 0.5);
  animation: tool-pulse-beat 2.8s ease-out infinite;
}

@keyframes tool-pulse-beat {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 178, 54, 0.45);
  }
  60%,
  100% {
    box-shadow: 0 0 0 7px rgba(255, 178, 54, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tool-pulse__dot {
    animation: none;
  }
}

/* Each figure keeps its own line on a phone rather than wrapping mid-number. */
.tool-pulse > span {
  white-space: nowrap;
}

/* ==========================================================================
   Khmer fonts — the code panel
   A small editor rather than a grey blockquote. The window bar and the line
   numbers are what make it read as code to be copied at a glance, and the
   dark ground is fixed in both themes because that is what a code panel is —
   the same reason a terminal does not follow the system theme.
   ========================================================================== */

.kf-code-toggle {
  gap: 8px;
}

.kf-code-toggle__caret {
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid currentColor;
  transition: transform 0.18s ease;
}

.kf-code-toggle.is-on {
  border-color: var(--gold);
  color: var(--gold-deep);
}

.kf-code-toggle.is-on .kf-code-toggle__caret {
  transform: rotate(90deg);
}

.kf-code {
  margin-top: 10px;
  border-radius: var(--radius-sm);
  background: #000000;
  overflow: hidden;
  box-shadow: 0 16px 34px -22px rgb(0 0 0 / 0.65);
  animation: kf-code-open 0.22s ease-out both;
}

@keyframes kf-code-open {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .kf-code {
    animation: none;
  }
}

.kf-code__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 12px;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  background: rgb(255 255 255 / 0.03);
}

.kf-code__dots {
  display: flex;
  flex: none;
  gap: 5px;
}

.kf-code__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.16);
}

.kf-code__file {
  color: rgb(255 255 255 / 0.5);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: var(--fs-nano);
}

/* Pushed right, so the bar reads left-to-right as window, file, then the two
   things you can actually press. */
.kf-code__tabs {
  display: flex;
  gap: 3px;
  margin-left: auto;
}

.kf-code__tab {
  padding: 4px 10px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: rgb(255 255 255 / 0.55);
  font-family: inherit;
  font-size: var(--fs-nano);
  font-weight: 800;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.kf-code__tab:hover {
  color: #fff;
}

.kf-code__tab.is-on {
  background: rgba(255, 178, 54, 0.22);
  color: var(--gold-bright);
}

.kf-code__copy {
  flex: none;
  padding: 4px 12px;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: var(--radius-pill);
  background: transparent;
  color: rgb(255 255 255 / 0.8);
  font-family: inherit;
  font-size: var(--fs-nano);
  font-weight: 800;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
}

.kf-code__copy:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.kf-code__body {
  margin: 0;
  padding: 12px 0;
  /* Long lines scroll inside the panel rather than widening the card. */
  overflow-x: auto;
  color: #e1e1e1;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: var(--fs-nano);
  line-height: 1.75;
}

.kf-code__line {
  display: flex;
  gap: 14px;
  padding: 0 14px;
}

.kf-code__line:hover {
  background: rgb(255 255 255 / 0.04);
}

.kf-code__n {
  flex: none;
  width: 14px;
  color: rgb(255 255 255 / 0.26);
  text-align: right;
  user-select: none;
}

.kf-code__text {
  white-space: pre;
}

/* ==========================================================================
   Tool page — one source of spacing between the console and the writing
   `.tool-page__main` is a grid with a 44px gap and `.tool-page__copy` carried
   a 40px top margin as well, so the two stacked into 84px. A margin and a gap
   doing the same job is how a page ends up with more air in it than anyone
   chose. The gap wins; the margin goes.
   ========================================================================== */

.tool-page__copy {
  margin-top: 0;
}

/* ==========================================================================
   Tool pulse — a badge on the console rather than a bar beneath it
   Sitting on the console's bottom-right corner, half over the frame and half
   in the gap that was already empty, it costs the page no height at all and
   reads as something the console is saying about itself. A full-width bar
   underneath read as a fourth section and pushed the writing down a whole
   band for one short sentence.
   ========================================================================== */

@media (min-width: 761px) {
  .tool-pulse {
    position: absolute;
    right: clamp(18px, 3vw, 38px);
    bottom: -17px;
    z-index: 2;
    /* Slightly tighter than the standalone bar: it is a label now. */
    gap: 5px 15px;
    padding: 9px 18px;
    box-shadow: 0 12px 28px -14px rgb(0 0 0 / 0.55);
  }
}

/* Below that the console is nearly the full width and a badge on its corner
   would sit over the controls, so it goes back to being a line underneath. */
@media (max-width: 760px) {
  .tool-pulse {
    justify-content: center;
  }
}

/* ==========================================================================
   Khmer fonts — let the code panel scroll instead of widening the page
   `.kf-code__body` already scrolls horizontally, but a scroll container only
   shrinks if every ancestor lets it: grid and flex children default to
   `min-width: auto`, which is their content's width. With a panel open on a
   390px phone that pushed the whole tool column to 612px. These are the
   ancestors between the pre and the page grid.
   ========================================================================== */

.ctool,
.ctool__fonts,
.ctool__font,
.kf-code,
.kf-code__body {
  min-width: 0;
}

/* ==========================================================================
   Free tools — the code panels must shrink, not stretch the page
   `.solo-file__body` already had `overflow: auto` and `max-width: 100%`, and
   still pushed a 390px phone to 850px once the font kit's embed line — one
   unbroken URL — was inside it. `max-width: 100%` is a percentage of a parent
   that is itself being widened by the same content, so it resolves to the
   wrong number; the fix is to stop the ancestors from growing in the first
   place. Grid and flex children default to `min-width: auto`, which means
   "as wide as my content", and every one of these is a grid or flex child.
   ========================================================================== */

.solo-file,
.solo-file__body,
.kf-kit,
.ctool__font-head,
.kf-actions,
.kf-actions__btns {
  min-width: 0;
}

/* The kit's embed is three long lines. Wrapping them rather than scrolling is
   right here: it is code to be copied with a button, not read line by line,
   and a horizontal scrollbar inside a sticky panel on a phone is a trap. */
.kf-kit .solo-file__body code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  /* The bar was wrapping to three rows — filename, tabs, then Copy on its own
     line — because the tabs are pushed right by `margin-left: auto`. On a
     narrow panel they should simply follow the filename and take Copy with
     them. */
  .kf-code__tabs {
    margin-left: 0;
  }

  .kf-code__bar {
    gap: 6px;
    padding: 7px 8px;
  }

  .kf-code__tab {
    padding: 4px 8px;
  }

  /* One tap target per row reads better than two half-width ones. */
  .kf-actions__btns {
    width: 100%;
  }

  .kf-actions .ctool__btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* ==========================================================================
   Home FAQ — the free-tools list as one column
   Twenty-one names in two columns was taller than the questions it sits
   beside, and read as a wall rather than an offer. Eight, in one column, as a
   list with hairlines instead of twenty-one boxes: the names line up on one
   left edge so the eye runs down them, and the arrow is the only thing that
   moves.
   ========================================================================== */

.home-faq__tools-grid {
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.home-faq__tools-grid li + li .home-faq__tool {
  border-top: 1px solid var(--line);
}

.home-faq__tool {
  /* A row, not a card. The boxes were carrying the visual weight of a button
     each, twenty-one times, for links that are a suggestion. */
  padding: 12px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
}

.home-faq__tools-grid li:last-child .home-faq__tool {
  border-bottom: 0;
}

.home-faq__tool:hover {
  border-color: transparent;
  background: var(--gold-soft);
  transform: none;
}

/* The arrow does the moving. On a row this reads as "go" far more clearly than
   lifting the whole card did. */
.home-faq__tool-go {
  flex: none;
  color: var(--muted);
  transition:
    transform 0.16s ease,
    color 0.16s ease;
}

.home-faq__tool:hover .home-faq__tool-go {
  transform: translateX(3px);
  color: var(--gold-deep);
}

.home-faq__tool:hover .home-faq__tool-name {
  color: var(--gold-deep);
}

/* The ground switch carries a sample of each ground, so the choice is visible
   before it is made — and so the pair reads as two options rather than as one
   tick that may or may not have done anything. */
.kf-ground__chip {
  width: 13px;
  height: 13px;
  border-radius: 4px;
}

.kf-ground__chip.is-light {
  background: #ffffff;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.22) inset;
}

.kf-ground__chip.is-dark {
  background: #000000;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.22) inset;
}

/* ==========================================================================
   Tool tabs — hover and selection that survive dark mode
   In light mode the chosen pill is a white surface lifted off cream, which
   reads instantly. After dark that same rule put #000000 on #000000 — a
   contrast of 1.06, which is nothing. The selection was being carried by the
   gold text alone, and a drop shadow that a dark ground cannot show.
   So dark mode marks it the way a dark interface has to: a gold wash and a
   gold ring, lit rather than raised. Hover gets a wash of its own in both
   modes, because a control with no hover feedback feels broken before it
   feels subtle.
   ========================================================================== */

.ctool__tab:hover:not(.is-on),
.qr-preset:hover:not(.is-on) {
  background: color-mix(in srgb, var(--gold) 9%, transparent);
  color: var(--gold-deep);
}

/* The chip inside a ground button gets a ring on hover too, so the whole
   control responds rather than only its label. */
.kf-ground button:hover .kf-ground__chip {
  box-shadow:
    0 0 0 1px var(--gold) inset,
    0 0 0 2px color-mix(in srgb, var(--gold) 35%, transparent);
}

:root[data-theme='dark'] .ctool__tab.is-on,
:root[data-theme='auto'][data-night='1'] .ctool__tab.is-on,
:root[data-theme='dark'] .qr-preset.is-on,
:root[data-theme='auto'][data-night='1'] .qr-preset.is-on {
  background: color-mix(in srgb, var(--gold) 20%, transparent);
  color: var(--gold-bright);
  /* An inset ring rather than a drop shadow: on a dark ground a shadow is
     invisible, and the ring is what says "this one". */
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--gold) 55%, transparent) inset,
    0 1px 10px -4px rgb(0 0 0 / 0.6);
}

:root[data-theme='dark'] .ctool__tab:hover:not(.is-on),
:root[data-theme='auto'][data-night='1'] .ctool__tab:hover:not(.is-on),
:root[data-theme='dark'] .qr-preset:hover:not(.is-on),
:root[data-theme='auto'][data-night='1'] .qr-preset:hover:not(.is-on) {
  background: rgb(255 255 255 / 0.07);
  color: var(--gold-bright);
}

/* The active tab's icon should be gold with the label, not left grey. */
:root[data-theme='dark'] .ctool__tab.is-on svg,
:root[data-theme='auto'][data-night='1'] .ctool__tab.is-on svg {
  opacity: 1;
}

/* ==========================================================================
   The Khmer tools
   Six tools that mostly produce a labelled value with a copy button, so they
   share one row shape rather than each inventing its own.
   ========================================================================== */

.kslug__out {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kslug__out > li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}

.kslug__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-bottom: 7px;
}

.kslug__head strong {
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 800;
}

.kslug__head span {
  color: var(--muted);
  font-size: var(--fs-micro);
}

.kslug__value {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kslug__value code {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--fs-caption);
  /* A slug or a phone number is one token — it should wrap rather than force
     the card wider, which is what pushed a 390px phone to 612px elsewhere. */
  overflow-wrap: anywhere;
}

/* Khmer needs its own line height even inside a value box. */
.kdate__value {
  line-height: 1.9;
}

/* ---- phone ---- */

.kphone__verdict {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-micro);
  line-height: 1.5;
}

.kphone__verdict strong {
  font-size: var(--fs-sm);
  font-weight: 800;
}

.kphone__verdict.is-ok {
  background: var(--ok-tint, rgb(82 201 141 / 0.12));
  color: var(--ok-ink, #1c7a4a);
}

.kphone__verdict.is-bad {
  background: rgb(179 38 30 / 0.1);
  color: var(--danger);
}

.kphone__nets {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kphone__nets li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  transition:
    border-color 0.16s ease,
    background 0.16s ease;
}

/* The network the number belongs to lifts out of the list. */
.kphone__nets li.is-current {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.kphone__nets strong {
  min-width: 74px;
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 800;
}

.kphone__prefixes {
  display: flex;
  flex: 1 1 200px;
  flex-wrap: wrap;
  gap: 4px;
}

.kphone__prefixes b {
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: var(--fs-nano);
  font-weight: 700;
}

/* The exact prefix the typed number starts with. */
.kphone__prefixes b.is-match {
  background: var(--grad-gold);
  color: var(--on-gold);
}

/* ---- character map ---- */

.kchar__basket {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kchar__basket-in {
  flex: 1 1 220px;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--ink);
  font-family: inherit;
  /* Big enough to read a stack of subscripts and vowels in. */
  font-size: var(--fs-lede);
  line-height: 1.9;
}

.kchar__basket-in:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.kchar__points {
  display: block;
  color: var(--gold-deep);
  font-size: var(--fs-nano);
  overflow-wrap: anywhere;
}

.kchar__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.kchar__grid button {
  display: grid;
  justify-items: center;
  gap: 3px;
  width: 100%;
  padding: 10px 4px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--ink);
  font-family: inherit;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.kchar__grid button:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.kchar__glyph {
  font-size: 26px;
  line-height: 1.5;
}

.kchar__name {
  color: var(--muted);
  font-size: var(--fs-nano);
  text-align: center;
  overflow-wrap: anywhere;
}

/* ---- validator ---- */

.kval__clean {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--ok-tint, rgb(82 201 141 / 0.12));
  color: var(--ok-ink, #1c7a4a);
  font-size: var(--fs-micro);
  line-height: 1.5;
}

.kval__clean strong {
  font-size: var(--fs-sm);
  font-weight: 800;
}

.ctool__tile.is-bad strong {
  color: var(--danger);
}

.ctool__tile.is-warn strong {
  color: var(--gold-deep);
}

/* ---- legacy converter ---- */

.klegacy__beta {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 13px 15px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: var(--fs-micro);
  line-height: 1.55;
}

.klegacy__beta strong {
  font-size: var(--fs-sm);
  font-weight: 800;
}

/* ---- the two panels and the switch between them ---- */

.klegacy__deck {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
}

.klegacy__panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.klegacy__panel header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px;
}

.klegacy__panel h4 {
  margin: 0;
  color: var(--gold-deep);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.klegacy__panel header span {
  color: var(--muted);
  font-size: var(--fs-nano);
  font-variant-numeric: tabular-nums;
}

/* Both boxes are the same object — one accepts typing, one does not — so they
   are styled together and differ only in that. */
.klegacy__box {
  /*
   * A fixed height, identical on both sides.
   *
   * The two panels hold different scripts: Khmer at reading size with 1.95
   * leading, Limon monospaced and smaller. Left to size themselves, the boxes
   * were a different height in each direction — so pressing Swap resized the
   * panels and moved everything below them down the page. The height is the
   * frame; the text scrolls inside it.
   */
  flex: none;
  height: 236px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--ink);
  font-family: inherit;
  overflow-wrap: anywhere;
  resize: vertical;
}

.klegacy__box:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

/* Khmer wants reading size and generous leading; Limon is a machine string
   and reads as one — monospaced, so a stray character is countable. */
.klegacy__box.is-khmer {
  font-size: var(--fs-lede);
  line-height: 1.95;
}

.klegacy__box.is-latin {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: var(--fs-sm);
  line-height: 1.75;
  letter-spacing: 0.01em;
}

.klegacy__box--out {
  overflow-y: auto;
  background: var(--surface);
  resize: none;
}

/* The panels themselves stay level, so the row does not jog when the two
   hints wrap to different numbers of lines. */
.klegacy__panel {
  align-self: start;
}

.klegacy__empty {
  color: var(--muted);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-style: normal;
  letter-spacing: 0;
}

.klegacy__hint {
  margin: 0;
  padding: 0 2px;
  color: var(--muted);
  font-size: var(--fs-micro);
  line-height: 1.45;
}

/* ---- the switch ---- */

.klegacy__switch {
  display: grid;
  place-items: center;
  padding-top: 26px;
}

.klegacy__switch button {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--muted);
  font-family: inherit;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    color 0.16s ease,
    background 0.16s ease;
}

.klegacy__switch button:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.klegacy__switch svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* The arrows turn as the direction does. */
.klegacy__switch button:hover svg {
  transform: rotate(180deg);
}

.klegacy__switch em {
  font-size: var(--fs-nano);
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* On a narrow screen the two panels stack and the switch turns to match. */
@media (max-width: 820px) {
  .klegacy__deck {
    grid-template-columns: 1fr;
  }

  .klegacy__switch {
    padding-top: 0;
  }

  .klegacy__box {
    height: 200px;
  }

  .klegacy__switch button {
    flex-direction: row;
    width: 100%;
    grid-auto-flow: column;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
  }

  .klegacy__switch svg {
    transform: rotate(90deg);
  }

  .klegacy__switch button:hover svg {
    transform: rotate(270deg);
  }
}

.klegacy__unmapped,
.klegacy__table {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 5px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.klegacy__unmapped li,
.klegacy__table li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  font-size: var(--fs-caption);
}

.klegacy__unmapped code,
.klegacy__table code {
  color: var(--muted);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
}

.klegacy__table b {
  color: var(--ink);
  font-size: var(--fs-lede);
  line-height: 1.6;
}

.klegacy__table span {
  color: var(--gold);
  font-size: var(--fs-nano);
}

.klegacy__unmapped span {
  color: var(--gold-deep);
  font-size: var(--fs-nano);
  font-weight: 800;
}

/* ==========================================================================
   Network badges
   Drawn here rather than reproduced from the operators' own logos — a
   trademark recalled from memory is a trademark got wrong. Each is a
   monogram on its own gradient, sized from one number so a 34px badge in the
   list and a 46px one in the verdict are the same object at two sizes.
   ========================================================================== */

.kphone__badge {
  flex: none;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  /* Lit from above, and ringed, so it reads as an object on the card rather
     than as a coloured rectangle printed on it. */
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.35),
    inset 0 0 0 1px rgb(0 0 0 / 0.08),
    0 4px 12px -4px rgb(0 0 0 / 0.45);
  user-select: none;
}

.kphone__badge img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.kphone__verdict-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

/* The verdict card's own text keeps its colour; the badge brings its own. */
.kphone__verdict-body strong {
  font-size: var(--fs-sm);
  font-weight: 800;
}

/* ==========================================================================
   Phone checker — the number itself, at the size it deserves
   This is the one thing the visitor types and the one thing they check
   against the card in their hand, so it is set large, bold and in tabular
   figures — every digit the same width, which is what makes 111 and 999
   the same length and a mistyped group obvious.
   ========================================================================== */

.kphone__entry input {
  padding: 16px 18px;
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  line-height: 1.25;
}

.kphone__entry input::placeholder {
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.45;
}

/* The digit count under the phone field. */
.kphone__count {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-micro);
  line-height: 1.5;
}

.kphone__count b {
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.kphone__count-note {
  flex: 1 1 240px;
  min-width: 0;
}

/* ==========================================================================
   Tool sidebar — full names, one line each
   The names are the full headings again, because shortening them to fit made
   several of them stop saying what the tool does. "Redirect and mixed-content
   check" needed 251px and had 233px at 14px type — seven per cent over. So
   the type comes down a step, the padding tightens, and the tracking closes a
   hair. Nothing is truncated: the ellipsis below is a safety net for a name
   longer than any that exists today, not a design choice.
   ========================================================================== */

.tool-page__side ul a,
.tool-page__side ul span[aria-current] {
  padding-left: 8px;
  padding-right: 8px;
  font-size: 13px;
  letter-spacing: -0.012em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* The arrow must not be the thing that gets clipped. */
.tool-page__side ul a > span[aria-hidden],
.tool-page__side ul span[aria-current] > span[aria-hidden] {
  flex: none;
}

/* ---- the shelves ----
   Twenty-seven tools on five shelves, so a Cambodian visitor finds the Khmer
   ones without reading past six domain lookups first. The shelf name borrows
   the gold rule the page's own h2s use, at a smaller scale — the same motif
   rather than a second one invented for the sidebar. */

.tool-page__shelf + .tool-page__shelf {
  margin-top: 20px;
}

.tool-page__shelf ul {
  margin-bottom: 0;
}

.tool-page__shelf-name {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 8px;
  padding: 0 8px;
  color: var(--gold-deep);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

/* The rule runs from the name to the edge and fades out, so the eye is
   carried along the shelf rather than stopped by a full-width line. */
.tool-page__shelf-name::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
  opacity: 0.55;
}

/* A small gold marker, the same shape as the tile bullets elsewhere. */
.tool-page__shelf-name::before {
  content: '';
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 1.5px;
  background: var(--grad-gold);
  transform: rotate(45deg);
}

/* ==========================================================================
   Khmer writing check
   ========================================================================== */

.kwrite__fix {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
}

.kwrite__fix div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.kwrite__fix strong {
  color: var(--gold-deep);
  font-size: var(--fs-sm);
  font-weight: 800;
}

.kwrite__fix span {
  color: var(--muted);
  font-size: var(--fs-micro);
  line-height: 1.45;
}

/* The text around a finding, so the fault can be seen rather than described.
   Khmer leading, because a marked syllable still has to stack properly. */
.kwrite__spot {
  margin: 7px 0 0;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--muted);
  font-size: var(--fs-caption);
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.kwrite__spot mark {
  padding: 1px 3px;
  border-radius: 3px;
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 700;
}

/* Word spacing — the boundaries Khmer does not write, found in the browser. */
.kwrite__seg {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}

.kwrite__seg header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kwrite__seg header > div:first-child {
  display: grid;
  gap: 3px;
  flex: 1 1 240px;
  min-width: 0;
}

.kwrite__seg strong {
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.kwrite__seg span {
  color: var(--muted);
  font-size: var(--fs-micro);
  line-height: 1.5;
}

.kwrite__seg-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Each word as its own chip, so the segmentation can be checked by eye — the
   one claim of this panel a reader cannot otherwise verify. */
.kwrite__words {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding-top: 3px;
}

.kwrite__words span {
  padding: 3px 9px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--fs-caption);
  line-height: 1.8;
}

.kwrite__words em {
  align-self: center;
  color: var(--muted);
  font-style: normal;
}

/* ==========================================================================
   Khmer writing check — marking the fault where the fault is
   ========================================================================== */

.kedit__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.kedit__nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.kedit__nav span {
  color: var(--muted);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* The two step arrows, and only those: the spelling switch is a button in the
   same row and a 26px circle would crush its label. */
.kedit__nav button:not(.kedit__spell) {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-size: var(--fs-sm);
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    color 0.18s ease;
}

.kedit__nav button:not(.kedit__spell):hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold-deep);
}

.kedit__nav button:not(.kedit__spell):disabled {
  opacity: 0.4;
  cursor: default;
}

/* Two layers, one text. The mirror carries the underlines and nothing else;
   every metric below has to match the textarea exactly or a mark drifts off
   the characters it belongs to. */
.kedit {
  position: relative;
  margin-top: 8px;
}

.kedit__area,
.kedit__mirror {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: var(--fs-body);
  line-height: 1.9;
  letter-spacing: normal;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: normal;
  tab-size: 4;
}

.kedit__area {
  /* Block, not the textarea's inline-block default: the inline baseline gap
     would make the box a few pixels taller than the mirror behind it. */
  display: block;
  position: relative;
  z-index: 1;
  min-height: 190px;
  border-color: var(--line);
  background: transparent;
  color: transparent;
  caret-color: var(--ink);
  resize: vertical;
}

.kedit__area::placeholder {
  color: var(--muted);
}

.kedit__area::selection {
  background: color-mix(in srgb, var(--gold) 32%, transparent);
}

.kedit__area:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.kedit__mirror {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg-alt);
  color: var(--ink);
  pointer-events: none;
}

/* The underline itself. Red is the error colour here and nowhere else on the
   site — the one place a fault is genuinely being called wrong. The offset
   clears the subscripts Khmer hangs below the baseline. */
.kedit__m {
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.32em;
  text-decoration-skip-ink: none;
  border-radius: 2px;
}

.kedit__m--error {
  text-decoration-color: var(--danger);
}

.kedit__m--warning {
  text-decoration-color: var(--gold);
}

.kedit__m--note {
  text-decoration-style: dotted;
  text-decoration-color: var(--muted);
}

.kedit__m.is-open {
  background: var(--gold-soft);
}

/* The correction, anchored under the mark it belongs to. */
.kedit__card {
  position: absolute;
  z-index: 3;
  width: min(330px, calc(100% - 16px));
  margin-top: 6px;
  padding: 13px 15px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: 0 18px 44px rgb(0 0 0 / 18%);
}

.kedit__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 5px;
}

.kedit__card-head strong {
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 800;
}

.kedit__tag {
  flex: none;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-nano);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kedit__tag--error {
  background: color-mix(in srgb, var(--danger) 14%, transparent);
  color: var(--danger);
}

.kedit__tag--warning {
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.kedit__tag--note {
  background: var(--bg-alt);
  color: var(--muted);
}

.kedit__card-detail {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: var(--fs-micro);
  line-height: 1.55;
}

.kedit__suggest {
  display: grid;
  gap: 6px;
}

.kedit__suggest.is-words {
  display: grid;
}

.kedit__suggest button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 11px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-family: inherit;
  font-size: var(--fs-caption);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}

.kedit__suggest button:hover {
  background: var(--gold);
  color: var(--on-gold);
  transform: translateY(-1px);
}

/* The replacement itself, shown as it will be written. */
.kedit__suggest span {
  flex: none;
  min-width: 30px;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--fs-sm);
  line-height: 1.9;
  text-align: center;
}

.kedit__none {
  margin: 0;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--muted);
  font-size: var(--fs-micro);
  line-height: 1.5;
}

.kedit__card-foot {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}

.kedit__card-foot button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: var(--fs-micro);
  font-weight: 700;
  cursor: pointer;
}

.kedit__card-foot button:hover {
  color: var(--gold-deep);
}

/* The same corrections, reachable from the list for anyone working down it. */
.kwrite__row-fixes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.kwrite__row-fixes button {
  padding: 5px 11px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--gold-deep);
  font-family: inherit;
  font-size: var(--fs-micro);
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.kwrite__row-fixes button:hover {
  background: var(--gold);
  color: var(--on-gold);
}

.kwrite__row-fixes button.is-quiet {
  border-color: var(--line);
  color: var(--muted);
}

.kwrite__row-fixes button.is-quiet:hover {
  border-color: var(--gold);
  background: transparent;
  color: var(--gold-deep);
}

/* A link that leaves the site says so, and opens in its own tab. Plain prose
   links only — buttons, cards and pills all carry a class of their own. */
main a[target='_blank']:not([class])::after {
  content: '\2197';
  display: inline-block;
  margin-left: 2px;
  font-size: 0.82em;
  font-weight: 700;
  line-height: 1;
  vertical-align: 0.12em;
}

/* ---- A bullet on every tool in the sidebar -------------------------------
   The shelf headings carry a small gold diamond; the tools under them carried
   nothing, so the list read as plain text hanging under a decorated heading.
   The same marker, at half weight, gives every row a start point and ties the
   items to the shelf they sit on. It brightens on hover, where the gold rail
   at the leading edge already appears. */

.tool-page__side li a,
.tool-page__side li.is-current > span {
  padding-left: 28px;
}

/* `a[href]` rather than `a`: the external-link arrow above also claims
   ::after, and one row in this list does leave the site. In the sidebar the
   bullet wins — the row already carries a badge and a chevron. */
.tool-page__side li a[href]::after,
.tool-page__side li.is-current > span::after {
  content: '';
  position: absolute;
  left: 13px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -3px;
  border-radius: 1.5px;
  background: var(--grad-gold);
  transform: rotate(45deg);
  opacity: 0.45;
  transition:
    opacity 0.22s var(--ease),
    transform 0.22s var(--ease);
}

.tool-page__side li.is-current > span {
  position: relative;
}

.tool-page__side li.is-current > span::after {
  opacity: 1;
}

.tool-page__side li a[href]:hover::after,
.tool-page__side li a[href]:focus-visible::after {
  opacity: 1;
  transform: rotate(45deg) scale(1.2);
}

/* The spelling switch. Off by default and labelled with what it costs — the
   word list is a 272 KB download, and a tool that quietly fetches that on
   every visit is not the same tool as one that asks. */
.kedit__spell {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--muted);
  font-family: inherit;
  font-size: var(--fs-nano);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}

.kedit__spell:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
}

.kedit__spell.is-on {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold-deep);
}

/* Suggested spellings are the words themselves, at reading size: this is the
   one menu on the page where the content is the whole message. */
.kedit__suggest.is-words {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.kedit__suggest.is-words button {
  justify-content: center;
  padding: 9px 12px;
}

.kedit__suggest b {
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.9;
}

/* The label row above the editor carries three things now — the caption, the
   spelling switch and the two step arrows — and the console is narrower on the
   home page than on the tool page. Wrapping the row keeps them apart; keeping
   each control on one line stops the switch stacking its own words. */
.kedit__top {
  flex-wrap: wrap;
  row-gap: 8px;
}

.kedit__nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 6px;
}

.kedit__spell,
.kedit__nav span {
  white-space: nowrap;
}

/* …and none of the three may be squeezed below its own text. Flex children
   shrink by default, which on a phone crushed the switch to 26px and printed
   "SPELLING ON" straight through the count beside it. */
.kedit__top > .ctool__label {
  flex: 0 1 auto;
  min-width: 0;
}

.kedit__top > .kedit__nav {
  flex: 0 0 auto;
}

.kedit__spell,
.kedit__nav > span,
.kedit__nav > button {
  flex: none;
}

/* ==========================================================================
   Khmer typing — the NiDA keyboard, taught
   ========================================================================== */

.ktype__lessons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ktype__lesson {
  position: relative;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--muted);
  font-family: inherit;
  font-size: var(--fs-caption);
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}

.ktype__lesson:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
}

.ktype__lesson.is-on {
  border-color: var(--gold);
  background: var(--grad-gold);
  color: var(--on-gold);
}

/* The best score for a lesson, carried on its own tab. */
.ktype__lesson em {
  margin-left: 7px;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: var(--fs-nano);
  font-style: normal;
  font-weight: 800;
}

.ktype__lesson.is-on em {
  background: rgb(255 255 255 / 82%);
}

.ktype__note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: var(--fs-caption);
  line-height: 1.6;
}

/* The practice area takes the keys itself, so there is no box to click into
   first and nothing that can swallow a keystroke meant for the lesson. */
.ktype__stage {
  display: grid;
  gap: 16px;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
  outline: none;
  transition: border-color 0.2s var(--ease);
}

.ktype__stage:focus-visible,
.ktype__stage:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.ktype__meters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

/* The line being typed. Big, because this is the thing you are reading. */
.ktype__text {
  margin: 0;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 2.2;
  overflow-wrap: anywhere;
}

.ktype__done {
  color: var(--gold-deep);
  opacity: 0.55;
}

.ktype__now {
  padding: 2px 1px;
  border-radius: 3px;
  background: var(--gold);
  color: var(--on-gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.ktype__now.is-missed {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 22%, transparent);
}

.ktype__rest {
  color: var(--ink);
}

.ktype__hint {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-caption);
  line-height: 1.6;
}

.ktype__hint b {
  color: var(--gold-deep);
}

.ktype__hint em::before {
  content: '· ';
}

.ktype__hint em {
  margin-left: 8px;
  color: var(--gold-deep);
  font-style: normal;
  font-weight: 700;
}

.ktype__done-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  padding: 14px 16px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
}

.ktype__done-card strong {
  color: var(--gold-deep);
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ktype__done-card span {
  flex: 1 1 240px;
  color: var(--ink);
  font-size: var(--fs-caption);
  line-height: 1.55;
}

/* ---- the chart ---------------------------------------------------------- */

.ktype__board {
  display: grid;
  gap: 5px;
  padding-bottom: 4px;
  overflow-x: auto;
}

.ktype__row {
  display: flex;
  gap: 5px;
  min-width: 640px;
}

.ktype__key {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  gap: 0;
  padding: 6px 4px 5px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  font-family: inherit;
  cursor: pointer;
  transition:
    transform 0.12s var(--ease),
    border-color 0.16s var(--ease),
    background 0.16s var(--ease);
}

.ktype__key b {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.ktype__key i {
  color: var(--ink);
  font-size: 17px;
  font-style: normal;
  line-height: 1.6;
}

/* What is actually printed on the key of an ordinary keyboard, so the chart
   can be followed by somebody with no Khmer legends in front of them. */
.ktype__key u {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  opacity: 0.65;
}

/* The fingers, in one accent. Eight colours would be a second palette; four
   weights of gold, mirrored left and right, separate the hands well enough to
   learn from — index fingers strongest, little fingers lightest. */
.ktype__key.is-l-index,
.ktype__key.is-r-index {
  background: color-mix(in srgb, var(--gold) 17%, var(--surface));
}

.ktype__key.is-l-middle,
.ktype__key.is-r-middle {
  background: color-mix(in srgb, var(--gold) 11%, var(--surface));
}

.ktype__key.is-l-ring,
.ktype__key.is-r-ring {
  background: color-mix(in srgb, var(--gold) 6%, var(--surface));
}

.ktype__key.is-home::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: translateX(-50%);
  opacity: 0.7;
}

.ktype__key.is-next {
  border-color: var(--gold);
  background: var(--grad-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--gold) 35%, transparent);
}

.ktype__key.is-next b,
.ktype__key.is-next i,
.ktype__key.is-next u {
  color: var(--on-gold);
  opacity: 1;
}

.ktype__key.is-missed {
  border-color: var(--danger);
  background: color-mix(in srgb, var(--danger) 14%, var(--surface));
}

.ktype__key--space {
  flex: 1 1 100%;
  gap: 2px;
  padding: 8px;
  text-align: center;
}

.ktype__key--space b,
.ktype__key--space i {
  font-size: var(--fs-micro);
  font-weight: 700;
}

.ktype__mod {
  flex: 0 0 74px;
  display: grid;
  place-items: center;
  padding: 6px 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-alt);
  color: var(--muted);
  font-size: var(--fs-nano);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ktype__mod.is-next {
  border-color: var(--gold);
  background: var(--grad-gold);
  color: var(--on-gold);
}

/* ---- the board, as a keyboard ------------------------------------------
   A deck with keys standing on it rather than a table of buttons: the caps
   have a skirt, a lit top edge and a shadow, and they travel when struck. The
   colours here are written out rather than taken from the theme tokens — the
   deck is dark in both light and dark mode, and a token that flips would put
   pale text on a pale cap for half the visitors. */

.ktype__board {
  gap: 7px;
  padding: 14px 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #000000 0%, #000000 62%, #000000 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 9%),
    inset 0 -2px 8px rgb(0 0 0 / 55%),
    0 20px 46px rgb(0 0 0 / 28%);
}

.ktype__row {
  gap: 7px;
}

.ktype__key {
  padding: 7px 4px 6px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(180deg, #f4f5ef 0%, #f4f5ef 100%);
  box-shadow:
    0 3px 0 #aeaeae,
    0 6px 12px rgb(0 0 0 / 38%),
    inset 0 1px 0 #fff;
  transform: translateY(0);
  transition:
    transform 0.07s ease-out,
    box-shadow 0.07s ease-out,
    background 0.16s var(--ease);
}

.ktype__key:hover {
  background: linear-gradient(180deg, #fff 0%, #f4f5ef 100%);
}

.ktype__key b {
  color: #909090;
}

.ktype__key i {
  color: #000000;
}

.ktype__key u {
  color: #a5a5a5;
  opacity: 1;
}

/* Struck: the cap goes down onto its skirt, which is the whole illusion. */
.ktype__key.is-down {
  transform: translateY(3px);
  box-shadow:
    0 0 0 #aeaeae,
    0 2px 5px rgb(0 0 0 / 45%),
    inset 0 1px 0 #fff;
}

/* The finger groups, as tints in the cap itself. */
.ktype__key.is-l-index,
.ktype__key.is-r-index {
  background: linear-gradient(180deg, #f4f5ef 0%, #ffb236 100%);
}

.ktype__key.is-l-middle,
.ktype__key.is-r-middle {
  background: linear-gradient(180deg, #f4f5ef 0%, #f4f5ef 100%);
}

.ktype__key.is-l-ring,
.ktype__key.is-r-ring {
  background: linear-gradient(180deg, #f4f5ef 0%, #f4f5ef 100%);
}

.ktype__key.is-home::after {
  bottom: 5px;
  background: #ffb236;
  opacity: 0.85;
}

.ktype__key.is-next {
  background: linear-gradient(180deg, #ffb236 0%, #ffb236 100%);
  box-shadow:
    0 3px 0 #ffb236,
    0 10px 22px rgba(255, 178, 54, 45%),
    inset 0 1px 0 rgb(255 255 255 / 55%);
  transform: translateY(-2px);
}

.ktype__key.is-next b,
.ktype__key.is-next i,
.ktype__key.is-next u {
  color: #000000;
  opacity: 1;
}

.ktype__key.is-missed {
  background: linear-gradient(180deg, #e8a5a1 0%, #c2544e 100%);
  box-shadow:
    0 3px 0 #7c2b27,
    0 8px 18px rgb(179 38 30 / 40%),
    inset 0 1px 0 rgb(255 255 255 / 40%);
}

.ktype__key.is-missed b,
.ktype__key.is-missed i,
.ktype__key.is-missed u {
  color: #000000;
  opacity: 1;
}

.ktype__mod {
  border: 0;
  background: linear-gradient(180deg, #000000 0%, #000000 100%);
  color: #b8b8b8;
  box-shadow:
    0 3px 0 #000000,
    inset 0 1px 0 rgb(255 255 255 / 8%);
}

.ktype__mod.is-next {
  background: linear-gradient(180deg, #ffb236 0%, #ffb236 100%);
  color: #000000;
  box-shadow:
    0 3px 0 #ffb236,
    inset 0 1px 0 rgb(255 255 255 / 45%);
}

.ktype__key--space {
  padding: 10px 8px;
}

.ktype__key--space b {
  color: #626262;
}

.ktype__key--space i {
  color: #000000;
  font-style: normal;
}

/* ---- full screen -------------------------------------------------------
   The board and the line, and nothing else on the page. */

.ktype__full {
  justify-self: end;
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--muted);
  font-family: inherit;
  font-size: var(--fs-nano);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.ktype__full:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
}

.ktype__stage.is-full {
  position: fixed;
  inset: 0;
  z-index: 120;
  align-content: center;
  gap: clamp(12px, 2vh, 26px);
  margin: 0;
  padding: clamp(16px, 3vw, 40px) clamp(16px, 4vw, 64px);
  border: 0;
  border-radius: 0;
  background: radial-gradient(120% 80% at 50% 0%, #000000 0%, #000000 62%, #000000 100%);
  overflow-y: auto;
}

.ktype__stage.is-full .ktype__text {
  background: rgb(255 255 255 / 6%);
  color: #f4f5ef;
  font-size: clamp(24px, 3.4vw, 44px);
}

.ktype__stage.is-full .ktype__rest {
  color: #f4f5ef;
}

.ktype__stage.is-full .ktype__done {
  color: #ffb236;
  opacity: 0.62;
}

.ktype__stage.is-full .ktype__hint {
  color: #cbbcae;
  text-align: center;
}

.ktype__stage.is-full .ktype__hint b {
  color: #ffb236;
}

.ktype__stage.is-full .ctool__tile {
  border-color: rgb(255 255 255 / 12%);
  background: rgb(255 255 255 / 6%);
}

.ktype__stage.is-full .ctool__tile strong {
  color: #f4f5ef;
}

.ktype__stage.is-full .ctool__tile span {
  color: #bcaa9c;
}

.ktype__stage.is-full .ktype__board {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

.ktype__stage.is-full .ktype__key i {
  font-size: clamp(17px, 1.5vw, 24px);
}

/* Superseded further down: the control now sits in the stage's own toolbar
   with the tour button, gold and labelled, because a grey pill in a corner is
   a control people do not find. */

/* On a phone the board still scrolls sideways — you cannot touch-type on a
   phone and the chart is a reference there — but smaller caps put seven keys
   on screen instead of four, which is the difference between reading the
   layout and hunting through it. */
@media (max-width: 700px) {
  .ktype__row {
    min-width: 520px;
    gap: 5px;
  }

  .ktype__key {
    border-radius: 9px;
  }

  .ktype__key i {
    font-size: 15px;
  }

  .ktype__key b {
    font-size: 10px;
  }

  .ktype__key u {
    font-size: 8px;
  }

  .ktype__mod {
    flex: 0 0 56px;
  }

  .ktype__key--space b,
  .ktype__key--space i {
    font-size: var(--fs-nano);
  }
}

/* ---- a tool that needs the whole page ----------------------------------
   One column, and the tool list underneath it. A 300px rail is right for a
   tool that answers in a paragraph and wrong for one that draws a keyboard:
   forty-five keys in a column 300px narrower than the page means either caps
   too small to read or a chart you scroll sideways to see the other hand.

   Underneath, the same sidebar becomes a directory. CSS columns rather than a
   grid, because the aside holds five shelves, two lists, a heading and a call
   to action — heterogeneous blocks that flow far better than they align. */

.tool-page__body--wide {
  grid-template-columns: minmax(0, 1fr);
}

.tool-page__body--wide .tool-page__side {
  columns: 4 210px;
  column-gap: clamp(24px, 3vw, 40px);
  padding: 26px clamp(20px, 2.4vw, 30px) 24px;
}

.tool-page__body--wide .tool-page__side > * {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

/* The shelves already space themselves from one another; in columns the first
   block in each column would otherwise start at a different height. */
.tool-page__body--wide .tool-page__side > .tool-page__shelf {
  margin-top: 0;
  margin-bottom: 22px;
}

.tool-page__body--wide .tool-page__side > h2 {
  margin-top: 0;
}

.tool-page__body--wide .tool-page__offer {
  margin-top: 4px;
}

/* The board is a keyboard, not a banner: past about 1180px the caps stop
   looking like keys and start looking like tiles, so it holds that width and
   centres in whatever room it has been given. */
/* `justify-self`, not an auto margin: an auto margin on a grid item switches
   off the stretch that was giving the board the column, and it silently
   collapsed back to the 640px its rows demand — centred, and no wider than
   before. */
.tool-page__body--wide .ktype__board {
  width: 100%;
  max-width: 1180px;
  justify-self: center;
}

/* ==========================================================================
   Khmer typing — the name, the clock, the record and the tour
   ========================================================================== */

/* Nothing white behind a full-screen board, ever. */
html.ktype-full,
html.ktype-full body {
  background: #000000;
}

/* ---- asked once, kept here ---- */

.ktype__hello {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 14px;
  padding: 15px 18px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
}

.ktype__hello > div {
  flex: 1 1 260px;
  display: grid;
  gap: 3px;
  min-width: 0;
}

.ktype__hello strong {
  color: var(--gold-deep);
  font-size: var(--fs-sm);
  font-weight: 800;
}

.ktype__hello span {
  color: var(--muted);
  font-size: var(--fs-micro);
  line-height: 1.5;
}

.ktype__hello input {
  flex: 0 1 200px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: var(--fs-caption);
}

.ktype__hello input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgb(255 255 255 / 55%);
}

.ktype__skip {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: var(--fs-micro);
  font-weight: 700;
  cursor: pointer;
}

.ktype__skip:hover {
  color: var(--gold-deep);
}

/* ---- the stage's own controls ---- */

.ktype__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.ktype__who {
  margin-right: auto;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: var(--fs-micro);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.ktype__tour-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--muted);
  font-family: inherit;
  font-size: var(--fs-micro);
  font-weight: 800;
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.ktype__tour-btn span {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--on-gold);
  font-size: 10px;
  font-weight: 900;
}

.ktype__tour-btn:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
}

/* Gold, with the icon: the earlier version was a grey pill in a corner and
   people could not find it, which is the only review a control needs. */
.ktype__full {
  justify-self: unset;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 15px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--grad-gold);
  color: var(--on-gold);
  font-size: var(--fs-micro);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--gold) 35%, transparent);
  transition:
    transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}

.ktype__full svg {
  width: 14px;
  height: 14px;
}

.ktype__full:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--gold) 42%, transparent);
  border-color: transparent;
  color: var(--on-gold);
}

/* ---- the countdown ---- */

.ktype__clock {
  position: relative;
  display: grid;
  place-items: center;
  gap: 0;
  padding: 10px 8px 12px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
}

.ktype__clock svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 74px;
  height: 74px;
  transform: translate(-50%, -58%) rotate(-90deg);
}

.ktype__clock circle {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
}

.ktype__clock-track {
  stroke: color-mix(in srgb, var(--gold) 26%, transparent);
}

.ktype__clock-run {
  stroke: var(--gold);
  transition: stroke-dashoffset 0.2s linear;
}

.ktype__clock.is-low .ktype__clock-run {
  stroke: var(--danger);
}

.ktype__clock strong {
  position: relative;
  color: var(--gold-deep);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
}

.ktype__clock.is-low strong {
  color: var(--danger);
}

.ktype__clock span {
  position: relative;
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--fs-nano);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

/* ---- the credit under the board ---- */

.ktype__by {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-nano);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
}

.ktype__by-mark {
  width: 5px;
  height: 5px;
  border-radius: 1.5px;
  background: var(--grad-gold);
  transform: rotate(45deg);
}

.ktype__by a {
  color: var(--gold-deep);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
}

.ktype__by a:hover {
  border-bottom-color: var(--gold);
}

/* No leaving-the-site arrow on this one: the credit is set in small caps with
   its own gold rule, and a glyph on the end of it reads as a typo. The
   attribute selector is there to match the specificity of the rule that adds
   the arrow — without it the arrow wins and the note ends in a stray glyph. */
.ktype__by a[href][target]::after {
  content: none;
}

.ktype__by em {
  flex-basis: 100%;
  color: var(--muted);
  font-size: var(--fs-nano);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

/* ---- the record ---------------------------------------------------------
   Collapsed until it has something to say, and it opens itself the moment a
   run lands in it. The height animates from a grid row rather than a max-
   height guess, so it is right whether the panel holds one run or sixty. */

.ktype__history {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.ktype__history-head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 15px 18px;
  border: 0;
  background: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.ktype__history-title {
  flex: 1 1 auto;
  display: grid;
  gap: 2px;
  min-width: 0;
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 800;
}

.ktype__history-title em {
  color: var(--muted);
  font-size: var(--fs-micro);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ktype__chev {
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.28s var(--ease);
}

.ktype__history.is-open .ktype__chev {
  transform: rotate(-135deg) translate(-3px, -3px);
}

.ktype__history-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.34s var(--ease);
}

.ktype__history.is-open .ktype__history-body {
  grid-template-rows: 1fr;
}

.ktype__history-inner {
  min-height: 0;
  overflow: hidden;
}

.ktype__history.is-open .ktype__history-inner {
  padding: 0 18px 18px;
}

.ktype__empty {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-caption);
  line-height: 1.6;
}

.ktype__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}

.ktype__stat {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}

.ktype__stat.is-hero {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.ktype__stat strong {
  color: var(--ink);
  font-size: var(--fs-h5);
  font-weight: 800;
  line-height: 1.15;
}

.ktype__stat.is-hero strong {
  color: var(--gold-deep);
}

.ktype__stat span {
  color: var(--muted);
  font-size: var(--fs-nano);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Two dozen runs, oldest at the left. No axis: the shape is the point, and
   the exact numbers are in the list underneath. */
.ktype__chart {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 4px;
  height: 92px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}

/* Capped, so a first run reads as one bar rather than a gold banner across
   the panel. */
.ktype__chart span {
  flex: 1 1 0;
  min-width: 3px;
  max-width: 38px;
  border-radius: 3px 3px 1px 1px;
  background: color-mix(in srgb, var(--gold) 42%, transparent);
  transition: background 0.2s var(--ease);
}

.ktype__chart span:hover {
  background: var(--gold);
}

.ktype__chart span.is-best {
  background: var(--grad-gold);
}

.ktype__runs {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1px;
  border-radius: var(--radius-sm);
  background: var(--line);
  overflow: hidden;
}

.ktype__runs li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 9px 13px;
  background: var(--surface);
}

.ktype__runs b {
  color: var(--ink);
  font-size: var(--fs-caption);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ktype__runs span {
  color: var(--muted);
  font-size: var(--fs-micro);
}

.ktype__runs em {
  color: var(--gold-deep);
  font-size: var(--fs-micro);
  font-style: normal;
  font-weight: 800;
}

.ktype__runs i {
  min-width: 44px;
  color: var(--muted);
  font-size: var(--fs-micro);
  font-style: normal;
  font-weight: 700;
  text-align: right;
}

.ktype__runs i.is-good {
  color: var(--gold-deep);
}

.ktype__runs i.is-bad {
  color: var(--danger);
}

.ktype__clear {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: var(--fs-micro);
  font-weight: 700;
  cursor: pointer;
}

.ktype__clear:hover {
  color: var(--danger);
}

/* The tour on this page is the site tour's own spotlight — see TourSpot and
   the .tour__* rules above. The card, ring and scrim styles that used to live
   here were a second look for the same idea. */

/* The stage's own controls, on the dark glass. */
.ktype__stage.is-full .ktype__tools {
  justify-content: flex-end;
}

.ktype__stage.is-full .ktype__who {
  background: rgb(255 255 255 / 10%);
  color: #ffb236;
}

.ktype__stage.is-full .ktype__tour-btn {
  border-color: rgb(255 255 255 / 22%);
  background: rgb(255 255 255 / 8%);
  color: #ffb236;
}

.ktype__stage.is-full .ktype__full {
  position: static;
  border: 0;
  background: var(--grad-gold);
  color: var(--on-gold);
}

.ktype__stage.is-full .ktype__clock {
  border-color: rgba(244, 245, 239, 45%);
  background: rgb(255 255 255 / 6%);
}

.ktype__stage.is-full .ktype__clock strong {
  color: #ffb236;
}

.ktype__stage.is-full .ktype__clock span {
  color: #bcaa9c;
}

.ktype__stage.is-full .ktype__clock-track {
  stroke: rgb(255 255 255 / 14%);
}

.ktype__stage.is-full .ktype__by {
  color: #b5a496;
}

.ktype__stage.is-full .ktype__by a {
  color: #ffb236;
}

.ktype__stage.is-full .ktype__done-card {
  border-color: rgba(244, 245, 239, 55%);
  background: rgb(255 255 255 / 7%);
}

.ktype__stage.is-full .ktype__done-card span {
  color: #f4f5ef;
}

.ktype__stage.is-full .ktype__done-card strong {
  color: #ffb236;
}

/* The board must never be the thing that gives way.
   A grid item whose own overflow is auto has a minimum size of zero, so a long
   line to copy first squashed the keyboard to a single row and then, once it
   was told to hold its height, made it overflow its row and print straight
   through the credit underneath. Grid rows are sized before an item refuses to
   shrink; a flex column is not, so the full-screen stage is a column: every
   band keeps its own height, the line takes a share of the window and scrolls
   inside itself, and what is left is centred — safely, so a short window
   cannot cut the top away. */

.ktype__stage.is-full {
  display: flex;
  flex-direction: column;
  justify-content: safe center;
}

.ktype__stage.is-full > * {
  flex: none;
}

.ktype__stage.is-full .ktype__text {
  flex: 0 1 auto;
  max-height: min(32vh, 300px);
  overflow-y: auto;
}

@media (max-height: 780px) {
  .ktype__stage.is-full .ktype__text {
    font-size: clamp(20px, 2.4vw, 30px);
    line-height: 1.95;
  }

  .ktype__stage.is-full .ktype__key i {
    font-size: clamp(15px, 1.2vw, 19px);
  }
}

/* ---- no keyboard, no practice ------------------------------------------
   Said once, plainly, where the exercise would have been. The chart stays
   underneath it: what the NiDA layout looks like is worth knowing on a phone
   even though touch-typing on one is not a thing. */

.ktype__phone {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 20px 20px 18px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
}

.ktype__phone-mark {
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad-gold);
}

.ktype__phone strong {
  color: var(--gold-deep);
  font-size: var(--fs-h6);
  font-weight: 800;
  line-height: 1.25;
}

.ktype__phone p {
  margin: 0;
  color: var(--ink);
  font-size: var(--fs-caption);
  line-height: 1.65;
}

.ktype__phone-keep {
  color: var(--muted) !important;
}

.ktype__phone .ktype__skip {
  margin-top: 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   "New", wherever a tool is listed
   ========================================================================== */

/* Small, gold and lit from inside: a solid gold chip on a gold-accented site
   would shout, and a grey one would not be news at all. The shine crosses it
   once every few seconds — long enough apart to catch the eye and not so often
   that a page of listings flickers. */

.badge-new,
.tool-page__new {
  position: relative;
  /*
   * inline-flex, and this matters more than it looks.
   *
   * `overflow: hidden` below is what keeps the shine inside the chip — and
   * overflow has no effect at all on an inline box. Everywhere the badge sits
   * in a flex container it is blockified and clips correctly; inside the home
   * page's tool rail it sits in a plain block span, stayed inline, and the
   * shine escaped: a translucent white bar parked 48px to the right of the
   * badge, which on a dark card reads as a stray grey rectangle. It was also
   * catching the pointer out there.
   */
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 2px 8px 3px;
  border-radius: var(--radius-pill);
  background: var(--grad-gold);
  color: var(--on-gold);
  font-size: var(--fs-tiny);
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow:
    0 2px 6px color-mix(in srgb, var(--gold) 40%, transparent),
    inset 0 1px 0 rgb(255 255 255 / 45%);
  overflow: hidden;
  vertical-align: 2px;
}

.badge-new::after,
.tool-page__new::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgb(255 255 255 / 55%) 46%, transparent 72%);
  transform: translateX(-120%);
  animation: badge-shine 4.5s ease-in-out 1.5s infinite;
}

@keyframes badge-shine {
  0% {
    transform: translateX(-120%);
  }

  18%,
  100% {
    transform: translateX(120%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .badge-new::after,
  .tool-page__new::after {
    animation: none;
    opacity: 0;
  }
}

/* The rails tint every span in a link gold for the chevron; this one carries
   its own colours. */
.tool-page__side li a .badge-new,
.tool-page__side li.is-current > span .badge-new,
.tool-page__side li a .tool-page__new {
  color: var(--on-gold);
}

/* Beside a name rather than after the whole row: the chevron is pinned to the
   right-hand edge, and a badge that drifted out to meet it would read as
   belonging to the arrow instead of to the tool. */
.tool-page__side li a,
.tool-page__side li.is-current > span {
  column-gap: 8px;
}

.tool-card__name .badge-new,
.home-faq__tool-name .badge-new {
  margin-left: 8px;
}

/* ==========================================================================
   The hands, on the keys
   ========================================================================== */

/* Nine translucent pads resting on the home row and the space bar. The one
   that owes you a key travels to it; the opposite little finger goes for Shift
   when the stroke needs it. A diagram of two hands beside the board says "this
   finger" — a pad that moves says "from here to there", and that is the part
   that has to end up in the hand rather than in the head.

   Drawn in glass rather than skin on purpose: a photographic hand would cover
   the legends you are trying to read, and would have to be right about a body
   it knows nothing about. */

.ktype__board {
  position: relative;
}

.ktype__hands {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.ktype__finger {
  position: absolute;
  top: 0;
  left: 0;
  border: 1px solid rgb(255 255 255 / 62%);
  /* A fingertip: wider at the pad, tapered where the nail sits. */
  border-radius: 46% 46% 50% 50% / 62% 62% 38% 38%;
  background:
    radial-gradient(120% 80% at 32% 22%, rgb(255 255 255 / 72%), transparent 58%),
    linear-gradient(180deg, rgb(255 255 255 / 34%), rgba(244, 245, 239, 26%));
  box-shadow:
    inset 0 5px 10px rgb(255 255 255 / 55%),
    inset 0 -7px 12px rgba(0, 0, 0, 22%),
    0 6px 14px rgba(0, 0, 0, 32%);
  backdrop-filter: blur(1.5px) saturate(115%);
  opacity: 0.62;
  transition:
    transform 0.26s cubic-bezier(0.22, 0.8, 0.2, 1),
    opacity 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    border-color 0.2s var(--ease);
  will-change: transform;
}

/* The finger you are waiting on: gold, lit, and slightly proud of the others. */
.ktype__finger.is-live {
  border-color: rgba(244, 245, 239, 92%);
  background:
    radial-gradient(120% 80% at 32% 22%, rgba(244, 245, 239, 88%), transparent 60%),
    linear-gradient(180deg, rgba(255, 178, 54, 62%), rgba(255, 178, 54, 46%));
  box-shadow:
    inset 0 5px 10px rgb(255 255 255 / 60%),
    inset 0 -7px 12px rgba(20, 20, 22, 30%),
    0 10px 22px rgba(255, 178, 54, 55%),
    0 0 0 3px rgba(244, 245, 239, 28%);
  opacity: 1;
}

/* The thumbs share the bar, so they sit on their own half of it rather than
   both landing in the middle. */
.ktype__finger--thumb {
  border-radius: 44% 44% 46% 46% / 52% 52% 48% 48%;
}

@media (prefers-reduced-motion: reduce) {
  .ktype__finger {
    transition: opacity 0.2s var(--ease);
  }
}

/* ---- the switch ---- */

.ktype__hands-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--muted);
  font-family: inherit;
  font-size: var(--fs-micro);
  font-weight: 800;
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.ktype__hands-btn span {
  width: 13px;
  height: 15px;
  border: 1px solid currentcolor;
  border-radius: 46% 46% 50% 50% / 62% 62% 38% 38%;
  opacity: 0.7;
}

.ktype__hands-btn:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
}

.ktype__hands-btn.is-on {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.ktype__hands-btn.is-on span {
  background: var(--grad-gold);
  border-color: var(--gold);
  opacity: 1;
}

.ktype__stage.is-full .ktype__hands-btn {
  border-color: rgb(255 255 255 / 22%);
  background: rgb(255 255 255 / 8%);
  color: #ffb236;
}

.ktype__stage.is-full .ktype__hands-btn.is-on {
  border-color: rgba(255, 178, 54, 60%);
  background: rgba(244, 245, 239, 16%);
  color: #ffb236;
}

/* ==========================================================================
   Free download
   ========================================================================== */

.dl__card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 15px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition:
    border-color 0.22s var(--ease),
    transform 0.22s var(--ease);
}

.dl__card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.dl__card header {
  display: grid;
  gap: 3px;
}

.dl__card h4 {
  margin: 0;
  color: var(--ink);
  font-size: var(--fs-h5);
  font-weight: 800;
  line-height: 1.25;
}

.dl__who {
  color: var(--gold-deep);
  font-size: var(--fs-caption);
  font-weight: 700;
}

.dl__card p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.65;
}

.dl__note {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
  color: var(--gold-deep) !important;
  font-weight: 600;
}

.dl__act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 4px;
}

/* The size and the date are the two things a person actually wants before
   they start a download on a slow line; the count is there because a number
   that nobody can see is not a reason for anybody to trust the thing. */
.dl__meta {
  color: var(--muted);
  font-size: var(--fs-caption);
}

.dl__soon {
  padding: 8px 14px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: var(--fs-micro);
  font-weight: 700;
}

.dl__copy {
  margin-top: clamp(28px, 4vw, 46px);
}

/* ==========================================================================
   A release on the download page
   ========================================================================== */

/* One block per product: what it is on the left, the builds on the right. The
   page grows by adding a product rather than by adding another row of buttons,
   because the next thing given away here will need the same room to explain
   itself. */

/* Not a card in a page — the page. The text now begins where the logo begins
   and the shelf ends where the header ends, so the release lines up with the
   site around it instead of sitting in a box inside it. Products are separated
   by a rule, which is all the separation a list of two needs. */
.rel {
  border-radius: 0;
  background: none;
}

.rel + .rel {
  margin-top: clamp(30px, 4vw, 52px);
  padding-top: clamp(30px, 4vw, 52px);
  border-top: 1px solid var(--line);
}

.rel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

/* The letter, as the product's mark. Nothing else on the page needs to say
   which language this is about. */
.rel__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(160deg, #000000, #000000);
  color: var(--gold-bright);
  font-family: 'Khmer Sangam MN', 'Noto Sans Khmer', system-ui, sans-serif;
  font-size: 34px;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 12%),
    0 10px 24px rgba(0, 0, 0, 32%);
}

.rel__id {
  flex: 1 1 260px;
  min-width: 0;
}

.rel__id h2 {
  margin: 0;
  color: var(--ink);
  font-size: var(--fs-h4);
  font-weight: 800;
  line-height: 1.15;
}

.rel__khmer {
  margin: 3px 0 0;
  color: var(--gold-deep);
  font-size: var(--fs-sm);
  line-height: 1.9;
}

.rel__tagline {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.rel__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0;
}

.rel__facts dt {
  color: var(--muted);
  font-size: var(--fs-nano);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rel__facts dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 800;
}

.rel__body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(22px, 3.4vw, 52px);
  padding: clamp(22px, 2.8vw, 34px) 0 0;
}

@media (max-width: 920px) {
  .rel__body {
    grid-template-columns: minmax(0, 1fr);
  }
}

.rel__about > p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: 1.75;
}

.rel__points {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.rel__points li {
  display: grid;
  gap: 3px;
  padding: 13px 16px;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--bg-alt);
}

.rel__points strong {
  color: var(--ink);
  font-size: var(--fs-h5);
  font-weight: 800;
}

.rel__points span {
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.65;
}

.rel__lists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px 26px;
  margin-top: 22px;
}

.rel__lists h3 {
  margin: 0 0 8px;
  color: var(--gold-deep);
  font-size: var(--fs-micro);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rel__lists ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.rel__lists li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.rel__lists li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 1.5px;
  background: var(--grad-gold);
  transform: rotate(45deg);
}

/* Sticky, so the builds stay beside whatever you are reading. The left column
   is long by design — this is the page where somebody decides which file they
   want — and a download shelf that scrolls away is a decision they have to
   scroll back for. Clears the fixed header, and only sticks where there is
   room to: below the breakpoint it is a block like everything else. */
.rel__get {
  align-self: start;
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-alt);
}

@media (min-width: 921px) {
  .rel__get {
    position: sticky;
    top: calc(var(--header-h) + 18px);
  }
}

.rel__get > h3 {
  margin: 0;
  color: var(--ink);
  font-size: var(--fs-micro);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* The way to use it without downloading anything, given the same weight as a
   build rather than a footnote under them: for most people it is the right
   answer, and it costs them nothing to find out. */
.rel__online {
  display: grid;
  gap: 4px;
  padding: 15px 16px 14px;
  border: 1px solid var(--gold);
  border-radius: 14px;
  background: var(--grad-gold);
  color: var(--on-gold);
  text-decoration: none;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--gold) 30%, transparent);
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.rel__online:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px color-mix(in srgb, var(--gold) 40%, transparent);
}

.rel__online strong {
  font-size: var(--fs-h5);
  font-weight: 800;
  line-height: 1.25;
}

.rel__online span {
  font-size: var(--fs-sm);
  line-height: 1.55;
  opacity: 0.86;
}

/* The total, once, under the releases. */
.dl__total {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 0;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  color: var(--muted);
  font-size: var(--fs-sm);
}

.dl__total span {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad-gold);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 20%, transparent);
}

/* The copy under the releases.
   It was set to the reading measure inside a block twice as wide, which left
   300px of white down the right and a 64px trench between every section. Two
   columns at a comfortable measure fill the block edge to edge and shorten the
   distance between one idea and the next — one column as soon as there is not
   room for two. */

.dl__copy {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(430px, 100%), 1fr));
  align-items: start;
  gap: 26px clamp(28px, 3.4vw, 56px);
  max-width: none;
  margin-top: clamp(26px, 3.4vw, 44px);
}

.dl__copy section {
  break-inside: avoid;
}

.dl__copy h2 {
  margin: 0 0 14px;
  font-size: var(--fs-h4);
}

.dl__copy p {
  margin: 0 0 14px;
  font-size: var(--fs-body);
  line-height: 1.75;
}

.dl__copy p:last-child {
  margin-bottom: 0;
}

/* The way back to the tools, at the end of the reading.
   Across both columns rather than in one of them: it closes the page, and a
   closing note that occupies half of it reads as a fifth topic instead. The
   sentence and the way out sit on one line where there is room. */
.dl__also {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px clamp(20px, 3vw, 40px);
  margin-top: 6px;
  padding: 22px 24px;
  border: 1px solid var(--gold);
  border-radius: 18px;
  background: var(--gold-soft);
}

.dl__also h2 {
  grid-column: 1 / -1;
}

@media (max-width: 700px) {
  .dl__also {
    grid-template-columns: minmax(0, 1fr);
  }
}

.dl__also h2 {
  color: var(--gold-deep);
}

.dl__also p {
  color: var(--ink);
}

.dl__also-act {
  margin: 0 !important;
  white-space: nowrap;
}

/* ---- screenshots, the way a store shows them ---------------------------
   A strip that scrolls sideways and snaps, each shot in a window frame with a
   caption under it. These are captured by the application itself rather than
   drawn — what is on this page is what the software looks like. */

.shots {
  margin: 22px 0 0;
  /* Bleeds to the container edge so the strip reads as something you can push
     rather than a row that happens to be cut off. */
  margin-right: calc(-1 * clamp(22px, 3.4vw, 52px));
}

.shots__strip {
  display: flex;
  gap: 16px;
  padding-bottom: 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.shots__item {
  flex: 0 0 min(78%, 420px);
  margin: 0;
  scroll-snap-align: start;
}

/* The frame: a dark bezel with a lit top edge, the way the app itself is
   drawn. No fake title bar — the app has none, and a chrome that is not there
   is a lie about the product. */
.shots__frame {
  border: 1px solid color-mix(in srgb, var(--gold) 26%, transparent);
  border-radius: 16px;
  background: linear-gradient(180deg, #000000, #000000);
  padding: 7px;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 10%),
    0 16px 34px rgba(0, 0, 0, 28%);
  transition:
    transform 0.24s var(--ease),
    box-shadow 0.24s var(--ease),
    border-color 0.24s var(--ease);
}

.shots__item:hover .shots__frame {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 12%),
    0 22px 44px rgba(0, 0, 0, 36%);
}

.shots__frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.shots__item figcaption {
  margin-top: 10px;
  padding-right: 12px;
  color: var(--muted);
  font-size: var(--fs-caption);
  line-height: 1.55;
}

/* ---- the online call, in the product's own clothes ---------------------
   Another gold block beside three cream cards was a fourth thing that looked
   like the other three. This one is the keyboard: the dark deck, a gold
   hairline, a keycap for a bullet — so the eye reads "this is the app, running
   here" rather than "another button". */

.rel__online {
  position: relative;
  display: grid;
  gap: 6px;
  margin-top: 4px;
  padding: 18px 18px 17px;
  border: 1px solid color-mix(in srgb, var(--gold) 34%, transparent);
  border-radius: 16px;
  background:
    radial-gradient(120% 90% at 88% 0%, rgba(244, 245, 239, 20%), transparent 62%),
    linear-gradient(180deg, #000000 0%, #000000 70%, #000000 100%);
  color: #f4f5ef;
  text-decoration: none;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 10%),
    0 14px 30px rgba(0, 0, 0, 30%);
  transition:
    transform 0.22s var(--ease),
    box-shadow 0.22s var(--ease),
    border-color 0.22s var(--ease);
}

/* A keycap, half out of frame: the product's own furniture, not an icon set. */
.rel__online::after {
  content: 'ក';
  position: absolute;
  right: -14px;
  bottom: -22px;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(180deg, #f4f5ef, #f4f5ef);
  color: #000000;
  font-family: 'Khmer Sangam MN', 'Noto Sans Khmer', system-ui, sans-serif;
  font-size: 30px;
  line-height: 1;
  transform: rotate(-8deg);
  box-shadow:
    0 4px 0 #aeaeae,
    0 10px 20px rgb(0 0 0 / 40%);
  opacity: 0.9;
  transition: transform 0.24s var(--ease);
}

.rel__online:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 14%),
    0 20px 40px rgba(0, 0, 0, 38%);
}

.rel__online:hover::after {
  transform: rotate(-8deg) translateY(-4px);
}

.rel__online strong {
  position: relative;
  padding-right: 56px;
  color: #ffb236;
  font-size: var(--fs-h5);
  font-weight: 800;
  line-height: 1.3;
}

.rel__online span {
  position: relative;
  padding-right: 56px;
  color: #b6b6b6;
  font-size: var(--fs-sm);
  line-height: 1.55;
}

/* ==========================================================================
   What's new — the releases, on a rail
   ========================================================================== */

/* One entry per version, newest at the top, on a gold rail that runs the
   length of the history. The version number is written once in the data and
   read from there by the badge above, the date beside it and this list — so a
   release is an entry, not four edits that can disagree. */

.log {
  margin-top: clamp(26px, 3.4vw, 42px);
  padding-top: clamp(22px, 2.8vw, 32px);
  border-top: 1px solid var(--line);
}

.log__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--ink);
  font-size: var(--fs-h5);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.log__head em {
  color: var(--muted);
  font-size: var(--fs-micro);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.log__list {
  margin: 0;
  padding: 0 0 0 26px;
  list-style: none;
}

.log__item {
  position: relative;
  padding: 0 0 22px 20px;
}

/* The rail: a hairline behind the nodes, stopping at the last one rather than
   running off the end of the history. */
.log__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  bottom: -8px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    var(--gold),
    color-mix(in srgb, var(--gold) 12%, transparent)
  );
}

.log__item:last-child {
  padding-bottom: 0;
}

.log__item:last-child::before {
  display: none;
}

.log__node {
  position: absolute;
  left: -5px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: var(--surface);
  border: 2px solid color-mix(in srgb, var(--gold) 55%, transparent);
  transform: rotate(45deg);
}

.log__item.is-latest .log__node {
  background: var(--grad-gold);
  border-color: transparent;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--gold) 18%, transparent);
}

.log__stamp {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin: 0 0 6px;
}

.log__stamp b {
  color: var(--ink);
  font-size: var(--fs-h5);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.log__stamp time {
  color: var(--muted);
  font-size: var(--fs-caption);
}

.log__now {
  padding: 2px 9px 3px;
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: var(--fs-nano);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.log__item.is-latest .log__now {
  background: var(--grad-gold);
  color: var(--on-gold);
}

.log__note {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.65;
}

/* The groups sit side by side where there is room: a release with three
   headings and two lines under each should read as one release, not three. */
.log__body > .log__group {
  margin-top: 12px;
}

.log__group h4 {
  margin: 0 0 6px;
  color: var(--gold-deep);
  font-size: var(--fs-nano);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.log__group ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 6px 28px;
}

.log__group li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.log__group li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 1.5px;
  background: var(--grad-gold);
  transform: rotate(45deg);
}

/* The Khmer name leads, and it is the larger of the two.
   This is software for Khmer readers; the English title is the subtitle, and
   the type sizes should say so. Khmer also needs more leading than Latin at
   the same size — the subscripts hang below the line. */

.rel__id .rel__khmer {
  order: -1;
  margin: 0 0 2px;
  color: var(--gold-deep);
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.75;
}

.rel__id h2 {
  font-size: var(--fs-h5);
  font-weight: 800;
  letter-spacing: 0.01em;
}

/* One line on a phone: the count is the message, the explanation is a footnote
   and folds away rather than wrapping to three lines under it. */
.dl__total b {
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.dl__total em {
  font-style: normal;
}

@media (max-width: 700px) {
  .dl__total {
    padding: 12px 16px;
  }

  .dl__total em {
    display: none;
  }
}

/* ---- Author profile: fact file and ventures -------------------------------
   Appended, so these win over anything above at equal specificity — the rule
   this stylesheet has followed since it passed ten thousand lines. Colours are
   taken from the pairs that hold still between light and dark (--ink, --muted,
   --line, --surface) except the gold accents, which flip together. */

.author-facts {
  display: grid;
  gap: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.author-facts__row {
  display: grid;
  grid-template-columns: minmax(140px, 200px) minmax(0, 1fr);
  gap: 16px;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
}

.author-facts__row:first-child {
  border-top: 0;
}

.author-facts__k {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--gold-deep);
}

.author-facts__v {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--ink);
}

@media (max-width: 620px) {
  .author-facts__row {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

/* ---- About Us mega: the founder card ------------------------------------
   Appended, so it wins over the base .mega rules at equal specificity. Built
   from the same tokens as .mega--services, because a second panel that looks
   like a different site is worse than no panel. */

/* Sized to the header bar rather than to itself, so the panel reads as the
   menu opening rather than as a box landing on top of the page. */
.mega--about {
  position: fixed;
  /* The announcement bar pushes the header down, and these two panels are
     positioned against the viewport rather than against their trigger — so
     without --ann-h they open behind the header on any page showing an
     announcement. The narrow panels never had the fault: they are absolute,
     so they follow the button. */
  top: calc(var(--ann-h, 0px) + var(--header-h) + 12px);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  /* Exactly the header bar: it sits in `.container` (max --container, 48px of
     padding each side), so the panel matching that arithmetic lines its edges
     up with the pill above it at every width. A panel merely "about as wide"
     reads as a misalignment rather than as a menu. */
  width: min(calc(var(--container) - 96px), calc(100vw - 96px));
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) 1.28fr;
}

/*
 * The destinations, as a two-by-two of cards.
 *
 * A single column of four inherited the grid's stretched rows: with the
 * founder card setting the height, three links were spread over 350px with
 * sixty pixels of nothing between them. `align-content: start` stops the
 * stretching, and the second column turns the leftover width into content
 * instead of margin.
 */
.mega--about .mega__list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* Rows at the height of what is in them. Stretching them to fill the panel
     put a line of text at the top of a 120px card and called the rest of it
     design; the fix is to make the other column shorter, not this one taller. */
  grid-auto-rows: min-content;
  align-content: center;
  gap: 8px;
  padding: 18px;
}

.mega--about .mega__list > li > a {
  position: relative;
  height: 100%;
  padding: 13px 34px 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition:
    border-color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

/* A chevron that arrives on hover. Present in the layout from the start —
   the padding above reserves its column — so nothing shifts when it appears. */
.mega--about .mega__list > li:not(.mega__span) > a::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 15px;
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 1.6px solid var(--gold);
  border-bottom: 1.6px solid var(--gold);
  transform: translateX(-4px) rotate(-45deg);
  opacity: 0;
  transition:
    opacity var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.mega--about .mega__list > li:not(.mega__span) > a:hover::after {
  opacity: 1;
  transform: translateX(0) rotate(-45deg);
}

.mega--about .mega__list > li > a:hover {
  border-color: color-mix(in srgb, var(--gold) 55%, var(--line));
  background: var(--gold-soft);
  transform: translateY(-2px);
}

/* The closing row, across both columns. */
.mega__span {
  grid-column: 1 / -1;
}

.mega--about .mega__span > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  border-color: color-mix(in srgb, var(--gold) 34%, var(--line));
  background: linear-gradient(
    120deg,
    color-mix(in srgb, var(--gold-soft) 85%, transparent),
    color-mix(in srgb, var(--gold-soft) 30%, transparent)
  );
}

.mega--about .mega__span svg {
  flex: none;
  color: var(--gold-deep);
  transition: transform var(--dur-fast) var(--ease);
}

.mega--about .mega__span > a:hover svg {
  transform: translateX(3px);
}

.mega--about::before {
  display: none;
}

.mega-founder {
  gap: 0;
  padding: 22px 24px;
}

/* Two lines of biography. The third was always the one that pushed this
   column past the destinations beside it. */
.mega--about .mega__feature-note {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: var(--fs-sm);
}

.mega-founder__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

/* The portrait: a gold ring that turns, and a sheen that crosses it on hover.
   The panel is on screen for a second or two, so the movement has to read
   immediately or not happen at all. */
.mega-founder__portrait {
  position: relative;
  flex: none;
  width: 78px;
  height: 100px;
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
}

.mega-founder__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 16px;
}

.mega-founder__ring {
  position: absolute;
  inset: -2px;
  z-index: 1;
  border-radius: 18px;
  padding: 2px;
  background: conic-gradient(
    from 180deg,
    var(--gold-bright),
    var(--gold),
    var(--gold-deep),
    var(--gold-bright)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: mega-founder-spin 6s linear infinite;
}

.mega-founder__shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    115deg,
    transparent 38%,
    color-mix(in srgb, #fff 60%, transparent) 50%,
    transparent 62%
  );
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease);
}

.mega-founder:hover .mega-founder__shine {
  transform: translateX(120%);
}

@keyframes mega-founder-spin {
  to {
    transform: rotate(1turn);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mega-founder__ring {
    animation: none;
  }

  .mega-founder__shine {
    display: none;
  }
}

.mega-founder__who {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.mega-founder__name {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.mega-founder__role {
  font-style: normal;
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* Chips and button on one line. Stacked, they were two rows of furniture
   under a two-line bio, and that stack is the whole reason this column ran
   ninety pixels past the destinations beside it. */
.mega-founder__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.mega-founder__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mega-founder__stats li {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 5px 10px;
  border: 1px solid color-mix(in srgb, var(--gold) 26%, var(--line));
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.mega-founder__stats b {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink);
}

.mega-founder__stats span {
  font-size: var(--fs-micro);
  color: var(--muted);
}

.mega-founder .mega__feature-cta {
  margin-top: 0;
  padding: 9px 18px;
}

/* Below the burger breakpoint the panel is inside the stacked menu, where a
   two-column card would put the portrait beside nothing.
   
   The drawer hides `.mega__feature` everywhere else, and rightly — a feature
   panel there only pushes the links down. This one is put back, because
   without it the founder vanishes from the mobile menu entirely: he lives in
   the card, not in the list. It is cut to a portrait, a name and the link, so
   it costs about one row. */
@media (max-width: 1199px) {
  .mega--about {
    position: static;
    transform: none;
    width: auto;
    grid-template-columns: 1fr;
  }

  .mega--about .mega__list {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 6px;
    padding: 12px;
  }

  .mega-founder__foot {
    margin-top: 12px;
  }

  .mega--about .mega__feature {
    display: flex;
    padding: 16px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .mega--about .mega__feature .eyebrow,
  .mega--about .mega__feature-note,
  .mega-founder__stats {
    display: none;
  }

  .mega-founder__head {
    margin-bottom: 0;
  }

  .mega-founder__portrait {
    width: 60px;
    height: 74px;
  }

  .mega-founder .mega__feature-cta {
    margin-top: 14px;
  }
}

/* ---- Home: "What we build", as a scroll-highlighted list ------------------
   Appended, so it wins over the generic card rules at equal specificity.
   The lit state is the default: everything below dims only where the browser
   can drive an animation from the scroll position, so an unsupported browser
   gets the finished page rather than a permanently faded one. */

.home-build__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

/* Stays with the list rather than scrolling away from it — the heading is the
   question the four answers belong to. */
.home-build__intro {
  position: sticky;
  top: calc(var(--ann-h, 0px) + var(--header-h) + clamp(24px, 4vw, 56px));
}

.home-build__intro .display {
  margin: 0 0 14px;
}

.home-build__intro .lede {
  margin: 0 0 22px;
  max-width: 42ch;
}

.home-build__all {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: var(--fs-h6);
  font-weight: 600;
  color: var(--gold-deep);
}

.home-build__all svg {
  transition: transform var(--dur-fast) var(--ease);
}

.home-build__all:hover svg {
  transform: translateX(3px);
}

/* Below the fold of the intro column, where it would otherwise sit empty
   while the taller list of four scrolls past beside it. */
.home-build__promo {
  margin-top: clamp(32px, 4vw, 56px);
}

.home-build__list {
  display: grid;
  gap: clamp(10px, 1.6vw, 18px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: build;
}

.home-build__row {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-areas:
    'no body'
    'icon body';
  gap: 4px 20px;
  padding: clamp(20px, 2.4vw, 30px) clamp(20px, 2.4vw, 30px) clamp(20px, 2.4vw, 30px)
    clamp(26px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.home-build__row:hover {
  border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
  box-shadow: 0 26px 50px -34px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

/* The gold rule down the left edge: the mark of the one being read. */
.home-build__rail {
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 3px;
  background: var(--grad-gold);
  transform-origin: 50% 50%;
}

.home-build__no {
  grid-area: no;
  font-size: var(--fs-caption);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
}

.home-build__icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  transition:
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.home-build__row:hover .home-build__icon {
  background: var(--grad-gold);
  color: var(--on-gold);
}

.home-build__body {
  grid-area: body;
  min-width: 0;
}

.home-build__title {
  margin: 0 0 8px;
  font-size: var(--fs-h4);
  line-height: 1.25;
  color: var(--ink);
}

.home-build__text {
  margin: 0 0 14px;
  max-width: 58ch;
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: 1.65;
}

.home-build__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-h6);
  font-weight: 600;
  color: var(--gold-deep);
}

.home-build__row:hover .home-build__go svg {
  transform: translateX(3px);
}

.home-build__go svg {
  transition: transform var(--dur-fast) var(--ease);
}

/*
 * The highlight itself.
 *
 * Driven by the scroll position through `animation-timeline: view()`, so there
 * is no observer, no state and no script — the browser interpolates it from
 * where the element sits in the viewport. The range is deliberately narrow at
 * both ends: an item is lit while it is anywhere near the middle of the screen
 * and recedes only as it leaves.
 *
 * Everything is inside @supports and a reduced-motion guard, which is what
 * makes the plain rendering above the correct fallback rather than a
 * degradation.
 */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
    .home-build__item {
      animation: build-dim linear both;
      animation-timeline: view();
      animation-range: cover 6% cover 94%;
    }

    .home-build__rail {
      animation: build-rail linear both;
      animation-timeline: view();
      animation-range: cover 6% cover 94%;
    }

    /* Lit across a narrow band in the middle of each item's pass through the
       viewport. Three rows are on screen at 900px tall, so a wide band lit all
       three at once and the effect read as nothing happening; this way the one
       near the centre is clearly the one being read. */
    @keyframes build-dim {
      0% {
        opacity: 0.3;
        transform: scale(0.98);
      }

      40%,
      60% {
        opacity: 1;
        transform: scale(1);
      }

      100% {
        opacity: 0.3;
        transform: scale(0.98);
      }
    }

    @keyframes build-rail {
      0% {
        transform: scaleY(0.12);
        opacity: 0.2;
      }

      40%,
      60% {
        transform: scaleY(1);
        opacity: 1;
      }

      100% {
        transform: scaleY(0.12);
        opacity: 0.2;
      }
    }
  }
}

@media (max-width: 899px) {
  .home-build__grid {
    grid-template-columns: 1fr;
  }

  .home-build__intro {
    position: static;
  }

  /* On a phone the body runs to eight or nine lines, and a number and an icon
     stacked in a side column left the icon floating half way down beside it.
     They sit together above the text instead, where they read as a label. */
  .home-build__row {
    grid-template-columns: 46px auto;
    grid-template-areas:
      'icon no'
      'body body';
    gap: 12px 14px;
    align-items: center;
    justify-content: start;
  }

  .home-build__no {
    align-self: center;
  }

  .home-build__body {
    margin-top: 2px;
  }
}

/* ---- The lit card ---------------------------------------------------------
   The row keeps its ordinary surface; everything that says "this is the one
   you are reading" lives in a layer above it, so the scroll timeline only has
   to move opacity. Light mode blooms gold from the rail; dark mode fills with
   burgundy and puts a gold rim on it. Each mode paints its own layer, so
   neither can inherit a colour that flips underneath it. */

/*
 * No `overflow: hidden` here, deliberately.
 *
 * It was clipping the glow's corners — which `border-radius: inherit` on the
 * glow already does — and in exchange it made the row a scroll container. A
 * `view()` timeline resolves against the nearest scroll container, so every
 * glow was measuring itself against a box it never moves inside: the timeline
 * sat at one value and all four cards stayed lit at once.
 */
.home-build__row {
  isolation: isolate;
}

.home-build__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  background:
    radial-gradient(
      120% 150% at 0% 0%,
      color-mix(in srgb, var(--gold-soft) 95%, transparent),
      transparent 62%
    ),
    linear-gradient(
      118deg,
      color-mix(in srgb, var(--gold-bright) 28%, transparent),
      transparent 58%
    );
  transition: opacity var(--dur) var(--ease);
}

/* A hairline of gold around the lit card, drawn as its own layer so the border
   underneath keeps the layout honest at every state. */
.home-build__glow::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
}

/* Hover lights the same treatment, which is what a browser without
   scroll-driven animation falls back to. */
.home-build__row:hover .home-build__glow {
  opacity: 1;
}

:root[data-theme='dark'] .home-build__glow,
:root[data-theme='auto'][data-night='1'] .home-build__glow {
  background:
    radial-gradient(
      130% 150% at 0% 0%,
      color-mix(in srgb, var(--brand-burgundy-mid) 92%, transparent),
      transparent 66%
    ),
    linear-gradient(118deg, var(--brand-burgundy-deep), transparent 62%);
}

:root[data-theme='dark'] .home-build__glow::after,
:root[data-theme='auto'][data-night='1'] .home-build__glow::after {
  border-color: color-mix(in srgb, var(--gold) 42%, transparent);
  box-shadow: 0 0 34px -12px color-mix(in srgb, var(--gold) 55%, transparent);
}

/* On the lit card the icon stops being a tinted square and fills with gold. */
.home-build__row:hover .home-build__icon {
  background: var(--grad-gold);
  color: var(--on-gold);
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
    .home-build__glow {
      animation: build-glow linear both;
      animation-timeline: view();
      animation-range: cover 6% cover 94%;
    }

    @keyframes build-glow {
      0% {
        opacity: 0;
      }

      40%,
      60% {
        opacity: 1;
      }

      100% {
        opacity: 0;
      }
    }
  }
}

/* ---- Accordions that open like a spring ----------------------------------
   Every FAQ on the site is a native <details>, which the browser has always
   snapped open in one frame. `::details-content` and `interpolate-size` let
   that become a real height animation without a line of script: the panel
   springs open, the answer arrives just behind it, and the + turns into a −
   on the same curve.

   All of it is additive. A browser without `::details-content` never matches
   these rules and keeps the instant open it has today — the answer is on
   screen either way, which is the part that matters. */

:root {
  /* Height cannot animate to `auto` unless it is allowed to interpolate
     keywords. Scoped to nothing else on the site, which animates heights with
     the 0fr grid trick rather than with keywords. */
  interpolate-size: allow-keywords;

  /* A spring, written as an easing curve: quick out of the gate, a whisker
     past the target, settled. Motion's default spring, sampled — a transition
     cannot overshoot with a cubic-bezier, and the overshoot is the part that
     reads as physical rather than mechanical. */
  --ease-spring: linear(
    0,
    0.006,
    0.025 2.8%,
    0.101 6.1%,
    0.539 18.9%,
    0.721 25.3%,
    0.849 31.5%,
    0.937 38.1%,
    0.968 41.8%,
    0.991 45.7%,
    1.006 50.1%,
    1.015 55%,
    1.017 63.9%,
    1.001 100%
  );
}

.home-faq__item::details-content,
.faq-card::details-content,
.faq-item::details-content {
  block-size: 0;
  overflow: clip;
  opacity: 0;
  /* The answer starts a few pixels high and drops into place, so it reads as
     coming out of the question rather than appearing under it. */
  transform: translateY(-6px);
  transition:
    block-size 0.42s var(--ease-spring),
    opacity 0.22s ease,
    transform 0.34s var(--ease-spring),
    content-visibility 0.42s allow-discrete;
}

.home-faq__item[open]::details-content,
.faq-card[open]::details-content,
.faq-item[open]::details-content {
  block-size: auto;
  opacity: 1;
  transform: translateY(0);
}

/* The mark follows the same curve as the panel, so one movement reads as one
   gesture rather than two things happening at once. */
.home-faq__mark::before,
.home-faq__mark::after,
.faq-card__mark::before,
.faq-card__mark::after {
  transition: transform 0.34s var(--ease-spring);
}

/* Somebody who has asked not to be animated gets the instant open back. */
@media (prefers-reduced-motion: reduce) {
  .home-faq__item::details-content,
  .faq-card::details-content,
  .faq-item::details-content {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ---- FAQ answers: the reading size, not the heading size -----------------
   Answers were set at --fs-body (16px) with `strong` at 700, and a bulleted
   list of seven bolded service names at that size reads as a stack of small
   headings rather than as an answer. The rest of the site's secondary prose —
   the profile answers, the sidebar copy — sits at --fs-sm, so these join it:
   two pixels down, and emphasis at 600, which still marks a term without
   shouting it. */

.home-faq__a,
.faq-card__a .faq-answer,
.faq-item .faq-answer {
  font-size: var(--fs-sm);
  /* A touch more leading, because the same measure at a smaller size needs it
     to stay comfortable. */
  line-height: 1.72;
}

.home-faq__a strong,
.home-faq__a b,
.faq-card__a strong,
.faq-card__a b,
.faq-item .faq-answer strong,
.faq-item .faq-answer b {
  font-weight: 600;
}

.home-faq__a li,
.faq-card__a li,
.faq-item .faq-answer li {
  font-size: inherit;
  line-height: inherit;
}

/* ---- The stack band, above the footer -----------------------------------
   Compact on purpose: it sits between the closing call to action and the
   footer, where a full section would be a third ending to the page. A heading
   line, then one moving rail. */

.tech-strip {
  padding-block: clamp(20px, 2.6vw, 34px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-alt), var(--surface));
  overflow: hidden;
}

.tech-strip__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin-bottom: 18px;
}

.tech-strip__head .eyebrow {
  margin: 0;
}

.tech-strip__title {
  margin: 0;
  font-size: var(--fs-h5);
  font-weight: 600;
  color: var(--ink);
}

/* The rail fades out at both edges rather than stopping at a hard line, so
   the movement reads as continuous rather than as a strip that ends. */
.tech-strip__rail {
  display: flex;
  gap: 10px;
  width: max-content;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.tech-strip__track {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  /* Matched to the search ticker above the fold, in pixels per second rather
     than in seconds: that track is 13,079px and travels half of itself in 46s,
     which is 142px/s. This one travels 1,412px, so it needs 10s to move at the
     same rate. At 30s it was crawling at 47px/s — a third of the speed of the
     strip a screen above it, which is what made it read as stalled. */
  animation: tech-marquee 10s linear infinite;
}

/* Exactly one track's width, so the second copy lands where the first began
   and there is no seam to see. The gap between the two tracks is part of the
   distance, which is why the rail's own gap is included. */
@keyframes tech-marquee {
  to {
    transform: translateX(calc(-100% - 10px));
  }
}

.tech-strip__rail:hover .tech-strip__track {
  animation-play-state: paused;
}

.tech-strip__chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px 5px 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  white-space: nowrap;
  transition:
    border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

/* No lift on hover. The band clips its own overflow to keep the marquee tidy,
   so a chip rising two pixels pushed its top edge — and the hairline above it
   — under the clip. The chip warms instead: gold edge, gold-soft fill, and the
   tile behind the mark filling in, which is movement enough at this size. */
.tech-strip__chip:hover {
  border-color: color-mix(in srgb, var(--gold) 55%, var(--line));
  background: var(--gold-soft);
}

.tech-strip__mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 9px;
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.tech-strip__chip:hover .tech-strip__mark {
  background: var(--grad-gold);
  color: var(--on-gold);
}

.tech-strip__mark svg {
  width: 15px;
  height: 15px;
}

.tech-strip__name {
  font-size: var(--fs-h6);
  font-weight: 600;
  color: var(--ink);
}

/* Standing still is the honest fallback: the names are all still there, they
   simply wrap instead of moving. */
@media (prefers-reduced-motion: reduce) {
  .tech-strip__rail {
    width: auto;
    flex-wrap: wrap;
    mask-image: none;
  }

  .tech-strip__track {
    flex-wrap: wrap;
    animation: none;
  }

  .tech-strip__track + .tech-strip__track {
    display: none;
  }
}

/* ---- Announcement bar, second pass --------------------------------------
   Burgundy, not gold.

   The gold ramp was chosen to fix a contrast fault and it did, but a gold band
   above a gold-accented header is one gold too many. Burgundy is the site's
   other brand surface, it is one of the few colours that does NOT flip between
   light and dark, and cream on it clears 12:1 in both — so the fix survives
   the change of colour rather than depending on it.

   Appended, so these win over the earlier rules at equal specificity. */

.ann-bar {
  position: fixed;
  z-index: 55;
  overflow: hidden;
  padding: 0 clamp(48px, 6vw, 84px) 0 clamp(16px, 3vw, 28px);
  color: var(--deep-ink);
  background:
    radial-gradient(120% 300% at 12% 0%, rgba(255, 178, 54, 0.32), transparent 58%),
    linear-gradient(100deg, var(--brand-burgundy-deep), var(--brand-burgundy-mid) 52%, #000000);
  box-shadow: 0 2px 18px -8px rgba(0, 0, 0, 0.55);
  transition:
    height 0.42s var(--ease-spring),
    padding 0.42s var(--ease-spring);
}

/* A gold hairline under it, and an aurora that drifts across the burgundy —
   slow enough to notice only if you look, which is the point. */
.ann-bar::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--grad-gold);
  opacity: 0.75;
}

.ann-bar::before {
  content: '';
  position: absolute;
  inset: -60% -20%;
  background: conic-gradient(
    from 120deg,
    transparent,
    rgba(244, 245, 239, 0.16),
    transparent 38%,
    rgba(255, 178, 54, 0.14),
    transparent 72%
  );
  animation: ann-aurora 22s linear infinite;
  pointer-events: none;
}

@keyframes ann-aurora {
  to {
    transform: rotate(1turn);
  }
}

.ann-bar__text {
  position: relative;
  z-index: 1;
  gap: 12px;
}

.ann-bar__msg {
  color: color-mix(in srgb, var(--deep-ink) 88%, transparent);
}

/* The live dot: a gold pip with a ring that breathes out of it. */
.ann-bar__pulse {
  position: relative;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 10px rgba(255, 178, 54, 0.9);
}

.ann-bar__pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--gold-bright);
  animation: ann-pulse 2.6s ease-out infinite;
}

@keyframes ann-pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }

  70%,
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* The link as a gold chip, with the arrow travelling on hover. */
.ann-bar__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--grad-gold);
  color: var(--on-gold);
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px -12px rgba(255, 178, 54, 0.9);
  transition:
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

/*
 * The colour has to be restated here, and this is why.
 *
 * `.ann-bar__link` sets `--on-gold` at 0-1-0. The site-wide `a:hover` sets
 * `--gold-deep` at 0-1-1 and therefore wins the moment a pointer lands on the
 * chip. In light mode `--gold-deep` is a dark brown and nobody notices; in
 * dark mode it flips to #e7c27a, which is light gold text on a light gold
 * chip — the text vanishes under the cursor. Same fault as the announcement
 * bar's original white-on-gold, one specificity step further down.
 */
.ann-bar__link:hover,
.ann-bar__link:focus-visible {
  color: var(--on-gold);
  transform: translateY(-1px);
  border: 0;
  box-shadow: 0 12px 26px -12px rgba(255, 178, 54, 1);
}

.ann-bar__link span {
  transition: transform var(--dur-fast) var(--ease);
}

.ann-bar__link:hover span {
  transform: translateX(3px);
}

.ann-bar__tools {
  position: absolute;
  right: 12px;
  top: 50%;
  z-index: 2;
  display: flex;
  gap: 8px;
  transform: translateY(-50%);
}

.ann-bar__btn {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgba(244, 245, 239, 0.12);
  color: var(--deep-ink);
  cursor: pointer;
  opacity: 0.8;
  transition:
    background-color 0.15s,
    opacity 0.15s;
}

.ann-bar__btn:hover {
  background: rgba(244, 245, 239, 0.24);
  opacity: 1;
}

/* ---- Collapsed: the bar becomes its own tab ---- */

/*
 * Collapsed, the bar is a hairline with a handle on the end.
 *
 * The first version left a 34px strip carrying a centred "Book a meeting"
 * pill, which is most of the cost of the bar and a second call to action
 * competing with the header's own. This is 18px, the label is gone, and the
 * handle sits at the right where the controls that closed it were — so the
 * eye goes back to where the hand last was, instead of to the middle of a
 * strip that is otherwise empty.
 *
 * The label is still there for a pointer: the handle widens on hover and the
 * words slide out of it. Nothing is lost, it is just not shouted.
 */
/*
 * The handle, as a small gold button rather than a hint.
 *
 * At eighteen pixels and a hairline border it looked like something left
 * behind rather than something to press. It is the site's own button language
 * now — the gold ramp, ink on it, a halo under it — at the size a thumb can
 * actually find, and it grows into the words on hover.
 */
.ann-bar__tab {
  position: absolute;
  right: 12px;
  top: 50%;
  display: none;
  align-items: center;
  gap: 0;
  height: 30px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--grad-gold);
  color: var(--on-gold);
  font-size: var(--fs-caption);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  cursor: pointer;
  overflow: hidden;
  transform: translateY(-50%);
  box-shadow:
    0 6px 18px -8px rgba(255, 178, 54, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition:
    box-shadow var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

/* A sheen that crosses it once on hover — the same gesture the founder
   portrait in the About menu makes, so the site has one idea of "premium"
   rather than several. */
.ann-bar__tab::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 38%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 62%
  );
  transform: translateX(-120%);
  transition: transform 0.75s var(--ease);
}

.ann-bar__tab:hover {
  transform: translateY(-50%) scale(1.06);
  box-shadow:
    0 10px 24px -8px rgba(255, 178, 54, 1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.ann-bar__tab:hover::after {
  transform: translateX(120%);
}

/* The chevron gets its own weight now that it is ink on gold. */
.ann-bar__tab svg {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .ann-bar__tab::after {
    display: none;
  }

  .ann-bar__tab:hover {
    transform: translateY(-50%);
  }
}

.ann-bar__tab svg {
  flex: none;
}

.ann-bar__tab .ann-bar__pulse {
  position: relative;
  z-index: 1;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  /* Ink, not gold: the pip sits on the gold ramp here rather than on burgundy,
     and a gold dot on gold is a dot nobody sees. */
  background: var(--on-gold);
  box-shadow: none;
}

.ann-bar__tab .ann-bar__pulse::after {
  border-color: var(--on-gold);
}

/*
 * Collapsed, the bar itself is not there.
 *
 * Keeping the burgundy strip and its gold rule drew a line across the top of
 * every page — a border under nothing, which is what it looked like. The band,
 * the rule, the aurora and the shadow all go; what is left is sixteen pixels
 * of page and a handle sitting in it.
 */
:root[data-ann-collapsed] .ann-bar {
  padding: 0;
  background: none;
  box-shadow: none;
}

:root[data-ann-collapsed] .ann-bar::before,
:root[data-ann-collapsed] .ann-bar::after {
  display: none;
}

:root[data-ann-collapsed] .ann-bar__text,
:root[data-ann-collapsed] .ann-bar__tools {
  display: none;
}

/* The handle keeps its own gold in both modes: it is a fixed surface sitting
   on whatever the page happens to be, so it cannot take a colour that flips. */
:root[data-ann-collapsed] .ann-bar__tab {
  display: inline-flex;
}

@media (prefers-reduced-motion: reduce) {
  .ann-bar::before,
  .ann-bar__pulse::after {
    animation: none;
  }

  .ann-bar {
    transition: none;
  }
}

@media (max-width: 620px) {
  .ann-bar {
    padding-right: 68px;
  }

  .ann-bar__msg {
    font-size: var(--fs-caption);
  }
}

/* ---- Primary button: the disc crosses the button ------------------------
   The reference component, read off the live demo rather than guessed at:

     button  rounded-full h-12 p-1 ps-6 pe-14  hover:ps-14 hover:pe-6
             transition-all duration-500 overflow-hidden group
     span    relative z-10
     disc    absolute right-1 w-10 h-10 rounded-full bg-background
             group-hover:right-[calc(100%-44px)] group-hover:rotate-45

   So: the disc is parked at the right and the label is padded away from it;
   on hover the paddings swap and the disc travels the width of the button to
   the left, turning 45° on the way. Half a second, Tailwind's default ease.

   Here the icon is the disc — an svg with padding rather than a wrapper div,
   because the markup is shared by every primary button on the site and this
   needs no change to any of them. */

.btn--primary:has(> svg) {
  --disc: 34px;
  --disc-gap: 5px;
  position: relative;
  overflow: hidden;
  padding-left: 22px;
  padding-right: calc(var(--disc) + var(--disc-gap) + 12px);
  transition:
    padding var(--dur-swap) var(--ease-swap),
    background-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.btn--primary.btn--lg:has(> svg) {
  --disc: 40px;
  --disc-gap: 6px;
  padding-left: 28px;
  padding-right: calc(var(--disc) + var(--disc-gap) + 14px);
}

.btn--primary:hover:has(> svg),
.btn--primary:focus-visible:has(> svg) {
  padding-left: calc(var(--disc) + var(--disc-gap) + 12px);
  padding-right: 22px;
}

.btn--primary.btn--lg:hover:has(> svg),
.btn--primary.btn--lg:focus-visible:has(> svg) {
  padding-left: calc(var(--disc) + var(--disc-gap) + 14px);
  padding-right: 28px;
}

/* The label rides above the disc as it passes. */
.btn--primary > span {
  position: relative;
  z-index: 2;
}

.btn--primary > svg {
  position: absolute;
  top: 50%;
  right: var(--disc-gap);
  z-index: 1;
  box-sizing: content-box;
  width: 16px;
  height: 16px;
  padding: calc((var(--disc) - 16px) / 2);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 8px -4px rgba(0, 0, 0, 0.55);
  transform: translateY(-50%);
  transition:
    right var(--dur-swap) var(--ease-swap),
    transform var(--dur-swap) var(--ease-swap),
    background-color var(--dur-swap) var(--ease-swap),
    color var(--dur-swap) var(--ease-swap);
}

.btn--primary.btn--lg > svg {
  width: 18px;
  height: 18px;
  padding: calc((var(--disc) - 18px) / 2);
}

/* Across to the left, and 45° with it. */
.btn--primary:hover > svg,
.btn--primary:focus-visible > svg {
  right: calc(100% - var(--disc) - var(--disc-gap));
  transform: translateY(-50%) rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
  .btn--primary:has(> svg),
  .btn--primary > svg {
    transition: none;
  }

  .btn--primary:hover > svg,
  .btn--primary:focus-visible > svg {
    transform: translateY(-50%);
  }
}

/* ==========================================================================
   Ink stays ink on gold-filled links
   ==========================================================================
   `a:hover { color: var(--gold-deep) }` near the top of this file is the site's
   general link affordance. Its specificity is 0-1-1, which quietly outranks
   every component rule that sets `color` with a single class — so every
   gold-filled anchor was repainted gold the moment the cursor touched it. In
   dark mode `--gold-deep` flips to #e7c27a, and a champagne label on a
   champagne button measures about 1.3:1: the words disappear under the hand
   that is about to click them. Light mode survived it only by luck (dark brown
   on champagne, still 4.6:1).

   This was fixed three times one control at a time — the announcement chip, the
   header pill, then both aside CTAs — before it was clear the fault was the
   general rule and not the buttons. So it is settled once, for every anchor
   that sits on a gold fill. `a` + `:is()` scores 0-2-1 and wins outright;
   `--on-gold` is one of the few tokens that does not flip between modes, which
   is why these buttons can state a colour and keep it.

   Only anchors that are actually gold-filled belong in this list. `.rel__online`
   looks like it qualifies — it still carries an `--on-gold` rule from its first
   design — but it was rebuilt later as a dark keyboard deck with cream text, and
   forcing ink on it on hover measured 1.04:1. The list was checked declaration
   by declaration against the last `color` each class actually resolves to. */
a:is(
    .btn--primary,
    .aside-cta__btn,
    .closing-cta__button,
    .cta-pill,
    .mega__feature-cta,
    .cta-band__actions .btn--on-deep,
    .pricing-card__cta,
    .pulse__cta--new,
    .solo__go,
    .solo-file__btn--primary,
    .ctool__btn--primary,
    .home-tools-search__go,
    .dt__go,
    .ktype__full,
    .chatw-invite__go,
    .pagination__num.is-current
  ):is(:hover, :focus-visible) {
  color: var(--on-gold);
}

/* ==========================================================================
   /our-services/ — one service to a row
   ==========================================================================
   The overview used the same two-up card grid the rest of the site uses for
   lists of many things. With exactly four services it read as a grid of equal
   tiles, which is the one thing these are not: CMS carries three child
   services, hosting carries none, and in two columns the tall one dictated the
   height of the short one beside it.

   A row per service gives each the full measure of the column, and it gives
   the eye a fixed path — number, icon, title, then the children as chips. The
   motion is on the row itself rather than on any one part of it: a gold sweep
   crosses behind the content, the rail on the left draws itself downward, the
   icon takes the gold and turns a few degrees, and the child chips lift in
   sequence rather than together. Nothing moves until the pointer arrives, and
   nothing moves at all under prefers-reduced-motion. */
.svc-rows {
  display: grid;
  gap: clamp(14px, 1.6vw, 20px);
}

.svc-row {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: clamp(16px, 2vw, 26px);
  align-items: start;
  padding: clamp(20px, 2.4vw, 28px) clamp(20px, 2.6vw, 32px) clamp(20px, 2.4vw, 28px)
    clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.svc-row:hover,
.svc-row:focus-within {
  border-color: color-mix(in srgb, var(--gold) 46%, var(--line));
  box-shadow: 0 26px 52px -34px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

/* The sweep. Behind everything (z-index below the content), parked off the
   left edge, crossing once per hover — the same gesture the gold buttons make,
   at a size where it reads as light moving over a surface rather than a shine
   on a chip. */
.svc-row::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    transparent 36%,
    color-mix(in srgb, var(--gold) 12%, transparent) 50%,
    transparent 64%
  );
  transform: translateX(-100%);
  transition: transform 900ms var(--ease);
}

.svc-row:hover::before,
.svc-row:focus-within::before {
  transform: translateX(100%);
}

/* The rail draws downward from the top rather than fading in, so the row reads
   as being selected rather than lit. */
.svc-row__rail {
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 3px;
  background: var(--grad-gold);
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform 420ms var(--ease);
}

.svc-row:hover .svc-row__rail,
.svc-row:focus-within .svc-row__rail {
  transform: scaleY(1);
}

/* The number, outlined rather than filled: a mark in the corner, not a second
   heading competing with the title two centimetres away. */
.svc-row__ghost {
  position: absolute;
  top: clamp(6px, 1vw, 12px);
  right: clamp(10px, 1.6vw, 20px);
  z-index: -1;
  font-size: clamp(52px, 7vw, 86px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--gold) 26%, transparent);
  font-variant-numeric: tabular-nums;
  transition:
    transform 520ms var(--ease),
    -webkit-text-stroke-color 320ms var(--ease);
}

.svc-row:hover .svc-row__ghost,
.svc-row:focus-within .svc-row__ghost {
  transform: translate3d(-4px, 2px, 0) rotate(-3deg);
  -webkit-text-stroke-color: color-mix(in srgb, var(--gold) 52%, transparent);
}

.svc-row__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--gold) 26%, var(--line));
  background: var(--gold-soft);
  color: var(--gold-deep);
  transition:
    background 260ms var(--ease),
    color 260ms var(--ease),
    transform 380ms var(--ease),
    border-color 260ms var(--ease);
}

.svc-row:hover .svc-row__icon,
.svc-row:focus-within .svc-row__icon {
  background: var(--grad-gold);
  border-color: transparent;
  color: var(--on-gold);
  transform: rotate(-6deg) scale(1.06);
}

.svc-row__body {
  min-width: 0;
}

/* Only the title and the excerpt need to clear the numeral in the corner —
   without it the second line runs under the stroke of the digit and reads as
   struck through. The chips below sit past the bottom of the numeral, so they
   keep the full width and the three CMS children stay on one line. */
.svc-row__title,
.svc-row__text {
  padding-right: clamp(0px, 7vw, 92px);
}

.svc-row__title {
  margin: 2px 0 8px;
  font-size: var(--fs-h4);
  line-height: 1.25;
}

.svc-row__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

/* The whole row is the target, but only the title carries the link — so the
   children below stay individually clickable above this overlay. */
.svc-row__link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
}

.svc-row__link svg {
  flex: none;
  color: var(--gold-deep);
  transition: transform 260ms var(--ease);
}

.svc-row:hover .svc-row__link svg,
.svc-row__link:focus-visible svg {
  transform: translateX(4px);
}

.svc-row__text {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: 1.65;
}

.svc-row__price {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: var(--fs-caption);
  font-weight: 700;
}

/* Child services, one to a line.

   They were chips on a wrapping row, and with three of them the set broke to
   two lines at almost every width — which read as an accident rather than a
   layout. Stacked, each child is a target the width of the row, the list scans
   in one downward movement like the rest of the page, and the longest name no
   longer decides where the others sit. They still arrive in sequence on hover,
   45ms apart, so the row reads as one gesture travelling down it. */
.svc-row__children {
  position: relative;
  z-index: 1;
  display: grid;
  margin: 16px 0 0;
  padding: 6px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.svc-row__children li + li {
  border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}

.svc-row__children a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 2px;
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  transition:
    color 200ms var(--ease),
    transform 260ms var(--ease);
  transition-delay: calc(var(--j, 0) * 45ms);
}

/* The chevron is drawn rather than typed: a bare '›' sits differently in every
   fallback font and this list is beside Khmer type elsewhere on the site. */
.svc-row__children a::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
  transition: transform 260ms var(--ease);
}

.svc-row:hover .svc-row__children a,
.svc-row:focus-within .svc-row__children a {
  transform: translateX(3px);
}

.svc-row__children a:hover,
.svc-row__children a:focus-visible {
  color: var(--gold-deep);
  transform: translateX(6px);
  transition-delay: 0s;
}

.svc-row__children a:hover::before,
.svc-row__children a:focus-visible::before {
  transform: rotate(-45deg) translate(1px, 1px);
}

@media (max-width: 620px) {
  .svc-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .svc-row__ghost {
    font-size: 56px;
  }

  .svc-row__title,
  .svc-row__text {
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .svc-row,
  .svc-row::before,
  .svc-row__rail,
  .svc-row__ghost,
  .svc-row__icon,
  .svc-row__link svg,
  .svc-row__children a,
  .svc-row__children a::before {
    transition: none;
  }

  .svc-row:hover,
  .svc-row:focus-within {
    transform: none;
  }

  .svc-row:hover .svc-row__ghost,
  .svc-row:hover .svc-row__icon,
  .svc-row:hover .svc-row__children a {
    transform: none;
  }

  /* The rail still marks the row; it just appears rather than drawing. */
  .svc-row:hover .svc-row__rail,
  .svc-row:focus-within .svc-row__rail {
    transform: scaleY(1);
  }
}

/* ---- Particle typography (hero headline) --------------------------------
   The canvas sits over the words, larger than them by the same padding the
   component samples with, so dots pushed out of the box are still drawn.

   The live text is unpainted rather than hidden. `visibility: hidden` would
   take the h1 out of the accessibility tree and invite a search engine to
   discount the most valuable string on the site; a transparent fill leaves the
   words selectable, readable to assistive technology and in exactly the same
   box, which is how the gold ramp on this headline was already being drawn.
   The selector has to out-rank `.hero h1 .accent`, which sets both the fill and
   the gradient behind it — hence the descendant form. */
.particle-text {
  position: relative;
}

.hero h1 .particle-text[data-particles],
.particle-text[data-particles] {
  color: transparent;
  -webkit-text-fill-color: transparent;
  background: none;
}

.particle-text__canvas {
  position: absolute;
  top: -70px;
  left: -70px;
  z-index: 2;
  pointer-events: none;
}

/* ---------- "Fix my WordPress CMS!" intake wizard ---------- */

.wp-wizard {
  max-width: 640px;
  margin-inline: auto;
}

.wp-wizard__steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  list-style: none;
  margin: 0 0 clamp(28px, 4vw, 44px);
  padding: 0;
  counter-reset: none;
}

.wp-wizard__step {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.wp-wizard__step::before {
  content: '';
  position: absolute;
  top: 15px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--line);
  z-index: 0;
}

.wp-wizard__step:first-child::before {
  display: none;
}

.wp-wizard__step.is-done::before {
  background: var(--grad-gold);
}

.wp-wizard__step-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}

.wp-wizard__step-dot svg {
  width: 14px;
  height: 14px;
  stroke: var(--on-gold);
}

.wp-wizard__step.is-active .wp-wizard__step-dot {
  border-color: var(--gold);
  color: var(--gold-deep);
  box-shadow: 0 0 0 4px var(--gold-soft);
}

.wp-wizard__step.is-done .wp-wizard__step-dot {
  border-color: transparent;
  background: var(--grad-gold);
  color: var(--on-gold);
}

.wp-wizard__step-label {
  font-size: var(--fs-caption);
  color: var(--muted);
  font-weight: 600;
}

.wp-wizard__step.is-active .wp-wizard__step-label,
.wp-wizard__step.is-done .wp-wizard__step-label {
  color: var(--ink);
}

.wp-wizard__form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
}

.wp-wizard__panel h2 {
  margin: 0 0 6px;
  font-size: var(--fs-h4);
}

.wp-wizard__hint {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.wp-wizard__chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

@media (max-width: 560px) {
  .wp-wizard__chips {
    grid-template-columns: 1fr;
  }
}

.wp-wizard__chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--fs-sm);
  color: var(--ink);
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.wp-wizard__chip:hover {
  border-color: var(--gold-bright);
}

.wp-wizard__chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wp-wizard__chip::before {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--line);
  background: var(--bg-alt);
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.wp-wizard__chip:has(input:checked) {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.wp-wizard__chip:has(input:checked)::before {
  border-color: var(--gold);
  background: var(--grad-gold);
  background-image:
    var(--grad-gold),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1d21' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  background-size:
    cover,
    12px 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.wp-wizard__fieldset {
  border: 0;
  padding: 0;
  margin: 20px 0 0;
}

.wp-wizard__fieldset legend {
  padding: 0 0 10px;
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--ink);
}

.wp-wizard__choices {
  display: grid;
  gap: 10px;
}

.wp-wizard__choice {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr;
  column-gap: 12px;
  row-gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.wp-wizard__choice:hover {
  border-color: var(--gold-bright);
}

.wp-wizard__choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wp-wizard__choice::before {
  content: '';
  grid-row: 1 / span 2;
  align-self: start;
  margin-top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--bg-alt);
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.wp-wizard__choice.is-checked {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.wp-wizard__choice.is-checked::before {
  border-color: var(--gold);
  background: var(--grad-gold);
  box-shadow: inset 0 0 0 3px var(--gold-soft);
}

.wp-wizard__choice-label {
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--ink);
}

.wp-wizard__choice-note {
  font-size: var(--fs-caption);
  color: var(--muted);
}

.wp-wizard__summary {
  display: grid;
  gap: 14px;
  margin: 0 0 20px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}

.wp-wizard__summary > div {
  display: grid;
  gap: 2px;
}

.wp-wizard__summary dt {
  font-size: var(--fs-caption);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wp-wizard__summary dd {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--ink);
  font-weight: 600;
}

/* Stacked field rows (name, then email/phone) touch with no gap by default —
   .field-row2/.field-row3 only carry an internal column gap, not the row
   spacing .inquiry-form gets for free from its own grid `gap`. */
.wp-wizard__panel .field-row2,
.wp-wizard__panel .field-row3 {
  margin-bottom: 18px;
}
.wp-wizard__panel .field-row2:last-child,
.wp-wizard__panel .field-row3:last-child {
  margin-bottom: 0;
}

.wp-wizard__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
}

.wp-wizard__form .reply-promise {
  margin-top: 20px;
}

.wp-wizard__cancel {
  font-size: var(--fs-sm);
  color: var(--muted);
  text-decoration: none;
}

.wp-wizard__cancel:hover {
  color: var(--ink);
  text-decoration: underline;
}

.wp-wizard__form .secure-row {
  margin-bottom: 20px;
}

.wp-wizard__form .form-error {
  margin-bottom: 16px;
}

/* ---------- Short URL Links tool ---------- */

/* A second, smaller pill under the main field — same white-on-dark-console
   treatment as .solo__field, sized down since it carries one short word. */
.shortlink__alias {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 360px;
  margin-top: 10px;
  padding: 5px 5px 5px 16px;
  border: 1px solid color-mix(in srgb, var(--gold) 22%, var(--line));
  border-radius: var(--radius-pill);
  background: var(--surface);
}

.shortlink__alias-prefix {
  flex: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--gold-deep);
}

.shortlink__alias-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 7px 4px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: var(--fs-sm);
}

.shortlink__alias-input::placeholder {
  color: var(--muted);
}

.shortlink__alias-input:focus {
  outline: none;
}

/* ---- Result card — a light card floating on the dark console, same idea as
   .solo-file. ---- */

.shortlink-result {
  max-width: 100%;
  margin-top: 22px;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid var(--line);
  border-radius: var(--dt-radius);
  background: var(--surface);
  animation: solo-rise 0.45s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.shortlink-result__label {
  margin: 0 0 10px;
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.shortlink-result__bar {
  border: 1px solid color-mix(in srgb, var(--gold) 38%, var(--line));
  border-radius: var(--dt-radius);
  overflow: hidden;
}

.shortlink-result__url {
  font-size: var(--fs-body);
}

.shortlink-result__meta {
  margin: 10px 2px 0;
  font-size: var(--fs-caption);
  color: var(--muted);
  word-break: break-all;
}

.shortlink-result__meta span {
  color: var(--ink-soft, var(--ink));
}

.shortlink-result__qr {
  display: flex;
  justify-content: center;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}

.shortlink-result__qr svg {
  width: 180px;
  height: 180px;
}

/* ---- Recent links, saved in this browser ---- */

.shortlink-history {
  max-width: 100%;
  margin-top: 22px;
  padding: clamp(14px, 2vw, 18px) clamp(16px, 2vw, 20px);
  border: 1px solid var(--line);
  border-radius: var(--dt-radius);
  background: var(--surface);
}

.shortlink-history__head {
  margin: 0 0 12px;
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.shortlink-history__list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shortlink-history__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 4px;
  border-top: 1px solid var(--line);
}

.shortlink-history__row:first-child {
  border-top: 0;
}

.shortlink-history__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.shortlink-history__body a {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--gold-deep);
  text-decoration: none;
}

.shortlink-history__body a:hover {
  text-decoration: underline;
}

.shortlink-history__target {
  overflow: hidden;
  font-size: var(--fs-caption);
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shortlink-history__actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.shortlink-history__clicks {
  flex: none;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--ok-tint);
  color: var(--ok);
  font-size: var(--fs-caption);
  font-weight: 700;
  white-space: nowrap;
}

.shortlink-history__copy {
  flex: none;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--gold-deep);
  font-family: inherit;
  font-size: var(--fs-caption);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.shortlink-history__copy:hover {
  background: color-mix(in srgb, var(--gold) 12%, var(--surface));
}

.shortlink-history__remove {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.shortlink-history__remove:hover {
  background: var(--bg-alt);
  color: var(--danger);
}

/* ---------- Confirm-delete modal — same <dialog> idiom as .consult ---------- */

.confirm-delete {
  width: min(440px, calc(100vw - 28px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: none;
  overflow: visible;
  color: var(--ink);
}

.confirm-delete::backdrop {
  background: color-mix(in srgb, var(--brand-burgundy-deep) 60%, transparent);
  backdrop-filter: blur(4px) saturate(120%);
}

.confirm-delete__panel {
  display: grid;
  gap: 10px;
  padding: 22px 24px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--danger) 30%, var(--line)),
    0 40px 90px -36px rgba(0, 0, 0, 0.6);
}

.confirm-delete[open] .confirm-delete__panel {
  animation: consult-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.confirm-delete[open]::backdrop {
  animation: consult-fade 0.28s ease both;
}

.confirm-delete__head {
  margin: 0;
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--ink);
  word-break: break-word;
}

.confirm-delete__note {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--muted);
}

.confirm-delete__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.confirm-delete__row input {
  flex: 1 1 140px;
  min-width: 0;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--ink);
  padding: 9px 12px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.confirm-delete__row input:focus {
  outline: 0;
  border-color: var(--danger);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 22%, transparent);
}

/* Disabled until the word matches — the button says what it will do, and does
   not pretend to be available before it is. */
.confirm-delete__row .btn:disabled {
  opacity: 1;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: not-allowed;
}

/* Once the word matches, it goes properly red, so the change is felt. */
.confirm-delete__row .btn--danger:not(:disabled) {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

/* ---------- Header search palette ---------- */

.search-palette {
  position: relative;
}

/* Same icon-button shape as .theme-toggle__btn — the header's own family of
   round controls — plus a ⌘K hint that only fits above phone widths. */
.search-palette__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 12px 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
  transition:
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.search-palette__btn:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
  background: var(--gold-soft);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 14%, transparent);
}

.search-palette__spark {
  opacity: 0;
  transform-origin: 11px 11px;
  transition: opacity var(--dur-fast) var(--ease);
}

.search-palette__btn:hover .search-palette__spark {
  opacity: 1;
  animation: search-spark-spin 2.4s linear infinite;
}

@keyframes search-spark-spin {
  to {
    transform: rotate(90deg);
  }
}

.search-palette__kbd {
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* The phone copy of the ⌘K hint — no keyboard, no room for a hint, so a
   single word says what the icon does instead. Swapped in exactly where the
   kbd badge disappears, so the button never carries both at once. */
.search-palette__label {
  display: none;
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.01em;
}

@media (max-width: 900px) {
  .search-palette__btn {
    padding: 0 14px 0 12px;
  }
  .search-palette__kbd {
    display: none;
  }
  .search-palette__label {
    display: inline;
  }
}

@media (max-width: 360px) {
  /* The very narrowest phones: back to an icon-only circle so the label
     never presses against the burger. */
  .search-palette__btn {
    width: 44px;
    padding: 0;
    justify-content: center;
  }
  .search-palette__label {
    display: none;
  }
}

/* ---- The dialog itself — same shell idiom as .consult ---- */

.search-cmdk {
  width: min(620px, calc(100vw - 28px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: none;
  overflow: visible;
  color: var(--ink);
}

.search-cmdk::backdrop {
  background: color-mix(in srgb, var(--brand-burgundy-deep) 72%, transparent);
  backdrop-filter: blur(6px) saturate(120%);
}

.search-cmdk[open] .search-cmdk__panel {
  animation: search-cmdk-in 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.search-cmdk[open]::backdrop {
  animation: consult-fade 0.28s ease both;
}

@keyframes search-cmdk-in {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.97);
  }
}

.search-cmdk__panel {
  position: relative;
  display: grid;
  max-height: min(78dvh, 640px);
  grid-template-rows: auto auto 1fr auto;
  border-radius: 22px;
  background: var(--surface);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--gold) 30%, transparent),
    0 60px 120px -40px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

.search-cmdk__field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--gold-deep);
}

.search-cmdk__field input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  font: inherit;
  font-size: var(--fs-body, 1.05rem);
  font-weight: 500;
  color: var(--ink);
}

.search-cmdk__field input::placeholder {
  color: var(--muted);
  font-weight: 400;
}

.search-cmdk__close {
  flex: none;
  padding: 5px 9px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.search-cmdk__close:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
}

.search-cmdk__tabs {
  display: flex;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}

.search-cmdk__tab {
  padding: 7px 16px;
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 700;
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.search-cmdk__tab:hover {
  color: var(--ink);
}

.search-cmdk__tab.is-active {
  background: var(--grad-gold, linear-gradient(135deg, var(--gold-bright), var(--gold)));
  color: var(--on-gold);
}

/* The count, desktop/laptop only — see the 900px rule below. A phone-width
   tab bar is already tight for four labels without a number in each one. */
.search-cmdk__tab-count {
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  color: var(--muted);
  font-size: var(--fs-nano, 0.72rem);
  font-weight: 700;
}

.search-cmdk__tab.is-active .search-cmdk__tab-count {
  background: rgb(0 0 0 / 12%);
  color: inherit;
}

@media (max-width: 900px) {
  .search-cmdk__tab-count {
    display: none;
  }
}

.search-cmdk__body {
  overflow-y: auto;
  padding: 8px;
}

.search-cmdk__list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.search-cmdk__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-radius: 13px;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.search-cmdk__row.is-active {
  background: color-mix(in srgb, var(--gold) 12%, transparent);
}

.search-cmdk__row-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.search-cmdk__row-title {
  font-weight: 650;
  font-size: var(--fs-sm, 0.95rem);
  color: var(--ink);
}

.search-cmdk__row-title mark {
  padding: 0;
  border-radius: 2px;
  background: color-mix(in srgb, var(--gold) 34%, transparent);
  color: inherit;
}

.search-cmdk__row-excerpt {
  overflow: hidden;
  font-size: var(--fs-nano, 0.76rem);
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.search-cmdk__row-kind {
  flex: none;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  color: var(--gold-deep);
  font-size: var(--fs-nano, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.search-cmdk__empty {
  margin: 0;
  padding: 34px 20px;
  color: var(--muted);
  font-size: var(--fs-sm);
  text-align: center;
}

.search-cmdk__hint {
  display: flex;
  gap: 16px;
  padding: 10px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-nano, 0.72rem);
}

/* ---- The scanning sequence — plays once, while the All/Blog index loads ---- */

.search-scan {
  display: grid;
  gap: 6px;
  padding: 26px 22px 30px;
  border-radius: 14px;
  background: var(--brand-burgundy-deep);
  background-image:
    linear-gradient(color-mix(in srgb, var(--gold) 8%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--gold) 8%, transparent) 1px, transparent 1px);
  background-size: 28px 28px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--fs-sm);
}

.search-scan__prompt {
  margin: 0 0 12px;
  color: var(--gold-bright);
}

.search-scan__user {
  font-weight: 700;
  color: var(--gold-bright);
}

.search-scan__line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  color: color-mix(in srgb, #fff 70%, transparent);
  animation: search-scan-line 0.34s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 0.02s);
}

.search-scan__leader {
  flex: 1 1 auto;
  min-width: 12px;
  height: 0;
  border-bottom: 1px dotted color-mix(in srgb, var(--gold) 35%, transparent);
  transform: translateY(-4px);
}

.search-scan__value {
  flex: none;
  font-weight: 700;
  color: var(--gold-bright);
}

@keyframes search-scan-line {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
}

@media (max-width: 640px) {
  .search-cmdk {
    width: 100vw;
    height: 100dvh;
    max-width: 100vw;
  }
  .search-cmdk__panel {
    max-height: 100dvh;
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .search-cmdk[open] .search-cmdk__panel,
  .search-cmdk[open]::backdrop,
  .search-scan__line,
  .search-palette__spark {
    animation: none;
  }
}

/* ==========================================================================
   What's New — the dated timeline at /resources/whats-new/
   ==========================================================================
   A gold rail down the left, a large dateline beside each entry, and the
   card to its right. The rail's x position is derived from the date column
   and the gap, so the two can never drift apart. Colour only ever says the
   *kind* of entry — feature gold, improvement soft gold, fix neutral, news
   burgundy — never a second accent. */

.updates {
  --updates-date-w: 96px;
  --updates-gap: 32px;
  --updates-rail-x: calc(var(--updates-date-w) + var(--updates-gap) / 2);
  display: grid;
  gap: clamp(24px, 3vw, 36px);
}

.updates__bar {
  display: grid;
  gap: 14px;
}

.updates__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
}

/* Two small boxes under the track — the tally and the freshness date — in
   the same pill shape as the station signs above them. */
.updates__meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.updates__meta-chip b {
  color: var(--gold-deep);
  font-weight: 800;
}

.updates__meta-chip time {
  color: var(--ink);
  font-weight: 700;
}

/* ---- The track: the filter drawn as a miniature timeline ----
   One column per stop; the rail runs from the first node's centre to the
   last's, and the lit segment is that rail's width × --pos (0…1, set inline
   by React), so it always ends exactly under the chosen node. */

.track {
  --n: 5;
  --pos: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  padding: 34px 0 2px;
}

.track__rail,
.track__fill {
  position: absolute;
  top: 41px;
  height: 3px;
  border-radius: 3px;
  pointer-events: none;
}

.track__rail {
  left: calc(100% / var(--n) / 2);
  right: calc(100% / var(--n) / 2);
  background: color-mix(in srgb, var(--ink) 10%, transparent);
}

.track__fill {
  left: calc(100% / var(--n) / 2);
  width: calc((100% - 100% / var(--n)) * var(--pos));
  background: var(--grad-gold);
  box-shadow: 0 0 12px color-mix(in srgb, var(--gold) 45%, transparent);
  transition: width 0.45s var(--ease);
}

.track__stop {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease);
}

/* The station sign: the count, hung above the node. */
.track__count {
  position: absolute;
  top: -30px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  color: var(--muted);
  font-size: var(--fs-nano);
  font-weight: 800;
  letter-spacing: 0.04em;
  transition:
    transform 0.35s var(--ease),
    background-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.track__node {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid color-mix(in srgb, var(--ink) 25%, transparent);
  box-shadow: 0 0 0 4px var(--surface);
  transition:
    transform 0.35s var(--ease),
    border-color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.track__label {
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.track__stop:hover {
  color: var(--gold-deep);
}

.track__stop:hover .track__node {
  transform: scale(1.25);
  border-color: var(--gold);
}

.track__stop:hover .track__count {
  transform: translateY(-3px);
}

/* Stops the lit segment has already passed: filled, so the track reads as a
   route travelled rather than a row of buttons. */
.track__stop.is-passed .track__node {
  background: var(--gold);
  border-color: var(--gold);
}

.track__stop.is-active {
  color: var(--gold-deep);
}

.track__stop.is-active .track__node {
  transform: scale(1.5);
  background: var(--grad-gold);
  border-color: var(--gold-bright);
  box-shadow:
    0 0 0 4px var(--surface),
    0 0 0 7px color-mix(in srgb, var(--gold) 25%, transparent),
    0 8px 18px -6px color-mix(in srgb, var(--gold) 70%, transparent);
}

.track__stop.is-active .track__count {
  background: var(--grad-gold);
  color: var(--on-gold);
  transform: translateY(-5px) scale(1.1);
}

/* Each kind's stop lights in its own colour — the same colours the entry
   chips use further down, so the track and the cards agree. */
.track__stop[data-kind='improvement'].is-active .track__node {
  background: var(--gold-deep);
  border-color: var(--gold);
}

.track__stop[data-kind='fix'].is-active .track__node {
  background: var(--ink-soft);
  border-color: color-mix(in srgb, var(--ink) 35%, transparent);
  box-shadow:
    0 0 0 4px var(--surface),
    0 0 0 7px color-mix(in srgb, var(--ink) 12%, transparent);
}

.track__stop[data-kind='fix'].is-active .track__count,
.track__stop[data-kind='fix'].is-active {
  color: var(--ink);
}

.track__stop[data-kind='fix'].is-active .track__count {
  background: color-mix(in srgb, var(--ink) 10%, transparent);
}

.track__stop[data-kind='news'].is-active .track__node {
  background: var(--brand-burgundy-mid);
  border-color: var(--gold);
}

.track__stop[data-kind='news'].is-active .track__count {
  background: var(--brand-burgundy-mid);
  color: var(--deep-ink);
}

/* The ring that leaves the chosen stop on every switch. */
.track__ping {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  animation: track-ping 0.9s var(--ease) both;
  pointer-events: none;
}

@keyframes track-ping {
  from {
    transform: scale(0.6);
    opacity: 0.9;
  }
  to {
    transform: scale(2.8);
    opacity: 0;
  }
}

.track__stop:focus-visible {
  outline: none;
}

.track__stop:focus-visible .track__node {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

@media (max-width: 560px) {
  /* Five stops share ~70px each here. "Improvements" is one unbreakable
     word wider than that, so it is allowed to hyphenate rather than run
     into its neighbour; the others fit on one line and are left alone. */
  .track__label {
    max-width: 100%;
    font-size: var(--fs-micro);
    letter-spacing: 0.04em;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .track__stop {
    min-width: 0;
    padding: 0 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .track__fill,
  .track__node,
  .track__count {
    transition: none;
  }

  .track__ping {
    animation: none;
  }
}

.updates__meta time {
  color: var(--ink);
  font-weight: 600;
}

.updates__empty {
  margin: 0;
  padding: 32px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.updates__rail {
  position: relative;
  display: grid;
  gap: clamp(28px, 4vw, 44px);
}

.updates__rail::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--updates-rail-x);
  width: 2px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--gold) 65%, transparent),
    color-mix(in srgb, var(--gold) 25%, transparent) 70%,
    transparent
  );
}

.updates__month {
  display: grid;
  gap: 14px;
}

/* Rides along under the header while its month scrolls past, so the reader
   always knows which month the entry in front of them belongs to. */
.updates__month-title {
  position: sticky;
  top: calc(var(--ann-h, 0px) + var(--header-h) + 10px);
  z-index: 2;
  margin: 0;
  padding-left: calc(var(--updates-date-w) + var(--updates-gap));
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.updates__month-title span {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
}

.updates__list {
  display: grid;
  gap: clamp(16px, 2.4vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.updates__item {
  position: relative;
  display: grid;
  grid-template-columns: var(--updates-date-w) minmax(0, 1fr);
  column-gap: var(--updates-gap);
  scroll-margin-top: calc(var(--ann-h, 0px) + var(--header-h) + 24px);
}

.updates__date {
  display: grid;
  justify-items: end;
  align-content: start;
  padding-top: 6px;
  text-align: right;
  line-height: 1;
}

.updates__day {
  font-size: clamp(38px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.updates__mon {
  margin-top: 4px;
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.updates__wd {
  margin-top: 6px;
  font-size: var(--fs-micro);
  color: var(--muted);
}

/* The dot on the rail. A halo in the surface colour lifts it off the line. */
.updates__node {
  position: absolute;
  top: 18px;
  left: calc(var(--updates-rail-x) - 7px);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 4px var(--surface);
}

.updates__item--improvement .updates__node {
  border-color: var(--gold-deep);
}

.updates__item--fix .updates__node {
  border-color: var(--ink-soft);
}

.updates__item--news .updates__node {
  border-color: var(--brand-burgundy-mid);
}

.updates__item.is-milestone .updates__node {
  background: var(--grad-gold);
  border-color: var(--gold);
  box-shadow:
    0 0 0 4px var(--surface),
    0 0 0 8px color-mix(in srgb, var(--gold) 22%, transparent);
}

.updates__card {
  position: relative;
  padding: clamp(18px, 2.4vw, 26px) clamp(18px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 18px 40px -32px rgba(0, 0, 0, 0.35);
  transition: border-color var(--dur-fast) var(--ease);
}

.updates__card:hover {
  border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
}

.updates__item.is-milestone .updates__card {
  border-color: color-mix(in srgb, var(--gold) 55%, var(--line));
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--gold-soft) 55%, var(--surface)),
    var(--surface) 60%
  );
}

/* Arrived by link (#slug): the entry the reader was sent to is lit. */
.updates__item:target .updates__card {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 18%, transparent);
}

.updates__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.updates__kind,
.updates__milestone {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-nano);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.updates__kind {
  background: var(--grad-gold);
  color: var(--on-gold);
}

.updates__item--improvement .updates__kind {
  background: var(--gold-soft);
  color: var(--gold-deep);
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
}

.updates__item--fix .updates__kind {
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  color: var(--ink-soft);
}

.updates__item--news .updates__kind {
  background: var(--brand-burgundy-mid);
  color: var(--deep-ink);
}

.updates__milestone {
  color: var(--gold-deep);
  border: 1px dashed color-mix(in srgb, var(--gold) 55%, transparent);
}

.updates__time {
  margin-left: auto;
  color: var(--muted);
  font-size: var(--fs-caption);
}

.updates__title {
  margin: 0 0 8px;
  font-size: var(--fs-h4);
  line-height: 1.25;
}

.updates__title a {
  color: var(--ink);
  text-decoration: none;
}

.updates__title a:hover {
  color: var(--gold-deep);
}

.updates__summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.updates__points {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.updates__points li {
  position: relative;
  padding-left: 18px;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}

.updates__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-gold);
}

.updates__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--gold-deep);
  text-decoration: none;
}

.updates__go svg {
  transition: transform var(--dur-fast) var(--ease);
}

.updates__go:hover svg {
  transform: translateX(3px);
}

/* On a phone the date column would eat a third of the width, so the
   dateline sits above the card as one line and the rail steps aside. */
@media (max-width: 640px) {
  .updates {
    --updates-date-w: 0px;
    --updates-gap: 0px;
  }

  .updates__rail::before,
  .updates__node,
  .updates__time {
    display: none;
  }

  .updates__month-title {
    position: static;
    padding-left: 0;
  }

  .updates__item {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }

  .updates__date {
    grid-auto-flow: column;
    justify-content: start;
    justify-items: start;
    align-items: baseline;
    gap: 10px;
    padding-top: 0;
    text-align: left;
  }

  .updates__day {
    font-size: 30px;
  }

  .updates__mon,
  .updates__wd {
    margin-top: 0;
  }
}

/* ---- The short "What's New" list on the Resources overview ---- */

.res-updates {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.res-updates li + li {
  border-top: 1px solid var(--line);
}

.res-updates__row {
  display: grid;
  grid-template-columns: 132px auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  color: var(--ink);
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease);
}

.res-updates__row:hover {
  background: var(--gold-soft);
  color: var(--ink);
}

.res-updates__date {
  color: var(--muted);
  font-size: var(--fs-caption);
  font-weight: 600;
}

.res-updates__kind {
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-nano);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--grad-gold);
  color: var(--on-gold);
}

.res-updates__kind--improvement {
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.res-updates__kind--fix {
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  color: var(--ink-soft);
}

.res-updates__kind--news {
  background: var(--brand-burgundy-mid);
  color: var(--deep-ink);
}

.res-updates__title {
  font-weight: 600;
}

@media (max-width: 640px) {
  .res-updates__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .updates__card,
  .updates__go svg,
  .res-updates__row {
    transition: none;
  }
}

/* --- Pagination: disabled edge -------------------------------------------
   The prev/next control at the end of a run is now a <span>, not a disabled
   <button> or an aria-disabled link: there is no page 0 or page n+1 to point
   a crawler at. It still has to look the same as the state it replaced, and
   this file is read top to bottom, so the rule belongs after the block at
   ~5364 that styles the old markup. */
.pagination__edge.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ==========================================================================
   Khmer typing practice — levels, weak keys, custom text, folded notes
   (3 Nov 2026). Appended: in this stylesheet the later rule wins.
   ========================================================================== */

/* The four levels, as a segmented bar above the lesson tabs. */
.ktype__levels {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
}

.ktype__level {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: var(--fs-caption);
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.ktype__level:hover {
  color: var(--gold-deep);
}

.ktype__level.is-on {
  background: var(--surface);
  color: var(--gold-deep);
  box-shadow: 0 1px 2px rgb(0 0 0 / 8%);
}

/* lessons with a best score / lessons in the level */
.ktype__level em {
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: var(--fs-nano);
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* A key this learner keeps missing: a quiet ring, never a red key. */
.ktype__key.is-weak:not(.is-next):not(.is-missed) {
  box-shadow:
    inset 0 0 0 2px color-mix(in srgb, var(--danger) 55%, transparent),
    0 1px 0 rgb(0 0 0 / 18%);
}

/* The learner's own text. */
.ktype__custom {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.ktype__custom textarea {
  width: 100%;
  min-height: 84px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-body);
  line-height: 1.8;
  resize: vertical;
}

.ktype__custom textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.ktype__custom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.ktype__custom .ctool__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Keys to work on, in the record. */
.ktype__weak {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 14px 0 0;
  font-size: var(--fs-caption);
  color: var(--muted);
}

.ktype__weak > span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
}

.ktype__weak i {
  font-style: normal;
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--ink);
}

.ktype__weak small {
  font-size: var(--fs-nano);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ktype__weak em {
  font-style: normal;
}

/* The notes under the keyboard, folded until wanted. */
.solo-notes--fold > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.solo-notes--fold > summary::-webkit-details-marker {
  display: none;
}

.solo-notes--fold > summary h4 {
  margin: 0;
}

.solo-notes--fold > summary::after {
  content: '';
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
}

.solo-notes--fold[open] > summary::after {
  transform: rotate(-135deg);
}

.solo-notes--fold[open] > summary {
  margin-bottom: 9px;
}

.solo-notes--fold > summary:hover h4 {
  color: var(--gold-deep);
}

@media (max-width: 620px) {
  .ktype__level {
    padding: 6px 10px;
    font-size: var(--fs-nano);
  }
}

/* ==========================================================================
   Khmer typing practice — the keyboard as an object, and the game around it
   (3 Nov 2026). Appended: the later rule wins.
   ========================================================================== */

/* The deck leans back a few degrees, the way a keyboard sits on a desk, and
   the caps stand higher on it. The hands are its children, so they lean with
   it. People who asked for less motion get a flat deck and no animation. */
.ktype__stage {
  position: relative;
}

.ktype__board {
  position: relative;
  padding: 18px 16px 20px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 7%) 0%, transparent 30%),
    linear-gradient(180deg, #000000 0%, #000000 55%, #000000 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 12%),
    inset 0 -3px 10px rgb(0 0 0 / 60%),
    0 2px 0 #000000,
    0 26px 60px rgb(0 0 0 / 34%);
  transform: perspective(1600px) rotateX(5deg);
  transform-origin: 50% 100%;
  transform-style: preserve-3d;
}

.ktype__row {
  gap: 8px;
}

.ktype__key {
  padding: 8px 4px 8px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 70%) 0%, transparent 42%),
    linear-gradient(180deg, #f4f5ef 0%, #f4f5ef 100%);
  box-shadow:
    0 5px 0 #b4b4b4,
    0 6px 0 #9e9e9e,
    0 10px 16px rgb(0 0 0 / 42%),
    inset 0 1px 0 #fff,
    inset 0 -2px 0 rgb(0 0 0 / 5%);
  transition:
    transform 0.06s ease-out,
    box-shadow 0.06s ease-out,
    background 0.16s var(--ease);
}

.ktype__key.is-l-index,
.ktype__key.is-r-index {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 70%) 0%, transparent 42%),
    linear-gradient(180deg, #f4f5ef 0%, #ffb236 100%);
}

.ktype__key.is-l-middle,
.ktype__key.is-r-middle {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 70%) 0%, transparent 42%),
    linear-gradient(180deg, #f4f5ef 0%, #f4f5ef 100%);
}

.ktype__key.is-l-ring,
.ktype__key.is-r-ring {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 70%) 0%, transparent 42%),
    linear-gradient(180deg, #f4f5ef 0%, #f4f5ef 100%);
}

/* Struck: all the way down onto the deck. */
.ktype__key.is-down {
  transform: translateY(5px);
  box-shadow:
    0 0 0 #b4b4b4,
    0 1px 0 #9e9e9e,
    0 2px 4px rgb(0 0 0 / 45%),
    inset 0 1px 0 #fff;
}

/* A hit lands with a ring of light that fades. */
.ktype__key.is-down:not(.is-missed)::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 13px;
  box-shadow: 0 0 0 2px #ffb236;
  animation: ktype-ring 0.35s ease-out forwards;
  pointer-events: none;
}

@keyframes ktype-ring {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(1.18);
  }
}

/* The next key floats above the rest and breathes until it is pressed. */
.ktype__key.is-next {
  transform: translateY(-4px);
  box-shadow:
    0 5px 0 #ffb236,
    0 6px 0 #0d0d0d,
    0 14px 26px rgba(255, 178, 54, 55%),
    inset 0 1px 0 rgb(255 255 255 / 60%);
  animation: ktype-breathe 1.1s ease-in-out infinite;
}

@keyframes ktype-breathe {
  0%,
  100% {
    box-shadow:
      0 5px 0 #ffb236,
      0 6px 0 #0d0d0d,
      0 14px 26px rgba(255, 178, 54, 55%),
      inset 0 1px 0 rgb(255 255 255 / 60%);
  }
  50% {
    box-shadow:
      0 5px 0 #ffb236,
      0 6px 0 #0d0d0d,
      0 18px 34px rgba(255, 178, 54, 75%),
      inset 0 1px 0 rgb(255 255 255 / 60%);
  }
}

/* A miss shakes its head. */
.ktype__key.is-missed {
  animation: ktype-shake 0.3s ease-in-out;
}

@keyframes ktype-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

.ktype__mod {
  box-shadow:
    0 5px 0 #000000,
    0 6px 0 #000000,
    0 10px 16px rgb(0 0 0 / 40%),
    inset 0 1px 0 rgb(255 255 255 / 8%);
}

.ktype__key--space {
  box-shadow:
    0 5px 0 #b4b4b4,
    0 6px 0 #9e9e9e,
    0 10px 16px rgb(0 0 0 / 42%),
    inset 0 1px 0 #fff;
}

/* ---- the streak ---------------------------------------------------------- */

.ktype__combo {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 0;
  padding: 8px 14px 7px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  box-shadow: 0 10px 24px rgb(0 0 0 / 12%);
  animation: ktype-pop 0.25s var(--ease);
  pointer-events: none;
}

.ktype__combo b {
  font-size: var(--fs-h4);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.ktype__combo small {
  font-size: var(--fs-nano);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

.ktype__combo.is-warm {
  background: var(--grad-gold);
  color: var(--on-gold);
  border-color: transparent;
}

.ktype__combo.is-hot {
  background: linear-gradient(135deg, #ffb347 0%, #ff5e62 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 28px rgb(255 94 98 / 45%);
}

@keyframes ktype-pop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Twelve sparks out of the badge at a milestone. */
.ktype__burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ktype__burst u {
  --i: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-bright);
  transform: translate(-50%, -50%) rotate(calc(var(--i) * 30deg)) translateY(0);
  animation: ktype-spark 0.9s ease-out forwards;
}

@keyframes ktype-spark {
  to {
    transform: translate(-50%, -50%) rotate(calc(var(--i) * 30deg)) translateY(-56px);
    opacity: 0;
  }
}

/* ---- a new best: paper from the top of the stage ----------------------- */

.ktype__confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
}

.ktype__confetti i {
  --i: 0;
  position: absolute;
  top: -12px;
  left: calc((var(--i) + 0.5) * (100% / 30));
  width: 8px;
  height: 14px;
  border-radius: 2px;
  background: var(--gold);
  opacity: 0;
  animation: ktype-fall 1.7s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
  animation-delay: calc(var(--i) * 17ms);
}

.ktype__confetti i:nth-child(3n) {
  background: var(--gold-bright);
}

.ktype__confetti i:nth-child(3n + 1) {
  background: #ff8a65;
}

.ktype__confetti i:nth-child(4n) {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

@keyframes ktype-fall {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(min(60vh, 520px)) rotate(540deg);
  }
}

/* ---- stars ---------------------------------------------------------------- */

.ktype__stars {
  color: var(--gold);
  font-size: var(--fs-h5);
  letter-spacing: 0.08em;
  line-height: 1;
}

.ktype__stars.is-none {
  color: var(--muted);
  opacity: 0.6;
}

.ktype__lesson em {
  letter-spacing: 0.04em;
}

.ktype__sound-btn span::before {
  content: '♪';
  font-size: 11px;
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  .ktype__board {
    transform: none;
  }

  .ktype__key.is-next,
  .ktype__key.is-missed,
  .ktype__combo,
  .ktype__burst u,
  .ktype__confetti i,
  .ktype__key.is-down:not(.is-missed)::before {
    animation: none;
  }

  .ktype__confetti {
    display: none;
  }
}

/* The sound switch carries a note, not a fingertip. */
.ktype__sound-btn span {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  opacity: 0.85;
}

/* ---- one bar: levels on the left, the lesson strip on the right ---------- */

.ktype__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}

.ktype__bar .ktype__levels {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 3px;
  margin: 0;
  padding: 3px;
}

.ktype__bar .ktype__level {
  padding: 6px 11px;
  gap: 6px;
  white-space: nowrap;
}

/* The lesson strip scrolls sideways when it must, with its edge faded so
   the overflow reads as "more", and no scrollbar under the chips. */
.ktype__bar .ktype__lessons {
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 2px 28px 2px 2px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
}

.ktype__bar .ktype__lessons::-webkit-scrollbar {
  display: none;
}

.ktype__bar .ktype__lesson {
  flex: 0 0 auto;
  scroll-snap-align: center;
  white-space: nowrap;
  padding: 6px 12px;
}

.ktype__note {
  margin-top: 8px;
}

@media (max-width: 760px) {
  .ktype__bar {
    flex-wrap: wrap;
  }

  .ktype__bar .ktype__levels {
    width: 100%;
    justify-content: space-between;
  }

  .ktype__bar .ktype__lessons {
    width: 100%;
    padding-right: 28px;
  }
}

/* ---- kbach: a Khmer flame-leaf frieze engraved along the deck ------------
   ក្បាច់ភ្ញីទេស, drawn as one repeating SVG and laid along the top and bottom
   edges in a quiet gold. Decoration that says whose keyboard this is, kept
   faint so the keycaps stay the thing you read. */
.ktype__board::before,
.ktype__board::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='16' viewBox='0 0 56 16'%3E%3Cg fill='none' stroke='%23e7c27a' stroke-width='1.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M28 1.6c3.2 2.6 5.6 5.2 0 11.4-5.6-6.2-3.2-8.8 0-11.4z'/%3E%3Cpath d='M28 4.8c1.3 1.5 2.1 3 0 5.6-2.1-2.6-1.3-4.1 0-5.6z'/%3E%3Cpath d='M22.4 12.2C16.2 13.4 12 9.6 11 6c3.6-.6 6.4 1.6 7.6 4.2'/%3E%3Cpath d='M33.6 12.2C39.8 13.4 44 9.6 45 6c-3.6-.6-6.4 1.6-7.6 4.2'/%3E%3Cpath d='M11 6c-1.6 2.2-4.2 3.8-7.4 3.2 1.1-2.7 3.2-4.3 5.9-4.8'/%3E%3Cpath d='M45 6c1.6 2.2 4.2 3.8 7.4 3.2-1.1-2.7-3.2-4.3-5.9-4.8'/%3E%3Cpath d='M0 14.6h56' stroke-width='.6' opacity='.7'/%3E%3Ccircle cx='28' cy='13.6' r='.8' fill='%23e7c27a' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
  background-size: 56px 16px;
  opacity: 0.42;
  pointer-events: none;
}

.ktype__board::before {
  top: 2px;
}

.ktype__board::after {
  bottom: 2px;
  transform: scaleY(-1);
}

.ktype__board {
  padding-top: 24px;
  padding-bottom: 26px;
}

.ktype__stage.is-full .ktype__board::before,
.ktype__stage.is-full .ktype__board::after {
  opacity: 0.5;
}

/* The strip must not set the console's width. A flex item's min-content
   contribution is the whole row of chips, whatever its min-width says; with
   width: 0 it contributes nothing and still grows to fill the bar. (Without
   this the console grew to 1,586px in a 1,151px window and the right of the
   keyboard was cut off — 3 Nov 2026.) */
.ktype__bar .ktype__lessons {
  width: 0;
}

@media (max-width: 760px) {
  .ktype__bar .ktype__lessons {
    width: 100%;
    flex-basis: 100%;
  }
}

/* ---- the lesson bar: what fits, then a More menu --------------------------
   No sideways scrolling and no faded edge: the chips that fit are shown, the
   rest sit in a menu under a chip that says how many. */
.ktype__bar .ktype__lessons {
  overflow: visible;
  padding-right: 2px;
  mask-image: none;
  scroll-snap-type: none;
  align-items: center;
}

.ktype__more-wrap {
  position: relative;
  flex: 0 0 auto;
}

.ktype__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-style: dashed;
}

.ktype__more i {
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-right: 2px solid currentcolor;
  border-bottom: 2px solid currentcolor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s var(--ease);
}

.ktype__more.is-open i {
  transform: translateY(1px) rotate(-135deg);
}

.ktype__more.is-open {
  border-color: var(--gold);
  color: var(--gold-deep);
}

.ktype__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  display: grid;
  gap: 2px;
  min-width: 220px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: 0 18px 40px rgb(0 0 0 / 18%);
  animation: ktype-pop 0.16s var(--ease);
  transform-origin: top right;
}

.ktype__menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: var(--fs-caption);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.ktype__menu-item:hover {
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.ktype__menu-item.is-on {
  background: var(--grad-gold);
  color: var(--on-gold);
}

.ktype__menu-item em {
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: var(--fs-nano);
  font-style: normal;
  font-weight: 800;
}

.ktype__menu-item.is-on em {
  background: rgb(255 255 255 / 82%);
}

/* The ruler: laid out, measured, never seen. */
.ktype__ruler {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  gap: 6px;
  visibility: hidden;
  pointer-events: none;
  white-space: nowrap;
}

.ktype__ruler .ktype__lesson {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .ktype__bar .ktype__lessons {
    overflow: visible;
  }
}

/* ---- the footer bar: actions left, the record and the notes as drop-downs */
.ktype__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
}

.ktype__foot-gap {
  flex: 1 1 auto;
}

.ktype__foot-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: var(--fs-caption);
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.ktype__foot-toggle b {
  font-weight: 800;
}

.ktype__foot-toggle small {
  color: var(--muted);
  font-size: var(--fs-nano);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ktype__foot-toggle i {
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-right: 2px solid currentcolor;
  border-bottom: 2px solid currentcolor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s var(--ease);
  opacity: 0.7;
}

.ktype__foot-toggle:hover,
.ktype__foot-toggle.is-open {
  border-color: var(--gold);
  color: var(--gold-deep);
}

.ktype__foot-toggle.is-open i {
  transform: translateY(1px) rotate(-135deg);
}

/* The two panels sit under the bar, full width, and open from it. */
.ktype__history {
  margin-top: 8px;
}

.ktype__history-body {
  display: block;
}

.ktype__notes {
  margin-top: 8px;
  animation: ktype-pop 0.16s var(--ease);
  transform-origin: top right;
}

@media (max-width: 620px) {
  .ktype__foot-gap {
    display: none;
  }

  .ktype__foot-toggle {
    flex: 1 1 auto;
    justify-content: space-between;
  }

  .ktype__foot-toggle small {
    display: none;
  }
}

/* ---- the stage, tightened: one strip above the line, less air everywhere */
.ktype__stage {
  gap: 10px;
  margin-top: 10px;
  padding: 12px 14px 14px;
}

.ktype__note {
  margin: 8px 0 0;
  font-size: var(--fs-nano);
  line-height: 1.5;
}

.ktype__text {
  padding: 10px 16px;
  line-height: 1.9;
}

.ktype__hint {
  margin: 0;
  font-size: var(--fs-nano);
}

.ktype__head {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 0 2px 8px;
  border-bottom: 1px solid var(--line);
}

.ktype__head-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
}

.ktype__hs {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.ktype__hs strong {
  font-size: var(--fs-h6);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.ktype__hs small {
  color: var(--muted);
  font-size: var(--fs-nano);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ktype__hs.is-good strong {
  color: var(--ok, #2e7d32);
}

.ktype__hs.is-warn strong {
  color: var(--warn, #b26a00);
}

.ktype__hs.is-bad strong {
  color: var(--danger);
}

.ktype__head-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.ktype__head-tools .ktype__hands-btn,
.ktype__head-tools .ktype__tour-btn,
.ktype__head-tools .ktype__full {
  padding: 5px 10px;
  font-size: var(--fs-nano);
}

.ktype__head-tools .ktype__full svg {
  width: 12px;
  height: 12px;
}

/* The sprint clock, as a line draining along the strip's bottom edge. */
.ktype__head-clock {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transition: width 0.2s linear;
}

.ktype__head-clock.is-low {
  background: var(--danger);
}

.ktype__who {
  padding: 3px 9px;
  font-size: var(--fs-nano);
}

/* The streak badge now sits inside the tightened stage. */
.ktype__combo {
  top: 54px;
  right: 12px;
  padding: 6px 12px 5px;
}

.ktype__combo b {
  font-size: var(--fs-h5);
}

.ktype__stage.is-full .ktype__head {
  border-bottom-color: rgb(255 255 255 / 14%);
}

@media (max-width: 620px) {
  .ktype__head-stats {
    gap: 4px 12px;
  }

  .ktype__hs strong {
    font-size: var(--fs-body);
  }
}

/* The version, quiet, at the end of the footer bar. */
.ktype__ver {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: var(--fs-nano);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.ktype__ver small {
  font-size: var(--fs-nano);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}

.ktype__ver:hover {
  color: var(--gold-deep);
  background: var(--gold-soft);
}

@media (max-width: 620px) {
  .ktype__ver small {
    display: none;
  }
}

/* ==========================================================================
   Khmer typing practice — colour mode (3 Nov 2026)
   Light, Dark, or Auto. Auto sets nothing and inherits the site, which already
   follows the device and the night window; Light and Dark pin the tool whatever
   the site is doing. The scope is a class, not the page, because in full screen
   the stage is moved to the end of the body and must carry its own mode.
   ========================================================================== */

/* The page tokens, pinned. Only the ones this tool reads. */
.ktype-scope[data-ktheme='dark'] {
  color-scheme: dark;
  --gold: #ffb236;
  --gold-bright: #ffb236;
  --gold-deep: #ffb236;
  --gold-soft: #0d0d0d;
  --ramp-1: #ffb236;
  --ramp-2: #ffb236;
  --ramp-3: #ffb236;
  --on-gold: #000000;
  --bg: #000000;
  --bg-alt: #000000;
  --bg-tint: #000000;
  --surface: #000000;
  --ink: #f4f5ef;
  --ink-soft: #ffb236;
  --muted: #9f9f9f;
  --line: rgb(255 255 255 / 10%);
  --line-strong: rgb(255 255 255 / 20%);
  --danger: #f0a3a0;
  --ok: #52c98d;
  --warn: #e0ac52;
  --shadow-sm: 0 4px 14px -8px rgb(0 0 0 / 60%);
  --shadow-card: 0 20px 44px -26px rgb(0 0 0 / 72%);
  --grad-gold: linear-gradient(135deg, var(--ramp-1) 0%, var(--ramp-2) 42%, var(--ramp-3) 100%);
}

.ktype-scope[data-ktheme='light'] {
  color-scheme: light;
  --gold: #ffb236;
  --gold-bright: #ffb236;
  --gold-deep: #0d0d0d;
  --gold-soft: #f4f5ef;
  --ramp-1: #ffb236;
  --ramp-2: #ffb236;
  --ramp-3: #ffb236;
  --on-gold: #ffffff;
  --bg: #ffffff;
  --bg-alt: #f4f5ef;
  --bg-tint: #f4f5ef;
  --surface: #ffffff;
  --ink: #000000;
  --ink-soft: #0d0d0d;
  --muted: #686868;
  --line: #f4f5ef;
  --line-strong: #d4d4d4;
  --danger: #b3261e;
  --ok: #1c7a4a;
  --warn: #8a5a12;
  --shadow-sm: 0 4px 14px -8px rgba(0, 0, 0, 18%);
  --shadow-card: 0 18px 40px -26px rgba(0, 0, 0, 24%);
  --grad-gold: linear-gradient(135deg, var(--ramp-1) 0%, var(--ramp-2) 42%, var(--ramp-3) 100%);
}

/* The panel the tool sits on follows its mode. */
.ktype-scope.solo {
  background: var(--surface);
  color: var(--ink);
}

/* ---- the keyboard's own palette, as variables ----------------------------
   Daylight: pale caps on a navy deck. Night: the same board backlit — dark
   glass caps, legends that glow, an underglow along the deck, and a next key
   that lights like a held switch. Written once as variables so the four
   places "dark" can come from (pinned, site dark, site auto + night, device
   dark) cannot drift apart. */
.ktype__stage {
  --k-deck:
    linear-gradient(180deg, rgb(255 255 255 / 7%) 0%, transparent 30%),
    linear-gradient(180deg, #000000 0%, #000000 55%, #000000 100%);
  --k-cap: linear-gradient(180deg, #f4f5ef 0%, #f4f5ef 100%);
  --k-cap-i: linear-gradient(180deg, #f4f5ef 0%, #ffb236 100%);
  --k-cap-m: linear-gradient(180deg, #f4f5ef 0%, #f4f5ef 100%);
  --k-cap-r: linear-gradient(180deg, #f4f5ef 0%, #f4f5ef 100%);
  --k-gloss: rgb(255 255 255 / 70%);
  --k-edge: #b4b4b4;
  --k-edge2: #9e9e9e;
  --k-drop: rgb(0 0 0 / 42%);
  --k-main: #000000;
  --k-sub: #909090;
  --k-name: #a5a5a5;
  --k-glow: none;
  --k-next: linear-gradient(180deg, #ffb236 0%, #ffb236 100%);
  --k-next-edge: #ffb236;
  --k-next-edge2: #0d0d0d;
  --k-next-glow: rgba(255, 178, 54, 55%);
  --k-next-glow2: rgba(255, 178, 54, 75%);
  --k-next-ink: #000000;
  --k-frieze: 0.42;
}

.ktype__stage[data-ktheme='dark'] {
  --k-deck:
    radial-gradient(90% 55% at 50% 118%, rgba(255, 178, 54, 30%), transparent 62%),
    linear-gradient(180deg, rgb(255 255 255 / 5%) 0%, transparent 26%),
    linear-gradient(180deg, #000000 0%, #000000 60%, #000000 100%);
  --k-cap: linear-gradient(180deg, #0d0d0d 0%, #0d0d0d 100%);
  --k-cap-i: linear-gradient(180deg, #0d0d0d 0%, #0d0d0d 100%);
  --k-cap-m: linear-gradient(180deg, #0d0d0d 0%, #0d0d0d 100%);
  --k-cap-r: linear-gradient(180deg, #0d0d0d 0%, #0d0d0d 100%);
  --k-gloss: rgb(255 255 255 / 11%);
  --k-edge: #000000;
  --k-edge2: #000000;
  --k-drop: rgb(0 0 0 / 60%);
  --k-main: #f4f5ef;
  --k-sub: #ffb236;
  --k-name: #787878;
  --k-glow: 0 0 9px rgba(244, 245, 239, 55%);
  --k-next: linear-gradient(180deg, #ffb236 0%, #ffb236 100%);
  --k-next-edge: #ffb236;
  --k-next-edge2: #0d0d0d;
  --k-next-glow: rgba(255, 178, 54, 70%);
  --k-next-glow2: rgba(255, 178, 54, 95%);
  --k-next-ink: #000000;
  --k-frieze: 0.62;
}

:root[data-theme='dark'] .ktype__stage:not([data-ktheme]),
:root[data-theme='auto'][data-night='1'] .ktype__stage:not([data-ktheme]) {
  --k-deck:
    radial-gradient(90% 55% at 50% 118%, rgba(255, 178, 54, 30%), transparent 62%),
    linear-gradient(180deg, rgb(255 255 255 / 5%) 0%, transparent 26%),
    linear-gradient(180deg, #000000 0%, #000000 60%, #000000 100%);
  --k-cap: linear-gradient(180deg, #0d0d0d 0%, #0d0d0d 100%);
  --k-cap-i: linear-gradient(180deg, #0d0d0d 0%, #0d0d0d 100%);
  --k-cap-m: linear-gradient(180deg, #0d0d0d 0%, #0d0d0d 100%);
  --k-cap-r: linear-gradient(180deg, #0d0d0d 0%, #0d0d0d 100%);
  --k-gloss: rgb(255 255 255 / 11%);
  --k-edge: #000000;
  --k-edge2: #000000;
  --k-drop: rgb(0 0 0 / 60%);
  --k-main: #f4f5ef;
  --k-sub: #ffb236;
  --k-name: #787878;
  --k-glow: 0 0 9px rgba(244, 245, 239, 55%);
  --k-next: linear-gradient(180deg, #ffb236 0%, #ffb236 100%);
  --k-next-edge: #ffb236;
  --k-next-edge2: #0d0d0d;
  --k-next-glow: rgba(255, 178, 54, 70%);
  --k-next-glow2: rgba(255, 178, 54, 95%);
  --k-next-ink: #000000;
  --k-frieze: 0.62;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme='auto'] .ktype__stage:not([data-ktheme]) {
    --k-deck:
      radial-gradient(90% 55% at 50% 118%, rgba(255, 178, 54, 30%), transparent 62%),
      linear-gradient(180deg, rgb(255 255 255 / 5%) 0%, transparent 26%),
      linear-gradient(180deg, #000000 0%, #000000 60%, #000000 100%);
    --k-cap: linear-gradient(180deg, #0d0d0d 0%, #0d0d0d 100%);
    --k-cap-i: linear-gradient(180deg, #0d0d0d 0%, #0d0d0d 100%);
    --k-cap-m: linear-gradient(180deg, #0d0d0d 0%, #0d0d0d 100%);
    --k-cap-r: linear-gradient(180deg, #0d0d0d 0%, #0d0d0d 100%);
    --k-gloss: rgb(255 255 255 / 11%);
    --k-edge: #000000;
    --k-edge2: #000000;
    --k-drop: rgb(0 0 0 / 60%);
    --k-main: #f4f5ef;
    --k-sub: #ffb236;
    --k-name: #787878;
    --k-glow: 0 0 9px rgba(244, 245, 239, 55%);
    --k-next: linear-gradient(180deg, #ffb236 0%, #ffb236 100%);
    --k-next-edge: #ffb236;
    --k-next-edge2: #0d0d0d;
    --k-next-glow: rgba(255, 178, 54, 70%);
    --k-next-glow2: rgba(255, 178, 54, 95%);
    --k-next-ink: #000000;
    --k-frieze: 0.62;
  }
}

/* ---- the keys, drawn from the variables ---------------------------------- */
.ktype__board {
  background: var(--k-deck);
}

.ktype__board::before,
.ktype__board::after {
  opacity: var(--k-frieze);
}

.ktype__key {
  background: linear-gradient(180deg, var(--k-gloss) 0%, transparent 42%), var(--k-cap);
  box-shadow:
    0 5px 0 var(--k-edge),
    0 6px 0 var(--k-edge2),
    0 10px 16px var(--k-drop),
    inset 0 1px 0 var(--k-gloss),
    inset 0 -2px 0 rgb(0 0 0 / 5%);
}

.ktype__key.is-l-index,
.ktype__key.is-r-index {
  background: linear-gradient(180deg, var(--k-gloss) 0%, transparent 42%), var(--k-cap-i);
}

.ktype__key.is-l-middle,
.ktype__key.is-r-middle {
  background: linear-gradient(180deg, var(--k-gloss) 0%, transparent 42%), var(--k-cap-m);
}

.ktype__key.is-l-ring,
.ktype__key.is-r-ring {
  background: linear-gradient(180deg, var(--k-gloss) 0%, transparent 42%), var(--k-cap-r);
}

.ktype__key:hover {
  filter: brightness(1.06);
}

.ktype__key b {
  color: var(--k-sub);
}

.ktype__key i {
  color: var(--k-main);
  text-shadow: var(--k-glow);
}

.ktype__key u {
  color: var(--k-name);
}

.ktype__key.is-down {
  box-shadow:
    0 0 0 var(--k-edge),
    0 1px 0 var(--k-edge2),
    0 2px 4px var(--k-drop),
    inset 0 1px 0 var(--k-gloss);
}

.ktype__key.is-next {
  background: linear-gradient(180deg, rgb(255 255 255 / 35%) 0%, transparent 42%), var(--k-next);
  box-shadow:
    0 5px 0 var(--k-next-edge),
    0 6px 0 var(--k-next-edge2),
    0 14px 26px var(--k-next-glow),
    inset 0 1px 0 rgb(255 255 255 / 60%);
  animation: ktype-breathe-v 1.1s ease-in-out infinite;
}

.ktype__key.is-next b,
.ktype__key.is-next i,
.ktype__key.is-next u {
  color: var(--k-next-ink);
  text-shadow: none;
}

@keyframes ktype-breathe-v {
  0%,
  100% {
    box-shadow:
      0 5px 0 var(--k-next-edge),
      0 6px 0 var(--k-next-edge2),
      0 14px 26px var(--k-next-glow),
      inset 0 1px 0 rgb(255 255 255 / 60%);
  }
  50% {
    box-shadow:
      0 5px 0 var(--k-next-edge),
      0 6px 0 var(--k-next-edge2),
      0 18px 34px var(--k-next-glow2),
      inset 0 1px 0 rgb(255 255 255 / 60%);
  }
}

.ktype__key--space {
  box-shadow:
    0 5px 0 var(--k-edge),
    0 6px 0 var(--k-edge2),
    0 10px 16px var(--k-drop),
    inset 0 1px 0 var(--k-gloss);
}

.ktype__key--space b,
.ktype__key--space i {
  color: var(--k-main);
}

.ktype__key.is-home::after {
  background: var(--k-next-glow);
}

/* ---- the switch ----------------------------------------------------------- */
.ktype__mode {
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  --i: 2;
}

.ktype__mode button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 10px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: var(--fs-nano);
  font-weight: 800;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.ktype__mode button svg {
  width: 12px;
  height: 12px;
  flex: none;
}

.ktype__mode button:hover {
  color: var(--gold-deep);
}

.ktype__mode button.is-on {
  color: var(--on-gold);
}

.ktype__mode-thumb {
  position: absolute;
  z-index: 0;
  top: 2px;
  bottom: 2px;
  left: 2px;
  width: calc((100% - 4px) / 3);
  border-radius: var(--radius-pill);
  background: var(--grad-gold);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--gold) 40%, transparent);
  transform: translateX(calc(var(--i) * 100%));
  transition: transform 0.28s cubic-bezier(0.3, 1.4, 0.5, 1);
}

/* The sun turns, the moon rocks, the half-disc swings, once, when chosen. */
.ktype__mode button.is-on svg {
  animation: ktype-mode-turn 0.5s var(--ease);
}

@keyframes ktype-mode-turn {
  from {
    transform: rotate(-70deg) scale(0.6);
  }
  to {
    transform: rotate(0) scale(1);
  }
}

@media (max-width: 760px) {
  .ktype__mode button span {
    display: none;
  }

  .ktype__mode button {
    padding: 4px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ktype__mode-thumb {
    transition: none;
  }

  .ktype__mode button.is-on svg,
  .ktype__key.is-next {
    animation: none;
  }
}

/* ---- the toolbar: one height, icons for the mode, a real tooltip ---------- */
.ktype__head-tools {
  gap: 6px;
  align-items: center;
}

.ktype__head-tools > .ktype__hands-btn,
.ktype__head-tools > .ktype__tour-btn,
.ktype__head-tools > .ktype__full,
.ktype__head-tools > .ktype__mode {
  box-sizing: border-box;
  height: 28px;
  margin: 0;
}

.ktype__head-tools > .ktype__hands-btn,
.ktype__head-tools > .ktype__tour-btn,
.ktype__head-tools > .ktype__full {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  border-width: 1px;
  line-height: 1;
  white-space: nowrap;
}

.ktype__head-tools .ktype__hands-btn span,
.ktype__head-tools .ktype__tour-btn span {
  flex: none;
}

/* The mode switch: three square icon buttons and a thumb that slides. */
.ktype__mode {
  padding: 1px;
  --i: 2;
}

.ktype__mode button {
  width: 26px;
  height: 24px;
  padding: 0;
}

.ktype__mode button svg {
  width: 14px;
  height: 14px;
}

.ktype__mode-thumb {
  top: 1px;
  bottom: 1px;
  left: 1px;
  width: calc((100% - 2px) / 3);
}

/* A tooltip that looks like it belongs to the keyboard rather than the
   browser, and appears below the control so the top edge never clips it. */
.ktype__head-tools [data-tip] {
  position: relative;
}

.ktype__head-tools [data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 9px);
  left: 50%;
  z-index: 60;
  padding: 6px 10px;
  border-radius: 8px;
  background: #000000;
  color: #f4f5ef;
  box-shadow: 0 10px 24px rgb(0 0 0 / 35%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-transform: none;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition:
    opacity 0.14s var(--ease),
    transform 0.14s var(--ease);
}

.ktype__head-tools [data-tip]::before {
  content: '';
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  z-index: 60;
  width: 8px;
  height: 8px;
  background: #000000;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px) rotate(45deg);
  transition:
    opacity 0.14s var(--ease),
    transform 0.14s var(--ease);
}

.ktype__head-tools [data-tip]:hover::after,
.ktype__head-tools [data-tip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
  transition-delay: 0.25s;
}

.ktype__head-tools [data-tip]:hover::before,
.ktype__head-tools [data-tip]:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0) rotate(45deg);
  transition-delay: 0.25s;
}

/* The last control sits on the right edge: its tooltip opens leftwards. */
.ktype__head-tools > .ktype__full[data-tip]::after {
  left: auto;
  right: 0;
  transform: translate(0, -4px);
}

.ktype__head-tools > .ktype__full[data-tip]:hover::after,
.ktype__head-tools > .ktype__full[data-tip]:focus-visible::after {
  transform: translate(0, 0);
}

.ktype__head-tools > .ktype__full[data-tip]::before {
  left: auto;
  right: 18px;
}

@media (hover: none) {
  .ktype__head-tools [data-tip]::after,
  .ktype__head-tools [data-tip]::before {
    display: none;
  }
}

/* The site's own [data-tip] opens above and draws its pointer as a border
   triangle. This toolbar opens below, so every property the global rule sets
   is reset here — leaving `bottom` and the triangle's borders in place
   stretched the bubble between two edges and drew a second arrow. */
.ktype__head-tools [data-tip]::after {
  bottom: auto;
  height: auto;
  border: 0;
  font-weight: 700;
}

.ktype__head-tools [data-tip]::before {
  bottom: auto;
  border: 0;
  border-top-color: transparent;
  box-shadow: none;
}

/* ---- the welcome card: one slim row, an avatar that fills in as you type -- */
.ktype__hello {
  position: relative;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 10px;
  padding: 10px 14px 10px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--gold-soft) 0%, var(--surface) 70%);
}

.ktype__hello-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--gold) 12%, var(--surface));
  color: var(--gold-deep);
  font-size: var(--fs-caption);
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 28%, transparent);
}

.ktype__hello-avatar svg {
  width: 20px;
  height: 20px;
}

.ktype__hello-avatar.has-name {
  background: var(--grad-gold);
  color: var(--on-gold);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--gold) 35%, transparent);
  animation: ktype-pop 0.22s var(--ease);
}

.ktype__hello > .ktype__hello-text {
  flex: 1 1 240px;
  display: grid;
  gap: 1px;
}

.ktype__hello-text strong {
  font-size: var(--fs-sm);
}

.ktype__hello-text span {
  font-size: var(--fs-nano);
  line-height: 1.45;
}

.ktype__hello input {
  flex: 0 1 220px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.ktype__hello input::placeholder {
  color: var(--muted);
  font-weight: 500;
  opacity: 0.8;
}

.ktype__hello input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.ktype__hello .ctool__btn {
  height: 36px;
  padding: 0 20px;
}

@media (max-width: 620px) {
  .ktype__hello input {
    flex: 1 1 100%;
  }
}

/* ==========================================================================
   Tool rating — the badge on the console's bottom-left corner
   Mirrors the visit counter on the right: the same pill, the same lift over
   the frame, so the two read as a pair of captions. Click it and a card opens
   upward over the console's edge. (3 Nov 2026)
   ========================================================================== */

.tool-vote {
  position: relative;
  align-self: flex-start;
}

.tool-vote__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 8px 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--muted);
  font-family: inherit;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.tool-vote__pill:hover,
.tool-vote__pill.is-open {
  border-color: var(--gold);
}

.tool-vote__pill strong {
  color: var(--ink);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.tool-vote__star {
  width: 14px;
  height: 14px;
  flex: none;
  color: #e5a82a;
}

.tool-vote__count {
  white-space: nowrap;
}

.tool-vote__cta {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--grad-gold);
  color: var(--on-gold);
  font-size: var(--fs-nano);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (min-width: 761px) {
  .tool-vote {
    position: absolute;
    left: clamp(18px, 3vw, 38px);
    bottom: -17px;
    z-index: 3;
  }

  .tool-vote__pill {
    box-shadow: 0 12px 28px -14px rgb(0 0 0 / 55%);
  }
}

/* The card. */
.tool-vote__pop {
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  z-index: 40;
  width: min(360px, 92vw);
  padding: 16px 18px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 28px 60px -24px rgb(0 0 0 / 45%);
  animation: tool-vote-in 0.18s var(--ease);
  transform-origin: bottom left;
}

@keyframes tool-vote-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 760px) {
  .tool-vote__pop {
    bottom: auto;
    top: calc(100% + 10px);
  }
}

.tool-vote__title {
  margin: 0 0 10px;
  font-size: var(--fs-sm);
  color: var(--muted);
}

.tool-vote__title b {
  color: var(--ink);
}

.tool-vote__stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.tool-vote__stars button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: color-mix(in srgb, var(--muted) 38%, transparent);
  cursor: pointer;
  transition:
    color 0.12s var(--ease),
    transform 0.12s var(--ease);
}

.tool-vote__stars button svg {
  width: 26px;
  height: 26px;
}

.tool-vote__stars button.is-on {
  color: #e5a82a;
  transform: scale(1.08);
}

.tool-vote__stars button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.tool-vote__word {
  margin-left: 10px;
  min-width: 5.5em;
  color: var(--ink);
  font-size: var(--fs-caption);
  font-weight: 800;
}

.tool-vote__hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: var(--fs-nano);
}

.tool-vote__survey {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.tool-vote__q {
  margin: 0;
  font-size: var(--fs-caption);
  font-weight: 800;
}

.tool-vote__q small {
  margin-left: 4px;
  color: var(--muted);
  font-size: var(--fs-nano);
  font-weight: 600;
}

.tool-vote__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tool-vote__chips button {
  padding: 5px 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: var(--fs-nano);
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 0.15s var(--ease),
    background 0.15s var(--ease),
    color 0.15s var(--ease);
}

.tool-vote__chips button:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
}

.tool-vote__chips button.is-on {
  border-color: transparent;
  background: var(--grad-gold);
  color: var(--on-gold);
}

.tool-vote__note {
  position: relative;
  display: grid;
  gap: 6px;
}

.tool-vote__note textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-caption);
  line-height: 1.5;
  resize: none;
}

.tool-vote__note textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.tool-vote__len {
  position: absolute;
  right: 8px;
  bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  opacity: 0.8;
  pointer-events: none;
}

.tool-vote__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.tool-vote__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tool-vote__row small {
  color: var(--muted);
  font-size: var(--fs-nano);
}

.tool-vote__send {
  padding: 8px 20px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--grad-gold);
  color: var(--on-gold);
  font-family: inherit;
  font-size: var(--fs-caption);
  font-weight: 800;
  cursor: pointer;
}

.tool-vote__send:disabled {
  opacity: 0.6;
  cursor: progress;
}

.tool-vote__err {
  margin: 0;
  color: var(--danger);
  font-size: var(--fs-nano);
  font-weight: 700;
}

.tool-vote__done {
  display: grid;
  justify-items: start;
  gap: 4px;
}

.tool-vote__done p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-caption);
  line-height: 1.55;
}

.tool-vote__tick {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad-gold);
  color: var(--on-gold);
  font-weight: 800;
  animation: ktype-pop 0.25s var(--ease);
}

.tool-vote__link {
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold-deep);
  font-family: inherit;
  font-size: var(--fs-nano);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .tool-vote__pop,
  .tool-vote__tick {
    animation: none;
  }
}

/* ==========================================================================
   Khmer type, bigger — on the keys, under the pointer, and on the line
   The legends were sized for a Latin keyboard, and Khmer carries its marks
   above and below the line, so at 17px a subscript is a smudge. The caps now
   hold a larger glyph, and the key under the pointer, the key to press next
   and the key being struck each magnify it further. (3 Nov 2026)
   ========================================================================== */

.ktype__key {
  padding: 8px 4px 7px;
}

.ktype__key i {
  font-size: clamp(21px, 1.9vw, 27px);
  line-height: 1.45;
  transform-origin: 50% 62%;
  transition: transform 0.14s var(--ease);
}

.ktype__key b {
  font-size: clamp(13px, 1.1vw, 16px);
  line-height: 1.4;
  transform-origin: 50% 70%;
  transition:
    transform 0.14s var(--ease),
    color 0.14s var(--ease);
}

/* Under the pointer, or reached with the keyboard: the glyph steps forward. */
.ktype__key:hover i,
.ktype__key:focus-visible i {
  transform: scale(1.38);
}

.ktype__key:hover b,
.ktype__key:focus-visible b {
  transform: scale(1.25);
  color: var(--k-main);
}

/* The key to press next is always the biggest thing on the board. */
.ktype__key.is-next i {
  transform: scale(1.32);
  font-weight: 700;
}

.ktype__key.is-next b {
  transform: scale(1.18);
}

/* And the one being struck swells for the instant it is down. */
.ktype__key.is-down i {
  transform: scale(1.55);
}

/* The line to copy, larger: it is what the eyes live on while the hands work. */
.ktype__text {
  font-size: clamp(25px, 3.1vw, 38px);
  line-height: 1.85;
}

.ktype__now {
  display: inline-block;
  transform: scale(1.1);
  transform-origin: 50% 70%;
}

@media (max-width: 760px) {
  .ktype__key i {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ktype__key i,
  .ktype__key b {
    transition: none;
  }
}

/* The send button and its note stay on one line each. */
.tool-vote__send,
.tool-vote__row small {
  white-space: nowrap;
}

.tool-vote__row {
  flex-wrap: wrap;
}

/* The space bar's legend is a sentence in English, not a glyph to learn: it
   keeps its own size and does not magnify. */
.ktype__key--space b,
.ktype__key--space i {
  font-size: var(--fs-micro);
  transform: none;
}

.ktype__key--space:hover i,
.ktype__key--space:hover b,
.ktype__key--space.is-next i,
.ktype__key--space.is-next b,
.ktype__key--space.is-down i {
  transform: none;
}

/* ---- the lesson picker: previous · this lesson ▾ · next --------------------
   Replaces the chip strip and its More menu. It always fits, says where you
   are in the level, and opens the whole level as a numbered list. */
.ktype__bar .ktype__lessons {
  display: none;
}

.ktype__pick {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  gap: 4px;
}

.ktype__pick-arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition:
    border-color 0.15s var(--ease),
    color 0.15s var(--ease);
}

.ktype__pick-arrow:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold-deep);
}

.ktype__pick-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.ktype__pick-arrow i {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentcolor;
  border-bottom: 2px solid currentcolor;
  transform: translateX(1px) rotate(135deg);
}

.ktype__pick-arrow:last-of-type i {
  transform: translateX(-1px) rotate(-45deg);
}

.ktype__pick-cur {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 12px 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.15s var(--ease),
    box-shadow 0.15s var(--ease);
}

.ktype__pick-cur:hover,
.ktype__pick-cur.is-open {
  border-color: var(--gold);
}

.ktype__pick-cur small {
  flex: none;
  color: var(--muted);
  font-size: var(--fs-nano);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ktype__pick-cur b {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: var(--fs-caption);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ktype__pick-cur em {
  flex: none;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: var(--fs-nano);
  font-style: normal;
  font-weight: 800;
}

.ktype__pick-cur > i {
  flex: none;
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-right: 2px solid currentcolor;
  border-bottom: 2px solid currentcolor;
  color: var(--muted);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s var(--ease);
}

.ktype__pick-cur.is-open > i {
  transform: translateY(1px) rotate(-135deg);
}

.ktype__pick .ktype__menu {
  left: 34px;
  right: 34px;
  min-width: 0;
}

.ktype__menu-item span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ktype__menu-item u {
  flex: none;
  width: 20px;
  color: var(--muted);
  font-size: var(--fs-nano);
  font-weight: 800;
  text-align: right;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.ktype__menu-item.is-on u {
  color: inherit;
  opacity: 0.8;
}

@media (max-width: 760px) {
  .ktype__pick {
    width: 100%;
  }

  .ktype__pick-cur small {
    display: none;
  }
}

/* ==========================================================================
   Consultation popup, smaller (7 Nov 2026)
   680px wide and as tall as the window was too much for a form of seven
   fields. Everything here is scoped to .consult, so the contact and quote
   pages — which share the .field system — are unchanged. Appended: the later
   rule wins in this stylesheet.
   ========================================================================== */

.consult {
  width: min(520px, calc(100vw - 24px));
}

.consult__panel {
  max-height: min(88dvh, 720px);
  border-radius: 20px;
  scrollbar-width: thin;
}

/* The header: same band, a third less of it. */
.consult__band {
  padding: 20px 24px 16px;
}

.consult__title {
  margin: 4px 0 6px;
  font-size: clamp(20px, 2.2vw, 24px);
}

.consult__lede {
  font-size: var(--fs-caption);
  line-height: 1.5;
}

.consult__promises {
  gap: 4px 14px;
  margin-top: 10px;
}

.consult__promises li {
  font-size: var(--fs-micro);
}

.consult__promise-tick {
  width: 15px;
  height: 15px;
}

.consult__promise-tick svg {
  width: 10px;
  height: 10px;
}

.consult__close {
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
}

/* The form. */
.consult__body {
  padding: 16px 22px 20px;
}

.consult__form {
  gap: 10px;
}

.consult__form .field-row2 {
  gap: 10px;
}

/* Slimmer fields: 56px tall down to 46px. The label still floats the same
   way, so the offsets that depend on it move with it. */
.consult__form .field__input {
  padding: 19px 12px 6px 40px;
  font-size: var(--fs-sm);
  border-radius: 12px;
}

.consult__form textarea.field__input {
  min-height: 84px;
  padding-top: 22px;
}

.consult__form .field__ic {
  left: 13px;
  top: 13px;
}

.consult__form .field__ic svg {
  width: 17px;
  height: 17px;
}

.consult__form .field--area .field__ic {
  top: 14px;
}

.consult__form .field__label {
  left: 40px;
  top: 12px;
  font-size: var(--fs-sm);
}

.consult__form .field:focus-within .field__label,
.consult__form .field__input:not(:placeholder-shown) + .field__label,
.consult__form .field--select .field__label {
  transform: translateY(-9px) scale(0.78);
}

/* The scheduler: days and times as small chips. */
.consult__form .booking {
  padding: 10px 12px 8px;
  border-radius: 14px;
}

.consult__form .booking__legend {
  font-size: var(--fs-micro);
}

.consult__form .booking__row + .booking__row {
  margin-top: 8px;
}

.consult__form .booking__caption {
  margin-bottom: 4px;
}

.consult__form .booking__days {
  gap: 6px;
  padding-bottom: 4px;
}

.consult__form .day-chip {
  width: 52px;
  padding: 6px 2px 5px;
  border-radius: 11px;
}

.consult__form .day-chip__num {
  font-size: var(--fs-h5);
}

.consult__form .booking__slots {
  gap: 6px;
  padding-bottom: 4px;
}

.consult__form .slot-chip {
  padding: 6px 11px;
  font-size: var(--fs-micro);
}

.consult__form .booking__hint {
  margin: 4px 0 0;
  font-size: var(--fs-nano);
}

.consult__send {
  padding-block: 12px;
}

@media (max-width: 560px) {
  .consult {
    width: calc(100vw - 16px);
  }

  .consult__band {
    padding: 18px 18px 14px;
  }

  .consult__body {
    padding: 14px 16px 18px;
  }
}

/* Second pass: the message box was 120px tall for one line of text (its rows
   attribute, not its min-height, set it), and the scheduler had air to spare.
   On a tall screen the whole form now fits without scrolling; on a short one
   the panel scrolls inside itself, as a dialog should. */
.consult__panel {
  max-height: min(92dvh, 800px);
}

.consult__form textarea.field__input {
  height: 76px;
  min-height: 76px;
}

.consult__band {
  padding-bottom: 14px;
}

.consult__form .booking {
  padding: 8px 12px 6px;
}

.consult__form .day-chip {
  padding: 5px 2px 4px;
}

.consult__form .booking__row + .booking__row {
  margin-top: 6px;
}

.consult__body {
  padding-bottom: 18px;
}

/* ---- About page → company profile download ---- */

/* A fixed navy surface in both colour modes, so every colour on it is a fixed
   light one (--deep-ink, --deep-muted, --gold-bright), never --gold/--gold-deep,
   which are dark blues in light mode. It lives inside `.prose`, so the link and
   image rules below are written as `.prose a.profile-dl__…` to outrank
   `.prose a` (gradient-clipped text) and `.prose img` (margin and radius). */
.profile-dl {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(22px, 3.4vw, 48px);
  align-items: center;
  padding: clamp(24px, 3.6vw, 44px);
  border-radius: 22px;
  background:
    radial-gradient(
      circle at 18% 20%,
      color-mix(in srgb, var(--gold-bright) 16%, transparent),
      transparent 55%
    ),
    linear-gradient(135deg, var(--brand-burgundy-mid), var(--brand-burgundy-deep));
  color: var(--deep-ink);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  isolation: isolate;
}

/* The brand's dot pattern, faint, fading out toward the text. */
.profile-dl::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(
    color-mix(in srgb, var(--deep-ink) 22%, transparent) 1.2px,
    transparent 1.6px
  );
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(100deg, #000 0%, transparent 62%);
  mask-image: linear-gradient(100deg, #000 0%, transparent 62%);
}

.profile-dl__glow {
  position: absolute;
  inset: auto -12% -40% auto;
  width: 60%;
  aspect-ratio: 1;
  z-index: -1;
  border-radius: var(--radius-pill);
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--gold-bright) 20%, transparent),
    transparent 68%
  );
  pointer-events: none;
}

/* Three real pages of the document, fanned like a hand of cards. */
.profile-dl__stage {
  position: relative;
  aspect-ratio: 16 / 11;
  min-width: 0;
}

.profile-dl .profile-dl__page,
.prose .profile-dl__page {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76%;
  height: auto;
  margin: 0;
  border-radius: 8px;
  box-shadow:
    0 18px 34px -12px rgb(0 0 0 / 0.55),
    0 0 0 1px color-mix(in srgb, var(--deep-ink) 14%, transparent);
  transition: transform 0.55s var(--ease);
}

.profile-dl__page--c {
  transform: translate(-50%, -50%) translate(15%, -6%) rotate(8deg);
}

.profile-dl__page--b {
  transform: translate(-50%, -50%) translate(6%, 0) rotate(3deg);
}

.profile-dl__page--a {
  transform: translate(-50%, -50%) translate(-5%, 6%) rotate(-3deg);
}

/* Pointing at the stack deals the pages out, so there is something to touch. */
.profile-dl:hover .profile-dl__page--c {
  transform: translate(-50%, -50%) translate(19%, -8%) rotate(11deg);
}

.profile-dl:hover .profile-dl__page--b {
  transform: translate(-50%, -50%) translate(7%, 0) rotate(4deg);
}

.profile-dl:hover .profile-dl__page--a {
  transform: translate(-50%, -50%) translate(-8%, 7%) rotate(-5deg);
}

.profile-dl__badge {
  position: absolute;
  top: 4%;
  left: 2%;
  z-index: 3;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--grad-gold);
  color: var(--on-gold);
  font-size: var(--fs-micro);
  font-weight: 800;
  letter-spacing: 0.14em;
  box-shadow: 0 8px 18px -8px rgb(0 0 0 / 0.5);
}

.profile-dl__body {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.profile-dl__eyebrow {
  color: var(--gold-bright);
  font-size: var(--fs-micro);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* The page's own `.prose-boxed .prose-box h2` rules do not reach here (this is
   not inside a box), but the global h2 margins and colour do. */
.profile-dl .profile-dl__title,
.prose .profile-dl__title {
  margin: 0;
  color: var(--deep-ink);
  font-size: var(--fs-h3);
  line-height: 1.2;
  text-wrap: balance;
}

.profile-dl__text {
  color: var(--deep-muted);
  font-size: var(--fs-body);
  line-height: 1.65;
}

.profile-dl .profile-dl__chips,
.prose .profile-dl__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 4px;
  padding: 0;
  list-style: none;
}

.profile-dl .profile-dl__chips li,
.prose .profile-dl__chips li {
  margin: 0;
  padding: 3px 11px;
  border: 1px solid color-mix(in srgb, var(--gold-bright) 32%, transparent);
  border-radius: var(--radius-pill);
  color: var(--gold-bright);
  font-size: var(--fs-nano);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.profile-dl .profile-dl__chips li::marker,
.prose .profile-dl__chips li::marker {
  content: none;
}

.profile-dl__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  margin-top: 6px;
}

/* A button on the accent: the ramp for the fill, --on-gold for the text, both
   of which flip together in dark mode. */
.profile-dl a.profile-dl__button,
.prose a.profile-dl__button {
  position: relative;
  display: inline-flex;
  gap: 14px;
  align-items: center;
  padding: 12px 22px 12px 14px;
  border-radius: var(--radius-pill);
  background-image: var(--grad-gold);
  background-size: auto;
  background-position: 0 0;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  color: var(--on-gold);
  font-weight: 700;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 14px 28px -14px rgb(0 0 0 / 0.6);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease;
}

.profile-dl a.profile-dl__button:hover,
.prose a.profile-dl__button:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 34px -14px rgb(0 0 0 / 0.65);
  background-position: 0 0;
  color: var(--on-gold);
}

/* A light sweeping across the button on hover, as on the founder doorway. */
.profile-dl__button::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / 0.32), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s ease;
}

.profile-dl__button:hover::after {
  left: 120%;
}

.profile-dl__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--on-gold) 16%, transparent);
}

.profile-dl__icon svg {
  transition: transform 0.3s ease;
}

.profile-dl__button:hover .profile-dl__icon svg {
  transform: translateY(3px);
}

.profile-dl__label {
  display: grid;
  gap: 1px;
  font-size: var(--fs-body);
  line-height: 1.25;
}

.profile-dl__label small {
  font-size: var(--fs-nano);
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.profile-dl a.profile-dl__read,
.prose a.profile-dl__read {
  background-image: none;
  -webkit-text-fill-color: currentColor;
  color: var(--deep-ink);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--gold-bright) 60%, transparent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.profile-dl a.profile-dl__read:hover,
.prose a.profile-dl__read:hover {
  color: var(--gold-bright);
  background-image: none;
  text-decoration-color: var(--gold-bright);
}

.profile-dl__fine {
  color: color-mix(in srgb, var(--deep-ink) 72%, transparent);
  font-size: var(--fs-caption);
}

@media (max-width: 860px) {
  .profile-dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-dl__stage {
    max-width: 440px;
    width: 100%;
    margin-inline: auto;
  }
}

@media (max-width: 520px) {
  .profile-dl a.profile-dl__button,
  .prose a.profile-dl__button {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-dl .profile-dl__page,
  .prose .profile-dl__page,
  .profile-dl a.profile-dl__button,
  .prose a.profile-dl__button,
  .profile-dl__button::after,
  .profile-dl__icon svg {
    transition: none;
  }
}

/* ---- Impressum ---- */

/* A label and its value, one pair per row. Inside `.prose-box`, so the card,
   its spine and its heading come from the shared boxed layout. */
.legal-dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.legal-dl > div {
  display: grid;
  grid-template-columns: minmax(130px, 0.28fr) minmax(0, 1fr);
  gap: 6px 20px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.legal-dl > div:first-child {
  border-top: 0;
  padding-top: 4px;
}

.legal-dl dt {
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.legal-dl dd {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
  color: var(--ink);
  min-width: 0;
}

.legal-updated {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
}

@media (max-width: 560px) {
  .legal-dl > div {
    grid-template-columns: minmax(0, 1fr);
  }
}

.legal-dl + p {
  margin-top: 14px;
}

/* Impressum: at-a-glance strip, jump links and link lists. Written as
   `.prose .x` so they outrank `.prose ul` / `.prose li` (padding, markers). */
.prose .legal-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 16px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.prose .legal-stats li {
  display: grid;
  gap: 4px;
  align-content: start;
  margin: 0;
  padding: clamp(14px, 1.8vw, 20px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.legal-stats strong {
  color: var(--gold-deep);
  font-size: var(--fs-h3);
  line-height: 1.1;
}

.legal-stats span {
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.45;
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.legal-toc > span {
  color: var(--muted);
  font-size: var(--fs-micro);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.prose .legal-toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prose .legal-toc li {
  margin: 0;
}

.prose .legal-toc a {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  /* background-color, not the shorthand: the shorthand resets the clip that
     paints the global link colour, and the label disappears. */
  background-color: var(--surface);
  font-size: var(--fs-caption);
}

.prose .legal-toc a:hover {
  border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
}

.prose-boxed .prose-box h3 {
  margin: 1.2em 0 0.4em;
  font-size: var(--fs-h5);
}

.prose .legal-list {
  display: grid;
  gap: 8px;
  margin: 0 0 1em;
  padding-left: 1.2em;
}

.prose .legal-list li {
  margin: 0;
}

.prose .legal-list--cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 28px;
  padding-left: 0;
  list-style: none;
}

.legal-list--cols li {
  display: grid;
  gap: 1px;
}

.legal-list--cols li span {
  color: var(--muted);
  font-size: var(--fs-caption);
}

@media (max-width: 900px) {
  .prose .legal-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .prose .legal-list--cols {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- Phone hero: the column may not grow to fit what is inside it ---- */

/* `grid-template-columns: 1fr` is `minmax(auto, 1fr)`, and `auto` means the
   widest thing in the column. The domain field's intrinsic width depends on the
   phone's own text metrics, so on a Pixel 9 Pro Max and an iPhone 16 Pro Max it
   came out about 8px wider than the screen's gutters — the whole hero (headline,
   field, slider) then ran past the right edge and the search button was clipped,
   while a desktop browser at the same width measured it narrower and looked
   fine. `minmax(0, 1fr)` pins the column to the space there is, and the
   `min-width: 0` lets each child shrink into it. */
@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__copy,
  .hero__showcase {
    min-width: 0;
    max-width: 100%;
  }

  .home-tools-search,
  .home-tools-search__form {
    min-width: 0;
    max-width: 100%;
  }

  .home-tools-search__input {
    width: 100%;
  }
}
