/* ==========================================================================
   ZIMAR GROUP — DESIGN SYSTEM
   "Instrument grade": measured grids, hairline rules, tabular figures,
   restrained accent. Institutional confidence over ornament.
   ========================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
    /* Ground — layered, not glowing */
    --ink-900: #050D15;
    --ink-850: #071320;
    --ink-800: #0A1A28;
    --ink-750: #0E2130;
    --ink-700: #12283A;
    --ink-650: #17304400;

    /* Surfaces */
    --surface: #0C1E2C;
    --surface-2: #102636;
    --surface-raised: #12293B;

    /* Hairlines — the primary structural device */
    --line: rgba(255, 255, 255, .085);
    --line-2: rgba(255, 255, 255, .14);
    --line-3: rgba(255, 255, 255, .22);

    /* Text */
    --paper: #EAEFF3;
    --paper-2: #A6B8C6;
    --paper-3: #6E8494;
    --paper-4: #4A5D6C;

    /* Accent — used sparingly, never decoratively */
    --teal: #00D1C2;
    --teal-dim: #0A8F87;
    --teal-wash: rgba(0, 209, 194, .09);
    --gold: #C9A227;
    --gold-light: #E3CE84;
    --gold-wash: rgba(201, 162, 39, .10);

    /* Legacy aliases (existing markup depends on these) */
    --brand-bg-dark: var(--ink-800);
    --brand-bg-mid: var(--ink-750);
    --brand-bg-light: var(--ink-700);
    --brand-accent: var(--teal);
    --brand-accent-dark: #00201E;
    --brand-text-main: var(--paper);
    --brand-text-soft: var(--paper-2);
    --surface-card: var(--surface);
    --border-muted: var(--line);
    --gold-primary: var(--gold);
    --success: #10B981;
    --steel: #71797E;

    /* Rhythm */
    --gut: clamp(1.25rem, 4vw, 2.5rem);
    --measure: 62ch;
    --radius: 3px;
    --radius-lg: 6px;

    /* Motion — one curve, used everywhere */
    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- 2. BASE ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--ink-800);
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--ink-800);
    color: var(--paper-2);
    font-size: 1rem;
    line-height: 1.62;
    letter-spacing: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "kern" 1, "liga" 1;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

::selection {
    background: var(--teal);
    color: var(--ink-900);
}

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

/* ---------- 3. TYPE ----------
   Sentence case. Tight tracking. Uppercase is reserved for labels only. */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    color: var(--paper);
    text-transform: none;
    text-shadow: none;
    margin: 0;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.5rem, 6.2vw, 5rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -.035em;
    background: none;
    -webkit-text-fill-color: currentColor;
    animation: none;
}

h2 {
    font-size: clamp(1.9rem, 3.9vw, 3.25rem);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -.03em;
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.02em;
}

h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.012em;
}

h5,
h6 {
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: -.005em;
}

p,
li {
    line-height: 1.62;
    color: var(--paper-2);
}

p {
    margin: 0 0 1em;
}

strong {
    color: var(--paper);
    font-weight: 600;
}

a {
    color: inherit;
    text-decoration: none;
}

.lede {
    font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
    line-height: 1.55;
    color: var(--paper-2);
    max-width: 54ch;
}

/* Label / eyebrow — the ONLY uppercase in the system */
.subheading-accent,
.stat-label,
.news-meta,
.chip,
.label,
.role-tag,
.cert-badge,
.eyebrow {
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-weight: 600;
    font-size: .688rem;
    line-height: 1.4;
}

.subheading-accent {
    color: var(--teal);
    display: block;
    position: relative;
    margin: 0 0 1.1rem;
}

.subheading-accent::after {
    display: none;
}

/* Section index numeral — "01 —" */
.sec-index {
    font-family: 'Space Grotesk', sans-serif;
    font-size: .688rem;
    font-weight: 600;
    letter-spacing: .16em;
    color: var(--paper-4);
    font-variant-numeric: tabular-nums;
}

