/* =============================================================================
   Pudu Labs — v4.0
   Dual-mode token system: light is the default; `.dark` re-scopes the same
   tokens so every component adapts automatically. Vanilla CSS, no build step.

   Contrast note: every ink alpha below was chosen against its real background
   to clear WCAG AA. Do not lower them without re-measuring.
   ============================================================================= */

/* ── Self-hosted type ───────────────────────────────────────────────────────
   Outfit is a variable font: one file covers 400–700. Self-hosted so no
   visitor IP is disclosed to a third party on page load. */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Tokens ─────────────────────────────────────────────────────────────────── */
:root {
  /* Light body (default) — the brand cream */
  --bg:            #faf8f4;
  --bg-2:          #f3efe8;
  --ink:           #161310;
  --ink-muted:     rgba(22, 19, 16, 0.66);   /* 5.80:1 on cream */
  --ink-faint:     rgba(22, 19, 16, 0.60);   /* 4.73:1 on cream */
  --ink-ghost:     rgba(22, 19, 16, 0.48);   /* 3.24:1 — large text / non-text only */
  --rule:          rgba(22, 19, 16, 0.12);
  --rule-strong:   rgba(22, 19, 16, 0.24);
  --surface:       #ffffff;
  --surface-2:     #fffdf9;
  --shadow:        0 1px 2px rgba(22, 19, 16, 0.04), 0 16px 40px -24px rgba(22, 19, 16, 0.30);
  --shadow-lift:   0 2px 4px rgba(22, 19, 16, 0.05), 0 26px 56px -26px rgba(22, 19, 16, 0.38);
  --spot:          rgba(241, 90, 36, 0.10);

  /* Accent — Pudu orange */
  --accent:        #f15a24;
  --accent-hover:  #ff6a34;
  --accent-2:      #ff8a4c;   /* glow tip / on-dark accent text */
  --accent-ink:    #c5461b;   /* accent used as TEXT on light (4.64:1) */
  --accent-soft:   rgba(241, 90, 36, 0.12);
  --accent-line:   rgba(241, 90, 36, 0.55);
  --on-accent:     #161310;   /* label on an orange field — 5.49:1, keeps the exact orange */

  --danger:        #a3231b;
  --danger-soft:   rgba(163, 35, 27, 0.09);
  --success:       #1c6b45;
  --success-soft:  rgba(28, 107, 69, 0.10);

  --font: "Outfit", system-ui, -apple-system, sans-serif;

  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --t-fast: 160ms var(--ease-out);
  --t-base: 240ms var(--ease-out);

  --max: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --pad-card: clamp(1.75rem, 2.4vw, 2.25rem);  /* shared interior padding for cards/boxes */
  --row-pad: clamp(0.9rem, 1.6vw, 1.4rem);     /* interior inset for hover-highlighted list rows */
}

/* Dark scope — footer (and any band that opts in) */
.dark {
  --bg:          #0c0b0a;
  --bg-2:        #100e0c;
  --ink:         #f5f1ea;
  --ink-muted:   rgba(245, 241, 234, 0.64);   /* 7.37:1 on near-black */
  --ink-faint:   rgba(245, 241, 234, 0.55);   /* 5.70:1 */
  --ink-ghost:   rgba(245, 241, 234, 0.50);   /* 4.85:1 */
  --rule:        rgba(245, 241, 234, 0.12);
  --rule-strong: rgba(245, 241, 234, 0.20);
  --surface:     rgba(255, 255, 255, 0.045);
  --surface-2:   rgba(255, 255, 255, 0.06);
  --shadow:      none;
  --shadow-lift: none;
  --spot:        rgba(241, 90, 36, 0.16);
  --accent-ink:  #ff8a4c;
  color: var(--ink);
  background: var(--bg);
}

/* ── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--accent); color: var(--on-accent); }

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

/* Skip link — first focusable element on every page */
.skip {
  position: absolute; left: 0.75rem; top: -100px; z-index: 200;
  background: var(--ink); color: var(--bg);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.8rem 1.2rem; border-radius: 999px;
  transition: top var(--t-fast);
}
.skip:focus { top: 0.75rem; }

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

