/* ============================================================
   EFFA ETTAH — Editorial Intelligence Edition
   1. Variables
   2. Reset
   3. Utilities
   4. Typography
   5. Layout
   6. Navigation
   7. Hero
   8. Sections
   9. Components
   10. Cards (reserved)
   11. Forms (reserved)
   12. Footer
   13. Mobile Drawer
   14. Back to Top
   15. Animations
   16. Responsive
   17. Print
   ============================================================ */

/* ============================================================
   1. VARIABLES
   ============================================================ */
:root {
  /* Brand */
  --green: #1ac71a;
  --terracotta: #d99663;
  --ink: #101010;
  --white: #ffffff;

  /* Surfaces */
  --surface: #f7f7f4;
  --surface-warm: #f5f2eb;
  --surface-ink: #0a0a0a;

  /* Grid — deliberately quiet */
  --grid-hero: rgba(16, 16, 16, 0.035);
  --grid-dark: rgba(255, 255, 255, 0.022);
  --grid-whisper: rgba(16, 16, 16, 0.018);

  /* Rules */
  --rule: rgba(16, 16, 16, 0.14);
  --rule-strong: rgba(16, 16, 16, 0.24);
  --rule-dark: rgba(255, 255, 255, 0.14);

  /* Ink */
  --ink-soft: rgba(16, 16, 16, 0.64);
  --ink-mute: rgba(16, 16, 16, 0.44);

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;

  --fs-micro: clamp(0.68rem, 0.62rem + 0.22vw, 0.76rem);
  --fs-small: clamp(0.82rem, 0.78rem + 0.2vw, 0.9rem);
  --fs-body: clamp(1rem, 0.94rem + 0.3vw, 1.1rem);
  --fs-lede: clamp(1.15rem, 1.02rem + 0.65vw, 1.45rem);
  --fs-h3: clamp(1.2rem, 1.05rem + 0.75vw, 1.55rem);
  --fs-h2: clamp(2rem, 1.2rem + 3vw, 3.6rem);
  --fs-h1: clamp(3.5rem, 6.4vw, 6.8rem);
  --fs-display: clamp(2.4rem, 1.2rem + 4.8vw, 5rem);
  --fs-manifesto: clamp(3.4rem, 7vw, 8.5rem);
  --fs-mega: clamp(3.5rem, 1rem + 9vw, 10rem);

  /* Layout */
  --container: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section-y: clamp(5rem, 9vw, 9rem);

  --radius-sm: 3px;
  --radius: 4px;
  --radius-pill: 999px;

  /* Header */
  --header-h: 80px;
  --header-h-scrolled: 68px;
  --header-h-mobile: 64px;

  /* Logo */
  --logo-w: 220px;
  --logo-w-scrolled: 190px;
  --logo-w-mobile: 150px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 220ms;
  --dur-slow: 520ms;
  --dur-slower: 760ms;

  /* Shadows */
  --shadow-header: 0 1px 0 rgba(16, 16, 16, 0.08), 0 10px 30px rgba(16, 16, 16, 0.06);
  --shadow-portrait: 0 4px 14px rgba(16, 16, 16, 0.06), 0 24px 55px rgba(16, 16, 16, 0.12);
  --shadow-glow: 0 8px 24px rgba(26, 199, 26, 0.22);
  --shadow-glow-strong: 0 12px 36px rgba(26, 199, 26, 0.32);
}

/* ============================================================
   2. RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.drawer-open { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; letter-spacing: -0.025em; line-height: 1.08; }
p { margin: 0 0 1rem; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 2px; }
::selection { background: var(--green); color: var(--white); }

/* ============================================================
   3. UTILITIES
   ============================================================ */
.skip-link {
  position: absolute; top: -60px; left: 1rem; z-index: 200;
  padding: 0.6rem 1rem; background: var(--ink); color: var(--white);
  border-radius: var(--radius-sm); transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 1rem; }

.section-label {
  display: inline-flex; align-items: baseline; gap: 0.65rem;
  font-size: var(--fs-micro); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute); margin: 0 0 1.75rem; font-weight: 600;
  font-family: var(--font-sans); padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
}
.label-num { color: var(--green); font-weight: 700; font-feature-settings: 'tnum'; }

.section-head { max-width: 900px; margin: 0 0 clamp(3rem, 6vw, 5rem); }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }

.section-title {
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin: 0 0 1.25rem;
  color: var(--ink);
}

.section-intro {
  font-size: var(--fs-lede); color: var(--ink-soft);
  max-width: 62ch; font-family: var(--font-serif); line-height: 1.4;
}
.section-lede {
  font-size: var(--fs-lede); color: var(--ink-soft);
  max-width: 68ch; margin: 0 0 2rem;
  font-family: var(--font-serif); line-height: 1.4;
}
.section-note {
  color: var(--ink-soft); max-width: 70ch;
  margin-top: 2.5rem; padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}
