:root {
    --serif: "Spectral", Georgia, serif;
    --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
    --mono: "IBM Plex Mono", "SFMono-Regular", monospace;
    --bg: #030814;
    --bg-soft: #081321;
    --bg-deep: #050b15;
    --panel: rgba(10, 22, 38, 0.76);
    --panel-strong: rgba(11, 23, 40, 0.88);
    --panel-hover: rgba(17, 35, 56, 0.98);
    --text: #edf4ff;
    --text-soft: #b7c7da;
    --text-muted: #7f92ac;
    --line: rgba(148, 183, 222, 0.16);
    --line-strong: rgba(152, 200, 255, 0.3);
    --accent: #89d5ff;
    --accent-strong: #5cbcf8;
    --accent-alt: #9f89ff;
    --accent-soft: rgba(137, 213, 255, 0.16);
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
    --max-width: 1180px;
    --narrow-width: 920px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.75;
    background:
        radial-gradient(circle at top left, rgba(73, 120, 255, 0.16), transparent 28%),
        radial-gradient(circle at 85% 12%, rgba(0, 214, 255, 0.12), transparent 22%),
        linear-gradient(180deg, #040a14 0%, #050d18 38%, #030814 100%);
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -3;
}

body::before {
    background:
        linear-gradient(rgba(149, 189, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(149, 189, 255, 0.04) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent 96%);
    opacity: 0.55;
}

body::after {
    background:
        linear-gradient(125deg, transparent 0 32%, rgba(113, 172, 235, 0.035) 32.2%, transparent 32.45%),
        linear-gradient(0deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.015));
    mix-blend-mode: screen;
    opacity: 0.52;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: #e6f6ff;
}

.container,
.container-narrow,
.container-wide {
    width: min(100%, var(--max-width));
    margin: 0 auto;
    padding: 0 28px;
}

.container-narrow {
    width: min(100%, var(--narrow-width));
}

.page-lights {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    overflow: hidden;
}

.page-light,
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.24;
}

.page-light-a {
    width: 34rem;
    height: 34rem;
    top: -8rem;
    left: -10rem;
    background: rgba(88, 135, 255, 0.48);
    animation: drift 18s ease-in-out infinite;
}

.page-light-b {
    width: 28rem;
    height: 28rem;
    right: -6rem;
    top: 18rem;
    background: rgba(0, 203, 255, 0.34);
    animation: drift 22s ease-in-out infinite reverse;
}

.page-light-c {
    width: 26rem;
    height: 26rem;
    left: 44%;
    bottom: -10rem;
    background: rgba(153, 102, 255, 0.28);
    animation: drift 24s ease-in-out infinite;
}

.page-noise {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.8) 0.4px, transparent 0.6px);
    background-size: 10px 10px;
    animation: grain 10s steps(6) infinite;
}

.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    background: rgba(4, 11, 22, 0.36);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.navbar.scrolled {
    background: rgba(4, 11, 22, 0.84);
    border-bottom-color: rgba(120, 182, 255, 0.12);
    box-shadow: 0 12px 42px rgba(0, 0, 0, 0.22);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 28px;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.nav-logo:hover {
    color: var(--text);
}

.nav-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid rgba(137, 213, 255, 0.24);
    background:
        linear-gradient(135deg, rgba(91, 194, 255, 0.28), rgba(152, 107, 255, 0.24)),
        rgba(8, 18, 32, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 24px rgba(91, 194, 255, 0.12);
    font-family: var(--mono);
    font-size: 0.95rem;
}

.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--text-soft);
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(126, 196, 255, 0.08);
    border-color: rgba(126, 196, 255, 0.16);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    border: none;
    background: transparent;
    padding: 6px;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

.hero {
    position: relative;
    min-height: 100vh;
    padding: 138px 0 92px;
    overflow: hidden;
    background: #020613;
    border-bottom: 1px solid rgba(138, 195, 255, 0.08);
}

.hero-grid,
.hero-overlay,
.hero-stage-media {
    position: absolute;
    inset: 0;
}

.hero-stage-media {
    z-index: 0;
}

.hero-grid,
.hero-overlay {
    z-index: 1;
}

.hero-grid {
    background:
        linear-gradient(rgba(149, 189, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(149, 189, 255, 0.08) 1px, transparent 1px);
    background-size: 140px 140px;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.88), transparent 86%);
    opacity: 0.05;
    animation: grid-shift 30s linear infinite;
}

