/* ==========================================================================
   kd.css  Kale & Dale design system, "The Friday Report"        v1.4 2026-11-11
   Spec (binding): client-proof/portal/redesign-2026-11-11/DESIGN.md
   Component reference for page builders: client-proof/portal/redesign-2026-11-11/SYSTEM.md

   Use on a page:
     <html lang="en" class="kd">           + the dark-mode head block + metas (SYSTEM.md "Dark mode")
     <link rel="preload" href="assets/fonts/league-gothic-var-latin.woff2" as="font" type="font/woff2" crossorigin>
     <link rel="stylesheet" href="assets/css/kd.css">
     <script src="assets/js/kd.js" defer></script>
   Every page loads this file (assets/style.css, site.js and main.js were retired in the final integration pass).

   1  Fonts + fallback metrics       League Gothic (display, wdth 75-100), Libre Franklin (text, wght 400-800)
                                     League Gothic has NO naira sign, no approx sign, no arrows: set currency
                                     figures with .kd-figure__n--text (Libre Franklin, which has U+20A6 and U+2248).
                                     Neither face has tabular figures; count-ups lock their width in kd.js.
   2  Tokens                         colour (semantic, light + dark), type scale, space, motion
   3  Base
   4  Type                           kd-display-1/2/3, kd-figure-xl, kd-lead, kd-small, kd-label, kd-prose
   5  Layout                         kd-wrap, kd-grid, kd-band (--alt, --brand, --stage), kd-section,
                                     kd-head, kd-rule
   6  Components                     kd-ticker, kd-nav, kd-hero, kd-dateline, kd-btn, kd-mark, kd-figure, kd-ledger,
                                     kd-source, kd-reasons, kd-case (--lead --feature --compact), kd-funnel, kd-quote,
                                     kd-film, kd-film-dialog, kd-tape, kd-strip, kd-table, kd-form (+ KDBooking skin),
                                     kd-faq, kd-cta, kd-footer, kd-sticky
   6b Promoted in Stage 2 (from home) kd-nav--studio (+ __drop __drop-btn __menu __login), kd-strip--gate (+ __view
                                     __track __frame __gate __live __loop, --bleed), kd-film--tap (+ __tap __v),
                                     kd-rail (+ -head __ctl __btn __list __item __cap __fig __who), kd-tabs (--display,
                                     kd-tab, kd-tabpanel), kd-ledger--fig, kd-steps, kd-quote--xl, kd-statement,
                                     kd-cta--split, kd-qualify, kd-footer--studio, kd-hero--page (--split),
                                     kd-prose--doc + kd-toc, kd-field/kd-input/kd-choices/kd-choice/kd-form__done,
                                     kd-doc, kd-faq--fold, kd-results + kd-result (--feature --compact --flip)
   7  Motion                        [data-kd-reveal], .kd-js gates, reduced motion
   8  Utilities                      kd-sr, kd-nowrap, kd-mt-*
   9  Theme                          kd-theme toggle (sun/moon), the 200ms toggle transition (.kd-theming)
   ========================================================================== */

/* 1 ─ Fonts ──────────────────────────────────────────────────────────────── */
@font-face {
  font-family: "League Gothic";
  src: url("../fonts/league-gothic-var-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Libre Franklin";
  src: url("../fonts/libre-franklin-var-latin.woff2") format("woff2");
  font-weight: 400 800; font-style: normal;
  font-display: swap;
}
/* Fallbacks tuned so a late swap moves as little as possible. */
@font-face {
  font-family: "KD Display Fallback";
  src: local("Arial Narrow Bold"), local("ArialNarrow-Bold"), local("Arial Narrow"), local("Roboto Condensed"), local("Impact");
  size-adjust: 80%; ascent-override: 121%; descent-override: 29%; line-gap-override: 0%;
}
@font-face {
  font-family: "KD Text Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Roboto");
  size-adjust: 102%; ascent-override: 94.7%; descent-override: 24.1%; line-gap-override: 0%;
}

/* 2 ─ Tokens ─────────────────────────────────────────────────────────────── */
/* COLOUR LIVES HERE AND NOWHERE ELSE (DESIGN.md "DARK MODE", SYSTEM.md "Dark mode: what every page must do").
   Semantic names only: pick a token by what the colour MEANS where you use it, never by how it looks in one theme.
   Light values on :root. Dark values twice, identical: (1) the system setting, unless the visitor forced light;
   (2) data-theme="dark" on <html> (set by the head snippet from storage, or by the kd-theme toggle in kd.js).
   No light-dark(): older Android WebViews. Values marked * differ from DESIGN.md: measured AA fixes (SYSTEM.md). */
:root {
  color-scheme: light;
  --surface:           oklch(0.975 0.006 290);   /* page */
  --surface-2:         oklch(0.945 0.010 290);   /* alternate band, zebra, wells, hover on surface */
  --surface-3:         oklch(0.905 0.014 290);   /* pressed, heavy wells, image placeholders */
  --surface-raised:    oklch(0.99 0.004 290);    /* sheets, dialogs, menus, the booking sheet */
  --field:             oklch(0.99 0.004 290);    /* text inputs, selects, radio wells (new) */
  --ink:               oklch(0.205 0.035 285);   /* text, ink rules */
  --ink-2:             oklch(0.40 0.030 285);    /* secondary text */
  --ink-3:             oklch(0.52 0.025 285);    /* meta, placeholders; never under 14px unless AA is measured */
  --ink-disabled:      oklch(0.205 0.035 285 / 0.35);   /* disabled control glyphs + edges (new) */
  --rule:              oklch(0.205 0.035 285 / 0.16);   /* hairlines */
  --rule-strong:       var(--ink);               /* 1px ledger lines */
  --line-input:        var(--ink-3);             /* form-control edges, >= 3:1 */
  --focus:             var(--ink);               /* focus ring on surface */
  --accent:            oklch(0.44 0.235 281);    /* violet as TEXT: links, numerals, labels, thin indicators */
  --accent-fill:       oklch(0.44 0.235 281);    /* violet as FILL: primary buttons, play buttons, bars */
  --accent-fill-hover: oklch(0.30 0.17 281);     /* hover / pressed fill */
  --on-accent:         oklch(0.975 0.006 290);   /* text + icons on accent-fill */
  --accent-tint:       oklch(0.93 0.035 285);    /* selected rows, chosen tiles, the comparison hero column */
  --band:              oklch(0.44 0.235 281);    /* the drenched violet band */
  --band-ink:          oklch(0.975 0.006 290);   /* text on band */
  --band-ink-2:        oklch(0.90 0.035 290);    /* secondary text on band */
  --band-rule:         oklch(0.975 0.006 290 / 0.28);   /* rules on band */
  --stage:             oklch(0.17 0.03 285);     /* film stage, film dialog, frame placeholders */
  --stage-ink:         oklch(0.975 0.006 290);   /* text + controls on stage */
  --stage-ink-2:       oklch(0.82 0.02 288);     /* secondary text on stage */
  --stage-rule:        oklch(0.975 0.006 290 / 0.2);    /* hairlines on stage (new) */
  --stage-bad:         oklch(0.66 0.18 27);      /* warm red as TEXT/rule on --stage: 5.7:1 light, 6.0:1 dark (--bad is 3.2:1 there) (new) */
  --track:             oklch(0.205 0.035 285);   /* a groove the marker fills (progress rule, the done disc): dark in BOTH themes (new) */
  --marker:            oklch(0.90 0.185 100);    /* highlighter chip. Never text. */
  --on-marker:         oklch(0.205 0.035 285);   /* text on marker: FIXED dark ink, both themes */
  --marker-edge:       oklch(0.205 0.035 285);   /* ring that keeps a small marker dot visible on surface (new) */
  --plate:             oklch(0.99 0.004 290);    /* mat behind white-background images (screenshots, logos) */
  --on-plate:          oklch(0.205 0.035 285);   /* captions printed ON the plate: fixed dark ink */
  --good:              oklch(0.50 0.13 155);
  --warn:              oklch(0.62 0.15 60);
  --bad:               oklch(0.52 0.19 25);
  --scrim:             oklch(0.17 0.03 285 / 0.62);   /* flat scrim over a photo where text sits on it */
  --wave:              oklch(0.205 0.035 285 / 0.26); /* tape waveform, unplayed (new) */
  --wave-played:       oklch(0.44 0.235 281);    /* tape waveform, played (new) */
  /* theme-dependent, not colour (new): the night edition's non-colour adjustments, so no page needs a dark selector */
  --photo-edge:        transparent;              /* dark: 1px rule round photos, posters and frames so edges hold */
  --plate-pad:         10px;                     /* the mat round a white-background image: SAME in both themes (no shift on toggle) */
  --mark-low:          1;                        /* headline marker: 1 = the low highlighter stroke (light), 0 = a full chip (dark) */
  --is-dark:           0;                        /* 0 light, 1 dark: lets a component draw its theme state with no JS */
}
:root[data-theme="light"] { color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --surface:           oklch(0.175 0.028 285);
    --surface-2:         oklch(0.215 0.032 285);
    --surface-3:         oklch(0.265 0.036 285);
    --surface-raised:    oklch(0.235 0.034 285);
    --field:             oklch(0.155 0.026 285);
    --ink:               oklch(0.93 0.012 290);
    --ink-2:             oklch(0.80 0.020 288);
    --ink-3:             oklch(0.68 0.025 288);
    --ink-disabled:      oklch(0.93 0.012 290 / 0.32);
    --rule:              oklch(0.93 0.012 290 / 0.22);
    --accent:            oklch(0.76 0.13 286);
    --accent-fill:       oklch(0.54 0.215 281);    /* * DESIGN 0.50 0.225: 2.9:1 against the surface; now >= 3:1 on every surface, 5.1:1 under on-accent */
    --accent-fill-hover: oklch(0.45 0.20 281);     /* * DESIGN 0.58 0.21: on-accent text fell to 4.3:1; hover goes deeper, as in light */
    --on-accent:         oklch(0.975 0.006 290);
    --accent-tint:       oklch(0.30 0.09 283);
    --band:              oklch(0.42 0.21 281);
    --band-ink:          oklch(0.975 0.006 290);
    --band-ink-2:        oklch(0.90 0.035 290);
    --band-rule:         oklch(0.975 0.006 290 / 0.28);
    --stage:             oklch(0.125 0.022 285);
    --stage-ink:         oklch(0.975 0.006 290);
    --stage-ink-2:       oklch(0.82 0.02 288);
    --stage-rule:        oklch(0.975 0.006 290 / 0.2);
    --stage-bad:         oklch(0.66 0.18 27);
    --track:             oklch(0.13 0.024 285);
    --marker:            oklch(0.87 0.170 100);
    --on-marker:         oklch(0.205 0.035 285);
    --marker-edge:       transparent;
    --plate:             oklch(0.955 0.008 290);
    --on-plate:          oklch(0.205 0.035 285);
    --good:              oklch(0.76 0.14 155);
    --warn:              oklch(0.80 0.13 75);
    --bad:               oklch(0.72 0.16 25);
    --scrim:             oklch(0.17 0.03 285 / 0.62);
    --wave:              oklch(0.93 0.012 290 / 0.3);
    --wave-played:       oklch(0.76 0.13 286);
    --photo-edge:        oklch(0.93 0.012 290 / 0.22);
    --plate-pad:         10px;
    --mark-low:          0;
    --is-dark:           1;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface:           oklch(0.175 0.028 285);
  --surface-2:         oklch(0.215 0.032 285);
  --surface-3:         oklch(0.265 0.036 285);
  --surface-raised:    oklch(0.235 0.034 285);
  --field:             oklch(0.155 0.026 285);
  --ink:               oklch(0.93 0.012 290);
  --ink-2:             oklch(0.80 0.020 288);
  --ink-3:             oklch(0.68 0.025 288);
  --ink-disabled:      oklch(0.93 0.012 290 / 0.32);
  --rule:              oklch(0.93 0.012 290 / 0.22);
  --accent:            oklch(0.76 0.13 286);
  --accent-fill:       oklch(0.54 0.215 281);
  --accent-fill-hover: oklch(0.45 0.20 281);
  --on-accent:         oklch(0.975 0.006 290);
  --accent-tint:       oklch(0.30 0.09 283);
  --band:              oklch(0.42 0.21 281);
  --band-ink:          oklch(0.975 0.006 290);
  --band-ink-2:        oklch(0.90 0.035 290);
  --band-rule:         oklch(0.975 0.006 290 / 0.28);
  --stage:             oklch(0.125 0.022 285);
  --stage-ink:         oklch(0.975 0.006 290);
  --stage-ink-2:       oklch(0.82 0.02 288);
  --stage-rule:        oklch(0.975 0.006 290 / 0.2);
  --stage-bad:         oklch(0.66 0.18 27);
  --track:             oklch(0.13 0.024 285);
  --marker:            oklch(0.87 0.170 100);
  --on-marker:         oklch(0.205 0.035 285);
  --marker-edge:       transparent;
  --plate:             oklch(0.955 0.008 290);
  --on-plate:          oklch(0.205 0.035 285);
  --good:              oklch(0.76 0.14 155);
  --warn:              oklch(0.80 0.13 75);
  --bad:               oklch(0.72 0.16 25);
  --scrim:             oklch(0.17 0.03 285 / 0.62);
  --wave:              oklch(0.93 0.012 290 / 0.3);
  --wave-played:       oklch(0.76 0.13 286);
  --photo-edge:        oklch(0.93 0.012 290 / 0.22);
  --plate-pad:         10px;
  --mark-low:          0;
  --is-dark:           1;
}

