/* ============================================================
   Swanston Growth Advisors
   Design system. Dark editorial. The operator's blueprint.
   Serif: Libre Caslon Display (the big confident moments).
   Sans:  Libre Franklin (the workhorse).
   Color: committed deep navy, restrained steel-blue accent.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Surface. Deep navy, lifted off black, every neutral tinted to the hue. */
  --bg:          oklch(0.17 0.034 248);
  --bg-deep:     oklch(0.135 0.030 248);
  --bg-raise:    oklch(0.205 0.040 250);
  --panel:       oklch(0.225 0.044 250);
  --panel-2:     oklch(0.265 0.052 250);

  /* Lines. Hairlines, steel-tinted and light-tinted. */
  --line:        oklch(0.70 0.10 250 / 0.16);
  --line-soft:   oklch(0.92 0.03 245 / 0.07);
  --line-strong: oklch(0.74 0.11 248 / 0.34);

  /* Accent. Steel blue, not gold. */
  --accent:        oklch(0.665 0.138 248);
  --accent-bright: oklch(0.755 0.115 246);
  --accent-dim:    oklch(0.560 0.110 250);
  --accent-glow:   oklch(0.665 0.138 248 / 0.45);

  /* Text. */
  --ink:        oklch(0.975 0.008 240);
  --text:       oklch(0.895 0.013 242);
  --text-dim:   oklch(0.730 0.020 244);
  --text-faint: oklch(0.585 0.022 246);

  /* Type families. */
  --serif: "Libre Caslon Display", "Iowan Old Style", Georgia, serif;
  --sans:  "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Fluid type scale, ratio ~1.27. */
  --t-eyebrow: 0.78rem;
  --t-body:    clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --t-lead:    clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --t-h4:      clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --t-h3:      clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --t-h2:      clamp(2rem, 1.5rem + 2.2vw, 3.25rem);
  --t-h1:      clamp(2.6rem, 1.7rem + 4vw, 5rem);
  --t-display: clamp(2rem, 0.6rem + 6.3vw, 6.5rem);

  /* Spacing rhythm. */
  --space-section: clamp(4.5rem, 3rem + 7vw, 9rem);
  --gutter:        clamp(1.25rem, 0.5rem + 3vw, 2.5rem);
  --maxw:          1200px;
  --maxw-text:     68ch;

  /* Radius + elevation. */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --shadow:    0 1px 0 oklch(0.92 0.03 245 / 0.05) inset, 0 24px 60px -28px oklch(0.05 0.02 248 / 0.8);
  --shadow-lg: 0 1px 0 oklch(0.92 0.03 245 / 0.06) inset, 0 40px 90px -40px oklch(0.04 0.02 248 / 0.9);

  /* Motion. Ease-out, exponential. No bounce. */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--accent-glow); color: var(--ink); }