.hero-stage-media {
    overflow: hidden;
    pointer-events: none;
    background: #020613;
}

.hero-stage-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 36%, rgba(74, 160, 255, 0.16), transparent 38%),
        linear-gradient(90deg, rgba(2, 6, 19, 0.42), rgba(2, 6, 19, 0.06) 36%, rgba(2, 6, 19, 0.06) 64%, rgba(2, 6, 19, 0.42)),
        linear-gradient(180deg, rgba(2, 6, 19, 0.28), rgba(2, 6, 19, 0.06) 42%, rgba(2, 6, 19, 0.36));
    pointer-events: none;
}

.hero-video-wall {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 2px;
    background: rgba(1, 5, 15, 0.68);
    opacity: 1;
}

.hero-wall-panel {
    position: relative;
    overflow: hidden;
    background: #020613;
}

.hero-wall-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(2, 6, 19, 0.12), rgba(2, 6, 19, 0.02) 38%, rgba(2, 6, 19, 0.14)),
        linear-gradient(90deg, rgba(0, 0, 0, 0.1), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.1)),
        radial-gradient(circle at center, rgba(109, 180, 255, 0.08), transparent 62%);
    pointer-events: none;
}

.hero-wall-poster,
.hero-wall-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: saturate(1.08) brightness(1.02) contrast(1.08);
    transform: scale(1.05);
    transition: opacity 0.4s ease, transform 0.45s ease;
}

.hero-wall-poster {
    opacity: 1;
}

.hero-wall-video {
    opacity: 0;
}

.hero-wall-panel.preview-ready .hero-wall-video {
    opacity: 1;
}

.hero-overlay {
    background:
        radial-gradient(circle at 50% 39%, rgba(92, 173, 255, 0.18), transparent 30%),
        linear-gradient(180deg, rgba(2, 6, 19, 0.36) 0%, rgba(2, 6, 19, 0.14) 34%, rgba(2, 6, 19, 0.42) 76%, rgba(2, 6, 19, 0.72) 100%),
        linear-gradient(90deg, rgba(2, 6, 19, 0.46), rgba(2, 6, 19, 0.04) 30%, rgba(2, 6, 19, 0.04) 70%, rgba(2, 6, 19, 0.46));
}

.hero-orb {
    animation: drift 15s ease-in-out infinite;
}

.hero-orb-a {
    width: 34rem;
    height: 34rem;
    top: -7rem;
    right: -8rem;
    background: rgba(87, 174, 255, 0.12);
}

.hero-orb-b {
    width: 24rem;
    height: 24rem;
    left: -8rem;
    top: 16rem;
    background: rgba(0, 204, 255, 0.1);
    animation-delay: 3s;
}

.hero-orb-c {
    width: 22rem;
    height: 22rem;
    left: 44%;
    bottom: 8rem;
    background: rgba(159, 137, 255, 0.1);
    animation-delay: 6s;
}

.hero-shell {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 138px);
}

.hero-copy {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.hero-layout {
    position: relative;
    display: block;
    width: 100%;
    min-height: 360px;
}

.hero-badge,
.hero-title,
.hero-subtitle,
.hero-context,
.hero-links {
    animation: rise-in 0.9s both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding: 10px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(92, 161, 227, 0.1);
    color: var(--accent);
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
}

.hero-badge::before,
.hero-badge::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 18px currentColor;
}

.hero-title {
    margin: 0 auto 18px;
    max-width: 11ch;
    font-family: var(--serif);
    font-size: clamp(3.7rem, 10vw, 7.4rem);
    font-weight: 600;
    line-height: 0.94;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, #f7fbff 0%, #d7f1ff 24%, #83ceff 50%, #63a7ff 74%, #6cf0dd 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 12px 42px rgba(59, 147, 255, 0.22);
    filter: drop-shadow(0 0 20px rgba(83, 241, 212, 0.1));
}

.hero-subtitle {
    max-width: 780px;
    margin: 0 auto 18px;
    color: var(--text-soft);
    font-size: clamp(1.08rem, 2.2vw, 1.45rem);
    line-height: 1.6;
    text-wrap: balance;
}