.section-note-emph {
  font-size: var(--fs-lede); color: var(--ink);
  font-family: var(--font-serif); font-style: italic;
}
.muted { color: var(--ink-soft); font-size: var(--fs-small); }

.accent { color: var(--green); font-style: italic; }
.accent-terra { color: var(--terracotta); font-style: italic; }

/* Oversized architectural section numerals */
.section-number {
  position: absolute;
  top: clamp(2rem, 4vw, 4rem);
  right: var(--gutter);
  font-family: var(--font-serif);
  font-size: clamp(6rem, 13vw, 13rem);
  line-height: 0.72;
  letter-spacing: -0.08em;
  color: rgba(16, 16, 16, 0.035);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.positioning .section-number,
.contact .section-number {
  color: rgba(255, 255, 255, 0.045);
}

/* ============================================================
   4. TYPOGRAPHY — graphic treatments
   ============================================================ */
.mask-text {
  display: inline-block;
  color: transparent;
  background-image:
    linear-gradient(135deg, var(--ink) 0%, var(--ink) 48%, var(--green) 100%),
    linear-gradient(rgba(16,16,16,0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,16,16,0.16) 1px, transparent 1px);
  background-size: 100% 100%, 12px 12px, 12px 12px;
  background-position: 0 0, 0 0, 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.positioning .mask-text {
  background-image:
    linear-gradient(135deg, #ffffff 0%, #ffffff 48%, var(--green) 100%),
    linear-gradient(rgba(255,255,255,0.20) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.20) 1px, transparent 1px);
  background-size: 100% 100%, 10px 10px, 10px 10px;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Giant architectural type utility */
.giant-type {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: clamp(3rem, 8vw, 8rem) 0;
}
.giant-type span {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(5rem, 15vw, 15rem);
  line-height: 0.72;
  letter-spacing: -0.075em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(16, 16, 16, 0.16);
  transform: translateX(-0.05em);
}
.giant-type span::selection { color: var(--white); }
.giant-type.is-active span { -webkit-text-stroke-color: var(--green); }

/* ============================================================
   5. LAYOUT
   ============================================================ */
main { padding-top: 0; }

section {
  position: relative;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.hero,
.positioning,
.what-i-do,
.advisory,
.innovation,
.education-exec,
.speaking,
.mentoring,
.negotiation,
.partnerships,
.cyber,
.experience,
.education,
.engagements,
.expertise,
.thought,
.work-with-me,
.about,
.contact {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

section > *:not([aria-hidden="true"]):not(.hero-bg-grid):not(.hero-geometry) {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

/* Surface rhythm */
.what-i-do,
.education-exec,
.mentoring,
.cyber,
.education,
.thought { background: var(--surface-warm); }

.innovation,
.negotiation,
.engagements,
.work-with-me { background: var(--white); }

.advisory,
.speaking,
.partnerships,
.experience,
.expertise,
.about { background: var(--white); }

/* Quiet grid only on Level 2 system sections */
.innovation,
.expertise {
  background-image:
    linear-gradient(var(--grid-whisper) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-whisper) 1px, transparent 1px);
  background-size: 72px 72px;
}

/* ============================================================
   6. NAVIGATION — architectural, solid, always separated
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  padding-top: 0;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(16, 16, 16, 0.12);
  box-shadow: 0 1px 0 rgba(16, 16, 16, 0.04);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  overflow: visible;
  transition:
    height var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.site-header.scrolled {
  height: var(--header-h-scrolled);
  box-shadow:
    0 1px 0 rgba(16, 16, 16, 0.08),
    0 10px 30px rgba(16, 16, 16, 0.06);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  overflow: visible;
  padding-top: 2rem!important;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 1;
  position: relative;
  height: 100%;
  overflow: visible;
}

.brand-logo {
  width: var(--logo-w);
  height: auto;
  max-width: none;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 6px 12px rgba(16, 16, 16, 0.10));
  transition: width var(--dur) var(--ease),
              filter var(--dur) var(--ease);
}

.site-header.scrolled .brand-logo {
  width: var(--logo-w-scrolled);
  filter: drop-shadow(0 4px 10px rgba(16, 16, 16, 0.08));
}

.brand-wordmark {
  display: none;
  font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink);
}
.brand-logo[style*="display: none"] + .brand-wordmark,
.brand-logo[style*="display:none"] + .brand-wordmark { display: inline-flex; }

.primary-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: clamp(1.25rem, 2.4vw, 2.25rem); }

.nav-list a {
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  position: relative;
  padding: 0.35rem 0;
  transition: color var(--dur) var(--ease);
}
.nav-list a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--green);
  transition: width var(--dur) var(--ease);
}
.nav-list a:hover { color: var(--green); }
.nav-list a:hover::after { width: 100%; }

.header-cta { flex-shrink: 0; }

/* ============================================================
   7. HERO — tightened, grid constrained to portrait-side field
   ============================================================ */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.25rem, 4vw, 4rem));
  padding-bottom: clamp(2.75rem, 5vw, 4.5rem);
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--white);
}
@media (min-height: 900px) {
  .hero { min-height: 82vh; }
}
@media (max-height: 780px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 2.5rem);
    padding-bottom: 2.75rem;
  }
}