/* type, space, motion (theme-independent) */
:root {
  --font-display: "League Gothic", "KD Display Fallback", "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
  --font-text:    "Libre Franklin", "KD Text Fallback", "Helvetica Neue", Arial, sans-serif;

  --t-display-1: clamp(3.25rem, 10.5vw, 9.5rem);
  /* phone floors raised in Stage 2 (was 2.5rem / 2rem): section heads keep presence beside an 88px h1 at 360-430px */
  --t-display-2: clamp(3rem, 6.5vw, 5.5rem);
  --t-display-3: clamp(2.25rem, 4vw, 3.25rem);
  --t-figure-xl: clamp(4rem, 14vw, 12rem);
  --t-lead: 1.25rem;
  --t-body: 1.0625rem;
  --t-small: 0.875rem;
  --t-label: 0.78rem;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 112px; --s-10: 160px;
  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1320px;
  --section: clamp(72px, 10vw, 140px);
  --nav-h: 64px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --d-state: 160ms; --d-reveal: 320ms; --d-land: 800ms;
  --radius-ctl: 4px;
}

/* 3 ─ Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; background: var(--surface); color: var(--ink); accent-color: var(--ink);
  font-family: var(--font-text); font-size: var(--t-body); line-height: 1.55;
  font-kerning: normal; font-variant-numeric: lining-nums tabular-nums;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video, picture { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
b, strong { font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }
::selection { background: var(--marker); color: var(--on-marker); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.kd-band--brand :focus-visible { outline-color: var(--band-ink); }
.kd-band--stage :focus-visible, .kd-film-dialog :focus-visible { outline-color: var(--stage-ink); }

/* 4 ─ Type ───────────────────────────────────────────────────────────────── */
.kd-display-1, .kd-display-2, .kd-display-3, .kd-figure-xl {
  font-family: var(--font-display); font-weight: 400; font-stretch: 100%;
  letter-spacing: -0.005em; line-height: 0.94; text-wrap: balance;
}
.kd-display-1 { font-size: var(--t-display-1); line-height: 0.92; }
.kd-display-2 { font-size: var(--t-display-2); line-height: 0.9; }
.kd-display-3 { font-size: var(--t-display-3); line-height: 0.98; }
.kd-figure-xl { font-size: var(--t-figure-xl); line-height: 0.86; }
.kd-lead { font-size: var(--t-lead); line-height: 1.5; color: var(--ink-2); max-width: 60ch; text-wrap: pretty; }
.kd-lead strong { color: var(--ink); font-weight: 700; }
.kd-small { font-size: var(--t-small); line-height: 1.5; }
.kd-label {
  font-family: var(--font-text); font-size: var(--t-label); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.35; color: var(--ink-2);
}
.kd-prose { max-width: 68ch; }
.kd-prose > * + * { margin-top: 1em; }
.kd-prose p { text-wrap: pretty; }

/* 5 ─ Layout ─────────────────────────────────────────────────────────────── */
.kd-wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.kd-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 32px); }
.kd-section { padding-block: var(--section); }
.kd-section--tight { padding-block: calc(var(--section) * 0.6); }
/* rhythm: not every gap is the same. --air opens a chapter (160px desktop), --air-top only above. */
.kd-section--air { padding-block: clamp(88px, 11.2vw, 160px); }
.kd-section--air-top { padding-top: clamp(88px, 11.2vw, 160px); }
/* bands: kd-band--alt = the surface-2 band, kd-band--brand = the drenched band, kd-band--stage = films */
.kd-band--alt { background: var(--surface-2); }
.kd-band--brand { background: var(--band); color: var(--band-ink); --mark-pre: var(--band-ink); }
/* a stage band reads as a stage in both themes: at night --stage sits BELOW the dark surface, so its top and bottom edge
   carry a --stage-rule hairline (inset shadow: no layout) */
.kd-band--stage { background: var(--stage); color: var(--stage-ink); box-shadow: inset 0 1px 0 var(--stage-rule), inset 0 -1px 0 var(--stage-rule); }
.kd-band--brand .kd-label, .kd-band--brand .kd-lead { color: var(--band-ink-2); }
.kd-band--brand .kd-lead strong { color: var(--band-ink); }
.kd-band--brand .kd-rule, .kd-band--brand .kd-rule--soft { border-top-color: var(--band-rule); }
.kd-rule { border: 0; border-top: 1px solid var(--rule-strong); margin: 0; }
.kd-rule--soft { border-top-color: var(--rule); }

/* section head: label line + headline + lead, left-aligned */
.kd-head { display: grid; gap: var(--s-4); max-width: 72rem; }
/* a label above a headline only when it names something real (a dateline, a series); no decorative rule */
.kd-head .kd-label { display: block; }
.kd-head > .kd-display-2 { max-width: 12em; }
.kd-head .kd-lead { margin-top: var(--s-1); }
.kd-head + * { margin-top: var(--s-7); }

/* 6 ─ Components ─────────────────────────────────────────────────────────── */

/* kd-ticker: one-line announcement. The dot is the one "live" use of marker yellow. */
.kd-ticker { background: var(--surface-2); border-bottom: 1px solid var(--rule); font-size: var(--t-small); }
.kd-ticker__in { display: flex; align-items: center; gap: var(--s-3); min-height: 44px; padding-block: 0; }
.kd-ticker__dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--marker); box-shadow: 0 0 0 1.5px var(--marker-edge); }
/* the link is the whole 44px row tall, so it is a real tap target */
.kd-ticker a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; }
.kd-ticker__short { display: none; }
@media (max-width: 719px) { .kd-ticker__full { display: none; } .kd-ticker__short { display: inline; } }

/* kd-nav: wordmark, links, CTA. Sticky; gains an ink rule once scrolled. */
.kd-nav { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid transparent; transition: border-color var(--d-state) linear; }
.kd-nav.is-scrolled { border-bottom-color: var(--rule-strong); }
.kd-nav__in { display: flex; align-items: center; gap: var(--s-6); min-height: var(--nav-h); }
.kd-nav__mark { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.025em; text-decoration: none; line-height: 1; }
.kd-nav__links { display: flex; gap: var(--s-1); margin-left: auto; }
.kd-nav__links a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px; font-weight: 600; font-size: 0.95rem; text-decoration: none; position: relative; }
.kd-nav__links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 9px; height: 6px; background: var(--marker); z-index: -1; transform: scaleX(0); transform-origin: left; transition: transform var(--d-reveal) var(--ease-out); }
.kd-nav__links a:hover::after { transform: scaleX(1); }
.kd-nav__links a { isolation: isolate; }
/* the burger only exists with JS (.kd-js); without JS the links stay in the bar (they wrap onto a second row on phones) */
.kd-nav__burger { display: none; }
/* optional "Book a call" inside the link list: shown only on phones, where the CTA button steps aside */
.kd-nav__links .kd-nav__book { display: none; }
@media (max-width: 859px) {
  .kd-nav__in { gap: var(--s-3); }
  .kd-js .kd-nav__links { display: none; }
  .kd-nav__links { flex-wrap: wrap; }
  .kd-nav__cta { margin-left: auto; }
  .kd-js .kd-nav__burger {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px;
    border: 0; background: none; padding: 0; border-radius: var(--radius-ctl);
  }
  .kd-nav__burger span { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: transform var(--d-state) var(--ease-out); }
  .kd-nav__burger span::before, .kd-nav__burger span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--ink); transition: transform var(--d-state) var(--ease-out); }
  .kd-nav__burger span::before { top: -7px; } .kd-nav__burger span::after { top: 7px; }
  .kd-nav.is-open .kd-nav__burger span { background: transparent; }
  .kd-nav.is-open .kd-nav__burger span::before { transform: translateY(7px) rotate(45deg); }
  .kd-nav.is-open .kd-nav__burger span::after { transform: translateY(-7px) rotate(-45deg); }
  .kd-nav.is-open .kd-nav__links {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong);
    padding: var(--s-2) var(--gutter) var(--s-4);
  }
  .kd-nav.is-open .kd-nav__links a { min-height: 52px; padding-inline: 0; font-size: 1.1rem; border-bottom: 1px solid var(--rule); }
  .kd-nav.is-open .kd-nav__links a::after { display: none; }
  .kd-nav.is-open .kd-nav__links a:last-child { border-bottom: 0; }
}
@media (max-width: 719px) {
  .kd-nav__cta.kd-btn { display: none; } .kd-nav__burger { margin-left: auto; }
  .kd-nav__links .kd-nav__book { display: inline-flex; }
  /* no JS: wordmark on the first row, every link (Book a call included) on a full-width row below */
  html:not(.kd-js) .kd-nav__in { flex-wrap: wrap; column-gap: 0; padding-block: 6px 4px; }
  html:not(.kd-js) .kd-nav__links { order: 3; flex: 1 1 100%; margin-left: -8px; gap: 0; }
  html:not(.kd-js) .kd-nav__links a { padding-inline: 8px; }
  html:not(.kd-js) .kd-nav__links a::after { left: 8px; right: 8px; }
}
@media (max-width: 379px) { .kd-nav__cta.kd-btn { padding-inline: 14px; } .kd-nav__mark { font-size: 1.15rem; } }

/* kd-dateline: the newspaper dateline under the masthead */
.kd-dateline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-5); padding-block: var(--s-3); border-bottom: 1px solid var(--rule-strong); }
.kd-dateline > * { margin: 0; }

/* kd-hero: generic shell; composition lives in the page file */
.kd-hero { padding-top: clamp(16px, 2.5vw, 32px); }
.kd-hero__plate { margin: 0; background: var(--surface-3); overflow: hidden; outline: 1px solid var(--photo-edge); }
.kd-hero__plate img { width: 100%; height: 100%; object-fit: cover; }

/* kd-btn: primary violet, secondary ink outline, text link with marker underline */
.kd-btn {
  --btn-bg: var(--accent-fill); --btn-fg: var(--on-accent); --btn-bd: var(--accent-fill);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border: 1.5px solid var(--btn-bd); border-radius: var(--radius-ctl);
  background: var(--btn-bg); color: var(--btn-fg);
  font: 700 1rem/1.1 var(--font-text); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  transition: background-color var(--d-state) linear, border-color var(--d-state) linear, color var(--d-state) linear, transform 90ms linear;
  -webkit-tap-highlight-color: transparent;
}
.kd-btn:hover { --btn-bg: var(--accent-fill-hover); --btn-bd: var(--accent-fill-hover); }
.kd-btn:active { transform: translateY(1px); }
.kd-btn svg { width: 14px; height: 14px; flex: none; fill: currentColor; }
.kd-btn--lg { min-height: 56px; padding-inline: 28px; font-size: 1.0625rem; }
.kd-btn--secondary { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink); }
.kd-btn--secondary:hover { --btn-bg: var(--ink); --btn-fg: var(--surface); --btn-bd: var(--ink); }
.kd-btn--on-band { --btn-bg: var(--band-ink); --btn-fg: var(--band); --btn-bd: var(--band-ink); }
.kd-btn--on-band:hover { --btn-bg: var(--marker); --btn-fg: var(--on-marker); --btn-bd: var(--marker); }
.kd-btn--outline-on-band { --btn-bg: transparent; --btn-fg: var(--band-ink); --btn-bd: var(--band-ink); }
.kd-btn--outline-on-band:hover { --btn-bg: var(--band-ink); --btn-fg: var(--band); }
.kd-btn--text {
  --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--accent);
  padding-inline: 2px; min-height: 44px; position: relative; isolation: isolate; border-radius: 0;
}
.kd-btn--text:hover { --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--ink); }
.kd-btn--text::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 7px; z-index: -1;
  background: var(--marker); transform: scaleX(0); transform-origin: left; transition: transform var(--d-reveal) var(--ease-out);
}
.kd-btn--text::before { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1.5px; background: currentColor; }
.kd-btn--text:hover::after, .kd-btn--text:focus-visible::after { transform: scaleX(1); }
.kd-btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); }

/* kd-mark: highlighter stroke behind a word or numeral. Ink text only.
   Static by default; with .kd-js it waits for .is-marked (kd.js) and swipes in once. */
.kd-mark { position: relative; isolation: isolate; white-space: nowrap; color: var(--on-marker); }   /* static: the chip is drawn, so the word is ink on marker */
/* Stroke height: --mk-top / --mk-bot (set THESE in a page file, never top/bottom on ::before). In light the stroke is the
   low highlighter pass; in dark (--mark-low: 0) it grows to a full chip behind the whole word, because a half stroke
   would leave the top of each letter as dark ink on the dark page.
   The dark chip covers the whole glyph box by default, descenders included (g, p, y hang INSIDE the yellow), so no page
   needs a padding-bottom hack: --mk-chip-top 0.19em / --mk-chip-bot 0.02em are measured from the content box (League
   Gothic: cap/ascender top 0.2245em below it, g descender 0.0365em above its bottom; Libre Franklin 0.214em / 0.071em)
   and the chip is level (--mk-rot 0 in dark: a tilted chip lifts its right end off the descenders of long words).
   Light keeps the tilted low stroke unchanged. Everything is on the pseudo-element: zero layout shift on toggle. */
