/* ---------- THEME TOKENS ----------
   Light is the default. Dark lives under [data-theme="dark"].
   Change colors here; everything else reads from these. */
:root {
  --bg: #f4f7fc;
  --bg-2: #ffffff;
  --card: #ffffff;
  --card-hi: #ffffff;
  --line: rgba(15, 45, 100, 0.11);
  --text: #0b1d3a;
  --text-2: #34445f;
  --muted: #5d6b85;
  --blue: #0f62fe;
  --cyan: #0e7c93;
  --violet: #6929c4;
  --amber: #9a6b00;
  --grad: linear-gradient(100deg, #0f62fe 0%, #0e9bb5 50%, #6929c4 100%);
  --nav-bg: rgba(244, 247, 252, 0.82);
  --cta-bg: #0f62fe;
  --cta-fg: #ffffff;
  --tag-bg: rgba(15, 98, 254, 0.05);
  --ico-bg: rgba(15, 98, 254, 0.1);
  --stroke: rgba(11, 29, 58, 0.22);
  --blob1: #8fb8ff; --blob2: #7fe3d8; --blob3: #c9b3ff; --blob-op: .55;
  --shadow: 0 1px 2px rgba(15, 45, 100, .05), 0 14px 34px -18px rgba(15, 45, 100, .22);
  --c-ai: #0f62fe; --c-cloud: #0e9bb5; --c-prof: #d39b00; --c-sales: #8a3ffc;
  --radius: 18px;
  --sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #070a12;
  --bg-2: #0c1120;
  --card: rgba(255, 255, 255, 0.035);
  --card-hi: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef1f8;
  --text-2: var(--text-2);
  --muted: #8d97ad;
  --blue: #4589ff;
  --cyan: #33d6c8;
  --violet: #a56eff;
  --amber: #f1c21b;
  --grad: linear-gradient(100deg, #78a9ff 0%, #33d6c8 50%, #be95ff 100%);
  --nav-bg: rgba(7, 10, 18, 0.72);
  --cta-bg: #eef1f8;
  --cta-fg: #070a12;
  --tag-bg: rgba(255, 255, 255, 0.02);
  --ico-bg: rgba(69, 137, 255, 0.14);
  --stroke: rgba(255, 255, 255, 0.25);
  --blob1: #2a5bd7; --blob2: #0f9e93; --blob3: #7c3aed; --blob-op: .4;
  --shadow: none;
  --c-ai: #78a9ff; --c-cloud: #33d6c8; --c-prof: #f1c21b; --c-sales: #be95ff;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.muted { color: var(--muted); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.link { color: var(--cyan); border-bottom: 1px solid currentColor; }

/* ---------- progress + nav ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad); z-index: 100; }
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 56px);
  transition: background .3s, backdrop-filter .3s, padding .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: var(--nav-bg); backdrop-filter: blur(14px); padding-block: 12px; border-color: var(--line); }
.theme-toggle { width: 36px; height: 36px; margin-left: 4px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; font-size: 16px; transition: background .2s, transform .3s; }
.theme-toggle:hover { transform: rotate(20deg); }
.brand { font-family: var(--mono); font-weight: 500; letter-spacing: .1em; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; }
.nav nav { display: flex; gap: 6px; align-items: center; }
.nav nav a { font-size: 14px; color: var(--muted); padding: 6px 12px; border-radius: 99px; transition: color .2s, background .2s; }
.nav nav a:hover, .nav nav a.active { color: var(--text); background: var(--card-hi); }
.nav nav a.nav-cta { color: var(--cta-fg); background: var(--cta-bg); font-weight: 500; }
@media (max-width: 860px) { .nav nav a:not(.nav-cta) { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 99px; font-weight: 500; font-size: 15px; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--blue); color: #fff; box-shadow: 0 10px 30px -10px rgba(69, 137, 255, .7); }
.btn.ghost { border: 1px solid var(--line); background: var(--card); }
.btn.ghost:hover { background: var(--card-hi); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 120px 24px 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: var(--blob-op); animation: float 18s ease-in-out infinite; }
.b1 { width: 520px; height: 520px; background: var(--blob1); top: -120px; left: -80px; }
.b2 { width: 440px; height: 440px; background: var(--blob2); bottom: -120px; right: -60px; animation-delay: -6s; }
.b3 { width: 360px; height: 360px; background: var(--blob3); top: 30%; left: 55%; animation-delay: -12s; }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(40px,-30px) scale(1.08); } 66% { transform: translate(-30px,40px) scale(.95); } }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  opacity: .5;
}
.hero-inner { position: relative; z-index: 1; max-width: 920px; text-align: center; }
.avatar {
  width: 148px; height: 148px; margin: 0 auto 28px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--mono); font-size: 34px; font-weight: 500;
  background: var(--bg-2); position: relative; overflow: hidden;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(120,169,255,.6), 0 20px 60px -10px rgba(69,137,255,.5);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
h1 { font-size: clamp(48px, 9vw, 112px); line-height: .95; font-weight: 600; letter-spacing: -.035em; }
.hero-role { margin-top: 22px; font-size: clamp(18px, 2.4vw, 26px); color: var(--muted); font-weight: 300; }
.rotator { color: var(--text); font-weight: 500; display: inline-block; min-width: 1ch; border-right: 2px solid var(--cyan); padding-right: 4px; animation: caret 1s step-end infinite; }
@keyframes caret { 50% { border-color: transparent; } }
.hero-lede { max-width: 640px; margin: 18px auto 0; color: var(--muted); font-size: 17px; }
.stats { display: flex; justify-content: center; gap: clamp(16px, 4vw, 48px); margin: 44px 0 40px; flex-wrap: wrap; }
.stat { text-align: center; min-width: 140px; }
.stat b { display: block; font-size: clamp(36px, 5vw, 56px); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.stat span { font-size: 13px; color: var(--muted); font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 14px; z-index: 1; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--text); border-radius: 2px; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 12vw, 160px) clamp(20px, 5vw, 72px); max-width: 1280px; margin: 0 auto; }
.section-head { margin-bottom: 56px; max-width: 820px; }
.kicker { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
h2 { font-size: clamp(34px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -.03em; font-weight: 600; }
.sub { color: var(--muted); font-size: 18px; margin-top: 16px; max-width: 620px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- story ---------- */
.story-grid { display: grid; grid-template-columns: 340px 1fr; gap: clamp(32px, 6vw, 96px); }
.story-sticky { position: sticky; top: 110px; align-self: start; height: calc(100vh - 160px); display: flex; flex-direction: column; }
.year-wrap { overflow: hidden; height: clamp(96px, 12vw, 150px); }
.year { font-size: clamp(88px, 11vw, 140px); font-weight: 700; line-height: 1; letter-spacing: -.05em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; transition: transform .45s cubic-bezier(.2,.7,.2,1), opacity .45s; }
.year.out { transform: translateY(-60%); opacity: 0; }
.year.in-from { transform: translateY(60%); opacity: 0; transition: none; }
.year-label { font-family: var(--mono); color: var(--muted); font-size: 14px; letter-spacing: .06em; margin: 8px 0 28px; min-height: 1.5em; }
.rail { list-style: none; position: relative; padding-left: 22px; flex: none; overflow: hidden; }
.rail::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.rail::after { content: ""; position: absolute; left: 5px; top: 6px; width: 2px; height: var(--fill, 0%); background: var(--grad); transition: height .5s; max-height: calc(100% - 12px); }
.rail li { position: relative; font-size: 13px; color: var(--muted); padding: 3px 0; cursor: pointer; transition: color .3s; font-family: var(--mono); }
.rail li::before { content: ""; position: absolute; left: -21px; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); transition: all .3s; z-index: 1; }
.rail li.done::before { border-color: var(--blue); background: var(--blue); }
.rail li.active { color: var(--text); }
.rail li.active::before { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 0 5px rgba(51, 214, 200, .18); }

.chapters { display: flex; flex-direction: column; gap: 14vh; padding: 8vh 0 22vh; }
.chapter {
  position: relative; padding: 34px 34px 30px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  opacity: .35; transform: scale(.97); transition: opacity .6s, transform .6s, border-color .6s, background .6s;
}
.chapter.active { opacity: 1; transform: none; border-color: rgba(120, 169, 255, .35); background: var(--card-hi); }
.chapter.highlight::after { content: "★ Milestone"; position: absolute; top: 18px; right: 20px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--amber); }
.chapter .range { font-family: var(--mono); font-size: 13px; color: var(--cyan); letter-spacing: .08em; }
.chapter h3 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.02em; margin: 6px 0 12px; line-height: 1.15; font-weight: 600; }
.chapter p { color: var(--text-2); font-size: 17px; }
.chapter .note { margin-top: 14px; font-size: 14px; color: var(--amber); font-family: var(--mono); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag { font-size: 12.5px; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line); color: var(--text-2); background: var(--tag-bg); }

