/* =====================================================================
   DARE Lab — Decentralized Aviation Research & Education Lab
   Design system & site styles
   ---------------------------------------------------------------------
   1. Tokens (dark default + light theme)
   2. Base
   3. Primitives (buttons, labels, tags, cards, icons)
   4. Header & navigation
   5. Hero + globe
   6. Ticker
   7. Sections (about, team, working groups, outputs, updates,
      governance, protocol, join)
   8. Footer
   9. Policies page
   10. Motion & responsive
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Tokens
   --------------------------------------------------------------------- */
:root {
    --font-serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --max: 1240px;
    --gutter: clamp(16px, 4vw, 40px);
    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --header-h: 76px;

    /* Dark theme (default) */
    color-scheme: dark;
    --bg: #060910;
    --bg-2: #0a0f19;
    --bg-glow-1: rgba(59, 130, 246, 0.13);
    --bg-glow-2: rgba(79, 209, 232, 0.05);
    --surface: rgba(148, 163, 184, 0.035);
    --surface-2: rgba(148, 163, 184, 0.065);
    --surface-solid: #0c121d;
    --border: rgba(148, 163, 184, 0.13);
    --border-strong: rgba(148, 163, 184, 0.28);
    --text: #eef2f8;
    --text-muted: #a5afc0;
    --text-dim: #707c90;
    --accent: #6aa5ff;
    --accent-strong: #3b82f6;
    --accent-2: #4fd1e8;
    --accent-soft: rgba(91, 155, 255, 0.13);
    --on-accent: #ffffff;
    --gold: #e6bd6a;
    --gold-2: #f7dc9b;
    --gold-soft: rgba(230, 189, 106, 0.13);
    --good: #34d399;
    --warn: #f5b947;
    --warn-soft: rgba(245, 185, 71, 0.12);
    --spot: rgba(106, 165, 255, 0.1);
    --nav-bg: rgba(9, 13, 22, 0.66);
    --grid-line: rgba(148, 163, 184, 0.06);
    --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
    --shadow-md: 0 14px 40px -18px rgba(0, 0, 0, 0.65);
    --btn-primary-bg: #eef2f8;
    --btn-primary-fg: #070b14;

    /* Globe (RGB triplets so the canvas can apply alpha) */
    --globe-dot: 150, 178, 222;
    --globe-node: 106, 165, 255;
    --globe-arc: 79, 209, 232;
    --globe-label: 238, 242, 248;
    --globe-label-dim: 156, 170, 194;
    --globe-halo: 6, 9, 16;
    --globe-dot-alpha: 0.85;
    --globe-glow: 1;
}

