/* Artificial Intelligence Masterclass theme "Attention Map": overrides of the engine styles (assets/theme/site.css).
   Loaded after engine/css/site.css and tokens.css. The engine is designed dark with warm paper sections and a gold
   accent in Cormorant, Inter, and a mono label face; this theme is true black and pure white in Vesper Libre and
   Karla, with the magma scale as its only colour, so everything that carried the warm paper, a mono uppercase label,
   or the gold is redrawn here: header, buttons, page heroes, cards, tables, forms, the unit reader, the account
   pages. The second half styles the landing page (theme/home.php, the design's classes). */

/* ------------------------------------------------------------------- base */
html { scroll-padding-top: calc(var(--header-h) + 8px); }
body { font: 400 18px/1.55 var(--sans); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -.003em; line-height: 1.15; }
h1 { font-size: clamp(34px, 4.4vw, 64px); line-height: 1.08; }
h2 { font-size: clamp(30px, 2.9vw, 42px); }
h3 { font-size: 1.5rem; line-height: 1.2; }
b, strong { font-weight: 700; }
i { font-family: var(--math); font-style: italic; }
.icon i, .site-header i { font-family: inherit; }
::selection, .light ::selection, .paper ::selection { background: var(--m3); color: #000; }
.auth-card ::selection, .paper-card ::selection, input::selection, textarea::selection { background: var(--m3); color: #000; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.wrap { max-width: calc(var(--max) + 2 * var(--gut)); padding: 0 var(--gut); }
.wrap-narrow { max-width: calc(880px + 2 * var(--gut)); }
.nb { white-space: nowrap; }
/* the section tokens of the design: dark and light sections share one set of rules through them */
body, .section, .dark, .stage, .hero, .site-footer, .account-head, .account-body, .quiz-wrap, .reader-hero { --fg: #fff; --mt: var(--grey-on-black); --ln: #fff; --soft: var(--soft-dark); --bgc: #000; }
.section.light, .light, .reader, .auth-card, .paper-card, .mobile-menu, .nav-menu { --fg: #000; --mt: var(--grey-on-white); --ln: #000; --soft: var(--soft-light); --bgc: #fff; }
.eyebrow, .light .eyebrow, .paper .eyebrow, .paper-card .eyebrow, .auth-card .eyebrow, .reader .eyebrow, .site-footer .eyebrow, .mm-group .eyebrow { font: 700 15px/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--mt); }
.lead, .light .lead { font-size: 20px; line-height: 1.55; color: var(--mt); max-width: 46em; }
.credit { font: 400 12px/1.4 var(--sans); letter-spacing: 0; color: var(--mt); }
.credit a { color: inherit; }
.link-arrow, .h-link { display: inline; font: 700 17px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--fg); border: 0; padding: 0; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link-arrow:hover, .h-link:hover { opacity: 1; text-decoration-thickness: 2px; }
.link-arrow .icon { width: 1em; height: 1em; vertical-align: -.1em; }
.prose a:not(.btn), .unit-text a:not(.btn), .faq-a a, .lead a, .notice a:not(.btn), .auth-card p a, .field .hint a, .kv a, .legal-box a, .aid-body a:not(.btn), .panel p a:not(.btn), .form p a, .fee-footnote a, .disclaimer a, .section p > a:not(.btn):not(.link-arrow) { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.rule, .light .rule { border-color: var(--soft); }
.small { font-size: 15px; color: var(--mt); }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 26px; border-radius: 999px; border: 2px solid transparent; font: 700 17px/1.2 var(--sans); letter-spacing: 0; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-light, .btn-hot { background: var(--m3); border-color: var(--m3); color: #000; }
.btn-light:hover, .btn-hot:hover { background: #fff; border-color: #fff; color: #000; }
.light .btn-light:hover, .section.light .btn-light:hover { background: #000; border-color: #000; color: #fff; }
.btn-ghost, .btn-line { background: transparent; border-color: var(--fg); color: var(--fg); }
.btn-ghost:hover, .btn-line:hover { background: var(--fg); color: var(--bgc); }
.btn-dark, .btn-ink { background: #000; border-color: #000; color: #fff; }
.btn-dark:hover, .btn-ink:hover { background: #333; border-color: #333; color: #fff; }
.section:not(.light) .btn-dark { background: #fff; border-color: #fff; color: #000; }
.section:not(.light) .btn-dark:hover { background: #d6d6d6; border-color: #d6d6d6; }
/* white cards on a black section (sign in, register, password, enrolment): the dark button stays black */
.section .auth-card .btn-dark, .section .paper-card .btn-dark { background: #000; border-color: #000; color: #fff; }
.section .auth-card .btn-dark:hover, .section .paper-card .btn-dark:hover { background: #333; border-color: #333; color: #fff; }
.btn-outline { background: transparent; border-color: var(--fg); color: var(--fg); }
.btn-outline:hover { background: var(--fg); color: var(--bgc); }
.btn-sm { min-height: 36px; padding: 6px 16px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }
.tbtn { background: none; border: 1px solid var(--ln); color: var(--fg); border-radius: 999px; padding: 5px 14px; min-height: 36px; font: 700 14px/1.2 var(--sans); cursor: pointer; }
.tbtn:hover, .tbtn.kern[aria-pressed="true"] { background: var(--fg); color: var(--bgc); }

/* ----------------------------------------------------------------- header */
.site-header, .has-overlay-header .site-header, .has-overlay-header .site-header.is-scrolled { height: var(--header-h); background: #000; color: #fff; border-bottom: 1px solid #262626; backdrop-filter: none; -webkit-backdrop-filter: none; }
.has-overlay-header .site-header { position: fixed; left: 0; right: 0; }
.header-inner { display: flex; align-items: center; height: 100%; gap: 24px; padding: 0 var(--gut); max-width: none; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex: none; }
.site-header .logo { height: 34px; width: auto; }
.wordmark { font: 900 21px/1 var(--serif); letter-spacing: .005em; white-space: nowrap; }
.nav { flex: 1; min-width: 0; margin-left: 0; gap: 2px; justify-content: center; }
.nav-top { font: 400 15px/1.3 var(--sans); color: var(--grey-on-black); padding: 6px 10px; letter-spacing: 0; border-bottom: 2px solid transparent; border-radius: 0; }
.nav-top::after { display: none; }
.nav-top:hover, .nav-group:focus-within .nav-top, .nav-group.is-open .nav-top { color: #fff; }
.nav-group.is-open .nav-top { border-bottom-color: #fff; }
.nav-menu { top: calc(100% + 11px); left: 50%; transform: translate(-50%, 6px); min-width: 260px; background: #fff; color: #000; border: 1px solid #000; padding: 10px 0; }
.nav-group:hover .nav-menu, .nav-group:focus-within .nav-menu, .nav-group.is-open .nav-menu { transform: translate(-50%, 0); }
.nav-menu a { padding: 8px 20px; font-size: 16px; color: var(--grey-on-white); }
.nav-menu a:hover, .nav-menu a:focus-visible { color: #000; background: var(--paper-2); text-decoration: underline; outline-offset: -3px; }
.header-cta { gap: 18px; margin-left: auto; }
.matrix { display: block; cursor: pointer; flex: none; }
.matrix rect { transition: opacity .3s; }
.nav-login { font: 400 15px/1 var(--sans); color: #fff; }
.header-start { background: var(--m3); border-color: var(--m3); color: #000; }
.header-start:hover { background: #fff; border-color: #fff; }
.burger { display: inline-flex; align-items: center; width: auto; height: auto; min-height: 36px; padding: 6px 16px; background: none; border: 1px solid #fff; border-radius: 999px; color: #fff; font: 700 15px/1.2 var(--sans); }
.burger::before { content: "Menu"; }
.burger[aria-expanded="true"] { background: #fff; color: #000; }
.burger[aria-expanded="true"]::before { content: "Close"; }
.burger span { display: none; }
.mobile-menu { background: #fff; color: #000; border-bottom: 1px solid #000; padding: 32px 0 40px; inset: var(--header-h) 0 0 0; }
.mm-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; align-items: start; }
.mm-group { padding: 0; border: 0; }
.mm-group .eyebrow { font: 500 22px/1.2 var(--serif); color: #000; margin-bottom: 10px; }
.mm-group a { display: block; font: 400 17px/1.4 var(--sans); color: var(--grey-on-white); padding: 4px 0; }
.mm-group a:hover { color: #000; text-decoration: underline; }
.mm-cta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.mm-cta .btn-light { background: var(--m3); border-color: var(--m3); color: #000; }
.mm-cta .btn-outline { border-color: #000; color: #000; }

/* --------------------------------------------------------------- sections */
.section { padding: 96px 0 104px; }
.section.light { background: #fff; color: #000; }
.section.tight { padding: 56px 0 64px; }
.section-head { gap: 16px; margin-bottom: 48px; }
.section-head p, .light .section-head p { font-size: 20px; line-height: 1.55; color: var(--mt); }
.flash { background: #111; border-bottom: 1px solid #333; color: #fff; }
.flash-error { background: #2a0f0d; border-color: #6b241e; }

/* -------------------------------------------------------------- page hero */
.page-hero { padding: 88px 0 56px; border-bottom: 1px solid #262626; background: #000; color: #fff; }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 64px); margin: 12px 0 18px; max-width: 16em; }
.page-hero .eyebrow { color: var(--grey-on-black); }
.page-hero .lead { color: #d6d6d6; }
.page-hero.has-img { padding: 120px 0 64px; }
.page-hero.has-img::before { filter: brightness(.45) saturate(.9); }
.page-hero.has-img::after { background: linear-gradient(90deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.2) 100%); }

/* ------------------------------------------------------- split, checks, cards */
.split-body p, .light .split-body p { color: var(--fg); font-size: 18px; }
.split-media img { aspect-ratio: 4 / 3; }
.split-media .credit { position: static; display: block; margin-top: 8px; }
.checks { gap: 0; margin: 24px 0 30px; }
.checks li { padding: 12px 0; border-top: 1px solid var(--soft); grid-template-columns: 22px 1fr; }
.checks li:last-child { border-bottom: 1px solid var(--soft); }
.checks .icon, .light .checks .icon { color: var(--fg); width: 18px; height: 18px; stroke-width: 2; }
.cards-3 { border: 0; border-top: 1px solid var(--ln); gap: 40px; }
.aud { background: transparent; border: 0; padding: 20px 0 0; }
.aud:hover { background: transparent; color: inherit; }
.aud:hover p, .aud:hover li { color: inherit; }
.aud .icon, .aud li .icon { display: none; }
.aud h3 { font-size: 24px; margin-bottom: 10px; }
.aud p { font-size: 17px; color: var(--fg); }
.aud ul { border-top: 0; padding: 0 0 0 1.1em; margin-top: 16px; gap: 2px; font-size: 16px; color: var(--mt); list-style: disc; }
.aud li { display: list-item; white-space: normal; }
.steps { gap: 40px; background: none; border: 0; }
.step { background: transparent; border-top: 1px solid var(--ln); padding: 14px 0 0; }
.step-no { margin-bottom: 10px; }
.step .icon { display: none; }
.step-num b { width: auto; height: auto; border-radius: 0; background: none; color: var(--fg); font: 900 36px/1 var(--serif); }
.step h3 { font: 700 19px/1.3 var(--sans); margin-bottom: 6px; letter-spacing: 0; }
.step p { font-size: 16.5px; color: var(--fg); }
.week, .week > div { border-color: var(--soft); }
.week .d { font: 700 13px/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--mt); }
.week b { font: 500 19px/1.2 var(--serif); }
.week span { color: var(--mt); }
.week .on { background: #141414; }
.features { gap: 32px; }
.feature .icon { display: none; }
.feature h3 { font-size: 23px; margin-bottom: 8px; }
.feature p, .light .feature p { color: var(--fg); font-size: 16.5px; }
.stats { border-color: var(--ln); margin: 40px 0 48px; }
.stats b { color: var(--fg); font: 900 clamp(44px, 4.6vw, 68px)/1 var(--serif); }
.stats span { font: 400 16px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--mt); }
.cert-shot img, .light .cert-shot img { border: 1px solid var(--ln); box-shadow: 10px 10px 0 var(--ln); }
.kv { grid-template-columns: 170px 1fr; font-size: 17px; }
.kv dt { font: 700 16px/1.6 var(--sans); letter-spacing: 0; text-transform: none; color: var(--fg); }
.kv dd { color: var(--mt); }
.notice { border-left: 3px solid var(--ln); background: var(--paper-2); color: #000; }
.notice.warn { border-color: var(--bad); }
.notice.important { background: #fdeef1; border-color: #f0b4c2; border-left-color: var(--m3); color: #3a0a16; }
.notice.important strong { color: #8c2981; }
.contact-faq { background: var(--paper-2); border-color: var(--soft-light); }
.contact-faq p { color: #000; }
.disclaimer, .section:not(.light) .disclaimer { margin: 36px 0 0; padding: 16px 0; border: 0; border-top: 1px solid var(--ln); border-bottom: 1px solid var(--ln); font-size: 15px; color: var(--fg); max-width: none; }

/* ------------------------------------------------------------- curriculum */
.unit-group { margin-bottom: 64px; }
.unit-group-head { border-bottom: 1px solid #000; }
.unit-group-head h3 { font-size: 28px; }
.unit-row { border-bottom: 1px solid var(--soft-light); }
a.unit-row:hover, .unit-row:target { background: var(--paper-2); box-shadow: -14px 0 0 var(--paper-2), 14px 0 0 var(--paper-2); }
.unit-row:target { box-shadow: -14px 0 0 var(--paper-2), 14px 0 0 var(--paper-2), -17px 0 0 var(--m3); }
.unit-row .no { font: 900 18px/1 var(--serif); letter-spacing: 0; color: #000; }
.unit-row[style*="align-items:start"] .no { height: 1.5rem; padding-top: 0; }
.unit-row h4 { font-size: 24px; }
.unit-row p { color: #000; font-size: 15.5px; }
.unit-row p em { color: var(--grey-on-white); }
.unit-more, .sample-pdf { color: var(--grey-on-white); font-weight: 700; }
.unit-more:hover, .sample-pdf:hover { color: #000; }
.topic-badges li { color: var(--grey-on-white); border-color: var(--soft-light); background: #fff; }
.spot-box { background: var(--paper-2); border-color: var(--soft-light); border-left-color: #000; }
.spot-label { font: 700 13px/1 var(--sans); letter-spacing: 0; text-transform: none; color: #000; }
.spot span { color: var(--grey-on-white); }
.sample-cta { background: #000; color: #fff; border-radius: 999px; padding: 10px 18px 10px 14px; }
.sample-cta:hover { background: #333; }
.sample-cta .icon { color: var(--m4); }
.sample-cta span { color: #d6d6d6; }
.unit-row .pk { font: 400 14px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--grey-on-white); }
.unit-pager { border-color: var(--soft-light); }
.unit-pager a span { font: 700 13px/1.8 var(--sans); letter-spacing: 0; text-transform: none; color: var(--grey-on-white); }

/* ------------------------------------------------------------ researchers */
.researchers { gap: 44px 32px; }
.avatar { aspect-ratio: 4 / 5; object-position: 50% 20%; filter: grayscale(1) contrast(1.05); background: #eee; }
.avatar-mono { font: 500 3rem/1 var(--serif); color: var(--grey-on-white); border: 1px solid var(--soft-light); background: var(--paper-2); }
.researcher-body { border-top: 0; padding-top: 14px; margin-top: 0; }
.researcher h3 { font-size: 22px; line-height: 1.2; margin-bottom: 4px; }
.researcher-inst { font-size: 14px; color: var(--grey-on-white); line-height: 1.4; margin-bottom: 10px; }
.researcher p { font-size: 15.5px; line-height: 1.5; color: #000; }
.researcher-body .eyebrow { color: var(--grey-on-white); font-size: 14px; }
.section:not(.light) .researcher p { color: #fff; }
.section:not(.light) .researcher-inst, .section:not(.light) .researcher-body .eyebrow { color: var(--grey-on-black); }

/* --------------------------------------------------------------- packages */
.packages { gap: 0; align-items: stretch; border-top: 1px solid var(--ln); border-bottom: 1px solid var(--ln); }
.package { display: flex; flex-direction: column; position: relative; background: transparent; border: 0; padding: 32px 32px 36px; }
.package + .package { border-left: 1px solid var(--ln); }
.package.is-featured { background: transparent; border-color: var(--ln); }
.package.is-featured::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 8px; background: var(--scale); }
.package-flag { order: 0; position: static; background: none; color: var(--fg); font: 700 15px/1.6 var(--sans); letter-spacing: 0; text-transform: none; padding: 0; margin: 4px 0 10px; }
.package h2, .package h3 { order: 1; font: 500 28px/1.15 var(--serif); min-height: 0; margin: 0 0 4px; display: block; }
.package:not(.is-featured) h3 { margin-top: calc(15px * 1.6 + 14px); }
.package > .eyebrow:not(.package-units-label) { order: 2; font: 400 16px/1.5 var(--sans); color: var(--mt); margin: 0 0 18px; }
.fee { order: 3; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 20px; padding: 0; border: 0; }
.fee-label { flex-basis: 100%; font: 700 13px/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--mt); margin-bottom: 6px; }
.fee-now { font: 900 52px/1 var(--serif); color: var(--fg); }
.fee-cents { font-size: .5em; vertical-align: .7em; }
.fee-was { font: 400 18px/1 var(--sans); color: var(--mt); text-decoration: line-through; text-decoration-thickness: 1px; }
.package-note { order: 4; color: var(--fg); font-size: 16.5px; line-height: 1.55; min-height: 0; margin: 0 0 18px; }
.fee-aid { order: 5; margin: 0 0 14px; color: var(--mt); font-size: 15px; }
.fee-aid span { color: var(--m3); }
.fee-aid:hover { color: var(--fg); }
.package-incl { order: 6; margin: 0 0 28px; gap: 0; font-size: 16px; color: var(--fg); flex: 1 0 auto; }
.package-incl li { position: relative; padding: 7px 0 7px 22px; border-top: 1px solid var(--soft); }
.package-incl li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 10px; height: 5px; border-left: 2px solid var(--fg); border-bottom: 2px solid var(--fg); transform: rotate(-45deg); }
.package > .btn { order: 7; display: inline-flex; width: auto; align-self: flex-start; background: var(--fg); border-color: var(--fg); color: var(--bgc); }
.package > .btn:hover { background: var(--mt); border-color: var(--mt); color: var(--bgc); }
.package-units-label { order: 8; border-top: 1px solid var(--soft); margin: 28px 0 10px; padding-top: 22px; color: var(--fg); }
.package-units { order: 9; gap: 0; font-size: 15.5px; }
.package-units li a { grid-template-columns: 2.2em 1fr 14px; border: 0; border-top: 1px solid var(--soft); background: none; padding: 8px 0; font-weight: 400; }
.package-units li a::after { color: var(--fg); }
.package-units li a:hover, .package-units li a:focus-visible { background: transparent; border-color: var(--soft); text-decoration: underline; }
.package-units li a > span { font: 900 17px/1.4 var(--serif); color: var(--fg); }
.topic-badge { font: 700 12px/1 var(--sans); letter-spacing: .06em; color: var(--m3); border-color: var(--m3); }
.fee-footnote { text-align: left; color: var(--mt); font-size: 15px; line-height: 1.55; margin-top: 22px; max-width: 60em; }
.aid-note { border-color: var(--m3); background: rgba(222, 73, 104, .08); }
.aid-note p { color: var(--fg); }
.aid-note.is-granted { border-color: var(--ok); background: rgba(47, 138, 85, .1); }

/* ----------------------------------------------------------- testimonials */
.testimonials { gap: 40px 48px; }
.testimonial, .section:not(.light) .testimonial { border: 0; border-top: 1px solid var(--ln); background: transparent; padding: 18px 0 0; }
.testimonial blockquote { font: 500 19px/1.5 var(--serif); margin: 0 0 16px; }
.testimonial blockquote::before { display: none; }
.testimonial figcaption, .section:not(.light) .testimonial figcaption { border-top: 0; padding-top: 0; font-size: 15px; line-height: 1.35; color: var(--mt); }
.t-avatar { width: 46px; height: 46px; }
.testimonial figcaption .t-avatar-mono, .section:not(.light) .testimonial figcaption .t-avatar-mono { background: var(--fg); color: var(--bgc); font: 900 16px/1 var(--serif); letter-spacing: .02em; }
.testimonial figcaption strong { color: var(--fg); font-weight: 700; }
.testimonial figcaption span, .testimonial .t-date, .section:not(.light) .testimonial figcaption span, .section:not(.light) .testimonial .t-date { color: var(--mt); }

/* ------------------------------------------------------------------- blog */
.posts { gap: 40px; }
.post-card { border-top: 1px solid var(--ln); padding-top: 14px; }
.post-card-img { aspect-ratio: 16 / 10; background: #000; margin-bottom: 16px; }
.post-card .eyebrow { font: 400 14px/1.4 var(--sans); color: var(--mt); }
.post-card h3 { font-size: 22px; line-height: 1.25; margin: 8px 0 10px; }
.post-card p, .section:not(.light) .post-card p { font-size: 16px; color: var(--fg); }
.pager a, .pager span { border-color: var(--soft); color: var(--fg); border-radius: 999px; }
.pager a:hover { border-color: var(--fg); }
.pager .is-current { background: var(--fg); border-color: var(--fg); color: var(--bgc); }
.topic-links a, .section:not(.light) .topic-links a { border-color: var(--soft); }
.post-meta { border-color: var(--soft); }
.prose .citation .cite-doi { color: var(--m2); }
.prose .citation .cite-note { color: var(--mt); }

/* -------------------------------------------------------------------- faq */
.faq, .light .faq { border-top: 1px solid var(--ln); }
.faq details, .light .faq details { border-bottom: 1px solid var(--soft); }
.faq summary { font: 700 18px/1.4 var(--sans); padding: 18px 44px 18px 0; }
.faq summary::after { content: ""; width: 10px; height: 10px; right: 6px; border-right: 2px solid var(--fg); border-bottom: 2px solid var(--fg); transform: translateY(-70%) rotate(45deg); font: 0/0 a; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-a, .light .faq-a { color: var(--fg); font-size: 17px; max-width: 60ch; padding: 0 0 20px; }

/* ------------------------------------------------------------- newsletter */
.newsletter { border: 1px solid var(--ln); background: transparent; padding: 32px; gap: 24px 48px; }
.newsletter h2 { font-size: 30px; margin-bottom: 12px; }
.newsletter p { color: var(--fg); font-size: 16.5px; }
.newsletter-form { flex-direction: column; gap: 10px; }
.newsletter-form input[type=email] { border: 1px solid var(--ln); background: var(--bgc); color: var(--fg); font-size: 17px; padding: 12px 14px; min-height: 48px; height: auto; border-radius: 0; }
.newsletter-form input[type=email]::placeholder { color: #767676; }
.newsletter-form input[type=email]:focus { border-color: var(--ln); outline: 2px solid var(--fg); outline-offset: 2px; }
.newsletter-form .btn { height: auto; min-height: 48px; width: 100%; background: var(--fg); border-color: var(--fg); color: var(--bgc); }
.newsletter-form .btn:hover { background: var(--mt); border-color: var(--mt); }
.cta-final h2 { font-weight: 900; max-width: 16em; }

/* ----------------------------------------------------------------- footer */
.site-footer { background: #000; color: #fff; border-top: 1px solid #262626; padding: 64px 0 0; font-size: 15px; }
.footer-grid { grid-template-columns: minmax(0, 3fr) repeat(4, minmax(0, 2fr)); gap: 40px 48px; }
.footer-brand .brand { gap: 12px; margin-bottom: 14px; }
.logo-footer { height: 44px; margin: 0; }
.footer-brand .wordmark { font-size: 26px; }
.footer-brand p { color: var(--grey-on-black); font-size: 15px; line-height: 1.5; max-width: 28em; }
.footer-contact { color: var(--grey-on-black); grid-template-columns: 70px 1fr; }
.footer-contact dt { font: 700 13px/2.1 var(--sans); letter-spacing: 0; text-transform: none; color: #fff; }
.footer-contact dd, .footer-contact a { color: var(--grey-on-black); }
.footer-contact a:hover { color: #fff; }
.footer-col .eyebrow { font: 700 15px/1.3 var(--sans); color: #fff; margin-bottom: 10px; }
.footer-col a { color: var(--grey-on-black); font-size: 15px; line-height: 1.4; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid #262626; color: var(--grey-on-black); font-size: 14px; margin-top: 48px; }
.footer-bottom a { color: var(--grey-on-black); }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }

/* ------------------------------------------------------------------ forms */
.auth-card { background: #fff; border: 1px solid #000; max-width: 500px; }
.auth-card h1 { font-size: 36px; margin: 10px 0 14px; }
.auth-card p { color: var(--grey-on-white); }
.field label { font: 700 15px/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: #000; margin-bottom: 6px; }
.field input, .field select, .field textarea { border: 1px solid #000; background: #fff; color: #000; border-radius: 0; height: 48px; font-size: 17px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #000; outline: 2px solid #000; outline-offset: 2px; }
.field input[disabled] { background: var(--paper-2); color: var(--grey-on-white); }
.field .hint { color: var(--grey-on-white); }
.checkline input, .upgrade-opt input, .aid-form .aid-radios input { accent-color: #000; }
.pw-toggle, .link-button, .auth-card .field .hint a { color: #000; font-weight: 700; }
.auth-switch { border-color: var(--soft-light); }
.country-picker .cp-flag, .cp-list li img { box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.cp-list { border-color: #000; box-shadow: 10px 10px 0 #000; }
.cp-list li.is-active, .cp-list li[role=option]:hover { background: var(--paper-2); }
.verify-form input { background: #000; border: 1px solid #fff; color: #fff; font: 700 17px/1 var(--sans); letter-spacing: .1em; }
.verify-form input:focus { border-color: #fff; outline: 2px solid #fff; outline-offset: 2px; }
.verify-form .btn { border-radius: 0 999px 999px 0; }
.credential { background: #000; border: 1px solid #fff; border-top: 8px solid transparent; border-image: var(--scale) 1; }
.credential .eyebrow { color: var(--grey-on-black); }
.credential .valid { color: #7fd3a1; border-color: var(--ok); font: 700 13px/1 var(--sans); letter-spacing: 0; text-transform: none; border-radius: 999px; }
.credential .facts, .credential th, .credential td { border-color: #333; }
.credential th { font: 700 13px/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--grey-on-black); }
.credential td:first-child { color: var(--grey-on-black); font: 900 15px/1 var(--serif); }
.copyline input { background: #000; border-color: #5a5a5a; color: #fff; font-family: var(--mono-real); }
.doc-card { background: #111; border-color: #333; }
.doc-card p { color: var(--grey-on-black); }
.coupon-form input { border-color: #000; font: 700 15px/1.2 var(--sans); letter-spacing: .06em; }
.coupon-code { color: var(--grey-on-white); }
.tag-chip { background: #000; color: #fff; border-radius: 999px; }
.rating-opt span { border-color: var(--soft-light); }
.rating-opt:hover span { border-color: #000; }
.rating-opt input:checked + span { background: #000; border-color: #000; color: #fff; }
.rating-opt b { font-weight: 900; }
.upgrade-opt { border-color: var(--soft-light); }
.upgrade-opt:has(input:checked) { border-color: #000; box-shadow: inset 0 0 0 1px #000; }
.upgrade-opt b { font-weight: 500; }
.upgrade-badge { background: var(--m3); color: #000; font: 700 11px/1 var(--sans); letter-spacing: .04em; border-radius: 999px; }
.upgrade-price strong { font-weight: 900; }

/* ---------------------------------------------------------------- account */
.account-head p { color: var(--grey-on-black); }
.tabs { box-shadow: inset 0 -1px 0 #333; }
.tabs a { font: 700 15px/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--grey-on-black); }
.tabs a.is-active, .tabs a:hover { color: #fff; border-color: #fff; }
.account-body .wrap > .notice { background: #111; color: #fff; border: 1px solid #333; border-left: 3px solid var(--m3); }
.account-body .wrap > .notice a, .account-body .wrap > .notice .link-button { color: #fff; }
.account-body .wrap > .notice-bad { border-left-color: var(--bad); }
.dialog { border-top: 8px solid transparent; border-image: var(--scale) 1; box-shadow: 10px 10px 0 #000; background: #fff; color: #000; }
.dialog p { color: var(--grey-on-white); }
.dialog-back { background: rgba(0, 0, 0, .7); }
.progress-strip, .progress-strip div { border-color: #333; }
.progress-strip b { font-weight: 900; }
.progress-strip span { font: 400 14px/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--grey-on-black); }
.bar { background: #333; }
.bar i { background: var(--scale); }
.ucard { background: #111; border-color: #333; }
.ucard.is-open { background: #000; border-color: #fff; }
.ucard.is-locked { background: transparent; }
.ucard-no { font-weight: 900; }
.ucard-no small { font: 700 12px/1 var(--sans); letter-spacing: .04em; color: var(--dim); }
.ucard-meta, .ucard-score span, .ucard-more { color: var(--grey-on-black); }
.ucard-more:hover { color: #fff; }
.pill { font: 700 12px/1 var(--sans); letter-spacing: .02em; text-transform: none; border-color: #5a5a5a; border-radius: 999px; padding: 6px 10px; }
.pill.ok { border-color: var(--ok); color: #7fd3a1; }
.pill.wait { color: var(--grey-on-black); }
.exam-result.is-passed { border-color: var(--ok); }
.verdict { font: 700 15px/1 var(--sans); letter-spacing: .02em; text-transform: none; border-radius: 999px; }
.verdict.ok { background: var(--ok); }
.panel { background: #111; border-color: #333; }
.panel p { color: var(--grey-on-black); }
.panel.is-key { border-color: #fff; }
.paper-card { background: #fff; color: #000; border: 1px solid #000; }

/* ------------------------------------------------------------------- quiz */
.quiz-head { border-color: #333; }
.quiz-head p { color: var(--grey-on-black); }
.q { background: #111; border-color: #333; }
.q-no { font: 700 13px/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--grey-on-black); }
.q-text { font-weight: 500; }
.opt { border-color: #333; }
.opt:hover { border-color: #5a5a5a; }
.opt .k { border-color: #5a5a5a; font: 700 13px/1 var(--sans); }
.opt:has(input:checked) { border-color: #fff; background: #000; }
.opt:has(input:checked) .k { background: #fff; color: #000; border-color: #fff; }
.explain { background: #000; border-left: 2px solid var(--m3); color: #d6d6d6; }
.explain b { color: var(--grey-on-black); font: 700 13px/1 var(--sans); letter-spacing: 0; text-transform: none; }
.quiz-foot { background: rgba(0, 0, 0, .94); border-color: #333; }
.quiz-foot .state { font: 400 14px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--grey-on-black); }
.scorebox .big { font-weight: 900; }
.scorebox .big small { color: var(--grey-on-black); }
.timer { background: #000; border-color: #fff; font: 700 14px/1 var(--sans); letter-spacing: 0; text-transform: none; }
.timer b { font: 900 26px/1 var(--serif); letter-spacing: 0; }
.timer.is-low { border-color: var(--bad); color: #ff9c92; }
.breakdown td, .breakdown th { border-color: #333; }
.breakdown th { font: 700 13px/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--grey-on-black); }

/* ------------------------------------------------------------ unit reader */
.reader-hero { background: #000; }
.reader-hero img.bg { filter: brightness(.5); }
.reader-hero .eyebrow { color: var(--grey-on-black); }
.reader-hero .sub { font: 500 24px/1.35 var(--serif); color: #d6d6d6; }
.reader-hero .credit { color: rgba(255, 255, 255, .85); }
.reader { background: #fff; color: #000; }
.toc a { border-color: var(--soft-light); color: var(--grey-on-white); }
.toc a:hover, .toc a.is-active { color: #000; border-color: #000; }
.unit-text h2 { border-bottom: 1px solid #000; }
.unit-text h4 { font: 700 17px/1.3 var(--sans); font-style: normal; }
.unit-text .secno { font: 900 .6em/1 var(--serif); color: var(--grey-on-white); }
.unit-text code { font: 400 .88em var(--mono-real); background: var(--paper-2); }
.unit-text .fn, .unit-text figcaption { color: var(--grey-on-white); }
.unit-text table, .unit-text th { border-color: #000; }
.box { background: #fff; border-color: #000; }
.box-kind { font: 700 13px/1.2 var(--sans); letter-spacing: .04em; }
.box-title { font-weight: 700; }
/* the box colours, the same tones as theme/theme.tex: the magma scale and its darker neighbours, greys for the rest */
.box-keyequation { --bx: #de4968; --bx-l: #fcebef; }
.box-keyequation .box-head { color: #000; }
.box-law, .box-laws { --bx: #3b0f70; --bx-l: #eee9f4; }
.box-derivation { --bx: #3b0f70; --bx-l: #eee9f4; }
.box-example { --bx: #b5452f; --bx-l: #f9ece9; }
.box-excursion { --bx: #4a4a4a; --bx-l: #f2f2f2; }
.box-research { --bx: #000000; --bx-l: #f2f2f2; }
.box-research .box-kind, .box-research .box-inst { color: #d6d6d6; }
.box-research .box-name { font-weight: 500; }
.box-keypoints { --bx: #c97a2e; --bx-l: #fbf1e6; }
.box-keypoints .box-kind, .box-questions .box-kind { color: #9a5a1c; }
.box-check { --bx: #8c2981; --bx-l: #f6ecf4; }
.box-check .check-result { border-top-color: rgba(140, 41, 129, .25); }
.box-interactive { --bx: #262626; --bx-l: #f2f2f2; }
.ia-slider input[type=range] { accent-color: #000; }
.ia-btn.on { background: #000; border-color: #000; }
.paperlink { border-color: var(--soft-light); }
.paperlink span { font: 700 13px/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--grey-on-white); }
.reader-end { background: #000; color: #fff; }
.reader-end h3 { font-weight: 500; }
.preview-fade::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 88%); }
.lit-list li { border-color: var(--soft-light); }
.lit-list .m { color: var(--grey-on-white); }

/* ------------------------------------------------------- prose and pages */
.prose { font-size: 18px; }
.prose h2 { font-size: 34px; }
.prose blockquote { font: 500 24px/1.45 var(--serif); border-left: 2px solid #000; }
.legal-updated { font: 700 14px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--grey-on-white); }
.legal-box { background: var(--paper-2); border-color: var(--soft-light); }
.prose th { font: 700 15px/1.3 var(--sans); letter-spacing: 0; text-transform: none; }
.prose td { border-color: var(--soft-light); }
.stack-table tr { border-color: var(--soft-light); }
.stack-table td::before { font: 700 13px/1.9 var(--sans); letter-spacing: 0; text-transform: none; color: var(--grey-on-white); }
.resource { border-color: var(--soft-light); }
.resource:hover { background: var(--paper-2); }
.resource p { color: #000; }
.resource-host { color: var(--grey-on-white); }
.resource-note { color: var(--grey-on-white); }
.resource-note .icon { color: #000; }
.eq-card { background: var(--paper-2); border-color: var(--soft-light); }
.eq-card p { color: var(--grey-on-white); }
.eq-toc { border-color: #000; }
.eq-toc a span { font: 900 15px/1 var(--serif); color: var(--grey-on-white); }
.pathway-map td, .pathway-map th { border-color: var(--soft-light); }
.aid-body > p { color: var(--grey-on-black); }
.aid-apply-aside { border-top-color: #000; color: var(--grey-on-white); }
.aid-apply-aside a { color: #000; }
.aid-form fieldset { background: var(--paper-2); border-color: var(--soft-light); }
.aid-form legend span { background: #000; color: #fff; }
.aid-location { background: var(--paper-2); border-color: var(--soft-light); }
.aid-location em { color: var(--grey-on-white); }
.geo-test-badge { box-shadow: 10px 10px 0 #000; }

/* ----------------------------------------------------------------- cookie */
.cookie { background: #fff; color: #000; border: 1px solid #000; box-shadow: 10px 10px 0 #000; }
.cookie p { color: #000; }
.cookie .btn-ghost { border-color: #000; color: #000; }
.cookie .btn-ghost:hover { background: #000; color: #fff; }
.cookie .btn-light { background: #000; border-color: #000; color: #fff; }

/* ================================================================ home page */
/* The landing page (theme/home.php): the attention stage beside the mosaic, then sections black and white in turn,
   each with one visual from a field of AI (design/option_8). */
.sec { background: var(--bgc); color: var(--fg); padding: 96px 0 104px; }
.sec.tight-top { padding-top: 72px; }
.sec.ruled { padding-top: 0; }
.sec.ruled .wrap { border-top: 1px solid var(--ln); padding-top: 64px; }
.sec h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 2.9vw, 42px); line-height: 1.15; margin-bottom: 24px; max-width: 24ch; letter-spacing: -.003em; }
.h2-follow { margin-top: 88px; }
.sub-h { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 1.9vw, 26px); line-height: 1.2; margin: 0 0 16px; }
.lede { font-size: 20px; line-height: 1.55; max-width: 46em; }
.sec a { text-underline-offset: 3px; }
.h-link-dark { color: #fff; }
.intro-link, .how-link, .res-link, .com-link, .quotes-link { margin: 24px 0 0; }

/* stages: the hero, the tuition sentence, the final sentence */
.stage { background: #000; color: #fff; position: relative; padding: 88px 0; }
.stage-in { width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.hero.hero7 { position: relative; min-height: 100vh; min-height: 100svh; padding: calc(var(--header-h) + 36px) var(--gut) 40px; display: flex; align-items: center; overflow: visible; background: #000; }
.hero.hero7::after { content: none; }
.hero7 .hero-in { width: 100%; max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.name-line { font-weight: 700; font-size: 18px; margin: 0; }
.sent-wrap { position: relative; padding-top: calc(var(--sent) * .7); --sent: clamp(30px, 4.4vw, 64px); }
.stage:not(.hero) .sent-wrap { --sent: clamp(28px, 3.1vw, 44px); }
.arcs { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.sent { position: relative; z-index: 1; font-family: var(--serif); font-weight: 900; font-size: var(--sent); line-height: 1.8; letter-spacing: -.004em; word-spacing: .14em; margin: 0; max-width: none; }
.hero .sent { font-size: var(--sent); font-weight: 900; }
.ln { display: block; }
.w { display: inline-block; background: none; border: 0; padding: 0; margin: 0; line-height: 1; font: inherit; font-weight: 900; cursor: pointer; color: #fff; transition: color .3s; border-radius: 4px; -webkit-tap-highlight-color: transparent; }
.w.is-q { color: var(--m5); }
.w:focus-visible { outline: 2px solid #fff; outline-offset: 6px; }
.sent.intro .w { opacity: 0; }
.sent.intro .w.in { opacity: 1; transition: opacity .25s; }
.arc { fill: none; stroke-linecap: round; }
.hero7 .sub { font-size: 20px; line-height: 1.5; margin: 22px 0 24px; max-width: 31em; color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 20px; }
.hero7 .checks, .stage .checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 16px; }
.hero7 .checks li { display: flex; align-items: center; gap: 8px; padding: 0; border: 0; }
.hero7 .checks li::before { content: ""; width: 12px; height: 7px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translateY(-2px); }
.stage-note { color: var(--grey-on-black); font-size: 17px; max-width: 38ch; margin: 0 0 20px; }
.legend { font-size: 13px; color: var(--grey-on-black); min-width: 0; margin-top: 14px; }
.hero7 .legend { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--soft-dark); }
.legend-h { margin: 0 0 8px; font-size: 14px; }
.legend-h b { color: #fff; font-weight: 700; }
.cells { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.cells li { display: flex; flex-direction: column; align-items: stretch; min-width: 54px; }
.cell { display: flex; align-items: center; justify-content: center; padding: 0 6px; height: 28px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; transition: background-color .3s, color .3s; }
.cell.self { background: transparent; border: 1px solid #444; color: var(--grey-on-black); font-weight: 400; }
.lbl { margin-top: 4px; text-align: center; white-space: nowrap; font-size: 12px; }
.stage-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: end; }
.stage-side .legend { margin-top: 0; }
.final { padding: 104px 0; }
.final .actions { margin-bottom: 28px; }
/* the mosaic */
.hero7 .mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); grid-template-areas: "a a b" "c d b" "e f f"; gap: 8px; height: min(720px, calc(100svh - var(--header-h) - 76px)); min-height: 480px; }
.hero7 .tile { position: relative; overflow: hidden; background: #141414; margin: 0; }
.hero7 .tile img, .hero7 .tile canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero7 .tile img { filter: saturate(.88); }
.hero7 .tile figcaption { position: absolute; left: 0; bottom: 0; max-width: 100%; background: #000; padding: 6px 10px 7px; line-height: 1.25; }
.hero7 .tile figcaption b { display: block; font-size: 13.5px; font-weight: 700; color: #fff; }
.hero7 .tile figcaption span { display: block; font-size: 12px; color: var(--grey-on-black); }
.hero7 .t-a { grid-area: a; } .t-a img { object-position: 20% 50%; }
.hero7 .t-b { grid-area: b; } .t-b img { object-position: 50% 20%; filter: none; }
.hero7 .t-c { grid-area: c; } .t-c img { object-position: 4% 50%; }
.hero7 .t-d { grid-area: d; background: #000; }
.hero7 .t-e { grid-area: e; }
.hero7 .t-f { grid-area: f; } .t-f img { object-position: 78% 60%; }
.hero7 .mini-toggle { position: absolute; top: 6px; right: 6px; background: #000; border: 1px solid #555; border-radius: 999px; padding: 4px 12px; font: 400 12px/1.6 var(--sans); cursor: pointer; color: #fff; min-height: 36px; }
.hero7 .mini-toggle:hover { border-color: #fff; }

/* alumni */
.alumni { background: #000; padding: 40px 0 56px; border-top: 1px solid #262626; border-bottom: 0; overflow: visible; }
.alumni-h { font: 700 15px/1.3 var(--sans); color: var(--grey-on-black); margin: 0 0 20px; text-align: left; }
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px 32px; align-items: center; }
.logos li { display: flex; justify-content: center; align-items: center; height: 48px; }
.logos img { max-height: 34px; height: 34px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1) brightness(0) invert(1); opacity: .78; }

/* figures */
.viz { margin: 0; }
.field { display: block; font: 700 15px/1.3 var(--sans); margin: 0 0 10px; color: var(--fg); }
.field-dark { color: #fff; }
.cap { font-size: 14.5px; line-height: 1.5; color: var(--mt); margin: 10px 0 0; max-width: 62em; }
.cap .credit, .robots .credit, .games .credit, .wide-photo .credit { display: block; margin-top: 4px; }
.inst canvas { width: 100%; height: auto; background: #000; display: block; }
.light .inst > canvas { border: 1px solid #000; }
.readout { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-top: 10px; font-size: 15px; font-variant-numeric: tabular-nums; }
.ctrl { display: inline-flex; gap: 6px; flex-wrap: wrap; }

/* intro and cognitive science */
.intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.intro-text p { font-size: 19px; line-height: 1.6; }
.cog-pair { display: grid; grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr); gap: 16px; align-items: center; }
.cog-pair img { width: 100%; border: 1px solid #e2e2e2; }
.net { width: 100%; height: auto; }
.net-lbl text { font-family: var(--sans); fill: var(--grey-on-white); }
.points { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 1px solid var(--ln); }
.points li { padding-top: 18px; font-size: 17px; }
.points b { display: block; font-family: var(--serif); font-weight: 500; font-size: 22px; margin-bottom: 4px; }

/* audiences and the perceptron */
.wide-photo { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 28px; align-items: end; margin: 8px 0 56px; }
.wide-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 45%; }
.wide-photo figcaption { font-size: 15.5px; line-height: 1.55; color: var(--mt); }
.wide-photo .field { color: var(--fg); }
.audiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; border-top: 1px solid var(--ln); }
.audiences article { padding-top: 20px; }
.audiences h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; margin-bottom: 10px; }
.audiences p { font-size: 17px; }
.audiences ul { margin: 0; padding: 0 0 0 1.1em; font-size: 16px; color: var(--mt); }
.audiences li { margin-bottom: 2px; }

/* how it works and the gridworld */
ol.steps { list-style: none; counter-reset: st; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; background: none; border: 0; }
ol.steps li { counter-increment: st; border-top: 1px solid var(--ln); padding-top: 14px; }
ol.steps li::before { content: counter(st); display: block; font-family: var(--serif); font-weight: 900; font-size: 36px; line-height: 1; margin-bottom: 10px; }
ol.steps h3 { font: 700 19px/1.3 var(--sans); margin-bottom: 6px; letter-spacing: 0; }
ol.steps p { font-size: 16.5px; margin: 0; }
.how-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; margin-top: 80px; align-items: start; }
.how-side .sub-h { margin-top: 0; }
.how-side .exam { margin-bottom: 0; }
.how-side .small { margin: 12px 0 40px; }
.week-row, .exam { margin: 0; }
.week-row div, .exam div { display: grid; grid-template-columns: 8.5em 1fr; gap: 16px; padding: 11px 0; border-top: 1px solid var(--soft); }
.week-row dt, .exam dt { font-weight: 700; }
.week-row dd, .exam dd { margin: 0; font-size: 16.5px; }

/* curriculum */
.group { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--soft); }
.group h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.15; margin-bottom: 10px; }
.range { display: block; font-family: var(--sans); font-size: 15px; color: var(--mt); margin-top: 4px; }
.group-text > p { font-size: 17px; }
.photo img { width: 100%; aspect-ratio: 840 / 420; object-fit: cover; }
.units { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--ln); }
.units li { border-bottom: 1px solid var(--soft); }
.units summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 2.2em 1fr 18px; gap: 4px; align-items: baseline; padding: 10px 0; font-weight: 700; font-size: 16px; line-height: 1.35; }
.units summary::-webkit-details-marker { display: none; }
.units summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--fg); border-bottom: 2px solid var(--fg); transform: rotate(45deg); justify-self: end; align-self: center; transition: transform .2s; }
.units details[open] summary::after { transform: rotate(-135deg); }
.units .n { font-family: var(--serif); font-weight: 900; font-variant-numeric: tabular-nums; }
.units details p { margin: 0 0 10px 2.6em; font-size: 15.5px; color: var(--mt); }
.units details .unit-go { margin-bottom: 14px; }
.units details .unit-go a { color: var(--fg); font-weight: 700; }
.sec-foot { display: flex; align-items: center; gap: 32px; margin-top: 64px; flex-wrap: wrap; }
.pathway { flex: 1; min-width: 280px; margin: 0; font-size: 16px; color: var(--mt); }
.pathway a { color: var(--fg); font-weight: 700; }

/* research and robotics */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px 32px; margin-top: 40px; }
.people .researcher h3 { font-size: 22px; }
.robots { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 28px; margin-top: 72px; align-items: start; }
.robots .field { grid-column: 1 / -1; margin: 0; }
.robots figure { margin: 0; }
.robots img { width: 100%; object-fit: cover; }
.robot-a img { aspect-ratio: 4 / 5; object-position: 50% 30%; }
.robot-b img { aspect-ratio: 16 / 10; }
.robots figcaption, .games figcaption { font-size: 14.5px; line-height: 1.5; color: var(--mt); margin-top: 10px; }

/* tuition fee */
#tuition .packages { margin-top: 8px; }
.fee-note { margin-top: 22px; max-width: 60em; }
.fee-note a { color: #000; font-weight: 700; }

/* certificate */
.cert { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: center; }
.points-1 { grid-template-columns: 1fr; gap: 0; border-top: 0; margin: 28px 0 32px; }
.points-1 li { border-top: 1px solid var(--soft); padding: 14px 0; }
.points-1 b { display: inline; font-family: var(--sans); font-weight: 700; font-size: 17px; }
.cert-mock { margin: 0; }
.cert-sheet-img { width: 100%; height: auto; border: 1px solid #000; outline: 1px solid #fff; box-shadow: 10px 10px 0 #333; }
.cert-sheet { color: #000; border: 1px solid #000; outline: 1px solid #000; outline-offset: -10px; padding: 28px 48px 32px; text-align: center; background: #fff; aspect-ratio: 1.414 / 1; display: flex; flex-direction: column; justify-content: center; }
.cert-arcs { width: 60%; margin: 0 auto 6px; display: block; }
.c-kicker { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.c-title { font-family: var(--serif); font-weight: 900; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; margin-bottom: 14px; }
.c-small { font-size: 13px; color: var(--grey-on-white); margin-bottom: 4px; }
.c-name { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 2.1vw, 28px); margin: 2px 0 8px; border-bottom: 1px solid #000; display: inline-block; align-self: center; padding: 0 24px 2px; }
.c-what { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.c-foot { display: flex; justify-content: space-between; margin-top: 18px; font-size: 11.5px; color: var(--grey-on-white); text-align: left; line-height: 1.4; }
.c-foot span:last-child { text-align: right; }
.c-foot b { color: #000; font-size: 13px; }

/* sample unit and the XOR trainer */
.sec .sample { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 64px; align-items: start; border: 0; background: transparent; transition: none; }
.sec .sample:hover { transform: none; border: 0; }
.sample-title { font-family: var(--serif); font-weight: 900; font-size: clamp(26px, 2.3vw, 34px); line-height: 1.15; margin-bottom: 16px; }
.sample-title span { display: block; font-family: var(--sans); font-weight: 700; font-size: 16px; color: var(--mt); margin-bottom: 6px; }
.sample h3 { font: 700 18px/1.3 var(--sans); margin: 28px 0 8px; letter-spacing: 0; }
.questions { margin: 0 0 28px; padding-left: 1.4em; font-size: 16.5px; }
.questions li { margin-bottom: 8px; padding-left: 4px; }
.page { margin: 0; }
.page-sheet { display: block; background: #fff; color: #000; border: 1px solid #000; box-shadow: 10px 10px 0 #000; padding: 40px 44px 28px; max-width: 560px; margin-left: auto; }
.page-sheet-img { padding: 0; overflow: hidden; }
.page-sheet-img img { display: block; width: 100%; height: auto; }
.page-run { display: flex; justify-content: space-between; font-size: 12px; color: var(--grey-on-white); border-bottom: 1px solid #d6d6d6; padding-bottom: 8px; margin-bottom: 28px; }
.page-title { font-family: var(--serif); font-weight: 900; font-size: 28px; line-height: 1.15; margin-bottom: 10px; }
.page-sub { font-family: var(--serif); font-weight: 500; font-size: 17px; line-height: 1.4; color: var(--grey-on-white); margin-bottom: 18px; }
.page-body { font-family: var(--serif); font-weight: 500; font-size: 15.5px; line-height: 1.65; hyphens: auto; }
.page-obj-h { font: 700 12px/1.3 var(--sans); margin: 18px 0 6px; padding-top: 14px; border-top: 1px solid #d6d6d6; }
.page-obj { margin: 0; padding-left: 1.2em; font-size: 13px; line-height: 1.45; color: var(--grey-on-white); }
.page-obj li { margin-bottom: 4px; }
.page-foot { text-align: center; font-size: 12px; color: var(--grey-on-white); margin: 18px 0 0; }
.trainer { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 88px; padding-top: 28px; border-top: 1px solid var(--ln); }
.trainer canvas { aspect-ratio: 1 / 1; }
.trainer-h { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 2.1vw, 30px); line-height: 1.2; margin: 0 0 12px; }
.trainer figcaption > p { font-size: 17px; max-width: 40em; }
.trainer .cap { font-size: 14.5px; }
.readout-big { font-family: var(--serif); font-weight: 900; font-size: 26px; font-variant-numeric: tabular-nums; margin: 20px 0 4px; }
.xor-msg { min-height: 1.5em; font-size: 16px; font-weight: 700; margin: 0 0 14px; }

/* testimonials and games */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; margin-top: 8px; }
.games { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 24px 28px; margin-top: 88px; align-items: start; }
.games .field { grid-column: 1 / -1; margin: 0; }
.games figure { margin: 0; }
.games img { width: 100%; object-fit: cover; }
.game-a img { aspect-ratio: 16 / 10.6; }
.game-b img { aspect-ratio: 4 / 5; object-position: 50% 40%; }

/* community and blog */
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 40px 0 0; border-top: 1px solid var(--ln); }
.figures div { display: flex; flex-direction: column-reverse; padding-top: 16px; }
.figures dd { margin: 0; font-family: var(--serif); font-weight: 900; font-size: clamp(44px, 4.6vw, 68px); line-height: 1; }
.figures dt { font-size: 16px; margin-top: 8px; color: var(--mt); }
.sec .features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.sec .features h3 { font-family: var(--serif); font-weight: 500; font-size: 23px; margin-bottom: 8px; }
.sec .features p { font-size: 16.5px; }
.posts-home { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.posts-home article { border-top: 1px solid var(--ln); padding-top: 14px; }
.posts-home .post-meta { display: block; font-size: 14px; color: var(--mt); margin: 0 0 8px; padding: 0; border: 0; }
.posts-home h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.25; margin-bottom: 10px; }
.posts-home h3 a { text-decoration: none; }
.posts-home h3 a:hover { text-decoration: underline; }
.posts-home p { font-size: 16px; }

/* faq and newsletter */
.faq-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 72px; align-items: start; }
.news.newsletter { display: block; border: 1px solid #000; padding: 32px; position: sticky; top: calc(var(--header-h) + 24px); background: #fff; }
.news h2 { font-size: 30px; margin-bottom: 12px; }
.news p { font-size: 16.5px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav-top { padding: 6px 7px; font-size: 14px; }
  .people { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .header-cta { margin-left: auto; }
  .mm-in { grid-template-columns: 1fr 1fr; }
  .researchers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .packages { grid-template-columns: 1fr; max-width: none; }
  .package + .package { border-left: 0; border-top: 1px solid var(--ln); }
  .package { padding: 28px 0 32px; }
  .package:not(.is-featured) h3 { margin-top: 0; }
}
@media (max-width: 1000px) {
  .hero7 { min-height: 0; }
  .hero7 .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .hero7 .mosaic { height: auto; min-height: 0; grid-template-rows: repeat(3, 190px); }
  .stage-grid, .intro, .cert, .sec .sample, .faq-grid, .how-row, .group, .trainer, .wide-photo { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .audiences, .points, .sec .features, .posts-home { grid-template-columns: 1fr; gap: 28px; }
  ol.steps { grid-template-columns: 1fr 1fr; }
  .page-sheet { margin: 0; }
  .news.newsletter { position: static; }
  .trainer canvas { max-width: 420px; }
}
@media (max-width: 860px) {
  .kv { grid-template-columns: 1fr; }
  .researchers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .unit-row { grid-template-columns: 84px minmax(0, 1fr); }
  :root { --header-h: 56px; }
  .site-header .logo { height: 30px; }
  .cards-3, .steps { grid-template-columns: 1fr; }
  .aud { border: 0; border-top: 1px solid var(--ln); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .hero7 .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, 150px); grid-template-areas: "a a" "b c" "d e" "f f"; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .sec, .section { padding: 64px 0 72px; }
  .stage { padding: 64px 0; }
  .hero7 { padding-top: calc(var(--header-h) + 28px); padding-bottom: 32px; }
  .sent-wrap { padding-top: calc(var(--sent) * 1.0); }
  .logos { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  ol.steps { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .people .researcher h3 { font-size: 19px; }
  .quotes, .figures { grid-template-columns: 1fr; gap: 28px; }
  .cog-pair { grid-template-columns: 1fr; }
  .robots, .games { grid-template-columns: 1fr; }
  .week-row div, .exam div { grid-template-columns: 1fr; gap: 2px; }
  .page-sheet { padding: 24px 20px 18px; box-shadow: 6px 6px 0 #000; }
  .cert-sheet { padding: 20px 18px; aspect-ratio: auto; }
  .mm-in { grid-template-columns: 1fr; gap: 20px; }
  .wordmark { font-size: 19px; }
  .hero7 .sub { font-size: 18px; }
  .cells li { min-width: 44px; }
  .cell { height: 28px; font-size: 12px; }
  .lbl { font-size: 12px; }
  .readout { font-size: 14px; }
  .header-start { display: none; }
  .header-cta { gap: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .unit-row .no { height: auto; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 var(--gut); }
  .newsletter-form input[type=email] { border-right: 1px solid var(--ln); }
  .verify-form input { border-right: 1px solid #fff; }
  .verify-form .btn { border-radius: 999px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .matrix rect, .w, .arc, .cell { transition: none !important; }
}