/* placeholder style (shared) */
.placeholder { border: 1.5px dashed rgba(211, 155, 0, .6) !important; background: repeating-linear-gradient(135deg, rgba(211,155,0,.04) 0 12px, transparent 12px 24px), var(--card) !important; }
.ph-badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); border: 1px solid rgba(241,194,27,.4); padding: 3px 9px; border-radius: 99px; margin-bottom: 12px; }

@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-sticky { position: sticky; top: 58px; height: auto; z-index: 5; flex-direction: row; align-items: baseline; gap: 14px; padding: 12px 0; background: linear-gradient(var(--bg) 75%, transparent); }
  .year-wrap { height: 60px; }
  .year { font-size: 56px; }
  .year-label { margin: 0; }
  .rail { display: none; }
  .chapters { gap: 8vh; padding: 4vh 0 12vh; }
}

/* ---------- pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.pillar {
  position: relative; padding: 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  overflow: hidden; transition: transform .35s, border-color .35s;
}
.pillar::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(120,169,255,.14), transparent 45%);
}
.pillar:hover { transform: translateY(-4px); border-color: rgba(120,169,255,.35); }
.pillar:hover::before { opacity: 1; }
.pillar .ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--ico-bg); color: var(--blue); font-size: 20px; margin-bottom: 18px; }
.pillar h3 { font-size: 20px; margin-bottom: 8px; font-weight: 600; }
.pillar p { color: var(--muted); font-size: 15.5px; }
.skills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 48px; }
.skills .tag { font-size: 14px; padding: 8px 14px; }

/* ---------- playbook (horizontal scroll) ---------- */
.playbook { position: relative; height: 380vh; }
.playbook-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 80px clamp(20px, 5vw, 72px) 40px; overflow: hidden; max-width: 1280px; margin: 0 auto; }
.playbook .section-head { margin-bottom: 40px; }
.track-wrap { overflow: visible; }
.track { display: flex; gap: 22px; will-change: transform; }
.step {
  flex: 0 0 min(380px, 78vw); min-height: 300px; padding: 34px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; transition: border-color .4s, background .4s;
}
.step.lit { border-color: rgba(51,214,200,.4); background: var(--card-hi); }
.step .n { font-family: var(--mono); font-size: 54px; font-weight: 500; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--stroke); margin-bottom: auto; }
.step.lit .n { -webkit-text-stroke: 1px var(--cyan); }
.step h3 { font-size: 28px; margin: 28px 0 10px; letter-spacing: -.02em; }
.step p { color: var(--muted); }
.step.final { background: linear-gradient(140deg, rgba(69,137,255,.25), rgba(165,110,255,.18)); border-color: rgba(165,110,255,.4); }
.step.final .n { color: var(--text); -webkit-text-stroke: 0; }
.track-progress { height: 2px; background: var(--line); margin-top: 36px; border-radius: 2px; overflow: hidden; }
#track-fill { height: 100%; width: 0; background: var(--grad); }
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .playbook { height: auto; }
  .playbook-sticky { position: static; height: auto; padding-block: 100px 60px; }
  .track { flex-direction: column; transform: none !important; }
  .step { flex-basis: auto; min-height: 0; }
  .step h3 { margin-top: 18px; }
  .track-progress { display: none; }
}

