/* Jat College, Kaithal — public site styles.
   Palette: deep navy, antique gold, ivory.
   Sections: tokens, base, layout, type, buttons, surfaces, header, footer, page parts, tables, forms, motion. */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
    --ink: #0d1b33;            /* navy: text and dark surfaces */
    --ink-2: #1b3160;          /* lighter navy for gradients */
    --ink-soft: #566178;       /* secondary text */
    --accent: #c19a4b;         /* gold for lines, icons and borders */
    --accent-deep: #8c6a1f;    /* gold that is readable as text on light backgrounds */
    --gold: #dcc07e;           /* light gold for text on navy */
    --gold-soft: #faf6ec;
    --cream: #fbfaf6;
    --sand: #f2eee4;
    --border: #e7e1d3;
    --border-soft: #eeeadf;
    --white: #fff;
    --danger: #a3270f;
    --danger-soft: #fdf1ee;

    /* The same colours as channels, for translucent uses: rgb(var(--ink-rgb) / 80%) */
    --ink-rgb: 13 27 51;
    --accent-rgb: 193 154 75;
    --gold-rgb: 220 192 126;

    --font-display: "Playfair Display", "Noto Serif Devanagari", Georgia, serif;
    --font-sans: "Plus Jakarta Sans", "Noto Sans Devanagari", system-ui, -apple-system, sans-serif;
    --font-mono: "JetBrains Mono", "Noto Sans Devanagari", ui-monospace, monospace;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --radius-xl: 28px;
    --shadow-sm: 0 1px 2px rgb(var(--ink-rgb) / 6%);
    --shadow: 0 1px 2px rgb(var(--ink-rgb) / 4%), 0 14px 32px -10px rgb(var(--ink-rgb) / 16%);
    --shadow-lg: 0 2px 4px rgb(var(--ink-rgb) / 4%), 0 30px 60px -18px rgb(var(--ink-rgb) / 26%);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --gutter: clamp(1rem, 3vw, 1.5rem);
    --header-height: 76px;
    --gradient: linear-gradient(135deg, var(--ink-2), var(--ink));
    --gradient-gold: linear-gradient(135deg, #e9d39a, var(--accent) 55%, #a88236);
    --hairline: linear-gradient(90deg, transparent, var(--accent) 20%, var(--gold) 50%, var(--accent) 80%, transparent);
    --surface-dark:
        radial-gradient(60rem 28rem at 88% -30%, rgb(var(--gold-rgb) / 20%), transparent 60%),
        linear-gradient(135deg, var(--ink) 0%, #12264a 60%, var(--ink-2) 100%);

    interpolate-size: allow-keywords;
}

/* ── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--white);
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 20px);
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
}

html[lang="hi"] { font-family: "Noto Sans Devanagari", "Plus Jakarta Sans", system-ui, sans-serif; }
html[lang="hi"] :is(h1, h2, h3, .title-xl, .title-lg, .title-md, .title-sm, .title-xs) {
    font-family: "Noto Serif Devanagari", "Playfair Display", Georgia, serif;
    letter-spacing: 0;
}
html[lang="hi"] :is(.kicker, .table thead th, .site-footer h3, .back-link) { letter-spacing: 0.01em; }

body { margin: 0; font-size: 1rem; line-height: 1.65; text-rendering: optimizeLegibility; overflow-x: clip; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }
::selection { background: rgb(var(--gold-rgb) / 45%); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.icon { width: 1em; height: 1em; flex: none; vertical-align: -0.125em; }

.skip-link {
    position: fixed; top: 12px; left: 12px; z-index: 100;
    padding: 0.5rem 1rem; border-radius: var(--radius-sm);
    background: var(--ink); color: var(--white); font-weight: 700; font-size: 0.875rem;
    transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 1200px; }
.container--text { max-width: 900px; }

.section { padding-block: clamp(4rem, 8vw, 6rem); }
.section--tight { padding-block: clamp(3.25rem, 6vw, 4.25rem); }
.section--roomy { padding-block: clamp(4rem, 8vw, 6rem) clamp(5rem, 9vw, 7rem); }
.section--cream { background: var(--cream); border-block: 1px solid var(--border); }
.section--gold { background: var(--gold-soft); border-block: 1px solid rgb(var(--accent-rgb) / 40%); }
.section--cream + .section--cream, .section--gold + .section--cream { border-top: 0; }

.stack-xs > * + * { margin-top: 0.5rem; }
.stack-sm > * + * { margin-top: 0.75rem; }
.stack > * + * { margin-top: 1.25rem; }
.stack-lg > * + * { margin-top: 2.25rem; }
.stack-xl > * + * { margin-top: clamp(3.5rem, 7vw, 5rem); }

.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); }
.grid--start { align-items: start; }
.grid > li { display: grid; }
@media (min-width: 640px) {
    .cols-2, .cols-3, .cols-4 { --cols: 2; }
    .cols-2--wide { --cols: 1; }
}
.cols-6 { --cols: 2; gap: 1rem; }
@media (min-width: 640px) { .cols-6 { --cols: 3; } }
@media (min-width: 900px) { .cols-6 { --cols: 6; } }
@media (min-width: 1024px) {
    .cols-3 { --cols: 3; }
    .cols-4 { --cols: 4; }
    .cols-2--wide { --cols: 2; }
}

.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; align-items: start; }
@media (min-width: 1024px) {
    .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split--center { align-items: center; }
    .split--7-5 { grid-template-columns: 7fr 5fr; gap: 2.25rem; }
    .split--5-7 { grid-template-columns: 5fr 7fr; }
}

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 1.5rem; }
.section-head > div:first-child > * + * { margin-top: 0.5rem; }
.section-head--row { flex-wrap: nowrap; align-items: center; }
.section-head--center { align-items: center; }
.section-head .muted { max-width: 42rem; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.action-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.ruled { padding-top: 2.25rem; border-top: 1px solid var(--border); }
.icon-row { display: flex; align-items: flex-start; gap: 0.75rem; }
.icon-row > .icon { margin-top: 0.2em; font-size: 1.25rem; color: var(--accent); }
.icon-row > div > * + * { margin-top: 0.25rem; }
.icon-row--badge { align-items: center; gap: 1.25rem; }
@media (max-width: 639px) { .icon-row--badge { flex-direction: column; align-items: flex-start; } }

/* ── Type ───────────────────────────────────────────────────────────────── */
h1, h2, h3, .title-xl, .title-lg, .title-md, .title-sm, .title-xs, .title-xxs {
    font-family: var(--font-display); font-weight: 700; line-height: 1.18; letter-spacing: -0.01em; text-wrap: balance;
}
.title-xl { font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.1; }
.title-lg { font-size: clamp(1.875rem, 3.6vw, 2.5rem); }
.title-md { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.title-sm { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
.title-xs { font-size: 1.125rem; line-height: 1.35; letter-spacing: 0; }
.title-xxs { font-size: 1rem; line-height: 1.35; letter-spacing: 0; }
h1 a, h2 a, h3 a { transition: color 0.2s; }
h1 a:hover, h2 a:hover, h3 a:hover { color: var(--accent-deep); }

.kicker {
    display: flex; align-items: center; gap: 0.65rem;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-deep);
}
.kicker:not(:has(.icon))::before { content: ""; flex: none; width: 1.75rem; height: 1px; background: var(--accent); }
.kicker .icon { font-size: 1rem; color: var(--accent); }
.kicker--sm { letter-spacing: 0.1em; }
.kicker--sm::before { display: none; }
.kicker--gold { color: var(--gold); }

.lead { font-size: 1.02rem; line-height: 1.75; color: rgb(var(--ink-rgb) / 86%); }
.muted { color: var(--ink-soft); }
.lead.muted { color: var(--ink-soft); max-width: 48rem; }
.accent { color: var(--accent-deep); }
.small { font-size: 0.8125rem; line-height: 1.6; }
.mono { font-family: var(--font-mono); font-weight: 600; }
.nums { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.prose { white-space: pre-line; }
.clamp-1, .clamp-2 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-1 { -webkit-line-clamp: 1; line-clamp: 1; }
.clamp-2 { -webkit-line-clamp: 2; line-clamp: 2; }
.icon-line { display: flex; align-items: center; gap: 0.6rem; }
.icon-line .icon { color: var(--accent); font-size: 1.15em; }
h3.icon-line { font-family: var(--font-sans); font-size: 0.875rem; font-weight: 700; letter-spacing: 0; }
h3.icon-line .icon { font-size: 1rem; }

.link-arrow, .back-link, .link-plain { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.875rem; font-weight: 700; color: var(--accent-deep); white-space: nowrap; }
.link-arrow { position: relative; padding-bottom: 2px; }
.link-arrow::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: currentColor; scale: 0 1; transform-origin: left; transition: scale 0.35s var(--ease); }
.link-arrow:hover::after { scale: 1; }
.link-arrow:hover, .back-link:hover { color: var(--ink); }
.link-arrow .icon { transition: translate 0.3s var(--ease); }
.link-arrow:hover .icon { translate: 4px 0; }
.link-plain { white-space: normal; }
@media (max-width: 639px) { .link-arrow { white-space: normal; } }
.link-plain:hover { text-decoration: underline; }
.back-link { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.back-link .icon { transition: translate 0.3s var(--ease); }
.back-link:hover .icon { translate: -4px 0; }

.dot-list > li, .check-list > li { display: flex; gap: 0.65rem; font-size: 0.875rem; }
.dot-list > li + li, .check-list > li + li { margin-top: 0.55rem; }
.dot-list { color: var(--ink-soft); margin-top: 0.75rem; }
.dot-list > li::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: 0.6em; border-radius: 50%; background: var(--accent); }
.check-list .icon { color: var(--accent); margin-top: 0.2em; }
.bullets { list-style: disc; padding-left: 1.25rem; color: rgb(var(--ink-rgb) / 88%); font-size: 0.875rem; }
.bullets ::marker { color: var(--accent); }
.bullets.small { color: var(--ink-soft); font-size: 0.8125rem; }
.bullets > li + li { margin-top: 0.5rem; }

.steps { counter-reset: step; }
.steps > li {
    counter-increment: step; display: flex; gap: 1rem; align-items: flex-start;
    padding: 1.1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white);
    font-size: 0.875rem; box-shadow: var(--shadow-sm); transition: border-color 0.3s, box-shadow 0.3s, translate 0.3s var(--ease);
}
.steps > li:hover { border-color: rgb(var(--accent-rgb) / 60%); box-shadow: var(--shadow); translate: 4px 0; }
.steps > li + li { margin-top: 0.75rem; }
.steps > li::before {
    content: counter(step, decimal-leading-zero); flex: none; display: grid; place-items: center;
    width: 2rem; height: 2rem; border-radius: var(--radius-sm);
    background: var(--gradient); color: var(--gold); font: 700 0.75rem var(--font-mono);
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
    position: relative; overflow: hidden; isolation: isolate;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.7rem 1.35rem; border: 1px solid transparent; border-radius: 999px;
    font-size: 0.875rem; font-weight: 700; line-height: 1.3; letter-spacing: 0.01em; white-space: nowrap; text-align: center;
    transition: translate 0.3s var(--ease), box-shadow 0.3s, background-color 0.3s, border-color 0.3s, color 0.3s;
}
/* A soft band of light that crosses filled buttons on hover. */
.btn::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(110deg, transparent 35%, rgb(255 255 255 / 30%) 50%, transparent 65%);
    translate: -120% 0; transition: translate 0.8s var(--ease);
}
.btn:hover::after { translate: 120% 0; }
.btn:hover { translate: 0 -2px; }
.btn:active { translate: 0; }
.btn[disabled] { opacity: 0.6; cursor: progress; translate: 0; }
.btn--sm { padding: 0.6rem 1.05rem; font-size: 0.75rem; }
.btn--lg { padding: 0.95rem 1.75rem; }
.btn--primary { background: var(--gradient); color: var(--white); box-shadow: inset 0 0 0 1px rgb(var(--gold-rgb) / 30%), 0 6px 16px -6px rgb(var(--ink-rgb) / 45%); }
.btn--primary:hover { box-shadow: inset 0 0 0 1px rgb(var(--gold-rgb) / 70%), 0 14px 26px -10px rgb(var(--ink-rgb) / 55%); }
.btn--gold { background: var(--gradient-gold); color: var(--ink); box-shadow: 0 8px 22px -8px rgb(var(--accent-rgb) / 70%); }
.btn--gold:hover { box-shadow: 0 16px 30px -10px rgb(var(--accent-rgb) / 80%); }
.btn--glass { background: rgb(255 255 255 / 8%); color: var(--white); border-color: rgb(var(--gold-rgb) / 55%); backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgb(255 255 255 / 16%); border-color: var(--gold); }
.btn--ghost { color: var(--white); border-color: rgb(var(--gold-rgb) / 50%); }
.btn--ghost:hover { background: rgb(255 255 255 / 10%); border-color: var(--gold); }
.btn--outline { color: var(--ink); border-color: var(--border); background: var(--white); }
.btn--outline:hover { border-color: var(--accent); background: var(--gold-soft); }
.btn--soft { background: var(--gold-soft); color: var(--ink); border-color: rgb(var(--accent-rgb) / 40%); }
.btn--soft:hover { background: rgb(var(--gold-rgb) / 35%); border-color: var(--accent); }
:is(.btn--ghost, .btn--outline, .btn--soft)::after { display: none; }

