:root {
    --bg-primary: #050b14;
    --bg-secondary: #0a192f;
    --border-cyan: rgba(61, 204, 199, 0.35);
    --text-primary: #e0fbfc;
    --text-secondary: #8892b0;
    --accent-cyan: #3dccc7;
    --font-display: 'Michroma', sans-serif;
    --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Page background lives on its own fixed layer (painted once) instead of
   background-attachment: fixed, which forces a big repaint on every scroll/animation. */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(5, 11, 20, 0.82), rgba(10, 25, 47, 0.98)),
        url('assets/image/Metallic3.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Main header – can slide away */
header.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

header.site-header.is-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* Panel title becomes the sticky header */
.panel-inner h2 {
    position: sticky;
    top: 0;
    z-index: 50;
    margin: 0 0 1.5rem;
    padding: 1rem 0;
    background: linear-gradient(
        to bottom,
        rgba(5, 11, 20, 0.96) 60%,
        rgba(5, 11, 20, 0.85) 100%
    );
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(61, 204, 199, 0.2);
    font-family: 'Michroma', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    letter-spacing: 0.1em;
    color: var(--accent-cyan);
    text-transform: uppercase;
}

/* Home doesn’t use this behaviour */
#panel-home .panel-inner h2,
#panel-home h2 {
    position: static;
    background: none;
    border: none;
    backdrop-filter: none;
}

.panel-inner h2 {
    padding: 1.1rem auto;
    text-shadow: 0 0 12px rgba(61, 204, 199, 0.35);
}

/* ========== HEADER ========== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 25, 47, 0.85);
    background-image:
        linear-gradient(rgba(5, 11, 20, 0.82), rgba(10, 25, 47, 0.92)),
        url('assets/image/Metallic3.jpg');
    background-size: cover;
    background-position: bottom;
    backdrop-filter: blur(2px);
    opacity: 0.95;
}

.header-inner {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 1.05rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.brand-logo {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--border-cyan);
    box-shadow: 0 0 10px rgba(61, 204, 199, 0.3);
    cursor: pointer;
}

.header-titles {
    min-width: 0;
}

.header-titles h1 {
    font-family: 'Michroma', sans-serif;
    font-size: clamp(0.95rem, 2.2vw, 1.8rem);
    letter-spacing: 1em;
    -webkit-text-stroke: 0.6px currentColor;
    paint-order: stroke fill;
    text-transform: uppercase;
    color: var(--text-primary);
    text-shadow: 0 0 15px rgba(61, 204, 199, 0.4);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-titles p {
    font-family: 'Michroma', sans-serif;
    font-size: clamp(0.58rem, 1.4vw, 0.85rem);
    letter-spacing: 0.15em;
    color: var(--accent-cyan);
    margin: 0;
}

.btn-login {
    background: transparent;
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    padding: 0.5rem 1rem;
    font-family: inherit;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-login:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    box-shadow: 0 0 12px rgba(61, 204, 199, 0.6);
}

.mobile-login-bar {
    display: none;
}

/* ========== NAV ========== */
.nav-home-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.72rem 0.7rem;
    font-family: 'Michroma', sans-serif;
    font-size: clamp(0.68rem, 1.2vw, 0.74rem);
    letter-spacing: 0.1em;
    color: var(--text-primary);
    text-transform: uppercase;
    transition: color 0.2s ease, background 0.2s ease;
    user-select: none;
}

.nav-home-btn:hover {
    color: var(--accent-cyan);
    background: rgba(61, 204, 199, 0.08);
}

.overlay-nav-bar {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    border-top: 1px solid rgba(61, 204, 199, 0.15);
}

.btn-access {
    background: transparent;
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    padding: 0.35rem 0.85rem;
    font-family: inherit;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-access:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    box-shadow: 0 0 10px rgba(61, 204, 199, 0.6);
}

/* Nav links: hover previews the sphere, click opens the panel */
.nav-link-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.70rem 1.4rem 0.70rem 0.7rem;
    font-family: 'Michroma', sans-serif;
    font-size: clamp(0.64rem, 1.6vw, 0.78rem);
    letter-spacing: 0.1em;
    color: var(--text-primary);
    text-transform: uppercase;
    transition: transform 0.25s ease, text-shadow 0.25s ease, color 0.25s ease, background 0.2s ease;
    user-select: none;
}

.nav-link-btn:hover,
.nav-link-btn:focus-visible {
    color: #fff;
    background: rgba(61, 204, 199, 0.08);
    transform: scale(1.06);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
    outline: none;
}

.nav-link-btn.is-current {
    color: var(--accent-cyan);
    box-shadow: inset 0 -2px 0 var(--accent-cyan);
}

.sphere-mode-btn {
    background: transparent;
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    padding: 0.38rem 0.95rem;
    font-family: 'Michroma', sans-serif;
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sphere-mode-btn:hover {
    background: rgba(61, 204, 199, 0.12);
}

.sphere-mode-btn.active {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    box-shadow: 0 0 10px rgba(61, 204, 199, 0.45);
}

/* ========== MAIN + APP LAYOUT ========== */
#main-content {
    flex: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    padding-top: 180px;
}

.app-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 992px) {
    .app-layout {
        grid-template-columns: 0.95fr 1.05fr;
    }
}

.content-side {
    min-width: 0;
}

.sphere-side {
    position: sticky;
    top: 1rem;
    min-width: 0;
}

.content-panel {
    display: none;
    animation: fadeIn 0.25s ease;
}

.content-panel.active {
    display: block;
}

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

/* ========== Prompter Overlay ========== */
.diagram-container {
    position: relative; /* needed for overlay */
}

.sphere-prompter {
    position: absolute;
    top: 10px;
    left: 50px;
    right: 50px;
    z-index: 5;
    max-width: 92%;
    pointer-events: none;
    font-family: var(--font-body);
    font-size: clamp(0.85rem, 1.15vw, 1rem);
    letter-spacing: 0.03em;
    line-height: 1.7;
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(5, 11, 20, 0.95), 0 0 22px rgba(61, 204, 199, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sphere-prompter.is-active {
    opacity: 1;
}

/* Home card hover previews: larger than the typed panel text */
.sphere-prompter.is-preview {
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    line-height: 1.6;
    text-align: center;
    font-weight: 700;
    margin-inline: auto;
}
.sphere-prompter.is-preview b,
.sphere-prompter.is-preview strong { font-weight: 800; color: var(--accent-cyan); }
.sphere-prompter.is-preview img { max-width: 100%; max-height: 120px; display: block; margin: 0.4rem auto; }

.prompter-cursor {
    display: inline-block;
    margin-left: 1px;
    animation: blink 0.9s step-end infinite;
    color: var(--accent-cyan);
}

.sphere-prompter.is-done .prompter-cursor {
    opacity: 0.35;
}

@keyframes blink {
    50% { opacity: 0; }
}

/*========= CORE COMPONENTS PROMPTER ====*/
.intro-sublist {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.intro-subitem {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 0.85rem;
    background: rgba(5, 11, 20, 0.35);
    border: 1px solid rgba(61, 204, 199, 0.2);
    border-radius: 4px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.88rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.intro-subitem:hover,
.intro-subitem.is-active {
    border-color: rgba(61, 204, 199, 0.55);
    background: rgba(61, 204, 199, 0.08);
    color: var(--text-primary);
}

.intro-subitem strong {
    color: var(--text-primary);
}

.intro-subitem-desc {
    color: var(--text-secondary);
}

.intro-subitem-chevron {
    flex-shrink: 0;
    font-size: 0.65rem;
    color: var(--accent-cyan);
    transition: transform 0.25s ease;
}

.intro-subitem.is-active .intro-subitem-chevron {
    transform: rotate(-90deg); /* points left when active */
}

/* ========== SPHERE ========== */
.diagram-container {
    position: relative;         
    width: 100%;
    min-height: 420px;
    height: 55vh;
    max-height: 640px;
    border-radius: 0.5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: transparent;
    -webkit-mask-image: radial-gradient(ellipse at center, black 70%, transparent 100%);
    mask-image: radial-gradient(ellipse at center, black 70%, transparent 100%);
    transition: filter 0.25s ease, opacity 0.25s ease;
}

.diagram-container.is-dimmed #sphere-canvas-target {
    filter: brightness(0.4) saturate(0.8);
    transition: filter 0.25s ease;
}

.diagram-container.is-dimmed:hover #sphere-canvas-target {
    filter: none;
}

#sphere-canvas-target {
    width: 100%;
    height: 100%;
    cursor: grab;
    transition: filter 0.3s ease;
}

/* Home card hover: dim the sphere a little so the explainer reads clearly */
.diagram-container.is-previewing #sphere-canvas-target {
    filter: brightness(0.72) saturate(0.9);
}

