/* =============================================================
   XNNET — Editorial network atlas
   Hero photo · Bento system · Atlas regions · NetOps · Manifesto
   ============================================================= */

:root {
    --bg: #06080d;

    /* Dark glass surfaces (used everywhere now) */
    --surface: rgba(255, 255, 255, 0.038);
    --surface-strong: rgba(255, 255, 255, 0.055);
    --surface-line: rgba(255, 255, 255, 0.08);

    --hairline-light: rgba(255, 255, 255, 0.14);
    --hairline-light-strong: rgba(255, 255, 255, 0.22);
    --hairline-dark: rgba(255, 255, 255, 0.08);
    --hairline-dark-strong: rgba(255, 255, 255, 0.14);

    /* Names kept for cascade; values flipped to dark-mode */
    --text-dark: rgba(255, 255, 255, 0.96);   /* primary on dark */
    --text-main: rgba(255, 255, 255, 0.96);
    --text-soft: rgba(255, 255, 255, 0.72);
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-body: rgba(255, 255, 255, 0.74);
    --text-body-soft: rgba(255, 255, 255, 0.5);

    --accent-online: #2c7be5;
    --accent-building: #d99529;
    --accent-planned: #8b5cf6;
    --accent-pulse: #6dd06b;

    --radius-panel: 28px;
    --radius-card: 22px;
    --radius-cell: 18px;
    --radius-pill: 999px;

    --shadow-panel: 0 28px 80px rgba(4, 8, 14, 0.20);
    --shadow-soft: 0 14px 40px rgba(4, 8, 14, 0.12);

    --font-display: "Outfit", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
    --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Outfit", system-ui, sans-serif;
    --font-ui: "Space Grotesk", "Outfit", system-ui, sans-serif;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.375rem;
    --text-2xl: 1.75rem;
    --text-3xl: 2.25rem;
    --text-4xl: 2.75rem;
    --text-6xl: 4rem;

    --leading-tight: 1.18;
    --leading-snug: 1.4;
    --leading-normal: 1.7;

    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 64px;
    --space-2xl: 96px;
    --space-3xl: 128px;

    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    position: relative;     /* anchor for .page-bg */
    min-width: 320px;
    background: var(--bg);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }

a:focus-visible,
button:focus-visible,
.skip-link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
    border-radius: 6px;
}

::selection {
    background: rgba(255, 255, 255, 0.85);
    color: #06080d;
}

/* Skip link */
.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 16px;
    background: #fff;
    color: #0d121a;
    font-family: var(--font-ui);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.06em;
    border-radius: 999px;
    transform: translateY(-200%);
    transition: transform 200ms var(--ease);
}

.skip-link:focus-visible { transform: translateY(0); }

/* =============================================================
   Cinematic backdrop (dark top -> light bottom)
   ============================================================= */
.page-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        /* atmospheric tints sprinkled along the scroll */
        radial-gradient(1200px 600px at 50% 4%, rgba(120, 150, 200, 0.14), transparent 60%),
        radial-gradient(900px 700px at 85% 22%, rgba(80, 120, 180, 0.07), transparent 60%),
        radial-gradient(1000px 800px at 8% 42%, rgba(140, 110, 220, 0.06), transparent 60%),
        radial-gradient(900px 700px at 90% 62%, rgba(80, 130, 200, 0.06), transparent 60%),
        radial-gradient(1000px 700px at 20% 82%, rgba(110, 100, 200, 0.05), transparent 60%),
        linear-gradient(180deg,
            #06080d 0%,
            #06080d 16%,
            #07090f 28%,
            #090c14 42%,
            #0b0f17 56%,
            #090c13 72%,
            #07090e 86%,
            #06080d 100%);
}

.page-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 3px 3px;
    opacity: 0.55;
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* =============================================================
   Layout shells
   ============================================================= */
.shell {
    width: min(1280px, calc(100vw - 64px));
    margin: 0 auto;
}

main { position: relative; }

/* =============================================================
   Header
   ============================================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    padding: 22px 0;
    transition: padding 240ms var(--ease), background 240ms var(--ease),
                backdrop-filter 240ms var(--ease), border-color 240ms var(--ease);
    border-bottom: 1px solid transparent;
}

/* Anchor jumps & smooth scroll clear the fixed header */
section[id] {
    scroll-margin-top: 84px;
}

.site-header.scrolled {
    padding: 12px 0;
    background: rgba(7, 9, 13, 0.55);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.nav-shell {
    display: flex;
    align-items: center;
    gap: 24px;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.96);
    font-family: var(--font-ui);
    font-size: var(--text-base);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    min-width: 0;
}

.wordmark .word-sub {
    display: inline-block;
    padding: 3px 9px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.desktop-nav a,
.header-link,
.lang-toggle {
    font-family: var(--font-ui);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 200ms var(--ease), background 200ms var(--ease),
                border-color 200ms var(--ease);
}

.desktop-nav a {
    color: rgba(255, 255, 255, 0.66);
}

.desktop-nav a:hover { color: #fff; }

.header-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.lang-toggle,
.header-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.94);
    cursor: pointer;
    font-family: var(--font-ui);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.lang-toggle { min-width: 56px; letter-spacing: 0.08em; }

.lang-toggle:hover,
.header-link:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.32);
    color: #fff;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    touch-action: manipulation;
}