/* ── Surfaces ───────────────────────────────────────────────────────────── */
.panel, .card { border: 1px solid var(--border); border-radius: var(--radius); }
.panel { padding: 1.25rem; background: var(--cream); font-size: 0.875rem; color: var(--ink-soft); transition: border-color 0.3s, box-shadow 0.3s; }
.panel:hover { border-color: rgb(var(--accent-rgb) / 55%); }
.panel > * + * { margin-top: 0.5rem; }
.panel :is(h2, h3) { color: var(--ink); }
.panel--gold { background: var(--gold-soft); border-color: rgb(var(--accent-rgb) / 45%); color: rgb(var(--ink-rgb) / 86%); }
.panel--pad { padding: 1.6rem; border-radius: var(--radius-lg); }
.panel--sm { padding: 0.95rem; }
.panel--link { display: block; padding: 1.1rem; background: var(--white); box-shadow: var(--shadow-sm); transition: border-color 0.3s, translate 0.3s var(--ease), box-shadow 0.3s; }
.panel--link:hover { border-color: rgb(var(--accent-rgb) / 60%); translate: 0 -3px; box-shadow: var(--shadow); }
.card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card--pad { padding: clamp(1.5rem, 3vw, 2rem); }
.card--pad > * + * { margin-top: 0.75rem; }

