:root {
  --ink: #050b1f;
  --ink-2: #0a1533;
  --panel: #0e1c42;
  --panel-2: #12245a;
  --line: rgba(120, 160, 255, 0.18);
  --text: #e8eeff;
  --muted: #9fb0d9;
  --blue: #2f7bff;
  --cyan: #38c8ff;
  --amber: #ffb547;
  --logo-blue: #0282c7;
  --radius: 18px;
  --max: 1180px;
  --display: "Sora", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1.1em; }
.tm { font-size: .45em; vertical-align: super; font-weight: 600; letter-spacing: 0; margin-left: .05em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; position: relative; }
.eyebrow {
  display: inline-block; font-family: var(--display); font-size: .78rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--amber); margin-bottom: 18px;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 720px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.bg-grid::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(56, 200, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 200, 255, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
}
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 11, 31, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; }
.brand-logo {
  background: #fff; border-radius: 10px; padding: 7px 12px; display: flex; align-items: center;
}
.brand-logo img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 30px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: .96rem; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a.active { box-shadow: inset 0 -2px 0 var(--amber); padding-bottom: 4px; }
.nav-links a.btn, .nav-links a.btn:hover { color: #fff; box-shadow: 0 8px 30px rgba(47, 123, 255, .35); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: #fff; border-radius: 10px; padding: 8px 12px; font: inherit; cursor: pointer; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: .98rem; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; box-shadow: 0 8px 30px rgba(47, 123, 255, .35); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 38px rgba(56, 200, 255, .45); }
.btn-ghost { border: 1px solid rgba(255, 181, 71, .6); color: var(--amber); }
.btn-ghost:hover { background: rgba(255, 181, 71, .1); color: var(--amber); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero { padding: 90px 0 110px; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -250px; pointer-events: none;
  background: radial-gradient(circle, rgba(47, 123, 255, .28), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero h1 .accent { background: linear-gradient(90deg, #fff, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 .is { font-size: .55em; font-weight: 600; color: var(--amber); vertical-align: .12em; margin: 0 .1em; }
.pillars-line { font-family: var(--display); letter-spacing: .18em; text-transform: uppercase; font-size: .9rem; color: var(--muted); margin: 6px 0 22px; }
.pillars-line span { color: var(--amber); margin: 0 .5em; }
.portrait { position: relative; justify-self: center; max-width: 420px; }
.portrait img { border-radius: 26px; border: 1px solid rgba(56, 200, 255, .35); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 60px rgba(47, 123, 255, .25); }
.portrait::before {
  content: ""; position: absolute; inset: -14px; border-radius: 34px; z-index: -1;
  background: conic-gradient(from 140deg, var(--blue), transparent 30%, var(--amber) 55%, transparent 75%, var(--cyan));
  opacity: .55; filter: blur(18px);
}
.portrait .tag {
  position: absolute; left: -24px; bottom: 28px; background: rgba(10, 21, 51, .92); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 16px; font-size: .85rem; line-height: 1.35; backdrop-filter: blur(8px);
}
.portrait .tag strong { display: block; font-family: var(--display); color: #fff; }
.portrait .tag em { color: var(--muted); font-style: normal; }
.page-hero { padding: 80px 0 60px; border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; width: 700px; height: 700px; left: 50%; top: -420px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(circle, rgba(47, 123, 255, .3), transparent 65%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: linear-gradient(180deg, rgba(18, 36, 90, .55), rgba(14, 28, 66, .35));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; position: relative; transition: border-color .25s, transform .25s;
}
.card:hover { border-color: rgba(56, 200, 255, .45); transform: translateY(-3px); }
.card p { color: var(--muted); margin-bottom: 0; }
.card .num { font-family: var(--display); font-size: .8rem; color: var(--amber); letter-spacing: .15em; margin-bottom: 14px; display: block; }
.icon {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(47, 123, 255, .14); border: 1px solid rgba(56, 200, 255, .3); color: var(--cyan);
}
.icon svg { width: 24px; height: 24px; }
.equation {
  background: linear-gradient(90deg, rgba(47, 123, 255, .12), rgba(255, 181, 71, .08));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 64px 0;
}
.eq-row { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; font-family: var(--display); }
.eq-box { padding: 18px 28px; border-radius: 14px; border: 1px solid var(--line); background: var(--ink-2); font-weight: 600; font-size: 1.1rem; }
.eq-op { color: var(--amber); font-size: 1.8rem; font-weight: 700; }
.eq-result { background: linear-gradient(135deg, var(--blue), var(--cyan)); border: none; color: #fff; }
.path { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; }
.step {
  border: 1px solid var(--line); border-radius: 16px; padding: 24px 20px; background: var(--ink-2); position: relative;
}
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--display); color: var(--amber); font-size: .8rem; letter-spacing: .15em; }
.step h3 { margin: 10px 0 8px; font-size: 1.08rem; }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }
.step:last-child { border-color: rgba(56, 200, 255, .55); background: linear-gradient(180deg, rgba(47, 123, 255, .25), var(--ink-2)); }
.service { display: grid; grid-template-columns: 90px 1fr 1fr; gap: 30px; padding: 40px 0; border-top: 1px solid var(--line); }
.service:first-of-type { border-top: none; }
.service .num { font-family: var(--display); font-size: 2.2rem; font-weight: 700; color: rgba(56, 200, 255, .45); line-height: 1; }
.service h3 { font-size: 1.45rem; }
.service p { color: var(--muted); }
.service ul { list-style: none; padding: 0; margin: 0; }
.service li { padding: 8px 0 8px 28px; position: relative; color: var(--text); border-bottom: 1px dashed rgba(120, 160, 255, .12); }
.service li::before { content: ""; position: absolute; left: 0; top: 17px; width: 12px; height: 2px; background: var(--amber); }
.service .outcome { margin-top: 14px; font-size: .92rem; color: var(--amber); font-weight: 600; }
.banner-img { border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); width: 100%; }
.video-frame { position: relative; padding-top: 56.25%; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.link-card { display: flex; gap: 18px; align-items: flex-start; color: var(--text); }
.link-card:hover { color: var(--text); }
.link-card .go { margin-top: 14px; font-family: var(--display); font-weight: 600; color: var(--cyan); font-size: .92rem; }
.substack-embed { width: 100%; height: 320px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.cta {
  border-radius: 26px; padding: 64px 48px; text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(circle at 20% 0%, rgba(56, 200, 255, .25), transparent 50%), radial-gradient(circle at 90% 100%, rgba(255, 181, 71, .2), transparent 45%), var(--panel);
  border: 1px solid var(--line);
}
.cta .btn-row { justify-content: center; }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.about-grid .portrait { max-width: 100%; }
.quote {
  font-family: var(--display); font-size: 1.4rem; line-height: 1.45; border-left: 3px solid var(--amber); padding-left: 24px; margin: 30px 0; color: #fff;
}
.site-footer { border-top: 1px solid var(--line); padding: 60px 0 36px; background: var(--ink-2); font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-grid h4 { font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 9px; }
.foot-grid a { color: var(--text); }
.foot-grid a:hover { color: var(--cyan); }
.foot-slogan { font-family: var(--display); font-size: 1.25rem; font-weight: 700; margin: 18px 0 8px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--text);
}
.socials a:hover { border-color: var(--cyan); color: var(--cyan); }
.socials svg { width: 19px; height: 19px; fill: currentColor; }
.legal { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 24px; color: var(--muted); font-size: .85rem; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
@media (max-width: 980px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .path { grid-template-columns: 1fr 1fr; }
  .service { grid-template-columns: 1fr; gap: 12px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 70px 0; }
  .wrap { padding: 0 16px; }
  .menu-btn { display: block; }
  .nav-links {
    display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line); padding: 10px 16px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; }
  .nav-links a.active { box-shadow: none; color: var(--amber); }
  .grid-3, .grid-2, .path, .foot-grid { grid-template-columns: 1fr; }
  .portrait .tag { left: 10px; }
  .cta { padding: 44px 22px; }
  .eq-op { width: 100%; text-align: center; }
}
.brand-text { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: #fff; letter-spacing: -0.01em; }
.brand-text span { color: var(--cyan); font-weight: 500; }
/* ===== Light theme ===== */
:root {
  --ink: #ffffff;
  --ink-2: #f3f7fc;
  --panel: #eaf2fb;
  --panel-2: #dceafa;
  --line: rgba(2, 60, 120, 0.12);
  --text: #0b1d3a;
  --muted: #4a5d7e;
  --blue: #0282c7;
  --cyan: #0a9be0;
  --amber: #c97a00;
  --navy: #012a55;
}
body { background: #fff; color: var(--text); }
a { color: var(--blue); }
a:hover { color: var(--navy); }
.bg-grid::before {
  background-image:
    linear-gradient(rgba(2, 130, 199, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(2, 130, 199, .06) 1px, transparent 1px);
}
.site-header { background: rgba(255, 255, 255, .92); box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(1, 42, 85, .05); border-bottom: none; }
.brand-logo { background: transparent; padding: 0; }
.nav-links a { color: var(--muted); }
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.menu-btn { color: var(--navy); }
.btn-primary { background: linear-gradient(135deg, #0390d8, var(--navy)); box-shadow: 0 8px 24px rgba(2, 130, 199, .28); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(2, 130, 199, .38); }
.nav-links a.btn, .nav-links a.btn:hover { box-shadow: 0 6px 18px rgba(2, 130, 199, .25); }
.btn-ghost { border-color: rgba(2, 130, 199, .45); color: var(--blue); }
.btn-ghost:hover { background: rgba(2, 130, 199, .07); color: var(--navy); }
.hero { background: linear-gradient(180deg, #f4f9ff 0%, #ffffff 100%); }
.hero::after { background: radial-gradient(circle, rgba(2, 130, 199, .14), transparent 60%); }
.hero h1 .accent { background: linear-gradient(90deg, var(--navy), #0390d8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 .tm { color: var(--navy); }
.portrait img { border-color: rgba(2, 130, 199, .25); box-shadow: 0 24px 60px rgba(1, 42, 85, .22); }
.portrait::before { opacity: .35; }
.portrait .tag { background: rgba(255, 255, 255, .96); box-shadow: 0 10px 30px rgba(1, 42, 85, .15); }
.portrait .tag strong { color: var(--navy); }
.page-hero { background: linear-gradient(180deg, #f4f9ff 0%, #ffffff 100%); }
.page-hero::after { background: radial-gradient(circle, rgba(2, 130, 199, .14), transparent 65%); }
.card { background: #fff; box-shadow: 0 2px 10px rgba(1, 42, 85, .05); }
.card:hover { border-color: rgba(2, 130, 199, .4); box-shadow: 0 14px 34px rgba(1, 42, 85, .1); }
.icon { background: rgba(2, 130, 199, .08); border-color: rgba(2, 130, 199, .2); color: var(--blue); }
.equation { background: linear-gradient(135deg, #0390d8, var(--navy)); border: none; }
.eq-box { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: #fff; }
.eq-op { color: #ffd38a; }
.eq-result { background: #fff; color: var(--navy); }
.step { background: #fff; }
.step:last-child { border-color: var(--blue); background: linear-gradient(180deg, rgba(2, 130, 199, .1), #fff); }
.service .num { color: rgba(2, 130, 199, .4); }
.service li { border-bottom-color: rgba(2, 60, 120, .1); }
.service .outcome { color: var(--blue); }
.banner-img { box-shadow: 0 24px 60px rgba(1, 42, 85, .2); }
.cta { background: linear-gradient(135deg, #0390d8, var(--navy)); border: none; color: #fff; }
.cta .eyebrow { color: #ffd38a; }
.cta .lead { color: rgba(255, 255, 255, .85); }
.cta .btn-primary { background: #fff; color: var(--navy); box-shadow: none; }
.cta .btn-primary:hover { color: var(--navy); }
.cta .btn-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.cta .btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.quote { color: var(--navy); border-left-color: var(--blue); }
.site-footer { background: var(--navy); color: #dbe7f7; border-top: none; }
.site-footer .brand-logo { background: #fff; padding: 7px 12px; border-radius: 10px; }
.foot-grid h4 { color: #9db8d9; }
.foot-grid a { color: #fff; }
.foot-grid a:hover { color: #8fd3ff; }
.site-footer p { color: #b9cbe3 !important; }
.site-footer .foot-slogan { color: #fff !important; }
.socials a { color: #fff; border-color: rgba(255, 255, 255, .25); }
.socials a:hover { color: #8fd3ff; border-color: #8fd3ff; }
.legal { color: #9db8d9; border-top-color: rgba(255, 255, 255, .15); }
@media (max-width: 760px) {
  .nav-links { background: #fff; }
  .nav-links a.active { color: var(--blue); }
}
.site-header .brand-logo img { height: 42px; }