:root {
    --bg-dark: #0a0a12;
    --bg-panel: rgba(17, 17, 26, 0.88);
    --text-main: #e0e0e0;
    --text-mute: #a0a0b0;
    --accent-blue: #00f3ff;
    --accent-orange: #ff5e00;
    --accent-gold: #ffd700;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --glow-blue: 0 0 12px rgba(0, 243, 255, 0.45);
    --glow-orange: 0 0 18px rgba(255, 94, 0, 0.35);
    --border-glow: 1px solid rgba(0, 243, 255, 0.18);
    --panel-border: rgba(255, 255, 255, 0.10);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(0, 243, 255, 0.10), transparent 30%),
        radial-gradient(circle at bottom right, rgba(255, 94, 0, 0.08), transparent 28%),
        var(--bg-dark);
}

body.modal-open {
    overflow: hidden;
}

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

button {
    font: inherit;
}

.container {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    position: relative;
    min-height: 88vh;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background-image: url('../images/video-stills/video1/frame-15.png');
    background-size: cover;
    background-position: center;
}

.story-hero {
    background-image:
        radial-gradient(circle at 18% 22%, rgba(0, 243, 255, 0.14), transparent 20%),
        radial-gradient(circle at 82% 18%, rgba(255, 94, 0, 0.14), transparent 18%),
        radial-gradient(circle at 52% 58%, rgba(0, 243, 255, 0.06), transparent 28%),
        linear-gradient(135deg, rgba(5, 8, 16, 0.98), rgba(10, 16, 29, 0.97));
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(10, 10, 18, 0.82), rgba(10, 10, 18, 0.68) 44%, rgba(10, 10, 18, 0.94)),
        radial-gradient(circle at center, rgba(0, 243, 255, 0.08), transparent 42%);
}

.story-hero .hero-backdrop {
    background:
        linear-gradient(to bottom, rgba(8, 10, 18, 0.78), rgba(8, 10, 18, 0.58) 44%, rgba(8, 10, 18, 0.92)),
        radial-gradient(circle at 50% 38%, rgba(0, 243, 255, 0.08), transparent 34%);
}

.hero-shell {
    position: relative;
    z-index: 1;
    padding: 28px 0 86px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 56px;
}

.brand,
.section h2,
.card h3,
.summary-card h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.brand {
    font-size: 1.05rem;
    color: white;
    text-shadow: var(--glow-blue);
}

.back-link,
.jump-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.5rem;
    border: 1px solid rgba(0, 243, 255, 0.35);
    border-radius: 6px;
    background: rgba(0, 243, 255, 0.06);
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    transition: all 0.25s ease;
}

.back-link:hover,
.jump-link:hover {
    background: rgba(0, 243, 255, 0.14);
    box-shadow: var(--glow-blue);
    transform: translateY(-2px);
}

.eyebrow,
.section-label,
.chapter {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(0, 243, 255, 0.24);
    background: rgba(0, 243, 255, 0.10);
    color: #d8fbff;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 980px;
    margin: 28px 0 0;
    font-family: var(--font-heading);
    font-size: clamp(2.7rem, 6vw, 5.2rem);
    line-height: 1.04;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: white;
    text-shadow: var(--glow-blue);
}

.hero h1 span {
    display: block;
    color: var(--accent-orange);
    text-shadow: var(--glow-orange);
}

.hero p {
    max-width: 860px;
    margin: 24px 0 0;
    font-size: 1.15rem;
    line-height: 1.85;
    color: var(--text-main);
}

.tag-row,
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.tag {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 0.92rem;
}

.section {
    padding: 84px 0;
}

.section.alt,
.summary-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section h2 {
    margin-top: 18px;
    margin-bottom: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    color: white;
    text-shadow: var(--glow-blue);
}

.section-intro {
    max-width: 860px;
    margin-top: 20px;
    color: var(--text-mute);
    font-size: 1.08rem;
    line-height: 1.85;
}

.cards {
    display: grid;
    gap: 28px;
    margin-top: 40px;
}

.video-demo-hero {
    min-height: 78vh;
    background-image:
        radial-gradient(circle at 18% 22%, rgba(0, 243, 255, 0.18), transparent 20%),
        radial-gradient(circle at 82% 18%, rgba(255, 94, 0, 0.16), transparent 18%),
        radial-gradient(circle at 50% 58%, rgba(0, 243, 255, 0.08), transparent 28%),
        linear-gradient(135deg, rgba(6, 10, 18, 0.98), rgba(12, 18, 34, 0.96));
    background-size: cover;
    background-position: center;
}

.video-grid {
    display: grid;
    gap: 28px;
    margin-top: 40px;
}

.abstract-section {
    padding-top: 54px;
    padding-bottom: 24px;
}