.icon-badge {
    display: grid; place-items: center; width: 3rem; height: 3rem; flex: none;
    border: 1px solid rgb(var(--accent-rgb) / 50%); border-radius: var(--radius); background: var(--gold-soft); color: var(--accent-deep); font-size: 1.3rem;
}
.icon-badge--solid { border: 0; background: var(--gradient); color: var(--gold); font-size: 1.5rem; box-shadow: var(--shadow); }

.frame { display: block; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale 0.9s var(--ease); }
.frame.is-top img { object-position: top; }
.frame.is-zoom { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.frame.is-zoom:hover img, :is(.tile, .person-card, .feature):hover .frame img { scale: 1.06; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-16x10 { aspect-ratio: 16 / 10; }
.ratio-16x7 { aspect-ratio: 16 / 7; }
.ratio-portrait { aspect-ratio: 4 / 4.5; }
.frame--contain { border: 1px solid var(--border); background: var(--cream); }
.frame--contain img { max-height: 540px; object-fit: contain; }
.img-missing {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; padding: 1rem;
    background: linear-gradient(135deg, var(--gold-soft), var(--sand));
    color: var(--ink-soft); font-size: 0.75rem; font-weight: 500; text-align: center;
}
.img-missing .icon { font-size: 1.75rem; color: var(--accent); stroke-width: 1.5; }
.emblem { display: inline-flex; flex: none; }
.emblem img { display: block; border-radius: var(--radius-sm); background: rgb(255 255 255 / 96%); padding: 2px; object-fit: contain; }

/* Cards that lift on hover and draw a gold line across their top edge. */
.tile, .dept-card, .notice-card, .programme {
    position: relative; overflow: hidden;
    border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm);
    transition: border-color 0.35s, translate 0.45s var(--ease), box-shadow 0.45s var(--ease), background-color 0.35s;
}
:is(.tile, .dept-card, .notice-card, .programme)::before {
    content: ""; position: absolute; inset: 0 0 auto; z-index: 1; height: 3px; background: var(--gradient-gold);
    scale: 0 1; transform-origin: left; transition: scale 0.5s var(--ease);
}
:is(.tile, .dept-card, .notice-card, .programme):hover { border-color: rgb(var(--accent-rgb) / 55%); box-shadow: var(--shadow-lg); }
:is(.tile, .dept-card, .notice-card, .programme):hover::before { scale: 1; }

.tile { display: flex; flex-direction: column; }
.tile:hover { translate: 0 -6px; }
.tile .frame { border-radius: 0; }
.tile__body { padding: 1.35rem; flex: 1; }
.tile__body > * + * { margin-top: 0.4rem; }
.tile__meta { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; color: var(--accent-deep); }
.tile--center { text-align: center; }
.tile--compact { border-radius: var(--radius); }
.tile--compact .tile__body { padding: 0.9rem; }
.tile--compact h3 { font: 700 0.875rem var(--font-sans); letter-spacing: 0; }
.tile--compact .tile__meta { font-size: 0.6875rem; }
.tile--photo { width: 100%; text-align: left; }
.tile--photo h2 { transition: color 0.3s; }
.tile--photo:hover h2 { color: var(--accent-deep); }

.person-card {
    display: flex; flex-direction: column; gap: 0.6rem; padding: 1rem;
    border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm);
    transition: translate 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.35s;
}
.person-card:hover { translate: 0 -6px; box-shadow: var(--shadow-lg); }
.person-card--gold { border-color: rgb(var(--accent-rgb) / 45%); }
.person-card .frame { background: var(--gold-soft); }
.person-card__meta { display: flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; font-weight: 700; color: var(--accent-deep); }

.gem {
    display: block; padding: 0.85rem; text-align: center;
    border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm);
    transition: border-color 0.3s, translate 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.gem:hover { border-color: rgb(var(--accent-rgb) / 60%); translate: 0 -4px; box-shadow: var(--shadow); }
.gem__photo, .gem > .img-missing {
    display: block; width: 4rem; height: 5rem; margin: 0 auto 0.6rem; overflow: hidden;
    border: 1px solid rgb(var(--accent-rgb) / 55%); border-radius: var(--radius-sm); background: var(--gold-soft);
}
.gem__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: scale 0.6s var(--ease); }
.gem:hover .gem__photo img { scale: 1.06; }
.gem h3 { font-size: 0.875rem; line-height: 1.25; letter-spacing: 0; }
.gem p { margin-top: 0.15rem; font-size: 0.6875rem; font-weight: 700; color: var(--accent-deep); }
.gem p.muted { font-weight: 600; color: var(--ink-soft); line-height: 1.35; }
.gem--tall .gem__photo { width: 5rem; height: 6rem; }
.gem--tall .mono { font-size: 0.75rem; }
.gem--square .gem__photo, .gem--square > .img-missing { width: 100%; height: auto; aspect-ratio: 1; border-color: var(--border); }
.gem--square p.muted { font-weight: 400; margin-top: 0.25rem; }

.showcase { padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--border); border-radius: var(--radius-xl); background: linear-gradient(180deg, var(--cream), var(--white)); box-shadow: var(--shadow); }
.showcase > * + * { margin-top: 2rem; }