.menu-toggle span {
    width: 16px;
    height: 1.5px;
    background: #fff;
    transition: transform 220ms var(--ease);
}

.mobile-nav {
    display: none;
    margin: 10px auto 0;
    width: min(1280px, calc(100vw - 32px));
    padding: 18px;
    border-radius: 22px;
    background: rgba(10, 14, 20, 0.86);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow-panel);
}

.mobile-nav.active { display: grid; gap: 12px; }

.mobile-nav a {
    color: rgba(255, 255, 255, 0.88);
    font-family: var(--font-ui);
    font-size: var(--text-sm);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* =============================================================
   Section progress rail (right side, fixed)
   ============================================================= */
.section-rail {
    position: fixed;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    display: grid;
    gap: 14px;
    padding: 16px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(10, 14, 20, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background 240ms var(--ease), border-color 240ms var(--ease);
}

.section-rail.on-light {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(15, 20, 27, 0.06);
    box-shadow: var(--shadow-soft);
}

.section-rail a {
    position: relative;
    display: grid;
    place-items: center;
    width: 14px;
    height: 14px;
    color: rgba(255, 255, 255, 0.72);
    font-family: var(--font-ui);
    font-size: var(--text-xs);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-radius: 999px;
    transition: color 200ms var(--ease);
}

.section-rail.on-light a { color: rgba(15, 20, 27, 0.55); }

.rail-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transition: background 220ms var(--ease), transform 220ms var(--ease),
                box-shadow 240ms var(--ease);
}

.section-rail.on-light .rail-dot { background: rgba(15, 20, 27, 0.35); }

.rail-label {
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translate(6px, -50%);
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(10, 14, 20, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}

.section-rail.on-light .rail-label {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 20, 27, 0.08);
    color: var(--text-dark);
    box-shadow: 0 8px 22px rgba(4, 8, 14, 0.10);
}

.section-rail a:hover .rail-label,
.section-rail a:focus-visible .rail-label {
    opacity: 1;
    transform: translate(0, -50%);
}

.section-rail a.is-active {
    color: #fff;
}

.section-rail.on-light a.is-active { color: var(--text-dark); }

.section-rail a.is-active .rail-dot {
    background: #fff;
    transform: scale(1.4);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}

.section-rail.on-light a.is-active .rail-dot {
    background: var(--text-dark);
    box-shadow: 0 0 0 4px rgba(15, 20, 27, 0.08);
}

/* =============================================================
   Eyebrow
   ============================================================= */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--space-md);
    color: var(--text-muted);
    font-family: var(--font-ui);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.32);
}

/* All sections are dark now — default eyebrow color is fine. */

/* =============================================================
   Buttons
   ============================================================= */
.button-primary,
.button-ghost,
.button-ghost-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    font-family: var(--font-ui);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 220ms var(--ease), background 220ms var(--ease),
                color 220ms var(--ease), border-color 220ms var(--ease),
                box-shadow 280ms var(--ease);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-width: 0;
}

.button-primary {
    background: #ffffff;
    color: #0d121a;
    border: 1px solid rgba(15, 20, 27, 0.06);
    box-shadow: 0 18px 38px rgba(4, 8, 14, 0.30),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 44px rgba(4, 8, 14, 0.40),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.button-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
}

.button-ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.42);
}

.button-ghost-light {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.button-ghost-light:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.42);
}

/* closing CTA uses default white .button-primary on dark glass for contrast */

.button-arrow::after {
    content: "→";
    font-family: var(--font-ui);
    transition: transform 220ms var(--ease);
}

.button-arrow:hover::after { transform: translateX(3px); }

/* =============================================================
   HERO — full bleed photo
   ============================================================= */
.hero {
    position: relative;
    min-height: 100vh;        /* fallback */
    min-height: 100dvh;       /* dynamic viewport for mobile chrome */
    display: grid;
    grid-template-rows: 1fr;
    align-items: stretch;
    overflow: hidden;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(1.05);
    transform: scale(1.04);
    will-change: transform;
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 32%, rgba(7, 11, 17, 0.0) 0%, rgba(7, 11, 17, 0.40) 62%, rgba(6, 8, 13, 0.78) 100%),
        /* softer top + smooth bottom that hands off to the page-bg dark */
        linear-gradient(180deg, rgba(6, 8, 13, 0.55) 0%, rgba(6, 8, 13, 0.0) 22%, rgba(6, 8, 13, 0.0) 55%, rgba(6, 8, 13, 0.95) 92%, #06080d 100%);
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 96px 96px;
    mask-image: radial-gradient(ellipse at center 70%, black 35%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center 70%, black 35%, transparent 80%);
    opacity: 0.65;
}

