/* ==========================================================================
   FLOWCAP — Canadian RTO Advisory & Startup Selection
   Design system / global stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --bg:          #0c0f16;
  --bg-2:        #141821;
  --bg-3:        #1a1f2a;
  --bg-4:        #212734;
  --line:        #2c3441;
  --line-soft:   #222937;
  --ink:         #f0f3f7;
  --ink-strong:  #f6f7f9;
  --ink-dim:     #b6bfcb;
  --ink-faint:   #96a0af;
  --blue:        #3d7bf5;
  --blue-bright: #8ab2ff;
  --blue-deep:   #1e4fb0;
  --gold:        #b99a5b;
  --gold-bright: #dfc78e;
  --red:         #d9646b;
  --green:       #56b98a;
  /* Canadian flag red, used only as a restrained accent */
  --maple:       #d52b1e;
  --maple-soft:  #e8564a;

  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans:  'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:  'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  --wrap:  1160px;
  --pad:   40px;
  --ease:  cubic-bezier(.22,.61,.36,1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    radial-gradient(ellipse 1100px 620px at 85% -10%, rgba(61,123,245,.09), transparent 60%),
    radial-gradient(ellipse 900px 520px at 3% 28%, rgba(185,154,91,.05), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; }
ul, ol { list-style: none; }
img, svg, video { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
::selection { background: rgba(61,123,245,.35); color: #fff; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); position: relative; z-index: 1; }
.wrap-narrow { max-width: 800px; margin: 0 auto; padding: 0 var(--pad); position: relative; z-index: 1; }

section { padding: 104px 0; position: relative; }
section + section { border-top: 1px solid var(--line-soft); }
.sec-tight { padding: 72px 0; }
.sec-alt { background: var(--bg-2); }

@media (max-width: 700px) {
  :root { --pad: 22px; }
  body { font-size: 17px; }
  section { padding: 68px 0; }
}

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--ink-strong); letter-spacing: -.01em; }

h1 { font-size: clamp(36px, 5.2vw, 58px); line-height: 1.08; }
h2 { font-size: clamp(27px, 3.4vw, 40px); line-height: 1.16; }
h3 { font-size: clamp(21px, 2.2vw, 26px); line-height: 1.25; }
h4 { font-family: var(--sans); font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: 0; }

.eyebrow {
  font-family: var(--mono); font-size: 13px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--blue-bright); margin-bottom: 22px; display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--blue-bright); flex: none; }
.eyebrow.gold { color: var(--gold-bright); }
.eyebrow.gold::before { background: var(--gold-bright); }
.eyebrow.maple { color: var(--maple-soft); }
.eyebrow.maple::before { background: var(--maple); }

.lede { max-width: 680px; color: var(--ink-dim); font-size: 18.5px; margin-top: 20px; line-height: 1.78; }
.lede-wide { max-width: 820px; }

.prose p { color: var(--ink-dim); font-size: 17.5px; line-height: 1.85; margin-bottom: 20px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose h3 { margin: 44px 0 16px; }
.prose h4 { margin: 32px 0 12px; }
.prose ul { margin: 0 0 22px; }
.prose ul li {
  color: var(--ink-dim); font-size: 17.5px; line-height: 1.8;
  padding-left: 22px; position: relative; margin-bottom: 10px;
}
.prose ul li::before { content: ''; position: absolute; left: 0; top: .72em; width: 7px; height: 1px; background: var(--blue-bright); }
.prose ol { counter-reset: n; margin: 0 0 22px; }
.prose ol li {
  counter-increment: n; color: var(--ink-dim); font-size: 17.5px; line-height: 1.8;
  padding-left: 34px; position: relative; margin-bottom: 12px;
}
.prose ol li::before {
  content: counter(n,decimal-leading-zero); position: absolute; left: 0; top: .1em;
  font-family: var(--mono); font-size: 12.5px; color: var(--blue-bright);
}
.prose a { color: var(--blue-bright); text-decoration: none; border-bottom: 1px solid rgba(109,157,252,.35); }
.prose a:hover { border-color: var(--blue-bright); }

.mono-label { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; font-size: 16px; font-weight: 500; text-decoration: none;
  border: 1px solid var(--blue); background: none; cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-bright); border-color: var(--blue-bright); }
.btn-outline { color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); background: rgba(61,123,245,.08); }
.btn-ghost { color: var(--ink-dim); border-color: transparent; padding-left: 0; padding-right: 0; }
.btn-ghost:hover { color: var(--ink); }
.btn-lg { padding: 17px 34px; font-size: 16px; }
.btn-sm { padding: 12px 22px; font-size: 14.5px; }
.arrow-link {
  color: var(--blue-bright); text-decoration: none; font-size: 16px;
  display: inline-flex; align-items: center; gap: 9px; transition: gap .2s var(--ease);
}
.arrow-link::after { content: '→'; transition: transform .2s var(--ease); }
.arrow-link:hover { gap: 13px; }

.actions { margin-top: 40px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.actions-note { margin-top: 22px; font-family: var(--mono); font-size: 13.5px; color: var(--ink-faint); letter-spacing: .04em; }

@media (max-width: 520px) {
  .btn { width: 100%; }
  .actions { flex-direction: column; align-items: stretch; }
}

/* --------------------------------------------------------------------------
   6. Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(12,15,22,.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 18px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  font-family: var(--serif); font-size: 21px; font-weight: 500; color: var(--ink);
  text-decoration: none; letter-spacing: .01em; flex: none;
  display: inline-flex; align-items: center; gap: 12px;
}
.brand-type > span { color: var(--blue-bright); font-style: italic; }
.brand small {
  display: block; font-family: var(--mono); font-size: 9px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ink-faint); margin-top: 1px; font-style: normal;
}
.brand-mark {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex: none;
  border: 1px solid var(--line); background: var(--bg-2);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.brand:hover .brand-mark { border-color: var(--maple); background: rgba(213,43,30,.08); }

/* Maple leaf sizing */
.leaf-sm { width: 17px; height: 17px; color: var(--maple); }
.leaf-xs { width: 12px; height: 12px; color: var(--maple); }
.brand:hover .leaf-sm { color: var(--maple-soft); }

/* Red/white/red rule with a leaf at the centre */
.flag-rule { display: flex; align-items: center; gap: 10px; margin: 18px 0; max-width: 260px; }
.flag-rule i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--maple), transparent); }
.flag-rule span { display: flex; flex: none; }

