/* ==========================================================================
   D Michele Consulting — landing page
   Reference: REFERENCE-ANALYSIS.md
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Type scale */
  --fs-mega:   clamp(4rem, 11.143vw, 12rem);
  --fs-h1:     clamp(2.8rem, 7.4vw, 7.5rem);
  --fs-h2:     clamp(2.2rem, 5.4vw, 5.6rem);
  --fs-h3:     clamp(1.4rem, 2.2vw, 2.4rem);
  --fs-lede:   clamp(1.05rem, 1.4vw, 1.5rem);
  --fs-body:   clamp(0.95rem, 1.05vw, 1.1rem);
  --fs-small:  clamp(0.8rem, 0.85vw, 0.92rem);
  --fs-kicker: 0.78rem;

  /* Easing */
  --ease-std: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-snap: cubic-bezier(0.45, 0.05, 0.07, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);

  /* Spacing — tightened vs. nographism reference for denser pacing */
  --pad-x: clamp(1.25rem, 6vw, 5rem);
  --section-y: clamp(3rem, 7.5vw, 6.5rem);
}

/* Dark theme (default) */
:root,
[data-theme="dark"] {
  --ink: #0a0a0c;
  --ink-2: #101015;
  --ink-3: #16161e;
  --ink-4: #1c1c25;

  --bone: #f4f3ee;
  --bone-dim: #9a9aa3;
  --bone-mute: #6b6b75;

  --accent: #942b68;             /* deep raspberry — wine family, pops on dark */
  --accent-soft: #b1457f;
  --accent-warm: #f2b441;        /* warm gold — used sparingly */
  --accent-glow: rgba(148, 43, 104, 0.42);

  --rule: rgba(244, 243, 238, 0.08);
  --rule-strong: rgba(244, 243, 238, 0.16);

  --input-bg: rgba(244, 243, 238, 0.03);
  --input-border: rgba(244, 243, 238, 0.14);
  --input-focus: rgba(224, 108, 168, 0.4);

  --nav-bg: rgba(10, 10, 12, 0);
  --nav-bg-scrolled: rgba(10, 10, 12, 0.62);
  --hero-canvas-blend: screen;
  color-scheme: dark;

  --footer-bg: #6b1341;
  --footer-fg: #ffffff;
  --footer-fg-dim: rgba(255, 255, 255, 0.68);
  --footer-fg-mute: rgba(255, 255, 255, 0.42);
  --footer-rule: rgba(255, 255, 255, 0.16);
  --footer-wordmark-fg: #98305f;
}

/* Light theme */
[data-theme="light"] {
  --ink: #f8f7f3;
  --ink-2: #efeee9;
  --ink-3: #e7e6df;
  --ink-4: #dcdbd3;

  --bone: #0c0c12;
  --bone-dim: #54545e;
  --bone-mute: #8b8b95;

  --accent: #6b1341;             /* burgundy — matches footer, deep on light */
  --accent-soft: #8e2459;
  --accent-warm: #b47a12;
  --accent-glow: rgba(107, 19, 65, 0.26);

  --rule: rgba(12, 12, 18, 0.10);
  --rule-strong: rgba(12, 12, 18, 0.20);

  --input-bg: rgba(12, 12, 18, 0.02);
  --input-border: rgba(12, 12, 18, 0.16);
  --input-focus: rgba(107, 19, 65, 0.32);

  --nav-bg: rgba(248, 247, 243, 0);
  --nav-bg-scrolled: rgba(248, 247, 243, 0.72);
  --hero-canvas-blend: multiply;
  color-scheme: light;

  --footer-bg: #6b1341;
  --footer-fg: #ffffff;
  --footer-fg-dim: rgba(255, 255, 255, 0.78);
  --footer-fg-mute: rgba(255, 255, 255, 0.55);
  --footer-rule: rgba(255, 255, 255, 0.22);
  --footer-wordmark-fg: #8c2656;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
em { font-style: italic; }

/* ---------- Base ---------- */
html, body { background: var(--ink); }
body {
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: none; /* replaced by custom cursor */
}
@media (pointer: coarse) {
  body { cursor: auto; }
  .cursor { display: none; }
}

/* Once scrolled past the opening header, hand control back to the native cursor */
body.is-past-hero { cursor: auto; }
body.is-past-hero .cursor { opacity: 0; }

::selection { background: var(--accent); color: var(--ink); }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.3s var(--ease-std);
}
.cursor.is-active { opacity: 1; }
.cursor__dot,
.cursor__ring {
  position: absolute;
  top: 0; left: 0;
  pointer-events: none;
  border-radius: 999px;
  transform: translate3d(-50%, -50%, 0);
  transition: width 0.25s var(--ease-std),
              height 0.25s var(--ease-std),
              background 0.25s var(--ease-std),
              opacity 0.25s var(--ease-std);
}
.cursor__dot {
  width: 6px; height: 6px;
  background: var(--bone);
}
.cursor__ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(244,243,238,0.5);
}
.cursor.is-hover .cursor__dot { width: 0; height: 0; }
.cursor.is-hover .cursor__ring { width: 56px; height: 56px; background: rgba(244,243,238,0.08); border-color: var(--bone); }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  z-index: 100;
  pointer-events: none;
  background: transparent;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent-glow);
  transform-origin: left center;
  transition: width 0.08s linear;
}

