/* ============================================================
   MADNESS — v07 | style.css
   Warm sand · Deep navy · Electric green
   No pure black. No pure white. Every surface has character.
   ============================================================ */

/* ─── FONTS ──────────────────────────────────────────────── */
@font-face { font-family:'Space Grotesk'; src:url('../fonts/space-grotesk-300-latin.woff2') format('woff2'); font-weight:300; font-display:swap; }
@font-face { font-family:'Space Grotesk'; src:url('../fonts/space-grotesk-400-latin.woff2') format('woff2'); font-weight:400; font-display:swap; }
@font-face { font-family:'Space Grotesk'; src:url('../fonts/space-grotesk-latin.woff2') format('woff2'); font-weight:500; font-display:swap; }
@font-face { font-family:'Space Grotesk'; src:url('../fonts/space-grotesk-600-latin.woff2') format('woff2'); font-weight:600; font-display:swap; }

/* ============================================================
   DESIGN TOKENS
   All visual decisions live here. Never hardcode a value
   that already exists as a token. Inner pages use style.css
   plus the same HTML shell (sidenav + .page wrapper).
   ============================================================ */
:root {

  /* ── Colors: Light Surfaces ──────────────────────────────
     Warm, never clinical. --cream is the lightest surface,
     --sand is the default page background.                  */
  --cream:  #FDFCF9;
  --sand:   #F5F0E8;
  --border: #E2DCD2;

  /* ── Colors: Ink (warm, not grey) ───────────────────────
     Use --ink-1 for primary text, --ink-2 for bold/dark
     emphasis, --ink-3 for body on light, --ink-4 for muted
     labels, captions, and placeholders.                     */
  --ink-1: #1A1A1A;
  --ink-2: #2D2D2D;
  --ink-3: #7A7468;
  --ink-4: #A39E94;

  /* ── Colors: Dark Surfaces ───────────────────────────────
     Deep navy, not black. --navy is the primary dark surface.
     --navy-deep is for footers (one step deeper).
     --navy-light is the hover state for navy elements.      */
  --navy:       #0F1923;
  --navy-deep:  #0A1219;
  --navy-light: #162230;

  /* ── Colors: Accent ─────────────────────────────────────
     Electric neon green — the brand signature color.
     --accent: use for decorative elements on dark surfaces.
     --accent-read: readable green for text on light surfaces.
     --accent-h: hover state for the accent.
     --accent-bg: tinted background for badges on light.     */
  --accent:      #39FF14;
  --accent-read: #1B8A3E;
  --accent-h:    #2ED810;
  --accent-bg:   rgba(57,255,20,0.06);

  /* ── Colors: On-Dark Text Levels ────────────────────────
     Use these instead of hardcoding rgba(255,255,255,0.xx).
     --on-dark:    headings, primary text (pure white)
     --on-dark-2:  emphasis / hover states (80%)
     --on-dark-3:  primary body text on dark (72%)
     --on-dark-4:  secondary / muted text (55%)
     --on-dark-5:  labels, captions, fine details (40%)
     --on-dark-6:  legal copy, extreme fine print (38%)      */
  --on-dark:   #FFFFFF;
  --on-dark-2: rgba(255,255,255,0.80);
  --on-dark-3: rgba(255,255,255,0.72);
  --on-dark-4: rgba(255,255,255,0.55);
  --on-dark-5: rgba(255,255,255,0.40);
  --on-dark-6: rgba(255,255,255,0.38);

  /* ── Colors: On-Dark Structural ─────────────────────────
     Borders, dividers, and surfaces within dark sections.
     --on-dark-border:        default divider line (8%)
     --on-dark-border-strong: ghost button border (18%)
     --on-dark-divider:       subtle grid gap (6%)
     --on-dark-surface:       footer top border (4%)         */
  --on-dark-border:        rgba(255,255,255,0.08);
  --on-dark-border-strong: rgba(255,255,255,0.18);
  --on-dark-divider:       rgba(255,255,255,0.06);
  --on-dark-surface:       rgba(255,255,255,0.04);

  /* ── Typography: Font Stack ─────────────────────────────  */
  --font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  /* ── Typography: Font Weights ───────────────────────────  */
  --weight-light:    300;
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;

  /* ── Typography: Font Sizes (fixed) ─────────────────────
     Use these for UI chrome, labels, body, and captions.
     --text-2xs   10px  tiny labels (group headings, fine caps)
     --text-xs    11px  badges, eyebrows, locale strings
     --text-sm    12px  sidebar email, secondary captions
     --text-caption 13px  footer copy, legal text
     --text-nav   14px  sidebar links, buttons
     --text-md    15px  secondary body, card descriptions
     --text-body  16px  default body (set on <body>)
     --text-lg    17px  lead paragraphs, context text        */
  --text-2xs:    0.625rem;
  --text-xs:     0.6875rem;
  --text-sm:     0.75rem;
  --text-caption:0.8125rem;
  --text-nav:    0.875rem;
  --text-md:     0.9375rem;
  --text-body:   1rem;
  --text-lg:     1.0625rem;

  /* ── Typography: Heading Sizes (fluid / responsive) ─────
     These use clamp() so they scale gracefully between
     mobile and wide viewports. Assign by visual hierarchy.
     --text-display  hero headline — the biggest type on site
     --text-h1       section name headings (detail pages)
     --text-h2       secondary headings (CTA titles)
     --text-h3       card / pillar headings
     --text-h4       pull-quotes, sub-section headings
     --text-lead     statement / intro paragraph
     --text-product  product name display (cards)            */
  --text-display: clamp(2.5rem, 5.5vw, 5rem);
  --text-h1:      clamp(2.25rem, 4.5vw, 4rem);
  --text-h2:      clamp(2rem, 4.5vw, 3.5rem);
  --text-h3:      clamp(1.5rem, 2.5vw, 2.25rem);
  --text-h4:      clamp(1.25rem, 2.4vw, 1.625rem);
  --text-lead:    clamp(1.0625rem, 1.4vw, 1.1875rem);
  --text-product: clamp(2rem, 3.5vw, 3rem);

  /* ── Typography: Line Heights ───────────────────────────
     --leading-none     1      product names, large display
     --leading-heading  1.06   hero headline
     --leading-tight    1.08   section headings, CTA titles
     --leading-snug     1.1    pillar names, card headings
     --leading-body-sm  1.5    taglines, compact body
     --leading-body     1.65   pillar descriptions
     --leading-normal   1.7    default body, pull quotes
     --leading-relaxed  1.75   hero context, detail para stmts
     --leading-loose    1.8    long-form body paragraphs      */
  --leading-none:    1;
  --leading-heading: 1.06;
  --leading-tight:   1.08;
  --leading-snug:    1.1;
  --leading-body-sm: 1.5;
  --leading-body:    1.65;
  --leading-normal:  1.7;
  --leading-relaxed: 1.75;
  --leading-loose:   1.8;

  /* ── Typography: Letter Spacing ─────────────────────────
     --tracking-display  -0.045em  hero display text
     --tracking-heading  -0.04em   section headings
     --tracking-tight    -0.03em   pillar/card headings
     --tracking-snug     -0.02em   brand name in footer
     --tracking-normal   -0.01em   readable body-size display
     --tracking-ui        0         default (no adjustment)
     --tracking-wide      0.06em   locale strings, some badges
     --tracking-wider     0.08em   hero badge, brand badge
     --tracking-caps      0.10em   stat labels, category tags
     --tracking-widest    0.14em   section label eyebrows     */
  --tracking-display: -0.045em;
  --tracking-heading: -0.04em;
  --tracking-tight:   -0.03em;
  --tracking-snug:    -0.02em;
  --tracking-normal:  -0.01em;
  --tracking-ui:       0;
  --tracking-wide:     0.06em;
  --tracking-wider:    0.08em;
  --tracking-caps:     0.10em;
  --tracking-widest:   0.14em;

  /* ── Spacing Scale ───────────────────────────────────────
     A fixed scale used for all padding, margins, and gaps.
     Always choose the nearest token — do not invent values. 
     --space-2xs   4px    dot sizes, tiny insets
     --space-xs    6px    micro gaps (dot offsets)
     --space-sm    8px    tight inline gaps
     --space-md    12px   compact padding, small gaps
     --space-lg    16px   standard gap, base padding
     --space-xl    20px   comfortable gap, small sections
     --space-2xl   24px   section element spacing
     --space-3xl   28px   comfortable section spacing
     --space-4xl   36px   generous spacing
     --space-5xl   40px   large gap
     --space-6xl   48px   section sub-element margin
     --space-7xl   56px   —
     --space-8xl   64px   section spacing (small)
     --space-9xl   80px   section spacing (medium)            */
  --space-2xs: 0.25rem;
  --space-xs:  0.375rem;
  --space-sm:  0.5rem;
  --space-md:  0.75rem;
  --space-lg:  1rem;
  --space-xl:  1.25rem;
  --space-2xl: 1.5rem;
  --space-3xl: 1.75rem;
  --space-4xl: 2.25rem;
  --space-5xl: 2.5rem;
  --space-6xl: 3rem;
  --space-7xl: 3.5rem;
  --space-8xl: 4rem;
  --space-9xl: 5rem;

  /* ── Spacing: Section Rhythm (responsive) ────────────────
     Use these for vertical padding on <section> elements.
     --section-py     primary section vertical padding
     --section-py-sm  smaller sections (footer, sub-sections)
     --hero-pt        hero section top padding
     --hero-pb        hero section bottom padding
     --section-gap    gap between elements within a section   */
  --section-py:    clamp(5rem, 10vw, 8rem);
  --section-py-sm: clamp(3.5rem, 6vw, 5rem);
  --hero-pt:       clamp(4rem, 8vw, 7rem);
  --hero-pb:       clamp(3.5rem, 7vw, 6rem);
  --section-gap:   clamp(2.5rem, 5vw, 4rem);

  /* ── Border Radius ───────────────────────────────────────
     --radius-sm  3px  badges, small tags
     --radius-md  4px  buttons, links, sidebar links
     --radius-lg  6px  cards (pcard)                         */
  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 6px;

  /* ── Layout ──────────────────────────────────────────────  */
  --sidebar-w: 240px;
  --max-w:     1200px;
  --pad:       clamp(2rem, 5vw, 5rem);

  /* ── Transitions ─────────────────────────────────────────
     --dur-sm   fast micro-interactions (color, border)
     --dur-md   standard interaction transitions
     --dur-lg   state changes with slight delay
     --dur-xl   scroll reveal animations
     --ease     standard easing
     --ease-out deceleration (scroll reveal)                 */
  --dur-sm:   0.15s;
  --dur-md:   0.18s;
  --dur-lg:   0.20s;
  --dur-xl:   0.70s;
  --ease:     cubic-bezier(0.25, 0.10, 0.25, 1.00);
  --ease-out: cubic-bezier(0.00, 0.00, 0.20, 1.00);
}