[data-theme="light"] {
    color-scheme: light;
    --bg: #f6f7f9;
    --bg-2: #eef1f6;
    --bg-glow-1: rgba(37, 99, 235, 0.08);
    --bg-glow-2: rgba(8, 145, 178, 0.05);
    --surface: rgba(255, 255, 255, 0.7);
    --surface-2: rgba(255, 255, 255, 0.95);
    --surface-solid: #ffffff;
    --border: rgba(15, 23, 42, 0.09);
    --border-strong: rgba(15, 23, 42, 0.2);
    --text: #0a1220;
    --text-muted: #445168;
    --text-dim: #687489;
    --accent: #2563eb;
    --accent-strong: #2563eb;
    --accent-2: #0891b2;
    --accent-soft: rgba(37, 99, 235, 0.08);
    --gold: #9a6a12;
    --gold-2: #c28b20;
    --gold-soft: rgba(194, 139, 32, 0.1);
    --good: #059669;
    --warn: #b7791f;
    --warn-soft: rgba(183, 121, 31, 0.1);
    --spot: rgba(37, 99, 235, 0.06);
    --nav-bg: rgba(255, 255, 255, 0.72);
    --grid-line: rgba(15, 23, 42, 0.055);
    --shadow-lg: 0 30px 70px -32px rgba(15, 23, 42, 0.28);
    --shadow-md: 0 14px 34px -20px rgba(15, 23, 42, 0.25);
    --btn-primary-bg: #0a1220;
    --btn-primary-fg: #ffffff;

    --globe-dot: 71, 85, 110;
    --globe-node: 37, 99, 235;
    --globe-arc: 8, 145, 178;
    --globe-label: 10, 18, 32;
    --globe-label-dim: 80, 92, 112;
    --globe-halo: 246, 247, 249;
    --globe-dot-alpha: 0.62;
    --globe-glow: 0.75;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        radial-gradient(1100px 620px at 88% -8%, var(--bg-glow-1), transparent 62%),
        radial-gradient(900px 520px at -12% 6%, var(--bg-glow-2), transparent 60%);
    background-repeat: no-repeat;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

body.is-locked {
    overflow: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.08;
    text-wrap: balance;
}

h1 em,
h2 em,
h3 em,
h4 em {
    font-style: italic;
}

p {
    margin: 0;
    text-wrap: pretty;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

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

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

button,
input,
textarea {
    font: inherit;
    color: inherit;
}

::selection {
    background: var(--accent-strong);
    color: #fff;
}

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

.container {
    width: min(var(--max), 100% - 2 * var(--gutter));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 3000;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-fg);
    font-weight: 600;
    font-size: 0.875rem;
    transform: translateY(-160%);
    transition: transform 0.2s var(--ease);
}

.skip-link:focus {
    transform: none;
}

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

/* ---------------------------------------------------------------------
   3. Primitives
   --------------------------------------------------------------------- */
.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon--sm {
    width: 16px;
    height: 16px;
}

.icon--xs {
    width: 14px;
    height: 14px;
}

.icon--fill {
    fill: currentColor;
    stroke: none;
}

/* Mono micro-label */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    line-height: 1.4;
}

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

.eyebrow__num::after {
    content: "";
    display: inline-block;
    width: 22px;
    height: 1px;
    margin-left: 10px;
    vertical-align: middle;
    background: currentColor;
    opacity: 0.55;
}

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

.eyebrow--gold {
    color: var(--gold);
}

/* Buttons */
.btn {
    --btn-h: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: var(--btn-h);
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--font-sans);
    font-size: 0.925rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease), opacity 0.25s var(--ease);
}

.btn .icon {
    width: 18px;
    height: 18px;
    transition: transform 0.25s var(--ease);
}

.btn--primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-fg);
    box-shadow: 0 10px 30px -12px rgba(106, 165, 255, 0.55);
}

.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px -14px rgba(106, 165, 255, 0.7);
}

.btn--primary:hover .icon--arrow {
    transform: translateX(3px);
}

.btn--ghost {
    background: var(--surface);
    border-color: var(--border-strong);
    color: var(--text);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.btn--ghost:hover {
    border-color: var(--text-dim);
    background: var(--surface-2);
}

.btn--sm {
    --btn-h: 38px;
    padding: 0 16px;
    font-size: 0.85rem;
}

.btn--xs {
    --btn-h: 32px;
    padding: 0 12px;
    font-size: 0.78rem;
    gap: 7px;
}

.btn--xs .icon {
    width: 15px;
    height: 15px;
}

.btn--block {
    width: 100%;
}

.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.icon-btn:hover {
    color: var(--text);
    background: var(--surface-2);
    border-color: var(--border);
}

/* Tags & chips */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.2;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
    white-space: nowrap;
}

.tag--gold {
    color: var(--gold);
    background: var(--gold-soft);
    border-color: color-mix(in srgb, var(--gold) 35%, transparent);
}

.tag--warn {
    color: var(--warn);
    background: var(--warn-soft);
    border-color: color-mix(in srgb, var(--warn) 30%, transparent);
}

.tag__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--border);
    line-height: 1.3;
}

.iata {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    border: 1px solid var(--border);
    line-height: 1.3;
}

/* Text link with arrow */
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    transition: gap 0.2s var(--ease), color 0.2s var(--ease);
}

.text-link:hover {
    gap: 11px;
}

