/* SPECTRE Website - Minimal Premium Design */

/* ── Shared page layout ── */
.page-eyebrow {
    font-size: 10px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.7;
    margin: 0 0 16px;
}
@font-face {
    font-family: 'Meloso';
    src: url('../fonts/Meloso-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --accent: #22d3ee;
    --black: #121212;
    --text: #ffffff;
    --text-muted: #999999;
}

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

html {
    overflow-x: hidden;
}

html, body {
    font-family: 'Meloso', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #121212;
    color: var(--text);
    line-height: 1.6;
    cursor: auto;
}

/* Hide system cursor only when JS enables the ring (see main.js + .has-custom-cursor) */
html.has-custom-cursor,
html.has-custom-cursor body {
    cursor: none;
}

html.has-custom-cursor *,
html.has-custom-cursor *::before,
html.has-custom-cursor *::after {
    cursor: none !important;
}

/* Touch or no-hover primary UI: never use the fake cursor */
@media (pointer: coarse), (hover: none) {
    html.has-custom-cursor,
    html.has-custom-cursor body {
        cursor: auto !important;
    }

    html.has-custom-cursor *,
    html.has-custom-cursor *::before,
    html.has-custom-cursor *::after {
        cursor: auto !important;
    }

    .custom-cursor {
        display: none !important;
    }

    .legal-tab,
    .discipline-tab,
    .accordion-trigger {
        cursor: pointer;
    }
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transition: border-color 0.2s, background 0.2s, opacity 0.15s;
    will-change: transform;
}

.custom-cursor.cursor-hover {
    border-color: rgba(255, 255, 255, 1);
    background: rgba(255, 255, 255, 0.3);
}

.custom-cursor.cursor-click {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(255, 255, 255, 1);
}

/* Navigation - Ultra Minimal with Grey Border */
.nav-island {
    position: fixed;
    top: max(16px, env(safe-area-inset-top, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: min(560px, calc(100vw - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
    max-width: calc(100vw - 24px);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.3px;
    border: 0.5px solid #333333;
    border-radius: 50px;
    padding: 6px 8px 6px 16px;
    background: rgba(18, 18, 18, 0.45);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    overflow: visible;
}

.nav-island-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.nav-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.nav-menu-toggle-bars {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 18px;
}

.nav-menu-bar {
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.82);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
    transform-origin: center;
}

body.nav-drawer-open .nav-menu-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.nav-drawer-open .nav-menu-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

body.nav-drawer-open .nav-menu-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu — same glass + border language as .nav-island */
.nav-mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    pointer-events: none;
}

body.nav-drawer-open .nav-mobile-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-mobile-sheet {
    position: fixed;
    z-index: 910;
    left: 50%;
    top: calc(52px + max(16px, env(safe-area-inset-top, 0px)) + 6px);
    /* Wider than labels alone, still narrower than the nav island (~560px) */
    width: min(272px, calc(100vw - 40px));
    overflow: visible;
    opacity: 0;
    transform: translateX(-50%) translateY(-8px) scale(0.98);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

body.nav-drawer-open .nav-mobile-sheet {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
}

.nav-mobile-sheet[hidden] {
    display: none !important;
}

.nav-mobile-backdrop[hidden] {
    display: none !important;
}

/* One pill radius for shell + rows so corners stay concentric / aligned */
.nav-mobile-sheet-inner {
    --nav-mobile-pill-r: 9999px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    padding: 6px 8px;
    border: 0.5px solid #333333;
    border-radius: var(--nav-mobile-pill-r);
    background: rgba(18, 18, 18, 0.45);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    overflow: hidden;
}

.nav-mobile-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 11px 16px;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.35px;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    border-radius: var(--nav-mobile-pill-r, 9999px);
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-mobile-link:hover {
    color: rgba(255, 255, 255, 0.95);
}

.nav-mobile-link:active {
    background: rgba(255, 255, 255, 0.05);
}

.nav-mobile-link.active {
    color: rgba(255, 255, 255, 0.95);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    justify-content: center;
    overflow: visible;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    width: 28px;
    height: 28px;
}

.logo a svg {
    width: 100%;
    height: 100%;
}


.nav-link {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    padding: 8px 0;
    min-height: 28px;
}

.nav-link:hover,
.nav-link.active {
    color: rgba(255, 255, 255, 0.95);
}

/* ── Company dropdown ── */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.3px;
    white-space: nowrap;
    background: none;
    border: none;
    padding: 8px 0;
    min-height: 28px;
    cursor: pointer;
    transition: color 0.2s ease;
    font-family: inherit;
}

.nav-dropdown-trigger:hover,
.nav-dropdown-trigger.active {
    color: rgba(255, 255, 255, 0.95);
}

.nav-dropdown-chevron {
    width: 8px;
    height: 8px;
    opacity: 0.5;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s;
    flex-shrink: 0;
}

.nav-dropdown.open .nav-dropdown-chevron {
    transform: rotate(180deg);
    opacity: 0.9;
}

/* Dropdown — identical glass + blur + transparency as .nav-island */
.nav-dropdown-menu {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 196px;
    padding: 6px 7px;
    border: 0.5px solid #333333;
    border-radius: 24px;
    background: rgba(18, 18, 18, 0.45);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    display: flex;
    flex-direction: column;
    gap: 3px;
    opacity: 0;
    pointer-events: none;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 0.5px 0.5px rgba(255, 255, 255, 0.12),
        inset 0 -0.5px 0.5px rgba(0, 0, 0, 0.3);
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1100;
    transform: scale(0.97) translateY(-8px);
}

.nav-dropdown-menu[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    border-radius: 9999px;
    white-space: nowrap;
    transition: color 0.18s ease, background 0.18s ease;
}

.nav-dropdown-item:hover,
.nav-dropdown-item.active {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.05);
}

/* Mobile dropdown items in the sheet */
.nav-mobile-link.nav-mobile-sub {
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.45);
    padding: 8px 16px;
}

/* ── Company page ── */
.company-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 140px 40px 48px;
}