/* ─── RESET & ACCESSIBILITY ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--ink-1);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}


/* ============================================================
   SIDEBAR
   ============================================================ */
.sidenav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--cream);
  border-right: 1px solid var(--border);
  border-top: none;
  display: flex;
  flex-direction: column;
  padding: var(--space-4xl) var(--space-2xl);
  z-index: 100;
  overflow-y: auto;
}
.sidenav--scrolled { box-shadow: 2px 0 12px rgba(0,0,0,0.04); }

.sidenav::before,
.sidenav::after { display: none; }

.sidenav__logo {
  display: block;
  margin-bottom: var(--space-sm);
  flex-shrink: 0;
  position: relative;
}
.sidenav__logo::before,
.sidenav__logo::after { display: none; }
.sidenav__logo img { height: 24px; width: auto; }

.sidenav__locale {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: var(--space-4xl);
}

.sidenav__sep {
  height: 1px;
  background: var(--border);
  margin-bottom: var(--space-3xl);
  flex-shrink: 0;
}

.sidenav__group-label {
  display: block;
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--ink-4);
  padding: var(--space-sm) 0.625rem var(--space-xs);
}

.sidenav__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sidenav__link {
  display: block;
  font-size: var(--text-nav);
  font-weight: var(--weight-medium);
  color: var(--ink-3);
  padding: var(--space-sm) 0.625rem;
  border-radius: var(--radius-md);
  border-left: 2px solid transparent;
  transition: color var(--dur-sm) var(--ease), background var(--dur-sm) var(--ease), border-color var(--dur-sm) var(--ease);
}
.sidenav__link:hover, .sidenav__link:focus { color: var(--ink-1); background: var(--sand); }
.sidenav__link.is-active {
  color: var(--ink-1);
  background: var(--accent-bg);
  font-weight: var(--weight-semibold);
  border-left-color: var(--accent);
}

