/* ============================================================
   Inflection Group — shared styles
   Editorial: cool paper ground, serif display headings, monospace
   labels, cobalt-blue accent, hairline rules, dark-navy stat band.
   Light theme by design.
   ============================================================ */

:root {
  /* Color */
  --paper:     #F5F5F1;   /* cool warm-neutral near-white */
  --paper-2:   #ECEBE3;   /* deeper paper for alternating sections */
  --ink:       #16181B;   /* near-black text */
  --ink-soft:  #494D51;   /* secondary text */
  --ink-faint: #888C85;   /* captions, muted labels */
  --line:      #DEDCD1;   /* hairline */
  --accent:    #2E52F2;   /* cobalt blue — the single highlight */
  --accent-dk: #1E3FD6;   /* cobalt for small text (contrast) */
  --accent-soft: rgba(46, 82, 242, 0.08);
  --navy:      #0B1524;   /* dark stat-band ground */
  --on-navy:   #F4F2EA;   /* text on navy */
  --on-navy-soft: rgba(244, 242, 234, 0.60);
  --navy-line: rgba(244, 242, 234, 0.22);

  /* Type */
  --font-serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  /* Metrics */
  --maxw: 1160px;
  --readw: 680px;
  --pad-y: clamp(4.5rem, 9vw, 8rem);
  --gutter: clamp(1.25rem, 5vw, 3.5rem);

  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); width: 100%; }
.narrow { max-width: var(--readw); }

a { color: var(--accent-dk); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; display: block; }

/* ---------- Typographic primitives ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before { content: ""; width: 1.6rem; height: 1px; background: var(--accent); display: inline-block; opacity: 0.7; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.08;
  text-wrap: balance;
  color: var(--ink);
  margin: 0;
}
.display { color: var(--ink); }
.display em, .display-ink em, h1 em, h2 em { font-style: italic; color: var(--accent); }
.display-ink { color: var(--ink); }

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--ink); }
em { font-style: italic; }
.lede { font-size: clamp(1.12rem, 1.7vw, 1.35rem); line-height: 1.55; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-sans); font-size: 0.97rem; font-weight: 500;
  background: var(--accent); color: #fff;
  padding: 0.82rem 1.5rem; border-radius: 999px;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); background: var(--accent-dk); box-shadow: 0 10px 26px -14px rgba(46,82,242,0.75); }
.btn .arw { transition: transform 0.2s ease; }
.btn:hover .arw { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-dk); box-shadow: none; }
.btn-lg { font-size: 1.03rem; padding: 0.95rem 1.8rem; }
.btn-on-navy { background: #fff; color: var(--navy); border-color: #fff; }
.btn-on-navy:hover { background: var(--paper); border-color: var(--paper); box-shadow: none; }

/* ---------- Header / nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
header.site.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 1.5rem; }
.brand {
  font-family: var(--font-serif); font-weight: 500; font-size: 1.4rem;
  letter-spacing: 0.005em; color: var(--ink);
  display: inline-flex; align-items: center; gap: 0.6rem; white-space: nowrap;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand .mark { color: var(--accent); font-size: 0.9em; }
.brand .brand-logo { height: 28px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 1.9rem; }
.nav-item { position: relative; display: inline-flex; align-items: center; }
.nav-links > a:not(.btn), .nav-item > a { font-family: var(--font-sans); font-size: 0.92rem; font-weight: 400; color: var(--ink-soft); transition: color 0.2s ease; }
.nav-links > a:not(.btn):hover, .nav-item > a:hover { color: var(--ink); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--accent); }
.nav-item.has-sub > a::after { content: "\203A"; display: inline-block; transform: rotate(90deg); font-size: 0.9em; margin-left: 0.45rem; color: var(--ink-faint); transition: color .2s ease; }
.nav-item.has-sub:hover > a::after, .nav-item.has-sub:focus-within > a::after { color: var(--accent); }
.sub { position: absolute; top: 100%; left: -0.75rem; min-width: 190px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 0.4rem; box-shadow: 0 22px 44px -26px rgba(0,0,0,0.45); display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; z-index: 120; }
.sub::before { content: ""; position: absolute; top: -0.7rem; left: 0; right: 0; height: 0.7rem; }
.nav-item.has-sub:hover .sub, .nav-item.has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.nav-links .sub a { padding: 0.55rem 0.7rem; border-radius: 5px; font-size: 0.9rem; color: var(--ink-soft); white-space: nowrap; }
.nav-links .sub a:hover { background: var(--accent-soft); color: var(--accent-dk); text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.4rem; color: var(--ink); }
.nav-toggle svg { display: block; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.25rem;
    box-shadow: 0 24px 40px -28px rgba(0,0,0,0.4);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-item { display: block; }
  .nav-links > a:not(.btn), .nav-item > a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-item.has-sub > a::after { display: none; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; border: none; box-shadow: none; padding: 0 0 0 1rem; background: transparent; min-width: 0; }
  .sub::before { display: none; }
  .nav-links .sub a { padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-size: 0.98rem; }
  .nav-links .btn { margin-top: 1rem; justify-content: center; }
}

/* ---------- Sections ---------- */
section { padding-block: var(--pad-y); }
section + section { border-top: 1px solid var(--line); }
.alt { background: var(--paper-2); }
.sec-head { max-width: var(--readw); margin-bottom: clamp(2.5rem, 5vw, 3.6rem); }
.sec-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 1rem; }
.sec-head .eyebrow { margin-bottom: 1.2rem; }
.sec-head p { color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- Hero (home) ---------- */
.hero { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: var(--pad-y); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1.04; max-width: 17ch; margin-bottom: 1.6rem; }
.hero .lede { max-width: 55ch; margin-bottom: 2.3rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* Inflection curve motif */
.inflect { margin-top: clamp(3rem, 7vw, 5.5rem); width: 100%; height: auto; display: block; overflow: visible; }
.inflect path.curve { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.inflect path.base { fill: none; stroke: var(--line); stroke-width: 1; }
.inflect circle { fill: var(--accent); stroke: none; }
.inflect .curve { transition: stroke-dashoffset 0.1s linear; } /* dashoffset driven by scroll in main.js */

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding-top: clamp(2.75rem, 6vw, 4.5rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); line-height: 1.05; max-width: 20ch; margin-bottom: 1.3rem; }
.page-hero .lede { max-width: 60ch; }

/* ---------- Statement block ---------- */
.statement { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.012em; line-height: 1.12;
  font-size: clamp(1.8rem, 4vw, 2.9rem); color: var(--ink); max-width: 20ch; }
.statement em { color: var(--accent); font-style: italic; }

/* ---------- Audience cards ---------- */
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.75rem); }
.col { padding-top: 1.5rem; border-top: 1px solid var(--ink); }
.col .tag { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); display: block; margin-bottom: 0.9rem; }
.col h3 { font-size: 1.4rem; margin-bottom: 0.7rem; }
.col p { color: var(--ink-soft); font-size: 0.99rem; }
@media (max-width: 780px) { .cols3 { grid-template-columns: 1fr; gap: 0; } .col { padding-block: 1.7rem; border-top-color: var(--line); } .col:first-child { border-top-color: var(--ink); } }