/* Card surface with cursor spotlight */
.card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(22px, 2.4vw, 32px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.35s var(--ease);
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(460px circle at var(--mx, 50%) var(--my, -30%), var(--spot), transparent 45%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.card:hover {
    border-color: var(--border-strong);
}

.card:hover::before {
    opacity: 1;
}

.card__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 22px;
    border-radius: 12px;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
}

.card__icon .icon {
    width: 22px;
    height: 22px;
}

.card h3 {
    font-size: clamp(1.6rem, 2.2vw, 2rem);
    margin: 10px 0 12px;
}

.card p {
    color: var(--text-muted);
    font-size: 0.975rem;
    line-height: 1.65;
}

/* ---------------------------------------------------------------------
   4. Header & navigation
   --------------------------------------------------------------------- */
.site-header {
    position: fixed;
    inset: 16px 0 auto;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding-inline: var(--gutter);
    pointer-events: none;
}

.nav {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 28px;
    width: min(var(--max), 100%);
    height: 60px;
    padding: 0 10px 0 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--nav-bg);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    backdrop-filter: saturate(160%) blur(16px);
    box-shadow: var(--shadow-md);
    transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled .nav {
    border-color: var(--border-strong);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand__mark {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.brand__word {
    font-size: 1.05rem;
    line-height: 1;
}

.brand__word span {
    margin-left: 5px;
    font-weight: 500;
    color: var(--text-dim);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav__links a {
    position: relative;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav__links a:hover {
    color: var(--text);
}

.nav__links a[aria-current="true"],
.nav__links a[aria-current="page"] {
    color: var(--text);
    background: var(--surface-2);
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.theme-toggle .icon--sun {
    display: none;
}

[data-theme="light"] .theme-toggle .icon--sun {
    display: block;
}

[data-theme="light"] .theme-toggle .icon--moon {
    display: none;
}

.menu-toggle {
    display: none;
}

.burger {
    position: relative;
    width: 18px;
    height: 12px;
}

.burger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.6px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.burger span:first-child {
    top: 2px;
}

.burger span:last-child {
    top: 9px;
}

.menu-toggle[aria-expanded="true"] .burger span:first-child {
    top: 5.5px;
    transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .burger span:last-child {
    top: 5.5px;
    transform: rotate(-45deg);
}

/* Mobile drawer */
.drawer {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 120px var(--gutter) 40px;
    background: var(--bg);
    background-image: radial-gradient(700px 400px at 100% 0%, var(--bg-glow-1), transparent 65%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.drawer.is-open {
    opacity: 1;
    visibility: visible;
}

.drawer__nav {
    display: flex;
    flex-direction: column;
}

.drawer__nav a {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-serif);
    font-size: clamp(2rem, 8vw, 2.6rem);
    line-height: 1.1;
    transform: translateY(12px);
    opacity: 0;
    transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}

.drawer.is-open .drawer__nav a {
    transform: none;
    opacity: 1;
}

.drawer__nav a span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: var(--accent);
}

.drawer__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.drawer__foot a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ---------------------------------------------------------------------
   5. Hero + globe
   --------------------------------------------------------------------- */
.hero {
    position: relative;
    padding: calc(var(--header-h) + clamp(48px, 7vw, 88px)) 0 clamp(48px, 6vw, 80px);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.hero__bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 72px 72px;
    background-position: center top;
    -webkit-mask-image: radial-gradient(ellipse 75% 70% at 60% 35%, #000 25%, transparent 75%);
    mask-image: radial-gradient(ellipse 75% 70% at 60% 35%, #000 25%, transparent 75%);
}

.hero__bg::after {
    content: "";
    position: absolute;
    width: 760px;
    height: 760px;
    right: -120px;
    top: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--globe-node), 0.16), transparent 62%);
    filter: blur(20px);
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    align-items: center;
    gap: clamp(24px, 4vw, 56px);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    margin-bottom: 28px;
    padding: 5px 14px 5px 5px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-size: 0.82rem;
    color: var(--text-muted);
    transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.hero-badge:hover {
    border-color: var(--border-strong);
    color: var(--text);
}

.hero-badge__tag {
    padding: 4px 10px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--on-accent);
    background: linear-gradient(135deg, var(--accent-strong), var(--accent-2));
}

.hero-badge__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-badge .icon {
    width: 15px;
    height: 15px;
    color: var(--text-dim);
}

.hero__title {
    font-size: clamp(2.9rem, 6.4vw, 5.9rem);
    line-height: 0.96;
    letter-spacing: -0.018em;
    margin-bottom: 28px;
}

.hero__title em,
.page-hero h1 em {
    padding-right: 0.06em;
    background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--accent);
}

.hero__lede {
    max-width: 33em;
    margin-bottom: 36px;
    font-size: clamp(1.05rem, 1.35vw, 1.22rem);
    line-height: 1.6;
    color: var(--text-muted);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 52px 0 0;
    border-top: 1px solid var(--border);
}

.stat {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    padding: 20px 18px 0 0;
}

.stat + .stat {
    padding-left: 18px;
    border-left: 1px solid var(--border);
}

.stat__value {
    display: block;
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(2.1rem, 3.2vw, 2.8rem);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stat__label {
    display: block;
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.hero__visual {
    position: relative;
    min-width: 0;
}

.globe {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin-inline: auto;
    aspect-ratio: 1 / 1;
}

.globe__canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
    touch-action: pan-y;
    opacity: 0;
    transition: opacity 1.2s var(--ease);
}

.globe__canvas.is-ready {
    opacity: 1;
}

.globe__canvas.is-dragging {
    cursor: grabbing;
}

.globe__caption {
    position: absolute;
    left: 50%;
    bottom: 2%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--nav-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    white-space: nowrap;
}

.globe__caption .live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 0 0 rgba(var(--globe-arc), 0.6);
    animation: pulse 2.4s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--globe-arc), 0.55);
    }

    70% {
        box-shadow: 0 0 0 9px rgba(var(--globe-arc), 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--globe-arc), 0);
    }
}

/* ---------------------------------------------------------------------
   6. Ticker
   --------------------------------------------------------------------- */
.ticker {
    position: relative;
    overflow: hidden;
    border-block: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg-2) 70%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker__track {
    display: flex;
    width: max-content;
    animation: ticker 48s linear infinite;
}

.ticker:hover .ticker__track {
    animation-play-state: paused;
}

.ticker__group {
    display: flex;
    flex-shrink: 0;
    list-style: none;
}

.ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    padding: 18px 14px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

.ticker__item::after {
    content: "";
    width: 5px;
    height: 5px;
    transform: rotate(45deg);
    background: var(--accent);
    opacity: 0.7;
}

@keyframes ticker {
    to {
        transform: translateX(-50%);
    }
}

/* ---------------------------------------------------------------------
   7. Sections
   --------------------------------------------------------------------- */
.section {
    position: relative;
    padding: clamp(72px, 10vw, 128px) 0;
}

.section--alt {
    background: linear-gradient(180deg, var(--bg-2), color-mix(in srgb, var(--bg-2) 40%, var(--bg)));
    border-block: 1px solid var(--border);
}

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 16px 40px;
    margin-bottom: clamp(36px, 5vw, 56px);
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
}

