/* ===== ELIOS REGULAR ===== */
@font-face {
    font-family: 'Elios Regular';
    src: url('fonts/Elios.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ===== SIGURD ===== */

@font-face {
    font-family: 'Sigurd';
    src: url('fonts/fonnts.com-Sigurd-Light.otf') format('opentype');
    font-weight: 50;
    font-style: normal;
    font-display: swap;
}

/* ===== HELVETICA NEUE FONT FACES ===== */

/* Ultra Light — 100 */
@font-face {
    font-family: 'Helvetica Neue';
    src: url('fonts/HelveticaNeueUltraLight.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('fonts/HelveticaNeueUltraLightItalic.otf') format('opentype');
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}

/* Thin — 200 */
@font-face {
    font-family: 'Helvetica Neue';
    src: url('fonts/HelveticaNeueThin.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('fonts/HelveticaNeueThinItalic.otf') format('opentype');
    font-weight: 200;
    font-style: italic;
    font-display: swap;
}

/* Light — 300 */
@font-face {
    font-family: 'Helvetica Neue';
    src: url('fonts/HelveticaNeueLight.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('fonts/HelveticaNeueLightItalic.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

/* Regular / Roman — 400 */
@font-face {
    font-family: 'Helvetica Neue';
    src: url('fonts/HelveticaNeueRoman.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('fonts/HelveticaNeueItalic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* Medium — 500 */
@font-face {
    font-family: 'Helvetica Neue';
    src: url('fonts/HelveticaNeueMedium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('fonts/HelveticaNeueMediumItalic.otf') format('opentype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

/* Bold — 700 */
@font-face {
    font-family: 'Helvetica Neue';
    src: url('fonts/HelveticaNeueBold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('fonts/HelveticaNeueBoldItalic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* Heavy — 800 */
@font-face {
    font-family: 'Helvetica Neue';
    src: url('fonts/HelveticaNeueHeavy.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('fonts/HelveticaNeueHeavyItalic.otf') format('opentype');
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}

/* Black — 900 */
@font-face {
    font-family: 'Helvetica Neue';
    src: url('fonts/HelveticaNeueBlack.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('fonts/HelveticaNeueBlackItalic.otf') format('opentype');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

:root {
    --primary-bg: #09090b;
    --card-bg: #121214;
    --border-color: rgba(255, 255, 255, 0.08);
    --accent-color: #ffaa00;
    --accent-green: #7ab000;
    --text-main: #ffffff;
    --text-muted: #888888;
    --grid-gap: 32px;
    --spacing-xxl: 80px;
    --spacing-xl: 60px;
    --spacing-lg: 40px;
    --spacing-md: 20px;
    --spacing-sm: 10px;
}

/* ===== GLOBAL RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ===== CINEMATIC LOADING SCREEN ===== */
#minimal-splash {
    position: fixed;
    inset: 0;
    background: #f0f0f0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.splash-brand {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 200;
    letter-spacing: 22px;
    text-indent: 22px;
    /* optical compensation for trailing letter-spacing */
    text-transform: uppercase;
    color: #111111;
    user-select: none;
}

.splash-tagline {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: clamp(0.55rem, 1.1vw, 0.8rem);
    font-weight: 300;
    letter-spacing: 5px;
    text-indent: 5px;
    text-transform: uppercase;
    color: #555555;
    margin-top: 14px;
    user-select: none;
}

/* ── View Transitions API: circle-blur from top-left ──
   Fires twice:
     1. light → dark theme swap (splash stays visible, text inverts)
     2. dark splash → app reveal (splash removed, home section appears)
   The old snapshot freezes; the new state expands as a blurring circle
   originating from the top-left corner.
── */
::view-transition-old(root) {
    animation: none;
}

::view-transition-new(root) {
    animation: circle-blur-in 0.9s cubic-bezier(0.76, 0, 0.24, 1) both;
}

@keyframes circle-blur-in {
    from {
        clip-path: circle(0% at 0% 0%);
    }

    to {
        clip-path: circle(150% at 0% 0%);
    }
}


/* ===== MP-STYLE MODALS ===== */
.mp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.mp-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mp-modal-box {
    background: #111113;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.9);
    border-radius: 4px;
    overflow: hidden;
    transform: translateY(-12px) scale(0.97);
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
}

.mp-modal-overlay.open .mp-modal-box {
    transform: translateY(0) scale(1);
}

.mp-modal-titlebar {
    background: #18181b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    user-select: none;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-color);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    letter-spacing: 0.5px;
}

.mp-modal-winbtns {
    display: flex;
    gap: 2px;
}

.mp-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    background: #111113;
}

.mp-modal-desc {
    font-size: 11.5px;
    color: #888;
    margin-bottom: 18px;
    border-left: 2px solid var(--accent-color);
    padding-left: 10px;
    line-height: 1.5;
}

.mp-form-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.mp-form-lbl {
    font-size: 11px;
    color: #aaa;
    width: 120px;
    flex-shrink: 0;
    text-align: right;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mp-form-input,
.mp-form-select,
.mp-form-textarea {
    flex: 1;
    background: #09090b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 12px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    padding: 6px 10px;
    outline: none;
    border-radius: 3px;
    transition: border-color 0.15s;
}

.mp-form-input:focus,
.mp-form-select:focus,
.mp-form-textarea:focus {
    border-color: var(--accent-color);
}

.mp-form-input::placeholder,
.mp-form-textarea::placeholder {
    color: #555;
}

.mp-form-select {
    cursor: pointer;
    height: 28px;
}

.mp-form-textarea {
    resize: vertical;
    min-height: 60px;
    line-height: 1.5;
}

.mp-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mp-btn-cancel {
    background: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #bbb;
    padding: 6px 16px;
    font-size: 11px;
    cursor: pointer;
    border-radius: 3px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    transition: background 0.15s, color 0.15s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mp-btn-cancel:hover {
    background: #222;
    color: #fff;
}

.mp-btn-submit {
    background: var(--accent-color);
    border: 1px solid var(--accent-color);
    color: #000;
    padding: 6px 18px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 3px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    transition: background 0.15s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mp-btn-submit:hover {
    background: #e09500;
}



/* ===== GEO LOCATION MARKER ===== */
.geo-marker-outer {
    width: 24px;
    height: 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.geo-marker-outer::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(90, 180, 255, 0.25);
    border: 1.5px solid rgba(90, 180, 255, 0.6);
    animation: geoPulse 1.8s ease-out infinite;
}

.geo-marker-inner {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4a9de0;
    border: 2px solid #fff;
    box-shadow: 0 0 6px rgba(74, 157, 224, 0.8);
    position: relative;
    z-index: 1;
}

@keyframes geoPulse {
    0% {
        transform: scale(0.6);
        opacity: 0.8;
    }

    70% {
        transform: scale(1.8);
        opacity: 0;
    }

    100% {
        transform: scale(0.6);
        opacity: 0;
    }
}

.geo-popup .leaflet-popup-content-wrapper {
    background: #1e1e1e;
    border: 1px solid #3a3a3a;
    border-radius: 3px;
    color: #ddd;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
}

.geo-popup .leaflet-popup-tip {
    background: #1e1e1e;
}

.geo-popup .leaflet-popup-close-button {
    color: #888;
}


body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #1a1a1a;
    color: #e0e0e0;
    font-size: 12px;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#toolbar {
    background: #0a0a0c;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: stretch;
    padding: 0;
    flex-shrink: 0;
    height: 83px;
    gap: 13px;
    line-height: 1;
    transition: transform 0.3s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 5000;
}

#toolbar.toolbar-hidden {
    transform: translateY(-100%);
}

#nav-tabs {
    display: flex;
    align-items: stretch;
}

#mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    align-self: center;
    margin-right: 15px;
    z-index: 5100;
}

#mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transition: transform 0.3s, opacity 0.3s;
}

#mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

#mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.toolbar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    cursor: pointer;
    border: none;
    min-width: 80px;
    transition: background 0.15s, color 0.15s;
    color: #ffffff;
    text-decoration: none;
    position: relative;
    font-family: 'Helvetica Neue', Helvetica;
}

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

.toolbar-btn.active {
    background: transparent;
    color: var(--accent-color);
}

.toolbar-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--accent-color);
}

.toolbar-btn span {
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 1px;
    font-family: 'Helvetica Neue', Helvetica;
    line-height: 1;
    display: inline-block;
    text-transform: uppercase;
}

/* Right side toolbar */
#toolbar-right {
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 0;
    padding-right: 13px;
}

/* Brand block — left side of navbar */
#toolbar-brand {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 20px;
    height: 100%;
    user-select: none;
}

#trinetra-logo {
    height: 60px;
    width: auto;
    margin-left: 15px;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

#toolbar-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0px;
    line-height: 1;
}

#brand-accent {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 2px;
    text-indent: 4px;
    color: #fff;
    text-transform: uppercase;
}


/* Logo block */
#toolbar-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0 12px;
    height: 100%;
}

/* Connection dropdowns group */
#conn-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 8px;
    height: 100%;
}

.conn-select {
    background: #111;
    border: 1px solid #333;
    color: #ccc;
    padding: 2px 4px;
    font-size: 12px;
    font-weight: 300;
    height: 22px;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    min-width: 58px;
    font-family: 'Helvetica Neue', Helvetica;
}

.conn-select:hover {
    border-color: #555;
    background: #1a1a1a;
}

.conn-select:focus {
    border-color: #7ab000;
}

/* CONNECT button — same font/style as nav tabs, green background like Mission Planner */
.conn-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1e4a00;
    border: none;
    border-left: 1px solid #2a6a00;
    border-right: 1px solid #2a6a00;
    color: #e0e0e0;
    padding: 5px 18px;
    height: 100%;
    min-width: 90px;
    cursor: pointer;
    gap: 3px;
    transition: background 0.15s, color 0.15s;
    font-family: 'Helvetica Neue', Helvetica;
    position: relative;
}

.conn-btn:hover {
    background: #266000;
    color: #fff;
}

.conn-btn.connected {
    background: #0a2200;
    border-color: #1a4400;
    color: #7ab000;
}

.conn-btn.connected .conn-btn-icon svg {
    stroke: #7ab000;
}

.conn-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.conn-btn-icon svg {
    width: 20px;
    height: 20px;
    stroke: #ccc;
    transition: stroke 0.15s;
}

.conn-btn:hover .conn-btn-icon svg {
    stroke: #fff;
}

/* Label matches EXACTLY the nav tab span style */
.conn-btn-label {
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    font-family: 'Helvetica Neue', Helvetica;
}

/* ===== CONNECT PANEL ===== */
#connect-wrap {
    position: relative;
    height: 100%;
    display: flex;
    align-items: stretch;
}