/* Large watermark leaf behind a section */
.leaf-watermark {
  position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  width: 420px; height: 420px; color: var(--maple);
  opacity: .028; pointer-events: none; z-index: 0;
}
.leaf-wm-svg { width: 100%; height: 100%; }
@media (max-width: 900px) { .leaf-watermark { width: 260px; height: 260px; right: -80px; } }
section:has(.leaf-watermark) { overflow: hidden; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 15.5px; color: var(--ink-dim); }
.nav-links > a { text-decoration: none; transition: color .2s; white-space: nowrap; }
.nav-links > a:hover, .nav-links > a[aria-current="page"] { color: var(--ink); }
.nav-cta { padding: 10px 20px; border: 1px solid var(--blue); color: var(--ink) !important; font-size: 13.5px; }
.nav-cta:hover { background: var(--blue); }

.nav-drop { position: relative; }
.nav-drop > button {
  background: none; border: none; color: inherit; font-size: 14.5px; cursor: pointer;
  display: flex; align-items: center; gap: 6px; padding: 0; transition: color .2s;
}
.nav-drop > button:hover { color: var(--ink); }
.nav-drop > button::after { content: ''; width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.nav-drop-menu {
  position: absolute; top: calc(100% + 16px); left: -20px; min-width: 250px;
  background: var(--bg-2); border: 1px solid var(--line); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drop-menu a { display: block; padding: 9px 14px; font-size: 14px; text-decoration: none; color: var(--ink-dim); transition: background .15s, color .15s; }
.nav-drop-menu a:hover { background: var(--bg-3); color: var(--ink); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); width: 42px; height: 42px; cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 50%; width: 17px; height: 1px; background: var(--ink); transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle span { top: 50%; transform: translate(-50%,-50%); }
.nav-toggle span::before { content: ''; left: 0; top: -6px; }
.nav-toggle span::after  { content: ''; left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 71px 0 auto; background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--pad) 28px;
    max-height: calc(100vh - 71px); overflow-y: auto;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-links > a, .nav-drop > button { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 16px; width: 100%; }
  .nav-drop > button { justify-content: space-between; }
  .nav-drop-menu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    background: none; border: none; padding: 0 0 8px 14px; display: none;
  }
  .nav-drop.open .nav-drop-menu { display: block; }
  .nav-cta { margin-top: 20px; text-align: center; justify-content: center; display: flex; border-bottom: none !important; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; padding: 136px 0 116px; overflow: hidden; border-top: none; }
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,15,22,.55) 0%, rgba(12,15,22,.82) 55%, var(--bg) 100%);
}
.hero .wrap { z-index: 2; }
.hero-inner { max-width: 900px; }
.hero h1 { margin-top: 24px; }
.hero-sub { margin-top: 28px; max-width: 680px; font-size: 20px; color: var(--ink-dim); line-height: 1.72; }
.hero-note { margin-top: 22px; max-width: 650px; font-size: 16.5px; color: var(--ink-dim); line-height: 1.72; }
.hero-stats {
  margin-top: 68px; display: grid; grid-template-columns: repeat(4,1fr);
  border-top: 1px solid var(--line-soft); position: relative; z-index: 2;
}
.hero-stat { padding: 26px 26px 0 0; }
.hero-stat dt { font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.hero-stat dd { font-family: var(--serif); font-size: 20px; color: var(--ink); margin-top: 8px; line-height: 1.35; }
@media (max-width: 820px) { .hero-stats { grid-template-columns: 1fr 1fr; gap: 0 20px; } }
@media (max-width: 480px) { .hero-stats { grid-template-columns: 1fr; } .hero-stat { padding-right: 0; } }

/* --------------------------------------------------------------------------
   Market graphics — all decorative and illustrative, never real market data
   -------------------------------------------------------------------------- */
.hero-chart {
  position: absolute; inset: auto 0 0 0; height: 74%; z-index: 1;
  pointer-events: none; opacity: .5;
}
.hero-chart svg { width: 100%; height: 100%; }
/* Scrim so the chart reads as a backdrop and never competes with the copy */
.hero-chart::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(12,15,22,.92) 30%, rgba(12,15,22,.45) 62%, transparent 88%),
    linear-gradient(180deg, var(--bg) 0%, transparent 26%);
}

.chart-guides line { stroke: rgba(61,123,245,.12); stroke-width: 1; }
.chart-cols rect  { fill: rgba(61,123,245,.09); }

.chart-line { stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: draw 2.6s var(--ease) forwards; }
.chart-line-b { animation-delay: .18s; }
.chart-line-c { animation-delay: .34s; }
.chart-area { opacity: 0; animation: fadeIn 1.6s var(--ease) .7s forwards; }
@keyframes draw   { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

/* Framed illustrative chart used inside sections */
.chart-panel { border: 1px solid var(--line); background: var(--bg-2); padding: 22px 24px 20px; }
.chart-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.chart-panel > svg { width: 100%; height: auto; display: block; }
.chart-flag { display: flex; opacity: .85; }
.chart-flag .leaf-xs { width: 13px; height: 13px; }
.panel-guides line { stroke: rgba(61,123,245,.09); stroke-width: 1; }
.panel-marks .mk-drop { stroke: rgba(61,123,245,.22); stroke-width: 1; stroke-dasharray: 2 3; }
.panel-marks .mk-dot  { fill: var(--bg-2); stroke: var(--blue-bright); stroke-width: 2; }
.panel-marks .mk-txt  {
  fill: var(--ink-faint); font-family: var(--mono); font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase;
}
.chart-note {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft);
  font-size: 13px; color: var(--ink-faint); line-height: 1.62;
}