.section-head h2 {
    margin-top: 16px;
    font-size: clamp(2.5rem, 5.2vw, 4.25rem);
    line-height: 1;
}

.section-head__aside {
    max-width: 380px;
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: right;
}

/* ----- About (bento) ----- */
.bento {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.bento__feature {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    min-height: 460px;
}

.bento__feature h3 {
    font-size: clamp(2.3rem, 3.6vw, 3.25rem);
    margin: 14px 0 22px;
}

.bento__feature p {
    font-size: 1.04rem;
    max-width: 36em;
}

.bento__feature .divider {
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.bento__feature .lead {
    margin-bottom: 28px;
}

.bento__wide {
    grid-column: span 2;
}

.feature-art {
    position: absolute;
    right: -150px;
    bottom: -160px;
    width: 340px;
    height: 340px;
    z-index: -1;
    color: var(--accent);
    opacity: 0.22;
    pointer-events: none;
}

.feature-chips {
    margin-bottom: 32px;
}

.card--accent {
    border-color: transparent;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(79, 209, 232, 0.35), transparent 55%),
        linear-gradient(135deg, #1e40af 0%, #2563eb 55%, #1d4ed8 100%);
    color: #fff;
}

.card--accent .eyebrow {
    color: rgba(255, 255, 255, 0.72);
}

.card--accent h3 {
    color: #fff;
}

.card--accent p {
    color: rgba(255, 255, 255, 0.86);
}

.card--accent .chip {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
}

.card--accent .chips {
    margin-top: 22px;
}

.card--accent .route-art {
    position: absolute;
    inset: auto -10px -20px auto;
    width: 62%;
    height: auto;
    z-index: -1;
    color: #fff;
    opacity: 0.22;
    pointer-events: none;
}

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

/* ----- Team ----- */
.team-group + .team-group {
    margin-top: clamp(44px, 6vw, 72px);
}

.team-group__label {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.team-group__label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
}

.team-group__count {
    color: var(--text-dim);
    opacity: 0.8;
}

.directors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.avatar {
    position: relative;
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 18px;
    overflow: hidden;
    background: var(--surface-solid);
    border: 1px solid var(--border);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.92);
    transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}

.member:hover .avatar img {
    transform: scale(1.05);
    filter: saturate(1.05);
}

.avatar--lg {
    width: 116px;
    height: 116px;
    border-radius: 24px;
}

.member {
    display: flex;
    flex-direction: column;
}

.member__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.member__role {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.member__name {
    margin: 8px 0 6px;
    font-size: 1.65rem;
    line-height: 1.1;
}

.member__affil {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--text);
    opacity: 0.9;
}

.member__affil .icon {
    width: 15px;
    height: 15px;
    margin-top: 2px;
    color: var(--text-dim);
}

.member__affil .iata {
    margin-left: 4px;
    vertical-align: 1px;
}

.card .member__bio {
    margin-top: 14px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.member__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 20px;
}

.link-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.link-chip .icon {
    width: 15px;
    height: 15px;
}

.link-chip:hover {
    color: var(--text);
    border-color: var(--border-strong);
    background: var(--surface-2);
}

/* Director layout */
.member--director {
    flex-direction: row;
    gap: 26px;
}

.member--director .member__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.member--director .member__name {
    font-size: clamp(1.9rem, 2.6vw, 2.35rem);
}

.member--director .tag {
    position: absolute;
    top: 22px;
    right: 22px;
}

.member--director .member__role {
    padding-right: 150px;
}

/* PI grid: centred rows keep an odd count balanced */
.pi-grid {
    --cols: 4;
    --gap: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--gap);
}