.kd-mark { --mk-top: 0.47em; --mk-bot: 0.13em; --mk-chip-top: 0.19em; --mk-chip-bot: 0.02em; --mk-rot: calc(-1.2deg * var(--mark-low)); }
.kd-mark::before {
  content: ""; position: absolute; z-index: -1; left: -0.05em; right: -0.07em;
  top: calc(var(--mk-top) * var(--mark-low) + var(--mk-chip-top) * (1 - var(--mark-low)));
  bottom: calc(var(--mk-bot) * var(--mark-low) + var(--mk-chip-bot) * (1 - var(--mark-low)));
  background: var(--marker); border-radius: 0.05em 0.14em 0.08em 0.03em;
  transform: rotate(var(--mk-rot)) scaleX(1); transform-origin: 0 50%;
}
.kd-js .kd-mark[data-kd-mark]::before { transform: rotate(var(--mk-rot)) scaleX(0); }
.kd-js .kd-mark[data-kd-mark].is-marked::before { transform: rotate(var(--mk-rot)) scaleX(1); transition: transform 760ms var(--ease-out); }
/* The swipe keeps "ink on marker, never yellow text" true in BOTH themes, on every frame. kd.js wraps the words of each
   [data-kd-mark] in .kd-mark__t; the words are painted with a hard-edged two-ink fill clipped to the glyphs: --on-marker
   on the left, the surrounding text colour (--mark-pre: --ink, or --band-ink on a band) on the right. The edge travels
   with the stroke (same 760ms, same easing), so every letter is on-marker ink exactly while yellow sits behind it.
   In light the two inks are the same colour; in dark the words turn from paper-white to ink as the stroke reaches them.
   Without background-clip:text support the words stay plain on-marker ink (the static rule above). */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .kd-js .kd-mark[data-kd-mark] .kd-mark__t {
    display: inline-block; color: transparent; -webkit-text-fill-color: transparent;
    background: linear-gradient(90deg, var(--on-marker) 50%, var(--mark-pre, var(--ink)) 50%) 100% 0 / 200% 100% no-repeat;
    -webkit-background-clip: text; background-clip: text;
  }
  .kd-js .kd-mark[data-kd-mark].is-marked .kd-mark__t { background-position: 0 0; transition: background-position 760ms var(--ease-out); }
  .kd-js.kd-reveal-done .kd-mark[data-kd-mark] .kd-mark__t { background-position: 0 0; }
}

/* Marker on a violet band: the stroke carries an ink copy of the figure, revealed by a
   transform-only mask (outer slides in, inner slides back), so text on yellow is always ink. */
.kd-mark--block { white-space: nowrap; display: inline-block; position: relative; line-height: 0.92; padding: 0 0.07em; margin: 0 -0.07em 0 0; }
.kd-mark--block::before { display: none; }
.kd-mark__hl { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.kd-mark__hl > span {
  position: absolute; inset: 0; display: block; padding: 0 0.07em; color: var(--on-marker); background: var(--marker);
  border-radius: 0.02em 0.04em 0.03em 0.02em;
}
.kd-js .kd-mark--block[data-kd-mark] .kd-mark__hl { transform: translateX(-101%); }
.kd-js .kd-mark--block[data-kd-mark] .kd-mark__hl > span { transform: translateX(101%); }
.kd-js .kd-mark--block[data-kd-mark].is-marked .kd-mark__hl,
.kd-js .kd-mark--block[data-kd-mark].is-marked .kd-mark__hl > span { transform: translateX(0); transition: transform 760ms var(--ease-out); }

/* --stroke: the same hand-made stroke as a headline kd-mark, for a figure on a violet band. The stroke covers the
   lower part of the numerals with slightly uneven edges and a small upward slant; the numerals overhang it. Inside
   the stroke an ink copy of the figure is shown (ink on marker only); above it the paper figure stays on violet.
   Same transform-only swipe as --block. */
.kd-mark--stroke { padding: 0; margin: 0; }
.kd-mark--stroke .kd-mark__hl { inset: 0 -0.12em 0 -0.035em; }
.kd-mark--stroke .kd-mark__hl > span {
  padding: 0 0 0 0.035em; background: var(--marker); border-radius: 0;
  clip-path: polygon(0.6% 55%, 9% 53.4%, 31% 51.6%, 55% 50.2%, 78% 48.4%, 97.4% 46.6%, 99.6% 49%, 100% 62%, 99.2% 79%, 99.7% 88.4%,
                     84% 89.6%, 61% 90.8%, 37% 92%, 14% 93.4%, 1.4% 94.6%, 0.2% 86%, 1% 72%);
}

/* --fill: the one figure that matters, on a violet band. A single numeral set in ink on a hand-made marker stroke that
   covers the whole figure (ink on marker is the only colour pair; no second copy of the number). The stroke is an
   empty aria-hidden element, not a pseudo-element, so the real paint stack (and any contrast audit) sees the yellow.
   Markup: <span class="kd-mark kd-mark--fill" data-kd-mark><span class="kd-mark__fill" aria-hidden="true"></span>
           <span class="kd-count" data-kd-count="778">778</span></span>
   Static (no JS, reduced motion); with .kd-js it swipes in left to right once, BEFORE the count starts (kd.js 1.3), so
   the rolling numerals are ink on marker from their first frame. */
.kd-mark--fill { display: inline-block; line-height: 0.9; color: var(--on-marker); padding: 0 0.035em; }
.kd-mark--fill::before { display: none; }
.kd-mark__fill {
  position: absolute; z-index: -1; left: -0.06em; right: -0.05em; top: 0.03em; bottom: -0.03em; background: var(--marker);
  /* same family as the headline kd-mark: soft, uneven corners, a slight upward slant; the ends are cut on a
     chisel-tip angle (skew) so it reads as one highlighter pass, not a box */
  border-radius: 0.05em 0.13em 0.08em 0.03em / 0.08em 0.05em 0.12em 0.06em;
  transform: rotate(-1.6deg) skewX(-5deg) scaleX(1); transform-origin: 0 50%;
}
.kd-js .kd-mark--fill[data-kd-mark] .kd-mark__fill { transform: rotate(-1.6deg) skewX(-5deg) scaleX(0); }
.kd-js .kd-mark--fill[data-kd-mark].is-marked .kd-mark__fill { transform: rotate(-1.6deg) skewX(-5deg) scaleX(1); transition: transform 760ms var(--ease-out); }

/* kd-figure: numeral + label + source */
.kd-figure { display: grid; gap: 6px; align-content: start; }
.kd-figure > .kd-figure__n { order: -1; }   /* markup is dt (label) then dd (numeral); the numeral reads first */
.kd-ledger--row > div > dd { order: -1; }
.kd-figure__n { font-family: var(--font-display); font-weight: 400; font-size: var(--t-display-3); line-height: 0.9; letter-spacing: -0.005em; }
.kd-figure__n--text { font-family: var(--font-text); font-weight: 800; letter-spacing: -0.035em; font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1.05; }
.kd-figure__l { font-size: var(--t-small); font-weight: 600; line-height: 1.4; color: var(--ink-2); max-width: 30ch; }
.kd-count { display: inline-block; }

/* kd-ledger: figure rows ruled in ink, never boxed */
.kd-ledger { display: grid; border-top: 1px solid var(--rule-strong); }
.kd-ledger > * { padding-block: var(--s-4) var(--s-5); border-bottom: 1px solid var(--rule); }
.kd-ledger--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-6); }
.kd-ledger--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s-6); }
@media (max-width: 719px) { .kd-ledger--cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-5); } }
.kd-ledger--row > * { display: grid; grid-template-columns: minmax(5.5rem, auto) 1fr; align-items: baseline; column-gap: var(--s-5); }

/* kd-source: where a number comes from */
.kd-source { position: relative; font-size: var(--t-small); line-height: 1.55; color: var(--ink-2); max-width: 64ch; padding-left: 5.2em; }
.kd-source::before { content: "Source"; position: absolute; left: 0; top: 0.2em; font-size: 0.72rem; line-height: 1.5; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.kd-source strong { color: var(--ink); }
.kd-source--plain { padding-left: 0; }
@media (max-width: 719px) { .kd-source { padding-left: 0; } .kd-source::before { position: static; display: block; margin-bottom: 4px; } }
.kd-source--plain::before { display: none; }
.kd-band--brand .kd-source { color: var(--band-ink-2); }
.kd-band--brand .kd-source::before, .kd-band--brand .kd-source strong { color: var(--band-ink); }

/* kd-reasons: numbered reasons as ledger rows (not cards) */
.kd-reasons { border-top: 1px solid var(--rule-strong); counter-reset: r; }
.kd-reasons > li { display: grid; grid-template-columns: 4.5rem minmax(0, 4fr) minmax(0, 7fr); gap: var(--s-5); padding-block: var(--s-5) var(--s-6); border-bottom: 1px solid var(--rule); align-items: baseline; }
.kd-reasons__n { font-family: var(--font-display); font-size: 3rem; line-height: 0.8; color: var(--accent); }
.kd-reasons__t { font-size: 1.3rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.kd-reasons__b { color: var(--ink-2); max-width: 58ch; line-height: 1.55; }
@media (max-width: 859px) {
  .kd-reasons > li { grid-template-columns: 3rem minmax(0, 1fr); row-gap: var(--s-2); }
  .kd-reasons__b { grid-column: 2; }
  .kd-reasons__n { font-size: 2.4rem; }
}

/* kd-case: case dossier. Variants: --lead (full width), --feature (alternating), --compact (pairs) */
.kd-cases { display: grid; gap: clamp(72px, 9vw, 128px); }
.kd-case { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 32px); row-gap: var(--s-6); align-items: start; }
.kd-case__head { display: grid; gap: var(--s-3); }
.kd-case__dateline { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--accent); }
.kd-case__name { font-family: var(--font-display); font-weight: 400; font-size: var(--t-display-3); line-height: 0.95; letter-spacing: -0.005em; text-wrap: balance; }
.kd-case__engagement { font-size: 1.125rem; line-height: 1.5; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.kd-case__plates { display: grid; grid-template-columns: minmax(0, 1.7778fr) minmax(0, 0.5625fr); gap: clamp(8px, 1vw, 14px); align-items: stretch; }
.kd-case__plates--solo { grid-template-columns: 1fr; }
.kd-case__photo { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-3); outline: 1px solid var(--photo-edge); }
.kd-case__photo picture, .kd-hero__plate picture { width: 100%; height: 100%; }
.kd-case__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.kd-case__photo:hover img { transform: scale(1.03); }
.kd-case__body { display: grid; gap: var(--s-6); align-content: start; }
.kd-case__notes { display: grid; border-top: 1px solid var(--rule); }
.kd-case__notes li { padding-block: 10px; border-bottom: 1px solid var(--rule); font-size: 1rem; line-height: 1.45; }
.kd-case__notes b { font-weight: 800; color: var(--accent); }
.kd-case__numbers { display: grid; gap: var(--s-4); align-content: start; }
.kd-case__value { display: grid; gap: 4px; }
.kd-case__value .kd-figure__n--text { color: var(--ink); }
.kd-case__actions { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: center; }

/* lead: name across, plates across (photo + film at the same height), numbers | quote */
.kd-case--lead .kd-case__head,
.kd-case--feature .kd-case__head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(16px, 2.2vw, 32px); align-items: end; }
.kd-case--lead .kd-case__head .kd-case__dateline,
.kd-case--feature .kd-case__head .kd-case__dateline { grid-column: 1 / -1; }
.kd-case--lead .kd-case__head { grid-column: 1 / -1; }
.kd-case--lead .kd-case__name { font-size: var(--t-display-2); }
.kd-case--lead .kd-case__engagement, .kd-case--feature .kd-case__engagement { justify-self: start; padding-bottom: 0.35em; }
.kd-case--lead .kd-case__plates { grid-column: 1 / -1; }
.kd-case--lead .kd-case__numbers { grid-column: 1 / span 5; }
.kd-case--lead .kd-case__side { grid-column: 7 / -1; display: grid; gap: var(--s-6); align-content: start; }
.kd-case__photo img { object-position: var(--crop, 50% 50%); }   /* --crop: set per photo by build_cases_v2.py */

/* feature (wide, >= 1000px): a spread. The media column is a print laid on a print: the job photo at its own landscape
   ratio (16:10) across the column, the 9:16 film frame overlapping its lower outer corner with a paper edge. The media
   block is top-aligned with the dossier text and keeps its own height (no stretching to the text). --flip mirrors. */
.kd-case--feature .kd-case__body { display: grid; gap: var(--s-5); align-content: start; }
@media (min-width: 1000px) {
  .kd-case--feature { row-gap: var(--s-5); }
  .kd-case--feature .kd-case__head { grid-template-columns: 1fr; grid-column: 8 / -1; grid-row: 1; row-gap: 10px; }
  .kd-case--feature .kd-case__name { font-size: clamp(2.4rem, 3.3vw, 3.1rem); }
  .kd-case--feature .kd-case__engagement { padding-bottom: 0; font-size: 1.0625rem; }
  .kd-case--feature .kd-case__body { grid-column: 8 / -1; grid-row: 2; gap: 20px; }
  .kd-case--feature .kd-funnel { gap: 8px; }
  .kd-case--feature .kd-funnel__row { padding-block: 8px 10px; }
  .kd-case--feature .kd-funnel__n { font-size: 2.6rem; }
  .kd-case--feature .kd-quote { padding-top: var(--s-4); gap: var(--s-3); }
  .kd-case--feature .kd-case__plates { grid-column: 1 / span 7; grid-row: 1 / span 2; align-self: start; --film-w: 36%; --hang: 25.6%; }
  .kd-case--feature.kd-case--flip .kd-case__plates { grid-column: 6 / -1; }
  .kd-case--feature.kd-case--flip .kd-case__head, .kd-case--feature.kd-case--flip .kd-case__body { grid-column: 1 / span 5; }
  .kd-case--feature .kd-quote__text { font-size: 1.0625rem; line-height: 1.5; }
}
@media (min-width: 1000px) and (max-width: 1199px) { .kd-case--feature .kd-case__plates { --film-w: 38%; --hang: 27%; } }
/* the inset itself (spread and stacked tablet dossier). --film-w: film width as a share of the photo; --hang: how far
   the film drops below the photo, as a share of the photo width (padding % resolves against width). */