.sec-index::after {
    content: "";
    display: inline-block;
    width: 2.25rem;
    height: 1px;
    background: var(--line-2);
    vertical-align: middle;
    margin: 0 .75rem 0 .6rem;
}

/* ---------- 4. STATS — tabular, large, honest ---------- */
.stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.75rem, 2.8vw, 2.5rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -.03em;
    color: var(--paper);
    font-variant-numeric: tabular-nums lining-nums;
    background: none;
    -webkit-text-fill-color: currentColor;
    margin: 0;
}

.stat-value .unit {
    font-size: .45em;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--paper-3);
    margin-left: .3em;
}

.stat-label {
    color: var(--paper-3);
    margin: .7rem 0 0;
}

/* ---------- 5. SURFACES ---------- */
.section-dark {
    background: var(--ink-800);
}

.section-mid {
    background: var(--ink-850);
}

.section-light {
    background: var(--ink-750);
}

.section-gradient,
.section-premium {
    background: var(--ink-850);
    position: relative;
}

.section-premium::before {
    display: none;
}

/* Hairline between stacked sections — the structural device */
section+section,
main+section,
section+footer {
    border-top: 1px solid var(--line);
}

.card-surface,
.glass-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: none;
    color: var(--paper);
    transition: border-color .45s var(--ease), background .45s var(--ease), transform .45s var(--ease);
    position: relative;
}

.card-surface:hover {
    border-color: var(--line-3);
    background: var(--surface-2);
    transform: none;
    box-shadow: none;
}

.service-card {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: border-color .45s var(--ease), background .45s var(--ease);
}

.service-card::before {
    display: none;
}

.service-card:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--line-3);
    background: var(--surface-2);
}

/* ---------- 6. CHIPS ---------- */
.chip {
    display: inline-block;
    padding: .4rem .7rem;
    border-radius: var(--radius);
    background: transparent;
    color: var(--paper-3);
    border: 1px solid var(--line-2);
    font-size: .656rem;
}

.chip-accent {
    background: var(--teal-wash);
    border-color: rgba(0, 209, 194, .3);
    color: var(--teal);
}

.chip-gold {
    background: var(--gold-wash);
    border-color: rgba(201, 162, 39, .35);
    color: var(--gold-light);
}

/* ---------- 7. BUTTONS & LINKS ---------- */
.btn-accent,
.btn-primary,
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: var(--teal);
    color: var(--ink-900);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: .8125rem;
    letter-spacing: .02em;
    text-transform: none;
    padding: .8rem 1.4rem;
    border: 1px solid var(--teal);
    border-radius: var(--radius);
    box-shadow: none;
    transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
    position: relative;
    overflow: hidden;
}

.btn-accent::before,
.nav-cta::before {
    display: none;
}

.btn-accent:hover,
.btn-primary:hover,
.nav-cta:hover {
    background: transparent;
    color: var(--teal);
    border-color: var(--teal);
    transform: none;
    box-shadow: none;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: transparent;
    color: var(--paper);
    border: 1px solid var(--line-2);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: .8125rem;
    letter-spacing: .02em;
    text-transform: none;
    padding: .8rem 1.4rem;
    border-radius: var(--radius);
    transition: border-color .35s var(--ease), color .35s var(--ease);
}

.btn-outline:hover {
    background: transparent;
    border-color: var(--teal);
    color: var(--teal);
}

/* Inline link with a rule that draws on hover */
.link-inline {
    color: var(--paper);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: .8125rem;
    letter-spacing: .02em;
    text-transform: none;
    display: inline-flex;
    gap: .5rem;
    align-items: center;
    padding-bottom: .3rem;
    position: relative;
}

.link-inline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--line-2);
    transform-origin: right;
    transition: transform .5s var(--ease), background .5s var(--ease);
}

.link-inline:hover {
    color: var(--teal);
}

.link-inline:hover::after {
    background: var(--teal);
    transform: scaleX(1);
}

.accent {
    color: var(--teal);
}