.sidenav__back-arrow {
  display: inline-block;
  font-size: 0.85em;
  opacity: 0.45;
  transition: opacity var(--dur-sm) var(--ease), transform var(--dur-sm) var(--ease);
  transform: translateX(0);
}
.sidenav__link--back:hover .sidenav__back-arrow,
.sidenav__link--back:focus .sidenav__back-arrow {
  opacity: 0.9;
  transform: translateX(-2px);
}

.sidenav__sep-sm {
  height: 1px;
  background: var(--border);
  margin: var(--space-md) 0;
  flex-shrink: 0;
}

.sidenav__email {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--ink-4);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border);
  margin-top: var(--space-xl);
  transition: color var(--dur-sm) var(--ease);
  flex-shrink: 0;
}
.sidenav__email:hover, .sidenav__email:focus { color: var(--accent-read); }

/* ── Mobile menu toggle (hidden on desktop) ─────────────── */
.sidenav__toggle { display: none; }

/* ─── PAGE WRAPPER ─────────────────────────────────────────── */
.page { margin-left: var(--sidebar-w); }


/* ============================================================
   HERO — warm sand background
   ============================================================ */
.hero {
  background: var(--sand);
  padding-top: var(--hero-pt);
  padding-bottom: var(--hero-pb);
}

.hero__headline {
  font-size: var(--text-display);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-heading);
  color: var(--ink-1);
  margin-bottom: var(--section-gap);
  max-width: 18ch;
}

.hero__context {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--ink-3);
  max-width: 54ch;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--accent-read);
  background: var(--accent-bg);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  width: fit-content;
}

.hero__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── Subpage hero — match homepage display weight ────────
   When detail__label / detail__name / detail__stmt appear
   inside .hero on inner pages, promote the headline to
   display size so every landing feels cohesive with home. */
.hero .detail__label {
  margin-bottom: var(--space-2xl);
}

.hero .detail__name {
  font-size: var(--text-display);
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-heading);
  max-width: 20ch;
  margin-bottom: var(--section-gap);
}

.hero .detail__stmt {
  max-width: 54ch;
  margin-bottom: var(--space-4xl);
}


/* ============================================================
   PILLARS — three-column service overview on deep navy
   ============================================================ */
.pillars {
  background: var(--navy);
  padding: clamp(0.5rem, 1vw, 0.75rem) 0;
}

.pillars .container { padding: 0; max-width: none; }

.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--on-dark-divider);
}

.pillar {
  background: var(--navy);
  padding: clamp(2.5rem, 4vw, 3.5rem) var(--pad);
  display: flex;
  flex-direction: column;
  color: var(--on-dark);
  text-decoration: none;
  transition: background var(--dur-lg) var(--ease);
}
.pillar:hover, .pillar:focus { background: var(--navy-light); }

.pillar__num {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  color: var(--accent);
  opacity: 0.5;
  margin-bottom: var(--space-2xl);
}

.pillar__name {
  font-size: var(--text-h3);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-3xl);
}

.pillar__desc {
  font-size: var(--text-md);
  line-height: var(--leading-body);
  color: var(--on-dark-3);
  margin-bottom: var(--space-2xl);
  flex: 1;
}

.pillar__arrow {
  font-size: var(--text-body);
  color: var(--on-dark-5);
  transition: color var(--dur-md) var(--ease), transform var(--dur-md) var(--ease);
}
.pillar:hover .pillar__arrow, .pillar:focus .pillar__arrow { color: var(--accent); transform: translateX(4px); }


/* ============================================================
   DETAIL SECTIONS
   ============================================================ */
.detail {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}
.detail--cream { background: var(--cream); }
.detail--sand  { background: var(--sand); }
.detail--navy  { background: var(--navy); color: var(--on-dark); }

/* ── Section label eyebrow ──────────────────────────────── */
.detail__label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--accent-read);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--accent-read);
}
.detail--navy .detail__label {
  color: var(--accent);
  border-bottom-color: rgba(57,255,20,0.25);
}

/* ── Section heading ────────────────────────────────────── */
.detail__name {
  font-size: var(--text-h1);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-heading);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-3xl);
}

/* ── Statement paragraph ────────────────────────────────── */
.detail__stmt {
  font-size: var(--text-lead);
  font-weight: var(--weight-medium);
  color: var(--ink-2);
  line-height: var(--leading-body-sm);
  max-width: 52ch;
  margin-bottom: var(--space-4xl);
}
.detail--navy .detail__stmt { color: var(--on-dark-2); }

/* ── Body paragraph ─────────────────────────────────────── */
.detail__para {
  font-size: var(--text-lg);
  line-height: var(--leading-loose);
  color: var(--ink-3);
  max-width: 56ch;
  margin-bottom: var(--section-gap);
}
/* When multiple body paragraphs stack consecutively, cancel the
   oversized section-gap bottom margin and replace it with a
   comfortable paragraph gap (matches .founder-narrative gap). */
.detail__para + .detail__para {
  margin-top: calc(var(--space-4xl) - var(--section-gap));
}
.detail__para.para-wide {
  max-width: 64ch;
}
.detail__para.mt-lg {
  margin-top: var(--space-4xl);
}

/* ── Utility: margin-top large ──────────────────────────── */
.mt-lg { margin-top: var(--space-4xl); }
.detail--navy .detail__para { color: var(--on-dark-3); }

/* ── Single action link ─────────────────────────────────── */
.detail__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  color: var(--accent-read);
  transition: gap var(--dur-md) var(--ease);
}
.detail__link:hover, .detail__link:focus { gap: var(--space-3xl); }
.detail--navy .detail__link { color: var(--accent); }

/* ── Service links list ─────────────────────────────────── */
.slinks { border-top: 1px solid var(--border); max-width: 580px; }
.detail--navy .slinks { border-top-color: var(--on-dark-border); }

.slinks__item { border-bottom: 1px solid var(--border); }
.detail--navy .slinks__item { border-bottom-color: var(--on-dark-border); }

