/* ============================================================
   Nerds Have Lego!!!! — nhl4.com
   ============================================================ */

/* ---- Inter variable font (self-hosted) ---- */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                   U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                   U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                   U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                   U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg-primary:    #0d1117;
    --bg-secondary:  #161b22;
    --bg-card:       #1c2230;
    --bg-card-hover: #212940;
    --accent:        #f5cd2f;
    --accent-dim:    #c4a310;
    --accent-glow:   rgba(245, 205, 47, 0.15);
    --red:           #ce1619;
    --text-primary:  #f0f6fc;
    --text-secondary:#8b949e;
    --text-muted:    #484f58;
    --border:        #30363d;
    --border-hover:  #484f58;
    --radius-sm:     6px;
    --radius-md:     12px;
    --radius-lg:     20px;
    --shadow-card:   0 4px 24px rgba(0,0,0,0.4);
    --shadow-hover:  0 8px 40px rgba(0,0,0,0.6);
    --transition:    0.2s ease;
    --font:          'Inter', system-ui, -apple-system, sans-serif;
    --nav-height:    64px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

/* ---- Utilities ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.accent { color: var(--accent); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-height);
    background: rgba(13, 17, 23, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-brick {
    display: inline-block;
    width: 28px;
    height: 20px;
    background: var(--accent);
    border-radius: 3px;
    position: relative;
    box-shadow: 0 0 0 2px var(--accent-dim);
}

.logo-brick::before,
.logo-brick::after {
    content: '';
    position: absolute;
    top: -5px;
    width: 8px;
    height: 5px;
    background: var(--accent);
    border-radius: 2px 2px 0 0;
}

.logo-brick::before { left: 3px; }
.logo-brick::after  { right: 3px; }

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.logo-accent { color: var(--accent); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

.nav-link {
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition), background var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.06);
}

.nav-subscribe {
    margin-left: 0.5rem;
    padding: 0.45rem 1rem;
    background: var(--red);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    transition: background var(--transition), transform var(--transition);
}

.nav-subscribe:hover {
    background: #e81c1f;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.4rem;
    margin-left: auto;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    transform: scale(1.05);
    transition: transform 20s ease;
}

.hero:hover .hero-bg { transform: scale(1.0); }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(13, 17, 23, 0.95) 0%,
        rgba(13, 17, 23, 0.8) 50%,
        rgba(13, 17, 23, 0.6) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding-top: 4rem;
    padding-bottom: 6rem;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    padding: 0.3rem 0.75rem;
    border: 1px solid rgba(245, 205, 47, 0.3);
    border-radius: 100px;
    background: rgba(245, 205, 47, 0.08);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.hero-scroll-hint span {
    display: block;
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--accent));
    margin: 0 auto;
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50%       { opacity: 1;   transform: scaleY(1); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: var(--accent);
    color: #000;
}

.btn-primary:hover {
    background: #ffe040;
    box-shadow: 0 6px 20px rgba(245, 205, 47, 0.35);
}

.btn-secondary {
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.14);
    border-color: var(--border-hover);
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}

.stats-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 2.5rem;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.15rem;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
    flex-shrink: 0;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 6rem 0; }

.section-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    margin-bottom: 2.5rem;
}

.section-tag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-glow);
    border: 1px solid rgba(245, 205, 47, 0.25);
    padding: 0.25rem 0.6rem;
    border-radius: 100px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-link {
    margin-left: auto;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.section-link:hover { color: var(--accent); }

.section-intro {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin-bottom: 2.5rem;
    line-height: 1.75;
}

/* ============================================================
   FEATURED VIDEO
   ============================================================ */
.featured-section { background: var(--bg-secondary); }

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.featured-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
}

.featured-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    display: block;
}

.featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.featured-thumb:hover img { transform: scale(1.04); }

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(0,0,0,0.35);
    transition: background var(--transition);
}

.featured-thumb:hover .play-overlay { background: rgba(0,0,0,0.5); }

.play-btn-large {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(245, 205, 47, 0.5);
    transition: transform var(--transition), box-shadow var(--transition);
    color: #000;
}

.featured-thumb:hover .play-btn-large {
    transform: scale(1.1);
    box-shadow: 0 0 50px rgba(245, 205, 47, 0.7);
}

.views-badge {
    background: rgba(0,0,0,0.7);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
    letter-spacing: 0.03em;
}

.featured-info {
    padding: 2.5rem 2.5rem 2.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.video-meta-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 600;
}

.featured-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.featured-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================================
   VIDEO GRID
   ============================================================ */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.video-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.card-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card-thumb:hover img { transform: scale(1.06); }

.card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0);
    transition: background var(--transition);
    color: #fff;
}

.card-thumb:hover .card-play { background: rgba(0,0,0,0.4); }

.card-play svg { opacity: 0; transform: scale(0.8); transition: opacity var(--transition), transform var(--transition); }
.card-thumb:hover .card-play svg { opacity: 1; transform: scale(1); }

.card-badge {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
}

.badge-moc {
    background: var(--accent);
    color: #000;
}

.card-info {
    padding: 1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.card-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.card-desc {
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   MOCs SECTION
   ============================================================ */
.mocs-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.moc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.moc-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.moc-card:hover {
    border-color: var(--accent-dim);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover), 0 0 0 1px rgba(245, 205, 47, 0.15);
}

.moc-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.moc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: brightness(0.85);
}

.moc-thumb:hover img {
    transform: scale(1.05);
    filter: brightness(1);
}

