/* =========
   Base
   ========= */

:root {
    --bg-dark: #070707;
    --bg-darker: #050505;
    --bg-light: #101010;
    --accent-orange: #f29a1f;
    --accent-orange-dark: #b96d00;
    --accent-cyan: #00d0ff;
    --text-main: #f5f5f5;
    --text-muted: #c7c7c7;
    --radius-md: 0.75rem;
    --radius-lg: 1.25rem;
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.35);
    --max-width: 1280px;
    --transition-fast: 150ms ease-out;
    --transition-med: 220ms ease-out;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg-darker);
    color: var(--text-main);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* =========
   Top Nav
   ========= */

.top-nav {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.75rem 2.5rem;
    background: rgba(4, 4, 4, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(18px);
}

.logo-group {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-family: "Press Start 2P", system-ui, sans-serif;
}

.logo-kanji {
    font-size: 1.6rem;
    line-height: 1;
}

.logo-kanji.small {
    font-size: 1.1rem;
}

.logo-text {
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nav-links a {
    position: relative;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.3rem 0.2rem;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.25rem;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    background: var(--accent-cyan);
    transition: transform var(--transition-fast);
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--text-main);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    transform: scaleX(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-cta {
    font-size: 0.8rem;
}

/* ============================
   Tools Dropdown (Desktop)
   ============================ */

.nav-item.dropdown {
    position: relative;
}

/* Make "TOOLS" look like the other links */
.nav-links .dropdown-toggle {
    position: relative;
    padding: 0.3rem 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
}

/* underline on hover like other nav links */
.nav-links .dropdown-toggle::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.25rem;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    background: var(--accent-cyan);
    transition: transform var(--transition-fast);
}

.nav-item.dropdown:hover .dropdown-toggle,
.nav-item.dropdown:focus-within .dropdown-toggle {
    color: var(--text-main);
}

.nav-item.dropdown:hover .dropdown-toggle::after,
.nav-item.dropdown:focus-within .dropdown-toggle::after {
    transform: scaleX(1);
}

/* The dropdown panel itself */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 50%;
    transform: translateX(-50%); /* centers under TOOLS */
    background: rgba(8, 8, 8, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 0.5rem 0;
    min-width: 170px;
    display: none;
    flex-direction: column;
    z-index: 99;
    backdrop-filter: blur(14px);
}

.dropdown-item {
    padding: 0.55rem 1rem;
    font-size: 0.78rem;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* show panel on hover (desktop) */
.nav-item.dropdown:hover .dropdown-menu {
    display: flex;
}

/* show on hover (desktop) */
.nav-item.dropdown:hover .dropdown-menu {
    display: flex;
}


/* Mobile nav toggle */

.nav-toggle {
    display: none;
    width: 38px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    gap: 4px;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #f5f5f5;
    border-radius: 999px;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* =========
   Buttons
   ========= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-med), color var(--transition-med),
                transform var(--transition-fast), border-color var(--transition-med),
                box-shadow var(--transition-med);
}

.btn-primary {
    background: linear-gradient(120deg, var(--accent-orange), var(--accent-orange-dark));
    border-color: rgba(0, 0, 0, 0.7);
    color: #111;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.45);
}

.btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-main);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.04);
}

.btn-lg {
    padding: 0.9rem 1.9rem;
    font-size: 0.95rem;
}

.footer-btn {
    padding-inline: 0.9rem;
}

/* CRT toggle button */

.crt-toggle {
    font-size: 0.7rem;
}

/* =========
   Hero
   ========= */

.hero {
    background: radial-gradient(circle at top, #181818 0, #050505 55%, #000 100%);
    position: relative;
    padding-bottom: 1rem;
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3.5rem 2.5rem 3rem;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    gap: 2.5rem;
}

.hero-text h1 {
    font-family: "Press Start 2P", system-ui, sans-serif;
    font-size: clamp(2.1rem, 3vw, 2.8rem);
    line-height: 1.2;
    margin: 0.2rem 0 0.75rem;
    text-transform: uppercase;
}

.hero-tag {
    color: var(--accent-cyan);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-subtitle {
    color: var(--text-muted);
    max-width: 32rem;
    font-size: 0.96rem;
}

.hero-actions {
    margin: 1.4rem 0 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-meta {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
}

/* Hero media */

.hero-media {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
}

.hero-banner {
    position: relative;
}

/* Gallery / banner */

.gallery-container img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;     /* fill frame, no black bars */
    object-position: center;
    background: #000;      /* doesn't really show now, but fine to keep */
}

.gallery-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.07);
    height: 330px;   /* updated */
}

