/* ── Design tokens ───────────────────────────────────────── */
:root {
    --bg: #080f1c;
    --surface: #0d1a2c;
    --border: #172840;
    --accent: #0099cc;
    --accent2: #0066ee;
    --text: #dce8f5;
    --text-dim: #7a9ab8;
    --white: #ffffff;
    --danger: #ff4d6a;
    --font-head: 'Bebas Neue', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: clip;   /* clip ≠ hidden: does NOT create a scroll container, so position:sticky works */
}

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

ul {
    list-style: none;
}

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

/* ── Utility ─────────────────────────────────────────────── */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section-label {
    font-family: var(--font-mono);
    font-size: .75rem;
    letter-spacing: .18em;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: .75rem;
}

.section-title {
    font-family: var(--font-head);
    font-size: clamp(2.4rem, 5vw, 4rem);
    color: var(--text);
    line-height: 1;
    letter-spacing: .03em;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 2rem;
    font-family: var(--font-mono);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    border: 1px solid var(--accent);
    color: var(--accent);
    background: transparent;
    cursor: pointer;
    transition: background .25s, color .25s;
    border-radius: 3px;
}

.btn:hover {
    background: var(--accent);
    color: #ffffff;
}

.btn-solid {
    background: var(--accent);
    color: #ffffff;
}

.btn-solid:hover {
    background: #0077aa;
}

/* ── Scroll-driven CFD streamline background ─────────────── */
#scroll-bg-canvas {
    display: block;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* grid removed — canvas is the single background effect */
.grid-bg { display: none; }

/* ── NAV ─────────────────────────────────────────────────── */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 3rem;
    background: #111114;
    box-shadow: 0 1px 0 rgba(0,0,0,0.12);
    transition: box-shadow .3s;
}


/* bottom stripe that fades at both edges */
#navbar::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 200, 255, 0.12) 20%,
        rgba(0, 200, 255, 0.25) 50%,
        rgba(0, 200, 255, 0.12) 80%,
        transparent 100%
    );
    pointer-events: none;
}

/* water trail rendered on canvas injected by navbar.js */

#navbar.scrolled {
    box-shadow: 0 10px 48px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0,200,255,0.05) inset;
}

.nav-logo {
    font-family: var(--font-head);
    font-size: 1.9rem;
    letter-spacing: .08em;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: .55rem;
}

.nav-logo-mark {
    color: var(--accent);
    flex-shrink: 0;
}

.nav-logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    position: relative;
    font-family: var(--font-mono);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .1em;
    color: #b8d4f0;
    transition: color .2s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1.5px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s cubic-bezier(.4, 0, .2, 1);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

/* Mobile hamburger */
.nav-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .25rem;
}

.nav-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: background .2s, transform .3s, opacity .2s;
}

.nav-menu-btn:hover span { background: var(--accent); }

.nav-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-cta {
    display: flex;
    gap: 1rem;
}

.nav-cta .btn-solid {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #07090d;
}

.nav-cta .btn-solid:hover {
    background: #fbbf24;
    border-color: #fbbf24;
}

/* ── HOME BANNER ─────────────────────────────────────────── */
#home {
    position: relative;
    z-index: 1;
    overflow: hidden;
    min-height: 82vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: transparent;
}

/* Video background layer */
video.home-bg {
    display: none;
}

/* Ambient glow blobs — cyan tint unique to homepage */
.home-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 1;
}

.home-glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,180,255,0.18) 0%, transparent 70%);
    top: 10%;
    left: 5%;
    animation: blobDrift1 18s ease-in-out infinite alternate;
}

.home-glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245,158,11,0.12) 0%, transparent 70%);
    bottom: 20%;
    right: 8%;
    animation: blobDrift2 22s ease-in-out infinite alternate;
}

@keyframes blobDrift1 {
    0%   { transform: translate(0,   0);   }
    100% { transform: translate(60px, 40px); }
}

@keyframes blobDrift2 {
    0%   { transform: translate(0,   0);    }
    100% { transform: translate(-40px, -30px); }
}

