/* =====================================================================
   PLAYPEN SCHOOL — Design System
   Brand: Crimson & Gold crest heritage, modern editorial execution
   Fonts: Fraunces (display) + Plus Jakarta Sans (body)
   ===================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Brand core */
  --crimson:      #8A171A;
  --crimson-deep: #6E1215;
  --maroon:       #5C0F12;
  --maroon-ink:   #3A0A0C;
  --gold:         #C89B3C;
  --gold-light:   #F1DD6D;
  --bronze:       #8A5C22;   /* accessible gold for light backgrounds */

  /* Neutrals */
  --ink:          #1A1614;
  --ink-soft:     #4A423D;
  --ink-muted:    #6E645D;
  --parchment:    #FBF7F0;
  --sand:         #EFE7DA;
  --sand-deep:    #E2D6C3;
  --white:        #FFFFFF;

  /* Semantic */
  --bg:           var(--parchment);
  --text:         var(--ink);
  --rule:         rgba(26, 22, 20, 0.12);
  --rule-gold:    rgba(200, 155, 60, 0.45);

  /* Type */
  --font-display: 'Fraunces', 'Georgia', 'Times New Roman', serif;
  --font-body:    'Plus Jakarta Sans', 'Segoe UI', 'Helvetica Neue', sans-serif;

  --t-xs:    clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --t-sm:    clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);
  --t-base:  clamp(1rem, 0.97rem + 0.18vw, 1.0625rem);
  --t-lg:    clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --t-xl:    clamp(1.3rem, 1.15rem + 0.7vw, 1.75rem);
  --t-2xl:   clamp(1.6rem, 1.3rem + 1.4vw, 2.5rem);
  --t-3xl:   clamp(2rem, 1.5rem + 2.4vw, 3.5rem);
  --t-4xl:   clamp(2.5rem, 1.6rem + 4vw, 5rem);
  --t-hero:  clamp(2.75rem, 1.4rem + 5.6vw, 6.5rem);

  /* Space */
  --s-1: 0.25rem;  --s-2: 0.5rem;   --s-3: 0.75rem;  --s-4: 1rem;
  --s-5: 1.5rem;   --s-6: 2rem;     --s-7: 2.75rem;  --s-8: 3.5rem;
  --s-9: 5rem;     --s-10: 7rem;    --s-11: 9rem;

  --container: 1280px;
  --container-narrow: 920px;
  --gutter: clamp(1.25rem, 4vw, 4rem);

  --radius: 2px;
  --radius-lg: 4px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-sm: 0 1px 2px rgba(26,22,20,.04), 0 2px 8px rgba(26,22,20,.05);
  --shadow-md: 0 2px 4px rgba(26,22,20,.04), 0 8px 24px rgba(26,22,20,.07);
  --shadow-lg: 0 4px 8px rgba(26,22,20,.05), 0 20px 50px rgba(26,22,20,.11);

  --header-h: 78px;
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }  /* explicit display on .card would otherwise beat the UA rule */
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; font-optical-sizing: auto; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.4em; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--rule); margin: var(--s-7) 0; }
:focus-visible { outline: 2px solid var(--crimson); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--crimson); color: var(--white); }

/* ---------- 3. LAYOUT ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: clamp(3.5rem, 7vw, 7rem); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section--dark { background: var(--maroon); color: var(--parchment); }
.section--deep { background: var(--maroon-ink); color: var(--parchment); }
.section--sand { background: var(--sand); }
.section--crimson { background: var(--crimson); color: var(--white); }
.section--dark h1, .section--dark h2, .section--dark h3,
.section--deep h1, .section--deep h2, .section--deep h3,
.section--crimson h1, .section--crimson h2, .section--crimson h3 { color: var(--white); }

.grid { display: grid; gap: var(--s-6); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--wide-left { grid-template-columns: 1.15fr 0.85fr; }
.split--wide-right { grid-template-columns: 0.85fr 1.15fr; }
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .split, .split--wide-left, .split--wide-right { grid-template-columns: 1fr; gap: var(--s-6); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- 4. TYPE UTILITIES ---------- */
.overline {
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--bronze);
  display: flex; align-items: center; gap: 0.7em;
  margin-bottom: var(--s-4);
}
.overline::before { content: ''; width: 28px; height: 1px; background: currentColor; flex: none; opacity: .7; }
.section--dark .overline, .section--deep .overline, .section--crimson .overline { color: var(--gold); }