.message { position: relative; padding: 1.6rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); transition: border-color 0.3s, box-shadow 0.4s var(--ease); }
.message:hover { border-color: rgb(var(--accent-rgb) / 55%); box-shadow: var(--shadow); }
.message--gold { background: var(--gold-soft); border-color: rgb(var(--accent-rgb) / 45%); }
.message--gold::after { content: "\201D"; position: absolute; top: 0.4rem; right: 1.25rem; font: 700 5rem / 1 var(--font-display); color: rgb(var(--accent-rgb) / 28%); pointer-events: none; }
.message--plain { padding: 1.85rem; }
.message header { display: flex; align-items: center; gap: 1rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border); }
.message header > div > * + * { margin-top: 0.1rem; }
.message__photo, .message header > .img-missing { display: block; flex: none; width: 5rem; height: 4rem; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
.message--plain .message__photo { width: 6rem; }
.message--gold .message__photo { border-color: rgb(var(--accent-rgb) / 55%); }
.message__photo img { width: 100%; height: 100%; object-fit: cover; }
.message blockquote { font-size: 0.9rem; line-height: 1.75; color: var(--ink-soft); }
.message--gold blockquote { font-family: var(--font-display); font-style: italic; color: rgb(var(--ink-rgb) / 90%); }
.message--plain > p { color: rgb(var(--ink-rgb) / 86%); line-height: 1.75; }

.dept-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem; min-height: 216px;
    padding: 2.1rem 1.75rem; text-align: center;
}
.dept-card:hover { translate: 0 -8px; }
.dept-card :is(h2, h3) { font-size: clamp(1rem, 1.6vw, 1.1rem); letter-spacing: 0.06em; text-transform: uppercase; transition: color 0.3s; }
.dept-card:hover :is(h2, h3) { color: var(--accent-deep); }
.dept-card__icon {
    display: grid; place-items: center; flex: none; width: 4.25rem; height: 4.25rem;
    border: 1px solid rgb(var(--accent-rgb) / 55%); border-radius: 50%; background: var(--white); color: var(--accent-deep);
    box-shadow: 0 0 0 7px var(--gold-soft); font-size: 1.75rem;
    transition: background 0.4s, border-color 0.4s, color 0.4s, scale 0.5s var(--ease), box-shadow 0.4s;
}
.dept-card__icon .icon { stroke-width: 1.5; }
.dept-card__icon img { width: 60%; height: 60%; object-fit: contain; border-radius: 50%; }
.dept-card:hover .dept-card__icon { background: var(--ink); border-color: var(--ink); color: var(--gold); scale: 1.06; box-shadow: 0 0 0 7px rgb(var(--gold-rgb) / 35%); }
.dept-card__icon--solid { width: 4.75rem; height: 4.75rem; font-size: 2rem; background: rgb(255 255 255 / 8%); border-color: rgb(var(--gold-rgb) / 70%); color: var(--gold); box-shadow: 0 0 0 7px rgb(var(--gold-rgb) / 14%); backdrop-filter: blur(6px); }
.dept-card__rule { width: 2.25rem; height: 1px; background: var(--accent); transition: width 0.45s var(--ease); }
.dept-card:hover .dept-card__rule { width: 4rem; }
.dept-card--large { min-height: 240px; padding: 2.75rem 2rem; gap: 1.3rem; }
.dept-card--large .dept-card__icon { width: 5rem; height: 5rem; font-size: 2rem; }
.dept-grid { gap: 1.5rem; }
@media (min-width: 1024px) { .dept-grid--large { gap: 2rem; } }

.notice-card { padding: 1.35rem; border-radius: var(--radius); }
.notice-card:hover { translate: 0 -3px; }
.notice-card > * + * { margin-top: 0.45rem; }
.notice-card .muted { font-size: 0.875rem; }
.notice-card--row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.6rem; border-radius: var(--radius-lg); }
.notice-card--row > div { max-width: 48rem; flex: 1 1 20rem; }
.notice-card--row > * + * { margin-top: 0; }
.meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; font-size: 0.75rem; color: var(--ink-soft); }
.meta-line > * + *::before { content: "·"; margin-right: 0.5rem; color: var(--ink-soft); font-weight: 400; }
.meta-line strong { color: var(--accent-deep); letter-spacing: 0.04em; }
.meta-line b { padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--ink); color: var(--gold); font-size: 0.6875rem; }
.meta-line b::before { display: none; }
.meta-line .icon { margin-right: 0.15rem; }
.attachment { display: flex; align-items: center; gap: 0.5rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 0.75rem; color: var(--ink-soft); }
.attachment .icon { font-size: 1rem; color: var(--accent); }

.cta, .notice-dark { background: var(--surface-dark); color: rgb(255 255 255 / 80%); border: 1px solid rgb(var(--gold-rgb) / 22%); box-shadow: var(--shadow-lg); }
.cta { display: grid; gap: 2rem; align-items: center; padding: clamp(2rem, 5vw, 3.25rem); border-radius: var(--radius-xl); font-size: 0.9rem; }
.cta :is(h2, h3) { color: var(--white); }
.cta p:not(.kicker) { max-width: 36rem; line-height: 1.75; }
.cta__contact { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding-top: 0.5rem; color: var(--gold); }
.cta__contact li { display: inline-flex; align-items: center; gap: 0.5rem; }
.cta__contact .icon { color: var(--accent); font-size: 1rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cta--compact { padding: clamp(1.75rem, 3vw, 2.5rem); border-radius: var(--radius-lg); }
.cta--compact .cta__contact { color: rgb(255 255 255 / 80%); font-size: 0.75rem; }
@media (min-width: 1024px) {
    .cta { grid-template-columns: 7fr 5fr; }
    .cta--compact { grid-template-columns: 1fr auto; }
    .cta__actions { justify-content: flex-end; }
}
.notice-dark { display: flex; gap: 0.75rem; padding: 1.35rem; border-radius: var(--radius-lg); font-size: 0.875rem; line-height: 1.7; }
.notice-dark .icon { flex: none; margin-top: 0.15em; font-size: 1.25rem; color: var(--gold); }
.notice-dark strong { color: var(--gold); }

.feature {
    display: grid; gap: 2.25rem; align-items: center; padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--white); box-shadow: var(--shadow-sm);
    transition: border-color 0.35s, box-shadow 0.5s var(--ease);
}
.feature:hover { border-color: rgb(var(--accent-rgb) / 55%); box-shadow: var(--shadow-lg); }
.feature .frame { border-radius: var(--radius-lg); }
.feature__note { padding-top: 0.85rem; border-top: 1px solid var(--border); font-size: 0.75rem; color: var(--ink-soft); }
.feature__note strong { color: var(--ink); }
@media (min-width: 1024px) {
    .feature { grid-template-columns: 5fr 7fr; }
    .feature:nth-child(even) > :first-child { order: 2; }
    .feature:nth-child(even) { grid-template-columns: 7fr 5fr; }
}

.founder { display: flex; flex-direction: column; align-items: center; gap: 2.25rem; }
.founder__photo, .founder > .img-missing { display: block; flex: none; width: 10rem; height: 11rem; overflow: hidden; border: 1px solid var(--accent); border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 0 0 8px rgb(var(--gold-rgb) / 25%), var(--shadow); }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; }
.founder p { font-size: 0.9rem; }
@media (min-width: 768px) { .founder { flex-direction: row; } }

