/* ============================================================
   Forestack — Modern Practice / Tech-Editorial
   Reference frame: Palantir AIP × Cohere × Claude product.
   Sans-led displays. Serif italic as a guest. Dense, intentional, technical.
   ============================================================ */

:root {
  /* Bone */
  --bone:           #F0EDE5;
  --bone-2:         #EAE6DB;
  --bone-3:         #DFDACB;
  --bone-line:      rgba(20, 18, 28, 0.08);
  --bone-line-2:    rgba(20, 18, 28, 0.16);

  /* Ink */
  --ink:            #0E0C14;
  --ink-2:          #14121C;
  --ink-3:          #1F1C28;
  --ink-line:       rgba(240, 237, 229, 0.10);
  --ink-line-2:     rgba(240, 237, 229, 0.18);

  /* Text on bone */
  --t1:             #15131C;
  --t2:             #4F4B59;
  --t3:             #87838E;
  --t4:             rgba(20, 18, 28, 0.36);

  /* Text on ink */
  --d1:             #F0EDE5;
  --d2:             #B8B5C0;
  --d3:             #7A7682;
  --d4:             rgba(240, 237, 229, 0.34);

  /* Accents */
  --accent:         #2547D6;
  --accent-bright:  #6B8AF0;
  --accent-soft:    rgba(37, 71, 214, 0.10);
  --copper:         #B8835A;
  --live:           #5BB87C;

  /* Layout */
  --max:            1280px;
  --max-narrow:     1080px;
  --gutter:         28px;

  /* Motion */
  --expo:           cubic-bezier(0.16, 1, 0.3, 1);
  --quart:          cubic-bezier(0.25, 1, 0.5, 1);
  --expoIO:         cubic-bezier(0.87, 0, 0.13, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--accent); color: #fff; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--bone);
  color: var(--t1);
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  font-feature-settings: 'ss01';
}

main, footer, nav { position: relative; z-index: 1; }

/* ===== TYPE PRIMITIVES ===== */
em {
  font-style: normal;
  font-weight: inherit;
  color: var(--accent);
}

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

p { color: var(--t2); }

a { color: inherit; text-decoration: none; transition: color 0.3s var(--expo), opacity 0.3s var(--expo); }

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

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

.section {
  padding: clamp(80px, 11vw, 140px) 0;
  position: relative;
}

@media (max-width: 880px) {
  .section { padding: 72px 0; }
}

/* ===== KICKER ===== */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--t3);
  text-transform: uppercase;
  margin-bottom: 28px;
}

.kicker .rom {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-feature-settings: 'tnum';
}

.kicker .bar {
  width: 28px;
  height: 1px;
  background: var(--bone-line-2);
  display: inline-block;
}

.kicker.dark { color: var(--d3); }
.kicker.dark .rom { color: var(--accent-bright); }
.kicker.dark .bar { background: var(--ink-line-2); }