.display  { font-size: var(--t-hero); line-height: 0.96; letter-spacing: -0.035em; }
.h1 { font-size: var(--t-4xl); line-height: 1.02; letter-spacing: -0.03em; }
.h2 { font-size: var(--t-3xl); letter-spacing: -0.025em; }
.h3 { font-size: var(--t-2xl); letter-spacing: -0.02em; }
.h4 { font-size: var(--t-xl); letter-spacing: -0.015em; line-height: 1.2; }
.h5 { font-size: var(--t-lg); letter-spacing: -0.01em; line-height: 1.3; }

.lead { font-size: var(--t-lg); line-height: 1.55; color: var(--ink-soft); }
.section--dark .lead, .section--deep .lead, .section--crimson .lead { color: rgba(251,247,240,.82); }
.muted { color: var(--ink-muted); }
.section--dark .muted, .section--deep .muted { color: rgba(251,247,240,.65); }
.small { font-size: var(--t-sm); }
.tiny { font-size: var(--t-xs); }
.prose { max-width: 68ch; }
.prose h3 { margin-top: var(--s-7); margin-bottom: var(--s-3); }
.prose h4 { margin-top: var(--s-6); margin-bottom: var(--s-2); }
.prose ul { padding-left: 1.1em; }
.prose ul li::marker { color: var(--bronze); }
.center { text-align: center; }
.center .overline { justify-content: center; }
.ital { font-style: italic; }
.gold-text { color: var(--gold); }
.crimson-text { color: var(--crimson); }

.sticky-col { position: sticky; top: calc(var(--header-h) + 2.5rem); align-self: start; }
@media (max-width: 980px) { .sticky-col { position: static; } }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head.center { margin-inline: auto; }