/* ---------- Reveal (line masks + opacity) ----------
   Pattern: visible by default for no-JS / failure-mode graceful degradation.
   When <html> has the .js-ready class, JS has taken control and will set
   the initial hidden state via gsap.set + then animate via ScrollTrigger. */
.line-wrap {
  display: block;
  overflow: hidden;
  padding-bottom: 0.16em;
  margin-bottom: -0.08em;
}
.line { display: block; will-change: transform; }
.reveal { will-change: opacity, transform; }

html.js-ready .line { transform: translateY(110%); }
html.js-ready .reveal { opacity: 0; transform: translateY(28px); }

/* ---------- Hero canvas ---------- */
.hero-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
  mix-blend-mode: var(--hero-canvas-blend);
  /* Mask gradient so canvas fades out below the hero */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 60vh, transparent 110vh);
  mask-image: linear-gradient(to bottom, #000 0%, #000 60vh, transparent 110vh);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1rem 1.1rem var(--pad-x);
  background: var(--nav-bg);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease-std),
              backdrop-filter 0.4s var(--ease-std),
              border-color 0.4s var(--ease-std),
              transform 0.4s var(--ease-snap);
}
.nav.is-scrolled {
  background: var(--nav-bg-scrolled);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--rule);
}

.nav__brand {
  display: inline-grid;
  grid-template-areas: "stack";
  align-items: center;
  color: var(--bone);
  min-width: 3em;
}
.nav__brand-full,
.nav__brand-short {
  grid-area: stack;
  font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--bone);
  white-space: nowrap;
  -webkit-transition: opacity 0.45s ease, transform 0.45s ease, color 0.3s ease;
  transition: opacity 0.45s ease, transform 0.45s ease, color 0.3s ease;
}
.nav__brand-full {
  opacity: 1;
  -webkit-transform: translateX(0);
          transform: translateX(0);
}
.nav__brand-short {
  opacity: 0;
  -webkit-transform: translateX(-4px);
          transform: translateX(-4px);
  pointer-events: none;
}
.nav.is-condensed .nav__brand-full {
  opacity: 0;
  -webkit-transform: translateX(-6px);
          transform: translateX(-6px);
}
.nav.is-condensed .nav__brand-short {
  opacity: 1;
  -webkit-transform: translateX(0);
          transform: translateX(0);
}
.nav__brand:hover .nav__brand-full,
.nav__brand:hover .nav__brand-short { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.92rem;
}
.nav__links a {
  position: relative;
  color: var(--bone-dim);
  transition: color 0.2s var(--ease-std);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease-snap);
}
.nav__links a:hover { color: var(--bone); }
.nav__links a:hover::after { transform: scaleX(1); }

@media (max-width: 820px) {
  .nav__links { display: none; }
}

