/* MBAI full site: layout on top of styles.css (tokens, buttons, inputs, links). */
body.page { display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 20px 16px 56px; }
.pg { max-width: 820px; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 50; padding: 8px 12px; background: #000; color: var(--mbai-phosphor); font-family: var(--font-heading); font-size: 14px; }
.skip:focus { top: 8px; }
:where(:focus-visible) { outline: 2px solid #000; outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header and menu */
.hdr { border-bottom: 2px solid var(--mbai-border); margin-bottom: 32px; }
.hdr-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; }
/* Logo a size up (Matt, 2026-11-09): 58px from 1000px wide, 48px on phones. */
.brand-logo svg { height: clamp(48px, 5.8vw, 58px); width: auto; display: block; }
.hdr-brand { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.hdr-actions { display: flex; align-items: center; gap: 10px; }
.hdr-actions .btn { padding: 8px 14px; font-size: 13px; white-space: nowrap; }
.nav-toggle { display: none; font-family: var(--font-heading); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; padding: 8px 12px; border: 1.5px solid #000; border-radius: 4px; background: #fff; cursor: pointer; }
.nav-toggle[aria-expanded="true"] { background: #000; color: var(--mbai-phosphor); }
.nav-list { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0; padding: 4px 0 10px; }
.nav-list li { margin: 0; }
/* Top items are links to the page (Matt, 2026-11-03); sub-items show on hover and keyboard focus, no JS. */
.nav-list > li { position: relative; }
.nav-top { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 13px; letter-spacing: 0.06em; padding: 8px 4px; border-bottom: 2px solid transparent; color: #000; text-decoration: none; }
.nav-top:has(+ .nav-sub)::after { content: ' \25BE' / ''; }
.nav-list li.current > .nav-top { border-bottom-color: var(--mbai-phosphor); }
@media (hover: hover) { .nav-top:hover { border-bottom-color: var(--mbai-phosphor); } }
.nav-sub { display: none; list-style: none; position: absolute; left: 0; top: 100%; z-index: 20; min-width: 260px; margin: 0; background: #fff; border: 1.5px solid #000; border-radius: 4px; padding: 6px 0; box-shadow: 0 0 12px rgba(51,255,51,0.25); }
.nav-list > li:hover > .nav-sub, .nav-list > li:focus-within > .nav-sub { display: block; }
.nav-sub a { display: block; padding: 8px 14px; font-family: var(--font-heading); font-size: 13px; color: #000; text-decoration: none; }
.nav-sub a:hover { background: var(--mbai-phosphor); }
.nav-list > li:nth-last-child(-n+2) .nav-sub { left: auto; right: 0; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  html.js .nav { display: none; }
  html.js .nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-top { padding: 12px 4px; border-bottom: 1px solid var(--mbai-border-subtle); }
  .nav-top:has(+ .nav-sub)::after { content: none; }
  .nav-sub, .nav-list > li:hover > .nav-sub { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 8px 12px; min-width: 0; }
}

/* Type */
.kicker { font-family: var(--font-heading); font-weight: 500; font-size: 14px; letter-spacing: 0.12em; margin-bottom: 12px; }
.kicker::before { content: '> ' / ''; color: var(--mbai-phosphor); font-weight: 700; }
h1 { font-family: var(--font-heading); font-weight: 700; font-size: clamp(28px, 5vw, 40px); line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 16px; }
h1, h2, h3 { text-wrap: balance; }
h2 { font-family: var(--font-heading); font-weight: 600; font-size: clamp(20px, 3.2vw, 26px); line-height: 1.25; margin: 0 0 14px; }
h2::before { content: '// ' / ''; color: var(--mbai-phosphor); font-weight: 700; }
h3 { font-family: var(--font-heading); font-weight: 600; font-size: 17px; line-height: 1.3; margin-bottom: 6px; }
p, li, dd, td, th, label { font-family: var(--font-body); font-size: clamp(16px, 2.2vw, 17px); line-height: 1.6; }
p { margin-bottom: 14px; text-wrap: pretty; }
p, li { max-width: 70ch; }
.cert p, .units li { max-width: none; }
ul, ol { margin: 0 0 14px 22px; }
li { margin-bottom: 6px; }
.lede { font-size: clamp(17px, 2.4vw, 19px); }
.disclaimer { border-left: 3px solid var(--mbai-phosphor); padding: 8px 14px; margin: 0 0 20px; }
.note, .ftr-legal { font-size: 14px; color: var(--mbai-muted); line-height: 1.5; }
.more { font-family: var(--font-heading); font-size: 14px; }
.sec { padding: 48px 0 0; }
.hero { padding-bottom: 20px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 24px; }
.model { font-family: var(--font-heading); font-weight: 700; font-size: 16px; letter-spacing: 0.08em; }
code { font-family: var(--font-heading); font-size: 14px; }

/* Blocks */
.stats { list-style: none; margin: 8px 0 20px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.stats li { border: 1.5px solid #000; border-radius: 4px; padding: 12px 14px; margin: 0; }
.stats b { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 22px; line-height: 1.2; }
.stats span { font-size: 13px; color: var(--mbai-muted); }
.quote { border-left: 3px solid #000; padding: 6px 0 6px 18px; margin: 24px 0; }
.quote p { font-family: var(--font-heading); font-size: clamp(17px, 2.6vw, 21px); line-height: 1.45; margin-bottom: 6px; }
.quote footer { font-size: 14px; color: var(--mbai-muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-bottom: 14px; }
.card { border: 1.5px solid #000; border-radius: 6px; padding: 18px; }
.card p { font-size: 15px; margin: 0; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 14px 0 20px; }
.pillar-group { border: 1.5px solid #000; border-radius: 6px; padding: 16px; }
/* Heading > subheading > content (Matt, 2026-11-09). The li rule beats the shared `p, li` size, which made the names outgrow the heading. */
.pg-q { font-family: var(--font-heading); font-weight: 700; font-size: 17px; letter-spacing: 0.14em; margin: 0 0 2px; }
.pg-q::before { content: '> ' / ''; color: var(--mbai-phosphor); }
.pg-sub { font-size: 15px; line-height: 1.4; color: var(--mbai-muted); margin-bottom: 10px; }
.pillar-group ol { margin: 0 0 0 20px; font-family: var(--font-heading); }
.pillar-group li { font-family: var(--font-heading); font-size: 14px; line-height: 1.5; }
.ticks { list-style: none; margin-left: 0; }
.ticks li { padding-left: 24px; position: relative; }
.ticks li::before { content: '>' / ''; position: absolute; left: 0; color: var(--mbai-phosphor); font-family: var(--font-heading); font-weight: 700; }
.units { list-style: none; margin: 0; }
.units li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--mbai-border-subtle); margin: 0; }
.u-num { font-family: var(--font-heading); font-weight: 700; font-size: 22px; color: #000; }
.u-num::after { content: '_' / ''; color: var(--mbai-phosphor); }
.units p { font-size: 15px; margin: 0; }
.price { font-family: var(--font-heading); font-size: 18px; }
.price b { font-size: 30px; }
.price span { display: block; font-size: 14px; color: var(--mbai-muted); font-family: var(--font-body); }
.faq dt { font-family: var(--font-heading); font-weight: 600; margin-top: 16px; }
.faq dd { margin: 4px 0 0; }
.draft { background: #000; color: var(--mbai-phosphor); font-family: var(--font-heading); font-size: 13px; padding: 10px 14px; border-radius: 4px; margin-bottom: 20px; }
.verdict { border: 1.5px solid #000; border-radius: 6px; padding: 14px 16px; margin-bottom: 14px; }
.verdict.ok { box-shadow: 0 0 12px rgba(51,255,51,0.35); }
.verdict.bad { border-style: dashed; }
.verdict .kicker { margin-bottom: 6px; }
.terms li { margin-bottom: 12px; }

/* Forms */
.form fieldset { border: 1.5px solid #000; border-radius: 6px; padding: 16px; margin-bottom: 18px; }
.form legend { font-family: var(--font-heading); font-weight: 700; font-size: 14px; letter-spacing: 0.06em; padding: 0 6px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-family: var(--font-heading); font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.field.row { display: flex; gap: 10px; }
.field.row .email-input { flex: 1; min-width: 0; }
.field.check { display: flex; gap: 10px; align-items: flex-start; }
.field.check input { margin-top: 6px; accent-color: #000; }
.field.check label { display: inline; font-family: var(--font-body); font-weight: 400; font-size: 15px; }
textarea.email-input { resize: vertical; }
.gift-fields { display: none; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--mbai-border-subtle); }
#gift:has(input[value="gift"]:checked) .gift-fields { display: block; }
.summary { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.summary td { padding: 6px 0; border-bottom: 1px solid var(--mbai-border-subtle); }
.summary td:last-child { text-align: right; font-family: var(--font-heading); white-space: nowrap; }
.summary .total td { font-weight: 700; border-bottom: 2px solid #000; }
.grid { width: 100%; border-collapse: collapse; margin-bottom: 14px; display: block; overflow-x: auto; }
.grid th, .grid td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--mbai-border-subtle); font-size: 14px; vertical-align: top; }
.grid th { font-family: var(--font-heading); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.grid .btn { padding: 6px 10px; font-size: 12px; }

/* Footer */
.ftr { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--mbai-border-subtle); }
.ftr-links { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ftr-links li { margin: 0; }
.ftr-links a { display: inline-block; padding: 4px 0; }
.ftr-links a, .ftr-legal a { font-family: var(--font-heading); font-size: 13px; color: #000; text-decoration: underline; text-underline-offset: 3px; }
.ftr-links a:hover, .ftr-legal a:hover { background: var(--mbai-phosphor); text-decoration: none; }
.ftr-legal { font-family: var(--font-heading); font-size: 13px; color: #767676; margin-bottom: 4px; }

/* Placeholder pages */
.email { border: 1.5px solid #000; border-radius: 6px; padding: 16px; margin-bottom: 14px; }
.email-head { font-family: var(--font-heading); font-size: 13px; color: var(--mbai-muted); border-bottom: 1px solid var(--mbai-border-subtle); padding-bottom: 8px; }
.chat { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.bubble { border: 1.5px solid #000; border-radius: 4px; padding: 12px 16px; font-family: var(--font-body); font-size: 15px; line-height: 1.6; }
.bubble.you { border-left: 6px solid #000; }
.bubble.mat { border-left: 6px solid var(--mbai-phosphor); box-shadow: 0 0 10px rgba(51,255,51,0.15); }
.who { display: block; font-family: var(--font-heading); font-size: 12px; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 4px; }
.cert { border: 2px solid #000; padding: 32px 28px; margin: 16px 0; text-align: center; }
.cert-brand { font-family: var(--font-heading); font-weight: 700; font-size: 28px; margin: 0 0 18px; }
.cert-brand span { color: var(--mbai-phosphor); }
.cert-title { font-family: var(--font-heading); font-weight: 700; font-size: clamp(22px, 4vw, 30px); margin: 0; }
.cert-sub { font-family: var(--font-heading); font-size: 15px; letter-spacing: 0.06em; margin: 4px 0 24px; }
.cert-issued { font-family: var(--font-heading); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mbai-muted); margin: 0; }
.cert-name { font-family: var(--font-heading); font-weight: 700; font-size: clamp(22px, 4vw, 28px); margin: 4px 0 12px; }
.cert-small { font-size: 12px; color: var(--mbai-muted); text-align: left; line-height: 1.5; }
.cert-small.alt { border-left: 3px solid var(--mbai-phosphor); padding-left: 10px; }
.cert-body { font-size: 14px; text-align: left; margin: 16px 0; }
.cert-sign { font-family: var(--font-heading); font-size: 13px; margin: 18px 0 0; }

/* Neural-network figures and section marks (ADR-0017; figures v2, PLAN-neural-visuals-v2-2611090810).
   Decorative only: every .nn svg is aria-hidden; black carries the structure; green marks what is active and always sits against black.
   Static by default. Under no-preference each figure plays once, when half of it is on screen: the lit line draws itself in and what it
   reaches lights up, all within 3 s, so no pause control is needed (WCAG 2.2.2 starts at 5 s). Nothing moves beside a line being read. */
.nn-fig { margin: 10px 0 26px; max-width: 440px; }
.nn { display: block; width: 100%; height: auto; overflow: visible; }
/* The hero figure lives in the right gutter, out of the reading column; below 1100px there is no gutter, so it is not shown. */
.hero { position: relative; }
.nn-hero { display: none; }
@media (min-width: 1100px) { .nn-hero { display: block; position: absolute; left: calc(100% + 28px); top: 4px; width: 160px; } }

/* Section mark (Matt, 2026-11-09: "a small, classy, technical style graphic ... at every major section on every web page"):
   a 64x16 network fragment above each section heading, four shapes in turn. Static. */
:root {
  --mark-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 16'%3E%3Cpath fill='none' d='M4 8H60' stroke='%23000' stroke-width='1'/%3E%3Ccircle cx='4' cy='8' r='3' fill='%23fff' stroke='%23000' stroke-width='1.25'/%3E%3Ccircle cx='32' cy='8' r='3' fill='%2333FF33' stroke='%23000' stroke-width='1.25'/%3E%3Ccircle cx='60' cy='8' r='3' fill='%23fff' stroke='%23000' stroke-width='1.25'/%3E%3C/svg%3E");
  --mark-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 16'%3E%3Cpath fill='none' d='M4 8L32 4L60 8L32 12Z' stroke='%23000' stroke-width='1'/%3E%3Ccircle cx='4' cy='8' r='3' fill='%23fff' stroke='%23000' stroke-width='1.25'/%3E%3Ccircle cx='32' cy='4' r='3' fill='%23fff' stroke='%23000' stroke-width='1.25'/%3E%3Ccircle cx='32' cy='12' r='3' fill='%23fff' stroke='%23000' stroke-width='1.25'/%3E%3Ccircle cx='60' cy='8' r='3' fill='%2333FF33' stroke='%23000' stroke-width='1.25'/%3E%3C/svg%3E");
  --mark-c: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 16'%3E%3Cpath fill='none' d='M4 4L32 8L4 12' stroke='%23000' stroke-width='1'/%3E%3Cpath fill='none' d='M32 8H60' stroke='%23000' stroke-width='1'/%3E%3Ccircle cx='4' cy='4' r='3' fill='%23fff' stroke='%23000' stroke-width='1.25'/%3E%3Ccircle cx='4' cy='12' r='3' fill='%23fff' stroke='%23000' stroke-width='1.25'/%3E%3Ccircle cx='32' cy='8' r='3' fill='%2333FF33' stroke='%23000' stroke-width='1.25'/%3E%3Ccircle cx='60' cy='8' r='3' fill='%23fff' stroke='%23000' stroke-width='1.25'/%3E%3C/svg%3E");
  --mark-d: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 16'%3E%3Cpath fill='none' d='M4 4L60 4M4 4L60 12M4 12L60 4M4 12L60 12' stroke='%23000' stroke-width='1'/%3E%3Ccircle cx='4' cy='4' r='3' fill='%2333FF33' stroke='%23000' stroke-width='1.25'/%3E%3Ccircle cx='4' cy='12' r='3' fill='%23fff' stroke='%23000' stroke-width='1.25'/%3E%3Ccircle cx='60' cy='4' r='3' fill='%23fff' stroke='%23000' stroke-width='1.25'/%3E%3Ccircle cx='60' cy='12' r='3' fill='%23fff' stroke='%23000' stroke-width='1.25'/%3E%3C/svg%3E");
}
.sec::before { content: ''; display: block; width: 64px; height: 16px; margin-bottom: 14px; background: var(--mark-a) left center / 64px 16px no-repeat; }
.sec:nth-of-type(4n+2)::before { background-image: var(--mark-b); }
.sec:nth-of-type(4n+3)::before { background-image: var(--mark-c); }
.sec:nth-of-type(4n)::before { background-image: var(--mark-d); }

@media (prefers-reduced-motion: no-preference) {
  /* site.js adds nn-armed before it watches the figures, so a failed script leaves every figure finished and still. */
  /* Gap longer than the dash: with "1" alone Chromium paints a zero-length round-capped dash at each path's end before the draw. */
  .nn-armed .nn .draw { stroke-dasharray: 1 2; stroke-dashoffset: 1; }
  .nn-armed .nn .lit { fill: #fff; }
  .nn-armed .nn .in { opacity: 0; }
  .nn.on .draw { animation: nn-draw var(--t, 1.2s) cubic-bezier(0.4, 0, 0.2, 1) var(--d, 0s) forwards; }
  .nn.on .lit { animation: nn-lit 0.45s ease-out var(--d, 0s) forwards; }
  .nn.on .in { animation: nn-in 0.5s ease-out var(--d, 0s) forwards; }
  /* Logo cursor (Matt, 2026-11-09: "bring back the blinking cursor"): 2 Hz, nine blinks, then solid; on the home page it starts as the title page lifts. */
  .brand-logo .cursor-phosphor { animation: logo-blink 0.5s 9; }
  #intro-view ~ .wrap .brand-logo .cursor-phosphor { animation-delay: 4.4s; }
}
@keyframes nn-draw { to { stroke-dashoffset: 0; } }
@keyframes nn-lit { to { fill: var(--mbai-phosphor); } }
@keyframes nn-in { to { opacity: 1; } }
@keyframes logo-blink { 0%, 49.9% { fill-opacity: 1; } 50%, 100% { fill-opacity: 0; } }

/* System colours win in forced-colours mode, and decoration wastes ink in print. */
@media (forced-colors: active), print { .nn, .nn-fig, .sec::before { display: none; } }

/* Title page (Matt, 2026-11-09: "ensure that every visit to the page goes through the title page that animates out MBAi_").
   Every load of the home page types "MBA" fast, pauses, adds "i" (the 2026-10 holding-page timing), and lifts at 4 s.
   styles.css owns the overlay: hidden unless its animation runs, gone under reduced motion. Here: the typing, and Tab
   dismisses it at once, so keyboard focus never lands on a link hidden beneath it. */
/* visibility, not display: removing the box would restart its animation when focus leaves (review round 2). */
#intro-view:has(~ :focus-visible, ~ * :focus-visible) { visibility: hidden !important; }
.intro-terminal { letter-spacing: 0; }
.intro-letters { display: inline-block; overflow: hidden; white-space: nowrap; width: 0; animation: intro-type 2s steps(1, end) forwards; }
@keyframes intro-type { 12.5% { width: 1ch; } 25% { width: 2ch; } 37.5% { width: 3ch; } 100% { width: 4ch; } }

/* Video embed: the Course Engine's youtube-embed.tsx (aspect-video w-full max-w-2xl rounded-lg my-5). */
.vid { aspect-ratio: 16 / 9; width: 100%; max-width: 42rem; overflow: hidden; border-radius: 0.5rem; margin: 1.25rem 0; }
.vid iframe { width: 100%; height: 100%; border: 0; display: block; }
