/* =====================================================================
   Elephant Hawk — site styles
   One shared stylesheet for every page. Plain CSS, no build step.

   Built on the canonical Elephant Hawk brand system:
   the locked 7-color palette (drawn from the elephant hawk moth and the
   mulberry leaves silk moths feed on) and the brand's web typefaces.
   Change a token below and it cascades across the whole site.
   ===================================================================== */

:root {
  /* --- The 7 brand colors (exact, no drift) -------------------------- */
  --mulberry:   #8B2342;   /* Primary · Signal     — lead accent, links, CTAs */
  --moth-olive: #828B3D;   /* Secondary · Partnership */
  --wing-cream: #F2E7D2;   /* Neutral · Paper      — page background */
  --chrysalis:  #3D332A;   /* Neutral · Earth      — body text on cream */
  --dusk:       #161413;   /* Neutral · Ink        — warm near-black */
  --ash:        #8A8378;   /* Neutral · Metadata   — captions, fine print */
  --hawk-pink:  #ED2D6A;   /* Digital · Highlight  — energy beats, the mark */

  /* Derived helpers (tints of the palette, not new colors) */
  --cream-panel: #fbf6ec;  /* a lighter cream for cards on cream */
  --line: rgba(61, 51, 42, 0.16);   /* hairline = chrysalis at low alpha */

  /* The canonical "transformation" gradient — dark surfaces only */
  --transform: linear-gradient(135deg, var(--dusk) 0%, var(--chrysalis) 55%, var(--mulberry) 100%);

  /* --- Type ----------------------------------------------------------
     Brand web typefaces: Cormorant Garamond (display) + Inter (text).
     Loaded from Google Fonts in each page's <head>. The fallbacks keep
     the page readable if the web fonts fail to load. */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* --- Layout -------------------------------------------------------- */
  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 52px);
}

/* --- Baseline -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--chrysalis);
  background: var(--wing-cream);
  line-height: 1.7;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;            /* belt-and-suspenders against horizontal scroll */
}
img, svg { max-width: 100%; }
a { color: var(--mulberry); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Display type uses the serif; body stays sans -------------------------*/
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.005em; }

/* =====================================================================
   Header / navigation
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 231, 210, 0.88);   /* wing cream, translucent */
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 110px;            /* taller bar to hold the larger logo */
  transition: min-height 0.2s ease;
}

/* The wordmark lockup: chrysalis mark (left) + name (right) — ~1.5× size */
.brand { display: flex; align-items: center; gap: 18px; color: var(--chrysalis); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 45px; height: 45px; display: block; flex: none; border-radius: 50%; transition: width 0.2s ease, height 0.2s ease; }
.brand .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: 0.01em;
  transition: font-size 0.2s ease;
}
.brand .tag {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ash);
  margin-top: 7px;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

/* Once scrolled, the sticky bar + logo shrink (desktop only — on mobile the
   logo is already compact and shrinking would offset the dropdown menu). */
@media (min-width: 761px) {
  .site-header.scrolled .nav { min-height: 68px; }
  .site-header.scrolled .brand-mark { width: 32px; height: 32px; }
  .site-header.scrolled .brand .name { font-size: 1.6rem; }
  .site-header.scrolled .brand .tag { opacity: 0; pointer-events: none; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--chrysalis);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--mulberry); text-decoration: none; }
.nav-links a.active { color: var(--mulberry); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-cta {
  border: 1px solid var(--mulberry);
  color: var(--mulberry) !important;
  border-radius: 999px;
  padding: 8px 18px !important;
}
.nav-cta:hover { background: var(--mulberry); color: var(--wing-cream) !important; }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  padding: 8px; font-size: 1.4rem; line-height: 1; color: var(--chrysalis);
}

/* =====================================================================
   Buttons
   ===================================================================== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--mulberry); color: var(--wing-cream); }
.btn-primary:hover { background: #74182f; }
/* Ghost button: dark outline on light surfaces; fills dark on hover so the
   label stays visible (the old currentColor fill turned cream-on-cream). */
.btn-ghost { background: transparent; color: var(--chrysalis); border-color: var(--chrysalis); }
.btn-ghost:hover { background: var(--chrysalis); color: var(--wing-cream); }
/* On dark surfaces (hero, mulberry band), the ghost inverts to cream */
.on-dark .btn-ghost { color: var(--wing-cream); border-color: var(--wing-cream); }
.on-dark .btn-ghost:hover { background: var(--wing-cream); color: var(--dusk); }

/* =====================================================================
   Section rhythm
   ===================================================================== */