.slinks__link {
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
  padding: var(--space-2xl) var(--space-2xs) var(--space-2xl) 0;
  color: var(--ink-1);
  transition: padding-left var(--dur-md) var(--ease);
}
.detail--navy .slinks__link { color: var(--on-dark); }
.slinks__link:hover, .slinks__link:focus { padding-left: 0.625rem; }
.slinks__link:hover .slinks__arr, .slinks__link:focus .slinks__arr { transform: translateX(4px); color: var(--accent-read); }
.detail--navy .slinks__link:hover .slinks__arr, .detail--navy .slinks__link:focus .slinks__arr { color: var(--accent); }

.slinks__name {
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-normal);
  flex: 1;
}

.slinks__badge {
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--accent-read);
  background: var(--accent-bg);
  padding: 0.3125rem 0.625rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
}

.slinks__arr {
  font-size: var(--text-body);
  color: var(--ink-4);
  flex-shrink: 0;
  transition: transform var(--dur-md) var(--ease), color var(--dur-md) var(--ease);
}
.detail--navy .slinks__arr { color: var(--on-dark-5); }


/* ============================================================
   DETAIL SUB-SECTION (products within Build)
   ============================================================ */
.detail__sub {
  margin-top: var(--section-gap);
  padding-top: var(--section-gap);
  border-top: 1px solid var(--border);
}
.detail--navy .detail__sub { border-top-color: var(--on-dark-border); }

.detail__sub-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: var(--space-3xl);
}


/* ============================================================
   TESTIMONIAL — warm cream, editorial pull-quote feel
   ============================================================ */
.testimonial {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
  background: var(--cream);
}
.testimonial .container { max-width: 860px; }

.testimonial blockquote {
  border-left: 3px solid var(--accent);
  padding-left: clamp(1.5rem, 3vw, 2.5rem);
}

.testimonial__quote {
  font-size: var(--text-h4);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-normal);
  color: var(--ink-3);
  margin-bottom: var(--section-gap);
}

.testimonial__source cite {
  display: block;
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  color: var(--ink-1);
  font-style: normal;
  letter-spacing: var(--tracking-normal);
}

.testimonial__project {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--ink-4);
  margin-top: var(--space-sm);
}


/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.products__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.pcard {
  background: var(--navy);
  color: var(--on-dark);
  padding: clamp(2.25rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.pcard::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
}

@media (max-width: 768px) {
  .pcard::before { display: none; }
}

.pcard__domain {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--on-dark-4);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.pcard__name {
  font-size: var(--text-product);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-heading);
  line-height: var(--leading-none);
  margin-bottom: 0.625rem;
}

.pcard__tagline {
  font-size: var(--text-md);
  color: var(--on-dark-3);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  line-height: var(--leading-body-sm);
}

.pcard__desc {
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
  color: var(--on-dark-3);
  margin-bottom: clamp(2rem, 3.5vw, 3rem);
  flex: 1;
}

.pcard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: auto;
}

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: var(--text-nav);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--dur-md) var(--ease);
  white-space: nowrap;
  padding: 0.8125rem 1.625rem;
}
.btn--solid {
  background: var(--accent);
  color: var(--navy);
  border: 1px solid var(--accent);
}
.btn--solid:hover, .btn--solid:focus { background: var(--accent-h); border-color: var(--accent-h); }

.btn--ghost {
  background: transparent;
  color: var(--on-dark-3);
  border: 1px solid var(--on-dark-border-strong);
}
.btn--ghost:hover, .btn--ghost:focus {
  color: var(--on-dark);
  border-color: rgba(255,255,255,0.25);
  background: var(--on-dark-surface);
}


/* ============================================================
   CTA — deep navy
   ============================================================ */
.cta {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
  background: var(--navy);
  color: var(--on-dark);
}
.cta .container {
  display: grid;
  grid-template-columns: 1fr max-content;
  gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
}

.cta__eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--on-dark-4);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--on-dark-border-strong);
}

.cta__title {
  font-size: var(--text-h2);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-heading);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-lg);
}

.cta__sub {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--on-dark-3);
  max-width: 44ch;
}

.cta__action {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: stretch;
  min-width: 210px;
}

.cta__email {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--navy);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-2xl);
  text-align: center;
  transition: background var(--dur-md) var(--ease), border-color var(--dur-md) var(--ease);
}
.cta__email:hover, .cta__email:focus { background: var(--accent-h); border-color: var(--accent-h); }

.cta__about-link {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--on-dark-4);
  text-align: center;
  transition: color var(--dur-md);
}
.cta__about-link:hover, .cta__about-link:focus { color: var(--on-dark-2); }


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-deep);
  padding-top: var(--section-py-sm);
  padding-bottom: clamp(2rem, 3.5vw, 3rem);
  border-top: 1px solid var(--on-dark-surface);
  color: var(--on-dark);
}

.footer-body {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 6rem);
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--on-dark-divider);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.footer-brand__name {
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-snug);
  margin-bottom: var(--space-md);
}
.footer-brand__desc {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--on-dark-3);
  max-width: 34ch;
  margin-bottom: var(--space-2xl);
}
.footer-brand__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--accent);
}
.footer-brand__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.footer-col__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--on-dark-5);
  margin-bottom: var(--space-xl);
}
.footer-col__label--mt {
  display: block;
  margin-top: 1.75rem;
}
.footer-col__links { display: flex; flex-direction: column; gap: var(--space-3xl); }
.footer-col__links a {
  font-size: var(--text-md);
  color: var(--on-dark-3);
  transition: color var(--dur-md);
}
.footer-col__links a:hover, .footer-col__links a:focus { color: var(--on-dark-2); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
}
.footer-bottom__copy { font-size: var(--text-caption); color: var(--on-dark-6); }
.footer-bottom__links { display: flex; gap: var(--space-3xl); }
.footer-bottom__links a {
  font-size: var(--text-caption);
  color: var(--on-dark-6);
  transition: color var(--dur-md);
}
.footer-bottom__links a:hover, .footer-bottom__links a:focus { color: var(--on-dark-4); }


/* ============================================================
   SCROLL REVEAL — Progressive Enhancement
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  html.js .js-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity var(--dur-xl) var(--ease-out), transform var(--dur-xl) var(--ease-out);
  }
  html.js .js-reveal.is-visible { opacity: 1; transform: none; }
  html.js .js-reveal-d1 { transition-delay: 0.1s; }
  html.js .js-reveal-d2 { transition-delay: 0.2s; }
}

html.reduced-motion .js-reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Modern focus styles — keyboard users only */
:focus:not(:focus-visible) { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1080px) {
  :root { --sidebar-w: 210px; }
}