#sphere-canvas-target:active {
    cursor: grabbing;
}

.sphere-controls {
    display: none;
    gap: 0.6rem;
    margin-top: 0.85rem;
    justify-content: center;
}

.sphere-btn {
    background: transparent;
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    padding: 0.35rem 0.9rem;
    font-family: 'Michroma', sans-serif;
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sphere-btn:hover {
    background: rgba(61, 204, 199, 0.12);
}

.sphere-btn.active {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    box-shadow: 0 0 10px rgba(61, 204, 199, 0.45);
}

/* ========== PANEL TEXT ========== */
.panel-inner {
    max-width: 900px;
    margin: 0 auto;
}

.panel-inner h2 {
    font-family: 'Michroma', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    letter-spacing: 0.1em;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.panel-inner p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* ========== SYSTEM NETWORK BOTTOM PANEL ========== */
.ops-console {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    overflow: hidden;
    margin-top: 0.75rem;
    padding: 0.7rem 0.9rem;
    border-radius: 0px;
    background: transparent;
    font-family: 'Michroma', sans-serif;
    letter-spacing: 0.08em;
    text-align: right;
}

/* Scanner: a bright segment ping-pongs along the top hairline */
.ops-console::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 18%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184, 255, 251, 0.95), #fff, rgba(184, 255, 251, 0.95), transparent);
    box-shadow: 0 0 8px 1px rgba(61, 204, 199, 0.6);
    transform: translateX(0);
    pointer-events: none;
    z-index: 2;
    animation: scanLine 3.6s ease-in-out infinite alternate;
}

.ops-console::after {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    pointer-events: none;
    z-index: 1;
}

@keyframes scanLine {
    from { transform: translateX(0); }
    to   { transform: translateX(344%); }
}

/* Icon box (sits immediately left of the SYSTEM NETWORK label) */
.ops-console-icon {
    position: relative;
    z-index: 2;
    width: 52px;
    height: 52px;
    zoom: 0.6;                 /* drawn at 52px, shown at ~31px so it sits right beside the label */
    margin: -13px 0;           /* (zoomed, so ~-8px) keeps the label line the same height as before */
    flex-shrink: 0;
    border: 0px solid rgba(61, 204, 199, 0.3);
    border-radius: 0px;
    background: rgba(61, 204, 199, 0.05);

}

/* Text block (right) */
.ops-console-body {
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 0;
}

.ops-console-line {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.ops-label {
    font-size: 0.64rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
}

.ops-led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #3dccc7;
    box-shadow: 0 0 8px rgba(61, 204, 199, 0.9);
    animation: ledPulse 1.2s ease-in-out infinite;
}

@keyframes ledPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(61, 204, 199, 0.9); }
    50%      { opacity: 0.35; box-shadow: 0 0 2px rgba(61, 204, 199, 0.3); }
}

.ops-console-feed {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.ops-line {
    font-family: var(--font-body);
    letter-spacing: 0.03em;
    font-size: clamp(0.68rem, 1.2vw, 0.76rem);
    color: var(--text-primary);
    opacity: 0.9;
}

.ops-line-dim {
    color: var(--text-secondary);
    opacity: 0.75;
}

/* Icons */
.ops-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.ops-console-icon[data-icon="home"] .ops-icon-server,
.ops-console-icon[data-icon="introduction"] .ops-icon-building,
.ops-console-icon[data-icon="documentation"] .ops-icon-monitor,
.ops-console-icon[data-icon="information"] .ops-icon-reader,
.ops-console-icon[data-icon="ops-extra"] .ops-icon-card,
.ops-console-icon[data-icon="accessories"] .ops-icon-cctv {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.ops-icon-server {
    width: 22px;
    height: 28px;
    border: 2px solid #00f3ff;
    border-radius: 2px;
    box-shadow:
        inset 0 7px 0 -5px #00f3ff,
        inset 0 14px 0 -5px #00f3ff,
        inset 0 21px 0 -5px #00f3ff;
}

.ops-icon-monitor {
    width: 28px;
    height: 18px;
    border: 2px solid #00c2ff;
    border-radius: 2px;
}
.ops-icon-monitor::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -7px;
    width: 10px;
    height: 5px;
    border: 2px solid #00c2ff;
    border-top: none;
    transform: translateX(-50%);
}

.ops-icon-reader {
    width: 18px;
    height: 24px;
    border: 2px solid #3dccc7;
    border-radius: 2px;
}
.ops-icon-reader::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 3px;
    right: 3px;
    height: 3px;
    background: #3dccc7;
    opacity: 0.85;
}

.ops-icon-cctv {
    width: 20px;
    height: 14px;
    border: 2px solid #5eead4;
    border-radius: 3px;
}
.ops-icon-cctv::before {
    content: '';
    position: absolute;
    right: -7px;
    top: 2px;
    width: 8px;
    height: 8px;
    border: 2px solid #5eead4;
    border-radius: 50%;
}

.ops-icon-card {
    width: 26px;
    height: 16px;
    border: 2px solid #22d3ee;
    border-radius: 2px;
}
.ops-icon-card::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 6px;
    height: 6px;
    border: 1px solid #22d3ee;
}

.ops-icon-building {
    width: 20px;
    height: 22px;
    border: 2px solid #0891b2;
    border-bottom-width: 3px;
}
.ops-icon-building::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 7px solid #0891b2;
}

/* Mobile */
@media (max-width: 640px) {
    .ops-console {
        gap: 0.65rem;
        padding: 0.55rem 0.7rem;
    }

    .ops-console-icon {
        width: 44px;
        height: 44px;
    }

    .ops-line {
        font-size: 0.66rem;
    }
}

/* ========== TABLET ========== */
@media (max-width: 991px) {
    #main-content {
        padding-top: 200px;   /* slightly less than desktop */
    }

    .sphere-side {
        position: relative;
        top: 0;
    }

.diagram-container {
        min-height: 320px;
        height: 48vh;
        max-height: 480px;
    }

    .sphere-prompter {
        top: 10px;
        left: 12px;
        right: 12px;
        font-size: clamp(0.55rem, 1.8vw, 0.7rem);
        line-height: 1.5;
    }
}

/* ========== MOBILE ========== */
@media (max-width: 640px) {
    .header-inner {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }

    .brand-group {
        gap: 0.65rem;
    }

    .brand-logo {
        width: 42px;
        height: 42px;
    }

    .header-inner .btn-login {
        display: none;
    }

    .mobile-login-bar {
        margin-top: 400px;
        display: flex;
        justify-content: center;
        padding: 1.25rem 1rem 0.5rem;
        width: 90%;
        max-width: 1400px;
        margin: 0 auto;
    }

    .mobile-login-bar .mobile-login-btn {
        width: 100%;
        max-width: 400px;
        padding: 0.75rem 1rem;
        font-size: 0.7rem;
        text-align: center;
        background: rgba(10, 25, 47, 0.55);
        box-shadow: 0 0 15px rgba(61, 204, 199, 0.25);
    }

    .overlay-nav-bar {
        padding: 0 0.5rem;
        gap: 0.2rem;
    }

    .nav-home-btn,
.nav-link-btn {
        padding: 0.55rem;
        font-size: 0.66rem;
        letter-spacing: 0.06em;
    }

    

    

    /* Keep top clearance for fixed header */
    #main-content {
        padding: 1rem;
        padding-top: 120px;   /* mobile header is shorter */
    }

    

    