.company-header {
    margin-bottom: 80px;
}

.company-title {
    font-size: 44px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: var(--text);
    margin: 0 0 12px;
}

.company-lead {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 560px;
    margin: 0;
    font-weight: 300;
    letter-spacing: 0.1px;
}

.company-sections {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.company-section {
    border-top: 0.5px solid rgba(255,255,255,0.08);
    padding: 48px 0;
}

.company-section:last-child {
    border-bottom: none;
}

.company-section-inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 56px;
    align-items: start;
}

.company-section-inner--full {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.company-section-unified {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 560px;
    gap: 0;
}

.company-section-unified .company-section-title {
    margin-bottom: 12px;
}

.company-section-unified-body .company-section-body {
    margin-bottom: 8px;
}

.company-section-unified-body .company-section-body:last-child {
    margin-bottom: 0;
}

.company-form-fullwidth {
    margin-top: 40px;
    width: 100%;
}

.company-inquiry-row {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 56px;
    margin-top: 40px;
    align-items: start;
}

.company-inquiry-info {
    padding-left: 0;
}

.company-section-label {
    font-size: 10px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.7;
    margin: 0 0 12px;
}

.company-section-title {
    font-size: 22px;
    font-weight: 300;
    color: var(--text);
    margin: 0;
    line-height: 1.25;
}

.company-section-body {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0 0 28px;
    font-weight: 300;
}

.company-form-placeholder {
    border: 0.5px solid #333333;
    border-radius: 16px;
    padding: 24px;
    background: rgba(18, 18, 18, 0.45);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    max-width: 450px;
    align-self: flex-start;
}

.company-form-placeholder-label {
    font-size: 10px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.7;
    margin: 0 0 20px;
}

.company-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    width: 100%;
}

.company-form-field:last-of-type {
    margin-bottom: 24px;
}

.company-form-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
}

.company-form-input,
.company-form-textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255,255,255,0.05);
    border: 0.5px solid rgba(255,255,255,0.15);
    border-radius: 24px;
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s;
    outline: none;
    resize: none;
    height: 40px;
    line-height: 1;
}

.company-form-textarea {
    height: 40px;
    vertical-align: top;
}

.company-form-input:focus,
.company-form-textarea:focus {
    border-color: rgba(34, 211, 238, 0.5);
    background: rgba(255,255,255,0.08);
}

.company-form-input::placeholder,
.company-form-textarea::placeholder {
    color: rgba(255,255,255,0.2);
}

.company-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 22px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: rgba(255,255,255,0.75);
    background: transparent;
    border: 0.5px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s, border-color 0.2s;
}

.company-form-submit:hover {
    color: rgba(255,255,255,0.95);
    border-color: rgba(34, 211, 238, 0.5);
}

.company-form-note {
    font-size: 11px;
    color: rgba(255,255,255,0.2);
    margin-top: 14px;
    line-height: 1.5;
}

.company-form-note a {
    color: var(--accent);
    opacity: 0.7;
    text-decoration: none;
    transition: opacity 0.2s;
}

.company-form-note a:hover {
    opacity: 1;
}

.company-form-success {
    display: none;
    padding: 16px;
    border: 0.5px solid rgba(34, 211, 238, 0.3);
    border-radius: 8px;
    font-size: 12px;
    color: rgba(34, 211, 238, 0.8);
    margin-top: 12px;
}

@media (max-width: 768px) {
    .company-page {
        padding: 120px 20px 48px;
    }

    .company-section-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .company-inquiry-row {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .company-title {
        font-size: clamp(32px, 7vw, 44px);
    }
}


/* ── Launch button snake animation (ported from SPECTRE platform) ── */
@property --snake-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes snakeSpin {
    from { --snake-angle: 0deg; }
    to   { --snake-angle: 360deg; }
}

.nav-cta {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2px;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* vertical padding matches island's 6px inset; horizontal gives the pill shape */
    padding: 7px 20px;
    background: transparent;
    border: 0.5px solid #444444;
    border-radius: 50px;
    overflow: visible;
    transition: border-color 0.3s;
    z-index: 0;
    flex-shrink: 0;
}

/* Snake glow layer — always spinning, opacity controls visibility */
.nav-cta::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50px;
    padding: 2px;
    background: conic-gradient(
        from var(--snake-angle),
        transparent 0%,
        transparent 45%,
        var(--accent) 60%,
        #4a9eff 72%,
        #ffffff 80%,
        #ffffff 82%,
        transparent 83%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    animation: snakeSpin 1.2s linear infinite;
    transition: opacity 0.5s ease;
}

/* Outer blur glow — always spinning, opacity controls visibility */
.nav-cta::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50px;
    background: conic-gradient(
        from var(--snake-angle),
        transparent 0%,
        transparent 45%,
        rgba(34, 211, 238, 0.2) 60%,
        rgba(74, 158, 255, 0.3) 72%,
        rgba(255, 255, 255, 0.5) 80%,
        rgba(255, 255, 255, 0.6) 82%,
        transparent 83%
    );
    filter: blur(6px);
    pointer-events: none;
    z-index: -2;
    opacity: 0;
    animation: snakeSpin 1.2s linear infinite;
    transition: opacity 0.5s ease;
}