.hero-shell {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    /* top padding clears the fixed header (~78px) + breathing room */
    padding: clamp(120px, 15vh, 180px) 0 clamp(44px, 6vh, 80px);
    max-width: 1080px;
}

.hero h1 {
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6.4vw, 5.4rem);
    font-weight: 500;
    line-height: var(--leading-tight);
    letter-spacing: -0.005em;
    text-wrap: balance;
    text-shadow: 0 12px 36px rgba(5, 8, 14, 0.5);
}

.hero-lead {
    max-width: 720px;
    margin-top: var(--space-md);
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 1.25vw, 1.2rem);
    line-height: var(--leading-normal);
    text-wrap: pretty;
    text-shadow: 0 6px 24px rgba(5, 8, 14, 0.42);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: var(--space-lg);
}

/* Hero meta — compact data definition list, anchored to viewport bottom */
.hero-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-shell .hero-actions { margin-bottom: clamp(48px, 8vh, 96px); }

.hero-meta > div {
    min-width: 0;
    padding: 0 22px;
    border-right: 1px solid rgba(255, 255, 255, 0.10);
}

.hero-meta > div:first-child { padding-left: 0; }
.hero-meta > div:last-child { padding-right: 0; border-right: 0; }

.hero-meta dt {
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-ui);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-meta dd {
    margin-top: 8px;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 1.6vw, 1.4rem);
    font-weight: 500;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.hero-meta dd .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-pulse);
    box-shadow: 0 0 0 4px rgba(109, 208, 107, 0.18);
    flex: none;
}

.hero-scroll {
    position: absolute;
    right: 32px;
    bottom: 28px;
    z-index: 1;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-ui);
    font-size: var(--text-xs);
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.hero-scroll-line {
    width: 1px;
    height: 56px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.5));
    position: relative;
    overflow: hidden;
}

.hero-scroll-line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, #fff 50%, transparent 100%);
    transform: translateY(-100%);
    animation: scroll-cue 2.4s var(--ease) infinite;
}

@keyframes scroll-cue {
    0%   { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* =============================================================
   MANIFESTO — editorial quote
   ============================================================= */
.manifesto {
    position: relative;
    padding: var(--space-3xl) 0;
}

.manifesto-shell {
    max-width: 880px;
    margin: 0 auto;
    text-align: left;
}

.manifesto-quote p {
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    font-weight: 400;
    line-height: 1.18;
    letter-spacing: -0.005em;
    text-wrap: balance;
}

.manifesto-quote::before {
    content: "“";
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.22);
}

.manifesto-body {
    margin-top: var(--space-lg);
    display: grid;
    gap: var(--space-md);
    color: rgba(255, 255, 255, 0.72);
    font-size: var(--text-lg);
    line-height: var(--leading-normal);
    max-width: 720px;
    text-wrap: pretty;
}

.manifesto-cite {
    margin-top: var(--space-lg);
    color: rgba(255, 255, 255, 0.42);
    font-family: var(--font-ui);
    font-size: var(--text-xs);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* =============================================================
   BENTO — the system
   ============================================================= */
.bento {
    position: relative;
    padding: var(--space-2xl) 0 var(--space-3xl);
}

.bento-head,
.atlas-head,
.network-head,
.principles-head,
.audience-head {
    max-width: 760px;
    margin-bottom: var(--space-xl);
}

.bento-head h2,
.atlas-head h2,
.network-head h2,
.principles-head h2,
.audience-head h2 {
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.2vw, 2.7rem);
    font-weight: 600;
    line-height: var(--leading-tight);
    letter-spacing: -0.005em;
    text-wrap: balance;
}

.bento-head p,
.atlas-head p,
.network-head p,
.audience-head p {
    margin-top: var(--space-sm);
    color: var(--text-body);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    max-width: 620px;
    text-wrap: pretty;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 200px;
    gap: 16px;
}

.bento-cell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--surface);
    border: 1px solid var(--hairline-dark);
    box-shadow: var(--shadow-panel);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform 320ms var(--ease), border-color 320ms var(--ease),
                box-shadow 320ms var(--ease);
}

.bento-cell:hover { border-color: var(--hairline-dark-strong); }

.bento-cell:hover {
    transform: translateY(-2px);
}

/* Layout assignments */
.bento-network { grid-column: span 4; grid-row: span 2; }
.bento-text    { grid-column: span 2; grid-row: span 1; padding: 28px 30px; display: flex; flex-direction: column; justify-content: flex-end; }
.bento-stats   { grid-column: span 4; grid-row: span 1; padding: 26px 30px; }
.bento-accent  { grid-column: span 2; grid-row: span 1; }

/* Network big card */
.bento-network {
    background: #0a0e14;
    border-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.bento-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    filter: saturate(0.9) contrast(1.05);
    z-index: 0;
}

.bento-network::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(6, 9, 14, 0.0) 30%, rgba(6, 9, 14, 0.85) 100%),
        linear-gradient(90deg, rgba(6, 9, 14, 0.6) 0%, rgba(6, 9, 14, 0) 50%);
    z-index: 1;
}