.spark { width: 100%; height: 30px; margin-top: 12px; opacity: .7; }

/* Abstract skyline / grid backdrop (pure CSS + SVG, no external assets) */
.skyline {
  position: absolute; inset: auto 0 0 0; height: 150px; z-index: 2;
  opacity: .8; pointer-events: none;
}
@media (max-width: 700px) { .skyline { height: 100px; } }
.grid-veil {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(61,123,245,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61,123,245,.055) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 25%, transparent 78%);
}

/* Page header (interior pages) */
.page-head { padding: 96px 0 68px; position: relative; overflow: hidden; border-top: none; }
.page-head h1 { max-width: 940px; }
.page-head .lede { margin-top: 26px; font-size: 18px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 26px; }
.breadcrumb a { text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--blue-bright); }
.breadcrumb span[aria-hidden] { opacity: .5; }

/* --------------------------------------------------------------------------
   8. Cards & grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 48px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
.card { background: var(--bg-2); padding: 34px 30px; position: relative; transition: background .25s var(--ease); }
.card:hover { background: var(--bg-3); }
.card .n { font-family: var(--mono); font-size: 12px; color: var(--blue-bright); letter-spacing: .1em; }
.card h4 { margin: 16px 0 12px; font-size: 18.5px; }
.card p { color: var(--ink-dim); font-size: 16px; line-height: 1.72; }
.card-link { text-decoration: none; display: block; }
.card-link:hover h4 { color: var(--blue-bright); }
.card-link .go { margin-top: 18px; font-family: var(--mono); font-size: 12px; color: var(--ink-faint); letter-spacing: .1em; text-transform: uppercase; }
.card-link:hover .go { color: var(--blue-bright); }

@media (max-width: 940px) { .grid-4 { grid-template-columns: repeat(2,1fr); } .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: .82fr 1.18fr; gap: 72px; align-items: start; }
.split-even { grid-template-columns: 1fr 1fr; gap: 64px; }
@media (max-width: 900px) { .split, .split-even { grid-template-columns: 1fr; gap: 34px; } }

.feature-list { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 60px; }
.feature-item { padding: 20px 0; border-bottom: 1px solid var(--line-soft); font-size: 16.5px; color: var(--ink); display: flex; gap: 14px; align-items: baseline; }
.feature-item::before { content: '—'; color: var(--blue-bright); flex: none; }
@media (max-width: 760px) { .feature-list { grid-template-columns: 1fr; } }

.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.tag {
  font-size: 14px; padding: 10px 17px; border: 1px solid var(--line); color: var(--ink-dim);
  font-family: var(--mono); text-decoration: none; transition: border-color .2s, color .2s;
}
a.tag:hover { border-color: var(--blue); color: var(--ink); }

/* Numbered steps */
.steps { margin-top: 44px; }
.step { display: grid; grid-template-columns: 78px 1fr; gap: 28px; padding: 34px 0; border-top: 1px solid var(--line-soft); }
.step:first-child { border-top: none; padding-top: 0; }
.step-num { font-family: var(--serif); font-size: 38px; color: var(--line); font-weight: 300; line-height: 1; }
.step-body h4 { font-size: 20px; margin-bottom: 10px; }
.step-body p { color: var(--ink-dim); font-size: 16.5px; max-width: 660px; }
@media (max-width: 600px) { .step { grid-template-columns: 1fr; gap: 12px; } .step-num { font-size: 26px; } }

/* Criteria / do-not blocks */
.check-list { margin-top: 36px; display: grid; gap: 14px; }
.check-item { display: grid; grid-template-columns: 22px 1fr; gap: 16px; align-items: baseline; font-size: 16.5px; color: var(--ink-dim); line-height: 1.7; }
.check-item .mk { font-family: var(--mono); font-size: 13px; line-height: 1.5; }
.check-item.yes .mk { color: var(--green); }
.check-item.no .mk { color: var(--red); }

/* --------------------------------------------------------------------------
   9. RTO flow diagram
   -------------------------------------------------------------------------- */