/* ---------- credentials ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.filter { padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); font-size: 14px; color: var(--muted); transition: all .2s; }
.filter:hover { color: var(--text); }
.filter.on { background: var(--cta-bg); color: var(--cta-fg); border-color: var(--cta-bg); font-weight: 500; }
.filter small { opacity: .6; margin-left: 4px; font-family: var(--mono); }
.cert-count { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.cert-count #cert-count { color: var(--text); }
.cert-count .link { margin-left: 10px; }
.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.cert {
  padding: 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px; transition: transform .3s, border-color .3s, opacity .3s;
  animation: pop .45s cubic-bezier(.2,.7,.2,1) both;
}
.cert:hover { transform: translateY(-3px); border-color: rgba(120,169,255,.35); }
.cert.star { border-color: rgba(241,194,27,.3); }
.cert .meta { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.cert .yr { color: var(--cyan); }
.cert h4 { font-size: 15px; font-weight: 500; line-height: 1.4; }
.cert .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- proofs ---------- */
.proofs { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.proof { padding: 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; }
.proof .ptag { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.proof h3 { font-size: 21px; margin: 8px 0 18px; line-height: 1.3; font-weight: 600; }
.proof dl { display: grid; gap: 12px; margin-bottom: 22px; }
.proof dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.proof dd { font-size: 15px; color: var(--text-2); }
.proof .metric { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 10px; }
.proof .metric b { font-size: 38px; font-weight: 600; letter-spacing: -.03em; }
.proof .metric span { color: var(--muted); font-size: 14px; }
.proof .plink { margin-top: 14px; font-size: 14px; }
.add-card { display: grid; place-items: center; text-align: center; color: var(--muted); padding: 30px; border-radius: var(--radius); border: 1.5px dashed var(--line); min-height: 220px; font-size: 15px; }
.add-card b { display: block; font-size: 40px; font-weight: 300; color: var(--text); margin-bottom: 6px; }
.add-card code { font-family: var(--mono); font-size: 13px; color: var(--cyan); }

/* ---------- testimonials ---------- */
.carousel { position: relative; max-width: 920px; }
.slides { position: relative; min-height: 300px; }
.slide {
  position: absolute; inset: 0; padding: clamp(28px, 5vw, 52px); border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  opacity: 0; transform: translateX(40px); transition: opacity .6s, transform .6s; pointer-events: none;
}
.slide.on { opacity: 1; transform: none; pointer-events: auto; }
.slide blockquote { font-size: clamp(20px, 2.6vw, 28px); line-height: 1.4; font-weight: 300; letter-spacing: -.01em; }
.slide blockquote::before { content: "“"; display: block; font-size: 72px; line-height: .6; color: var(--blue); font-weight: 600; margin-bottom: 14px; }
.slide .who { margin-top: 26px; display: flex; align-items: center; gap: 14px; }
.slide .ava { width: 46px; height: 46px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 600; color: #fff; }
.slide .who b { display: block; font-weight: 600; }
.slide .who span { color: var(--muted); font-size: 14px; }
.carousel-ctrl { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); transition: background .2s; }
.icon-btn:hover { background: var(--card-hi); }
.dots { display: flex; gap: 8px; }
.dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; background: var(--line); transition: all .3s; padding: 0; }
.dots button.on { width: 28px; background: var(--cyan); }

/* ---------- contact ---------- */
.contact-card {
  text-align: center; padding: clamp(48px, 8vw, 96px) 24px; border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(ellipse at top, rgba(69,137,255,.22), transparent 60%), var(--card);
}
.contact-card .sub { margin: 16px auto 34px; }
.footer { text-align: center; padding: 40px 20px 56px; color: var(--muted); font-size: 14px; }

/* ---------- light-theme depth ---------- */
.chapter, .pillar, .step, .cert, .proof, .slide, .contact-card, .btn.ghost, .filter { box-shadow: var(--shadow); }
body { transition: background-color .4s, color .4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
