/* ═══════════════════════════════════════════════════════
   Luminous Photonics — Premium Light Theme
   60-30-10 system: Light base / Navy structure / Gold accent
   ═══════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────── */
:root {
    /* Transitions */
    --t-fast: 220ms;
    --t-med: 320ms;
    --ease-ui: cubic-bezier(.2, .8, .2, 1);

    /* typography */
    --ff-heading: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --ff-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --ff-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* spacing */
    --nav-h: 120px;

    /* misc */
    --radius: 10px;
    --transition-speed: 0.3s;
    --shadow-card: 0 1px 3px rgba(11, 18, 32, 0.06), 0 1px 2px rgba(11, 18, 32, 0.04);
    --shadow-elevated: 0 4px 12px rgba(11, 18, 32, 0.08);
}

html[data-theme="light"] {
    --page-bg: #F7F8FA;
    --section-bg: #EEF2F6;
    --surface: #FFFFFF;
    --border: #D7DEE8;
    --heading: #0B1220;
    --text: #243041;
    --muted: #5B677A;
    --accent: #D4AF37;
    --accent-hover: #B68B1E;
}

html[data-theme="dark"] {
    --page-bg: #0B0F14;
    --section-bg: #101826;
    --surface: #141C27;
    --border: #263244;
    --heading: #F7FAFF;
    --text: #E8EDF4;
    --muted: #A7B2C3;
    --accent: #D4AF37;
    --accent-hover: #B68B1E;
}

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

html {
    scroll-behavior: smooth;
    background: var(--page-bg);
    color: var(--text);
    transition: background-color var(--t-med) var(--ease-ui), color var(--t-fast) var(--ease-ui);
}

body {
    font-family: var(--ff-body);
    background: transparent;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a,
button,
.card,
header,
footer,
section {
    transition: background-color var(--t-med) var(--ease-ui), color var(--t-fast) var(--ease-ui), border-color var(--t-med) var(--ease-ui), box-shadow var(--t-med) var(--ease-ui);
}

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

ul {
    list-style: none;
}

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

/* ── Navigation (navy bar) ──────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: background-color var(--t-med) var(--ease-ui), border-color var(--t-med) var(--ease-ui);
}

.navbar__logo {
    display: flex;
    align-items: center;
}

.navbar__logo-img {
    max-height: 100px;
    width: auto;
    object-fit: contain;
}

.navbar__links {
    display: flex;
    gap: 2.25rem;
    align-items: center;
}

.navbar__link {
    position: relative;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--muted);
    transition: color var(--transition-speed);
}

.navbar__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: width var(--transition-speed);
}

.navbar__link:hover {
    color: var(--heading);
}

.navbar__link:hover::after {
    width: 100%;
}

.navbar__cta {
    padding: 0.55rem 1.4rem;
    border-radius: 8px;
    background: var(--accent);
    color: #0B1220;
    font-family: var(--ff-heading);
    font-weight: 600;
    font-size: 0.88rem;
    border: none;
    cursor: pointer;
    transition: background var(--transition-speed), box-shadow var(--transition-speed), transform var(--transition-speed);
}

.navbar__cta:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.25);
    transform: translateY(-1px);
}

/* hamburger (mobile) */
.navbar__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.navbar__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--transition-speed), opacity var(--transition-speed), background-color var(--t-med) var(--ease-ui);
}

/* ── Hero ───────────────────────────────────────────── */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--page-bg);
}

#particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* subtle radial vignette */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 50%, var(--page-bg) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    text-align: center;
    padding: 0 1.5rem;
    pointer-events: none;
}

.hero__content .btn,
.hero__content a,
.hero__content button {
    pointer-events: auto;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-family: var(--ff-heading);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-hover);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.8rem;
    box-shadow: var(--shadow-card);
}

.hero__badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.25);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

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

    50% {
        opacity: 0.5;
        transform: scale(1.6);
    }
}

.hero__title {
    font-family: var(--ff-mono);
    font-size: clamp(1.25rem, 2.8vw, 2rem);
    font-weight: 400;
    line-height: 1.65;
    color: var(--heading);
    min-height: 3.4em;
}

.typewriter-cursor {
    display: inline-block;
    width: 2.5px;
    height: 1.15em;
    background: var(--accent);
    margin-left: 3px;
    vertical-align: text-bottom;
    animation: blink-cursor 0.75s step-end infinite;
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.25);
}