/* ===== DISPLAY (sans-led, tech-confident) ===== */
.display {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(36px, 5.2vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.034em;
  color: var(--t1);
  max-width: 22ch;
}

.display em,
.display .accent {
  color: var(--accent);
  font-weight: 600;
  font-style: normal;
  letter-spacing: -0.034em;
}

.section-head {
  margin-bottom: clamp(48px, 6vw, 80px);
  max-width: 1100px;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 100;
  pointer-events: none;
  transition: transform 0.4s var(--expo);
}

.nav-inner {
  pointer-events: auto;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 12px 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(240, 237, 229, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid var(--bone-line);
  border-radius: 999px;
  transition: background 0.4s var(--expo), border-color 0.4s var(--expo);
}

.nav.scrolled .nav-inner {
  background: rgba(240, 237, 229, 0.92);
  box-shadow: 0 1px 0 rgba(20, 18, 28, 0.04), 0 12px 40px -20px rgba(20, 18, 28, 0.18);
}

.nav.on-dark .nav-inner {
  background: rgba(14, 12, 20, 0.7);
  border-color: var(--ink-line-2);
  color: var(--d1);
}
.nav.on-dark .nav-links { color: var(--d2); }
.nav.on-dark .nav-links a:hover { color: var(--d1); }
.nav.on-dark .nav-cta { background: var(--d1); color: var(--ink); }
.nav.on-dark .nav-logo img { filter: brightness(0) invert(1); }

.nav-logo { display: inline-flex; align-items: center; height: 22px; }
.nav-logo img { height: 20px; width: auto; transition: filter 0.4s var(--expo), opacity 0.4s var(--expo); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  font-size: 13px;
  color: var(--t2);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.nav-links a:hover { color: var(--t1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--bone);
  padding: 8px 16px 8px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 0.3s var(--expo), background 0.3s var(--expo);
}
.nav-cta:hover { transform: translateY(-1px); background: var(--accent); }
.nav-cta .nav-arrow { display: inline-block; transition: transform 0.3s var(--expo); }
.nav-cta:hover .nav-arrow { transform: translateX(3px); }

@media (max-width: 760px) { .nav-links { display: none; } }

/* ===== BUTTONS / LINKS ===== */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px 14px 26px;
  background: var(--ink);
  color: var(--bone);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform 0.4s var(--expo), background 0.4s var(--expo), box-shadow 0.4s var(--expo);
}
.btn-pill:hover {
  transform: translateY(-2px);
  background: var(--accent);
  box-shadow: 0 18px 40px -18px rgba(37, 71, 214, 0.6);
}
.btn-pill .arrow {
  display: inline-block;
  transition: transform 0.4s var(--expo);
  font-size: 16px;
  line-height: 1;
}
.btn-pill:hover .arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--t1);
  letter-spacing: -0.005em;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s var(--expo);
}
.link-arrow::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: left center;
  transform: scaleX(0.4);
  opacity: 0.45;
  transition: transform 0.5s var(--expo), opacity 0.3s var(--expo);
}
.link-arrow:hover::after { transform: scaleX(1); opacity: 1; }
.link-arrow .arrow { display: inline-block; transition: transform 0.4s var(--expo); }
.link-arrow:hover .arrow { transform: translateX(4px); }

.link-arrow.on-dark { color: var(--d1); }
.link-arrow.quiet {
  font-size: 13px;
  color: var(--t2);
  font-weight: 500;
}
.link-arrow.quiet:hover { color: var(--t1); }

/* ===== HERO ===== */
.hero {
  padding: clamp(140px, 18vh, 200px) 0 clamp(64px, 8vw, 100px);
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 600px at 90% 0%, rgba(37, 71, 214, 0.07), transparent 60%),
    radial-gradient(ellipse 800px 600px at 0% 100%, rgba(184, 131, 90, 0.05), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Soft-warp interactive grid — canvas-rendered, follows cursor on desktop only.
   Lines bend gently around the pointer like a 2D grid pressed up from below. */
.hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 25%, transparent 95%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 25%, transparent 95%);
  opacity: 0;
  transition: opacity 0.6s var(--expo);
}
.hero-grid.ready { opacity: 1; }

/* No interactivity on touch devices — the canvas is hidden entirely.
   (matches the user spec: desktop-only feature.) */
@media (hover: none), (pointer: coarse) {
  .hero-grid { display: none; }
}

.hero-inner { width: 100%; position: relative; z-index: 2; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--t3);
  text-transform: uppercase;
  margin-bottom: clamp(28px, 4vw, 44px);
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--bone-line-2);
  border-radius: 999px;
  background: rgba(240, 237, 229, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.dot.live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  display: inline-block;
  position: relative;
  box-shadow: 0 0 0 0 rgba(91, 184, 124, 0.6);
  animation: livePulse 2.4s var(--expo) infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(91, 184, 124, 0.45); }
  70%  { box-shadow: 0 0 0 8px rgba(91, 184, 124, 0); }
  100% { box-shadow: 0 0 0 0 rgba(91, 184, 124, 0); }
}

/* SIGNATURE — bold sans, tight, with one italic accent */
.hero-h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(48px, 9.4vw, 156px);
  line-height: 1.04;
  letter-spacing: -0.044em;
  color: var(--t1);
  margin: 0;
  max-width: 18ch;
}

.hero-h1 .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}
.hero-h1 .w {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 1.1s var(--expo), opacity 1.1s var(--expo);
  transition-delay: var(--rd, 0ms);
}
.hero-h1 .line:nth-child(1) .w { --rd: 200ms; }
.hero-h1 .line:nth-child(2) .w { --rd: 320ms; }
.hero-h1 .line:nth-child(3) .w { --rd: 440ms; }

body.loaded .hero-h1 .w {
  transform: translateY(0);
  opacity: 1;
}

.hero-h1 em,
.hero-h1 .accent {
  font-family: 'Space Grotesk', sans-serif;
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.044em;
}

.hero-foot {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  max-width: 1180px;
}

