/* =====================================================================
   Tarkwa Nsuaem Constituency Record
   Visual direction: formal parliamentary archive
   — deep green, warm gold, paper surfaces, serif display
   ===================================================================== */

:root {
    --ink:        #14201a;
    --ink-soft:   #3d4a43;
    --ink-muted:  #5c6b63;
    --paper:      #f7f4ee;
    --paper-2:    #efeae0;
    --white:      #fffcf7;
    --line:       #d9d2c4;
    --line-strong:#c4bbab;

    --green-950:  #0a1f16;
    --green-900:  #0f2e20;
    --green-800:  #163d2b;
    --green-700:  #1f5238;
    --green-600:  #2a6b48;
    --green-100:  #e4efe8;
    --green-50:   #f0f6f2;

    --gold:       #b08d3a;
    --gold-soft:  #e8d9a8;
    --gold-ink:   #6e5520;

    --npp: #1a4a8a;
    --ndc: #1a6b3c;

    --ok:     #2a6b48;
    --warn:   #9a6b1a;
    --danger: #8b2e2e;

    --font-display: "Fraunces", "Georgia", "Times New Roman", serif;
    --font-body:    "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;

    --s-1: 0.25rem;
    --s-2: 0.5rem;
    --s-3: 0.75rem;
    --s-4: 1rem;
    --s-5: 1.25rem;
    --s-6: 1.5rem;
    --s-8: 2rem;
    --s-10: 2.5rem;
    --s-12: 3rem;
    --s-16: 4rem;
    --s-20: 5rem;

    --radius: 2px;
    --container: 1080px;
    --narrow: 720px;
    --header-h: 4.25rem;

    --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---- Reset & base --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overflow-x: clip;
}

img, svg, video, iframe { display: block; max-width: 100%; height: auto; }
iframe { max-width: 100%; }

h1, h2, h3, h4, p, li, a, td, th, label, figcaption {
    overflow-wrap: break-word;
}
a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--green-900); }

h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--ink);
    text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 1.6rem + 2.8vw, 3.75rem); font-weight: 450; }