/* The blueprint field. A faint structural grid washing the whole page. */
/* Aurora. Deep steel light, slowly drifting. The atmosphere. */
body::before {
  content: "";
  position: fixed;
  inset: -30%;
  z-index: -3;
  background:
    radial-gradient(46% 40% at 80% 6%, oklch(0.66 0.14 248 / 0.20), transparent 62%),
    radial-gradient(42% 38% at 8% 18%, oklch(0.45 0.11 256 / 0.16), transparent 58%),
    radial-gradient(40% 44% at 60% 96%, oklch(0.58 0.12 240 / 0.12), transparent 60%);
  pointer-events: none;
  animation: auroraDrift 38s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes auroraDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2.5%, -1.8%, 0) scale(1.08); }
  100% { transform: translate3d(-2%, 2.2%, 0) scale(1.12); }
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(oklch(0.7 0.1 250 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.7 0.1 250 / 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 120% at 50% 0%, #000 30%, transparent 80%);
          mask-image: radial-gradient(120% 120% at 50% 0%, #000 30%, transparent 80%);
  pointer-events: none;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: 1340px; }
.section { padding-block: var(--space-section); position: relative; }
.section-tight { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.lede { max-width: var(--maxw-text); }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -0.01em; color: var(--ink); overflow-wrap: break-word; }
.display { font-family: var(--serif); font-weight: 400; font-size: var(--t-display); line-height: 0.98; letter-spacing: -0.018em; color: var(--ink); overflow-wrap: break-word; }
h1, .h1 { font-size: var(--t-h1); }
h2, .h2 { font-size: var(--t-h2); }
h3, .h3 { font-size: var(--t-h3); }
.h4 { font-family: var(--sans); font-weight: 600; font-size: var(--t-h4); line-height: 1.25; letter-spacing: -0.005em; color: var(--ink); }

p { max-width: var(--maxw-text); }
.lead { font-size: var(--t-lead); line-height: 1.55; color: var(--text); }
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
strong { color: var(--ink); font-weight: 600; }
em { font-style: italic; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--sans); font-weight: 600;
  font-size: var(--t-eyebrow); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-bright);
}
.eyebrow::before {
  content: ""; width: 1.9rem; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.eyebrow.center::before { display: none; }

/* Section header block */
.head { max-width: 56ch; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.head .eyebrow { margin-bottom: 1.2rem; }
.head h2 { margin-bottom: 1.1rem; }
.head p { color: var(--text-dim); font-size: var(--t-lead); line-height: 1.5; }
.head.center { margin-inline: auto; text-align: center; }
.head.center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  --bd: transparent;
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  padding: 0.85em 1.5em; border-radius: 999px; border: 1px solid var(--bd);
  cursor: pointer; transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
  will-change: transform;
}
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  color: oklch(0.16 0.03 248);
  box-shadow: 0 10px 30px -12px var(--accent-glow), 0 1px 0 oklch(1 0 0 / 0.25) inset;
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%;
  background: linear-gradient(100deg, transparent, oklch(1 0 0 / 0.4), transparent);
  transform: skewX(-18deg); opacity: 0;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px var(--accent-glow), 0 1px 0 oklch(1 0 0 / 0.3) inset; }