.diagram-container {
        min-height: 260px;
        height: 40vh;
        max-height: 380px;
        padding: 0.35rem;
    }

    .sphere-prompter {
        top: 8px;
        left: 10px;
        right: 10px;
        max-width: 95%;
        font-size: clamp(0.5rem, 2.8vw, 0.62rem);
        line-height: 1.45;
        letter-spacing: 0.04em;
    }

    

    .sphere-controls {
        display: flex;
    }

    .site-footer {
        margin-top: 2rem;
        padding: 2rem 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header-inner {
        justify-content: center;
    }

    #main-content {
        padding-top: 190px;   /* even tighter on very small screens */
    }
}

/* Desktop: hide panel intros (shown in diagram prompter instead) */
@media (min-width: 992px) {
    .panel-intro {
        display: none;
    }

    .sphere-prompter {
        display: block; /* or leave as default */
    }
}

/* Tablet + mobile: hide panel intros (the dropdowns carry the content), hide diagram prompter */
@media (max-width: 991px) {
    .panel-intro {
        display: none;
    }

    .sphere-prompter {
        display: none !important;
    }
}

/*============== INTRODUCTION OPS PANEL =================*/
.intro-accordions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 1.75rem 0 2rem;
}

.intro-accordion {
    border: 0px solid var(--border-cyan);
    border-radius: 6px;
    background: rgba(10, 25, 47, 0.45);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.intro-accordion[open] {
    border-color: rgba(61, 204, 199, 0.55);
    box-shadow: 0 0 16px rgba(61, 204, 199, 0.12);
}

.intro-accordion summary {
    list-style: none;
    cursor: pointer;
    padding: 0.90em 1.12em;
    font-family: 'Michroma', sans-serif;
    font-size: clamp(0.68rem, 1.6vw, 0.82rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    user-select: none;
}

.intro-accordion summary::-webkit-details-marker { display: none; }

.intro-accordion summary::after {
    content: '▼';
    font-size: 0.65rem;
    color: var(--accent-cyan);
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.intro-accordion[open] summary::after {
    content: '◀';
}

.intro-accordion-body {
    padding: 0 1.15rem 1.2rem;
    border-top: 1px solid rgba(61, 204, 199, 0.15);
}

.intro-accordion-body p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0.9rem 0;
}

.intro-accordion-body p strong,
.intro-accordion-body p em {
    color: var(--accent-cyan);
    font-style: normal;
}

.intro-accordion-body ul {
    margin: 0.9rem 0 0.25rem 1.15rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.intro-accordion-body li {
    margin-bottom: 0.55rem;
}

.intro-accordion-body li strong {
    color: var(--text-primary);
}

.intro-startup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.intro-startup-card {
    border: 1px solid var(--border-cyan);
    border-radius: 6px;
    padding: 0.9rem 1rem;
    text-align: center;
}

.intro-startup-card strong {
    color: var(--accent-cyan);
    font-family: 'Michroma', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
}

/*====== CONSULTATION MODEL BUTTONS STYLING =====*/
.intro-startup-card {
    padding: 12px 18px;
    border: 1px solid rgba(0, 230, 230, 0.25);
    color: #00e0e0;
    background: rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    letter-spacing: 1px;
}

/* Hover glow */
.intro-startup-card:hover {
    border-color: rgba(0, 230, 230, 0.55);
    box-shadow: 0 0 12px rgba(0, 230, 230, 0.35);
    background: rgba(0, 230, 230, 0.08);
}

/* Active (clicked) state */
.intro-startup-card.is-active {
    border-color: rgba(0, 230, 230, 0.85);
    box-shadow: 0 0 16px rgba(0, 230, 230, 0.45);
    background: rgba(0, 230, 230, 0.12);
}

/*======== DOCUMENTATION PANEL ============*/
.doc-dropdowns {
    display: grid;
    gap: 0.65rem;
}

/* Dropdown container */
.doc-drop {
    border: 0px solid var(--border-cyan);
    border-radius: 6px;
    background: rgba(10, 25, 47, 0.45);
    overflow: hidden;
}

/* Header */
.doc-drop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.05rem;
    cursor: pointer;
    font-family: 'Michroma', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: var(--accent-cyan);
    transition: all 0.25s ease;
}

/* Hover glow */
.doc-drop-header:hover {
    background: rgba(0, 230, 230, 0.08);
    box-shadow: 0 0 12px rgba(0, 230, 230, 0.35);
}

/* Chevron rotation */
.doc-drop[open] .chevron {
    transform: rotate(180deg);
}

/* Body */
.doc-drop-body {
    padding: 0.55rem 1.05rem 1.05rem;
    color: var(--text-secondary);
}

.doc-drop-body ul {
    margin-left: 1.2rem;
    line-height: 1.6;
}

.doc-subitem {
    cursor: pointer;
    padding: 4px 2px;
    transition: all 0.25s ease;
}

.doc-subitem:hover {
    color: var(--accent-cyan);
    text-shadow: 0 0 8px rgba(0, 230, 230, 0.35);
}

.doc-subitem.is-active {
    color: var(--accent-cyan);
    text-shadow: 0 0 12px rgba(0, 230, 230, 0.45);
}

.doc-image {
    margin-top: 1rem;
    text-align: center;
}

.doc-image img {
    max-width: 100%;
    border: 1px solid var(--border-cyan);
    border-radius: 6px;
    padding: 4px;
}

/* ========== OPS EXTRA ========== */
.social-media-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-row span {
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.social-access {
    padding: 0.35rem 0.75rem;
    background: rgba(61, 204, 199, 0.12);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 3px;
    transition: background 0.2s ease, color 0.2s ease;
}

.social-access:hover {
    background: var(--accent-cyan);
    color: #0a0a0a;
}

/* ========== FOOTER ========== */
.site-footer {
    margin-top: 0;
    padding: 3rem 1.5rem;
    border-top: 1px solid var(--border-cyan);
    background: rgba(10, 25, 47, 0.85);
    background-image:
        linear-gradient(rgba(5, 11, 20, 0.82), rgba(10, 25, 47, 0.92)),
        url('assets/image/Metallic3.1.jpg');
    background-size: cover;
    background-position: top center;
    backdrop-filter: blur(2px);
}

.footer-content-wrap {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}

.footer-column h3 {
    font-family: 'Michroma', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
    color: var(--accent-cyan);
}

.footer-column h3 a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-column h3 a:hover {
    color: var(--text-primary);
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-column li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.15s ease;
}

.footer-column li a:hover {
    color: var(--accent-cyan);
}

.footer-content-wrap { display: flex; flex-direction: column; }
.footer-bottom { order: 2; width: 100%; }
.footer-collapse { order: 1; }
.footer-toggle { display: none; }
.footer-bottom {
    max-width: 1400px;
    margin: 2.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(61, 204, 199, 0.15);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ========== SPHERE STAGE + DETAILER (desktop) ========== */
.sphere-stage {
    position: relative;
}

.sphere-detailer {
    position: absolute;
    right: 0.5rem;
    bottom: 0.5rem;
    z-index: 6;
    width: min(290px, 62%);
    padding: 0.75rem 0.9rem;
    font-family: 'Michroma', sans-serif;
    background: linear-gradient(145deg, rgba(14, 35, 55, 0.42), rgba(8, 20, 35, 0.32));
    border: 1px solid rgba(61, 204, 199, 0.3);
    border-radius: 6px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.sphere-detailer.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.detailer-title {
    text-shadow: 0 1px 6px rgba(5, 11, 20, 0.9);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin: 0 0 0.45rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(61, 204, 199, 0.18);
}

.detailer-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.detailer-list li {
    font-family: var(--font-body);
    text-shadow: 0 1px 6px rgba(5, 11, 20, 0.9);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    line-height: 1.7;
    color: var(--text-primary);
    opacity: 0.9;
}

.detailer-list li::before {
    content: '\203A';
    color: var(--accent-cyan);
    margin-right: 0.5rem;
}

/* ========== TABLET + MOBILE: sphere sits under the panel content ========== */
@media (max-width: 991px) {
    .sphere-detailer { display: none; }

    /* Clear the fixed header using its measured height */
    #main-content {
        padding-top: calc(var(--header-h, 200px) + 0.75rem);
    }

    /* Sphere is the tap feedback here, so keep it readable */
    .diagram-container.is-dimmed #sphere-canvas-target {
        filter: brightness(0.8) saturate(0.9);
    }

    #sphere-canvas-target { touch-action: pan-y; }

    /* Mesh / Grid buttons overlay the bottom of the sphere */
    .sphere-controls {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0.35rem;
        margin: 0;
        z-index: 6;
    }

    .sphere-btn {
        padding: 0.25rem 0.7rem;
        font-size: 0.62rem;
        background: rgba(5, 11, 20, 0.6);
    }
}
.node-tip {
    position: absolute;
    z-index: 7;
    pointer-events: none;
    padding: 0.3rem 0.6rem;
    font-family: var(--font-display);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--accent-cyan);
    background: rgba(5, 11, 20, 0.82);
    border: 1px solid rgba(61, 204, 199, 0.35);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.node-tip.is-visible { opacity: 1; }

@media (hover: none) {
    .node-tip { display: none; }
}

/* In-place detail text for small screens (the sphere prompter is hidden there) */
.inline-detail {
    margin: 0.4rem 0 0.6rem;
    padding: 0.7rem 0.85rem;
    list-style: none;
    font-family: var(--font-body);
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-secondary);
    background: rgba(5, 11, 20, 0.45);
    border-left: 2px solid var(--accent-cyan);
    border-radius: 0 4px 4px 0;
}

.intro-startup-grid .inline-detail { grid-column: 1 / -1; }

@media (min-width: 992px) {
    .inline-detail { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========== HOME HOOK ROW ========== */
.home-hook-row {
    margin-bottom: 1rem;
}

/* ========== HOME OPENER ========== */
.home-opener { padding: 0.5rem 0 1rem; }

.home-hook {
    font-family: var(--font-display);
    font-size: clamp(1.02rem, 2.38vw, 1.615rem);
    line-height: 1.35;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-primary);
    text-shadow: 0 0 15px rgba(61, 204, 199, 0.4);
    margin: 0 0 1rem;
}

.home-sub {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 2.2vw, 1.05rem);
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 54ch;
    margin: 0 0 1.75rem;
}

.path-cards { display: flex; flex-direction: column; gap: 0.75rem; }

.path-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 1.1rem;
    align-items: center;
    width: 100%;
    padding: 1rem 1.15rem;
    text-align: left;
    color: inherit;
    font: inherit;
    cursor: pointer;
    background: linear-gradient(145deg, rgba(14, 35, 55, 0.55), rgba(8, 20, 35, 0.4));
    border: 0px solid rgba(61, 204, 199, 0.28);
    border-radius: 2px;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.path-card:hover,
.path-card:focus-visible {
    border-color: rgba(61, 204, 199, 0.7);
    background: rgba(61, 204, 199, 0.08);
    box-shadow: 0 0 16px rgba(61, 204, 199, 0.18);
    transform: translateX(4px);
    outline: none;
}

.path-dot {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--accent-cyan);
    background: transparent;
    box-shadow: 0 0 0 rgba(61, 204, 199, 0);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.path-card:hover .path-dot,
.path-card:focus-visible .path-dot {
    background: var(--accent-cyan);
    box-shadow: 0 0 12px rgba(61, 204, 199, 0.85);
    transform: scale(1.1);
}
.path-title { grid-column: 2; grid-row: 1; font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-primary); }
.path-desc  { grid-column: 2; grid-row: 2; margin-top: 0.3rem; font-family: var(--font-body); font-size: 0.9rem; line-height: 1.5; color: var(--text-secondary); }
.path-go    { grid-column: 3; grid-row: 1 / span 2; font-family: var(--font-display); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-cyan); white-space: nowrap; }