.sister { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 1.1rem; border-radius: var(--radius); font-size: 0.875rem; transition: border-color 0.3s, box-shadow 0.3s; }
.sister:hover { border-color: rgb(var(--accent-rgb) / 60%); box-shadow: var(--shadow); }
.sister a { display: inline-flex; align-items: center; gap: 0.3rem; flex: none; font-size: 0.75rem; color: var(--accent-deep); }

.programme { display: flex; flex-direction: column; gap: 0.65rem; padding: 1.6rem; }
.programme:hover { translate: 0 -6px; }
.programme__meta { display: flex; justify-content: space-between; font-size: 0.75rem; font-weight: 700; color: var(--accent-deep); }
.programme__meta b { color: var(--ink); }
.programme__fee { padding: 0.55rem 0.8rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--cream); font-size: 0.75rem; font-weight: 600; }
.programme .btn { margin-top: auto; }
.seat-chips { gap: 0.75rem; }
.seat-chips li {
    display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.9rem;
    border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--cream); transition: border-color 0.3s;
}
.seat-chips li:hover { border-color: rgb(var(--accent-rgb) / 60%); }
.seat-chips b { display: block; font-size: 0.75rem; }
.seat-chips small { font-size: 0.6875rem; color: var(--ink-soft); }
.seat-chips strong { font-size: 1.05rem; color: var(--accent-deep); }

.contact-list li { display: flex; gap: 0.85rem; font-size: 0.875rem; }
.contact-list li + li { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--border); }
.contact-list .icon { flex: none; margin-top: 0.15em; font-size: 1.25rem; color: var(--accent); }
.contact-list b { display: block; color: var(--ink); }
.contact-list div { color: var(--ink-soft); display: flex; flex-direction: column; }
.contact-list a { color: var(--accent-deep); font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }

.not-found { text-align: center; }
.not-found > * + * { margin-top: 1rem; }
.not-found__code { font: 700 clamp(4.5rem, 14vw, 8rem) / 1 var(--font-display); background: var(--gradient-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.not-found .hero__actions { justify-content: center; padding-top: 1rem; }
.not-found .lead { margin-inline: auto; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgb(255 255 255 / 86%); backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid rgb(var(--ink-rgb) / 8%);
    transition: box-shadow 0.3s, background-color 0.3s;
}
.site-header.is-scrolled { background: rgb(255 255 255 / 95%); box-shadow: 0 10px 30px -14px rgb(var(--ink-rgb) / 30%); }
/* The gold line under the top edge fills as the page is scrolled (where the browser supports it). */
.site-header__accent { height: 3px; background: var(--gradient-gold); transform-origin: left; }
@supports (animation-timeline: scroll()) {
    .site-header__accent { animation: progress linear both; animation-timeline: scroll(root); }
}
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.site-header__actions { display: flex; align-items: center; gap: 0.7rem; flex: none; }
.site-header__cta { display: none; padding-block: 0.65rem; }
@media (min-width: 768px) { .site-header__cta { display: inline-flex; } }

.brand { display: flex; align-items: center; gap: 0.75rem; flex: none; border-radius: var(--radius-sm); }
.brand .emblem img { transition: scale 0.4s var(--ease); }
.brand:hover .emblem img { scale: 1.05; }
.brand__name { font: 700 clamp(1rem, 2vw, 1.2rem) var(--font-display); letter-spacing: 0.05em; white-space: nowrap; transition: color 0.3s; }
.brand:hover .brand__name { color: var(--accent-deep); }

.main-nav { display: none; }
@media (min-width: 1024px) { .main-nav { display: block; } }
.main-nav > ul { display: flex; align-items: center; gap: clamp(1rem, 1.7vw, 1.6rem); }
/* Between tablet and wide desktop the bar is tight: the button stays in the page hero and footer instead. */
@media (min-width: 1024px) and (max-width: 1199px) {
    .site-header__cta { display: none; }
    .main-nav > ul { gap: 1.1rem; }
}
.main-nav__link {
    position: relative; display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.5rem 0;
    border: 0; background: none; font-size: 0.84rem; font-weight: 600; white-space: nowrap; transition: color 0.25s;
}
.main-nav__link::after {
    content: ""; position: absolute; inset: auto 0 0; height: 2px; border-radius: 2px; background: var(--accent);
    scale: 0 1; transform-origin: left; transition: scale 0.4s var(--ease);
}
.main-nav__link:hover, .main-nav__link.is-active, .main-nav__group:focus-within > .main-nav__link { color: var(--accent-deep); }
.main-nav__link:hover::after, .main-nav__link.is-active::after { scale: 1; }
.main-nav__link .icon { font-size: 0.875rem; transition: rotate 0.3s var(--ease); }
.main-nav__group { position: relative; }
.main-nav__menu {
    position: absolute; top: 100%; left: 0; z-index: 10; width: 13.5rem; padding: 0.45rem; margin-top: 0.7rem;
    border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; translate: 0 -8px; scale: 0.98; transform-origin: top left;
    transition: opacity 0.25s, translate 0.3s var(--ease), scale 0.3s var(--ease), visibility 0.25s;
}
.main-nav__menu::before { content: ""; position: absolute; inset: -0.8rem 0 100%; }
.main-nav__group:hover > .main-nav__menu,
.main-nav__group:focus-within > .main-nav__menu,
.main-nav__link[aria-expanded="true"] + .main-nav__menu { opacity: 1; visibility: visible; translate: 0; scale: 1; }
.main-nav__group:hover .main-nav__link .icon, .main-nav__link[aria-expanded="true"] .icon { rotate: 180deg; }
.main-nav__menu a { display: block; padding: 0.7rem 1rem; border-radius: var(--radius-sm); font-size: 0.84rem; font-weight: 600; transition: background-color 0.2s, color 0.2s, padding-left 0.3s var(--ease); }
.main-nav__menu a:hover { background: var(--gold-soft); color: var(--accent-deep); padding-left: 1.25rem; }
.main-nav__menu a[aria-current] { background: var(--gold-soft); color: var(--accent-deep); }

.lang-switch { display: inline-flex; align-items: center; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--cream); }
.lang-switch a { padding: 0.3rem 0.7rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; white-space: nowrap; transition: background-color 0.25s, color 0.25s; }
.lang-switch a:hover { color: var(--accent-deep); }
.lang-switch a[aria-current] { background: var(--ink); color: var(--gold); }
.lang-switch a + a { margin-left: 2px; }

.mobile-menu summary {
    display: grid; place-items: center; width: 2.75rem; height: 2.75rem; list-style: none; cursor: pointer;
    border: 1px solid var(--border); border-radius: 50%; font-size: 1.2rem; transition: background-color 0.2s, border-color 0.2s;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary:hover { background: var(--gold-soft); border-color: var(--accent); }
.mobile-menu .icon-close, .mobile-menu[open] .icon-open { display: none; }
.mobile-menu[open] .icon-close { display: block; }
.mobile-menu__panel {
    position: absolute; inset: 100% 0 auto; max-height: 80vh; overflow-y: auto; padding: 1rem var(--gutter) 1.25rem;
    border-top: 1px solid var(--border); background: var(--white); box-shadow: var(--shadow-lg);
}
.mobile-menu__panel nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.mobile-menu__panel nav a { padding: 0.7rem 0.95rem; border: 1px solid transparent; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 600; }
.mobile-menu__panel nav a:hover { background: var(--cream); }
.mobile-menu__panel nav a.is-active { background: var(--gold-soft); border-color: rgb(var(--accent-rgb) / 50%); color: var(--accent-deep); }
.mobile-menu__foot { display: flex; gap: 0.75rem; margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px solid var(--border); }
.mobile-menu__foot .btn:first-child { flex: 1; }
.mobile-menu::details-content { opacity: 0; translate: 0 -8px; transition: opacity 0.3s, translate 0.35s var(--ease), content-visibility 0.35s allow-discrete; }
.mobile-menu[open]::details-content { opacity: 1; translate: 0; }
@media (min-width: 640px) { .mobile-menu__panel nav { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .mobile-menu { display: none; } }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { position: relative; background: var(--surface-dark); color: rgb(255 255 255 / 74%); font-size: 0.875rem; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--hairline); }
.site-footer__grid { display: grid; gap: 2.75rem; padding-block: 4.5rem 3.25rem; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1.1fr; } }
.site-footer h2 { font-size: 1.2rem; color: var(--white); line-height: 1.25; }
.site-footer h3 { margin-bottom: 1.2rem; font: 700 0.72rem var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.site-footer a { transition: color 0.25s, padding-left 0.3s var(--ease); }
.site-footer a:hover { color: var(--gold); }
.site-footer nav a:hover { padding-left: 0.3rem; }
.site-footer li + li { margin-top: 0.7rem; }
.site-footer__identity > * + * { margin-top: 1.1rem; }
.site-footer__brand { display: flex; align-items: center; gap: 0.85rem; }
.site-footer__brand p { margin-top: 0.2rem; font-size: 0.75rem; font-weight: 500; color: var(--gold); }
.site-footer__tagline { font: italic 500 1.05rem var(--font-display); color: var(--white); }
.site-footer__small { font-size: 0.75rem; }
.site-footer__contact li { display: flex; gap: 0.7rem; }
.site-footer__contact .icon { margin-top: 0.25em; font-size: 1rem; color: var(--accent); }
.site-footer__contact a { overflow-wrap: anywhere; }
.site-footer__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.6rem; border-top: 1px solid rgb(255 255 255 / 12%); font-size: 0.75rem; color: rgb(255 255 255 / 60%); }
.site-footer__base a { margin-inline: 0.35rem; }

.back-to-top {
    position: fixed; right: clamp(1.25rem, 3vw, 1.75rem); bottom: clamp(1.25rem, 3vw, 1.75rem); z-index: 40;
    display: grid; place-items: center; width: 3rem; height: 3rem;
    border: 1px solid rgb(var(--gold-rgb) / 70%); border-radius: 50%; background: var(--ink); color: var(--gold); font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    transition: background-color 0.3s, color 0.3s, translate 0.35s var(--ease), opacity 0.3s, display 0.3s allow-discrete;
}
.back-to-top:hover { background: var(--accent); color: var(--ink); translate: 0 -3px; }
@starting-style { .back-to-top { opacity: 0; translate: 0 16px; } }

/* ── Page parts ─────────────────────────────────────────────────────────── */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: clamp(620px, 54vw, 720px); color: var(--white); }
.hero__image, .hero > .img-missing { position: absolute; inset: 0; z-index: -2; }
.hero__image img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, transparent 60%, rgb(var(--ink-rgb) / 70%)),
        linear-gradient(100deg, rgb(var(--ink-rgb) / 95%) 0%, rgb(var(--ink-rgb) / 82%) 42%, rgb(var(--ink-rgb) / 38%) 100%);
}
.hero__body { padding-block: clamp(4rem, 8vw, 6rem) clamp(8rem, 13vw, 10rem); }
.hero__body > * { max-width: 44rem; }
.hero__body > * + * { margin-top: 1.6rem; }
.hero__intro { display: flex; align-items: center; gap: 1.1rem; }
.hero__intro .emblem img { border-radius: var(--radius); box-shadow: 0 0 0 1px rgb(var(--gold-rgb) / 60%), 0 10px 24px rgb(0 0 0 / 35%); }
.hero__motto { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; color: var(--gold); }
.hero__facts { margin-top: 0.3rem; font-size: clamp(0.75rem, 1.4vw, 0.875rem); font-weight: 600; letter-spacing: 0.03em; color: rgb(255 255 255 / 92%); }
.hero__facts span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 0.65rem 0.2em; border-radius: 50%; background: var(--gold); }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.5rem); line-height: 1.04; letter-spacing: -0.015em; }
.hero__tagline { display: flex; align-items: center; gap: 1rem; font: italic 500 clamp(1.25rem, 2.6vw, 1.6rem) var(--font-display); color: var(--gold); }
.hero__tagline::before { content: ""; flex: none; width: 3rem; height: 1px; background: var(--gold); }
.hero__summary { max-width: 37rem; font-size: clamp(0.9rem, 1.5vw, 1.05rem); line-height: 1.75; color: rgb(255 255 255 / 84%); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; padding-top: 0.5rem; }