.btn-primary:hover::after { animation: shine 0.85s var(--ease-quart); }
@keyframes shine { 0% { left: -70%; opacity: 1; } 100% { left: 130%; opacity: 1; } }
.btn-ghost { background: oklch(0.92 0.03 245 / 0.02); color: var(--ink); --bd: var(--line-strong); backdrop-filter: blur(6px); }
.btn-ghost:hover { --bd: var(--accent); background: oklch(0.66 0.14 248 / 0.08); transform: translateY(-2px); }
.btn-lg { padding: 1.05em 1.9em; font-size: 1rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--sans); font-weight: 600; font-size: 0.92rem; color: var(--accent-bright);
  letter-spacing: 0.01em;
}
.link-arrow .arr { transition: transform .4s var(--ease); }
.link-arrow:hover .arr { transform: translateX(5px); }
.link-arrow:hover { color: var(--ink); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: oklch(0.15 0.03 248 / 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
          backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; height: 76px; }
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-logo { height: 38px; width: auto; display: block; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand .name { display: flex; flex-direction: column; line-height: 1; }
.brand .name b { font-family: var(--serif); font-weight: 400; font-size: 1.18rem; color: var(--ink); letter-spacing: 0.005em; }
.brand .name span { font-family: var(--sans); font-weight: 600; font-size: 0.6rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--text-faint); margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a.nav-link, .nav-trigger {
  font-family: var(--sans); font-weight: 500; font-size: 0.92rem; color: var(--text-dim);
  padding: 0.5em 0.7em; border-radius: 8px; transition: color .25s var(--ease), background .25s var(--ease);
  background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 0.35em;
  white-space: nowrap;
}
.nav-cta .btn { white-space: nowrap; }
.nav-links a.nav-link:hover, .nav-trigger:hover, .nav-link.active, .nav-trigger.active { color: var(--ink); }
.nav-link.active { background: oklch(0.92 0.03 245 / 0.05); }
.nav-menu a.current { background: oklch(0.66 0.14 248 / 0.12); }
.nav-menu a.current b { color: var(--accent-bright); }

/* Services dropdown */
.has-menu { position: relative; }
.nav-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px);
  min-width: 320px; padding: 0.6rem; border-radius: var(--r);
  background: oklch(0.19 0.038 250 / 0.96);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.has-menu:hover .nav-menu, .has-menu:focus-within .nav-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
/* Hover bridge: keep the dropdown open while the cursor crosses the gap to it. */
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-menu a { display: flex; flex-direction: column; gap: 2px; padding: 0.7rem 0.85rem; border-radius: 9px; transition: background .2s var(--ease); }
.nav-menu a:hover { background: oklch(0.66 0.14 248 / 0.1); }
.nav-menu a b { font-family: var(--sans); font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.nav-menu a small { font-size: 0.8rem; color: var(--text-faint); }

.nav-cta { display: flex; align-items: center; gap: 0.8rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 9px; width: 44px; height: 40px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
body.menu-open .nav-toggle span { background: transparent; }
body.menu-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(3.5rem, 2rem + 7vw, 7rem) var(--space-section); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.hero h1 { margin: 1.4rem 0; }
.hero .lead { color: var(--text-dim); margin-bottom: 2.2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* Portrait treatment */
.portrait { position: relative; }
.portrait .frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, var(--panel), var(--bg-deep));
}
.portrait .frame img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: center top; filter: saturate(1.02) contrast(1.02); }
.portrait .frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, oklch(0.135 0.03 248 / 0.55));
}
.portrait .tag {
  position: absolute; left: -14px; bottom: 26px; z-index: 2;
  display: flex; flex-direction: column; gap: 2px;
  padding: 0.85rem 1.15rem; border-radius: 12px;
  background: oklch(0.19 0.04 250 / 0.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.portrait .tag b { font-family: var(--sans); font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.portrait .tag span { font-size: 0.74rem; letter-spacing: 0.04em; color: var(--accent-bright); }
.portrait .ticks { position: absolute; top: -16px; right: -16px; width: 92px; height: 92px; opacity: 0.5; z-index: -1; }

/* ---------- Authority bar ---------- */
.authority {
  border-block: 1px solid var(--line-soft);
  background: linear-gradient(180deg, oklch(0.92 0.03 245 / 0.015), transparent);
}
.authority .row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem 1.4rem;
  padding-block: 1.35rem; font-size: 0.86rem; letter-spacing: 0.04em; color: var(--text-dim);
}
.authority .row b { color: var(--ink); font-weight: 600; }
.authority .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- Stat band ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); }
.stat { position: relative; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.stat .n { font-family: var(--serif); font-size: clamp(2.8rem, 1.8rem + 4vw, 4.6rem); line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.stat .n b { color: var(--accent-bright); font-weight: 400; }
.stat .l { margin-top: 0.8rem; color: var(--text-dim); font-size: 0.98rem; max-width: 28ch; }
.stat::before { content: ""; position: absolute; top: -1px; left: 0; width: 46px; height: 2px; background: var(--accent); }

/* ---------- Pillars (the four ways) ---------- */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 0.5rem + 1.5vw, 1.6rem); }
.pillar {
  position: relative; display: flex; flex-direction: column; gap: 0.9rem;
  padding: clamp(1.6rem, 1.1rem + 1.5vw, 2.5rem);
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background:
    linear-gradient(180deg, oklch(0.25 0.05 250 / 0.92), oklch(0.19 0.038 250 / 0.84));
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .4s var(--ease), box-shadow .5s var(--ease);
}
.pillar::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .5s var(--ease);
  background: radial-gradient(300px 300px at var(--mx, 80%) var(--my, 0%), oklch(0.66 0.14 248 / 0.20), transparent 60%);
}
.pillar:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.pillar:hover::before { opacity: 1; }
.pillar .num { font-family: var(--serif); font-size: 1.05rem; color: var(--accent-bright); letter-spacing: 0.05em; }
.pillar h3 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem); }
.pillar h3 .sub { display: block; font-family: var(--sans); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em; color: var(--text-dim); margin-top: 0.45rem; }
.pillar p { color: var(--text-dim); font-size: 0.98rem; }
.pillar .link-arrow { margin-top: auto; padding-top: 0.6rem; }
.pillar.feature { grid-column: 1 / -1; }