.pi-grid > * {
    flex: 0 1 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
    min-width: 0;
}

/* Honorary member — a regular member card laid out as one row,
   distinguished only by its role label */
.member--honorary {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 20px 40px;
}

.member__identity {
    display: flex;
    align-items: center;
    gap: 20px;
}

.member--honorary .member__name {
    margin: 6px 0 4px;
}

.member--honorary .avatar {
    border-color: color-mix(in srgb, var(--gold) 35%, var(--border));
}

.member__role--honorary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
}

.card.member--honorary .member__bio {
    margin-top: 0;
}

.member--honorary .member__links {
    margin-top: 0;
    padding-top: 14px;
}

/* ----- Working groups ----- */
.wg-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.wg {
    display: flex;
    flex-direction: column;
    min-height: 260px;
}

.wg__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 34px;
}

.wg__num {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: var(--text-dim);
}

.wg .card__icon {
    margin-bottom: 0;
}

.wg h3 {
    font-size: 1.6rem;
    margin: 0 0 10px;
}

.wg p {
    font-size: 0.92rem;
}

.wg--wip p {
    margin-bottom: 20px;
}

.wg__status {
    align-self: flex-start;
    margin-top: auto;
}

.wg--wip .card__icon {
    color: var(--warn);
    background: var(--warn-soft);
    border-color: color-mix(in srgb, var(--warn) 22%, transparent);
}