h2 { font-size: clamp(1.65rem, 1.3rem + 1.2vw, 2.35rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; }

p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
hr { border: 0; height: 1px; background: var(--line); margin: 0; }

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.eyebrow {
    display: block;
    margin-bottom: var(--s-3);
    color: var(--gold-ink);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.lead {
    max-width: 38rem;
    color: var(--ink-soft);
    font-size: 1.125rem;
    line-height: 1.6;
}

.muted { color: var(--ink-muted); }
.text-npp { color: var(--npp); font-weight: 600; }
.text-ndc { color: var(--ndc); font-weight: 600; }

/* ---- Layout --------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 2rem);
}
.container--narrow { max-width: var(--narrow); }

.section {
    padding-block: clamp(3.5rem, 2rem + 5vw, 6rem);
}
.section--sm { padding-block: clamp(2.5rem, 1.5rem + 3vw, 3.75rem); }
.section--band {
    background: var(--paper-2);
    border-block: 1px solid var(--line);
}

.stack > * + * { margin-top: var(--stack-gap, var(--s-4)); }
.stack--xs { --stack-gap: var(--s-2); }
.stack--sm { --stack-gap: var(--s-3); }
.stack--lg { --stack-gap: var(--s-6); }
.stack--xl { --stack-gap: var(--s-10); }

.cluster {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--cluster-gap, var(--s-3));
}
.cluster--between { justify-content: space-between; }
.cluster--center { justify-content: center; }
.cluster--lg { --cluster-gap: var(--s-6); }

.split {
    display: grid;
    gap: clamp(2rem, 4vw, 4rem);
    grid-template-columns: 1fr;
    align-items: start;
}
@media (min-width: 62rem) {
    .split { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
    .split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .split--aside { grid-template-columns: minmax(0, 1.8fr) minmax(14rem, 0.85fr); }
}
.split--stretch { align-items: stretch; }
.sticky-aside { position: sticky; top: calc(var(--header-h) + var(--s-6)); }

.section-head {
    max-width: 38rem;
    margin-bottom: var(--s-10);
}
.section-head > * + * { margin-top: var(--s-3); }
.section-head--split {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: var(--s-4);
    max-width: none;
}
.section-head--split > * + * { margin-top: 0; }
.section-head--split .section-head__text > * + * { margin-top: var(--s-3); }

.rule {
    display: block;
    width: 3rem;
    height: 2px;
    margin: var(--s-4) 0 var(--s-5);
    background: var(--gold);
    border: 0;
}

/* ---- Buttons -------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    padding: 0.85rem 1.4rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: transparent;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--primary {
    background: var(--green-800);
    border-color: var(--green-800);
    color: var(--white);
}
.btn--primary:hover {
    background: var(--green-900);
    border-color: var(--green-900);
    color: var(--white);
}

.btn--ghost {
    border-color: var(--line-strong);
    background: var(--white);
    color: var(--ink);
}
.btn--ghost:hover {
    border-color: var(--green-700);
    color: var(--green-800);
}

.btn--on-dark {
    border-color: rgba(255, 252, 247, .45);
    color: var(--white);
}
.btn--on-dark:hover {
    background: rgba(255, 252, 247, .1);
    border-color: var(--white);
    color: var(--white);
}

.btn--gold {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--green-950);
}
.btn--gold:hover {
    background: var(--gold-soft);
    border-color: var(--gold-soft);
    color: var(--green-950);
}

.btn--sm { padding: 0.55rem 0.95rem; font-size: 0.85rem; }
.btn--block { width: 100%; }

.link-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--green-700);
}
.link-more:hover { color: var(--green-900); }
.link-more::after { content: "→"; transition: transform .2s var(--ease); }
.link-more:hover::after { transform: translateX(3px); }

/* ---- Header --------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247, 244, 238, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-6);
    min-height: var(--header-h);
}

.brand {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    min-width: 0;
    color: var(--ink);
    text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand__mark {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--gold);
    background: var(--green-900);
    color: var(--gold-soft);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__title {
    font-family: var(--font-display);
    font-size: clamp(0.92rem, 0.85rem + 0.4vw, 1.05rem);
    font-weight: 500;
}
.brand__sub {
    color: var(--ink-muted);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    list-style: none;
}
.nav__links a {
    display: block;
    padding: 0.45rem 0.65rem;
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a.is-active {
    color: var(--green-800);
    border-bottom-color: var(--gold);
}

.nav__toggle {
    display: none;
    place-items: center;
    width: 2.75rem;
    height: 2.5rem;
    border: 1px solid var(--line-strong);
    background: var(--white);
    cursor: pointer;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
    display: block;
    width: 1.1rem;
    height: 1.5px;
    background: var(--ink);
    position: relative;
    content: "";
}
.nav__toggle span::before { position: absolute; top: -5px; }
.nav__toggle span::after  { position: absolute; top: 5px; }

/* ---- Hero ----------------------------------------------------------- */
.hero {
    position: relative;
    isolation: isolate;
    min-height: min(78vh, 42rem);
    display: flex;
    align-items: flex-end;
    background:
        linear-gradient(160deg, rgba(10, 31, 22, .35) 0%, rgba(15, 46, 32, .55) 55%, rgba(10, 31, 22, .72) 100%),
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(176, 141, 58, .14), transparent 55%),
        linear-gradient(145deg, var(--green-950), var(--green-800));
    color: var(--white);
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: .92;
}
.hero__pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: .07;
    background-image:
        linear-gradient(var(--gold) 1px, transparent 1px),
        linear-gradient(90deg, var(--gold) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}
.hero__inner {
    position: relative;
    z-index: 1;
    padding-block: clamp(4rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem);
    max-width: 40rem;
}
.hero .eyebrow { color: var(--gold-soft); }
.hero .brand-hero {
    display: block;
    margin-bottom: var(--s-5);
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem);
    font-weight: 500;
    color: var(--gold-soft);
    letter-spacing: 0.02em;
}
.hero h1 { color: var(--white); margin-bottom: var(--s-5); }
.hero__lead {
    max-width: 34rem;
    margin-bottom: var(--s-8);
    color: rgba(255, 252, 247, .82);
    font-size: 1.125rem;
}