.bento-network .bento-overlay {
    position: relative;
    z-index: 2;
    padding: 36px 38px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.bento-tag {
    display: inline-block;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.66);
    font-family: var(--font-ui);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.bento-text .bento-tag,
.bento-tag-light {
    color: rgba(255, 255, 255, 0.58);
}

.bento-network h3 {
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.6vw, 2.2rem);
    font-weight: 500;
    line-height: var(--leading-snug);
    letter-spacing: 0;
    max-width: 540px;
    text-wrap: balance;
}

.bento-network p {
    margin-top: 14px;
    max-width: 520px;
    color: rgba(255, 255, 255, 0.78);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    text-wrap: pretty;
}

.bento-points {
    display: grid;
    gap: 6px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.bento-points li {
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-ui);
    font-size: var(--text-xs);
    letter-spacing: 0.06em;
}

.bento-points li::before {
    content: "— ";
    color: rgba(255, 255, 255, 0.4);
}

.bento-text h3,
.bento-accent h3 {
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 1.7vw, 1.4rem);
    font-weight: 600;
    line-height: var(--leading-snug);
    letter-spacing: 0;
}

.bento-text p,
.bento-accent p {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
}

/* Stats wide */
.bento-stats {
    background: var(--surface-strong);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-color: var(--hairline-dark);
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.stat-row > div {
    display: flex;
    flex-direction: column-reverse;
    gap: 6px;
    min-width: 0;
    padding-right: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-row > div:last-child { border-right: 0; }

.stat-row dt {
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-ui);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.stat-row dd {
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.4vw, 2.8rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.stat-row .num-text {
    font-size: clamp(1.05rem, 1.6vw, 1.4rem);
    letter-spacing: 0;
    font-weight: 600;
}

/* Accent (upstream) — subtle dark inverted card */
.bento-accent {
    background: linear-gradient(180deg, #0d121a 0%, #131a26 100%);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.08);
    padding: 28px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bento-accent .bento-tag { color: rgba(255, 255, 255, 0.62); }
.bento-accent h3 { color: #fff; }
.bento-accent p { color: rgba(255, 255, 255, 0.74); }

/* =============================================================
   ATLAS — region cards with photos
   ============================================================= */
.atlas {
    padding: var(--space-2xl) 0;
}

.atlas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.atlas-card {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: #0a0e14;
    border: 1px solid var(--hairline-dark);
    box-shadow: var(--shadow-panel);
    isolation: isolate;
    transition: transform 380ms var(--ease), box-shadow 380ms var(--ease);
}

.atlas-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 38px 90px rgba(4, 8, 14, 0.32);
}

.atlas-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 800ms var(--ease);
    z-index: 0;
}

.atlas-card:hover .atlas-img { transform: scale(1.08); }

.atlas-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(6, 9, 14, 0.28) 0%, rgba(6, 9, 14, 0.0) 30%, rgba(6, 9, 14, 0.0) 50%, rgba(6, 9, 14, 0.92) 100%);
}

.atlas-overlay {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 26px;
    z-index: 2;
    color: #fff;
}

.atlas-region {
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-ui);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.atlas-overlay h3 {
    margin-top: 8px;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 1.8vw, 1.5rem);
    font-weight: 500;
    letter-spacing: 0;
    line-height: var(--leading-snug);
    text-wrap: balance;
}

.atlas-pops {
    display: grid;
    gap: 6px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.atlas-pops li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.86);
    font-family: var(--font-ui);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.04em;
}

.atlas-pops em {
    color: rgba(255, 255, 255, 0.56);
    font-family: var(--font-ui);
    font-size: var(--text-xs);
    font-style: normal;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* =============================================================
   Status dots (shared)
   ============================================================= */
.status {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #0d121a;
    flex: none;
}
.status.online   { background: var(--accent-online); }
.status.building { background: var(--accent-building); }
.status.planned  { background: var(--accent-planned); }

/* =============================================================
   NETWORK OPS — map + side panel
   ============================================================= */
.network-section {
    padding: var(--space-2xl) 0;
}

.netops-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
}

.map-shell {
    padding: 16px;
    border-radius: var(--radius-panel);
    background: var(--surface);
    border: 1px solid var(--hairline-dark);
    box-shadow: var(--shadow-panel);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.map-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px 14px;
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-ui);
    font-size: var(--text-xs);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.map-toolbar-legend {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 18px;
}

.map-toolbar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.leaflet-node-map {
    height: 540px;
    border-radius: 18px;
    overflow: hidden;
    background: #08090e;
}

.leaflet-node-map.leaflet-container {
    font-family: var(--font-body);
    background: #08090e;
}

.leaflet-node-map .leaflet-tile-pane {
    filter: saturate(0.5) brightness(0.92) contrast(1.05);
}

.leaflet-node-map .leaflet-control-zoom {
    border: 1px solid var(--hairline-dark-strong);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(10, 14, 20, 0.85);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-soft);
}

.leaflet-node-map .leaflet-control-zoom a {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    line-height: 32px;
}