/* ---------- 5. BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  font-family: var(--font-body); font-size: var(--t-sm); font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.95em 1.6em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background .3s var(--ease-soft), color .3s var(--ease-soft), border-color .3s var(--ease-soft), transform .3s var(--ease);
  cursor: pointer; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1em; height: 1em; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary { background: var(--crimson); color: var(--white); }
.btn--primary:hover { background: var(--crimson-deep); }
.btn--gold { background: var(--gold); color: var(--maroon-ink); }
.btn--gold:hover { background: var(--gold-light); }
.btn--outline { border-color: rgba(26,22,20,.28); color: var(--ink); }
.btn--outline:hover { border-color: var(--crimson); color: var(--crimson); background: rgba(138,23,26,.04); }
.btn--ghost-light { border-color: rgba(251,247,240,.35); color: var(--parchment); }
.btn--ghost-light:hover { border-color: var(--gold); color: var(--gold); background: rgba(200,155,60,.08); }
.btn--sm { padding: 0.65em 1.1em; font-size: var(--t-xs); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: var(--t-sm); font-weight: 600; letter-spacing: 0.02em;
  color: var(--crimson); position: relative; padding-bottom: 2px;
}
.link-arrow::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.link-arrow:hover::after { transform: scaleX(1); transform-origin: left; }
.link-arrow svg { width: 0.95em; height: 0.95em; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.section--dark .link-arrow, .section--deep .link-arrow, .section--crimson .link-arrow { color: var(--gold); }

/* ---------- 6. HEADER ---------- */
.utility-bar {
  background: var(--maroon-ink); color: rgba(251,247,240,.8);
  font-size: var(--t-xs); letter-spacing: 0.04em;
}
.utility-bar .container { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); min-height: 38px; flex-wrap: wrap; }
.utility-bar a { transition: color .25s; display: inline-flex; align-items: center; gap: .4em; white-space: nowrap; }
.utility-bar svg { width: 14px; height: 14px; flex: none; }
.utility-bar a:hover { color: var(--gold); }
.utility-list { display: flex; gap: var(--s-5); align-items: center; flex-wrap: wrap; }
.utility-contact { display: flex; gap: var(--s-5); align-items: center; flex-wrap: wrap; }
@media (max-width: 760px) { .utility-contact { display: none; } .utility-bar .container { justify-content: center; } }
@media (max-width: 500px) { .utility-list { gap: var(--s-4); } .utility-list a:nth-child(n+3) { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,247,240,.94);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow .3s var(--ease-soft), background .3s;
}
.site-header.is-stuck { box-shadow: 0 1px 24px rgba(26,22,20,.09); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 0.75rem; flex: none; }
.brand img { width: 46px; height: 46px; }
.brand > span { display: block; }
.brand-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; letter-spacing: -0.02em; line-height: 1; color: var(--crimson); }
.brand-tag { display: block; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--ink-muted); font-weight: 600; margin-top: 3px; }
@media (max-width: 400px) { .brand-name { font-size: 1.05rem; } .brand img { width: 38px; height: 38px; } }

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 0.35em;
  padding: 0.6em 0.85em; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.005em;
  color: var(--ink); border-radius: var(--radius); transition: color .25s;
  white-space: nowrap;
}
.nav-link .chev { width: 9px; height: 9px; opacity: .5; transition: transform .3s var(--ease); }
.nav-item:hover > .nav-link, .nav-link.is-active { color: var(--crimson); }
.nav-item:hover .chev { transform: rotate(180deg); }
.nav-link.is-active { position: relative; }
.nav-link.is-active::after { content: ''; position: absolute; left: 0.85em; right: 0.85em; bottom: 0.25em; height: 2px; background: var(--gold); }

.dropdown {
  position: absolute; top: 100%; left: -0.5rem; min-width: 280px;
  background: var(--white); border: 1px solid var(--rule); border-top: 2px solid var(--crimson);
  box-shadow: var(--shadow-lg); padding: 0.6rem;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .28s var(--ease-soft), transform .28s var(--ease), visibility .28s;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: 0.6rem 0.85rem; font-size: 0.875rem; font-weight: 500;
  border-radius: var(--radius); transition: background .2s, color .2s, padding-left .25s var(--ease);
}
.dropdown a:hover { background: var(--sand); color: var(--crimson); padding-left: 1.15rem; }
.dropdown a span { display: block; font-size: 0.72rem; color: var(--ink-muted); font-weight: 400; margin-top: 1px; }
.dropdown a:hover span { color: var(--ink-soft); }

.header-actions { display: flex; align-items: center; gap: var(--s-3); flex: none; }
@media (max-width: 1160px) { .nav, .header-actions .btn--outline { display: none; } }

.burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; border: 1px solid var(--rule); border-radius: var(--radius); }
.burger span { display: block; width: 19px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease), opacity .25s; }
.burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (max-width: 1160px) { .burger { display: flex; } }