.nav-cta:hover {
    border-color: transparent;
    color: rgba(255, 255, 255, 0.95);
}

.nav-cta:hover::before {
    opacity: 1;
}

.nav-cta:hover::after {
    opacity: 1;
}

/* ── SPECTRE page ── */
.spectre-page {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.spectre-wordmark-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40vh 0 60px;
    overflow: hidden;
}

.spectre-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: saturate(0.3) sepia(0.6) hue-rotate(var(--video-hue, 180deg)) brightness(0.75);
}

.spectre-bg-tint {
    position: absolute;
    inset: 0;
    background: hsla(var(--tint-hue, 220), 100%, 51%, 0.35);
    z-index: 1;
    pointer-events: none;
}

.spectre-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(18,18,18,0.65) 100%);
    z-index: 2;
}


.spectre-wordmark-wrap .hero-logo-wordmark {
    position: relative;
    z-index: 3;
}

@keyframes dividerExpand {
    from { width: 0; opacity: 0; }
    to   { width: 100%; opacity: 1; }
}

.spectre-divider {
    height: 0.5px;
    background: #333;
    width: 0;
    opacity: 0;
    animation: dividerExpand 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
}

.spectre-content {
    opacity: 0;
    animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1.5s forwards;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* ── Homepage content sections ── */
.home-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 40px;
}

.home-section-eyebrow {
    font-size: 10px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.7;
    margin: 0 0 20px;
}

.home-section-title {
    font-size: 44px;
    font-weight: 400;
    color: var(--text);
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin: 0 0 32px;
}

/* Platform block: SPECTRE wordmark + tagline stack */
.home-section-title.home-platform-section-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.home-platform-wordmark {
    width: clamp(200px, 52vw, 360px);
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: left center;
}

.home-platform-title-sub {
    display: block;
    margin: 0;
}

.home-section-body {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 640px;
    margin: 0;
}

.home-divider-subtle {
    width: 100%;
    height: 0.5px;
    background: #1e1e1e;
}

/* ── Shift video wrap ── */
.home-shift-wrap {
    position: relative;
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    overflow: hidden;
}

.home-shift-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: saturate(0.5) hue-rotate(var(--video-hue, 0deg)) brightness(0.35);
}

.home-shift-tint {
    position: absolute;
    inset: 0;
    background: hsla(var(--tint-hue, 220), 100%, 12%, 0.08);
    z-index: 1;
    pointer-events: none;
}

.home-shift-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(18,18,18,0.55) 0%, rgba(18,18,18,0.3) 50%, rgba(18,18,18,0.55) 100%);
    z-index: 2;
    pointer-events: none;
}

.home-shift-wrap .home-shift {
    position: relative;
    z-index: 3;
}

/* ── Butterfly video (Vision) ── */
.home-butterfly-wrap {
    position: relative;
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    overflow: hidden;
}

.home-butterfly-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: saturate(0.6) hue-rotate(var(--video-hue, 0deg)) brightness(0.5);
}

.home-butterfly-tint {
    position: absolute;
    inset: 0;
    background: hsla(var(--tint-hue, 220), 100%, 12%, 0.1);
    z-index: 1;
    pointer-events: none;
}

.home-butterfly-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(18,18,18,0.6) 0%, rgba(18,18,18,0.2) 50%, rgba(18,18,18,0.6) 100%);
    z-index: 2;
    pointer-events: none;
}

.home-butterfly-wrap .home-vision {
    position: relative;
    z-index: 3;
}

/* ── Story section ── */
.home-story-lead {
    font-size: 22px;
    font-weight: 400;
    color: var(--accent);
    letter-spacing: -0.3px;
    margin: 0 0 32px;
    opacity: 0.85;
}

.home-story-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 600px;
}

.home-story-body p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.85;
    margin: 0;
}

.home-story-body p:last-child {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
    letter-spacing: -0.2px;
}

.home-story-callout-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.home-story-callout {
    font-size: clamp(28px, 4.2vw, 58px);
    font-weight: 400;
    color: var(--text);
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin: 0;
    text-align: center;
}

/* ── Shift stats ── */
.home-shift-stats {
    display: flex;
    align-items: stretch;
    margin: 56px 0 48px;
}

.home-shift-stat {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 48px 0 0;
    flex: 1;
    border-right: 1px solid #222;
    margin-right: 48px;
}