@media (max-width: 960px) {
  :root { --sidebar-w: 195px; }
}

@media (max-width: 768px) {
  .sidenav {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    border-right: none;
    border-bottom: 1px solid var(--border);
    overflow: visible;
    background: rgba(253,252,249,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    box-shadow: none !important;
  }
  .sidenav::before,
  .sidenav::after { display: none; }
  .sidenav__logo { margin-bottom: 0; }

  /* ── Hamburger toggle ──────────────────────────────────── */
  .sidenav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 36px;
    height: 36px;
    padding: 8px 6px;
    border-radius: var(--radius-md);
    transition: background var(--dur-sm) var(--ease);
  }
  .sidenav__toggle:hover,
  .sidenav__toggle:focus-visible { background: var(--sand); }
  .sidenav__toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ink-2);
    border-radius: 1px;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
  }
  /* Animate to X when open */
  .sidenav.is-open .sidenav__toggle-bar:first-child {
    transform: translateY(4px) rotate(45deg);
  }
  .sidenav.is-open .sidenav__toggle-bar:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  /* ── Collapsible body (hidden by default on mobile) ────── */
  .sidenav__body {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border);
    margin-top: var(--space-lg);
  }
  .sidenav.is-open .sidenav__body {
    display: flex;
  }

  /* Show nav items inside mobile drawer */
  .sidenav.is-open .sidenav__nav { display: flex; }
  .sidenav.is-open .sidenav__group-label { display: block; }
  .sidenav.is-open .sidenav__sep-sm { display: block; }
  .sidenav.is-open .sidenav__locale { display: none; }
  .sidenav.is-open .sidenav__sep { display: none; }

  /* Hide items that only show in desktop or closed state */
  .sidenav__locale,
  .sidenav__sep,
  .sidenav__nav,
  .sidenav__group-label,
  .sidenav__sep-sm { display: none; }

  .sidenav__email {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
    margin-top: var(--space-lg);
    font-size: var(--text-caption);
  }

  .page { margin-left: 0; }

  .hero {
    padding-top: clamp(3rem, 8vw, 5rem);
    padding-bottom: clamp(3rem, 7vw, 4.5rem);
  }
  .hero__headline { max-width: none; }
  .hero .detail__name { max-width: none; }

  .pillars__grid { grid-template-columns: 1fr; }

  .products__grid { grid-template-columns: 1fr; }
  .pcard__actions { flex-direction: column; }
  .pcard__actions .btn { justify-content: center; }

  .cta .container { grid-template-columns: 1fr; gap: 3rem; }
  .cta__action { flex-direction: row; flex-wrap: wrap; }
  .cta__email, .cta__about-link { flex: 1; min-width: 140px; }

  .footer-body { grid-template-columns: 1fr; gap: var(--space-5xl); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .slinks__badge { display: none; }
}

@media (max-width: 480px) {
  .cta__action { flex-direction: column; }
  .cta__email, .cta__about-link { width: 100%; min-width: unset; }

  .hero__headline { font-size: clamp(2rem, 8vw, 2.75rem); }
}

/* ============================================================
   PAGE-SPECIFIC COMPONENTS - CONSOLIDATED
   ============================================================ */

/* ─── STATS GRID (from about.html) ───────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  margin-top: var(--section-gap);
  max-width: 540px;
}
.stat-item {
  border-top: 1px solid var(--on-dark-border);
  padding-top: var(--space-2xl);
}
.stat-item__value {
  font-size: var(--text-h3);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  color: var(--on-dark);
  line-height: var(--leading-snug);
}
.stat-item__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--on-dark-4);
  margin-top: var(--space-sm);
}

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

/* ─── PRINCIPLES LIST (from about.html) ───────────────────── */
.principles-list {
  margin-top: var(--section-gap);
  display: flex;
  flex-direction: column;
  gap: var(--space-4xl);
  max-width: 640px;
}
.principle__num {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--accent-read);
  margin-bottom: var(--space-sm);
}
.principle__name {
  font-size: var(--text-h4);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  color: var(--ink-1);
  margin-bottom: var(--space-md);
}
.principle__desc {
  font-size: var(--text-md);
  line-height: var(--leading-body);
  color: var(--ink-3);
}

/* ─── BELIEF LIST (from ai-policy.html) ───────────────────── */
.belief-list {
  margin-top: var(--section-gap);
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 680px;
  border-top: 1px solid var(--border);
}
.belief {
  border-bottom: 1px solid var(--border);
  padding: var(--space-4xl) 0;
}
.belief__num {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--accent-read);
  margin-bottom: var(--space-sm);
}
.belief__title {
  font-size: var(--text-h4);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  color: var(--ink-1);
  margin-bottom: var(--space-lg);
  line-height: var(--leading-snug);
}
.belief__desc {
  font-size: var(--text-md);
  line-height: var(--leading-body);
  color: var(--ink-3);
  max-width: 56ch;
}

/* ─── POLICY COLUMNS (from ai-policy.html) ─────────────────── */
.policy-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  margin-top: var(--section-gap);
  max-width: 680px;
}
.policy-col__title {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--border);
}
.policy-col--do .policy-col__title {
  color: var(--accent-read);
  border-bottom-color: var(--accent-read);
}
.policy-col--dont .policy-col__title {
  color: var(--ink-4);
}
.policy-col__items {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}
.policy-col__item {
  font-size: var(--text-md);
  line-height: var(--leading-body);
  color: var(--ink-3);
  padding-left: var(--space-lg);
  position: relative;
}
.policy-col--do .policy-col__item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-read);
  font-weight: var(--weight-semibold);
}
.policy-col--dont .policy-col__item::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: var(--ink-4);
}

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

/* ─── GOVERNANCE TABLE (from ai-policy.html) ────────────────── */
.gov-table {
  width: 100%;
  max-width: 680px;
  border-top: 1px solid var(--border);
  margin-top: var(--section-gap);
}
.gov-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-2xl);
  padding: var(--space-3xl) 0;
  border-bottom: 1px solid var(--border);
}
.gov-row__principle {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--ink-1);
}
.gov-row__meaning {
  font-size: var(--text-md);
  line-height: var(--leading-body);
  color: var(--ink-3);
}

