/* Psychology Masterclass theme "Figure and Ground, Poster Fields": overrides of the engine styles (assets/theme/site.css).
   Loaded after engine/css/site.css and tokens.css. The engine is built as a black ground with Poster White "paper"
   sections, which is exactly the figure and ground rhythm of this design, so the tokens do most of the work. What is
   redrawn here: the type (Kufam display, SN Pro text, no monospace labels, sentence case), the flat language (zero
   radius, no shadows, 3 px rules, flat fields), the Poster White header and footer with their black rules, the red
   page heroes, buttons, the tuition fields, forms, the unit reader boxes, and the account pages. The second half styles
   the landing page (theme/home.php, classes h-* and pf-*). Red is the accent on white, ochre the accent on black. */

/* ------------------------------------------------------------------- base */
html { scroll-padding-top: calc(var(--header-h) + 16px); }
body { font: 400 18px/1.5 var(--text); -webkit-font-smoothing: auto; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
h1 { font-size: clamp(40px, 5.6vw, 92px); font-weight: 900; line-height: .95; letter-spacing: -.025em; }
h2 { font-size: clamp(40px, 5vw, 72px); font-weight: 900; line-height: .92; letter-spacing: -.03em; }
h3 { font-size: 26px; line-height: 1.08; letter-spacing: -.015em; }
b, strong { font-weight: 700; }
::selection, .light ::selection, .paper ::selection, .auth-card ::selection, .paper-card ::selection, input::selection, textarea::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.section:not(.light) :focus-visible, .pf-black :focus-visible { outline-color: var(--ochre); }
.pf-red :focus-visible, .page-hero :focus-visible, .reader-hero :focus-visible { outline-color: #fff; }
.auth-card :focus-visible, .paper-card :focus-visible, .dialog :focus-visible { outline-color: var(--red); }
.wrap { padding: 0 var(--gut); }
.wrap-narrow { max-width: calc(860px + 2 * var(--gut)); }
.eyebrow, .light .eyebrow, .paper .eyebrow, .paper-card .eyebrow, .auth-card .eyebrow, .reader .eyebrow { font: 600 16px/1.3 var(--text); letter-spacing: 0; text-transform: none; }
.lead, .light .lead { font-size: 20px; line-height: 1.45; color: inherit; max-width: 46ch; }
.credit { font: 400 13.5px/1.4 var(--text); letter-spacing: 0; color: var(--concrete); }
.credit a { color: inherit; }
.link-arrow { font: 600 17px/1.3 var(--text); letter-spacing: 0; text-transform: none; border: 0; padding: 0; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--red); }
.section:not(.light) .link-arrow, .pf-black .link-arrow { text-decoration-color: var(--ochre); }
.pf-red .link-arrow { text-decoration-color: currentColor; }
.link-arrow:hover { opacity: 1; text-decoration-thickness: 3px; }
.link-arrow .icon { width: 1.1em; height: 1.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 { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 2px; text-decoration-color: var(--red); }
.section:not(.light) .panel p a:not(.btn), .section:not(.light) .notice a:not(.btn), .section:not(.light) .lead a, .section:not(.light) .fee-footnote a, .section:not(.light) .disclaimer a { text-decoration-color: var(--ochre); }
.rule, .light .rule { border-top: 3px solid currentColor; }

/* ---------------------------------------------------------------- buttons */
.btn { border: 2px solid transparent; border-radius: 0; font: 600 17px/1.2 var(--text); letter-spacing: 0; padding: 12px 26px; min-height: 52px; gap: 10px; transition: none; }
.btn-light { background: var(--poster); color: #000; border-color: var(--poster); }
.btn-light:hover { background: var(--ochre); color: #000; border-color: var(--ochre); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: var(--poster); color: #000; border-color: var(--poster); }
.btn-dark { background: #000; color: var(--poster); border-color: #000; }
.btn-dark:hover { background: var(--red); color: #fff; border-color: var(--red); }
.btn-outline { background: transparent; color: #000; border-color: #000; }
.btn-outline:hover { background: #000; color: var(--poster); border-color: #000; }
.light .btn-light, .paper-card .btn-light, .auth-card .btn-light, .reader .btn-light, .pf-white .btn-light, .dialog .btn-light { background: #000; color: var(--poster); border-color: #000; }
.light .btn-light:hover, .paper-card .btn-light:hover, .auth-card .btn-light:hover, .reader .btn-light:hover, .pf-white .btn-light:hover, .dialog .btn-light:hover { background: var(--red); color: #fff; border-color: var(--red); }
.light .btn-ghost, .paper-card .btn-ghost, .auth-card .btn-ghost, .reader .btn-ghost, .pf-white .btn-ghost, .dialog .btn-ghost { color: #000; border-color: #000; }
.light .btn-ghost:hover, .paper-card .btn-ghost:hover, .auth-card .btn-ghost:hover, .reader .btn-ghost:hover, .pf-white .btn-ghost:hover, .dialog .btn-ghost:hover { background: #000; color: var(--poster); border-color: #000; }
.reader-end .btn-light { background: var(--poster); color: #000; border-color: var(--poster); }
.reader-end .btn-light:hover { background: var(--ochre); border-color: var(--ochre); }
.page-hero .btn-light, .reader-hero .btn-light, .pf-red .btn-light { background: var(--poster); color: #000; border-color: var(--poster); }
.page-hero .btn-light:hover, .reader-hero .btn-light:hover, .pf-red .btn-light:hover { background: var(--ochre); border-color: var(--ochre); color: #000; }
.page-hero .btn-ghost, .reader-hero .btn-ghost, .pf-red .btn-ghost { color: #fff; border-color: #fff; }
.page-hero .btn-ghost:hover, .reader-hero .btn-ghost:hover, .pf-red .btn-ghost:hover { background: #fff; color: #000; border-color: #fff; }
.header-cta .btn-light, .mm-cta .btn-light { background: var(--red); color: #fff; border-color: var(--red); }
.header-cta .btn-light:hover, .mm-cta .btn-light:hover { background: #000; color: var(--poster); border-color: #000; }
.header-cta .btn-ghost, .mm-cta .btn-ghost { color: #000; border-color: #000; }
.header-cta .btn-ghost:hover, .mm-cta .btn-ghost:hover { background: #000; color: var(--poster); }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: 15.5px; }
.btn .icon { width: 1.15em; height: 1.15em; }

/* ----------------------------------------------------------------- header */
.site-header, .has-overlay-header .site-header, .has-overlay-header .site-header.is-scrolled { position: sticky; top: 0; left: auto; right: auto; height: var(--header-h); background: var(--poster); color: #000; border-bottom: var(--rule) solid #000; backdrop-filter: none; -webkit-backdrop-filter: none; transition: none; }
.has-overlay-header .flash { padding-top: 14px; }
.header-inner { gap: 24px; }
.brand { color: inherit; flex: 0 0 auto; }
.logo { height: 40px; width: auto; }
.nav { flex: 1 1 auto; gap: 4px; margin-left: 8px; }
.nav-top { font: 600 16.5px/1 var(--text); color: #000; padding: 10px 12px; letter-spacing: 0; display: flex; align-items: center; gap: 8px; }
.nav-top::after { width: 8px; height: 8px; border-width: 2.5px; margin-left: 0; opacity: 1; transform: translateY(-3px) rotate(45deg); }
.nav-top:hover, .nav-group:hover .nav-top, .nav-group.is-open .nav-top, .nav-group:focus-within .nav-top { color: var(--red); }
.nav-menu { top: 100%; min-width: 290px; background: var(--poster); color: #000; border: var(--rule) solid #000; padding: 10px 0; transform: none; transition: none; }
.nav-menu a { padding: 9px 20px; font: 500 16px/1.35 var(--text); color: #000; }
.nav-menu a:hover, .nav-menu a:focus-visible { background: #000; color: var(--poster); outline-offset: -3px; }
.header-cta { margin-left: auto; gap: 20px; }
.nav-login { font: 600 16.5px/1 var(--text); color: #000; }
.nav-login:hover { color: var(--red); text-decoration: none; }
.burger { width: 44px; height: 44px; border: 2px solid #000; border-radius: 0; color: #000; }
.burger span { left: 10px; right: 10px; height: 3px; background: #000; transition: none; }
.burger span:first-child { top: 14px; }
.burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child, .burger[aria-expanded="true"] span:last-child { top: 19px; }
.mobile-menu { background: var(--poster); color: #000; border-bottom: var(--rule) solid #000; padding: 24px 0 32px; inset: var(--header-h) 0 auto 0; max-height: calc(100vh - var(--header-h)); }
.mm-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.mm-group { padding: 0; border: 0; }
.mm-group .eyebrow { font: 800 20px/1 var(--display); color: var(--red); letter-spacing: 0; text-transform: none; margin-bottom: 10px; }
.mm-group a { font: 400 17px/1.4 var(--text); padding: 6px 0; color: #000; }
.mm-cta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* --------------------------------------------------------------- sections */
.section { padding: clamp(80px, 9vw, 128px) 0; }
.section.light { background: var(--poster); color: #000; }
.section.tight { padding: clamp(48px, 6vw, 84px) 0; }
.section.light + .section.light { border-top: var(--rule) solid #000; }
.section-head { gap: 20px; margin-bottom: clamp(44px, 6vw, 88px); max-width: 980px; }
.section-head p, .light .section-head p { font-size: 20px; line-height: 1.45; color: inherit; max-width: 46ch; }
.flash { background: var(--ochre); color: #000; border-bottom: var(--rule) solid #000; font-weight: 600; font-size: 16px; }
.flash-error { background: var(--red); color: #fff; }

/* -------------------------------------------------------------- page hero */
.page-hero { background: var(--red); color: #fff; border-bottom: var(--rule) solid #000; padding: clamp(56px, 7vw, 104px) 0 clamp(44px, 5vw, 72px); overflow: hidden; position: relative; }
.page-hero .eyebrow { color: #fff; }
.page-hero h1 { font-size: clamp(44px, 6.6vw, 108px); font-weight: 900; line-height: .9; letter-spacing: -.035em; margin: 18px 0 24px; max-width: 12em; color: #fff; text-wrap: balance; }
.page-hero .lead { color: #fff; }
/* With a photograph: the picture as a red duotone band above the title field, as the duotone plates of the landing page. */
.page-hero.has-img { padding: 0; }
.page-hero.has-img::before { content: ""; display: block; position: relative; inset: auto; height: clamp(240px, 34vw, 460px); background: var(--hero-img) center/cover; filter: grayscale(1) contrast(1.15) brightness(1.05); }
.page-hero.has-img::after { position: absolute; left: 0; right: 0; top: 0; bottom: auto; height: clamp(240px, 34vw, 460px); background: var(--red); mix-blend-mode: multiply; }
.page-hero.has-img .wrap { padding-top: 44px; padding-bottom: clamp(44px, 5vw, 72px); }

/* ------------------------------------------------------- split, checks, cards */
.split-body p, .light .split-body p { color: inherit; font-size: 18px; }
.split-media .credit { position: static; display: block; margin-top: 10px; }
.checks { gap: 16px; margin: 32px 0; max-width: 60ch; }
.checks li { grid-template-columns: 14px 1fr; gap: 20px; }
.checks .icon, .light .checks .icon { display: none; }
.checks li::before { content: ""; width: 14px; height: 14px; margin-top: .42em; background: var(--red); }
.section:not(.light) .checks li::before { background: var(--ochre); }
.checks b { font-weight: 700; }
.cards-3 { border: 0; gap: 56px 72px; }
.aud { padding: 0; border: 0; background: transparent; }
.aud:hover { background: transparent; color: inherit; }
.aud:hover p, .aud:hover li, .aud p { color: inherit; }
.aud .icon, .aud li .icon { display: none; }
.aud h3 { font-size: 30px; margin-bottom: 16px; }
.aud p { font-size: 17px; }
.aud ul { border-top: 0; padding-top: 0; margin-top: 20px; gap: 8px; color: inherit; font-size: 16px; font-weight: 600; }
.aud li { display: block; position: relative; padding-left: 28px; white-space: normal; line-height: 1.35; }
.aud li::before { content: ""; position: absolute; left: 0; top: .28em; width: 13px; height: 13px; border-radius: 50%; background: currentColor; }
.steps { gap: 64px; background: none; border: 0; }
.step { background: transparent; border-top: 6px solid currentColor; padding: 22px 0 0; }
.step-no { margin-bottom: 18px; display: block; }
.step .icon { display: none; }
.step-num b { width: auto; height: auto; border-radius: 0; background: none; color: inherit; font: 900 96px/.8 var(--display); letter-spacing: -.04em; }
.step h3 { font-size: 26px; margin-bottom: 12px; }
.step p { color: inherit; font-size: 17px; max-width: 40ch; }
.week { border: var(--rule) solid currentColor; }
.week > div { border-right: 1.5px solid var(--line); }
.week .d { font: 600 14px/1 var(--text); letter-spacing: 0; color: var(--concrete); }
.week b { font: 800 19px/1.2 var(--display); }
.week span { color: inherit; }
.week .on { background: var(--ochre); color: #000; }
.features { gap: 56px 72px; }
.feature .icon { display: none; }
.feature h3 { font-size: 30px; margin-bottom: 16px; }
.feature p, .light .feature p { color: inherit; font-size: 16.5px; }
.stats { border: 0; margin: 0 0 80px; gap: 40px; }
.stats div { border-top: 6px solid currentColor; padding: 20px 0 0; }
.stats b { font: 900 clamp(64px, 8.4vw, 132px)/.88 var(--display); letter-spacing: -.045em; color: inherit; margin-bottom: 10px; }
.stats div:nth-child(2) b { color: var(--red); }
.section:not(.light) .stats div:nth-child(2) b { color: var(--ochre); }
.stats span { font: 600 17px/1.4 var(--text); letter-spacing: 0; text-transform: none; color: inherit; }
.cert-shot img, .light .cert-shot img { border: var(--rule) solid #000; box-shadow: none; }
.kv dt { font: 600 14px/1.9 var(--text); letter-spacing: 0; text-transform: none; color: var(--concrete); }
.notice { border-left: 6px solid #000; background: var(--paper-2); color: #000; font-size: 17px; }
.notice.warn { border-color: var(--red); }
.notice.important { background: var(--ochre); border: 0; border-left: 6px solid #000; color: #000; }
.notice.important strong { color: #000; }
.contact-faq { background: transparent; border: var(--rule) solid #000; }
.contact-faq h3 { font: 800 26px/1.1 var(--display); }
.contact-faq p { color: inherit; }
.disclaimer, .section:not(.light) .disclaimer { margin-top: 72px; padding: 24px 0 0; border: 0; border-top: var(--rule) solid currentColor; max-width: 80ch; font-size: 15.5px; color: inherit; }

/* ------------------------------------------------------------- curriculum */
.unit-group { margin-bottom: 72px; }
.unit-group-head { border-bottom: var(--rule) solid currentColor; padding-bottom: 14px; }
.unit-group-head h3 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 900; letter-spacing: -.02em; }
.unit-row { border-bottom: 1.5px solid var(--paper-line); padding: 24px 0; }
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), -20px 0 0 var(--red); }
.unit-row .no { font: 900 17px/1 var(--display); letter-spacing: 0; color: var(--red); }
.unit-row[style*="align-items:start"] .no { height: 1.5rem; padding-top: 0; }
.unit-row h4 { font-size: 24px; letter-spacing: -.01em; }
.unit-row p { color: inherit; font-size: 16px; }
.unit-row p em { color: var(--paper-muted); }
.unit-more, .sample-pdf { color: var(--paper-muted); font-weight: 600; }
.unit-more:hover, .sample-pdf:hover { color: var(--red); }
.topic-badges li { border-radius: 0; border: 1.5px solid #000; background: transparent; color: #000; font-weight: 600; font-size: 13px; }
.spot-box { background: transparent; border: 0; border-left: 4px solid var(--red); padding: 4px 0 4px 16px; }
.spot-label { font: 600 14px/1 var(--text); letter-spacing: 0; text-transform: none; color: var(--red); }
.spot span { color: var(--paper-muted); }
.spot .avatar { aspect-ratio: 1; }
.sample-cta { background: var(--red); color: #fff; }
.sample-cta:hover { background: #000; }
.sample-cta .icon, .sample-cta span, .sample-cta b { color: #fff; }
.unit-row .pk { font: 600 14px/1.4 var(--text); letter-spacing: 0; text-transform: none; color: var(--paper-muted); }
.unit-pager { border-top: var(--rule) solid #000; }
.unit-pager a { font: 800 20px/1.2 var(--display); }
.unit-pager a span { font: 600 14px/1.8 var(--text); letter-spacing: 0; text-transform: none; color: var(--red); }

/* ------------------------------------------------------------ researchers */
.researchers { gap: 64px 44px; }
.avatar { width: 156px; aspect-ratio: 1; border-radius: 50%; filter: grayscale(1) contrast(1.35) brightness(1.05); background: var(--poster); }
.avatar-mono { font: 900 48px/1 var(--display); color: #000; border: var(--rule) solid #000; background: var(--poster); letter-spacing: -.02em; }
.section:not(.light) .avatar-mono, .pf-black .avatar-mono { color: var(--poster); border-color: var(--poster); background: #000; }
.researcher-body { border-top: 0; padding-top: 22px; margin-top: 0; }
.researcher h3 { font-size: 24px; margin-bottom: 8px; }
.researcher-inst { font: 600 14.5px/1.35 var(--text); color: var(--paper-muted); margin-bottom: 10px; }
.section:not(.light) .researcher-inst, .pf-black .researcher-inst { color: var(--concrete); }
.researcher p { font-size: 15.5px; line-height: 1.45; color: inherit; }
.researcher-body .eyebrow { font-size: 14px; }
.researcher:hover h3 { text-decoration-thickness: 3px; text-decoration-color: var(--red); text-underline-offset: 5px; }
.section:not(.light) .researcher:hover h3, .pf-black .researcher:hover h3 { text-decoration-color: var(--ochre); }

/* --------------------------------------------------------------- packages */
/* Three flat fields: an outline, a filled field, and the ochre field of the third masterclass. On the black ground the
   outline and the filled field are Poster White, on a Poster White ground they are black. */
.packages { gap: 28px; align-items: stretch; }
.package { display: flex; flex-direction: column; padding: 36px 32px; border: var(--rule) solid var(--poster); background: transparent; color: inherit; }
.package.is-featured { background: var(--poster); color: #000; border-color: var(--poster); }
.package:nth-child(3) { background: var(--ochre); color: #000; border-color: var(--ochre); }
.light .package, .pf-white .package { border-color: #000; }
.light .package.is-featured, .pf-white .package.is-featured { background: #000; color: var(--poster); border-color: #000; }
.light .package:nth-child(3), .pf-white .package:nth-child(3) { background: var(--ochre); color: #000; border-color: var(--ochre); }
.package-flag { top: -3px; right: -3px; background: var(--red); color: #fff; font: 600 14px/1 var(--text); letter-spacing: 0; text-transform: none; padding: 8px 12px; }
.package h2, .package h3 { order: 1; font-size: 30px; line-height: 1.02; letter-spacing: -.015em; margin: 0 0 8px; min-height: 0; display: block; }
.package > .eyebrow:not(.package-units-label) { order: 2; font: 600 16px/1.4 var(--text); color: inherit; margin: 0 0 20px; }
.fee { order: 3; border: 0; padding: 0; margin: 0 0 22px; gap: 4px 18px; align-items: baseline; }
.fee-label { font: 600 14px/1 var(--text); letter-spacing: 0; text-transform: none; color: inherit; margin-bottom: 14px; }
.fee-now { font: 900 96px/1 var(--display); letter-spacing: -.045em; color: inherit; }
.fee-cents { font-size: .4em; vertical-align: .9em; }
.fee-was { font: 800 32px/1 var(--display); color: inherit; text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 4px; }
.package:nth-child(3) .fee-was { text-decoration-color: #000; }
.package-note { order: 4; color: inherit; font-size: 16px; min-height: 0; margin: 0 0 6px; }
.package-incl { order: 5; margin: 6px 0 30px; gap: 8px; font-size: 15.5px; color: inherit; }
.package-incl li { position: relative; padding-left: 22px; }
.package-incl li::before { content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; background: currentColor; color: inherit; }
.package.is-featured .package-incl li::before { background: var(--red); }
.package-units-label { order: 6; border-top: var(--rule) solid currentColor; margin: 0 0 12px; padding-top: 22px; color: inherit; font: 600 15px/1.3 var(--text); }
.package-units { order: 7; gap: 0; margin-bottom: 26px; font-size: 15.5px; }
.package-units li a { grid-template-columns: 32px 1fr 14px; border: 0; border-bottom: 1.5px solid; border-color: color-mix(in srgb, currentColor 28%, transparent); background: none; padding: 8px 0; font-weight: 600; line-height: 1.3; transition: none; }
.package-units li a::after { color: var(--red); }
.package-units li a:hover, .package-units li a:focus-visible { background: transparent; border-color: currentColor; }
.package-units li a > span { font: 900 17px/1.5 var(--display); color: var(--red); }
.package:nth-child(3) .package-units li a > span, .package:nth-child(3) .package-units li a::after { color: #000; }
.package-units li.gap { margin-top: 18px; }
.topic-badge { font: 600 12px/1 var(--text); letter-spacing: .04em; color: inherit; border: 1.5px solid currentColor; padding: 2px 6px; }
.fee-aid { order: 8; margin: 0 0 14px; color: inherit; font-weight: 600; font-size: 15px; }
.fee-aid span { color: var(--red); }
.fee-aid:hover { color: inherit; text-decoration: underline; }
.package > .btn { order: 9; margin-top: auto; }
.package.is-featured .btn-light, .light .package.is-featured .btn-light, .pf-white .package.is-featured .btn-light { background: var(--red); color: #fff; border-color: var(--red); }
.package.is-featured .btn-light:hover { background: #000; color: var(--poster); border-color: #000; }
.light .package.is-featured .btn-light:hover, .pf-white .package.is-featured .btn-light:hover { background: var(--poster); color: #000; border-color: var(--poster); }
.package:nth-child(3) .btn-ghost { color: #000; border-color: #000; }
.package:nth-child(3) .btn-ghost:hover { background: #000; color: var(--poster); border-color: #000; }
.fee-footnote { margin-top: 32px; font-size: 15.5px; color: inherit; text-align: left; max-width: 80ch; }
.aid-note { border: var(--rule) solid var(--ochre); background: transparent; }
.aid-note h3 { font-size: 22px; }
.aid-note p { color: inherit; }
.aid-note.is-granted { border-color: var(--ok); background: transparent; }

/* ----------------------------------------------------------- testimonials */
.testimonials { gap: 56px; }
.testimonial, .section:not(.light) .testimonial { border: 0; border-top: 6px solid currentColor; background: transparent; padding: 28px 0 0; }
.testimonial blockquote { font: 400 20px/1.5 var(--text); margin: 0 0 20px; }
.testimonial blockquote::before { content: none; }
.testimonial figcaption, .section:not(.light) .testimonial figcaption { border-top: 0; padding-top: 0; font: 600 15.5px/1.4 var(--text); color: inherit; gap: 16px; }
.t-avatar { width: 56px; height: 56px; }
.testimonial figcaption .t-avatar-mono, .section:not(.light) .testimonial figcaption .t-avatar-mono { background: #000; color: var(--poster); font: 900 18px/1 var(--display); letter-spacing: 0; }
.section:not(.light) .testimonial figcaption .t-avatar-mono, .pf-black .testimonial figcaption .t-avatar-mono, .pf-red .testimonial figcaption .t-avatar-mono { background: var(--poster); color: #000; }
.testimonial figcaption span, .testimonial .t-date, .section:not(.light) .testimonial figcaption span, .section:not(.light) .testimonial .t-date { color: inherit; font-weight: 400; }

/* ------------------------------------------------------------------- blog */
.posts { gap: 44px; }
.post-card-img { aspect-ratio: 4 / 3; background: var(--red); margin-bottom: 20px; }
.post-card:hover .post-card-img img { transform: none; }
.post-card .eyebrow { font: 600 14.5px/1.4 var(--text); color: var(--paper-muted); }
.section:not(.light) .post-card .eyebrow, .pf-black .post-card .eyebrow { color: var(--concrete); }
.post-card h3 { font-size: 26px; line-height: 1.08; margin: 8px 0 10px; }
.post-card p, .section:not(.light) .post-card p { font-size: 16px; color: inherit; }
.post-card:hover h3 { text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.pager a, .pager span { border: 2px solid currentColor; color: inherit; }
.pager .is-current { background: #000; border-color: #000; color: var(--poster); }
.topic-links a, .section:not(.light) .topic-links a { border-radius: 0; border: 1.5px solid currentColor; font-weight: 600; }
.post-meta { border-bottom: var(--rule) solid currentColor; }
.prose .citation .cite-doi { color: var(--red); }
.prose .citation .cite-note { color: var(--paper-muted); }

/* -------------------------------------------------------------------- faq */
.faq, .light .faq { border-top: var(--rule) solid currentColor; }
.faq details, .light .faq details { border-bottom: var(--rule) solid currentColor; }
.faq summary { font: 800 22px/1.2 var(--display); padding: 24px 56px 24px 0; letter-spacing: -.01em; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; background: currentColor; transform: none; transition: none; font: 0/0 a; }
.faq summary::before { width: 24px; height: 4px; margin-top: -2px; }
.faq summary::after { width: 4px; height: 24px; margin-top: -12px; right: 16px; }
.faq details[open] summary::after { display: none; }
.faq details[open] summary::before { background: var(--red); }
.section:not(.light) .faq details[open] summary::before { background: var(--ochre); }
.faq summary:hover { color: var(--red); }
.section:not(.light) .faq summary:hover { color: var(--ochre); }
.faq-a, .light .faq-a { color: inherit; font-size: 17px; max-width: 62ch; padding: 0 0 26px; }

/* ------------------------------------------------------------- newsletter */
.newsletter { background: var(--red); color: #fff; border: 0; padding: clamp(40px, 6vw, 96px) clamp(24px, 5vw, 72px); gap: 36px 72px; align-items: end; }
.newsletter h2 { font-size: clamp(44px, 5.4vw, 84px); font-weight: 900; letter-spacing: -.035em; line-height: .9; margin-bottom: 20px; color: #fff; }
.newsletter p { color: #fff; max-width: 50ch; font-size: 18px; }
.newsletter-form input[type=email] { height: 58px; border: var(--rule) solid #000; border-right: 0; background: var(--poster); color: #000; font: 400 17px/1.2 var(--text); padding: 10px 16px; border-radius: 0; }
.newsletter-form input[type=email]::placeholder { color: #6b6b66; }
.newsletter-form input[type=email]:focus { border-color: #000; outline: 3px solid #fff; outline-offset: 2px; }
.newsletter-form .btn { height: 58px; background: #000; color: var(--poster); border: var(--rule) solid #000; }
.newsletter-form .btn:hover { background: var(--poster); color: #000; border-color: #000; }
.cta-final h2 { font-weight: 900; }

/* ----------------------------------------------------------------- footer */
.site-footer { background: var(--poster); color: #000; border-top: var(--rule) solid #000; padding: 80px 0 0; }
.footer-grid { grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); gap: 48px 36px; }
.logo-footer { height: 56px; margin-bottom: 22px; }
.footer-brand p { color: #000; font-size: 16.5px; max-width: 48ch; }
.footer-contact { color: #000; font-size: 15.5px; grid-template-columns: 70px 1fr; }
.footer-contact dt { font: 600 13px/2.2 var(--text); letter-spacing: .02em; text-transform: uppercase; color: var(--paper-muted); }
.footer-contact dd, .footer-contact a { color: #000; }
.footer-contact a:hover { color: #000; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.footer-col { gap: 8px; }
.footer-col .eyebrow, .site-footer .eyebrow { font: 800 19px/1 var(--display); color: #000; text-transform: none; letter-spacing: 0; margin-bottom: 14px; }
.footer-col a { font-size: 16px; color: #000; }
.footer-col a:hover { color: #000; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.footer-bottom { margin-top: 48px; border-top: var(--rule) solid #000; color: #000; font-size: 15px; }
.footer-bottom a { color: #000; }
.footer-bottom a:hover { color: #000; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }

/* ------------------------------------------------------------------ forms */
.auth-card { background: var(--poster); color: #000; max-width: 500px; }
.auth-card h1 { font-size: 40px; letter-spacing: -.025em; margin: 10px 0 14px; }
.auth-card p { color: inherit; }
.field label { font: 600 16px/1.3 var(--text); letter-spacing: 0; text-transform: none; color: #000; margin-bottom: 8px; }
.field input, .field select, .field textarea { border: var(--rule) solid #000; background: #fff; color: #000; border-radius: 0; height: 54px; font-size: 17px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #000; outline: 3px solid var(--red); outline-offset: 2px; }
.field input[disabled] { background: var(--paper-2); color: var(--paper-muted); }
.field .hint { color: var(--paper-muted); }
.checkline input, .upgrade-opt input, .aid-form .aid-radios input { accent-color: var(--red); }
.pw-toggle, .link-button, .auth-card .field .hint a { color: var(--red); font-weight: 600; }
.auth-switch { border-top: var(--rule) solid #000; }
.cp-list { border: var(--rule) solid #000; box-shadow: none; }
.cp-list li.is-active, .cp-list li[role=option]:hover { background: var(--paper-2); }
.verify-form input { background: var(--poster); border: var(--rule) solid var(--poster); color: #000; font: 600 17px/1 var(--text); letter-spacing: .1em; height: 58px; }
.verify-form input:focus { border-color: var(--poster); outline: 3px solid var(--ochre); outline-offset: 2px; }
.verify-form .btn { height: 58px; background: var(--red); color: #fff; border-color: var(--red); }
.verify-form .btn:hover { background: var(--poster); color: #000; border-color: var(--poster); }
.light .verify-form input { border-color: #000; }
.credential { background: var(--poster); color: #000; border: 0; border-top: 12px solid var(--red); }
.credential .eyebrow { color: var(--red); }
.credential h1 { font-size: clamp(36px, 5vw, 64px); }
.credential .valid { color: var(--ok); border: 2px solid var(--ok); font: 600 14px/1 var(--text); letter-spacing: 0; text-transform: none; }
.credential .facts { border-top: var(--rule) solid #000; border-bottom: var(--rule) solid #000; }
.credential .facts b { font-weight: 700; color: #000; }
.credential th { font: 600 14px/1 var(--text); letter-spacing: 0; text-transform: none; color: var(--paper-muted); border-bottom: var(--rule) solid #000; }
.credential td { border-color: var(--paper-line); }
.credential td:first-child { font: 900 15px/1 var(--display); color: var(--red); }
.copyline input { background: var(--poster); border: var(--rule) solid var(--poster); color: #000; font: 400 14px/1 var(--mono-real); }
.doc-card { background: transparent; border: var(--rule) solid currentColor; }
.doc-card img { border: 0; }
.doc-card p { color: inherit; }
.coupon-form input { border: var(--rule) solid #000; font: 600 15px/1.2 var(--text); letter-spacing: .06em; }
.coupon-code { color: var(--paper-muted); }
.tag-chip { background: #000; color: var(--poster); }
.rating-opt span { border: 2px solid #000; }
.rating-opt:hover span { border-color: var(--red); }
.rating-opt input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.rating-opt input:checked + span small { color: #fff; }
.rating-opt b { font: 900 26px/1 var(--display); }
.upgrade-opt { border: 2px solid #000; }
.upgrade-opt:has(input:checked) { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.upgrade-opt b { font: 800 20px/1.2 var(--display); }
.upgrade-badge { background: var(--red); font: 700 11px/1 var(--text); letter-spacing: .04em; }
.upgrade-price strong { font: 900 24px/1 var(--display); }

/* ---------------------------------------------------------------- account */
.account-head p { color: var(--concrete); }
.tabs { box-shadow: inset 0 -1px 0 var(--line); }
.tabs a { font: 600 15px/1 var(--text); letter-spacing: 0; text-transform: none; color: var(--concrete); border-bottom: 4px solid transparent; }
.tabs a.is-active, .tabs a:hover { color: var(--poster); border-color: var(--ochre); }
.account-body .wrap > .notice { background: transparent; color: var(--poster); border: var(--rule) solid var(--poster); border-left: 6px solid var(--ochre); }
.account-body .wrap > .notice a, .account-body .wrap > .notice .link-button { color: var(--ochre); }
.account-body .wrap > .notice-bad { border-left-color: var(--red); }
.save-ok { color: #7fd3a1; }
.save-bad { color: #ff8a80; }
.dialog { background: var(--poster); color: #000; border: var(--rule) solid #000; border-top: 12px solid var(--red); box-shadow: none; }
.dialog h2 { font: 800 28px/1.1 var(--display); }
.dialog p { color: inherit; }
.dialog-back { background: rgba(0, 0, 0, .7); }
.progress-strip { border: var(--rule) solid var(--poster); }
.progress-strip div { border-right: 1.5px solid var(--line); }
.progress-strip b { font: 900 34px/1 var(--display); }
.progress-strip span { font: 600 13px/1.3 var(--text); letter-spacing: 0; text-transform: none; color: var(--concrete); }
.bar { background: var(--line); height: 6px; }
.bar i { background: var(--ochre); }
.ucard { background: transparent; border: var(--rule) solid var(--line); }
.ucard.is-open { background: transparent; border-color: var(--ochre); }
.ucard-no { font: 900 40px/1 var(--display); }
.ucard-no small { font: 600 12px/1 var(--text); letter-spacing: .04em; color: var(--concrete); }
.ucard h3 { font-size: 24px; }
.ucard-meta, .ucard-score span, .ucard-more { color: var(--concrete); }
.ucard-more:hover { color: var(--ochre); }
.pill { font: 600 13px/1 var(--text); letter-spacing: 0; text-transform: none; border: 2px solid currentColor; }
.verdict { font: 800 15px/1 var(--display); letter-spacing: 0; text-transform: none; }
.verdict.bad { background: var(--red); }
.exam-score { font: 900 60px/1 var(--display); }
.panel { background: transparent; border: var(--rule) solid var(--poster); }
.panel p { color: var(--concrete); }
.panel.is-key { border-color: var(--ochre); }
.paper-card { background: var(--poster); color: #000; }

/* ------------------------------------------------------------------- quiz */
.quiz-head { border-bottom: var(--rule) solid var(--poster); }
.quiz-head p { color: var(--concrete); }
.q { background: transparent; border: var(--rule) solid var(--line); }
.q-no { font: 600 14px/1 var(--text); letter-spacing: 0; text-transform: none; color: var(--concrete); }
.q-text { font: 600 22px/1.35 var(--text); }
.opt { border: 2px solid var(--line); }
.opt:hover { border-color: var(--poster); }
.opt .k { border: 2px solid var(--line); font: 800 14px/1 var(--display); }
.opt:has(input:checked) { border-color: var(--ochre); background: rgba(231, 169, 18, .12); }
.opt:has(input:checked) .k { background: var(--ochre); color: #000; border-color: var(--ochre); }
.opt:has(input:focus-visible) { outline-color: var(--ochre); }
.explain { background: transparent; border-left: 4px solid var(--ochre); color: var(--poster); }
.explain b { font: 600 13px/1 var(--text); letter-spacing: 0; text-transform: none; color: var(--concrete); }
.quiz-foot { background: rgba(0, 0, 0, .94); border-top: var(--rule) solid var(--poster); }
.quiz-foot .state { font: 600 14px/1.4 var(--text); letter-spacing: 0; text-transform: none; color: var(--concrete); }
.scorebox { border: var(--rule) solid var(--poster); }
.scorebox .big { font: 900 72px/1 var(--display); }
.timer { border: var(--rule) solid var(--poster); font: 600 14px/1 var(--text); letter-spacing: 0; text-transform: none; }
.timer b { font: 900 28px/1 var(--display); letter-spacing: 0; }
.timer.is-low { border-color: var(--red); color: #ff9c92; }
.breakdown td, .breakdown th { border-color: var(--line); }
.breakdown th { font: 600 13px/1 var(--text); letter-spacing: 0; text-transform: none; color: var(--concrete); }

/* ------------------------------------------------------------ unit reader */
.reader-hero { background: var(--red); border-bottom: var(--rule) solid #000; }
.reader-hero img.bg { filter: grayscale(1) contrast(1.15) brightness(1.05); mix-blend-mode: multiply; }
.reader-hero .wrap { padding-top: 80px; padding-bottom: 64px; }
.reader-hero .eyebrow { color: #fff; }
.reader-hero h1 { color: #fff; }
.reader-hero .sub { font: 400 20px/1.45 var(--text); color: #fff; }
.reader-hero .credit { color: rgba(255, 255, 255, .85); }
.reader { background: var(--poster); color: #000; }
.toc { font-size: 15px; }
.toc .eyebrow { font: 800 16px/1 var(--display); color: #000; }
.toc a { border-left: 3px solid var(--paper-line); color: var(--paper-muted); }
.toc a:hover, .toc a.is-active { color: #000; border-color: var(--red); }
.unit-text { font-size: 18px; line-height: 1.6; }
.unit-text h2 { font-size: 40px; font-weight: 900; letter-spacing: -.025em; border-bottom: var(--rule) solid #000; padding-bottom: .3em; }
.unit-text h3 { font-size: 26px; }
.unit-text h4 { font: 700 18px/1.3 var(--text); font-style: normal; }
.unit-text .secno { font: 900 .6em/1 var(--display); color: var(--red); }
.unit-text code { font: 400 .88em var(--mono-real); background: var(--paper-2); }
.unit-text .fn, .unit-text figcaption { color: var(--paper-muted); }
.unit-text table { border: var(--rule) solid #000; }
.unit-text th { border-bottom: var(--rule) solid #000; }
.box { background: transparent; border: var(--rule) solid #000; }
.box-kind { font: 600 14px/1.2 var(--text); letter-spacing: 0; text-transform: none; }
.box-title { font: 700 17px/1.3 var(--text); }
.box-keyequation { --bx: #d3271b; --bx-l: #fbe9e7; border: var(--rule) solid var(--bx); }
.box-law, .box-laws { --bx: #000000; --bx-l: #ecece8; border: var(--rule) solid var(--bx); }
.box-law .box-head, .box-laws .box-head { color: var(--poster); }
.box-derivation { --bx: #000000; --bx-l: #ecece8; border: var(--rule) solid var(--bx); background: #fff; }
.box-derivation .box-head { border-bottom-width: var(--rule); }
.box-example { --bx: #8a6200; --bx-l: #fbf3df; border: 0; border-top: 6px solid var(--ochre); }
.box-example .box-head { color: #000; }
.box-excursion { --bx: #5a5a56; --bx-l: #efefeb; border-left: 6px solid #000; }
.box-excursion .box-head { color: #000; }
.box-excursion .box-title { font-style: normal; }
.box-research { --bx: #7a1a12; --bx-l: #f6ecea; border: var(--rule) solid var(--bx); }
.box-research .box-kind, .box-research .box-inst { color: #f1c9c4; }
.box-research .box-name { font: 800 26px/1.1 var(--display); letter-spacing: -.015em; }
.box-research .box-inst { font: 400 17px/1.3 var(--text); font-style: normal; }
.box-keypoints { --bx: #b8860b; --bx-l: #fbf3df; border: 0; border-top: 6px solid var(--ochre); border-bottom: var(--rule) solid var(--ochre); }
.box-keypoints .box-kind, .box-questions .box-kind { color: #8a6200; }
.box-check { --bx: #d3271b; --bx-l: #fbe9e7; border: var(--rule) solid var(--bx); }
.box-check .check-result { border-top-color: rgba(211, 39, 27, .3); }
.box-check .opt { border: 2px solid rgba(0, 0, 0, .2); }
.box-interactive { --bx: #000000; --bx-l: #ecece8; border: var(--rule) solid var(--bx); }
.ia-slider input[type=range] { accent-color: #000; }
.ia-btn { border: 2px solid #000; font-weight: 600; }
.ia-btn.on { background: #000; border-color: #000; }
.paperlink { border-top: 1.5px solid var(--paper-line); }
.paperlink span { font: 600 13px/1 var(--text); letter-spacing: 0; text-transform: none; color: var(--paper-muted); }
.reader-end { background: #000; color: var(--poster); }
.reader-end h3 { font-size: 28px; }
.preview-fade::after { background: linear-gradient(180deg, rgba(244, 244, 241, 0) 0%, var(--poster) 88%); }
.lit-list li { border-bottom: 1.5px solid var(--paper-line); }
.lit-list a.t { font: 800 22px/1.2 var(--display); letter-spacing: -.01em; }
.lit-list .m { color: var(--paper-muted); }
.q-figure img { filter: invert(1); mix-blend-mode: screen; }

/* ------------------------------------------------------- prose and pages */
.prose { font-size: 18px; line-height: 1.6; }
.prose h2 { font-size: 36px; font-weight: 900; letter-spacing: -.025em; }
.prose h3 { font-size: 24px; }
.prose blockquote { font: 400 22px/1.45 var(--text); border-left: 6px solid var(--red); }
.legal-updated { font: 600 14px/1.4 var(--text); letter-spacing: 0; text-transform: none; color: var(--paper-muted); }
.legal-box { background: transparent; border: var(--rule) solid #000; }
.prose th { font: 700 15px/1.3 var(--text); letter-spacing: 0; text-transform: none; border-bottom: var(--rule) solid currentColor; }
.prose td { border-color: var(--paper-line); }
.stack-table tr { border-color: var(--paper-line); }
.stack-table td::before { font: 600 13px/1.9 var(--text); letter-spacing: 0; text-transform: none; color: var(--paper-muted); }
.resource { border-color: var(--paper-line); }
.resource:hover { background: rgba(0, 0, 0, .04); }
.resource-name { font: 800 22px/1.2 var(--display); letter-spacing: -.01em; }
.resource p { color: inherit; }
.resource-host { color: var(--red); font-weight: 600; }
.resource-note { color: var(--paper-muted); }
.resource-note .icon { color: var(--red); }
.eq-card { background: transparent; border: var(--rule) solid #000; }
.eq-card h4 { font: 700 17px/1.3 var(--text); }
.eq-card p { color: var(--paper-muted); }
.eq-toc { border: var(--rule) solid #000; }
.eq-toc a span { font: 900 14px/1 var(--display); color: var(--red); }
.pathway-map td, .pathway-map th { border-color: var(--paper-line); }
.aid-body > p { color: inherit; }
.aid-contact { color: var(--concrete) !important; }
.aid-apply-aside { border-top: 6px solid #000; color: var(--paper-muted); }
.aid-apply-aside h3 { color: #000; }
.aid-apply-aside a { color: var(--red); }
.aid-form fieldset { background: transparent; border: var(--rule) solid #000; }
.aid-form legend { font: 800 26px/1.2 var(--display); }
.aid-form legend span { background: var(--red); color: #fff; font: 800 16px/34px var(--text); border-radius: 0; }
.aid-location { background: var(--paper-2); border: 0; }
.aid-location em { color: var(--paper-muted); }
.aid-err { color: var(--bad); }
.aid-submit span, .aid-wrong summary { color: var(--paper-muted); }
.geo-test-badge { box-shadow: none; border: 2px solid #000; }

/* ----------------------------------------------------------------- cookie */
.cookie { background: var(--poster); color: #000; border: var(--rule) solid #000; box-shadow: none; font-size: 15px; }
.cookie p { color: #000; }
.cookie .btn-ghost { color: #000; border-color: #000; }
.cookie .btn-light { background: #000; color: var(--poster); border-color: #000; }

/* ----------------------------------------------------------------- reveal */
.reveal { opacity: 1; transform: none; transition: none; }

/* ================================================================ home page */
/* The landing page (theme/home.php): Rubin's vase hero, then full-width flat poster fields whose grounds alternate
   (Poster White, black, Poster White, red, ...), each with one large drawn perceptual figure. Every figure is drawn
   with its compared parts equal. */
.pf { position: relative; padding: 128px 0; scroll-margin-top: var(--header-h); }
.pf-white { background: var(--poster); color: #000; }
.pf-black { background: #000; color: var(--poster); }
.pf-red { background: var(--red); color: #fff; }
.pf-white + .pf-white { border-top: var(--rule) solid #000; }
.h-title { font-weight: 900; font-size: clamp(46px, 6.6vw, 108px); line-height: .9; letter-spacing: -.035em; margin: 0 0 30px; text-wrap: balance; }
.h-lead { font-size: 20px; line-height: 1.45; max-width: 46ch; margin: 0; }
.poster-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 72px; align-items: end; margin-bottom: 88px; }
.ph-solo { grid-template-columns: 1fr; margin-bottom: 56px; }
.ph-solo .h-title { margin: 0; }
.poster-fig { margin: 0; }
.poster-fig svg { width: 100%; height: auto; display: block; }
.poster-fig figcaption { margin-top: 16px; font-size: 15px; font-weight: 600; line-height: 1.4; max-width: 44ch; }
.poster-head .poster-fig { justify-self: end; width: 100%; max-width: 480px; }
.h-topics .poster-head .poster-fig { max-width: 360px; }
.h-community .poster-head .poster-fig { max-width: 420px; }
.h-testimonials .poster-head { align-items: center; }
.h-testimonials .poster-fig { max-width: 400px; }
.h-more { margin: 48px 0 0; }
.h-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--red); color: inherit; }
.text-link:hover { text-decoration-thickness: 4px; }
.pf-red .text-link { text-decoration-color: currentColor; }
.pf-black .text-link { text-decoration-color: var(--ochre); }

/* figures (see design/option_7/NOTES.md: every compared part is generated from one value) */
.necker path { fill: none; stroke: var(--poster); stroke-width: 7; stroke-linejoin: round; stroke-linecap: round; }
.prox circle { fill: #000; }
.ml .shaft { fill: none; stroke: #fff; stroke-width: 11; stroke-linecap: butt; }
.ml .fin { fill: none; stroke: #000; stroke-width: 11; stroke-linecap: butt; stroke-linejoin: miter; }
.sim .k { fill: #000; } .sim .r { fill: var(--red); } .sim .o { fill: var(--ochre); }
.sim text { font-family: var(--display); font-weight: 900; font-size: 26px; text-anchor: middle; }
.sim .tp { fill: var(--poster); } .sim .tk { fill: #000; }
.hermann .g-bg { fill: var(--poster); }
.hermann rect:not(.g-bg) { fill: #000; }
.ebb .ring circle { fill: #000; }
.ebb .core circle { fill: var(--ochre); }
.kanizsa path { fill: var(--poster); }
.ponzo .rail { fill: none; stroke: #000; stroke-width: 9; stroke-linecap: butt; }
.ponzo .bar { fill: none; stroke: var(--red); stroke-width: 16; stroke-linecap: butt; }
.ehr path { fill: none; stroke: #000; stroke-width: 4.5; stroke-linecap: butt; }
.zoe .zl { fill: none; stroke: #000; stroke-width: 7; stroke-linecap: butt; }
.zoe .zh { fill: none; stroke: #000; stroke-width: 5; stroke-linecap: butt; }
.stairs path { fill: none; stroke: #000; stroke-width: 6; stroke-linejoin: round; stroke-linecap: round; }
.vase-final path { fill: var(--red); }

/* hero: Rubin's vase, figure and ground swap on request */
.h-hero { --g: var(--red); --f: #000; position: relative; display: flex; flex-direction: column; min-height: 600px; height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); max-height: 1100px; background: var(--g); color: #fff; overflow: hidden; transition: background-color .4s linear; }
.h-hero[data-swapped="true"] { --g: #000; --f: var(--red); }
.h-hero-figure { position: relative; flex: 1; min-height: 280px; }
.vase { position: absolute; bottom: -1px; left: 50%; height: calc(100% + 1px); width: auto; max-width: none; aspect-ratio: 1000 / 600; transform: translateX(-50%); cursor: pointer; display: block; }
.vase path { fill: var(--f); transition: fill .4s linear; }
.h-hero-caption { position: absolute; right: var(--gut); bottom: 26px; z-index: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; text-align: right; }
.h-caption { margin: 0; font-size: 16px; font-weight: 600; max-width: 240px; }
.cap-q { display: block; font-weight: 700; font-size: 23px; line-height: 1.15; }
.swap { background: transparent; border: 2px solid #fff; color: #fff; padding: 9px 16px; font: 600 15px/1.2 var(--text); cursor: pointer; }
.swap:hover { background: #fff; color: #000; }
.h-hero-band { position: relative; background: var(--f); transition: background-color .4s linear; margin-top: -1px; }
.h-hero-band-inner { padding: 26px var(--gut) 34px; max-width: var(--wrap); margin: 0 auto; }
.h-name-line { margin: 0 0 4px; font: 800 19px/1.2 var(--display); }
.h-hero-sub { margin: 0 0 18px; max-width: 640px; font-size: 18px; line-height: 1.45; }
.h-hero h1 { font-weight: 900; font-size: clamp(40px, 5.6vw, 92px); line-height: .95; letter-spacing: -.025em; margin: 0 0 24px; white-space: nowrap; }
.h-hero-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; }
.h-checks { display: flex; flex-wrap: wrap; gap: 10px 28px; font-weight: 600; font-size: 16px; list-style: none; margin: 0; padding: 0; }
.h-checks li { display: flex; align-items: center; gap: 8px; }
.h-checks .icon { width: 20px; height: 20px; stroke-width: 2.6; color: #fff; }

/* alumni */
.h-alumni { padding: 64px 0 72px; }
.h-alumni-title { font: 600 17px/1.4 var(--text); letter-spacing: 0; margin: 0 0 32px; }
.h-logos { display: grid; grid-template-columns: repeat(8, 1fr); gap: 36px 44px; align-items: center; list-style: none; margin: 0; padding: 0; }
.h-logos li { display: flex; align-items: center; justify-content: center; height: 44px; }
.h-logos img { max-height: 40px; height: 40px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1) brightness(0); opacity: .88; }

/* split (intro, certificate) */
.h-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 96px; align-items: center; }
.h-split-body > p { max-width: 60ch; }
.split-fig svg { max-width: 520px; }
.h-points { margin: 32px 0; padding: 0; list-style: none; display: grid; gap: 16px; max-width: 60ch; }
.h-points li { position: relative; padding-left: 34px; }
.h-points li::before { content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 14px; background: var(--red); }
.pf-black .h-points li::before { background: var(--ochre); }
.h-points b { font-weight: 700; }

/* audiences, features */
.h-cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 72px; }
.h-aud h3, .h-features h3 { font-size: 30px; letter-spacing: -.015em; margin-bottom: 16px; }
.h-aud p { font-size: 17px; }
.h-ticks { display: grid; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.h-ticks li { position: relative; padding-left: 28px; font-weight: 600; font-size: 16px; line-height: 1.35; }
.h-ticks li::before { content: ""; position: absolute; left: 0; top: .28em; width: 13px; height: 13px; border-radius: 50%; background: #000; }
.h-features p { font-size: 16.5px; }

/* how it works */
.h-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px; list-style: none; margin: 0; padding: 0; }
.h-steps li { border-top: 6px solid #000; padding-top: 22px; }
.h-step-no { display: block; font: 900 96px/.8 var(--display); letter-spacing: -.04em; color: #000; margin-bottom: 18px; }
.h-steps h3 { font-size: 26px; line-height: 1.08; margin-bottom: 12px; }
.h-steps p { font-size: 17px; margin: 0; max-width: 40ch; }

/* topics */
.h-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.g-img { aspect-ratio: 4 / 3; overflow: hidden; background: #000; margin-bottom: 22px; }
.g-img img { width: 100%; height: 100%; object-fit: cover; }
.g-units { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; margin: 0 0 8px; }
.g-units svg { width: 18px; height: 18px; }
.g-k .g-units svg { fill: #000; } .g-r .g-units svg { fill: var(--red); } .g-o .g-units svg { fill: var(--ochre); }
.h-group h3 { font-size: 30px; letter-spacing: -.015em; margin-bottom: 14px; }
.h-group > p { font-size: 16.5px; }
.h-unit-list { display: grid; gap: 0; margin: 20px 0 18px; padding: 0; list-style: none; border-top: var(--rule) solid #000; }
.h-unit-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 9px 0; border-bottom: 1.5px solid rgba(0, 0, 0, .18); font-weight: 600; font-size: 16px; line-height: 1.3; }
.h-unit-list li a { color: inherit; text-decoration: none; }
.h-unit-list li a:hover { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.h-unit-list span { font-family: var(--display); font-weight: 900; font-size: 17px; }
.g-r .h-unit-list span { color: var(--red); }
.g-o .h-unit-list span { color: var(--ochre-ink); }
.g-credit { font-size: 13.5px; line-height: 1.4; color: #55554f; }
.g-credit a { color: inherit; }

/* research (engine researcher cards on the black field) */
.h-research .researchers { gap: 64px 44px; }
.h-research .researcher { color: var(--poster); }
.h-research .researcher-body .eyebrow { color: var(--ochre); }
.h-research .disclaimer { border-top-color: var(--poster); }

/* tuition: the engine's package cards on the Poster White field (see .packages above) */
.h-fee-note { margin-top: 32px; font-size: 15.5px; max-width: 80ch; }
.h-fee-note a { font-weight: 600; }

/* certificate: the sample certificate inside the Kanizsa rectangle */
.h-cert .h-split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 80px; }
.kz { position: relative; container-type: inline-size; }
.kz svg { width: 100%; height: auto; max-width: none; }
.kz-doc { position: absolute; left: 10.83%; right: 10.83%; top: 14.05%; bottom: 14.05%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 8%; color: #000; }
.kz-doc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kz-doc p { margin: 0; }
.cd-brand { font-family: var(--display); font-weight: 800; font-size: 2.4cqw; margin-bottom: .4cqw !important; }
.cd-kind { font-family: var(--display); font-weight: 900; font-size: 5cqw; letter-spacing: -.02em; line-height: 1; margin-bottom: 2.6cqw !important; }
.cd-small { font-size: 1.9cqw; }
.cd-name { font-family: var(--display); font-weight: 800; font-size: 4.6cqw; line-height: 1.1; margin: 1cqw 0 1.2cqw !important; padding: 0 3cqw .7cqw; border-bottom: .5cqw solid var(--red); }
.cd-course { font-weight: 600; font-size: 2.5cqw; margin: .4cqw 0 !important; }
.h-link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin: 0; }

/* sample unit */
.h-sample-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 3fr); gap: 64px; align-items: start; }
.h-sample-page { position: relative; display: block; text-decoration: none; color: #000; padding: 0 18px 18px 0; }
.sp-under { position: absolute; left: 18px; top: 18px; right: 0; bottom: 0; background: #000; }
.sp-sheet { position: relative; display: flex; flex-direction: column; aspect-ratio: 1 / 1.414; background: #fff; border: var(--rule) solid #000; padding: 10% 10% 8%; }
.sp-unit { display: block; font-weight: 600; font-size: 14px; color: var(--red); margin-bottom: 4px; }
.sp-title { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(22px, 2.1vw, 30px); line-height: 1.05; letter-spacing: -.02em; margin-bottom: 16px; }
.sp-body { display: block; font-size: 14px; line-height: 1.55; hyphens: auto; }
.sp-body::first-letter { font-family: var(--display); font-weight: 900; font-size: 3.1em; float: left; line-height: .8; margin: 6px 8px 0 0; color: var(--red); }
.sp-list { display: block; margin: 14px 0 0; padding: 0 0 0 1.1em; font-size: 13px; line-height: 1.5; }
.sp-list li { margin-bottom: 4px; }
.sp-folio { display: block; margin-top: auto; padding-top: 12px; text-align: center; font-size: 13px; font-weight: 600; }
.h-sample-page:hover .sp-sheet { border-color: var(--red); }
.h-sample-card { border: var(--rule) solid #000; padding: 22px 24px; margin: 28px 0; }
.sc-meta { font-weight: 600; font-size: 15px; margin: 0 0 6px; }
.h-sample-card h3 { font-size: 26px; margin-bottom: 10px; }
.h-sample-card p:last-child { margin: 0; font-size: 16px; }
.q-head { font-size: 22px; margin: 0 0 16px; }
.h-questions { counter-reset: q; display: grid; gap: 14px; margin: 0 0 32px; padding: 0; list-style: none; }
.h-questions li { counter-increment: q; position: relative; padding-left: 46px; font-size: 16.5px; }
.h-questions li::before { content: counter(q); position: absolute; left: 0; top: -1px; width: 30px; height: 30px; border-radius: 50%; background: #000; color: var(--poster); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 900; font-size: 14px; }
.h-sample-note { font-size: 16px; margin: 0 0 24px; max-width: 46ch; }
.ponzo-fig { position: sticky; top: calc(var(--header-h) + 48px); }
.ponzo-fig svg { max-width: 300px; }

/* testimonials (engine cards on the red field) */
.h-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; }
.h-quotes .testimonial { border-top-color: #000; color: #fff; }
.h-quotes .testimonial figcaption { flex-direction: row; }

/* community figures */
.h-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 0 0 80px; }
.h-figures div { display: flex; flex-direction: column-reverse; justify-content: flex-end; border-top: 6px solid #000; padding-top: 20px; }
.h-figures dd { margin: 0 0 10px; font-family: var(--display); font-weight: 900; font-size: clamp(64px, 8.4vw, 132px); line-height: .88; letter-spacing: -.045em; }
.h-figures div:nth-child(2) dd { color: var(--red); }
.h-figures dt { font-weight: 600; font-size: 17px; }

/* blog (engine cards on the black field) */
.h-blog .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; }
.h-blog .post-card { color: var(--poster); }

/* faq */
.h-faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 96px; align-items: start; }
.h-faq-side { position: sticky; top: calc(var(--header-h) + 48px); }
.h-faq-side .poster-fig svg { max-width: 400px; }
.h-faq-list .faq { border-top-color: #000; }
.h-faq-list .faq details { border-bottom-color: #000; }

/* newsletter */
.h-nl { padding: 96px 0; }
.h-nl-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: end; }
.h-nl .h-title { font-size: clamp(44px, 5.4vw, 84px); margin-bottom: 20px; }
.h-nl p { margin: 0; max-width: 50ch; }
.h-nl-label { display: block; font-weight: 600; font-size: 16px; margin: 0 0 8px; }

/* final call to action: the vase with figure and ground swapped */
.h-final { padding: 120px 0 0; overflow: hidden; }
.h-final-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 56px; align-items: end; }
.h-final-text { padding-bottom: 120px; }
.h-final .h-title { font-size: clamp(46px, 5.8vw, 92px); margin-bottom: 40px; }
.h-final-fig { align-self: end; }
.h-final-fig svg { width: 100%; height: auto; max-width: none; }
.h-final .btn-light { background: var(--red); color: #fff; border-color: var(--red); }
.h-final .btn-light:hover { background: var(--poster); color: #000; border-color: var(--poster); }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .nav, .nav-login { display: none; }
  .burger { display: block; }
  .h-logos { grid-template-columns: repeat(4, 1fr); }
  .h-research .researchers, .researchers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-sample-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ponzo-fig { position: static; grid-column: 1 / -1; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: center; }
  .ponzo-fig svg { max-width: 240px; }
}
@media (max-width: 1080px) {
  .packages { max-width: 680px; }
  .header-cta { margin-left: auto; }
}
@media (max-width: 1040px) {
  .poster-head { grid-template-columns: 1fr; gap: 40px; margin-bottom: 64px; }
  .poster-head .poster-fig { justify-self: start; max-width: 420px; }
  .h-split, .h-cert .h-split { grid-template-columns: 1fr; gap: 56px; }
  .h-cols3, .h-groups, .h-quotes, .h-blog .posts { grid-template-columns: 1fr; max-width: 680px; }
  .h-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-faq-grid { grid-template-columns: 1fr; gap: 48px; }
  .h-faq-side { position: static; }
  .h-faq-side .poster-fig svg { max-width: 300px; }
  .h-nl-grid { grid-template-columns: 1fr; gap: 32px; }
  .h-final-grid { grid-template-columns: 1fr; gap: 0; }
  .h-final-text { padding-bottom: 56px; }
  .h-sample-grid { grid-template-columns: 1fr; }
  .h-sample-page { max-width: 540px; }
  .split-fig { order: 2; }
  .h-sample-text { order: -1; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .logo { height: 34px; }
  .aud { border: 0; padding: 0; }
  .stats div { border-bottom: 0; padding: 20px 0 0; }
  .step-num b { font-size: 72px; }
  .kv { grid-template-columns: 1fr; }
  .unit-group-head { flex-wrap: wrap; gap: 6px 20px; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .header-inner { gap: 12px; }
  .header-cta { gap: 10px; }
  .header-cta .btn-sm { display: none; }
  .mm-inner { grid-template-columns: 1fr; gap: 22px; }
  .section { padding: 80px 0; }
  .page-hero h1 { font-size: clamp(40px, 12vw, 58px); }
  .h-hero { min-height: 580px; }
  .h-hero-figure { min-height: 220px; }
  .h-hero-caption { left: var(--gut); right: var(--gut); bottom: 14px; flex-direction: row; align-items: flex-end; justify-content: space-between; text-align: left; }
  .h-caption { font-size: 13px; max-width: 150px; }
  .cap-q { font-size: 16px; }
  .swap { font-size: 13px; padding: 7px 10px; max-width: 130px; }
  .h-hero-band-inner { padding: 18px var(--gut) 22px; }
  .h-name-line { font-size: 16px; }
  .h-hero-sub { font-size: 15.5px; margin-bottom: 14px; }
  .h-hero h1 { white-space: normal; font-size: 40px; margin-bottom: 18px; }
  .h-hero-foot { gap: 14px; }
  .h-actions { width: 100%; }
  .h-actions .btn { flex: 1 1 100%; min-height: 48px; }
  .h-checks { font-size: 14px; gap: 6px 16px; }
  .pf { padding: 80px 0; }
  .h-title { font-size: clamp(40px, 12vw, 58px); margin-bottom: 22px; }
  .h-lead { font-size: 18px; }
  .poster-head { margin-bottom: 48px; gap: 32px; }
  .poster-head .poster-fig { max-width: 100%; }
  .h-alumni { padding: 44px 0 48px; }
  .h-logos { grid-template-columns: repeat(2, 1fr); gap: 26px 24px; }
  .h-steps, .steps { grid-template-columns: 1fr; gap: 40px; }
  .h-step-no { font-size: 72px; }
  .h-research .researchers, .researchers { grid-template-columns: 1fr; gap: 44px; }
  .h-research .researcher { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 0 20px; align-items: start; }
  .h-research .avatar { width: 96px; grid-row: 1 / span 3; margin: 0; }
  .h-research .researcher-body { padding-top: 0; }
  .package { padding: 28px 20px; }
  .fee-now { font-size: 76px; }
  .split-fig svg { max-width: 300px; }
  .kz svg { max-width: none; }
  .kz-doc { padding: 0 6%; }
  .kz-doc .cd-small { display: none; }
  .cd-brand { font-size: 3.6cqw; }
  .cd-kind { font-size: 6.6cqw; margin-bottom: 2cqw !important; }
  .cd-name { font-size: 6.4cqw; }
  .cd-course { font-size: 3.8cqw; }
  .ponzo-fig { grid-template-columns: 1fr; gap: 16px; }
  .ponzo-fig svg { max-width: 220px; }
  .testimonial blockquote { font-size: 18px; }
  .h-figures, .stats { grid-template-columns: 1fr; gap: 28px; margin-bottom: 56px; }
  .faq summary { font-size: 19px; padding: 20px 48px 20px 0; }
  .h-nl { padding: 72px 0; }
  .newsletter-form { flex-direction: column; gap: 10px; }
  .newsletter-form input[type=email] { border-right: var(--rule) solid #000; }
  .h-final { padding-top: 80px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .logo-footer { height: 44px; }
}
@media (max-width: 560px) {
  .progress-strip b { font-size: 23px; }   /* two cells of 176 px with 22 px padding: "Advanced" must fit on one line */
  .wrap { padding: 0 var(--gut); }
  .footer-grid { grid-template-columns: 1fr; }
  .verify-form input { border-right: var(--rule) solid var(--poster); }
  .h-aud h3, .h-features h3, .feature h3, .aud h3 { font-size: 26px; }
}
@media (max-width: 400px) {
  .logo { height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .h-hero, .vase path, .h-hero-band { transition: none !important; }
}
