/* ==========================================================================
   AI Guide to Business — "The Blueprint" design system
   Concept: an engineer's drafting sheet. Fine grid, drawn-on lines,
   dimension callouts, corner marks, and a title-block stamp on every sheet.
   ========================================================================== */

:root {
  --bg: #000000;
  --ink: #e2e8f0;
  --muted: #94a3b8;
  --dim: #64748b;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --cyan: #06b6d4;
  --gold: #fbbf24;
  --green: #10b981;
  --red: #ef4444;
  --line: rgba(59, 130, 246, 0.14);
  --line-strong: rgba(59, 130, 246, 0.32);
  --rule: rgba(226, 232, 240, 0.1);
  --sheet: #05080f;
  --sheet-2: #080c16;
  --grad: linear-gradient(120deg, var(--blue), var(--purple));
  --grad-wide: linear-gradient(120deg, var(--blue) 0%, var(--purple) 55%, var(--cyan) 100%);
  --grad-gold: linear-gradient(120deg, #fde68a, var(--gold) 45%, #f59e0b);
  --display: "Syne", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --max: 1160px;
  --gutter: 1.25rem;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

@property --cl { syntax: "<length>"; inherits: false; initial-value: 14px; }
@property --ck { syntax: "<color>"; inherits: false; initial-value: transparent; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.05; margin: 0 0 0.5em; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h3 { font-size: 1.35rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin: 0 auto; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }
::selection { background: rgba(139, 92, 246, 0.45); }

.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--ink); color: #000; padding: 0.5rem 0.9rem; font-weight: 600; border-radius: 4px;
  transition: top 0.15s;
}
.skip:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   Gradient text + buttons
   -------------------------------------------------------------------------- */
.grad { background: var(--grad-wide); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-gold { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.85rem 1.5rem; min-height: 48px;
  font-family: var(--body); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  border: 1px solid transparent; border-radius: 6px; cursor: pointer; white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s, border-color 0.2s;
  overflow: hidden; isolation: isolate;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.7); }
.btn-grad::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.28) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform 0.6s var(--ease);
}
.btn-grad:hover::after { transform: translateX(120%); }
.btn-grad:hover { box-shadow: 0 16px 40px -12px rgba(139, 92, 246, 0.8); }
.btn-gold { background: var(--grad-gold); color: #0b0a04; box-shadow: 0 10px 30px -10px rgba(251, 191, 36, 0.7); }
.btn-gold:hover { box-shadow: 0 16px 40px -10px rgba(251, 191, 36, 0.8); }
.btn-line { background: transparent; color: var(--ink); border-color: rgba(226, 232, 240, 0.22); }
.btn-line:hover { border-color: var(--cyan); background: rgba(6, 182, 212, 0.07); }
.btn-block { width: 100%; }
.btn .arr { transition: transform 0.2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Signature: title-block stamp, dimension dividers, corner marks
   -------------------------------------------------------------------------- */
.stamp {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim);
  margin-bottom: 2.25rem;
}
.stamp::before { content: ""; width: 10px; height: 10px; border: 1px solid var(--line-strong); flex: none; }
.stamp::after { content: ""; flex: 1; height: 1px; min-width: 2rem; background: linear-gradient(90deg, var(--line-strong), transparent); }
.stamp b { color: var(--cyan); font-weight: 500; }
.stamp span + span::before { content: "/"; margin-right: 1rem; color: var(--line-strong); }

.dim {
  position: relative; display: flex; align-items: center; gap: 1rem; justify-content: center;
  width: min(var(--max), 100% - 2 * var(--gutter)); margin: 0 auto;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; color: var(--dim); height: 1px;
}
.dim::before, .dim::after { content: ""; flex: 1; height: 1px; background: var(--line); position: relative; }
.dim span { position: relative; padding: 0 0.25rem; background: var(--bg); line-height: 1; }
.dim i {
  position: absolute; top: -4px; width: 1px; height: 9px; background: var(--line-strong);
}
.dim i:first-child { left: 0; }
.dim i:last-child { right: 0; }

.sheet {
  position: relative;
  background: linear-gradient(180deg, var(--sheet-2), var(--sheet));
  border: 1px solid var(--rule);
  border-radius: 4px;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.sheet::before {
  content: ""; position: absolute; inset: -1px; pointer-events: none; border-radius: 4px;
  --ck: var(--line-strong); --cl: 14px;
  background:
    linear-gradient(var(--ck), var(--ck)) left top / var(--cl) 1px no-repeat,
    linear-gradient(var(--ck), var(--ck)) left top / 1px var(--cl) no-repeat,
    linear-gradient(var(--ck), var(--ck)) right top / var(--cl) 1px no-repeat,
    linear-gradient(var(--ck), var(--ck)) right top / 1px var(--cl) no-repeat,
    linear-gradient(var(--ck), var(--ck)) left bottom / var(--cl) 1px no-repeat,
    linear-gradient(var(--ck), var(--ck)) left bottom / 1px var(--cl) no-repeat,
    linear-gradient(var(--ck), var(--ck)) right bottom / var(--cl) 1px no-repeat,
    linear-gradient(var(--ck), var(--ck)) right bottom / 1px var(--cl) no-repeat;
  transition: --cl 0.3s var(--ease), --ck 0.3s;
}
.sheet:hover { border-color: rgba(59, 130, 246, 0.35); }
.sheet:hover::before { --ck: var(--cyan); --cl: 22px; }
.sheet-lift:hover { transform: translateY(-4px); }

.tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.3rem 0.6rem; border: 1px solid var(--rule); border-radius: 3px; color: var(--muted);
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-blue { color: var(--blue); border-color: rgba(59,130,246,0.35); }
.tag-purple { color: var(--purple); border-color: rgba(139,92,246,0.35); }
.tag-cyan { color: var(--cyan); border-color: rgba(6,182,212,0.35); }
.tag-gold { color: var(--gold); border-color: rgba(251,191,36,0.4); }
.tag-green { color: var(--green); border-color: rgba(16,185,129,0.4); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.top {
  position: sticky; top: 0; z-index: 60;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.top::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--purple), var(--cyan), transparent);
  opacity: 0.6;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand .bot { width: 36px; height: 36px; flex: none; }
.brand small { display: block; font-family: var(--mono); font-weight: 400; font-size: 0.6rem; letter-spacing: 0.2em; color: var(--dim); text-transform: uppercase; }
.menu { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.menu a:not(.btn) {
  position: relative; display: block; padding: 0.5rem 0.85rem; color: var(--muted); font-weight: 500; font-size: 0.95rem;
  transition: color 0.15s;
}
.menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.25rem; height: 1px;
  background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
}
.menu a:not(.btn):hover, .menu a:not(.btn)[aria-current="page"] { color: var(--ink); }
.menu a:not(.btn):hover::after, .menu a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); }
.menu .btn { margin-left: 0.75rem; padding: 0.6rem 1.1rem; min-height: 40px; font-size: 0.9rem; }
.burger {
  display: none; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 6px;
  background: transparent; cursor: pointer; place-items: center;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: transform 0.25s, background 0.25s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); transition: transform 0.25s, top 0.25s; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   The robot (inline SVG, class .bot)
   -------------------------------------------------------------------------- */