.hero-context {
    max-width: 820px;
    margin: 0 auto 34px;
    color: #f8fcff;
    font-size: clamp(1.25rem, 2.4vw, 1.85rem);
    font-weight: 600;
    line-height: 1.35;
    text-wrap: balance;
    text-shadow: 0 3px 22px rgba(0, 0, 0, 0.86), 0 0 34px rgba(100, 187, 255, 0.22);
}

.hero-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.hero-link,
.section-panel,
.feature-card,
.resource-card,
.video-card {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 128px;
    min-height: 56px;
    padding: 0 24px;
    border: 2px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)),
        rgba(0, 0, 0, 0.76);
    color: var(--text);
    font-family: var(--sans);
    font-size: clamp(0.94rem, 1.45vw, 1.18rem);
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    backdrop-filter: blur(12px);
}

.hero-link:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.4);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
        rgba(0, 0, 0, 0.88);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
}

.hero-link-primary {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012)),
        rgba(0, 0, 0, 0.78);
    border-color: rgba(255, 255, 255, 0.28);
}

.hero-link-static {
    cursor: default;
    pointer-events: none;
}

.hero-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    color: currentColor;
}

.hero-link-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-link-primary .hero-link-icon svg {
    fill: currentColor;
    stroke: none;
}

.section-tag,
.feature-label,
.resource-kicker,
.video-kicker {
    margin-bottom: 10px;
    color: var(--accent);
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    animation: pulse-soft 2.8s ease-in-out infinite;
}

.hero-scroll-mouse {
    width: 26px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(145, 168, 196, 0.4);
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.hero-scroll-mouse div {
    width: 4px;
    height: 9px;
    border-radius: 999px;
    background: rgba(175, 195, 220, 0.82);
    animation: scroll-dot 1.6s ease-in-out infinite;
}

.section {
    position: relative;
    padding: 26px 0;
}

.authors-section {
    margin-top: 24px;
    padding-bottom: 44px;
}

#highlights {
    padding-top: 0;
}

.section-panel {
    position: relative;
    padding: 34px 34px 36px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(12, 27, 45, 0.82), rgba(7, 16, 28, 0.82)),
        rgba(8, 18, 32, 0.62);
    box-shadow: var(--shadow);
    overflow: hidden;
    backdrop-filter: blur(16px);
}

.section-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.12;
    pointer-events: none;
}

.section-panel::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-strong), rgba(159, 137, 255, 0.7), transparent 70%);
    opacity: 0.9;
}

.section-head,
.text-block,
.feature-grid,
.video-group,
.resource-grid,
.section-intro,
.figure-block,
.figure-grid,
.section-list,
.author-list,
.affiliation-list,
.author-notes,
.email-list,
.citation-box {
    position: relative;
    z-index: 1;
}

.section-head {
    margin-bottom: 20px;
}

.section-title {
    margin: 0;
    color: var(--text);
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.section-intro,
.text-block p {
    color: var(--text-soft);
    font-size: 1.02rem;
}

.authors-panel {
    padding-top: 0;
    padding-bottom: 0;
}

.author-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    padding: 6px 0;
    text-align: center;
}

.author-line {
    display: block;
    color: #f5fbff;
    font-family: var(--serif);
    font-size: clamp(1.02rem, 1.8vw, 1.22rem);
    font-weight: 700;
    line-height: 1.32;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.42);
}

.author-name {
    display: inline;
    white-space: nowrap;
}

.author-name sup {
    position: relative;
    top: -0.35em;
    margin-left: 1px;
    color: var(--accent);
    font-family: var(--sans);
    font-size: 0.62em;
    font-weight: 700;
    line-height: 0;
}

.affiliation-list,
.author-notes,
.email-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px 18px;
    text-align: center;
}

.affiliation-line,
.email-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 18px;
}

.affiliation-list {
    margin-top: 14px;
    color: var(--text-soft);
    font-size: clamp(0.86rem, 1.35vw, 1rem);
    font-weight: 500;
    line-height: 1.5;
}

.affiliation-line span,
.author-notes span,
.email-line span {
    white-space: nowrap;
}

.affiliation-list sup,
.author-notes sup {
    margin-right: 2px;
    color: var(--accent);
    font-size: 0.72em;
    font-weight: 700;
}