/* ── Shell ──────────────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.rule { height: 1px; background: var(--rule); border: 0; }

/* Inner pages: the hero already owns its bottom space — don't stack another
   section's top padding on top of it. */
.page-hero + .section,
.page-hero + .wrap { padding-top: 0; }

/* ── Type ───────────────────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-faint);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); box-shadow: 0 0 10px 1px var(--accent-line); }
.eyebrow--accent { color: var(--accent-ink); }

h1, h2, h3 { font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; color: var(--ink); }
.display { font-size: clamp(2.6rem, 1.4rem + 5.4vw, 5.25rem); line-height: 0.98; letter-spacing: -0.035em; }
.h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); letter-spacing: -0.03em; line-height: 1.02; }
.h3 { font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); letter-spacing: -0.02em; }
.lede { font-size: clamp(1.05rem, 0.98rem + 0.5vw, 1.3rem); line-height: 1.55; color: var(--ink-muted); font-weight: 400; }
.muted { color: var(--ink-muted); }
.accent-word { color: var(--accent-ink); }
.dark .accent-word { color: var(--accent-2); }

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em;
  min-height: 46px; padding: 0.85rem 1.5rem; border-radius: 999px;
  transition: transform var(--t-fast), background-color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-base), color var(--t-fast);
  white-space: nowrap; cursor: pointer;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 16px; height: 16px; transition: transform var(--t-base); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary {
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 0 0 1px rgba(241, 90, 36, 0.5), 0 10px 40px -12px rgba(241, 90, 36, 0.75);
}
.btn--primary:hover { background: var(--accent-hover); box-shadow: 0 0 0 1px rgba(255, 138, 76, 0.6), 0 14px 48px -10px rgba(241, 90, 36, 0.9); }
.btn--ghost { color: var(--ink); border: 1px solid var(--rule-strong); background: var(--surface); }
.btn--ghost:hover { border-color: var(--ink-faint); background: var(--surface-2); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

.textlink {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink); transition: color var(--t-fast);
  min-height: 24px;
}
.textlink::after { content: "→"; transition: transform var(--t-fast); color: var(--accent-ink); }
.textlink:hover { color: var(--accent-ink); }
.textlink:hover::after { transform: translateX(4px); }

/* ── Nav ────────────────────────────────────────────────────────────────────
   The warm textured bar sits on a ::before so it can fade out into the hero.
   Masking .nav itself would fade the logo and links with it. */