/* Live badge */
.home-live-badge {
    position: absolute;
    top: 110px;
    right: 48px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(0,200,255,0.7);
    background: rgba(0,200,255,0.06);
    border: 1px solid rgba(0,200,255,0.18);
    border-radius: 100px;
    padding: 6px 14px;
    animation: revealUp 0.8s ease 1.1s both;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00c8ff;
    box-shadow: 0 0 8px rgba(0,200,255,0.8);
    animation: livePulse 1.8s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

/* ── HOME SPLIT ANIMATION ─────────────────────────────────── */
.home-split {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 4rem;
    padding: 148px 5% 60px;
    min-height: 82vh;
    position: relative;
    z-index: 3;
}

/* Phase 1: text col — no parent transform, children handle their own position */
.home-text-col {
    flex: 0 0 auto;
    width: min(640px, 90vw);
    margin: 0;
    text-align: center;
}

/* Phase 3: align left once elements have landed */
#home.text-left .home-text-col {
    text-align: left;
}

/* Phase 1: media col completely hidden */
.home-media-col {
    flex: 1;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    display: flex;
    flex-direction: column;
    transition: max-width 3s cubic-bezier(0.4, 0, 0.2, 1) 0.1s,
                opacity 2s ease 1.2s;
}

/* Phase 2: media col reveals, stretches to right edge */
#home.split-done .home-media-col {
    max-width: 900px;
    opacity: 1;
}

.home-media-box {
    position: relative;
    flex: 1;
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(0, 200, 255, 0.18);
    overflow: hidden;
    background: rgba(0, 12, 30, 0.55);
}

/* Crossfade slideshow */
.home-media-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: homeSlideFade 12s infinite;
}

.home-media-slide:nth-child(1) { animation-delay:  0s; }
.home-media-slide:nth-child(2) { animation-delay:  3s; }
.home-media-slide:nth-child(3) { animation-delay:  6s; }
.home-media-slide:nth-child(4) { animation-delay:  9s; }

@keyframes homeSlideFade {
    0%, 5%    { opacity: 0; }
    10%, 22%  { opacity: 1; }
    27%, 100% { opacity: 0; }
}

.home-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    color: rgba(0,200,255,0.75);
    text-transform: uppercase;
    margin-bottom: 1.4rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    animation: eyebrowIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.home-eyebrow::before {
    content: '';
    display: block;
    width: 18px;
    height: 2px;
    background: #00d4ff;
    border-radius: 2px;
}

.home-title {
    font-family: var(--font-head);
    font-size: clamp(3rem, 6vw, 6.5rem);
    line-height: 0.93;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 1.6rem;
    text-shadow:
        0 0 80px rgba(255,255,255,0.12),
        0 4px 40px rgba(0,0,0,0.95);
}

.home-title em {
    font-style: normal;
    display: block;
    white-space: nowrap;
    color: #00d4ff;
    -webkit-text-fill-color: #00d4ff;
    text-shadow:
        0 0 60px rgba(0,212,255,0.55),
        0 4px 40px rgba(0,0,0,0.98);
    filter: none;
    animation: revealUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

.home-sub {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(200,220,255,0.70);
    max-width: 52ch;
    margin: 0 auto 2rem;
    line-height: 1.85;
}

#home.text-left .home-sub {
    margin-left: 0;
    margin-right: 0;
}

.home-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

#home.text-left .home-actions {
    justify-content: flex-start;
}

#home .btn {
    padding: 1rem 2.4rem;
    font-size: 0.8rem;
    border-radius: 8px;
}

#home .btn-solid {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #07090d;
    box-shadow: 0 0 24px rgba(245,158,11,0.35);
}

#home .btn-solid:hover {
    background: #fbbf24;
    border-color: #fbbf24;
    box-shadow: 0 0 40px rgba(245,158,11,0.5);
}

#home .btn:not(.btn-solid) {
    border-color: rgba(0,200,255,0.35);
    color: rgba(0,200,255,0.85);
}

#home .btn:not(.btn-solid):hover {
    background: rgba(0,200,255,0.08);
    border-color: rgba(0,200,255,0.7);
    color: #ffffff;
}

/* Stats — horizontal divider row, centered */
.home-stats {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 2.2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    width: 100%;
}

#home.text-left .home-stats {
    justify-content: flex-start;
}

.home-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    flex: 1;
    padding: 0 1.5rem;
    border-right: 1px solid rgba(255,255,255,0.07);
}

.home-stat:last-child { border-right: none; }