/* Key figures sit in a card that overlaps the bottom of the hero. */
.stats { position: relative; z-index: 2; margin-top: clamp(-5rem, -7vw, -3.75rem); padding-inline: var(--gutter); }
.stats__grid {
    position: relative; overflow: hidden; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1.5rem;
    max-width: calc(1280px - 2 * var(--gutter)); padding: clamp(1.5rem, 3vw, 2.25rem);
    border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-lg);
}
.stats__grid::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--gradient-gold); }
.stats dt { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.stats dd { margin-top: 0.4rem; font: 700 clamp(1.5rem, 3vw, 2.1rem) / 1.15 var(--font-display); }
.stats dd.is-accent { color: var(--accent-deep); }
.stats dd.stats__note { font: 400 0.75rem / 1.5 var(--font-sans); color: var(--ink-soft); }
@media (min-width: 1024px) {
    .stats__grid { grid-template-columns: repeat(4, 1fr); gap: 0; }
    .stats__grid > div { padding-inline: 1.75rem; }
    .stats__grid > div:first-child { padding-left: 0; }
    .stats__grid > div + div { border-left: 1px solid var(--border); }
}

/* Dark title band at the top of inner pages. */
.page-head { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 7vw, 5rem); background: var(--surface-dark); color: var(--white); }
.page-head::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(115deg, rgb(255 255 255 / 3%) 0 1px, transparent 1px 28px);
    mask-image: linear-gradient(90deg, transparent, #000 70%);
}
.page-head::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--hairline); }
.page-head > .container { position: relative; }
.page-head .kicker { color: var(--gold); }
.page-head .lead.muted, .page-head .meta-line { color: rgb(255 255 255 / 76%); }
.page-head .meta-line strong, .page-head .back-link { color: var(--gold); }
.page-head .back-link:hover { color: var(--white); }
.page-head .meta-line > * + *::before { color: rgb(255 255 255 / 50%); }
.page-head__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.page-head__row > div { max-width: 48rem; }
.page-head__row .emblem img { box-shadow: 0 0 0 1px rgb(var(--gold-rgb) / 60%), 0 14px 30px rgb(0 0 0 / 35%); border-radius: var(--radius); }
.js .page-head > .container > * { animation: rise 0.8s var(--ease) both; }

