/* ============================================================
   Siraj Pasha — Civic Editorial Design System
   Direction: official / public-record vernacular, not SaaS template.
   Type: Fraunces (display serif) + Public Sans (civic UI/body).
   Brand: Navy #0A2E5C structure, Saffron #F58220 accent, Green #138A36 tricolor.
   Signatures: tricolor hairline rule · outlined index numerals · framed portrait.
   ============================================================ */

:root {
    /* ---- Ink & brand ---- */
    --navy:        #0A2E5C;
    --navy-deep:   #071F3F;
    --navy-line:   rgba(10, 46, 92, 0.14);
    --saffron:     #F58220;
    --saffron-ink: #A85400;   /* accessible saffron for small text */
    --green:       #147A34;
    --green-ink:   #0E5F28;

    /* ---- Surfaces ---- */
    --bg:          #FFFFFF;
    --paper:       #F5F7FA;    /* cool civic paper, not cream */
    --paper-2:     #EEF2F7;
    --ink:         #16233A;    /* body text */
    --ink-2:       #4E5B72;    /* secondary */
    --ink-3:       #6B7788;    /* tertiary */
    --hairline:    #E2E7EE;
    --danger:      #C62828;

    /* ---- Type ---- */
    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans:  'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --t-xs: 0.75rem; --t-sm: 0.875rem; --t-base: 1.0625rem; --t-md: 1.25rem;
    --t-lg: 1.5rem; --t-xl: 2rem; --t-2xl: 2.75rem; --t-3xl: 3.5rem; --t-4xl: 4.5rem;

    /* ---- Space (8pt) ---- */
    --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
    --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 5.5rem; --s-10: 7rem;

    --radius: 4px;
    --radius-lg: 8px;
    --container: 74rem;
    --measure: 40rem;
    --header-h: 84px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --dur: 260ms;
    --z-header: 100;
}

/* ============================================================ Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
    margin: 0; background: var(--bg); color: var(--ink);
    font-family: var(--sans); font-size: var(--t-base); line-height: 1.65;
    font-weight: 400; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
    min-height: 100dvh; display: flex; flex-direction: column; overflow-x: clip;
}

h1, h2, h3, h4 {
    font-family: var(--serif); color: var(--navy); font-weight: 500;
    line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 var(--s-4);
    font-optical-sizing: auto;
}
h1 { font-size: var(--t-3xl); font-weight: 500; }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-lg); }
p { margin: 0 0 var(--s-4); max-width: var(--measure); }
a { color: var(--navy); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--saffron-ink); }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
strong, b { font-weight: 700; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .hero :focus-visible, .cta :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

.skip-link {
    position: absolute; left: var(--s-3); top: -4rem; z-index: 1000;
    background: var(--navy); color: #fff; padding: var(--s-3) var(--s-4);
    border-radius: var(--radius); transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--s-3); color: #fff; }

/* ============================================================ Structural motif: tricolor hairline */
.tricolor {
    height: 3px; width: 100%; border: 0; margin: 0;
    background: linear-gradient(90deg,
        var(--saffron) 0 33.33%, #ffffff 33.33% 66.66%, var(--green) 66.66% 100%);
}
.tricolor--short { width: 84px; height: 3px; display: block; }

/* ============================================================ Layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s-5); }
main { flex: 1 0 auto; }
.section { padding-block: var(--s-9); }
.section--paper { background: var(--paper); }
.section--tight { padding-block: var(--s-7); }

/* Kicker / eyebrow — encodes a label, set as small caps record tag */
.kicker {
    display: inline-flex; align-items: center; gap: var(--s-3);
    font-family: var(--sans); font-weight: 700; font-size: var(--t-xs);
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--saffron-ink);
    margin: 0 0 var(--s-4);
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--saffron); }
.section-head { max-width: 46rem; margin-bottom: var(--s-7); }
.section-head p { color: var(--ink-2); font-size: var(--t-md); }
.lead { font-size: var(--t-md); color: var(--ink-2); line-height: 1.55; }