.wg--cta {
    border-style: dashed;
    background: transparent;
    justify-content: space-between;
}

.wg--cta:hover {
    border-color: var(--accent);
}

.wg--cta .text-link {
    margin-top: 22px;
}

/* ----- Outputs ----- */
.outputs-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 20px;
}

.outputs-side {
    display: grid;
    gap: 20px;
    align-content: start;
}

.output-head {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.output-head .card__icon {
    margin-bottom: 0;
}

.output-head h3 {
    margin: 4px 0 6px;
}

.pub-list {
    list-style: none;
    margin-top: 28px;
    border-top: 1px solid var(--border);
}

.pub {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.pub:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.pub__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 12px;
}

.pub__journal {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.pub__year {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
}

.pub__title {
    font-size: clamp(1.3rem, 1.8vw, 1.55rem);
    line-height: 1.2;
}

.pub__title a {
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.4s var(--ease);
}

.pub__title a:hover {
    background-size: 100% 1px;
}

.card .pub__authors {
    margin-top: 10px;
    font-size: 0.88rem;
    color: var(--text);
    opacity: 0.85;
}

.card .pub__details {
    margin-top: 2px;
    font-size: 0.84rem;
    color: var(--text-dim);
}

.pub__details em {
    font-style: italic;
}

.pub__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.project {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.project__title {
    margin-top: 10px;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.45;
}

.project__title strong {
    color: var(--accent);
    font-weight: 700;
}

.project__people {
    display: grid;
    gap: 4px;
    margin: 14px 0 18px;
    list-style: none;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.project__people span {
    color: var(--text-dim);
}

/* ----- Updates ----- */
.updates-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.slider-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-strong);
    color: var(--text);
}

.slider-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.slider-btn:not(:disabled):hover {
    border-color: var(--accent);
    color: var(--accent);
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.update-card {
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: var(--shadow-md);
}

.update-card iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 0;
}

.update-card[hidden] {
    display: none !important;
}

.updates-foot {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

/* ----- Governance ----- */
.gov-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.gov-list {
    display: grid;
    gap: 26px;
    margin-top: 26px;
    list-style: none;
}

.gov-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.gov-item .card__icon {
    margin: 2px 0 0;
}

.gov-item h3 {
    margin: 0 0 6px;
    font-size: 1.55rem;
}

/* ----- Protocol ----- */
.protocol-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.callout {
    margin-top: 24px;
    padding: 20px 22px;
    border-radius: var(--radius);
    border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent);
    background: var(--accent-soft);
}

.callout h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.card .callout p {
    font-size: 0.86rem;
    line-height: 1.65;
}

/* ----- Join ----- */
.join-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
}

.join-copy h2 {
    margin: 16px 0 20px;
    font-size: clamp(2.6rem, 5.2vw, 4.25rem);
    line-height: 1;
}

.join-copy > p {
    max-width: 30em;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.steps {
    display: grid;
    gap: 0;
    margin: 36px 0 30px;
    list-style: none;
    counter-reset: step;
}

.step {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 18px;
    padding-bottom: 26px;
}

.step:last-child {
    padding-bottom: 0;
}

.step::before {
    counter-increment: step;
    content: "0" counter(step);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--surface-solid);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
}

.step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 21.5px;
    top: 48px;
    bottom: 4px;
    width: 1px;
    background: linear-gradient(var(--border-strong), transparent);
}

.step h3 {
    margin: 8px 0 4px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.step p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-card {
    padding: clamp(24px, 3.4vw, 40px);
    box-shadow: var(--shadow-lg);
}

.form {
    display: grid;
    gap: 18px;
}

.form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.field {
    display: grid;
    gap: 8px;
}

.field__label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.field__input {
    width: 100%;
    padding: 13px 15px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface-solid) 70%, transparent);
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--text);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}