.section { padding-block: clamp(60px, 9vw, 116px); }
.section--panel { background: var(--cream-panel); }
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--mulberry);
  margin: 0 0 16px;
}
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.12;
  margin: 0 0 22px;
  max-width: 20ch;
  color: var(--dusk);
}
.lede { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--chrysalis); max-width: 58ch; }

/* =====================================================================
   Hero (dark, with the moth)
   ===================================================================== */
.hero {
  background: var(--transform);
  color: var(--wing-cream);
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding-block: clamp(72px, 12vw, 150px);
}
/* Single-column statement hero: cap each element's measure so the big display
   type wraps to a few strong lines rather than stretching edge to edge. */
.hero-copy { max-width: 60rem; }
.hero-copy h1 { max-width: 15ch; }
.hero-copy p { max-width: 52ch; }
/* Let grid children shrink below their content's intrinsic width so the
   moth SVG can't blow the hero wider than the viewport (mobile overflow). */
.hero .container > * { min-width: 0; }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.08;
  margin: 0 0 30px;
  color: var(--wing-cream);
}
.hero h1 em { font-style: italic; color: var(--hawk-pink); }
.hero p {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  color: rgba(242, 231, 210, 0.85);
  max-width: 46ch;
  margin: 0 0 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* =====================================================================
   Stats strip
   ===================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: clamp(40px, 6vw, 56px);
}
.stat {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 24px;
  background: var(--cream-panel);
  text-align: center;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.stat:hover { border-color: var(--mulberry); transform: translateY(-3px); }
.stat .num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  line-height: 1;
  color: var(--mulberry);
}
.stat .label { margin-top: 10px; color: var(--ash); font-size: 0.98rem; letter-spacing: 0.02em; }

/* Audience selector — spell out who the site is for, just under the hero */
.audience-bar { padding-top: clamp(40px, 6vw, 56px); text-align: center; }
.audience-lead { color: var(--chrysalis); font-weight: 500; margin: 0 0 16px; }
.audience-lead strong { color: var(--dusk); }
.audience-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.audience-chips a {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--mulberry);
  color: var(--mulberry);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.audience-chips a:hover { background: var(--mulberry); color: var(--wing-cream); text-decoration: none; }
#for-industry, #for-innovators, #for-startups, #for-sponsors { scroll-margin-top: 100px; }

/* Standards / regulatory-pathway strip — table-stakes credibility */
.standards { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; padding: 28px 0 2px; }
.standards-lead { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--ash); }
.std {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--wing-cream);
  color: var(--chrysalis);
}

/* A left-aligned row of pill chips inside prose (e.g. "What we hold") */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 16px 0 18px; }

/* Mission & vision — bold statement + converging input chips */
.mission-line {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--dusk);
  margin: 8px 0 22px;
  max-width: 18ch;
}
.mission-line em { font-style: italic; color: var(--mulberry); }
.mission-sub {
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  line-height: 1.45;
  color: var(--chrysalis);
  max-width: 56ch;
  margin: 0 0 30px;
}
.mission-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.mission-flow .mi {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--cream-panel);
  color: var(--chrysalis);
}
.mission-flow .mi-arrow { color: var(--hawk-pink); font-size: 1.4rem; font-weight: 700; line-height: 1; padding: 0 2px; }
.mission-flow .mi-out {
  background: var(--mulberry);
  border-color: var(--mulberry);
  color: var(--wing-cream);
}
@media (max-width: 560px) {
  .mission-flow .mi-arrow { transform: rotate(90deg); display: block; width: 100%; text-align: left; padding: 2px 0; }
}

/* =====================================================================
   Cards
   ===================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 46px;
}
/* When a section opens straight into cards (no heading above them), drop the
   46px gap so the cards don't sit doubly-indented below the section padding. */
.container > .cards:first-child { margin-top: 0; }

/* Reusable 2-up grid for four-card sections (collapses to one on phones). */
.cards.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .cards.cols-2 { grid-template-columns: 1fr; } }

/* "Ways to engage" — four commercial modes, each with an accent top bar
   (mulberry = fee-based, olive = partnership/equity). */