@keyframes blink-cursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero__sub {
    margin-top: 2.2rem;
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.5rem;
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.8rem;
    border-radius: var(--radius);
    font-family: var(--ff-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: background var(--transition-speed), box-shadow var(--transition-speed), transform var(--transition-speed), border-color var(--transition-speed);
}

.btn--primary {
    background: var(--accent);
    color: #0B0F14;
}

.btn--primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 22px rgba(212, 175, 55, 0.25);
    transform: translateY(-2px);
}

.btn--outline {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--text);
}

.btn--outline:hover {
    background: var(--section-bg);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════
   Info Cards Section
   ═══════════════════════════════════════════════════════ */

.info-cards {
    position: relative;
    background: var(--section-bg);
    padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 4vw, 3rem);
}

/* soft gradient sweep divider from hero → cards */
.info-cards::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent 0%, var(--section-bg) 100%);
    pointer-events: none;
    z-index: 3;
}

.info-cards__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Individual card ────────────────────────────────── */
.info-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--clr-text);
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--transition-speed), transform var(--transition-speed), border-color var(--transition-speed);
}

.info-card:hover {
    box-shadow: var(--shadow-elevated);
    transform: translateY(-4px);
    border-color: var(--accent);
}

/* canvas area */
.info-card__img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--page-bg);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.card-particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* text body */
.info-card__body {
    padding: 1.5rem 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.info-card__title {
    font-family: var(--ff-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 0.6rem;
    line-height: 1.35;
}

.info-card__subtitle {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.65;
    flex: 1;
}

.info-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1.2rem;
    font-family: var(--ff-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--heading);
    transition: color var(--transition-speed);
}

.info-card__arrow {
    transition: transform var(--transition-speed), color var(--transition-speed);
}

.info-card:hover .info-card__cta {
    color: var(--accent-hover);
}

.info-card:hover .info-card__arrow {
    transform: translateX(4px);
    color: var(--accent);
}

/* ── Card entrance animation (grow-in) ──────────────── */
.info-card {
    opacity: 0;
    transform: translateY(14px) scale(0.93);
    transition:
        opacity 0.85s cubic-bezier(0.33, 1, 0.68, 1),
        transform 0.85s cubic-bezier(0.33, 1, 0.68, 1),
        box-shadow var(--transition-speed),
        border-color var(--transition-speed);
}

.info-card.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ── Reduced motion ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .info-card {
        opacity: 1;
        transform: none;
        transition: box-shadow var(--transition-speed), border-color var(--transition-speed);
    }

    .info-card.revealed {
        transform: none;
    }
}

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