.leaflet-node-map .leaflet-control-zoom a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.leaflet-node-map .leaflet-control-attribution {
    background: rgba(8, 9, 14, 0.78);
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-ui);
    font-size: 0.66rem;
}

.leaflet-node-map .leaflet-control-attribution a {
    color: rgba(255, 255, 255, 0.85);
}

.leaflet-node-pin {
    background: transparent !important;
    border: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.leaflet-node-pin .pin {
    position: relative;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--node-color, #fff);
    box-shadow: 0 0 0 3px rgba(8, 10, 16, 0.85),
                0 0 14px var(--node-color, rgba(255, 255, 255, 0.4));
    pointer-events: auto;
    cursor: pointer;
}

.leaflet-node-pin .pin::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid var(--node-color, #fff);
    animation: pulse 2.6s var(--ease) infinite;
    opacity: 0.7;
}

@keyframes pulse {
    0% { transform: scale(0.5); opacity: 0.85; }
    80%, 100% { transform: scale(2.4); opacity: 0; }
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    border: 1px solid var(--hairline-dark-strong);
    background: rgba(10, 14, 20, 0.96);
    color: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-panel);
    border-radius: 14px;
}

.leaflet-popup-content {
    display: grid;
    gap: 4px;
    min-width: 160px;
    margin: 12px 16px;
    font-family: var(--font-body);
}

.leaflet-popup-content strong {
    color: #fff;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
}

.leaflet-popup-content span {
    color: rgba(255, 255, 255, 0.55);
    font-size: var(--text-sm);
}

.leaflet-popup-content em {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-ui);
    font-style: normal;
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* NetOps side panel */
.netops-panel {
    display: flex;
    flex-direction: column;
    padding: 26px 22px;
    border-radius: var(--radius-panel);
    background: #0d121a;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-panel);
}

.netops-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.netops-title {
    color: rgba(255, 255, 255, 0.58);
    font-family: var(--font-ui);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.netops-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-family: var(--font-ui);
    font-size: var(--text-xs);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.netops-meta .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-pulse);
    box-shadow: 0 0 0 4px rgba(109, 208, 107, 0.16);
    flex: none;
}

.netops-list {
    display: grid;
    gap: 4px;
    flex: 1;
    min-height: 0;
}

.netops-list li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 12px;
    padding: 12px 4px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.netops-list li:last-child { border-bottom: 0; }

.netops-list .status {
    grid-row: 1 / 3;
    align-self: center;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
}

.netops-name {
    color: #fff;
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 500;
    letter-spacing: 0;
    min-width: 0;
}

