:root {
    --bg-void: #07060a;
    --bg-page: #0c0b10;
    --bg-panel: rgba(16, 14, 22, 0.78);
    --bg-panel-2: rgba(24, 20, 30, 0.88);
    --bg-dim: transparent;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.1);
    --border-gold: rgba(201, 164, 76, 0.45);
    --gold: #c9a44c;
    --gold-bright: #e6d08a;
    --gold-dim: #7a6540;
    --text: #f3eee4;
    --text-muted: #cbbfa8;
    --text-dim: #9a8f7d;
    --crimson: #8e3b34;
    --focus: #e6d08a;
    --shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    --shadow-hover: 0 18px 40px rgba(0, 0, 0, 0.42);
    --radius: 0.9rem;
    --radius-sm: 0.65rem;
    --header-h: 4.6rem;
    --content: 70rem;
    --content-narrow: 46rem;
    --space: 1rem;
    --font-display: "Cinzel", "Palatino Linotype", Palatino, "Times New Roman", serif;
    --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background: var(--bg-page);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
}

.site-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        url("../images/backgrounds/world.jpg") center / cover no-repeat;
}

.site-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 7, 12, 0.28) 0%, rgba(8, 7, 12, 0.58) 32%, rgba(8, 7, 12, 0.82) 100%),
        radial-gradient(120% 80% at 50% 0%, rgba(8, 7, 12, 0.15), rgba(8, 7, 12, 0.55));
}

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

a {
    color: var(--gold);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--gold-bright);
}

:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 50;
    background: var(--bg-panel-2);
    color: var(--gold-bright);
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);
}

.skip-link:focus {
    top: 1rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.wrap {
    width: min(calc(100% - 2rem), var(--content));
    margin-inline: auto;
}

.wrap--narrow {
    width: min(calc(100% - 2rem), var(--content-narrow));
}

.section {
    padding: 4.5rem 0;
}

.section--dim {
    background: transparent;
}

.section[id],
#top {
    scroll-margin-top: calc(var(--header-h) + 0.6rem);
}

.section-head {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 2.5rem;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.section-head p,
.center {
    color: var(--text-muted);
}

.center {
    text-align: center;
}

.muted {
    color: var(--text-dim);
}

.eyebrow {
    margin: 0 0 0.7rem;
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

h1,
h2,
.footer-brand {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    color: var(--gold-bright);
}

h1 {
    margin: 0 0 0.8rem;
    font-size: clamp(2.6rem, 7vw, 4.6rem);
}

h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.55rem, 3vw, 2.05rem);
}

h3 {
    margin: 0 0 0.55rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.01em;
}

.section-head h2::after,
.alpha-panel h2::after,
.final-cta h2::after,
.memory-panel h2::after {
    content: "";
    display: block;
    width: 3.2rem;
    height: 2px;
    margin: 0.85rem auto 0;
    background: var(--gold);
    border-radius: 99px;
}

.tile--copy h2::after {
    content: "";
    display: block;
    width: 3.2rem;
    height: 2px;
    margin: 0.85rem 0 1rem;
    background: var(--gold);
    border-radius: 99px;
}

p {
    margin: 0 0 1rem;
}

code {
    font-size: 0.9em;
    color: var(--gold-bright);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    height: var(--header-h);
    background: rgba(8, 7, 12, 0.62);
    border-bottom: 1px solid var(--border-subtle);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.header-inner {
    width: min(calc(100% - 2rem), var(--content));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--gold-bright);
    text-decoration: none;
    font-family: var(--font-display);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.92rem;
}

.brand img {
    width: 2.85rem;
    height: 2.85rem;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.site-nav ul {
    display: flex;
    gap: 0.2rem 1.15rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--gold-bright);
}

.nav-toggle {
    display: none;
    width: 2.6rem;
    height: 2.6rem;
    padding: 0;
    border: 1px solid var(--border);
    background: rgba(16, 14, 22, 0.7);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 1.1rem;
    height: 1px;
    margin: 0.28rem auto;
    background: var(--gold-bright);
}