.home-shift-stat:last-child {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
}

.home-shift-num {
    font-size: 48px;
    font-weight: 300;
    color: var(--text);
    letter-spacing: -2px;
    line-height: 1;
}

.home-shift-unit {
    font-size: 18px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: -0.5px;
}

.home-shift-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.65;
    margin: 0;
    max-width: 220px;
}

.home-shift-close {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

.home-shift-statement {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: -0.2px;
    margin: 0;
}

.home-shift-turn {
    font-size: 18px;
    font-weight: 400;
    color: var(--accent);
    letter-spacing: -0.2px;
    margin: 0;
    opacity: 0.85;
}

/* ── Platform steps ── */
.home-platform-steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 0;
    align-items: start;
    margin: 56px 0 48px;
}

.home-platform-step {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-step-num {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--accent);
    opacity: 0.6;
}

.home-step-title {
    font-size: 17px;
    font-weight: 400;
    color: var(--text);
    letter-spacing: -0.2px;
    margin: 0;
}

.home-step-body {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

.home-platform-arrow {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.12);
    padding: 28px 24px 0;
    align-self: start;
}

.home-platform-cta {
    margin-top: 48px;
}

/* ── Platform Disciplines Flow ── */
.home-platform-disciplines {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 56px 0 0;
}

.platform-discipline {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 28px;
}

.platform-discipline-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    opacity: 0.9;
}

.platform-discipline-name {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    white-space: nowrap;
}

.platform-discipline--building {
    opacity: 0.3;
}

.platform-connector {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

/* ── Platform detail (under discipline flow) ── */
.home-platform-detail {
    margin-top: 48px;
}

.home-platform-detail-lead {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-muted);
    margin: 0 0 28px;
    max-width: 640px;
}

/* ── Backed by ── */
.home-investors {
    display: flex;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.home-investor-name {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.2px;
    transition: color 0.2s;
}

.home-investor-name:hover {
    color: rgba(255, 255, 255, 0.65);
}

.home-investor-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.home-investor-logo {
    height: 30px;
    width: auto;
    filter: saturate(0) brightness(10) opacity(0.25);
    transition: filter 0.2s;
}

.home-investor-card a:first-child:hover .home-investor-logo {
    filter: saturate(0) brightness(10) opacity(0.55);
}

.home-investor-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.home-investor-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.home-investor-person {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.2px;
    text-decoration: none;
    transition: color 0.2s;
}

.home-investor-person:hover {
    color: rgba(255, 255, 255, 0.9);
}

.home-investor-role {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.3px;
}

/* Explore button */
.hero-explore-btn {
    display: inline-block;
    margin-top: 40px;
    padding: 10px 28px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 100px;
    font-size: 12px;
    letter-spacing: 0.8px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: border-color 0.25s, color 0.25s;
    position: relative;
    z-index: 3;
}

.hero-explore-btn:hover {
    border-color: rgba(255,255,255,0.6);
    color: rgba(255,255,255,0.95);
}

/* One-box journey */
.onebox-journey {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 0;
    align-items: start;
    margin: 56px 0 48px;
}

.journey-step {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.journey-num {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--accent);
    opacity: 0.6;
}

.journey-step h4 {
    font-size: 17px;
    font-weight: 400;
    color: var(--text);
    letter-spacing: -0.2px;
    margin: 0;
}

.journey-step p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

.journey-arrow {
    font-size: 18px;
    color: rgba(255,255,255,0.15);
    padding: 28px 24px 0;
    align-self: start;
}

.onebox-close {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
    margin: 0 0 32px;
    letter-spacing: -0.2px;
}

.btn-outline-cyan {
    display: inline-block;
    padding: 10px 28px;
    border: 1px solid var(--accent);
    border-radius: 100px;
    font-size: 12px;
    letter-spacing: 0.8px;
    color: var(--accent);
    text-decoration: none;
    transition: background 0.25s, color 0.25s;
}

.btn-outline-cyan:hover {
    background: var(--accent);
    color: #000;
}

/* ── Homepage hero wrap ── */
.home-hero-wrap {
    position: relative;
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.home-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: hue-rotate(var(--video-hue, 0deg));
}

.home-bg-tint {
    position: absolute;
    inset: 0;
    background: hsla(var(--tint-hue, 220), 100%, 31%, 0.15);
    z-index: 1;
    pointer-events: none;
}

.home-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(18,18,18,0.78) 100%);
    z-index: 2;
    pointer-events: none;
}

.home-divider {
    width: 100%;
    height: 0.5px;
    background: #333;
    position: relative;
    z-index: 3;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 140px 0 100px;
    text-align: center;
}

.hero-content {
    width: 100%;
    max-width: min(100vw, 100%);
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
}

.hero-logo {
    height: 16px;
    width: auto;
    opacity: 0.55;
    margin-bottom: 48px;
    display: block;
}

.hero-eyebrow {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    margin-bottom: 48px;
    padding: 0 40px;
}

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

@keyframes letterFlicker {
    0%   { opacity: 0; }
    10%  { opacity: 0.8; }
    15%  { opacity: 0.1; }
    20%  { opacity: 0.9; }
    25%  { opacity: 0.2; }
    30%  { opacity: 1; }
    35%  { opacity: 0.4; }
    40%  { opacity: 1; }
    100% { opacity: 1; }
}