/* Gallery controls */

.gallery-controls {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    justify-content: flex-end;
    gap: 0.4rem;
    padding: 0.45rem 0.6rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.gallery-btn {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.7);
    color: #f5f5f5;
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast),
                transform var(--transition-fast), opacity var(--transition-fast);
}

.gallery-btn:hover,
.gallery-btn:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-1px);
}

/* Hero dots */

.hero-dots {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    align-items: center;
    margin-top: 0.6rem;
}

.hero-dots .dot {
    width: 22px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.hero-dots .dot.active {
    background: var(--accent-cyan);
    transform: scaleX(1.2);
}

/* Hazard borders (static) */

.hazard-border {
    position: relative;
    height: 26px;
    background-image: linear-gradient(
        135deg,
        var(--accent-orange) 25%,
        #000 25%,
        #000 50%,
        var(--accent-orange) 50%,
        var(--accent-orange) 75%,
        #000 75%,
        #000 100%
    );
    background-size: 48px 48px;
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.6);
}

.hazard-top {
    border-bottom: 1px solid #000;
}

.hazard-bottom {
    border-top: 1px solid #000;
}

/* =========
   NOW PLAYING BAR
   ========= */

.now-bar {
    background: #050608;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.now-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.55rem 2.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    font-size: 0.8rem;
}

.now-label {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-cyan);
    font-weight: 600;
}

.now-status {
    font-weight: 700;
}

/* Flashing LIVE Animation in Denki colors — no glow */
.now-status.live {
    font-weight: 900;
    animation: live-pulse 1.8s infinite ease-in-out;
}

/* Pulse animation */
@keyframes live-pulse {
    0% {
        color: var(--accent-orange);
        transform: scale(1);
    }
    50% {
        color: var(--accent-orange);
        transform: scale(1.06);
    }
    100% {
        color: var(--accent-orange);
        transform: scale(1);
    }
}

/* Simple pulsing red dot — no glow */
.now-status.live::before {
    content: "●";
    margin-right: 6px;
    color: #ff2a6f;
    font-size: 0.9em;
    animation: live-dot 1.8s infinite ease-in-out;
}

/* Subtle breathing effect via opacity + small scale */
@keyframes live-dot {
    0% {
        opacity: 0.35;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.08);
    }
    100% {
        opacity: 0.35;
        transform: scale(1);
    }
}

.now-details {
    color: var(--text-muted);
}

/* =========
   Sections
   ========= */

.section {
    padding: 3.25rem 1.5rem;
}

.section-dark {
    background: var(--bg-dark);
}

.section-light {
    background: #101215;
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    text-align: left;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.7rem;
    margin: 0 0 0.25rem;
}

.section-header p {
    margin: 0;
    color: var(--text-muted);
    max-width: 34rem;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
}

/* =========
   Past Events / Poster Wall
   ========= */

.poster-wall {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.4rem;
}

.poster-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transform-origin: center;
    transition: transform var(--transition-med), box-shadow var(--transition-med);
}

/* Slight “flyer taped to wall” wonkiness */
.poster-card:nth-child(2n) {
    transform: rotate(-1.5deg);
}
.poster-card:nth-child(3n) {
    transform: rotate(1.5deg);
}
.poster-card:nth-child(5n) {
    transform: rotate(-0.75deg);
}

.poster-card:hover,
.poster-card:focus-within {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.75);
}

.poster-image-wrap {
    position: relative;
    width: 100%;
    height: 100%;
}

.poster-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hover overlay with info */
.poster-overlay {
    position: absolute;
    inset: 0;
    padding: 0.75rem 0.9rem 1rem;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88),
        rgba(0, 0, 0, 0.15)
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.poster-card:hover .poster-overlay,
.poster-card:focus-within .poster-overlay {
    opacity: 1;
    transform: translateY(0);
}