#home.text-left .home-stat {
    align-items: flex-start;
}

.stat-num {
    font-family: var(--font-head);
    font-size: 2.4rem;
    color: #00d4ff;
    line-height: 1;
    text-shadow: 0 0 24px rgba(0,212,255,0.45);
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    color: rgba(200,220,255,0.45);
    text-transform: uppercase;
    white-space: nowrap;
    text-align: center;
}

/* ── Hero text animations ────────────────────────────────── */

/* Entrance: fade + rise while staying at centered X position */
@keyframes revealUpCenter {
    from { opacity: 0; transform: translateX(calc(45vw - 320px)) translateY(24px); }
    to   { opacity: 1; transform: translateX(calc(45vw - 320px)) translateY(0); }
}
@keyframes eyebrowInCenter {
    from { opacity: 0; transform: translateX(calc(45vw - 320px)); letter-spacing: 0.45em; }
    to   { opacity: 1; transform: translateX(calc(45vw - 320px)); letter-spacing: 0.22em; }
}

/* Collision: slam to left with bounce */
@keyframes collideLeft {
    0%   { transform: translateX(calc(45vw - 320px)); }
    68%  { transform: translateX(-18px); }
    82%  { transform: translateX(7px);  }
    92%  { transform: translateX(-3px); }
    100% { transform: translateX(0);    }
}

/* Phase 1: staggered entrance at centered position */
.hi-1 { animation: eyebrowInCenter  0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.10s both; }
.hi-2 { animation: revealUpCenter   0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both; }
.hi-3 { animation: revealUpCenter   0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.46s both; }
.hi-4 { animation: revealUpCenter   0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.62s both; }
.hi-5 { animation: revealUpCenter   0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.78s both; }

/* Phase 2: collision — each element slams left with stagger */
/* fill-mode: both = holds first keyframe (center) during delay, holds last (left) after end */
#home.split-done .hi-1 { animation: collideLeft 0.8s ease-in 0.00s both; }
#home.split-done .hi-2 { animation: collideLeft 0.8s ease-in 0.14s both; }
#home.split-done .hi-3 { animation: collideLeft 0.8s ease-in 0.28s both; }
#home.split-done .hi-4 { animation: collideLeft 0.8s ease-in 0.42s both; }
#home.split-done .hi-5 { animation: collideLeft 0.8s ease-in 0.56s both; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .home-split {
        flex-direction: column;
        padding: 100px 5% 48px;
        gap: 2.5rem;
    }
    .home-text-col {
        width: 100%;
        margin: 0;
    }
    .home-media-col {
        flex: 0 0 auto;
        max-width: 100% !important;
        width: 100%;
        opacity: 1 !important;
    }
    .home-media-box {
        width: 100%;
        height: 300px;
        flex: unset;
    }
}

@media (max-width: 700px) {
    .home-eyebrow::before { display: none; }
    .home-live-badge  { top: 90px; right: 20px; }
}



/* ── SERVICES ────────────────────────────────────────────── */
#services {
    background: #020c1b;
    position: relative;
    z-index: 1;
    padding: 3rem 0 3.5rem;
}

#services .container {
    padding: 0 0.75rem;
    max-width: 100%;
}

.services-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2rem;
}

#services .section-label {
    color: rgba(0, 207, 255, 0.85);
}

#services .section-label::before,
#services .section-label::after {
    background: rgba(0, 207, 255, 0.35);
}

#services .section-title {
    color: #ffffff;
    margin-bottom: 0.6rem;
    position: relative;
    display: inline-block;
}

#services .section-title em {
    font-style: normal;
    color: #00d4ff;
    -webkit-text-fill-color: #00d4ff;
}

#services .section-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin: 0.5rem auto 1rem;
}

.services-intro {
    font-size: 1rem;
    color: var(--text-dim);
    line-height: 1.75;
    max-width: 520px;
    margin: 0 auto;
}

.services-top-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
    background: transparent;
    padding: 0;
}

.services-bottom-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 1rem;
    margin-bottom: 2rem;
    background: transparent;
    padding: 0;
}

/* ── SERVICE CARD — full image hover reveal + 3D tilt ────── */
.service-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    min-height: 320px;
    border: 2px solid rgba(0, 200, 255, 0.28);
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    display: block;
}