.bot { overflow: visible; }
.bot line { stroke-width: 2.5; stroke-linecap: round; }
.bot__ant--gold line, .bot__ant--gold .bot__tip, .bot__ant--gold .bot__halo { stroke: var(--gold); fill: var(--gold); }
.bot__ant--red line, .bot__ant--red .bot__tip, .bot__ant--red .bot__halo { stroke: var(--red); fill: var(--red); }
.bot__ant--green line, .bot__ant--green .bot__tip, .bot__ant--green .bot__halo { stroke: var(--green); fill: var(--green); }
.bot__ant line { fill: none; }
.bot__halo { opacity: 0; stroke: none; }
.bot__tip { stroke: none; transform-box: fill-box; transform-origin: center; }
.bot__pupil { fill: var(--cyan); }
.bot__eye { transform-box: fill-box; transform-origin: center; }
.bot__gaze { transform: translate(var(--ex, 0px), var(--ey, 0px)); transition: transform 0.18s var(--ease); }
.bot__mouth { fill: var(--cyan); opacity: 0.85; transform-box: fill-box; transform-origin: center; }
.bot__head { transform-box: fill-box; transform-origin: center; }
.bot__float { transform-box: fill-box; transform-origin: center; }

@keyframes bot-blink { 0%, 90%, 100% { transform: scaleY(1); } 93%, 95% { transform: scaleY(0.06); } }
@keyframes bot-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.3); } }
@keyframes bot-halo { 0%, 100% { opacity: 0; } 50% { opacity: 0.45; } }
@keyframes bot-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }
@keyframes bot-boot { 0% { transform: scale(0.72); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes bot-eyes-on { 0%, 45% { opacity: 0; } 50% { opacity: 1; } 56% { opacity: 0.15; } 62% { opacity: 1; } 68% { opacity: 0.2; } 78%, 100% { opacity: 1; } }
@keyframes bot-tip-on { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }
@keyframes bot-mouth { 0%, 86%, 100% { transform: scaleX(1); } 90% { transform: scaleX(0.6); } 94% { transform: scaleX(1.15); } }

.bot__eye { animation: bot-blink 5.2s infinite; }
.bot__eye:nth-child(2) { animation-delay: 0.04s; }
.bot__tip { animation: bot-pulse 2.4s ease-in-out infinite; }
.bot__halo { animation: bot-halo 2.4s ease-in-out infinite; }
.bot__ant--red .bot__tip, .bot__ant--red .bot__halo { animation-delay: 0.8s; }
.bot__ant--green .bot__tip, .bot__ant--green .bot__halo { animation-delay: 1.6s; }

/* hero: full performance */
.bot--hero .bot__float { animation: bot-float 5s ease-in-out infinite 1.6s; }
.bot--hero .bot__head { animation: bot-boot 1.1s var(--ease) both; }
.bot--hero .bot__pupil, .bot--hero .bot__mouth { animation: bot-eyes-on 1.7s steps(1, end) both; }
.bot--hero .bot__mouth { animation: bot-eyes-on 1.7s steps(1, end) both, bot-mouth 9s ease-in-out infinite 2s; }
.bot--hero .bot__tip { animation: bot-tip-on 0.4s var(--ease) both, bot-pulse 2.4s ease-in-out infinite; }
.bot--hero .bot__ant--gold .bot__tip { animation-delay: 1.1s, 1.5s; }
.bot--hero .bot__ant--red .bot__tip { animation-delay: 1.3s, 2.3s; }
.bot--hero .bot__ant--green .bot__tip { animation-delay: 1.5s, 3.1s; }
.bot--hero .bot__ant--gold .bot__halo { animation-delay: 1.5s; }
.bot--hero .bot__ant--red .bot__halo { animation-delay: 2.3s; }
.bot--hero .bot__ant--green .bot__halo { animation-delay: 3.1s; }
.bot--hero .bot__ant line { stroke-dasharray: 20; stroke-dashoffset: 20; animation: draw 0.5s var(--ease) forwards 0.8s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* nav: reduced */
.bot--nav .bot__tip { animation-duration: 4s; }
.bot--nav .bot__halo { animation-duration: 4s; }
.bot--nav .bot__gaze { transition: none; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
  --mx: 50%; --my: 40%;
}
.grid-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    linear-gradient(var(--line-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-strong) 1px, transparent 1px);
  background-size: 32px 32px, 32px 32px, 160px 160px, 160px 160px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 100%);
}
.hero__glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(520px 420px at var(--mx) var(--my), rgba(59, 130, 246, 0.16), transparent 70%),
    radial-gradient(700px 500px at 85% 20%, rgba(139, 92, 246, 0.14), transparent 70%),
    radial-gradient(500px 400px at 10% 90%, rgba(6, 182, 212, 0.09), transparent 70%);
  transition: background-position 0.3s;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: 1.25rem; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 36rem; margin-bottom: 2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 0 2.5rem; row-gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.hero__stats div { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.hero__stats strong { display: block; font-family: var(--display); font-size: 1.7rem; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 0.15rem; }

.rig { position: relative; aspect-ratio: 1; max-width: 460px; margin: 0 auto; width: 100%; }
.rig .bot { position: absolute; inset: 22%; width: 56%; height: 56%; filter: drop-shadow(0 20px 40px rgba(59, 130, 246, 0.35)); }
.rig__schem { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rig__schem * { fill: none; stroke-linecap: round; }
.rig__schem .ring { stroke: var(--line-strong); stroke-width: 1; }
.rig__schem .ring-dash { stroke-dasharray: 2 6; }
.rig__schem .ring-spin { transform-box: fill-box; transform-origin: center; animation: spin 90s linear infinite; }
.rig__schem .ring-spin-r { animation-direction: reverse; animation-duration: 140s; }
.rig__schem .xhair { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 4 6; }
.rig__schem .lead { stroke: rgba(6, 182, 212, 0.55); stroke-width: 1; }
.rig__schem .drawn { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s var(--ease) forwards; }
.rig__schem .d1 { animation-delay: 0.3s; }
.rig__schem .d2 { animation-delay: 0.6s; }
.rig__schem .d3 { animation-delay: 1.2s; }
.rig__schem .d4 { animation-delay: 1.5s; }
.rig__schem .node { fill: var(--cyan); stroke: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.callout {
  position: absolute; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cyan); line-height: 1.5; white-space: nowrap; opacity: 0; animation: fadein 0.6s ease forwards;
}
.callout small { display: block; color: var(--dim); letter-spacing: 0.08em; text-transform: none; font-size: 0.62rem; }
.callout--eyes { right: 0; top: 14%; text-align: right; animation-delay: 1.6s; }
.callout--ant { left: 0; top: 2%; animation-delay: 1.9s; }
.callout--core { left: 0; bottom: 4%; animation-delay: 2.2s; }
@keyframes fadein { to { opacity: 1; } }
.rig__corner { position: absolute; width: 18px; height: 18px; border: 1px solid var(--line-strong); }
.rig__corner.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.rig__corner.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.rig__corner.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.rig__corner.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* page hero (subpages) */
.phero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem); }
.phero .wrap { position: relative; z-index: 1; }
.phero h1 { max-width: 16ch; }
.phero p { color: var(--muted); max-width: 40rem; font-size: 1.1rem; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.sec { padding: clamp(3.5rem, 7vw, 6rem) 0; }
[id] { scroll-margin-top: 84px; }
.sec-tight { padding-top: 0; }
.head { max-width: 44rem; margin-bottom: 2.5rem; }
.head p { color: var(--muted); font-size: 1.1rem; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Milestones: the trace */
.trace { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; padding-top: 2.5rem; }
.trace::before {
  content: ""; position: absolute; top: 9px; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--cyan), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease);
}
.trace::after {
  content: ""; position: absolute; top: 9px; left: 10%; right: 10%; height: 2px; background: var(--rule); z-index: -1;
}
.trace.lit::before { transform: scaleX(1); }
.ms { position: relative; padding: 1.6rem 1.4rem 1.5rem; }
.ms__node {
  position: absolute; top: calc(-2.5rem + 2px); left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--rule); transition: border-color 0.4s, box-shadow 0.4s, background 0.4s;
}
.ms__node::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--c); opacity: 0; transition: opacity 0.4s; }
.trace.lit .ms__node { border-color: var(--c); box-shadow: 0 0 18px var(--c); }
.trace.lit .ms__node::after { opacity: 1; }
.ms:nth-child(1) { --c: var(--blue); }
.ms:nth-child(2) { --c: var(--purple); }
.ms:nth-child(3) { --c: var(--cyan); }
.ms:nth-child(4) { --c: var(--gold); }
.trace.lit .ms:nth-child(1) .ms__node { transition-delay: 0.2s; }
.trace.lit .ms:nth-child(2) .ms__node { transition-delay: 0.55s; }
.trace.lit .ms:nth-child(3) .ms__node { transition-delay: 0.9s; }
.trace.lit .ms:nth-child(4) .ms__node { transition-delay: 1.25s; }
.ms__n { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; color: var(--c); margin-bottom: 0.9rem; }
.ms h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.ms p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1rem; }
.ms__out { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--dim); border-top: 1px dashed var(--rule); padding-top: 0.8rem; margin-top: auto; }
.ms__out b { color: var(--ink); font-weight: 500; }
.ms__glyph { width: 40px; height: 40px; margin-bottom: 1rem; }
.ms__glyph * { fill: none; stroke: var(--c); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ms { display: flex; flex-direction: column; }

/* Courses */
.courses { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.course { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.course__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 0.9rem 1.5rem; border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim);
  background: rgba(255,255,255,0.02);
}
.course__body { padding: 1.75rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.course h3 { font-size: 1.7rem; margin: 0.5rem 0 0.5rem; }
.course p { color: var(--muted); }
.spec { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem 1.25rem; margin: 1.25rem 0 1.5rem; padding: 1.1rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.spec div { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.spec strong { display: block; font-family: var(--body); font-size: 0.95rem; letter-spacing: 0; text-transform: none; color: var(--ink); font-weight: 600; margin-top: 0.15rem; }
.steps { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.steps li { position: relative; display: grid; grid-template-columns: 3.2rem 1fr; gap: 0.75rem; padding: 0.55rem 0; border-bottom: 1px dashed var(--rule); font-size: 0.95rem; }
.steps li:last-child { border-bottom: 0; }
.steps li span { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; color: var(--cyan); padding-top: 0.25rem; }
.course .btn { margin-top: auto; align-self: flex-start; }

/* Pricing */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; align-items: stretch; }
.tier { padding: 1.75rem 1.4rem; display: flex; flex-direction: column; }
.tier__name { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.tier__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.35rem; font-family: var(--display); font-size: 2.3rem; letter-spacing: -0.03em; font-weight: 800; line-height: 1; margin: 0.6rem 0 0.25rem; }
.tier__price small { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--dim); font-weight: 400; white-space: nowrap; }
.tier__for { color: var(--muted); font-size: 0.92rem; margin: 0.5rem 0 1.1rem; min-height: 2.9em; }
.tier ul { list-style: none; padding: 0; margin: 0 0 1.5rem; flex: 1; }
.tier li { position: relative; padding: 0.4rem 0 0.4rem 1.3rem; font-size: 0.92rem; border-bottom: 1px dashed var(--rule); }
.tier li:last-child { border-bottom: 0; }
.tier li::before { content: ""; position: absolute; left: 0; top: 0.95rem; width: 7px; height: 7px; border: 1px solid var(--green); transform: rotate(45deg); }
.tier--hot {
  border-color: rgba(251, 191, 36, 0.55);
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.08), var(--sheet));
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.25), 0 0 60px -10px rgba(251, 191, 36, 0.45), 0 30px 60px -30px rgba(0,0,0,0.9);
}
.tier--hot::before { --ck: rgba(251,191,36,0.6); }
.tier--hot:hover::before { --ck: var(--gold); }
.tier--hot .tier__price { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tier--hot li::before { border-color: var(--gold); }
.tier__flag {
  position: absolute; top: -0.8rem; left: 1.2rem;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--grad-gold); color: #0b0a04; padding: 0.3rem 0.7rem; border-radius: 3px; font-weight: 500;
}
.tier form { display: grid; gap: 0.6rem; margin-top: 0.6rem; }
.tier__was { font-size: 1.2rem; color: var(--dim); text-decoration-color: var(--red, #ef4444); -webkit-text-fill-color: var(--dim); background: none; margin-right: 0.2rem; }
.field input {
  width: 100%; padding: 0.8rem 0.9rem; border-radius: 6px; font: inherit; color: var(--ink);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--rule); outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25); }