/* Compact villain grid (problem section). 2-up, stacks on small phones. */
.villains { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
@media (max-width: 520px) { .villains { grid-template-columns: 1fr; } }

/* ---------- Callout / pull-quote ---------- */
.callout {
  position: relative; padding: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, oklch(0.23 0.046 250 / 0.92), oklch(0.16 0.034 248 / 0.85));
  box-shadow: var(--shadow);
}
.callout .q { font-family: var(--serif); font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem); line-height: 1.18; color: var(--ink); letter-spacing: -0.01em; max-width: 24ch; }
.callout.center { text-align: center; }
.callout.center .q { max-width: 30ch; margin-inline: auto; }
.pull {
  font-family: var(--serif); font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.3rem);
  line-height: 1.22; color: var(--ink); letter-spacing: -0.01em;
  padding-left: clamp(1.2rem, 0.5rem + 2vw, 2.2rem); position: relative; max-width: 26ch;
}
.pull::before { content: ""; position: absolute; left: 0; top: 0.15em; bottom: 0.15em; width: 2px; background: linear-gradient(var(--accent), transparent); }

/* ---------- Prose blocks (problem/story narrative) ---------- */
.prose > * + * { margin-top: 1.25rem; }
.prose p { color: var(--text); }
.prose .lead { color: var(--text); }
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.split.even { grid-template-columns: 1fr 1fr; }
.split .sticky { position: sticky; top: 110px; }

/* ---------- Checklist / who-it-is-for ---------- */
.ticklist { list-style: none; padding: 0; display: grid; gap: 0.95rem; }
.ticklist li { position: relative; padding-left: 2.5rem; color: var(--text); }
.ticklist li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(var(--accent), var(--accent)) center/9px 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center/1.5px 9px no-repeat,
    oklch(0.66 0.14 248 / 0.1);
}

/* ---------- Spec rows (how it works / structure) ---------- */
.rows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.rows .r { display: grid; grid-template-columns: 0.5fr 1.5fr; gap: 1.5rem; padding-block: 1.4rem; border-bottom: 1px solid var(--line); }
.rows .r dt { font-family: var(--sans); font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.rows .r dd { color: var(--text-dim); margin: 0; }
@media (max-width: 640px) { .rows .r { grid-template-columns: 1fr; gap: 0.4rem; } }

/* ---------- Feature list (what gets built) ---------- */
.builds { list-style: none; padding: 0; display: grid; gap: 0; counter-reset: b; }
.builds li { position: relative; padding: 1.05rem 0 1.05rem 2.7rem; border-bottom: 1px solid var(--line); color: var(--text); }
.builds li::before { content: counter(b, decimal-leading-zero); counter-increment: b; position: absolute; left: 0; top: 1.15rem; font-family: var(--serif); font-size: 0.95rem; color: var(--accent); }

/* ---------- Timeline (career) ---------- */
.timeline { position: relative; display: grid; gap: 0; }
.timeline .t {
  position: relative; padding: 0 0 2.2rem 2.2rem; border-left: 1px solid var(--line);
}
.timeline .t:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline .t::before {
  content: ""; position: absolute; left: -5px; top: 4px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px oklch(0.66 0.14 248 / 0.14);
}
.timeline .t h4 { font-family: var(--sans); font-weight: 600; font-size: 1.08rem; color: var(--ink); }
.timeline .t .role { color: var(--accent-bright); font-size: 0.86rem; letter-spacing: 0.02em; margin: 3px 0 0.6rem; }
.timeline .t p { color: var(--text-dim); font-size: 0.96rem; }

/* ---------- Tag chips (methodologies) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.chip {
  font-family: var(--sans); font-size: 0.9rem; color: var(--text); font-weight: 500;
  padding: 0.6em 1.05em; border-radius: 999px; border: 1px solid var(--line);
  background: oklch(0.92 0.03 245 / 0.025); transition: border-color .3s var(--ease), color .3s, background .3s;
}
.chip:hover { border-color: var(--accent); color: var(--ink); background: oklch(0.66 0.14 248 / 0.08); }

/* ---------- OMG partner badge ---------- */
.omg-badge {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.5rem;
  padding: 1.6rem 1.2rem; border-radius: var(--r); border: 1px solid var(--line);
  background: oklch(0.19 0.04 250 / 0.86); transition: border-color .4s var(--ease), transform .5s var(--ease);
}
.omg-badge:hover { border-color: var(--accent); transform: translateY(-3px); }
.omg-badge img { width: 100%; max-width: 215px; height: auto; display: block; }
.omg-badge b { font-family: var(--sans); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); margin-top: 0.7rem; }
.omg-badge span { font-size: 0.78rem; letter-spacing: 0.04em; color: var(--text-faint); }
@media (max-width: 760px) { .callout .split[style*="1.4fr"] { grid-template-columns: 1fr !important; } .omg-badge { max-width: 290px; } }