@media (max-width: 768px) {
    .navbar__links {
        position: fixed;
        top: var(--nav-h);
        right: 0;
        width: 260px;
        height: calc(100vh - var(--nav-h));
        flex-direction: column;
        padding: 2rem 1.5rem;
        background: var(--surface);
        border-left: 1px solid var(--border);
        transform: translateX(100%);
        transition: transform var(--transition-speed), background-color var(--t-med) var(--ease-ui), border-color var(--t-med) var(--ease-ui);
        gap: 1.5rem;
    }

    .navbar__links.open {
        transform: translateX(0);
    }

    .navbar__hamburger {
        display: flex;
    }

    .navbar__hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .navbar__hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .navbar__hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero__title {
        font-size: clamp(1rem, 4.5vw, 1.5rem);
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .info-cards__grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════
   Theme Toggle SVG (Lightbulb)
   ═══════════════════════════════════════════════════════ */
.theme-toggle {
    position: fixed;
    left: 18px;
    bottom: 18px;
    width: 120px;
    height: 200px;
    z-index: 9999;
    pointer-events: auto;
    opacity: 0.92;
    --on: 1;
    --bg: hsl(calc(200 - (var(--on) * 160)), calc((20 + (var(--on) * 50)) * 1%), calc((20 + (var(--on) * 60)) * 1%));
    --cord: hsl(0, 0%, calc((60 - (var(--on) * 50)) * 1%));
    --stroke: hsl(0, 0%, calc((60 - (var(--on) * 50)) * 1%));
    --shine: hsla(0, 0%, 100%, calc(0.75 - (var(--on) * 0.5)));
    --cap: hsl(0, 0%, calc((40 + (var(--on) * 30)) * 1%));
    --filament: hsl(45, calc(var(--on) * 80%), calc((25 + (var(--on) * 75)) * 1%));
}

.theme-toggle:hover {
    opacity: 1;
}

.theme-toggle * {
    box-sizing: border-box;
}

.theme-toggle .toggle-scene {
    width: 100%;
    height: 100%;
    overflow: visible !important;
    position: absolute;
}

.theme-toggle .toggle-scene__cord {
    stroke: var(--cord);
    cursor: move;
    display: none;
}

.theme-toggle .toggle-scene__cord-end {
    stroke: var(--cord);
    fill: var(--cord);
}

.theme-toggle .toggle-scene__dummy-cord {
    stroke-width: 6;
    stroke: var(--cord);
}

.theme-toggle .bulb__filament {
    stroke: var(--filament);
}

.theme-toggle .bulb__shine {
    stroke: var(--shine);
}

.theme-toggle .bulb__flash {
    stroke: hsl(45, 80%, 80%);
    display: none;
}

.theme-toggle .bulb__bulb {
    stroke: var(--stroke);
    fill: hsla(calc(180 - (95 * var(--on))), 80%, 80%, calc(0.1 + (0.4 * var(--on))));
}

.theme-toggle .bulb__cap {
    fill: var(--cap);
}

.theme-toggle .bulb__cap-shine {
    fill: var(--shine);
}

.theme-toggle .bulb__cap-outline {
    stroke: var(--stroke);
}

.theme-toggle__hint {
    position: absolute;
    bottom: 0px;
    left: 41px;
    transform: translateX(-50%);
    font-family: var(--ff-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
    opacity: 0.85;
    pointer-events: none;
    white-space: nowrap;
    animation: gentle-bounce 2s ease-in-out infinite;
    transition: opacity var(--transition-speed);
}

.theme-toggle:hover .theme-toggle__hint {
    opacity: 1;
}

@keyframes gentle-bounce {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 3.5px);
    }
}

/* ═══════════════════════════════════════════════════════
   Mobile Theme Toggle (Pill Switch)
   ═══════════════════════════════════════════════════════ */
.mobile-theme-toggle {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 64px;
    height: 34px;
    border-radius: 17px;
    background: var(--surface);
    border: 1px solid var(--border);
    cursor: pointer;
    z-index: 9999;
    padding: 0;
    box-shadow: var(--shadow-elevated);
    align-items: center;
    justify-content: space-between;
    transition: background-color var(--t-med) var(--ease-ui), border-color var(--t-med) var(--ease-ui);
}

.mobile-theme-toggle__knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent);
    z-index: 2;
    transition: transform var(--t-med) var(--ease-ui);
    box-shadow: 0 1px 3px rgba(11, 18, 32, 0.2);
}

html[data-theme="dark"] .mobile-theme-toggle__knob {
    transform: translateX(30px);
}

.mobile-theme-toggle__icon {
    position: relative;
    z-index: 1;
    width: 50%;
    text-align: center;
    color: var(--muted);
    transition: color var(--transition-speed);
}

.mobile-theme-toggle__icon--light {
    margin-left: 8px;
}

.mobile-theme-toggle__icon--dark {
    margin-right: 8px;
}

html[data-theme="light"] .mobile-theme-toggle__icon--light,
html[data-theme="dark"] .mobile-theme-toggle__icon--dark {
    color: var(--surface);
    z-index: 3;
}

@media (max-width: 768px) {
    .theme-toggle {
        display: none !important;
    }

    .mobile-theme-toggle {
        display: flex;
    }
}

/* ═══════════════════════════════════════════════════════
   3D Carousel Section
   ═══════════════════════════════════════════════════════ */
.carousel-section {
    position: relative;
    width: 100%;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--section-bg);
    padding: 6rem 0;
    transition: background-color var(--t-med) var(--ease-ui);
    perspective: 3000px;
}

.carousel-container {
    perspective: 3000px;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

#drag-container,
#spin-container {
    position: relative;
    display: flex;
    margin: auto;
    transform-style: preserve-3d;
    transform: rotateX(-30deg);
}

.carousel-card {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.2rem;
    text-decoration: none;
    transform-style: preserve-3d;
    border-radius: 12px;
    background: rgba(14, 21, 35, 0.75);
    /* Dark translucent base */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 3px solid var(--glow-color, rgba(255, 255, 255, 0.5));
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2), 0 10px 20px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    transition: transform var(--t-med) var(--ease-ui), box-shadow var(--t-med) var(--ease-ui), border-color var(--t-med) var(--ease-ui);
}

.carousel-card:hover {
    box-shadow: 0 0 35px var(--glow-color), 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    border-bottom: 3px solid var(--glow-color);
}

.carousel-card__title {
    font-family: var(--ff-heading);
    color: #F7FAFF;
    font-size: 1.35rem;
    margin-bottom: 0.85rem;
    font-weight: 600;
}