/* Mobile nav */
.mobile-nav {
  position: fixed; inset: 0; top: 0; z-index: 99;
  background: var(--parchment); padding: calc(var(--header-h) + 40px) var(--gutter) var(--s-8);
  overflow-y: auto;
  transform: translateX(100%); transition: transform .45s var(--ease);
  visibility: hidden;
}
.mobile-nav.is-open { transform: translateX(0); visibility: visible; }
.mobile-nav details { border-bottom: 1px solid var(--rule); }
.mobile-nav summary {
  list-style: none; cursor: pointer; padding: 1rem 0;
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em;
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary::after { content: '+'; font-family: var(--font-body); font-size: 1.4rem; font-weight: 300; color: var(--bronze); transition: transform .3s var(--ease); }
.mobile-nav details[open] summary::after { transform: rotate(45deg); }
.mobile-nav details > a, .mobile-nav .m-links a { display: block; padding: 0.5rem 0 0.5rem 1rem; font-size: 0.95rem; color: var(--ink-soft); border-left: 1px solid var(--rule-gold); }
.mobile-nav details > div { padding-bottom: 1rem; }
.mobile-nav > a.m-top { display: block; padding: 1rem 0; border-bottom: 1px solid var(--rule); font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; }
.mobile-nav .m-cta { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
body.nav-open { overflow: hidden; }

/* ---------- 7. ANNOUNCEMENT ---------- */
.announce {
  background: var(--crimson); color: var(--white);
  font-size: var(--t-sm); position: relative; overflow: hidden;
}
.announce .container { display: flex; align-items: center; gap: var(--s-4); min-height: 48px; flex-wrap: wrap; justify-content: center; text-align: center; padding-block: .4rem; }
.announce span:not(.announce-tag) { max-width: 78ch; }
.announce a.link-arrow { white-space: nowrap; }
.announce-tag {
  background: var(--gold); color: var(--maroon-ink);
  font-size: var(--t-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  padding: 0.3em 0.75em; border-radius: var(--radius); flex: none;
}
.announce a.link-arrow { color: var(--white); }

/* ---------- 8. HERO ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; overflow: hidden; background: var(--maroon-ink); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s var(--ease-soft); }
.hero-media img.is-active { opacity: 1; }
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(58,10,12,.96) 0%, rgba(58,10,12,.78) 34%, rgba(58,10,12,.5) 62%, rgba(58,10,12,.62) 100%),
    linear-gradient(to right, rgba(92,15,18,.66), rgba(92,15,18,.12) 70%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-block: clamp(3rem, 7vw, 6rem); color: var(--white); }
.hero-title { font-size: var(--t-hero); line-height: 0.98; letter-spacing: -0.035em; color: var(--white); max-width: 16ch; }
.hero-title em { font-style: italic; color: var(--gold-light); font-weight: 500; }
.hero-sub { max-width: 52ch; margin-top: var(--s-5); font-size: var(--t-lg); color: rgba(255,255,255,.88); }
.hero-actions { margin-top: var(--s-6); }
.hero-badge {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .18em; font-weight: 600;
  color: var(--gold); margin-bottom: var(--s-5);
}
.hero-badge::before { content: ''; width: 34px; height: 1px; background: var(--gold); }

.hero-meta {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(255,255,255,.18);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: var(--s-5);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5);
}
.hero-meta div { color: rgba(255,255,255,.85); }
.hero-meta strong { display: block; font-family: var(--font-display); font-size: clamp(1.5rem,3vw,2.2rem); color: var(--white); font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.hero-meta span { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .13em; color: rgba(255,255,255,.6); display: block; margin-top: .5em; }
@media (max-width: 760px) { .hero-meta { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); } }

.hero-dots { position: absolute; right: var(--gutter); bottom: clamp(1.5rem,4vw,3rem); z-index: 3; display: flex; gap: 8px; }
.hero-dots button { width: 28px; height: 3px; background: rgba(255,255,255,.3); transition: background .3s; border-radius: 2px; }
.hero-dots button[aria-current="true"] { background: var(--gold); }
@media (max-width: 760px) { .hero-dots { display: none; } }

/* Page hero (inner pages) */
.page-hero { position: relative; background: var(--maroon); color: var(--white); overflow: hidden; }
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(58,10,12,.92), rgba(58,10,12,.5)); }
.page-hero .container { position: relative; z-index: 2; padding-block: clamp(3.5rem, 8vw, 7rem); }
.page-hero h1 { color: var(--white); max-width: 18ch; }
.page-hero .lead { max-width: 58ch; margin-top: var(--s-4); color: rgba(255,255,255,.85); }
.breadcrumb { font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: var(--s-4); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin-inline: .5em; opacity: .5; }

/* ---------- 9. CARDS ---------- */
.card {
  background: var(--white); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease-soft), border-color .3s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--rule-gold); }