/* ---------- 8. HEADER / NAV ---------- */
header {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(10, 26, 40, .72);
    border-bottom: 1px solid var(--line);
    box-shadow: none;
    transition: background .4s var(--ease), border-color .4s var(--ease);
}

header.scrolled {
    background: rgba(7, 19, 32, .94);
    border-bottom-color: var(--line-2);
}

nav a {
    color: var(--paper-2);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    letter-spacing: .01em;
    text-transform: none;
    font-size: .8125rem;
    position: relative;
    transition: color .3s var(--ease);
}

nav a:hover {
    color: var(--paper);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--teal);
    transition: width .4s var(--ease);
}

nav a:hover::after {
    width: 100%;
}

.primary-nav a {
    font-size: .8125rem;
    letter-spacing: .01em;
    white-space: nowrap;
}

.primary-nav .nav-cta {
    padding: .6rem 1.05rem;
    font-size: .75rem;
}

.primary-nav .lang-switch {
    margin-left: .6rem;
}

.brand-mark {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 1.62vw, 1.6rem);
    letter-spacing: .11em;
    line-height: 1;
    color: var(--paper);
    text-transform: uppercase;
    display: inline-flex;
    gap: .3em;
    align-items: center;
    text-shadow: none;
    transition: color .3s var(--ease);
}

.brand-mark--lg {
    font-size: clamp(1.45rem, 2.2vw, 1.95rem);
}

.brand-mark:hover {
    text-shadow: none;
}

.brand-mark span {
    color: var(--teal);
    animation: none;
}

.lang-switch {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 1px solid var(--line-2);
    color: var(--paper-2);
    padding: .38rem 1.9rem .38rem .7rem;
    border-radius: var(--radius);
    font-family: 'Space Grotesk', sans-serif;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .06em;
    cursor: pointer;
    transition: border-color .3s var(--ease), color .3s var(--ease);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3e%3cpath fill='%236E8494' d='M2 4l4 4 4-4z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .6rem center;
    background-size: 10px;
}

.lang-switch:hover {
    border-color: var(--line-3);
    color: var(--paper);
}

.lang-switch option {
    color: #0A1A28;
    font-weight: 600;
}

.mobile-nav-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink-850);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
    margin-top: .75rem;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
}

.mobile-nav-panel.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-nav-panel a {
    display: block;
    padding: .8rem 0;
    font-weight: 500;
    font-size: .95rem;
    color: var(--paper);
    border-bottom: 1px solid var(--line);
    letter-spacing: 0;
}

.mobile-nav-panel a:last-child {
    border-bottom: 0;
}

/* ---------- 9. HERO / SCROLLYTELLING ---------- */
.hero-flow {
    position: relative;
    display: grid;
}

.hero-visual,
.hero-stack {
    grid-area: 1 / 1 / 2 / 2;
}

.hero-visual {
    position: fixed;
    top: 0;
    left: 0;
    width: 50%;
    height: 100vh;
    overflow: hidden;
    background: var(--ink-900);
    z-index: 1;
}

.hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 26, 40, 0) 0%, rgba(10, 26, 40, .55) 62%, var(--ink-800) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-visual.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity .6s var(--ease);
}

.hero-scenes {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-scene {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.1s var(--ease), transform 1.6s var(--ease);
}

.hero-scene.active {
    opacity: 1;
    transform: scale(1);
}

.hero-scene img,
.scene-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.04) saturate(.82) brightness(.92);
}

.scene-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 13, 21, .25), rgba(5, 13, 21, .75));
    pointer-events: none;
    z-index: 2;
}

.hero-stack {
    position: relative;
    z-index: 4;
    max-width: 50%;
    margin-left: 50%;
    padding: 4rem 2.5rem 5rem 3.5rem;
}

.hero-panel {
    margin-bottom: 0;
    padding: 0;
    border-radius: 0;
    background: none;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    position: relative;
    overflow: visible;
}

.hero-panel::before {
    display: none;
}