/* Desktop with a mouse: descriptions appear in the sphere viewport on hover instead */
@media (min-width: 992px) and (hover: hover) {
    .path-desc { display: none; }
    .path-card { padding: 1.2rem 1.25rem; }
    .path-title { font-size: 0.9rem; }
}

@media (max-width: 480px) {
    .path-card { grid-template-columns: auto 1fr; }
    .path-go { display: none; }
}

/* ========== DEMO VIDEOS + EXTRA LINKS ========== */
.doc-video {
    margin-top: 0.9rem;
    border: 1px solid var(--border-cyan);
    border-radius: 6px;
    overflow: hidden;
    background: #000;
}
.doc-video video { display: block; width: 100%; object-fit: contain; }
.doc-video--16x9 video { aspect-ratio: 16 / 9; }
.doc-video--21x9 video { aspect-ratio: 21 / 9; }

.doc-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.9rem; }

/* ========== NAV: REQUEST A DEMO ========== */
.nav-demo-btn {
    margin-left: auto;
    align-self: center;
    padding: 0.45rem 0.95rem;
    font-family: var(--font-display);
    font-size: clamp(0.62rem, 1.1vw, 0.6rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    color: var(--accent-cyan);
    background: rgba(61, 204, 199, 0.08);
    border: 1px solid var(--accent-cyan);
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.nav-demo-btn:hover,
.nav-demo-btn:focus-visible {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    box-shadow: 0 0 12px rgba(61, 204, 199, 0.6);
    outline: none;
}

@media (max-width: 640px) {
    .nav-demo-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.6rem;
        letter-spacing: 0.06em;
    }
}

/* ========== GLOW WAVE: TITLE, THEN HOOK (Home only) ========== */
/* index.js wraps each letter of the title and the hook in .hook-char.
   One wave runs through the title, then carries on through the hook, then rests.
   --glow-cycle : full loop length (wave + rest)
   --title-sweep: time the wave takes to cross the title
   --hook-sweep : time the wave takes to cross the hook (it starts when the title finishes) */
:root {
    --glow-cycle:5s;
    --title-sweep: 1.2s;
    --hook-sweep: 2s;
}

.hook-word {
    display: inline-block;
    white-space: nowrap;
}

/* inline-grid stacks the letter and its shimmer copy in one cell (a positioned box would
   escape the title's ellipsis clipping on narrow screens) */
.hook-char {
    display: inline-grid;
}

.hook-glyph {
    grid-area: 1 / 1;
}

/* Resting look on Home (the old keyframe base state) */
body[data-active-panel="home"] .hook-char {
    color: var(--text-primary);
    text-shadow: 0 0 12px rgba(61, 204, 199, 0.3);
}

/* The shimmer is a copy of the letter that fades in and out. Fading opacity runs on the GPU,
   whereas animating text-shadow forced every letter to be repainted on every frame. */
.hook-char::after {
    content: attr(data-c);
    grid-area: 1 / 1;
    color: #ffffff;
    text-shadow:
        0 0 8px rgba(61, 204, 199, 1),
        0 0 22px rgba(61, 204, 199, 0.85),
        0 0 38px rgba(61, 204, 199, 0.5);
    opacity: 0;
    pointer-events: none;
}

body[data-active-panel="home"] .hook-char::after {
    animation-name: hookGlowFade;
    animation-duration: var(--glow-cycle);
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.header-titles h1 .hook-char::after {
    animation-delay: calc(var(--i) * var(--title-sweep) / var(--n));
}

.home-hook .hook-char::after {
    animation-delay: calc(var(--title-sweep) + var(--i) * var(--hook-sweep) / var(--n));
}

@keyframes hookGlowFade {
    0%, 15%, 100% { opacity: 0; }
    6.5%          { opacity: 1; }
}

/* Room inside the title box so the larger glow isn't clipped by overflow:hidden. */
.header-titles h1 {
    padding: 0.6rem 0.8rem;
    margin: -0.6rem -0.8rem -0.35rem;
}

/* Header title: tighter spacing on small screens so it never gets cut off */
@media (max-width: 991px) {
    .header-titles h1 { letter-spacing: 0.5em; }
}
@media (max-width: 640px) {
    .header-titles h1 { letter-spacing: 0.28em; -webkit-text-stroke-width: 0.4px; }
}

/* Inline links inside Intro text (jump to a panel) */
.intro-link {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: var(--accent-cyan);
    text-decoration: underline;
    text-decoration-color: rgba(61, 204, 199, 0.4);
    text-underline-offset: 3px;
    cursor: pointer;
}
.intro-link:hover,
.intro-link:focus-visible {
    text-decoration-color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(61, 204, 199, 0.5);
}

/* Technical Securitisation link dropdown */
.intro-subitem[data-expands].is-expanded .intro-subitem-chevron { transform: rotate(180deg); }

.intro-subpanel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.intro-subpanel.is-open { max-height: 200px; }

.intro-subpanel-inner {
    margin: 0.1rem 0 0.2rem 0.9rem;
    padding: 0.35rem 0 0.35rem 0.9rem;
    border-left: 2px solid rgba(61, 204, 199, 0.35);
}

.intro-sublink-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.8rem;
    padding: 0.35rem 0;
    font-size: 0.88rem;
}

.intro-sublink-label {
    min-width: 6.2rem;
    font-family: var(--font-display);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* ========== GALLERIA (Images / Videos) ========== */
.gallery-viewer {
    position: absolute;
    inset: 0.5rem;
    z-index: 8;
    display: none;
    flex-direction: column;
    background: linear-gradient(145deg, rgba(14, 35, 55, 0.88), rgba(8, 20, 35, 0.84));
    border: 1px solid rgba(61, 204, 199, 0.3);
    border-radius: 6px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    overflow: hidden;
}
.gallery-viewer.is-open { display: flex; }

.gallery-view {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

.gallery-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid rgba(61, 204, 199, 0.2);
    font-family: var(--font-display);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-cyan);
}

.gallery-close {
    width: 26px;
    height: 26px;
    line-height: 1;
    font-size: 1.1rem;
    color: var(--accent-cyan);
    background: transparent;
    border: 1px solid rgba(61, 204, 199, 0.4);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.gallery-close:hover,
.gallery-close:focus-visible {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    outline: none;
}

.gallery-list {
    list-style: none;
    margin: 0;
    padding: 0.8rem 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    overflow-y: auto;
    min-height: 0;
}

.gallery-item-title {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-primary);
}
.gallery-item-sub {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--text-secondary);
}
.gallery-item .doc-video { margin-top: 0.45rem; }