#connect-panel {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    width: 360px;
    background: #1a1a1a;
    border: 1px solid #2e4a00;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.85), 0 0 0 1px #111;
    z-index: 8000;
    border-radius: 0 0 3px 3px;
    animation: cpSlideDown 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

#connect-panel.open {
    display: block;
}

@keyframes cpSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sliding toggle */
#cp-toggle-wrap {
    position: relative;
    display: flex;
    background: #111;
    border-bottom: 1px solid #2a2a2a;
    margin: 0;
    padding: 5px;
    gap: 0;
}

#cp-toggle-pill {
    position: absolute;
    top: 5px;
    left: 5px;
    width: calc(50% - 5px);
    bottom: 5px;
    background: #2a5000;
    border: 1px solid #4a8000;
    border-radius: 2px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}

#cp-toggle-pill.right {
    transform: translateX(calc(100% + 0px));
}

.cp-tab {
    flex: 1;
    background: none;
    border: none;
    color: #999;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    padding: 6px 0;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: color 0.2s;
}

.cp-tab.active {
    color: #fff;
}

.cp-tab:not(.active):hover {
    color: #ddd;
}

/* Forms */
#cp-forms {
    padding: 12px 14px 4px;
    max-height: 420px;
    overflow-y: auto;
}

.cp-desc {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 12px;
    border-left: 2px solid #3a5a00;
    padding-left: 8px;
    line-height: 1.6;
}