.cards.engage { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.engage-card { border-top: 3px solid var(--accent); }
@media (max-width: 820px) { .cards.engage { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .cards.engage { grid-template-columns: 1fr; } }
.engage-note { margin-top: 26px; max-width: 64ch; color: var(--chrysalis); }
.engage-note strong { color: var(--mulberry); }

/* Contact "two paths" — bold, engaging customer entry cards. */
.path-card {
  border-top: 4px solid var(--accent);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--chrysalis);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.path-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(61, 51, 42, 0.12);
  text-decoration: none;
}
#note, #office-hours, #context-brief { scroll-margin-top: 96px; }   /* clear the sticky header when anchored */
.path-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--accent);
  color: var(--wing-cream);
  margin-bottom: 20px;
  transition: transform 0.2s ease;
}
.path-icon svg { width: 34px; height: 34px; }
.path-card:hover .path-icon { transform: scale(1.08) rotate(-4deg); }
.path-kicker { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ash); font-weight: 700; margin: 0 0 6px; }
.path-card h3 { font-size: 1.6rem; margin: 0 0 12px; color: var(--dusk); }
.path-card > p { color: var(--chrysalis); margin: 0 0 26px; }
.path-go { margin-top: auto; align-self: flex-start; font-weight: 700; font-size: 0.95rem; color: var(--accent); }
.path-card:hover .path-go { text-decoration: underline; }

/* Context Brief deliverable callout (Approach, after Seeker/Score). */
.brief-offer {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 40px);
  flex-wrap: wrap;
  background: var(--wing-cream);
  border: 1px solid var(--line);
  border-left: 4px solid var(--mulberry);
  border-radius: 14px;
  padding: clamp(24px, 3.5vw, 36px);
  box-shadow: 0 12px 30px rgba(61, 51, 42, 0.06);
}
.brief-offer-body { flex: 1 1 360px; }
.brief-kicker { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--mulberry); margin: 0 0 6px; }
.brief-offer-body h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--dusk); margin: 0 0 10px; }
.brief-offer-body p { margin: 0; color: var(--chrysalis); }
.brief-offer .btn { flex: none; }

/* Reusable icon badge (Seeker/Score modules, and anywhere a card wants one). */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(237, 45, 106, 0.10);
  color: var(--hawk-pink);
  margin-bottom: 12px;
  transition: transform 0.2s ease;
}
.icon-badge svg { width: 28px; height: 28px; }
.card:hover .icon-badge { transform: scale(1.08) rotate(-3deg); }

/* Partner cards (Home · Who we serve): an iconed badge per partner type. */
.partner-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(237, 45, 106, 0.10);
  color: var(--hawk-pink);
  margin-bottom: 10px;
  transition: transform 0.2s ease;
}
.partner-icon svg { width: 28px; height: 28px; }
.card.partner:hover .partner-icon { transform: scale(1.08) rotate(-3deg); }
.card.partner .step-stage { margin-top: 0; }
/* Sponsors: a full-width horizontal banner under the 2×2 (distinct relationship). */
.partner--wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 32px);
  flex-wrap: wrap;
}
.partner--wide .partner-icon { margin-bottom: 0; }
.partner--wide .partner-body { flex: 1 1 320px; }
.partner--wide .partner-body h3 { margin: 4px 0 6px; }
.partner--wide .partner-body p { margin: 0; }
.partner--wide .btn { flex: none; }

/* Small teaser link inside a card (e.g. office-hours on the Innovators card) */
.card-teaser {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--mulberry);
  text-decoration: none;
}
.card-teaser svg { width: 16px; height: 16px; flex: none; }
.card-teaser:hover { text-decoration: underline; }
.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 30px;
  background: var(--wing-cream);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.section--panel .card { background: var(--wing-cream); }
.card:hover { border-color: var(--mulberry); transform: translateY(-3px); }
.card .card-num {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--hawk-pink);
  font-size: 1.4rem;
  line-height: 1;
}
.card h3 { font-size: 1.45rem; line-height: 1.25; margin: 14px 0 10px; color: var(--dusk); }
.card p { margin: 0; color: var(--chrysalis); font-size: 1rem; }
/* Reserve two title lines in grid cards so a heading that wraps can never ride
   into the body during the web-font swap (FOUT), and all cards align. */
.cards .card h3 { min-height: 2.5em; }
.partner--wide .partner-body h3, .card--featured .feat-main h3 { min-height: 0; }
/* Case-study outcome line */
.case-outcome { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--font-display); font-size: 1.08rem; line-height: 1.35; color: var(--mulberry); }
/* Chrysalis process step label (e.g. "CONCEPT") */
.step-stage {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hawk-pink);
  font-weight: 700;
  margin: 12px 0 2px;
}
/* Five Gates row */
/* Five Gates as an inspection gauntlet: each gate is a seal that stamps in
   (pops, with overshoot) in sequence on scroll, ending in a rotated CLEARED
   rubber-stamp. The clearance metaphor matches a regulated-medtech audience. */
