/* ==========================================================================
   UN Deployment Operations — "The Dossier" design system
   ========================================================================== */

:root {
    /* --- Color: navy cover / paper pages / brass seal --- */
    --navy-950: #0a1220;
    --navy-900: #0e1a2e;
    --navy-800: #14243d;
    --navy-700: #1c3252;
    --navy-600: #2a4570;
    --un-blue: #4d8fd1;
    --un-blue-deep: #2f6bb0;
    --paper: #f3efe4;
    --paper-dim: #e9e3d3;
    --paper-line: #d8cfb8;
    --ink: #1b1a17;
    --ink-soft: #4a473f;
    --brass: #b6903f;
    --brass-bright: #d3ab5c;
    --signal-red: #8c2f2c;
    --white: #ffffff;

    /* --- Type --- */
    --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
    --font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

    /* --- Rhythm --- */
    --rule: 1px solid var(--paper-line);
    --rule-dark: 1px solid rgba(255, 255, 255, 0.16);
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --container: 1280px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

.sprite-defs { position: absolute; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
}

img { -webkit-user-drag: none; user-drag: none; }

img { display: block; max-width: 100%; }

a { color: inherit; }

ul { list-style: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2.5rem;
}

@media (max-width: 720px) {
    .container { padding: 0 1.5rem; }
}

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--brass);
    color: var(--navy-950);
    padding: 0.8rem 1.4rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    z-index: 3000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

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

/* ==========================================================================
   Icon system — thin-line SVG sprite, referenced via <use>
   ========================================================================== */

.icon {
    width: 1em;
    height: 1em;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* ==========================================================================
   Reveal-on-scroll (restrained)
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* Staggered cascade for repeating grids/lists — each direct child animates
   in slightly after the last, so a row of cards reads as one gesture. */
.stagger > *:nth-child(1) { transition-delay: 0.00s; }
.stagger > *:nth-child(2) { transition-delay: 0.07s; }
.stagger > *:nth-child(3) { transition-delay: 0.14s; }
.stagger > *:nth-child(4) { transition-delay: 0.21s; }
.stagger > *:nth-child(5) { transition-delay: 0.28s; }
.stagger > *:nth-child(6) { transition-delay: 0.35s; }
.stagger > *:nth-child(n+7) { transition-delay: 0.42s; }

@media (prefers-reduced-motion: reduce) {
    .stagger > * { transition-delay: 0s !important; }
}

/* ==========================================================================
   Lazy photography — blur-up fade as images finish loading
   ========================================================================== */

.lazy-fade {
    opacity: 0;
    filter: blur(14px) saturate(1.05);
    transition: opacity 1s var(--ease), filter 1.1s var(--ease);
}
.lazy-fade.is-loaded {
    opacity: 1;
    filter: blur(0) saturate(1);
}

/* .reveal and .lazy-fade both set the `transition` shorthand — the later
   rule would otherwise silently cancel the other's properties, so give
   the combination its own explicit, all-inclusive declaration. */
.reveal.lazy-fade {
    transition: opacity 1s var(--ease), transform 0.7s var(--ease), filter 1.1s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
    .lazy-fade { transition: opacity 0.3s linear; filter: none; }
}

/* ==========================================================================
   Eyebrow / dateline / case-number system (signature typographic device)
   ========================================================================== */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brass);
}

.eyebrow::before {
    content: '';
    width: 26px;
    height: 1px;
    background: currentColor;
}

.eyebrow--on-paper { color: var(--un-blue-deep); }

.case-number {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
}

/* Ink-stamp status badge */
.stamp {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border: 1.5px solid var(--signal-red);
    color: var(--signal-red);
    transform: rotate(-2deg);
    border-radius: 2px;
}
.stamp .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--signal-red);
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */

.section {
    padding: 7rem 0;
    position: relative;
}

.section--cover {
    background: var(--navy-950);
    color: rgba(243, 239, 228, 0.92);
}

.section--paper { background: var(--paper); color: var(--ink); }
.section--paper-dim { background: var(--paper-dim); color: var(--ink); }

.section-head {
    max-width: 760px;
    margin-bottom: 4.5rem;
}