.hero-sub {
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.5;
  color: var(--t2);
  max-width: 460px;
  letter-spacing: -0.005em;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.hero-meta .meta-side {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--t3);
  text-transform: uppercase;
}
.hero-meta .meta-side .sep { color: var(--t4); }

@media (max-width: 880px) { .hero-foot { grid-template-columns: 1fr; gap: 28px; } }

/* ===== TRUST STRIP ===== */
.trust {
  padding: 0;
  border-top: 1px solid var(--bone-line);
  border-bottom: 1px solid var(--bone-line);
}

.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
}

.trust-marks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 4.5vw, 64px);
  flex-wrap: wrap;
}

.trust-marks img {
  height: 28px;
  width: auto;
  opacity: 1;
  filter: brightness(0);
}

.trust-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t1);
}

/* ============================================================
   MANIFESTO — single-sentence statement of work
   ------------------------------------------------------------
   Sits between the Trust strip and the Practice section.
   One monumental left-aligned sentence on the bone canvas.
   Signature moment: three accent-blue underlines paint in
   sequentially under "finance / marketing / sales" — echoing
   the intersection concept and rewarding the eye for landing
   on the phrase that defines the practice.
   ============================================================ */
.manifesto {
  padding: clamp(112px, 18vh, 220px) 0;
  position: relative;
}

.manifesto > .container { position: relative; }

/* Small chapter mark — anchors the asymmetric composition.
   Sits on its own row, right-aligned, with breathing room above
   the statement. Fades in AFTER the underlines complete, like a
   quiet footnote the eye finds after parsing the statement. */
.manifesto-head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: clamp(28px, 4vh, 56px);
}

.manifesto-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--t4);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.8s var(--expo), transform 0.8s var(--expo);
}
.manifesto.in .manifesto-mark {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 900ms; /* lands as the statement settles into place */
}
.manifesto-mark .mm-rom { color: var(--accent); }
.manifesto-mark .mm-bar {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--bone-line-2);
}

.manifesto-h2 {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.024em;
  color: var(--t1);
  margin: 0;
  max-width: 1180px;            /* tuned so the sentence balances onto 2–3 lines */
  text-wrap: balance;
  -webkit-font-smoothing: antialiased;

  /* Reveal — slide up + fade, gated by .manifesto.in */
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1.2s var(--expo),
    transform 1.2s var(--expo);
  will-change: opacity, transform;
}

.manifesto.in .manifesto-h2 {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile tuning */
@media (max-width: 720px) {
  .manifesto { padding: 80px 0; }
  .manifesto-h2 {
    font-size: clamp(28px, 6.4vw, 40px);
    letter-spacing: -0.02em;
    max-width: 100%;
  }
  .manifesto-head { margin-bottom: 32px; }
  .manifesto-mark { font-size: 10px; gap: 8px; }
  .manifesto-mark .mm-bar { width: 16px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .manifesto-h2 {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ===== I — PRACTICE / BENTO ===== */
.bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--bone-line-2);
  border: 1px solid var(--bone-line-2);
}

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

.tile {
  background: var(--bone);
  display: grid;
  grid-template-rows: auto 1fr;
  transition: background 0.4s var(--expo);
  position: relative;
  overflow: hidden;
}
.tile:hover { background: #F4F1E9; }

.tile-vis {
  padding: 28px 28px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile-vis svg {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
}
.tile-vis.wide {
  padding: 24px 24px 0;
}
.tile-vis.wide svg {
  max-width: none;
}

.tile-body {
  padding: 24px 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tile-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  line-height: 1;
  font-feature-settings: 'tnum';
}

.tile-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.024em;
  color: var(--t1);
}

.tile-body p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--t2);
  max-width: 42ch;
}

.tile-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.tile-tags li {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--t2);
  padding: 4px 10px;
  border: 1px solid var(--bone-line-2);
  border-radius: 999px;
  background: rgba(20, 18, 28, 0.02);
  transition: all 0.3s var(--expo);
}
.tile-tags li:hover {
  background: var(--accent-soft);
  border-color: rgba(37, 71, 214, 0.3);
  color: var(--accent);
}

.practice-foot {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--bone-line);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.pf-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--t3);
  text-transform: uppercase;
}
.pf-row {
  display: inline-flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  flex-wrap: wrap;
}
.pf-mark {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  color: var(--t2);
  font-weight: 500;
  letter-spacing: -0.005em;
}

/* ===== II — STATEMENT (DARK) ===== */
.statement {
  background: var(--ink);
  color: var(--d1);
  padding: clamp(96px, 14vw, 160px) 0;
  position: relative;
  overflow: hidden;
}