.seals {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  margin-top: 50px;
}
.seal { flex: 0 0 auto; width: 120px; text-align: center; }
.seal-badge {
  width: 74px;
  height: 74px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 2.5px solid var(--hawk-pink);
  box-shadow: inset 0 0 0 5px rgba(237, 45, 106, 0.10);
  background: var(--wing-cream);
  color: var(--hawk-pink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.seal-badge svg { width: 34px; height: 34px; }
.seal b { display: block; font-family: var(--font-display); font-size: 1.2rem; color: var(--dusk); }
.seal-desc { display: block; font-size: 0.84rem; color: var(--ash); margin-top: 2px; line-height: 1.4; }

/* faint chevrons between seals, a bolder arrow before the CLEARED stamp */
.seal-link { flex: 0 0 auto; align-self: flex-start; margin-top: 26px; color: var(--line); font-size: 1.5rem; line-height: 1; }
.seal-arrow { flex: 0 0 auto; align-self: flex-start; margin-top: 22px; color: var(--ash); font-size: 1.8rem; line-height: 1; }

/* The terminal rubber-stamp */
.seal--final { width: 150px; }
.seal-stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px auto 14px;
  padding: 15px 20px;
  border: 2.5px solid var(--mulberry);
  border-radius: 10px;
  box-shadow: inset 0 0 0 4px rgba(139, 35, 66, 0.10);
  color: var(--mulberry);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 1.05rem;
  transform: rotate(-5deg);
}
.seal-stamp svg { width: 18px; height: 18px; }

/* Stamp-in sequence (default / reduced-motion = fully stamped). */
.reveal .seal-badge {
  transform: scale(0.5) rotate(-12deg);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
  transition-delay: var(--d, 0s);
}
.reveal.in .seal-badge { transform: none; opacity: 1; }
.reveal .seal--final .seal-stamp {
  transform: rotate(8deg) scale(0.5);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
  transition-delay: 0.62s;
}
.reveal.in .seal--final .seal-stamp { transform: rotate(-5deg); opacity: 1; }

/* On small screens, drop the connectors and let the seals wrap; CLEARED
   sits on its own row. */
@media (max-width: 720px) {
  .seal-link, .seal-arrow { display: none; }
  .seals { gap: 26px 16px; }
  .seal { width: 30%; min-width: 100px; }
  .seal--final { width: 100%; margin-top: 6px; }
}

/* Contact form — framed as an engaging card --------------------------- */
.form {
  max-width: 720px;
  margin: 8px 0 0;
  background: var(--wing-cream);
  border: 1px solid var(--line);
  border-top: 4px solid var(--mulberry);   /* signature accent bar */
  border-radius: 16px;
  padding: clamp(26px, 4vw, 44px);
  box-shadow: 0 18px 46px rgba(61, 51, 42, 0.08);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chrysalis);
  font-weight: 700;
}
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--wing-cream);
  color: var(--chrysalis);
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--mulberry);
  box-shadow: 0 0 0 3px rgba(139, 35, 66, 0.16);   /* soft focus glow */
}
.field input::placeholder, .field textarea::placeholder { color: var(--ash); }
.field textarea { resize: vertical; min-height: 140px; }
.form-note { display: inline-block; margin-left: 14px; font-size: 0.9rem; color: var(--ash); }
/* Context Brief explainer — the first-principles step list */
.brief-method-lead { margin: 30px 0 18px; color: var(--chrysalis); font-weight: 500; }
.brief-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 28px;
}
.brief-steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 3px; align-items: center; }
.bs-num {
  grid-row: 1 / 3;
  align-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--mulberry);
  color: var(--mulberry);
  font-weight: 700;
  font-size: 0.85rem;
}
.brief-steps b { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--dusk); }
.brief-steps li > span:not(.bs-num) { font-size: 0.9rem; color: var(--chrysalis); line-height: 1.45; }
@media (max-width: 820px) { .brief-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .brief-steps { grid-template-columns: 1fr; } }

/* Inline confirmation shown after a successful submit (olive = success). */
.form-success {
  max-width: 720px;
  margin: 8px 0 0;
  background: var(--wing-cream);
  border: 1px solid var(--line);
  border-top: 4px solid var(--moth-olive);
  border-radius: 16px;
  padding: clamp(26px, 4vw, 40px);
  box-shadow: 0 18px 46px rgba(61, 51, 42, 0.08);
}
.form-success h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: var(--dusk); margin: 0 0 10px; }
.form-success p { margin: 0; color: var(--chrysalis); }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } .form { padding: 24px 20px; } }