.carousel-card__desc {
    font-family: var(--ff-body);
    color: #A7B2C3;
    font-size: 0.92rem;
    line-height: 1.6;
}

.carousel-card:hover .carousel-card__title {
    text-shadow: 0 0 8px var(--glow-color);
}

.carousel-center-hint {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 280px;
    height: 280px;
    transform: translate(-50%, -50%) rotateX(90deg);
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}

.carousel-center-hint__ring {
    position: absolute;
    inset: 0;
    fill: none;
    overflow: visible;
    opacity: 0.9;
    filter: drop-shadow(0 0 8px rgba(135, 191, 255, 0.25));
}

.carousel-center-hint__arc {
    stroke: rgba(178, 209, 238, 0.8);
    stroke-width: 2.2;
    stroke-linecap: round;
}

.carousel-center-hint__ring marker path {
    fill: rgba(178, 209, 238, 0.9);
}

.carousel-center-hint__label {
    margin: 0;
    width: 66%;
    text-align: center;
    color: var(--text);
    font-family: var(--ff-heading);
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    line-height: 1.4;
    opacity: 0.9;
    text-shadow: 0 0 16px rgba(118, 167, 224, 0.2);
}

#technology-carousel #spin-container .carousel-card,
#technology-carousel #spin-container .carousel-card * {
    user-select: none;
    -webkit-user-select: none;
}

#ground {
    width: 900px;
    height: 900px;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(90deg);
    background: radial-gradient(ellipse farthest-side at center, rgba(170, 170, 170, 0.15), transparent);
}

@keyframes spin {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(360deg);
    }
}

@keyframes spinRevert {
    from {
        transform: rotateY(360deg);
    }

    to {
        transform: rotateY(0deg);
    }
}

.carousel-modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(2, 8, 16, 0.68);
    z-index: 1200;
}

.carousel-modal-overlay.is-open {
    display: flex;
}

.carousel-modal {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
    border-radius: 20px;
    padding: 1.6rem;
    background: linear-gradient(140deg, rgba(18, 28, 44, 0.78), rgba(12, 18, 30, 0.74));
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.carousel-modal__left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.4rem 0.2rem;
}

.carousel-modal__eyebrow {
    margin: 0 0 0.8rem;
    color: rgba(190, 215, 240, 0.86);
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
}

.carousel-modal__title {
    margin: 0 0 0.6rem;
    color: #F4F8FF;
    font-family: var(--ff-heading);
    font-size: clamp(1.6rem, 2.4vw, 2rem);
}

.carousel-modal__subtitle {
    margin: 0 0 0.9rem;
    color: #C9D7E7;
    font-size: 1rem;
}

.carousel-modal__body {
    margin: 0;
    color: #AFC0D4;
    line-height: 1.65;
}

.carousel-modal__right {
    display: flex;
    align-items: stretch;
}

.carousel-modal__media-box {
    width: 100%;
    min-height: 260px;
    border-radius: 14px;
    background: rgba(6, 10, 18, 0.75);
    border: 1px solid rgba(157, 191, 224, 0.24);
    overflow: hidden;
}

.carousel-modal__media-box img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

body.carousel-modal-open {
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════
   Blog Slider Section
   ═══════════════════════════════════════════════════════ */
.blog-slider-section {
    position: relative;
    width: 100%;
    padding: 6.5rem clamp(1rem, 4vw, 3rem) 7rem;
    background: var(--section-bg);
    overflow: hidden;
}

.blog-slider-section::before {
    content: "";
    position: absolute;
    top: -18%;
    left: 50%;
    width: min(940px, 95vw);
    height: 420px;
    transform: translateX(-50%) scale(0.72);
    transform-origin: center top;
    opacity: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center,
            color-mix(in srgb, var(--accent) 32%, transparent) 0%,
            color-mix(in srgb, var(--accent) 14%, transparent) 32%,
            transparent 72%);
    transition: transform 1.2s cubic-bezier(0.18, 0.84, 0.24, 1), opacity 1.05s ease;
}

.blog-slider-section .header {
    text-align: center;
    margin: 0 auto 3.2rem;
    max-width: 980px;
}

.blog-slider-section .header .subtitle,
.blog-slider-section .header .main-title {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(6px);
    transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1), transform 900ms cubic-bezier(0.22, 1, 0.36, 1), filter 900ms ease;
}

.blog-slider-section .header .main-title {
    transition-delay: 80ms;
}