.hero-logo-wordmark {
    width: calc(100vw - 20px);
    margin: 0 10px;
    padding: 0;
}

.spectre-wordmark {
    display: block;
    width: 100%;
    height: auto;
}

.spectre-wordmark .letter {
    opacity: 0;
    animation: letterFlicker 0.6s ease forwards;
}

.spectre-wordmark .letter-1 { animation-delay: 0.05s; }
.spectre-wordmark .letter-2 { animation-delay: 0.15s; }
.spectre-wordmark .letter-3 { animation-delay: 0.25s; }
.spectre-wordmark .letter-4 { animation-delay: 0.35s; }
.spectre-wordmark .letter-5 { animation-delay: 0.45s; }
.spectre-wordmark .letter-6 { animation-delay: 0.55s; }
.spectre-wordmark .letter-7 { animation-delay: 0.65s; }

.hero-headline {
    font-size: 56px;
    font-weight: 400;
    line-height: 1.15;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.8;
    font-weight: 300;
    margin-top: 48px;
    letter-spacing: 0.01em;
    padding: 0 40px;
}

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

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn {
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    display: inline-block;
    letter-spacing: 0.2px;
}

.btn-primary {
    background: var(--text);
    color: black;
    padding: 10px 24px;
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    opacity: 0.9;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4), inset 0 0 15px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--text-muted);
    padding: 9px 23px;
    border-radius: 20px;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Sections */
section {
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-size: 40px;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
    background: linear-gradient(90deg, #ffffff, var(--accent), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 48px;
    font-weight: 300;
    letter-spacing: 0.2px;
}

/* ── SPECTRE page content ── */
.spectre-intro {
    padding: 72px 40px 48px;
    max-width: 1400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.spectre-intro .page-eyebrow {
    margin-top: 20px;
    margin-bottom: 0;
}

.spectre-tagline {
    font-size: 36px;
    font-weight: 400;
    color: var(--text);
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin: 0 0 12px;
}

.spectre-sub {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 0.1px;
    margin: 0;
}

.spectre-discovery-intro {
    padding: 8px 40px 28px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.spectre-discovery-intro .spectre-discovery-lead {
    margin: 0;
}

.spectre-disciplines {
    padding: 0 40px 100px;
    max-width: 1400px;
    width: 100%;
    box-sizing: border-box;
}

/* ── Tab strip ── */
.discipline-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid #1e1e1e;
    margin-bottom: 0;
}

.discipline-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    border-bottom: 1px solid transparent;
    padding: 14px 24px;
    font-family: inherit;
    font-size: 12px;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.35);
    position: relative;
    bottom: -1px;
    transition: color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.discipline-tab:hover:not(:disabled) {
    color: rgba(255, 255, 255, 0.7);
}

.discipline-tab.active {
    color: rgba(255, 255, 255, 0.9);
    border-bottom-color: var(--accent);
}

.discipline-tab-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.discipline-tab.active .discipline-tab-icon,
.discipline-tab:hover:not(:disabled) .discipline-tab-icon {
    opacity: 1;
}

/* In-progress tabs */
.discipline-tab--building {
    opacity: 0.3;
    cursor: default;
    gap: 7px;
}

/* ── Gear spin ── */
@keyframes gear-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.building-gear {
    width: 12px;
    height: 12px;
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
    object-fit: contain;
    display: block;
    animation: gear-spin 5s linear infinite;
    transform-origin: center;
}

.discipline-tab .building-gear {
    width: 14px;
    height: 14px;
}

/* ── Tab panels ── */
.discipline-panels {
    position: relative;
}

.discipline-panel {
    display: none;
    padding: 40px 0 0;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.discipline-panel.active {
    display: flex;
    flex-direction: row;
    gap: 64px;
    align-items: flex-start;
    opacity: 1;
    transform: translateY(0);
}

.discipline-panel-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 0 0 260px;
}

.discipline-panel-title {
    font-size: 28px;
    font-weight: 400;
    color: var(--text);
    letter-spacing: -0.4px;
    line-height: 1.2;
    margin: 0;
}

.discipline-panel-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

.spectre-platform-stats {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 40px 48px;
    max-width: 1400px;
    width: 100%;
    box-sizing: border-box;
}

.platform-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 40px 0 0;
}

.platform-stat:last-child {
    padding-right: 0;
}

.platform-stat-num {
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: -0.2px;
    line-height: 1;
}

.platform-stat-label {
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.2px;
}

.platform-stat-sources {
    font-size: 9.5px;
    color: rgba(255, 255, 255, 0.13);
    letter-spacing: 0.1px;
    line-height: 1.6;
    max-width: 320px;
    margin-top: 4px;
}

.platform-stat-divider {
    width: 1px;
    height: 28px;
    background: #222;
    margin: 0 40px 0 0;
    flex-shrink: 0;
}

/* ── Discovery tab: narrative + depth (inside panel only) ── */
.discipline-panel--discovery.active {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
}

.spectre-discovery-lead {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-muted);
    margin: 0;
    max-width: 720px;
}