.hero {
    position: relative;
    min-height: calc(100vh - var(--header-h));
    display: grid;
    justify-items: center;
    align-content: start;
    padding: 1.4rem 1rem 5rem;
}

.hero__content {
    position: relative;
    z-index: 1;
    width: min(100%, 44rem);
    text-align: center;
}

.hero__logo {
    width: min(350px, 80vw);
    height: auto;
    margin: 0 auto 1.2rem;
    filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.55));
}

.hero__tagline {
    margin-bottom: 1rem;
    font-family: var(--font-display);
    font-size: clamp(1.08rem, 2vw, 1.4rem);
    color: var(--gold);
    letter-spacing: 0.04em;
}

.hero__lead,
.hero__note {
    color: var(--text-muted);
}

.hero__lead,
.hero__tagline,
.hero__note,
.hero .eyebrow {
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.hero__note {
    margin-top: 1.4rem;
    font-size: 0.95rem;
}

.badge-alpha {
    display: inline-block;
    margin: 0.4rem 0 1.5rem;
    padding: 0.32rem 0.85rem;
    border: 0;
    border-radius: 99px;
    background: rgba(201, 164, 76, 0.16);
    color: var(--gold-bright);
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.75rem;
    padding: 0.5rem 1.15rem;
    border: 1px solid var(--border-gold);
    border-radius: 0.7rem;
    background: rgba(28, 22, 16, 0.72);
    color: var(--gold-bright);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
    color: #fff8dc;
    background: rgba(44, 36, 22, 0.92);
    border-color: var(--gold-bright);
}

.btn-primary {
    background: #8e3b34;
    border-color: #a24a42;
    color: #fff8f0;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: #a3473f;
    border-color: #c9a44c;
    color: #fff;
}

.btn-ghost {
    background: rgba(8, 7, 12, 0.35);
}

.btn__icon {
    width: 1.2rem;
    height: 1.2rem;
    flex-shrink: 0;
    object-fit: contain;
}

.split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.5rem;
    align-items: stretch;
}

.plain-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 1.2rem;
    margin: 1.4rem 0 0;
    padding: 0;
    list-style: none;
}

.plain-list li {
    position: relative;
    padding-left: 1rem;
    color: var(--text-muted);
}

.plain-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 0.4rem;
    height: 1px;
    background: var(--gold);
}

.tile {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tile--copy,
.alpha-panel,
.final-cta,
.memory-panel {
    padding: 1.7rem 1.5rem 1.8rem;
}

.feature-card {
    padding: 0;
    text-align: left;
    overflow: hidden;
}

.resource-card,
.download-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 1.35rem 1.15rem 1.4rem;
    text-align: center;
}

.resource-card .btn {
    margin-top: auto;
}

.feature-card:hover,
.resource-card:hover,
.download-card:hover,
.shot:hover,
.shot:focus-visible {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-gold);
}

.feature-card__shot {
    display: block;
    overflow: hidden;
    color: inherit;
}

.feature-card__shot img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.25s ease, filter 0.2s ease;
}

.feature-card__shot:hover img,
.feature-card__shot:focus-visible img {
    transform: scale(1.06);
    filter: brightness(1.08);
}

.feature-card__body {
    padding: 1.05rem 1.1rem 1.15rem;
}

.feature-card__body p {
    margin-bottom: 0;
}

.framed-shot {
    margin: 0;
    overflow: hidden;
}

.framed-shot--stack {
    display: grid;
    grid-template-rows: 1fr 1fr;
    min-height: 100%;
}

.framed-shot--stack a {
    display: block;
    min-height: 0;
    overflow: hidden;
    color: inherit;
}

.framed-shot--stack img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    transition: transform 0.25s ease, filter 0.2s ease;
}

.framed-shot--stack a:hover img,
.framed-shot--stack a:focus-visible img {
    transform: scale(1.04);
    filter: brightness(1.08);
}

.feature-grid,
.community-grid,
.download-grid,
.shot-grid {
    display: grid;
    gap: 1.1rem;
}

.feature-grid {
    grid-template-columns: repeat(4, 1fr);
}

[hidden] {
    display: none !important;
}