.field__input::placeholder {
    color: var(--text-dim);
    opacity: 0.8;
}

.field__input:hover {
    border-color: var(--border-strong);
}

.field__input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

textarea.field__input {
    min-height: 128px;
    resize: vertical;
}

.consent {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin-top: 4px;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--text-muted);
    cursor: pointer;
}

.consent input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--accent-strong);
    cursor: pointer;
}

.consent a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.form__note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-dim);
}

/* ---------------------------------------------------------------------
   8. Footer
   --------------------------------------------------------------------- */
.site-footer {
    position: relative;
    padding: clamp(56px, 8vw, 96px) 0 32px;
    border-top: 1px solid var(--border);
    background: var(--bg-2);
    overflow: hidden;
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 40px;
}

.footer-brand p {
    max-width: 24em;
    margin-top: 18px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 8px;
    margin-top: 22px;
}

.footer-social a {
    border-color: var(--border);
}

.footer-col h4 {
    margin-bottom: 16px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.footer-col ul {
    display: grid;
    gap: 10px;
    list-style: none;
}

.footer-col a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.2s var(--ease);
}

.footer-col a:hover {
    color: var(--text);
}

.footer-wordmark {
    margin: clamp(48px, 7vw, 80px) 0 0;
    font-family: var(--font-serif);
    font-size: clamp(4rem, 17vw, 15rem);
    line-height: 0.8;
    letter-spacing: -0.03em;
    text-align: center;
    white-space: nowrap;
    background: linear-gradient(180deg, color-mix(in srgb, var(--text) 16%, transparent), transparent 85%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    user-select: none;
    pointer-events: none;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-dim);
}

.footer-bottom a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
}

.footer-bottom a:hover {
    color: var(--text);
}

/* ---------------------------------------------------------------------
   9. Policies page
   --------------------------------------------------------------------- */
.page-hero {
    position: relative;
    padding: calc(var(--header-h) + clamp(56px, 8vw, 96px)) 0 clamp(40px, 5vw, 64px);
    overflow: hidden;
}

.page-hero h1 {
    margin: 18px 0 18px;
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 1;
}

.page-hero p {
    max-width: 38em;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.toc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
    list-style: none;
}

.toc a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.toc a span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
}

.toc a:hover {
    color: var(--text);
    border-color: var(--border-strong);
}

.policy-section {
    padding: clamp(48px, 7vw, 88px) 0;
}

.policy-intro {
    margin-bottom: 24px;
    font-size: 1.02rem;
    color: var(--text-muted);
}

.clause-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.clause {
    padding: 22px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
}

.clause h3,
.clause h4 {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.clause h3 span,
.clause h4 span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--accent);
}

.clause p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.clause strong,
.policy-card strong {
    color: var(--text);
    font-weight: 600;
}

.check-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    list-style: none;
}

.check-list li {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    font-size: 0.94rem;
    color: var(--text-muted);
}

.check-list .icon {
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.check-list--good .icon {
    color: var(--good);
}

.check-list--bad .icon {
    color: #f87171;
}

[data-theme="light"] .check-list--bad .icon {
    color: #dc2626;
}

.check-list--accent .icon {
    color: var(--accent);
}

.kv-list {
    display: grid;
    margin: 18px 0 0;
}

.kv-list div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.94rem;
}

.kv-list div:last-child {
    border-bottom: 0;
}

.kv-list dt {
    font-weight: 600;
    color: var(--text);
}

.kv-list dd {
    margin: 0;
    color: var(--text-muted);
    text-align: right;
}