/* Case-study grid: two even columns, with a wide "featured" card that
   spans both. 1 featured + 4 = no orphan. Because hidden (filtered) cards
   collapse out of the grid, every filter state stays balanced too:
   All = featured + 2×2 · Industry = featured + 2 · Innovators = clean 2-up. */
.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 46px;
}

/* The featured case: spans the full width and splits into story (left)
   and headline outcome (right) on wide screens. */
.case-grid .card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(22px, 4vw, 52px);
  align-items: center;
  background: var(--cream-panel);
  border-top: 4px solid var(--mulberry);   /* signature mulberry edge */
}
.card--featured .feat-main h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 8px; }
.card--featured .feat-aside .case-outcome {
  margin: 0;
  padding: 22px 24px;
  border-top: 0;
  border-left: 3px solid var(--mulberry);
  background: var(--wing-cream);
  border-radius: 8px;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
}

/* Stack the featured card on smaller screens, then drop the whole grid
   to a single column on phones. */
@media (max-width: 820px) {
  .case-grid .card--featured { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .case-grid { grid-template-columns: 1fr; }
}

/* Two-column prose (About) ------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.prose p { margin: 0 0 20px; }
.prose strong { color: var(--dusk); }

/* Founder block (photo + bio) ---------------------------------------- */
.founder {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
  margin-top: 8px;
}
.founder-photo img {
  width: 240px;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-top: 4px solid var(--mulberry);   /* signature mulberry top edge */
  border-radius: 3px;
}
.founder-role {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash);
  font-weight: 600;
  margin: 0 0 18px;
}
/* Credentials chips under the founder name */
.creds { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 22px; padding: 0; }
.creds li {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--cream-panel);
  color: var(--chrysalis);
}
.creds li strong { color: var(--mulberry); }
.founder-bio p { color: var(--chrysalis); max-width: 54ch; }
/* Founder-level 30-minute review offer (folded into the founder block) */
.founder-offer {
  margin: 22px 0;
  padding: 22px 24px;
  border-radius: 14px;
  background: var(--cream-panel);
  border-left: 4px solid var(--mulberry);
}
.founder-offer-kicker { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--mulberry); margin: 0 0 8px; }
.founder-offer-lead { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--dusk); margin: 0 0 10px; }
.founder-offer-when { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--mulberry); font-size: 0.95rem; margin: 0 0 14px; }
.founder-offer-when svg { width: 18px; height: 18px; flex: none; }
.founder-offer p { margin: 0 0 16px; }
.founder-offer .btn { margin: 0; }

