/* Hallmark · shape: kept content, recomposed as an academy prospectus · genre: editorial · theme: Loom (by request, picked from three comps) · redesign: full · copy: verbatim · job: book a free demo
 * hero: Settled · nav: one line, wordmark left, the eight links and the demo button right, an ink rule under it · footer: mast, the wordmark and slogan over the links · imagery: photographs (the school's own, in colour, softened) · signature: the live Puzzle of the Day board, ivory and walnut, set large · loom: ecru
 * axes: light/roman-serif/cool · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S5 R5 V4 · weakest: P, the words are kept verbatim so the argument comes from order and scale; led with the alumni and the playable puzzle instead of a feature grid */
/* Hallmark · waive 8 · sections follow the school's own homepage content, recomposed; the alumni moved up and the fee list left the homepage at the owner's request · the content is verbatim from the live homepage */
/* Hallmark · motion (Emil Kowalski layer): one fade-up reveal per group, press scale 0.97 on every control, underlines drawn with scaleX, menu panel scales from its trigger, photographs sit still; clippings answer a press with scale 0.99; transform and opacity only, custom ease-out, all under 300ms except the 520ms reveal */
/* Hallmark · waive 81 · the book-cover and Instagram slots stay empty until the school sends covers and the feed widget · both placeholders exist on the live homepage today */
/* Hallmark · dismissed 59 · twelve sections because every block on the live homepage is kept, none cut under copy: verbatim */
/* Hallmark · dismissed 46a · 57+ schools, 50,000+, 2,000+, 4 and 8 all appear on the live homepage as the school states them */
@import url("./tokens.css");
@import url("./base.css");

:root {
  --nav-h: 84px;
  --color-board-light: oklch(95.5% 0.014 85); --color-board-dark: oklch(66% 0.035 72);
  --color-indigo-rule: oklch(50% 0.09 266); --color-indigo-muted: oklch(86% 0.03 267);
  /* motion: strong custom curves, short durations */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-press: 160ms; --dur-reveal: 520ms;
  /* the chess motif: two ranks of the puzzle board's own squares */
  --checker: conic-gradient(var(--color-board-light) 25%, var(--color-board-dark) 0 50%, var(--color-board-light) 0 75%, var(--color-board-dark) 0) 0 0 / 16px 16px;
}
html { scroll-padding-top: calc(var(--nav-h) + var(--space-md)); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------- motion: the one reveal (only when motion.js runs; visible without it) ---------- */
.js-motion [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
.js-motion [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-motion [data-reveal] { transform: none; } }

/* ---------- shared ---------- */
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }
body { font-size: 1.0625rem; }
h1, h2 { font-weight: 400; letter-spacing: var(--tracking-display); line-height: 1.04; }
h1 { line-height: 1.02; }
h3 { font-family: var(--font-body); font-weight: 500; font-size: var(--text-title); line-height: 1.25; letter-spacing: 0; }
.lead { color: var(--color-muted); }
.lead--strong { color: var(--color-ink); font-weight: 500; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-ink); border-radius: 0; background: transparent; color: var(--color-ink); font: 500 0.9375rem/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) ease, border-color var(--dur-short) ease, color var(--dur-short) ease, transform var(--dur-press) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--color-paper-2); }
  .btn--primary:hover { background: var(--color-accent-2); border-color: var(--color-accent-2); }
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }

/* text links: a hairline at rest, an indigo rule drawn from the left on hover */
.textlink { position: relative; align-self: flex-start; padding-block: var(--space-2xs); font-weight: 500; text-decoration: none; border-bottom: var(--rule-hair) solid currentColor; }
.textlink::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--color-accent); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-short) var(--ease-out); }
.textlink:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .textlink:hover::after { transform: scaleX(1); } }
a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