.cp-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
}

.cp-lbl {
    font-size: 12px;
    color: #ccc;
    width: 96px;
    flex-shrink: 0;
    text-align: right;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.cp-input,
.cp-select,
.cp-textarea {
    flex: 1;
    background: #111;
    border: 1px solid #333;
    color: #ddd;
    font-size: 12px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    padding: 4px 8px;
    outline: none;
    border-radius: 2px;
    transition: border-color 0.15s;
}

.cp-input:focus,
.cp-select:focus,
.cp-textarea:focus {
    border-color: #5a8a00;
}

.cp-input::placeholder,
.cp-textarea::placeholder {
    color: #555;
    font-size: 12px;
}

.cp-select {
    height: 26px;
    cursor: pointer;
}

.cp-textarea {
    resize: vertical;
    min-height: 52px;
    line-height: 1.4;
}

.cp-footer {
    display: flex;
    justify-content: flex-end;
    padding: 8px 0 10px;
    border-top: 1px solid #222;
    margin-top: 6px;
}

.cp-btn-submit {
    background: #2a5000;
    border: 1px solid #4a8000;
    color: #c8e880;
    padding: 5px 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 2px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    letter-spacing: 0.3px;
    transition: background 0.15s;
}

.cp-btn-submit:hover {
    background: #356000;
}



#logo-text {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 2px;
    font-style: italic;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1;
}

#logo-text .logo-main {
    background: linear-gradient(135deg, #e0e0e0 0%, #999 40%, #d0d0d0 60%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.4));
}

#logo-text .logo-accent {
    color: #ffaa00;
}



/* Main content */
#main {
    flex: 1;
    display: flex;
    overflow: hidden;
    transition: filter 0.4s ease;
}

#toolbar:hover~#main:not(:has(#data-tab.home-visible)) {
    filter: none;
}

/* ===== DATA TAB ===== */
#data-tab {
    display: none;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    scroll-behavior: smooth;
    background: #000;
    flex-direction: column;
    padding-top: 83px;
    box-sizing: border-box;
}

/* ===== PLAN / TEAM TAB ===== */
#plan-tab {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    scroll-behavior: smooth;
    background: #000;
    flex-direction: column;
    padding-top: 83px;
    box-sizing: border-box;
}

/* ===== OTHER TABS ===== */
#sim-tab,
#vehicles-tab {
    width: 100%;
    height: 100%;
}

#sim-tab {
    padding-top: 83px;
    box-sizing: border-box;
}

/* ===== SIMULATION TAB — Horizontal Carousel ===== */
#sim-tab {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Outer wrapper */
#sim-carousel-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #000;
}

/* ── Clip: overflow:hidden boundary for peek effect ── */
#sim-carousel-clip {
    flex: 1;
    position: relative;
    overflow: hidden;
    /* this is the ONLY clip boundary */
}

/* Track fills the clip — slides are positioned inside it */
#sim-carousel-track {
    position: absolute;
    inset: 0;
}

/* ── Each slide is 80% wide with 10% margin each side ──
   Adjacent cards naturally peek 10% into the clip on each side.
   xPercent:(i-current)*100 means next card left edge = 10%+80% = 90%  → 10% visible
   prev card right edge = 10%-80%+80% = 10%                             → 10% visible */
.sv-slide {
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    will-change: transform;
}



/* ── Card — horizontal layout ──
   Left: video  |  Right: info                */
.sv-card {
    width: 100%;
    /* fills the full slide width so peek shows the card, not empty space */
    height: min(420px, calc(100vh - 180px));
    background: #161616;
    border: 1px solid #222;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    position: relative;
    will-change: transform, filter, opacity;
}

/* Green top-accent line draws on hover */
.sv-card:not(.sv-card--empty)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: #7ab000;
    transition: width 0.4s ease;
    z-index: 4;
}

.sv-card:not(.sv-card--empty):hover::before {
    width: 100%;
}

.sv-card:not(.sv-card--empty):hover {
    border-color: #2a3818;
}

/* ── Left: video panel (58%) ── */
.sv-player-wrap {
    flex: 0 0 58%;
    position: relative;
    background: #080808;
    overflow: hidden;
}

.sv-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border: none;
    background: #080808;
}

.sv-no-src {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #1e1e1e;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ── Right: info panel ── */
.sv-body {
    flex: 1;
    padding: 26px 28px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border-left: 1px solid #1c1c1c;
}

.sv-body-top {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Slide number e.g. "01" */
.sv-index {
    font-size: 10px;
    color: #555;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    letter-spacing: 1.5px;
}

.sv-title {
    font-size: 13px;
    color: #e8e8e8;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 600;
    line-height: 1.45;
}

.sv-desc {
    font-size: 11px;
    color: #909090;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer: tags + date */
.sv-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid #1a1a1a;
    flex-shrink: 0;
}

.sv-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.sv-tag {
    font-size: 10px;
    color: #7ab000;
    border: 1px solid #2a4400;
    padding: 1px 7px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    letter-spacing: 0.3px;
}

.sv-date {
    font-size: 10px;
    color: #555;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Inline code chip */
.sv-code {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 10px;
    color: #7ab000;
    background: #0f1a00;
    border: 1px solid #253300;
    padding: 0 4px;
    border-radius: 2px;
}

/* Empty / pending card */
.sv-card--empty {
    border-style: dashed;
    border-color: #181818;
    opacity: 0.3;
}

.sv-placeholder {
    color: #222 !important;
    font-style: italic;
}

/* ── Navigation arrows — live in #sim-carousel-clip's 120px peek zones ── */
.sv-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid #2a2a2a;
    color: #666;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    z-index: 30;
    border-radius: 0;
}

.sv-arrow svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.sv-arrow:hover {
    background: #1e1e1e;
    color: #ddd;
    border-color: #444;
}

.sv-arrow--prev {
    left: 42px;
}

.sv-arrow--next {
    right: 42px;
}

/* ── Footer bar: dots + counter ── */
#sim-carousel-footer {
    flex-shrink: 0;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-top: 1px solid #181818;
    position: relative;
}

#sim-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.sv-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #252525;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
}