/* ---------- Theme toggle ---------- */
.nav__cluster {
  display: inline-flex;
  align-items: center;
  gap: calc(0.9rem + 32px);
}
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  background: var(--ink-3);
  color: var(--bone);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.3s var(--ease-std),
              border-color 0.3s var(--ease-std),
              color 0.3s var(--ease-std),
              transform 0.4s var(--ease-snap);
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.theme-toggle svg {
  width: 18px; height: 18px;
  position: absolute;
  transition: transform 0.45s var(--ease-snap), opacity 0.25s var(--ease-std);
}
.theme-toggle .theme-toggle__sun  { transform: scale(0) rotate(-90deg); opacity: 0; }
.theme-toggle .theme-toggle__moon { transform: scale(1) rotate(0);      opacity: 1; }
[data-theme="light"] .theme-toggle .theme-toggle__sun  { transform: scale(1) rotate(0);      opacity: 1; }
[data-theme="light"] .theme-toggle .theme-toggle__moon { transform: scale(0) rotate(90deg);  opacity: 0; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid var(--rule-strong);
  transition: background 0.3s var(--ease-std),
              color 0.3s var(--ease-std),
              border-color 0.3s var(--ease-std),
              transform 0.4s var(--ease-snap);
  will-change: transform;
}
.btn--pill {
  background: var(--bone);
  color: var(--ink);
  border-color: transparent;
}
.btn--pill:hover { background: var(--accent); }

.btn--primary {
  background: var(--accent);
  color: var(--ink);
  border-color: transparent;
  font-weight: 600;
}
.btn--primary:hover { background: var(--bone); }

.btn--ghost {
  background: transparent;
  color: var(--bone);
}
.btn--ghost:hover {
  background: var(--ink-3);
  border-color: var(--rule-strong);
}

/* CTA pill with arrow-disc — the disc fills on hover and the arrow nudges. */
.btn--cta {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.55rem 0.55rem 0.55rem 1.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  border: 0;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.3s var(--ease-std), transform 0.4s var(--ease-snap);
}
.btn--cta:hover { background: var(--accent-soft); }
.btn--cta:disabled { opacity: 0.55; cursor: progress; }
/* Dark mode: accent is deep raspberry, so the CTA label + arrow need light text */
html:not([data-theme="light"]) .btn--cta { color: #fff; }

.btn__arrow-disc {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 999px;
  flex-shrink: 0;
  isolation: isolate;
}
.btn__arrow-disc::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(10, 10, 12, 0.16);
  transform: scale(0.6);
  opacity: 0;
  transition: transform 0.45s var(--ease-snap), opacity 0.3s var(--ease-std);
  z-index: 0;
}
.btn__arrow-disc svg {
  position: relative;
  z-index: 1;
  transition: transform 0.4s var(--ease-snap);
}
.btn--cta:hover .btn__arrow-disc::before { transform: scale(1); opacity: 1; }
.btn--cta:hover .btn__arrow-disc svg { transform: translate(2px, -2px); }

.btn--magnetic {
  padding: 1.4rem 2.2rem;
  font-size: 1.05rem;
  background: var(--accent);
  color: var(--ink);
  border-color: transparent;
  overflow: hidden;
  font-weight: 600;
}
.btn--magnetic .btn__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), var(--bone) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-std);
}
.btn--magnetic:hover .btn__bg { opacity: 1; }
.btn--magnetic .btn__label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  z-index: 1;
}
.btn--magnetic .btn__arrow {
  transition: transform 0.4s var(--ease-snap);
}
.btn--magnetic:hover .btn__arrow {
  transform: translate(4px, -4px);
}

/* ---------- Kicker ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: var(--fs-kicker);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--bone-dim);
  font-weight: 500;
}
.kicker__dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.78); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 0 var(--pad-x);
  padding-top: clamp(7rem, 14vh, 11rem);
  padding-bottom: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
}
.hero__inner {
  position: relative;
  max-width: 1500px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  align-items: end;
  gap: clamp(2rem, 5vw, 5rem);
}
.hero__col--lead { min-width: 0; }
.hero__col--cta {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}
.hero__title {
  font-size: var(--fs-h1);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin: 1.2rem 0 2.4rem;
  color: var(--bone);
}
.hero__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.hero__lede {
  font-size: var(--fs-lede);
  line-height: 1.45;
  color: var(--bone-dim);
  max-width: 42ch;
}
.hero__lede-brand { color: var(--accent); font-weight: 500; }

/* Hero CTA — typographic display block (no fill). Text/divider follow the
   active theme via --bone; the arrow is always the accent. */