/* Grid constrained to the right-side field around the portrait */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  width: 58%;
  left: auto;
  right: 0;
  background-image:
    linear-gradient(var(--grid-hero) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-hero) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.15) 12%, #000 38%, #000 100%);
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.15) 12%, #000 38%, #000 100%);
}

.hero-geometry {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  max-width: none;
  margin: 0;
  padding: 0;
}

.geo-line { position: absolute; background: var(--rule); }
.geo-line-h { top: 42%; left: 0; right: 0; height: 1px; opacity: 0.4; }
.geo-line-v { top: 0; bottom: 0; left: 60%; width: 1px; opacity: 0.28; }

.geo-cube {
  position: absolute;
  border: 1px solid var(--rule);
  pointer-events: none;
  will-change: transform;
  background: transparent;
}
.geo-cube-1 { top: 16%; left: 4%; width: 120px; height: 120px; border-color: var(--green); opacity: 0.28; }
.geo-cube-2 { bottom: 14%; left: 34%; width: 90px; height: 90px; border-color: var(--terracotta); opacity: 0.24; }
.geo-cube-3 { top: 54%; right: 5%; width: 160px; height: 160px; opacity: 0.16; }
.geo-cube-4 { top: 10%; right: 26%; width: 60px; height: 60px; border-color: var(--terracotta); opacity: 0.30; }

.geo-node {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(26, 199, 26, 0.12);
}
.geo-node-1 { top: 26%; right: 32%; animation: nodePulse 4s var(--ease-in-out) infinite; }
.geo-node-2 {
  bottom: 26%; left: 10%;
  background: var(--terracotta);
  box-shadow: 0 0 0 6px rgba(217, 150, 99, 0.14);
}

.geo-label {
  position: absolute;
  font-size: var(--fs-micro);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
}
.geo-label-1 { top: 18%; left: 6%; }
.geo-label-2 { bottom: 20%; right: 8%; color: var(--terracotta); }

/* Restrained moving signal */
.signal-line {
  position: absolute;
  height: 1px;
  width: 120px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  animation: signalMove 4s var(--ease-in-out) infinite;
  pointer-events: none;
  opacity: 0.6;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  min-height: 0;
}

.hero-copy { position: relative; z-index: 2; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: var(--fs-micro);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 1.5rem;
  font-weight: 600;
}
.eyebrow::before { content: ''; display: inline-block; width: 28px; height: 1px; background: var(--green); }

.hero-title {
  position: relative;
  font-family: var(--font-serif);
  font-size: var(--fs-h1);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.89;
  margin: 0 0 1.75rem;
  max-width: 9.5ch;
  z-index: 2;
}
.hero-title::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 1px;
  left: 0;
  bottom: -0.75rem;
  background: linear-gradient(90deg, var(--green), var(--terracotta), transparent);
  transform-origin: left;
}
.hero-title em {
  display: inline-block;
  font-style: italic;
  color: var(--green);
  position: relative;
  padding-right: 0.08em;
}
.hero-title em::after {
  content: '';
  position: absolute;
  right: -0.15em;
  top: 8%;
  bottom: 4%;
  width: 1px;
  background: var(--terracotta);
}

.hero-lede {
  font-size: var(--fs-lede);
  color: var(--ink-soft);
  max-width: 42ch;
  margin: 0 0 2rem;
  font-family: var(--font-serif);
  line-height: 1.4;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* Portrait — clean, human, premium */
.hero-portrait {
  position: relative;
  display: flex;
  justify-content: flex-end;
  z-index: 3;
  max-height: 100%;
  min-height: 0;
}

.portrait-frame {
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 4 / 5;
  max-height: 100%;
  overflow: visible;
  background: transparent;
  border-radius: 0;
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 4px;
  box-shadow: var(--shadow-portrait);
  position: relative;
  z-index: 2;
  filter: contrast(1.02) saturate(1.01);
}

/* Thin architectural corner rules */
.portrait-frame::before,
.portrait-frame::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 4;
}
.portrait-frame::before {
  top: -14px;
  left: -14px;
  width: 110px;
  height: 110px;
  border-top: 1px solid var(--green);
  border-left: 1px solid var(--green);
}
.portrait-frame::after {
  right: -14px;
  bottom: -14px;
  width: 130px;
  height: 130px;
  border-right: 1px solid var(--terracotta);
  border-bottom: 1px solid var(--terracotta);
}

.portrait-fallback {
  position: absolute; inset: 0; display: none;
  background: var(--surface);
  align-items: center; justify-content: center;
  border-radius: var(--radius);
}
.portrait-frame.is-fallback .portrait-img { display: none; }
.portrait-frame.is-fallback .portrait-fallback { display: flex; }