.sv-dot.active {
    background: #7ab000;
    transform: scale(1.4);
}

.sv-dot:not(.active):hover {
    background: #3a3a3a;
}

#sim-slide-counter {
    position: absolute;
    right: 20px;
    font-size: 10px;
    color: #555;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    letter-spacing: 1px;
}


/* ===== VEHICLES TAB ===== */
#vehicles-tab {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#vehicles-page {
    flex: 1;
    overflow-y: auto;
    background: #000;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: #222 #0d0d0d;
}

#vehicles-page::before {
    content: '';
    display: block;
    height: 83px;
    min-height: 83px;
    width: 100%;
    flex-shrink: 0;
}

/* ── Each vehicle row ── */
.veh-entry {
    display: flex;
    align-items: stretch;
    min-height: 360px;
    max-height: 440px;
    border-bottom: 1px solid #181818;
    transition: background 0.2s;
}

.veh-entry:hover {
    background: #0f0f0f;
}

/* Odd: text left, image right */
.veh-entry--odd {
    flex-direction: row;
}

/* Even: image left, text right (HTML order is image,text so row = image left) */
.veh-entry--even {
    flex-direction: row;
}

/* ── Text panel ── */
.veh-text {
    flex: 0 0 60%;
    padding: 32px 36px 28px;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    border-right: 1px solid #181818;
    justify-content: center;
}

/* accent bar that grows on hover */
.veh-entry--even .veh-text {
    border-right: none;
    border-left: 1px solid #181818;
}

.veh-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #7ab000;
    transition: width 0.45s ease;
}

.veh-entry:hover .veh-text::before {
    width: 100%;
}

.veh-number {
    font-size: 10px;
    color: #2e2e2e;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.veh-name {
    font-size: 18px;
    color: #e8e8e8;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.veh-sub {
    font-size: 10px;
    color: #7ab000;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 4px;
    margin-bottom: 14px;
}

.veh-divider {
    height: 1px;
    background: #1e1e1e;
    margin-bottom: 14px;
}

.veh-desc {
    font-size: 11.5px;
    color: #888;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.75;
    margin-bottom: 18px;
}

/* ── Specs grid ── */
.veh-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 20px;
    margin-bottom: 16px;
}

.veh-spec {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #191919;
    padding-bottom: 5px;
}

.veh-spec-label {
    font-size: 9.5px;
    color: #444;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.veh-spec-val {
    font-size: 10px;
    color: #ccc;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ── Tags ── */
.veh-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.veh-tag {
    font-size: 9.5px;
    color: #7ab000;
    border: 1px solid #2a4400;
    padding: 2px 8px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    letter-spacing: 0.3px;
}

/* ── Image panel ── */
.veh-image-wrap {
    flex: 0 0 40%;
    position: relative;
    overflow: hidden;
    background: #000;
}

.veh-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.veh-entry:hover .veh-image {
    transform: scale(1.03);
}

/* Placeholder shown until real image is added */
.veh-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: repeating-linear-gradient(45deg,
            #0d0d0d 0px,
            #0d0d0d 12px,
            #111 12px,
            #111 24px);
}

.veh-image-placeholder span:first-child {
    font-size: 11px;
    color: #2a2a2a;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    letter-spacing: 2px;
}

.veh-img-hint {
    font-size: 9px;
    color: #1e1e1e;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Thin separator between entries */
.veh-rule {
    display: none;
    /* border-bottom on .veh-entry handles separation */
}




/* ======================================================
   SPONSORS TAB
====================================================== */

#sponsors-tab {
    flex-direction: column !important;
    overflow-y: auto;
    overflow-x: hidden;
    background: #000;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

#sponsors-tab::before {
    content: '';
    display: block;
    height: 83px;
    min-height: 83px;
    width: 100%;
    flex-shrink: 0;
}

/* Hide scrollbar for Chrome, Safari and Opera */
#sponsors-tab::-webkit-scrollbar {
    display: none;
}

#sponsors-page {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    container-type: inline-size;
}

/* ── Sponsors Hero — */
#sp-hero {
    position: relative;
    width: 100%;
    padding: 260px 60px 24px 35px;
    background: #000;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: calc(100vh - 50px - ((100cqw - 100px) * 0.101));
}

/* Category eyebrow — "OUR PARTNERS" */
#sp-hero-category {
    font-family: 'Helvetica Neue';
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 45px;
}

/* Giant display headline — "Sponsors" */
#sp-hero-display {
    font-family: 'Helvetica Neue';
    font-size: clamp(5rem, 10vw, 10rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 0.9;
    letter-spacing: -3px;
    margin-bottom: 3vh;
}

/* Outer bottom row: text-row takes all space, arrow pins to baseline */
#sp-hero-bottom {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 2rem;
    width: 100%;
    margin-top: 40px;
}

/* Inner row: motto | desc | links — all top-aligned, spaced out */
#sp-hero-text-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    flex: 1;
    gap: 2rem;
}

/* Left: narrow motto column */
#sp-hero-motto {
    font-family: 'Elios Regular', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.32);
    line-height: 1.5;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    max-width: 400px;
    flex-shrink: 0;
}