.hero-cta {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  align-items: end;
  gap: 0.4rem 1.2rem;
  width: 100%;
  max-width: 360px;
  min-height: 12rem;
  padding: 0;
  background: transparent;
  color: var(--bone);
  letter-spacing: -0.035em;
  line-height: 0.9;
  text-decoration: none;
}
.hero-cta::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 1.9rem;
  height: 1px;
  background: var(--bone);
  opacity: 0.22;
}
@keyframes hero-cta-bounce {
  0%, 100% { transform: translateY(0); }
  50%     { transform: translateY(6px); }
}
.hero-cta__index {
  grid-column: 1 / -1;
  grid-row: 1;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--bone);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.hero-cta__label {
  grid-column: 1;
  grid-row: 2 / span 2;
  align-self: end;
  font-size: clamp(1.65rem, 3.95vw, 3.05rem);
  font-weight: 300;
  color: var(--bone);
}
.hero-cta__arrow {
  grid-column: 2;
  grid-row: 3;
  display: inline-grid;
  place-items: center;
  width: 64px; height: 64px;
  flex-shrink: 0;
  color: var(--accent);
  animation: hero-cta-bounce 2.2s ease-in-out infinite;
  will-change: transform;
}
.hero-cta__arrow svg { width: 100%; height: 100%; display: block; }
@media (max-width: 820px) {
  .hero-cta { max-width: none; min-height: 12rem; }
}

@media (max-width: 820px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    align-items: start;
  }
  .hero__col--cta { justify-content: flex-start; }
}

.hero__scroll {
  position: absolute;
  bottom: 2.4rem;
  left: var(--pad-x);
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--bone-mute);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.hero__scroll-track {
  position: relative;
  width: 32px; height: 2px;
  background: var(--rule-strong);
  overflow: hidden;
}
.hero__scroll-dot {
  position: absolute;
  top: 0; left: -8px;
  width: 8px; height: 2px;
  background: var(--accent);
  animation: scroll-cue 2.2s var(--ease-std) infinite;
}
@keyframes scroll-cue {
  0% { left: -8px; opacity: 0; }
  50% { opacity: 1; }
  100% { left: 32px; opacity: 0; }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  padding: 1.2rem 0;
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--ink-2);
  z-index: 1;
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 2.4rem;
  white-space: nowrap;
  font-size: clamp(1.4rem, 2.6vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--bone-dim);
  animation: marquee 42s linear infinite;
}
.marquee__track .dot {
  color: var(--accent);
  font-size: 0.6em;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: var(--section-y) var(--pad-x);
  z-index: 1;
}
.section__head {
  max-width: 1500px;
  margin: 0 auto 4rem;
}
.section__title {
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.04em;
  margin-top: 1.1rem;
  color: var(--bone);
}
.section__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.section__sub {
  margin-top: 1.4rem;
  font-size: var(--fs-lede);
  color: var(--bone-dim);
  max-width: 56ch;
  line-height: 1.45;
}

/* ---------- Overview ---------- */
.overview__grid {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.overview__copy p {
  font-size: clamp(1.35rem, 1.95vw, 2rem);
  line-height: 1.55;
  color: var(--bone);
  max-width: 58ch;
}
.overview__copy p + p { margin-top: 1.6rem; }
[data-theme="light"] .overview__copy p { color: var(--bone-dim); }
.overview__copy strong { color: var(--bone); font-weight: 600; }
[data-theme="dark"] .overview__copy strong { color: var(--accent); }
.overview__badges {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.leader-card {
  position: relative;
  padding: 1.8rem;
  border-radius: 24px;
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  overflow: hidden;
}
.leader-card__trace {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: inherit;
  z-index: 3;
}
.leader-card__trace rect {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.85s var(--ease-snap);
}
.leader-card:hover .leader-card__trace rect { stroke-dashoffset: 0; }
.leader-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent-glow), transparent 40%, transparent 60%, rgba(242, 180, 65, 0.22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
}
.leader-card__portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  margin: 0 0 1.6rem;
  border-radius: 16px;
  overflow: hidden;
  background: var(--ink-3);
}
.leader-card__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: grayscale(1) contrast(1.06) brightness(1.02);
}
.leader-card__name {
  font-size: 1.15rem;
  font-weight: 600;
}
.leader-card__creds {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.3rem;
}
.leader-card__list {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--bone-dim);
}
.leader-card__list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: baseline;
  gap: 0.8rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--rule);
}
.leader-card__list li:first-child { border-top: 0; padding-top: 0; }
.leader-card__list span {
  font-family: 'Geist Mono', ui-monospace, monospace;
  color: var(--bone);
  font-weight: 500;
  font-size: 0.95rem;
}

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