/* ============================================================ Buttons — squared, official */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
    min-height: 48px; padding: 0 var(--s-6); border: 2px solid transparent; border-radius: var(--radius);
    font-family: var(--sans); font-weight: 700; font-size: var(--t-sm); letter-spacing: 0.02em;
    cursor: pointer; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--saffron); color: var(--navy); }
.btn--primary:hover { background: #ffa93d; color: var(--navy); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); color: #fff; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy-line); }
.btn--outline:hover { border-color: var(--navy); color: var(--navy); }
.btn--onnavy { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn--onnavy:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--lg { min-height: 54px; font-size: var(--t-base); }

/* Text link with arrow */
.tlink { display: inline-flex; align-items: center; gap: var(--s-2); font-family: var(--sans); font-weight: 700; font-size: var(--t-sm); color: var(--saffron-ink); }
.tlink svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.tlink:hover svg { transform: translateX(3px); }

/* ============================================================ Header */
/* Utility top bar (navy) — scrolls away; main bar stays sticky */
.topbar { background: var(--navy-deep); color: #C6D2E4; border-bottom: 1px solid rgba(255,255,255,0.08); }
.topbar__inner { display: flex; align-items: center; justify-content: flex-end; gap: var(--s-4); min-height: 40px; }
.topbar__contact { display: flex; align-items: center; gap: var(--s-5); }
.topbar__contact a { display: inline-flex; align-items: center; gap: var(--s-2); color: #C6D2E4; font-size: var(--t-sm); font-weight: 500; }
.topbar__contact a:hover { color: #fff; }
.topbar__contact svg { width: 15px; height: 15px; color: var(--saffron); }
.topbar__social { display: flex; align-items: center; gap: var(--s-1); }
.topbar__social a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius); color: #C6D2E4; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.topbar__social a:hover { background: var(--saffron); color: var(--navy); }
.topbar__social svg { width: 16px; height: 16px; }

.site-header {
    position: sticky; top: 0; z-index: var(--z-header);
    background: rgba(255,255,255,0.96); backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid var(--hairline); box-shadow: 0 1px 0 var(--navy-line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: var(--s-3); color: var(--navy); }
.brand__mark {
    display: grid; place-items: center; width: 46px; height: 46px; flex: none;
    background: var(--navy); color: #fff; font-family: var(--serif); font-weight: 600;
    font-size: var(--t-md); border-radius: var(--radius);
    position: relative;
}
.brand__mark::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 5px; height: 2px; background: var(--saffron); }
.brand__name { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name b { font-family: var(--serif); font-weight: 600; font-size: var(--t-md); letter-spacing: -0.01em; }
.brand__name small { font-family: var(--sans); font-weight: 600; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.brand__logo { height: 66px; width: auto; display: block; }
@media (max-width: 860px) { .brand__logo { height: 52px; } }
.footer-logo { display: inline-block; background: #fff; border-radius: var(--radius); padding: 10px 16px; margin-bottom: var(--s-4); }
.footer-logo img { height: 64px; width: auto; display: block; }

.nav-wrap { display: flex; align-items: center; gap: var(--s-5); }
.main-nav { display: flex; align-items: center; gap: var(--s-2); }
.main-nav a {
    position: relative; display: inline-flex; align-items: center; min-height: 44px;
    padding: var(--s-2) var(--s-3); color: var(--ink);
    font-family: var(--sans); font-weight: 600; font-size: var(--t-sm); letter-spacing: 0.01em;
    border-radius: var(--radius); transition: color var(--dur) var(--ease);
}
.main-nav a:not(.btn)::after {
    content: ""; position: absolute; left: var(--s-3); right: var(--s-3); bottom: 6px; height: 2px;
    background: var(--saffron); transform: scaleX(0); transform-origin: left;
    transition: transform var(--dur) var(--ease);
}
.main-nav a:not(.btn):hover { color: var(--navy); }
.main-nav a:not(.btn):hover::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--navy); }
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav__cta { margin-left: var(--s-3); }

.nav-toggle { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); color: var(--navy); cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .x { display: none; }
.nav-toggle[aria-expanded="true"] .m { display: none; }
.nav-toggle[aria-expanded="true"] .x { display: block; }

/* ============================================================ Hero — flat navy, editorial, asymmetric */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero::before {
    /* faint civic ruling — intentional texture, not a glow */
    content: ""; position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
    background-image: linear-gradient(var(--navy-line) 1px, transparent 1px);
    background-size: 100% 44px; mix-blend-mode: overlay;
}
.hero__watermark {
    position: absolute; right: -3%; top: 50%; transform: translateY(-50%);
    font-family: var(--serif); font-weight: 600; font-size: 34rem; line-height: 1;
    color: rgba(255,255,255,0.03); pointer-events: none; user-select: none; z-index: 0;
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--s-8); align-items: center; padding-block: var(--s-9); }
.hero__kicker { display: inline-flex; align-items: center; gap: var(--s-3); font-weight: 700; font-size: var(--t-xs); letter-spacing: 0.18em; text-transform: uppercase; color: #FFC98A; margin-bottom: var(--s-5); }
.hero__kicker .tricolor--short { width: 40px; }
.hero h1 { color: #fff; font-size: var(--t-4xl); font-weight: 400; line-height: 1.02; margin-bottom: var(--s-5); }
.hero h1 em { font-style: italic; color: #FFC98A; }
.hero__lead { font-size: var(--t-md); color: #C6D2E4; max-width: 34rem; margin-bottom: var(--s-6); }
.hero__cta { display: flex; gap: var(--s-4); flex-wrap: wrap; }

/* Home hero — full-bleed banner background (subject on the right) */
.hero--banner {
    background-color: #f6efe2;
    background-image: url('../images/hero.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right top;
    color: var(--navy);
    min-height: clamp(520px, 68vh, 720px);
    display: flex;
    align-items: center;
}
.hero--banner::before {
    background: linear-gradient(90deg,
        rgba(255,251,244,0.95) 0%,
        rgba(255,251,244,0.82) 32%,
        rgba(255,251,244,0.25) 54%,
        rgba(255,251,244,0) 70%);
    mix-blend-mode: normal;
    opacity: 1;
}
.hero--banner .hero__content { position: relative; z-index: 1; max-width: 620px; }
.hero--banner .hero__kicker { color: var(--saffron-ink); background: rgba(255,255,255,0.72); border-color: rgba(10,46,92,0.18); }
.hero--banner h1 { color: var(--navy); }
.hero--banner h1 em { color: var(--saffron-ink); font-style: italic; }
.hero--banner .hero__lead { color: var(--ink-2); }
.hero--banner .hero__lead strong { color: var(--navy); }
.hero__name { display: block; font-family: var(--sans); font-weight: 700; font-size: var(--t-md); letter-spacing: 0.04em; color: var(--saffron-ink); margin-bottom: var(--s-2); }

/* 'Who is' intro lead */
.intro-lead { max-width: 60rem; margin: 0 auto; font-size: var(--t-md); line-height: 1.55; color: var(--ink); text-align: center; }
.intro-lead strong { color: var(--navy); }
@media (max-width: 768px) {
    .hero--banner {
        min-height: auto;
        padding-block: var(--s-8);
        background-size: cover;
        background-position: 76% top;
    }
    .hero--banner::before {
        background: linear-gradient(180deg,
            rgba(255,251,244,0.92) 0%,
            rgba(255,251,244,0.72) 55%,
            rgba(255,251,244,0.88) 100%);
    }
    .hero--banner .hero__content { max-width: 100%; }
}

/* Framed portrait — duotone navy panel + corner rule + seal */
.portrait { position: relative; width: 100%; max-width: 400px; margin-inline: auto; }
.portrait__frame {
    position: relative; aspect-ratio: 4/5; background: var(--navy-deep);
    border: 1px solid rgba(255,255,255,0.16); border-radius: var(--radius-lg); overflow: hidden;
    display: grid; place-items: center;
}
.portrait__frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait__frame .ph { display: grid; place-items: center; gap: var(--s-3); color: rgba(255,255,255,0.5); text-align: center; padding: var(--s-5); }
.portrait__frame .ph svg { width: 84px; height: 84px; }
.portrait__frame .ph span { font-size: var(--t-sm); }
.portrait::before { content: ""; position: absolute; left: -12px; top: -12px; width: 64px; height: 64px; border-top: 3px solid var(--saffron); border-left: 3px solid var(--saffron); border-top-left-radius: var(--radius-lg); }
.portrait::after { content: ""; position: absolute; right: -12px; bottom: -12px; width: 64px; height: 64px; border-bottom: 3px solid var(--green); border-right: 3px solid var(--green); border-bottom-right-radius: var(--radius-lg); }
.portrait__seal {
    position: absolute; left: var(--s-4); bottom: var(--s-4); z-index: 2;
    background: #fff; color: var(--navy); border-radius: var(--radius);
    padding: var(--s-2) var(--s-4); font-family: var(--sans); font-weight: 700; font-size: var(--t-xs);
    letter-spacing: 0.08em; text-transform: uppercase; display: flex; align-items: center; gap: var(--s-2);
    box-shadow: 0 10px 26px rgba(0,0,0,0.3);
}
.portrait__seal svg { width: 16px; height: 16px; color: var(--saffron-ink); }

/* ============================================================ Ledger (record strip, replaces stat cards) */
.ledger { border-top: 2px solid var(--navy); border-bottom: 1px solid var(--hairline); display: grid; grid-template-columns: repeat(4, 1fr); }
.ledger__cell { padding: var(--s-5) var(--s-4); border-left: 1px solid var(--hairline); }
.ledger__cell:first-child { border-left: 0; padding-left: 0; }
.ledger__fig { font-family: var(--serif); font-weight: 500; font-size: var(--t-2xl); color: var(--navy); line-height: 1; font-variant-numeric: tabular-nums; }
.ledger__fig sup { color: var(--saffron-ink); font-size: 0.5em; vertical-align: super; }
.ledger__label { display: block; margin-top: var(--s-3); font-size: var(--t-sm); color: var(--ink-2); }

/* ============================================================ Agenda (numbered, signature element) */
.agenda { border-top: 1px solid var(--hairline); }
.agenda__item {
    display: grid; grid-template-columns: 5.5rem 1fr; gap: var(--s-5); align-items: start;
    padding: var(--s-6) 0; border-bottom: 1px solid var(--hairline);
}
.agenda__no {
    font-family: var(--serif); font-weight: 600; font-size: var(--t-2xl); line-height: 1;
    color: transparent; -webkit-text-stroke: 1.5px var(--saffron); text-stroke: 1.5px var(--saffron);
    font-variant-numeric: tabular-nums;
}
.agenda__body h3 { margin-bottom: var(--s-2); }
.agenda__body p { color: var(--ink-2); margin: 0; }
.agenda__tag { display: inline-block; margin-bottom: var(--s-2); font-family: var(--sans); font-weight: 700; font-size: var(--t-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-ink); }

/* ============================================================ Split feature (about) */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--s-8); align-items: center; }
.figure-panel { position: relative; aspect-ratio: 5/6; background: var(--navy); border-radius: var(--radius-lg); overflow: hidden; display: grid; place-items: center; }
.figure-panel img { width: 100%; height: 100%; object-fit: cover; }
.figure-panel .ph { color: rgba(255,255,255,0.5); display: grid; place-items: center; gap: var(--s-3); text-align: center; }
.figure-panel .ph svg { width: 68px; height: 68px; }
.figure-panel__tag { position: absolute; left: 0; bottom: var(--s-5); background: var(--saffron); color: var(--navy); font-family: var(--sans); font-weight: 700; font-size: var(--t-xs); letter-spacing: 0.08em; text-transform: uppercase; padding: var(--s-2) var(--s-4); }
.creed { border-top: 1px solid var(--hairline); margin-top: var(--s-5); }
.creed li { display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--hairline); }
.creed svg { width: 22px; height: 22px; color: var(--green-ink); margin-top: 3px; }
.creed b { font-family: var(--serif); font-weight: 600; color: var(--navy); font-size: var(--t-md); display: block; margin-bottom: 2px; }
.creed span span { color: var(--ink-2); }

/* ============================================================ Chronicle (editorial timeline) */
.chronicle { border-top: 2px solid var(--navy); }
.chronicle__row { display: grid; grid-template-columns: 8rem 1fr; gap: var(--s-6); padding: var(--s-6) 0; border-bottom: 1px solid var(--hairline); }
.chronicle__year { font-family: var(--serif); font-weight: 500; font-size: var(--t-xl); color: var(--saffron-ink); line-height: 1; font-variant-numeric: tabular-nums; }
.chronicle__row h3 { margin-bottom: var(--s-2); }
.chronicle__row p { color: var(--ink-2); margin: 0; }

/* ============================================================ Pull-quotes */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.quote { border-top: 3px solid var(--saffron); padding-top: var(--s-5); }
.quote blockquote { margin: 0 0 var(--s-5); font-family: var(--serif); font-weight: 400; font-size: var(--t-md); line-height: 1.4; color: var(--navy); }
.quote figcaption { display: flex; align-items: center; gap: var(--s-3); }
.quote__mono { width: 42px; height: 42px; border-radius: 50%; background: var(--paper-2); color: var(--navy); display: grid; place-items: center; font-family: var(--sans); font-weight: 700; font-size: var(--t-sm); }
.quote cite { font-style: normal; }
.quote cite b { display: block; font-family: var(--sans); font-weight: 700; font-size: var(--t-sm); color: var(--navy); }
.quote cite span { font-size: var(--t-xs); color: var(--ink-3); }

/* ============================================================ Gallery — editorial asymmetric grid */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: var(--s-3); }
.gallery__item { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); }
.gallery__ph svg { width: 34px; height: 34px; opacity: 0.5; }

/* ============================================================ Newsroom — editorial rows */
.newsroom { border-top: 2px solid var(--navy); }
.news-row { display: grid; grid-template-columns: 9rem 1fr auto; gap: var(--s-6); align-items: baseline; padding: var(--s-5) 0; border-bottom: 1px solid var(--hairline); }
.news-row__meta { display: flex; flex-direction: column; gap: var(--s-2); }
.news-row time { font-family: var(--sans); font-weight: 600; font-size: var(--t-sm); color: var(--navy); font-variant-numeric: tabular-nums; }
.news-row .tag { font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--saffron-ink); }
.news-row h3 { font-size: var(--t-md); margin: 0; max-width: 44rem; }
.news-row:hover h3 { color: var(--navy); }

/* ============================================================ CTA — flat navy band */
.cta { background: var(--navy); color: #fff; border-radius: var(--radius-lg); overflow: hidden; }
.cta__inner { padding: var(--s-8); text-align: center; }
.cta h2 { color: #fff; font-size: var(--t-2xl); }
.cta p { color: #C6D2E4; max-width: 46rem; margin-inline: auto; margin-bottom: var(--s-6); }
.cta .hero__cta { justify-content: center; }

/* ============================================================ Forms */
.split--top { align-items: start; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--sans); font-weight: 700; font-size: var(--t-sm); color: var(--navy); }
.field .req { color: var(--danger); }
.field .hint { font-weight: 400; color: var(--ink-3); }
.input, .textarea {
    font-family: var(--sans); font-size: var(--t-base); color: var(--ink);
    min-height: 48px; padding: var(--s-3) var(--s-4); width: 100%;
    background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.textarea { min-height: 150px; resize: vertical; }
.input:focus, .textarea:focus { outline: none; border-color: var(--navy); box-shadow: inset 0 -2px 0 var(--saffron); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.field__error { font-size: var(--t-sm); color: var(--danger); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.alert { border-radius: var(--radius); padding: var(--s-4) var(--s-5); margin-bottom: var(--s-5); display: flex; gap: var(--s-3); align-items: flex-start; border: 1px solid; }
.alert svg { flex: none; width: 22px; height: 22px; margin-top: 2px; }
.alert p { margin: 0; }
.alert--success { background: #EAF6EE; color: var(--green-ink); border-color: #BEE3C9; }
.alert--error { background: #FCEBEB; color: #991B1B; border-color: #F1C6C6; }

.contact-list { border-top: 1px solid var(--hairline); }
.contact-list li { display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--hairline); }
.contact-list .ci { width: 44px; height: 44px; border: 1px solid var(--navy-line); border-radius: var(--radius); display: grid; place-items: center; color: var(--saffron-ink); }
.contact-list .ci svg { width: 20px; height: 20px; }
.contact-list b { font-family: var(--sans); font-weight: 700; color: var(--navy); display: block; }
.contact-list span span, .contact-list a { color: var(--ink-2); }

/* ============================================================ Footer */
.site-footer { background: var(--navy); color: #C6D2E4; }
.site-footer .tricolor { }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--s-7); padding-block: var(--s-8) var(--s-6); }
.site-footer h4 { color: #fff; font-family: var(--sans); font-weight: 700; font-size: var(--t-sm); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: var(--s-4); }
.site-footer p { color: #A9B7CE; }
.footer-brand .brand { color: #fff; margin-bottom: var(--s-4); }
.footer-brand .brand__name small { color: #8496b1; }
.footer-links li { margin-bottom: var(--s-3); }
.footer-links a { color: #C6D2E4; font-size: var(--t-sm); }
.footer-links a:hover { color: var(--saffron); }
.social { display: flex; gap: var(--s-2); margin-top: var(--s-4); }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius); color: #fff; transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.social a:hover { background: var(--saffron); border-color: var(--saffron); color: var(--navy); }
.social svg { width: 20px; height: 20px; }
.footer-bar { border-top: 1px solid rgba(255,255,255,0.14); padding-block: var(--s-5); display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.footer-bar p { margin: 0; font-size: var(--t-sm); color: #A9B7CE; }

/* ============================================================ Error page */
.error-page { padding-block: var(--s-10); max-width: 40rem; }
.error-page .code { font-family: var(--serif); font-size: 6rem; color: var(--navy); line-height: 1; }
.error-page .code span { color: transparent; -webkit-text-stroke: 2px var(--saffron); }

/* ============================================================ Quick Facts panel */
.facts { border-top: 2px solid var(--navy); }
.facts__row { display: grid; grid-template-columns: 12rem 1fr; gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--hairline); }
.facts__row dt { font-family: var(--sans); font-weight: 700; font-size: var(--t-sm); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
.facts__row dd { margin: 0; color: var(--navy); font-weight: 600; }

/* ============================================================ Key issue block */
.issue { border-top: 3px solid var(--saffron); padding-top: var(--s-5); margin-bottom: var(--s-8); }
.issue__no { font-family: var(--serif); font-weight: 600; font-size: var(--t-lg); color: transparent; -webkit-text-stroke: 1.5px var(--saffron); text-stroke: 1.5px var(--saffron); }
.issue__tag { display: inline-block; margin: var(--s-2) 0; font-family: var(--sans); font-weight: 700; font-size: var(--t-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-ink); }
.issue h2 { font-size: var(--t-xl); margin-bottom: var(--s-4); }
.issue__quote { font-family: var(--serif); font-style: italic; font-size: var(--t-md); color: var(--navy); border-left: 3px solid var(--saffron); padding-left: var(--s-4); margin: 0 0 var(--s-5); max-width: 48rem; }
.points { border-top: 1px solid var(--hairline); max-width: 52rem; }
.points li { display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--hairline); }
.points svg { width: 20px; height: 20px; color: var(--saffron-ink); margin-top: 4px; flex: none; }
.points p { margin: 0; color: var(--ink); }

/* ============================================================ Certifications */
.certs { border-top: 2px solid var(--navy); }
.cert { display: grid; grid-template-columns: 3.5rem 1fr auto; gap: var(--s-5); align-items: start; padding: var(--s-6) 0; border-bottom: 1px solid var(--hairline); }
.cert__icon { width: 48px; height: 48px; border: 1px solid var(--navy-line); border-radius: var(--radius); display: grid; place-items: center; color: var(--saffron-ink); }
.cert__icon svg { width: 24px; height: 24px; }
.cert__body h3 { margin-bottom: var(--s-2); }
.cert__body p { color: var(--ink-2); margin: 0; }
.cert__body .issuer { display: block; margin-top: var(--s-2); font-size: var(--t-sm); color: var(--ink-3); }
.badge-merit { align-self: center; white-space: nowrap; font-family: var(--sans); font-weight: 700; font-size: var(--t-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-ink); background: #EAF6EE; border: 1px solid #BEE3C9; padding: var(--s-2) var(--s-3); border-radius: var(--radius); }

/* ============================================================ FAQ accordion */
.faq { border-top: 2px solid var(--navy); max-width: 52rem; }
.faq__item { border-bottom: 1px solid var(--hairline); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-5) 0; font-family: var(--serif); font-weight: 500; font-size: var(--t-md); color: var(--navy); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .plus { flex: none; width: 26px; height: 26px; position: relative; }
.faq__item summary .plus::before, .faq__item summary .plus::after { content: ""; position: absolute; background: var(--saffron); }
.faq__item summary .plus::before { left: 0; right: 0; top: 50%; height: 2px; transform: translateY(-50%); }
.faq__item summary .plus::after { top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); transition: transform var(--dur) var(--ease); }
.faq__item[open] summary .plus::after { transform: translateX(-50%) scaleY(0); }
.faq__answer { padding: 0 0 var(--s-5); color: var(--ink-2); }
.faq__answer p { margin: 0; }

/* ============================================================ Gallery groups */
.gallery-group { margin-bottom: var(--s-8); }
.gallery-group__head { display: flex; align-items: baseline; gap: var(--s-4); border-bottom: 1px solid var(--hairline); padding-bottom: var(--s-3); margin-bottom: var(--s-5); }
.gallery-group__head h2 { font-size: var(--t-lg); margin: 0; }
.gallery-group__head p { margin: 0; color: var(--ink-3); font-size: var(--t-sm); }

/* ============================================================ Select (contact subject) */
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 16px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select {
    font-family: var(--sans); font-size: var(--t-base); color: var(--ink);
    min-height: 48px; padding: var(--s-3) var(--s-6) var(--s-3) var(--s-4); width: 100%;
    background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius);
    appearance: none; -webkit-appearance: none; cursor: pointer;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.select:focus { outline: none; border-color: var(--navy); box-shadow: inset 0 -2px 0 var(--saffron); }
.select[aria-invalid="true"] { border-color: var(--danger); }

/* ============================================================ Back to top */
.to-top {
    position: fixed; right: clamp(16px, 4vw, 32px); bottom: clamp(16px, 4vw, 32px); z-index: 90;
    width: 48px; height: 48px; display: grid; place-items: center;
    background: var(--navy); color: #fff; border: 0; border-radius: 50%;
    box-shadow: 0 8px 24px rgba(10,46,92,0.3); cursor: pointer;
    opacity: 0; transform: translateY(12px); pointer-events: none;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--saffron); color: var(--navy); }
.to-top svg { width: 22px; height: 22px; }

/* ============================================================ Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: var(--z-header); z-index: 300;
    display: flex; align-items: center; justify-content: center; padding: var(--s-5);
    background: rgba(7, 31, 63, 0.92); backdrop-filter: blur(4px);
    opacity: 0; transition: opacity var(--dur) var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__img { max-width: min(1000px, 92vw); max-height: 88vh; width: auto; height: auto; border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,0.5); background: #fff; }
.lightbox__close {
    position: absolute; top: var(--s-5); right: var(--s-5); width: 48px; height: 48px;
    display: grid; place-items: center; background: rgba(255,255,255,0.14); color: #fff;
    border: 1px solid rgba(255,255,255,0.4); border-radius: 50%; cursor: pointer;
    transition: background-color var(--dur) var(--ease);
}
.lightbox__close:hover { background: var(--saffron); color: var(--navy); border-color: var(--saffron); }
.lightbox__close svg { width: 24px; height: 24px; }
.doc { cursor: zoom-in; }

/* ============================================================ Document thumbnails (press clippings, certificates) */
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.doc { display: block; border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-xs); transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
.doc:hover { box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.doc img { width: 100%; height: 260px; object-fit: cover; object-position: top center; display: block; background: var(--paper-2); }
.doc figcaption { padding: var(--s-3) var(--s-4); font-size: var(--t-sm); color: var(--ink-2); border-top: 1px solid var(--hairline); }
.doc-grid--certs .doc img { height: 220px; object-fit: contain; padding: var(--s-3); }
@media (max-width: 768px) { .doc-grid { grid-template-columns: 1fr 1fr; } .doc img { height: 220px; } }
@media (max-width: 480px) { .doc-grid { grid-template-columns: 1fr; } }

/* ============================================================ Reveal (subtle, purposeful) */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 640ms var(--ease), transform 640ms var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 90ms; }
.js .reveal[data-delay="2"] { transition-delay: 180ms; }
.js .reveal[data-delay="3"] { transition-delay: 270ms; }

/* ============================================================ Responsive */
@media (max-width: 1024px) {
    :root { --t-4xl: 3.5rem; --t-3xl: 2.75rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
    .site-footer { overflow-wrap: anywhere; }
    .cert { grid-template-columns: auto 1fr; }
    .cert .badge-merit { grid-column: 2; justify-self: start; white-space: normal; }
}
@media (max-width: 860px) {
    :root { --t-4xl: 2.9rem; --t-3xl: 2.25rem; --t-2xl: 2rem; --s-9: 3.5rem; --s-8: 2.75rem; }
    .nav-toggle { display: inline-flex; }
    .topbar { display: none; }
    .main-nav a:not(.btn)::after { display: none; }
    .main-nav a[aria-current="page"] { background: var(--paper); box-shadow: inset 3px 0 0 var(--saffron); }
    .main-nav {
        position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
        gap: 0; background: #fff; border-bottom: 1px solid var(--hairline); box-shadow: 0 12px 30px rgba(10,46,92,0.12);
        padding: var(--s-3); transform: translateY(-115%); visibility: hidden;
        transition: transform var(--dur) var(--ease), visibility var(--dur) var(--ease);
        max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    }
    .main-nav.is-open { transform: translateY(0); visibility: visible; }
    .main-nav a { min-height: 50px; }
    .main-nav .btn { margin: var(--s-2) 0 0; }
    .hero__grid { grid-template-columns: 1fr; gap: var(--s-7); }
    .portrait { order: -1; max-width: 300px; }
    .hero__watermark { display: none; }
    .split { grid-template-columns: 1fr; gap: var(--s-6); }
    .ledger { grid-template-columns: repeat(2, 1fr); }
    .ledger__cell:nth-child(3) { border-left: 0; padding-left: 0; }
    .quotes { grid-template-columns: 1fr; }
    .agenda__item { grid-template-columns: 3.5rem 1fr; gap: var(--s-4); }
    .chronicle__row, .news-row { grid-template-columns: 1fr; gap: var(--s-2); }
    .news-row__meta { flex-direction: row; gap: var(--s-4); align-items: center; }
    .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
    .gallery__item--wide { grid-column: span 2; }
    .form-grid { grid-template-columns: 1fr; }
    .cta__inner { padding: var(--s-7) var(--s-5); }
}
@media (max-width: 480px) {
    .gallery { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 2.4rem; }
}

/* ============================================================ Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