.poster-title {
    margin: 0 0 0.2rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.poster-date {
    margin: 0 0 0.15rem;
    font-size: 0.78rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.poster-lineup {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Pills */

.section-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* “Flyer Wall” text */
.section-pill .pill-label {
    color: var(--accent-orange);
    font-weight: 600;
}

/* “Archive” text */
.section-pill .pill-value {
    color: var(--accent-cyan);
    font-weight: 700;
}

/* Grid 3 */

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.card {
    background: radial-gradient(circle at top, #202020 0, #0a0a0a 55%);
    border-radius: var(--radius-md);
    padding: 1.4rem 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card h3 {
    margin-top: 0;
}

/* Events layout */

.events-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr);
    gap: 2rem;
    align-items: stretch;
}

.event-poster img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.event-details {
    background: radial-gradient(circle at top, #191919 0, #070707 55%);
    border-radius: var(--radius-md);
    padding: 1.8rem 1.7rem 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
}

.event-title {
    margin: 0 0 0.25rem;
    font-size: 1.4rem;
}

.event-date,
.event-note {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.event-note {
    margin-top: 0.4rem;
}

.lineup {
    list-style: none;
    padding: 0;
    margin: 1.1rem 0 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lineup li {
    display: flex;
    justify-content: space-between;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-family: "Press Start 2P", system-ui, sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.lineup .time {
    color: var(--accent-cyan);
}

.event-meta p {
    margin: 0.2rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.event-cta-row {
    margin-top: 1.3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

/* Steps */

.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.steps-list h3 {
    margin-bottom: 0.25rem;
}

.center-row {
    margin-top: 2.1rem;
    display: flex;
    justify-content: center;
}

/* FAQ */

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
}

.faq-item {
    background: #0c0c0f;
    border-radius: var(--radius-md);
    padding: 1.25rem 1.3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* =========
   Footer
   ========= */

.site-footer {
    background: #050506;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.2rem 1.8rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-title {
    margin-left: 0.4rem;
    font-weight: 600;
}

.footer-sub {
    margin-left: 0.8rem;
    color: var(--accent-cyan);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

/* =========
   Mobile Menu
   ========= */

.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(20px);
    z-index: 55;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-med);
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-inner {
    max-width: 420px;
    height: 100%;
    margin-left: auto;
    padding: 1.4rem 1.6rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    background: #050506;
    box-shadow: -18px 0 40px rgba(0, 0, 0, 0.8);
}

.mobile-menu-header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.7rem;
}

.mobile-link {
    color: var(--text-main);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-link:last-child {
    border-bottom: none;
}

.mobile-menu-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* =========
   Lightbox
   ========= */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.open {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(6px);
}

.lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
    background: #000;
}

.lightbox-content img {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    border: none;
    background: rgba(0, 0, 0, 0.7);
    color: #f5f5f5;
    border-radius: 999px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* =========
   CRT MODE (full-site chunky scanlines)
   ========= */

body.crt {
    background: #020308;
    color: #f7f7f7;
    /* small punch so colors pop a bit more under scanlines */
    filter: contrast(1.08) saturate(1.1);
}

/* Big, obvious SNES/Genesis-style scanlines */
body.crt::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.10) 0px,
        rgba(255, 255, 255, 0.10) 1.5px,
        rgba(0, 0, 0, 0.85) 1px,
        rgba(0, 0, 0, 0.85) 3px
    );
    opacity: 0.4; /* was 0.6, lowered dramatically */
    animation: crt-flicker 8.2s infinite;
    z-index: 100;
}

/* Slight vignette so edges feel like a tube display */
body.crt::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.45) 70%);
    z-index: 99;
}

/* Reuse your existing flicker animation */
@keyframes crt-flicker {
    0%, 100% { opacity: 0.55; }
    10% { opacity: 0.7; }
    20% { opacity: 0.5; }
    35% { opacity: 0.75; }
    50% { opacity: 0.6; }
    65% { opacity: 0.78; }
    80% { opacity: 0.52; }
}

/* =========
   Responsive
   ========= */

@media (max-width: 960px) {
    .top-nav {
        flex-wrap: wrap;
        justify-content: space-between;
        padding-inline: 1.5rem;
    }

    .hero-inner {
        padding: 2.6rem 1.5rem 2.2rem;
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-media {
        order: -1;
    }

    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .events-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .steps-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .faq-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-container {
        height: 260px;
    }
}

@media (max-width: 640px) {
    .top-nav {
        padding-inline: 1rem;
    }

    .nav-links,
    .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .hero-inner {
        padding-inline: 1.1rem;
    }

    .section {
        padding-inline: 1.1rem;
    }

    .grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        order: 3;
    }
}
/* ============================
   Staff Section (Denki Porch)
   ============================ */

.staff-section {
    padding-block: 4rem;
}

.staff-section .section-title {
    font-size: 2rem;
    margin-bottom: 0.25rem;
    color: #f9fafb; /* white */
}

.staff-section .section-subtitle {
    margin-bottom: 2rem;
    color: #9ca3af;
    font-size: 0.95rem;
}

/* container of all groups */
.staff-groups {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* group header */
.staff-group-header {
    margin-bottom: 1.25rem;
    text-align: left;
}

.staff-group-title {
    display: inline-flex;
    flex-direction: column;
    gap: 0.05rem;
}

.staff-title-jp {
    font-size: 1.2rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #e5e7eb; /* white */
}

.staff-title-en {
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #e5e7eb; /* white */
}

.staff-group-tagline {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

/* one horizontal row per group */
.staff-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

/* ============================
   Card – bigger tile
   ============================ */

.staff-card {
    position: relative;
    width: 400px; /* profile tile size */
    padding: 1.3rem 1.3rem 1.1rem;
    border-radius: 1.25rem;
    background: #050708; /* flat Denki dark */
    border: 1px solid #27272a;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    transition:
        transform 160ms ease-out,
        box-shadow 160ms ease-out,
        border-color 160ms ease-out,
        background 180ms ease-out;
}

/* kill old holo layer if it existed */
.staff-card::before {
    content: none;
}

.staff-card:hover {
    transform: translateY(-5px);
    border-color: #4b5563;
    background: #060a0f;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
}

/* inner content */
.staff-card-inner {
    position: relative;
    z-index: 1;
}

/* header row inside card */
.staff-card-top {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

/* bigger rounded-square avatar (25–35% up) */
.staff-avatar {
    width: 84px;
    height: 84px;
    border-radius: 20%; /* rounded square */
    object-fit: cover;
    border: 2px solid #f9fafb;
    box-shadow: 0 0 0 2px #020617;
    background: #020617;
    flex-shrink: 0;
}

/* name + role */
.staff-name {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #f9fafb;
    margin-bottom: 0.15rem;
}

.staff-role {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #f9fafb; /* base white, recolored per role below */
}

/* ============================
   Metadata
   ============================ */

.staff-meta {
    font-size: 0.8rem;
    color: #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.staff-meta-label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
    color: #9ca3af;
}

.staff-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.1rem;
}

.staff-pill {
    border-radius: 999px;
    padding: 0.18rem 0.6rem;
    font-size: 0.75rem;
    border: 1px solid #4b5563;
    background: #020617;
    color: #e5e7eb;
}

/* ============================
   Socials (Denki colors)
   ============================ */

.staff-socials {
    margin-top: 0.35rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.staff-socials a {
    width: auto;
    height: auto;
    border: none;
    padding: 0;
    font-size: 1.25rem;
    color: var(--accent-white); /* Denki orange/yellow */
    text-decoration: none;
    transition:
        transform 140ms ease-out,
        color 140ms ease-out;
}

.staff-socials a:hover {
    transform: translateY(-1px) scale(1.06);
    color: #f29a1f; /* white on hover */
}


/* ============================
   Category badge (role color)
   ============================ */

.staff-category-badge {
    position: absolute;
    top: 0.6rem;
    right: 0.9rem;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.05rem;
    font-size: 0.65rem;
    text-align: right;
}

.staff-badge-jp,
.staff-badge-en {
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #f9fafb; /* base, recolored per role below */
}

/* Role color accents:
   - Founders: Denki orange
   - Organizers: Denki cyan
   - House DJs: white with cyan accent
*/

/* Founders */
.cat-founder .staff-role,
.cat-founder .staff-badge-jp,
.cat-founder .staff-badge-en {
    color: #f97316; /* Denki orange */
}

/* Organizers */
.cat-organizer .staff-role,
.cat-organizer .staff-badge-jp,
.cat-organizer .staff-badge-en {
    color: #22d3ee; /* Denki cyan */
}

/* House DJs */
.cat-house .staff-role,
.cat-house .staff-badge-jp,
.cat-house .staff-badge-en {
    color: #e5e7eb; /* white focus */
}

/* responsive tweak */
@media (max-width: 640px) {
    .staff-card {
        width: 100%;
        max-width: 400px;
    }

    .staff-group-header {
        text-align: center;
    }
}