.founder-contact-label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
  font-weight: 600;
  margin: 26px 0 0;
}
.founder-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
/* Circular icon buttons — the link lives behind the logo (title + aria-label) */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--mulberry);
  color: var(--wing-cream);
  transition: background 0.15s ease, transform 0.15s ease;
}
.icon-btn:hover { background: #74182f; transform: translateY(-2px); text-decoration: none; }
.icon-btn svg { width: 22px; height: 22px; display: block; }
/* Recognizable brand colors for the social icons (email stays mulberry) */
.icon-btn--linkedin { background: #0A66C2; color: #fff; }
.icon-btn--linkedin:hover { background: #004182; }
.icon-btn--whatsapp { background: #25D366; color: #fff; }
.icon-btn--whatsapp:hover { background: #1DA851; }
@media (max-width: 680px) {
  .founder { grid-template-columns: 1fr; }
  .founder-photo img { width: 200px; }
}

/* Big pull-quote ------------------------------------------------------ */
.quote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.14;
  max-width: 20ch;
  margin: 0 auto 36px;
  text-align: center;
  color: var(--dusk);
}
.quote em { color: var(--mulberry); font-style: italic; }
.center { text-align: center; }

/* A slim band that states a canonical phrase ------------------------- */
.band {
  background: var(--mulberry);
  color: var(--wing-cream);
  text-align: center;
}
.band .container { padding-block: clamp(44px, 7vw, 80px); }
.band p {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.2;
  margin: 0;
}
.band .small { font-family: var(--font-body); font-size: 1rem; color: rgba(242,231,210,0.8); margin-top: 14px; letter-spacing: 0.04em; }
/* Metamorphosis motif (caterpillar → chrysalis → moth) */
.band .motif { width: clamp(220px, 44%, 300px); height: auto; display: block; margin: 0 auto 26px; }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer {
  background: var(--dusk);
  color: rgba(242, 231, 210, 0.75);
  padding-block: 54px;
  font-size: 0.92rem;
}
.site-footer a { color: rgba(242, 231, 210, 0.75); }
.site-footer a:hover { color: var(--hawk-pink); }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(242, 231, 210, 0.14);
}
.footer-brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; color: var(--wing-cream); }
.footer-mark { width: 30px; height: 30px; flex: none; border-radius: 50%; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 0; padding: 0; }
.footer-legal a { font-size: 0.85rem; color: var(--ash); }

/* =====================================================================
   Mobile
   ===================================================================== */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  /* Dampen the enlarged logo on phones so the sticky bar stays reasonable */
  .nav { min-height: 88px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand .name { font-size: 1.9rem; }
  .nav-links {
    position: absolute;
    top: 88px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--wing-cream);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .nav-links[hidden] { display: none; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links a { display: block; padding: 14px 0; }
  .nav-cta { text-align: center; margin-top: 12px; }
  .stats { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .split { grid-template-columns: 1fr; }
}

/* =====================================================================
   Energy: scroll reveals + a living hero
   ===================================================================== */
/* .reveal is added by JS, so content stays visible if JS doesn't run. */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* The dark hero gradient slowly breathes so it doesn't feel static. */
.hero { background-size: 180% 180%; animation: heroShift 22s ease-in-out infinite; }
@keyframes heroShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* =====================================================================
   Metamorphosis thread — a recurring caterpillar→chrysalis→moth motif
   that lets scrolling the page walk the transformation.
   ===================================================================== */
.metamorph-divider {
  display: flex;
  justify-content: center;
  padding-block: clamp(28px, 5vw, 52px);
  /* slides/fades in when scrolled into view (JS adds .in) */
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.metamorph-divider.in { opacity: 1; transform: none; }
.metamorph-divider svg { width: clamp(210px, 42%, 300px); height: auto; }

/* =====================================================================
   "Four ways in" — iconed engagement cards + convergence cue (Approach)
   ===================================================================== */
/* Top row of each card: icon on the left, step number quietly on the right. */
/* Force the four engagement cards into a 2×2 (not auto-fit 4-up / 3+1). */
.ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .ways { grid-template-columns: 1fr; } }
.way-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.ways .card-num { color: var(--ash); font-size: 1.05rem; }   /* number recedes; icon leads */
.way-icon { color: var(--hawk-pink); display: inline-flex; transition: transform 0.2s ease; }
.way-icon svg { width: 32px; height: 32px; display: block; }
/* The whole card already lifts on hover; the icon springs a touch with it. */
.ways .card:hover .way-icon { transform: scale(1.14) rotate(-4deg); }

/* The four paths funnel into one point, leading the eye into Chrysalis. */
.ways-converge { display: flex; justify-content: center; margin-top: 44px; }
.ways-converge svg { width: clamp(190px, 38%, 250px); height: auto; }
/* On scroll-in, the four paths draw into the engine (staggered), then the
   chevron; the center "engine" dot gently pulses. Reduced-motion: drawn + still. */
.ways-converge path { stroke-dasharray: 100; }
.reveal .ways-converge path { stroke-dashoffset: 100; transition: stroke-dashoffset 0.9s ease; }
.reveal.in .ways-converge path { stroke-dashoffset: 0; }
.reveal .ways-converge path:nth-child(2) { transition-delay: 0.08s; }
.reveal .ways-converge path:nth-child(3) { transition-delay: 0.16s; }
.reveal .ways-converge path:nth-child(4) { transition-delay: 0.24s; }
.reveal .ways-converge path:last-child { transition-delay: 0.5s; }
.wc-dot { transform-box: fill-box; transform-origin: center; animation: wcPulse 2.4s ease-in-out infinite; }
@keyframes wcPulse { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.5); opacity: 1; } }
.ways-caption {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  color: var(--dusk);
  margin: 8px 0 0;
}
.ways-caption em { color: var(--mulberry); font-style: italic; }
/* The convergence cue points down into the Chrysalis section — pull that
   section's bottom in so the funnel connects to what it points at. */
.section--cue { padding-bottom: clamp(36px, 5vw, 64px); }

/* =====================================================================
   SEMI layers — element-tile cards + composition equation (Approach)
   Each layer carries its own palette accent (set inline via --accent),
   so the four read as distinct, combinable building blocks.
   ===================================================================== */
/* Force the four SEMI tiles into a 2×2 (not the auto-fit 3+1), collapsing
   to a single column on phones. */
.semi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .semi { grid-template-columns: 1fr; } }

/* Flip tiles: front shows the element + name; the component list lives on
   the back, revealed on hover (mouse), focus (keyboard), or tap (touch,
   via .is-flipped added in script.js). */
.flip {
  perspective: 1100px;
  min-height: 268px;
  cursor: pointer;
  border-radius: 14px;
  outline: none;
}
.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 268px;
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
  transform-style: preserve-3d;
}
.flip:hover .flip-inner,
.flip:focus-visible .flip-inner,
.flip.is-flipped .flip-inner { transform: rotateY(180deg); }
.flip:focus-visible { box-shadow: 0 0 0 3px rgba(139, 35, 66, 0.35); }