.glass-panel {
    background: rgba(12, 30, 44, .55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
}

.scroll-step {
    padding-top: 7rem;
    padding-bottom: 7rem;
}

/* Scroll progress rail down the seam of the split hero */
.hero-rail {
    position: fixed;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--line);
    z-index: 5;
    pointer-events: none;
}

.hero-rail__fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--teal);
    transition: height .15s linear;
}

@media (max-width: 1024px) {
    .hero-visual {
        width: 42%;
    }

    .hero-stack {
        max-width: 58%;
        margin-left: 42%;
        padding-left: 2.5rem;
    }

    .hero-rail {
        left: 42%;
    }
}

@media (max-width: 768px) {

    .hero-visual,
    .hero-rail {
        display: none;
    }

    .hero-stack {
        max-width: 100%;
        margin-left: 0;
        padding: 2rem 1.25rem 2rem;
    }

    .scroll-step {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
}

/* Mobile gallery */
.mobile-scene {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s var(--ease);
}

.mobile-scene.active {
    opacity: 1;
}

.mobile-scene img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.04) saturate(.82) brightness(.88);
}

.scene-indicators button {
    width: 26px;
    height: 2px;
    border-radius: 0;
    background: var(--line-2);
    border: 0;
    transition: background .3s var(--ease);
}

.scene-indicators button.active {
    background: var(--teal);
}

/* ---------- 10. NEWSROOM ---------- */
.newsroom-feed {
    display: flex;
    flex-direction: column;
}

.newsroom-article {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 1.75rem 0;
    transition: border-color .4s var(--ease);
}

.newsroom-article:hover {
    border-color: var(--line-3);
}

.news-meta {
    color: var(--paper-4);
}

.newsroom-article h3 {
    font-size: 1.35rem;
    margin: .8rem 0 .5rem;
    letter-spacing: -.02em;
}

.newsroom-article p {
    margin: 0;
    font-size: .95rem;
}

.newsroom-carousel {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.newsroom-carousel-frame {
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.newsroom-carousel-track {
    display: flex;
    width: 100%;
    transition: transform .8s var(--ease);
}

.newsroom-slide {
    flex: 0 0 100%;
    position: relative;
}

.newsroom-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    filter: contrast(1.03) saturate(.88);
}

.newsroom-slide figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent, rgba(5, 13, 21, .92));
    border: 0;
    border-radius: 0;
    padding: 3rem 1.25rem 1.1rem;
    font-size: .688rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--paper-2);
}

.newsroom-controls {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    padding: 0 .75rem;
}

.newsroom-controls button {
    pointer-events: auto;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: rgba(5, 13, 21, .6);
    backdrop-filter: blur(8px);
    color: var(--paper);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}

.newsroom-controls button:hover {
    background: var(--teal);
    color: var(--ink-900);
    border-color: var(--teal);
}

.newsroom-dots {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-top: 1.1rem;
}

.newsroom-dots button {
    width: 26px;
    height: 2px;
    border-radius: 0;
    border: 0;
    background: var(--line-2);
    transition: background .3s var(--ease);
}

.newsroom-dots button.active {
    background: var(--teal);
}

@media (max-width: 768px) {
    .newsroom-slide img {
        height: 260px;
    }
}

/* ---------- 11. FORMS ---------- */
.form-field,
.input-field {
    width: 100%;
    background: var(--ink-900);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .95rem 1rem;
    color: var(--paper);
    font-family: 'Inter', sans-serif;
    font-size: .95rem;
    transition: border-color .3s var(--ease), background .3s var(--ease);
}

.form-field::placeholder,
.input-field::placeholder {
    color: var(--paper-4);
    letter-spacing: .04em;
    font-size: .85rem;
    text-transform: uppercase;
}

.form-field:focus,
.input-field:focus {
    outline: none;
    border-color: var(--teal);
    background: var(--ink-850);
    box-shadow: none;
}

/* ---------- 12. PEOPLE ---------- */
.leader-headshot {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    object-position: center 22%;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    filter: grayscale(1) contrast(1.06) brightness(.95);
    transition: filter .6s var(--ease), border-color .6s var(--ease);
}