.blog-slider-section .subtitle {
    margin: 0 0 0.9rem;
    color: var(--accent);
    font-family: var(--ff-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.blog-slider-section .main-title {
    margin: 0;
    color: var(--heading);
    font-family: var(--ff-heading);
    font-size: clamp(1.6rem, 3.2vw, 2.8rem);
    line-height: 1.18;
}

.blog-slider-section .slider-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    perspective: 1300px;
    perspective-origin: 50% 46%;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

.blog-slider-section .slider-container.dragging {
    cursor: grabbing;
}

.blog-slider-section .slider-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.3rem, 1vw, 0.65rem);
    transform-style: preserve-3d;
    min-height: 300px;
    opacity: 0;
    transform: translateY(36px) scale(0.965);
    filter: blur(9px);
    transition: opacity 850ms cubic-bezier(0.22, 1, 0.36, 1), transform 850ms cubic-bezier(0.22, 1, 0.36, 1), filter 850ms ease;
    transition-delay: 140ms;
}

.blog-slider-section .card {
    flex-shrink: 0;
    width: clamp(220px, 30vw, 360px);
    overflow: hidden;
    position: relative;
    border-radius: 14px;
    transform-style: preserve-3d;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
    background: var(--surface);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: 0 12px 30px rgba(7, 14, 25, 0.2);
    opacity: 0;
    filter: blur(8px) saturate(0.68);
    transition:
        transform 420ms var(--ease-ui),
        height 420ms var(--ease-ui),
        clip-path 420ms var(--ease-ui),
        box-shadow var(--t-med) var(--ease-ui),
        filter 760ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 720ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--enter-order, 0) * 105ms + 220ms);
}

.blog-slider-section .card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-165%);
    background: linear-gradient(105deg,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 42%,
            rgba(255, 255, 255, 0.34) 50%,
            rgba(255, 255, 255, 0.1) 58%,
            transparent 100%);
    transition: opacity 220ms ease, transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-slider-section .card::after {
    content: none;
}

html[data-theme="dark"] .blog-slider-section .card::after {
    content: none;
}

.blog-slider-section .card img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: rgba(8, 14, 24, 0.74);
    display: block;
    pointer-events: none;
    transition: transform 640ms cubic-bezier(0.22, 1, 0.36, 1), filter 500ms ease;
}

.blog-slider-section .card-read-indicator {
    position: absolute;
    left: 50%;
    top: 0.7rem;
    transform: translateX(-50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: calc(100% - 1.4rem);
    padding: 0.32rem 0.78rem;
    border-radius: 999px;
    font-family: var(--ff-heading);
    font-size: 0.72rem;
    line-height: 1.2;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #F7FAFF;
    background: rgba(7, 16, 30, 0.68);
    border: 1px solid rgba(247, 250, 255, 0.28);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 460ms cubic-bezier(0.22, 1, 0.36, 1), background-color 320ms ease, border-color 320ms ease, box-shadow 320ms ease;
}

.blog-slider-section .card:hover {
    box-shadow: 0 24px 50px rgba(8, 14, 26, 0.38), 0 0 0 1px rgba(212, 175, 55, 0.24);
    filter: saturate(1.2) brightness(1.06);
}

.blog-slider-section .card:hover::before {
    opacity: 1;
    transform: translateX(165%);
}

.blog-slider-section .card:hover img {
    transform: scale(1.11);
    filter: saturate(1.2) contrast(1.07) brightness(1.06);
}

.blog-slider-section .card:hover .card-read-indicator {
    transform: translateX(-50%) translateY(-6px) scale(1.06);
    background: rgba(7, 16, 30, 0.94);
    border-color: rgba(247, 250, 255, 0.58);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35), 0 0 16px rgba(212, 175, 55, 0.2);
}

.blog-slider-section.is-visible::before {
    opacity: 0.8;
    transform: translateX(-50%) scale(1);
}