.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.section-title {
    font-family: var(--font-display);
    font-optical-sizing: auto;
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.08;
    margin-top: 0.9rem;
    letter-spacing: -0.01em;
}

.section--cover .section-title { color: var(--white); }

.section-dek {
    margin-top: 1.3rem;
    font-size: 1.15rem;
    color: var(--ink-soft);
    max-width: 620px;
    line-height: 1.7;
}

.section--cover .section-dek { color: rgba(243, 239, 228, 0.7); }
.section-head--center .section-dek,
.section-dek--center { margin-left: auto; margin-right: auto; }

.hairline {
    border: none;
    border-top: var(--rule);
    margin: 0;
}
.section--cover .hairline,
.hairline--dark { border-top: var(--rule-dark); }

/* ==========================================================================
   Navigation
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 18, 32, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: var(--rule-dark);
    transition: background 0.4s var(--ease), padding 0.4s var(--ease);
}

.navbar.scrolled { background: rgba(10, 18, 32, 0.97); }

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 1.15rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    color: var(--white);
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.brand-text strong {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.brand-text span {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brass-bright);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.4rem;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(243, 239, 228, 0.72);
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s var(--ease);
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 1px;
    background: var(--brass-bright);
    transition: width 0.3s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-cta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--navy-950);
    background: var(--brass-bright);
    padding: 0.65rem 1.3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.nav-cta:hover { background: var(--white); transform: translateY(-2px); }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
}
.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
}

@media (max-width: 900px) {
    .nav-menu {
        position: fixed;
        top: 73px; left: 0; right: 0;
        flex-direction: column;
        align-items: flex-start;
        background: var(--navy-950);
        padding: 2rem 2.5rem 2.5rem;
        gap: 1.5rem;
        border-bottom: var(--rule-dark);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s var(--ease);
    }
    .nav-menu.active { transform: translateY(0); opacity: 1; visibility: visible; }
    .menu-toggle { display: flex; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    background: var(--navy-950);
    color: var(--white);
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-media img {
    width: 100%;
    height: 100%;
    will-change: transform;
    object-fit: cover;
    object-position: center 30%;
}
.hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10,18,32,0.55) 0%, rgba(10,18,32,0.55) 40%, rgba(10,18,32,0.96) 100%),
        linear-gradient(100deg, rgba(10,18,32,0.85) 0%, rgba(10,18,32,0.35) 55%);
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.5;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 11rem 2.5rem 4.5rem;
    max-width: var(--container);
    margin: 0 auto;
}

.hero-eyebrow-row {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 1.8rem;
    opacity: 0;
    animation: riseIn 0.8s var(--ease) 0.15s forwards;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.4rem, 5.6vw, 4.6rem);
    line-height: 1.04;
    letter-spacing: -0.015em;
    max-width: 16ch;
    opacity: 0;
    animation: riseIn 0.9s var(--ease) 0.32s forwards;
}

.hero-subtitle {
    margin-top: 1.8rem;
    font-size: 1.2rem;
    line-height: 1.75;
    max-width: 620px;
    color: rgba(243, 239, 228, 0.82);
    opacity: 0;
    animation: riseIn 0.9s var(--ease) 0.5s forwards;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-top: 2.6rem;
    opacity: 0;
    animation: riseIn 0.9s var(--ease) 0.66s forwards;
}

@keyframes riseIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 1rem 1.7rem;
    transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--brass-bright);
    color: var(--navy-950);
}
.btn-primary:hover { background: var(--white); transform: translateY(-2px); }

.btn-ghost {
    border-color: rgba(243, 239, 228, 0.35);
    color: var(--white);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.06); transform: translateY(-2px); }

.btn-ghost--ink {
    border-color: rgba(27, 26, 23, 0.3);
    color: var(--ink);
}
.btn-ghost--ink:hover { border-color: var(--ink); background: rgba(27,26,23,0.05); }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 3.5rem;
    margin-top: 4.5rem;
    padding-top: 2.8rem;
    border-top: var(--rule-dark);
    opacity: 0;
    animation: riseIn 0.9s var(--ease) 0.82s forwards;
}

.hero-stat-number {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 600;
    color: var(--brass-bright);
    line-height: 1;
}
.hero-stat-label {
    margin-top: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(243, 239, 228, 0.6);
}

@media (max-width: 780px) {
    .hero-stats { grid-template-columns: repeat(2, auto); row-gap: 2rem; }
    .hero-content { padding: 8.5rem 1.5rem 3rem; }
}

/* ==========================================================================
   Dispatch ticker
   ========================================================================== */