.moc-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.2);
    transition: background var(--transition);
}

.moc-thumb:hover .moc-play-overlay { background: rgba(0,0,0,0.45); }
.moc-thumb:hover .card-play svg { opacity: 1; transform: scale(1); }

.moc-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.moc-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.moc-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 100px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.moc-tag-scale {
    background: var(--accent-glow);
    border-color: rgba(245, 205, 47, 0.25);
    color: var(--accent);
}

.moc-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.moc-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ============================================================
   SHORTS SECTION
   ============================================================ */
.shorts-section { background: var(--bg-secondary); }

.shorts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}

.short-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition);
}

.short-card:hover { transform: translateY(-4px); }

.short-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.short-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.short-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.2s ease;
    filter: brightness(0.8);
}

.short-card:hover .short-thumb-wrap img {
    transform: scale(1.05);
    filter: brightness(1);
}

.short-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0);
    color: #fff;
    transition: background var(--transition);
}

.short-play svg { opacity: 0; transition: opacity var(--transition); }
.short-card:hover .short-play { background: rgba(0,0,0,0.35); }
.short-card:hover .short-play svg { opacity: 1; }

.shorts-pill {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    background: var(--red);
    color: #fff;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}

.short-info {
    padding: 0.6rem 0.1rem 0;
}

.short-title {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.short-views {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 200px;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.about-content p {
    font-size: 0.975rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-content strong { color: var(--text-primary); font-weight: 700; }

.about-actions { margin-top: 0.5rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 3rem 0 0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 2.5rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

.footer-brand { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-logo .logo-text { font-size: 1.25rem; }
.footer-tagline { font-size: 0.8rem; color: var(--text-muted); }

.footer-nav ul {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.footer-nav a:hover { color: var(--accent); }

.footer-social { display: flex; justify-content: flex-end; }

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.social-link:hover {
    color: var(--red);
    border-color: var(--red);
    background: rgba(206, 22, 25, 0.08);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ============================================================
   VIDEO MODAL
   ============================================================ */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.video-modal[hidden] { display: none; }

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0,0,0,0.7);
    animation: modalIn 0.25s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.modal-close:hover { background: rgba(0,0,0,0.9); }

.modal-iframe-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
}

.modal-iframe-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Prevent any element from causing horizontal overflow */
body { overflow-x: hidden; }

/* Safe grid columns — never wider than the container */
.video-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
}
.moc-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
}
.shorts-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(180px, 45%), 1fr));
}

@media (max-width: 900px) {
    /* Hero */
    .hero           { min-height: max(85svh, 480px); }
    .hero-content   { padding-top: 2rem; padding-bottom: 3.5rem; }
    .hero-eyebrow   { font-size: 0.72rem; }

    /* Stats — 2×2 grid */
    .stats-inner    { flex-wrap: wrap; justify-content: center; gap: 0; }
    .stat           { width: 50%; padding: 0.85rem 1rem; }
    .stat-divider   { display: none; }
    .stat-value     { font-size: 1.3rem; }

    /* Layout */
    .featured-card  { grid-template-columns: 1fr; }
    .featured-info  { padding: 1.5rem 1.5rem 2rem; }
    .about-grid     { grid-template-columns: 1fr; }
    .about-image    { max-height: 220px; overflow: hidden; }

    /* Sections */
    .section        { padding: 3rem 0; }
    .moc-grid       { grid-template-columns: 1fr; }
    .video-grid     { grid-template-columns: 1fr; }
    .section-header { gap: 0.5rem 1rem; }
    .section-link   { width: 100%; }

    /* Footer */
    .footer-inner   { grid-template-columns: 1fr; text-align: center; }
    .footer-social  { justify-content: center; }
    .footer-nav ul  { gap: 1rem; }
}

@media (max-width: 700px) {
    /* Nav — hamburger replaces inline links on portrait phones */
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 1rem 1.5rem 1.5rem;
        gap: 0.25rem;
        align-items: stretch;
        /* Shift up by full dropdown height PLUS the nav offset so no
           part of the panel (including the Subscribe button at the
           bottom) peeks into the viewport when closed */
        transform: translateY(calc(-100% - var(--nav-height)));
        transition: transform 0.3s ease;
        z-index: 99;
    }
    .nav-links.is-open { transform: translateY(0); }
    .nav-subscribe {
        margin-left: 0;
        margin-top: 0.5rem;
        text-align: center;
        padding: 0.65rem 1rem;
        display: block;
    }
}

@media (max-width: 480px) {
    /* Container tighter on very small screens */
    .container      { padding: 0 1rem; }

    /* Hero */
    .hero-title         { font-size: 2.4rem; }
    .hero-description   { font-size: 0.95rem; margin-bottom: 2rem; }
    .hero-actions       { flex-direction: column; align-items: stretch; }
    .hero-actions .btn  { justify-content: center; width: 100%; }

    /* Section titles */
    .section-title  { font-size: 1.6rem; }

    /* Featured */
    .featured-title { font-size: 1.2rem; }
    .featured-info  { padding: 1.25rem 1.25rem 1.5rem; }

    /* Shorts keep 2-col on phones */
    .shorts-grid    { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

    /* MOC cards */
    .moc-info       { padding: 1.25rem; }

    /* Sections */
    .section        { padding: 2.5rem 0; }
    .section-intro  { font-size: 0.95rem; }

    /* Stats single column on very narrow */
    .stat           { width: 50%; }
}