/* Full bleed background image */
.service-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Per-card focal point adjustments */
.services-top-row, .services-bottom-row .service-card:nth-child(1) .service-card-img img { object-position: 15% 40%; }
.services-top-row, .services-bottom-row .service-card:nth-child(2) .service-card-img { background: #0e0c18; }
.services-top-row, .services-bottom-row .service-card:nth-child(2) .service-card-img img { object-fit: cover; object-position: center 55%; }
.services-top-row, .services-bottom-row .service-card:nth-child(3) .service-card-img img { object-position: 100% 35%; }
.services-top-row, .services-bottom-row .service-card:nth-child(4) .service-card-img img { object-position: center 20%; }
.services-top-row, .services-bottom-row .service-card:nth-child(5) .service-card-img img { object-position: 85% 90%; }
.services-top-row, .services-bottom-row .service-card:last-child  .service-card-img img { object-position: center 40%; }

.card-portal {
    display: none;
}

/* Default dark overlay — sits above canvas */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10,15,25,0.92) 0%,
        rgba(10,15,25,0.55) 45%,
        rgba(10,15,25,0.15) 100%
    );
    z-index: 2;
}

/* Content sits above overlay — anchored to bottom */
.service-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    padding: 1.4rem 1.6rem 1.6rem;
}

/* No-image card — CFD data-grid aesthetic */
.service-card-no-img {
    background:
        linear-gradient(rgba(0,207,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,207,255,0.04) 1px, transparent 1px),
        linear-gradient(135deg, #0b1829 0%, #0f2340 60%, #081524 100%);
    background-size: 32px 32px, 32px 32px, 100% 100%;
}
.service-card-no-img::after {
    content: '</>';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -70%);
    font-family: 'Courier New', monospace;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(0, 207, 255, 0.08);
    z-index: 0;
    pointer-events: none;
    letter-spacing: 4px;
}

.service-title {
    font-family: var(--font-body);
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    text-shadow:
        0 0 8px rgba(0,0,0,1),
        0 0 20px rgba(0,0,0,1),
        0 2px 4px rgba(0,0,0,1),
        0 4px 24px rgba(0,0,0,0.9);
}

.service-desc {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.92);
    line-height: 1.65;
    margin-bottom: 1rem;
    text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: #00d4ff;
    background: rgba(0,212,255,0.08);
    border: 1px solid rgba(0,212,255,0.28);
    border-radius: 8px;
    padding: 9px 16px;
    width: fit-content;
}



/* CTA card in grid */
.service-card-cta-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #1a2333 0%, #0f172a 100%);
    border: 1px solid rgba(245,158,11,0.2);
    text-decoration: none;
    min-height: 320px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

.service-card-cta-grid:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.2);
    border-color: rgba(245,158,11,0.5);
}

.service-card-cta-inner {
    text-align: center;
    padding: 2rem;
}

.service-card-cta-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(245,158,11,0.7);
    margin-bottom: 0.75rem;
}

.service-card-cta-heading {
    font-family: var(--font-head);
    font-size: 2rem;
    color: #ffffff;
    letter-spacing: 0.03em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.service-card-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    color: #1a2333;
    background: #f59e0b;
    border-radius: 8px;
    padding: 10px 22px;
    transition: background 0.3s, gap 0.3s;
}

.service-card-cta-grid:hover .service-card-cta-btn {
    background: #fbbf24;
    gap: 12px;
}

.services-cta {
    text-align: center;
}

/* ── 3-D CYLINDER SERVICES ───────────────────────────────── */
#services {
    height: 700vh;
    padding: 0;
    position: relative;
}

.services-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: clip;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 120px;
    padding-bottom: 16px;
    background: transparent;
}

#services {
    background: transparent;
}

#services .services-header {
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    margin-bottom: 10px;
}

/* 2-D carousel viewport — no perspective, no 3D, purely horizontal motion */
.cyl-scene {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: clip;
    position: relative;
}

/* Carousel anchor — 0×0 point at scene centre; JS drives each card independently */
.cyl-track {
    position: relative;
    width: 0;
    height: 0;
    flex-shrink: 0;
}