/* Center: wider description paragraph */
#sp-hero-desc {
    font-family: 'Helvetica Neue';
    font-size: 13px;
    font-weight: 430;
    color: rgba(255, 255, 255, 0.308);
    line-height: 1.5;
    max-width: 460px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Far-right diagonal arrow */
#sp-hero-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

#sp-hero-arrow svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

#sp-hero-arrow:hover {
    border-color: rgba(255, 255, 255, 0.7);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

#sp-next-page {
    --ribbon-size: 50px;
    --heading-top: -2.0cqw;

    width: calc(100% - (var(--ribbon-size) * 2));
    margin: -2px auto auto;
    min-height: fit-content;
    padding-bottom: 10vh;
    background-color: #000000;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

#sp-carousel-heading {
    position: absolute;
    top: 0;

    /* Lock the physical size of the text block to the original black box size */
    width: calc((100cqw - 100px) * 1.015);
    font-size: calc((100cqw - 100px) * 0.101);

    /* X-centering + Y slide-in driven by scroll via --heading-offset */
    left: 50%;
    transform: translateX(calc(-50% - ((100cqw - 100px) * 0.0063))) translateY(var(--heading-offset, -30px));

    font-family: 'Sigurd', serif;
    font-style: normal;
    color: #ffffff;

    letter-spacing: -1px;
    word-spacing: calc((100cqw - 100px) * 0.0142);
    text-transform: uppercase;
    line-height: 1;

    text-align: justify;
    text-align-last: justify;
    white-space: nowrap;

    margin: 0;
    padding: 0;
}

#sp-carousel-subheading {
    position: absolute;
    top: calc(var(--heading-top) + calc((100cqw - 100px) * 0.15));
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Helvetica Neue';
    font-weight: 200;
    font-style: normal;
    color: rgba(255, 255, 255, 0.742);
    font-size: calc((100cqw - 1000px) * 0.03);
    letter-spacing: 0px;
    white-space: nowrap;
    text-align: center;
    opacity: var(--subheading-opacity, 0);
    transition: opacity 0.1s ease-out;
}

/* Minimalist two-column feature section */
.sponsor-feature-section {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Match left/right edges to #sp-carousel-heading */
    width: calc((100cqw - 100px) * 1.015);
    margin: 40vh auto 5vh auto;
    background-color: #000000;
}

.sponsor-feature-section::before,
.sponsor-feature-section::after {
    display: none;
}

@keyframes drawBorder {
    to {
        transform: scaleX(1);
    }
}

.sponsor-feature-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 50px;
    color: #ffffff;
    font-family: 'Helvetica Neue';
    letter-spacing: 1px;
    box-sizing: border-box;
}

.sf-date {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 12px;
    opacity: 0.7;
}

.sf-headline {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.sf-subhead {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 24px;
    opacity: 0.8;
    max-width: 90%;
}

.sf-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 4px;
    align-self: flex-start;
}

.sf-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.5em;
    height: 0.05em;
    width: 100%;
    background-color: currentColor;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.sf-link:hover::before {
    transform-origin: right;
    transform: scaleX(1);
}

.sf-link-icon {
    margin-left: 0.3em;
    width: 0.6em;
    height: 0.6em;
    transform: translateY(4px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sf-link:hover .sf-link-icon {
    transform: translateY(0);
    opacity: 1;
}

.sf-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    box-sizing: border-box;
}

.sf-logo-wrapper {
    position: relative;
    width: 100%;
    max-height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sf-logo {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    display: block;
    transition: opacity 0.4s ease;
}

.sf-logo.hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.sf-logo-wrapper:hover .sf-logo.hover {
    opacity: 1;
}

.sf-logo-wrapper:hover .sf-logo.default {
    opacity: 0;
}

/* ── Sponsor CTA Section ── */
#sp-cta-section {
    width: 100%;
    margin: 0 auto;
    padding: 90px 60px calc(80px + 30vh);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    position: relative;
    background: #000;
    box-sizing: border-box;
}

#sp-cta-divider {
    display: none;
}

#sp-cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    max-width: 820px;
}

#sp-cta-quote {
    font-family: 'Sigurd', serif;
    font-style: italic;
    font-size: clamp(1.1rem, 2.2cqw, 1.5rem);
    font-weight: 50;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.55;
    letter-spacing: 0.01em;
    margin: 0;
    padding: 0;
    border: none;
    quotes: none;
}

#sp-cta-attribution {
    display: block;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    font-size: clamp(0.7rem, 1.1cqw, 0.9rem);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 16px;
}

#sp-cta-hook {
    font-family: 'Sigurd', serif;
    font-size: clamp(2rem, 5cqw, 4.5rem);
    font-weight: 50;
    color: #ffffff;
    letter-spacing: -1px;
    line-height: 1;
    margin: 0;
}

#sp-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 16px 44px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    text-decoration: none;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: transparent;
    position: relative;
    overflow: hidden;
    transition: border-color 0.35s ease, color 0.35s ease;
}

#sp-cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #ffffff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

#sp-cta-button:hover::before {
    transform: scaleX(1);
}

#sp-cta-btn-text,
#sp-cta-btn-icon {
    position: relative;
    z-index: 1;
    transition: color 0.35s ease;
}

#sp-cta-button:hover #sp-cta-btn-text,
#sp-cta-button:hover #sp-cta-btn-icon {
    color: #000000;
}

#sp-cta-btn-icon {
    position: absolute;
    right: 18px;
    width: 11px;
    height: 11px;
    flex-shrink: 0;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.35s ease;
}

#sp-cta-button:hover #sp-cta-btn-icon {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    #sp-cta-section {
        padding: 60px 24px 80px;
    }

    #sp-cta-divider {
        margin-bottom: 56px;
    }
}


@media (max-width: 900px) {
    .sponsor-feature-section {
        grid-template-columns: 1fr;
    }

    .sponsor-feature-content {
        padding: 50px 30px;
    }

    .sf-image-container {
        min-height: 300px;
        border-top: 1px solid #ffffff;
    }
}