@media (min-width: 720px) {
  .kd-case--feature .kd-case__plates { display: block; position: relative; padding-bottom: var(--hang, 16%); }
  .kd-case--feature .kd-case__photo { width: 100%; height: auto; aspect-ratio: 16 / 10; }
  .kd-case--feature .kd-case__plates > .kd-film {
    position: absolute; bottom: 0; left: -7px; z-index: 1; box-sizing: content-box; width: var(--film-w, 34%); height: auto;
    border: 7px solid var(--surface);   /* the gap between the two prints is the page itself */
  }
  .kd-case--feature.kd-case--flip .kd-case__plates > .kd-film { left: auto; right: -7px; }
}

/* compact pair */
.kd-case-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 64px); border-top: 1px solid var(--rule-strong); padding-top: var(--s-6); }
.kd-case--compact { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-5); align-content: start; }
.kd-case--compact .kd-case__top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s-5); align-items: start; }
.kd-case--compact .kd-case__photo { aspect-ratio: 4 / 3; }
.kd-case--compact .kd-case__name { font-size: clamp(2rem, 3vw, 2.6rem); }
.kd-case--compact .kd-case__engagement { font-size: 1rem; }
.kd-case--compact .kd-quote__text { font-size: 1.0625rem; }
/* the pair's quotes sit inside a half-width column: the opening mark stands above the text, not in the gutter */
.kd-case--compact .kd-quote__mark { position: static; display: block; height: 0.42em; margin-bottom: -0.05em; font-size: 4.5rem; line-height: 0.9; }

/* tablet: lead and features share one stacked dossier: head across, plates across, numbers | quote */
@media (min-width: 720px) and (max-width: 1099px) {
  .kd-case--lead .kd-case__numbers { grid-column: 1 / span 6; }
  .kd-case--lead .kd-case__side { grid-column: 7 / -1; }
  .kd-case--lead .kd-case__name { font-size: clamp(2.75rem, 6vw, 4rem); }
}
@media (min-width: 720px) and (max-width: 999px) {
  .kd-case--feature .kd-case__head { grid-column: 1 / -1; grid-row: 1; }
  .kd-case--feature .kd-case__plates { grid-column: 1 / -1; grid-row: 2; }
  .kd-case--feature .kd-case__body { grid-column: 1 / -1; grid-row: 3; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 48px); row-gap: var(--s-5); }
  .kd-case--feature .kd-case__body > .kd-case__numbers { grid-column: 1; grid-row: 1 / span 2; }
  .kd-case--feature .kd-case__body > .kd-quote, .kd-case--feature .kd-case__body > .kd-case__actions { grid-column: 2; }
}
@media (max-width: 859px) {
  .kd-case-pair { grid-template-columns: 1fr; row-gap: var(--s-8); }
}
/* phone: photo full bleed; the film as a 9:16 poster frame beside the dateline and name; then the numbers */
@media (max-width: 719px) {
  .kd-case { row-gap: var(--s-5); }
  .kd-case--compact > * { grid-column: 1 / -1; }
  .kd-case--lead, .kd-case--feature { grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); column-gap: 16px; }
  .kd-case.kd-case--lead > *, .kd-case.kd-case--feature > * { grid-column: 1 / -1; }
  .kd-case--lead .kd-case__plates, .kd-case--feature .kd-case__plates { display: contents; }
  .kd-case.kd-case--lead .kd-case__photo, .kd-case.kd-case--feature .kd-case__photo { grid-column: 1 / -1; grid-row: 1; aspect-ratio: 16 / 9; margin-inline: calc(-1 * var(--gutter)); }
  .kd-case.kd-case--lead .kd-film, .kd-case.kd-case--feature .kd-film { grid-column: 1; grid-row: 2; align-self: start; }
  .kd-case.kd-case--lead .kd-case__head, .kd-case.kd-case--feature .kd-case__head { grid-column: 2; grid-row: 2; grid-template-columns: 1fr; row-gap: 10px; align-self: center; }
  .kd-case--lead .kd-case__name, .kd-case--feature .kd-case__name { font-size: 2.1rem; }
  .kd-case--lead .kd-case__engagement, .kd-case--feature .kd-case__engagement { font-size: 0.9375rem; line-height: 1.45; padding-bottom: 0; }
  .kd-case--lead .kd-case__dateline, .kd-case--feature .kd-case__dateline { font-size: 0.72rem; }
  .kd-case--feature .kd-case__body { grid-template-columns: 1fr; }
  .kd-case--compact .kd-case__top { grid-template-columns: 1fr; }
  .kd-case--compact .kd-case__photo { aspect-ratio: 16 / 9; margin-inline: calc(-1 * var(--gutter)); }
}

/* kd-funnel: honest proportional bars; --w is computed from the recorded counts by the generator */
.kd-funnel { display: grid; gap: var(--s-3); }
.kd-funnel__from { font-size: var(--t-small); color: var(--ink-2); font-weight: 600; }
.kd-funnel__from b { color: var(--ink); font-weight: 800; }
.kd-funnel__rows { display: grid; border-top: 1px solid var(--rule-strong); }
.kd-funnel__row { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); column-gap: var(--s-4); row-gap: 6px; padding-block: 12px 14px; border-bottom: 1px solid var(--rule); align-items: end; }
.kd-funnel__n { grid-row: 1 / span 2; font-family: var(--font-display); font-size: 3rem; line-height: 0.82; color: var(--ink); }
.kd-funnel__l { font-size: 0.95rem; line-height: 1.35; color: var(--ink-2); }
.kd-funnel__l b { color: var(--ink); font-weight: 700; }
.kd-funnel__bar { position: relative; height: 10px; background: linear-gradient(var(--rule), var(--rule)) left center / 100% 1px no-repeat; }
.kd-funnel__bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); min-width: 3px; background: var(--accent-fill); transform-origin: left; }
.kd-funnel__row--closed .kd-funnel__bar i { background: var(--ink); }
.kd-js [data-kd-funnel] .kd-funnel__bar i { transform: scaleX(0); }
.kd-js [data-kd-funnel].is-drawn .kd-funnel__bar i { transform: scaleX(1); transition: transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 180ms); }

/* kd-quote: rule above, hanging quote mark, role + company below. No side stripe. */
.kd-quote { position: relative; border-top: 1px solid var(--rule-strong); padding-top: var(--s-5); display: grid; gap: var(--s-4); }
.kd-quote__mark { position: absolute; left: -0.36em; top: 0.1em; font-family: var(--font-display); font-size: 5.5rem; line-height: 1; color: var(--accent); pointer-events: none; }
.kd-quote__text { font-size: 1.1875rem; line-height: 1.5; font-weight: 500; letter-spacing: -0.006em; text-wrap: pretty; max-width: 58ch; }
.kd-quote__by { font-size: var(--t-small); font-weight: 700; color: var(--ink); }
.kd-quote__by span { font-weight: 500; color: var(--ink-2); }
.kd-quote--big .kd-quote__text { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.42; }
@media (max-width: 1199px) { .kd-quote__mark { position: static; display: block; height: 0.42em; margin-bottom: -0.05em; font-size: 4.5rem; line-height: 0.9; } }

/* kd-film: poster-first 9:16 frame with a real play control; opens kd-film-dialog */
.kd-film {
  position: relative; display: block; width: 100%; padding: 0; border: 0; margin: 0; text-align: left;
  aspect-ratio: 9 / 16; background: var(--stage); color: var(--stage-ink); overflow: hidden; border-radius: 0;
  outline: 1px solid var(--photo-edge);
  -webkit-tap-highlight-color: transparent;
}
.kd-film__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.kd-film:hover .kd-film__poster { transform: scale(1.03); }
.kd-film__bar {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px;
  padding: 12px; background: var(--stage); font-size: 0.875rem; font-weight: 700; line-height: 1.2;
}
.kd-film__play {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; background: var(--accent-fill);
  transition: background-color var(--d-state) linear, transform 90ms linear;
}
.kd-film__play svg { width: 16px; height: 16px; fill: var(--on-accent); margin-left: 3px; }
.kd-film:hover .kd-film__play { background: var(--marker); }
.kd-film:hover .kd-film__play svg { fill: var(--on-marker); }
.kd-film:active .kd-film__play { transform: translateY(1px); }
.kd-film__txt { display: grid; gap: 2px; }
.kd-film__txt small { font-size: 0.75rem; font-weight: 600; color: var(--stage-ink-2); letter-spacing: 0.02em; }
.kd-film:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
/* phone: frame becomes a row (thumb + label) so the film stays a clear, big target */
@media (max-width: 719px) {
  .kd-film--row { aspect-ratio: auto; display: grid; grid-template-columns: 96px 1fr; background: var(--stage); min-height: 171px; }
  .kd-film--row .kd-film__poster { position: static; width: 96px; height: 171px; }
  .kd-film--row .kd-film__bar { position: static; background: none; padding: 16px; align-self: end; }
  .kd-film--row:hover .kd-film__poster { transform: none; }
}

/* --frame: a 9:16 poster frame that is a real link to the film (kd.js opens the dialog instead).
   Big round play centred on the poster, the run-time on one line in a stage strip at the foot. */
a.kd-film { text-decoration: none; }
.kd-film--frame .kd-film__bar { display: contents; }
.kd-film--frame .kd-film__play { position: absolute; left: 50%; top: 46%; width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.kd-film--frame .kd-film__play svg { width: 20px; height: 20px; margin-left: 4px; }
.kd-film--frame .kd-film__txt {
  position: absolute; left: 0; right: 0; bottom: 0; display: block; padding: 13px 12px 14px; background: var(--stage);
  font-size: 0.875rem; font-weight: 700; line-height: 1.2; text-align: center; white-space: nowrap;
}
@media (max-width: 719px) {
  .kd-film--frame .kd-film__play { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
  .kd-film--frame .kd-film__txt { font-size: 0.8125rem; padding: 11px 6px 12px; letter-spacing: -0.005em; }
}

/* the inline Courtyard-type frame: a lazy poster, a <video> that stays empty until a tap, and a sound control
   that is a link to the mp4 (so it works without JavaScript). kd.js adds .is-on when playback starts. */
.kd-film--inline { cursor: pointer; }
.kd-film--inline video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: transparent; opacity: 0; }
.kd-film--inline.is-on { cursor: default; }
.kd-film--inline.is-on video { opacity: 1; background: var(--stage); }
.kd-film--inline.is-on .kd-film__poster { visibility: hidden; }
/* the sound link covers the whole frame (one big target); inside it the same centred round play and foot label as
   every --frame film */
.kd-film--inline .kd-film__bar {
  inset: 0; display: block; padding: 0; background: none; cursor: pointer; border: 0; width: auto;
  color: var(--stage-ink); font: inherit; text-decoration: none;
}
.kd-film--inline .kd-film__bar:focus-visible { outline: 2px solid var(--stage-ink); outline-offset: -6px; }
.kd-film--inline .kd-film__play { position: absolute; left: 50%; top: 46%; width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.kd-film--inline .kd-film__play svg { width: 20px; height: 20px; margin-left: 4px; }
.kd-film--inline .kd-film__txt {
  position: absolute; left: 0; right: 0; bottom: 0; display: block; padding: 13px 12px 14px; background: var(--stage);
  font-size: 0.875rem; font-weight: 700; line-height: 1.2; text-align: center; white-space: nowrap;
}
@media (max-width: 719px) {
  .kd-film--inline .kd-film__play { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
  .kd-film--inline .kd-film__txt { font-size: 0.8125rem; padding: 11px 6px 12px; letter-spacing: -0.005em; }
}
.kd-film--inline:hover .kd-film__play { background: var(--marker); }
.kd-film--inline:hover .kd-film__play svg { fill: var(--on-marker); }

/* kd-film-dialog: dark stage, frame centred, close always visible; Esc + backdrop click close */
.kd-film-dialog {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: var(--stage); color: var(--stage-ink); overflow: hidden;
}
.kd-film-dialog::backdrop { background: var(--stage); }
.kd-film-dialog[open] { display: grid; place-items: center; }
.kd-film-dialog__in { position: relative; height: min(88dvh, 88vh, calc(100vw * 16 / 9 - 32px)); aspect-ratio: 9 / 16; max-width: calc(100vw - 32px); }
.kd-film-dialog video { width: 100%; height: 100%; object-fit: contain; background: var(--stage); outline: 1px solid var(--stage-rule); }
.kd-film-dialog__x {
  position: fixed; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); z-index: 2;
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px 0 14px;
  border: 1.5px solid var(--stage-ink); border-radius: var(--radius-ctl); background: var(--stage); color: var(--stage-ink);
  font: 700 0.95rem/1 var(--font-text);
}
.kd-film-dialog__x svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.4; fill: none; }
.kd-film-dialog__x:hover { background: var(--stage-ink); color: var(--stage); }
.kd-film-dialog[open] .kd-film-dialog__in { animation: kd-gate 420ms var(--ease-out) both; }
@keyframes kd-gate { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* kd-tape: audio episode row. Native <audio controls> + the run-time is the no-JS path. The play button and the
   waveform ship with the hidden attribute; kd.js un-hides them, adds the running clock, and hides the native player. */
.kd-tapes { border-top: 1px solid var(--rule-strong); counter-reset: ep; }
.kd-tape { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(24px, 4vw, 56px); row-gap: var(--s-4); align-items: center; padding-block: var(--s-5); border-bottom: 1px solid var(--rule); transition: background-color 600ms linear; }
.kd-tape.is-hit, .kd-tape:target { background: var(--accent-tint); box-shadow: -999px 0 0 var(--accent-tint), 999px 0 0 var(--accent-tint); clip-path: inset(0 -999px); }
.kd-tape__meta { display: grid; gap: 6px; }
.kd-tape__ep { color: var(--accent); }
.kd-tape__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 2.6vw, 2.4rem); line-height: 0.98; letter-spacing: -0.003em; text-wrap: balance; }
.kd-tape__who { font-size: var(--t-small); color: var(--ink-2); font-weight: 600; }
.kd-tape__player { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); }
.kd-tape__player audio { flex: 1 1 260px; min-width: 0; }
.kd-tape__player .kd-tape__time { order: 2; }
.kd-tape__player.is-js { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; column-gap: var(--s-4); row-gap: var(--s-2); }
.kd-tape__player.is-js .kd-tape__time { order: 0; }
.kd-tape__player.is-js audio { display: none; }
.kd-tape__play {
  display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 999px;
  background: var(--accent-fill); color: var(--on-accent); transition: background-color var(--d-state) linear, transform 90ms linear;
}
.kd-tape__play:hover { background: var(--accent-fill-hover); }
.kd-tape__play:active { transform: translateY(1px); }
.kd-tape__play svg { width: 22px; height: 22px; fill: currentColor; }
.kd-tape__play .ic-pause { display: none; }
.kd-tape__player.is-playing .kd-tape__play .ic-play { display: none; }
.kd-tape__player.is-playing .kd-tape__play .ic-pause { display: block; }
.kd-tape__wave { display: block; position: relative; height: 56px; }
.kd-tape__wave svg { width: 100%; height: 100%; overflow: visible; }
.kd-tape__base { fill: var(--wave); }
.kd-tape__fill { fill: var(--wave-played); }
.kd-tape__head { fill: var(--ink); }
.kd-tape__seek {
  position: absolute; inset: -6px 0; width: 100%; height: calc(100% + 12px); margin: 0; opacity: 0; cursor: pointer;
  -webkit-appearance: none; appearance: none; background: transparent; touch-action: pan-y;
}
.kd-tape__wave:has(.kd-tape__seek:focus-visible) { outline: 2px solid var(--focus); outline-offset: 4px; }
.kd-tape__time { display: flex; gap: 0.3em; font-size: 0.9375rem; font-weight: 700; white-space: nowrap; color: var(--ink); }
.kd-tape__now { order: -1; }
.kd-tape__cur, .kd-tape__dur { display: inline-block; min-width: 2.35em; }
.kd-tape__cur { text-align: right; }
.kd-tape__dur { color: var(--ink-2); }
.kd-tape__err { display: none; grid-column: 1 / -1; font-size: var(--t-small); color: var(--bad); font-weight: 600; }
.kd-tape__player.is-err .kd-tape__err { display: block; }
@media (max-width: 859px) {
  .kd-tape { grid-template-columns: 1fr; }
  .kd-tape__player.is-js { grid-template-columns: 52px minmax(0, 1fr) auto; column-gap: var(--s-3); }
  .kd-tape__play { width: 52px; height: 52px; }
  .kd-tape__wave { height: 48px; }
}