.photo { position: relative; margin: 0; overflow: hidden; background: var(--color-paper-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; color: transparent; filter: saturate(0.88) contrast(0.96); outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; }

.split-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-md) var(--gap-columns); align-items: end; margin-bottom: var(--space-2xl); }
.split-head > h2 { grid-column: 1 / span 6; }
.split-head > :not(h2) { grid-column: 8 / span 5; display: grid; gap: var(--space-xs); }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-ink) solid var(--color-ink); }
.site-head__top { display: flex; align-items: center; gap: var(--space-xl); min-height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: var(--space-sm); margin-right: auto; text-decoration: none; }
.brand img { width: 50px; height: 50px; }
.brand__text { display: grid; gap: var(--space-3xs); }
.brand__name { font: 400 1.3125rem/1.1 var(--font-display); white-space: nowrap; }
.brand__meta { display: flex; gap: var(--space-xs); font-size: var(--text-xs); color: var(--color-muted); }
.brand__meta span + span { padding-left: var(--space-xs); border-left: var(--rule-hair) solid var(--color-rule); }
.site-nav__list { display: flex; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }
.site-nav__list a { position: relative; display: inline-flex; align-items: center; min-height: 44px; font-size: var(--text-sm); font-weight: 500; white-space: nowrap; text-decoration: none; }
.site-nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--color-accent); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-short) var(--ease-out); }
.site-nav__list a[aria-current="page"]::after { background: var(--color-ink); transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .site-nav__list a:hover::after { transform: scaleX(1); } }
.menu { display: none; position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu__panel { position: absolute; right: 0; top: calc(100% + var(--space-xs)); display: grid; min-width: 15rem; background: var(--color-paper); border: var(--rule-hair) solid var(--color-ink); transform-origin: top right; transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out); }
@starting-style { .menu[open] .menu__panel { opacity: 0; transform: scale(0.97) translateY(-4px); } }
.menu__panel a { padding: var(--space-sm) var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); font-weight: 500; text-decoration: none; }
.menu__panel a:first-child { border-top: 0; }
@media (hover: hover) and (pointer: fine) { .menu__panel a:hover { background: var(--color-paper-2); } }

/* ---------- 1. hero ---------- */
.hero { display: grid; align-items: center; min-height: calc(100svh - var(--nav-h)); padding-block: var(--space-xl) var(--space-2xl); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-3xl); align-items: center; }
.hero__text { display: grid; gap: var(--space-lg); justify-items: start; }
.hero h1 { max-width: 12ch; }
.hero .lead { max-width: 44ch; color: var(--color-ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xs); }
.places { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; font-size: var(--text-sm); color: var(--color-muted); }
.places li { padding-inline: var(--space-sm); border-left: var(--rule-hair) solid var(--color-rule); }
.places li:first-child { padding-left: 0; border-left: 0; }
.hero__figure { margin: 0; }
.photo--hero { aspect-ratio: 1100 / 869; max-height: 62svh; width: 100%; }
.hero__years { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--space-2xs) var(--space-lg); margin-top: var(--space-md); padding-top: var(--space-md); border-top: var(--rule-ink) solid var(--color-ink); }
.hero__years-big { font: 400 var(--text-2xl)/1.1 var(--font-display); }
.hero__years-small { font-size: var(--text-sm); color: var(--color-muted); }
.hero__slogan { grid-column: 2; grid-row: 1 / span 2; text-align: right; font: 400 var(--text-xl)/1.1 var(--font-display); color: var(--color-accent); }

/* ---------- 2. figures (the one indigo band) ---------- */
.figures { background: var(--color-accent); color: var(--color-accent-ink); }
.figures::before, .site-foot::before { content: ""; display: block; height: 16px; background: var(--checker); }
.figures__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.figures__grid > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--space-xs); padding: var(--space-xl); border-left: var(--rule-hair) solid var(--color-indigo-rule); }
.figures__grid > div:first-child { padding-left: 0; border-left: 0; }
.figures__grid dd { margin: 0; font: 400 var(--text-display-s)/1 var(--font-display); font-variant-numeric: lining-nums tabular-nums; }
.figures__grid dt { font-size: var(--text-sm); color: var(--color-indigo-muted); }