.statement::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 1100px 600px at 80% 20%, rgba(91, 122, 233, 0.14), transparent 60%),
    radial-gradient(ellipse 700px 500px at 0% 100%, rgba(184, 131, 90, 0.06), transparent 60%);
  pointer-events: none;
}

.statement > .container { position: relative; z-index: 1; }

.big-quote {
  margin: 0;
  margin-bottom: clamp(56px, 8vw, 96px);
  max-width: 1200px;
}

.big-quote p {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.038em;
  color: var(--d1);
}
.big-quote em,
.big-quote .accent {
  color: var(--accent-bright);
  font-family: 'Space Grotesk', sans-serif;
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.038em;
}

.statement-foot {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--ink-line-2);
}

@media (max-width: 880px) {
  .statement-foot { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
}

.stat-line {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-line .sv {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1;
  letter-spacing: -0.034em;
  color: var(--d1);
}
.stat-line .su {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.42em;
  font-weight: 500;
  color: var(--d3);
  margin-left: 4px;
  letter-spacing: 0;
  vertical-align: 0.5em;
}
.stat-line .sl {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  line-height: 1.4;
  color: var(--d2);
  letter-spacing: -0.005em;
  max-width: 24ch;
}

/* ============================================================
   TESTIMONIAL — dedicated dark-drop section, single anchor quote.
   The accent bar above the quote acts as a quiet typographic
   anchor in place of a bold section title.
   ============================================================ */
.testimonial {
  margin: 0;
  max-width: 1180px;
}

.testimonial::before {
  content: '';
  display: block;
  width: 56px;
  height: 2px;
  background: var(--accent-bright);
  margin: 0 0 clamp(32px, 4vw, 48px);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1s var(--expo);
}
.testimonial.in::before { transform: scaleX(1); }

.testimonial-quote {
  margin: 0 0 clamp(28px, 3.6vw, 44px);
}

.testimonial-quote p {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(26px, 3.2vw, 48px);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.018em;
  color: var(--d1);
  margin: 0;
  text-wrap: balance;
}

.testimonial-attr {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-family: 'Space Grotesk', sans-serif;
}

/* Force any logo color to crisp white, regardless of the source PNG. */
.testimonial-logo {
  height: 22px;
  width: auto;
  flex-shrink: 0;
  opacity: 0.92;
  filter: brightness(0) invert(1);
}

.testimonial-divider {
  width: 1px;
  height: 28px;
  background: var(--ink-line-2);
  flex-shrink: 0;
}

.testimonial-id {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.2;
}

.testimonial-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--d1);
  letter-spacing: -0.008em;
}

.testimonial-role {
  font-size: 12px;
  font-weight: 500;
  color: var(--d3);
  letter-spacing: 0.01em;
}

@media (max-width: 720px) {
  .testimonial-quote p { font-size: clamp(20px, 5vw, 26px); }
  .testimonial::before { width: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .testimonial::before {
    transform: scaleX(1) !important;
    transition: none !important;
  }
}

/* ===== III — WORK ===== */
.cases {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 7vw, 96px);
}

.case {
  display: grid;
  gap: 28px;
}

.case-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--bone-line-2);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--t3);
  text-transform: uppercase;
}
.cm-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-feature-settings: 'tnum';
}
.cm-sector { color: var(--t2); }
.cm-year { margin-left: auto; color: var(--t3); }

.case-body {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.case.flip .case-body { grid-template-columns: 1.05fr 0.95fr; }
.case.flip .case-img { order: -1; }

.case-copy h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.06;
  letter-spacing: -0.028em;
  color: var(--t1);
  max-width: 18ch;
  margin-bottom: 18px;
}

.case-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--t2);
  max-width: 50ch;
  margin-bottom: 28px;
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--bone-line);
}
.case-stats > div { display: flex; flex-direction: column; gap: 4px; }
.case-stats dt {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--t3);
  text-transform: uppercase;
  order: 2;
}
.case-stats dd {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1;
  letter-spacing: -0.026em;
  color: var(--t1);
  order: 1;
}
.case-stats dd .x {
  font-weight: 500;
  font-size: 0.7em;
  color: var(--accent);
  margin-left: 1px;
}