.banner { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: clamp(280px, 26vw, 340px); color: var(--white); }
.banner__image, .banner > .img-missing { position: absolute; inset: 0; z-index: -2; }
.banner__image img { width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgb(var(--ink-rgb) / 96%), rgb(var(--ink-rgb) / 86%) 50%, rgb(var(--ink-rgb) / 62%)); }
.banner::before { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--hairline); }
.banner__body { padding-block: 3.75rem; }
.banner__body > * + * { margin-top: 1.4rem; }
.banner h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); text-transform: uppercase; letter-spacing: 0.02em; }
.banner__title { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.banner__meta { margin-bottom: 0.5rem; font: 600 0.72rem var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.banner--center { min-height: clamp(300px, 28vw, 360px); text-align: center; }
.banner--center::after { background: linear-gradient(180deg, rgb(var(--ink-rgb) / 90%), rgb(var(--ink-rgb) / 80%) 50%, rgb(var(--ink-rgb) / 94%)); }
.banner--center .banner__body { display: flex; flex-direction: column; align-items: center; padding-block: 4.25rem; }
.banner--center h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: 0.1em; }
.banner__rule { width: 5rem; height: 2px; background: var(--hairline); }

.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; font-size: clamp(0.75rem, 1.4vw, 0.84rem); font-weight: 500; }
.breadcrumbs li + li::before { content: "›"; margin-right: 0.45rem; color: var(--accent); }
.breadcrumbs a { color: var(--ink-soft); transition: color 0.2s; }
.breadcrumbs a:hover, .breadcrumbs [aria-current] { color: var(--accent-deep); }
.breadcrumbs [aria-current] { font-weight: 600; }
:is(.breadcrumbs.is-light, .page-head .breadcrumbs) a { color: rgb(255 255 255 / 78%); }
:is(.breadcrumbs.is-light, .page-head .breadcrumbs) :is(a:hover, [aria-current]) { color: var(--gold); }

/* ── Tables and filters ─────────────────────────────────────────────────── */
.table-wrap, .table-card { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); }
.table { font-size: 0.875rem; text-align: left; }
.table thead th { padding: 0.95rem 1rem; background: var(--ink); color: rgb(255 255 255 / 92%); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.table :is(td, tbody th) { padding: 0.85rem 1rem; border-top: 1px solid var(--border-soft); font-weight: inherit; vertical-align: middle; }
.table tbody th { font-weight: 600; }
.table tbody tr { transition: background-color 0.2s; }
.table tbody tr:nth-child(even) { background: rgb(var(--ink-rgb) / 1.5%); }
.table tbody tr:hover { background: var(--gold-soft); }
.table .num { text-align: right; }
.table td.mono { font-weight: 700; }
.table .col-narrow { width: 5rem; }
.table--top :is(td, tbody th) { vertical-align: top; }
.table-card header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; background: var(--ink); color: var(--white); }
.table-card h3 { font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase; }
.table-card header span { font-size: 0.72rem; font-weight: 700; color: var(--gold); }
.table-card .table thead th { background: var(--sand); color: var(--ink-soft); padding-block: 0.65rem; }
.table-card .table :is(td, th) { padding-inline: 1.25rem; padding-block: 0.65rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.3rem; width: fit-content; max-width: 100%; padding: 0.3rem; border: 1px solid var(--border); border-radius: 999px; background: var(--white); box-shadow: var(--shadow-sm); }
.chips button { padding: 0.5rem 1rem; border: 0; border-radius: 999px; background: none; font-size: 0.75rem; font-weight: 600; white-space: nowrap; transition: background-color 0.25s, color 0.25s; }
.chips button:hover { background: var(--gold-soft); color: var(--accent-deep); }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--gold); }
@media (max-width: 639px) { .chips { border-radius: var(--radius-lg); } }

.search { position: relative; display: block; width: 100%; max-width: 16rem; }
.search--wide { max-width: 20rem; }
.search .icon { position: absolute; left: 1rem; top: 50%; translate: 0 -50%; color: var(--accent); pointer-events: none; }
.search input, .select {
    width: 100%; padding: 0.6rem 1rem; border: 1px solid var(--border); border-radius: 999px; background: var(--white);
    font-size: 0.8125rem; transition: border-color 0.25s, box-shadow 0.25s;
}
.search input { padding-left: 2.5rem; }
.select { width: auto; font-weight: 600; }
.search input:focus, .select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgb(var(--gold-rgb) / 30%); }
.empty { padding: 2.75rem 1.5rem; border: 1px dashed rgb(var(--accent-rgb) / 50%); border-radius: var(--radius-lg); background: var(--cream); text-align: center; font: 700 1.05rem var(--font-display); }