/* ---------- 3. puzzle of the day ---------- */
.potd { padding-block: var(--section-gap); }
.potd__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-3xl); align-items: center; }
.potd-boardcol { width: 100%; max-width: 600px; justify-self: start; }
.potd-board { width: 100%; aspect-ratio: 1; border: var(--rule-ink) solid var(--color-ink); background: var(--color-board-light); }
.potd-board.shake { animation: potdshake 0.35s; }
@keyframes potdshake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
@media (prefers-reduced-motion: reduce) { .potd-board.shake { animation: none; } }
.potd-info { display: grid; gap: var(--space-md); justify-items: start; }
.potd-q { font: 400 var(--text-2xl)/1.15 var(--font-display); color: var(--color-ink-2); margin-bottom: var(--space-xs); }
.potd-meta { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; border-block: var(--rule-hair) solid var(--color-rule); }
.potd-meta li { padding: var(--space-xs) var(--space-md); font-size: var(--text-sm); font-weight: 500; border-left: var(--rule-hair) solid var(--color-rule); }
.potd-meta li:first-child { padding-left: 0; border-left: 0; }
.potd-meta li.turn { color: var(--color-accent); }
.potd-src { font-size: var(--text-sm); color: var(--color-muted); }
.potd-msg { width: 100%; min-height: 64px; padding: var(--space-md) var(--space-lg); background: var(--color-paper-2); border-left: var(--rule-ink) solid var(--color-ink); font-weight: 500; font-size: var(--text-lg); line-height: 1.4; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.potd-msg.ok { border-left-color: var(--color-success); }
.potd-msg.bad { border-left-color: var(--color-error); }
.potd-msg.win { background: var(--color-accent); color: var(--color-accent-ink); border-left-color: var(--color-accent); }
.potd-btns { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.potd .cm-chessboard .board .square.white { fill: var(--color-board-light); }
.potd .cm-chessboard .board .square.black { fill: var(--color-board-dark); }
.potd .cm-chessboard .board .border { fill: var(--color-ink); }
.potd .cm-chessboard .coordinates .coordinate { fill: var(--color-ink-2); font-family: var(--font-body); font-weight: 500; }
.potd .cm-chessboard .markers .marker.marker-potd-ok { fill: var(--color-success); opacity: 0.5; }
.potd .cm-chessboard .markers .marker.marker-potd-bad { fill: var(--color-error); opacity: 0.55; }
.potd .cm-chessboard .markers .marker.marker-potd-hint { stroke: var(--color-accent); stroke-width: 5px; opacity: 1; }

/* ---------- this month at DCS (the school's monthly news strip) ---------- */
.month { padding-block: var(--space-2xl); border-block: var(--rule-ink) solid var(--color-ink); }
.month__grid { display: grid; grid-template-columns: auto minmax(0, 3fr) minmax(0, 5fr) auto; gap: var(--space-lg) var(--space-2xl); align-items: center; }
.month__date { display: grid; place-items: center; width: 96px; aspect-ratio: 1; background: var(--color-accent); color: var(--color-accent-ink); text-align: center; }
.month__m { font: 400 var(--text-2xl)/1 var(--font-display); }
.month__y { margin-top: calc(-1 * var(--space-md)); font-size: var(--text-sm); color: var(--color-indigo-muted); font-variant-numeric: lining-nums tabular-nums; }
.month__head h2 { font-size: var(--text-section); }
.month__when { margin-top: var(--space-2xs); font-size: var(--text-sm); color: var(--color-muted); }
.month__list { display: grid; margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule); }
.month__list li { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: var(--space-md); align-items: baseline; padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
.month__kind { font-size: var(--text-sm); font-weight: 500; color: var(--color-accent); }
.month__list a { font-weight: 500; text-decoration: none; border-bottom: var(--rule-hair) solid currentColor; transition: border-color var(--dur-short) ease; }
@media (hover: hover) and (pointer: fine) { .month__list a:hover { border-color: var(--color-accent); } }
@media (max-width: 75rem) { .month__grid { grid-template-columns: auto minmax(0, 1fr); } .month__list { grid-column: 1 / -1; } .month__btn { grid-column: 1 / -1; justify-self: start; } }
@media (max-width: 40rem) { .month__date { width: 72px; } .month__m { font-size: var(--text-xl); } .month__list li { grid-template-columns: minmax(0, 1fr); gap: var(--space-3xs); } }

/* ---------- 4. why parents ---------- */
.why { padding-block: var(--section-gap-s) var(--section-gap); border-top: var(--rule-hair) solid var(--color-rule); }
.why__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-md) var(--gap-columns); margin-bottom: var(--space-2xl); }
.why__head h2 { grid-column: 1 / -1; font: 500 var(--text-lg)/1.3 var(--font-body); color: var(--color-muted); max-width: none; }
.statement { grid-column: 1 / span 10; font: 400 var(--text-display)/1.02 var(--font-display); letter-spacing: var(--tracking-display); max-width: 18ch; text-wrap: balance; }
.why__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); margin: 0; padding: 0; list-style: none; }
.why__grid li { display: grid; align-content: start; gap: var(--space-sm); padding-top: var(--space-lg); border-top: var(--rule-ink) solid var(--color-ink); }
.why__grid p { color: var(--color-muted); }