.cube-system { position: relative; width: 60%; aspect-ratio: 1; }
.cube { position: absolute; border: 1.5px solid var(--rule); border-radius: 3px; }
.cube-1 { width: 55%; height: 55%; top: 0; left: 0; border-color: var(--green); }
.cube-2 { width: 45%; height: 45%; top: 15%; left: 35%; border-color: var(--terracotta); }
.cube-3 { width: 40%; height: 40%; bottom: 0; right: 0; }
.cube-4 { width: 30%; height: 30%; bottom: 20%; left: 10%; background: rgba(217, 150, 99, 0.12); }

.hero-grid-line {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  height: 1px;
  width: 100%;
  background: var(--rule);
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

/* ============================================================
   8. SECTIONS — editorial treatments
   ============================================================ */

/* --- POSITIONING / MANIFESTO --- */
.positioning {
  background: var(--ink);
  color: var(--white);
  padding-top: clamp(7rem, 13vw, 13rem);
  padding-bottom: clamp(7rem, 13vw, 13rem);
  overflow: hidden;
  position: relative;
}
.positioning::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-dark) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}
.positioning::after {
  content: '';
  position: absolute;
  top: clamp(2.5rem, 5vw, 4rem);
  right: clamp(2.5rem, 5vw, 4rem);
  width: 140px; height: 140px;
  border-top: 1px solid var(--terracotta);
  border-right: 1px solid var(--terracotta);
  opacity: 0.55;
  pointer-events: none;
}
.positioning .section-label {
  color: rgba(255,255,255,0.55);
  border-bottom-color: var(--rule-dark);
}
.positioning .label-num { color: var(--green); }

.positioning-statement {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: var(--fs-manifesto);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.91;
  max-width: 13ch;
  color: var(--white);
  margin: 0;
}
.positioning-statement::after {
  content: '';
  display: block;
  width: clamp(80px, 12vw, 180px);
  height: 2px;
  margin-top: clamp(2rem, 4vw, 4rem);
  background: linear-gradient(90deg, var(--green), var(--terracotta));
}

/* --- WHAT I DO — editorial matrix --- */
.what-i-do { position: relative; }
.matrix-list {
  border-top: 1px solid var(--ink);
  counter-reset: m;
}
.matrix-row {
  display: grid;
  grid-template-columns: 60px 1fr 1.8fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: baseline;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
  transition: padding-left var(--dur) var(--ease);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.matrix-row::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--surface-warm);
  transform: translateX(-101%);
  transition: transform 500ms var(--ease-out);
  z-index: -1;
}
.matrix-row:hover { padding-left: 1rem; }
.matrix-row:hover::after { transform: translateX(0); }

.matrix-index {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--green);
  font-feature-settings: 'tnum';
}
.matrix-row h3 {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
}
.matrix-row p {
  color: var(--ink-soft);
  font-size: var(--fs-small);
  margin: 0;
  max-width: 60ch;
  line-height: 1.65;
}

/* --- ADVISORY --- */
.advisory { position: relative; }
.advisory::before {
  content: '';
  position: absolute;
  top: var(--section-y);
  left: var(--gutter);
  width: 1px; height: 72px;
  background: var(--green);
  opacity: 0.55;
}

.advisory-lead { max-width: 62ch; margin-bottom: 3rem; }
.advisory-lead p {
  font-size: var(--fs-lede);
  color: var(--ink-soft);
  font-family: var(--font-serif);
  line-height: 1.4;
}

.matrix { margin-bottom: 2rem; }
.matrix-cell {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  padding: 2.5rem 0;
}
.matrix-cell h3 {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  font-weight: 400;
  margin: 0 0 0.75rem;
}

.advisory-note {
  font-size: var(--fs-display);
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 22ch;
  color: var(--ink);
  margin: 0 0 4rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--green);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  border-top: 1px solid var(--rule);
  padding-top: 3.5rem;
}
.split-item h3 {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  font-weight: 400;
  margin: 0 0 1.25rem;
}
.split-item .lede {
  font-size: var(--fs-lede);
  font-family: var(--font-serif);
  color: var(--ink);
  font-style: italic;
  margin-bottom: 1rem;
}

/* --- INNOVATION — architectural pipeline --- */
.innovation { position: relative; }
.pillar-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  margin-top: 2.5rem;
}
.pillar h3 {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  font-weight: 400;
  margin: 0 0 1.25rem;
}

.pipeline {
  counter-reset: step;
  display: grid;
  gap: 0;
  margin-top: 1.25rem;
  border-top: 1px solid var(--rule-strong);
  position: relative;
}
.pipeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 0;
  width: 1px; height: 100%;
  background: linear-gradient(180deg, var(--green) 0%, var(--terracotta) 100%);
  opacity: 0.55;
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1200ms var(--ease-out);
}
.pipeline.is-visible::before { transform: scaleY(1); }