@media (max-width: 600px) {
  .gov-row { grid-template-columns: 1fr; gap: var(--space-sm); }
}
/* ─── POLICY SECTIONS (from engagement-policy.html) ───────────── */
.policy-sections {
  margin-top: var(--section-gap);
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
}
.policy-section {
  border-top: 1px solid var(--border);
  padding: var(--space-4xl) 0;
}
.policy-section:last-child {
  border-bottom: 1px solid var(--border);
}
.detail--navy .policy-section {
  border-top-color: var(--on-dark-border);
}
.detail--navy .policy-section:last-child {
  border-bottom-color: var(--on-dark-border);
}
.policy-section__num {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--accent-read);
  margin-bottom: var(--space-sm);
}
.detail--navy .policy-section__num {
  color: var(--on-dark-5);
}
.policy-section__title {
  font-size: var(--text-h4);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  color: var(--ink-1);
  margin-bottom: var(--space-lg);
  line-height: var(--leading-snug);
}
.detail--navy .policy-section__title {
  color: var(--on-dark);
}
.policy-section__desc {
  font-size: var(--text-md);
  line-height: var(--leading-body);
  color: var(--ink-3);
  margin-bottom: var(--space-lg);
  max-width: 56ch;
}
.detail--navy .policy-section__desc {
  color: var(--on-dark-3);
}
.policy-section__why {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: var(--space-sm);
}
.detail--navy .policy-section__why {
  color: var(--on-dark-5);
}
.policy-section__why-text {
  font-size: var(--text-sm);
  line-height: var(--leading-body);
  color: var(--ink-3);
}
.detail--navy .policy-section__why-text {
  color: var(--on-dark-4);
}

/* ─── RESCUE PHASES (from fix.html) ───────────────────────── */
.rescue-phases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3xl);
  margin-top: var(--section-gap);
  max-width: 860px;
}
.rescue-phase {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-2xl);
  background: var(--on-dark-surface);
  border-radius: var(--radius-md);
  border-top: 2px solid var(--accent);
}
.rescue-phase__num {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--on-dark-5);
}
.rescue-phase__name {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--on-dark);
  line-height: 1.2;
}
.rescue-phase__desc {
  font-size: var(--text-md);
  line-height: var(--leading-body);
  color: var(--on-dark-3);
}
@media (max-width: 768px) {
  .rescue-phases {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .rescue-phase {
    padding: var(--space-xl);
  }
}

/* ─── JOURNEY STEPS (from transform-disrupt-tomorrow.html) ───── */
.journey {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--section-gap);
  max-width: 700px;
}
.journey-step {
  border-top: 1px solid var(--on-dark-border);
  padding: var(--space-4xl) 0;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-2xl);
}
.journey-step:last-child {
  border-bottom: 1px solid var(--on-dark-border);
}
.journey-step__num {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
  padding-top: 0.3em;
}
.journey-step__title {
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  color: var(--on-dark);
  margin-bottom: var(--space-md);
}
.journey-step__desc {
  font-size: var(--text-md);
  line-height: var(--leading-body);
  color: var(--on-dark-3);
}
@media (max-width: 600px) {
  .journey-step { grid-template-columns: 1fr; gap: var(--space-sm); }
}

/* ─── CUSTOM TABLE (from transform-disrupt-tomorrow.html) ────── */
.custom-table {
  width: 100%;
  max-width: 640px;
  border-top: 1px solid var(--border);
  margin-top: var(--section-gap);
}
.custom-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--space-2xl);
  padding: var(--space-3xl) 0;
  border-bottom: 1px solid var(--border);
}
.custom-row__el {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--ink-1);
}
.custom-row__what {
  font-size: var(--text-md);
  line-height: var(--leading-body);
  color: var(--ink-3);
}
@media (max-width: 600px) {
  .custom-row { grid-template-columns: 1fr; gap: var(--space-sm); }
}

/* ─── FAQ LIST (from transform-disrupt-tomorrow.html) ────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--section-gap);
  max-width: 680px;
}
.faq-item {
  border-top: 1px solid var(--on-dark-border);
  padding: var(--space-4xl) 0;
}
.faq-item:last-child {
  border-bottom: 1px solid var(--on-dark-border);
}
.faq-item__q {
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  color: var(--on-dark);
  margin-bottom: var(--space-lg);
}
.faq-item__a {
  font-size: var(--text-md);
  line-height: var(--leading-body);
  color: var(--on-dark-3);
  max-width: 54ch;
}

/* ─── BADGE GROUP (from transform-disrupt-tomorrow.html) ────────── */
.badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  margin-top: var(--space-4xl);
}

.badge {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--ink-4);
  background: var(--cream);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
}

.badge--accent {
  color: var(--accent-read);
  background: var(--accent-bg);
}

/* ─── BEFORE/AFTER SHOWCASE (from build-corprompt.html) ──────── */
.before-after {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-2xl);
  margin-top: var(--section-gap);
  max-width: 700px;
  align-items: start;
}
.ba-col__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}
.ba-col--before .ba-col__label { color: var(--on-dark-5); }
.ba-col--after .ba-col__label { color: var(--accent); }
.ba-prompt {
  background: var(--navy-light);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
  border: 1px solid var(--on-dark-border);
}
.ba-prompt__text {
  font-size: var(--text-md);
  line-height: var(--leading-body);
  color: var(--on-dark-3);
  font-family: monospace;
}
.ba-arrow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-size: var(--text-h3);
  color: var(--accent);
  padding-top: calc(var(--space-4xl) + var(--space-lg));
}

/* ─── STEPS GRID (from build-corprompt.html) ─────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4xl);
  margin-top: var(--section-gap);
  max-width: 680px;
}
.step__num {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--accent-read);
  margin-bottom: var(--space-lg);
}
.step__title {
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  color: var(--ink-1);
  margin-bottom: var(--space-md);
}
.step__desc {
  font-size: var(--text-md);
  line-height: var(--leading-body);
  color: var(--ink-3);
}

/* ─── FEATURES GRID (from build-corprompt.html) ──────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4xl);
  margin-top: var(--section-gap);
  max-width: 700px;
}
.feature {
  border-top: 1px solid var(--on-dark-border);
  padding-top: var(--space-3xl);
}
.feature__title {
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  color: var(--on-dark);
  margin-bottom: var(--space-md);
}
.feature__desc {
  font-size: var(--text-md);
  line-height: var(--leading-body);
  color: var(--on-dark-3);
}

/* ─── TRUST LIST (from build-corprompt.html) ─────────────────── */
.trust-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
  margin-top: var(--section-gap);
  max-width: 600px;
}
.trust-item {
  display: flex;
  gap: var(--space-lg);
}
.trust-item__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-read);
  flex-shrink: 0;
  margin-top: 0.45em;
}
.trust-item__text {
  font-size: var(--text-md);
  line-height: var(--leading-body);
  color: var(--ink-3);
}
.trust-item__text strong {
  color: var(--ink-1);
  font-weight: var(--weight-semibold);
}