/* ── Site Footer ── */
#sp-footer {
    width: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    border-top: none;
    position: relative;
}

#sp-footer-inner {
    width: 100%;
    padding: 64px 60px 100px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    box-sizing: border-box;
}

#sp-footer-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sp-footer-copyright {
    color: #ffffff;
    font-size: 16px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    position: absolute;
    bottom: 20px;
    left: 60px;
}

#sp-footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sp-footer-logo {
    width: 37px;
    height: 37px;
}

.sp-footer-brand-name {
    color: #ffffff;
    font-size: 30px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 500;
    letter-spacing: 1px;
}

#sp-footer-cols {
    display: flex;
    gap: 80px;
}

.sp-footer-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sp-footer-col-head {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding-bottom: 15px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.38);
    text-transform: uppercase;
    margin: 0;
}

.sp-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sp-footer-link {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
    position: relative;
    display: inline-block;
}

.sp-footer-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.sp-footer-link:hover {
    color: rgba(255, 255, 255, 0.85);
}

.sp-footer-link:hover::after {
    transform: scaleX(1);
}

#sp-footer-bar {
    width: 100%;
    padding: 20px 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

#sp-footer-copy {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
}

@media (max-width: 700px) {
    #sp-footer-inner {
        padding: 48px 28px 36px;
        justify-content: flex-start;
    }

    #sp-footer-cols {
        flex-direction: column;
        gap: 40px;
    }

    #sp-footer-bar {
        padding: 18px 28px;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   NEW TEAM SECTION — Mapless Grid Card Layout & GSAP Animations
   ═══════════════════════════════════════════════════════════════════ */
/* 1. Remove the global cursor: none so your normal mouse works everywhere else */

#new-team-section {
    position: relative;
    width: 100%;
    height: calc(100vh - 83px);
    flex-shrink: 0;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── The GPU-Accelerated Container ── */
#team-thumbnails-container {
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 552px;
    height: 120px;
    z-index: 10;
    cursor: none !important;
}

#team-thumbnails-container * {
    cursor: none !important;
}

/* 🔴 NEW: When pinned, restore the normal system hardware cursor! */
#team-thumbnails-container.is-frozen,
#team-thumbnails-container.is-frozen * {
    cursor: auto !important;
}

/* ── The Absolute Positioned Thumbnails ── */
.new-team-thumb {
    position: absolute;
    top: 50%;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    background: #222;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    will-change: transform, width, height, border-color;
}

.new-team-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* ── Background Text Container ── */

#team-bg-text-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 420px;

    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 180px;

    z-index: 1;
    pointer-events: none;
    user-select: none;
    overflow: hidden;
}

.team-bg-text-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    white-space: nowrap;
    text-align: center;
}

.letter-box {
    display: inline-flex;
    overflow: hidden;
    vertical-align: top;
    line-height: 0.85;
}

/* ── The Text Itself ── */
.letter-inner {
    display: inline-block;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: clamp(2rem, 7vw, 9rem);
    font-weight: 400;
    text-transform: uppercase;
    line-height: 0.85;
    letter-spacing: normal;
    color: white;
    will-change: transform;
}

/* When pinned, restore the normal system hardware cursor! */
#team-thumbnails-container.is-frozen,
#team-thumbnails-container.is-frozen * {
    cursor: auto !important;
}

/* ── Custom Cursor ── */
#team-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 64px;
    height: 64px;
    background: #F00020;
    border-radius: 50%;
    pointer-events: none;
    /* Lets clicks pass through to thumbs */
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translate(-10%, -10%) scale(0);
    will-change: transform, opacity;
}

#team-cursor svg {
    width: 28px;
    height: 28px;
    display: block;
}

/* ===== HOME HERO (data-tab) ===== */

#home-hero {
    position: relative;
    width: 100%;
    height: calc(100vh - 83px);
    flex-shrink: 0;
    background: #000;
    overflow: hidden;
}

/* ===== UPDATED HOME HERO VIDEO ===== */

/* 1. The Video Box */
#home-video-bg {
    position: absolute;
    top: 0px;
    left: 36px;
    bottom: 36px;
    width: calc(100% - 72px);
    height: calc(100% - 36px);
    z-index: 0;
    border: none;
    pointer-events: none;
    /* Prevents iframe from intercepting mouse clicks/scrolls */

    /* Really small border radius */
    border-radius: 0px;

    filter: grayscale(20%) contrast(110%) brightness(95%);
    animation: anduril-zoom 30s linear infinite alternate;

    /* Prepares the video to smoothly transition */
    transition: filter 0.5s ease;
}

/* 2. The Overlay (Must match video size perfectly) */
#home-overlay {
    position: absolute;
    top: 16px;
    bottom: 24px;
    left: 32px;
    right: 32px;
    width: calc(100% - 64px);
    height: calc(100% - 40px);

    border-radius: 2px;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 15%);
}

/* 3. The Content Box */
#home-content {
    position: absolute;
    top: 16px;
    bottom: 24px;
    left: 32px;
    right: 32px;
    width: calc(100% - 64px);
    height: calc(100% - 40px);

    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 40px 32px;
}

/* =========================================
   4. FUTURE EXPANDABLE NAV BAR SUPPORT
   Add this class to your video using JavaScript 
   when the user clicks the menu button.
========================================= */
#home-video-bg.nav-open-blur {
    /* Darkens the video further so text above it is readable */
    filter: grayscale(20%) contrast(110%) brightness(50%);
}

#home-eyebrow {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #c8c800;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s;
}

#home-headline {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: clamp(3rem, 5.8vw, 5.6rem);
    font-weight: 200;
    line-height: 1.02;
    letter-spacing: -1px;
    color: #ffffff;
    margin-bottom: 24px;
    max-width: 700px;
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.85s ease 0.45s, transform 0.85s ease 0.45s;
}