.author-notes {
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 10px;
    color: var(--text-muted);
    font-size: clamp(0.78rem, 1.16vw, 0.9rem);
    line-height: 1.45;
}

.email-list {
    margin-top: 10px;
    color: #dcecff;
    font-family: var(--mono);
    font-size: clamp(0.74rem, 1.1vw, 0.86rem);
    line-height: 1.55;
}

.citation-panel {
    padding-bottom: 26px;
}

.citation-title {
    text-align: center;
}

.citation-panel .section-head {
    margin-bottom: 26px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(148, 183, 222, 0.28);
}

.citation-box {
    border: 1px solid rgba(148, 183, 222, 0.18);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(246, 250, 255, 0.96), rgba(235, 242, 250, 0.96)),
        #f4f8fc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    overflow-x: auto;
}

.citation-box pre {
    margin: 0;
    min-width: 760px;
    padding: 34px;
    color: #142236;
    font-family: var(--mono);
    font-size: clamp(0.84rem, 1.5vw, 1rem);
    line-height: 1.85;
    white-space: pre;
}

.citation-box code {
    font: inherit;
}

.section-intro {
    width: 100%;
    margin: 12px 0 0;
    line-height: 1.85;
}

.text-block p {
    margin: 0 0 15px;
    line-height: 1.9;
}

.text-block p:last-child {
    margin-bottom: 0;
}

.callout {
    margin-top: 24px;
    padding: 18px 20px 18px 22px;
    border: 1px solid rgba(137, 213, 255, 0.18);
    border-left: 4px solid var(--accent);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(137, 213, 255, 0.08), rgba(159, 137, 255, 0.08));
    color: #e3f4ff;
    box-shadow: 0 14px 40px rgba(9, 20, 36, 0.22);
}

.divider {
    width: min(100% - 56px, var(--narrow-width));
    height: 34px;
    margin: 0 auto;
    border: none;
    background:
        linear-gradient(90deg, transparent, rgba(131, 188, 255, 0.24), rgba(159, 137, 255, 0.18), transparent) center / 100% 1px no-repeat;
    opacity: 0.85;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

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

.feature-card,
.resource-card,
.video-card {
    position: relative;
    padding: 24px;
    border: 1px solid rgba(145, 194, 247, 0.14);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(16, 31, 51, 0.86), rgba(8, 17, 29, 0.92)),
        rgba(8, 17, 29, 0.62);
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.feature-card::before,
.resource-card::before,
.video-card::before {
    content: "";
    position: absolute;
    inset: auto -14% -50% auto;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(137, 213, 255, 0.18), transparent 68%);
    opacity: 0.9;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.feature-card:hover,
.resource-card:hover,
.video-card:hover {
    transform: translateY(-6px);
    border-color: rgba(137, 213, 255, 0.3);
    background:
        linear-gradient(180deg, rgba(18, 37, 61, 0.96), rgba(8, 18, 30, 0.96)),
        rgba(8, 18, 30, 0.92);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.22);
}

.feature-card:hover::before,
.resource-card:hover::before,
.video-card:hover::before {
    transform: scale(1.08);
}

.feature-card h3,
.resource-card h3,
.group-header h3,
.video-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    color: var(--text);
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 600;
}

.feature-card p,
.resource-card p,
.group-header p,
.video-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--text-soft);
}

.video-group + .video-group {
    margin-top: 28px;
}

.figure-block {
    margin-top: 24px;
}

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

.analysis-media-stack {
    position: relative;
    z-index: 1;
    margin-top: 24px;
}

.analysis-media-stack .figure-card + .figure-card {
    margin-top: 20px;
}

.figure-card,
.figure-block {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(16, 31, 51, 0.82), rgba(8, 17, 29, 0.88)),
        rgba(8, 17, 29, 0.62);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.figure-card {
    padding: 12px;
}

.figure-block {
    padding: 14px;
}

.section-figure {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
}

.analysis-video-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(3, 8, 20, 0.72);
}

.analysis-video {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
    object-fit: contain;
}

.section-list {
    margin: 0 0 24px;
    padding-left: 22px;
    color: var(--text-soft);
    font-size: 1.02rem;
    line-height: 1.8;
}

.section-list li + li {
    margin-top: 10px;
}

.group-header {
    margin-bottom: 18px;
}

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

.video-grid-single {
    grid-template-columns: 1fr;
}