.flow { margin-top: 52px; display: grid; gap: 0; max-width: 680px; }
.flow-node {
  border: 1px solid var(--line); background: var(--bg-2); padding: 20px 26px;
  display: flex; align-items: center; gap: 20px; position: relative;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.flow-node:hover { border-color: var(--blue); background: var(--bg-3); }
.flow-node .idx { font-family: var(--mono); font-size: 12.5px; color: var(--blue-bright); letter-spacing: .12em; flex: none; width: 26px; }
.flow-node .label { display: block; font-size: 17px; color: var(--ink); line-height: 1.35; }
.flow-node .sub { display: block; font-size: 14.5px; color: var(--ink-faint); margin-top: 4px; line-height: 1.45; }
.flow-node.terminal { border-color: var(--gold); }
.flow-node.terminal .idx { color: var(--gold-bright); }
.flow-arrow { height: 34px; display: flex; align-items: center; justify-content: center; position: relative; }
.flow-arrow::before { content: ''; width: 1px; height: 100%; background: linear-gradient(var(--line), var(--blue)); }
.flow-arrow::after {
  content: ''; position: absolute; bottom: 0; width: 6px; height: 6px;
  border-right: 1px solid var(--blue); border-bottom: 1px solid var(--blue); transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   10. Disclaimer / callout
   -------------------------------------------------------------------------- */
.callout {
  margin-top: 40px; padding: 24px 28px; border-left: 2px solid var(--gold);
  background: rgba(185,154,91,.06); font-size: 15.5px; color: var(--ink-dim); line-height: 1.78; max-width: 820px;
}
.callout strong { color: var(--gold-bright); font-weight: 600; }
.callout.blue { border-color: var(--blue); background: rgba(61,123,245,.055); }
.callout.blue strong { color: var(--blue-bright); }

/* --------------------------------------------------------------------------
   11. Accordion (FAQ)
   -------------------------------------------------------------------------- */
.accordion { margin-top: 44px; border-top: 1px solid var(--line-soft); }
.acc-item { border-bottom: 1px solid var(--line-soft); }
.acc-head {
  width: 100%; background: none; border: none; cursor: pointer; text-align: left;
  padding: 26px 44px 26px 0; position: relative;
  font-family: var(--serif); font-size: 20.5px; font-weight: 500; color: var(--ink-strong); line-height: 1.4;
  transition: color .2s;
}
.acc-head:hover { color: var(--blue-bright); }
.acc-head::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px;
  border-right: 1px solid var(--blue-bright); border-bottom: 1px solid var(--blue-bright);
  transform: translateY(-70%) rotate(45deg); transition: transform .28s var(--ease);
}
.acc-head[aria-expanded="true"]::after { transform: translateY(-25%) rotate(-135deg); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.acc-panel-inner { padding: 0 60px 30px 0; color: var(--ink-dim); font-size: 17px; line-height: 1.82; }
.acc-panel-inner p + p { margin-top: 14px; }
@media (max-width: 600px) { .acc-panel-inner { padding-right: 0; } .acc-head { font-size: 17px; } }

/* --------------------------------------------------------------------------
   12. Forms — multi-step application
   -------------------------------------------------------------------------- */
.form-shell { max-width: 880px; margin: 0 auto; }

.progress { margin-bottom: 48px; }
.progress-bar { height: 2px; background: var(--line); position: relative; overflow: hidden; }
.progress-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--blue-deep), var(--blue-bright)); transition: width .45s var(--ease); }
.progress-steps { display: flex; justify-content: space-between; gap: 8px; margin-top: 18px; }
.progress-step {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint); flex: 1; text-align: center; transition: color .3s;
}
.progress-step .pn { display: block; font-size: 13px; margin-bottom: 5px; }
.progress-step.done { color: var(--ink-dim); }
.progress-step.active { color: var(--blue-bright); }
@media (max-width: 720px) { .progress-step .pt { display: none; } }

.fstep { display: none; animation: fadeUp .4s var(--ease); }
.fstep.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.fstep-head { margin-bottom: 34px; padding-bottom: 22px; border-bottom: 1px solid var(--line-soft); }
.fstep-head h3 { font-size: 24px; }
.fstep-head p { color: var(--ink-dim); font-size: 15px; margin-top: 10px; }

.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 26px; }
.fgrid-3 { grid-template-columns: repeat(3,1fr); }
.fspan { grid-column: 1 / -1; }
@media (max-width: 700px) { .fgrid, .fgrid-3 { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14.5px; color: var(--ink-dim); font-weight: 500; letter-spacing: .01em; }
.field label .req { color: var(--blue-bright); margin-left: 3px; }
.field .hint { font-size: 13.5px; color: var(--ink-faint); line-height: 1.55; }
.field input[type="text"], .field input[type="email"], .field input[type="url"],
.field input[type="tel"], .field input[type="number"], .field input[type="date"],
.field select, .field textarea {
  background: var(--bg-2); border: 1px solid var(--line); color: var(--ink);
  padding: 13px 15px; font-size: 15px; width: 100%;
  transition: border-color .2s, background .2s;
  border-radius: 0; -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-dim) 50%), linear-gradient(135deg, var(--ink-dim) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 40px;
}
.field textarea { min-height: 118px; resize: vertical; line-height: 1.65; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: var(--bg-3);
}
.field input::placeholder, .field textarea::placeholder { color: #4a515d; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); }
.field .err { font-size: 12.5px; color: var(--red); display: none; }
.field.invalid .err { display: block; }

.choice-set { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  position: relative; display: inline-flex; align-items: center;
  border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; transition: border-color .2s, background .2s;
}
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { padding: 10px 16px; font-size: 13.5px; color: var(--ink-dim); font-family: var(--mono); }
.choice:hover { border-color: var(--ink-faint); }
.choice input:checked ~ span { color: var(--ink); }
.choice:has(input:checked) { border-color: var(--blue); background: rgba(61,123,245,.1); }
.choice input:focus-visible ~ span { outline: 1px solid var(--blue-bright); outline-offset: 2px; }

.consent { display: grid; grid-template-columns: 20px 1fr; gap: 14px; align-items: start; margin-top: 20px; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue); cursor: pointer; }
.consent span { font-size: 14px; color: var(--ink-dim); line-height: 1.7; }
.consent.invalid span { color: var(--red); }

/* File dropzone */
.dropzone {
  border: 1px dashed var(--line); background: var(--bg-2); padding: 40px 28px; text-align: center;
  transition: border-color .2s, background .2s; cursor: pointer;
}
.dropzone:hover, .dropzone.over { border-color: var(--blue); background: rgba(61,123,245,.05); }
.dropzone .dz-icon { font-family: var(--mono); font-size: 22px; color: var(--blue-bright); }
.dropzone p { font-size: 15px; color: var(--ink); margin-top: 14px; }
.dropzone .dz-hint { font-size: 12.5px; color: var(--ink-faint); margin-top: 8px; }
.dropzone input[type="file"] { display: none; }
.file-list { margin-top: 18px; display: grid; gap: 8px; }
.file-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  border: 1px solid var(--line); background: var(--bg-2); font-size: 14px;
}
.file-row .fname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row .fsize { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); }
.file-row button { background: none; border: none; color: var(--ink-faint); cursor: pointer; font-size: 16px; line-height: 1; padding: 4px; }
.file-row button:hover { color: var(--red); }
.doc-checklist { margin-top: 30px; display: grid; grid-template-columns: repeat(2,1fr); gap: 10px 24px; }
.doc-checklist li { font-size: 14px; color: var(--ink-dim); padding-left: 20px; position: relative; }
.doc-checklist li::before { content: ''; position: absolute; left: 0; top: .72em; width: 7px; height: 1px; background: var(--ink-faint); }
@media (max-width: 620px) { .doc-checklist { grid-template-columns: 1fr; } }