.flip-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 14px;
  background: var(--wing-cream);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.flip-back { transform: rotateY(180deg); background: var(--cream-panel); }
/* Front: big letter + icon on one row, then name + a short descriptor. */
.flip-top { display: flex; align-items: center; justify-content: space-between; }
.flip .layer-mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.7rem;
  line-height: 1;
  color: var(--accent);
}
.flip-icon { color: var(--accent); display: inline-flex; }
.flip-icon svg { width: 30px; height: 30px; display: block; }
.flip-front h3 { font-size: 1.45rem; margin: 10px 0 0; color: var(--dusk); }
.flip-desc { margin: 6px 0 0; color: var(--chrysalis); font-size: 0.95rem; line-height: 1.5; }
.flip-hint {
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ash);
}
/* Back: title, component list, then an italic example. */
.flip-back-title { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--accent); margin: 0 0 10px; }
.flip-back-list { margin: 0 0 12px; color: var(--chrysalis); font-size: 0.96rem; line-height: 1.55; }
.flip-back-eg { margin: auto 0 0; color: var(--ash); font-size: 0.86rem; font-style: italic; line-height: 1.5; }

/* S + E + M + I → any regulated device */
.semi-compose {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 46px;
}
.semi-chip {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 12px;
}
.semi-plus { color: var(--ash); font-size: 1.25rem; }
.semi-eq { color: var(--ash); font-size: 1.7rem; margin: 0 6px; }
.semi-result {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--mulberry);
}

/* =====================================================================
   "What we deliver" — US-protected + globally-powered, as a visual model
   ===================================================================== */
.deliver-model { margin-top: 44px; display: grid; gap: 18px; }
.deliver-pillars {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: stretch;
}
/* Cream cards on the dark canvas; each pillar carries its own accent
   (US = mulberry, Globally powered = moth-olive). */
.deliver-pillar {
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 16px;
  padding: 28px 26px;
  background: var(--wing-cream);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.deliver-pillar:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28); }
.deliver-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--wing-cream);
  margin-bottom: 14px;
}
.deliver-icon svg { width: 28px; height: 28px; }
.deliver-kicker { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin: 0 0 4px; }
.deliver-pillar h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; color: var(--dusk); margin: 0; }
.deliver-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.deliver-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--chrysalis); font-size: 0.95rem; line-height: 1.45; }
.deliver-list li::before { content: "✓"; color: var(--accent); font-weight: 700; flex: none; }
.deliver-plus { display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 2.2rem; color: var(--hawk-pink); }
.deliver-result {
  text-align: center;
  border-radius: 14px;
  padding: 22px 26px;
  background: var(--mulberry);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  line-height: 1.3;
  color: var(--wing-cream);
}
.deliver-result strong { color: var(--hawk-pink); }
.deliver-note { margin: 2px 0 0; text-align: center; font-size: 0.95rem; line-height: 1.5; color: rgba(242, 231, 210, 0.78); }
.deliver-link { display: inline-block; margin-top: 16px; font-weight: 700; font-size: 0.9rem; color: var(--accent); text-decoration: none; }
.deliver-link:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .deliver-pillars { grid-template-columns: 1fr; }
  .deliver-plus { font-size: 1.8rem; padding: 2px 0; }
}

/* =====================================================================
   Chrysalis engine — "how it runs" attribute badges (Approach, on dark)
   ===================================================================== */
.engine-attrs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.engine-attr {
  background: var(--cream-panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 24px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.engine-attr:hover { border-color: var(--hawk-pink); transform: translateY(-3px); }
.ea-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(237, 45, 106, 0.14);
  color: var(--hawk-pink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.ea-icon svg { width: 26px; height: 26px; }
.engine-attr h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--dusk); margin: 0 0 5px; }
.engine-attr p { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--chrysalis); }
@media (max-width: 760px) { .engine-attrs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .engine-attrs { grid-template-columns: 1fr; } }