.field input::placeholder { color: var(--dim); }
.status { min-height: 1.3em; margin: 0; font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.status.ok { color: var(--green); }
.status.err { color: var(--red); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Proof */
.proof { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: start; }
.proof__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.stat { background: var(--sheet); padding: 1.5rem 1.4rem; }
.stat b { display: block; font-family: var(--display); font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.03em; line-height: 1; margin-bottom: 0.4rem; }
.stat > span { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.receipts { list-style: none; margin: 0; padding: 0; }
.receipts li { display: grid; grid-template-columns: 2rem 1fr; gap: 0.75rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.receipts li:last-child { border-bottom: 0; }
.receipts li span { font-family: var(--mono); font-size: 0.7rem; color: var(--cyan); letter-spacing: 0.1em; padding-top: 0.2rem; }
.receipts h4 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.receipts p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* CTA band */
.band { position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 5vw, 3.5rem); text-align: center; }
.band::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(400px 220px at 20% 100%, rgba(59,130,246,0.25), transparent 70%),
    radial-gradient(400px 220px at 80% 0%, rgba(139,92,246,0.25), transparent 70%);
}
.band h2 { margin-bottom: 0.5rem; }
.band p { color: var(--muted); max-width: 36rem; margin: 0 auto 1.5rem; }
.band .btn + .btn { margin-left: 0.5rem; }

/* --------------------------------------------------------------------------
   Training page
   -------------------------------------------------------------------------- */
.lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.lane { padding: 1.75rem 1.5rem; }
.lane h3 { margin-top: 0.75rem; }
.lane p { color: var(--muted); }
.mods { display: grid; gap: 0.75rem; }
.mod { padding: 0; }
.mod summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 4.5rem 1fr auto; gap: 1rem; align-items: center;
  padding: 1.1rem 1.4rem; font-family: var(--display); font-weight: 700; font-size: 1.1rem;
}
.mod summary::-webkit-details-marker { display: none; }
.mod summary span.k { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; color: var(--cyan); font-weight: 400; }
.mod summary span.m { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; color: var(--dim); font-weight: 400; text-transform: uppercase; display: flex; align-items: center; gap: 0.75rem; }
.mod summary span.m::after { content: "+"; font-size: 1rem; color: var(--muted); transition: transform 0.25s; }
.mod[open] summary span.m::after { transform: rotate(45deg); }
.mod[open] summary { border-bottom: 1px solid var(--rule); }
.lessons { list-style: none; margin: 0; padding: 0.5rem 1.4rem 1rem; }
.lessons li { display: grid; grid-template-columns: 2.4rem 1fr auto; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px dashed var(--rule); font-size: 0.95rem; align-items: baseline; }
.lessons li:last-child { border-bottom: 0; }
.lessons li span.n { font-family: var(--mono); font-size: 0.68rem; color: var(--dim); letter-spacing: 0.08em; }
.lessons li span.a { font-family: var(--mono); font-size: 0.66rem; color: var(--muted); letter-spacing: 0.06em; text-align: right; }
.lessons li span.a b { color: var(--cyan); font-weight: 500; }
.lessons li.ms-row span.a b { color: var(--gold); }
.week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.week div { background: var(--sheet); padding: 1.2rem 1rem; }
.week div span { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); display: block; margin-bottom: 0.4rem; }
.week div b { display: block; font-family: var(--display); font-size: 1rem; margin-bottom: 0.25rem; }
.week div p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.tool { padding: 1.5rem 1.4rem; }
.tool h4 { margin: 0.75rem 0 0.4rem; font-size: 1.1rem; }
.tool p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.tool svg { width: 36px; height: 36px; }
.tool svg * { fill: none; stroke: var(--cyan); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */
.bio { display: grid; grid-template-columns: 300px 1fr; gap: 2.5rem; align-items: start; }
.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden;
  background: linear-gradient(160deg, rgba(59,130,246,0.25), rgba(139,92,246,0.25) 60%, rgba(6,182,212,0.2));
  display: grid; place-items: center; text-align: center; padding: 1rem;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.portrait::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 24px 24px;
}
.portrait svg { width: 120px; height: 120px; position: relative; opacity: 0.9; margin-bottom: 1rem; }
.portrait span { position: relative; }
.bio__text { padding: 2rem; }
.bio__text p { color: var(--muted); font-size: 1.05rem; }
.bio__text p:first-of-type { color: var(--ink); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-strong); }
.timeline li { position: relative; padding-top: 1.75rem; }
.timeline li::before { content: ""; position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--blue); background: var(--bg); }
.timeline li:nth-child(2)::before { border-color: var(--purple); }
.timeline li:nth-child(3)::before { border-color: var(--cyan); }
.timeline li:nth-child(4)::before { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 14px var(--gold); }
.timeline span { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); display: block; margin-bottom: 0.4rem; }
.timeline b { display: block; font-family: var(--display); font-size: 1.1rem; margin-bottom: 0.3rem; }
.timeline p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.rules { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; counter-reset: rule; }
.rules div { background: var(--sheet); padding: 1.4rem 1.2rem; }
.rules div::before { counter-increment: rule; content: "0" counter(rule); font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; color: var(--cyan); display: block; margin-bottom: 0.6rem; }
.rules b { display: block; font-family: var(--display); font-size: 1rem; margin-bottom: 0.3rem; }
.rules p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.contact .sheet { padding: 1.5rem 1.4rem; }
.contact h4 { margin: 0.5rem 0 0.3rem; font-size: 1.1rem; }
.contact p { color: var(--muted); font-size: 0.93rem; margin-bottom: 1rem; }
.prose { max-width: 44rem; color: var(--muted); }
.prose h2 { color: var(--ink); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.foot { position: relative; border-top: 1px solid var(--rule); padding: 3.5rem 0 2rem; color: var(--muted); font-size: 0.92rem; }
.foot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 80%); mask-image: linear-gradient(180deg, transparent, #000 80%);
  opacity: 0.6;
}
.foot .wrap { position: relative; z-index: 1; }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.foot h4 { font-family: var(--mono); font-weight: 500; color: var(--ink); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 1rem; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 0.55rem; }
.foot a:hover { color: var(--cyan); }
.foot .brand { margin-bottom: 1rem; }
.foot__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; border-top: 1px solid var(--rule); padding-top: 1.25rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--dim); }