.netops-region {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    color: rgba(255, 255, 255, 0.46);
    font-family: var(--font-ui);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.netops-list em {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
    align-self: center;
    color: rgba(255, 255, 255, 0.58);
    font-family: var(--font-ui);
    font-size: var(--text-xs);
    font-style: normal;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* =============================================================
   PRINCIPLES — numbered manifesto list
   ============================================================= */
.principles {
    padding: var(--space-3xl) 0 var(--space-2xl);
}

.principle-list {
    display: grid;
    gap: 8px;
    counter-reset: principle;
}

.principle-item {
    display: grid;
    grid-template-columns: minmax(140px, 240px) minmax(0, 1fr);
    gap: var(--space-xl);
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--hairline-dark);
    align-items: start;
}

.principle-item:last-child { border-bottom: 1px solid var(--hairline-dark); }

.principle-num {
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(3.4rem, 7vw, 6rem);
    font-weight: 300;
    line-height: 0.9;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    opacity: 0.74;
}

.principle-body h3 {
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 600;
    line-height: var(--leading-snug);
    letter-spacing: -0.005em;
    text-wrap: balance;
}

.principle-body p {
    margin-top: 14px;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    text-wrap: pretty;
}

/* =============================================================
   AUDIENCE
   ============================================================= */
.audience-section {
    padding: var(--space-2xl) 0;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.audience-card {
    padding: 36px 32px;
    min-height: 240px;
    border-radius: var(--radius-card);
    background: var(--surface);
    border: 1px solid var(--hairline-dark);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: border-color 240ms var(--ease), transform 240ms var(--ease);
}

.audience-card:hover {
    border-color: var(--hairline-dark-strong);
    transform: translateY(-2px);
}

.audience-tag {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-ui);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.audience-card h3 {
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
    font-weight: 600;
    line-height: var(--leading-snug);
}

.audience-card p {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
}

/* =============================================================
   CLOSING
   ============================================================= */
.closing {
    padding: var(--space-2xl) 0 var(--space-3xl);
}

.closing-shell {
    padding: var(--space-2xl) var(--space-lg);
    border-radius: var(--radius-panel);
    background:
        radial-gradient(900px 400px at 80% 0%, rgba(120, 150, 200, 0.10), transparent 60%),
        radial-gradient(700px 400px at 0% 100%, rgba(140, 110, 220, 0.08), transparent 60%),
        var(--surface);
    border: 1px solid var(--hairline-dark);
    box-shadow: var(--shadow-panel);
    text-align: center;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.closing-shell .eyebrow {
    justify-content: center;
}

.closing-shell h2 {
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 600;
    line-height: var(--leading-snug);
    letter-spacing: -0.005em;
    text-wrap: balance;
}

.closing-shell p {
    max-width: 600px;
    margin: var(--space-md) auto 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
}

.closing-actions {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: var(--space-lg);
}

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer {
    position: relative;
    padding: var(--space-lg) 0;
    background: transparent;
    border-top: 1px solid var(--hairline-dark);
    color: rgba(255, 255, 255, 0.66);
}

.footer-shell {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 36px;
    padding-top: 36px;
}

.footer-brand strong {
    display: block;
    margin-bottom: 12px;
    color: #fff;
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.footer-brand p {
    max-width: 360px;
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
}

.footer-shell h4 {
    margin-bottom: 14px;
    color: #fff;
    font-family: var(--font-ui);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.footer-shell ul {
    display: grid;
    gap: 10px;
    color: rgba(255, 255, 255, 0.66);
    font-size: var(--text-sm);
}

.footer-shell a:hover { color: #fff; }

.footer-bottom {
    margin-top: var(--space-lg);
    padding-top: 20px;
    border-top: 1px solid var(--hairline-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-ui);
    font-size: var(--text-xs);
    letter-spacing: 0.06em;
}

/* =============================================================
   Reveal animations
   ============================================================= */
.reveal {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition: opacity 600ms var(--ease) var(--reveal-delay, 0ms),
                transform 600ms var(--ease) var(--reveal-delay, 0ms);
    will-change: transform, opacity;
}

.reveal.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
    .hero-bg-img { transform: none; }
    .hero-scroll-line::after { animation: none; opacity: 0; }
}

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 1180px) {
    .section-rail { display: none; }
}

@media (max-width: 1080px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 200px;
    }
    .bento-network { grid-column: span 4; grid-row: span 2; }
    .bento-text    { grid-column: span 2; }
    .bento-stats   { grid-column: span 4; }
    .bento-accent  { grid-column: span 2; }

    .netops-shell { grid-template-columns: 1fr; }
    .netops-panel { order: 2; }
}

@media (max-width: 960px) {
    .atlas-grid,
    .audience-grid,
    .footer-shell {
        grid-template-columns: 1fr 1fr;
    }

    .stat-row {
        grid-template-columns: 1fr 1fr;
        row-gap: 18px;
    }
    .stat-row > div:nth-child(2n) { border-right: 0; }

    .principle-item {
        grid-template-columns: minmax(80px, 120px) minmax(0, 1fr);
        gap: var(--space-md);
        padding: var(--space-lg) 0;
    }

    .hero-meta {
        grid-template-columns: 1fr 1fr;
        row-gap: 22px;
    }
    .hero-meta > div:nth-child(2n-1) { padding-left: 0; }
    .hero-meta > div:nth-child(2n)   { border-right: 0; padding-right: 0; }
    .hero-meta > div:nth-child(-n+2) { padding-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, 0.10); }
}

@media (max-width: 768px) {
    .shell { width: min(1280px, calc(100vw - 32px)); }

    .desktop-nav,
    .header-link { display: none; }

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

    .hero { min-height: 92vh; }
    .hero-shell { padding: 14vh 0 7vh; }

    .hero-scroll { display: none; }

    .hero h1 { font-size: clamp(2.1rem, 9vw, 2.8rem); }

    .hero-actions { width: 100%; flex-direction: column; align-items: stretch; }
    .button-primary,
    .button-ghost,
    .button-ghost-light { width: 100%; height: 52px; }

    .manifesto { padding: var(--space-xl) 0; }
    .manifesto-quote::before { font-size: 3rem; }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .bento-network,
    .bento-text,
    .bento-stats,
    .bento-accent {
        grid-column: span 1;
        grid-row: auto;
        min-height: 220px;
    }
    .bento-network { min-height: 380px; }

    .atlas-grid,
    .audience-grid,
    .footer-shell {
        grid-template-columns: 1fr;
    }

    .stat-row { grid-template-columns: 1fr 1fr; }

    .leaflet-node-map { height: 420px; }

    .principle-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .principle-num { font-size: 3.4rem; }

    .closing-shell { padding: var(--space-xl) var(--space-md); }

    .footer-bottom { flex-direction: column; align-items: flex-start; }

    .bento,
    .atlas,
    .network-section,
    .principles,
    .audience-section,
    .closing {
        padding: var(--space-xl) 0;
    }
}

/* =============================================================
   ============================================================= 
   SUBPAGES (Transit / Network / Hosting / Contact)
   ============================================================= 
   ============================================================= */

/* ---- Subpage hero — shorter than home, no meta ---- */
.subhero {
    position: relative;
    min-height: clamp(560px, 78vh, 820px);
    display: grid;
    grid-template-rows: 1fr;
    align-items: stretch;
    overflow: hidden;
    isolation: isolate;
}

.subhero-shell {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(140px, 18vh, 220px) 0 clamp(48px, 7vh, 96px);
    max-width: 980px;
}

.subhero h1 {
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5.4vw, 4.4rem);
    font-weight: 500;
    line-height: var(--leading-tight);
    letter-spacing: -0.005em;
    text-wrap: balance;
    text-shadow: 0 12px 36px rgba(5, 8, 14, 0.5);
}

.subhero-lead {
    max-width: 720px;
    margin-top: var(--space-md);
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: var(--leading-normal);
    text-shadow: 0 6px 24px rgba(5, 8, 14, 0.42);
}

.subhero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: var(--space-lg);
}