.video-card {
    padding: 14px;
}

.video-shell {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.22);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
    aspect-ratio: 16 / 9;
}

.video-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: inherit;
    pointer-events: none;
}

.video-poster,
.video-inline-player {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #02060d;
}

.video-poster {
    opacity: 1;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.video-inline-player {
    opacity: 0;
    transition: opacity 0.35s ease;
}

.video-card.video-ready .video-inline-player {
    opacity: 1;
}

.video-card.video-ready .video-poster {
    opacity: 0;
}

.video-card:hover .video-poster {
    transform: scale(1.02);
}

.video-loading-mark {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(211, 239, 255, 0.34);
    border-radius: 50%;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
        rgba(5, 13, 24, 0.64);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24), 0 0 30px rgba(91, 188, 248, 0.14);
    backdrop-filter: blur(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.video-loading-mark::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 2px solid rgba(237, 244, 255, 0.26);
    border-top-color: var(--accent);
    border-radius: 999px;
    animation: spin 0.9s linear infinite;
}

.video-card.video-ready .video-loading-mark,
.video-card.video-error .video-loading-mark {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

.video-card.video-error .video-poster {
    opacity: 1;
}

.video-card .video-kicker {
    margin-top: 12px;
    margin-bottom: 0;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

.footer {
    padding: 28px 0 44px;
}

.footer .container-narrow {
    padding: 24px 28px;
    border-top: 1px solid var(--line);
    color: var(--text-muted);
    font-family: var(--mono);
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
}

.footer .container-narrow p + p {
    margin-top: 10px;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes drift {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, -24px, 0) scale(1.06);
    }
}

@keyframes grain {
    0% { transform: translate(0, 0); }
    20% { transform: translate(-1%, 1%); }
    40% { transform: translate(1%, -1%); }
    60% { transform: translate(0.5%, 1.5%); }
    80% { transform: translate(-1.5%, -0.5%); }
    100% { transform: translate(0, 0); }
}

@keyframes grid-shift {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(70px);
    }
}

@keyframes pulse-soft {
    0%, 100% {
        opacity: 0.75;
    }
    50% {
        opacity: 1;
    }
}

@keyframes scroll-dot {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    70% {
        transform: translateY(12px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 0;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1120px) {
    .nav-container {
        gap: 12px;
        padding: 0 20px;
    }

    .nav-links {
        gap: 6px;
    }

    .nav-links a {
        padding: 0 8px;
        font-size: 0.64rem;
        letter-spacing: 0.04em;
    }

    .hero-layout {
        min-height: 340px;
    }

    .hero-video-wall {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .feature-grid,
    .resource-grid,
    .figure-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding: 128px 0 92px;
    }

    .hero-shell {
        min-height: auto;
    }

    .hero-layout {
        min-height: 300px;
    }

    .hero-copy {
        max-width: 760px;
    }

    .hero-links {
        justify-content: center;
    }
}

@media (max-width: 980px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 16px;
        right: 16px;
        flex-direction: column;
        gap: 8px;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: rgba(8, 16, 28, 0.96);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        justify-content: center;
        min-height: 42px;
        font-size: 0.72rem;
        letter-spacing: 0.07em;
    }
}

@media (max-width: 768px) {
    .hero-video-wall {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(4, minmax(0, 1fr));
    }

    .section-panel {
        padding: 28px 24px 30px;
        border-radius: 24px;
    }
}

@media (max-width: 540px) {
    body::before {
        background-size: 52px 52px;
    }

    .container,
    .container-narrow,
    .container-wide {
        padding: 0 18px;
    }

    .nav-container {
        min-height: 66px;
        padding: 0 18px;
    }

    .nav-logo {
        gap: 10px;
        font-size: 1.05rem;
    }

    .hero {
        padding: 118px 0 84px;
    }

    .hero-badge {
        padding: 9px 12px;
        font-size: 0.7rem;
        letter-spacing: 0.1em;
    }

    .hero-links {
        gap: 12px;
    }

    .hero-link {
        width: 100%;
    }

    .hero-layout {
        min-height: 260px;
    }

    .section {
        padding: 20px 0;
    }

    #highlights {
        margin-top: 12px;
    }

    .feature-card,
    .resource-card,
    .video-card {
        border-radius: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