.abstract-panel {
    padding: 32px;
    border-radius: 18px;
    border: var(--border-glow);
    background:
        linear-gradient(135deg, rgba(0, 243, 255, 0.08), rgba(17, 17, 26, 0.94)),
        radial-gradient(circle at top right, rgba(255, 94, 0, 0.10), transparent 26%);
    box-shadow: var(--shadow);
}

.abstract-panel h2 {
    margin-top: 18px;
    margin-bottom: 0;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: white;
    text-shadow: var(--glow-blue);
}

.video-card {
    overflow: hidden;
    border-radius: 18px;
    border: var(--border-glow);
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}

.video-card-top {
    padding: 32px 32px 20px;
}

.video-card h3 {
    margin-top: 18px;
    font-family: var(--font-heading);
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: white;
}

.video-card p {
    margin: 18px 0 0;
    color: var(--text-mute);
    line-height: 1.82;
}

.video-value {
    display: grid;
    gap: 8px;
    margin-top: 22px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(255, 94, 0, 0.10), rgba(0, 243, 255, 0.08));
}

.video-value strong {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-gold);
}

.video-value span {
    color: var(--text-main);
    line-height: 1.75;
}

.video-abstract-copy {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.video-abstract-copy strong {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-blue);
}

.video-abstract-copy span {
    color: var(--text-mute);
    line-height: 1.82;
}

.video-frame-shell {
    padding: 0 32px 24px;
}

.video-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.3);
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-actions {
    display: flex;
    justify-content: flex-end;
    padding: 0 32px 32px;
}

.card,
.summary-card {
    overflow: hidden;
    border-radius: 18px;
    border: var(--border-glow);
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}

.card-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
}

.card-copy {
    padding: 32px;
}

.card h3 {
    margin-top: 18px;
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    line-height: 1.3;
    color: white;
}

.card p {
    margin: 18px 0 0;
    color: var(--text-mute);
    line-height: 1.82;
}

.card ul {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.card li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-main);
}

.card li::before {
    content: '';
    width: 8px;
    height: 8px;
    margin-top: 9px;
    border-radius: 999px;
    background: var(--accent-orange);
    box-shadow: var(--glow-orange);
    flex: 0 0 auto;
}

.feature-shot {
    padding: 24px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.05), rgba(8, 11, 20, 0.92));
}

.feature-shot img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
    cursor: zoom-in;
}

.gallery-wrap {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px 24px 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(2, 6, 23, 0.16));
}

.gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.gallery-title {
    color: white;
    font-family: var(--font-heading);
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.gallery-hint {
    color: var(--text-mute);
    font-size: 0.84rem;
}

.gallery {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 26%);
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
}

.gallery::-webkit-scrollbar {
    height: 10px;
}

.gallery::-webkit-scrollbar-thumb {
    background: rgba(0, 243, 255, 0.25);
    border-radius: 999px;
}

.thumb {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    color: inherit;
    text-align: left;
    transition: all 0.2s ease;
    scroll-snap-align: start;
}

.thumb:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 243, 255, 0.32);
    box-shadow: var(--glow-blue);
}

.thumb img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
}

.thumb-label {
    font-size: 0.84rem;
    color: var(--text-main);
    line-height: 1.55;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.summary-card {
    padding: 28px;
}

.summary-card.highlight {
    border-color: rgba(255, 94, 0, 0.22);
    background: linear-gradient(135deg, rgba(255, 94, 0, 0.10), rgba(17, 17, 26, 0.92));
}

.summary-card h3 {
    margin-top: 18px;
    font-size: 1.55rem;
    color: white;
}

.summary-card p {
    margin-top: 16px;
    color: var(--text-mute);
    line-height: 1.82;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.86);
    backdrop-filter: blur(10px);
}

.lightbox.open {
    display: flex;
}

.lightbox-panel {
    width: min(1200px, 100%);
    max-height: 100%;
    border-radius: 18px;
    border: var(--border-glow);
    background: rgba(10, 10, 18, 0.96);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.lightbox-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-kicker {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-blue);
}

.lightbox-title {
    margin-top: 8px;
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    color: white;
}

.lightbox-close {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-radius: 999px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lightbox-close:hover {
    border-color: rgba(255, 94, 0, 0.35);
    color: var(--accent-orange);
}

.lightbox-body {
    padding: 20px;
}

.lightbox-image {
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 980px) {
    .topbar,
    .card-top,
    .summary-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .feature-shot {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .gallery {
        grid-auto-columns: minmax(240px, 78%);
    }
}

@media (max-width: 720px) {
    .hero-shell,
    .section {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .hero-actions,
    .topbar {
        gap: 12px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-copy,
    .feature-shot,
    .gallery-wrap,
    .summary-card,
    .abstract-panel,
    .video-card-top,
    .video-frame-shell,
    .video-actions {
        padding-left: 18px;
        padding-right: 18px;
    }

    .gallery-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .gallery {
        grid-auto-columns: minmax(220px, 88%);
    }

    .video-actions {
        justify-content: stretch;
    }

    .video-actions .jump-link {
        width: 100%;
    }
}