/* kd-strip: contact strip of vertical film frames (scrolls sideways, explicit, snaps, keyboard reachable) */
.kd-strip { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(150px, 22vw, 260px); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s-3); }
.kd-strip > * { scroll-snap-align: start; }

/* kd-table: comparison and ledger tables */
.kd-table-wrap { overflow-x: auto; }
.kd-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--rule-strong); font-variant-numeric: lining-nums tabular-nums; }
.kd-table th, .kd-table td { text-align: left; vertical-align: top; padding: 16px 20px 16px 0; border-bottom: 1px solid var(--rule); }
.kd-table thead th { font-size: var(--t-label); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); padding-block: 12px; border-bottom-color: var(--rule-strong); }
.kd-table tbody th { font-weight: 700; }
.kd-table .is-us { background: var(--accent-tint); padding-left: 16px; }
.kd-table thead .is-us { color: var(--accent); border-top: 3px solid var(--accent-fill); }
.kd-table tbody .is-us { font-weight: 700; }
.kd-table--ledger td b { font-family: var(--font-display); font-weight: 400; font-size: 2.25rem; line-height: 0.9; margin-right: 6px; }
.kd-table--ledger tbody th { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1; }
.kd-table--ledger td, .kd-table--ledger th { vertical-align: baseline; padding-block: 18px; }
@media (max-width: 719px) {
  .kd-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .kd-table--stack, .kd-table--stack tbody, .kd-table--stack tr, .kd-table--stack th, .kd-table--stack td { display: block; }
  .kd-table--stack tr { padding-block: 14px 16px; border-bottom: 1px solid var(--rule); }
  .kd-table--stack th, .kd-table--stack td { border: 0; padding: 2px 0; }
  .kd-table--stack td[data-th]::before { content: attr(data-th); display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin-top: 8px; }
  .kd-table--stack .is-us { padding: 8px 10px; margin-top: 6px; }
  .kd-table--stack tbody th { width: auto !important; font-size: 1.125rem; }
  .kd-table--ledger.kd-table--stack tbody th { font-family: var(--font-text); font-weight: 800; font-size: 1.1875rem; letter-spacing: -0.01em; line-height: 1.3; }
  .kd-table--ledger.kd-table--stack td { display: inline-block; margin-right: 18px; }
}

/* kd-form: radio rows, inputs, errors. Also skins the KDBooking component (assets/booking.js)
   by out-specifying its injected <style id="kdb-css">; booking.js is not edited. */
.kd-form { --purple: var(--accent-fill); --text: var(--ink); --muted: var(--ink-2); --border: var(--line-input); --white: var(--surface-raised); --font-sans: var(--font-text); --font-serif: var(--font-display); }
.kd-form .kdb-panel { background: var(--surface-raised); border: 1px solid var(--rule-strong); border-radius: 0; padding: clamp(20px, 4vw, 44px); }
.kd-form .kdb-h { font-family: var(--font-display); font-weight: 400; font-size: var(--t-display-3); letter-spacing: 0; line-height: 0.95; margin: 0 0 var(--s-3); }
.kd-form .kdb-p { color: var(--ink-2); font-size: 1rem; line-height: 1.55; }
.kd-form .kdb-form { gap: var(--s-6); }
.kd-form fieldset { padding: 0; margin: 0; min-width: 0; }
.kd-form .kdb-field > label, .kd-form .kdb-legend { font-size: 1.0625rem; font-weight: 700; color: var(--ink); line-height: 1.35; }
.kd-form .kdb-hint { color: var(--ink-2); font-weight: 500; font-size: 0.9375rem; }
.kd-form .kdb-field input, .kd-form .kdb-field select {
  min-height: 52px; font-size: 1.0625rem; padding: 12px 14px; border: 1.5px solid var(--line-input); border-radius: var(--radius-ctl); background: var(--field); color: var(--ink);
}
.kd-form .kdb-field input::placeholder { color: var(--ink-3); opacity: 1; }
.kd-form .kdb-field input:disabled, .kd-form .kdb-field select:disabled { color: var(--ink-disabled); border-color: var(--ink-disabled); }
.kd-form .kdb-field input:focus, .kd-form .kdb-field select:focus { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--ink); box-shadow: none; }
.kd-form .kdb-field input.kdb-bad { border-color: var(--bad); }
.kd-form .kdb-err { color: var(--bad); font-weight: 600; font-size: 0.9375rem; }
.kd-form .kdb-opts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--rule-strong); }
.kd-form .kdb-opt { min-height: 44px; align-items: center; gap: 12px; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; transition: background-color var(--d-state) linear; }
.kd-form .kdb-opt:hover { background: var(--surface-3); border-color: var(--rule); }   /* surface-3: in dark surface-2 is DARKER than the raised sheet, so the hover vanished */
.kd-form .kdb-opt input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--ink); }
.kd-form .kdb-opt-t { font-size: 1rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.kd-form .kdb-opt-d { font-size: 0.9rem; color: var(--ink-2); }
.kd-form .kdb-opt.kdb-sel { background: var(--accent-tint); border-color: var(--rule); box-shadow: inset 0 0 0 1.5px var(--accent); }
.kd-form .kdb-opt.kdb-sel .kdb-opt-t { font-weight: 700; }
.kd-form .kdb-opt:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: -2px; }
/* short answer lists (no descriptions) sit in two columns where there is room */
@media (min-width: 1100px) {
  .kd-form .kdb-opts:not(:has(.kdb-opt-d)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kd-form .kdb-opts:not(:has(.kdb-opt-d)) > .kdb-opt:nth-child(odd) { border-right: 1px solid var(--rule); }
}
/* a group with an error: the error line is bold and red, the group's top rule turns red */
.kd-form .kdb-err.kdb-on { padding-top: 8px; font-weight: 700; }
.kd-form fieldset:has(.kdb-err.kdb-on) .kdb-opts { border-top: 2px solid var(--bad); }
.kd-form .kdb-field input.kdb-bad, .kd-form .kdb-field select.kdb-bad { border-color: var(--bad); border-width: 2px; }
.kd-form .kdb-submit {
  width: 100%; min-height: 60px; border: 0; border-radius: var(--radius-ctl); background: var(--accent-fill); color: var(--on-accent);
  font: 800 1.125rem/1.1 var(--font-text); letter-spacing: -0.01em; transition: background-color var(--d-state) linear, transform 90ms linear;
}
.kd-form .kdb-submit:hover:not(:disabled) { opacity: 1; transform: none; background: var(--accent-fill-hover); }
.kd-form .kdb-submit:active:not(:disabled) { transform: translateY(1px); }
.kd-form .kdb-submit:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.kd-form .kdb-fine { color: var(--ink-2); text-align: left; font-size: 0.9rem; }
.kd-form .kdb-cal { border-radius: 0; border: 1px solid var(--rule); background: var(--surface-raised); }
.kd-form .kdb-cal-load, .kd-form .kdb-fallback { color: var(--ink-2); }
.kd-form .kdb-fallback a { color: var(--accent); }
.kd-form .kdb-fallback.kdb-promoted { border-radius: 0; border-color: var(--rule-strong); background: var(--surface-raised); }
.kd-form .kdb-fallback.kdb-promoted a { border-radius: var(--radius-ctl); background: var(--accent-fill); color: var(--on-accent); }
.kd-form .kdb-fallback.kdb-promoted a:hover { background: var(--accent-fill-hover); }
.kd-form .kdb-dq, .kd-form .kdb-ok { border-top: 3px solid var(--ink); }

/* kd-faq */
.kd-faq { border-top: 1px solid var(--rule-strong); }
.kd-faq__i { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-3) clamp(24px, 4vw, 56px); padding-block: var(--s-5) var(--s-6); border-bottom: 1px solid var(--rule); }
.kd-faq__q { font-size: 1.3rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.kd-faq__a { color: var(--ink-2); max-width: 62ch; line-height: 1.55; }
.kd-faq__a strong { color: var(--ink); }
@media (max-width: 859px) { .kd-faq__i { grid-template-columns: 1fr; } }

/* kd-cta: closing call to action on a violet band */
.kd-cta { padding-block: clamp(72px, 9vw, 128px); }
.kd-cta__h { font-size: clamp(3rem, 8.6vw, 8.5rem); line-height: 0.92; max-width: 9em; }
.kd-cta p { max-width: 52ch; margin-top: var(--s-5); color: var(--band-ink-2); font-size: var(--t-lead); line-height: 1.5; }
.kd-cta .kd-btn-row { margin-top: var(--s-6); }
.kd-cta__fine { margin-top: var(--s-5) !important; font-size: var(--t-small) !important; }

/* kd-footer */
.kd-footer { background: var(--surface-2); border-top: 1px solid var(--rule-strong); padding-block: var(--s-8) var(--s-6); font-size: 0.95rem; }
.kd-footer__top { display: grid; grid-template-columns: minmax(0, 6fr) repeat(2, minmax(0, 3fr)); gap: var(--s-6); }
.kd-footer__mark { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.025em; line-height: 1; }
.kd-footer__tag { margin-top: var(--s-3); color: var(--ink-2); max-width: 32ch; }
.kd-footer__col { display: grid; gap: 2px; align-content: start; }
.kd-footer__col .kd-label { margin-bottom: var(--s-2); }
.kd-footer__col a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 600; }
.kd-footer__col a:hover { text-decoration: underline; }
.kd-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-3); margin-top: var(--s-8); padding-top: var(--s-4); border-top: 1px solid var(--rule); color: var(--ink-2); font-size: var(--t-small); }
.kd-footer__bottom a { display: inline-flex; min-height: 44px; align-items: center; }
@media (max-width: 719px) { .kd-footer__top { grid-template-columns: 1fr 1fr; } .kd-footer__brand { grid-column: 1 / -1; } }

/* kd-sticky: phone-only bottom CTA bar */
.kd-sticky { display: none; }
@media (max-width: 719px) {
  .kd-sticky { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--rule-strong); transition: transform var(--d-reveal) var(--ease-out), visibility 0s linear 0s; }
  .kd-sticky.is-away { transform: translateY(105%); visibility: hidden; transition: transform var(--d-reveal) var(--ease-out), visibility 0s linear var(--d-reveal); }
  .kd-sticky .kd-btn { width: 100%; }
  body { padding-bottom: calc(81px + env(safe-area-inset-bottom)); }
}