.pipeline li {
  counter-increment: step;
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 1rem 0 1rem 2rem;
  border-bottom: 1px solid var(--rule);
  font-size: var(--fs-small);
  color: var(--ink);
  transition: padding-left var(--dur) var(--ease), color var(--dur) var(--ease);
}
.pipeline li:hover { padding-left: 2.5rem; color: var(--green); }
.pipeline li::before {
  content: counter(step, decimal-leading-zero);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--green);
  flex-shrink: 0;
  font-feature-settings: 'tnum';
}

/* --- SPEAKING / INSIGHTS --- */
.speaking { position: relative; }
.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
}
.topic {
  padding: 2.5rem 2rem 2.5rem 0;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  transition: background var(--dur) var(--ease), padding-left var(--dur) var(--ease);
  position: relative;
}
.topic:nth-child(2n) { border-right: none; padding-left: 2rem; }
.topic:hover { background: var(--surface-warm); }
.topic:hover h3 { color: var(--green); }

.topic-num {
  display: block;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--terracotta);
  margin-bottom: 0.85rem;
  font-feature-settings: 'tnum';
}
.topic h3 {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  font-weight: 400;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  transition: color var(--dur) var(--ease);
}
.topic p { color: var(--ink-soft); margin: 0; font-size: var(--fs-small); line-height: 1.6; max-width: 40ch; }

/* --- EXPERIENCE --- */
.experience { position: relative; }
.experience::before {
  content: '';
  position: absolute;
  top: var(--section-y);
  left: var(--gutter);
  width: 1px; height: 72px;
  background: var(--green);
  opacity: 0.55;
}
.timeline {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ink);
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 100%;
  background: var(--green);
  opacity: 0.35;
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1400ms var(--ease-out);
}
.timeline.is-visible::before { transform: scaleY(1); }

.timeline-item {
  padding: 2.5rem 0 2.5rem 2rem;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 60px 1fr 2fr;
  gap: 2rem;
  transition: padding-left var(--dur) var(--ease);
  position: relative;
}
.timeline-item:hover { padding-left: 2.75rem; }
.timeline-num {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--green);
  font-feature-settings: 'tnum';
  padding-top: 0.4rem;
}
.timeline-item h3 {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  font-weight: 400;
  margin: 0;
  align-self: start;
  letter-spacing: -0.02em;
}
.timeline-item p { color: var(--ink-soft); margin: 0 0 0.65rem; font-size: var(--fs-small); max-width: 62ch; }

/* --- EDUCATION --- */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
}
.edu-item {
  padding: 2.5rem 2rem 2.5rem 0;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  transition: padding-left var(--dur) var(--ease);
}
.edu-item:nth-child(2n) { border-right: none; padding-left: 2rem; }
.edu-item:hover { padding-left: 0.75rem; }
.edu-item:nth-child(2n):hover { padding-left: 2.75rem; }
.edu-item h3 {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  font-weight: 400;
  margin: 0 0 0.5rem;
}
.edu-qual {
  font-weight: 600;
  color: var(--green);
  font-size: var(--fs-small);
  margin: 0 0 0.75rem;
  letter-spacing: 0.02em;
}
.edu-item p { color: var(--ink-soft); font-size: var(--fs-small); margin: 0; }
.edu-list { margin-top: 0.75rem; display: grid; gap: 0.65rem; }
.edu-list li {
  font-size: var(--fs-small);
  color: var(--ink-soft);
  padding-left: 1rem;
  position: relative;
}
.edu-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.7em;
  width: 6px; height: 1px;
  background: var(--terracotta);
}

/* --- ENGAGEMENTS --- */
.engagement-list { display: grid; border-top: 1px solid var(--ink); }
.engagement-list li {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: var(--fs-small);
  transition: padding-left var(--dur) var(--ease), background var(--dur) var(--ease);
}
.engagement-list li:hover { padding-left: 0.75rem; background: var(--surface-warm); }
.eng-org {
  font-weight: 600;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.eng-topic { color: var(--ink-soft); }

/* --- EXPERTISE --- */
.expertise { position: relative; }
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
}
.expertise-item {
  padding: 2.5rem 1.75rem 2.5rem 0;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  transition: padding-left var(--dur) var(--ease);
  position: relative;
}
.expertise-item:nth-child(4n) { border-right: none; }
.expertise-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 1px;
  background: var(--green);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 500ms var(--ease-out);
}
.expertise-item:hover::before { transform: scaleX(1); }
.expertise-item:hover { padding-left: 0.75rem; }

.exp-num {
  display: block;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--terracotta);
  margin-bottom: 0.85rem;
  transition: color var(--dur) var(--ease);
  font-feature-settings: 'tnum';
}
.expertise-item h3 {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  font-weight: 400;
  margin: 0 0 0.65rem;
  transition: transform 500ms var(--ease-out), color var(--dur) var(--ease);
}
.expertise-item:hover h3 { transform: translateX(8px); color: var(--green); }
.expertise-item p { color: var(--ink-soft); font-size: var(--fs-small); margin: 0; line-height: 1.6; }