/* Cards: all stacked at centre, JS sets translateX + scale each frame */
#services .cyl-track .service-card {
    --card-h: min(460px, calc(100svh - 200px));
    position: absolute;
    width: 760px;
    height: var(--card-h);
    top: calc(var(--card-h) / -2);
    left: -380px;
    min-height: auto;
    display: block;
    transform-origin: center center;
    transition: opacity 0.25s ease;
    cursor: pointer;
    /* transparent so NS fluid shows through */
    background: rgba(0, 180, 255, 0.04);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Kill the dark overlay on cylinder cards so fluid is visible */
#services .cyl-track .service-card::before {
    background: linear-gradient(
        to top,
        rgba(5, 10, 20, 0.72) 0%,
        rgba(5, 10, 20, 0.18) 55%,
        transparent 100%
    );
}

/* Active (front) card — portal on, image off, content revealed */
/* Active card — highlight border only, no content animation */
#services .cyl-track .service-card.cyl-active { border-color: rgba(0,200,255,0.65); }

/* Bottom: dots + scroll hint */
.cyl-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0 1rem;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.cyl-dots { display: flex; gap: 0.5rem; align-items: center; }

.cyl-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(0,200,255,0.25);
    border: 1px solid rgba(0,200,255,0.45);
    cursor: pointer;
    transition: all 0.3s ease;
}
.cyl-dot.active {
    background: rgba(0,200,255,0.9);
    transform: scale(1.55);
    box-shadow: 0 0 10px rgba(0,200,255,0.55);
}

.cyl-scroll-hint {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(0,200,255,0.45);
    transition: opacity 0.6s ease;
    animation: cylHintBob 1.9s ease-in-out infinite;
}
@keyframes cylHintBob {
    0%,100% { transform: translateY(0);   opacity: 0.45; }
    50%      { transform: translateY(5px); opacity: 0.85; }
}

/* ── RESEARCH / CAPABILITIES ─────────────────────────────── */
#capabilities {
    position: relative;
    z-index: 1;
}

.capabilities-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 4rem;
}

.cap-visual {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    aspect-ratio: 4/3;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#cfd-canvas {
    width: 100%;
    height: 100%;
}

.cap-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cap-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.cap-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cap-num {
    font-family: var(--font-mono);
    font-size: .7rem;
    color: var(--text-dim);
    padding-top: .15rem;
    flex-shrink: 0;
}

.cap-item h3 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    color: var(--white);
    letter-spacing: .03em;
    margin-bottom: .25rem;
}

.cap-item p {
    font-size: .88rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* ── PROJECTS / CASE STUDIES ─────────────────────────────── */
#projects {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
}

.project-card {
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color .3s;
}

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

.project-thumb {
    height: 180px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: .7rem;
    color: var(--text-dim);
}

.project-body {
    padding: 1.5rem;
}

.project-tag {
    font-family: var(--font-mono);
    font-size: .65rem;
    letter-spacing: .12em;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: .5rem;
}

.project-title {
    font-family: var(--font-head);
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: .5rem;
}

.project-desc {
    font-size: .85rem;
    color: var(--text-dim);
    line-height: 1.65;
}

/* ── TEAM ────────────────────────────────────────────────── */
#team {
    position: relative;
    z-index: 1;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.team-card {
    text-align: center;
}

.team-avatar {
    width: 96px;
    height: 96px;
    margin: 0 auto 1rem;
    border-radius: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 1.8rem;
    color: var(--text-dim);
}

.team-name {
    font-family: var(--font-head);
    font-size: 1.2rem;
    color: var(--white);
    letter-spacing: .04em;
}

.team-role {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .1em;
    color: var(--text-dim);
    margin-bottom: .5rem;
}

.team-bio {
    font-size: .83rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* ── LAST SCREEN — contact + footer share one viewport ────── */
.last-screen {
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.last-screen #contact {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 0 1.5rem;   /* 80px clears fixed navbar */
    min-height: 0;
}

.last-screen #footer {
    flex-shrink: 0;
}

/* ── CONTACT ─────────────────────────────────────────────── */
#contact {
    position: relative;
    z-index: 1;
    background: rgba(8,15,28,0.76);
}

.contact-top {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.contact-heading {
    font-family: var(--font-head);
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    line-height: 0.92;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text);
    margin-top: 0.4rem;
}

.contact-heading-accent {
    color: #00d4ff;
}