/* ---- Page header ---------------------------------------------------- */
.page-header {
    padding-block: clamp(2.75rem, 2rem + 3vw, 4rem);
    background:
        linear-gradient(180deg, var(--paper-2), var(--paper));
    border-bottom: 1px solid var(--line);
}
.page-header__inner { max-width: 40rem; }
.page-header__inner > * + * { margin-top: var(--s-3); }

.page-header--profile {
    background:
        linear-gradient(155deg, var(--green-950), var(--green-800));
    border-bottom: 0;
    color: var(--white);
    padding-block: clamp(2.75rem, 2rem + 4vw, 4.5rem);
}
.page-header--profile h1 { color: var(--white); }
.page-header--profile .page-header__role {
    color: rgba(255, 252, 247, .75);
    font-size: 1.1rem;
}
.page-header--profile .eyebrow { color: var(--gold-soft); }

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    margin-bottom: var(--s-5);
    list-style: none;
    color: var(--ink-muted);
    font-size: 0.85rem;
}
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--green-700); }
.page-header--profile .breadcrumb { color: rgba(255, 252, 247, .65); }
.page-header--profile .breadcrumb a:hover { color: var(--white); }

/* ---- Portrait / avatar ---------------------------------------------- */
.portrait {
    flex-shrink: 0;
    width: 4.5rem;
    height: 4.5rem;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    background: var(--green-100);
    color: var(--green-800);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait--lg {
    width: 6.5rem;
    height: 6.5rem;
    font-size: 1.85rem;
    border-color: rgba(255, 252, 247, .25);
    background: rgba(255, 252, 247, .08);
    color: var(--gold-soft);
}
.portrait--sm { width: 3.25rem; height: 3.25rem; font-size: 0.95rem; }

/* ---- Tags ----------------------------------------------------------- */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.55rem;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink-soft);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.tag--brand { border-color: var(--green-100); background: var(--green-50); color: var(--green-800); }
.tag--gold  { border-color: var(--gold-soft); background: #faf6ea; color: var(--gold-ink); }
.tag--npp   { border-color: #c5d5ea; background: #eef3f9; color: var(--npp); }
.tag--ndc   { border-color: #c5ddcf; background: #eef6f1; color: var(--ndc); }
.tag--light { border-color: rgba(255,252,247,.3); background: rgba(255,252,247,.08); color: var(--white); }
.tag--neutral { background: var(--paper-2); }
.tag .dot {
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: currentColor;
}

/* ---- MP roster (editorial, not cards) ------------------------------- */
.roster {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
}
.roster__item {
    display: grid;
    gap: var(--s-6);
    padding-block: var(--s-8);
    border-bottom: 1px solid var(--line);
    grid-template-columns: 1fr;
    align-items: start;
}
@media (min-width: 48rem) {
    .roster__item {
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
    }
}
.roster__identity {
    display: flex;
    gap: var(--s-5);
    align-items: center;
}
.roster__role {
    color: var(--gold-ink);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.roster__name {
    margin-top: var(--s-1);
    font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
}
.roster__meta {
    color: var(--ink-muted);
    font-size: 0.95rem;
}
.roster__desc {
    color: var(--ink-soft);
    max-width: 34rem;
}
.roster__action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-3);
}
@media (min-width: 48rem) {
    .roster__action { align-items: flex-end; text-align: right; }
}
.roster__count {
    color: var(--ink-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

/* ---- Theme columns (no cards) --------------------------------------- */
.themes {
    display: grid;
    gap: var(--s-8);
    grid-template-columns: 1fr;
    border-top: 1px solid var(--line);
    padding-top: var(--s-8);
}
@media (min-width: 52rem) {
    .themes { grid-template-columns: repeat(3, 1fr); gap: 0; }
    .theme {
        padding-inline: var(--s-6);
        border-right: 1px solid var(--line);
    }
    .theme:first-child { padding-left: 0; }
    .theme:last-child { padding-right: 0; border-right: 0; }
}
.theme__num {
    display: block;
    margin-bottom: var(--s-4);
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 450;
}
.theme h3 { margin-bottom: var(--s-3); }
.theme p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---- Facts strip ---------------------------------------------------- */
.facts {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
    margin-top: var(--s-8);
    list-style: none;
    background: rgba(255, 252, 247, .12);
    border: 1px solid rgba(255, 252, 247, .18);
}
.fact { padding: var(--s-4) var(--s-5); background: rgba(10, 31, 22, .25); }
.fact__label {
    color: var(--gold-soft);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.fact__value { margin-top: var(--s-1); color: var(--white); font-weight: 600; font-size: 0.98rem; }

/* ---- Prose & timeline ----------------------------------------------- */
.prose { max-width: 40rem; color: var(--ink-soft); font-size: 1.0625rem; }
.prose > * + * { margin-top: var(--s-4); }
.prose--lg { font-size: 1.125rem; line-height: 1.7; }

.timeline { list-style: none; }
.timeline__item {
    position: relative;
    padding: 0 0 var(--s-8) var(--s-8);
    border-left: 1px solid var(--line-strong);
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
    content: "";
    position: absolute;
    top: 0.35rem;
    left: -0.3rem;
    width: 0.55rem;
    height: 0.55rem;
    background: var(--gold);
    border: 1px solid var(--green-800);
}
.timeline__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    margin-bottom: var(--s-3);
}
.timeline__year {
    color: var(--green-700);
    font-weight: 700;
    font-size: 0.9rem;
}
.timeline__title { margin-bottom: var(--s-2); }

/* ---- Compare columns ------------------------------------------------ */
.compare {
    display: grid;
    gap: 0;
    border: 1px solid var(--line);
    background: var(--white);
}
@media (min-width: 62rem) {
    .compare { grid-template-columns: 1fr 1fr; }
    .compare__col + .compare__col { border-left: 1px solid var(--line); }
}
.compare__head {
    padding: var(--s-6);
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
}
.compare__identity {
    display: flex;
    gap: var(--s-4);
    align-items: center;
    margin-bottom: var(--s-4);
}
.compare__name { font-size: 1.35rem; margin-top: var(--s-2); }
.compare__list { list-style: none; }
.compare__entry {
    padding: var(--s-5) var(--s-6);
    border-bottom: 1px solid var(--line);
}
.compare__entry:last-child { border-bottom: 0; }
.compare__entry-title { font-size: 1.05rem; margin-bottom: var(--s-2); font-family: var(--font-display); font-weight: 500; }
.compare__entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    margin-bottom: var(--s-3);
    color: var(--ink-muted);
    font-size: 0.82rem;
}
.compare__foot {
    padding: var(--s-5) var(--s-6);
    border-top: 1px solid var(--line);
    background: var(--paper);
}

/* ---- News list ------------------------------------------------------ */
.news-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.news-row {
    display: grid;
    gap: var(--s-4);
    padding-block: var(--s-6);
    border-bottom: 1px solid var(--line);
    grid-template-columns: 1fr;
    text-decoration: none;
    color: inherit;
    transition: background .2s var(--ease);
}
.news-row:hover { background: rgba(255, 252, 247, .6); }
@media (min-width: 40rem) {
    .news-row { grid-template-columns: 7rem minmax(0, 1fr); gap: var(--s-6); }
}
.news-row__date {
    color: var(--ink-muted);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.news-row__title {
    font-size: 1.35rem;
    margin-bottom: var(--s-2);
}
.news-row__title a {
    color: var(--ink);
    text-decoration: none;
}
.news-row__title a:hover { color: var(--green-700); }
.article-hero {
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    border: 1px solid var(--line);
    background: var(--paper-2);
}

/* ---- Gallery -------------------------------------------------------- */
.gallery {
    display: grid;
    gap: var(--s-3);
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr));
}
.gallery__item {
    position: relative;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--line);
    background: var(--paper-2);
    cursor: zoom-in;
}
.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s var(--ease);
}
.gallery__item:hover img { transform: scale(1.04); }
.gallery__caption {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: var(--s-4);
    background: linear-gradient(transparent, rgba(10, 31, 22, .85));
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ---- Video gallery -------------------------------------------------- */
.video-grid {
    display: grid;
    gap: var(--s-6);
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
}
.video-card {
    margin: 0;
    border: 1px solid var(--line);
    background: var(--white);
    cursor: pointer;
    transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.video-card:hover {
    border-color: var(--green-700);
    transform: translateY(-2px);
}
.video-card__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--green-950);
}
.video-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .92;
    transition: transform .45s var(--ease), opacity .2s var(--ease);
}
.video-card:hover .video-card__thumb img {
    transform: scale(1.04);
    opacity: 1;
}
.video-card__play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--white);
    font-size: 1.35rem;
    text-indent: 0.15rem;
    background: rgba(10, 31, 22, .28);
}
.video-card__play::before {
    content: "";
    position: absolute;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 252, 247, .85);
    background: rgba(10, 31, 22, .55);
}
.video-card__play {
    z-index: 1;
}
.video-card__body {
    padding: var(--s-4) var(--s-5) var(--s-5);
}
.video-card__body h3 {
    font-size: 1.05rem;
    margin-bottom: var(--s-2);
}
.video-card__body p { font-size: 0.9rem; }