.ticker {
    background: var(--navy-900);
    color: rgba(243, 239, 228, 0.85);
    border-top: var(--rule-dark);
    overflow: hidden;
}
.ticker-inner {
    display: flex;
    align-items: center;
}
.ticker-label {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--navy-950);
    background: var(--brass-bright);
    padding: 0.9rem 1.4rem;
    z-index: 1;
}
.ticker-track {
    display: flex;
    white-space: nowrap;
    animation: tickerScroll 38s linear infinite;
    padding: 0.9rem 0;
}
.ticker-track span {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    padding: 0 2.5rem;
    border-right: 1px solid rgba(243, 239, 228, 0.2);
}
@keyframes tickerScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ==========================================================================
   Reusable: dossier tile (About / Innovation / Resources cards)
   ========================================================================== */

.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1px;
    background: var(--paper-line);
    border: var(--rule);
}
.tile-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .tile-grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }

.tile {
    background: var(--paper);
    padding: 2.8rem;
    transition: background 0.3s var(--ease), transform 0.4s var(--ease);
}
.tile:hover { background: var(--white); transform: translateY(-3px); }
.tile--dark:hover { background: var(--navy-900); }
/* .reveal + .tile both set `transition` — explicit union so neither is dropped */
.reveal.tile { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), background 0.3s var(--ease); }
.reveal.tile:hover { transition: opacity 0.7s var(--ease), transform 0.4s var(--ease), background 0.3s var(--ease); }

.tile-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--brass);
    border-radius: 50%;
    color: var(--brass);
    font-size: 1.35rem;
    margin-bottom: 1.6rem;
}

.tile h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.9rem;
}

.tile p { color: var(--ink-soft); line-height: 1.75; }

.tile-list {
    margin-top: 1.4rem;
    padding-top: 1.4rem;
    border-top: var(--rule);
    display: grid;
    gap: 0.6rem;
}
.tile-list li {
    font-size: 0.92rem;
    color: var(--ink-soft);
    padding-left: 1.1rem;
    position: relative;
}
.tile-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.62em;
    width: 5px; height: 5px;
    background: var(--brass);
}

.tile-link {
    margin-top: 1.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--un-blue-deep);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease), gap 0.3s var(--ease);
}
.tile-link:hover { border-color: var(--un-blue-deep); gap: 0.8rem; }

/* Dark variant, used on navy "cover" sections */
.tile-grid--dark { background: rgba(243, 239, 228, 0.16); }
.tile--dark { background: var(--navy-950); color: rgba(243, 239, 228, 0.85); }
.tile--dark:hover { background: var(--navy-900); }
.tile--dark h3 { color: var(--white); }
.tile--dark .tile-icon { border-color: var(--brass-bright); color: var(--brass-bright); }
.tile--dark .tile-list { border-color: rgba(243, 239, 228, 0.16); }

.command-item--dark { border-color: var(--brass-bright); }
.command-item--dark h4 { color: var(--white); }
.command-item--dark .icon { width: 1.6rem; height: 1.6rem; color: var(--brass-bright); margin-bottom: 1rem; }

/* ==========================================================================
   About / mandate section specifics
   ========================================================================== */

.about-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4.5rem;
    align-items: center;
    margin-bottom: 5rem;
}
@media (max-width: 900px) { .about-layout { grid-template-columns: 1fr; gap: 2.5rem; } }

.about-media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-media-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: rgba(10, 18, 32, 0.82);
    color: var(--paper);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    padding: 0.85rem 1.1rem;
}