.gallery-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.55rem 0.65rem;
    background: rgba(5, 11, 20, 0.35);
    border: 1px solid rgba(61, 204, 199, 0.2);
    border-radius: 4px;
}
.gallery-thumb {
    flex: 0 0 92px;
    aspect-ratio: 16 / 9;
    border: 1px dashed rgba(61, 204, 199, 0.4);
    border-radius: 3px;
    background: rgba(61, 204, 199, 0.05);
    overflow: hidden;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Small screens: the list opens in place under the item */
.gallery-inline {
    list-style: none;
    margin: 0.5rem 0 0.8rem -1.2rem;
    border: 1px solid rgba(61, 204, 199, 0.25);
    border-radius: 6px;
    background: rgba(5, 11, 20, 0.45);
}
.gallery-inline .gallery-view { height: auto; }
.gallery-inline .gallery-list { overflow: visible; }

@media (max-width: 991px) {
    .gallery-viewer { display: none !important; }
}

/* the generic ".doc-drop-body ul" indent must not push the inline gallery list in */
.doc-drop-body .gallery-list { margin: 0; line-height: 1.5; }

/* ========== GALLERIA SCROLLBAR ========== */
.gallery-list {
    scrollbar-width: thin;                                        /* Firefox */
    scrollbar-color: rgba(61, 204, 199, 0.55) rgba(5, 11, 20, 0.5);
}
.gallery-list::-webkit-scrollbar {                                /* Chrome, Edge, Safari */
    width: 8px;
}
.gallery-list::-webkit-scrollbar-track {
    background: rgba(5, 11, 20, 0.5);
    border-radius: 4px;
}
.gallery-list::-webkit-scrollbar-thumb {
    background: rgba(61, 204, 199, 0.45);
    border-radius: 4px;
    border: 1px solid rgba(61, 204, 199, 0.25);
}
.gallery-list::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
    box-shadow: 0 0 8px rgba(61, 204, 199, 0.6);
}

/* ========== NAV BAR: SIX BUTTONS ON ONE LINE, DEMO MAY DROP ========== */
/* The old "Home" button carried two trailing em-spaces in the HTML; the same gap now lives here (desktop only). */
.nav-home-btn { padding-right: calc(0.7rem + 2em); }
.nav-break { display: none; }

@media (max-width: 991px) {
    .overlay-nav-bar {
        flex-wrap: wrap;                 /* only the demo button is allowed to wrap */
        align-items: center;
        gap: 0;
        padding: 0 0.35rem;
    }

    .nav-home-btn,
    .nav-link-btn {
        flex: 0 0 auto;
        padding: 0.6rem clamp(0.15rem, 1vw, 0.6rem);
        font-size: clamp(0.45rem, 2.9vw, 0.74rem);   /* grows/shrinks with the screen; all six always share a row */
        letter-spacing: 0.05em;
        white-space: nowrap;
    }

    .nav-home-btn { padding-right: clamp(0.15rem, 1vw, 0.6rem); }

    .nav-link-btn { transform: none; }            /* hover scale would nudge neighbours */

    .nav-demo-btn {
        flex: 0 0 auto;
        margin: 0.35rem 0 0.5rem auto;
        padding: 0.4rem 0.8rem;
        font-size: 0.6rem;
        letter-spacing: 0.06em;
        white-space: nowrap;
    }
}

/* Phones: force the demo button onto its own row, right-aligned */
@media (max-width: 640px) {
    .nav-break { display: block; flex: 0 0 100%; height: 0; }

    .nav-demo-btn {
        margin-left: clamp(0.15rem, 1vw, 0.6rem);   /* left-aligned under Home; "auto" puts it back on the right */
    }
}


/* ========== DESKTOP LANDING: BARE STAGE + "CLICK TO ENTER" ========== */
/* Wide screens with a real mouse only; phones and tablets keep the normal layout.
   Landing = title + sub header, centred sphere, prompt under it. Clicking enter brings everything back. */
.enter-prompt { display: none; }
.landing-logo { display: none; }   /* only shown on the desktop landing */
.landing-console { display: none; }