.feature-card__body p,
.resource-card p,
.download-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.shot-grid {
    grid-template-columns: repeat(4, 1fr);
}

.shot {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
}

.shot img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.shot__caption {
    display: inline-flex;
    align-self: center;
    margin: 0.75rem auto 0.95rem;
    padding: 0.22rem 0.7rem;
    border-radius: 99px;
    color: #d7e4f5;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(90, 130, 180, 0.22);
}

.shot:hover img,
.shot:focus-visible img {
    transform: scale(1.06);
}

.video {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-void);
    aspect-ratio: 16 / 9;
}

.video iframe,
.video-facade,
.video-facade img,
.video-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-facade {
    padding: 0;
    cursor: pointer;
    background: #000;
}

.video-facade img {
    object-fit: cover;
}

.video-facade__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4.2rem;
    height: 4.2rem;
    border: 1px solid var(--gold);
    border-radius: 50%;
    background: rgba(12, 11, 16, 0.72);
    transform: translate(-50%, -50%);
}

.video-facade__play::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 0.55rem 0 0.55rem 0.95rem;
    border-color: transparent transparent transparent var(--gold-bright);
}

.video-placeholder {
    display: grid;
    place-content: center;
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
}

.alpha-panel,
.final-cta,
.memory-panel {
    position: relative;
    text-align: center;
}

.alpha-panel p,
.final-cta p,
.memory-panel p {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-muted);
}

.download-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 1.5rem;
}

.download-card h3 {
    font-size: 1.2rem;
    color: var(--gold-bright);
}

.download-card .btn {
    margin: 0.4rem 0 0.7rem;
}

.meta {
    margin: 0.3rem 0 0.8rem;
    color: var(--text-dim);
    font-size: 0.92rem;
}

.community-grid {
    grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
}

.memory-panel p {
    font-style: italic;
}

main {
    position: relative;
    z-index: 1;
}

.site-footer {
    position: relative;
    z-index: 1;
    padding: 3rem 0 1.5rem;
    background: rgba(7, 6, 10, 0.72);
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.footer-inner {
    text-align: center;
}

.footer-brand {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    text-transform: uppercase;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    place-items: center;
    padding: 4rem 1rem 2rem;
    background: rgba(4, 3, 6, 0.92);
}

.lightbox.is-open {
    display: grid;
}

.lightbox figure {
    margin: 0;
    max-width: min(92vw, 1100px);
}

.lightbox img {
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #000;
}

.lightbox figcaption {
    margin-top: 0.8rem;
    text-align: center;
    color: var(--text-muted);
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    background: var(--bg-panel-2);
    color: var(--gold-bright);
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
}

.lightbox__close {
    top: 1rem;
    right: 1rem;
    min-height: 2.5rem;
    padding: 0 0.9rem;
}

.lightbox__nav {
    top: 50%;
    min-height: 2.6rem;
    padding: 0 0.8rem;
    transform: translateY(-50%);
}

.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }

body.lightbox-open,
body.nav-open {
    overflow: hidden;
}

@media (max-width: 1100px) {
    .feature-grid,
    .community-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .shot-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    .split,
    .download-grid {
        grid-template-columns: 1fr;
    }

    .framed-shot {
        display: none;
    }

    .nav-toggle {
        display: inline-block;
    }

    .site-nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        display: none;
        background: rgba(8, 7, 12, 0.94);
        border-bottom: 1px solid var(--border-subtle);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav ul {
        flex-direction: column;
        padding: 0.8rem 1.2rem 1.1rem;
        gap: 0;
    }

    .site-nav a {
        display: block;
        padding: 0.7rem 0;
        border-bottom: 1px solid var(--border-subtle);
    }

    .hero {
        min-height: 0;
        padding-top: 1.04rem;
    }

    .hero__actions {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        width: max-content;
        max-width: 100%;
        margin-inline: auto;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .plain-list {
        grid-template-columns: 1fr;
    }

    .lightbox__nav {
        top: auto;
        bottom: 1rem;
        transform: none;
    }
}

@media (max-width: 560px) {
    .feature-grid,
    .community-grid,
    .shot-grid {
        grid-template-columns: 1fr;
    }
}

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

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