* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #0b2545;
    color: #fff;
    text-align: center;
}

.site-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
}

.site-header a {
    color: inherit;
    text-decoration: none;
}

.site-logo {
    max-height: 80px;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
}

.site-subheader {
    padding: 0.5rem 1rem;
    background: #eef2f7;
    color: #33465d;
    font-size: 0.95rem;
    text-align: center;
}

.site-nav {
    background: #133a6b;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.site-nav ul {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0.75rem 1rem;
}

.site-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.site-nav a:hover,
.site-nav a.active {
    text-decoration: underline;
}

main {
    padding: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

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

.video-small {
    max-width: 360px;
}

.video-large {
    max-width: 640px;
}


figure {
    margin: 1.5rem 0;
}

figcaption {
    color: #58677a;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.news-list {
    display: grid;
    gap: 1.25rem;
}

.news-item {
    border-bottom: 1px solid #d8dee8;
    padding-bottom: 1.25rem;
}

.news-item h3,
.news-article h2 {
    margin-top: 0.35rem;
}

.news-article h2,
.news-summary {
    font-weight: 700;
}

.news-item a {
    color: #0b2545;
}

.news-date {
    color: #58677a;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.paragraph-caption {
    margin-bottom: 0.25rem;
}

.paragraph-caption.bold {
    font-weight: 700;
}

.video-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.video-row figure {
    align-items: center;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.video-row video {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: contain;
}

.video-row figcaption {
    max-width: 100%;
    text-align: center;
}

.gallery-page h2 {
    margin-bottom: 0.5rem;
}

.eyebrow {
    color: #58677a;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.gallery-intro {
    max-width: 42rem;
}

.gallery-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 2rem;
}

.gallery-item {
    margin: 0;
}

.gallery-item-wide {
    grid-column: span 2;
}

.gallery-item video,
.gallery-item img {
    aspect-ratio: 16 / 9;
    background: #102238;
    border-radius: 4px;
    object-fit: contain;
    width: 100%;
}

.gallery-item figcaption {
    display: grid;
    gap: 0.2rem;
}

.gallery-item figcaption strong {
    color: #0b2545;
}

.pitch-viewer-page h2 {
    margin-bottom: 0.5rem;
}

.pitch-viewer-intro {
    max-width: 48rem;
}

.pitch-status {
    background: #edf4ff;
    border: 1px solid #cfe1ff;
    border-radius: 8px;
    color: #1e3b76;
    margin: 1rem 0 1.5rem;
    padding: 0.75rem 1rem;
}

.pitch-layout {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pitch-layout .chart-card {
    grid-column: 1 / -1;
}

.chart-card,
.metrics-card {
    background: #f8fafc;
    border: 1px solid #dfe7f1;
    border-radius: 12px;
    padding: 1rem;
}

.chart-card-wide {
    grid-column: 1 / -1;
}

.pitch-chart {
    aspect-ratio: 21 / 7;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    width: 100%;
}

.pitch-subviews {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    margin: 0.25rem 0 0.75rem;
}

.pitch-subviews label {
    align-items: center;
    color: #33465d;
    display: flex;
    font-size: 0.9rem;
    font-weight: 600;
    gap: 0.4rem;
}

.pitch-3d {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    height: 420px;
    overflow: hidden;
    width: 100%;
}

.pitch-3d-fallback {
    align-items: center;
    color: #58677a;
    display: flex;
    height: 100%;
    justify-content: center;
    padding: 1rem;
    text-align: center;
}

.pitch-3d-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.25rem 0 0.75rem;
}

.pitch-3d-toolbar button {
    background: #fff;
    border: 1px solid #8795a5;
    border-radius: 6px;
    color: #0b2545;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    min-height: 2.5rem;
    padding: 0.45rem 0.8rem;
}

.pitch-3d-toolbar button:hover:not(:disabled) {
    background: #edf4ff;
}

.pitch-3d-toolbar button:focus-visible {
    outline: 3px solid #3399ff;
    outline-offset: 2px;
}

.pitch-3d-toolbar button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.pitch-3d-speed-control {
    align-items: center;
    color: #33465d;
    display: grid;
    font-size: 0.9rem;
    font-weight: 600;
    gap: 0.65rem;
    grid-template-columns: auto minmax(7rem, 12rem) 3rem;
}

.pitch-3d-speed-control input {
    accent-color: #c0392b;
    margin: 0;
    width: 100%;
}

.pitch-3d-speed-control output {
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.pitch-3d-controls-hint {
    color: #58677a;
    flex: 1 1 16rem;
    font-size: 0.85rem;
    text-align: right;
}

.pitch-metrics {
    display: grid;
    gap: 0.75rem;
    margin: 0;
}

.pitch-metrics div {
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.5rem;
}

.pitch-metrics div:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pitch-metrics dt {
    color: #58677a;
    font-weight: 600;
}

.pitch-metrics dd {
    margin: 0;
    font-weight: 700;
    text-align: right;
}

@media (max-width: 650px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item-wide {
        grid-column: auto;
    }

    .pitch-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .video-row {
        grid-template-columns: 1fr;
    }

    .video-row video {
        height: auto;
        aspect-ratio: 16 / 9;
    }
}