.nav {
  position: sticky; top: 0; z-index: 100; width: 100%;
  background-color: #faf8f4;
  isolation: isolate;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(241, 90, 36, 0.10), rgba(241, 90, 36, 0.06)),
    linear-gradient(rgba(250, 248, 244, 0.82), rgba(250, 248, 244, 0.88)),
    url("header-texture.jpg");
  background-size: cover;
  background-position: center 38%;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 100%);
}
.nav.is-scrolled { border-bottom-color: var(--rule); box-shadow: 0 10px 34px -20px rgba(22, 19, 16, 0.28); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: var(--max); margin-inline: auto;
  height: 124px; padding-inline: var(--gutter);
  transition: height var(--t-base);
}
.nav.is-scrolled .nav__inner { height: 86px; }
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 100px; width: auto; transition: height var(--t-base); }
.nav.is-scrolled .nav__logo img { height: 62px; }
.nav__links { display: flex; align-items: center; gap: clamp(1.1rem, 2.5vw, 2rem); }
.nav__link {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--ink); position: relative;
  display: inline-flex; align-items: center; min-height: 44px;
  transition: color var(--t-fast);
}
.nav__link::after { content: ""; position: absolute; left: 0; bottom: 12px; width: 0; height: 1.5px; background: var(--accent); transition: width var(--t-base); }
.nav__link:hover, .nav__link.is-active { color: var(--accent-ink); }
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }
.nav__cta {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--on-accent); background: var(--accent); padding: 0.7rem 1.3rem; border-radius: 999px;
  transition: transform var(--t-fast), background var(--t-fast), box-shadow var(--t-base);
  box-shadow: 0 8px 24px -12px rgba(241, 90, 36, 0.8);
}
.nav__cta:hover { background: var(--accent-hover); box-shadow: 0 12px 30px -12px rgba(241, 90, 36, 0.95); }
.nav__cta:active { transform: scale(0.97); }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 12px; position: relative; }
.nav__burger span { position: absolute; left: 12px; width: 20px; height: 2px; background: var(--ink); transition: transform var(--t-base), opacity var(--t-base); }
.nav__burger span:nth-child(1) { top: 16px; }
.nav__burger span:nth-child(2) { top: 21px; }
.nav__burger span:nth-child(3) { top: 26px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 99; background: rgba(10, 9, 8, 0.94);
  backdrop-filter: blur(20px); display: flex; flex-direction: column; justify-content: center;
  gap: 0.5rem; padding: var(--gutter); opacity: 0; pointer-events: none; transition: opacity var(--t-base);
}
.drawer.is-open { opacity: 1; pointer-events: auto; }
.drawer[inert] { visibility: hidden; }
.drawer a {
  font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; color: #f5f1ea;
  padding: 0.6rem 0; border-bottom: 1px solid rgba(245, 241, 234, 0.12);
}
.drawer a:last-child { border: 0; margin-top: 1rem; color: var(--accent-2); }

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding-top: clamp(3rem, 6vw, 5.5rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(55vw 55vw at 84% -25%, rgba(241, 90, 36, 0.12), transparent 58%),
    radial-gradient(45vw 45vw at 2% 4%, rgba(255, 138, 76, 0.05), transparent 55%);
}
.dark .hero__bg {
  background:
    radial-gradient(60vw 60vw at 82% -20%, rgba(241, 90, 36, 0.20), transparent 60%),
    radial-gradient(45vw 45vw at 4% 6%, rgba(255, 138, 76, 0.08), transparent 55%);
}
.hero__canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 96%);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0.5rem 0.4rem 0.9rem;
  border: 1px solid var(--rule); border-radius: 999px; background: var(--surface);
  backdrop-filter: blur(8px); font-size: 0.74rem; font-weight: 500; color: var(--ink-muted); margin-bottom: 2rem;
}
.hero__badge b { color: var(--ink); font-weight: 600; }
.hero__badge .pill { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft); padding: 0.25rem 0.55rem; border-radius: 999px; }
.hero__headline { max-width: 16ch; margin-bottom: 1.6rem; }
.hero__sub { max-width: 60ch; margin-bottom: 2.4rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

/* Page hero (inner pages, shorter) */
.page-hero { position: relative; overflow: hidden; padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.page-hero__inner { position: relative; z-index: 1; max-width: 900px; }
.page-hero__title { margin: 1.1rem 0 1.4rem; max-width: 20ch; }
.page-hero__sub { max-width: 66ch; }

/* Trust marquee */
.trust { margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding-block: 1.4rem; }
.trust__label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1rem; display: block; }
.trust__track { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee { display: flex; width: max-content; gap: 3.5rem; animation: marquee 34s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 3.5rem; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-faint); white-space: nowrap; }
.marquee span::after { content: "◆"; color: var(--accent); font-size: 0.5rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Thesis ─────────────────────────────────────────────────────────────────── */
.thesis__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.thesis__statement { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.35rem); font-weight: 500; line-height: 1.28; letter-spacing: -0.02em; color: var(--ink); }
.thesis__statement em { color: var(--accent-ink); font-style: normal; }
.thesis__support { color: var(--ink-muted); }
.thesis__support p + p { margin-top: 1.1rem; }
.thesis__statement + .thesis__support { margin-top: 1.6rem; }

/* ── Section head ───────────────────────────────────────────────────────────
   Grid, not flex-wrap: the layout must not change with the title's length. */
.sec-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 38ch);
  align-items: end; gap: 2rem clamp(2rem, 5vw, 4rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.sec-head > :only-child { grid-column: 1 / -1; }
.sec-head__title { margin-top: 1rem; }
.sec-head .textlink { justify-self: end; }
@media (max-width: 900px) {
  .sec-head { grid-template-columns: 1fr; align-items: start; }
  .sec-head .textlink { justify-self: start; }
}

/* Pages that open on a document rather than a hero don't need the full
   section lead-in above the title. */
.section--tight-top { padding-top: clamp(2rem, 4vw, 3rem); }
.article--nav { margin-bottom: 1.5rem; }

/* ── Cards / practice grid ──────────────────────────────────────────────────
   Two columns, four equal peers. The previous 4|2 over 3|3 split on a
   six-column grid staircased: the gutters landed at different x positions and
   no vertical edge ran through the block. The four practice areas are peers,
   so the grid should say so. */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.card {
  position: relative; border: 1px solid var(--rule); border-radius: 20px;
  background: var(--surface); box-shadow: var(--shadow);
  padding: var(--pad-card); overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base), background var(--t-base);
}
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(340px 340px at var(--mx, 50%) var(--my, 0%), var(--spot), transparent 60%); opacity: 0; transition: opacity var(--t-base); }
.card:hover { transform: translateY(-4px); border-color: var(--rule-strong); box-shadow: var(--shadow-lift); }
.card:hover::before { opacity: 1; }
.card__num { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; color: var(--accent-ink); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 0.5rem; }
.card__num::after { content: ""; flex: 1; height: 1px; min-width: 28px; background: linear-gradient(90deg, var(--accent-line), transparent); }
.card__title { font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); margin: 1.4rem 0 0.9rem; letter-spacing: -0.02em; }
.card__body { color: var(--ink-muted); font-size: 0.98rem; line-height: 1.65; max-width: 46ch; flex: 1; }
.card__foot { margin-top: 1.6rem; }