.contact-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-desc {
    font-size: 1rem;
    color: var(--text-dim);
    line-height: 1.8;
    max-width: 400px;
    margin-bottom: 2rem;
}

.contact-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 3rem;
}

.contact-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.contact-detail-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

.contact-detail-val {
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--text-dim);
    text-decoration: none;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s;
}

a.contact-detail-val:hover { color: var(--text); }

.contact-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22dd88;
    box-shadow: 0 0 8px rgba(34,221,136,0.6);
    animation: livePulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .contact-body  { grid-template-columns: 1fr; gap: 2.5rem; }
    .contact-right { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .contact-right { grid-template-columns: 1fr; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    #navbar {
        padding: 1rem 1.5rem;
    }

    .nav-menu-btn {
        display: flex;
    }

    .nav-cta { display: none; }

    .nav-links {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(17, 17, 20, .97);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height .35s cubic-bezier(.4, 0, .2, 1), padding .35s;
    }

    .nav-links.open {
        max-height: 420px;
        padding: 1rem 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: .85rem 2rem;
        border-bottom: 1px solid rgba(36, 36, 40, .6);
    }

    .nav-links a::after { display: none; }

    .capabilities-layout {
        grid-template-columns: 1fr;
    }
}

/* ── Stat item ───────────────────────────────────────────── */
.stat-item {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

/* ── Section subtitle ────────────────────────────────────── */
.section-sub {
    color: var(--text-dim);
    max-width: 620px;
    margin-top: .75rem;
    font-size: .95rem;
    line-height: 1.7;
}

/* ── Capabilities extras ─────────────────────────────────── */
.cap-visual-label {
    position: absolute;
    bottom: .75rem;
    left: 1rem;
    font-family: var(--font-mono);
    font-size: .6rem;
    letter-spacing: .14em;
    color: var(--text-dim);
}

.cap-solvers {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cap-solver-label {
    font-family: var(--font-mono);
    font-size: .65rem;
    letter-spacing: .16em;
    color: var(--text-dim);
    flex-shrink: 0;
}

.cap-solver-chips {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}

.cap-chip {
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: .06em;
    color: var(--accent);
    border: 1px solid var(--border);
    padding: .3rem .8rem;
    transition: border-color .2s, background .2s;
}

.cap-chip:hover {
    border-color: var(--accent);
    background: rgba(0, 200, 255, .06);
}

/* ── INDUSTRIES ──────────────────────────────────────────── */
/* ── Industries — sticky panel (same pattern as services) ── */
#industries {
    position: relative;
    z-index: 1;
    height: 300vh;   /* scroll territory; sticky panel holds for ~3 viewports */
}

.industries-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: clip;
    display: flex;
    flex-direction: column;
    padding: 96px 0 1.5rem;
    background: transparent;
}

#industries .container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    width: 100%;
}

.industries-header {
    flex-shrink: 0;
    margin-bottom: 0.75rem;
}

#industries .section-label {
    margin-bottom: 0.2rem;
}

#industries .section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin-bottom: 0.2rem;
}

#industries .section-sub {
    font-size: .82rem;
    margin-top: 0.2rem;
    line-height: 1.45;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0.6rem;
    flex: 1;
    min-height: 0;
}

.industry-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    overflow: hidden;
    text-decoration: none;
    transition: border-color .3s, transform .3s;
    min-height: 0;
}

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

.industry-card-img {
    position: relative;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
}

.industry-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
    filter: brightness(.7) saturate(.85);
}

.industry-card:hover .industry-card-img img {
    transform: scale(1.07);
    filter: brightness(.85) saturate(1.1);
}

.industry-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.5) 0%, transparent 60%);
}

.industry-card-body {
    flex: 1;
    padding: 0.5rem 0.9rem;
    background: var(--surface);
    min-height: 0;
    overflow: hidden;
}

.industry-card-title {
    font-family: var(--font-head);
    font-size: 1.2rem;
    color: var(--white);
    letter-spacing: .04em;
    margin-bottom: .3rem;
}

.industry-card-desc {
    font-size: .78rem;
    color: var(--text-dim);
    line-height: 1.45;
    margin-bottom: .3rem;
}

.industry-card-link {
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .1em;
    color: var(--accent);
    text-transform: uppercase;
    transition: opacity .2s;
}

.industry-card:hover .industry-card-link {
    opacity: .7;
}