/* Contact page — typographic hero (no photo) */
.subhero--type {
    min-height: clamp(420px, 60vh, 620px);
    background: transparent;
}

/* ---- Section helpers ---- */
.section-pad { padding: var(--space-2xl) 0; }
.section-pad-lg { padding: var(--space-3xl) 0; }

.section-head {
    max-width: 760px;
    margin-bottom: var(--space-xl);
}

.section-head h2 {
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.2vw, 2.7rem);
    font-weight: 600;
    line-height: var(--leading-tight);
    letter-spacing: -0.005em;
    text-wrap: balance;
}

.section-head p {
    margin-top: var(--space-sm);
    color: rgba(255, 255, 255, 0.74);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    max-width: 640px;
    text-wrap: pretty;
}

/* ---- Feature grid (3-up cards) ---- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.feature-card {
    padding: 32px 28px;
    border-radius: var(--radius-card);
    background: var(--surface);
    border: 1px solid var(--hairline-dark);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: border-color 240ms var(--ease), transform 240ms var(--ease);
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    border-color: var(--hairline-dark-strong);
    transform: translateY(-2px);
}

.feature-card .feat-num {
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-ui);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.feature-card h3 {
    margin-top: 36px;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    font-weight: 600;
    line-height: var(--leading-snug);
    letter-spacing: 0;
    text-wrap: balance;
}

.feature-card p {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
    text-wrap: pretty;
}

/* ---- Split pair (2-up cards: pricing / products / peering) ---- */
.split-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.split-card {
    padding: 36px 32px;
    border-radius: var(--radius-card);
    background: var(--surface);
    border: 1px solid var(--hairline-dark);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
}

.split-card .split-tag {
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-ui);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.split-card h3 {
    margin-top: 14px;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    font-weight: 600;
    line-height: var(--leading-snug);
    letter-spacing: 0;
    text-wrap: balance;
}

.split-card .split-body {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.74);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    text-wrap: pretty;
}

.split-card .split-lines {
    display: grid;
    gap: 10px;
    margin-top: var(--space-md);
    padding-top: 18px;
    border-top: 1px solid var(--hairline-dark);
}

.split-card .split-lines li {
    color: rgba(255, 255, 255, 0.62);
    font-family: var(--font-ui);
    font-size: var(--text-sm);
    letter-spacing: 0.02em;
}

.split-card .split-lines li::before {
    content: "— ";
    color: rgba(255, 255, 255, 0.32);
}

/* ---- Roster table (network PoP detail) ---- */
.roster {
    display: grid;
    grid-template-columns: 1fr;
}

.roster-head,
.roster-row {
    display: grid;
    grid-template-columns: minmax(180px, 1.4fr) minmax(0, 2fr) minmax(0, 1.6fr) minmax(80px, auto);
    gap: 24px;
    align-items: start;
}

.roster-head {
    padding: 14px 4px;
    border-top: 1px solid var(--hairline-dark);
    border-bottom: 1px solid var(--hairline-dark);
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-ui);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.roster-row {
    padding: 24px 4px;
    border-bottom: 1px solid var(--hairline-dark);
    transition: background 220ms var(--ease);
}

.roster-row:hover { background: rgba(255, 255, 255, 0.02); }

.roster-cell {
    color: rgba(255, 255, 255, 0.74);
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
    min-width: 0;
}

.roster-cell strong {
    display: block;
    color: #fff;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 500;
    margin-bottom: 6px;
    letter-spacing: 0;
}

.roster-cell em {
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-style: normal;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    display: block;
    margin-top: 4px;
}

.roster-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-family: var(--font-ui);
    font-size: var(--text-xs);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* ---- Coverage grid (transit page — 2-col list) ---- */
.coverage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
    border-top: 1px solid var(--hairline-dark);
}

.coverage-row {
    display: grid;
    grid-template-columns: minmax(120px, 180px) minmax(0, 1fr) auto;
    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid var(--hairline-dark);
    align-items: center;
}

.coverage-row strong {
    color: #fff;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 500;
    min-width: 0;
}

.coverage-row .fac {
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-ui);
    font-size: var(--text-sm);
    min-width: 0;
}

.coverage-row .stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-ui);
    font-size: var(--text-xs);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    flex: none;
}

/* ---- Ops stat row (hosting page) ---- */
.ops-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--hairline-dark);
}