/* ---------- Stat band (dark, count-up) ---------- */
.band-dark { background: var(--navy); color: var(--on-navy); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 0.5rem clamp(1rem, 2.5vw, 2rem); text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 12%; bottom: 12%; width: 1px; background: var(--navy-line); }
.stat .num { font-family: var(--font-serif); font-weight: 500; font-size: clamp(2.6rem, 5.5vw, 4rem); line-height: 1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.stat .lbl { margin-top: 0.9rem; color: var(--on-navy-soft); font-size: 0.92rem; line-height: 1.4; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 2.5rem 0; }
  .stat + .stat::before { display: none; }
  .stat:nth-child(even)::after { content: ""; position: absolute; left: 0; top: 12%; bottom: 12%; width: 1px; background: var(--navy-line); }
}

/* ---------- Approach pillars ---------- */
.approach-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.pillars { display: flex; flex-direction: column; }
.pillar { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.pillar:first-child { border-top: none; }
.pillar .dot { width: 9px; height: 9px; margin-top: 0.55rem; border-radius: 50%; background: var(--accent); }
.pillar h3 { font-family: var(--font-sans); font-size: 1.12rem; font-weight: 600; letter-spacing: -0.005em; margin-bottom: 0.3rem; }
.pillar p { color: var(--ink-soft); font-size: 0.97rem; }
@media (max-width: 820px) { .approach-grid { grid-template-columns: 1fr; } }

/* ---------- Engagements (services) ---------- */
.engagements { display: flex; flex-direction: column; gap: 0; }
.engagement { display: grid; grid-template-columns: 0.9fr 2fr; gap: clamp(1rem, 4vw, 3.5rem); padding: clamp(2rem, 4vw, 3rem) 0; border-top: 1px solid var(--line); }
.engagement:first-child { border-top: none; padding-top: 0; }
.engagement .who { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-dk); }
.engagement h3 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); margin: 0.5rem 0 0; }
.engagement .body p { color: var(--ink-soft); }
.engagement .note { font-size: 0.9rem; color: var(--ink-faint); margin-top: 0.9rem; }
@media (max-width: 720px) { .engagement { grid-template-columns: 1fr; gap: 1rem; } }