/* ── FORM SELECT ─────────────────────────────────────────── */
.form-select {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--white);
    padding: .75rem 2.5rem .75rem 1rem;
    font-family: var(--font-body);
    font-size: .9rem;
    outline: none;
    transition: border-color .2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a7090' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    cursor: pointer;
    width: 100%;
}

.form-select:focus { border-color: var(--accent); }

.form-select option {
    background: var(--surface);
    color: var(--white);
}

/* ── SERVICE DROPDOWNS ───────────────────────────────────── */
.service-dropdowns {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-top: .25rem;
}

.service-dropdown-item {
    border: 1px solid var(--border);
    padding: .85rem 1rem;
    background: rgba(0,0,0,.02);
    transition: border-color .2s;
}

.service-dropdown-item:hover {
    border-color: var(--accent);
}

.form-label-sub {
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .08em;
    color: var(--accent);
    margin-bottom: .4rem;
    display: block;
}


/* ── Responsive additions ────────────────────────────────── */
@media (max-width: 900px) {
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cap-solvers {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

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

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

/* ── Tools / Trust bar ───────────────────────────────────── */
#tools-bar {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.1rem 0;
}

#tools-bar .container {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.tools-bar-label {
    font-family: var(--font-mono);
    font-size: .65rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text-dim);
    white-space: nowrap;
    flex-shrink: 0;
    padding-right: 1.5rem;
    border-right: 1px solid var(--border);
}

.tools-list {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.tool-tag {
    font-family: var(--font-mono);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--text);
    opacity: .75;
    transition: opacity .2s;
}

.tool-tag:hover { opacity: 1; }

.tool-divider {
    color: var(--border);
    font-size: .85rem;
}

/* ── Service link ────────────────────────────────────────── */
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: 0;
    color: #b45309;
    background: rgba(245,158,11,0.07);
    border: 1px solid rgba(245,158,11,0.22);
    border-radius: 8px;
    padding: 10px 18px;
    margin-top: auto;
    width: fit-content;
    transition: background .25s, border-color .25s, gap .25s, color .25s;
}

.service-card:hover .service-link {
    background: rgba(245,158,11,0.15);
    border-color: rgba(245,158,11,0.5);
    color: #92400e;
    gap: 12px;
}

/* ── Amber CTA button ────────────────────────────────────── */
.btn-amber {
    background: #f59e0b;
    color: #1a2030;
    border-color: #f59e0b;
}

.btn-amber:hover {
    background: #d97706;
    border-color: #d97706;
    color: #ffffff;
}

/* ── Industry card fixes ─────────────────────────────────── */
.industry-card-title {
    color: var(--text) !important;
}

.industry-card-img {
    height: 240px;
}

/* ── Scroll reveal ───────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ── CASE STUDIES ORBITAL SECTION ────────────────────────── */

#capabilities.orbit-embed {
    padding: 3rem 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    background: rgba(5, 8, 15, 0.35);
}

#cap-streamlines { display: none; }

#orbit-starfield {
    display: none;
}

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

.orbit-embed-hdr {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 2rem 0;
    width: 100%;
    pointer-events: none;
}

.orbit-embed-stage {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
}

.orbit-wrap {
    position: relative;
    width: min(980px, 99vw);
    aspect-ratio: 980 / 400;
    overflow: visible;
}

.orbit-ring-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
    filter: none;
}

.orbit-sun {
    position: absolute;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px 2px rgba(0,200,255,0.25);
    pointer-events: none;
}

/* ── planets ── */
.planet {
    position: absolute;
    cursor: pointer;
    will-change: transform, left, top, opacity;
}

.planet-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    transition: transform 0.45s ease;
}

.planet.active .planet-inner {
    animation: floatBob 4.4s ease-in-out infinite;
    transition: none;
}