.card-media { aspect-ratio: 4/3; overflow: hidden; background: var(--sand); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.card-body > .link-arrow { margin-top: auto; padding-top: var(--s-2); }
.card-kicker { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .14em; font-weight: 600; color: var(--bronze); }
.card h3, .card h4 { color: var(--ink); }
.card p { color: var(--ink-soft); font-size: var(--t-sm); line-height: 1.6; }

/* Stage cards (academic journey) */
.stage-card { position: relative; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s; }
.stage-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.stage-media { aspect-ratio: 3/4; overflow: hidden; position: relative; }
.stage-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.stage-card:hover .stage-media img { transform: scale(1.07); }
.stage-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(58,10,12,.9), rgba(58,10,12,.15) 55%, transparent); }
.stage-overlay { position: absolute; inset: auto 0 0 0; padding: var(--s-5); z-index: 2; color: var(--white); }
.stage-num { font-family: var(--font-display); font-size: var(--t-sm); color: var(--gold); letter-spacing: .1em; display: block; margin-bottom: .4em; }
.stage-overlay h3 { color: var(--white); font-size: var(--t-xl); }
.stage-overlay p { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.75); margin: .4em 0 0; }

/* Feature (icon) blocks */
.feature { padding: var(--s-6) 0; border-top: 1px solid var(--rule); }
.feature-num { font-family: var(--font-display); font-size: var(--t-sm); color: var(--bronze); letter-spacing: .08em; display: block; margin-bottom: var(--s-3); }
.feature h3 { font-size: var(--t-lg); margin-bottom: var(--s-2); }
.feature p { font-size: var(--t-sm); color: var(--ink-soft); }
.section--dark .feature { border-color: rgba(255,255,255,.14); }
.section--dark .feature-num { color: var(--gold); }
.section--dark .feature p { color: rgba(251,247,240,.72); }

/* Stat band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule-gold); border-block: 1px solid var(--rule-gold); }
.stat { background: var(--maroon); padding: clamp(1.5rem,3.5vw,2.5rem) var(--s-5); text-align: center; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 600; color: var(--gold-light); letter-spacing: -0.03em; line-height: 1; }
.stat span { display: block; margin-top: .7em; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .14em; color: rgba(251,247,240,.7); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Quote */
.quote { border-left: 2px solid var(--gold); padding-left: clamp(1.25rem, 3vw, 2.5rem); }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: var(--t-2xl); line-height: 1.22; letter-spacing: -0.02em; font-style: italic; font-weight: 400; }
.quote cite { display: block; margin-top: var(--s-4); font-style: normal; font-size: var(--t-sm); font-weight: 600; letter-spacing: .04em; }
.quote cite span { display: block; font-weight: 400; color: var(--ink-muted); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .12em; margin-top: .3em; }
.section--dark .quote cite span, .section--deep .quote cite span { color: rgba(251,247,240,.6); }

/* Notice / event list */
.notice-list { display: grid; gap: 0; }
.notice-item {
  display: grid; grid-template-columns: 110px 1fr auto; gap: var(--s-5); align-items: center;
  padding: var(--s-5) 0; border-top: 1px solid var(--rule);
  transition: padding-left .35s var(--ease), background .3s;
}
.notice-item:last-child { border-bottom: 1px solid var(--rule); }
.notice-item:hover { padding-left: var(--s-3); }
.notice-date { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--bronze); font-weight: 600; }
.notice-item h4 { font-size: var(--t-lg); }
.notice-item p { font-size: var(--t-sm); color: var(--ink-soft); margin: .35em 0 0; }
.notice-tag { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; padding: .35em .7em; border: 1px solid var(--rule); border-radius: 100px; color: var(--ink-muted); white-space: nowrap; }
.notice-tag--exam { border-color: var(--crimson); color: var(--crimson); }
.notice-tag--event { border-color: var(--bronze); color: var(--bronze); }
@media (max-width: 760px) { .notice-item { grid-template-columns: 1fr; gap: var(--s-2); } .notice-tag { justify-self: start; } }