/* ---------- 6. alumni ---------- */
.alumni { padding-block: var(--section-gap-s) var(--section-gap); background: var(--color-paper-2); }
.alumni .split-head > h2 { font-size: var(--text-display); }
.alumni__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap-columns); margin: 0 0 var(--space-2xl); padding: 0; list-style: none; }
.alumni__grid > li { display: flex; flex-direction: column; gap: var(--space-xs); padding-top: var(--space-md); border-top: var(--rule-ink) solid var(--color-ink); font-size: var(--text-sm); line-height: 1.5; color: var(--color-ink-2); }
.photo--portrait { aspect-ratio: 4 / 5; margin-bottom: var(--space-sm); background: var(--color-paper-3); }
.photo--portrait img { object-position: 50% 15%; }
.title-tag { display: block; margin-bottom: var(--space-xs); font: 400 clamp(2.25rem, 1.6vw + 1.5rem, 3.25rem)/0.95 var(--font-display); letter-spacing: var(--tracking-display); color: var(--color-accent); }
.alumni__grid h3 { font-size: var(--text-lg); color: var(--color-ink); padding-bottom: var(--space-xs); margin-bottom: var(--space-2xs); border-bottom: var(--rule-hair) solid var(--color-rule); }
.facts { display: grid; gap: var(--space-3xs); margin: 0; padding: 0; list-style: none; color: var(--color-muted); }

/* ---------- 7. schools ---------- */
.schools { padding-block: var(--section-gap-s) var(--section-gap); border-top: var(--rule-hair) solid var(--color-rule); }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); margin-bottom: var(--space-xl); }
.quotes figure { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-xl); margin: 0; padding-top: var(--space-lg); border-top: var(--rule-ink) solid var(--color-ink); }
.quotes blockquote { margin: 0; }
.quotes blockquote::before { content: "“"; display: block; margin-bottom: calc(-1 * var(--space-sm)); font: 400 7.5rem/0.75 var(--font-display); color: var(--color-accent); }
.quotes blockquote p { font: 400 var(--text-2xl)/1.25 var(--font-display); letter-spacing: var(--tracking-display); }
.quotes figcaption { display: grid; gap: var(--space-2xs); font-size: var(--text-sm); color: var(--color-muted); }
.quotes figcaption strong { color: var(--color-ink); font-size: var(--text-md); font-weight: 500; }

/* ---------- 8. news ---------- */
.news { padding-block: var(--section-gap-s); background: var(--color-paper-2); }
.news__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); margin: 0 0 var(--space-2xl); padding: 0; list-style: none; }
.news__grid a { display: grid; gap: var(--space-md); text-decoration: none; }
.photo--clip { display: block; aspect-ratio: 3 / 4; }
.photo--clip img { object-position: 50% 0; }
.news__grid a .photo--clip { transition: transform var(--dur-press) var(--ease-out); }
.news__grid a:active .photo--clip { transform: scale(0.99); }
.news__title { justify-self: start; font: 500 var(--text-lg)/1.3 var(--font-body); border-bottom: var(--rule-hair) solid transparent; transition: border-color var(--dur-short) ease; }
@media (hover: hover) and (pointer: fine) { .news__grid a:hover .news__title { border-color: var(--color-accent); } }

/* ---------- 9. books ---------- */
.books { padding-block: var(--section-gap) var(--section-gap-s); }
.books__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-3xl); }
.books__cell { display: flex; flex-direction: column; gap: var(--space-md); padding-top: var(--space-lg); border-top: var(--rule-ink) solid var(--color-ink); }
.books__cell h2 { font: 500 var(--text-lg)/1.3 var(--font-body); color: var(--color-muted); }
.books__cell h3 { font: 400 var(--text-section)/1.04 var(--font-display); letter-spacing: var(--tracking-display); max-width: none; overflow-wrap: break-word; }
.covers { background: none; overflow: visible; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); margin-block: var(--space-sm); }
.cover { aspect-ratio: 3 / 4; display: grid; place-items: center; background: var(--color-paper-3); font-size: var(--text-sm); color: var(--color-muted); }
.feed { flex: 1; min-height: 260px; display: grid; place-items: center; margin-block: var(--space-sm); background: var(--color-paper-3); font-size: var(--text-sm); color: var(--color-muted); text-align: center; padding: var(--space-lg); }
.social { display: flex; flex-wrap: wrap; gap: var(--space-xs); }