/* ─── BUILD TYPES (from build-custom-solutions.html) ─────────── */
.build-types {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4xl);
  margin-top: var(--section-gap);
  max-width: 720px;
}
.build-type {
  border-top: 1px solid var(--border);
  padding-top: var(--space-3xl);
}
.build-type__title {
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  color: var(--ink-1);
  margin-bottom: var(--space-lg);
}
.build-type__desc {
  font-size: var(--text-md);
  line-height: var(--leading-body);
  color: var(--ink-3);
  margin-bottom: var(--space-lg);
}

/* ─── PROCESS STEPS (from build-custom-solutions.html) ────────── */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--section-gap);
  max-width: 680px;
}
.process-step {
  border-top: 1px solid var(--on-dark-border);
  padding: var(--space-4xl) 0;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-2xl);
}
.process-step:last-child {
  border-bottom: 1px solid var(--on-dark-border);
}
.process-step__num {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
  padding-top: 0.3em;
}
.process-step__title {
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  color: var(--on-dark);
  margin-bottom: var(--space-md);
}
.process-step__desc {
  font-size: var(--text-md);
  line-height: var(--leading-body);
  color: var(--on-dark-3);
  max-width: 52ch;
}

/* ─── DIFF COMPARISON (from build-custom-solutions.html) ──────── */
.diff-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--space-4xl);
  max-width: 720px;
  margin-top: var(--section-gap);
}
.diff-col-head {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  padding-bottom: var(--space-lg);
  border-bottom: 2px solid var(--border);
  margin-bottom: var(--space-3xl);
}
.diff-col-head--us {
  color: var(--accent-read);
  border-bottom-color: var(--accent-read);
}
.diff-col-head--them {
  color: var(--ink-4);
}
.diff-item {
  font-size: var(--text-md);
  line-height: var(--leading-body);
  padding: var(--space-3xl) 0;
  border-bottom: 1px solid var(--border);
}
.diff-item--us {
  color: var(--ink-2);
}
.diff-item--them {
  color: var(--ink-4);
}

/* ─── SOVEREIGNTY TABLE (from build-formna.html) ─────────────── */
.sovereignty-table {
  width: 100%;
  max-width: 680px;
  border-top: 1px solid var(--border);
  margin-top: var(--section-gap);
}
.sov-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-2xl);
  padding: var(--space-3xl) 0;
  border-bottom: 1px solid var(--border);
}
.sov-row__benefit {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--ink-1);
}
.sov-row__means {
  font-size: var(--text-md);
  line-height: var(--leading-body);
  color: var(--ink-3);
}
.detail--navy .sovereignty-table { border-top-color: var(--on-dark-border); }
.detail--navy .sov-row { border-bottom-color: var(--on-dark-border); }
.detail--navy .sov-row__benefit { color: var(--on-dark); }
.detail--navy .sov-row__means { color: var(--on-dark-3); }

/* ─── COMPONENT LIST (from transform-innovation-programs.html) ── */
.component-list {
  margin-top: var(--section-gap);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4xl);
  max-width: 700px;
}
.component {
  border-top: 1px solid var(--on-dark-border);
  padding-top: var(--space-3xl);
}
.component__title {
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  color: var(--on-dark);
  margin-bottom: var(--space-lg);
}
.component__desc {
  font-size: var(--text-md);
  line-height: var(--leading-body);
  color: var(--on-dark-3);
}

/* ─── FORMAT TABLE (from transform-innovation-programs.html) ──── */
.format-table {
  width: 100%;
  max-width: 680px;
  border-top: 1px solid var(--border);
  margin-top: var(--section-gap);
}
.format-row {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: var(--space-2xl);
  padding: var(--space-4xl) 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.format-row__name {
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  color: var(--ink-1);
}
.format-row__duration {
  font-size: var(--text-md);
  color: var(--ink-4);
}
.format-row__best {
  font-size: var(--text-md);
  line-height: var(--leading-body);
  color: var(--ink-3);
}

/* ─── COMPARISON TABLE (from transform-innovation-programs.html) ─ */
.comparison {
  max-width: 680px;
  margin-top: var(--section-gap);
  border-top: 1px solid var(--border);
}
.comparison-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-lg);
  padding: var(--space-2xl) 0;
  border-bottom: 1px solid var(--border);
}
.comparison-header__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--ink-4);
}
.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-lg);
  padding: var(--space-3xl) 0;
  border-bottom: 1px solid var(--border);
}
.comparison-row__key {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--ink-1);
}
.comparison-row__val {
  font-size: var(--text-md);
  line-height: var(--leading-body);
  color: var(--ink-3);
}

/* ─── ADVISORY LIST (from transform-technology-strategy-advisory.html) ── */
.advisory-list {
  margin-top: var(--section-gap);
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 680px;
  border-top: 1px solid var(--border);
}
.advisory-item {
  border-bottom: 1px solid var(--border);
  padding: var(--space-4xl) 0;
}
.advisory-item__title {
  font-size: var(--text-h4);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  color: var(--ink-1);
  margin-bottom: var(--space-lg);
  line-height: var(--leading-snug);
}
.advisory-item__desc {
  font-size: var(--text-md);
  line-height: var(--leading-body);
  color: var(--ink-3);
  max-width: 54ch;
}

/* ─── APPROACH STEPS (from transform-technology-strategy-advisory.html) ── */
.approach-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--section-gap);
  max-width: 680px;
}
.approach-step {
  border-top: 1px solid var(--on-dark-border);
  padding: var(--space-3xl) 0;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-2xl);
}
.approach-step:last-child {
  border-bottom: 1px solid var(--on-dark-border);
}
.approach-step__num {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
  padding-top: 0.3em;
}
.approach-step__title {
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  color: var(--on-dark);
  margin-bottom: var(--space-md);
}
.approach-step__desc {
  font-size: var(--text-md);
  line-height: var(--leading-body);
  color: var(--on-dark-3);
  max-width: 52ch;
}