/* 6b ─ Promoted in Stage 2 ───────────────────────────────────────────────── */
/* Everything below is additive: no class above changes. Markup snippets: SYSTEM.md. */

/* kd-nav--studio: the Studios bar. Services dropdown (kd-nav__drop), Results, Client login (kd-nav__login), and the
   "Book a call" button, which stays on phones (Studios pages carry no sticky bar). The dropdown opens on hover (mouse),
   on the button (click / Enter / Space / ArrowDown, kd.js) and, with JS off, on :focus-within or a tap (:hover). */
.kd-nav__burger { -webkit-tap-highlight-color: transparent; }
.kd-nav__drop { position: relative; display: flex; align-items: center; }
.kd-nav__drop-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  border: 0; background: none; border-radius: var(--radius-ctl); font-weight: 600; font-size: 0.95rem; color: var(--ink);
}
.kd-nav__drop-btn svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform var(--d-state) var(--ease-out); }
.kd-nav__drop.is-open .kd-nav__drop-btn svg { transform: rotate(180deg); }
.kd-nav__menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; min-width: 230px;
  padding: 6px 0; background: var(--surface-raised); border: 1px solid var(--rule-strong);
}
.kd-nav__drop.is-open .kd-nav__menu,
html:not(.kd-js) .kd-nav__drop:hover .kd-nav__menu,
html:not(.kd-js) .kd-nav__drop:focus-within .kd-nav__menu { display: block; }
@media (hover: hover) { .kd-nav__drop:hover .kd-nav__menu { display: block; } }
.kd-nav__drop::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 8px; } /* hover bridge */
.kd-nav__links .kd-nav__menu a { display: flex; min-height: 44px; padding: 0 18px; font-size: 0.975rem; border-radius: 0; }
.kd-nav__links .kd-nav__menu a::after { display: none; }
.kd-nav__links .kd-nav__menu a:hover, .kd-nav__links .kd-nav__menu a:focus-visible { background: var(--surface-3); }
.kd-nav__links .kd-nav__menu a:focus-visible { outline-offset: -2px; }
.kd-nav__links .kd-nav__login { margin-left: 8px; padding-left: 20px; }
.kd-nav__links .kd-nav__login::before { content: ""; position: absolute; left: 0; top: 13px; bottom: 13px; width: 1px; background: var(--rule); }
.kd-nav__links .kd-nav__login::after { left: 20px; }
@media (max-width: 859px) {
  .kd-nav__drop::after { display: none; }
  /* the open phone menu: the group is always expanded under its label (data-kd-label on .kd-nav__menu) */
  .kd-nav.is-open .kd-nav__drop { flex-direction: column; align-items: stretch; border-bottom: 1px solid var(--rule); padding-bottom: 6px; }
  .kd-nav.is-open .kd-nav__drop-btn { display: none; }
  .kd-nav.is-open .kd-nav__menu { display: block; position: static; border: 0; padding: 10px 0 0; min-width: 0; background: none; }
  .kd-nav.is-open .kd-nav__menu[data-kd-label]::before {
    content: attr(data-kd-label); display: block; padding-bottom: 4px;
    font-size: var(--t-label); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2);
  }
  .kd-nav.is-open .kd-nav__links .kd-nav__menu a { min-height: 48px; padding: 0 0 0 16px; border-bottom: 1px solid var(--rule); }
  .kd-nav.is-open .kd-nav__links .kd-nav__menu a:last-child { border-bottom: 0; }
  .kd-nav.is-open .kd-nav__links .kd-nav__login { margin-left: 0; padding-left: 0; }
  .kd-nav.is-open .kd-nav__links .kd-nav__login::before { display: none; }
  /* JS off: wordmark + CTA on row one, the links wrap onto row two */
  html:not(.kd-js) .kd-nav--studio .kd-nav__in { flex-wrap: wrap; row-gap: 0; padding-bottom: 6px; }
  html:not(.kd-js) .kd-nav--studio .kd-nav__links { order: 3; flex: 1 1 100%; margin-left: -12px; }
  html:not(.kd-js) .kd-nav--studio .kd-nav__cta { margin-left: auto; }
}
@media (max-width: 719px) {
  .kd-nav--studio .kd-nav__cta.kd-btn { display: inline-flex; margin-left: auto; min-height: 44px; padding-inline: 14px; font-size: 0.95rem; }
  .kd-js .kd-nav--studio .kd-nav__burger { margin-left: 2px; }
  html:not(.kd-js) .kd-nav--studio .kd-nav__links { margin-left: -12px; }
}

/* kd-strip--gate: the contact strip with its gate. Frames ride a transformed track (kd.js, [data-kd-gate]); the frame
   inside the fixed gate is .is-gated and is the only one that may play (one optional muted .kd-strip__loop, data-src
   only). Sizing: --fw frame width, --fgap gap, --pad-l / --pad-t the gate's offset inside the view. --bleed runs the
   view off the right edge of the page. Reduced motion or JS off: a still strip, posters only. */
.kd-strip--gate { display: block; overflow: visible; padding: 0; margin: 0; min-width: 0; scroll-snap-type: none; --fw: 260px; --fgap: 12px; --pad-l: 8px; --pad-t: 30px; }
.kd-strip--bleed { margin-right: calc(-1 * var(--gutter) - max(0px, (100vw - var(--maxw) - 2 * var(--gutter)) / 2)); }
.kd-strip__view { position: relative; overflow: hidden; padding: var(--pad-t) 0 8px var(--pad-l); }
.kd-strip__track { display: flex; gap: var(--fgap); padding: 0; margin: 0; counter-reset: kd-frame; transform: translate3d(var(--x, 0px), 0, 0); }
.kd-strip__frame { position: relative; flex: 0 0 var(--fw); aspect-ratio: 9 / 16; background: var(--stage); counter-increment: kd-frame; scroll-snap-align: none; outline: 1px solid var(--photo-edge); }
.kd-strip__frame img, .kd-strip__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kd-strip__frame::before {
  content: counter(kd-frame, decimal-leading-zero); position: absolute; left: 0; bottom: calc(100% + 8px);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; line-height: 1; color: var(--ink-2);
}
.kd-strip__frame.is-gated::before { color: var(--ink); }
.kd-strip__loop { opacity: 0; transition: opacity 240ms linear; }
.kd-strip__loop.is-on { opacity: 1; }
.kd-strip__gate {
  position: absolute; left: calc(var(--pad-l) - 6px); top: calc(var(--pad-t) - 6px); width: calc(var(--fw) + 12px);
  height: calc(var(--fw) * 16 / 9 + 12px); border: 2px solid var(--ink); pointer-events: none;
}
.kd-strip__live { position: absolute; right: 8px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--marker); box-shadow: 0 0 0 1.5px var(--marker-edge); opacity: 0; transition: opacity var(--d-state) linear; }
.kd-strip.is-live .kd-strip__live { opacity: 1; }

/* kd-film--tap: a poster frame whose round button plays THAT film in place, with sound and native controls (kd.js
   makes the <video> on the tap; zero bytes before). JS off: a <noscript><video class="kd-film__v" controls></noscript>
   inside the frame plays natively. One voice at a time (kd.js pauses any other unmuted media). */
.kd-film--tap { cursor: default; }
.kd-film__v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kd-js .kd-film--tap .kd-film__v { opacity: 0; transition: opacity 200ms linear; }
.kd-js .kd-film--tap.is-on .kd-film__v { opacity: 1; object-fit: contain; background: var(--stage); }
.kd-film__tap {
  position: absolute; left: 14px; bottom: 14px; display: grid; place-items: center; width: 60px; height: 60px; padding: 0;
  border: 1.5px solid var(--on-accent); border-radius: 999px; background: var(--accent-fill); color: var(--on-accent);
  transition: background-color var(--d-state) linear, transform 90ms linear;
}
/* the 1.5px --on-accent ring: the button sits on photos, so its edge must hold on ANY poster in both themes. On a dark
   or mid poster the light ring carries the edge; on a light poster the violet fill inside it does (border-box: same 60 / 44px). */
.kd-film__tap svg { width: 20px; height: 20px; fill: currentColor; margin-left: 4px; }
.kd-film--tap:hover .kd-film__tap, .kd-film__tap:focus-visible { background: var(--marker); color: var(--on-marker); }
.kd-film__tap:active { transform: translateY(1px); }
.kd-film__tap:focus-visible { outline: 2px solid var(--stage-ink); outline-offset: 3px; }
.kd-film--tap.is-on .kd-film__tap { display: none; }
.kd-film--tap.is-on .kd-film__poster { opacity: 0; }
.kd-film--tap-sm .kd-film__tap { left: 8px; bottom: 8px; width: 44px; height: 44px; }
.kd-film--tap-sm .kd-film__tap svg { width: 15px; height: 15px; margin-left: 3px; }

/* kd-rail: a sideways film rail. Explicit (prev/next), snaps, keyboard reachable (the rail is a focusable region).
   Card width: --n whole cards plus --peek of the next fit at rest. Items whose card is only partly inside get .is-part
   (their caption waits until whole; JS off shows every caption). */
.kd-rail-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s-6); }
.kd-rail__ctl { display: flex; gap: 8px; flex: none; }
.kd-rail__ctl[hidden] { display: none !important; }
.kd-rail__btn {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1.5px solid var(--ink); border-radius: var(--radius-ctl); background: transparent; color: var(--ink);
  transition: background-color var(--d-state) linear, color var(--d-state) linear, transform 90ms linear;
}
.kd-rail__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.kd-rail__btn:hover:not(:disabled) { background: var(--ink); color: var(--surface); }
.kd-rail__btn:active:not(:disabled) { transform: translateY(1px); }
.kd-rail__btn:disabled, .kd-rail__btn[aria-disabled="true"] { color: var(--ink-disabled); border-color: var(--ink-disabled); background: transparent; cursor: default; }
.kd-rail {
  --lead: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  --g: clamp(16px, 2vw, 28px); --n: 4; --peek: 0.65;
  --cw: min(340px, calc((100vw - var(--lead) - var(--n) * var(--g)) / (var(--n) + var(--peek))));
  position: relative; margin-top: var(--s-7); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--lead); padding-bottom: var(--s-4);
  scrollbar-width: thin; scrollbar-color: var(--ink-3) transparent;
}
.kd-rail:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.kd-rail__list { display: flex; gap: var(--g); padding-inline: var(--lead); width: max-content; }
.kd-rail__item { flex: 0 0 var(--cw); scroll-snap-align: start; display: grid; gap: var(--s-4); align-content: start; }
.kd-rail__cap { display: grid; gap: 4px; padding-top: 2px; }
.kd-rail.is-js .kd-rail__cap { transition: opacity var(--d-state) linear; }
.kd-rail.is-js .kd-rail__item.is-part .kd-rail__cap { opacity: 0; }
.kd-rail__cap .kd-label { color: var(--accent); }
.kd-rail__fig { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 2.6vw, 2.5rem); line-height: 0.95; letter-spacing: -0.003em; }
.kd-rail__who { font-size: 0.9375rem; font-weight: 600; color: var(--ink-2); }
/* --title: a card whose only words are its tag sets the tag as the title line (display face), on the same line as the other
   cards' titles: an empty label-height slot above it keeps the row of captions level. No new words. */
.kd-rail__cap--title::before { content: ""; height: calc(var(--t-label) * 1.35); }
@media (max-width: 1279px) { .kd-rail { --n: 3; } }
@media (max-width: 899px) { .kd-rail { --n: 2; } }
@media (max-width: 719px) { .kd-rail { --cw: clamp(230px, 64vw, 300px); } .kd-rail-head { display: block; } .kd-rail-head .kd-rail__ctl { margin-top: var(--s-5); } }

/* kd-tabs: role=tablist of links to panels (#ids). JS: roving tabindex, arrows, Home/End, the host gets .kd-tabs-ready
   and only the selected panel shows. JS off: the links jump to stacked panels, all visible, each with its heading.
   --display: the tabs set as League Gothic headlines (home "Built for"). */
.kd-tabs { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); border-bottom: 1px solid var(--rule-strong); }
.kd-tab {
  display: inline-flex; align-items: center; min-height: 48px; padding-block: 4px; font-weight: 700; font-size: 1.0625rem;
  color: var(--ink-2); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px;
  transition: color var(--d-state) linear, border-color var(--d-state) linear;
}
.kd-tab:hover { color: var(--ink); }
.kd-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.kd-tab:focus-visible { outline-offset: 0; }
.kd-tabs--display { display: grid; justify-items: start; gap: 0; border-bottom: 0; border-top: 1px solid var(--rule-strong); padding-top: var(--s-3); }
.kd-tabs--display .kd-tab {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(3rem, 5.6vw, 5.25rem); line-height: 0.98; letter-spacing: -0.004em;
  color: var(--ink-3); border-bottom: 0; margin: 0;
}
.kd-tabs--display .kd-tab:hover { color: var(--ink); }
.kd-tabs--display .kd-tab[aria-selected="true"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 0.07em; text-underline-offset: 0.1em; }
.kd-tabpanel + .kd-tabpanel { margin-top: var(--s-7); }
.kd-tabpanel__h { font-size: 1.125rem; font-weight: 700; margin-bottom: var(--s-3); }
.kd-tabs-ready .kd-tabpanel + .kd-tabpanel { margin-top: 0; }
.kd-tabs-ready .kd-tabpanel__h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kd-tabs-ready .kd-tabpanel.is-in { animation: kd-panel-in 360ms var(--ease-out) both; }
@keyframes kd-panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 719px) { .kd-tabs--display .kd-tab { font-size: clamp(2.6rem, 12vw, 3.4rem); } }