.form-nav { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-nav .left { display: flex; gap: 12px; align-items: center; }
.save-state { font-family: var(--mono); font-size: 12.5px; color: var(--ink-faint); letter-spacing: .08em; text-transform: uppercase; }
.save-state.ok { color: var(--green); }

.review-block { border: 1px solid var(--line); background: var(--bg-2); padding: 24px 26px; margin-bottom: 14px; }
.review-block h5 { font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-bright); margin-bottom: 16px; }
.review-block dl { display: grid; grid-template-columns: minmax(140px, .5fr) 1fr; gap: 10px 24px; font-size: 15.5px; }
.review-block dt { color: var(--ink-faint); }
.review-block dd { color: var(--ink); word-break: break-word; }
@media (max-width: 560px) { .review-block dl { grid-template-columns: 1fr; gap: 2px 0; } .review-block dd { margin-bottom: 10px; } }

.form-alert { padding: 16px 20px; border: 1px solid var(--red); background: rgba(217,100,107,.08); color: #f0b6ba; font-size: 14.5px; margin-bottom: 24px; display: none; }
.form-alert.show { display: block; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.intake-notice {
  margin-bottom: 32px; padding: 14px 18px;
  border-left: 2px solid var(--line); background: var(--bg-2);
  font-size: 14px; color: var(--ink-dim); line-height: 1.72;
}
.intake-notice a { color: var(--ink-dim); text-decoration: underline; text-underline-offset: 2px; }
.intake-notice a:hover { color: var(--blue-bright); }

/* --------------------------------------------------------------------------
   13. Readiness score quiz
   -------------------------------------------------------------------------- */
.quiz { max-width: 780px; margin: 0 auto; }
.quiz-q { display: none; animation: fadeUp .35s var(--ease); }
.quiz-q.active { display: block; }
.quiz-count { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.quiz-q h3 { margin: 18px 0 30px; font-size: clamp(21px,2.6vw,28px); }
.quiz-opts { display: grid; gap: 10px; }
.quiz-opt {
  display: flex; align-items: center; gap: 16px; padding: 18px 22px;
  border: 1px solid var(--line); background: var(--bg-2); cursor: pointer;
  font-size: 16.5px; color: var(--ink-dim); text-align: left; width: 100%;
  transition: border-color .2s, background .2s, color .2s;
}
.quiz-opt:hover { border-color: var(--blue); background: var(--bg-3); color: var(--ink); }
.quiz-opt .key { font-family: var(--mono); font-size: 12px; color: var(--blue-bright); flex: none; }
.quiz-opt.selected { border-color: var(--blue); background: rgba(61,123,245,.1); color: var(--ink); }

.quiz-result { display: none; }
.quiz-result.show { display: block; animation: fadeUp .5s var(--ease); }
.score-ring { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.score-num { font-family: var(--serif); font-size: 68px; line-height: 1; color: var(--ink-strong); }
.score-num small { font-size: 22px; color: var(--ink-faint); }
.score-band { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; padding: 8px 16px; border: 1px solid currentColor; }
.band-early { color: var(--red); }
.band-prep { color: var(--gold-bright); }
.band-candidate { color: var(--green); }
.score-track { margin-top: 34px; height: 3px; background: var(--line); position: relative; }
.score-track i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--red), var(--gold), var(--green)); transition: width .8s var(--ease); }
.score-scale { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.score-detail { margin-top: 40px; display: grid; gap: 12px; }
.score-row { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 16px; color: var(--ink-dim); }
.score-row b { font-family: var(--mono); font-size: 13px; font-weight: 400; }

/* --------------------------------------------------------------------------
   14. Insights
   -------------------------------------------------------------------------- */
.article-list { margin-top: 48px; border-top: 1px solid var(--line-soft); }
.article-row {
  display: grid; grid-template-columns: 150px 1fr 130px; gap: 34px; align-items: baseline;
  padding: 30px 0; border-bottom: 1px solid var(--line-soft); text-decoration: none;
  transition: background .25s var(--ease);
}
.article-row:hover { background: rgba(61,123,245,.035); }
.article-row .a-cat { font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-bright); }
.article-row h3 { font-size: 22px; transition: color .2s; }
.article-row:hover h3 { color: var(--blue-bright); }
.article-row p { color: var(--ink-dim); font-size: 15.5px; margin-top: 9px; line-height: 1.65; max-width: 640px; }
.article-row .a-meta { font-family: var(--mono); font-size: 12.5px; color: var(--ink-faint); text-align: right; letter-spacing: .06em; }
@media (max-width: 860px) {
  .article-row { grid-template-columns: 1fr; gap: 10px; }
  .article-row .a-meta { text-align: left; }
}

.article-body { max-width: 760px; }
.article-meta { display: flex; gap: 20px; flex-wrap: wrap; font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.article-toc { border: 1px solid var(--line); background: var(--bg-2); padding: 26px 28px; margin: 0 0 44px; }
.article-toc h5 { font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px; }
.article-toc a { display: block; padding: 6px 0; font-size: 15.5px; color: var(--ink-dim); text-decoration: none; transition: color .2s; }
.article-toc a:hover { color: var(--blue-bright); }
.related { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line-soft); }

/* --------------------------------------------------------------------------
   15. CTA band
   -------------------------------------------------------------------------- */
.cta-band { background: var(--bg-2); position: relative; overflow: hidden; }
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 700px 400px at 78% 50%, rgba(61,123,245,.12), transparent 65%);
  pointer-events: none;
}
.cta-band h2 { max-width: 780px; }
.cta-band .lede { max-width: 660px; }
.cta-email { font-family: var(--mono); color: var(--blue-bright); font-size: 16px; text-decoration: none; }
.cta-email:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
footer { padding: 72px 0 40px; border-top: 1px solid var(--line-soft); background: var(--bg); position: relative; z-index: 1; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.foot-brand .brand { margin-bottom: 18px; display: inline-block; }
.foot-brand p { font-size: 15.5px; color: var(--ink-dim); line-height: 1.75; max-width: 320px; }
.foot-brand .foot-contact { margin-top: 20px; font-family: var(--mono); font-size: 13px; color: var(--blue-bright); text-decoration: none; display: inline-block; }
.foot-col h5 { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 18px; font-weight: 400; }
.foot-col a { display: block; font-size: 15.5px; color: var(--ink-dim); text-decoration: none; padding: 6px 0; transition: color .2s; }
.foot-col a:hover { color: var(--ink); }
.foot-legal { padding: 30px 0; border-top: 1px solid var(--line-soft); }
.foot-legal p { font-size: 14px; color: var(--ink-faint); line-height: 1.78; max-width: 940px; }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  padding-top: 26px; border-top: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 12px; color: var(--ink-faint);
}
.foot-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-bottom a { text-decoration: none; transition: color .2s; }
.foot-bottom a:hover { color: var(--ink-dim); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   17. Cookie consent
   -------------------------------------------------------------------------- */
.cookie {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 300; max-width: 720px;
  background: var(--bg-2); border: 1px solid var(--line); padding: 24px 26px;
  display: none; gap: 24px; align-items: center; flex-wrap: wrap;
  box-shadow: 0 24px 70px rgba(0,0,0,.6);
}
.cookie.show { display: flex; animation: fadeUp .4s var(--ease); }
.cookie p { font-size: 14.5px; color: var(--ink-dim); line-height: 1.7; flex: 1; min-width: 260px; }
.cookie p a { color: var(--blue-bright); text-decoration: none; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 560px) { .cookie { left: 12px; right: 12px; bottom: 12px; padding: 20px; } .cookie-actions { width: 100%; } .cookie-actions .btn { flex: 1; } }

/* --------------------------------------------------------------------------
   18. Utilities & motion
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.mt-0 { margin-top: 0 !important; }
.mt-s { margin-top: 24px; }
.mt-m { margin-top: 44px; }
.mt-l { margin-top: 68px; }
.text-dim { color: var(--ink-dim); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 400; background: var(--blue); color: #fff;
  padding: 12px 20px; text-decoration: none; font-size: 14px; transition: top .2s;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   19. Team
   -------------------------------------------------------------------------- */
.team-grid { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

.team-card {
  display: grid; grid-template-columns: 132px 1fr; gap: 26px; align-items: start;
  border: 1px solid var(--line); background: var(--bg-2); padding: 30px 28px;
}
.team-card:hover { border-color: var(--blue); }

/* Portrait frame — fixed box, the image can never grow past it */
.team-ava {
  position: relative; width: 132px; height: 168px; flex: none;
  overflow: hidden; background: var(--bg-3); border: 1px solid var(--line);
}
.team-ava picture { display: block; width: 100%; height: 100%; }
.team-ava img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 18%;
}
/* warm gradient wash so photos sit in the palette */
.team-ava::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(12,15,22,0) 45%, rgba(12,15,22,.5) 100%);
}
.team-ava::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; z-index: 2;
  background: linear-gradient(90deg, var(--maple), var(--gold));
}