/* --- THOUGHT --- */
.thought { position: relative; }

/* --- WORK WITH ME — executive index --- */
.work-with-me { position: relative; }
.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--ink);
  counter-reset: work;
}
.work-item {
  counter-increment: work;
  position: relative;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: auto 1fr 2fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: baseline;
  transition: padding-left var(--dur) var(--ease), background var(--dur) var(--ease);
}
.work-item:hover { padding-left: 1rem; background: rgba(255,255,255,0.6); }
.work-item::before {
  content: counter(work, decimal-leading-zero);
  font-family: var(--font-sans);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--green);
  align-self: start;
  padding-top: 0.5rem;
  font-feature-settings: 'tnum';
}
.work-item h3 {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  font-weight: 400;
  margin: 0;
}
.work-item p { color: var(--ink-soft); font-size: var(--fs-small); margin: 0; max-width: 52ch; }

/* --- ABOUT --- */
.about { position: relative; }
.about::before {
  content: '';
  position: absolute;
  top: var(--section-y);
  left: var(--gutter);
  width: 1px; height: 72px;
  background: var(--green);
  opacity: 0.55;
}
.about-body { max-width: 72ch; }
.about-body p { color: var(--ink-soft); font-size: var(--fs-body); margin: 0 0 1.35rem; }
.about-pullquote {
  font-family: var(--font-serif);
  font-size: var(--fs-display);
  color: var(--ink);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 3rem 0;
  padding-left: 1.75rem;
  border-left: 2px solid var(--green);
  max-width: 20ch;
  position: relative;
}
.about-pullquote::first-letter {
  font-size: 2.6em;
  line-height: 0.85;
  float: left;
  padding-right: 0.08em;
  padding-top: 0.05em;
  color: var(--green);
  font-weight: 500;
}
.about-pullquote::after {
  content: '';
  position: absolute;
  bottom: -12px; left: 1.75rem;
  width: 48px; height: 1px;
  background: var(--terracotta);
}
.about-signoff {
  margin-top: 3rem;
  font-size: var(--fs-micro);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule-strong);
}

/* --- CONTACT --- */
.contact {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  padding-top: clamp(7rem, 14vw, 14rem);
  padding-bottom: clamp(7rem, 14vw, 14rem);
}
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-dark) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}
.contact::after {
  content: '';
  position: absolute;
  bottom: clamp(2rem, 5vw, 4rem);
  right: clamp(2rem, 5vw, 4rem);
  width: 140px; height: 140px;
  border-right: 1px solid var(--terracotta);
  border-bottom: 1px solid var(--terracotta);
  opacity: 0.6;
  pointer-events: none;
}
.contact .section-label {
  color: rgba(255,255,255,0.55);
  border-bottom-color: var(--rule-dark);
}
.contact .label-num { color: var(--green); }

.contact-title {
  font-family: var(--font-serif);
  font-size: var(--fs-mega);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.9;
  margin: 0;
  color: var(--white);
}
.contact-body {
  position: relative;
  z-index: 1;
  max-width: 60ch;
  margin: 0 auto;
  text-align: center;
}
.contact-lede {
  font-family: var(--font-serif);
  font-size: var(--fs-display);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 1.5rem 0 1.5rem;
  color: var(--white);
}
.contact-body p { color: rgba(255,255,255,0.7); margin: 0 0 2.25rem; font-size: var(--fs-body); }

/* ============================================================
   9. COMPONENTS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease),
              color var(--dur) var(--ease);
  min-height: 44px;
  white-space: nowrap;
}
.btn i { font-size: 0.8em; transition: transform var(--dur) var(--ease); }
.btn:hover i { transform: translateX(4px); }

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow-strong); }

.btn-cta { background: var(--ink); color: var(--white); }
.btn-cta:hover { background: var(--green); transform: translateY(-2px); box-shadow: var(--shadow-glow); }

.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule-strong); }
.btn-ghost:hover { border-color: var(--ink); background: var(--surface); }

.btn-lg { padding: 1.1rem 2.1rem; font-size: var(--fs-body); }

.pill-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 0; }
.pill-list li {
  padding: 0.45rem 0.9rem;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  color: var(--ink-soft);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.pill-list li:hover { background: rgba(26, 199, 26, 0.08); border-color: var(--green); color: var(--ink); }

/* ============================================================
   10. CARDS (reserved for legacy reuse)
   ============================================================ */

/* ============================================================
   11. FORMS (reserved)
   ============================================================ */

/* ============================================================
   12. FOOTER
   ============================================================ */