.case-img {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bone-2);
  aspect-ratio: 16 / 9;
  border: 1px solid var(--bone-line);
  transition: transform 0.7s var(--expo), box-shadow 0.7s var(--expo);
}
.case:hover .case-img {
  transform: translateY(-3px);
  box-shadow: 0 30px 60px -30px rgba(20, 18, 28, 0.3);
}
.case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 1.1s var(--expo);
}
.case:first-of-type .case-img img { object-position: right top; }
.case:hover .case-img img { transform: scale(1.02); }

@media (max-width: 880px) {
  .case-body, .case.flip .case-body { grid-template-columns: 1fr; }
  .case.flip .case-img { order: 0; }
}

/* ===== IV — ENGAGEMENT MODEL ===== */
.engage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.4vw, 32px);
}

.engage-card {
  background: var(--bone);
  border: 1px solid var(--bone-line-2);
  border-radius: 6px;
  padding: clamp(28px, 3.2vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 26px;
  transition: transform 0.6s var(--expo), box-shadow 0.6s var(--expo), border-color 0.4s var(--expo);
}
.engage-card:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 18, 28, 0.22);
  box-shadow: 0 30px 60px -30px rgba(20, 18, 28, 0.18);
}

.engage-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--bone-line);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.ec-num { color: var(--accent); font-feature-settings: 'tnum'; }
.ec-label { color: var(--t1); }

.engage-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;          /* allow .ep-meta to drop to its own line on narrow viewports */
  gap: 10px;
}
.ep-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1;
  letter-spacing: -0.034em;
  color: var(--t1);
  font-feature-settings: 'tnum';
}
.ep-unit {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--t2);
  white-space: nowrap;      /* "per phase" / "/ month" stay intact */
}
.ep-meta {
  margin-left: auto;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--t3);
  white-space: nowrap;      /* "FIXED FEE" / "FROM" stay intact */
}

.engage-lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
  color: var(--t1);
  max-width: 40ch;
}

.engage-list .el-label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 14px;
}
.engage-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.engage-list li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--t2);
  padding-left: 18px;
  position: relative;
}
.engage-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

.engage-meta {
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--bone-line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.engage-meta > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: baseline;
}
.engage-meta dt {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--t3);
}
.engage-meta dd {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--t1);
  font-weight: 500;
}

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

/* ===== V — FOUNDER ===== */
.founder-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

@media (max-width: 880px) { .founder-row { grid-template-columns: 1fr; gap: 40px; } }

.founder-portrait { position: relative; }
.founder-portrait img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  filter: grayscale(0.3) contrast(1.04);
  display: block;
  border: 1px solid var(--bone-line);
}
.founder-portrait figcaption {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--bone-line-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fc-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.012em;
  color: var(--t1);
}
.fc-role {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--t3);
  text-transform: uppercase;
}

.founder-copy { padding-top: 4px; }

.founder-copy .fp-lede {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.036em;
  color: var(--t1);
  margin-bottom: 32px;
  max-width: 14ch;
  text-wrap: balance;
}
.founder-copy .fp-lede em,
.founder-copy .fp-lede .accent {
  color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.036em;
}

.founder-sign {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--bone-line-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.founder-sign .link-arrow.quiet { margin-top: 14px; align-self: flex-start; }

.founder-copy p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--t2);
  margin-bottom: 16px;
  max-width: 56ch;
}


/* ===== VI — CTA (DARK) ===== */
.cta {
  background: var(--ink);
  color: var(--d1);
  padding: clamp(96px, 14vw, 160px) 0 clamp(96px, 12vw, 140px);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 1100px 600px at 50% -10%, rgba(91, 122, 233, 0.20), transparent 60%),
    radial-gradient(ellipse 700px 500px at 50% 110%, rgba(184, 131, 90, 0.06), transparent 60%);
  pointer-events: none;
}
.cta > .container { position: relative; z-index: 1; text-align: center; }

.cta .kicker.dark {
  display: inline-flex;
  margin-bottom: 32px;
}