.policy-stack {
    display: grid;
    gap: 20px;
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.policy-card--warn {
    border-color: color-mix(in srgb, var(--warn) 35%, var(--border));
    background:
        radial-gradient(80% 140% at 0% 0%, var(--warn-soft), transparent 60%),
        linear-gradient(180deg, var(--surface-2), var(--surface));
}

.policy-card--warn .card__icon {
    color: var(--warn);
    background: var(--warn-soft);
    border-color: color-mix(in srgb, var(--warn) 25%, transparent);
}

.policy-card h3 .icon {
    vertical-align: -2px;
}

/* ---------------------------------------------------------------------
   10. Motion & responsive
   --------------------------------------------------------------------- */
/* Hero entrance — pure CSS, never depends on JavaScript */
@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.hero__copy > *,
.page-hero .container > * {
    animation: rise 0.9s var(--ease) both;
}

.hero__copy > :nth-child(2),
.page-hero .container > :nth-child(2) {
    animation-delay: 0.08s;
}

.hero__copy > :nth-child(3),
.page-hero .container > :nth-child(3) {
    animation-delay: 0.16s;
}

.hero__copy > :nth-child(4),
.page-hero .container > :nth-child(4) {
    animation-delay: 0.24s;
}

.hero__copy > :nth-child(5),
.page-hero .container > :nth-child(5) {
    animation-delay: 0.32s;
}

/* Scroll reveal (only while js/main.js is running; see fail-safe in <head>) */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 1100px) {
    .nav {
        gap: 16px;
    }

    .nav__links a {
        padding: 8px 10px;
    }

    .hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    }

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

    .stat:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .stat:nth-child(n + 3) {
        padding-top: 18px;
    }

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

    .bento__feature {
        grid-row: auto;
        min-height: 0;
    }

    .bento__feature .divider {
        margin-top: 28px;
    }

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

    .pi-grid {
        --cols: 3;
    }

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

    .footer-top {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 960px) {
    .nav__links {
        display: none;
    }

    .menu-toggle {
        display: inline-grid;
    }

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

    .hero__copy {
        text-align: left;
    }

    .hero__visual {
        max-width: 560px;
        width: 100%;
        margin: 0 auto;
    }

    .hero__stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .stat:nth-child(3) {
        padding-left: 18px;
        border-left: 1px solid var(--border);
    }

    .stat:nth-child(n + 3) {
        padding-top: 20px;
    }

    .directors,
    .outputs-grid,
    .gov-grid,
    .protocol-grid,
    .join-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .pi-grid {
        --cols: 2;
    }

    .member--honorary {
        grid-template-columns: minmax(0, 1fr);
    }

    .section-head {
        grid-template-columns: minmax(0, 1fr);
    }

    .section-head__aside {
        text-align: left;
    }

    .clause-grid,
    .policy-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 680px) {
    :root {
        --header-h: 64px;
    }

    .site-header {
        top: 10px;
    }

    .nav {
        height: 54px;
        padding: 0 6px 0 14px;
        gap: 8px;
    }

    .nav__cta {
        display: none;
    }

    .hero__title {
        font-size: clamp(2.5rem, 11vw, 3.4rem);
    }

    .hero-badge {
        font-size: 0.78rem;
    }

    .hero__actions .btn {
        flex: 1 1 auto;
    }

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

    .stat:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .bento,
    .wg-grid,
    .updates-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .bento__feature,
    .bento__wide {
        grid-column: auto;
    }

    .pi-grid {
        --cols: 1;
    }

    .member--director {
        flex-direction: column;
        gap: 20px;
    }

    .member--director .member__role {
        padding-right: 0;
    }

    .member--director .tag {
        position: static;
        align-self: flex-start;
        order: -1;
    }


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

    .footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .globe__caption {
        font-size: 0.6rem;
        letter-spacing: 0.08em;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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

    .js [data-reveal] {
        opacity: 1;
        transform: none;
    }

    .hero__copy > *,
    .page-hero .container > * {
        animation: none;
    }

    .ticker__track {
        animation: none;
        flex-wrap: wrap;
        width: auto;
    }

    .ticker__group[aria-hidden="true"] {
        display: none;
    }
}

@media print {

    .site-header,
    .drawer,
    .hero__visual,
    .ticker,
    #updates,
    .form-card {
        display: none !important;
    }

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