.leader-headshot:hover {
    transform: none;
    box-shadow: none;
    filter: grayscale(0) contrast(1) brightness(1);
    border-color: var(--line-3);
}

.role-tag {
    color: var(--teal);
}

/* ---------- 13. MISC COMPONENTS ---------- */
.section-divider {
    height: 1px;
    background: var(--line);
}

.icon-ring {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--line-2);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.chart-bar-container {
    width: 100%;
    background: var(--line);
    height: 2px;
    border-radius: 0;
    overflow: hidden;
    margin-top: .75rem;
}

.chart-bar-fill {
    height: 100%;
    background: var(--teal);
    width: 0;
    transition: width 1.4s var(--ease);
}

.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .85rem;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    color: var(--paper-2);
}

.timeline-step {
    position: relative;
    padding-left: 2.25rem;
    padding-bottom: 2.25rem;
    border-left: 1px solid var(--line);
}

.timeline-step:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -4.5px;
    top: .3rem;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--ink-800);
    border: 1px solid var(--teal);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

main[id],
section[id] {
    scroll-margin-top: 100px;
}

footer {
    background: var(--ink-900);
    color: var(--paper-3);
}

/* ---------- 14. SIGNATURE MOTION ----------
   One idea: content arrives from behind a mask. Nothing loops.
   Fail-safe: hidden states apply ONLY when JS has confirmed it can reveal
   them (.js-motion on <html>), so no-JS / failed-JS still shows everything. */
.js-motion .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
    transition-delay: var(--d, 0ms);
}

.js-motion .reveal.revealed {
    opacity: 1;
    transform: none;
}

/* Word-mask reveal for display headings */
.rw {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}

.rw>i {
    display: inline-block;
    font-style: inherit;
    transition: transform .95s var(--ease);
    transition-delay: var(--d, 0ms);
}

.js-motion .rw-pre .rw>i {
    transform: translateY(105%);
}

.js-motion .rw-pre.rw-on .rw>i {
    transform: translateY(0);
}

/* Media wipe */
.js-motion .media-reveal {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1.15s var(--ease);
}

.js-motion .media-reveal.revealed {
    clip-path: inset(0 0 0 0);
}

/* Hairline that draws itself in */
.js-motion .rule-draw {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.1s var(--ease);
}

.js-motion .rule-draw.revealed {
    transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }

    .js-motion .reveal,
    .js-motion .rw-pre .rw>i,
    .js-motion .media-reveal,
    .js-motion .rule-draw {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
    }
}

/* ---------- 15. PRINT ---------- */
@media print {

    header,
    footer,
    .hero-visual,
    .newsroom-controls,
    .mobile-nav-panel {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    * {
        color: #000 !important;
        background: transparent !important;
    }
}

/* ---------- 16. LEADERSHIP GRID ----------
   Portraits from mixed sources are unified by a fixed square crop,
   a common focal point and a monochrome pass. */
.leader {
    display: flex;
    flex-direction: column;
}

.leader .leader-headshot {
    margin-bottom: 1.1rem;
}

.leader-role {
    color: var(--teal);
    margin: 0 0 .45rem;
}

.leader-name {
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -.015em;
    color: var(--paper);
    margin: 0 0 .5rem;
}

.leader-bio {
    font-size: .875rem;
    line-height: 1.55;
    color: var(--paper-3);
    margin: 0;
}

/* ---------- 17. REGION LEDGER ---------- */
.region-ledger {
    border-top: 1px solid var(--line);
}

.region {
    border-bottom: 1px solid var(--line);
    padding: 1.6rem 0;
}

.region__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.region__head h4 {
    color: var(--paper);
    margin: 0 0 .3rem;
}

.region__type {
    font-family: 'Space Grotesk', sans-serif;
    font-size: .688rem;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-weight: 600;
    color: var(--paper-4);
    margin: 0;
}

.region__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem 2rem;
    margin: 0;
}