/* Date chip */
.date-chip { background: var(--crimson); color: var(--white); text-align: center; padding: var(--s-3); border-radius: var(--radius); width: 78px; flex: none; }
.date-chip strong { display: block; font-family: var(--font-display); font-size: 1.7rem; line-height: 1; }
.date-chip span { display: block; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .12em; margin-top: .25em; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 0; }
.step { counter-increment: step; display: grid; grid-template-columns: 76px 1fr; gap: var(--s-5); padding: var(--s-6) 0; border-top: 1px solid var(--rule); align-items: start; }
.step:last-child { border-bottom: 1px solid var(--rule); }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--gold);
  line-height: 1; letter-spacing: -0.02em;
  border-right: 1px solid var(--rule-gold); padding-right: var(--s-4);
}
.step h3 { font-size: var(--t-xl); margin-bottom: var(--s-2); }
.step p { color: var(--ink-soft); font-size: var(--t-sm); }
.section--dark .step { border-color: rgba(255,255,255,.14); }
.section--dark .step p { color: rgba(251,247,240,.72); }
@media (max-width: 560px) { .step { grid-template-columns: 48px 1fr; gap: var(--s-4); } .step::before { font-size: 1.1rem; padding-right: var(--s-3); } }

/* Timeline */
.timeline { position: relative; padding-left: clamp(1.75rem, 4vw, 3rem); }
.timeline::before { content: ''; position: absolute; left: 0; top: .6rem; bottom: .6rem; width: 1px; background: var(--rule-gold); }
.timeline-item { position: relative; padding-bottom: var(--s-7); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: calc(-1 * clamp(1.75rem, 4vw, 3rem) - 4.5px); top: .55rem;
  width: 10px; height: 10px; border-radius: 50%; background: var(--gold); border: 2px solid var(--parchment);
}
.section--dark .timeline-item::before { border-color: var(--maroon); }
.timeline-year { font-family: var(--font-display); font-size: var(--t-xl); font-weight: 600; color: var(--crimson); letter-spacing: -0.02em; display: block; margin-bottom: var(--s-2); }
.section--dark .timeline-year { color: var(--gold); }
.timeline-item p { color: var(--ink-soft); }
.section--dark .timeline-item p { color: rgba(251,247,240,.75); }

/* Accordion */
.accordion { border-top: 1px solid var(--rule); }
.accordion details { border-bottom: 1px solid var(--rule); }
.accordion summary {
  list-style: none; cursor: pointer; padding: var(--s-5) var(--s-8) var(--s-5) 0; position: relative;
  font-family: var(--font-display); font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.015em;
  transition: color .25s;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--crimson); }
.accordion summary::after {
  content: ''; position: absolute; right: var(--s-3); top: 50%; width: 13px; height: 13px;
  margin-top: -6px;
  background: linear-gradient(var(--bronze),var(--bronze)) center/100% 1.5px no-repeat,
              linear-gradient(var(--bronze),var(--bronze)) center/1.5px 100% no-repeat;
  transition: transform .35s var(--ease);
}
.accordion details[open] summary::after { transform: rotate(135deg); }
.accordion-body { padding: 0 var(--s-8) var(--s-6) 0; color: var(--ink-soft); font-size: var(--t-sm); }
.accordion-body > *:first-child { margin-top: 0; }

/* Chips / pill lists */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; margin: 0; }
.chips li { margin: 0; }
.chips li, .chip {
  font-size: var(--t-sm); font-weight: 500; padding: .5em 1em;
  border: 1px solid var(--rule); border-radius: 100px; background: var(--white); color: var(--ink-soft);
  transition: border-color .3s, color .3s, transform .3s var(--ease);
}
.chips li:hover { border-color: var(--gold); color: var(--crimson); transform: translateY(-2px); }
.section--dark .chips li, .section--deep .chips li { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.18); color: rgba(251,247,240,.85); }
.section--dark .chips li:hover { border-color: var(--gold); color: var(--gold); }