/* ── Operating standards ────────────────────────────────────────────────────
   Rows bleed outward for the hover highlight, but their hairlines stay on the
   content edge so they align with the section rules and the type above. */
.standards { display: grid; gap: 0; margin-inline: calc(-1 * var(--row-pad)); }
.standard {
  position: relative;
  display: grid; grid-template-columns: 90px 1fr; gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(1.6rem, 3vw, 2.4rem); padding-inline: var(--row-pad);
  align-items: baseline; transition: background var(--t-base); border-radius: 10px;
}
.standard::before,
.standard:last-child::after {
  content: ""; position: absolute; left: var(--row-pad); right: var(--row-pad);
  height: 1px; background: var(--rule);
}
.standard::before { top: 0; }
.standard:last-child::after { bottom: 0; }
.standard:hover { background: var(--surface); }
.standard__num { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; color: var(--ink-ghost); line-height: 1; transition: color var(--t-base); }
.standard:hover .standard__num { color: var(--accent-ink); }
.standard__title { font-size: clamp(1.15rem, 0.95rem + 0.8vw, 1.55rem); margin-bottom: 0.6rem; letter-spacing: -0.02em; }
.standard__body { color: var(--ink-muted); max-width: 68ch; font-size: 0.98rem; }

/* ── Credential badges ──────────────────────────────────────────────────────
   General experience markers. Deliberately carries no client, project, or
   outcome figures — scale of practice only. */
.badges { display: grid; gap: clamp(2rem, 4vw, 2.75rem); }
.badge-group__label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 1.1rem;
}
.badge-row { display: flex; flex-wrap: wrap; gap: 0.65rem; }

.badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  border: 1px solid var(--rule); background: var(--surface); border-radius: 999px;
  padding: 0.6rem 1.15rem; min-height: 44px;
  font-size: 0.9rem; font-weight: 500; color: var(--ink-muted);
  transition: border-color var(--t-base), background var(--t-base), color var(--t-base);
}
.badge:hover { border-color: var(--rule-strong); color: var(--ink); }

.badge--figure { padding-left: 0.95rem; box-shadow: var(--shadow); }
.badge__fig {
  font-size: 1.4rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1;
  color: var(--accent-ink); font-variant-numeric: tabular-nums;
}
.badge__txt { font-size: 0.86rem; font-weight: 600; letter-spacing: 0.01em; color: var(--ink); }
.badge--figure::after { content: none; }

/* ── Insights cards ─────────────────────────────────────────────────────────── */
.insights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.insight {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--rule); border-radius: 18px; padding: var(--pad-card);
  background: var(--surface); box-shadow: var(--shadow);
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.insight:hover { transform: translateY(-4px); border-color: var(--rule-strong); box-shadow: var(--shadow-lift); }
.insight__cat { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); }
.insight__title { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; margin: 1rem 0; }
.insight__title a { transition: color var(--t-fast); }
/* The whole card is the target — the hover lift promises it. */
.insight__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.insight:hover .insight__title a { color: var(--accent-ink); }
.insight__excerpt { color: var(--ink-muted); font-size: 0.92rem; line-height: 1.6; flex: 1; }
.insight__meta { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: 0.74rem; color: var(--ink-faint); display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }

/* Featured insight — one full-width editorial block, no decorative panel */
.featured {
  position: relative; display: block; overflow: hidden;
  border: 1px solid var(--rule); border-radius: 22px; background: var(--surface);
  box-shadow: var(--shadow); margin-bottom: 2.5rem;
  padding: clamp(2rem, 4vw, 3.25rem);
  transition: box-shadow var(--t-base), border-color var(--t-base), transform var(--t-base);
}
.featured::before {
  content: ""; position: absolute; right: -10%; top: -60%; width: 60%; height: 200%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.featured:hover { box-shadow: var(--shadow-lift); border-color: var(--rule-strong); transform: translateY(-3px); }
.featured__body { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; max-width: 34ch; }
.featured__title { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3.1rem); letter-spacing: -0.035em; line-height: 1.02; }
.featured__excerpt { color: var(--ink-muted); max-width: 62ch; font-size: 1.02rem; }
.featured__body > .featured__excerpt, .featured__body > .insight__meta { max-width: 62ch; }
.featured__body { max-width: none; }
.featured__cta { margin-top: 0.4rem; }

/* Filter chips */
.filter { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.25rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--rule); }
.filter__label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-right: 0.3rem; }
.chip {
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.01em;
  border: 1px solid var(--rule); background: var(--surface); color: var(--ink-muted);
  padding: 0.5rem 0.9rem; min-height: 40px; border-radius: 999px;
  display: inline-flex; align-items: center;
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}
.chip:hover { color: var(--ink); border-color: var(--rule-strong); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filter__count { font-size: 0.8rem; color: var(--ink-faint); margin-bottom: 2rem; }
.insights__empty {
  grid-column: 1 / -1; border: 1px dashed var(--rule-strong); border-radius: 18px;
  padding: clamp(2rem, 5vw, 3.5rem); text-align: center; color: var(--ink-muted);
}

/* ── Article (reading page) ─────────────────────────────────────────────────── */
.backlink { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted); transition: color var(--t-fast); }
.backlink::before { content: "←"; color: var(--accent-ink); transition: transform var(--t-fast); }
.backlink:hover { color: var(--accent-ink); }
.backlink:hover::before { transform: translateX(-3px); }

.article { max-width: 720px; margin-inline: auto; }
.article__head { padding-top: clamp(1.5rem, 3vw, 2.5rem); padding-bottom: clamp(1.75rem, 3vw, 2.5rem); border-bottom: 1px solid var(--rule); margin-bottom: clamp(2rem, 4vw, 3rem); }
.article__cat { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); }
.article__title { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); line-height: 1.06; letter-spacing: -0.03em; margin: 1rem 0 1.3rem; }
.article__meta { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; font-size: 0.82rem; color: var(--ink-faint); }
.article__meta .dot { opacity: 0.5; }