.region__facts dt {
    font-family: 'Space Grotesk', sans-serif;
    font-size: .625rem;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-weight: 600;
    color: var(--paper-4);
    margin-bottom: .25rem;
}

.region__facts dd {
    margin: 0;
    font-size: .875rem;
    color: var(--paper);
    line-height: 1.4;
}

.region__link {
    margin-top: 1.25rem;
}

@media (max-width: 640px) {
    .region__facts {
        grid-template-columns: 1fr;
    }
}

/* ---------- 18. CREDENTIALS STRIP ---------- */
.creds {
    border-top: 1px solid var(--line);
    padding-top: 1.4rem;
}

.creds__label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: .625rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-weight: 600;
    color: var(--paper-4);
    margin: 0 0 .85rem;
}

.creds__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .5rem;
}

.creds__list li {
    font-family: 'Space Grotesk', sans-serif;
    font-size: .688rem;
    font-weight: 500;
    letter-spacing: .02em;
    color: var(--paper-2);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    padding: .4rem .7rem;
    line-height: 1.2;
}

/* Factual value: deliberately NOT the big-number component, so a short
   descriptive answer never masquerades as a measured figure. */
.fact-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -.01em;
    color: var(--paper);
    line-height: 1.35;
    margin: .45rem 0 0;
}

/* ---------- 19. NOT FOUND ---------- */
.not-found-links {
    border-top: 1px solid var(--line);
}

.not-found-links a {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--line);
    transition: border-color .4s var(--ease);
}

.not-found-links a:hover {
    border-color: var(--teal);
}

.nf-label {
    flex: 0 0 7rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: .625rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-weight: 600;
    color: var(--paper-4);
}

.nf-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--paper);
    letter-spacing: -.01em;
    transition: color .3s var(--ease);
}

.not-found-links a:hover .nf-title {
    color: var(--teal);
}

/* ---------- 20. PROJECT PAGE ---------- */
.masthead-facts {
    border-top: 1px solid var(--line-2);
    margin: 0;
}

.masthead-facts>div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1.5rem;
    padding: .85rem 0;
    border-bottom: 1px solid var(--line);
}

.masthead-facts dt {
    font-family: 'Space Grotesk', sans-serif;
    font-size: .625rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-weight: 600;
    color: var(--paper-4);
}

.masthead-facts dd {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: .95rem;
    font-weight: 500;
    color: var(--paper);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.doc-figure {
    margin: 0;
}

.doc-figure figcaption {
    font-family: 'Space Grotesk', sans-serif;
    font-size: .688rem;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-weight: 600;
    color: var(--paper-4);
    padding-top: 1rem;
}

.spec-list {
    margin: 0;
    border-top: 1px solid var(--line);
}

.spec-list>div {
    display: grid;
    grid-template-columns: 10rem 1fr;
    gap: 2rem;
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--line);
}

.spec-list dt {
    font-family: 'Space Grotesk', sans-serif;
    font-size: .688rem;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-weight: 600;
    color: var(--teal);
    padding-top: .2rem;
}

.spec-list dd {
    margin: 0;
    color: var(--paper-2);
    font-size: .95rem;
    line-height: 1.6;
}

.phase-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: phase;
    border-top: 1px solid var(--line);
}

.phase-list li {
    padding: 1.5rem 0 1.5rem 0;
    border-bottom: 1px solid var(--line);
}

.phase-no {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: .625rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-weight: 600;
    color: var(--paper-4);
    margin-bottom: .55rem;
}

.phase-list h3 {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -.018em;
    color: var(--paper);
    margin: 0 0 .45rem;
}

.phase-list p {
    margin: 0;
    font-size: .925rem;
    color: var(--paper-3);
    max-width: 58ch;
}

.pull-quote {
    margin: 0;
    position: relative;
    padding-top: 2.5rem;
}

.pull-quote::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 1px;
    background: var(--gold);
}