/* ---------- 10. branches ---------- */
.branches { padding-block: var(--section-gap-s) var(--section-gap-l); }
.branches__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2xl) var(--gap-columns); margin: 0; padding: 0; list-style: none; }
.branches__grid > li { display: flex; flex-direction: column; gap: var(--space-sm); padding-top: var(--space-lg); border-top: var(--rule-ink) solid var(--color-ink); }
.branches__grid h3 { font: 400 var(--text-2xl)/1.1 var(--font-display); }
.branch__role { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.branches__grid address { font-style: normal; color: var(--color-ink-2); max-width: 36ch; }
.phones { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-xs) var(--space-md); font-variant-numeric: tabular-nums; }
.phones__label { font-size: var(--text-sm); color: var(--color-muted); }
.phones a { font-weight: 500; font-size: var(--text-lg); text-decoration: none; border-bottom: var(--rule-hair) solid currentColor; transition: border-color var(--dur-short) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .phones a:hover { border-color: var(--color-accent); } }
.branches__grid .textlink { margin-top: auto; }
.branches__schools { background: var(--color-paper-2); padding: var(--space-lg); }
.logos { min-height: 96px; display: grid; place-items: center; background: var(--color-paper-3); font-size: var(--text-sm); color: var(--color-muted); padding: var(--space-md); text-align: center; }
.branches__schools .btn { align-self: flex-start; margin-top: auto; }

/* ---------- 11. contact (paper band, the form on a sand well) ---------- */
.contact { padding-block: var(--section-gap-s); background: var(--color-paper-2); border-top: var(--rule-ink) solid var(--color-ink); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.contact__text { display: grid; gap: var(--space-lg); }
.contact__wa { font-size: var(--text-lg); font-weight: 500; }
.contact__wa a { text-decoration: none; border-bottom: var(--rule-ink) solid currentColor; transition: border-color var(--dur-short) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .contact__wa a:hover { border-color: var(--color-accent); } }
.sheet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-lg) var(--space-md); padding: var(--space-xl); background: var(--color-paper); color: var(--color-ink); border-top: var(--rule-ink) solid var(--color-accent); }
.sheet label { display: grid; gap: var(--space-xs); font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.sheet__wide { grid-column: 1 / -1; }
.sheet input, .sheet select { min-height: 50px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-muted); border-radius: 0; background: var(--color-paper); color: var(--color-ink); font-size: var(--text-md); font-weight: 400; outline: 2px solid transparent; outline-offset: 2px; transition: border-color var(--dur-short) ease, background-color var(--dur-short) ease; }
@media (hover: hover) and (pointer: fine) { .sheet input:hover, .sheet select:hover { background: var(--color-paper-2); } }
.sheet input:focus-visible, .sheet select:focus-visible { outline-color: var(--color-focus); }
.sheet input:user-invalid { border-color: var(--color-error); }
.sheet input:disabled, .sheet select:disabled { opacity: 0.55; cursor: not-allowed; }
.sheet__submit { grid-column: 1 / -1; min-height: 52px; font-size: var(--text-md); }
.sheet__done { grid-column: 1 / -1; margin: 0; font: 400 var(--text-2xl)/1.3 var(--font-display); color: var(--color-ink); }

/* ---------- shared by the inner pages ---------- */
.band--paper2 { background: var(--color-paper-2); }
.section-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-md) var(--gap-columns); align-items: end; margin-bottom: var(--space-2xl); }
.section-head h2 { grid-column: 1 / span 7; }
.section-head > :not(h2) { grid-column: 8 / span 5; }
.section-head .lead--strong { margin-bottom: var(--space-2xs); }
.yr { font-weight: 600; color: var(--color-accent); font-variant-numeric: lining-nums tabular-nums; }
.page-sec { padding-block: var(--section-gap-s); }
.page-hero { padding-block: var(--space-2xl) var(--space-3xl); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: center; }
.page-hero__text { display: grid; gap: var(--space-lg); justify-items: start; }
.page-hero h1 { font-size: clamp(3rem, 4.6vw + 1rem, 5.5rem); max-width: 14ch; overflow-wrap: break-word; min-width: 0; }
.page-hero .lead { max-width: 48ch; font-size: var(--text-lead); color: var(--color-ink-2); }
.page-hero__meta { font-size: var(--text-sm); color: var(--color-muted); }