.blog-slider-section.is-visible .header .subtitle,
.blog-slider-section.is-visible .header .main-title {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.blog-slider-section.is-visible .slider-track {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.blog-slider-section.is-visible .card {
    opacity: 1;
    filter: blur(0) saturate(1);
}

.blog-slider-section.is-visible .card:hover {
    box-shadow: 0 24px 50px rgba(8, 14, 26, 0.38), 0 0 0 1px rgba(212, 175, 55, 0.24);
    filter: saturate(1.2) brightness(1.06);
}

/* ═══════════════════════════════════════════════════════
   About Page
   ═══════════════════════════════════════════════════════ */
.about-page {
    background: var(--page-bg);
}

.about-main {
    position: relative;
    min-height: 100vh;
    padding: calc(var(--nav-h) + 2.2rem) clamp(1rem, 4vw, 3.2rem) 4rem;
    background: radial-gradient(ellipse at top right, color-mix(in srgb, var(--accent) 14%, transparent), transparent 42%), var(--section-bg);
}

.about-main::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1200px, 94vw);
    height: 100%;
    pointer-events: none;
    background-image:
        linear-gradient(to right, transparent, color-mix(in srgb, var(--accent) 12%, transparent), transparent),
        repeating-linear-gradient(to right, transparent 0 72px, color-mix(in srgb, var(--border) 36%, transparent) 72px 73px);
    opacity: 0.22;
}

.about-hero {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0 auto 2.6rem;
    text-align: center;
}

.about-hero__eyebrow {
    margin: 0 0 0.85rem;
    color: var(--accent);
    font-family: var(--ff-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.about-hero__title {
    margin: 0 0 1rem;
    color: var(--heading);
    font-family: var(--ff-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.08;
    text-wrap: balance;
}

.about-hero__lead {
    margin: 0 auto;
    max-width: 78ch;
    color: var(--text);
    font-size: clamp(0.98rem, 1.6vw, 1.12rem);
    line-height: 1.8;
}

.about-team {
    position: relative;
    z-index: 1;
    width: min(1160px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 1.1rem;
}

.about-member {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1.1rem;
    align-items: stretch;
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: 0 12px 32px rgba(9, 15, 26, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform var(--t-med) var(--ease-ui), border-color var(--t-med) var(--ease-ui), box-shadow var(--t-med) var(--ease-ui);
}

.about-member:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--accent) 64%, var(--border));
    box-shadow: 0 16px 36px rgba(9, 15, 26, 0.24);
}

.about-member__media {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--border) 76%, transparent);
    background: color-mix(in srgb, var(--surface) 84%, transparent);
}

.about-member__media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(165deg, transparent 58%, rgba(0, 0, 0, 0.18));
}

.about-member__media img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
}

.about-member__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.2rem 0.2rem 0.2rem 0.15rem;
}

.about-member__role {
    margin: 0 0 0.55rem;
    color: var(--accent);
    font-family: var(--ff-heading);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.about-member__name {
    margin: 0 0 0.55rem;
    color: var(--heading);
    font-family: var(--ff-heading);
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    line-height: 1.2;
}

.about-member__bio {
    margin: 0;
    color: var(--text);
    font-size: 0.96rem;
    line-height: 1.76;
}

.about-member--bentley .about-member__role {
    color: color-mix(in srgb, var(--accent) 72%, var(--heading));
}

@media (max-width: 900px) {
    .carousel-modal {
        grid-template-columns: 1fr;
    }

    .carousel-modal__media-box {
        min-height: 220px;
    }

    .blog-slider-section {
        padding: 5.2rem 1rem 5.4rem;
    }

    .blog-slider-section .header {
        margin-bottom: 2.3rem;
    }

    .blog-slider-section .slider-track {
        min-height: 250px;
    }

    .blog-slider-section .card-read-indicator {
        font-size: 0.68rem;
        top: 0.6rem;
    }

    .about-main {
        padding-top: calc(var(--nav-h) + 1.7rem);
    }

    .about-team {
        gap: 0.9rem;
    }

    .about-member {
        grid-template-columns: 1fr;
        padding: 0.9rem;
    }

    .about-member__media img {
        min-height: 260px;
        max-height: 360px;
    }
}

@media (max-width: 640px) {
    .blog-slider-section .slider-container {
        perspective: 1000px;
    }

    .blog-slider-section .slider-track {
        min-height: 224px;
        gap: 0.35rem;
    }

    .about-main {
        padding: calc(var(--nav-h) + 1.2rem) 0.9rem 2.3rem;
    }

    .about-hero {
        margin-bottom: 1.8rem;
    }

    .about-hero__lead {
        font-size: 0.96rem;
    }

    .about-member {
        padding: 0.72rem;
        border-radius: 14px;
    }

    .about-member__media {
        border-radius: 12px;
    }

    .about-member__media img {
        min-height: 200px;
    }

    .about-member__bio {
        font-size: 0.92rem;
        line-height: 1.68;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blog-slider-section::before,
    .blog-slider-section .header .subtitle,
    .blog-slider-section .header .main-title,
    .blog-slider-section .slider-track,
    .blog-slider-section .card {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
}