.ops-cell {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px 24px 28px 0;
    border-right: 1px solid var(--hairline-dark);
    border-bottom: 1px solid var(--hairline-dark);
    min-width: 0;
}

.ops-cell:last-child { border-right: 0; }

.ops-cell .ops-val {
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.ops-cell .ops-label {
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-ui);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* ---- Contact channel cards ---- */
.channels-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.channel-card {
    padding: 28px;
    min-height: 200px;
    border-radius: var(--radius-card);
    background: var(--surface);
    border: 1px solid var(--hairline-dark);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 240ms var(--ease), transform 240ms var(--ease);
}

.channel-card:hover {
    border-color: var(--hairline-dark-strong);
    transform: translateY(-2px);
}

.channel-card .channel-tag {
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-ui);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.channel-card h3 {
    margin-top: 8px;
    color: #fff;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    line-height: var(--leading-snug);
    letter-spacing: 0;
}

.channel-card a {
    margin-top: 18px;
    color: #fff;
    font-family: var(--font-ui);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.04em;
    word-break: break-all;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
    transition: text-decoration-color 200ms var(--ease);
}

.channel-card a:hover { text-decoration-color: rgba(255, 255, 255, 0.78); }

/* ---- Entity list (contact page) ---- */
.entity-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
    border-top: 1px solid var(--hairline-dark);
}

.entity-row {
    padding: 24px 0;
    border-bottom: 1px solid var(--hairline-dark);
    min-width: 0;
}

.entity-row dt {
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-ui);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.entity-row dd {
    margin-top: 6px;
    color: #fff;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 500;
    letter-spacing: 0;
}

/* ---- AS table (contact page) ---- */
.as-table {
    width: 100%;
    border-collapse: collapse;
    color: rgba(255, 255, 255, 0.74);
    font-size: var(--text-sm);
    border-top: 1px solid var(--hairline-dark);
}

.as-table thead th {
    padding: 16px 12px;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-ui);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-align: left;
    border-bottom: 1px solid var(--hairline-dark);
}

.as-table thead th:first-child { padding-left: 0; }
.as-table thead th:last-child { padding-right: 0; }

.as-table tbody td {
    padding: 22px 12px;
    border-bottom: 1px solid var(--hairline-dark);
    vertical-align: top;
    line-height: var(--leading-snug);
}

.as-table tbody td:first-child {
    padding-left: 0;
    color: #fff;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 500;
    letter-spacing: 0;
}

.as-table tbody td:last-child {
    padding-right: 0;
}

.as-table tbody td:last-child a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.22);
    text-underline-offset: 4px;
}

.as-table tbody td:last-child a:hover {
    color: #fff;
    text-decoration-color: rgba(255, 255, 255, 0.7);
}

/* ---- Active nav indicator (subpages) ---- */
.desktop-nav a.is-active,
.mobile-nav a.is-active {
    color: #fff;
}

.desktop-nav a.is-active {
    position: relative;
}

.desktop-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 4px;
    height: 4px;
    margin-left: -2px;
    border-radius: 50%;
    background: #fff;
}

/* ---- Subpage responsive ---- */
@media (max-width: 1080px) {
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split-pair { grid-template-columns: 1fr; }
    .channels-grid { grid-template-columns: 1fr 1fr; }
    .ops-grid { grid-template-columns: 1fr 1fr; }
    .ops-cell:nth-child(2) { border-right: 0; }
}

@media (max-width: 960px) {
    .roster-head { display: none; }
    .roster-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 20px 4px;
    }
    .roster-cell em { display: inline-block; margin-left: 8px; }

    .coverage-grid { grid-template-columns: 1fr; gap: 0; }
    .coverage-row {
        grid-template-columns: minmax(120px, 180px) 1fr auto;
    }

    .entity-list { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 768px) {
    .feature-grid { grid-template-columns: 1fr; }
    .channels-grid { grid-template-columns: 1fr; }
    .ops-grid { grid-template-columns: 1fr; }
    .ops-cell {
        border-right: 0;
        padding-right: 0;
    }

    .subhero { min-height: clamp(480px, 76vh, 720px); }
    .subhero h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
    .subhero-shell { padding: clamp(120px, 16vh, 180px) 0 clamp(36px, 5vh, 56px); }
    .subhero-actions { width: 100%; flex-direction: column; align-items: stretch; }
    .subhero-actions .button-primary,
    .subhero-actions .button-ghost { width: 100%; }

    .coverage-row {
        grid-template-columns: 1fr auto;
        row-gap: 4px;
    }
    .coverage-row .fac { grid-column: 1 / -1; }

    .as-table thead { display: none; }
    .as-table,
    .as-table tbody,
    .as-table tr,
    .as-table td { display: block; width: 100%; }
    .as-table tbody td {
        padding: 8px 0;
        border-bottom: 0;
    }
    .as-table tbody tr {
        padding: 18px 0;
        border-bottom: 1px solid var(--hairline-dark);
    }
    .as-table tbody td:first-child { padding-top: 0; }
    .as-table tbody td:last-child { padding-bottom: 0; }
}