/* ---------- Capabilities ---------- */
.cap-grid {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
@media (max-width: 1000px) {
  .cap-grid { grid-template-columns: 1fr; }
}

.cap-card {
  position: relative;
  padding: 2rem 2rem 2.4rem;
  border-radius: 22px;
  background: var(--ink-2);
  border: 1px solid var(--rule);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease-std), border-color 0.35s var(--ease-std);
  will-change: transform;
}
.cap-card:hover {
  border-color: var(--rule-strong);
  /* !important so the lift wins over the inline transform GSAP leaves after reveal */
  transform: translateY(-10px) !important;
}
.cap-card__num {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 2.6rem;
}
.cap-card__icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--ink-3);
  border: 1px solid var(--rule);
  color: var(--accent);
  margin-bottom: 1.6rem;
  transition: transform 0.5s var(--ease-snap);
}
.cap-card:hover .cap-card__icon {
  transform: rotate(-8deg) scale(1.05);
}
.cap-card__icon svg {
  width: 32px;
  height: 32px;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s var(--ease-std);
}
.cap-card__icon-fill { opacity: 0; }
.cap-card:hover .cap-card__icon-line { opacity: 0; }
.cap-card:hover .cap-card__icon-fill { opacity: 1; }
.cap-card__title {
  font-size: clamp(1.2rem, 1.6vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1.4rem;
  max-width: 22ch;
}
.cap-card__list {
  display: grid;
  gap: 0.7rem;
  font-size: 0.94rem;
  color: var(--bone-dim);
  line-height: 1.45;
}
.cap-card__list li {
  position: relative;
  padding-left: 1.2rem;
}
.cap-card__list li::before {
  content: "";
  position: absolute;
  left: 0.3rem; top: 0.7em;
  width: 4px; height: 4px;
  border-radius: 999px;
  background: var(--accent);
}
.cap-card__list em {
  color: var(--bone);
  font-style: normal;
}
/* capability-card hover glow removed — cards now lift on hover instead */

/* ---------- Experience ---------- */
.exp-list {
  max-width: 1500px;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
}
.exp-item {
  display: grid;
  grid-template-columns: 80px 1fr 280px;
  gap: 2rem;
  padding: 2.4rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
  transition: padding 0.4s var(--ease-std);
}
.exp-item:hover {
  padding-left: 1.2rem;
  padding-right: 1.2rem;
  background: linear-gradient(90deg, transparent, var(--ink-2), transparent);
}
.exp-item__num {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  padding-top: 0.6rem;
}
.exp-item__num span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
}
.exp-item__title {
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.exp-item__sub {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.exp-item__desc {
  margin-top: 1rem;
  font-size: 1.02rem;
  color: var(--bone-dim);
  line-height: 1.55;
  max-width: 62ch;
}
.exp-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
  padding-top: 0.8rem;
}
.exp-item__tags span {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--bone-dim);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .exp-item {
    grid-template-columns: 60px 1fr;
  }
  .exp-item__tags {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-top: 0;
  }
}

/* ---------- Why / Stats ---------- */
.stat-grid {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stat {
  position: relative;
  padding: 2rem 1.8rem 2.2rem;
  border-radius: 22px;
  background: var(--ink-2);
  border: 1px solid var(--rule);
  transition: border-color 0.3s var(--ease-std), transform 0.35s var(--ease-snap);
}
.stat:hover {
  border-color: var(--rule-strong);
  transform: translateY(-4px);
}
.stat__num {
  font-size: clamp(2.8rem, 5.4vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--accent);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: baseline;
  gap: 0.2em;
  flex-wrap: wrap;
}
.stat__num--small {
  font-size: clamp(1.4rem, 2.1vw, 2rem);
  letter-spacing: -0.03em;
  color: var(--bone);
}
.stat__triple {
  font-size: 0.5em;
  font-weight: 700;
  font-family: 'Geist Mono', ui-monospace, monospace;
  letter-spacing: 0.04em;
  color: var(--bone);
}
.stat__plus {
  font-size: 0.5em;
  color: var(--accent);
}
.stat__label {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--bone);
  line-height: 1.3;
}
.stat__label--lg {
  font-size: clamp(1.15rem, 1.5vw, 1.5rem);
  line-height: 1.3;
  max-width: 38ch;
}
.stat__hint {
  margin-top: 0.5rem;
  font-size: 0.84rem;
  color: var(--bone-mute);
  letter-spacing: 0.02em;
}
.stat__creds {
  display: grid;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--bone-dim);
  line-height: 1.35;
}
.stat__creds li {
  position: relative;
  padding-left: 1.1rem;
}
.stat__creds li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.6em;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-size: 0.84rem;
  color: var(--bone);
  background: var(--ink-3);
  border: 1px solid var(--rule-strong);
  letter-spacing: 0.01em;
}
.badge__dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .stat-grid { grid-template-columns: 1fr; }
}