.prose { font-size: clamp(1.05rem, 1rem + 0.25vw, 1.19rem); line-height: 1.72; color: var(--ink-muted); }
.prose p { margin-bottom: 1.35em; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.7rem); line-height: 1.18; letter-spacing: -0.02em; color: var(--ink); margin: 2.4em 0 0.75em; }
.prose h3 { font-size: 1.2rem; color: var(--ink); margin: 1.8em 0 0.6em; }
.prose em { color: var(--ink); font-style: italic; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose blockquote { border-left: 2px solid var(--accent); padding-left: 1.3rem; margin: 1.8em 0; font-size: 1.25em; font-weight: 500; line-height: 1.4; color: var(--ink); }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { list-style: disc; padding-left: 1.4rem; margin: 0 0 1.35em; }
.prose li { margin-bottom: 0.45em; padding-left: 0.25rem; }
.prose li::marker { color: var(--accent); }

.article__foot { max-width: 720px; margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; padding-top: 1.8rem; border-top: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.article__author-name { font-weight: 700; color: var(--ink); }
.article__author-role { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-top: 0.15rem; }
.article__notfound { text-align: center; padding-block: clamp(4rem, 8vw, 7rem); }

.article-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: clamp(2rem, 4vw, 3rem); }
@media (max-width: 900px) { .article-more { grid-template-columns: 1fr; } }

/* ── Service blocks (Practice) ──────────────────────────────────────────────── */
.service { display: grid; grid-template-columns: 96px 1fr; gap: clamp(1.25rem, 4vw, 3rem); padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--rule); scroll-margin-top: 120px; }
.service__num { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; color: var(--ink-ghost); line-height: 1; }
.service__label { color: var(--accent-ink); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.6rem; }
.service__title { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); letter-spacing: -0.02em; margin-bottom: 1.1rem; }
.service__body { color: var(--ink-muted); max-width: 64ch; }
.service__body p { margin-bottom: 1rem; }
.service__body p:last-child { margin-bottom: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }
.tag { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; border: 1px solid var(--rule); background: var(--surface); color: var(--ink-muted); padding: 0.45rem 0.9rem; border-radius: 999px; }

/* Practice sticky index */
.pindex { position: sticky; top: clamp(4.5rem, 9vh, 6rem); z-index: 40; margin-bottom: 1rem; }
.pindex__inner { display: flex; gap: 0.4rem; align-items: center; padding: 0.5rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); overflow-x: auto; scrollbar-width: none; }
.pindex__inner::-webkit-scrollbar { display: none; }
.pindex__link { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 40px; font-size: 0.74rem; font-weight: 600; color: var(--ink-muted); padding: 0.45rem 0.85rem; border-radius: 999px; white-space: nowrap; transition: color var(--t-fast), background var(--t-fast); }
.pindex__link span { color: var(--accent-ink); font-variant-numeric: tabular-nums; margin-right: 0.35rem; }
.pindex__link:hover, .pindex__link.is-active { color: var(--ink); background: var(--bg-2); }

/* ── Connect form ───────────────────────────────────────────────────────────── */
.connect { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.connect__opening { font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem); font-weight: 600; line-height: 1.35; letter-spacing: -0.02em; margin-bottom: 1.8rem; }
.connect__prompts { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 2rem; }
.connect__prompt { display: flex; gap: 0.7rem; color: var(--ink-muted); font-size: 0.95rem; line-height: 1.5; }
.connect__prompt::before { content: "—"; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.connect__direct { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 0.35rem; }
.connect__item { display: flex; gap: 1rem; align-items: center; font-size: 0.95rem; min-height: 44px; }
.connect__item b { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); min-width: 74px; }
.connect__item a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); transition: color var(--t-fast); }
.connect__item a:hover { color: var(--accent-ink); }