/* Facility grid */
.facilities { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.facility { background: var(--white); padding: var(--s-5); display: flex; gap: var(--s-3); align-items: flex-start; transition: background .3s; }
.facility:hover { background: var(--sand); }
.facility svg { width: 20px; height: 20px; flex: none; color: var(--bronze); margin-top: 2px; }
.facility strong { display: block; font-size: var(--t-sm); font-weight: 600; }
.facility span { display: block; font-size: var(--t-xs); color: var(--ink-muted); margin-top: .2em; line-height: 1.45; }

/* Table */
.table-wrap {
  overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius-lg);
  /* Edge shadows that fade out at each end, so it is obvious the table scrolls
     sideways on a narrow screen. Pure CSS - no scroll listener. */
  background:
    linear-gradient(to right, var(--white) 30%, rgba(255,255,255,0)) left center,
    linear-gradient(to left,  var(--white) 30%, rgba(255,255,255,0)) right center,
    radial-gradient(farthest-side at 0 50%,   rgba(26,22,20,.16), rgba(26,22,20,0)) left center,
    radial-gradient(farthest-side at 100% 50%, rgba(26,22,20,.16), rgba(26,22,20,0)) right center,
    var(--white);
  background-repeat: no-repeat;
  background-size: 44px 100%, 44px 100%, 15px 100%, 15px 100%, 100% 100%;
  background-attachment: local, local, scroll, scroll, local;
  -webkit-overflow-scrolling: touch;
}
table.data { font-size: var(--t-sm); min-width: 540px; }
table.data th, table.data td { text-align: left; padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--rule); vertical-align: top; }
table.data thead th { background: var(--sand); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--ink); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: rgba(200,155,60,.06); }
table.data a { color: var(--crimson); font-weight: 600; }
table.data a:hover { text-decoration: underline; }

/* Media / figure */
.figure { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--sand); }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure--tall { aspect-ratio: 3/4; }
.figure--wide { aspect-ratio: 16/10; }
.figure--square { aspect-ratio: 1; }
.figure-caption { font-size: var(--t-xs); color: var(--ink-muted); margin-top: var(--s-3); letter-spacing: .02em; }
.figure-stack { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: var(--s-4); }
.figure-stack .figure:first-child { grid-row: span 2; aspect-ratio: auto; min-height: 100%; }
.figure-stack .figure { aspect-ratio: 1; }
@media (max-width: 520px) { .figure-stack { grid-template-columns: 1fr; } .figure-stack .figure:first-child { grid-row: auto; aspect-ratio: 4/3; } }

/* Gallery strip */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: var(--s-3); }
.gallery-grid .figure { aspect-ratio: 1; transition: transform .5s var(--ease); }
.gallery-grid .figure:hover { transform: scale(1.02); }
.gallery-grid .figure img { transition: transform .9s var(--ease); }
.gallery-grid .figure:hover img { transform: scale(1.08); }

/* Callout */
.callout { background: var(--sand); border-left: 3px solid var(--gold); padding: var(--s-5) var(--s-6); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.callout h4 { margin-bottom: var(--s-2); }
.callout p { font-size: var(--t-sm); color: var(--ink-soft); }
.callout--crimson { background: rgba(138,23,26,.05); border-left-color: var(--crimson); }

/* Contact blocks */
.contact-card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: var(--s-6); }
.contact-card h3 { font-size: var(--t-lg); margin-bottom: var(--s-3); }
.contact-line { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--t-sm); padding: var(--s-2) 0; }
.contact-line svg { width: 17px; height: 17px; color: var(--bronze); flex: none; margin-top: 3px; }
.contact-line a:hover { color: var(--crimson); text-decoration: underline; }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--t-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--t-sm); padding: .8em 1em;
  border: 1px solid var(--rule); border-radius: var(--radius); background: var(--white); color: var(--ink);
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--crimson); box-shadow: 0 0 0 3px rgba(138,23,26,.1);
}
.field textarea { min-height: 130px; resize: vertical; }