.cta-h {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(44px, 7.2vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.038em;
  color: var(--d1);
  margin: 0 auto 28px;
  max-width: 18ch;
}
.cta-h em,
.cta-h .accent {
  color: var(--accent-bright);
  font-family: 'Space Grotesk', sans-serif;
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.038em;
}

.cta-sub {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.55;
  color: var(--d2);
  max-width: 580px;
  margin: 0 auto 36px;
  letter-spacing: -0.005em;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.cta-actions .btn-pill {
  background: var(--d1);
  color: var(--ink);
}
.cta-actions .btn-pill:hover {
  background: var(--accent-bright);
  color: var(--d1);
  box-shadow: 0 18px 40px -18px rgba(91, 122, 233, 0.7);
}

/* Secondary CTA — ghost / outlined pill on dark */
.cta-actions .btn-pill.ghost {
  background: transparent;
  color: var(--d1);
  border: 1px solid rgba(240, 237, 229, 0.28);
}
.cta-actions .btn-pill.ghost:hover {
  background: rgba(240, 237, 229, 0.06);
  border-color: var(--accent-bright);
  color: var(--d1);
  box-shadow: 0 18px 40px -18px rgba(91, 122, 233, 0.35);
}

.cta-models {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  color: var(--d3);
  letter-spacing: -0.005em;
  padding-top: 28px;
  border-top: 1px solid var(--ink-line-2);
  max-width: 720px;
  margin: 0 auto;
}
.cta-models strong { color: var(--d1); font-weight: 500; }
.cta-models .sep { color: var(--d4); }

@media (max-width: 760px) {
  .cta-actions { flex-direction: column; gap: 16px; }
}

/* ===== FOOTER ===== */
footer {
  background: var(--ink);
  color: var(--d2);
  padding: 64px 0 32px;
  border-top: 1px solid var(--ink-line);
}

.foot-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: clamp(40px, 6vw, 96px);
  padding-bottom: 48px;
  border-bottom: 1px solid var(--ink-line);
}

@media (max-width: 880px) { .foot-top { grid-template-columns: 1fr; gap: 40px; } }

.foot-brand .foot-logo img { height: 24px; width: auto; opacity: 0.95; margin-bottom: 22px; filter: brightness(0) invert(1); }

.foot-statement {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: var(--d2);
  max-width: 32ch;
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

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

.foot-col h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--d3);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.foot-col a {
  font-size: 13px;
  color: var(--d2);
  letter-spacing: -0.005em;
}
.foot-col a:hover { color: var(--d1); }

.foot-bottom {
  margin-top: 24px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  color: var(--d3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ===== REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--expo), transform 0.9s var(--expo);
  will-change: transform, opacity;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== SVG DIAGRAM ASSEMBLY ===== */
/* When a .tile.reveal element gets .in, inner SVG groups marked .svg-anim
   fade in with a staggered choreography. Lines marked .svg-line stroke-draw. */
.tile .svg-anim {
  opacity: 0;
  transition: opacity 0.7s var(--expo);
}
.tile.in .svg-anim { opacity: 1; }

.tile.in .anim-d1 { transition-delay: 100ms; }
.tile.in .anim-d2 { transition-delay: 220ms; }
.tile.in .anim-d3 { transition-delay: 360ms; }
.tile.in .anim-d4 { transition-delay: 500ms; }
.tile.in .anim-d5 { transition-delay: 660ms; }

/* Stroke-draw for solid connecting lines (paths use the longest length we see ~320) */
.tile .svg-line {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  transition: stroke-dashoffset 0.9s var(--expo);
}
.tile.in .svg-line { stroke-dashoffset: 0; }
.tile.in .svg-line.anim-d3 { transition-delay: 360ms; }
.tile.in .svg-line.anim-d4 { transition-delay: 500ms; }

/* Subtle pulse for live status dots inside diagrams */
@keyframes svgDotPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}
.tile.in .svg-pulse,
.practice-diagram.active .svg-pulse {
  animation: svgDotPulse 2.4s var(--expo) 800ms infinite;
}

/* ===== PRACTICE — pinned canvas + scrolled stories ===== */
.practice-pinned {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
  margin-top: clamp(48px, 6vw, 80px);
  position: relative;
}

.practice-canvas-wrap {
  position: sticky;
  top: 100px;
  height: calc(100vh - 200px);
  min-height: 460px;
  max-height: 720px;
}

.practice-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.practice-diagram {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.7s var(--expo), transform 0.7s var(--expo);
  pointer-events: none;
}

.practice-diagram.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.practice-diagram svg {
  width: 100%;
  height: auto;
  max-height: 100%;
  display: block;
}

/* ===== PIPELINE HEALTH — vertical pipeline status, all checks passing ===== */
.practice-diagram .pipeline-health {
  width: 100%;
  height: 100%;
  background: var(--bone);
  border: 1px solid var(--bone-line-2);
  border-radius: 8px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 14px 36px -20px rgba(20, 18, 28, 0.14),
    0 2px 8px -4px rgba(20, 18, 28, 0.04);
  padding: clamp(36px, 6vh, 64px) clamp(36px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.2vh, 22px);
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.3;
  color: var(--t1);
  position: relative;
  overflow: hidden;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

/* Background grid — extends across the full card and fades toward the edges */
.practice-diagram .pipeline-health::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(20, 18, 28, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 18, 28, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: 0 0;
  -webkit-mask-image: radial-gradient(ellipse 78% 70% at 50% 50%, #000 18%, transparent 92%);
  mask-image: radial-gradient(ellipse 78% 70% at 50% 50%, #000 18%, transparent 92%);
  pointer-events: none;
  z-index: 0;
}

/* Ensure all content sits above the grid backdrop */
.practice-diagram .pipeline-health > * {
  position: relative;
  z-index: 1;
}

/* --- Header --- */
.ph-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 4px;
}

.ph-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  background: rgba(91, 184, 124, 0.12);
  color: #2F7044;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 4px 10px 4px 9px;
  border-radius: 999px;
}

.ph-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5BB87C;
  box-shadow: 0 0 0 0 rgba(91, 184, 124, 0.6);
  animation: livePulse 2.4s var(--expo) infinite;
}

.ph-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: #15131C;
  line-height: 1.15;
}