/* ---------- Three-component grid ---------- */
.components { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 0.5rem + 1.5vw, 1.5rem); counter-reset: c; }
.component { padding: clamp(1.4rem, 1rem + 1.5vw, 2.1rem); border-radius: var(--r); border: 1px solid var(--line); background: oklch(0.22 0.044 250 / 0.86); transition: transform .5s var(--ease), border-color .4s; }
.component:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.component .num { font-family: var(--serif); color: var(--accent-bright); font-size: 1.1rem; }
.component h4 { margin: 0.8rem 0 0.6rem; }
.component p { color: var(--text-dim); font-size: 0.94rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); padding: clamp(2.5rem, 1.5rem + 5vw, 5rem); text-align: center; background: linear-gradient(165deg, oklch(0.26 0.06 250 / 0.6), oklch(0.16 0.034 248 / 0.5)); box-shadow: var(--shadow-lg); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 360px at 50% -30%, oklch(0.66 0.14 248 / 0.22), transparent 70%); }
.cta-band h2 { margin-bottom: 1.1rem; }
.cta-band p { color: var(--text-dim); font-size: var(--t-lead); margin: 0 auto 2rem; max-width: 50ch; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(1rem, 0.5rem + 1.5vw, 1.5rem); }
.quote { padding: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); border-radius: var(--r); border: 1px solid var(--line); background: oklch(0.22 0.044 250 / 0.86); display: flex; flex-direction: column; gap: 1.2rem; }
.quote p { font-family: var(--serif); font-size: 1.25rem; line-height: 1.32; color: var(--ink); }
.quote .by { font-family: var(--sans); font-size: 0.86rem; color: var(--text-dim); margin-top: auto; }
.quote .by b { display: block; color: var(--ink); font-weight: 600; }
.quote .qmark { font-family: var(--serif); font-size: 3rem; line-height: 0.4; color: var(--accent); opacity: 0.55; height: 1.4rem; }
.placeholder { background: oklch(0.20 0.04 250 / 0.55); border-style: dashed; }
.placeholder p { color: var(--text-dim); font-family: var(--sans); font-size: 1rem; font-style: normal; }

/* ---------- Lead capture / forms ---------- */
.capture { display: flex; gap: 0.7rem; flex-wrap: wrap; max-width: 480px; }
.capture input {
  flex: 1 1 220px; padding: 0.95em 1.2em; border-radius: 999px;
  background: oklch(0.92 0.03 245 / 0.04); border: 1px solid var(--line-strong); color: var(--ink);
  transition: border-color .3s var(--ease);
}
.capture input::placeholder { color: var(--text-faint); }
.capture input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px oklch(0.66 0.14 248 / 0.14); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: start; }
.cal-embed { border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; background: #111c2e; }
.contact-list { list-style: none; padding: 0; display: grid; gap: 1.3rem; }
.contact-list li { display: grid; gap: 4px; padding-bottom: 1.3rem; border-bottom: 1px solid var(--line); }
.contact-list .k { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-bright); }
.contact-list .v { font-size: 1.15rem; color: var(--ink); }
.contact-list a.v:hover { color: var(--accent-bright); }