/* disclosure (syllabus, FAQ): a quiet toggle, the plus turns to a cross, the body fades in */
.disclose summary { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; font-weight: 500; color: var(--color-ink); cursor: pointer; list-style: none; transition: transform var(--dur-press) var(--ease-out); }
.disclose summary::-webkit-details-marker { display: none; }
.disclose summary:active { transform: scale(0.97); }
.disclose summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.disclose summary > span:first-child { border-bottom: var(--rule-hair) solid currentColor; }
.disclose__icon { position: relative; flex: none; width: 12px; height: 12px; transition: transform var(--dur-short) var(--ease-out); }
.disclose__icon::before, .disclose__icon::after { content: ""; position: absolute; left: 0; top: 5px; width: 12px; height: 2px; background: var(--color-accent); }
.disclose__icon::after { transform: rotate(90deg); }
.disclose[open] .disclose__icon { transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) { .disclose summary:hover > span:first-child { border-color: var(--color-accent); } }
.disclose__body { margin-top: var(--space-xs); padding-top: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
@starting-style { .disclose[open] .disclose__body { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .disclose summary, .disclose__icon, .disclose__body { transition: none; } .disclose summary:active { transform: none; } }

/* static chess diagrams (This Month, Online Course) */
.diagram { display: block; width: 100%; height: auto; aspect-ratio: 1; outline: var(--rule-ink) solid var(--color-ink); outline-offset: -1px; }
.diagram .bd-l { fill: var(--color-board-light); }
.diagram .bd-d { fill: var(--color-board-dark); }
.diagram .bd-mark { fill: none; stroke: var(--color-accent); stroke-width: 4; }
.diagram .pcs text { font: 40px/1 "DejaVu Sans", "Segoe UI Symbol", "Noto Sans Symbols 2", serif; text-anchor: middle; paint-order: stroke; }
.diagram .pc-b { fill: var(--color-ink); stroke: var(--color-paper); stroke-width: 0.6; }
.diagram .pc-w { fill: var(--color-paper); stroke: var(--color-ink); stroke-width: 1.4; }

/* lightbox: a modal, so it scales from the centre; exit is quicker than entry */
.lightbox { width: min(92vw, 1100px); max-height: 92vh; padding: var(--space-md); border: var(--rule-hair) solid var(--color-ink); background: var(--color-paper); color: var(--color-ink); opacity: 1; transform: none;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), overlay 220ms allow-discrete, display 220ms allow-discrete; }
.js-motion .lightbox:not([open]) { opacity: 0; transform: scale(0.97); transition-duration: 160ms; }
@starting-style { .lightbox[open] { opacity: 0; transform: scale(0.96); } }
.lightbox::backdrop { background: color-mix(in oklab, var(--color-ink) 72%, transparent); transition: opacity 220ms ease, overlay 220ms allow-discrete, display 220ms allow-discrete; }
@starting-style { .lightbox[open]::backdrop { opacity: 0; } }
.lightbox form { display: flex; justify-content: flex-end; margin-bottom: var(--space-sm); }
.lightbox__fig { margin: 0; }
.lightbox img { display: block; width: 100%; max-height: calc(92vh - 9rem); object-fit: contain; background: var(--color-paper-2); }
.lightbox__open { display: inline-block; margin-top: var(--space-sm); }

/* filter chips: square, ruled, instant */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-bottom: var(--space-xl); }
.chips[hidden] { display: none; }
.chips button { min-height: 44px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-ink); background: transparent; color: var(--color-ink); font: 500 var(--text-sm)/1 var(--font-body); cursor: pointer; transition: transform var(--dur-press) var(--ease-out); }
.chips button:active { transform: scale(0.97); }
.chips button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.chips button[aria-pressed="true"] { border-color: var(--color-accent); color: var(--color-accent); box-shadow: inset 0 0 0 1px var(--color-accent); font-weight: 600; }
.chips button span { margin-left: var(--space-xs); color: inherit; opacity: 0.7; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .chips button[aria-pressed="false"]:hover { background: var(--color-paper-2); } }
@media (max-width: 60rem) {
  .section-head h2, .section-head > :not(h2) { grid-column: 1 / -1; }
  .page-hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
}
@media (prefers-reduced-motion: reduce) { .chips button { transition: none; } .chips button:active { transform: none; } }