/* --------------------------------------------------------------------------
   Reveal
   -------------------------------------------------------------------------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 0.1s; }
.rv-d2 { transition-delay: 0.2s; }
.rv-d3 { transition-delay: 0.3s; }
.rv-d4 { transition-delay: 0.4s; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1020px) {
  .trace, .tiers { grid-template-columns: repeat(2, 1fr); }
  .trace::before, .trace::after { display: none; }
  .ms__node { display: none; }
  .trace { padding-top: 0; }
  .proof { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .week { grid-template-columns: repeat(2, 1fr); }
  .rules { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline::before { display: none; }
  .tools, .contact { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 2rem; }
  .rig { max-width: 260px; order: -1; }
  .callout { display: none; }
  .courses, .lanes { grid-template-columns: 1fr; }
  .bio { grid-template-columns: 1fr; }
  .portrait { max-width: 300px; }
}
@media (max-width: 720px) {
  .burger { display: grid; }
  .menu {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(0,0,0,0.96); border-bottom: 1px solid var(--rule); padding: 0.5rem var(--gutter) 1rem;
  }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: 0.9rem 0.5rem; font-size: 1.05rem; }
  .menu a:not(.btn)::after { left: 0.5rem; right: auto; width: 2rem; }
  .menu .btn { margin: 0.75rem 0 0; width: 100%; }
  .brand { font-size: 0.95rem; white-space: nowrap; }
  .brand small { display: none; }
  .brand .bot { width: 32px; height: 32px; }
  .stamp { gap: 0.6rem; font-size: 0.66rem; letter-spacing: 0.1em; }
  .stamp span:nth-child(3) { display: none; }
  .hero__stats { gap: 1.25rem 1.5rem; }
  .hero__stats strong { font-size: 1.4rem; }
  .trace, .tiers, .week, .rules, .timeline, .foot__grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 0 1.75rem; }
  .stamp { margin-bottom: 1.5rem; }
  .mod summary { grid-template-columns: 1fr auto; }
  .mod summary span.k { grid-column: 1 / -1; }
  .lessons li { grid-template-columns: 2.2rem 1fr; }
  .lessons li span.a { grid-column: 2; text-align: left; }
  .spec { grid-template-columns: 1fr 1fr; }
  .band .btn + .btn { margin-left: 0; margin-top: 0.5rem; }
  .band .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  .trace::before { transform: scaleX(1); }
  .callout { opacity: 1; }
  .bot--hero .bot__ant line { stroke-dashoffset: 0; }
  .rig__schem .drawn { stroke-dashoffset: 0; }
  .bot__halo { opacity: 0.25; }
  .bot__gaze { transform: none; }
}

/* ---------- Crew page + notice (added 2026-10-15) ---------- */
.notice {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1.4rem;
  padding: 0.45rem 0.9rem 0.45rem 0.7rem; border: 1px solid var(--rule); border-radius: 999px;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
  background: rgba(255,255,255,0.03); transition: border-color 0.2s, background 0.2s;
}
.notice:hover { border-color: var(--gold); background: rgba(251,191,36,0.06); }
.notice__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.hero--crew .wrap { grid-template-columns: 1fr; }
.hero--crew .lead { max-width: 44rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.head--left { margin-bottom: 0; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.step { padding: 1.75rem 1.5rem; }
.step h3 { margin: 0.9rem 0 0.5rem; font-size: 1.2rem; }
.step p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.sec--tight { padding-top: 0; }
.crewform { padding: 1.75rem 1.5rem; }
.crewform form { display: grid; gap: 0.9rem; }
.field > span:not(.vh) { display: block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.field select {
  width: 100%; padding: 0.8rem 0.9rem; border-radius: 6px; font: inherit; color: var(--ink);
  background: rgba(255,255,255,0.04); border: 1px solid var(--rule); appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat;
}
.field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25); }
.check { display: flex; align-items: center; gap: 0.7rem; font-size: 0.95rem; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--purple); }
.ticks { list-style: none; padding: 1.75rem 1.5rem; margin: 0; }
.ticks li { position: relative; padding: 0.55rem 0 0.55rem 1.8rem; border-bottom: 1px dashed var(--rule); font-size: 0.98rem; }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before { content: ""; position: absolute; left: 0.2rem; top: 0.95rem; width: 9px; height: 9px; border: 1px solid var(--green); transform: rotate(45deg); }
@media (max-width: 900px) { .three { grid-template-columns: 1fr; } .split, .two { grid-template-columns: 1fr; } }