.pull-quote p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.3rem, 2.6vw, 1.95rem);
    font-weight: 500;
    line-height: 1.32;
    letter-spacing: -.022em;
    color: var(--paper);
    margin: 0;
    text-wrap: balance;
}

.quote-attr {
    font-family: 'Space Grotesk', sans-serif;
    font-size: .688rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-weight: 600;
    color: var(--paper-4);
    margin-top: 1.75rem;
}

@media (max-width: 640px) {
    .spec-list>div {
        grid-template-columns: 1fr;
        gap: .5rem;
    }

    .masthead-facts>div {
        flex-direction: column;
        gap: .25rem;
    }

    .masthead-facts dd {
        text-align: left;
    }
}

/* ---------- 21. CEREMONY FOOTAGE ----------
   Two clips of different native aspect ratios (16:9 and 9:10).
   Column widths are set to the ratios themselves, so both frames
   resolve to exactly the same height with no cropping or letterboxing. */
.footage {
    display: grid;
    grid-template-columns: 1.778fr 0.9fr;
    gap: clamp(1rem, 2vw, 1.75rem);
    align-items: start;
}

.footage figure {
    margin: 0;
}

.v-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--ink-900);
    transition: border-color .45s var(--ease);
}

.v-frame:hover {
    border-color: var(--line-3);
}

.v-wide .v-frame {
    aspect-ratio: 1024 / 576;
}

.v-tall .v-frame {
    aspect-ratio: 720 / 800;
}

.v-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: var(--ink-900);
}

/* Poster scrim lifts the play control off the image */
.v-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 13, 21, .18), rgba(5, 13, 21, .55));
    opacity: 1;
    transition: opacity .5s var(--ease);
    pointer-events: none;
}

.v-frame.is-playing::after {
    opacity: 0;
}

.v-play {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    z-index: 2;
    transition: opacity .4s var(--ease);
}

.v-frame.is-playing .v-play {
    opacity: 0;
    pointer-events: none;
}

.v-play__ring {
    width: clamp(3.25rem, 5vw, 4.25rem);
    height: clamp(3.25rem, 5vw, 4.25rem);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .55);
    background: rgba(5, 13, 21, .42);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}

.v-play__ring svg {
    width: 32%;
    height: 32%;
    margin-left: 8%;
    fill: #fff;
    transition: fill .35s var(--ease);
}

.v-play:hover .v-play__ring {
    background: var(--teal);
    border-color: var(--teal);
    transform: scale(1.06);
}

.v-play:hover .v-play__ring svg {
    fill: var(--ink-900);
}

.v-play:focus-visible .v-play__ring {
    outline: 2px solid var(--teal);
    outline-offset: 4px;
}

/* Duration chip, bottom-left of the frame */
.v-meta {
    position: absolute;
    left: .85rem;
    bottom: .85rem;
    z-index: 3;
    font-family: 'Space Grotesk', sans-serif;
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--paper);
    background: rgba(5, 13, 21, .6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--radius);
    padding: .32rem .55rem;
    font-variant-numeric: tabular-nums;
    transition: opacity .4s var(--ease);
}

.v-frame.is-playing .v-meta {
    opacity: 0;
}

.footage figcaption {
    font-family: 'Space Grotesk', sans-serif;
    font-size: .688rem;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-weight: 600;
    color: var(--paper-4);
    padding-top: .95rem;
    line-height: 1.5;
}

@media (max-width: 860px) {
    .footage {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .v-tall .v-frame {
        aspect-ratio: 4 / 3;
    }
}

.v-fallback {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 4;
    text-align: center;
    padding: .8rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: .75rem;
    font-weight: 600;
    color: var(--teal);
    background: rgba(5, 13, 21, .8);
}

/* ---------- 22. SKIP LINK ---------- */
.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    z-index: 100;
    background: var(--teal);
    color: var(--ink-900);
    font-family: 'Space Grotesk', sans-serif;
    font-size: .8125rem;
    font-weight: 600;
    padding: .7rem 1.1rem;
    border-radius: var(--radius);
    transition: top .25s var(--ease);
}