.about-copy p { font-size: 1.08rem; line-height: 1.85; color: var(--ink-soft); margin-bottom: 1.4rem; }
.about-copy p:first-of-type { color: var(--ink); font-size: 1.2rem; }

.stat-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--paper-line);
    border: var(--rule);
    margin-top: 2.2rem;
}
.stat-pair div { background: var(--paper); padding: 1.6rem; }
.stat-pair strong {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--un-blue-deep);
}
.stat-pair span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

/* Principles row */
.principles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    padding-top: 4rem;
    border-top: var(--rule);
}
@media (max-width: 900px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .principles { grid-template-columns: 1fr; } }

.principle .case-number { display: block; margin-bottom: 0.9rem; }
.principle .icon { width: 1.6rem; height: 1.6rem; color: var(--brass); margin-bottom: 1rem; }
.principle h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}
.principle p { font-size: 0.94rem; color: var(--ink-soft); line-height: 1.7; }

/* ==========================================================================
   Mission dossier cards
   ========================================================================== */

.missions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: var(--paper-line);
    border: var(--rule);
}
@media (max-width: 860px) { .missions-grid { grid-template-columns: 1fr; } }

.mission-card { background: var(--paper); }

.mission-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.mission-media img {
    width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(0.15) contrast(1.04);
    transition: transform 0.7s var(--ease);
}
.mission-card:hover .mission-media img { transform: scale(1.045); }

.mission-media .stamp { position: absolute; top: 1.3rem; right: 1.3rem; background: var(--paper); }

.mission-body { padding: 2.6rem; }

.mission-meta-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.mission-meta-row .m {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--ink-soft);
}
.mission-meta-row .icon { width: 0.95rem; height: 0.95rem; color: var(--brass); }

.mission-title {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 600;
    margin-bottom: 0.9rem;
    line-height: 1.2;
}

.mission-desc { color: var(--ink-soft); line-height: 1.75; margin-bottom: 1.6rem; }

.mission-brief {
    background: var(--paper-dim);
    border-left: 2px solid var(--brass);
    padding: 1.4rem 1.6rem;
    margin-bottom: 1.8rem;
}
.mission-brief-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 0.8rem;
}
.mission-brief dl {
    display: grid;
    gap: 0.55rem;
    font-size: 0.92rem;
}
.mission-brief dt { display: inline; font-weight: 600; color: var(--ink); }
.mission-brief dd { display: inline; color: var(--ink-soft); }

.mission-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.4rem;
    border-top: var(--rule);
}
.mission-personnel {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ink-soft);
}
.mission-personnel .icon { width: 1rem; height: 1rem; color: var(--brass); }

/* ==========================================================================
   Personnel / forces
   ========================================================================== */

.force-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--paper-line);
    border: var(--rule);
    margin-bottom: 3rem;
}
@media (max-width: 860px) { .force-stats { grid-template-columns: repeat(2, 1fr); } }

.force-stat {
    background: var(--navy-950);
    color: var(--white);
    padding: 2.4rem 2rem;
    text-align: center;
    transition: background 0.3s var(--ease);
}
.force-stat:hover { background: var(--navy-900); }
.reveal.force-stat { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), background 0.3s var(--ease); }
.force-stat .icon { width: 1.7rem; height: 1.7rem; color: var(--brass-bright); margin-bottom: 1.1rem; }
.force-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 2.3rem;
    font-weight: 600;
}
.force-stat span {
    display: block;
    margin-top: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(243,239,228,0.62);
}

.contributors {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: var(--rule);
    margin-top: 1.4rem;
    margin-bottom: 4rem;
}
@media (max-width: 780px) { .contributors { grid-template-columns: repeat(2, 1fr); } }

.contributor {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.6rem;
    border-left: var(--rule);
}
.contributor:first-child { border-left: none; }
@media (max-width: 780px) { .contributor:nth-child(2n+1) { border-left: none; } .contributor { border-top: var(--rule); } .contributor:nth-child(-n+2) { border-top: none; } }

.contributor img {
    width: 34px;
    height: 24px;
    object-fit: contain;
    background: var(--paper);
    border: 1px solid var(--paper-line);
    flex-shrink: 0;
}
.contributor strong { display: block; font-size: 0.98rem; }
.contributor span {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--ink-soft);
}