.team-card h4 { font-family: var(--serif); font-size: 21px; font-weight: 500; }
.team-role {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-bright); margin: 6px 0 14px;
}
.team-card p { color: var(--ink-dim); font-size: 16px; line-height: 1.78; }

@media (max-width: 1020px) { .team-grid { grid-template-columns: 1fr; } }

/* Phones and small tablets: photo on top, then the name, then the text. */
@media (max-width: 760px) {
  .team-card { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .team-ava {
    width: 100%; height: auto; aspect-ratio: 4 / 5; max-height: 420px;
    border: none; border-bottom: 1px solid var(--line);
  }
  .team-ava img { object-position: 50% 12%; }
  .team-ava::after { left: 0; right: 0; }
  .team-card > div:last-child { padding: 24px 22px 26px; }
  .team-card h4 { font-size: 21px; }
  .team-role { margin: 7px 0 14px; }
  .team-card p { font-size: 15px; }
  /* the hover lift is pointless on touch */
  .team-card:hover { transform: none; box-shadow: none; }
  .team-card:hover .team-ava { transform: none; }
}
}

/* Footer subscribe strip */
.foot-sub {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 34px; align-items: center;
  padding: 28px 30px; border: 1px solid var(--line); background: var(--bg-2); margin-bottom: 40px;
}
.foot-sub h5 { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 10px; }
.foot-sub p { font-size: 14.5px; color: var(--ink-dim); line-height: 1.65; }
.foot-sub-form { display: flex; gap: 10px; }
.foot-sub-form input {
  flex: 1; background: var(--bg); border: 1px solid var(--line); color: var(--ink);
  padding: 11px 14px; font-size: 14px; min-width: 0;
}
.foot-sub-form input:focus { outline: none; border-color: var(--blue); }
.foot-sub .sub-done { font-size: 14px; color: var(--green); }
@media (max-width: 760px) { .foot-sub { grid-template-columns: 1fr; gap: 18px; } }