/* ---------- Blog grid ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: clamp(1.2rem, 0.5rem + 2vw, 2rem); }
.post { display: flex; flex-direction: column; gap: 0.9rem; padding: 1.8rem; border-radius: var(--r); border: 1px solid var(--line); background: oklch(0.22 0.044 250 / 0.86); transition: transform .5s var(--ease), border-color .4s; }
.post:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.post .date { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }
.post .cat { color: var(--accent-bright); }
.post h3 { font-size: 1.4rem; }
.post p { color: var(--text-dim); font-size: 0.96rem; }
.empty-note { text-align: center; padding: clamp(3rem, 2rem + 4vw, 5rem); border: 1px dashed var(--line); border-radius: var(--r-lg); color: var(--text-dim); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); margin-top: var(--space-section); background: linear-gradient(180deg, transparent, oklch(0.135 0.03 248 / 0.6)); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(1.5rem, 1rem + 2vw, 3rem); padding-block: clamp(3rem, 2rem + 3vw, 4.5rem); }
.footer .brand { margin-bottom: 1.2rem; }
.footer .brand-logo { height: 44px; }
.footer .tag { color: var(--text-dim); max-width: 34ch; font-size: 0.96rem; }
.footer h5 { font-family: var(--sans); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 1.1rem; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
.footer ul a, .footer ul span { color: var(--text-dim); font-size: 0.94rem; transition: color .25s var(--ease); }
.footer ul a:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-block: 1.6rem; border-top: 1px solid var(--line-soft); color: var(--text-faint); font-size: 0.84rem; }
.footer-bottom a:hover { color: var(--text); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Accessibility ---------- */
.skip { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--accent); color: oklch(0.16 0.03 248); padding: 0.7em 1.2em; border-radius: 0 0 10px 0; font-weight: 600; }
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; border-radius: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 460px; }
  .split, .split.even, .contact-grid { grid-template-columns: 1fr; }
  .split .sticky { position: static; }
  .pillars { grid-template-columns: 1fr; }
  .components { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0.2rem;
    position: absolute; top: 76px; left: 0; right: 0; padding: 1rem var(--gutter) 1.5rem;
    background: oklch(0.15 0.03 248 / 0.97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
  }
  .nav.open .nav-links a.nav-link, .nav.open .nav-trigger { padding: 0.8em 0.5em; font-size: 1.05rem; }
  .nav.open .nav-menu { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; background: none; border: 0; box-shadow: none; padding: 0 0 0 1rem; }
  .nav-menu::before { display: none; }
}
@media (max-width: 620px) {
  :root { --t-h1: clamp(1.95rem, 1.3rem + 3.4vw, 2.7rem); }
  .stats { grid-template-columns: 1fr; gap: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
}

/* ============================================================
   MOTION & ATMOSPHERE
   The living background, the orchestrated entrance, the polish.
   ============================================================ */

/* Constellation field. A slow blueprint of points and lines. */
.field {
  position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%;
  pointer-events: none; opacity: 0; transition: opacity 1.6s ease;
  /* Fade the field toward the center where text lives, strongest at the margins. */
  -webkit-mask-image: radial-gradient(125% 100% at 50% 0%, #000 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0.12) 70%);
          mask-image: radial-gradient(125% 100% at 50% 0%, #000 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0.12) 70%);
}
.field.lit { opacity: 0.42; }

/* Scroll progress, a hairline of steel at the very top. */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200;
  transform: scaleX(0); transform-origin: 0 50%; will-change: transform;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent-bright));
  box-shadow: 0 0 12px var(--accent-glow);
}

/* Signature hero entrance. Rise from blur, staggered. */
.rise { opacity: 0; transform: translateY(30px); filter: blur(12px); }
.is-loaded .rise { animation: riseIn 1.05s var(--ease) forwards; }
.rise.r1 { animation-delay: .05s; } .rise.r2 { animation-delay: .15s; }
.rise.r3 { animation-delay: .27s; } .rise.r4 { animation-delay: .39s; }
.rise.r5 { animation-delay: .52s; }
@keyframes riseIn { to { opacity: 1; transform: none; filter: blur(0); } }

/* Count-up numbers hold their width so the layout never jumps. */
.stat .n [data-count] { font-variant-numeric: tabular-nums; }

/* Portrait drifts gently with the cursor (set by JS). */
.portrait { transition: transform .6s var(--ease); transform: translate3d(var(--px, 0), var(--py, 0), 0); }
.portrait .frame { transition: transform .5s var(--ease); }
.portrait:hover .frame { transform: translateY(-4px); }