/* kd-ledger--fig: figure rows. Each row: the record figure large, then the metric (record wording) and the client.
   Markup is dt (words) then dd (figure); the figure reads first. Pair with a kd-source line. */
.kd-ledger--fig { border-top-color: var(--rule-strong); }
.kd-ledger--fig > div { display: grid; grid-template-columns: minmax(7.5rem, 11rem) minmax(0, 1fr); column-gap: var(--s-5); align-items: end; padding-block: 18px 16px; }
.kd-ledger--fig dd { order: -1; font-family: var(--font-display); font-size: clamp(3.5rem, 6vw, 5.5rem); line-height: 0.84; color: var(--ink); }
.kd-ledger--fig dt { display: grid; gap: 2px; padding-bottom: 0.3rem; }
.kd-ledger__m { font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
.kd-ledger__c { font-size: 0.9375rem; color: var(--ink-2); font-weight: 500; }
@media (max-width: 719px) {
  .kd-ledger--fig > div { grid-template-columns: 6.5rem minmax(0, 1fr); column-gap: var(--s-4); }
  .kd-ledger--fig dd { font-size: 3.25rem; }
  .kd-ledger__m { font-size: 1rem; }
}

/* kd-steps: a numbered ledger (01, 02 ... by CSS counter, not copy). Start later with style="counter-reset: kd-step 5". */
.kd-steps { counter-reset: kd-step; border-top: 1px solid var(--rule-strong); }
.kd-steps > li { position: relative; counter-increment: kd-step; display: grid; grid-template-columns: 4.25rem minmax(0, 1fr); column-gap: var(--s-5); row-gap: 6px; padding-block: var(--s-5) var(--s-6); border-bottom: 1px solid var(--rule); }
.kd-steps > li::before { content: counter(kd-step, decimal-leading-zero); grid-row: 1 / span 2; font-family: var(--font-display); font-size: 3.25rem; line-height: 0.82; color: var(--accent); }
.kd-steps__t { font-size: 1.375rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.012em; }
.kd-steps__b { color: var(--ink-2); max-width: 54ch; text-wrap: pretty; line-height: 1.55; }
@media (max-width: 719px) {
  .kd-steps > li { grid-template-columns: 3rem minmax(0, 1fr); column-gap: var(--s-4); }
  .kd-steps > li::before { font-size: 2.5rem; }
  .kd-steps__t { font-size: 1.1875rem; }
}

/* kd-quote--xl: one big pull quote per page */
.kd-quote--xl .kd-quote__text { font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1.32; font-weight: 500; letter-spacing: -0.014em; }

/* kd-statement: the violet statement band. Headline at poster scale left, one or two short paragraphs + a CTA right. */
.kd-statement { padding-block: clamp(88px, 11vw, 168px); }
.kd-statement__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); column-gap: clamp(24px, 4vw, 64px); align-items: end; }
.kd-statement__h { font-family: var(--font-display); font-weight: 400; font-size: clamp(4.25rem, 13.2vw, 13rem); line-height: 0.86; letter-spacing: -0.008em; color: var(--band-ink); }
.kd-statement__side { display: grid; gap: var(--s-4); padding-bottom: 0.6rem; }
.kd-statement__side p { font-size: 1.1875rem; line-height: 1.5; color: var(--band-ink-2); max-width: 34ch; text-wrap: pretty; }
.kd-statement__side p:first-child { color: var(--band-ink); font-weight: 700; }
.kd-statement__side .kd-btn-row { margin-top: var(--s-3); }
@media (max-width: 959px) { .kd-statement__grid { grid-template-columns: 1fr; row-gap: var(--s-6); } .kd-statement__side { max-width: 36rem; } }

/* kd-cta--split: the closing band of the Studios pages. Headline + line + CTA left; a 9:16 still with its caption
   ("We make videos for you while you sleep.") right. Use on a kd-band--brand section with .kd-cta. */
.kd-cta--split { padding-block: clamp(80px, 10vw, 152px); }
.kd-cta__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 6vw, 112px); align-items: end; }
.kd-cta--split .kd-cta__h { font-family: var(--font-display); font-weight: 400; font-size: clamp(3.75rem, 9.4vw, 9.5rem); line-height: 0.88; letter-spacing: -0.006em; color: var(--band-ink); max-width: none; }
.kd-cta--split .kd-cta__main > p { max-width: 46ch; text-wrap: pretty; }
.kd-cta__fig { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s-5); align-items: end; }
.kd-cta__frame { grid-column: 2; grid-row: 1; width: clamp(180px, 17vw, 260px); aspect-ratio: 9 / 16; background: var(--stage); outline: 1px solid var(--photo-edge); }
.kd-cta__frame img { width: 100%; height: 100%; object-fit: cover; }
.kd-cta__cap { grid-column: 1; grid-row: 1; justify-self: end; text-align: right; font-family: var(--font-display); font-size: clamp(2rem, 3vw, 3rem); line-height: 0.95; color: var(--band-ink); padding-bottom: 2px; letter-spacing: 0; }
@media (max-width: 959px) {
  .kd-cta__grid { grid-template-columns: 1fr; row-gap: var(--s-8); }
  .kd-cta__fig { justify-content: start; grid-template-columns: auto minmax(0, 1fr); }
  .kd-cta__frame { grid-column: 1; width: clamp(140px, 36vw, 220px); }
  .kd-cta__cap { grid-column: 2; justify-self: start; text-align: left; }
}

/* kd-qualify: the short qualify row after the closing band (headline | line + CTA + fine print) */
.kd-qualify { padding-block: clamp(64px, 8vw, 112px); }
.kd-qualify__row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 6vw, 112px); row-gap: var(--s-5); align-items: start; }
.kd-qualify__h { grid-row: 1 / span 2; max-width: 7.2em; }
.kd-qualify__p { grid-column: 2; font-size: 1.125rem; color: var(--ink-2); padding-top: 0.35rem; max-width: 40ch; text-wrap: pretty; }
.kd-qualify__act { grid-column: 2; display: grid; gap: var(--s-3); justify-items: start; }
.kd-qualify__fine { font-size: var(--t-small); color: var(--ink-2); }
@media (max-width: 959px) {
  .kd-qualify__row { grid-template-columns: 1fr; }
  .kd-qualify__h { grid-row: auto; }
  .kd-qualify__p, .kd-qualify__act { grid-column: 1; }
}
@media (max-width: 719px) { .kd-qualify__act .kd-btn { width: 100%; } }

/* kd-footer--studio: the wordmark at poster size, link groups as ruled ledger columns, a ruled legal row */
.kd-footer--studio { padding-block: clamp(56px, 7vw, 96px) var(--s-3); font-size: 1rem; }
.kd-footer--studio .kd-footer__top { grid-template-columns: minmax(0, 7fr) minmax(0, 2.5fr) minmax(0, 2.5fr); column-gap: clamp(24px, 4vw, 56px); row-gap: var(--s-7); align-items: end; }
.kd-footer--studio .kd-footer__mark {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(4.5rem, 14.2vw, 12rem); line-height: 0.8;
  letter-spacing: -0.006em; white-space: nowrap; color: var(--ink); margin-left: -0.03em;
}
.kd-footer--studio .kd-footer__tag { margin-top: var(--s-5); max-width: 24ch; font-size: 1.25rem; line-height: 1.4; font-weight: 600; color: var(--ink); text-wrap: balance; }
.kd-footer--studio .kd-footer__col { gap: 0; border-top: 1px solid var(--rule-strong); padding-top: var(--s-3); }
.kd-footer--studio .kd-footer__col .kd-label { margin-bottom: var(--s-2); color: var(--ink-2); }
.kd-footer--studio .kd-footer__col a { min-height: 52px; border-bottom: 1px solid var(--rule); font-size: 1.125rem; font-weight: 600; text-decoration: none; }
.kd-footer--studio .kd-footer__col a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
.kd-footer--studio .kd-footer__bottom { margin-top: clamp(56px, 7vw, 96px); padding-top: var(--s-2); border-top: 1px solid var(--rule-strong); }
.kd-footer__legal { display: inline-flex; flex-wrap: wrap; gap: 0 var(--s-5); }
@media (max-width: 959px) {
  .kd-footer--studio .kd-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-5); }
  .kd-footer--studio .kd-footer__brand { grid-column: 1 / -1; }
  .kd-footer--studio .kd-footer__mark { font-size: min(29vw, 10rem); }
}
@media (max-width: 719px) {
  .kd-footer--studio { padding-top: var(--s-8); }
  .kd-footer--studio .kd-footer__bottom { margin-top: var(--s-8); }
  /* the 81px kept free for a sticky bar is dead paper on pages that have none */
  body:not(:has(.kd-sticky)) { padding-bottom: 0; }
}

/* kd-hero--page: interior page hero. Dateline row, display headline (optional kd-mark), lead, CTA row; optional media
   (a kd-hero__plate photo, a kd-film frame or a kd-strip--gate). --split puts the media beside the words. */
.kd-hero--page { padding-bottom: clamp(56px, 7vw, 104px); }
.kd-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: var(--s-7); margin-top: clamp(24px, 3.2vw, 48px); }
.kd-hero--page .kd-hero__h { max-width: 11em; }
.kd-hero--page .kd-hero__h .kd-mark { --mk-top: 0.5em; --mk-bot: 0.1em; }
.kd-hero__lead { margin-top: clamp(20px, 2.4vw, 32px); max-width: 36rem; font-size: 1.1875rem; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.kd-hero__ctas { margin-top: var(--s-5); }
.kd-hero__media { margin: 0; min-width: 0; }
.kd-hero__media > .kd-hero__plate { aspect-ratio: 21 / 9; }
.kd-hero__media > .kd-film { max-width: 320px; }
@media (min-width: 960px) {
  .kd-hero--split .kd-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(24px, 3.5vw, 56px); align-items: end; }
  .kd-hero--split .kd-hero__media > .kd-hero__plate { aspect-ratio: 4 / 5; }
  .kd-hero--split .kd-hero__media > .kd-film { justify-self: end; margin-left: auto; }
}
@media (max-width: 719px) {
  .kd-hero--page .kd-dateline { flex-direction: column; gap: 2px; border-bottom: 0; padding-block: 10px 0; }
  .kd-hero__grid { margin-top: 14px; row-gap: var(--s-6); }
  .kd-hero__lead { font-size: 1.0625rem; }
  .kd-hero__ctas .kd-btn { flex: 1 1 100%; }
  .kd-hero__media > .kd-hero__plate { aspect-ratio: 4 / 3; margin-inline: calc(-1 * var(--gutter)); }
  .kd-hero__media > .kd-film { max-width: 62%; }
}

/* kd-prose--doc: long text (privacy, terms). Ink body, ruled h2s, real lists. kd-toc: an optional contents list. */
.kd-prose--doc { max-width: 70ch; font-size: 1.0625rem; line-height: 1.65; }
.kd-prose--doc h2 { margin-top: var(--s-8); padding-top: var(--s-4); border-top: 1px solid var(--rule-strong); font-size: 1.625rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.015em; }
.kd-prose--doc h3 { margin-top: var(--s-6); font-size: 1.1875rem; font-weight: 700; line-height: 1.3; }
.kd-prose--doc h2 + *, .kd-prose--doc h3 + * { margin-top: var(--s-3); }
.kd-prose--doc ul, .kd-prose--doc ol { padding-left: 1.3em; }
.kd-prose--doc ul { list-style: disc; } .kd-prose--doc ol { list-style: decimal; }
.kd-prose--doc li + li { margin-top: 0.4em; }
.kd-prose--doc li::marker { color: var(--accent); }
.kd-prose--doc a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; }
.kd-prose--doc a:hover { color: var(--ink); text-decoration-thickness: 2px; }
.kd-prose--doc strong { color: var(--ink); }
.kd-prose--doc .kd-small { color: var(--ink-2); }
.kd-prose-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); column-gap: clamp(32px, 5vw, 96px); align-items: start; }
.kd-toc { position: sticky; top: calc(var(--nav-h) + 24px); border-top: 1px solid var(--rule-strong); padding-top: var(--s-3); }
.kd-toc .kd-label { display: block; margin-bottom: var(--s-2); }
.kd-toc a { display: flex; align-items: center; min-height: 44px; border-bottom: 1px solid var(--rule); font-size: 0.95rem; font-weight: 600; text-decoration: none; }
.kd-toc a:hover { color: var(--accent); }
@media (max-width: 959px) { .kd-prose-layout { grid-template-columns: 1fr; row-gap: var(--s-7); } .kd-toc { position: static; } }

/* form primitives (any page; KDBooking keeps its own .kd-form skin above). kd-field = label + control + hint + error;
   kd-choices = a fieldset of radio / checkbox rows (title + optional description). Errors: .is-bad on the field shows
   its .kd-field__err (role="alert"). Success: swap the form for .kd-form__done. */