.discipline-panel-discovery-row {
    display: flex;
    flex-direction: row;
    gap: 64px;
    align-items: flex-start;
    width: 100%;
}

.spectre-platform-detail-heading {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.75;
    margin: 0 0 16px;
}

.spectre-platform-detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spectre-platform-detail-list li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.52);
}

.spectre-platform-detail-list li:last-child {
    margin-bottom: 0;
}

.spectre-platform-detail-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(34, 211, 238, 0.45);
}

.discipline-panel-tags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
    align-content: start;
}

.discipline-panel-tags li {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.45);
    border: 1px solid #2a2a2a;
    border-radius: 100px;
    padding: 6px 14px;
    line-height: 1;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.discipline-panel-tags li:hover {
    border-color: rgba(34, 211, 238, 0.5);
    color: rgba(255, 255, 255, 0.85);
}

.discipline-tag-more {
    font-style: italic;
    color: rgba(255, 255, 255, 0.18) !important;
    border-color: transparent !important;
}

.feature-label {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.7;
}

/* Feature Cards (legacy) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    padding: 40px 40px 80px;
}

.feature-card {
    background: var(--black);
    border: 1px solid #0a0a0a;
    padding: 32px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(34, 211, 238, 0.2), inset 0 0 20px rgba(34, 211, 238, 0.05);
}

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

.feature-card h3 {
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 10px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.7;
    font-weight: 300;
}


/* Form */
form {
    max-width: 450px;
    margin: 0 auto;
}