.accordion { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--white); overflow: hidden; box-shadow: var(--shadow-sm); transition: border-color 0.3s, box-shadow 0.3s; }
.accordion[open] { border-color: rgb(var(--accent-rgb) / 50%); box-shadow: var(--shadow); }
.accordion--gold { background: var(--gold-soft); border-color: rgb(var(--accent-rgb) / 45%); }
.accordion summary { display: flex; align-items: flex-start; gap: 0.8rem; padding: 1.2rem 1.5rem; list-style: none; cursor: pointer; transition: background-color 0.25s; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { background: rgb(var(--gold-rgb) / 14%); }
.accordion summary > span { flex: 1; min-width: 0; }
.accordion summary b { display: block; font: 700 1.125rem / 1.35 var(--font-display); }
.accordion summary small { display: block; margin-top: 0.2rem; font-size: 0.75rem; color: var(--ink-soft); }
.accordion summary > .icon:last-child {
    box-sizing: content-box; padding: 0.5rem; align-self: center; border: 1px solid var(--border); border-radius: 50%; background: var(--white);
    transition: rotate 0.4s var(--ease), border-color 0.3s, color 0.3s, background-color 0.3s;
}
.accordion[open] summary > .icon:last-child { rotate: 180deg; border-color: var(--ink); background: var(--ink); color: var(--gold); }
.accordion__icon { margin-top: 0.2em; font-size: 1.25rem; color: var(--accent); }
.accordion__body { padding: 1.1rem 1.5rem 1.6rem; border-top: 1px solid var(--border-soft); font-size: 0.875rem; color: var(--ink-soft); }
.accordion::details-content { block-size: 0; overflow: clip; transition: block-size 0.4s var(--ease), content-visibility 0.4s allow-discrete; }
.accordion[open]::details-content { block-size: auto; }

/* ── Forms ──────────────────────────────────────────────────────────────── */
.form { box-shadow: var(--shadow); }
.form > * + * { margin-top: 1.3rem; }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field label { display: block; margin-bottom: 0.45rem; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.01em; }
.field__req { color: var(--accent-deep); }
.field :is(input:not([type="checkbox"], [type="file"]), select, textarea) {
    display: block; width: 100%; padding: 0.75rem 0.95rem; border: 1px solid var(--border); border-radius: 10px; background: var(--cream);
    font-size: 0.875rem; transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}
.field textarea { resize: vertical; min-height: 5rem; }
.field ::placeholder { color: rgb(var(--ink-rgb) / 42%); }
.field :is(input, select, textarea):hover { border-color: rgb(var(--accent-rgb) / 60%); }
.field :is(input, select, textarea):focus { outline: 0; border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 4px rgb(var(--gold-rgb) / 30%); }
.field [aria-invalid="true"] { border-color: var(--danger); background: var(--danger-soft); }
.field__error { margin-top: 0.4rem; font-size: 0.75rem; font-weight: 600; color: var(--danger); }
.field__error:empty { display: none; }
.field__hint { margin-top: 0.4rem; font-size: 0.75rem; color: var(--ink-soft); }
.field--check label { display: flex; align-items: center; gap: 0.55rem; margin: 0; cursor: pointer; }
.field--check input { width: 1.1rem; height: 1.1rem; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note, .alert { display: flex; gap: 0.65rem; padding: 0.95rem; border-radius: var(--radius); font-size: 0.75rem; line-height: 1.6; }
.note { border: 1px solid rgb(var(--accent-rgb) / 45%); background: var(--gold-soft); }
.alert { border: 1px solid rgb(163 39 15 / 45%); background: var(--danger-soft); font-size: 0.875rem; }
.note .icon { flex: none; margin-top: 0.2em; font-size: 1rem; color: var(--accent); }
.alert .icon { flex: none; margin-top: 0.2em; font-size: 1rem; color: var(--danger); }

.result { padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid rgb(var(--accent-rgb) / 55%); border-radius: var(--radius-lg); background: var(--gold-soft); box-shadow: var(--shadow); animation: pop 0.5s var(--ease); }
.result:focus { outline: 0; }
.result > * + * { margin-top: 1rem; }
.result__head { display: flex; gap: 0.85rem; }
.result__head .icon { flex: none; margin-top: 0.1em; font-size: 1.75rem; color: var(--accent-deep); }
.result__facts { padding: 1.1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); font-size: 0.875rem; }
.result__facts div { display: flex; justify-content: space-between; gap: 0.75rem; }
.result__facts div + div { margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--border-soft); }
.result__facts dt { color: var(--ink-soft); }
.result__facts dd { font-weight: 600; text-align: right; }

/* ── Lightbox ───────────────────────────────────────────────────────────── */
.lightbox { width: min(52rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; overflow: auto; border: 1px solid rgb(var(--gold-rgb) / 40%); border-radius: var(--radius-lg); background: var(--white); color: var(--ink); box-shadow: 0 40px 80px rgb(0 0 0 / 45%); }
.lightbox::backdrop { background: rgb(var(--ink-rgb) / 88%); backdrop-filter: blur(6px); }
.lightbox[open] { animation: pop 0.45s var(--ease); }
.lightbox[open]::backdrop { animation: fade 0.3s; }
.lightbox__stage { position: relative; aspect-ratio: 16 / 10; background: var(--ink); }
.lightbox__stage img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: rgb(255 255 255 / 92%); font-size: 1.2rem; box-shadow: 0 4px 14px rgb(0 0 0 / 25%); transition: background-color 0.25s, scale 0.3s var(--ease); }
.lightbox button:hover { background: var(--gold); scale: 1.08; }
.lightbox__close { top: 0.85rem; right: 0.85rem; }
.lightbox__nav { top: 50%; translate: 0 -50%; }
.lightbox__nav--prev { left: 0.85rem; }
.lightbox__nav--next { right: 0.85rem; }
.lightbox figcaption { padding: 1.6rem; }
.lightbox figcaption > * + * { margin-top: 0.4rem; }

/* ── Motion ─────────────────────────────────────────────────────────────── */
@keyframes rise { from { opacity: 0; translate: 0 26px; } }
@keyframes pop { from { opacity: 0; scale: 0.96; translate: 0 14px; } }
@keyframes fade { from { opacity: 0; } }
@keyframes settle { from { scale: 1.12; } }
@keyframes progress { from { scale: 0 1; } to { scale: 1 1; } }
@keyframes draw { from { scale: 0 1; } }

/* Hero: the photo eases back from a slight zoom while the text arrives line by line. */
.js .hero__image img, .js .banner__image img { animation: settle 2.4s var(--ease) both; }
.js .hero__body > * { animation: rise 0.9s var(--ease) both; }
.js .hero__body > :nth-child(2) { animation-delay: 0.12s; }
.js .hero__body > :nth-child(3) { animation-delay: 0.24s; }
.js .hero__body > :nth-child(4) { animation-delay: 0.36s; }
.js .hero__body > :nth-child(5) { animation-delay: 0.48s; }
.js .hero__tagline::before { transform-origin: left; animation: draw 0.9s var(--ease) 0.5s both; }
.js .stats__grid { animation: rise 0.9s var(--ease) 0.55s both; }
.js .banner__body > * { animation: rise 0.8s var(--ease) both; }
.js .banner__body > :nth-child(2) { animation-delay: 0.1s; }
.js .banner__body > :nth-child(3) { animation-delay: 0.2s; }

/* Sections and grid items fade up as they scroll into view (classes are set by site.js). */
.js .reveal, .js [data-stagger] > * { opacity: 0; translate: 0 28px; transition: opacity 0.8s var(--ease), translate 0.8s var(--ease); }
.js .reveal.is-visible, .js [data-stagger].is-visible > * { opacity: 1; translate: 0; }
.js [data-stagger].is-visible > * { transition-delay: calc(var(--i, 0) * 70ms); }
/* Once shown, grid items drop the entrance transition so hover effects respond at once. */
.js [data-stagger].is-settled > * { transition: none; opacity: 1; translate: 0; }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.3s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
    .js .reveal, .js [data-stagger] > * { opacity: 1; translate: 0; }
    .site-header__accent { animation: none; }
    @view-transition { navigation: none; }
}

@media print {
    .site-header, .site-footer, .back-to-top, .hero__actions, .cta, form, .chips, .search { display: none !important; }
    .js .reveal, .js [data-stagger] > * { opacity: 1; translate: 0; }
    .page-head { background: none; color: var(--ink); }
    .accordion::details-content { block-size: auto; content-visibility: visible; }
}