@media (min-width: 992px) and (hover: hover) and (pointer: fine) {
    .app-layout { position: relative; }
    /* (.sphere-side is already sticky, which also anchors the enter prompt) */

    /* --- Landing: header shows only the centred title + sub header --- */
    body.hero .header-inner { justify-content: center; }
    body.hero .brand-logo,
    body.hero .btn-login { display: none; }
    body.hero .header-titles { text-align: center; }
    body.hero .header-titles h1 {
        overflow: visible;      /* no ellipsis on the landing */
        translate: 0.5em 0;     /* cancels the trailing letter-spacing so the text is truly centred */
    }
    body.hero .ops-console { display: none; }          /* frees its height so the landing fits one screen (no scroll bar) */

    /* staged reveal on enter: sphere slides (0s) -> header -> nav -> left panel -> network strip */
    body.entering .header-inner  { animation: landingIn 0.6s ease 0.35s both; }
    body.entering .overlay-nav-bar { animation: landingIn 0.6s ease 0.6s both; }
    body.entering .ops-console   { animation: landingIn 0.6s ease 1s both; }
    body:not(.hero) .content-side { transition: opacity 0.7s ease 0.8s, visibility 0s; }

    /* the whole sphere is the second way in */
    body.hero .diagram-container canvas { cursor: pointer; }

    /* only the visible copy of the hook runs its glow */
    body.hero .content-side .hook-char::after { animation-play-state: paused; }

    /* --- Sphere centred, left panel hidden --- */
    .sphere-side {
        transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
    }
    /* --- Landing logo: centred under the sub header, inside the header --- */
    body.hero .header-titles,
    body.entering .header-titles { position: relative; }
    body.hero .landing-logo {
        display: block;
        height: 3.5rem; width: auto;
        margin: 0.5rem auto 0;
        border-radius: 5px;
        box-shadow: 0 0 12px rgba(61, 204, 199, 0.3);
        pointer-events: none;
    }
    body.entering .landing-logo {          /* leaves the flow so the header can shrink back smoothly */
        display: block;
        position: absolute;
        top: 100%; left: 50%;
        translate: -50% 0.5rem;
        height: 3.5rem; width: auto;
        border-radius: 5px;
        pointer-events: none;
        animation: logoOut 0.4s ease both;
    }
    /* the nav strip folds away on the landing (so the header is just title + logo) and slides open on enter */
    .overlay-nav-bar { max-height: 3rem; transition: max-height 0.6s ease; }
    body.hero .overlay-nav-bar { visibility: hidden; max-height: 0; overflow: hidden; border-top-width: 0; padding-top: 0; padding-bottom: 0; }
    body.hero .sphere-stage { translate: 0 -1.3rem; }   /* lifts the sphere clear of the enter prompt */
    .sphere-stage { transition: translate 0.9s cubic-bezier(0.22, 0.61, 0.36, 1); }

    body.hero .sphere-side {
        /* the right column is 1.05fr of 2fr: shift left by half of (left column + gap) */
        transform: translateX(calc(-45.24% - 0.75rem));
    }
    body.hero .content-side {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    }

    /* --- Landing status panel (typed), left of the sphere, roughly the sphere's height --- */
    @media (min-width: 1100px) {
        body.hero .landing-console,
        body.entering .landing-console {
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 0.65rem;
            position: absolute;
            left: 0; top: -1.3rem;
            width: min(26rem, calc(50% - 11rem));
            height: min(55vh, 640px);
            min-height: 420px;
            padding: 0 0 0 1.1rem;
            font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Courier New', monospace;
            font-size: 0.72rem;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            white-space: nowrap;
            pointer-events: none;
            z-index: 2;
        }
        body.entering .landing-console { animation: logoOut 0.4s ease both; }
        .landing-console .lc-line { display: flex; gap: 1.4rem; min-height: 1.1em; }
        .landing-console .lc-k { flex: 0 0 7.6rem; color: rgba(61, 204, 199, 0.55); }
        .landing-console .lc-v { color: rgba(214, 228, 240, 0.78); }
        .landing-console .lc-cursor {
            display: inline-block;
            width: 0.5em; height: 1em;
            margin-left: 0.15em;
            vertical-align: text-bottom;
            background: var(--accent-cyan);
            animation: lcBlink 1.05s steps(1) infinite;
        }
    }

    /* --- Click to enter: centred under the sphere --- */
    body.hero .enter-prompt {
        display: inline-block;
        position: absolute;
        left: 50%;
        bottom: 0.4rem;
        translate: -50% 0;
        z-index: 5;
        padding: 0.7rem 1.4rem;
        font-family: var(--font-display);
        font-size: 0.72rem;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        white-space: nowrap;
        color: var(--accent-cyan);
        background: rgba(61, 204, 199, 0.08);
        border: 1px solid var(--accent-cyan);
        border-radius: 4px;
        cursor: pointer;
        transition: background 0.2s ease, color 0.2s ease;
    }
    body.hero .enter-prompt::after {
        /* pulse is an opacity fade on a pre-drawn glow, so it stays on the GPU */
        content: '';
        position: absolute;
        inset: -1px;
        border-radius: inherit;
        box-shadow: 0 0 18px rgba(61, 204, 199, 0.85), 0 0 36px rgba(61, 204, 199, 0.35);
        opacity: 0;
        pointer-events: none;
        animation: enterPulse 1.8s ease-in-out infinite;
    }
    body.hero .enter-prompt:hover,
    body.hero .enter-prompt:focus-visible {
        background: var(--accent-cyan);
        color: var(--bg-primary);
        outline: none;
    }
    body.hero .enter-prompt:hover::after,
    body.hero .enter-prompt:focus-visible::after { animation: none; opacity: 1; }
}

@keyframes enterPulse {
    0%, 100% { opacity: 0; }
    50%      { opacity: 1; }
}
@keyframes lcBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes logoOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes landingIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    body.entering .header-inner,
    body.entering .overlay-nav-bar,
    body.entering .ops-console { animation: none; }
    body:not(.hero) .content-side { transition: none; }
}


/* ========== DESKTOP FOOTER: COLLAPSED BEHIND A CHEVRON ========== */
/* Copyright line sits at the top of the footer; the chevron opens the site links downwards.
   Keeps the page short enough that the scroll bar only appears when it is needed.
   Applies on every screen size (desktop, tablet and mobile). */
@media all {
    .site-footer { padding: 0.9rem 1.5rem; }
    .footer-bottom { order: 0; margin: 0 auto; padding-top: 0; border-top: 0; }
    .footer-bottom p { display: inline-flex; align-items: center; gap: 0.7rem; }

    .footer-toggle {
        display: inline-block;
        width: 1.6rem; height: 1.6rem;
        padding: 0;
        background: transparent;
        border: 1px solid rgba(61, 204, 199, 0.45);
        border-radius: 4px;
        cursor: pointer;
        position: relative;
        transition: background 0.2s ease, border-color 0.2s ease;
    }
    .footer-toggle::before {
        content: '';
        position: absolute;
        left: 50%; top: 50%;
        width: 0.4rem; height: 0.4rem;
        border-right: 2px solid var(--accent-cyan);
        border-bottom: 2px solid var(--accent-cyan);
        transform: translate(-50%, -70%) rotate(45deg);
        transition: transform 0.35s ease;
    }
    .footer-toggle:hover, .footer-toggle:focus-visible { background: rgba(61, 204, 199, 0.12); border-color: var(--accent-cyan); outline: none; }
    .site-footer.footer-open .footer-toggle::before { transform: translate(-50%, -30%) rotate(-135deg); }

    .footer-collapse {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.45s ease;
    }
    .footer-collapse-inner {
        min-height: 0;
        overflow: hidden;
        visibility: hidden;
        transition: visibility 0s linear 0.45s;
    }
    .site-footer.footer-open .footer-collapse { grid-template-rows: 1fr; }
    .site-footer.footer-open .footer-collapse-inner { visibility: visible; transition: visibility 0s; padding: 1.8rem 0 0.9rem; }
}


/* Desktop: panels start closer to the header (was a 34px gap; sphere and left panel share the same top) */
@media (min-width: 992px) {
    #main-content { padding-top: calc(var(--header-h, 146px) + 1rem); }
}


