/* VCESR — a quiet, readable interface for research and practice. */
:root {
  color-scheme: light;
  --paper: #faf9f6;
  --white: #fff;
  --ink: #282332;
  --muted: #68616e;
  --plum: #4c355f;
  --plum-deep: #302239;
  --lavender: #ede8f1;
  --line: #ded9e2;
  --green: #476552;
  --radius: 20px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.65; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .22em; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 550; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 5.7vw, 5.6rem); letter-spacing: -.065em; }
h2 { font-size: clamp(2.15rem, 3.8vw, 3.7rem); letter-spacing: -.052em; }
h3 { font-size: 1.25rem; letter-spacing: -.026em; line-height: 1.3; }
p { text-wrap: pretty; }
p, li, h1, h2, h3, a, strong { overflow-wrap: break-word; }
::selection { background: #ddd0e9; color: var(--plum-deep); }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 5px; border-radius: 4px; }
main:focus, section[tabindex="-1"]:focus { outline: none; }
[id] { scroll-margin-top: 100px; }
.container, .nav-wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: 10px; left: 16px; z-index: 100; padding: 12px 20px; background: var(--plum); color: white; transform: translateY(-160%); border-radius: 8px; }
.skip-link:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(250,249,246,.89); border-bottom: 1px solid rgba(76,53,95,.1); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.nav-wrap { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: flex; align-items: center; width: 168px; height: 86px; min-height: 86px; flex-shrink: 0; overflow: hidden; text-decoration: none; }
.wordmark .header-logo { width: 174px; max-width: none; height: auto; flex-shrink: 0; transform: translateX(-16px); }
.primary-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.primary-nav a { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; min-height: 44px; min-width: 44px; color: var(--muted); font-size: .875rem; font-weight: 500; text-decoration: none; border-radius: 99px; }
.primary-nav a[aria-current="page"] { color: var(--plum); background: #ebe6ef; }
.primary-nav a:hover { color: var(--plum); background: #eeeaf1; }

.section { padding-block: 104px; }
.section.alt { background: #f1eeef; }
.section-head { max-width: 790px; margin-bottom: 48px; }

.section-head > p { color: var(--muted); margin-top: 22px; max-width: 610px; font-size: 1.125rem; }
.section-head-row { display: flex; justify-content: space-between; align-items: end; gap: 32px; max-width: none; }
.section-head-row h2 { margin-top: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 48px; padding: 13px 23px; border: 1px solid transparent; border-radius: 99px; text-decoration: none; font-size: .875rem; font-weight: 550; line-height: 1.5; }
.button.primary { background: var(--plum); color: white; box-shadow: 0 3px 6px rgba(48,34,57,.07); }
.button.primary:hover { background: #3e284e; }
.button.secondary, .button.light { background: transparent; border-color: #cfc5d5; color: var(--plum); }
.button.secondary:hover, .button.light:hover { background: var(--lavender); }
.button > span, .text-link > span { font-size: 1.15em; }
main .hero-actions, main .section-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 40px; }
.text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; padding-block: 10px; color: var(--plum); font-size: .9rem; font-weight: 550; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.hero-section { padding-block: 80px 88px; }
.hero-layout { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: 66px; }

.hero-overlay h1 { font-size: clamp(3.4rem, 5.3vw, 5.25rem); line-height: 1.045; max-width: 11ch; }
.hero-overlay h1 span { color: var(--plum); }
.hero-summary { margin-top: 28px; color: var(--muted); font-size: 1.125rem; max-width: 380px; line-height: 1.65; }
.hero-signature { margin-top: 40px; padding-left: 14px; border-left: 2px solid #cfc4d6; font-size: .75rem; color: var(--muted); line-height: 1.6; }
.model-notebook { padding: 28px 30px 24px; border: 1px solid #ded4e5; border-radius: 5px var(--radius) var(--radius) var(--radius); background: linear-gradient(145deg, #f3eff7, #e7e0ee); box-shadow: 0 20px 60px -35px rgba(48,34,57,.35), inset 0 1px white; position: relative; }
.notebook-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid #d5cadf; }

.notebook-index { color: var(--muted); font-size: .6rem; letter-spacing: .04em; white-space: nowrap; }
.notebook-title { margin-top: 24px; font-size: 1.5rem; line-height: 1.25; letter-spacing: -.04em; color: var(--plum-deep); }
.model-notebook .econ-svg { width: 100%; margin-top: 20px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .62rem; color: #55475f; margin-block: 12px 18px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend span::before { content: ""; width: 14px; border-top: 2px solid var(--plum); }
.chart-legend span:nth-child(2)::before { border-top: 2px dashed var(--green); }
.chart-legend span:nth-child(3)::before { height: 8px; background: #bbaa88; border: 0; }
.model-notebook figcaption { border-top: 1px solid #d5cadf; padding-top: 16px; font-size: .66rem; line-height: 1.6; color: #66566f; }

.grid { display: grid; gap: 28px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card { display: flex; flex-direction: column; min-width: 0; }
.product-art { height: 290px; border-radius: 14px; overflow: hidden; padding: 25px; display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.art-kicker, .art-foot { position: relative; z-index: 1; font-size: .58rem; font-weight: 550; letter-spacing: .12em; }
.art-foot { font-size: .65rem; letter-spacing: .02em; }
.game-art { background: #34223f; color: #e7d5b5; }
.game-art strong { font: 3.7rem/.94 Georgia, serif; letter-spacing: -.055em; z-index: 1; }
.art-bars { position: absolute; inset: 95px 16px 0 40%; display: flex; gap: 7px; align-items: end; transform: rotate(-12deg); opacity: .17; }
.art-bars i { background: #d9c1e6; width: 18%; height: 37%; }
.art-bars i:nth-child(2) { height: 50%; }.art-bars i:nth-child(3) { height: 72%; }.art-bars i:nth-child(4) { height: 53%; }.art-bars i:nth-child(5) { height: 84%; }.art-bars i:nth-child(6) { height: 98%; }.art-bars i:nth-child(7) { height: 80%; }
.engine-art { background: #eee8df; color: #5c503e; }
.engine-art img { width: 100%; max-height: 185px; object-fit: contain; mix-blend-mode: multiply; }
.toolkit-art { background: #dfe9e3; color: #345543; }
.toolkit-plot { position: relative; margin-top: -14px; }
.toolkit-plot > span { font: italic 4rem/1 Georgia, serif; display: block; }
.toolkit-plot svg { width: 90%; margin-left: 10%; margin-top: -20px; }
.product-copy { display: flex; flex-direction: column; flex: 1; padding: 26px 2px 0; }
.product-copy h3 { font-size: 1.4rem; margin-top: 0; }
.product-copy > p { margin-top: 12px; color: var(--muted); font-size: .94rem; line-height: 1.7; }
.product-copy .text-link { align-self: start; margin-top: auto; padding-top: 20px; }
.project-card-actions { margin-top: auto; padding-top: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.product-copy .project-card-actions .text-link { margin-top: 0; padding-block: 8px; }
.portfolio-intro { margin-top: 20px; max-width: 650px; color: var(--muted); }
.product-grid { row-gap: 56px; }
.causal-art { background: #dfe9e3; color: #345543; }
.causal-diagram { width: 100%; max-height: 170px; }
.econcards-art { background: #eee3cc; color: #62491f; }
.production-cards { display: flex; justify-content: center; align-items: center; padding-block: 16px; container-type: inline-size; }
.production-cards > span { display: flex; flex-direction: column; justify-content: space-between; width: 32%; max-width: 112px; height: 135px; padding: 14px clamp(6px, 3cqw, 10px); border: 1px solid currentColor; border-radius: 9px; background: #faf4e7; font: clamp(.7rem, 6.8cqw, 1.3rem)/1.1 Georgia, serif; }
.production-cards > span:first-child { transform: rotate(-9deg) translateY(8px); }
.production-cards > span:nth-child(2) { position: relative; z-index: 1; }
.production-cards > span:last-child { transform: rotate(9deg) translateY(8px); }
.production-cards small { font: .65rem/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.educator-art { background: var(--lavender); color: var(--plum); }
.experiment-art { display: grid; gap: 5px; }
.experiment-art > span { font-size: .7rem; }
.experiment-art svg { width: 100%; height: 44px; }

.portfolio-projects .project-mark { min-height: 380px; }
.project-mark.causal-art { background: #dfe9e3; color: #345543; }
.project-mark.econcards-art { background: #eee3cc; color: #62491f; }
.project-mark.educator-art { background: var(--lavender); color: var(--plum); }
.project-mark .causal-diagram { max-height: 230px; }
.project-mark .production-cards > span { height: 170px; font-size: clamp(.8rem, 6.8cqw, 1.65rem); }
.project-mark .experiment-art { gap: 10px; }
.project-mark .experiment-art svg { height: 60px; }
.project-note { font-size: .9rem; color: var(--muted); }

.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 72px; }
.service { display: flex; gap: 24px; padding-block: 28px; border-top: 1px solid #d7d0d9; }
.service-number { color: #77657f; font-size: .72rem; font-variant-numeric: tabular-nums; padding-top: 4px; }
.service h3 { font-size: 1.125rem; }
.service p { margin-top: 10px; max-width: 380px; font-size: .94rem; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split > *, .project > *, .founder > * { min-width: 0; }
.split .section-head { margin-bottom: 0; }
.people-list a { display: flex; gap: 16px; align-items: center; padding-block: 24px; border-bottom: 1px solid var(--line); text-decoration: none; }
.people-list a:first-child { border-top: 1px solid var(--line); }
.people-list a > span:nth-child(2) { flex: 1; }
.people-list a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.people-list strong { display: block; font-size: 1rem; font-weight: 550; }
.people-list small { display: block; font-size: .75rem; color: var(--muted); margin-top: 3px; }
.person-initials { display: grid; place-items: center; background: var(--lavender); color: var(--plum); width: 52px; height: 60px; border-radius: 6px; font: 1.2rem Georgia, serif; flex-shrink: 0; }
.people-list a:last-child .person-initials { background: #e3eae5; color: var(--green); }
.closing-cta { text-align: center; background: var(--lavender); padding-block: 88px; }
.closing-cta h2 { margin-block: 20px 30px; font-size: clamp(2.3rem, 4.3vw, 4.4rem); }
.brand-band { padding-block: 90px 80px; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 100% 0, #e9e2ef 0, transparent 64%); }
.brand-band .section-head { margin: 0; max-width: 920px; }
.brand-band h1 { max-width: 16ch; }
.team-page .section { padding-block: clamp(44px, 5vw, 72px); }
.team-page .team-disciplines { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }
.team-page .team-disciplines .card { display: flex; flex-direction: column; }
.team-page .team-disciplines .section-actions { margin-top: auto; padding-top: 40px; }
.text-stack > * + * { margin-top: 20px; }
.text-stack > p { color: var(--muted); }

.card { border-top: 1px solid #ccc1d3; padding: 30px 0 0; }
.card > p { color: var(--muted); font-size: .95rem; margin-top: 14px; }
.split .card { background: var(--lavender); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px; }
.plain-list, .check-list { list-style: none; padding: 0; margin: 24px 0 0; }
.plain-list li, .check-list li { padding-block: 11px; font-size: .94rem; border-top: 1px solid var(--line); }
.check-list li { padding-left: 22px; position: relative; }
.check-list li::before { content: "↗"; position: absolute; left: 0; color: var(--plum); }
.founder { display: grid; grid-template-columns: 300px 1fr; gap: 70px; align-items: start; }
.founder + .founder { border-top: 1px solid var(--line); padding-top: 80px; margin-top: 80px; }
.founder h2 { font-size: clamp(2rem, 3vw, 2.75rem); }
.portrait { border-radius: 12px; overflow: hidden; background: var(--lavender); }
.portrait img { width: 100%; aspect-ratio: 418/520; object-fit: cover; }
.portrait.placeholder { aspect-ratio: 418/520; display: grid; place-items: center; font: 6.5rem Georgia, serif; color: var(--plum); background: linear-gradient(145deg, #e4dbe9, #f1edf4); letter-spacing: -.09em; }
.role { color: var(--plum); font-size: .9rem; margin-top: 12px; }

.project { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.project + .project { border-top: 1px solid var(--line); padding-top: 90px; margin-top: 90px; }
.project h2 { font-size: clamp(2rem, 3vw, 3rem); }
.project-mark { min-height: 440px; padding: 36px; border-radius: var(--radius); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; color: #e7d5b5; background: var(--plum-deep); }
.project-mark > span:not(.project-art-kicker):not(.project-art-foot) { font: clamp(2.6rem,4.8vw,4.6rem)/1.04 Georgia,serif; letter-spacing: -.045em; }
.project-art-kicker, .project-art-foot { font-size: .7rem; letter-spacing: .09em; }
.project-art-foot { letter-spacing: 0; }
#toolkit .project-mark { background: #e0e8e2; color: #365542; }
#toolkit .project:last-child .project-mark { background: var(--lavender); color: var(--plum); }
.hermetic-band { background: #eee9e0; }
.feature-media { border-radius: var(--radius); overflow: hidden; }
.hermetic-media { background: #f6f3ee; padding: 36px; }
.hermetic-media img { width: 100%; mix-blend-mode: multiply; }

.site-footer { background: #f4f1f0; padding-top: 62px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 64px; padding-bottom: 48px; }
.footer-brand img { width: 160px; margin-left: -20px; margin-top: -18px; }
.footer-brand p { color: var(--muted); font-size: .75rem; line-height: 1.65; margin-top: 6px; }
.footer-contact { padding-top: 12px; }
.footer-contact > a { display: inline-flex; align-items: center; gap: 30px; min-height: 44px; font-size: 1.4rem; letter-spacing: -.035em; text-decoration: none; margin-top: 14px; color: var(--plum); }
.footer-contact > a:hover { text-decoration: underline; }
.footer-address { margin-top: 14px; color: var(--muted); font-size: .82rem; font-style: normal; line-height: 1.65; }
.footer-registration { display: grid; gap: 4px; margin: 12px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.65; }
.footer-registration > div { display: flex; flex-wrap: wrap; column-gap: 8px; }
.footer-registration dt { font-weight: 600; }
.footer-registration dd { margin: 0; }
.footer-links { display: flex; flex-direction: column; align-items: start; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; text-decoration: none; color: var(--plum); font-size: .82rem; }
.footer-links a:hover { text-decoration: underline; }
.display-preferences { padding-block: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.display-preferences > span { font-size: .75rem; color: var(--muted); }
.preference-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.preference-actions button { min-height: 44px; min-width: 44px; border-radius: 99px; padding: 9px 17px; border: 1px solid #c9c0cf; color: var(--plum); background: transparent; font-size: .75rem; }
.preference-actions button:hover, .preference-actions button[aria-pressed="true"] { background: #e8e1ed; }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .68rem; }

/* Original VCESR scroll scenes. Static flow is the default on every device. */
.hero-cinema { position: relative; background: var(--paper); }
.hero-stage { position: relative; padding-top: 24px; color: var(--ink); }
.hero-logo { width: min(80%, 560px); height: auto; margin: 0 auto; transform-origin: 53% 30%; }
.hero-cinema .hero-overlay { position: relative; z-index: 3; max-width: none; padding: 24px 0 48px; }
.hero-cinema .hero-overlay:focus-within { opacity: 1 !important; transform: none !important; }

.hero-cinema .hero-summary { max-width: 620px; margin-top: 12px; }
.hero-veil, .zoom-steps, .zoom-progress { display: none; }
.ticker { border-block: 1px solid var(--line); background: #fff; overflow: hidden; }
.ticker-note { padding: 12px 20px 0; font-size: .75rem; color: var(--muted); }
.ticker-track { display: flex; flex-wrap: wrap; width: auto; margin: 0; padding: 12px 0; list-style: none; color: var(--plum); font-size: .875rem; }
.ticker-track li { padding: 8px 24px; border-right: 1px solid var(--line); max-width: 100%; }
.ticker-track .gold { color: #806022; }.ticker-track .green { color: var(--green); }
.ticker-track [aria-hidden="true"] { display: none; }
.zoom-wrap { position: relative; }
.zoom-sticky { background: var(--paper); }
.zoom-track { display: block; }
.zoom-slide { min-width: 0; padding-block: 60px; }
.zoom-slide .container { width: min(920px, calc(100% - 96px)); }

.zoom-slide h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
.chart-description { max-width: 65ch; color: var(--muted); margin-top: 16px; }
.econ-svg { width: 100%; height: auto; }
#ts-svg { width: min(100%, 600px); margin: 24px auto 0; transform-origin: 97.4% 49.2%; }
.zoom-slide .chart-legend { justify-content: center; font-size: .75rem; }
.econ-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.econ-grid .card { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.econ-grid .econ-svg { max-height: 200px; }
.grid-paper { background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; }
.zoom-slide .section { padding-block: 28px; }
.zoom-slide .section-head { margin-bottom: 28px; }
.heat { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 6px; }
.heat span { display: grid; place-items: center; aspect-ratio: 1.4; border-radius: 6px; font-size: .8rem; font-weight: 650; color: #fff; }
.heat span[style*="background:#b08a43"] { color: #19141f; }
.bars { display: flex; align-items: end; gap: 10px; min-height: 180px; }
.bars i { flex: 1; border-radius: 6px 6px 0 0; background: var(--plum); transform: scaleY(var(--h,.4)); transform-origin: bottom; }
.bars i:nth-child(odd) { background: #b08a43; }.bars i:nth-child(3n) { background: var(--green); }
.retro-data-table { display: none; }
.econ-table { border-collapse: collapse; width: 100%; margin-top: 20px; font-size: .9rem; }
.econ-table caption { text-align: left; color: var(--muted); margin-bottom: 8px; }
.econ-table th, .econ-table td { border: 1px solid var(--line); padding: 8px; text-align: left; overflow-wrap: anywhere; }
.motion-enabled .hero-cinema { height: calc(170svh - var(--site-header-height, 97px)); }
.motion-enabled .hero-stage { position: sticky; top: var(--site-header-height, 97px); height: calc(100svh - var(--site-header-height, 97px)); padding: 0; overflow: clip; }
.motion-enabled .hero-logo { position: absolute; top: 0; left: 0; width: 100%; max-width: none; height: 82%; object-fit: contain; will-change: transform, opacity; }
.motion-enabled .hero-cinema .hero-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 9vh; background: linear-gradient(180deg, transparent, var(--paper) 90%); will-change: opacity, transform; }
.motion-enabled .hero-veil { display: block; position: absolute; inset: 0; z-index: 2; background: var(--paper); opacity: 0; pointer-events: none; }

.motion-enabled .ticker-track { flex-wrap: nowrap; width: max-content; animation: tick 36s linear infinite; }
.motion-enabled .ticker-track li { white-space: nowrap; }
.motion-enabled .ticker-track [aria-hidden="true"] { display: list-item; }
@keyframes tick { to { transform: translateX(-50%); } }
.motion-enabled .zoom-wrap { height: calc(340svh - var(--site-header-height, 97px)); }
.motion-enabled .zoom-sticky { position: sticky; top: var(--site-header-height, 97px); height: calc(100svh - var(--site-header-height, 97px)); overflow: clip; }
.motion-enabled .zoom-track { display: flex; height: 100%; will-change: transform; }
.motion-enabled .zoom-slide { flex: 0 0 100%; min-width: 0; display: grid; align-items: center; padding-block: 20px; overflow: clip; }
.motion-enabled #ts-svg { max-height: calc(100svh - 400px); will-change: transform; }
.motion-enabled .zoom-progress { display: block; height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 16px; }
.motion-enabled .zoom-progress i { display: block; height: 100%; background: #b08a43; transform: scaleX(0); transform-origin: left; }
@media (max-width: 860px) {
  .hero-stage { padding-top: 16px; }
  .hero-logo { width: min(65%, 340px); }
  .hero-cinema .hero-overlay { padding-block: 20px 36px; }
  .zoom-slide .container { width: calc(100% - 64px); }
  .zoom-slide { padding-block: 44px; }
}
@media (max-width: 620px) {
  .hero-logo { width: min(45%, 210px); }
  .hero-cinema .hero-overlay { padding-top: 12px; }
  .hero-cinema .hero-summary { font-size: 1rem; }

  .zoom-slide .container { width: calc(100% - 40px); }
  .econ-grid { grid-template-columns: minmax(0,1fr); }
  #ts-svg text { font-size: 26px; }
}
.retro .hero-logo { width: min(60%, 240px); }
.retro .hero-cinema .hero-overlay { padding-block: 20px 36px; }
.retro .zoom-slide .container { width: min(760px, calc(100% - 40px)); }
.retro .grid-paper { background: transparent; }
.retro .econ-grid { display: none; }
.retro .retro-data-table { display: table; table-layout: fixed; }
@media print {
  .hero-cinema, .zoom-wrap { height: auto !important; }
  .hero-stage, .zoom-sticky, .hero-cinema .hero-overlay { position: static !important; height: auto !important; overflow: visible !important; }
  .hero-logo { position: static !important; width: 260px !important; height: auto !important; }
  .hero-logo, .hero-overlay, #ts-svg, .zoom-track, .ticker-track { transform: none !important; opacity: 1 !important; animation: none !important; }
  .zoom-track { display: block !important; }
.hero-veil, .zoom-progress, .ticker-track [aria-hidden="true"] { display: none !important; }
}
/* Feedback is immediate; only the return to rest is eased. */
.motion-enabled .button, .motion-enabled button, .motion-enabled .primary-nav a, .motion-enabled .product-art { transition: background-color .2s ease, transform .32s var(--ease), box-shadow .32s var(--ease); }
.button:active, button:active, .primary-nav a:active { transform: scale(.97); transition-duration: 0s; }
.motion-enabled .product-card:focus-within .product-art { transform: translateY(-4px); }
@media (hover: hover) and (pointer: fine) {
  .motion-enabled .product-card:hover .product-art { transform: translateY(-4px); box-shadow: 0 16px 30px -20px rgba(48,34,57,.35); }
}
@media (max-width: 1100px) {
  .container, .nav-wrap { width: calc(100% - 64px); }
  .hero-layout { gap: 40px; }
  .hero-overlay h1 { font-size: 4.1rem; }
  .hero-actions .button { padding: 12px 16px; gap: 12px; }
  .product-art { height: 255px; padding: 20px; }.game-art strong { font-size: 3rem; }

  .split, .project { gap: 44px; }.founder { gap: 48px; grid-template-columns: 260px 1fr; }
  .footer-grid { gap: 36px; }
}
@media (max-width: 860px) {
  .section { padding-block: 72px; }
  .hero-section { padding-block: 56px 64px; }
  .hero-layout { grid-template-columns: 1fr; gap: 42px; }
  .hero-overlay { max-width: 650px; }.hero-overlay h1 { max-width: none; font-size: clamp(3rem, 7.5vw, 4.6rem); }
  .hero-summary { max-width: 480px; }.hero-signature { display: none; }
  .model-notebook { max-width: 620px; width: 100%; justify-self: center; }
  .model-notebook .econ-svg { max-height: 300px; }.notebook-title { font-size: 1.8rem; }
  .grid.three { gap: 22px; }.product-art { height: 220px; padding: 18px; }.game-art strong { font-size: 2.6rem; }
  .art-kicker { font-size: .5rem; }.art-foot { font-size: .58rem; }
  .product-copy h3 { font-size: 1.25rem; }.product-copy > p { font-size: .875rem; }
  .service-grid { column-gap: 36px; }.service { gap: 16px; }

  .founder { grid-template-columns: 220px 1fr; gap: 36px; }
  .project-mark { min-height: 360px; padding: 28px; }
.footer-grid { grid-template-columns: 1fr 1.2fr; }.footer-links { grid-column: 1/-1; flex-direction: row; flex-wrap: wrap; gap: 20px; }
}
@media (max-width: 620px) {
  .container, .nav-wrap { width: calc(100% - 40px); }
  .site-header { position: relative; }
  .nav-wrap { flex-direction: column; gap: 4px; padding-block: 12px 8px; }
  .wordmark { width: 144px; height: 76px; min-height: 76px; }.wordmark .header-logo { width: 160px; transform: translateX(-15px); }
  .primary-nav { width: 100%; justify-content: center; gap: 0; }
  .primary-nav a { flex: 1 1 auto; padding: 8px; font-size: .75rem; }
  [id] { scroll-margin-top: 24px; }
  .hero-section { padding-block: 38px 44px; }

  .hero-overlay h1 { font-size: clamp(2.5rem, 10.4vw, 4rem); letter-spacing: -.06em; }
  .hero-summary { font-size: 1rem; margin-top: 20px; }
  .hero-actions { margin-top: 24px; }.hero-actions .button { font-size: .74rem; padding-inline: 13px; gap: 9px; min-height: 46px; }
  .hero-layout { gap: 38px; }.model-notebook { padding: 22px 20px 18px; }
  .notebook-heading { gap: 8px; padding-bottom: 16px; }
.notebook-index { font-size: .5rem; }
  .notebook-title { font-size: 1.35rem; margin-top: 18px; }.model-notebook .econ-svg { margin-top: 18px; }
  .chart-legend { font-size: .56rem; gap: 10px; }.model-notebook figcaption { font-size: .65rem; }

  .section { padding-block: 60px; }.section-head { margin-bottom: 32px; }
.section-head > p { font-size: 1rem; margin-top: 18px; }
  h1 { font-size: 2.9rem; }h2 { font-size: 2.3rem; }
  .section-head-row { align-items: start; flex-direction: column; gap: 12px; }.section-head-row h2 { margin-top: 0; }
.grid.three, .service-grid, .split, .project { grid-template-columns: 1fr; }
  .grid.three { gap: 40px; }.product-art { height: 300px; padding: 28px; }.game-art strong { font-size: 4.2rem; }.art-kicker { font-size: .6rem; }.art-foot { font-size: .7rem; }.engine-art img { max-height: 190px; }.toolkit-plot svg { max-height: 145px; }
  .product-copy { padding-top: 22px; }.product-copy h3 { font-size: 1.5rem; }.product-copy > p { font-size: 1rem; }.product-copy .text-link { padding-top: 16px; }
  .service { padding-block: 24px; gap: 22px; }.service h3 { font-size: 1.12rem; }.service p { font-size: .94rem; }

.split { gap: 34px; }.people-list strong { font-size: .9rem; }.people-list small { font-size: .7rem; }.people-list a { gap: 12px; }.person-initials { width: 44px; height: 52px; }
  .closing-cta { padding-block: 64px; }.closing-cta h2 { font-size: 2.5rem; }
  .brand-band { padding-block: 52px; }.brand-band h1 { max-width: none; }.brand-band .button { font-size: .8rem; padding-inline: 16px; }
  .split .card { padding: 28px; }.text-stack > p { font-size: .96rem; }
  .founder { grid-template-columns: 1fr; gap: 30px; }.portrait { width: min(300px,100%); }.founder + .founder { margin-top: 56px; padding-top: 56px; }.founder h2 { font-size: 2rem; }.portrait.placeholder { font-size: 6rem; }
  .project { gap: 34px; }.project-mark { min-height: 360px; padding: 30px; }.project-mark > span:not(.project-art-kicker):not(.project-art-foot) { font-size: clamp(2.3rem, 11vw, 3.7rem); }.project + .project { padding-top: 60px; margin-top: 60px; }.project h2 { font-size: 2.1rem; }.hermetic-media { padding: 24px; }

  .site-footer { padding-top: 48px; }.footer-grid { grid-template-columns: 1fr; gap: 24px; padding-bottom: 32px; }.footer-brand img { width: 145px; }.footer-contact { padding-top: 0; }.footer-contact > a { font-size: 1.6rem; margin-top: 8px; }.footer-contact > p:last-child { max-width: none; }.footer-links { gap: 20px; }.display-preferences { align-items: start; flex-direction: column; }.footer-bottom { flex-direction: column; gap: 6px; }
}
/* Simple mode is a complete, persistent reading layout, not just less motion. */
.retro { font-family: Georgia, "Times New Roman", serif; }
.retro body { background: white; color: #222; }
.retro .site-header { position: static; background: #fff; backdrop-filter: none; }
.retro .container, .retro .nav-wrap { width: min(760px, calc(100% - 40px)); }
.retro h1 { font-size: 2.4rem; letter-spacing: -.025em; }.retro h2 { font-size: 1.85rem; letter-spacing: -.02em; }
.retro .hero-overlay h1 { max-width: none; font-size: 2.6rem; }
.retro .hero-layout, .retro .grid, .retro .service-grid, .retro .split, .retro .project, .retro .founder, .retro .footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.retro .section, .retro .hero-section, .retro .brand-band { padding-block: 40px; }
.retro .hero-summary, .retro .section-head > p, .retro .service p { max-width: none; }
.retro .section-head { margin-bottom: 28px; }
.retro .section-head-row { display: block; }
.retro .section.alt, .retro .brand-band, .retro .closing-cta, .retro .hermetic-band, .retro .site-footer { background: #f6f5f3; }

.retro .product-art { max-width: 360px; height: 270px; }
.retro .product-card { border-bottom: 1px solid var(--line); padding-bottom: 26px; }
.retro .model-notebook { max-width: 560px; box-shadow: none; border-radius: 0; }
.retro .portrait { max-width: 220px; }
.retro .project-mark { max-width: 440px; min-height: 320px; }
.retro .project-mark > span:not(.project-art-kicker):not(.project-art-foot) { font-size: 2.8rem; }
.retro .button, .retro button, .retro .product-art { transform: none; transition: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .button:active, button:active, .primary-nav a:active, .product-art { transform: none !important; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .site-header { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: #403845; --line: #82718d; }
.model-notebook, .product-art, .project-mark, .button { border: 1px solid currentColor; }
}
@media (forced-colors: active) {
  .button, button, .primary-nav a[aria-current="page"], .model-notebook, .product-art { border: 1px solid ButtonText; }
}
@media print {
  .site-header, .display-preferences, .skip-link { display: none; }
  .section, .hero-section, .brand-band { padding-block: 24px; }
  .container { width: 100%; }

}
/* Project pages: artwork leads, with plain descriptions and explicit availability. */

.project-overview-intro { padding-block: 64px 48px; }
.project-overview-intro .section-head { margin-bottom: 0; max-width: 900px; }
.project-overview-intro h1 { font-size: clamp(3rem, 6vw, 5rem); }
.project-overview { padding-top: 64px; }
.project-overview .product-copy h3 { font-size: clamp(1.5rem, 2.3vw, 2rem); letter-spacing: -.035em; }
.project-categories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 56px; }
.project-categories .button { height: 100%; text-align: center; }
.project-group { scroll-margin-top: 160px; }
.project-group + .project-group { margin-top: 72px; }
.project-group > h2 { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); font-size: clamp(1.8rem, 3vw, 2.5rem); }
.project-group .product-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
@media (max-width: 620px) {
  .project-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 40px; }
  .project-categories .button { min-height: 64px; padding-inline: 12px; }
  .project-group { scroll-margin-top: 94px; }
  .project-group + .project-group { margin-top: 56px; }
}
.retro .project-group .product-grid { grid-template-columns: 1fr; }
.project-visual { overflow: hidden; border-radius: 14px; aspect-ratio: 3 / 2; background: var(--lavender); }
.project-visual img { width: 100%; height: 100%; object-fit: cover; }
.product-card .project-visual { flex-shrink: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; }

.project-icon { width: 24px; height: 24px; flex-shrink: 0; }
.product-copy .project-status { margin-top: 18px; font-size: .8rem; color: var(--plum); }
.project-status { display: flex; align-items: center; gap: 8px; color: var(--plum); font-size: .9rem; }
.project-status::before { content: ""; width: 6px; height: 6px; background: currentColor; border-radius: 50%; flex-shrink: 0; }
.project-hero { padding-block: 40px 80px; }
.project-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 36px; color: var(--muted); font-size: .85rem; }
.project-breadcrumb a { display: inline-flex; min-height: 44px; align-items: center; color: var(--plum); }
.project-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.project-hero h1 { font-size: clamp(2.5rem, 4.2vw, 4.2rem); letter-spacing: -.05em; }

.project-hero .text-stack { gap: 22px; }
.project-lead { max-width: 62ch; color: var(--muted); font-size: 1.0625rem; }
.project-hero .project-visual { border-radius: 20px; }
.project-details { padding-block: 72px; }
.project-detail-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 96px; }
.project-details h2 { font-size: clamp(1.75rem, 2.6vw, 2.5rem); letter-spacing: -.035em; }
.project-details p { max-width: 65ch; }
.project-availability { align-self: start; padding-left: 32px; border-left: 2px solid #cfc5d5; }
.primary-nav a[aria-current="location"] { color: var(--plum); background: #ebe6ef; }
.project-page a:active, .product-copy a:active { opacity: .75; }
@media (max-width: 1000px) {
  .project-hero-grid { gap: 32px; }
  .project-detail-grid { gap: 48px; }
}
@media (max-width: 860px) {
  .project-hero-grid, .project-detail-grid { grid-template-columns: 1fr; gap: 36px; }
  .project-hero .project-visual { width: 100%; max-width: 640px; }
  .project-overview-intro { padding-block: 40px; }
  .project-hero { padding-block: 24px 48px; }
  .project-breadcrumb { margin-bottom: 24px; }
  .project-details { padding-block: 48px; }
  .project-availability { padding-left: 20px; }
}
.retro .project-hero-grid, .retro .project-detail-grid { grid-template-columns: 1fr; gap: 32px; }
.retro .project-hero, .retro .project-details { padding-block: 40px; }
.retro .project-hero h1 { font-size: 2.4rem; }
.retro .project-visual { max-width: 440px; border-radius: 0; }
.retro .project-availability { padding-left: 0; border-left: 0; }
@media (prefers-contrast: more) {
  .project-visual { border: 1px solid currentColor; }
}
.project-hero .text-stack > .project-status, .product-copy > p.project-status { color: var(--plum); }
.project-hero .text-stack > .project-lead { font-size: 1.0625rem; }
/* Official project marks retain their complete shape and transparent edges. */
.project-visual--logo { display: flex; align-items: center; justify-content: center; padding: clamp(18px, 2.3vw, 32px); }
.project-visual--logo img { object-fit: contain; }
.project-visual--econcards, .project-visual--boom { background: #f3eee3; }
.project-visual--hermetic { background: var(--lavender); }
.project-visual--dilemma { background: #f0f1f5; }
.project-visual--capybara { background: #fff; }
.project-visual--gladio { background: #fff; }

/* Educator: the product's lavender teaching workspace, opened to the page. */
.educator-page { --educator-mist: #efebf5; --educator-ink: #2e233d; --educator-muted: #625b6c; }
.educator-hero { background: var(--educator-mist); padding-bottom: 0; }
.educator-intro { display: grid; grid-template-columns: 1.18fr 1fr; align-items: end; gap: 72px; padding-block: 8px 54px; }
.educator-intro > *, .educator-section-heading > *, .educator-workflow > *, .educator-school-layout > *, .educator-faq-layout > * { min-width: 0; }

.educator-hero h1 { font-size: clamp(2.9rem, 4.8vw, 4.6rem); line-height: 1.045; letter-spacing: -.055em; max-width: 15ch; color: var(--educator-ink); }
.educator-intro-copy { padding-bottom: 5px; }
.educator-intro-copy .project-lead { font-size: 1.1rem; color: #544b60; line-height: 1.7; }
.educator-intro-copy .section-actions { margin-bottom: 20px; }
.educator-intro-copy .project-status { font-size: .78rem; }
.educator-workspace { border: 1px solid #cec3db; border-radius: 14px 14px 0 0; background: #fff; overflow: hidden; box-shadow: 0 20px 60px -34px #38204d66; }

.educator-gallery-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 8px 14px; border-bottom: 1px solid #e0dce7; background: #fbfaff; }
.educator-gallery-controls button { border: 0; background: transparent; padding: 11px 18px; min-height: 44px; border-radius: 7px; color: #62576b; font-size: .8rem; }
.educator-gallery-controls button[aria-pressed="true"] { background: #eae3f1; color: #422e55; font-weight: 650; }
.educator-gallery-controls button:hover { background: #f0ebf5; color: #422e55; }
.educator-workspace > img { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: contain; background: #f5f5f8; }
.educator-workspace figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 17px 22px; border-top: 1px solid #e0dce7; font-size: .75rem; line-height: 1.6; color: #625b6c; }
.educator-workspace [data-educator-caption] { color: #3f344c; }
.educator-screenshot-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--plum); }

.educator-section-heading { display: grid; grid-template-columns: 1.18fr 1fr; gap: 72px; align-items: end; margin-bottom: 56px; }
.educator-section-heading h2, .educator-workflow h2, .educator-school-layout h2, .educator-faq h2 { font-size: clamp(2rem, 3.4vw, 3.25rem); letter-spacing: -.045em; line-height: 1.12; }
.educator-section-heading > p { color: var(--educator-muted); max-width: 47ch; font-size: 1.05rem; }
.educator-learning { background: #fff; }
.educator-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.educator-benefits article { min-width: 0; display: flex; flex-direction: column; align-items: start; }
.educator-feature-icon { width: 34px; height: 34px; color: var(--plum); margin-bottom: 27px; }
.educator-benefits h3 { font-size: 1.3rem; margin-bottom: 14px; max-width: 20ch; }
.educator-benefits p { color: var(--educator-muted); font-size: .95rem; line-height: 1.75; margin-bottom: 16px; }
.educator-benefits .text-link { margin-top: auto; font-size: .83rem; text-decoration: underline; }
.educator-engine { background: #3d2b4c; color: #fff; }
.educator-engine-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.educator-engine-layout > *, .educator-sweden-layout > * { min-width: 0; }

.educator-engine h2, .educator-sweden h2 { font-size: clamp(2rem, 3.4vw, 3.25rem); letter-spacing: -.045em; line-height: 1.12; }
.educator-engine-copy > p { color: #ece3f3; margin-top: 24px; font-size: 1rem; line-height: 1.8; }
.educator-engine-copy .text-link { color: #fff; margin-top: 20px; text-decoration: underline; }
.educator-engine :focus-visible { outline-color: #fff; }
.educator-engine-model { background: #f9f6fc; color: #3d2b4c; border-radius: 12px; padding: 28px; }

.educator-model-layer { position: relative; padding: 20px; background: #eee8f4; border-left: 3px solid #a487bc; }
.educator-model-layer + .educator-model-layer { margin-top: 18px; }
.educator-model-layer + .educator-model-layer::before { content: ""; position: absolute; top: -18px; left: 24px; height: 18px; border-left: 1px solid #a487bc; }
.educator-model-layer h3 { font-size: 1rem; }
.educator-model-layer p { margin-top: 8px; color: #5b4b69; font-size: .83rem; line-height: 1.6; }
.educator-engine-model figcaption { margin-top: 24px; font-size: .75rem; line-height: 1.7; color: #665772; }
.educator-control-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 72px; }
.educator-control-grid article { padding-block: 26px 0; border-top: 1px solid #d9d0e2; }
.educator-control-grid h3 { font-size: 1.25rem; margin-bottom: 13px; }
.educator-control-grid p { color: var(--educator-muted); font-size: .94rem; line-height: 1.8; max-width: 57ch; }
.educator-controls-note { max-width: 100ch; margin-top: 36px; font-size: .78rem; color: #655a6f; line-height: 1.8; }
.educator-sweden { background: #fff; border-bottom: 1px solid #e5dfec; }
.educator-sweden-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.educator-sweden-layout > div:first-child > p { font-size: 1rem; line-height: 1.8; color: var(--educator-muted); margin-top: 24px; }
.educator-sweden-layout .text-link { margin-top: 16px; text-decoration: underline; font-size: .85rem; }
.educator-country-card { padding: 32px; border: 1px solid #dcd3e6; border-radius: 12px; background: #f8f6fb; }
.educator-country-heading { display: flex; align-items: center; gap: 18px; }
.educator-country-heading h3 { font-size: 1.5rem; }
.educator-country-heading p { font-size: .78rem; color: #655a6f; margin-top: 4px; }
.educator-sweden-flag { display: block; width: 52px; height: 34px; border-radius: 3px; flex-shrink: 0; background: linear-gradient(to bottom, transparent 40%, #fecc02 40%, #fecc02 60%, transparent 60%), linear-gradient(to right, #006aa7 30%, #fecc02 30%, #fecc02 43%, #006aa7 43%); }
.educator-opening-dates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 28px 0; }
.educator-opening-dates li { padding: 10px 8px; border: 1px solid #ddd4e7; border-radius: 5px; background: #fff; text-align: center; font-size: .85rem; font-weight: 550; color: #4c355f; }
.educator-country-details { margin: 0; }
.educator-country-details > div { padding-block: 15px; border-top: 1px solid #e3dbea; }
.educator-country-details dt { font-size: .76rem; color: #655a6f; }
.educator-country-details dd { font-size: .86rem; color: #3e304b; margin: 4px 0 0; line-height: 1.6; }
.educator-country-sources { font-size: .72rem; line-height: 1.8; color: #655a6f; margin-top: 12px; }
.educator-calibration-note { margin-top: 38px; padding-top: 24px; border-top: 1px solid #e5dfec; max-width: 110ch; font-size: .78rem; line-height: 1.8; color: #655a6f; }
.educator-experiment { background: #f4f2f7; }
.educator-workflow { display: grid; grid-template-columns: 1fr 1fr; gap: 120px; align-items: start; }

.educator-workflow-intro > p, .educator-school-layout > div > p, .educator-faq-layout > div:first-child > p { margin-top: 24px; max-width: 47ch; color: var(--educator-muted); }
.educator-workflow-intro > .educator-small { font-size: .83rem; padding-top: 20px; border-top: 1px solid #dcd5e4; }
.educator-steps { margin: 0; padding: 0; list-style: none; }
.educator-steps li { display: flex; align-items: start; gap: 22px; padding-block: 26px; border-bottom: 1px solid #dad3e3; }
.educator-steps li:first-child { padding-top: 0; }
.educator-steps li:last-child { padding-bottom: 0; border-bottom: 0; }
.educator-steps li > span { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; background: #e6dfed; color: #4c355f; font-size: .85rem; }
.educator-steps h3 { margin: 5px 0 10px; font-size: 1.18rem; }
.educator-steps p { font-size: .94rem; color: var(--educator-muted); }
.educator-schools { background: #fff; }
.educator-school-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 120px; align-items: center; }
.educator-school-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.educator-school-list li { padding-block: 15px; font-size: .9rem; color: #4e3e5e; border-bottom: 1px solid #e4ddea; }
.educator-school-list li:last-child { grid-column: 1 / -1; }
.educator-pricing { background: #efebf5; }
.educator-offers { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.educator-license, .educator-institution { padding: 40px; border-radius: 18px; min-width: 0; }
.educator-license { background: #fff; border: 1px solid #d5cade; }
.educator-offer-heading { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 10px; }
.educator-offer-heading h3 { font-size: 1.12rem; }

.educator-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 18px; font-size: 4.4rem; letter-spacing: -.065em; line-height: 1.2; margin-block: 26px 20px; color: var(--educator-ink); }
.educator-price span { font-size: .8rem; letter-spacing: 0; color: var(--educator-muted); }
.educator-license > p:not(.educator-price):not(.educator-license-note):not(.educator-payment-status) { font-size: .95rem; color: var(--educator-muted); max-width: 43ch; }
.educator-inclusions { list-style: none; padding: 0; margin: 26px 0; }
.educator-inclusions li { position: relative; padding-left: 24px; margin-top: 13px; font-size: .88rem; line-height: 1.6; }
.educator-inclusions li::before { content: "✓"; position: absolute; left: 0; color: #4c355f; font-weight: 650; }
.educator-payment-actions { display: grid; gap: 10px; margin-top: 32px; }
.educator-payment-actions .button { width: 100%; }
.educator-payment-status { margin-top: 18px; font-size: .78rem; color: #51475d; line-height: 1.7; }
.educator-license-note { border-top: 1px solid #e4dce9; padding-top: 18px; margin-top: 18px; font-size: .73rem; color: #6a6172; line-height: 1.7; }
.educator-institution { background: #4c355f; color: #fff; display: flex; flex-direction: column; align-items: flex-start; }

.educator-institution h3 { font-size: clamp(1.8rem, 2.6vw, 2.5rem); line-height: 1.16; letter-spacing: -.04em; margin-block: 8px 24px; max-width: 18ch; }
.educator-institution > p { color: #e9e2ef; font-size: .95rem; line-height: 1.8; }
.educator-institution > p + p { margin-top: 16px; }
.educator-institution .educator-inclusions { margin-bottom: 32px; }
.educator-institution .educator-inclusions li { color: #f2ecf6; }
.educator-institution .educator-inclusions li::before { color: #e0c9f0; }
.educator-sales-button { background: #fff; color: #4c355f; margin-top: auto; }
.educator-sales-button:hover { background: #f1e9f8; }
.educator-sales-email { display: inline-flex; min-height: 44px; align-items: center; margin-top: 6px; font-size: .78rem; color: #e9e1ef; }
.educator-institution :focus-visible { outline-color: #fff; }
.educator-faq { background: #fff; }
.educator-faq-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; }
.educator-questions details { border-bottom: 1px solid #ded7e5; }
.educator-questions details:first-child { border-top: 1px solid #ded7e5; }
.educator-questions summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 22px; cursor: pointer; font-size: .98rem; font-weight: 550; line-height: 1.5; list-style: none; }
.educator-questions summary::-webkit-details-marker { display: none; }
.educator-questions summary::after { content: "+"; font-weight: 400; font-size: 1.4rem; color: #71617f; }
.educator-questions details[open] summary::after { content: "−"; }
.educator-questions details > p { padding: 0 24px 24px 0; color: var(--educator-muted); font-size: .92rem; line-height: 1.8; }

.educator-page + .site-footer .footer-grid > * { min-width: 0; }
.educator-page + .site-footer .footer-contact > a { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 1100px) {
  .educator-engine-layout, .educator-sweden-layout { gap: 48px; }
  .educator-intro, .educator-section-heading { gap: 40px; }
  .educator-workflow, .educator-school-layout { gap: 60px; }
  .educator-license, .educator-institution { padding: 30px; }
  .educator-faq-layout { gap: 50px; }
}
@media (max-width: 860px) {
  .educator-engine-layout, .educator-sweden-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .educator-engine-copy, .educator-sweden-layout > div:first-child { max-width: 60ch; }
  .educator-control-grid { gap: 30px 36px; }
  .educator-intro, .educator-section-heading, .educator-workflow, .educator-school-layout, .educator-offers, .educator-faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .educator-hero h1 { max-width: 17ch; font-size: clamp(2.8rem, 7vw, 4rem); }
  .educator-intro { padding-bottom: 36px; gap: 24px; }
  .educator-intro-copy { max-width: 58ch; }
  .educator-benefits { gap: 26px; }
  .educator-section-heading { margin-bottom: 36px; }

  .educator-pricing .educator-section-heading h2 br { display: none; }
  .educator-institution h3 { max-width: 24ch; }
  .educator-institution .educator-sales-button { margin-top: 0; }
}
@media (max-width: 600px) {
  .educator-engine-model, .educator-country-card { padding: 24px 20px; }
  .educator-control-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .educator-opening-dates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .educator-page .section:not(.educator-hero) { padding-block: 56px; }
  .educator-hero { padding-bottom: 0; }

  .educator-hero h1 { font-size: clamp(2.45rem, 10.6vw, 3.8rem); }
  .educator-intro-copy .project-lead { font-size: 1rem; }

  .educator-gallery-controls { gap: 2px; padding: 6px; }
  .educator-gallery-controls button { padding: 10px 9px; font-size: .7rem; flex: 1; }
  .educator-workspace figcaption { padding: 14px 16px; font-size: .7rem; }

  .educator-benefits { grid-template-columns: 1fr; gap: 34px; }
  .educator-benefits article + article { padding-top: 30px; border-top: 1px solid #e5dfea; }
  .educator-benefits h3 { max-width: none; }
  .educator-feature-icon { margin-bottom: 18px; }
  .educator-benefits p { margin-bottom: 4px; }
  .educator-school-list { gap: 0 20px; }
  .educator-school-list li { font-size: .82rem; }
  .educator-license, .educator-institution { padding: 26px 22px; border-radius: 12px; }
  .educator-price { font-size: 3.8rem; }

}
.retro .educator-intro, .retro .educator-section-heading, .retro .educator-benefits, .retro .educator-workflow, .retro .educator-school-layout, .retro .educator-offers, .retro .educator-faq-layout { grid-template-columns: 1fr; gap: 28px; }
.retro .educator-engine-layout, .retro .educator-sweden-layout, .retro .educator-control-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.retro .educator-engine-model, .retro .educator-country-card { border-radius: 0; }
.retro .educator-engine h2, .retro .educator-sweden h2 { font-size: 1.85rem; }
.retro .educator-workspace { border-radius: 0; box-shadow: none; }
.retro .educator-hero h1 { font-size: 2.4rem; max-width: none; }
.retro .educator-workspace img { max-width: 100%; }

.retro .educator-license, .retro .educator-institution { border-radius: 0; }
.retro .educator-section-heading h2, .retro .educator-workflow h2, .retro .educator-school-layout h2, .retro .educator-faq h2 { font-size: 1.85rem; }
@media (prefers-contrast: more) {
  .educator-license, .educator-institution, .educator-workspace, .educator-gallery-controls button { border: 1px solid currentColor; }
}

/* The contact address is the action, with no competing cards or helper copy. */
.contact-page { padding-block: clamp(52px, 8vw, 112px); }
.contact-email {
  display: inline-flex;
  align-items: baseline;
  gap: .45em;
  max-width: 100%;
  margin-top: 28px;
  padding-block: 8px;
  color: var(--plum);
  font-size: clamp(1.5rem, 5vw, 4.25rem);
  line-height: 1.3;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
  text-underline-offset: .15em;
  text-decoration-thickness: 1px;
}
.contact-email:hover { color: var(--plum-deep); }
.retro .contact-email { font-size: 1.5rem; letter-spacing: normal; }

/* The textbook and US laboratory extend Noscere's teaching workspace. */
.educator-brand { align-self: center; }
.educator-brand img { display: block; width: min(100%, 440px); height: auto; }
.educator-textbook { background: #f3eff8; }
.educator-textbook-layout { display: grid; grid-template-columns: .88fr 1.12fr; gap: 56px; align-items: center; }
.educator-textbook-layout > * { min-width: 0; }
.educator-textbook h2 { font-size: clamp(2rem, 3.4vw, 3.25rem); letter-spacing: -.045em; line-height: 1.12; }
.educator-textbook-copy > p { margin-top: 24px; color: var(--educator-muted); font-size: .98rem; line-height: 1.8; }
.educator-textbook-inclusions { margin: 24px 0; padding-left: 20px; color: #51435f; font-size: .86rem; line-height: 1.75; }
.educator-textbook-inclusions li + li { margin-top: 10px; }
.educator-textbook-copy .text-link { text-decoration: underline; }
.educator-textbook-figure, .educator-us-figure { margin: 0; overflow: hidden; border: 1px solid #d4c9df; border-radius: 12px; background: #fff; }
.educator-textbook-figure img, .educator-us-figure img { display: block; width: 100%; height: auto; }
.educator-textbook-figure figcaption, .educator-us-figure figcaption { padding: 18px 22px; font-size: .76rem; line-height: 1.7; color: #625b6c; border-top: 1px solid #e2dbe9; }

.educator-us { background: #f4f2f7; }
.educator-us-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin-top: 38px; }
.educator-us-features h3 { font-size: 1.18rem; margin-bottom: 14px; }
.educator-us-features p { color: var(--educator-muted); font-size: .94rem; line-height: 1.8; }
.educator-us-context { margin-top: 30px; padding-top: 24px; border-top: 1px solid #d9d0e2; color: #655a6f; font-size: .78rem; line-height: 1.8; max-width: 110ch; }
.educator-faq-layout > div:first-child .text-link { margin-top: 18px; text-decoration: underline; }
.educator-questions details[open] { background: #faf8fd; padding-inline: 18px; margin-inline: -18px; }
.educator-questions summary::after { flex-shrink: 0; }
@media (max-width: 1100px) {
  .educator-textbook-layout { gap: 36px; }
}
@media (max-width: 860px) {
  .educator-textbook-layout { grid-template-columns: minmax(0, 1fr); }
  .educator-textbook-copy { max-width: 64ch; }
  .educator-us-features { gap: 24px; }
  .educator-gallery-controls button { flex: 1 1 auto; }
}
@media (max-width: 600px) {
  .educator-gallery-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .educator-gallery-controls[hidden] { display: none; }
  .educator-gallery-controls button { font-size: .76rem; }
  .educator-gallery-controls button:last-child { grid-column: 1 / -1; }
  .educator-us-features { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .educator-us-features article + article { padding-top: 24px; border-top: 1px solid #d9d0e2; }

  .educator-textbook-figure figcaption, .educator-us-figure figcaption { padding: 14px 16px; }
  .educator-questions details[open] { padding-inline: 12px; margin-inline: -12px; }
}
.retro .educator-textbook-layout, .retro .educator-us-features { grid-template-columns: minmax(0, 1fr); }
.retro .educator-textbook h2 { font-size: 1.85rem; }
.retro .educator-textbook-figure, .retro .educator-us-figure { border-radius: 0; }
@media (prefers-contrast: more) {
  .educator-textbook-figure, .educator-us-figure { border-color: currentColor; }
}

.site-header {
  --header-height: 70px;
  --header-gutter: 20px;
  --header-ease: cubic-bezier(.16, 1, .3, 1);
  --header-halo: #30223999;
  position: fixed;
  z-index: 30;
  inset: 0 0 auto;
  background: transparent;
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  transition: transform 150ms cubic-bezier(.4, 0, .2, 1);
}
.site-header.preview-tab-header {
  position: sticky;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.site-header.is-scrolled { --header-halo: #ffffffb3; color: var(--ink); }
.site-header:is(.has-background, .preview-tab-header) {
  --header-halo: transparent;
  background: var(--white);
  box-shadow: 0 1px var(--line);
}
.site-header.is-hidden:not(.menu-open):not(.search-open):not(:focus-within) { transform: translateY(-100%); }
.site-header :focus-visible { outline: 2px solid var(--lavender); outline-offset: 4px; }
.site-header.is-scrolled :focus-visible, .site-header :is(.mobile-nav, .search-panel) :focus-visible { outline-color: var(--plum); }

.site-header > .header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 1320px;
  height: var(--header-height);
  margin-inline: auto;
  padding-inline: var(--header-gutter);
}
.site-header .brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  width: 132px;
  height: 64px;
  text-decoration: none;
}
.site-header .brand img {
  display: block;
  width: 132px;
  max-width: none;
  height: auto;
  filter: drop-shadow(0 1px 1px var(--header-halo));
  transform: translateX(-18px);
}
.site-header .brand .logo-dark,
.site-header.is-scrolled .brand .logo-light { display: none; }
.site-header.is-scrolled .brand .logo-dark { display: block; }

.site-header .primary-nav,
.site-header .header-inner > .header-cta,
.site-header > .search-panel { display: none; }
.site-header .round-button {
  display: grid;
  place-items: center;
  position: relative;
  flex: none;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color 300ms ease-out, color 300ms ease-out;
}
.site-header .round-button > svg { width: 18px; height: 18px; }
.site-header .search-toggle { display: none; }
.site-header .round-button:hover { background: #ffffff24; }
.site-header.is-scrolled .round-button {
  border-color: color-mix(in srgb, var(--ink) 33%, transparent);
}
.site-header.is-scrolled .round-button:hover { background: var(--lavender); }
.site-header .menu-toggle { width: 44px; height: 44px; margin-left: auto; }
.site-header .menu-toggle .menu-close { display: none; }
.site-header:not(.is-scrolled) .menu-toggle {
  background: var(--white);
  color: var(--plum-deep);
  border-color: var(--white);
}
.site-header:not(.is-scrolled) .menu-toggle:hover { background: var(--lavender); }
.site-header .menu-toggle[aria-expanded="true"] > svg { visibility: hidden; }
.site-header .menu-toggle[aria-expanded="true"]::before,
.site-header .menu-toggle[aria-expanded="true"]::after {
  content: "";
  position: absolute;
  top: calc(50% - .5px);
  left: calc(50% - 6px);
  width: 12px;
  border-top: 1px solid;
  transform: rotate(45deg);
}
.site-header .menu-toggle[aria-expanded="true"]::after { transform: rotate(-45deg); }

body.preview-menu-lock { overflow: hidden; }
.site-header > .mobile-nav {
  position: fixed;
  inset: var(--header-height) 0 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
  height: calc(100dvh - var(--header-height));
  padding: 0 0 40px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--white);
  color: var(--ink);
  transform: translateX(100%);
  transition: transform 500ms var(--header-ease);
}
.site-header.menu-open > .mobile-nav { transform: none; }
.site-header.menu-open { z-index: 130; }
.site-header [hidden] { display: none !important; }
.site-header .mobile-nav-links { display: flex; flex-direction: column; }
.site-header .mobile-nav-links a:not(.header-cta) {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 16px var(--header-gutter);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.site-header .mobile-nav-links a:hover { color: var(--plum); }
.site-header .mobile-nav-links .header-cta { margin: 40px var(--header-gutter) 0; }
.site-header .mobile-nav-search { margin-inline: var(--header-gutter); }
.site-header .mobile-nav-search .site-search-form { position: relative; }
.site-header .mobile-nav-search .site-search { padding-right: 48px; }
.site-header .mobile-nav-search .search-submit {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
}
.site-header :is(.mobile-nav-search, .search-panel) label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.site-header .site-search {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid color-mix(in srgb, var(--plum) 66%, var(--white));
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
.site-header .site-search-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 12px 16px;
  list-style: none;
}
.site-header .site-search-list:not(:has(li:not([hidden]))) { display: none; }
.site-header .site-search-list a { display: block; padding: 6px 0; text-decoration: none; }
.site-header .site-search-list a:hover { text-decoration: underline; }

.site-header .header-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 48px;
  padding: 11px 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
  box-shadow: none;
  transition: background-color 300ms ease-out, color 300ms ease-out, opacity 300ms ease-out;
}
.site-header.is-scrolled .header-cta, .site-header .mobile-nav .header-cta {
  background: var(--lavender);
  color: var(--plum);
}
.site-header .header-cta:hover { background: var(--plum); color: var(--white); }
.site-header .button-icon {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 16px;
  line-height: 13px;
  transition: transform 300ms ease-out;
}
.site-header .header-cta:hover .button-icon { transform: translateX(2px); }
.site-header .button-text { display: grid; overflow: hidden; padding-right: 2px; margin-right: -2px; font-size: inherit; }
.site-header .button-text > span { grid-area: 1 / 1; transition: transform 300ms cubic-bezier(.76, 0, .24, 1); }
.site-header .button-text > span[aria-hidden] { transform: translateY(100%); font-style: italic; font-weight: 650; }
.site-header a:is(:hover, :focus-visible) .button-text > span:first-child { transform: translateY(-100%); }
.site-header a:is(:hover, :focus-visible) .button-text > span[aria-hidden] { transform: translateY(0); }

@media (min-width: 1024px) {
  .site-header { --header-height: 134px; }
  .site-header .brand { width: 148px; height: 90px; }
  .site-header .brand img { width: 152px; transform: translate(-21px, 6px); }
  .site-header .primary-nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 32px;
    margin-left: auto;
    transition: opacity 300ms ease-out;
  }
  .site-header .primary-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    min-width: 0;
    padding: 4px 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: 16px;
    font-weight: 400;
    text-shadow: 0 1px 2px var(--header-halo);
    white-space: nowrap;
    text-decoration: none;
  }
  .site-header .primary-nav a:hover { color: var(--lavender); }
  .site-header.is-scrolled .primary-nav a:hover { color: var(--plum); }
  .site-header .header-inner > .header-cta { display: inline-flex; margin-left: 12px; }
  .site-header .menu-toggle, .site-header > .mobile-nav { display: none; }
  .site-header .search-toggle { z-index: 1; display: grid; width: 48px; height: 48px; }
  .site-header.search-open .search-toggle { color: var(--ink); border-color: transparent; }
  .site-header.search-open .primary-nav, .site-header.search-open .header-inner > .header-cta {
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity 300ms ease-out, visibility 0ms 300ms;
  }
  .site-header > .search-panel {
    position: absolute;
    top: 43px;
    right: max(var(--header-gutter), calc((100% - 1320px) / 2 + var(--header-gutter)));
    display: block;
    width: 48px;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--white);
    color: var(--ink);
    opacity: 0;
    transition: width 500ms var(--header-ease), opacity 300ms ease-out;
  }
  .site-header.search-open > .search-panel { width: min(576px, 60vw); opacity: 1; }
  .site-header .search-panel > .page-container { padding: 0; }
  .site-header .search-panel .site-search { min-height: 46px; padding-right: 48px; border: 0; }
  .site-header .search-panel .search-submit { display: none; }
  .site-header .search-panel .site-search-list {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 14px 30px #30223924;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header, .site-header * { transition-duration: .01ms !important; }
}


:root {
--theme-surface: #fff;
--theme-surface-alt: #f1eeef;
--theme-accent: #4c355f;
--theme-border: #9f8aac;
--theme-error: #872d36;
--theme-success: #265c40;
}

.theme-toggle {
display: inline-grid;
place-items: center;
flex: none;
width: 44px;
height: 44px;
min-width: 44px;
min-height: 44px;
padding: 10px;
border: 1px solid currentColor;
border-radius: 50%;
background: transparent;
color: inherit;
cursor: pointer;
font: inherit;
}
.site-header .round-button.theme-toggle { display: grid; width: 44px; height: 44px; }
.site-header .round-button.theme-toggle > svg, .theme-toggle > svg { display: block; width: 20px; height: 20px; }
.theme-toggle:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.theme-sun { display: none; }
.theme-logo-filters { position: absolute; overflow: hidden; pointer-events: none; }
[data-theme="dark"] .theme-moon { display: none; }
[data-theme="dark"] .theme-sun { display: initial; }
.theme-select {
max-width: 100%;
min-height: 44px;
padding: 8px 12px;
border: 1px solid var(--theme-border);
border-radius: 8px;
background: var(--theme-surface);
color: var(--ink, #282332);
font: inherit;
font-size: .875rem;
cursor: pointer;
}
.theme-select option { background: var(--theme-surface); color: var(--ink, #282332); }
.theme-toggle:focus-visible, .theme-select:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.site-header.search-open .header-inner > .theme-toggle { visibility: hidden; pointer-events: none; opacity: 0; }
@media (max-width: 1023px) {
.site-header .header-inner > .theme-toggle { margin-left: auto; }
.site-header .header-inner > .theme-toggle ~ .menu-toggle { margin-left: 0; }
}

html[data-theme="dark"] {
color-scheme: dark;
--paper: #151219;
--ink: #f4eef8;
--muted: #b9afc3;
--line: #4b4054;
--lavender: #2b2333;
--theme-surface: #1e1825;
--theme-surface-alt: #27202f;
--theme-accent: #d9baf2;
--theme-border: #9984ab;
--theme-error: #ffadb4;
--theme-success: #a3d9b8;
--control-border: #9984ab;
--hover-wash: #ffffff14;
--focus-color: #e2c3fa;
}
html[data-theme="dark"] body:not(.gladio-site) { color: var(--ink); background: var(--paper); }
html[data-theme="dark"] body:not(.gladio-site) ::selection { background: #78548f; color: #fff; }
html[data-theme="dark"] body:not(.gladio-site) :focus-visible { outline-color: var(--theme-accent); }
html[data-theme="dark"] body:not(.gladio-site) :is(input, textarea, select) { accent-color: var(--theme-accent); }
html[data-theme="dark"] body:not(.gladio-site) :is(input, textarea)::placeholder { color: var(--muted); opacity: 1; }


html[data-theme="dark"] body:not(.gladio-site) .site-header:not(:has(.header-inner)),
html[data-theme="dark"] body:not(.gladio-site) .site-header:is(.has-background, .preview-tab-header) {
--header-halo: transparent;
background: var(--paper);
color: var(--ink);
border-color: var(--line);
}
html[data-theme="dark"] body:not(.gladio-site) .site-header.is-scrolled { --header-halo: #15121999; }
html[data-theme="dark"] body:not(.gladio-site) .header-logo,
html[data-theme="dark"] body:not(.gladio-site) .site-header .brand:not(:has(.logo-light)) .logo-dark { filter: brightness(0) invert(1); }
html[data-theme="dark"] body:not(.gladio-site) .site-header .brand .logo-light { display: block; }
html[data-theme="dark"] body:not(.gladio-site) .site-header .brand:has(.logo-light) .logo-dark { display: none; }
html[data-theme="dark"] body:not(.gladio-site) .primary-nav a { color: inherit; }
html[data-theme="dark"] body:not(.gladio-site) .primary-nav a:is(:hover, [aria-current="page"], [aria-current="location"]) {
color: var(--theme-accent);
background-color: var(--theme-surface-alt);
}
html[data-theme="dark"] body:not(.gladio-site) .site-header :is(.mobile-nav, .search-panel, .site-search-list, .site-search) {
background: var(--theme-surface);
color: var(--ink);
border-color: var(--theme-border);
}
html[data-theme="dark"] body:not(.gladio-site) .site-header .mobile-nav-links a:hover { color: var(--theme-accent); }
html[data-theme="dark"] body:not(.gladio-site) .site-header :is(.search-submit, .search-toggle) { color: inherit; }
html[data-theme="dark"] body:not(.gladio-site) .site-header.search-open .search-toggle { color: var(--ink); }
html[data-theme="dark"] body:not(.gladio-site) .site-header .header-cta {
background: var(--theme-surface-alt);
color: var(--ink);
border-color: var(--theme-border);
}
html[data-theme="dark"] body:not(.gladio-site) .site-header .header-cta:hover { background: var(--plum); color: #fff; }


html[data-theme="dark"] body:not(.gladio-site) :is(.section.alt, .hermetic-band, .closing-cta) { background: var(--theme-surface-alt); }
html[data-theme="dark"] body:not(.gladio-site) .brand-band {
background: radial-gradient(ellipse at 100% 0, #35283f, transparent 64%), var(--paper);
}
html[data-theme="dark"] body:not(.gladio-site) :is(.hermetic-media, .workspace-demo, .workspace-option, .legal-callout) { background: var(--theme-surface); border-color: var(--line); }
html[data-theme="dark"] body:not(.gladio-site) :is(.workspace-demo-board > div, .workspace-demo-board p, .account-flow, .taxi-teaser > div) { background: var(--theme-surface-alt); }
html[data-theme="dark"] body:not(.gladio-site) :is(.workspace-demo-bar, .workspace-demo-tabs, .taxi-teaser strong) { color: var(--theme-accent); }
html[data-theme="dark"] body:not(.gladio-site) .legal-page th { background: var(--theme-surface-alt); }
html[data-theme="dark"] body:not(.gladio-site) :is(.text-link, .contact-email, .role, .project-status, .product-copy .project-status, .project-breadcrumb a, .educator-screenshot-link) { color: var(--theme-accent); }
html[data-theme="dark"] body:not(.gladio-site) :is(.text-link, .contact-email):hover { color: #efdcff; }
html[data-theme="dark"] body:not(.gladio-site) :is(.button.secondary, .button.light, .button-outline) { color: var(--theme-accent); border-color: var(--theme-border); }
html[data-theme="dark"] body:not(.gladio-site) .button:not(.primary):not(.secondary):not(.light):not(.button-dark):not(.button-light):not(.button-outline):not(.header-cta) { background: var(--theme-surface-alt); color: var(--theme-accent); }
html[data-theme="dark"] body:not(.gladio-site) .button-light { background: #fff; color: #282332; }
html[data-theme="dark"] body:not(.gladio-site) .button:is(.secondary, .light, .button-outline):hover { color: #fff; background: var(--plum); }
html[data-theme="dark"] body:not(.gladio-site) .button-dark { border-color: var(--theme-border); }
html[data-theme="dark"] body:not(.gladio-site) :is(.person-initials, .portrait.placeholder) { background: var(--theme-surface-alt); color: var(--theme-accent); }
html[data-theme="dark"] body:not(.gladio-site) .people-list a:last-child .person-initials { background: #21382d; color: #b1d6bf; }
html[data-theme="dark"] body:not(.gladio-site) .ticker { background: var(--theme-surface); }
html[data-theme="dark"] body:not(.gladio-site) .ticker-track { color: var(--theme-accent); }
html[data-theme="dark"] body:not(.gladio-site) .ticker-track .gold { color: #dfbd76; }
html[data-theme="dark"] body:not(.gladio-site) .ticker-track .green { color: #a3cfb4; }
html[data-theme="dark"] body:not(.gladio-site) .zoom-sticky { background: var(--paper); }
html[data-theme="dark"] body:not(.gladio-site) .model-notebook { background: var(--theme-surface-alt); border-color: var(--line); box-shadow: none; }
html[data-theme="dark"] body:not(.gladio-site) .model-notebook :is(.notebook-heading, .notebook-equation, .notebook-note, figcaption),
html[data-theme="dark"] body:not(.gladio-site) .chart-legend { color: var(--muted); }
html[data-theme="dark"] body:not(.gladio-site) .notebook-title { color: var(--ink); }
html[data-theme="dark"] body:not(.gladio-site) .econ-grid .card { background: var(--theme-surface); }
html[data-theme="dark"] body:not(.gladio-site) .econ-svg { background: #faf9f6; color: #282332; border-radius: 6px; }
html[data-theme="dark"] body:not(.gladio-site) :is(.series-media, .statistics-media, .team-media) { background: #fff; }
html[data-theme="dark"] body:not(.gladio-site) :is(.project-visual--logo, .product-card .project-visual, .carousel-preview, .carousel-image, .hermetic-media) { background: var(--theme-surface-alt); }
html[data-theme="dark"] body:not(.gladio-site) :is(.project-visual--logo, .product-card .project-visual, .carousel-preview, .carousel-image, .hermetic-media) > img { filter: brightness(0) invert(1); }
html[data-theme="dark"] body:not(.gladio-site) .project-visual[data-project-art="arcana"] > img { filter: url(#vcesr-white-ink); }
html[data-theme="dark"] body:not(.gladio-site) .project-visual[data-project-art="gladio"] > img { filter: url(#vcesr-colour-ink); }
html[data-theme="dark"] body:not(.gladio-site) .project-visual:is([data-project-art="econcards"], [data-project-art="boom-and-bust"], [data-project-art="causal-capybara"]) > img { filter: none; }
html[data-theme="dark"] body:not(.gladio-site) .project-visual[data-project-art="causal-capybara"] > img { width: auto; height: auto; max-width: 100%; max-height: 100%; aspect-ratio: 1; padding: 0; border-radius: 21.5%; }
html[data-theme="dark"] body:not(.gladio-site) :is(.carousel-preview, .carousel-image)[data-project-art="causal-capybara"] { display: flex; align-items: center; justify-content: center; padding: 12px; }
html[data-theme="dark"] body:not(.gladio-site) .hero-cinema .hero-logo { filter: brightness(0) invert(1); }
html[data-theme="dark"] body:not(.gladio-site) .project-mark.educator-art,
html[data-theme="dark"] body:not(.gladio-site) #toolkit .project:last-child .project-mark { background: #ede8f1; color: #4c355f; }


html[data-theme="dark"] body:not(.gladio-site) .hero { --lavender: #ede8f1; }
html[data-theme="dark"] body:not(.gladio-site) h2 strong { color: var(--theme-accent); }
html[data-theme="dark"] body:not(.gladio-site) .coverage-explorer { background-color: var(--theme-surface-alt); color: var(--ink); }
html[data-theme="dark"] body:not(.gladio-site) .coverage-search { background: var(--theme-surface); color: var(--ink); }
html[data-theme="dark"] body:not(.gladio-site) .service-select { background: var(--theme-surface); color: var(--ink); border-color: var(--theme-border); }
html[data-theme="dark"] body:not(.gladio-site) .service-select:is(:hover, [aria-expanded="true"]) { background: var(--plum); color: #fff; }
html[data-theme="dark"] body:not(.gladio-site) .service-select:disabled { background: transparent; color: inherit; }
html[data-theme="dark"] body:not(.gladio-site) :is(.carousel-card, .coverage-detail, .site-footer) { --focus-color: #e2c3fa; }
html[data-theme="dark"] body:not(.gladio-site) .carousel-detail .button-outline { color: #fff; border-color: #d9baf2; }
html[data-theme="dark"] body:not(.gladio-site) .carousel-detail .button-outline:hover { background: #ffffff26; }
html[data-theme="dark"] body:not(.gladio-site) .site-footer { background: var(--theme-surface); color: var(--ink); }
html[data-theme="dark"] body:not(.gladio-site) .site-footer a { color: inherit; }
html[data-theme="dark"] body:not(.gladio-site) .site-footer :is(.contact-heading, h2 strong) { color: var(--theme-accent); }
html[data-theme="dark"] body:not(.gladio-site) .footer-brand > img { filter: brightness(0) invert(1); }
html[data-theme="dark"] body:not(.gladio-site) .preference-actions button { color: var(--ink); border-color: var(--theme-border); }
html[data-theme="dark"] body:not(.gladio-site) .preference-actions button:is(:hover, [aria-pressed="true"]) { background: var(--theme-surface-alt); }
html[data-theme="dark"] body:not(.gladio-site) .contact-form :is(input, textarea) { background: var(--theme-surface); color: var(--ink); border-color: var(--theme-border); }
html[data-theme="dark"] body:not(.gladio-site) .contact-form label { color: var(--ink); }
html[data-theme="dark"] body:not(.gladio-site) .contact-form-status[data-state="error"] { color: var(--theme-error); }
html[data-theme="dark"] body:not(.gladio-site) .contact-form-status[data-state="success"] { color: var(--theme-success); }


html[data-theme="dark"] body:not(.gladio-site) .educator-page { --educator-mist: #27202f; --educator-ink: #f4eef8; --educator-muted: #b9afc3; }
html[data-theme="dark"] body:not(.gladio-site) :is(.educator-learning, .educator-sweden, .educator-schools, .educator-faq) { background: var(--paper); }
html[data-theme="dark"] body:not(.gladio-site) :is(.educator-experiment, .educator-textbook, .educator-us, .educator-pricing) { background: var(--theme-surface-alt); }
html[data-theme="dark"] body:not(.gladio-site) :is(.educator-workspace, .educator-country-card, .educator-license, .educator-engine-model, .educator-textbook figure, .educator-us figure) { background: var(--theme-surface); color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] body:not(.gladio-site) :is(.educator-gallery-controls, .educator-model-layer, .educator-opening-dates li, .educator-questions details[open]) { background: var(--theme-surface-alt); color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] body:not(.gladio-site) .educator-gallery-controls button { color: var(--muted); }
html[data-theme="dark"] body:not(.gladio-site) .educator-gallery-controls button:is(:hover, [aria-pressed="true"]) { background: var(--plum); color: #fff; }
html[data-theme="dark"] body:not(.gladio-site) :is(.educator-intro-copy .project-lead, .educator-workspace figcaption, .educator-model-layer p, .educator-engine-model figcaption, .educator-controls-note, .educator-country-heading p, .educator-country-details dt, .educator-country-sources, .educator-calibration-note, .educator-payment-status, .educator-license-note, .educator-textbook figcaption, .educator-us figcaption, .educator-us-context) { color: var(--muted); }
html[data-theme="dark"] body:not(.gladio-site) :is(.educator-workspace [data-educator-caption], .educator-country-details dd, .educator-school-list li, .educator-inclusions, .educator-textbook-inclusions) { color: var(--ink); }
html[data-theme="dark"] body:not(.gladio-site) .educator-brand { padding: 16px; background: var(--theme-surface-alt); border-radius: 12px; }
html[data-theme="dark"] body:not(.gladio-site) .educator-brand img { filter: brightness(0) invert(1); }
html[data-theme="dark"] body:not(.gladio-site) :is(.educator-feature-icon, .educator-inclusions li::before, .educator-questions summary::after) { color: var(--theme-accent); }
html[data-theme="dark"] body:not(.gladio-site) .educator-steps li > span { color: var(--theme-accent); background: var(--theme-surface-alt); }
html[data-theme="dark"] body:not(.gladio-site) :is(.educator-questions details, .educator-control-grid article, .educator-country-details > div, .educator-calibration-note, .educator-steps li, .educator-school-list li, .educator-license-note, .educator-workspace figcaption, .educator-textbook figcaption, .educator-us figcaption) { border-color: var(--line); }
html[data-theme="dark"] body:not(.gladio-site) .educator-institution .educator-inclusions { color: #fff; }


html[data-theme="dark"] body:not(.gladio-site) .capy-page { --capy-soft: #1e1825; --capy-tint: #2b2333; --capy-line: #4b4054; }
html[data-theme="dark"] body:not(.gladio-site) :is(.capy-screen, .capy-catalogue-controls, .capy-empty, .capy-code-example) { background: var(--theme-surface); }
html[data-theme="dark"] body:not(.gladio-site) :is(.capy-code-panel--knowledge, .capy-learning, .capy-faq) { background: var(--theme-surface-alt); border-color: var(--line); }
html[data-theme="dark"] body:not(.gladio-site) .capy-catalogue-controls :is(input, select) { background: var(--theme-surface); color: var(--ink); border-color: var(--theme-border); }
html[data-theme="dark"] body:not(.gladio-site) :is(.capy-reset, .capy-catalogue-controls label, .capy-method-status, .capy-page .text-link, .capy-mcp-tools dt, .capy-method-group > summary::after) { color: var(--theme-accent); }
html[data-theme="dark"] body:not(.gladio-site) :is(.capy-code-example pre, .capy-hero-screen figcaption span:first-child) { color: var(--ink); }
html[data-theme="dark"] body:not(.gladio-site) :is(.capy-code-panel--knowledge .capy-code-copy p, .capy-questions p) { color: var(--muted); }
html[data-theme="dark"] body:not(.gladio-site) .capy-method-status--teaching { color: #ead6b8; background: #3b2f22; border-color: #806b50; }
html[data-theme="dark"] body:not(.gladio-site) .capy-questions details { border-color: var(--line); }
html[data-theme="dark"] body:not(.gladio-site) :is(.capy-closing, .educator-engine, .story-close) .text-link { color: #fff; }
html[data-theme="dark"] body:not(.gladio-site) .capy-closing .button.primary:hover { background: #ede8f1; }


html[data-theme="dark"] body:not(.gladio-site) #vcesr-privacy { color: var(--ink); }
html[data-theme="dark"] body:not(.gladio-site) #vcesr-privacy :is(button, .privacy-banner, .privacy-dialog) { background: var(--theme-surface); color: var(--ink); border-color: var(--theme-border); }
html[data-theme="dark"] body:not(.gladio-site) #vcesr-privacy button:hover { background: var(--theme-surface-alt); }
html[data-theme="dark"] body:not(.gladio-site) #vcesr-privacy .privacy-option { border-color: var(--line); }
html[data-theme="dark"] body:not(.gladio-site) #vcesr-privacy [data-signal] { background: var(--theme-surface-alt); }
html[data-theme="dark"] body:not(.gladio-site) #vcesr-privacy .privacy-dialog::backdrop { background: #09060dc7; }


body.gladio-site { color-scheme: dark; }
body.gladio-site .theme-toggle { background: var(--gladio-button, #c92334); color: #fff; border-color: var(--gladio-red, #e52c3d); }
body.gladio-site .theme-toggle:hover { background: var(--gladio-button-hover, #ad1b2b); }
body.gladio-site .theme-select { background: var(--gladio-surface, #13171d); color: var(--gladio-text, #f0f2f5); border-color: var(--gladio-red, #e52c3d); border-radius: 0; }
body.gladio-site .theme-select option { background: var(--gladio-surface, #13171d); color: var(--gladio-text, #f0f2f5); }
body.gladio-site :is(.theme-toggle, .theme-select):focus-visible { outline-color: #ff7c8a; }

@media (forced-colors: active) {
.theme-toggle, .theme-select { border: 1px solid ButtonText; }
.theme-toggle:focus-visible, .theme-select:focus-visible { outline-color: Highlight; }
}
@media print {
html[data-theme="dark"] { color-scheme: light; --paper: #fff; --ink: #222; --muted: #444; --line: #aaa; --lavender: #f2eef5; --theme-surface: #fff; --theme-surface-alt: #f6f4f7; --theme-accent: #4c355f; --theme-border: #aaa; }
html[data-theme="dark"] body:not(.gladio-site) :is(.footer-brand > img, .hero-cinema .hero-logo, .project-visual--logo > img, .product-card .project-visual > img, .hermetic-media > img, .educator-brand img) { filter: none; }
.theme-toggle, .theme-select { display: none !important; }
}