.site-footer {
  background: var(--surface-ink);
  color: var(--white);
  padding: clamp(3.5rem, 7vw, 6rem) var(--gutter) 0;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: var(--gutter); right: var(--gutter);
  height: 1px;
  background: linear-gradient(90deg, var(--green) 0%, var(--terracotta) 100%);
  opacity: 0.55;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-wordmark { font-size: 1.2rem; font-weight: 700; letter-spacing: 0.18em; margin: 0 0 0.85rem; }
.footer-tagline {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 0.65rem;
  font-family: var(--font-serif);
  font-style: italic;
}
.footer-roles { font-size: var(--fs-small); color: rgba(255, 255, 255, 0.5); margin: 0; max-width: 34ch; }

.footer-heading {
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin: 0 0 1.25rem;
  font-weight: 700;
}
.footer-col ul { display: grid; gap: 0.7rem; }
.footer-col a {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.78);
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
  display: inline-block;
}
.footer-col a:hover { color: var(--green); padding-left: 4px; }

.footer-base {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2rem 0;
  font-size: var(--fs-micro);
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.06em;
}

/* ============================================================
   13. MOBILE DRAWER — full-width on mobile
   ============================================================ */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  margin-left: auto;
}
.menu-bar {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 16, 16, 0.4);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 98;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.drawer-overlay.visible { opacity: 1; }
.drawer-overlay[hidden] { display: none; }

.mobile-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100dvh;
  width: min(440px, 88vw);
  background: var(--white);
  z-index: 99;
  transform: translateX(100%);
  transition: transform 340ms var(--ease-out);
  display: flex;
  align-items: flex-start;
  padding: calc(var(--header-h-mobile) + 2rem) var(--gutter) 2rem;
  overflow-y: auto;
  box-shadow: -8px 0 40px rgba(16, 16, 16, 0.14);
}
.mobile-drawer.open { transform: translateX(0); }

.drawer-inner { width: 100%; display: flex; flex-direction: column; gap: 1rem; }
.drawer-list { display: grid; gap: 0.25rem; margin-bottom: 1.5rem; }
.drawer-list a {
  display: block;
  padding: 1rem 0;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--rule);
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.drawer-list a:hover { color: var(--green); padding-left: 0.5rem; }
.drawer-cta { align-self: flex-start; }

/* ============================================================
   14. BACK TO TOP — sticky right edge
   ============================================================ */
.back-to-top {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%) translateX(calc(100% - 44px));
  z-index: 90;
  width: 44px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px 0 0 999px;
  padding: 0 0 0 6px;
  cursor: pointer;
  transition:
    transform 480ms var(--ease-out),
    background 300ms var(--ease),
    box-shadow 300ms var(--ease),
    opacity 300ms var(--ease);
  box-shadow:
    -1px 0 0 rgba(16, 16, 16, 0.08),
    -8px 0 32px rgba(16, 16, 16, 0.10);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.back-to-top:hover {
  background: var(--green);
  box-shadow:
    -1px 0 0 rgba(16, 16, 16, 0.08),
    -12px 0 40px rgba(26, 199, 26, 0.32);
}

.back-to-top:hover .back-to-top-line {
  transform: scaleY(1);
  opacity: 1;
}

.back-to-top i {
  font-size: 0.95rem;
  transition: transform 400ms var(--ease-out);
}

.back-to-top:hover i {
  transform: translateY(-3px);
}

.back-to-top-label {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  opacity: 0.85;
}

/* Flow line that grows upward on hover — the "flow" cue */
.back-to-top-line {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 10px;
  width: 1px;
  background: linear-gradient(
    to top,
    transparent 0%,
    rgba(255, 255, 255, 0.9) 50%,
    transparent 100%
  );
  transform: scaleY(0);
  transform-origin: bottom;
  opacity: 0;
  transition:
    transform 480ms var(--ease-out),
    opacity 300ms var(--ease);
  pointer-events: none;
}

.back-to-top:hover .back-to-top-line {
  transform: scaleY(1);
  opacity: 1;
  animation: flowUp 1.6s var(--ease-in-out) infinite;
}

@keyframes flowUp {
  0%   { background-position: 0 100%; }
  100% { background-position: 0 0; }
}

/* ============================================================
   15. ANIMATIONS
   ============================================================ */
@keyframes nodePulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(26, 199, 26, 0.12); }
  50% { box-shadow: 0 0 0 10px rgba(26, 199, 26, 0.04); }
}

@keyframes signalMove {
  0%   { transform: translateX(-140%); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateX(140%); opacity: 0; }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slower) var(--ease-out),
              transform var(--dur-slower) var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

[data-reveal="row"] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
[data-reveal="row"].is-visible { opacity: 1; transform: translateY(0); }

[data-reveal="mask"] .positioning-statement {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transition: opacity 400ms var(--ease-out),
              clip-path 1400ms var(--ease-out);
}
[data-reveal="mask"].is-visible .positioning-statement {
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

/* Line reveal — horizontal rule builds on entry */
[data-line-reveal] { position: relative; }
[data-line-reveal]::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--green) 0%, var(--terracotta) 45%, var(--rule) 100%);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1100ms var(--ease-out);
}
[data-line-reveal].is-visible::after { transform: scaleX(1); }