.kd-fields { display: grid; gap: var(--s-6); }
.kd-fields--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-5); }
@media (max-width: 719px) { .kd-fields--2 { grid-template-columns: 1fr; } }
.kd-field { display: grid; gap: 8px; align-content: start; min-width: 0; border: 0; padding: 0; margin-inline: 0; }
.kd-field__label, .kd-field > legend { font-size: 1.0625rem; font-weight: 700; line-height: 1.35; color: var(--ink); padding: 0; }
.kd-field__hint { font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); }
.kd-input {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--line-input); border-radius: var(--radius-ctl);
  background: var(--field); color: var(--ink); font-size: 1.0625rem; line-height: 1.3;
}
textarea.kd-input { min-height: 132px; resize: vertical; line-height: 1.5; }
select.kd-input {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat;
}
.kd-input::placeholder { color: var(--ink-3); opacity: 1; }
.kd-input:focus { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--ink); }
.kd-input:disabled { color: var(--ink-disabled); border-color: var(--ink-disabled); cursor: not-allowed; }
.kd-field__err { display: none; font-size: 0.9375rem; font-weight: 700; color: var(--bad); }
.kd-field.is-bad .kd-field__err { display: block; }
.kd-field.is-bad .kd-input { border-color: var(--bad); border-width: 2px; }
.kd-field.is-bad .kd-choices { border-top: 2px solid var(--bad); }
.kd-choices { display: grid; border-top: 1px solid var(--rule-strong); }
.kd-choice { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 12px; border-bottom: 1px solid var(--rule); cursor: pointer; transition: background-color var(--d-state) linear; }
.kd-choice:hover { background: var(--surface-2); }
.kd-choice input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.kd-choice__txt { display: grid; gap: 2px; }
.kd-choice__t { font-size: 1rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.kd-choice__d { font-size: 0.9rem; color: var(--ink-2); }
.kd-choice:has(input:checked) { background: var(--accent-tint); box-shadow: inset 0 0 0 1.5px var(--accent); }
.kd-choice:has(input:checked) .kd-choice__t { font-weight: 700; }
.kd-choice:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: -2px; }
@media (min-width: 1100px) {
  .kd-choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kd-choices--2 > .kd-choice:nth-child(odd) { border-right: 1px solid var(--rule); }
}
.kd-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-top: var(--s-6); }
.kd-form__done { border-top: 3px solid var(--ink); padding-top: var(--s-5); display: grid; gap: var(--s-4); }
.kd-form__done:focus { outline: none; }

/* kd-doc: a screenshot presented as a document (no drawn browser chrome): a ruled plate, the source URL as plain
   text in a header row, the image (optionally a link to the full-size file), a caption row. THE PLATE PATTERN: any image
   with a white background sits on --plate inside --plate-pad (a 10px mat in BOTH themes, so nothing resizes on toggle;
   in light the mat is nearly the surface, a thin paper border round a 1px --rule edge) so at night it reads as a
   paper print on a dark desk, not a glowing hole. The bar and caption stay on the surface, in surface tokens. The image
   itself is never filtered, inverted or dimmed. */
.kd-doc { margin: 0; background: var(--surface); border: 1px solid var(--rule-strong); }
.kd-doc__bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--rule-strong); }
.kd-doc__url { font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); letter-spacing: 0.01em; overflow-wrap: anywhere; }
.kd-doc__img { display: block; background: var(--plate); padding: var(--plate-pad); } .kd-doc__img img { width: 100%; outline: 1px solid var(--rule); outline-offset: 0; }
.kd-doc__cap { padding: 14px 16px 16px; border-top: 1px solid var(--rule-strong); display: grid; gap: 8px; font-size: var(--t-small); color: var(--ink-2); }
@media (max-width: 719px) { .kd-doc { margin-inline: calc(-1 * var(--gutter)); border-inline: 0; } }

/* kd-faq--fold: the same ruled FAQ rows as <details> (native open/close, works without JS). A drawn plus turns to minus. */
.kd-faq--fold .kd-faq__i { display: block; padding-block: 0; }
.kd-faq--fold summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: 64px; padding-block: var(--s-4); cursor: pointer; list-style: none; }
.kd-faq--fold summary::-webkit-details-marker { display: none; }
.kd-faq--fold summary::after {
  content: ""; flex: none; width: 16px; height: 16px;
  background: linear-gradient(var(--ink), var(--ink)) center / 16px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 16px no-repeat;
  transition: transform var(--d-state) var(--ease-out);
}
.kd-faq--fold details[open] > summary::after, .kd-faq--fold .kd-faq__i[open] > summary::after { background: linear-gradient(var(--ink), var(--ink)) center / 16px 2px no-repeat; }
.kd-faq--fold .kd-faq__a { padding-bottom: var(--s-6); }

/* kd-results + kd-result: long lists of results (results.html carries ~20). A ledger row, not a card: 9:16 film frame,
   label, name, the headline figure, two or three facts, one action. Rhythm: alternate --feature rows (big frame,
   figure at display scale; --flip mirrors) with a kd-results__group of --compact rows (small frame, two columns on
   desktop). Never 20 identical rows in a row. */
.kd-results { display: grid; border-top: 1px solid var(--rule-strong); }
.kd-result { display: grid; column-gap: clamp(20px, 3vw, 48px); row-gap: var(--s-4); padding-block: var(--s-6); border-bottom: 1px solid var(--rule); align-items: start; }
.kd-result__film { min-width: 0; }
.kd-result__body { display: grid; gap: var(--s-3); align-content: start; min-width: 0; }
.kd-result__label { color: var(--accent); }
.kd-result__name { font-size: 1.375rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
.kd-result__fig { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--s-4); }
.kd-result__n { font-family: var(--font-display); font-weight: 400; font-size: clamp(3.25rem, 5vw, 4.5rem); line-height: 0.86; color: var(--ink); }
.kd-result__n.kd-figure__n--text { font-family: var(--font-text); }
.kd-result__m { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; max-width: 26ch; }
.kd-result__facts { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--rule); }
.kd-result__facts > div { display: grid; gap: 2px; padding: 10px var(--s-5) 0 0; min-width: 8rem; }
.kd-result__facts dt { font-size: var(--t-label); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.kd-result__facts dd { font-size: 1rem; font-weight: 700; }
.kd-result__act { margin-top: var(--s-2); }
.kd-result--feature { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); padding-block: var(--s-7); }
.kd-result--feature .kd-result__film { max-width: 300px; }
.kd-result--feature .kd-result__name { font-family: var(--font-display); font-weight: 400; font-size: var(--t-display-3); line-height: 0.95; letter-spacing: -0.005em; }
.kd-result--feature .kd-result__n { font-size: var(--t-display-2); }
.kd-result--feature .kd-result__body { gap: var(--s-4); align-self: center; }
.kd-result--flip { grid-template-columns: minmax(0, 9fr) minmax(0, 3fr); }
.kd-result--flip .kd-result__film { order: 2; justify-self: end; }
.kd-result--compact { grid-template-columns: 96px minmax(0, 1fr); column-gap: var(--s-5); padding-block: var(--s-5); }
.kd-result--compact .kd-result__n { font-size: clamp(2.5rem, 3.6vw, 3.25rem); }
.kd-result--compact .kd-result__name { font-size: 1.125rem; }
.kd-result--compact .kd-result__facts > div { min-width: 0; padding-right: var(--s-4); }
.kd-results__group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 959px) { .kd-results__group { grid-template-columns: 1fr; } }
@media (max-width: 719px) {
  .kd-result--feature, .kd-result--flip { grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); column-gap: 16px; padding-block: var(--s-6); }
  .kd-result--flip .kd-result__film { order: 0; justify-self: stretch; }
  .kd-result--feature .kd-result__body { display: contents; }
  .kd-result--feature .kd-result__film { grid-column: 1; grid-row: 1 / span 3; max-width: none; }
  .kd-result--feature .kd-result__label, .kd-result--feature .kd-result__name, .kd-result--feature .kd-result__fig { grid-column: 2; }
  .kd-result--feature .kd-result__name { font-size: 2rem; }
  .kd-result--feature .kd-result__n { font-size: 3rem; }
  .kd-result--feature .kd-result__facts, .kd-result--feature .kd-result__act { grid-column: 1 / -1; }
  .kd-result--compact { grid-template-columns: 84px minmax(0, 1fr); column-gap: var(--s-4); }
}

/* 7 ─ Motion ─────────────────────────────────────────────────────────────── */
/* Visible by default. Only once <html> has .kd-js may [data-kd-reveal] start hidden;
   the head script adds .kd-reveal-done after 2.5s whatever happens. */
.kd-js [data-kd-reveal] { opacity: 0; transform: translateY(18px); }
.kd-js [data-kd-reveal].is-in { opacity: 1; transform: none; transition: opacity 420ms linear, transform 760ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.kd-js.kd-reveal-done [data-kd-reveal] { opacity: 1; transform: none; }
.kd-js.kd-reveal-done [data-kd-funnel] .kd-funnel__bar i { transform: none; }
.kd-js.kd-reveal-done .kd-mark[data-kd-mark]::before { transform: rotate(-1.2deg) scaleX(1); }
.kd-js.kd-reveal-done .kd-mark--block[data-kd-mark] .kd-mark__hl,
.kd-js.kd-reveal-done .kd-mark--block[data-kd-mark] .kd-mark__hl > span { transform: none; }
.kd-js.kd-reveal-done .kd-mark--fill[data-kd-mark] .kd-mark__fill { transform: rotate(-1.6deg) skewX(-5deg) scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .kd-js [data-kd-reveal] { opacity: 1; transform: none; }
  .kd-js .kd-mark[data-kd-mark]::before { transform: rotate(-1.2deg) scaleX(1); }
  .kd-js .kd-mark--block[data-kd-mark] .kd-mark__hl, .kd-js .kd-mark--block[data-kd-mark] .kd-mark__hl > span { transform: none; }
  .kd-js .kd-mark--fill[data-kd-mark] .kd-mark__fill { transform: rotate(-1.6deg) skewX(-5deg) scaleX(1); }
  .kd-js [data-kd-funnel] .kd-funnel__bar i { transform: none; }
  .kd-case__photo:hover img, .kd-film:hover .kd-film__poster { transform: none; }
  .kd-strip__track { transform: none !important; }
  .kd-tabs-ready .kd-tabpanel.is-in { animation: none; }
}

/* 8 ─ Utilities ──────────────────────────────────────────────────────────── */
.kd-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.kd-nowrap { white-space: nowrap; }
.kd-mt-5 { margin-top: var(--s-5); } .kd-mt-6 { margin-top: var(--s-6); } .kd-mt-7 { margin-top: var(--s-7); } .kd-mt-8 { margin-top: var(--s-8); }
.kd-ink-2 { color: var(--ink-2); }
.kd-accent { color: var(--accent); }   /* historical name: violet as text */

/* 9 ─ Theme ─────────────────────────────────────────────────────────────── */
/* kd-theme: the one theme control. Two states (light / dark), starting from whatever is showing; until the first press
   the page follows the system. A drawn sun (light showing) turns into a moon (dark showing): 160ms transform + opacity,
   none under reduced motion. 44px target. Shown only with JS (.kd-js): without JS the system setting already applies.
   Markup + placement: SYSTEM.md "Dark mode: what every page must do". */
.kd-theme {
  position: relative; flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: var(--radius-ctl); background: transparent; color: var(--ink); cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: background-color var(--d-state) linear, transform 90ms linear;
}
html:not(.kd-js) .kd-theme { display: none; }
/* hover: a filled well with a 1px edge (the fill alone was ~1.3:1 in dark, too quiet); pressed: deeper well + ink edge.
   The edge is an inset ring drawn with outline so the 44px box and the icon never move; focus ring unchanged. */
.kd-theme:hover { background: var(--surface-3); outline: 1px solid var(--line-input); outline-offset: -1px; }
.kd-theme:active { background: var(--accent-tint); outline: 1px solid var(--ink); outline-offset: -1px; transform: translateY(1px); }
.kd-theme:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.kd-theme svg {
  grid-area: 1 / 1; width: 22px; height: 22px; overflow: visible;
  transition: transform var(--d-state) var(--ease-out), opacity var(--d-state) linear;
}
.kd-theme__sun { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
/* the icon follows the THEME TOKEN, not the attribute, so it is right even before kd.js runs */
.kd-theme__sun { opacity: calc(1 - var(--is-dark)); transform: rotate(calc(90deg * var(--is-dark))) scale(calc(1 - 0.6 * var(--is-dark))); }
.kd-theme__moon { fill: currentColor; stroke: none; opacity: var(--is-dark); transform: rotate(calc(-70deg * (1 - var(--is-dark)))) scale(calc(0.4 + 0.6 * var(--is-dark))); }
/* placement: desktop, left of the primary CTA (tight to it); phones, in the bar beside the burger, never in the menu */
.kd-nav__in > .kd-theme { margin-right: calc(var(--s-2) - var(--s-6)); }
@media (max-width: 859px) {
  .kd-nav__in > .kd-theme { margin-right: -4px; }
  .kd-js .kd-nav__in > .kd-theme { margin-left: auto; }
  .kd-js .kd-nav__in > .kd-theme ~ .kd-nav__cta.kd-btn { margin-left: 0; }
}
@media (max-width: 719px) {
  .kd-js .kd-nav__in > .kd-theme ~ .kd-nav__burger { margin-left: 0; }
  .kd-nav--studio .kd-nav__in > .kd-theme { margin-right: -2px; }
}
@media (max-width: 379px) { .kd-nav__in { gap: 8px; } }

/* the toggle's change-over: a wipe, not a crossfade. A crossfade between two inverse themes passes through a frame
   where text and ground are the same grey (measured: unreadable at ~100ms of 200), so instead the new theme is revealed
   left to right like the marker stroke: every frame is either fully the old theme or fully the new one, on either side
   of a hard edge. kd.js runs it with the View Transitions API, on a press only (never on load), never under reduced
   motion; browsers without the API switch instantly. Colour only: layout is the same in both snapshots. */
@media (prefers-reduced-motion: no-preference) {
  :root.kd-theming::view-transition-old(root) { animation: none; mix-blend-mode: normal; }
  :root.kd-theming::view-transition-new(root) { animation: kd-theme-wipe 240ms var(--ease-out) both; mix-blend-mode: normal; }
}
@keyframes kd-theme-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
