:root {
    color-scheme: dark;
    --ink: #f4f1ea;
    --muted: rgba(244, 241, 234, 0.48);
    --quiet: rgba(244, 241, 234, 0.24);
    --line: rgba(244, 241, 234, 0.1);
    --line-strong: rgba(244, 241, 234, 0.16);
    --cyan: #65c5df;
    --terracotta: #df7c58;
    --gold: #f0cf72;
    --paper: #070808;
}

* {
    box-sizing: border-box;
}

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

body {
    overflow: hidden;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#gallery-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.48;
    pointer-events: none;
}

body::after {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(7, 8, 8, 0.16), rgba(7, 8, 8, 0.9) 58%, rgba(7, 8, 8, 0.98)),
        linear-gradient(90deg, rgba(7, 8, 8, 0.98), rgba(7, 8, 8, 0.64) 48%, rgba(7, 8, 8, 0.94));
    content: "";
    pointer-events: none;
}

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

h1,
h2,
p {
    margin: 0;
}

.gallery-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: minmax(220px, 34vh) minmax(0, 1fr);
    width: min(1115px, calc(100vw - 92px));
    height: 100dvh;
    margin: 0 auto;
    padding: clamp(24px, 3.2vh, 40px) 0 clamp(16px, 2.4vh, 28px);
}

.gallery-hero {
    display: grid;
    align-content: start;
    justify-items: start;
    padding-top: 2px;
}

.hero-eyebrow,
.section-heading h2 {
    color: var(--quiet);
    font-size: 14px;
    font-weight: 760;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
}

.hero-eyebrow {
    margin-bottom: clamp(36px, 6.2vh, 58px);
}

h1 {
    max-width: none;
    font-size: clamp(58px, 8vw, 104px);
    font-weight: 820;
    letter-spacing: 0;
    line-height: 0.93;
    white-space: nowrap;
}

.gallery-hero > p:last-child {
    max-width: 670px;
    margin-top: 22px;
    color: var(--muted);
    font-size: clamp(15px, 1.45vw, 20px);
    font-weight: 650;
    letter-spacing: 0;
    line-height: 1.35;
}

.gallery-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 0;
    border-top: 1px solid var(--line);
}

.gallery-section {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
    padding-top: clamp(22px, 3.4vh, 34px);
}

.gallery-section--fingerprints {
    padding-right: clamp(36px, 5vw, 72px);
}

.gallery-section--airspace {
    padding-left: clamp(36px, 5vw, 72px);
    border-left: 1px solid var(--line);
}

.section-heading {
    display: grid;
    gap: 12px;
    margin-bottom: clamp(18px, 2.8vh, 30px);
}

.section-heading p {
    color: var(--muted);
    font-size: clamp(15px, 1.4vw, 20px);
    font-weight: 650;
    letter-spacing: 0;
    line-height: 1.25;
}

.gallery-grid {
    display: grid;
    min-height: 0;
}

.gallery-grid--fingerprints {
    align-content: start;
}

.gallery-grid--airspace {
    grid-template-columns: 1fr;
    align-content: start;
}

.gallery-card {
    position: relative;
    display: grid;
    grid-template-columns: clamp(116px, 12vw, 148px) minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    min-height: clamp(68px, 9.2vh, 88px);
    padding: clamp(8px, 1.2vh, 14px) 0;
    border-bottom: 1px solid var(--line);
    outline: 0;
    transition:
        opacity 180ms ease,
        transform 180ms ease;
}

.gallery-card:hover {
    opacity: 1;
    transform: translateX(4px);
}

.gallery-card:hover .card-preview {
    opacity: 0.92;
}

.card-preview {
    grid-row: 1 / span 2;
    width: clamp(92px, 10vw, 128px);
    height: clamp(42px, 5.5vh, 58px);
    overflow: visible;
    opacity: 0.7;
}

.gallery-section--airspace .card-preview {
    width: clamp(54px, 5.8vw, 76px);
    height: clamp(46px, 6.2vh, 62px);
    margin-left: 2px;
}

.card-kicker,
.gallery-card small {
    display: none;
}

.gallery-card strong {
    grid-column: 2;
    align-self: end;
    color: var(--ink);
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 0.96;
}

.gallery-card span:not(.card-kicker) {
    grid-column: 2;
    align-self: start;
    margin-top: 7px;
    overflow: hidden;
    color: var(--muted);
    font-size: clamp(13px, 1.25vw, 18px);
    font-weight: 650;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-line,
.preview-radius {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.preview-line {
    filter: drop-shadow(0 0 3px currentColor);
}

.preview-route {
    color: var(--gold);
    stroke: var(--gold);
    stroke-width: 0.58;
    opacity: 0.4;
}

.preview-arrival {
    color: var(--cyan);
    stroke: var(--cyan);
    stroke-width: 0.82;
    opacity: 0.48;
}

.preview-departure {
    color: var(--terracotta);
    stroke: var(--terracotta);
    stroke-width: 0.82;
    opacity: 0.48;
}

.preview-radius {
    stroke: rgba(240, 207, 114, 0.25);
    stroke-width: 1.1;
    stroke-dasharray: 5 7;
}

.preview-airport {
    fill: var(--ink);
    opacity: 0.74;
}

@media (max-width: 900px) {
    body {
        overflow-y: auto;
    }

    .gallery-shell {
        grid-template-rows: auto auto;
        width: min(100vw - 36px, 680px);
        height: auto;
        min-height: 100dvh;
        padding-bottom: 34px;
    }

    .gallery-hero {
        min-height: 420px;
    }

    h1 {
        white-space: normal;
    }

    .gallery-showcase {
        grid-template-columns: 1fr;
    }

    .gallery-section--fingerprints,
    .gallery-section--airspace {
        padding-right: 0;
        padding-left: 0;
        border-left: 0;
    }

    .gallery-section--airspace {
        border-top: 1px solid var(--line);
    }
}

@media (max-height: 760px) and (min-width: 901px) {
    .gallery-shell {
        grid-template-rows: minmax(188px, 31vh) minmax(0, 1fr);
    }

    .hero-eyebrow {
        margin-bottom: clamp(24px, 4.5vh, 34px);
    }

    h1 {
        font-size: clamp(48px, 7.1vw, 82px);
    }

    .gallery-hero > p:last-child {
        margin-top: 14px;
    }

    .gallery-section {
        padding-top: 18px;
    }

    .section-heading {
        margin-bottom: 12px;
    }

    .gallery-card {
        min-height: 62px;
        padding: 6px 0;
    }
}