/* =====================================================================
   Scope of work — the full discipline stack, run through Chrysalis (Approach)
   8 workstreams in a 4×2 grid on dark; echoed as a compact strip on Home.
   ===================================================================== */
/* Phased pipeline: four phases left-to-right, disciplines listed under each,
   so it reads as one system (Should → Can → Build → Clear), not a list. */
.phases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
  margin-top: 48px;
}
.phase { border-top: 2px solid var(--hawk-pink); padding-top: 18px; }
.phase-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--wing-cream);
  margin: 0 0 18px;
}
.phase-num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--hawk-pink);
  color: var(--hawk-pink);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
}
.phase-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.phase-list li { display: flex; align-items: center; gap: 12px; color: rgba(242, 231, 210, 0.92); font-size: 0.98rem; line-height: 1.3; }
.scope-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(237, 45, 106, 0.14);
  color: var(--hawk-pink);
}
.scope-icon svg { width: 22px; height: 22px; display: block; }
@media (max-width: 880px) { .phases { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .phases { grid-template-columns: 1fr; } }

/* Home echo: a compact strip of the same workstreams, on light. */
.scope-lead { margin: 28px 0 14px; color: var(--chrysalis); font-weight: 500; }
.scope-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.scope-strip b { color: var(--mulberry); margin-right: 5px; }
.scope-strip a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--wing-cream);
  color: var(--chrysalis);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.scope-strip a:hover { border-color: var(--mulberry); color: var(--mulberry); text-decoration: none; }

/* =====================================================================
   The six stages — one continuous timeline (Approach)
   Sequential, so the stages are strung on a single line that draws
   concept→supply when scrolled into view.
   ===================================================================== */
.flow {
  list-style: none;
  margin: 46px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}
.flow-step { position: relative; text-align: center; padding-top: 8px; }
.flow-node {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--cream-panel);     /* matches the panel so the node rings the line */
  border: 2px solid var(--mulberry);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--mulberry);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.flow-step:hover .flow-node { transform: scale(1.08); background: var(--mulberry); color: var(--wing-cream); }
.flow-body .step-stage { margin-top: 0; }
.flow-body h3 { font-size: 1.2rem; margin: 6px 0 8px; color: var(--dusk); }
.flow-body p { margin: 0; color: var(--chrysalis); font-size: 0.9rem; }

/* The connecting line: each step draws a connector to the next node's center.
   Default (and reduced-motion) state is the full mulberry line. */
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 31px;                      /* node center: 8px pad + 46/2 */
  left: 50%;
  width: calc(100% + 22px);       /* column width + gap → reaches the next node */
  height: 2px;
  background: var(--mulberry);
  z-index: 0;
}

/* When the section scrolls in (JS adds .reveal/.in to its container), the
   line draws from 01 to 06. Reduced-motion users get no .reveal, so they
   simply see the finished line above. */
.reveal .flow-step:not(:last-child)::after {
  background: var(--line);
  transition: background 0.55s ease;
}
.reveal.in .flow-step:not(:last-child)::after { background: var(--mulberry); }
.reveal .flow-step:nth-child(2)::after { transition-delay: 0.15s; }
.reveal .flow-step:nth-child(3)::after { transition-delay: 0.30s; }
.reveal .flow-step:nth-child(4)::after { transition-delay: 0.45s; }
.reveal .flow-step:nth-child(5)::after { transition-delay: 0.60s; }

/* Below the desktop width, the line stands up into a vertical timeline. */
@media (max-width: 1024px) {
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow-step { text-align: left; padding: 0 0 30px 66px; min-height: 46px; }
  .flow-step:last-child { padding-bottom: 0; }   /* no connector after it → no dead space */
  .flow-node { position: absolute; top: 0; left: 0; margin: 0; }
  .flow-step:not(:last-child)::after {
    top: 46px; left: 22px;
    width: 2px; height: calc(100% - 46px);
  }
  .flow-body h3 { font-size: 1.25rem; }
  .flow-body p { font-size: 0.98rem; }
}

/* =====================================================================
   Filter chips (Selected work)
   ===================================================================== */
.filterbar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chip {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--chrysalis);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip:hover { border-color: var(--mulberry); color: var(--mulberry); }
.chip.active { background: var(--mulberry); color: var(--wing-cream); border-color: var(--mulberry); }
/* Cards filtered out collapse smoothly out of the grid */
.case-grid .card { transition: border-color 0.15s ease, transform 0.15s ease, opacity 0.3s ease; }
.case-grid .card.is-hidden { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .hero { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .metamorph-divider { opacity: 1; transform: none; }
  .wc-dot { animation: none; }
}