/* ---------- sticky section index (alumni, FAQ) ---------- */
:root { --index-h: 56px; }
.page-index { position: sticky; top: calc(var(--nav-h) + var(--rule-ink)); z-index: var(--z-sticky); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
.page-index ul { display: flex; gap: var(--space-lg); min-height: var(--index-h); margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.page-index ul::-webkit-scrollbar { display: none; }
.page-index li { flex: none; display: flex; }
.page-index a { position: relative; display: inline-flex; align-items: center; font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); white-space: nowrap; text-decoration: none; transition: color var(--dur-short) ease; }
.page-index a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--color-accent); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-short) var(--ease-out); }
.page-index a[aria-current="true"] { color: var(--color-ink); }
.page-index a[aria-current="true"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .page-index a:hover { color: var(--color-ink); } }

/* ---------- footer ---------- */
.site-foot { padding-block: var(--space-3xl) var(--space-xl); }
.site-foot__mast { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-md) var(--space-xl); padding-bottom: var(--space-xl); border-bottom: var(--rule-ink) solid var(--color-ink); }
.site-foot__name { font: 400 var(--text-display-s)/1 var(--font-display); letter-spacing: var(--tracking-display); overflow-wrap: break-word; min-width: 0; }
.site-foot__slogan { font: 400 var(--text-2xl)/1.1 var(--font-display); color: var(--color-accent); }
.site-foot__cols { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: var(--gap-columns); padding-block: var(--space-xl); }
.site-foot__about { max-width: 36ch; color: var(--color-ink-2); }
.site-foot__h { margin-bottom: var(--space-sm); font: 500 var(--text-sm)/1.3 var(--font-body); color: var(--color-muted); }
.site-foot ul { display: grid; gap: var(--space-xs); margin: 0; padding: 0; list-style: none; }
.site-foot ul a { font-weight: 500; text-decoration: none; border-bottom: var(--rule-hair) solid currentColor; white-space: nowrap; transition: border-color var(--dur-short) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .site-foot ul a:hover { border-color: var(--color-accent); } }
.site-foot__legal { padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); color: var(--color-muted); }

/* ---------- responsive ---------- */
/* nine menu links need about 1360px; below that the Menu button takes over */
@media (max-width: 85rem) {
  .site-nav { display: none; }
  .menu { display: block; }
  .site-head__top { gap: var(--space-sm); }
}
@media (max-width: 75rem) {
  .alumni__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--space-2xl); }
}
@media (max-width: 60rem) {
  .hero { min-height: 0; }
  .hero__grid, .potd__grid, .contact__grid, .books__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .photo--hero { max-height: none; }
  .split-head > h2, .split-head > :not(h2) { grid-column: 1 / -1; }
  .figures__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures__grid > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .figures__grid > div:nth-child(n + 3) { border-top: var(--rule-hair) solid var(--color-indigo-rule); }
  .why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-xl); }
  .statement { grid-column: 1 / -1; font-size: var(--text-display-s); }
  .alumni__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .news__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .branches__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-foot__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-foot__about { grid-column: 1 / -1; }
}
@media (max-width: 40rem) {
  .brand__meta { display: none; }
  .places { gap: var(--space-2xs) 0; }
  .brand img { width: 40px; height: 40px; }
  .brand__name { font-size: var(--text-lg); }
  .site-head__cta { display: none; }
  .figures__grid dd { font-size: var(--text-2xl); }
  .figures__grid > div { padding: var(--space-lg) var(--space-md); }
  .why__grid, .branches__grid { grid-template-columns: minmax(0, 1fr); }
  /* alumni: a swipeable row of portraits instead of five stacked screens */
  .alumni__grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); padding-bottom: var(--space-sm); scrollbar-width: thin; }
  .alumni__grid > li { scroll-snap-align: start; }
  .hero__years { grid-template-columns: minmax(0, 1fr); }
  .hero__slogan { grid-column: 1; grid-row: auto; text-align: left; margin-top: var(--space-xs); }
  .sheet { grid-template-columns: minmax(0, 1fr); padding: var(--space-lg); }
  .site-foot__cols { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .textlink::after, .site-nav__list a::after, .menu__panel, .potd-msg, .news__title, .phones a, .site-foot ul a, .contact__wa a, .sheet input, .sheet select { transition: none; }
  .btn:active, .textlink:active { transform: none; }
}

/* the dcs-this-month plugin strip: the design shows its own This Month section */
.dcs-tm { display: none !important; }