#home-headline strong {
    font-weight: 800;
}

#home-sub {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
    max-width: 420px;
    margin-bottom: 38px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s ease 0.75s, transform 0.7s ease 0.75s;
}

#home-cta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease 1.0s, transform 0.6s ease 1.0s;
}

.home-btn-primary {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #000;
    background: #ffffff;
    border: none;
    padding: 13px 32px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.home-btn-primary:hover {
    background: #c8c800;
    color: #000;
}

.home-btn-ghost {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 12px 30px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.home-btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.65);
    color: #fff;
}

#home-stats {
    position: absolute;
    top: 50%;
    right: 56px;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 30px;
    opacity: 0;
    transition: opacity 0.8s ease 1.2s;
}

.home-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.home-stat-val {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.home-stat-lbl {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.32);
}

.home-stat-divider {
    width: 22px;
    height: 1px;
    background: rgba(200, 200, 0, 0.5);
    align-self: flex-end;
}

#home-scroll-hint {
    display: none !important;
}

#home-scroll-hint span {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.22);
}

#home-scroll-line {
    width: 1px;
    height: 28px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
    animation: homeLineAnim 2s ease-in-out infinite;
}

@keyframes homeLineAnim {

    0%,
    100% {
        opacity: 0.25;
    }

    50% {
        opacity: 0.85;
    }
}

#data-tab.home-visible #home-eyebrow,
#data-tab.home-visible #home-headline,
#data-tab.home-visible #home-sub,
#data-tab.home-visible #home-cta-row,
#data-tab.home-visible #home-stats,
#data-tab.home-visible #home-scroll-hint {
    opacity: 1;
    transform: translateY(0);
}

/* ── Sponsors Light Theme Overrides ── */
body.sponsors-light-theme {
    background: #ffffff !important;
    color: #000000 !important;
}

body.sponsors-light-theme #toolbar {
    background: rgba(255, 255, 255, 0.6) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

body.sponsors-light-theme .toolbar-btn {
    color: #000000 !important;
}

body.sponsors-light-theme .toolbar-btn span {
    font-weight: 400 !important;
}

body.sponsors-light-theme .toolbar-btn:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #000000 !important;
}

body.sponsors-light-theme .toolbar-btn.active {
    color: #000000 !important;
}

body.sponsors-light-theme #brand-accent {
    color: #000000 !important;
    font-weight: 400;
}

body.sponsors-light-theme #sp-hero {
    background: #ffffff !important;
}

body.sponsors-light-theme #sp-hero-display {
    color: #000000 !important;
    font-size: 90px;
    font-weight: 600;
}

body.sponsors-light-theme #sp-hero-category {
    color: rgba(0, 0, 0, 0.759) !important;
    font-size: 13px;
    font-weight: 400;
}

body.sponsors-light-theme #sp-hero-motto {
    color: rgba(0, 0, 0, 0.6) !important;
}

body.sponsors-light-theme #sp-hero-desc {
    color: rgba(0, 0, 0, 0.426) !important;
}

body.sponsors-light-theme .sp-hero-link {
    color: rgba(0, 0, 0, 0.6) !important;
}

body.sponsors-light-theme .sp-hero-link:hover {
    color: #000000 !important;
}

body.sponsors-light-theme #sponsors-page,
body.sponsors-light-theme #sponsors-tab {
    background: #ffffff !important;
}

body.sponsors-light-theme #sp-next-page {
    background: #000000 !important;
}

body.sponsors-light-theme #trinetra-logo {
    filter: invert(1);
}

/* -- React Sponsor Component Styles -- */
.react-sp-container {
    position: relative;
    display: flex;
    overflow: hidden;
    margin: 0 auto;
}

.react-sp-button-collapsed {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 16px 44px;
    color: #ffffff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
}

.react-sp-button-collapsed:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #ffffff !important;
}

.react-sp-form-expanded {
    background: #ffffff;
    color: #000000;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    padding: 40px;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    cursor: default;
    box-sizing: border-box;
    margin: 0 auto;
}

.react-sp-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 24px;
}

.react-sp-form-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
}

.react-sp-close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    color: #555;
}

.react-sp-close-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #000;
}

.react-sp-form-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
}

.react-sp-full-width {
    grid-column: span 2;
}

.react-sp-field-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.react-sp-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
}

.react-sp-input,
.react-sp-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.react-sp-input:focus,
.react-sp-textarea:focus {
    outline: none;
    border-color: #000;
}

.react-sp-textarea {
    resize: vertical;
}