.formcard { border: 1px solid var(--rule); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); padding: var(--pad-card); }
.formcard__title { font-size: 1.15rem; letter-spacing: -0.02em; margin-bottom: 1.4rem; }
.field-group { margin-bottom: 1.4rem; }
.field-label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.5rem; }
.field-label .opt { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 0.85em; }
.field-label .req { color: var(--accent-ink); margin-left: 0.15rem; }
.input, .textarea { display: block; width: 100%; background: var(--bg); border: 1px solid var(--rule); border-radius: 12px; padding: 0.8rem 0.95rem; min-height: 46px; font-family: var(--font); font-size: 1rem; color: var(--ink); outline: none; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.input:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder, .textarea::placeholder { color: var(--ink-faint); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.field-error { display: none; margin-top: 0.45rem; font-size: 0.82rem; color: var(--danger); }
.field-error.is-shown { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { border-radius: 12px; padding: 0.9rem 1.1rem; font-size: 0.9rem; margin-bottom: 1.4rem; }
.form-status[hidden] { display: none; }
.form-status--ok { background: var(--success-soft); color: var(--success); border: 1px solid rgba(28, 107, 69, 0.24); }
.form-status--err { background: var(--danger-soft); color: var(--danger); border: 1px solid rgba(163, 35, 27, 0.24); }
.formcard__note { font-size: 0.8rem; margin-top: 1rem; line-height: 1.55; }
.formcard__note a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }

/* ── CTA ────────────────────────────────────────────────────────────────────── */
.cta { position: relative; text-align: center; padding-block: clamp(5rem, 10vw, 8rem); overflow: hidden; }
.cta__glow { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 720px; height: 720px; max-width: 120vw; background: radial-gradient(circle, rgba(241, 90, 36, 0.26), rgba(241, 90, 36, 0.05) 45%, transparent 70%); pointer-events: none; z-index: 0; }
.cta > .wrap { position: relative; z-index: 1; }
.cta .eyebrow { justify-content: center; }
.cta__title { margin: 1.4rem auto; max-width: 18ch; }
.cta__body { max-width: 48ch; margin: 0 auto 2.4rem; color: var(--ink-muted); }
.cta__actions { display: flex; justify-content: center; }
.cta__contact { margin-top: 2rem; font-size: 0.85rem; color: var(--ink-faint); }
.cta__contact a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink-muted); transition: color var(--t-fast); }
.cta__contact a:hover { color: var(--accent-ink); }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.footer { padding-block: clamp(3rem, 6vw, 5rem) 2.5rem; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer__logo img { height: 56px; width: auto; margin-bottom: 1.3rem; }
.footer__tag { color: var(--ink-faint); font-size: 0.86rem; max-width: 34ch; line-height: 1.6; }
.footer__col h2 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.6rem; }
.footer__col ul { display: flex; flex-direction: column; }
.footer__col a, .footer__col p { font-size: 0.9rem; color: var(--ink-muted); transition: color var(--t-fast); }
.footer__col a, .footer__col li > p { display: inline-flex; align-items: center; min-height: 44px; }
.footer__col a:hover { color: var(--accent-2); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 2rem; border-top: 1px solid var(--rule); font-size: 0.78rem; color: var(--ink-ghost); }
.footer__bottom a { color: var(--ink-faint); display: inline-flex; align-items: center; min-height: 32px; }
.footer__bottom a:hover { color: var(--accent-2); }

/* ── Scroll reveal ──────────────────────────────────────────────────────────
   Gated on `.js` so the un-scripted page is the visible one. Without the class
   (script blocked, failed, or disabled) everything renders at full opacity. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js [data-stagger] > * { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.js [data-stagger].is-in > * { opacity: 1; transform: none; }
/* Formula, not four hard-coded rules — the cascade has to survive a growing list. */
.js [data-stagger].is-in > *:nth-child(n + 2) { transition-delay: calc((var(--stagger-i, 0) - 1) * 60ms); }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav__inner, .nav.is-scrolled .nav__inner { height: 82px; }
  .nav__logo img, .nav.is-scrolled .nav__logo img { height: 54px; }
  .thesis__grid { grid-template-columns: 1fr; gap: 2rem; }
  .bento { grid-template-columns: 1fr; }
  .insights { grid-template-columns: 1fr; }
  .connect { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__logo { grid-column: 1 / -1; }
  .service { grid-template-columns: 1fr; gap: 0.75rem; }
}
@media (max-width: 640px) {
  /* Confine the orbital field to the top-right corner so it can never cross
     the headline on a short hero. */
  .hero__canvas {
    -webkit-mask-image: radial-gradient(130% 78% at 100% 0%, #000 0%, #000 30%, transparent 70%);
    mask-image: radial-gradient(130% 78% at 100% 0%, #000 0%, #000 30%, transparent 70%);
  }
}
@media (max-width: 520px) {
  .footer__top { grid-template-columns: 1fr; }
  .standard { grid-template-columns: 48px 1fr; gap: 1rem; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1; justify-content: center; }
  .badge-row { gap: 0.5rem; }
}

/* ── Reduced motion ─────────────────────────────────────────────────────────
   Less movement, not no feedback. Colour, shadow and opacity transitions stay
   so hover and focus still confirm themselves; transforms and loops stop. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-property: color, background-color, border-color, box-shadow, opacity, fill, stroke !important;
    transition-duration: 180ms !important;
  }
  .js .reveal, .js [data-stagger] > * { opacity: 1; transform: none; }
  .marquee { animation: none; }
}
@media (hover: none) {
  .card:hover, .insight:hover, .featured:hover { transform: none; }
}