/* ---------- Teaser cards ---------- */
.teaser-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.25rem, 3vw, 2rem); }
.teaser { display: block; padding: clamp(1.6rem, 3vw, 2.2rem); border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: inherit; transition: border-color 0.2s ease, transform 0.15s ease, background 0.2s ease; }
.teaser:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); background: var(--paper-2); }
.teaser .k { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.teaser h3 { font-size: 1.35rem; margin: 0.7rem 0 0.55rem; }
.teaser p { color: var(--ink-soft); font-size: 0.97rem; }
.teaser .go { margin-top: 1rem; color: var(--accent-dk); font-weight: 500; font-size: 0.95rem; display: inline-flex; gap: 0.4rem; }
@media (max-width: 720px) { .teaser-grid { grid-template-columns: 1fr; } }

/* ---------- Writing / list rows ---------- */
.list { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; align-items: baseline; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.row .r-main h3 { font-size: 1.3rem; margin-bottom: 0.35rem; }
.row .r-main p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
.row .r-meta { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }
@media (max-width: 620px) { .row { grid-template-columns: 1fr; } }
a.row { color: inherit; padding-inline: 0.7rem; margin-inline: -0.7rem; border-radius: 6px; transition: background 0.15s ease; }
a.row:hover { text-decoration: none; background: var(--accent-soft); }
.r-main h3 { transition: color 0.15s ease; }
a.row:hover .r-main h3 { color: var(--accent-dk); }
a.row .r-meta { white-space: nowrap; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.about-body p { color: var(--ink-soft); }
.about-body p + p { margin-top: 1.1rem; }
.photo-frame { border: 1px solid var(--line); background: #fff; padding: 0.9rem 0.9rem 0.7rem; border-radius: 4px; box-shadow: 0 30px 60px -40px rgba(0,0,0,0.5); }
.photo-frame img { border-radius: 2px; width: 100%; height: auto; }
.photo-frame .ph { aspect-ratio: 4/5; background: linear-gradient(160deg, var(--paper-2), #d3d6d2); border-radius: 2px; display: grid; place-items: center; color: var(--ink-faint); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; text-align: center; padding: 1rem; }
.photo-frame .cap { display: flex; justify-content: space-between; align-items: center; margin-top: 0.7rem; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.photo-frame .cap .d { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } .photo-frame { max-width: 360px; } }

/* ---------- Career timeline ---------- */
.timeline { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; }
.timeline::before { content: ""; position: absolute; left: 6px; right: 6px; top: 6px; height: 2px; background: linear-gradient(90deg, var(--line) 0%, var(--accent) 92%); }
.tl-item { position: relative; padding-top: 1.6rem; }
.tl-dot { position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); box-sizing: border-box; }
.tl-item:last-child .tl-dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tl-when { display: block; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-dk); line-height: 1.4; }
.tl-what { display: block; margin-top: 0.45rem; font-size: 1rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; line-height: 1.25; }
@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { left: 6px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; background: linear-gradient(180deg, var(--line) 0%, var(--accent) 92%); }
  .tl-item { padding: 0.9rem 0 0.9rem 1.9rem; }
  .tl-dot { top: 1.15rem; }
}

/* ---------- Product / coming soon ---------- */
.pill { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-dk); border: 1px solid var(--accent); border-radius: 999px; padding: 0.35rem 0.85rem; background: var(--accent-soft); }

/* ---------- Stealth product page ---------- */
.stealth { min-height: 68vh; display: flex; align-items: center; }
.stealth .wrap { max-width: 780px; }
.stealth .eyebrow { color: #8FA4FF; }
.stealth .eyebrow::before { background: #8FA4FF; opacity: 0.8; }
.stealth h1 { color: var(--on-navy); font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1.05; margin-bottom: 1.4rem; }
.stealth h1 em { color: #A9BAFF; font-style: italic; }
.stealth .lede { color: var(--on-navy-soft); max-width: 54ch; }
.stealth .lede a { color: #B7C5FF; text-decoration: underline; text-underline-offset: 3px; }
.stealth .lede a:hover { color: #fff; }
.stealth .note { color: rgba(244, 242, 234, 0.5); font-size: 0.92rem; max-width: 48ch; margin-top: 2rem; }
.pulse-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: #8FA4FF; animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(143, 164, 255, 0.5); } 70% { box-shadow: 0 0 0 16px rgba(143, 164, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(143, 164, 255, 0); } }
@media (prefers-reduced-motion: reduce) { .pulse-dot { animation: none; } }

/* ---------- Status chip (e.g. at capacity) ---------- */
.status-chip { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.82rem; line-height: 1.3; color: var(--ink-soft); border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 0.45rem 0.95rem; }
.status-chip .sd { width: 8px; height: 8px; border-radius: 50%; background: #C98A2B; flex: none; box-shadow: 0 0 0 3px rgba(201, 138, 43, 0.14); }
.status-chip.open .sd { background: #2AA25C; box-shadow: 0 0 0 3px rgba(42, 162, 92, 0.16); }

/* ---------- Contact / CTA ---------- */
.cta-final h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: 1.2rem; }
.maillink { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.35rem, 3vw, 2.1rem); color: var(--accent); border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.maillink:hover { border-color: var(--accent); text-decoration: none; }

/* ---------- Footer (light, minimal) ---------- */
footer.site { border-top: 1px solid var(--line); background: var(--paper); color: var(--ink-soft); padding-block: clamp(3rem, 6vw, 4.5rem); }
.foot-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.foot-brand { font-family: var(--font-serif); font-weight: 500; font-size: 1.18rem; color: var(--ink); }
.foot-brand p { color: var(--ink-soft); font-size: 0.94rem; margin-top: 0.9rem; max-width: 34ch; }
.foot-col h4 { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 500; margin-bottom: 1rem; }
.foot-col a { display: block; color: var(--ink-soft); font-size: 0.95rem; padding: 0.32rem 0; }
.foot-col a:hover { color: var(--accent); text-decoration: none; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.75rem; color: var(--ink-faint); font-size: 0.85rem; }
.foot-bottom a { color: var(--ink-soft); }
@media (max-width: 720px) { .foot-top { grid-template-columns: 1fr; gap: 2.25rem; } }

/* ---------- Case study + TL;DR hover popover ---------- */
.case { border-top: 1px solid var(--line); padding-top: clamp(1.8rem, 3vw, 2.6rem); }
.case:first-of-type { border-top: none; padding-top: 0; }
.case .k { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-dk); }
.case-title { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0.6rem 0 1rem; }
.case-lead { color: var(--ink-soft); max-width: 62ch; }

.tldr { position: relative; display: inline-flex; align-items: flex-start; gap: 0.7rem; max-width: 66ch; margin-top: 1.2rem; cursor: help; }
.tldr .tldr-label { flex: none; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-dk); border: 1px solid var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 0.22rem 0.55rem; margin-top: 0.15rem; }
.tldr .tldr-text { color: var(--ink); border-bottom: 1px dotted var(--ink-faint); }
.tldr:hover .tldr-text, .tldr:focus-visible .tldr-text, .tldr:focus-within .tldr-text { border-bottom-color: var(--accent); }
.tldr:focus { outline: none; }

.pop { position: absolute; left: 0; top: calc(100% + 0.7rem); width: min(460px, 88vw); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 1.25rem 1.35rem; box-shadow: 0 34px 64px -30px rgba(0,0,0,0.55); z-index: 80; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.pop::before { content: ""; position: absolute; top: -0.7rem; left: 0; right: 0; height: 0.7rem; }
.tldr:hover .pop, .tldr:focus-within .pop, .tldr.open .pop { opacity: 1; visibility: visible; transform: none; }
.pop .cai + .cai { margin-top: 0.9rem; }
.pop .cai h4 { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-dk); margin-bottom: 0.3rem; }
.pop .cai p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; line-height: 1.5; }
.pop .pop-metrics { display: flex; flex-wrap: wrap; gap: 0.4rem 0.55rem; margin-top: 1rem; padding-top: 0.95rem; border-top: 1px solid var(--line); }
.pop .pop-metrics span { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-soft); background: var(--paper-2); border-radius: 4px; padding: 0.28rem 0.5rem; }
@media (max-width: 560px) { .pop { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; top: auto; width: auto; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Utilities ---------- */
.mt-cta { margin-top: clamp(2.5rem, 5vw, 4rem); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff; padding: 0.7rem 1rem; z-index: 200; border-radius: 0 0 4px 0; }
.skip-link:focus { left: 0; }