form div {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

input,
textarea {
    width: 100%;
    padding: 10px 12px;
    background: #000000;
    border: 1px solid #0a0a0a;
    border-radius: 8px;
    color: var(--text);
    font-size: 12px;
    font-family: inherit;
    transition: border-color 0.2s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
}

textarea {
    resize: vertical;
}

/* Footer */
/* ── Footer ── */
.site-footer {
    background: #121212;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 80px 40px 40px;
    margin-top: 0;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid #1a1a1a;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 260px;
}

.footer-logo {
    height: 14px;
    width: auto;
    opacity: 0.5;
}

.footer-tagline {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

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

.footer-social a {
    color: rgba(255,255,255,0.3);
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.footer-social a:hover {
    color: rgba(255,255,255,0.8);
}

.footer-social svg {
    width: 16px;
    height: 16px;
}

.footer-nav {
    display: flex;
    gap: 60px;
}

.footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav-heading {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    margin: 0 0 4px;
}

.footer-nav-col a {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav-col a:hover {
    color: rgba(255,255,255,0.85);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    gap: 20px;
}

.footer-bottom p {
    font-size: 11px;
    color: rgba(255,255,255,0.2);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    font-size: 11px;
    color: rgba(255,255,255,0.2);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: rgba(255,255,255,0.5);
}

/* ── Resources page ── */
.resources-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 140px 40px 100px;
}

.resources-eyebrow {
    display: none; /* replaced by .page-eyebrow */
}

.resources-title {
    font-size: 42px;
    font-weight: 400;
    color: var(--text);
    letter-spacing: -0.5px;
    margin: 0 0 12px;
}

.resources-sub {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 48px;
}

.resources-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.resources-filter-btn {
    background: none;
    border: 1px solid #2a2a2a;
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-family: inherit;
    transition: border-color 0.2s, color 0.2s;
}

.resources-filter-btn:hover {
    border-color: rgba(255,255,255,0.3);
    color: var(--text);
}

.resources-filter-btn.active {
    border-color: var(--accent);
    color: var(--accent);
}

/* Featured video post — full width */
.post-featured-video-wrap {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    margin-bottom: 24px;
    border: 1px solid #1e1e1e;
    transition: border-color 0.3s;
}

.post-featured-video-wrap:hover {
    border-color: #333;
}

.post-featured-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.post-featured-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.post-featured-video-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.post-featured-video-logo {
    width: 200px;
    opacity: 0.95;
}

.post-featured-video-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: 48px 40px;
    z-index: 2;
    background: linear-gradient(to left, rgba(0,0,0,0.55) 0%, transparent 100%);
}

/* Featured post */
.post-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid #1e1e1e;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    text-decoration: none;
    transition: border-color 0.3s;
}

.post-featured:hover {
    border-color: #333;
}

.post-featured-img {
    background-size: cover;
    background-position: center;
    min-height: 320px;
}

.post-featured-img--empty {
    background: linear-gradient(135deg, #161616, #1e1e1e);
}

.post-featured-body {
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

.post-featured-title {
    font-size: 26px;
    font-weight: 400;
    color: var(--text);
    letter-spacing: -0.3px;
    line-height: 1.25;
    margin: 0;
}

.post-featured-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* Post grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.post-card {
    border: 1px solid #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s;
}

.post-card:hover {
    border-color: #333;
}

.post-card-img {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.post-card-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.post-card-title {
    font-size: 17px;
    font-weight: 400;
    color: var(--text);
    letter-spacing: -0.2px;
    line-height: 1.3;
    margin: 0;
}

.post-card-desc {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
    flex: 1;
}

.post-category {
    font-size: 10px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.7;
}

.post-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
}

.post-author {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
}

.post-external-badge {
    font-size: 10px;
    color: var(--accent);
    opacity: 0.6;
    letter-spacing: 0.3px;
    margin-left: auto;
}

.post-date {
    font-size: 11px;
    color: rgba(255,255,255,0.25);
}

.post-date::before {
    content: '·';
    margin-right: 12px;
    opacity: 0.4;
}

.resources-empty {
    font-size: 13px;
    color: var(--text-muted);
    padding: 40px 0;
}

/* ── Post page ── */
.post-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 120px 40px 100px;
}

.post-back {
    margin-bottom: 48px;
}

.post-back a {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.2px;
    transition: color 0.2s;
}

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

.post-header {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post-title {
    font-size: 38px;
    font-weight: 400;
    color: var(--text);
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin: 0;
}

.post-hero-img {
    width: 100%;
    height: 360px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    margin-bottom: 48px;
}

.post-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-description {
    font-size: 17px;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin: 0;
    padding-bottom: 24px;
    border-bottom: 1px solid #1e1e1e;
}

.post-content p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.85;
    margin: 0;
}

.post-external-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 13px;
    color: var(--accent);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.post-external-link:hover {
    opacity: 1;
}

.post-loading, .post-not-found {
    padding: 140px 40px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

.post-not-found a {
    display: block;
    margin-top: 16px;
    color: var(--accent);
    text-decoration: none;
    font-size: 12px;
}

/* ── Legal pages ── */
.legal-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 140px 40px 100px;
}

.legal-eyebrow {
    display: none; /* replaced by .page-eyebrow */
    font-size: 10px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.7;
    margin: 0 0 16px;
}

.legal-title {
    font-size: 42px;
    font-weight: 400;
    color: var(--text);
    letter-spacing: -0.5px;
    margin: 0 0 12px;
}

.legal-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 0 64px;
}

.legal-section {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid #1e1e1e;
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    font-size: 15px;
    font-weight: 400;
    color: var(--text);
    letter-spacing: 0.1px;
    margin: 0 0 16px;
}

.legal-section p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0 0 12px;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section a {
    color: var(--accent);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.legal-section a:hover {
    opacity: 1;
}

.legal-body,
.legal-tabs {
    max-width: 1400px;
}

.legal-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 56px;
    border-bottom: 1px solid #1e1e1e;
    padding-bottom: 0;
}

.legal-tab {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 10px;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    cursor: none;
    position: relative;
    bottom: -1px;
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.legal-tab:hover {
    color: var(--text);
}

.legal-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.legal-accordion {
    border-bottom: 1px solid #1e1e1e;
}

.accordion-trigger {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    letter-spacing: 0.1px;
    transition: color 0.2s;
}

.accordion-trigger:hover {
    color: rgba(255,255,255,0.85);
}

.legal-accordion.open .accordion-trigger {
    color: var(--text);
}

.accordion-icon {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-left: 1px solid var(--accent);
    border-bottom: 1px solid var(--accent);
    transform: rotate(-45deg);
    margin-top: -3px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-accordion.open .accordion-icon {
    transform: rotate(135deg);
    margin-top: 3px;
}

.accordion-content {
    display: none;
    padding: 0 0 20px;
}

.legal-accordion.open .accordion-content {
    display: block;
}

.accordion-content p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0 0 12px;
}

.accordion-content p:last-child { margin: 0; }

.accordion-content a {
    color: var(--accent);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.accordion-content a:hover { opacity: 1; }

body.nav-drawer-open {
    overflow: hidden;
    touch-action: none;
}

/* Compact nav + hamburger */
@media (max-width: 900px) {
    .nav-links {
        display: none !important;
    }

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

    .nav-island {
        padding: 5px 6px 5px 14px;
        gap: 8px;
    }

    .nav-cta {
        padding: 7px 14px;
        font-size: 9px;
    }
}

/* Phones & small tablets — layout, type, media */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 40px;
    }

    .footer-nav {
        flex-wrap: wrap;
        gap: 32px;
    }

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

    .site-footer {
        padding: 56px 20px 32px;
    }

    .hero {
        min-height: 100dvh;
        min-height: 100vh;
        padding: 100px 0 72px;
    }

    .hero-headline {
        font-size: clamp(28px, 9vw, 40px);
        line-height: 1.12;
        margin-bottom: 16px;
        padding: 0 4px;
    }

    .hero-sub {
        font-size: 13px;
        margin-top: 28px;
        padding: 0 8px;
        max-width: 22em;
    }

    .hero-logo {
        margin-bottom: 32px;
    }

    .hero-explore-btn {
        margin-top: 28px;
    }

    .home-hero-wrap {
        min-height: 100dvh;
        min-height: 100vh;
    }

    .home-bg-video {
        object-fit: cover;
        object-position: center center;
    }

    .home-section {
        padding: 56px 20px;
        max-width: 100%;
    }

    .home-section-title {
        font-size: clamp(26px, 7.5vw, 34px);
        line-height: 1.15;
        margin-bottom: 20px;
    }

    .home-section-title.home-platform-section-title {
        gap: 12px;
    }

    .home-platform-wordmark {
        width: min(100%, clamp(180px, 72vw, 320px));
    }

    .home-section-body {
        font-size: 14px;
        line-height: 1.75;
        max-width: 100%;
    }

    .home-story-lead {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .home-story-callout {
        font-size: clamp(22px, 6.5vw, 36px);
    }

    .home-story-body p {
        font-size: 14px;
    }

    .home-story-body p:last-child {
        font-size: 15px;
    }

    .home-butterfly-wrap,
    .home-shift-wrap {
        min-height: 72dvh;
        min-height: 72vh;
    }

    .home-butterfly-wrap .home-section,
    .home-shift-wrap .home-section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .home-shift-stats {
        flex-direction: column;
        margin: 32px 0 28px;
        gap: 0;
    }

    .home-shift-stat {
        padding: 20px 0;
        margin-right: 0;
        border-right: none;
        border-bottom: 1px solid #222;
    }

    .home-shift-stat:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .home-shift-num {
        font-size: 36px;
    }

    .home-shift-label {
        max-width: 100%;
        font-size: 13px;
    }

    .home-shift-statement,
    .home-shift-turn {
        font-size: 16px;
    }

    .home-platform-disciplines {
        flex-direction: column;
        align-items: stretch;
        margin-top: 32px;
        gap: 0;
    }

    .platform-discipline {
        justify-content: flex-start;
        padding: 14px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .platform-discipline:last-child {
        border-bottom: none;
    }

    .platform-connector {
        display: none;
    }

    .home-platform-detail-lead {
        font-size: 14px;
        margin-bottom: 22px;
        max-width: 100%;
    }

    .home-investor-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .home-investor-divider {
        width: 100%;
        height: 1px;
    }

    .spectre-wordmark-wrap {
        padding: 28dvh 0 40px;
        min-height: 85dvh;
        min-height: 85vh;
    }

    .spectre-bg-video {
        object-fit: cover;
        object-position: center center;
    }

    .spectre-intro {
        padding: 48px 20px 28px;
    }

    .spectre-tagline {
        font-size: clamp(22px, 6vw, 28px);
    }

    .spectre-sub {
        font-size: 14px;
    }

    .spectre-platform-stats {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0 20px 36px;
    }

    .platform-stat-divider {
        width: 100%;
        height: 1px;
        margin: 16px 0;
    }

    .platform-stat {
        padding: 0;
    }

    .spectre-categories {
        padding: 0 24px 48px;
    }

    .spectre-discovery-intro {
        padding-left: 20px;
        padding-right: 20px;
    }

    .spectre-disciplines {
        padding: 0 20px 64px;
    }

    .discipline-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .discipline-tabs::-webkit-scrollbar {
        display: none;
    }

    .discipline-tab {
        padding: 12px 16px;
        font-size: 11px;
    }

    .discipline-panel.active {
        flex-direction: column;
        gap: 32px;
    }

    .discipline-panel-header {
        flex: none;
    }

    .discipline-panel-title {
        font-size: 22px;
    }

    .discipline-panel-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .discipline-panel-tags {
        gap: 6px;
    }

    .discipline-panel-discovery-row {
        flex-direction: column;
        gap: 32px;
    }

    .resources-page {
        padding: 100px 20px 64px;
    }

    .resources-title {
        font-size: clamp(28px, 8vw, 36px);
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .post-featured {
        grid-template-columns: 1fr;
    }

    .post-featured-img {
        min-height: 200px;
    }

    .post-featured-body {
        padding: 28px 20px;
    }

    .post-featured-title {
        font-size: 20px;
    }

    .post-featured-video-wrap {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        height: auto;
        min-height: 0;
    }

    .post-featured-video {
        grid-area: 1 / 1;
        position: relative;
        z-index: 0;
        width: 100%;
        aspect-ratio: 16 / 9;
        height: auto;
        object-fit: cover;
    }

    .post-featured-video-overlay {
        grid-area: 1 / 1;
        position: relative;
        z-index: 1;
        width: 100%;
        height: 100%;
        min-height: 0;
        align-self: stretch;
        justify-self: stretch;
    }

    .post-featured-video-left {
        grid-area: 1 / 1;
        position: relative;
        z-index: 2;
        width: 100%;
        height: 100%;
        min-height: 0;
        align-self: stretch;
        justify-self: stretch;
        padding: 16px;
    }

    .post-featured-video-right {
        grid-row: 2;
        grid-column: 1;
        position: relative;
        width: 100%;
        height: auto;
        padding: 24px 20px;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(18, 18, 18, 0.92) 100%);
    }

    .post-featured-video-logo {
        width: min(140px, 42vw);
    }

    .post-page {
        padding: 96px 20px 64px;
    }

    .post-title {
        font-size: clamp(26px, 7vw, 32px);
    }

    .post-hero-img {
        height: min(48vw, 240px);
    }

    .post-description {
        font-size: 16px;
    }

    .post-content p {
        font-size: 14px;
    }

    .legal-page {
        padding: 100px 20px 64px;
    }

    .legal-title {
        font-size: clamp(28px, 8vw, 36px);
    }

    .legal-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .features-grid {
        padding: 60px 20px;
        gap: 16px;
    }

    .section-title {
        font-size: 28px;
    }
}

@media (min-width: 901px) {
    .nav-menu-toggle {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .hero-headline br {
        display: none;
    }
}