/* ========== CORE OBJECTIVES READER (scrollable viewport, one dropdown open at a time) ========== */
/* it borrows the Galleria viewer, header, close button and scrollbar styles */
.reader-list { gap: 0.55rem; }
.reader-lead {
    margin: 0 0 0.3rem;
    font-family: var(--font-body);
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-secondary);
}
.reader-item {
    flex: 0 0 auto;
    background: rgba(5, 11, 20, 0.35);
    border: 1px solid rgba(61, 204, 199, 0.2);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.25s ease, background 0.25s ease;
}
.reader-item.is-open {
    border-color: rgba(61, 204, 199, 0.55);
    background: rgba(8, 24, 40, 0.55);
}
.reader-btn {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.65rem 0.8rem;
    background: transparent;
    border: 0;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.reader-btn:hover,
.reader-btn:focus-visible { background: rgba(0, 230, 230, 0.08); color: var(--accent-cyan); outline: none; }
.reader-item.is-open .reader-btn { color: var(--accent-cyan); }
.reader-num {
    flex: 0 0 1.7rem;
    font-family: var(--font-display);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--accent-cyan);
}
.reader-name { flex: 1 1 auto; min-width: 0; }
.reader-chev { flex: 0 0 auto; color: var(--accent-cyan); transition: transform 0.3s ease; }
.reader-item.is-open .reader-chev { transform: rotate(180deg); }

.reader-panel {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;                                   /* closed text is not tabbable */
    transition: grid-template-rows 0.3s ease, visibility 0s linear 0.3s;
}
.reader-item.is-open .reader-panel {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows 0.3s ease, visibility 0s;
}
.reader-inner { overflow: hidden; min-height: 0; }
.reader-text {
    padding: 0.15rem 0.9rem 0.9rem 3.2rem;               /* text lines up under the title, past the number */
    font-family: var(--font-body);
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
}
.reader-text p { margin: 0 0 0.7rem; }
.reader-text p:last-child, .reader-text ul:last-child { margin-bottom: 0; }
.reader-text ul,
.doc-drop-body .reader-text ul { margin: 0 0 0.7rem 1.1rem; padding: 0; list-style: disc; line-height: 1.6; }
.reader-text li { margin: 0.15rem 0; }

@media (prefers-reduced-motion: reduce) {
    .reader-panel, .reader-item.is-open .reader-panel, .reader-chev { transition: none; }
}

/* Small screens: opens in place under the item, the page itself scrolls */
.reader-inline {
    list-style: none;
    margin: 0.5rem 0 0.8rem -1.2rem;
    border: 1px solid rgba(61, 204, 199, 0.25);
    border-radius: 6px;
    background: rgba(5, 11, 20, 0.45);
}
.reader-inline .gallery-view { height: auto; }
.reader-inline .gallery-list { overflow: visible; padding: 0.7rem 0.6rem 0.9rem; }
.doc-drop-body .reader-list { margin: 0; line-height: 1.5; }
@media (max-width: 991px) {
    .reader-text { padding-left: 0.9rem; }
}

.reader-note {
    flex: 0 0 auto;
    margin: 0.3rem 0 0;
    padding: 0.7rem 0.85rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--text-secondary);
    border-left: 2px solid var(--accent-cyan);
    background: rgba(61, 204, 199, 0.06);
    border-radius: 0 4px 4px 0;
}


/* ========== DOCUMENT IMAGES (Org Chart, Layout): fit to the viewport, click to enlarge ========== */
.doc-figure { margin: 0; }
.doc-figure img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid rgba(61, 204, 199, 0.3);
    border-radius: 4px;
    cursor: zoom-in;
}
.doc-figure figcaption {
    margin-top: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
}
.doc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(3, 8, 16, 0.93);
    cursor: zoom-out;
    overflow: auto;
}
.doc-lightbox img {
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}
.doc-lightbox-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: rgba(8, 20, 35, 0.85);
}

.gallery-thumb img.gallery-zoom { cursor: zoom-in; }

/* YouTube embeds in the Galleria */
.doc-video iframe { display: block; width: 100%; border: 0; aspect-ratio: 16 / 9; background: #000; }

/* Typed prompter text may contain \n line breaks (e.g. short lists) */
.prompter-text { white-space: pre-line; }


/* ========== CONTACT REQUEST FORM (in the viewport, or in place on small screens) ========== */
.cf-form { display: grid; gap: 0.5rem; }
.cf-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.cf-row { display: grid; gap: 0.25rem; min-width: 0; }
.cf-row label {
    font-family: var(--font-body);
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.cf-form input, .cf-form select, .cf-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 0.65rem;
    font: inherit;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: rgba(5, 11, 20, 0.55);
    border: 1px solid rgba(61, 204, 199, 0.3);
    border-radius: 4px;
}
.cf-form textarea { resize: vertical; min-height: 4rem; line-height: 1.5; }
.cf-form select option { background: #0a1522; color: #e8f4f8; }
.cf-form input:focus, .cf-form select:focus, .cf-form textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 2px rgba(0, 230, 230, 0.18);
}
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-actions { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.cf-send {
    padding: 0.55rem 1.3rem;
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    background: rgba(0, 230, 230, 0.08);
    border: 1px solid var(--accent-cyan);
    border-radius: 4px;
    cursor: pointer;
}
.cf-send:hover, .cf-send:focus-visible { background: rgba(0, 230, 230, 0.2); outline: none; }
.cf-send:disabled { opacity: 0.5; cursor: default; }
.cf-status { margin: 0; font-family: var(--font-body); font-size: 0.82rem; color: var(--text-secondary); }
.cf-status.is-error { color: #ff8a8a; }
.cf-privacy { margin: 0; font-family: var(--font-body); font-size: 0.72rem; line-height: 1.5; color: var(--text-secondary); opacity: 0.85; }
.cf-done {
    padding: 0.9rem 1rem;
    border: 1px solid rgba(61, 204, 199, 0.55);
    border-radius: 4px;
    background: rgba(8, 24, 40, 0.55);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-primary);
}
.cf-done strong { color: var(--accent-cyan); letter-spacing: 0.05em; }
.cf-done p { margin: 0.35rem 0 0; }
@media (max-width: 560px) {
    .cf-pair { grid-template-columns: 1fr; }
    .cf-form input, .cf-form select, .cf-form textarea { font-size: 16px; }   /* stops iOS zooming on focus */
}


/* ========== FLASH-COURSE OUTLINES ========== */
.fc-list { margin: 0.2rem 0 0.8rem; padding-left: 1.2rem; display: grid; gap: 0.35rem; }
.fc-list li { font-family: var(--font-body); font-size: 0.92rem; line-height: 1.5; color: var(--text-primary); }
.fc-list li::marker { color: var(--accent-cyan); }
.fc-consult { margin-top: 0.4rem; }

.fc-email { margin: 0.4rem 0 0.8rem; font-family: var(--font-body); font-size: 1rem; color: var(--text-secondary); }
.fc-email a { color: var(--accent-cyan); font-weight: 700; text-decoration: none; word-break: break-all; }
.fc-email a:hover { text-decoration: underline; }
a.cf-send { display: inline-block; text-decoration: none; }

.fc-person { margin: 0 0 0.3rem; display: grid; gap: 0.1rem; font-family: var(--font-body); }
.fc-person strong { font-size: 1.1rem; color: var(--text-primary); letter-spacing: 0.03em; }
.fc-person a { color: var(--accent-cyan); text-decoration: none; word-break: break-all; font-size: 0.92rem; }
.fc-person a:hover { text-decoration: underline; }
.fc-h { margin: 0.9rem 0 0.2rem; font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-cyan); }
.fc-h + .reader-lead { margin-top: 0; }
.fc-dash { margin: 1.5rem 0; text-align: center; font-size: 2rem; color: var(--text-secondary); opacity: 0.6; }

/* Profile card: text left, photo right (photo above the text on small screens) */
.fc-profile { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 1.2rem; align-items: start; }
.fc-photo { margin: 0; position: sticky; top: 0; grid-column: 2; grid-row: 1; }
.fc-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid rgba(61, 204, 199, 0.45); border-radius: 6px; }
.fc-photo.is-empty { display: grid; place-items: center; gap: 0.4rem; aspect-ratio: 4 / 5; border: 1px dashed rgba(61, 204, 199, 0.45); border-radius: 6px; background: rgba(8, 24, 40, 0.5); align-content: center; }
.fc-photo.is-empty svg { width: 46%; fill: rgba(61, 204, 199, 0.28); }
.fc-photo figcaption { font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); opacity: 0.8; }
.fc-profile-main { grid-column: 1; grid-row: 1; min-width: 0; }
.fc-person span { font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-cyan); }
@media (max-width: 700px) {
    .fc-profile { grid-template-columns: 1fr; }
    .fc-photo { grid-column: 1; grid-row: 1; position: static; width: 150px; margin: 0 auto 0.4rem; }
    .fc-profile-main { grid-row: 2; }
}