/* ---------- Intake form ---------- */
.intake {
  max-width: 920px;
  margin: 3rem auto 0;
  text-align: left;
  display: grid;
  gap: 1.4rem;
}
.intake__row {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr 1fr;
}
.intake__row--single { grid-template-columns: 1fr; }
@media (max-width: 720px) {
  .intake__row { grid-template-columns: 1fr; }
}

.intake__field { display: grid; gap: 0.5rem; }
.intake__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--bone-dim);
  font-weight: 500;
}
.intake__label .req { color: var(--accent); margin-left: 0.2rem; }

.intake input[type="text"],
.intake input[type="email"],
.intake select,
.intake textarea {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--bone);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  padding: 0 1.1rem;
  margin: 0;
  box-sizing: border-box;
  transition: border-color 0.25s var(--ease-std), background 0.25s var(--ease-std);
}
.intake input[type="text"],
.intake input[type="email"],
.intake select {
  height: 3.5rem !important;
  min-height: 3.5rem !important;
  max-height: 3.5rem !important;
}
.intake textarea {
  min-height: 140px;
  padding: 0.95rem 1.1rem;
  resize: vertical;
  line-height: 1.55;
}
.intake input:focus,
.intake select:focus,
.intake textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.intake input::placeholder,
.intake textarea::placeholder { color: var(--bone-mute); }

.intake select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9aa3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.6rem;
  cursor: pointer;
}

.intake__checks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
@media (max-width: 720px) {
  .intake__checks { grid-template-columns: 1fr; }
}
.intake__check {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--input-border);
  border-radius: 12px;
  background: var(--input-bg);
  cursor: pointer;
  transition: border-color 0.25s var(--ease-std), background 0.25s var(--ease-std);
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--bone);
}
.intake__check:hover { border-color: var(--rule-strong); }
.intake__check input {
  appearance: none;
  width: 18px; height: 18px;
  border: 1px solid var(--input-border);
  border-radius: 5px;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.2s var(--ease-std), background 0.2s var(--ease-std);
}
.intake__check input:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.intake__check input:checked::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}
.intake__check:has(input:checked) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.intake__honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.intake__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.4rem;
}
.intake__status {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--bone);
}
.intake__status--error { color: var(--accent-warm); }

/* Success panel — swapped in for the whole form after a submission */
.intake-success {
  display: none;
  max-width: 920px;
  margin: 3rem auto 0;
  text-align: center;
  padding: clamp(2.5rem, 5vw, 4rem) 2rem;
  border: 1px solid var(--rule);
  border-radius: 24px;
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
}
.intake-success.is-visible { display: block; }
.intake-success__icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1.4rem;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
}
.intake-success__title {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--bone);
  margin-bottom: 0.8rem;
}
.intake-success__text {
  max-width: 46ch;
  margin: 0 auto;
  font-size: var(--fs-lede);
  line-height: 1.5;
  color: var(--bone-dim);
}

/* ---------- Contact ---------- */
.contact {
  padding-top: var(--section-y);
  padding-bottom: clamp(6rem, 12vw, 10rem);
  text-align: center;
  background:
    radial-gradient(ellipse at top, var(--accent-glow), transparent 60%),
    var(--ink);
}
[data-theme="light"] .contact { background: var(--ink); }
.contact__inner {
  max-width: 1100px;
  margin: 0 auto;
}
.contact .kicker { margin-bottom: 1.4rem; }
.contact__title {
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.04em;
  color: var(--bone);
}
.contact__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.contact__lede {
  margin: 2rem auto 0;
  max-width: 56ch;
  font-size: var(--fs-lede);
  color: var(--bone-dim);
  line-height: 1.5;
}
.contact__actions {
  margin-top: 3rem;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  padding: 5rem var(--pad-x) 0;
  background: var(--footer-bg);
  color: var(--footer-fg);
  z-index: 1;
  overflow: hidden;
}
.footer__top {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

/* Footer signal column: availability widget + curated field feed */
.footer__signal { display: grid; gap: 1.6rem; }

.footer__hours-row {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
  margin-top: 2.75rem;
}
.signal-hours {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-bottom: 0.4rem;
}

/* "Connect on LinkedIn" pill — used in both bio card and footer */
.linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--bone);
  transition: background 0.25s var(--ease-std),
              border-color 0.25s var(--ease-std),
              color 0.25s var(--ease-std),
              transform 0.4s var(--ease-snap);
}
.linkedin-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.linkedin-btn svg:last-child {
  transition: transform 0.4s var(--ease-snap);
}
.linkedin-btn:hover svg:last-child {
  transform: translate(2px, -2px);
}