/* Gold CTA + Clean Shells nav highlight */
.btn-gold { color: var(--gold-bright); border-color: var(--gold); background: rgba(185,154,91,.08); }
.btn-gold:hover { background: var(--gold); border-color: var(--gold); color: #14100a; }
.nav-shell {
  padding: 11px 17px; border: 1px solid var(--gold); color: var(--gold-bright) !important;
  font-size: 14.5px; white-space: nowrap; text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-shell em { font-style: normal; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.nav-shell:hover { background: var(--gold); color: #14100a !important; }
@media (max-width: 1020px) { .nav-shell { margin-top: 14px; display: block; text-align: center; border-bottom: 1px solid var(--gold) !important; } }

/* --------------------------------------------------------------------------
   Hero star CTA — Clean Shells
   -------------------------------------------------------------------------- */
.btn-shell {
  position: relative;
  background: linear-gradient(135deg, #d4b878 0%, #b99a5b 55%, #a3854a 100%);
  border-color: var(--gold-bright);
  color: #14100a; font-weight: 600; letter-spacing: .01em;
  box-shadow: 0 0 0 1px rgba(212,184,120,.25), 0 8px 32px rgba(185,154,91,.35);
  animation: shellGlow 2.6s ease-in-out infinite;
  overflow: hidden;
}
.btn-shell em {
  font-style: normal; font-family: var(--mono); font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 8px; margin-left: 2px;
  background: rgba(9,11,16,.18); border-radius: 2px;
}
.btn-shell:hover {
  background: linear-gradient(135deg, #e3cb8f 0%, #d4b878 55%, #b99a5b 100%);
  border-color: #e3cb8f; transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(212,184,120,.4), 0 14px 44px rgba(185,154,91,.5);
}
/* sweeping shine */
.btn-shell::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 46px;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.42), transparent);
  transform: skewX(-20deg);
  animation: shellShine 3.4s ease-in-out infinite;
}
/* live "available" indicator */
.shell-dot {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: #2f9e64; box-shadow: 0 0 0 0 rgba(47,158,100,.65);
  animation: shellPulse 1.8s ease-out infinite;
}
@keyframes shellGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(212,184,120,.25), 0 8px 32px rgba(185,154,91,.32); }
  50%      { box-shadow: 0 0 0 1px rgba(212,184,120,.5),  0 8px 44px rgba(185,154,91,.55); }
}
@keyframes shellShine {
  0%       { left: -70px; }
  55%, 100% { left: calc(100% + 30px); }
}
@keyframes shellPulse {
  0%   { box-shadow: 0 0 0 0 rgba(47,158,100,.65); }
  70%  { box-shadow: 0 0 0 9px rgba(47,158,100,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,158,100,0); }
}

/* ==========================================================================
   20. Motion layer — premium, restrained
   All of it is disabled by the global prefers-reduced-motion override.
   ========================================================================== */

/* ---- Reading progress bar (injected by site.js) ---- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 300;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue-bright) 60%, var(--gold));
  box-shadow: 0 0 12px rgba(61,123,245,.5);
  pointer-events: none;
}

/* ---- Nav condenses after scroll ---- */
.nav-inner { transition: padding .3s var(--ease); }
.nav.scrolled .nav-inner { padding-top: 10px; padding-bottom: 10px; }
.nav.scrolled { box-shadow: 0 8px 30px rgba(0,0,0,.45); }

/* ---- Hero entrance choreography ---- */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
.hero .eyebrow       { animation: riseIn .6s var(--ease) .05s both; }
.hero h1             { animation: riseIn .7s var(--ease) .16s both; }
.hero .hero-sub      { animation: riseIn .7s var(--ease) .30s both; }
.hero .hero-note     { animation: riseIn .7s var(--ease) .42s both; }
.hero .actions       { animation: riseIn .7s var(--ease) .54s both; }
.hero .actions-note  { animation: riseIn .7s var(--ease) .66s both; }
.hero .hero-stats > * { opacity: 0; animation: riseIn .6s var(--ease) both;
                        animation-delay: calc(.75s + var(--i, 0) * .12s); }

/* ---- Staggered reveal of grid children inside sections ---- */
.reveal .grid > *, .reveal .steps > .step, .reveal .team-grid > *,
.reveal .article-list > *, .reveal .check-list > * {
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal.in .grid > *, .reveal.in .steps > .step, .reveal.in .team-grid > *,
.reveal.in .article-list > *, .reveal.in .check-list > * {
  opacity: 1; transform: none;
}

/* Flow diagram cascades node by node */
.reveal .flow > * {
  opacity: 0; transform: translateX(-14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.in .flow > * { opacity: 1; transform: none; }

/* Eyebrow rule draws itself */
.reveal .eyebrow::before { width: 0; transition: width .6s var(--ease) .15s; }
.reveal.in .eyebrow::before { width: 26px; }

/* ---- Card hover: lift + accent line sweeping across the top ---- */
.card { position: relative; transition: background .25s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,0,0,.4); }
.card:hover::before { transform: scaleX(1); }

/* Step numbers warm up on hover */
.step { transition: background .3s var(--ease); }
.step-num { transition: color .35s var(--ease); }
.step:hover .step-num { color: var(--gold-bright); }

/* Team cards */
.team-card { transition: border-color .25s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.team-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,0,0,.4); }
.team-ava { transition: transform .35s var(--ease); }
.team-card:hover .team-ava { transform: scale(1.05); }
.team-ava::after { transition: left .35s var(--ease), right .35s var(--ease); }
.team-card:hover .team-ava::after { left: 4px; right: 4px; }

/* Chart panel stage dots breathe */
.panel-marks .mk-dot { animation: mkPulse 2.4s ease-in-out infinite; }
.panel-marks .mk-dot:nth-of-type(2) { animation-delay: .3s; }
@keyframes mkPulse {
  0%, 100% { stroke-opacity: 1; }
  50%      { stroke-opacity: .45; }
}

/* Buttons: primary sheen on hover */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60px; width: 40px;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); transition: left .5s var(--ease);
}
.btn-primary:hover::after { left: calc(100% + 20px); }

/* Footer subscribe input focus glow */
.foot-sub-form input:focus { box-shadow: 0 0 0 3px rgba(61,123,245,.18); }

/* Accordion panel content fades as it opens */
.acc-panel-inner { opacity: 0; transform: translateY(-4px); transition: opacity .35s var(--ease) .1s, transform .35s var(--ease) .1s; }
.acc-head[aria-expanded="true"] + .acc-panel .acc-panel-inner { opacity: 1; transform: none; }

/* Hero backdrop layers get a parallax transform from site.js */
.hero-chart, .hero .skyline { will-change: transform; }


/* ==========================================================================
   21. Motion layer II — ticker, gradient word, tilt, dust, to-top
   ========================================================================== */