.ph-summary {
  font-size: 12px;
  color: #87838E;
  font-feature-settings: 'tnum';
}

.ph-summary-num {
  color: #15131C;
  font-weight: 600;
}

/* --- Pipeline stages --- */
.ph-pipeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

/* Subtle connector line behind icons (suggests data flow between stages) */
.ph-pipeline::before {
  content: '';
  position: absolute;
  left: calc(14px + 16px - 0.75px); /* aligns with icon centers */
  top: 32px;
  bottom: 32px;
  width: 1.5px;
  background:
    linear-gradient(to bottom,
      transparent,
      var(--bone-line-2) 6%,
      var(--bone-line-2) 94%,
      transparent
    );
  z-index: 0;
}

.ph-stage {
  display: grid;
  grid-template-columns: 32px 1fr auto 22px;
  gap: 14px;
  align-items: center;
  background: #FBFAF6;
  border: 1px solid var(--bone-line);
  border-radius: 6px;
  padding: 11px 14px;
  position: relative;
  z-index: 1;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 1px 2px rgba(20, 18, 28, 0.03);
}

.ph-stage-icon {
  width: 32px;
  height: 32px;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ph-stage-icon svg { width: 16px; height: 16px; }

.ph-stage-icon-hero {
  background: var(--accent);
  color: var(--bone);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.25) inset,
    0 4px 10px -4px rgba(37, 71, 214, 0.4);
}

.ph-stage-body {
  min-width: 0;
}

.ph-stage-name {
  font-size: 13px;
  font-weight: 600;
  color: #15131C;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.ph-stage-meta {
  font-size: 10px;
  color: #87838E;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-feature-settings: 'tnum';
}

.ph-stage-count {
  text-align: right;
  font-feature-settings: 'tnum';
  white-space: nowrap;
}

.ph-count-num {
  font-size: 15px;
  font-weight: 600;
  color: #15131C;
  letter-spacing: -0.014em;
}

.ph-count-unit {
  font-size: 0.7em;
  font-weight: 500;
  color: #87838E;
  margin-left: 1px;
}

.ph-count-label {
  display: block;
  font-size: 9px;
  color: #87838E;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-top: 1px;
}

.ph-stage-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(91, 184, 124, 0.16);
  color: #2F7044;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ph-stage-check svg { width: 12px; height: 12px; }

/* Final "data quality" stage gets a tinted border to draw the eye as the outcome */
.ph-stage-hero {
  background: linear-gradient(180deg, var(--accent-soft), rgba(37, 71, 214, 0.02));
  border-color: rgba(37, 71, 214, 0.22);
}
.ph-stage-hero .ph-count-num { color: var(--accent); }

/* --- Recent runs strip --- */
.ph-runs {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 6px;
}

.ph-runs-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #87838E;
  white-space: nowrap;
}

.ph-runs-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.ph-run {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(91, 184, 124, 0.55);
}

.ph-run-current {
  background: #5BB87C;
  box-shadow: 0 0 0 0 rgba(91, 184, 124, 0.6);
  animation: livePulse 2.4s var(--expo) infinite;
}

.ph-runs-meta {
  font-size: 10px;
  color: #87838E;
  font-feature-settings: 'tnum';
  white-space: nowrap;
}

/* Mobile */
@media (max-width: 980px) {
  .practice-diagram .pipeline-health {
    border-radius: 14px;
    padding: 24px 20px;
  }
  .ph-stage-meta { display: none; }
}