/* Hero ticks draw themselves in. */
.is-loaded .ticks path { stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw 1.6s var(--ease) .5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Eyebrow rule grows on entrance. */
.eyebrow::before { transform-origin: left; }

/* Soft entrance for the CTA band glow. */
.cta-band::before { animation: pulseGlow 7s ease-in-out infinite alternate; }
@keyframes pulseGlow { from { opacity: .7; } to { opacity: 1; } }

/* Respect reduced motion. Kill the lot, keep everything legible. */
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .field { display: none; }
  .rise { opacity: 1; transform: none; filter: none; }
  .is-loaded .rise { animation: none; }
  .is-loaded .ticks path { animation: none; stroke-dashoffset: 0; }
  .cta-band::before { animation: none; }
  .portrait { transform: none; }
  .btn-primary:hover::after { animation: none; }
}

/* Hide the heavy field on small screens for battery and clarity. */
@media (max-width: 760px) { .field { display: none; } }

/* ============================================================
   COMPETENCY GROUPS (OMG framework) + ARTICLE (blog posts)
   ============================================================ */
.component .kicker { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-bright); display: block; margin-bottom: 0.5rem; }
.component .tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.1rem; }
.component .tags span { font-size: 0.78rem; color: var(--text-dim); padding: 0.32em 0.7em; border: 1px solid var(--line); border-radius: 999px; }
.component.lead-group { border-color: var(--line-strong); background: linear-gradient(180deg, oklch(0.24 0.05 250 / 0.9), oklch(0.19 0.038 250 / 0.84)); }

/* Article reading column */
.article { max-width: 760px; margin-inline: auto; }
.article .post-meta { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 1.4rem; }
.article .post-meta .cat { color: var(--accent-bright); }
.article h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); margin-bottom: 1.3rem; }
.article .lead { margin-bottom: 2.2rem; color: var(--text); }
.article h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.05rem); margin: 2.8rem 0 1rem; }
.article h3 { font-family: var(--sans); font-weight: 600; font-size: 1.2rem; color: var(--ink); margin: 2rem 0 0.7rem; letter-spacing: -0.005em; }
.article p { margin-bottom: 1.25rem; color: var(--text); max-width: none; }
.article ul { margin: 1.3rem 0 1.5rem; padding: 0; list-style: none; display: grid; gap: 0.75rem; }
.article ul li { position: relative; padding-left: 1.7rem; color: var(--text); }
.article ul li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.article .pull { margin: 2.2rem 0; }
.article a:not(.btn):not(.link-arrow) { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.article a:not(.btn):not(.link-arrow):hover { text-decoration-color: var(--accent); }
.byline { display: flex; align-items: center; gap: 0.9rem; margin-top: 2.5rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.byline .avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-strong); flex: none; }
.byline .who b { color: var(--ink); font-weight: 600; font-size: 0.96rem; display: block; }
.byline .who span { color: var(--text-dim); font-size: 0.84rem; }
.article-foot { max-width: 760px; margin: 3rem auto 0; }

/* Cross-link card (to Best Sales Team Training, Revenue Bench, etc.) */
.xlink {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.3rem 1.6rem; border-radius: var(--r); border: 1px solid var(--line);
  background: oklch(0.22 0.044 250 / 0.6);
  transition: border-color .3s var(--ease), transform .45s var(--ease), background .3s var(--ease);
}
.xlink:hover { border-color: var(--accent); transform: translateY(-2px); background: oklch(0.66 0.14 248 / 0.08); }
.xlink .x-eyebrow { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-bright); display: block; margin-bottom: 0.35rem; }
.xlink b { color: var(--ink); font-weight: 600; font-size: 1.05rem; display: block; letter-spacing: -0.005em; }
.xlink .x-sub { color: var(--text-dim); font-size: 0.9rem; display: block; margin-top: 0.25rem; }
.xlink .arr { color: var(--accent-bright); font-size: 1.3rem; flex: none; transition: transform .4s var(--ease); }
.xlink:hover .arr { transform: translateX(5px); }
@media (max-width: 540px) { .xlink { flex-direction: column; align-items: flex-start; gap: 0.9rem; } }