.command-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-top: 1.8rem;
}
.command-grid--spaced { margin-top: 4.5rem; }
@media (max-width: 900px) { .command-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .command-grid { grid-template-columns: 1fr; } }

.command-item { border-top: 2px solid var(--brass); padding-top: 1.4rem; }
.command-item .eyebrow { margin-bottom: 0.9rem; }
.command-item h4 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin-bottom: 0.4rem; }
.command-item .role { font-family: var(--font-mono); font-size: 0.76rem; color: var(--un-blue-deep); margin-bottom: 0.8rem; display: block; }
.command-item p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.7; }

/* ==========================================================================
   Statistics
   ========================================================================== */

.stat-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--paper-line);
    border: var(--rule);
}
@media (max-width: 900px) { .stat-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stat-cards { grid-template-columns: 1fr; } }

.stat-card { background: var(--paper); padding: 2.6rem; transition: background 0.3s var(--ease), transform 0.4s var(--ease); }
.stat-card:hover { background: var(--white); transform: translateY(-3px); }
.reveal.stat-card { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), background 0.3s var(--ease); }
.reveal.stat-card:hover { transition: opacity 0.7s var(--ease), transform 0.4s var(--ease), background 0.3s var(--ease); }
.stat-card .icon { width: 1.5rem; height: 1.5rem; color: var(--brass); margin-bottom: 1.3rem; }
.stat-card strong {
    display: block;
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--navy-800);
}
.stat-card .stat-label {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brass);
    margin: 0.6rem 0 1rem;
}
.stat-card p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.65; }

.region-bar-list { margin-top: 4rem; }
.region-row {
    display: grid;
    grid-template-columns: 160px 1fr 90px;
    align-items: center;
    gap: 1.5rem;
    padding: 1.1rem 0;
    border-top: var(--rule);
}
.region-row:last-child { border-bottom: var(--rule); }
.region-name { font-family: var(--font-mono); font-size: 0.85rem; }
.region-track { height: 6px; background: var(--paper-dim); position: relative; }
.region-fill { position: absolute; top: 0; left: 0; height: 100%; background: var(--un-blue-deep); }
.region-fill--58 { width: 58%; }
.region-fill--24 { width: 24%; }
.region-fill--10 { width: 10%; }
.region-fill--08 { width: 8%; }
.region-pct { font-family: var(--font-mono); font-size: 0.8rem; text-align: right; color: var(--ink-soft); }

/* ==========================================================================
   History timeline
   ========================================================================== */

.timeline {
    position: relative;
    margin-top: 1rem;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 110px;
    width: 1px;
    background: rgba(243,239,228,0.22);
}
@media (max-width: 700px) { .timeline::before { left: 14px; } }

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 2.5rem;
    padding: 2.2rem 0;
    border-top: var(--rule-dark);
}
.timeline-item:first-child { border-top: none; }
@media (max-width: 700px) { .timeline-item { grid-template-columns: 28px 1fr; gap: 1.3rem; } }

.timeline-year {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--brass-bright);
    padding-top: 0.15rem;
}
@media (max-width: 700px) { .timeline-year { font-size: 0; width: 0; } }

.timeline-dot {
    position: absolute;
    left: 106px;
    top: 2.55rem;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--brass-bright);
}
@media (max-width: 700px) { .timeline-dot { left: 10px; } }

.timeline-content h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.6rem;
}
.timeline-content .timeline-year-inline {
    display: none;
    font-family: var(--font-mono);
    color: var(--brass-bright);
    margin-right: 0.6rem;
}
@media (max-width: 700px) { .timeline-content .timeline-year-inline { display: inline; } }
.timeline-content p { color: rgba(243,239,228,0.68); line-height: 1.75; max-width: 60ch; }

/* ==========================================================================
   Dispatches (editorial cards)
   ========================================================================== */

.dispatch-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
@media (max-width: 900px) { .dispatch-layout { grid-template-columns: 1fr; gap: 2.5rem; } }