/* ===== PLATFORM STACK — layered lakehouse architecture (card 2) ===== */
/* Container styling mirrors .pipeline-health exactly so all cards share the same canvas. */
.practice-diagram .platform-stack {
  width: 100%;
  height: 100%;
  background: var(--bone);
  border: 1px solid var(--bone-line-2);
  border-radius: 8px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 14px 36px -20px rgba(20, 18, 28, 0.14),
    0 2px 8px -4px rgba(20, 18, 28, 0.04);
  padding: clamp(36px, 6vh, 64px) clamp(36px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.2vh, 22px);
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.3;
  color: var(--t1);
  position: relative;
  overflow: hidden;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

/* Background grid — same fade-to-edges as pipeline-health */
.practice-diagram .platform-stack::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(20, 18, 28, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 18, 28, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: 0 0;
  -webkit-mask-image: radial-gradient(ellipse 78% 70% at 50% 50%, #000 18%, transparent 92%);
  mask-image: radial-gradient(ellipse 78% 70% at 50% 50%, #000 18%, transparent 92%);
  pointer-events: none;
  z-index: 0;
}

.practice-diagram .platform-stack > * {
  position: relative;
  z-index: 1;
}

/* --- Header --- */
.ps-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 4px;
}

.ps-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 4px 10px 4px 9px;
  border-radius: 999px;
}

.ps-icon-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.ps-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--t1);
  line-height: 1.15;
}

.ps-summary {
  font-size: 12px;
  color: var(--t3);
  font-feature-settings: 'tnum';
}

.ps-summary-num {
  color: var(--t1);
  font-weight: 600;
}

/* --- Isometric strata cross-section (SVG) --- */
.ps-strata {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* --- Footer: platforms --- */
.ps-platforms {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 6px;
  flex-wrap: wrap;
}

.ps-platforms-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--t3);
  white-space: nowrap;
}

.ps-platform {
  font-size: 12px;
  color: var(--t1);
  font-weight: 500;
  letter-spacing: -0.005em;
}

.ps-platform-sep {
  color: var(--t4);
  font-size: 10px;
}

/* Mobile */
@media (max-width: 980px) {
  .practice-diagram .platform-stack {
    border-radius: 14px;
    padding: 24px 20px;
  }
}


/* Progress indicator: thin vertical bar on the canvas left edge */
.practice-canvas-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: -16px;
  width: 1px;
  height: 100%;
  background: var(--bone-line-2);
  z-index: 2;
}

.practice-canvas-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  left: -16px;
  width: 1px;
  height: var(--progress, 25%);
  background: var(--accent);
  z-index: 3;
  transition: height 0.6s var(--expo);
}

/* ===== STORIES (right column) ===== */
.practice-stories {
  display: flex;
  flex-direction: column;
}

.story {
  min-height: 80vh;
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story:first-child { padding-top: 0; }
.story:last-child { padding-bottom: 0; }

.story-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.story-num::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
  opacity: 0.7;
}

.story h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.028em;
  color: var(--t1);
  margin-bottom: 20px;
  max-width: 18ch;
}

.story p {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.55;
  color: var(--t2);
  max-width: 38ch;
  margin-bottom: 28px;
}

.story-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.story-tags li {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--t2);
  padding: 6px 14px;
  border: 1px solid var(--bone-line-2);
  border-radius: 999px;
  background: rgba(20, 18, 28, 0.02);
  transition: all 0.3s var(--expo);
}

.story-tags li:hover {
  background: var(--accent-soft);
  border-color: rgba(37, 71, 214, 0.3);
  color: var(--accent);
}

/* Mobile: collapse pin, hide visual canvas (4 diagrams don't translate to small screens), stack stories */
@media (max-width: 980px) {
  .practice-pinned {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .practice-canvas-wrap { display: none; }
  .story {
    min-height: auto;
    padding: 32px 0;
  }
  .story:first-child { padding-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .tile .svg-anim,
  .tile .svg-line {
    opacity: 1 !important;
    stroke-dashoffset: 0 !important;
    transition: none !important;
  }
  .tile.in .svg-pulse { animation: none !important; }
}

.hero-eyebrow.reveal,
.hero-foot.reveal { transform: translateY(16px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero-h1 .w { transform: none !important; opacity: 1 !important; }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}
.nav.on-dark :focus-visible,
.statement :focus-visible,
.cta :focus-visible,
footer :focus-visible {
  outline-color: var(--accent-bright);
}