.overview__linkedin {
  margin-top: 7.4rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bone);
  font-size: 1.21rem;
}
.overview__linkedin svg:first-child {
  width: 24px;
  height: 24px;
  fill: var(--accent);
  transition: fill 0.25s var(--ease-std);
}
.overview__linkedin:hover {
  background: transparent;
  border-color: transparent;
  color: var(--accent);
}
.overview__linkedin:hover svg:first-child {
  fill: var(--bone);
}

.footer__linkedin {
  border-color: var(--footer-rule);
  background: rgba(255, 255, 255, 0.07);
  color: var(--footer-fg);
}
.footer__linkedin:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--footer-fg);
}
.signal-hours__label {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--footer-fg-mute);
}
.signal-hours__value {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--footer-fg);
  letter-spacing: -0.005em;
}

.signal-feed { display: grid; gap: 0.6rem; }
.signal-feed__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--footer-rule);
}
.signal-feed__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: var(--footer-fg);
}
.signal-feed__updated {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--footer-fg-mute);
}
.signal-feed__list { display: grid; gap: 0; }
.signal-feed__item { border-bottom: 1px solid var(--footer-rule); }
.signal-feed__item:last-child { border-bottom: 0; }
.signal-feed__item a {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0.5rem 1rem;
  align-items: center;
  padding: 0.95rem 0;
  color: var(--footer-fg);
  transition: padding-left 0.35s var(--ease-snap), color 0.25s var(--ease-std);
}
.signal-feed__item a:hover { padding-left: 0.4rem; color: #ffffff; }
.signal-feed__thumb {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid var(--footer-rule);
  color: var(--footer-fg);
  flex-shrink: 0;
  transition: background 0.25s var(--ease-std), color 0.25s var(--ease-std);
}
.signal-feed__thumb svg { width: 24px; height: 24px; }
.signal-feed__item a:hover .signal-feed__thumb {
  background: rgba(255, 255, 255, 0.18);
}
.signal-feed__text {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}
.signal-feed__title {
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--footer-fg);
}
.signal-feed__meta {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--footer-fg-mute);
  white-space: nowrap;
}
.footer__lead { max-width: 56ch; }
.footer__headline {
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--footer-fg);
  margin-bottom: 1rem;
}
.footer__tag { color: var(--footer-fg-dim); }
.footer__col { color: var(--footer-fg-dim); }
.footer__col a:hover { color: var(--footer-fg); }
.footer__label { color: var(--footer-fg-mute); }
.footer__wordmark-row {
  margin: clamp(1.5rem, 3vw, 2.6rem) calc(-1 * var(--pad-x)) 0;
  pointer-events: none;
}
.footer__wordmark {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 0.22em;
  white-space: nowrap;
  line-height: 0.95;
  font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  font-size: 13vw;
  letter-spacing: -0.025em;
  font-weight: 400;
  color: var(--footer-wordmark-fg);
  transform: translate(-0.24em, 30%);
  padding: 0;
}
.footer__wordmark em {
  font-style: normal;
  color: inherit;
  font-weight: inherit;
}
.footer__wordmark sup { font-size: 0.38em; vertical-align: super; color: var(--footer-fg-mute); }
.footer__tag {
  margin-top: 1.2rem;
  max-width: 40ch;
  font-size: 0.95rem;
  line-height: 1.5;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.92rem;
}
.footer__col a { transition: color 0.2s var(--ease-std); }
.footer__label {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.footer__bottom {
  max-width: 1500px;
  margin: 3.5rem auto 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--footer-rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--footer-fg-mute);
  letter-spacing: 0.02em;
}
.footer__sig {
  font-family: 'Geist Mono', ui-monospace, monospace;
  letter-spacing: 0.05em;
}

@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__bottom { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
}

/* ---------- Reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .line { transform: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