.dispatch-media { aspect-ratio: 4 / 3; overflow: hidden; }
.dispatch-media img { width: 100%; height: 100%; object-fit: cover; }

.dispatch-list { display: grid; gap: 0; }
.dispatch {
    padding: 1.9rem 0;
    border-top: var(--rule);
}
.dispatch:first-child { border-top: none; padding-top: 0; }
.dispatch:last-child { padding-bottom: 0; }
.dispatch-dateline {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 0.6rem;
}
.dispatch h4 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin-bottom: 0.5rem; }
.dispatch p { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.7; }

/* ==========================================================================
   Charts
   ========================================================================== */

.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--paper-line);
    border: var(--rule);
}
@media (max-width: 860px) { .charts-grid { grid-template-columns: 1fr; } }

.chart-card { background: var(--paper); padding: 2.6rem; }
.chart-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.8rem;
}
.chart-card canvas { max-height: 280px; }

/* ==========================================================================
   Resources
   ========================================================================== */

.quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: var(--rule);
    margin-top: 4rem;
}
@media (max-width: 700px) { .quick-links { grid-template-columns: repeat(2, 1fr); } }

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.5rem 1.6rem;
    text-decoration: none;
    color: var(--ink);
    border-left: var(--rule);
    transition: background 0.3s var(--ease);
}
/* .reveal + .quick-link both set `transition` — explicit union so neither is dropped */
.reveal.quick-link { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), background 0.3s var(--ease); }
.quick-link:first-child { border-left: none; }
@media (max-width: 700px) {
    .quick-link:nth-child(2n+1) { border-left: none; }
    .quick-link:nth-child(n+3) { border-top: var(--rule); }
}
.quick-link:hover { background: var(--white); }
.quick-link .icon { width: 1.2rem; height: 1.2rem; color: var(--brass); }
.quick-link span { font-family: var(--font-mono); font-size: 0.85rem; }

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
    background: var(--navy-950);
    color: var(--white);
    text-align: center;
    padding: 6rem 0;
}
.cta-actions {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: var(--navy-950);
    color: rgba(243, 239, 228, 0.75);
    padding-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 3.5rem;
    padding-bottom: 4rem;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .brand { margin-bottom: 1.4rem; }
.footer-about p { color: rgba(243, 239, 228, 0.6); line-height: 1.8; max-width: 38ch; margin-bottom: 1.4rem; }

.footer-email {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-mono);
    font-size: 0.86rem;
    color: var(--brass-bright);
    text-decoration: none;
    margin-bottom: 1.8rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease);
}
.footer-email:hover { border-color: var(--brass-bright); }
.footer-email .icon { width: 0.95rem; height: 0.95rem; }

.social-row { display: flex; gap: 0.9rem; }
.social-link {
    width: 38px; height: 38px;
    border: 1px solid rgba(243,239,228,0.25);
    display: flex; align-items: center; justify-content: center;
    color: rgba(243,239,228,0.8);
    text-decoration: none;
    transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.social-link .icon { width: 1rem; height: 1rem; }
.social-link:hover { border-color: var(--brass-bright); color: var(--brass-bright); }

.footer-col h5 {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brass-bright);
    margin-bottom: 1.4rem;
}
.footer-col ul { display: grid; gap: 0.85rem; }
.footer-col a { text-decoration: none; color: rgba(243,239,228,0.68); font-size: 0.94rem; transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
    border-top: var(--rule-dark);
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: rgba(243,239,228,0.45);
}

/* ==========================================================================
   Loading screen
   ========================================================================== */

.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--navy-950);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.loading-screen.hidden { opacity: 0; visibility: hidden; }
.loading-mark {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brass-bright);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.loading-bar {
    width: 160px; height: 1px;
    background: rgba(243,239,228,0.2);
    position: relative;
    overflow: hidden;
}
.loading-bar::after {
    content: '';
    position: absolute;
    top: 0; left: 0; height: 100%; width: 40%;
    background: var(--brass-bright);
    animation: loadingSlide 1.1s ease-in-out infinite;
}
@keyframes loadingSlide {
    0% { left: -40%; }
    100% { left: 100%; }
}