@keyframes floatBob {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

.planet-img-wrap { position: relative; }

.planet-pulse {
    position: absolute;
    inset: -14px;
    border-radius: 18px;
    border: 1.5px solid rgba(0,200,255,0.5);
    opacity: 0;
    pointer-events: none;
}

.layout-dual .planet-pulse { border-width: 2px; border-radius: 10px; }

.planet.active .planet-pulse { animation: orbPulse 2.5s ease-out infinite; }

@keyframes orbPulse {
    0%   { transform: scale(0.78); opacity: 0.65; }
    100% { transform: scale(1.55); opacity: 0; }
}

.planet-tag {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: var(--accent);
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-3px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.planet.active .planet-tag             { opacity: 0.88; transform: translateY(0); }
.planet:not(.active):hover .planet-tag { opacity: 0.52; transform: translateY(0); }

/* ── card layouts ── */
.planet-card   { display: flex; align-items: center; }
.layout-below  { flex-direction: column; align-items: center; gap: 0.55rem; }
.layout-right  { flex-direction: row;    align-items: center; gap: 0.65rem; }
.layout-dual   { flex-direction: row;    align-items: center; gap: 1.1rem;  }

.dual-panel      { display: flex; flex-direction: row;    align-items: center; gap: 0.45rem; }
.dual-panel-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.32rem; }

.dual-panel-label {
    font-family: var(--font-mono);
    font-size: 0.46rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: var(--accent);
    text-transform: uppercase;
    opacity: 0.65;
    white-space: nowrap;
}

/* ── CFD images ── */
.cfd-img {
    display: block;
    height: auto;
    min-height: 60px;
    opacity: 0;
    transition: filter 0.55s ease, opacity 0.4s ease;
    filter: brightness(0.97) saturate(1.05);
}

.cfd-img.img-ready { opacity: 1; }

.planet.active .cfd-img {
    filter: brightness(1.04) saturate(1.12);
}

.planet:not(.active):hover .cfd-img {
    filter: brightness(1.01) saturate(1.08);
}

.layout-below .cfd-img { width: 350px; }
.layout-right .cfd-img { width: 310px; }
.layout-dual  .cfd-img { width: 175px; }

/* ── scale panel ── */
.scale-panel {
    background: rgba(17, 17, 20, 0.85);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 5px;
    padding: 5px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.scale-horiz              { display: block; width: 300px;  height: auto; }
.scale-vert               { display: block; height: 148px; width: auto;  }
.layout-dual .scale-vert  { height: 120px; }

.cfd-scale { filter: invert(1) hue-rotate(180deg); }

/* ── info panel ── */
.orbit-embed-info {
    position: relative;
    z-index: 20;
    text-align: center;
    padding: 0 2rem 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

.orbit-embed-info-inner {
    max-width: min(580px, 90vw);
    min-height: 95px;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.orbit-embed-info-inner.fade { opacity: 0; transform: translateY(10px); }

.orbit-embed-type {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.orbit-embed-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.orbit-embed-desc {
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.75;
    color: var(--text-dim);
    max-width: 500px;
    margin: 0 auto 1.2rem;
}

.orbit-embed-cta {
    font-size: 0.75rem;
    padding: 0.65rem 1.6rem;
    border-radius: 4px;
}

/* ── nav ── */
.orbit-embed-nav {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding: 0.55rem 1rem 1.5rem;
    width: 100%;
}

.orbit-embed-arrow {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    cursor: pointer;
    padding: 0.28rem 0.55rem;
    border: 1px solid var(--border);
    border-radius: 3px;
    transition: color 0.2s, border-color 0.2s;
    user-select: none;
}

.orbit-embed-arrow:hover,
.orbit-embed-arrow:focus-visible {
    color: var(--accent);
    border-color: rgba(0,200,255,0.4);
    outline: none;
}

.orbit-embed-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--text-dim);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.orbit-embed-dot.active {
    background: var(--accent);
    transform: scale(1.7);
    box-shadow: 0 0 8px rgba(0,200,255,0.35);
}

/* ── responsive ── */
@media (max-width: 700px) {
    .layout-below .cfd-img  { width: min(260px, 62vw); }
    .layout-right .cfd-img  { width: min(210px, 52vw); }
    .layout-dual  .cfd-img  { width: min(115px, 26vw); }
    .scale-horiz             { width: min(220px, 58vw); }
    .scale-vert              { height: min(110px, 25vw); }
    .layout-dual .scale-vert { height: min(88px, 20vw); }
}

@media (max-width: 480px) {
    .layout-dual           { flex-direction: column; gap: 0.7rem; }
    .layout-below .cfd-img { width: min(230px, 76vw); }
    .scale-horiz           { width: min(200px, 74vw); }
}