.skip-link:focus {
    top: 1rem;
}

/* ---------- 23. NARROW PHONES (<=400px) ----------
   Wide letter-spacing on uppercase micro-labels is what breaks small screens:
   the tracking pushes a label past its grid cell before the words can wrap.
   Tighten tracking and the display figure rather than reflowing the layout. */
@media (max-width: 400px) {

    .stat-value {
        font-size: 1.4rem;
    }

    .stat-label,
    .subheading-accent,
    .news-meta,
    .chip,
    .sec-index,
    .region__type,
    .creds__label,
    .creds__list li,
    .masthead-facts dt,
    .spec-list dt,
    .phase-no,
    .footage figcaption,
    .doc-figure figcaption,
    .quote-attr,
    .leader-role,
    .nf-label,
    .newsroom-slide figcaption,
    .v-meta {
        letter-spacing: .07em;
    }

    .tracking-widest,
    .tracking-wider {
        letter-spacing: .05em;
    }

    .brand-mark {
        letter-spacing: .08em;
    }

    .region__facts dt,
    .masthead-facts dt {
        letter-spacing: .06em;
    }

    /* Stat tiles: reclaim the padding the tracking was eating */
    .grid-cols-2>.card-surface {
        padding: 1.15rem;
    }
}

/* Grid items default to min-width:auto, which stops long words shrinking
   their cell and pushes content past the column. This is the standard fix. */
.grid>* {
    min-width: 0;
}

/* Below 360px two columns of uppercase labels no longer fit; go single file. */
@media (max-width: 359px) {

    .grid-cols-2,
    .region__facts {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* .hero-stack is a grid item; min-width:auto stops it shrinking below its
   widest child, which pushed it past a 320px viewport. */
.hero-visual,
.hero-stack {
    min-width: 0;
}

/* Hero panels are flex containers; their children need the same treatment. */
.hero-panel>* {
    min-width: 0;
}

/* Word-mask spans cannot break mid-word, so the display size has to come down
   on very narrow screens or a long word will run past the viewport. */
@media (max-width: 400px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }
}

/* Four footer columns are too tight at tablet width once the wordmark grew. */
@media (min-width: 768px) and (max-width: 1023px) {
    footer .md\:grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 2.5rem;
    }
}

/* ---------- 24. CORPORATE HERO ----------
   The group leads; the flagship mandate sits directly beneath it. */
.corp-hero {
    position: relative;
    min-height: min(86vh, 780px);
    display: flex;
    align-items: flex-end;
    padding: 8rem 0 4.5rem;
    overflow: hidden;
    background: var(--ink-900);
    isolation: isolate;
}

.corp-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.corp-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    filter: contrast(1.05) saturate(.7) brightness(.52);
}

.corp-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 13, 21, .82) 0%, rgba(5, 13, 21, .45) 38%, rgba(10, 26, 40, .96) 100%),
        linear-gradient(90deg, rgba(10, 26, 40, .92) 0%, rgba(10, 26, 40, .30) 62%, rgba(10, 26, 40, .55) 100%);
}

.corp-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
}

.corp-hero__title {
    max-width: 17ch;
    margin: 1.6rem 0 1.5rem;
}

.corp-hero__lede {
    max-width: 56ch;
    margin-bottom: 2.25rem;
}

.corp-hero .creds {
    max-width: 46rem;
    margin-bottom: 2.25rem;
}

.corp-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    align-items: center;
}

@media (max-width: 768px) {
    .corp-hero {
        min-height: auto;
        padding: 6rem 0 3.5rem;
    }

    .corp-hero__title {
        max-width: none;
    }
}

/* The Dosso section is no longer the first thing on the page. */
#dosso {
    scroll-margin-top: 90px;
}

.mandate-context {
    margin-top: 2.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    align-items: baseline;
    justify-content: space-between;
}

.mandate-context p {
    margin: 0;
    font-size: .9375rem;
    color: var(--paper-3);
    max-width: 62ch;
}