/* Rule reveal — vertical architecture draws in on entry */
[data-rule-reveal] { position: relative; }
[data-rule-reveal]::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 100%;
  background: linear-gradient(180deg, var(--green), var(--terracotta));
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 900ms var(--ease-out);
}
[data-rule-reveal].is-visible::before { transform: scaleY(1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .geo-node-1 { animation: none; }
  .signal-line { display: none; }
  [data-reveal],
  [data-reveal="row"],
  [data-reveal="mask"] .positioning-statement {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  .back-to-top-line { display: none; }
}

/* ============================================================
   16. RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .expertise-item:nth-child(4n) { border-right: 1px solid var(--rule); }
  .expertise-item:nth-child(2n) { border-right: none; }

  .footer-inner { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-col-domain { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  .matrix-row { grid-template-columns: 40px 1fr; gap: 0.75rem 1.25rem; }
  .matrix-row p { grid-column: 2; }
  .timeline-item { grid-template-columns: 40px 1fr; gap: 0.5rem 1.25rem; }
  .timeline-item h3 { grid-column: 2; }
  .timeline-item > div { grid-column: 2; }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h-mobile) + 2.5rem);
    padding-bottom: 3rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Copy FIRST — strategic statement above the portrait */
  .hero-copy { order: 1; }
  .hero-portrait { order: 2; justify-content: center; }
  .portrait-frame { max-width: 390px; }

  .hero-title { max-width: 100%; font-size: clamp(2.6rem, 8vw, 4rem); }

  .split { grid-template-columns: 1fr; }
  .pillar-grid { grid-template-columns: 1fr; }
  .topic-grid { grid-template-columns: 1fr; }
  .topic { padding: 2rem 0; border-right: none !important; }
  .topic:nth-child(2n) { padding-left: 0; }

  .edu-grid { grid-template-columns: 1fr; }
  .edu-item { padding: 2rem 0; border-right: none !important; }
  .edu-item:nth-child(2n) { padding-left: 0; }
  .engagement-list li { grid-template-columns: 1fr; gap: 0.35rem; }

  .work-item { grid-template-columns: auto 1fr; gap: 1rem 1.5rem; }
  .work-item p { grid-column: 2; }

  .advisory-note { font-size: clamp(1.75rem, 5vw, 2.75rem); }
  .about-pullquote { font-size: clamp(1.75rem, 5vw, 2.75rem); }
}

@media (max-width: 820px) {
  .primary-nav,
  .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .site-header,
  .site-header.scrolled { height: var(--header-h-mobile); }

  .brand-logo { width: var(--logo-w-mobile); }
  .site-header.scrolled .brand-logo { width: var(--logo-w-mobile); }

  /* Full-width mobile drawer */
  .mobile-drawer {
    width: 100vw;
    max-width: 100vw;
    box-shadow: none;
  }

  .geo-label-1, .geo-label-2 { display: none; }
  .geo-cube-1 { width: 80px; height: 80px; opacity: 0.18; }
  .geo-cube-2 { width: 60px; height: 60px; opacity: 0.16; }
  .geo-cube-3 { width: 100px; height: 100px; opacity: 0.12; }
  .geo-cube-4 { width: 44px; height: 44px; opacity: 0.20; }

  .back-to-top {
    width: 40px;
    height: 100px;
  }
  .back-to-top-label { font-size: 0.56rem; }
}

@media (max-width: 640px) {
  .expertise-grid { grid-template-columns: 1fr; }
  .expertise-item { border-right: none; padding: 2rem 0; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-col-domain { grid-column: auto; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }

  .contact-title { font-size: clamp(2.75rem, 14vw, 5rem); }

  .advisory::before,
  .experience::before,
  .about::before { display: none; }

  .section-number { font-size: clamp(4rem, 20vw, 8rem); }

  /* Kill most geometry on mobile */
  .hero-bg-grid { display: none; }
  .hero-geometry { opacity: 0.45; }
  .geo-cube-1,
  .geo-cube-2,
  .geo-cube-3,
  .geo-cube-4 { opacity: 0.12; }

  .hero-title {
    font-size: clamp(3rem, 13vw, 4.5rem);
    line-height: 0.91;
  }
  .hero-lede { max-width: 34ch; }

  .portrait-frame::before { top: -8px; left: -8px; }
  .portrait-frame::after { right: -8px; bottom: -8px; }

  .innovation,
  .expertise { background-image: none; }
}

/* ============================================================
   17. PRINT
   ============================================================ */
@media print {
  .site-header, .mobile-drawer, .drawer-overlay, .menu-toggle,
  .hero-bg-grid, .hero-geometry, .back-to-top { display: none !important; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
  section { padding: 1rem 0; page-break-inside: avoid; background: #fff !important; color: #000 !important; }
  .positioning, .contact { background: #fff !important; color: #000 !important; }
  .positioning-statement, .contact-title, .contact-lede { color: #000 !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}