.react-sp-submit-btn {
    margin-top: 8px;
    width: 100%;
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 16px;
    font-family: inherit;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.react-sp-submit-btn:hover {
    background: #333333;
}

/* ===== MOBILE STYLING (max-width: 768px) ===== */
@media (max-width: 768px) {

    /* 1. Header Toolbar & Mobile Menu */
    #toolbar {
        height: 60px;
        /* Reduced height on mobile */
        padding: 0 10px;
    }

    #trinetra-logo {
        height: 40px;
        /* Smaller logo on mobile */
        margin-left: 5px;
    }

    #brand-accent {
        font-size: 15px;
        /* Smaller text */
    }

    #nav-tabs {
        display: none !important;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.96);
        flex-direction: column;
        align-items: stretch !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 10px 0;
    }

    #nav-tabs.mobile-open {
        display: flex !important;
    }

    .toolbar-btn {
        height: 48px;
        /* minimum touch height */
        padding: 0 20px;
        min-width: unset;
        justify-content: flex-start;
        /* Align left in menu drawer */
    }

    .toolbar-btn span {
        font-size: 15px;
    }

    #mobile-menu-btn {
        display: flex !important;
    }

    #toolbar-right {
        padding-right: 5px;
    }

    #connect-btn {
        height: 40px;
        padding: 0 15px;
    }

    #connect-btn span {
        font-size: 12px;
    }

    /* 2. Fluid Connect Panel */
    #connect-panel {
        width: calc(100vw - 20px) !important;
        right: 10px !important;
        left: 10px !important;
        top: calc(100% + 2px);
        max-width: none;
    }

    .cp-input,
    .cp-select,
    .cp-btn-submit,
    .cp-tab {
        min-height: 44px;
        /* touch target size */
    }

    /* 3. Team Profiles Section */
    #team-bg-text-container {
        padding-top: 130px;
    }

    .letter-inner {
        font-size: clamp(1.2rem, 5vw, 6.5rem);
        /* Scaled down typography */
    }

    #team-thumbnails-container {
        width: calc(100% - 24px);
        height: 80px;
        top: 15px;
    }

    /* Disable custom cursor physics on mobile/touch screens (since mouse moves don't make sense) */
    #team-cursor {
        display: none !important;
    }

    #team-thumbnails-container {
        cursor: pointer !important;
    }

    /* 4. Simulation Tab (Carousel stacking) */
    .sv-card {
        flex-direction: column !important;
        height: auto !important;
        max-height: none !important;
    }

    .sv-player-wrap {
        flex: unset !important;
        width: 100% !important;
        height: 56.25vw !important;
        /* 16:9 aspect ratio */
        min-height: 200px;
    }

    .sv-body {
        border-left: none !important;
        border-top: 1px solid #1c1c1c;
        padding: 20px;
    }

    .sv-arrow {
        width: 44px !important;
        height: 44px !important;
    }

    .sv-arrow--prev {
        left: 15px !important;
    }

    .sv-arrow--next {
        right: 15px !important;
    }

    /* Dot touch target expander */
    .sv-dot {
        position: relative;
    }

    .sv-dot::after {
        content: '';
        position: absolute;
        top: -15px;
        left: -15px;
        right: -15px;
        bottom: -15px;
    }

    /* 5. Vehicles Stacking Layout */
    .veh-entry {
        flex-direction: column !important;
        max-height: none !important;
        min-height: unset !important;
    }

    .veh-text {
        width: 100% !important;
        border-right: none !important;
        border-left: none !important;
        border-bottom: 1px solid #181818;
        padding: 24px 20px;
    }

    .veh-image-wrap {
        width: 100% !important;
        height: 240px !important;
    }

    /* 6. React Sponsor Form Stacking */
    .react-sp-form-fields {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .react-sp-full-width {
        grid-column: span 1 !important;
    }

    .react-sp-form-expanded {
        padding: 20px !important;
    }

    .react-sp-input,
    .react-sp-textarea,
    .react-sp-submit-btn {
        min-height: 44px;
    }

    /* 7. Sponsors Motto Stacking */
    #sp-hero {
        padding: 140px 20px 24px 20px !important;
    }

    #sp-hero-text-row {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    #sp-hero-motto,
    #sp-hero-desc {
        max-width: none !important;
        width: 100% !important;
    }
}

/* ===== HOME TAB CUSTOM STYLING ===== */
.home-section {
    width: 100%;
    padding: 80px 40px;
    display: flex;
    justify-content: center;
    background: #0a0a0c;
}

.home-mission {
    background: #111113;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.home-container {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.section-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 1px;
    color: #ffffff;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.section-desc {
    font-size: 16px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    max-width: 800px;
}

/* Capabilities grid style */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    width: 100%;
    margin-top: 20px;
}

.capability-card {
    background: #111113;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 32px;
    border-radius: 4px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.capability-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
}

.cap-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.cap-num {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-color);
    font-family: monospace;
}

.cap-title {
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.cap-desc {
    font-size: 13px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

/* Mid-Page Parallax section */
.home-parallax-section {
    width: 100%;
    height: 350px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-parallax-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 12, 0.75);
    z-index: 1;
}

.home-parallax-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.parallax-tagline {
    font-size: 32px;
    font-weight: 200;
    letter-spacing: 8px;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* Updates carousel style */
.updates-carousel-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
    padding-bottom: 40px;
}

.updates-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.update-slide {
    flex: 0 0 33.333%;
    padding: 0 16px;
    box-sizing: border-box;
}

.update-card {
    background: #111113;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 32px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.update-date {
    font-size: 11px;
    font-family: monospace;
    color: var(--accent-color);
}

.update-title {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
}

.update-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

.updates-controls {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 24px;
    width: 100%;
}

.update-arrow {
    background: #111113;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: background 0.2s, border-color 0.2s;
}

.update-arrow:hover {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
}

.updates-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.update-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.update-dot.active {
    background: var(--accent-color);
    transform: scale(1.3);
}

@media (max-width: 900px) {
    .capabilities-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .update-slide {
        flex: 0 0 100%;
    }
    .parallax-tagline {
        font-size: 20px;
        letter-spacing: 4px;
    }
}

/* ===== TEAM DETAILS CUSTOM STYLING ===== */
#team-details-section {
    width: 100%;
    padding: 60px 40px 120px;
    background: #0a0a0c;
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.team-details-container {
    width: 100%;
    max-width: 800px;
}

#team-details-card {
    background: #111113;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
    border-radius: 6px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
}

#team-details-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
    border-radius: 6px 6px 0 0;
}

.td-header {
    display: flex;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 24px;
}

.td-photo-wrap {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-color);
    flex-shrink: 0;
    background: #222;
}

.td-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.td-title-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#td-role-eyebrow {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--accent-color);
    text-transform: uppercase;
}

#td-name {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

#td-role {
    font-size: 14px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
}

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

.td-grid-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 16px;
    border-radius: 4px;
}

.td-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

.td-value {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
}

.td-work-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.td-work-text {
    font-size: 14px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .td-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    .td-photo-wrap {
        margin: 0 auto;
    }
    .td-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    #td-name {
        font-size: 24px;
    }
    #team-details-card {
        padding: 24px;
    }
}