/* ─── TAG GRID — reusable labelled tile grid ─────────────────
   Use for categorised feature sets, failure causes, capability
   tags, or any set of discrete labelled items.
   On .detail--navy: tiles use on-dark surfaces automatically.  */
.tag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--section-gap);
}
.tag {
  background: var(--sand);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl);
  border-top: 2px solid var(--accent-read);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.tag__title {
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-normal);
  color: var(--ink-1);
}
.tag__desc {
  font-size: var(--text-md);
  line-height: var(--leading-body);
  color: var(--ink-3);
}
.detail--navy .tag {
  background: var(--on-dark-surface);
  border-color: var(--on-dark-border);
  border-top-color: var(--accent);
}
.detail--navy .tag__title { color: var(--on-dark); }
.detail--navy .tag__desc  { color: var(--on-dark-3); }

@media (max-width: 900px) {
  .tag-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .tag-grid { grid-template-columns: 1fr; }
}

/* ─── PRODUCT SCREENSHOT — overlapping hero/section bridge ───── */
.hero--product {
  padding-bottom: calc(var(--hero-pb) + clamp(2rem, 5vw, 4rem));
}

.product-shot {
  position: relative;
  z-index: 2;
  background: none;
  margin-top: clamp(-8rem, -9vw, -4rem);
  margin-bottom: clamp(-8rem, -8vw, -3rem);
  padding: 0 var(--pad);
  pointer-events: none;
}

.product-shot__img {
  display: block;
  width: 90%;
  max-width: 1040px;
  margin: 0 auto;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .hero--product { padding-bottom: var(--hero-pb); }
  .product-shot { display: none; }
}

/* ─── RESPONSIVE: PAGE-SPECIFIC COMPONENTS ───────────────────── */
@media (max-width: 680px) {
  .format-row { grid-template-columns: 1fr; gap: var(--space-sm); }
}

@media (max-width: 600px) {
  .before-after { grid-template-columns: 1fr; }
  .ba-arrow { display: none; }
  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .build-types { grid-template-columns: 1fr; }
  .process-step { grid-template-columns: 1fr; gap: var(--space-sm); }
  .diff-comparison { grid-template-columns: 1fr; }
  .sov-row { grid-template-columns: 1fr; gap: var(--space-sm); }
  .component-list { grid-template-columns: 1fr; }
  .comparison-header, .comparison-row { grid-template-columns: 1fr; }
  .approach-step { grid-template-columns: 1fr; gap: var(--space-sm); }
}


/* ============================================================
   SECTION NAV & PHP-PAGE COMPONENTS
   ============================================================ */

/* ─── SECTION NAV ─────────────────────────────────────────── */
.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  border-bottom: 1px solid var(--border);
  padding: var(--space-lg) var(--pad);
  background: var(--sand);
}
.section-nav__item {
  font-size: var(--text-nav);
  font-weight: var(--weight-medium);
  color: var(--ink-3);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-md);
  transition: color var(--dur-sm) var(--ease), background var(--dur-sm) var(--ease);
}
.section-nav__item:hover {
  background: var(--cream);
  color: var(--ink-1);
}
.section-nav__item.is-active {
  background: var(--accent-bg);
  color: var(--accent-read);
  font-weight: var(--weight-semibold);
}

/* ─── FOUNDER NARRATIVE ───────────────────────────────────── */
.founder-narrative {
  max-width: 56ch;
  display: flex;
  flex-direction: column;
  gap: var(--space-4xl);
}
.founder-narrative .detail__para {
  color: var(--on-dark-3);
  margin-bottom: 0;
}

/* ─── VERIFICATION BLOCK ─────────────────────────────────── */
.verification {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3xl);
  margin-top: var(--section-gap);
}
.verification__seal {
  flex-shrink: 0;
  width: 240px;
  height: auto;
}
.verification__text {
  font-size: var(--text-lg);
  line-height: var(--leading-loose);
  color: var(--ink-3);
  max-width: 50ch;
  margin-bottom: var(--space-2xl);
}
.verification .detail__link {
  color: var(--accent-read);
}
.detail--navy .verification__text {
  color: var(--on-dark-3);
}
.detail--navy .verification .detail__link {
  color: var(--accent);
}
@media (max-width: 600px) {
  .verification {
    flex-direction: column;
    gap: var(--space-2xl);
  }
  .verification__seal {
    width: 160px;
  }
}

/* ─── ETHOS PAGE LINKS (light background variant) ─────────── */
.ethos-page-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: var(--section-gap);
}
.ethos-page-links .detail__link {
  color: var(--accent-read);
}

/* ─── COMPACT DETAIL SECTION ─────────────────────────────── */
.detail--compact {
  padding-top: var(--section-py-sm);
  padding-bottom: var(--section-py-sm);
}
.detail--compact .detail__name {
  font-size: var(--text-h3);
}

/* ─── PAST PARTICIPANTS (logo trust bar) ──────────────────── */
.past-participants {
  background: var(--navy);
  padding: var(--section-py-sm) 0;
}
.past-participants__inner {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
  flex-wrap: wrap;
}
.past-participants__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--on-dark-5);
  flex-shrink: 0;
}
.past-participants__logos {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
  flex: 1;
}
.past-participants__logo {
  height: clamp(32px, 4.5vw, 52px);
  width: auto;
  filter: grayscale(1) invert(1);
  opacity: 0.55;
  transition: opacity var(--dur-md) var(--ease);
}
.past-participants__logo:hover {
  opacity: 0.75;
}
.past-participants__note {
  font-size: var(--text-sm);
  color: var(--on-dark-5);
  line-height: var(--leading-body-sm);
  margin-left: auto;
  flex-shrink: 0;
  max-width: 28ch;
  text-align: right;
}
@media (max-width: 768px) {
  .past-participants {
    padding: var(--space-8xl) 0;
  }
  .past-participants__inner {
    flex-direction: column;
    align-items: center;
    gap: var(--space-3xl);
    text-align: center;
  }
  .past-participants__logos {
    gap: clamp(1.5rem, 6vw, 2.5rem);
    flex-wrap: wrap;
    justify-content: center;
  }
  .past-participants__logo {
    height: clamp(28px, 8vw, 42px);
  }
  .past-participants__note {
    margin-left: 0;
    text-align: center;
    max-width: 36ch;
  }
}