/* Map */
.map-frame { border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; background: var(--sand); }
.map-frame iframe { display: block; width: 100%; height: 420px; border: 0; }

/* CTA band */
.cta-band { position: relative; background: var(--crimson); color: var(--white); overflow: hidden; }
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(241,221,109,.16), transparent 45%),
              radial-gradient(circle at 85% 90%, rgba(58,10,12,.5), transparent 55%);
}
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { color: var(--white); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-7); flex-wrap: wrap; }

/* ---------- 10. FOOTER ---------- */
.site-footer { background: var(--maroon-ink); color: rgba(251,247,240,.72); font-size: var(--t-sm); }
.footer-top { padding-block: clamp(3rem, 6vw, 5rem); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s-7); }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: .8rem; margin-bottom: var(--s-4); }
.footer-brand img { width: 52px; height: 52px; }
.footer-brand strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--white); letter-spacing: -0.02em; display: block; }
.footer-brand span { font-size: .62rem; text-transform: uppercase; letter-spacing: .2em; color: var(--gold); }
.site-footer h4 { color: var(--white); font-family: var(--font-body); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .16em; font-weight: 700; margin-bottom: var(--s-4); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-links li { margin: 0; }
.footer-links a { transition: color .25s, padding-left .3s var(--ease); display: inline-block; }
.footer-links a:hover { color: var(--gold); padding-left: 5px; }
.footer-contact { display: grid; gap: .7rem; }
.footer-contact a:hover { color: var(--gold); }
.footer-accred { display: flex; align-items: center; gap: var(--s-4); margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,.12); }
.footer-accred img { height: 38px; width: auto; background: var(--white); padding: 4px 8px; border-radius: var(--radius); }
.footer-accred p { font-size: var(--t-xs); color: rgba(251,247,240,.6); margin: 0; }
.social-row { display: flex; gap: var(--s-3); margin-top: var(--s-4); }
.social-row a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; display: grid; place-items: center; transition: background .3s, border-color .3s, color .3s; }
.social-row a:hover { background: var(--gold); border-color: var(--gold); color: var(--maroon-ink); }
.social-row svg { width: 16px; height: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: var(--s-5); }
.footer-bottom .container { display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; font-size: var(--t-xs); color: rgba(251,247,240,.55); }
.footer-bottom a:hover { color: var(--gold); }
.footer-legal { display: flex; gap: var(--s-5); flex-wrap: wrap; }

/* ---------- 11. MOTION ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-soft), transform .9s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }
[data-reveal-delay="1"] { transition-delay: .09s; }
[data-reveal-delay="2"] { transition-delay: .18s; }
[data-reveal-delay="3"] { transition-delay: .27s; }
[data-reveal-delay="4"] { transition-delay: .36s; }
[data-reveal-delay="5"] { transition-delay: .45s; }

.grain { position: fixed; inset: 0; pointer-events: none; z-index: 9998; opacity: .025; mix-blend-mode: multiply; }
.grain::before {
  content: ''; position: absolute; inset: -60%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(8) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-6%, 4%); }
  40% { transform: translate(5%, -6%); }
  60% { transform: translate(-4%, -3%); }
  80% { transform: translate(3%, 5%); }
}

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--crimson); color: var(--white); padding: .8em 1.4em; font-size: var(--t-sm); font-weight: 600; }
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .grain { display: none; }
}

/* ---------- 12. PRINT ---------- */
@media print {
  .site-header, .utility-bar, .announce, .mobile-nav, .grain, .cta-band, .hero-dots { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section { padding-block: 1.5rem; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