/* Smaller link/action buttons inside the Info readers (profiles, courses, email) */
.fc-consult, .fc-copy { padding: 0.32rem 0.8rem; font-size: 0.62rem; letter-spacing: 0.1em; border-radius: 3px; }
.fc-profile .cf-actions, .reader-list .cf-actions { gap: 0.5rem; }

/* DTSIM Pulse open button (shown to licensed members only) */
.agent-panel-link { list-style: none; padding: 0.6rem 0 0.2rem; }
.agent-panel-link[hidden] { display: none; }
.agent-panel-link a.cf-send { display: inline-block; text-decoration: none; }
.agent-panel-note { display: block; margin-top: 0.35rem; font-family: var(--font-body); font-size: 0.72rem; color: var(--text-secondary); }


/* ========== HOME OPEN CLICKER (tablet + mobile) ========== */
/* On small screens the hook and the three path cards sit behind an "Open" clicker,
   so the sphere is the main visual until someone chooses to open them. */
.home-toggle { display: none; }

@media (max-width: 991px) {
    .home-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        margin: -0.4rem 0 0.6rem 0;   /* top-left, directly under the Request a Consult button */
        padding: 0.3rem 0.9rem;
        font-family: var(--font-display);
        font-size: 0.68rem;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: #3dccc7;
        background: rgba(61, 204, 199, 0.08);
        border: 1px solid rgba(61, 204, 199, 0.55);
        border-radius: 999px;
        cursor: pointer;
        box-shadow: 0 0 10px rgba(61, 204, 199, 0.25);
        animation: homeTogglePulse 2.6s ease-in-out infinite;
    }
    .home-toggle:focus-visible {
        outline: 2px solid #3dccc7;
        outline-offset: 3px;
    }
    .home-toggle-chev {
        display: inline-block;
        transition: transform 0.25s ease;
    }
    .home-toggle[aria-expanded="true"] {
        animation: none;
    }
    .home-toggle[aria-expanded="true"] .home-toggle-chev {
        transform: rotate(180deg);
    }

    .home-collapsible { display: none; }
    .home-collapsible.open { display: block; animation: fadeIn 0.25s ease; }
}

@keyframes homeTogglePulse {
    0%, 100% { box-shadow: 0 0 10px rgba(61, 204, 199, 0.2); }
    50%      { box-shadow: 0 0 22px rgba(61, 204, 199, 0.5); }
}

@media (prefers-reduced-motion: reduce) {
    .home-toggle { animation: none; }
}


/* ========== DROPDOWN CHEVRONS: drawn, not text symbols ========== */
/* Same drawn chevron as the footer toggle, on every dropdown (INTRO, OPS, ACCESS, INFO, EXTRA).
   Down when closed, up when open. The old ▼ ▾ ◀ glyphs render differently on each device, so they are hidden. */
.chevron,
.intro-subitem-chevron {
    display: inline-block;
    flex-shrink: 0;
    width: 0.5rem;
    height: 0.5rem;
    font-size: 0;
    line-height: 0;
    color: transparent;
    border-right: 2px solid var(--accent-cyan);
    border-bottom: 2px solid var(--accent-cyan);
    transform: translateY(-0.12rem) rotate(45deg);
    transition: transform 0.3s ease;
}

.doc-drop[open] .chevron {
    transform: translateY(0.12rem) rotate(225deg);
}

.intro-subitem.is-active .intro-subitem-chevron {
    transform: translateY(0) rotate(135deg);          /* points left when active */
}

.intro-subitem[data-expands].is-expanded .intro-subitem-chevron {
    transform: translateY(0.12rem) rotate(225deg);    /* points up when expanded */
}

.intro-accordion summary::after {
    content: '';
    display: inline-block;
    flex-shrink: 0;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid var(--accent-cyan);
    border-bottom: 2px solid var(--accent-cyan);
    transform: translateY(-0.12rem) rotate(45deg);
    transition: transform 0.3s ease;
}

.intro-accordion[open] summary::after {
    content: '';
    transform: translateY(0.12rem) rotate(225deg);
}


/* ========== iPhone / Safari: hide the built-in dropdown marker on every dropdown header ========== */
/* Safari draws its own triangle on <summary> unless it is switched off with the -webkit rule below,
   which showed a second arrow next to the drawn chevron on iPhone. */
.doc-drop-header,
.intro-accordion summary {
    list-style: none;
}
.doc-drop-header::-webkit-details-marker,
.intro-accordion summary::-webkit-details-marker {
    display: none;
}
.doc-drop-header::marker,
.intro-accordion summary::marker {
    content: '';
    font-size: 0;
}

.reader-link{color:var(--accent-cyan);text-decoration:none;border-bottom:1px solid rgba(0,230,230,.35)}
.reader-link:hover,.reader-link:focus-visible{border-bottom-color:var(--accent-cyan);outline:none}

.reader-img{display:block;max-width:100%;height:auto;margin:0 0 .8rem;border-radius:6px;border:1px solid var(--border-cyan,rgba(0,230,230,.25))}

/* Article layout: picture left, detail right, link along the bottom */
.reader-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem;align-items:start}
.reader-split .reader-img{margin:0;width:100%}
.reader-detail p{margin:0 0 .7rem}
.reader-detail p:last-child{margin-bottom:0}
.reader-foot{margin-top:.8rem;padding-top:.7rem;border-top:1px solid rgba(0,230,230,.18)}
.reader-foot p{margin:0}
@media (max-width: 991px){.reader-split{grid-template-columns:1fr}}

/* Sphere display dropdown: desktop only (on mobile the Mesh / Grid buttons are on the home page) */
@media (max-width: 991px){.sphere-drop{display:none}}

/* Specialist profile: photo with name and titles underneath */
.fc-side { grid-column: 2; grid-row: 1; position: sticky; top: 0; }
.fc-side .fc-photo { position: static; grid-column: auto; grid-row: auto; }
.fc-side .fc-person { margin: 0.6rem 0 0; text-align: center; }
.fc-side .fc-person span { font-size: 0.7rem; line-height: 1.5; }
@media (max-width: 991px) {
    .fc-side { grid-column: 1; grid-row: 1; position: static; width: 170px; margin: 0 auto 0.4rem; }
}

/* Specialist links as round icon buttons */
.fc-icons { display: flex; gap: 0.7rem; margin-top: 1.1rem; }
.fc-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border-radius: 50%;
    border: 1px solid rgba(61, 204, 199, 0.5); background: rgba(8, 24, 40, 0.55); color: var(--accent-cyan); cursor: pointer;
    transition: box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease; }
.fc-icon svg { width: 20px; height: 20px; fill: currentColor; }
.fc-icon:hover, .fc-icon:focus-visible { background: rgba(61, 204, 199, 0.16); box-shadow: 0 0 12px rgba(61, 204, 199, 0.45); transform: translateY(-1px); outline: none; }