/* ---- Animated gradient on the key headline words ---- */
.grad-word {
  background: linear-gradient(100deg, var(--blue-bright), var(--gold-bright), #9dc0ff, var(--blue-bright));
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: gradShift 7s ease-in-out infinite;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ---- Exchange ticker ---- */
.ticker {
  overflow: hidden; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  background: var(--bg-2); padding: 15px 0; position: relative; z-index: 1;
}
.ticker::before, .ticker::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 110px; z-index: 2; pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.ticker::after  { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.ticker-track { display: flex; width: max-content; animation: tickerScroll 36s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-set { display: flex; align-items: center; flex: none; }
.tk-item {
  font-family: var(--mono); font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-dim); padding: 0 26px; white-space: nowrap;
}
.tk-sep { color: var(--gold); font-size: 8px; }
@keyframes tickerScroll { to { transform: translateX(-50%); } }

/* ---- Floating dust in the hero (spans injected by site.js) ---- */
.hero-dust { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero-dust span {
  position: absolute; border-radius: 50%;
  background: var(--blue-bright); opacity: .22;
  animation: dustFloat var(--dur, 12s) ease-in-out var(--delay, 0s) infinite alternate;
}
.hero-dust span:nth-child(3n) { background: var(--gold-bright); }
@keyframes dustFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(var(--dx, 30px), var(--dy, -60px), 0) scale(1.25); }
}

/* ---- Skyline windows twinkle ---- */
.skyline svg g[fill="#3d7bf5"] { animation: twinkle 5.5s ease-in-out infinite; }
@keyframes twinkle {
  0%, 100% { opacity: .3; }
  45%      { opacity: .42; }
  55%      { opacity: .38; }
}

/* ---- Back to top ---- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 250;
  width: 46px; height: 46px; border: 1px solid var(--gold); background: rgba(20,24,33,.92);
  color: var(--gold-bright); font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s,
              background .2s, color .2s;
  backdrop-filter: blur(6px);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold); color: #14100a; }

/* ---- 3D tilt (transform set by site.js on fine pointers) ---- */
.card, .team-card, .chart-panel { transform-style: preserve-3d; }
.tilting { transition: transform .12s linear !important; }
.tilt-reset { transition: transform .5s var(--ease) !important; }

/* ---- Panel chart redraws when its section reveals ---- */
.reveal .chart-panel .chart-line { animation: none; stroke-dashoffset: 3000; }
.reveal.in .chart-panel .chart-line { animation: draw 2.2s var(--ease) .25s forwards; }

/* ---- Leaf watermark drifts very slowly ---- */
.leaf-watermark { animation: leafDrift 14s ease-in-out infinite alternate; }
@keyframes leafDrift {
  from { transform: translateY(-50%) rotate(-2deg); }
  to   { transform: translateY(-46%) rotate(2.5deg); }
}

@media (max-width: 700px) {
  .ticker-track { animation-duration: 22s; }
  .to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}

/* ==========================================================================
   22. Polish layer — spotlight, magnetic buttons, link underlines, dividers
   ========================================================================== */

/* ---- Cursor spotlight in the hero ---- */
.hero-spot {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 40%),
              rgba(61,123,245,.13), transparent 62%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.hero:hover .hero-spot { opacity: 1; }

/* ---- Magnetic buttons (translate set by site.js) ---- */
.btn { will-change: transform; }
.btn.magnetic { transition: transform .18s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }

/* ---- Animated underline on prose + footer links ---- */
.prose a, .foot-col a, .article-toc a {
  position: relative; border-bottom: none !important; text-decoration: none;
}
.prose a::after, .foot-col a::after, .article-toc a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px;
  background: currentColor; opacity: .7;
  transition: right .35s var(--ease);
}
.prose a::after { right: 0; opacity: .3; }
.prose a:hover::after { opacity: .9; }
.foot-col a:hover::after, .article-toc a:hover::after { right: 0; }

/* ---- Images fade in. `both` keeps the end state, so the picture is visible
        even if JS never runs and even under reduced-motion. ---- */
@keyframes imgFade { from { opacity: 0; } to { opacity: 1; } }
img { animation: imgFade .7s var(--ease) both; }

/* ---- Section dividers get a soft gradient seam ---- */
section + section::before {
  content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(61,123,245,.28) 30%,
              rgba(185,154,91,.24) 70%, transparent);
}

/* ---- Card index numbers glow on hover ---- */
.card .n { transition: color .3s var(--ease), text-shadow .3s var(--ease); }
.card:hover .n { color: var(--gold-bright); text-shadow: 0 0 14px rgba(212,184,120,.5); }

/* ---- Eyebrow gets a travelling dot ---- */
.eyebrow { position: relative; }

/* ---- Flow nodes light up in sequence on hover of the flow ---- */
.flow:hover .flow-node { opacity: .55; transition: opacity .3s var(--ease); }
.flow .flow-node:hover { opacity: 1 !important; border-color: var(--gold); }

/* ---- Quiz options slide their key on hover ---- */
.quiz-opt .key { transition: transform .25s var(--ease), color .25s var(--ease); }
.quiz-opt:hover .key { transform: translateX(3px); color: var(--gold-bright); }

/* ---- Ticker items highlight individually ---- */
.tk-item { transition: color .25s var(--ease); }
.tk-item:hover { color: var(--gold-bright); }

/* ---- Footer brand leaf pulses gently ---- */
.foot-brand .leaf-sm { animation: leafBeat 4.5s ease-in-out infinite; }
@keyframes leafBeat { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }

@media (max-width: 700px) {
  .hero-spot { display: none; }
}

/* Team LinkedIn link */
.team-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-dim); text-decoration: none;
  padding: 7px 12px; border: 1px solid var(--line);
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.team-link svg { width: 13px; height: 13px; flex: none; }
.team-link:hover { color: var(--blue-bright); border-color: var(--blue); background: rgba(61,123,245,.08); }