.lightbox--video {
    padding: var(--s-6);
}
.lightbox__frame {
    width: min(920px, 94vw);
    aspect-ratio: 16 / 9;
    background: #000;
    border: 1px solid rgba(255, 252, 247, .2);
}
.lightbox__frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ---- Forms ---------------------------------------------------------- */
.form { display: grid; gap: var(--s-5); }
.form__row {
    display: grid;
    gap: var(--s-5);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field > label {
    color: var(--ink-soft);
    font-size: 0.88rem;
    font-weight: 600;
}
.field .req { color: var(--danger); }
.field__hint { color: var(--ink-muted); font-size: 0.8rem; }

.input, .textarea, .select {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-size: 1rem; /* avoid iOS zoom on focus */
    transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .textarea:focus, .select:focus {
    outline: none;
    border-color: var(--green-700);
    box-shadow: 0 0 0 3px var(--green-100);
}
.textarea { min-height: 9rem; resize: vertical; }

/* ---- Panel (interactive only) --------------------------------------- */
.panel {
    background: var(--white);
    border: 1px solid var(--line);
    padding: var(--s-6);
}
.panel--soft { background: var(--paper-2); }

/* ---- Alerts & status ------------------------------------------------ */
.alert {
    padding: var(--s-4) var(--s-5);
    border: 1px solid;
    font-size: 0.95rem;
}
.alert--success { background: var(--green-50); border-color: #b7d4c4; color: var(--green-800); }
.alert--danger  { background: #f9eeee; border-color: #e0bcbc; color: var(--danger); }
.alert--info    { background: #faf6ea; border-color: var(--gold-soft); color: var(--gold-ink); }
.alert ul { padding-left: var(--s-5); }

.status {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border: 1px solid var(--line);
    font-size: 0.78rem;
    font-weight: 600;
}
.status--submitted   { background: var(--green-50); border-color: #b7d4c4; color: var(--green-800); }
.status--in_review   { background: #faf6ea; border-color: var(--gold-soft); color: var(--gold-ink); }
.status--in_progress { background: #eef3f9; border-color: #c5d5ea; color: var(--npp); }
.status--resolved    { background: var(--green-50); border-color: #b7d4c4; color: var(--green-800); }
.status--closed      { background: var(--paper-2); color: var(--ink-muted); }

.reference {
    padding: var(--s-8);
    border: 1px solid var(--gold);
    background: #faf6ea;
    text-align: center;
}
.reference__code {
    margin-block: var(--s-3);
    color: var(--green-900);
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem);
    font-weight: 500;
    letter-spacing: 0.06em;
    cursor: copy;
}

.detail-list { list-style: none; }
.detail-list > * + * { margin-top: var(--s-4); }
.detail__label {
    color: var(--ink-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.detail__value { margin-top: var(--s-1); color: var(--ink); }

.empty-state {
    padding: var(--s-12) var(--s-6);
    border: 1px dashed var(--line-strong);
    background: var(--paper-2);
    color: var(--ink-muted);
    text-align: center;
}
.empty-state > * + * { margin-top: var(--s-3); }
.empty-state .rule { margin-inline: auto; }

/* ---- Steps ---------------------------------------------------------- */
.steps {
    display: grid;
    gap: var(--s-6);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr));
    list-style: none;
}
.step > * + * { margin-top: var(--s-2); }
.step__number {
    display: block;
    margin-bottom: var(--s-3);
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 450;
}

/* ---- CTA band ------------------------------------------------------- */
.cta-band {
    background:
        linear-gradient(155deg, var(--green-950), var(--green-800));
    color: var(--white);
    padding-block: clamp(3rem, 2rem + 4vw, 4.5rem);
    text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p {
    max-width: 34rem;
    margin-inline: auto;
    margin-top: var(--s-3);
    color: rgba(255, 252, 247, .78);
}
.cta-band .cluster { margin-top: var(--s-6); }

/* ---- Filter bar ----------------------------------------------------- */
.filter-bar {
    margin-top: var(--s-6);
    padding-top: var(--s-5);
    border-top: 1px solid var(--line);
}

/* ---- Work entries --------------------------------------------------- */
.work-grid {
    display: grid;
    gap: var(--s-4);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}
.work-item {
    padding: var(--s-5);
    border: 1px solid var(--line);
    background: var(--white);
}
.work-item h3 { margin-block: var(--s-3) var(--s-2); font-size: 1.1rem; }

.person-head {
    display: flex;
    align-items: center;
    gap: var(--s-4);
    margin-bottom: var(--s-5);
    padding-bottom: var(--s-4);
    border-bottom: 1px solid var(--line);
}

/* ---- Lightbox ------------------------------------------------------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    place-items: center;
    padding: var(--s-8);
    background: rgba(10, 31, 22, .92);
    cursor: zoom-out;
}
.lightbox.is-open { display: grid; }
.lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    border: 1px solid rgba(255,252,247,.2);
}

/* ---- Footer --------------------------------------------------------- */
.site-footer {
    padding-block: var(--s-16) var(--s-8);
    background: var(--green-950);
    color: rgba(255, 252, 247, .65);
}
.site-footer a { color: rgba(255, 252, 247, .65); text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }

.footer-grid {
    display: grid;
    gap: var(--s-10);
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}
.footer-brand__title {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
}
.footer-brand p { max-width: 28rem; margin-top: var(--s-3); font-size: 0.95rem; }

.footer-col__title {
    margin-bottom: var(--s-4);
    color: var(--gold-soft);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.footer-col ul { list-style: none; display: grid; gap: var(--s-2); font-size: 0.95rem; }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--s-3);
    margin-top: var(--s-12);
    padding-top: var(--s-6);
    border-top: 1px solid rgba(255, 252, 247, .12);
    font-size: 0.85rem;
}

/* ---- Motion --------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
    .hero__inner {
        animation: rise .7s var(--ease) both;
    }
    .roster__item {
        animation: rise .55s var(--ease) both;
    }
    .roster__item:nth-child(2) { animation-delay: .08s; }
    .theme {
        animation: rise .55s var(--ease) both;
    }
    .theme:nth-child(2) { animation-delay: .06s; }
    .theme:nth-child(3) { animation-delay: .12s; }
}
@keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* ---- Responsive ----------------------------------------------------- */
@media (max-width: 60rem) {
    .nav__toggle {
        display: grid;
        flex-shrink: 0;
        margin-left: auto;
    }
    .nav {
        position: relative;
        flex-wrap: wrap;
        gap: var(--s-3);
    }
    .brand { flex: 1; }
    .nav__links {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        z-index: 60;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        margin: 0;
        padding: var(--s-2) clamp(1.25rem, 4vw, 2rem) var(--s-4);
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 24px -16px rgba(10, 31, 22, .35);
    }
    .nav__links.is-open { display: flex; }
    .nav__links a {
        padding: 0.85rem 0.35rem;
        border-bottom: 1px solid var(--line);
        font-size: 1rem;
    }
    .nav__links a.is-active { border-bottom-color: var(--gold); }
}

@media (max-width: 48rem) {
    body { font-size: 1rem; }
    h1 { font-size: clamp(1.85rem, 1.35rem + 3.2vw, 2.6rem); }

    .hero {
        min-height: min(72vh, 34rem);
        background:
            linear-gradient(180deg, rgba(10, 31, 22, .25) 0%, rgba(10, 31, 22, .55) 55%, rgba(10, 31, 22, .78) 100%),
            radial-gradient(ellipse 90% 50% at 50% 0%, rgba(176, 141, 58, .12), transparent 55%),
            linear-gradient(145deg, var(--green-950), var(--green-800));
    }
    .hero__bg { object-position: 70% center; opacity: .9; }
    .hero__inner {
        max-width: none;
        padding-block: clamp(3rem, 10vw, 4.5rem) clamp(2.25rem, 6vw, 3.5rem);
    }
    .hero__lead { font-size: 1.05rem; }
    .hero .cluster .btn { flex: 1 1 12rem; justify-content: center; text-align: center; }

    .section { padding-block: clamp(2.75rem, 1.5rem + 5vw, 4.5rem); }
    .section-head { margin-bottom: var(--s-8); }
    .page-header { padding-block: clamp(2.25rem, 1.5rem + 4vw, 3.5rem); }

    .compare__col + .compare__col { border-top: 1px solid var(--line); }
    .compare__identity { align-items: flex-start; }
    .compare__name { font-size: 1.2rem; }
    .compare__entry, .compare__head, .compare__foot { padding-inline: var(--s-4); }

    .sticky-aside { position: static; }
    .panel { padding: var(--s-5); }
    .reference { padding: var(--s-6) var(--s-4); }
    .reference__code { overflow-wrap: anywhere; }

    .person-head { align-items: flex-start; }
    .filter-bar .btn { flex: 1 1 auto; justify-content: center; }

    .lightbox { padding: var(--s-4); }
    .lightbox--video { padding: var(--s-3); }
    .lightbox__frame { width: min(920px, 100%); }

    .footer-grid { gap: var(--s-8); }
}

@media (max-width: 30rem) {
    .container { padding-inline: 1rem; }
    .brand__sub { display: none; }
    .portrait--lg { width: 5.25rem; height: 5.25rem; }
    .facts { grid-template-columns: 1fr 1fr; }
    .cta-band .cluster .btn { width: 100%; }
    .page-header--profile .cluster--lg { gap: var(--s-4); }
}
