/* --- THE FIRST BEAT | ABSOLUTE MASTER DESIGN SYSTEM --- */

/* ==========================================================================
   1. GLOBAL VARIABLES & THEME ENGINE
   ========================================================================== */
/* CLASSICAL VIBE (Default) */
:root {
    color-scheme: dark; 
    --bg-dark: #0b0f19;       
    --bg-card: #131c2e;       
    --text-main: #f8fafc;     
    --text-muted: #94a3b8;    
    --accent-primary: #f59e0b; 
    --accent-secondary: #06b6d4; 
    --mesh-color-1: rgba(6, 182, 212, 0.05);
    --mesh-color-2: rgba(245, 158, 11, 0.05);
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ROCK / ELECTRIC VIBE */
body.theme-rock {
    --bg-dark: #050508;       
    --bg-card: #120e1a;       
    --accent-primary: #d946ef; 
    --accent-secondary: #a855f7; 
    --mesh-color-1: rgba(168, 85, 247, 0.08);
    --mesh-color-2: rgba(217, 70, 239, 0.08);
}

/* LO-FI VIBE */
body.theme-lofi {
    --bg-dark: #18181b;       
    --bg-card: #27272a;       
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --accent-primary: #cbd5e1; 
    --accent-secondary: #a78bfa; 
    --mesh-color-1: rgba(167, 139, 250, 0.06);
    --mesh-color-2: rgba(251, 113, 133, 0.04);
}

/* ==========================================================================
   2. BASE RESETS, TYPOGRAPHY & FLOATING SCROLLBARS
   ========================================================================== */
* { 
    margin: 0; padding: 0; box-sizing: border-box; 
    scrollbar-width: thin; 
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent; 
}
html { scroll-behavior: smooth; background-color: var(--bg-dark); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-primary); border: 2px solid transparent; background-clip: padding-box; }
.modal-scroll::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); border-radius: 10px; margin: 24px 0; }

body {
    background-color: var(--bg-dark); color: var(--text-main); font-family: var(--font-sans); line-height: 1.6; overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
    background-image: radial-gradient(at 0% 0%, var(--mesh-color-1) 0px, transparent 50%), radial-gradient(at 100% 100%, var(--mesh-color-2) 0px, transparent 50%);
}

h1, h2, h3, h4 { font-weight: 800; color: var(--text-main); letter-spacing: -0.03em; line-height: 1.15; }
p { color: var(--text-muted); transition: color 0.5s ease; }
a { text-decoration: none; color: inherit; }

/* Accessibility Focus Ring */
button:focus-visible,
a:focus-visible,
.piano-key:focus-visible,
.string-btn:focus-visible,
.pill-btn:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 6rem 0; }
.section-title { text-align: center; font-size: 2.8rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: -1px; }
.section-subtitle { text-align: center; max-width: 600px; margin: 0 auto 4rem auto; font-size: 1.1rem; }
.section-title span { color: transparent; background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary)); -webkit-background-clip: text; background-clip: text; }

/* ==========================================================================
   3. UNIVERSAL NAVBAR & BUTTONS
   ========================================================================== */
.navbar { 
    background-color: rgba(11, 15, 25, 0.45); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); 
    position: fixed; top: 0; left: 0; right: 0; margin: 0 auto; width: 100%; max-width: 100%; z-index: 1000; 
    border: 1px solid transparent; border-bottom-color: rgba(255, 255, 255, 0.03); 
    transition: top 0.4s cubic-bezier(0.25, 1, 0.5, 1), max-width 0.4s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.4s ease, border-radius 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease !important;
}

.nav-container { 
    display: flex; justify-content: space-between; align-items: center; 
    height: 90px; width: 95%; max-width: 1400px; margin: 0 auto; position: relative; 
    transition: height 0.4s cubic-bezier(0.25, 1, 0.5, 1), width 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.logo-wrapper { display: flex; align-items: center; flex: 1; justify-content: flex-start; }
.logo-img { height: 55px; width: auto; object-fit: contain; transition: height 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important; }

.nav-links { display: flex; list-style: none; gap: 1.8rem; margin: 0 auto; padding: 0; }
.nav-links li { white-space: nowrap; }
.nav-links a { display: block; font-weight: 600; font-size: 0.95rem; color: #cbd5e1; position: relative; padding: 0.5rem 0; transition: color 0.3s ease; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; transform: scaleX(0); transform-origin: right; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }

.nav-home::after { background-color: #ef4444; }       
.nav-about::after { background-color: #f97316; }      
.nav-teachers::after { background-color: #eab308; }   
.nav-programs::after { background-color: #22c55e; }   
.nav-rehearsal::after { background-color: #06b6d4; }  
.nav-news::after { background-color: #6366f1; }       
.nav-contact::after { background-color: #a855f7; }    

.nav-right-actions { display: flex; align-items: center; justify-content: flex-end; gap: 1.5rem; flex: 1; }
.nav-enroll-btn { display: inline-block; background: transparent; color: var(--accent-primary); font-weight: 700; font-size: 0.9rem; padding: 0.6rem 1.4rem; border: 2px solid var(--accent-primary); border-radius: 50px; text-transform: uppercase; letter-spacing: 0.5px; transition: transform 0.1s ease, background 0.3s, box-shadow 0.3s; white-space: nowrap; }
.nav-enroll-btn:hover { background: var(--accent-primary); color: #000; box-shadow: 0 0 20px rgba(245, 158, 11, 0.4); }

.vibe-switcher { position: relative; }
.vibe-btn { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); color: var(--text-main); width: 42px; height: 42px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: all 0.2s; }
.vibe-btn:hover { border-color: var(--accent-primary); background: rgba(255, 255, 255, 0.08); }
.vibe-dropdown { display: none; position: absolute; top: 55px; right: 0; background: #111726; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 0.5rem; min-width: 160px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); z-index: 2000; }
.vibe-dropdown.show { display: block; }
.vibe-option { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; color: #cbd5e1; font-size: 0.9rem; font-weight: 600; cursor: pointer; border-radius: 8px; transition: all 0.2s; }
.vibe-option:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.vibe-option.active { color: var(--accent-primary); background: rgba(245, 158, 11, 0.05); }

.btn-primary { display: inline-block; background: linear-gradient(135deg, var(--accent-primary) 0%, #d97706 100%); color: #000; font-weight: 700; padding: 1rem 2.2rem; border-radius: 50px; box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25); transition: transform 0.1s ease, box-shadow 0.3s ease; border: none; font-family: inherit; cursor: pointer; }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(245, 158, 11, 0.45); }
.btn-secondary { display: inline-block; background-color: rgba(255, 255, 255, 0.03); color: var(--text-main); font-weight: 700; padding: 1rem 2.2rem; border: 2px solid rgba(255, 255, 255, 0.1); border-radius: 50px; transition: all 0.3s; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.5px; cursor: pointer; }
.btn-secondary:hover { border-color: var(--accent-secondary); background-color: rgba(6, 182, 212, 0.05); color: var(--accent-secondary); }

.magnet-target { transition: transform 0.1s ease-out, translate 0.1s ease-out; }
.disabled-btn { background-color: #4b5563 !important; color: #9ca3af !important; border-color: #4b5563 !important; cursor: not-allowed !important; pointer-events: none; transform: none !important; box-shadow: none !important; }

.mobile-only-enroll { display: none; }
.menu-toggle { display: none; width: 28px; height: 20px; position: relative; cursor: pointer; z-index: 1001; flex-shrink: 0; transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1); }
.menu-toggle span { display: block; position: absolute; height: 2px; width: 100%; background: var(--text-main); border-radius: 2px; opacity: 1; left: 0; transform: rotate(0deg); transition: .25s ease-in-out; }
.menu-toggle span:nth-child(1) { top: 0px; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }
.menu-toggle.is-active span:nth-child(1) { top: 9px; transform: rotate(135deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; left: -15px; }
.menu-toggle.is-active span:nth-child(3) { top: 9px; transform: rotate(-135deg); }

/* ==========================================================================
   4. HOMEPAGE SPECIFIC 
   ========================================================================== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: 90px; overflow: hidden; z-index: 1; }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s ease-in-out; z-index: 1; }
.hero-slide.active { opacity: 1; }
.hero::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(11, 15, 25, 0.95) 35%, rgba(11, 15, 25, 0.4) 100%); z-index: 2; }
.hero-content { max-width: 650px; text-align: left; position: relative; z-index: 3; }
.hero h1 { font-size: 4.2rem; margin-bottom: 1.5rem; background: linear-gradient(to right, #ffffff 60%, #cbd5e1 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 1.25rem; margin-bottom: 3rem; }
.hero-btns { display: flex; gap: 1.5rem; justify-content: flex-start; }

.stacking-deck { display: flex; flex-direction: column; gap: 4rem; max-width: 950px; margin: 0 auto 4rem auto; }
.service-card { position: sticky; top: 130px; background: linear-gradient(145deg, var(--bg-card) 0%, #0c1220 100%); border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.05); box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6); display: flex; align-items: stretch; overflow: hidden; min-height: 320px; transition: background 0.5s ease; }
.service-card-img-frame { width: 40%; position: relative; overflow: hidden; }
.service-card-img-frame img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.service-card-info { width: 60%; padding: 3.5rem; display: flex; flex-direction: column; justify-content: center; }
.service-card h3 { font-size: 1.8rem; margin-bottom: 0.75rem; color: #fff; }
.service-card p { font-size: 1.05rem; color: #cbd5e1; }
.deck-cta-container { display: flex; justify-content: center; margin-top: 2rem; }

.video-wrapper { position: relative; width: 100%; max-width: 900px; margin: 0 auto; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.08); aspect-ratio: 16 / 9; }
.video-wrapper iframe { width: 100%; height: 100%; object-fit: cover; }

.carousel-container { width: 100%; max-width: 955px; margin: 0 auto; position: relative; overflow: hidden; border-radius: 24px; aspect-ratio: 16 / 9; box-shadow: 0 30px 60px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.05); }
.carousel-track { display: flex; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); height: 100%; }
.carousel-slide { min-width: 100%; height: 100%; position: relative; cursor: pointer; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(11, 15, 25, 0.6); border: 1px solid rgba(255,255,255,0.1); color: #fff; width: 55px; height: 55px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px); z-index: 10; }
.carousel-btn:hover { background: var(--accent-secondary); color: #000; box-shadow: 0 0 25px rgba(6, 182, 212, 0.5); }
.carousel-btn.prev { left: 25px; } .carousel-btn.next { right: 25px; }

.center-container { display: flex; justify-content: center; }

/* ==========================================================================
   5. ABOUT PAGE SPECIFIC
   ========================================================================== */
.editorial-container { display: flex; flex-direction: column; gap: 6rem; margin-top: 3rem; }
.editorial-row { display: flex; align-items: center; gap: 4rem; }
.editorial-row:nth-child(even) { flex-direction: row-reverse; }
.editorial-img { flex: 1; position: relative; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.05); }
.editorial-img img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); display: block; }
.editorial-row:hover .editorial-img img { transform: scale(1.05); }
.editorial-text { flex: 1; padding: 2rem 0; }
.editorial-text h3 { font-size: 2.5rem; margin-bottom: 1.5rem; color: var(--text-main); }
.editorial-text p { font-size: 1.15rem; color: #cbd5e1; line-height: 1.8; }
.editorial-text .highlight { color: var(--accent-primary); font-weight: 600; font-style: italic; display: block; margin-top: 1.5rem; }

/* ==========================================================================
   6. TEACHERS PAGE SPECIFIC
   ========================================================================== */
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.teacher-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2.5rem; margin-top: 3rem; }
.teacher-card { background: linear-gradient(145deg, var(--bg-card) 0%, #0c1220 100%); border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.05); box-shadow: 0 15px 35px rgba(0,0,0,0.4); overflow: hidden; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease; display: flex; flex-direction: column; cursor: pointer; position: relative; }
.teacher-card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px rgba(0,0,0,0.6); }
.teacher-card::after { content: ''; position: absolute; inset: 0; border-radius: 24px; border: 3px solid transparent; background: conic-gradient(from var(--angle), #ff0055, #00ffcc, #ffcc00, #00ffff, #ff0055) border-box; -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0); -webkit-mask-composite: destination-out; mask-composite: exclude; opacity: 0; transition: opacity 0.4s ease; z-index: 10; pointer-events: none; }
.teacher-card:hover::after { opacity: 1; animation: spinEdge 2.5s linear infinite; }
@keyframes spinEdge { 0% { --angle: 0deg; } 100% { --angle: 360deg; } }
.teacher-img-frame { width: 100%; aspect-ratio: 1 / 1.1; overflow: hidden; position: relative; }
.teacher-img-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease; filter: grayscale(80%) contrast(1.1); }
.teacher-card:hover .teacher-img-frame img { transform: scale(1.08); filter: grayscale(0%) contrast(1); }
.teacher-info { padding: 2rem 1.5rem; text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.teacher-role { color: var(--accent-primary); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 800; margin-bottom: 0.5rem; display: block; }
.teacher-card h3 { font-size: 1.6rem; margin-bottom: 0; color: #fff; }
.teacher-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 1rem; text-transform: uppercase; letter-spacing: 1px; transition: color 0.3s ease; }
.teacher-card:hover .teacher-hint { color: #fff; }

/* ==========================================================================
   7. PROGRAMS PAGE SPECIFIC
   ========================================================================== */
.program-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2.5rem; margin-top: 3rem; }
.program-card { border-radius: 24px; overflow: hidden; position: relative; aspect-ratio: 4 / 3; cursor: pointer; box-shadow: 0 15px 35px rgba(0,0,0,0.4); border: 1px solid rgba(255, 255, 255, 0.05); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease; }
.program-card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px rgba(0,0,0,0.6); border-color: var(--accent-primary); }
.program-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); z-index: 0; }
.program-card:hover img { transform: scale(1.08); }
.program-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 15, 25, 0.95) 0%, rgba(11, 15, 25, 0.1) 100%); display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding: 2rem; z-index: 1; }
.program-card h3 { font-size: 2.2rem; color: #fff; margin-bottom: 0.5rem; text-shadow: 0 4px 10px rgba(0,0,0,0.5); text-align: center; }
.program-hint { color: var(--accent-primary); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; opacity: 0; transform: translateY(10px); transition: all 0.3s ease; }
.program-card:hover .program-hint { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   8. UNIVERSAL MODAL POPUP SYSTEM
   ========================================================================== */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); z-index: 3000; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: all 0.4s ease; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { background: linear-gradient(145deg, var(--bg-card) 0%, #0c1220 100%); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 24px; padding: 0; max-width: 600px; width: 90%; overflow: hidden; position: relative; transform: translateY(30px) scale(0.95); transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); box-shadow: 0 30px 60px rgba(0,0,0,0.8); }
.modal-scroll { max-height: 85vh; overflow-y: auto; padding: 3rem 2.5rem; display: flex; flex-direction: column; align-items: center; text-align: center; }
.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: rgba(30, 41, 59, 0.92); border: 1px solid rgba(255, 255, 255, 0.12); color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 1rem; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; z-index: 10; }
.modal-close:hover { background: #ef4444; color: #fff; transform: rotate(90deg); }

.modal-img { width: 140px; height: 140px; flex-shrink: 0; border-radius: 50%; object-fit: cover; margin-bottom: 1.5rem; border: 3px solid var(--accent-primary); box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3); }
.modal-role { color: var(--accent-primary); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 800; margin-bottom: 0.5rem; }

.modal-banner {
    width: 100%;
    height: auto; 
    max-height: 400px; 
    object-fit: contain; 
    background: rgba(0, 0, 0, 0.4); 
    border-radius: 12px;
    margin-bottom: 1.5rem; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.4); 
    border: 1px solid rgba(255, 255, 255, 0.05); 
}

.format-tags { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.format-tag { background: rgba(6, 182, 212, 0.1); color: var(--accent-secondary); border: 1px solid rgba(6, 182, 212, 0.3); padding: 6px 14px; border-radius: 50px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

.modal-name { font-size: 2.2rem; margin-bottom: 1.5rem; color: #fff; }
.modal-bio { font-size: 1.05rem; color: #cbd5e1; line-height: 1.8; margin-bottom: 2rem; text-align: justify; width: 100%; padding: 0 1rem; }

/* ==========================================================================
   9. BAND REHEARSAL PAGE SPECIFIC & LIGHTBOX SYSTEM
   ========================================================================== */
.rehearsal-split { display: grid; grid-template-columns: 1fr 340px; gap: 3rem; margin-top: 4rem; }
.studio-gear-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.studio-gear-box { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; transition: all 0.3s ease; }
.studio-gear-box:hover { border-color: var(--accent-primary); background: rgba(245, 158, 11, 0.05); transform: translateY(-3px); }
.studio-gear-box i { font-size: 1.5rem; color: var(--accent-secondary); margin-bottom: 0.5rem; }
.studio-gear-title { font-weight: 700; font-size: 1.1rem; color: #fff; }
.studio-gear-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.4; }

.protocol-list { list-style: none; padding: 0; margin-top: 1.5rem; }
.protocol-list li { position: relative; padding-left: 2rem; margin-bottom: 1rem; color: #cbd5e1; line-height: 1.5; }
.protocol-list li::before { content: '\f058'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: 2px; color: var(--accent-secondary); }

.rate-badge { display: inline-flex; flex-wrap: wrap; justify-content: center; text-align: center; background: rgba(245, 158, 11, 0.2); border: 1px solid var(--accent-primary); color: var(--accent-primary); padding: 0.6rem 1.2rem; border-radius: 50px; font-weight: 700; margin-bottom: 1.5rem; letter-spacing: 1px; font-size: clamp(0.75rem, 3vw, 0.9rem); line-height: 1.4; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.gallery-item { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid rgba(255, 255, 255, 0.05); box-shadow: 0 15px 35px rgba(0,0,0,0.4); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease; filter: grayscale(50%) contrast(1.1); }
.gallery-item:hover img { transform: scale(1.08); filter: grayscale(0%) contrast(1); }
.gallery-item::after { content: ''; position: absolute; inset: 0; border-radius: 16px; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow 0.4s ease; pointer-events: none; }
.gallery-item:hover::after { box-shadow: inset 0 0 0 2px var(--accent-primary); }

.lightbox-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.95); backdrop-filter: blur(10px); z-index: 4000; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.lightbox-overlay.active { opacity: 1; visibility: visible; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 2.5rem; cursor: pointer; transition: color 0.2s; z-index: 4001; }
.lightbox-close:hover { color: var(--accent-primary); }
.lightbox-content-wrapper { max-width: 90%; max-height: 85vh; position: relative; }
.lightbox-media { max-width: 100%; max-height: 85vh; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,0.7); object-fit: contain; }
.gallery-play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 3rem; color: rgba(255,255,255,0.8); pointer-events: none; text-shadow: 0 5px 15px rgba(0,0,0,0.5); transition: color 0.3s, transform 0.3s; }
.carousel-slide:hover .gallery-play-icon { color: var(--accent-primary); transform: translate(-50%, -50%) scale(1.1); }

/* ==========================================================================
   10. NEWS & EVENTS SPECIFIC
   ========================================================================== */
.news-layout-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; margin-top: 2rem; }
.news-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; margin-bottom: 3.5rem; display: grid; }
.news-card { background: linear-gradient(145deg, var(--bg-card) 0%, #0f172a 100%); border-radius: 20px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.03); transition: all 0.4s ease; cursor: pointer; }
.news-card:hover { border-color: var(--accent-primary); box-shadow: 0 15px 35px rgba(0,0,0,0.5); }
.news-img-frame { width: 100%; aspect-ratio: 4 / 5; height: auto; overflow: hidden; border-radius: 12px 12px 0 0; background: #0f141e; display: flex; align-items: center; justify-content: center; }
.news-img-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.5s ease; }
.news-card:hover .news-img-frame img { transform: scale(1.06); }
.news-content { padding: 2rem; }
.news-date { font-size: 0.85rem; color: var(--accent-secondary); text-transform: uppercase; font-weight: 700; letter-spacing: 1px; margin-bottom: 0.5rem; }
.news-card h3 { font-size: 1.4rem; margin-bottom: 1rem; line-height: 1.3; }

.loading-text { text-align: center; color: var(--text-muted); font-size: 1.2rem; padding: 4rem 0; width: 100%; grid-column: 1 / -1; }
.past-event-card img { filter: grayscale(40%) contrast(1.1); transition: filter 0.4s ease; }
.past-event-card:hover img { filter: grayscale(0%) contrast(1); }

/* --- Studio Bulletin Styling --- */
.bulletin-item {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bulletin-item:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.bulletin-date {
    font-size: 0.8rem;
    color: var(--accent-secondary);
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bulletin-text {
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--text-main);
}

/* --- COMPACT ARCHIVE STYLING (Desktop) --- */
#pastEventsGrid { grid-template-columns: repeat(3, 1fr) !important; gap: 1.5rem; }
.past-event-card .news-content { padding: 1rem !important; }
.past-event-card h3 { font-size: 1rem !important; margin-bottom: 0.5rem; }
.past-event-card .news-date { font-size: 0.7rem !important; }
.past-event-card p { font-size: 0.8rem !important; margin-bottom: 0.8rem !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.past-event-card .read-more-link { font-size: 0.7rem !important; }

.featured-carousel { position: relative; width: 100%; height: 65vh; min-height: 500px; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.6); border: 1px solid rgba(255, 255, 255, 0.05); }
.carousel-track-inner { display: flex; height: 100%; transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); }
.featured-slide { min-width: 100%; height: 100%; position: relative; display: flex; align-items: flex-end; }
.featured-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 0; }
.featured-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 15, 25, 0.98) 0%, rgba(11, 15, 25, 0.6) 40%, rgba(11, 15, 25, 0.1) 100%); z-index: 1; }
.featured-content { position: relative; z-index: 2; padding: 4rem; max-width: 900px; }
.featured-badge { display: inline-block; background: var(--accent-primary); color: #000; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; padding: 0.4rem 1rem; border-radius: 50px; font-size: 0.75rem; margin-bottom: 1.5rem; box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3); }
.featured-title { font-size: 3.5rem; line-height: 1.1; color: #fff; margin-bottom: 1rem; text-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.featured-desc { font-size: 1.15rem; color: #cbd5e1; margin-bottom: 1.5rem; line-height: 1.6; }
.featured-meta { font-size: 0.95rem; color: var(--accent-secondary); margin-bottom: 2.5rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.carousel-indicators { position: absolute; bottom: 2rem; right: 4rem; display: flex; gap: 12px; z-index: 3; }
.indicator-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); cursor: pointer; transition: all 0.3s ease; }
.indicator-dot.active { background: var(--accent-primary); transform: scale(1.3); box-shadow: 0 0 10px var(--accent-primary); }

.fb-feed-container {
    background: #fff; 
    border-radius: 12px; 
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    position: sticky; top: 120px;
    overflow: hidden;
    width: 100%;
}
.fb-feed-container iframe {
    width: 100% !important;
    max-width: 100%;
}

/* ==========================================================================
   11. CONTACT & ENROLLMENT PAGE SPECIFIC
   ========================================================================== */
.contact-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: stretch; margin-top: 2rem; }
.contact-dossier { display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; }
.dossier-item { display: flex; gap: 1.5rem; align-items: center; }
.dossier-icon { width: 55px; height: 55px; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--accent-secondary); font-size: 1.3rem; transition: all 0.3s ease; flex-shrink: 0; }
.dossier-item:hover .dossier-icon { color: var(--accent-primary); border-color: var(--accent-primary); box-shadow: 0 0 15px rgba(245, 158, 11, 0.2); transform: translateY(-2px); }
.dossier-text { flex-grow: 1; }
.dossier-text h4 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.25rem; color: #fff; }
.dossier-text p { color: #cbd5e1; font-size: 1.05rem; line-height: 1.5; }

.contact-console { background: linear-gradient(145deg, var(--bg-card) 0%, #0c1220 100%); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 24px; padding: 3.5rem; box-shadow: 0 25px 50px rgba(0,0,0,0.5); height: 100%; position: relative; }
.enrollment-console { background: linear-gradient(145deg, var(--bg-card) 0%, #0c1220 100%); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 24px; padding: 4rem; box-shadow: 0 30px 60px rgba(0,0,0,0.6); max-width: 950px; margin: 0 auto; position: relative; }
.enrollment-header { text-align: center; max-width: 700px; margin: 0 auto 3rem auto; }

.section-divider { margin: 2.5rem 0 1.5rem 0; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 1.2rem; color: var(--accent-secondary); font-weight: 800; text-transform: uppercase; letter-spacing: 2px; }
.section-divider:first-child { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; }
.full-width { grid-column: 1 / -1; }

.form-group { position: relative; margin-bottom: 2rem; }
.form-label { display: block; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 0.75rem; transition: color 0.3s; }
.form-input { width: 100%; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 1rem 1.2rem; color: #fff; font-family: inherit; font-size: 1rem; transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); }
.form-input:focus { outline: none; border-color: var(--accent-primary); background: rgba(0, 0, 0, 0.5); box-shadow: 0 0 20px rgba(245, 158, 11, 0.15); transform: translateY(-2px); }
.form-input:focus + .form-label { color: var(--accent-primary); }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); cursor: pointer; }

.pill-group { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-btn { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); padding: 12px 20px; border-radius: 50px; font-size: 0.95rem; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); user-select: none; flex-grow: 1; text-align: center; }
.pill-btn:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.2); color: #fff; transform: translateY(-2px); }
@keyframes popIn { 0% { transform: scale(0.9); } 50% { transform: scale(1.05); } 100% { transform: scale(1) translateY(-2px); } }
.pill-btn.active { background: var(--accent-primary); border-color: var(--accent-primary); color: #000; box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3); animation: popIn 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards; }

#submitLoader { display: none; position: absolute; inset: 0; background: rgba(12, 18, 32, 0.95); border-radius: 24px; z-index: 10; align-items: center; justify-content: center; flex-direction: column; color: var(--accent-primary); backdrop-filter: blur(5px); }
#submitLoader i { font-size: 3.5rem; margin-bottom: 1rem; }

.map-section { margin-top: 5rem; width: 100%; border-radius: 24px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.05); box-shadow: 0 30px 60px rgba(0,0,0,0.6); position: relative; height: 450px; }
.map-section iframe { width: 100%; height: 100%; border: none; }

/* ==========================================================================
   12. CINEMATIC BENTO FOOTER & PIANO
   ========================================================================== */
.bento-footer { position: relative; margin-top: 6rem; padding: 4rem 0 2rem; background: linear-gradient(180deg, transparent 0%, rgba(12, 18, 32, 0.8) 100%); border-top: 1px solid rgba(255, 255, 255, 0.02); }
.bento-footer::before { content: ''; position: absolute; top: 0; left: 10%; width: 80%; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-primary), transparent); opacity: 0.4; }

.footer-bento-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.5rem; margin-bottom: 3rem; }

.bento-card { background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 24px; padding: 2.5rem; transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s; }
.bento-card:hover { border-color: rgba(255, 255, 255, 0.1); transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0,0,0,0.3); }

.bento-card h4 { font-size: 1.1rem; margin-bottom: 1.5rem; color: var(--text-main); text-transform: uppercase; letter-spacing: 1px; }
.bento-card ul { list-style: none; }
.bento-card ul li { margin-bottom: 0.85rem; }
.bento-card ul li a { display: inline-flex; align-items: center; gap: 10px; color: #94a3b8; font-size: 0.95rem; transition: color 0.2s, transform 0.2s; }
.bento-card ul li a i { color: var(--accent-secondary); font-size: 1.1rem; }
.bento-card ul li a:hover { color: var(--accent-primary); transform: translateX(5px); }

.bento-socials { display: flex; gap: 1rem; }
.bento-social-btn { display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; background-color: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; color: #cbd5e1; font-size: 1.1rem; transition: all 0.3s ease; }
.bento-social-btn:hover { background-color: var(--accent-secondary); color: #000; border-color: transparent; box-shadow: 0 0 20px rgba(6, 182, 212, 0.4); transform: translateY(-4px); }

.bento-card.piano-span { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; background: linear-gradient(145deg, rgba(255,255,255,0.02) 0%, rgba(0,0,0,0.2) 100%); }
.piano-text h4 { margin-bottom: 0.5rem; }
.piano-text p { font-size: 0.95rem; margin: 0; }
.keyboard-frame { display: flex; background: #000; padding: 6px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); position: relative; }
.piano-key { background: #fff; height: 60px; width: 45px; border: 1px solid #ddd; border-radius: 0 0 6px 6px; cursor: pointer; transition: background 0.1s; position: relative; }
.piano-key.white-active { background: #cbd5e1 !important; }
.piano-key.black { background: #111; height: 35px; width: 24px; margin-left: -12px; margin-right: -12px; z-index: 2; border: none; border-radius: 0 0 4px 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.piano-key.black-active { background: #334155 !important; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.9rem; color: #64748b; }

/* ==========================================================================
   13. ANIMATIONS & RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1250px) { 
    .nav-links { gap: 1.2rem; } 
    .nav-links a { font-size: 0.88rem; } 
}

@media (max-width: 1200px) {
    #pastEventsGrid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 1140px) {
    .nav-enroll-btn { display: none; } 
    
    .menu-toggle { 
        display: block; width: 28px; height: 20px; position: relative; 
        cursor: pointer; z-index: 1001; flex-shrink: 0;
        transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    }
    .menu-toggle:active { transform: scale(0.8); }
    
    .logo-wrapper { position: absolute; left: 50%; transform: translateX(-50%); }
    .nav-right-actions { justify-content: flex-end; }

    .nav-links { 
        display: flex; flex-direction: column; background-color: rgba(15, 23, 42, 0.95); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
        position: absolute; top: 90px; left: 5%; width: 90%; height: auto; max-height: 80vh; overflow-y: auto;
        border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 30px 60px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.1);
        justify-content: flex-start; align-items: flex-start; padding: 2rem 1.5rem; gap: 0.5rem; 
        opacity: 0; visibility: hidden; pointer-events: none;
        transform: translateY(-30px); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
    }

    .nav-links.mobile-active { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }

    .nav-links a { 
        font-size: 1.2rem; width: 100%; padding: 12px 20px; border-radius: 14px; 
        -webkit-tap-highlight-color: transparent; 
        transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease; 
    }
    .nav-links a::after { display: none; }
    .nav-links a:active, .nav-links a.active { background: rgba(255, 255, 255, 0.08); color: var(--accent-primary); transform: scale(0.96); }

    .mobile-only-enroll { display: block; width: 100%; margin-top: 1rem; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 1.5rem; }
    .mobile-only-enroll a { text-align: center; padding: 1rem !important; margin: 0; display: block; }
    .mobile-only-enroll a:active { transform: scale(0.96); color: #000; }

    /* Merged Scroll Pill Navbar Logic */
    .navbar.scrolled-pill {
        top: 15px !important;
        max-width: 92% !important; 
        border-radius: 50px !important;
        background-color: rgba(15, 23, 42, 0.85) !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
        border-bottom-color: rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 15px 30px rgba(0,0,0,0.6) !important;
    }

    .navbar.scrolled-pill .nav-container { height: 65px !important; width: 90% !important; }
    .navbar.scrolled-pill .logo-img { height: 35px !important; }
    .navbar.scrolled-pill .nav-links { top: 75px !important; width: 100% !important; left: 0 !important; }
    .nav-links { left: 0 !important; width: 100% !important; }
}

@media (max-width: 992px) {
    .hero h1 { font-size: 3.2rem; }
    .service-card { flex-direction: column; align-items: stretch; }
    .service-card-img-frame { width: 100%; height: 240px; }
    .service-card-info { width: 100%; padding: 2.5rem; }
    .editorial-row, .editorial-row:nth-child(even) { flex-direction: column; text-align: center; gap: 2rem; }
    .editorial-text { padding: 0 1rem; }
    .contact-split { grid-template-columns: 1fr; gap: 4rem; }
    .contact-console { padding: 2.5rem 1.5rem; }
    .footer-bento-grid { grid-template-columns: 1fr 1fr; }
    .brand-card { grid-column: 1 / -1; }
    
    .rehearsal-split { grid-template-columns: 1fr; }
    .news-layout-grid { grid-template-columns: 1fr; }
    .fb-feed-container { position: relative; top: 0; margin-top: 2rem; width: 100%; max-width: 500px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
    .container { padding: 4rem 0; } 
    .section-title { font-size: 2.2rem; } 
    .hero h1 { font-size: 2.5rem; } 
    .hero p { font-size: 1.1rem; } 
    .hero-btns { flex-direction: column; } 
    .form-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .enrollment-console { padding: 2.5rem 1.5rem; }
    .pill-btn { padding: 10px 15px; font-size: 0.85rem; }
    
    .featured-content { padding: 2rem; }
    .featured-title { font-size: 2.2rem; }
    .carousel-indicators { right: 2rem; bottom: 1.5rem; }
    .fb-feed-container iframe { height: 500px !important; }
    
    /* Ensure upcoming is full width */
    #upcomingNewsGrid { grid-template-columns: 1fr !important; }
    
    /* Make Past Events into a 2 column compact grid on mobile */
    #pastEventsGrid { grid-template-columns: repeat(2, 1fr) !important; gap: 1rem; }
    #pastEventsGrid .news-content { padding: 0.75rem !important; }
    #pastEventsGrid h3 { font-size: 0.95rem !important; }
    #pastEventsGrid p { font-size: 0.75rem !important; margin-bottom: 0.5rem !important; }
    #pastEventsGrid .read-more-link { font-size: 0.65rem !important; }

    .footer-bento-grid { grid-template-columns: 1fr; }
    .bento-card.piano-span { justify-content: center; text-align: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .featured-carousel { min-height: 400px; height: 55vh; }
    .featured-content { padding: 1.5rem; } 
    .modal-scroll { padding: 3rem 1.5rem 2rem; max-height: 90vh; }
    .modal-name { font-size: 1.8rem; }
}


/* --- SECURITY: Stealth Honeypot --- */
.stealth-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; z-index: -1; }

/* ==========================================================================
   14. FOOTER INTERACTIVE UTILITIES (TUNER & METRONOME)
   ========================================================================== */
.bento-card.tools-span {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: linear-gradient(145deg, rgba(255,255,255,0.02) 0%, rgba(0,0,0,0.25) 100%);
}

.tuner-widget, .metronome-widget {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tuner-header, .metronome-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tuner-tabs {
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tuner-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tuner-tab-btn.active {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

.tuner-strings {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.string-btn {
    flex: 1;
    min-width: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.75rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.string-btn:hover {
    border-color: var(--accent-secondary);
    background: rgba(6, 182, 212, 0.1);
    transform: translateY(-2px);
}

.string-btn.playing {
    border-color: var(--accent-primary);
    background: rgba(245, 158, 11, 0.15);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.string-note {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
}

.string-freq {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Metronome Styles */
.metronome-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bpm-display-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.bpm-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-primary);
    min-width: 110px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.bpm-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.bpm-btn:hover {
    background: var(--accent-secondary);
    color: #000;
    border-color: transparent;
}

.bpm-slider {
    width: 100%;
    accent-color: var(--accent-primary);
    cursor: pointer;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
}

.metronome-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.metro-play-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 50px;
    border: none;
    background: var(--accent-primary);
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.metro-play-btn:hover {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.metro-play-btn.active {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.beat-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.05s ease, transform 0.05s ease;
}

.beat-indicator.pulse {
    background: var(--accent-secondary);
    box-shadow: 0 0 12px var(--accent-secondary);
    transform: scale(1.25);
}

@media (max-width: 992px) {
    .bento-card.tools-span {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   15. ACCESSIBILITY OVERRIDES
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   16. PAGE TRANSITIONS  (only #page-content animates; navbar + footer never do)
   --------------------------------------------------------------------------
   IMPORTANT: never put a `transform` (or an animation that ends with
   `forwards` on a transform) on <body> or any ancestor of .navbar / .modal-overlay.
   A transformed ancestor turns position:fixed into position:absolute, which is
   what made the old header scroll away with the page.
   ========================================================================== */
#page-content {
    animation: pageIn 0.5s cubic-bezier(0.25, 1, 0.5, 1) backwards;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
#page-content.is-leaving { opacity: 0; transform: translateY(-8px); pointer-events: none; }

@keyframes pageIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   17. SCROLL REVEALS  (.reveal / .reveal-up  -> .active added by animations.js)
   Hidden state only applies once JS is running (html.reveal-ready), so a JS
   failure can never leave content invisible.
   ========================================================================== */
.reveal-ready .reveal:not(.active),
.reveal-ready .reveal-up:not(.active) { opacity: 0; }

.reveal.active, .reveal-up.active { animation: revealUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) backwards; }
.reveal-up.delay-100.active, .reveal.delay-100.active { animation-delay: 0.1s; }
.reveal-up.delay-200.active, .reveal.delay-200.active { animation-delay: 0.2s; }
.reveal-up.delay-300.active, .reveal.delay-300.active { animation-delay: 0.3s; }

@keyframes revealUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: none; }
}
@media (scripting: none) { .reveal, .reveal-up { opacity: 1 !important; } }

html { scroll-padding-top: 110px; }

/* ==========================================================================
   18. FOOTER: PIANO LABELS + MOBILE LAYOUT
   ========================================================================== */
.piano-key.white::after { content: attr(data-label); position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; font-size: 0.7rem; font-weight: 700; color: #64748b; pointer-events: none; }
.hint-touch { display: none; }
@media (hover: none) { .hint-touch { display: inline; } .hint-keys { display: none; } }   /* phones/tablets: no physical keyboard */
@media (hover: none) { .bento-card:hover { transform: none; box-shadow: none; } }           /* no stuck hover on touch */

@media (max-width: 768px) {
    .bento-footer { margin-top: 3.5rem; padding: 2.5rem 0 1.5rem; }
    .bento-card { padding: 1.5rem 1.25rem; border-radius: 20px; }
    .bento-card h4 { margin-bottom: 1rem; }
    .bento-card.tools-span { gap: 1.75rem; }

    /* tuner: title on top, full-width tabs underneath, strings in a tidy grid */
    .tuner-header { flex-direction: column; align-items: stretch; gap: 0.75rem; }
    .tuner-tabs { width: 100%; gap: 0.25rem; }
    .tuner-tab-btn { flex: 1; padding: 9px 4px; font-size: 0.78rem; white-space: nowrap; }
    .tuner-strings { display: grid; grid-template-columns: repeat(var(--str-cols, 3), 1fr); gap: 0.5rem; }
    .string-btn { min-width: 0; padding: 0.8rem 0.4rem; }

    /* metronome: bigger tap targets */
    .bpm-btn { width: 46px; height: 46px; }
    .bpm-slider { height: 8px; }
    .metro-play-btn { padding: 0.95rem; }

    .bento-card.piano-span { flex-direction: column; align-items: stretch; gap: 1rem; }
    .piano-text { width: 100%; }
}

/* ---- Mini piano on phones/tablets ----
   5 white keys share the width equally (20% each). Black keys are positioned by PERCENTAGE
   so they always sit exactly on the borders between white keys: C|D = 20%, D|E = 40%, F|G = 80%. */
@media (max-width: 768px) {
    .keyboard-frame { width: 100%; max-width: 420px; margin: 0 auto; padding: 0; overflow: hidden; border-radius: 14px; border: 2px solid #1e293b; background: #0b0f19; }
    .piano-key.white { flex: 1 1 0; width: auto; min-width: 0; height: 120px; border-radius: 0 0 8px 8px; border: 1px solid #cbd5e1; }
    .piano-key.black { position: absolute; top: 0; width: 12%; height: 62%; margin: 0; border-radius: 0 0 6px 6px; }
    .piano-key:nth-child(2) { left: 14%; }   /* C#  (20% - half a black key) */
    .piano-key:nth-child(4) { left: 34%; }   /* D#  (40% - 6%) */
    .piano-key:nth-child(7) { left: 74%; }   /* F#  (80% - 6%) */
    .piano-key.white::after { bottom: 8px; font-size: 0.8rem; }
}
@media (max-width: 420px) { .piano-key.white { height: 104px; } }

/* all screens: no blue tap flash, no text-select on long press, no double-tap zoom */
.piano-key { -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; touch-action: manipulation; }

/* ==========================================================================
   19. MOBILE: CENTER EVERYTHING THAT SHOULD BE CENTERED  (<= 768px)
   Long reading text (bios, article bodies) stays left-aligned on purpose.
   `!important` is only used where a page sets text-align / font-size inline.
   ========================================================================== */
@media (max-width: 768px) {
    /* ---- heroes (every page) ---- */
    .hero-content { text-align: center; margin-left: auto; margin-right: auto; }
    .hero::after { background: linear-gradient(to bottom, rgba(11, 15, 25, 0.80), rgba(11, 15, 25, 0.68)); }  /* text is centered now, so no left-heavy fade */
    .hero h1 { font-size: 2.5rem !important; }
    .hero-btns { flex-direction: column; align-items: center; justify-content: center; gap: 1rem; }
    .hero-btns .btn-primary, .hero-btns .btn-secondary { width: 100%; max-width: 320px; text-align: center; }

    /* ---- home: service cards ---- */
    .service-card-info { padding: 2rem 1.5rem; align-items: center; text-align: center; }

    /* ---- programs ---- */
    .program-overlay { text-align: center; }
    .modal-bio { text-align: left; padding: 0; }          /* long paragraph: justified text looks gappy on narrow screens */

    /* ---- contact ---- */
    .contact-dossier { text-align: center; align-items: center; }
    .dossier-item { flex-direction: column; align-items: center; text-align: center; gap: 0.9rem; }
    .m-center { text-align: center; }

    /* ---- enrollment ---- */
    .section-divider { text-align: center; }
    .pill-group { justify-content: center; }
    .form-group:has(.pill-group) .form-label { text-align: center; }

    /* ---- band rehearsal ---- */
    .rehearsal-split .section-title, .rehearsal-split .section-subtitle { text-align: center !important; }
    .studio-info-column { text-align: center; }
    .studio-gear-box { align-items: center; text-align: center; }
    .protocol-list li { padding-left: 0; }
    .protocol-list li::before { position: static; display: block; margin-bottom: 0.3rem; }

    /* ---- news & events ---- */
    .featured-slide { justify-content: center; }
    .featured-content { text-align: center; margin: 0 auto; }
    .news-content { text-align: center; }

    /* ---- footer ---- */
    .bento-card { text-align: center; }
    .brand-card img { display: block; margin-left: auto; margin-right: auto; }
    .bento-socials { justify-content: center; }
    /* centered block, but rows left-aligned inside it so the icons line up in one neat column */
    .bento-card ul { display: inline-block; text-align: left; }
    .bento-card ul li a { justify-content: flex-start; }
    .bento-card ul li a:hover { transform: none; }
    .tuner-widget, .metronome-widget { text-align: center; }
    .tuner-header h4, .metronome-header h4 { text-align: center; }
    .metronome-controls, .metronome-actions { justify-content: center; }
}

/* ---- 19b. MOBILE BUTTONS: same size / text style / alignment everywhere in the page content ---- */
@media (max-width: 768px) {
    /* the two button styles differed (case, size, border), so stacked buttons looked mismatched */
    main .btn-primary, main .btn-secondary {
        display: flex; align-items: center; justify-content: center; box-sizing: border-box;
        min-height: 52px; padding: 0.9rem 1.6rem; border: 2px solid transparent;
        font-size: 0.95rem; letter-spacing: 0.5px; text-transform: uppercase; text-align: center; line-height: 1.2;
    }
    main .btn-secondary { border-color: rgba(255, 255, 255, 0.1); }
    .deck-cta-container .btn-primary { width: 100%; max-width: 320px; margin: 0 auto; }

    /* gallery arrows: smaller and closer to the edge so they don't cover the photo */
    .carousel-btn { width: 40px; height: 40px; font-size: 0.85rem; }
    .carousel-btn.prev { left: 10px; } .carousel-btn.next { right: 10px; }
}

/* ---- 19c. MOBILE FOOTER: Navigation + The Studio side by side (like desktop), left-aligned lists ---- */
@media (max-width: 768px) {
    .footer-bento-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }       /* brand, tools and piano cards still span the full width */
    .links-card, .contact-card { text-align: left; padding: 1.25rem 1rem; }
    .links-card h4, .contact-card h4 { text-align: left; font-size: 0.95rem; margin-bottom: 0.9rem; letter-spacing: 0.5px; }
    .links-card ul, .contact-card ul { display: block; }
    .links-card ul li, .contact-card ul li { margin-bottom: 0.7rem; }
    .links-card ul li a, .contact-card ul li a { font-size: 0.85rem; gap: 8px; align-items: flex-start; justify-content: flex-start; overflow-wrap: anywhere; }
    .links-card ul li a i, .contact-card ul li a i { margin: 3px 0 0 0 !important; flex-shrink: 0; }
}
@media (max-width: 340px) { .footer-bento-grid { grid-template-columns: 1fr; } }   /* very small phones: stack again */

/* ==========================================================================
   20. LIQUID GLASS  (navbar, pill, dropdown, mobile menu, modals)
   Frosted glass: blur + color boost, a bright top edge, a soft diagonal sheen.
   The greeting card and announcement bar get the same look in seasons.css.
   ========================================================================== */
:root { --glass-blur: blur(22px) saturate(180%); }

.navbar {
    background-color: rgba(11, 15, 25, 0.38);
    backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border-bottom-color: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06), 0 8px 30px rgba(0, 0, 0, 0.25);
}
.navbar::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0) 55%); }

.vibe-dropdown {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02)), rgba(17, 23, 38, 0.78);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30), 0 14px 34px rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: linear-gradient(145deg, rgba(48, 62, 90, 0.62), rgba(12, 18, 32, 0.74));
    backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border-color: rgba(255, 255, 255, 0.20);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(255, 255, 255, 0.06), 0 30px 60px rgba(0, 0, 0, 0.7);
}
.modal-content::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.03) 35%, rgba(255, 255, 255, 0) 60%); }
.modal-scroll { position: relative; z-index: 1; }
.modal-close { background: rgba(255, 255, 255, 0.10); border-color: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35); }

@media (max-width: 1140px) {
    /* floating pill: more see-through, with a bright rim like a glass lozenge */
    .navbar.scrolled-pill {
        background-color: rgba(15, 23, 42, 0.42) !important;
        border-color: rgba(255, 255, 255, 0.22) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(255, 255, 255, 0.08), 0 15px 30px rgba(0, 0, 0, 0.5) !important;
    }
    .nav-links { background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01)), rgba(15, 23, 42, 0.90);
        border-color: rgba(255, 255, 255, 0.18);
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.30); }
}

/* browsers without backdrop-filter, or visitors who asked for less transparency: solid surfaces */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .navbar { background-color: rgba(11, 15, 25, 0.92); }
    .modal-content { background: linear-gradient(145deg, #1e293b, #0c1220); }
}
@media (prefers-reduced-transparency: reduce) {
    .navbar { background-color: rgb(11, 15, 25); backdrop-filter: none; -webkit-backdrop-filter: none; }
    .navbar.scrolled-pill { background-color: rgb(15, 23, 42) !important; }
    .modal-content { background: linear-gradient(145deg, #1e293b, #0c1220); backdrop-filter: none; -webkit-backdrop-filter: none; }
    .modal-content::before, .navbar::before { display: none; }
}

/* ==========================================================================
   21. CARD INTERACTIONS + PRELOADER
   ========================================================================== */

/* ---- 21a. Cards that respond to cursor / finger (see animations.js) ---- */
.news-card, .bento-card, .studio-gear-box, .teacher-card { position: relative; }
.fx-spot {
    position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; opacity: 0; transition: opacity 0.35s ease;
    background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(245, 158, 11, 0.16), transparent 60%);
    background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent-primary) 22%, transparent), transparent 60%);
}
.fx-active > .fx-spot, .is-pressed > .fx-spot { opacity: 1; }
@media (hover: none) {
    .teacher-card:active, .program-card:active, .news-card:active, .service-card:active, .bento-card:active, .studio-gear-box:active { transform: scale(0.98); }
}

/* ---- 21b. Preloader: shown once per browser session ---- */
html.is-preloading::before { content: ''; position: fixed; inset: 0; z-index: 99998; background: #0b0f19; }
html.is-preloading body { overflow: hidden; }
#preloader {
    position: fixed; inset: 0; z-index: 99999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
    background: radial-gradient(circle at 50% 45%, #141c30, #0b0f19 70%); transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.out { opacity: 0; visibility: hidden; }
.pl-logo-wrap { position: relative; display: grid; place-items: center; width: 220px; height: 120px; }
.pl-logo-wrap img { position: relative; z-index: 2; height: 64px; width: auto; animation: plBeat 1.1s ease-in-out infinite; }
.pl-ring { position: absolute; width: 90px; height: 90px; border: 2px solid var(--accent-primary); border-radius: 50%; opacity: 0; animation: plRing 1.1s ease-out infinite; }
.pl-ring:nth-child(2) { animation-delay: 0.18s; }
.pl-tagline { color: var(--text-muted); letter-spacing: 0.3em; text-transform: uppercase; font-size: 0.75rem; }
@keyframes plBeat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.12); } 28% { transform: scale(1); } 42% { transform: scale(1.08); } 70% { transform: scale(1); } }
@keyframes plRing { 0% { transform: scale(0.6); opacity: 0.7; } 100% { transform: scale(2.2); opacity: 0; } }

/* ==========================================================================
   22. MODAL REDESIGN: clean flat surface, thin accent line, ringed photo, pill role label
   ========================================================================== */
.modal-overlay { background: rgba(5, 8, 15, 0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.modal-content {
    max-width: 560px; border-radius: 28px;
    background: #0f1626; backdrop-filter: none; -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.85);
}
.modal-content::before { content: none; }
.modal-content::after { content: ''; position: absolute; top: 0; left: 12%; right: 12%; height: 2px; z-index: 2; pointer-events: none;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent); }
.modal-scroll { padding: 3rem 2.25rem 2.25rem; }

.modal-close { width: 34px; height: 34px; font-size: 0.9rem; color: #94a3b8; background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.modal-close:hover { background: rgba(255, 255, 255, 0.14); color: #fff; transform: none; }

.modal-img { width: 132px; height: 132px; border: none; margin-bottom: 1.75rem;
    box-shadow: 0 0 0 4px #0f1626, 0 0 0 6px var(--accent-primary), 0 18px 40px rgba(0, 0, 0, 0.55); }
.modal-banner { border-radius: 16px; box-shadow: none; border-color: rgba(255, 255, 255, 0.06); }

.modal-role { display: inline-block; padding: 0.35rem 0.95rem; margin-bottom: 0.9rem; border-radius: 999px;
    font-size: 0.7rem; letter-spacing: 0.16em; background: rgba(245, 158, 11, 0.10);
    background: color-mix(in srgb, var(--accent-primary) 12%, transparent); }
.modal-name { font-size: 1.9rem; margin-bottom: 1.1rem; }
.modal-name::after { content: ''; display: block; width: 40px; height: 2px; margin: 1rem auto 0; border-radius: 2px; background: var(--accent-primary); }
.modal-bio { text-align: left; padding: 0; font-size: 1rem; line-height: 1.75; margin-bottom: 0.5rem; }
@media (max-width: 768px) { .modal-scroll { padding: 3rem 1.5rem 2rem; } .modal-name { font-size: 1.6rem; } }

/* ==========================================================================
   23. CONSISTENT PHOTO TREATMENT
   Same loading shimmer, fade-in, color grade and hover zoom on every photo.
   (.img-loaded is added by animations.js once an image has finished loading)
   ========================================================================== */
main img:not(.img-loaded) { background: linear-gradient(110deg, #111a2b 30%, #1b2740 50%, #111a2b 70%) 0 0 / 200% 100%; animation: imgShimmer 1.4s linear infinite; }
main img.img-loaded { animation: imgIn 0.5s ease backwards; }
@keyframes imgShimmer { to { background-position: -200% 0; } }
@keyframes imgIn { from { opacity: 0; } to { opacity: 1; } }

/* one subtle color grade for all photography (teacher photos keep their own grayscale-to-color effect) */
.editorial-img img, .news-img-frame img, .program-card img, .carousel-slide img, .service-card-img-frame img { filter: saturate(1.06) contrast(1.03); }
.program-card img[style*="grayscale"] { filter: grayscale(20%) brightness(0.9); }

/* one hover-zoom: same distance, same easing */
.service-card-img-frame, .carousel-slide { overflow: hidden; }
.service-card-img-frame img, .carousel-slide img { transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
.editorial-img img, .program-card img, .news-img-frame img { transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
@media (hover: hover) {
    .service-card:hover .service-card-img-frame img, .carousel-slide:hover img { transform: scale(1.06); }
    .editorial-row:hover .editorial-img img, .program-card:hover img, .news-card:hover .news-img-frame img { transform: scale(1.06); }
    .teacher-card:hover .teacher-img-frame img { transform: scale(1.06); }
}
.carousel-slide:not(.lightbox-trigger) img { cursor: zoom-in; }

/* ==========================================================================
   24. BUTTON POLISH: shimmer sweep on hover, ripple on press, press-down, keyboard focus ring
   ========================================================================== */
.btn-primary, .btn-secondary, .nav-enroll-btn, .sg-btn, .sb-cta { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after, .nav-enroll-btn::after, .sg-btn::after {
    content: ''; position: absolute; top: 0; left: -130%; width: 55%; height: 100%; z-index: 1; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent); transform: skewX(-20deg); transition: left 0.75s ease;
}
@media (hover: hover) { .btn-primary:hover::after, .nav-enroll-btn:hover::after, .sg-btn:hover::after { left: 150%; } }
.btn-primary:active, .btn-secondary:active, .nav-enroll-btn:active, .sg-btn:active { transform: scale(0.97); }
.btn-primary:focus-visible, .btn-secondary:focus-visible, .nav-enroll-btn:focus-visible, .sg-btn:focus-visible, .sb-cta:focus-visible { outline: 2px solid var(--accent-secondary, #fff); outline-offset: 3px; }
.btn-ripple { position: absolute; z-index: 2; border-radius: 50%; background: rgba(255, 255, 255, 0.45); transform: scale(0); pointer-events: none; animation: btnRipple 0.6s ease-out forwards; }
.btn-secondary .btn-ripple { background: rgba(255, 255, 255, 0.22); }
@keyframes btnRipple { to { transform: scale(4); opacity: 0; } }

/* ==========================================================================
   25. IMAGE PREVIEW (gallery lightbox)
   ========================================================================== */
#imgViewer { position: fixed; inset: 0; z-index: 7000; display: flex; align-items: center; justify-content: center; background: rgba(5, 8, 15, 0.94); animation: ivIn 0.3s ease; touch-action: pan-y; }
#imgViewer.out { opacity: 0; transition: opacity 0.25s ease; }
.iv-img { max-width: 94vw; max-height: 80vh; object-fit: contain; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); animation: ivPop 0.35s cubic-bezier(0.2, 1, 0.3, 1); user-select: none; -webkit-user-drag: none; }
.iv-btn { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.10); color: #fff; font-size: 1rem; cursor: pointer;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background 0.2s ease; }
.iv-btn:hover { background: rgba(255, 255, 255, 0.22); }
.iv-btn:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 3px; }
.iv-close { top: max(16px, env(safe-area-inset-top)); right: 16px; }
.iv-prev, .iv-next { top: 50%; margin-top: -23px; }
.iv-prev { left: 16px; } .iv-next { right: 16px; }
.iv-meta { position: absolute; left: 0; right: 0; bottom: max(18px, env(safe-area-inset-bottom)); text-align: center; color: #cbd5e1; font-size: 0.9rem; pointer-events: none; padding: 0 70px; }
.iv-count { color: #fff; font-weight: 700; margin-right: 0.6rem; }
@keyframes ivIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ivPop { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .iv-btn { width: 40px; height: 40px; } .iv-prev, .iv-next { margin-top: -20px; } .iv-prev { left: 8px; } .iv-next { right: 8px; } .iv-img { max-height: 74vh; } }

/* ==========================================================================
   26. 404 PAGE
   ========================================================================== */
.nf { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-top: 120px; padding-bottom: 4rem; }
.nf-digits { display: flex; align-items: center; justify-content: center; gap: clamp(0.4rem, 2vw, 1.2rem); font-size: clamp(5rem, 17vw, 10rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em;
    background: linear-gradient(180deg, #fff 30%, #64748b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf-record { position: relative; flex-shrink: 0; width: 0.82em; aspect-ratio: 1; border-radius: 50%; animation: nfSpin 6s linear infinite; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
    background: radial-gradient(circle at center, var(--accent-primary) 0 17%, #0b0f19 17.5% 20%, transparent 20.5%), repeating-radial-gradient(circle at center, #151d30 0 3px, #0d1322 3px 6px); }
.nf-record::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 30deg, transparent 0 20%, rgba(255, 255, 255, 0.16) 25%, transparent 30% 70%, rgba(255, 255, 255, 0.16) 75%, transparent 80%); }
@keyframes nfSpin { to { transform: rotate(360deg); } }
.nf h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); margin: 1.5rem 0 0.8rem; }
.nf p { max-width: 520px; color: var(--text-muted); margin-bottom: 2rem; }
.nf-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
@media (max-width: 768px) { .nf-actions { flex-direction: column; align-items: center; width: 100%; } .nf-actions a { width: 100%; max-width: 320px; } }

/* ==========================================================================
   27. FORMS: consent row, inline status, success card  +  LEGAL PAGES
   ========================================================================== */
.consent-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 1rem; text-align: left; }
.consent-row input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; cursor: pointer; }
.consent-row label { color: var(--text-muted); font-size: 0.88rem; line-height: 1.55; cursor: pointer; }
.consent-row a { color: var(--accent-primary); text-decoration: underline; }

.form-status { margin: 1rem 0 0.5rem; padding: 0.9rem 1.1rem; border-radius: 12px; font-size: 0.95rem; line-height: 1.5; text-align: left; outline: none; }
.form-status.error { background: rgba(239, 68, 68, 0.10); border: 1px solid rgba(239, 68, 68, 0.45); color: #fecaca; }
.form-status ul { margin: 0.4rem 0 0 1.1rem; }

.form-success { text-align: center; padding: 3rem 1.5rem; animation: fsIn 0.6s cubic-bezier(0.2, 1, 0.3, 1) backwards; }
@keyframes fsIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.fs-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1.25rem; font-size: 1.8rem; color: #052e16; background: #4ade80; box-shadow: 0 0 40px rgba(74, 222, 128, 0.35); }
.form-success h3 { font-size: 1.7rem; margin-bottom: 0.6rem; }
.fs-text { color: var(--text-muted); max-width: 460px; margin: 0 auto 1.4rem; }
.fs-ref { display: inline-flex; flex-direction: column; gap: 0.25rem; padding: 0.9rem 1.8rem; border-radius: 14px; margin-bottom: 1rem; border: 1px dashed rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.04); }
.fs-ref[hidden] { display: none; }
.fs-ref span { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.fs-ref strong { font-size: 1.5rem; letter-spacing: 0.06em; color: var(--accent-primary); }
.fs-note { color: var(--text-muted); font-size: 0.88rem; max-width: 460px; margin: 0 auto 1.5rem; }

.legal { max-width: 780px; margin: 0 auto; padding-top: 140px; padding-bottom: 4rem; }
.legal h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 0.6rem; }
.legal .legal-updated { display: inline-block; margin-bottom: 2rem; padding: 0.3rem 0.9rem; border-radius: 999px; font-size: 0.8rem; color: var(--text-muted); border: 1px solid rgba(255, 255, 255, 0.12); }
.legal h2 { font-size: 1.35rem; margin: 2.2rem 0 0.7rem; }
.legal p, .legal li { color: #cbd5e1; line-height: 1.75; }
.legal ul { margin: 0.5rem 0 0 1.2rem; }
.legal li { margin-bottom: 0.4rem; }
.legal a { color: var(--accent-primary); text-decoration: underline; }

/* ==========================================================================
   28. FIXES: program modal buttons + Studio Bulletin card
   ========================================================================== */

/* "Coming Soon" button: .btn-primary paints its orange with a gradient IMAGE, so the old
   background-color override never showed. Remove the gradient + shimmer so it reads as disabled. */
.btn-primary.disabled-btn, .disabled-btn {
    background: rgba(255, 255, 255, 0.06) !important; background-image: none !important;
    color: #94a3b8 !important; border: 1px solid rgba(255, 255, 255, 0.12) !important;
}
.disabled-btn::after { content: none !important; }

/* program format tags: small info labels, so they don't look like clickable buttons */
.format-tags { gap: 8px; margin-bottom: 1.4rem; }
.format-tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; font-size: 0.72rem; letter-spacing: 0.08em;
    color: #cbd5e1; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.10);
}
.format-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-secondary); flex-shrink: 0; }
.format-tag.is-soon { color: #86efac; border-color: rgba(34, 197, 94, 0.35); background: rgba(34, 197, 94, 0.08); }
.format-tag.is-soon::before { background: #22c55e; }
#modalEnrollBtn { min-width: 240px; text-align: center; }

/* Studio Bulletin: was an unstyled list (bullet dots, no card, no gap before Live Feed) */
.social-column .section-title { font-size: 1.9rem; text-align: left; margin-bottom: 1.25rem; }
.bulletin-container {
    background: linear-gradient(145deg, var(--bg-card) 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 20px;
    padding: 1.4rem 1.5rem; margin-bottom: 3rem;
}
.bulletin-container ul { list-style: none; margin: 0; padding: 0; }
.bulletin-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.bulletin-pin {
    flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
    color: var(--accent-primary); font-size: 0.85rem;
    background: rgba(245, 158, 11, 0.10); background: color-mix(in srgb, var(--accent-primary) 12%, transparent);
}
.bulletin-body { min-width: 0; padding-top: 0.15rem; }
.bulletin-text { font-weight: 600; color: var(--text-main); overflow-wrap: anywhere; }
.bulletin-note { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; margin-top: 0.3rem; }
.bulletin-date { margin: 0.35rem 0 0; font-size: 0.72rem; }
.bulletin-empty { color: var(--text-muted); font-size: 0.95rem; }

@media (max-width: 992px) {
    .social-column .section-title { text-align: center; }
    .bulletin-container { max-width: 500px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 768px) {
    .social-column .section-title { font-size: 1.8rem; }
    .bulletin-container { padding: 1.2rem; text-align: left; }
}

/* ==========================================================================
   29. SUMMER-ONLY GROUP CLASS PILL + ACCREDITATIONS (see accreditations.js)
   ========================================================================== */
.pill-btn.is-unavailable { opacity: 0.45; cursor: not-allowed; border-style: dashed; }
.pill-btn.is-unavailable:hover { transform: none; background: rgba(0, 0, 0, 0.3); color: var(--text-muted); border-color: rgba(255, 255, 255, 0.1); }
.pill-note { margin-top: 0.75rem; font-size: 0.88rem; color: #fcd34d; line-height: 1.5; }
.pill-note[hidden] { display: none; }

[hidden].accr-strip, [hidden].accr-section, .accr-line[hidden] { display: none !important; }

/* home page strip */
.accr-strip { padding-top: 1rem; padding-bottom: 2rem; text-align: center; }
.accr-kicker { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1.5rem; }
.accr-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.25rem 2.5rem; }
.accr-logo { display: flex; align-items: center; justify-content: center; height: 64px; opacity: 0.85; transition: opacity 0.3s ease, filter 0.3s ease; }
.accr-logo:hover, .accr-logo:focus-visible { opacity: 1; filter: none; }
.accr-logo-img { max-height: 56px; max-width: 240px; object-fit: contain; }
.accr-textlogo { font-weight: 800; font-size: 0.95rem; color: var(--text-main); letter-spacing: 0.02em; max-width: 200px; line-height: 1.3; }
.accr-more { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.5rem; font-size: 0.9rem; font-weight: 700; color: var(--accent-secondary); }
.accr-more:hover { color: var(--accent-primary); }

/* about page cards */
.accr-section { padding-top: 2rem; }
.accr-section .section-subtitle { margin-bottom: 2.5rem; }
.accr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 340px)); justify-content: center; gap: 1.5rem; max-width: 1000px; margin: 0 auto; }
.accr-card { background: linear-gradient(145deg, var(--bg-card) 0%, #0f172a 100%); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 20px; padding: 2rem 1.5rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.accr-card-logo { height: 96px; width: 100%; display: grid; place-items: center; margin-bottom: 0.5rem; }
.accr-card-img { max-height: 96px; max-width: 180px; object-fit: contain; }
.accr-card .accr-textlogo { font-size: 1.1rem; }
.accr-card h3 { font-size: 1.1rem; line-height: 1.35; }
.accr-card p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.6; }
.accr-link { margin-top: auto; padding-top: 0.5rem; font-size: 0.85rem; font-weight: 700; color: var(--accent-secondary); display: inline-flex; gap: 0.4rem; align-items: center; }
.accr-link:hover { color: var(--accent-primary); }

/* enrollment page line */
.accr-line { margin-top: 1rem; font-size: 0.9rem; font-weight: 600; color: var(--accent-secondary); }

@media (max-width: 768px) {
    .accr-logos { gap: 1rem 1.75rem; }
    .accr-logo, .accr-logo-img { height: auto; max-height: 48px; }
    .accr-logo-img { max-width: 200px; }
}

/* modal content is a flex column with a max height: without this, a tall photo makes the browser
   squeeze every item to fit, which crushed the "Enroll" button to half its height */
.modal-scroll > * { flex-shrink: 0; }

/* small phones: the 3.8rem page titles (e.g. "Begin Your Application") were wider than a 320px screen */
@media (max-width: 400px) {
    main h1[style*="font-size: 3.8rem"] { font-size: 2.5rem !important; overflow-wrap: anywhere; }
}

/* the long email address can't wrap on its own, so it pushed the contact page wider than small phones */
.dossier-text p { overflow-wrap: anywhere; }

/* logos have transparent backgrounds: skip the photo loading shimmer (it showed through as a shiny block) */
main img.accr-logo-img, main img.accr-card-img { background: none !important; animation: none !important; }

/* ==========================================================================
   30. NEWS & EVENTS PAGE  (news.js)
   ========================================================================== */
.hero[hidden] { display: none; }
.nw-shell { padding-top: 2.5rem; padding-bottom: 3rem; }
.nw-section { margin-bottom: 3.2rem; }
.nw-head { margin-bottom: 1.4rem; }
.nw-h2 { font-size: 1.7rem; margin-bottom: 0.3rem; }
.nw-head p { color: var(--text-muted); }

/* toolbar: filter chips + search */
.nw-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2.4rem; }
.nw-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.nw-chip { padding: 0.5rem 1rem; border-radius: 999px; font-family: inherit; font-weight: 600; font-size: 0.85rem; color: var(--text-muted); cursor: pointer; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); transition: all 0.2s ease; }
.nw-chip:hover { color: #fff; border-color: rgba(255,255,255,0.25); }
.nw-chip.active { color: #000; background: var(--accent-primary); border-color: var(--accent-primary); }
.nw-search { position: relative; flex: 0 1 280px; }
.nw-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.nw-search input { width: 100%; padding: 0.65rem 1rem 0.65rem 2.5rem; border-radius: 999px; font: inherit; font-size: 0.9rem; color: #fff; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); outline: none; }
.nw-search input:focus { border-color: var(--accent-primary); }

/* shared bits */
.nw-pill { display: inline-block; padding: 0.22rem 0.7rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; color: var(--accent-primary); background: rgba(245,158,11,0.12); background: color-mix(in srgb, var(--accent-primary) 14%, transparent); }
.nw-pill-solid { color: #000; background: var(--accent-primary); }
.nw-countdown { color: #fff; background: rgba(239,68,68,0.9); }
.nw-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.7rem; }
.nw-line { color: #cbd5e1; font-size: 0.92rem; margin: 0.25rem 0; }
.nw-line i { color: var(--accent-primary); width: 1.1em; text-align: center; }
.nw-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-top: 1rem; }
.nw-iconbtn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; cursor: pointer; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); transition: background 0.2s ease; font-size: 0.95rem; }
.nw-iconbtn:hover { background: rgba(255,255,255,0.16); }
.nw-inline-link { display: inline-block; margin-top: 0.6rem; color: var(--accent-primary); font-weight: 600; font-size: 0.9rem; }
.nw-inline-link:hover { text-decoration: underline; }
.nw-noimg { display: grid; place-items: center; font-size: 2.4rem; color: rgba(255,255,255,0.18); background: linear-gradient(135deg, #17213a, #0f1626); }
.nw-more { display: block; margin: 1.8rem auto 0; }

/* upcoming events */
.nw-events { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.2rem; }
.nw-event { display: flex; gap: 1.1rem; padding: 1.3rem; border-radius: 20px; background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06); }
.nw-event.next { border-color: var(--accent-primary); box-shadow: 0 0 40px -12px var(--accent-primary); }
.nw-date { flex: 0 0 68px; height: 78px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 16px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); }
.nw-date-mon { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; color: var(--accent-primary); }
.nw-date-day { font-size: 1.9rem; font-weight: 800; line-height: 1.1; }
.nw-event-body { min-width: 0; }
.nw-event-body h3 { font-size: 1.2rem; margin: 0.5rem 0 0.4rem; }
.nw-event-body h3 a:hover { color: var(--accent-primary); }

/* layout: stories + sidebar */
.nw-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2.5rem; align-items: start; }
.nw-aside { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 1.2rem; }
.nw-aside-card { padding: 1.5rem; border-radius: 20px; background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06); }
.nw-aside-card h3 { font-size: 1.05rem; margin-bottom: 1rem; }
.nw-note { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1rem; }
.nw-bulletins { list-style: none; padding: 0; margin: 0; }
.nw-bulletins li { padding: 0.8rem 0; border-top: 1px solid rgba(255,255,255,0.07); display: flex; flex-direction: column; gap: 0.2rem; }
.nw-bulletins li:first-child { border-top: none; padding-top: 0; }
.nw-bulletins span { color: var(--text-muted); font-size: 0.9rem; }
.nw-cta { text-align: center; background: linear-gradient(145deg, #1a2540, #131c2e); }
.nw-cta p { color: var(--text-muted); margin-bottom: 1rem; font-size: 0.92rem; }
.nw-fb { width: 100%; height: 640px; border: none; border-radius: 12px; background: #fff; }

/* featured story */
.nw-feature { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; border-radius: 24px; overflow: hidden; background: var(--bg-card); border: 1px solid rgba(255,255,255,0.08); }
.nw-feature-img { min-height: 340px; overflow: hidden; }
.nw-feature-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nw-feature-body { padding: 2.2rem; display: flex; flex-direction: column; justify-content: center; }
.nw-feature-body h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.8rem; }
.nw-feature-body p { color: #cbd5e1; margin-bottom: 1.2rem; }

/* story cards */
.nw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; }
.nw-card { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06); transition: transform 0.35s ease, border-color 0.35s ease; }
.nw-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.18); }
.nw-card-img { aspect-ratio: 16 / 10; overflow: hidden; }
.nw-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.25,1,0.5,1); }
.nw-card:hover .nw-card-img img, .nw-feature:hover .nw-feature-img img { transform: scale(1.05); }
.nw-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.3rem; }
.nw-card-body h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.nw-card-body p { color: var(--text-muted); font-size: 0.92rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nw-card-foot { display: flex; align-items: center; gap: 0.5rem; margin-top: 1rem; font-size: 0.85rem; }
.nw-readmore { color: var(--accent-primary); font-weight: 700; }
.nw-card-foot i { color: var(--accent-primary); font-size: 0.75rem; }
.nw-read { margin-left: auto; color: var(--text-muted); }
.nw-feature .nw-read { margin-left: 0; margin-right: auto; }

/* past events */
.nw-year { font-size: 0.8rem; letter-spacing: 0.2em; color: var(--text-muted); margin: 1.4rem 0 0.4rem; }
.nw-year:first-child { margin-top: 0; }
.nw-past-row { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 0.4rem; border-bottom: 1px solid rgba(255,255,255,0.07); transition: background 0.2s ease; }
.nw-past-row:hover { background: rgba(255,255,255,0.03); }
.nw-past-date { flex: 0 0 64px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; color: var(--accent-primary); }
.nw-past-title { flex: 1; font-weight: 600; min-width: 0; }
.nw-past-row .fa-chevron-right { color: var(--text-muted); font-size: 0.75rem; }

/* article page */
.nw-article { max-width: 780px; margin: 0 auto; padding-top: 110px; }
.nw-back { display: inline-block; margin-bottom: 1.6rem; color: var(--text-muted); font-weight: 600; font-size: 0.9rem; }
.nw-back:hover { color: var(--accent-primary); }
.nw-article-head h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.15; margin-bottom: 0.8rem; }
.nw-byline { color: var(--text-muted); margin-bottom: 1.6rem; }
.nw-cover { margin: 0 0 2rem; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); }
.nw-cover img { width: 100%; max-height: 520px; object-fit: cover; display: block; }
.nw-eventpanel { display: flex; gap: 1.2rem; padding: 1.4rem; margin-bottom: 2rem; border-radius: 20px; background: var(--bg-card); border: 1px solid var(--accent-primary); }
.nw-eventinfo { min-width: 0; }
.nw-body { font-size: 1.07rem; line-height: 1.85; color: #d7dee9; }
.nw-body p { margin-bottom: 1.3rem; }
.nw-body h2 { font-size: 1.5rem; margin: 2.2rem 0 0.8rem; color: #fff; }
.nw-body h3 { font-size: 1.2rem; margin: 1.8rem 0 0.6rem; color: #fff; }
.nw-body ul, .nw-body ol { margin: 0 0 1.3rem 1.4rem; }
.nw-body li { margin-bottom: 0.4rem; }
.nw-body a { color: var(--accent-primary); text-decoration: underline; }
.nw-body blockquote { margin: 1.8rem 0; padding: 0.4rem 0 0.4rem 1.4rem; border-left: 3px solid var(--accent-primary); font-size: 1.2rem; font-style: italic; color: #fff; }
.nw-body hr { border: none; border-top: 1px solid rgba(255,255,255,0.12); margin: 2rem 0; }
.nw-figure { margin: 2rem 0; }
.nw-figure img { width: 100%; border-radius: 16px; display: block; cursor: zoom-in; }
.nw-figure figcaption { margin-top: 0.6rem; font-size: 0.88rem; color: var(--text-muted); text-align: center; }
.nw-video { position: relative; aspect-ratio: 16 / 9; margin: 2rem 0; border-radius: 18px; overflow: hidden; background: #000; }
.nw-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.nw-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.7rem; margin: 1rem 0 2rem; }
.nw-gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; cursor: zoom-in; display: block; transition: transform 0.35s ease; }
.nw-gallery-grid img:hover { transform: scale(1.03); }
.nw-cover img { cursor: zoom-in; }
.nw-share { display: flex; align-items: center; gap: 0.6rem; margin: 2.4rem 0; padding: 1.2rem 0; border-top: 1px solid rgba(255,255,255,0.08); border-bottom: 1px solid rgba(255,255,255,0.08); color: var(--text-muted); font-weight: 600; }
.nw-share span { margin-right: 0.4rem; }
.nw-related { margin-top: 3rem; }
.nw-related .nw-grid { margin-top: 1rem; }

/* states */
.nw-empty { text-align: center; padding: 4rem 1rem; color: var(--text-muted); }
.nw-empty > i { font-size: 2.6rem; color: var(--accent-primary); margin-bottom: 1rem; display: block; }
.nw-empty h3 { color: #fff; font-size: 1.4rem; margin-bottom: 0.5rem; }
.nw-empty p { max-width: 420px; margin: 0 auto 1.5rem; }
.nw-skel { border-radius: 10px; background: linear-gradient(110deg, #131c2e 30%, #1c2842 50%, #131c2e 70%) 0 0 / 200% 100%; animation: imgShimmer 1.4s linear infinite; }
.nw-skel-bar { height: 44px; max-width: 420px; margin-bottom: 2rem; border-radius: 999px; }
.nw-skel-card { padding: 0; min-height: 300px; gap: 0.8rem; }
.nw-skel-card .nw-skel-img { aspect-ratio: 16 / 10; border-radius: 0; }
.nw-skel-line { height: 14px; margin: 0 1.3rem; }
.nw-skel-line.short { width: 55%; }
.nw-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 6500; padding: 0.7rem 1.3rem; border-radius: 999px; font-weight: 600; font-size: 0.9rem; color: #fff; background: rgba(15,23,42,0.95); border: 1px solid rgba(255,255,255,0.2); box-shadow: 0 10px 30px rgba(0,0,0,0.5); animation: fsIn 0.3s ease backwards; }
.nw-toast.out { opacity: 0; transition: opacity 0.4s ease; }

@media (max-width: 1000px) {
    .nw-layout { grid-template-columns: 1fr; }
    .nw-aside { position: static; }
    .nw-feature { grid-template-columns: 1fr; }
    .nw-feature-img { min-height: 220px; }
}
@media (max-width: 768px) {
    .nw-toolbar { flex-direction: column; align-items: stretch; }
    .nw-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.3rem; scrollbar-width: none; margin: 0 -1.5rem; padding-inline: 1.5rem; }
    .nw-chips::-webkit-scrollbar { display: none; }
    .nw-chip { white-space: nowrap; flex-shrink: 0; }
    .nw-search { flex: 1 1 auto; }
    .nw-events { grid-template-columns: 1fr; }
    .nw-event { flex-direction: column; }
    .nw-date { flex-direction: row; gap: 0.6rem; width: fit-content; height: auto; padding: 0.5rem 1rem; }
    .nw-date-day { font-size: 1.4rem; }
    .nw-feature-body { padding: 1.5rem; }
    .nw-article { padding-top: 96px; }
    .nw-eventpanel { flex-direction: column; }
    .nw-share { justify-content: center; flex-wrap: wrap; }
    .nw-head, .nw-h2 { text-align: center; }
    .nw-empty h3, .nw-empty p { text-align: center; }
    .nw-actions .btn-primary, .nw-actions .btn-secondary { flex: 1 1 100%; max-width: none; }
}

/* phone fixes for the news page: nothing may be wider than the screen */
.nw-grid { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.nw-events { grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }
.nw-card-body h3, .nw-feature-body h2, .nw-event-body h3, .nw-past-title, .nw-article-head h1, .nw-bulletins strong { overflow-wrap: anywhere; }
@media (max-width: 1000px) {
    .nw-layout, .nw-feature { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
    /* a wrapping column made the toolbar as wide as all the filter chips in one row, and the search box stretched to match */
    .nw-toolbar { flex-wrap: nowrap; }
    .nw-chips, .nw-search { min-width: 0; max-width: 100%; }
    .nw-chips { margin: 0; padding-inline: 0; }   /* the chip row used to bleed 24px past a 16px page edge */
}

/* event status badges: Upcoming / Ongoing / Ended (news.js eventStatus) */
.nw-status { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.75rem; border-radius: 999px;
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.4; white-space: nowrap; }
.nw-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.nw-status.is-up  { color: #fbbf24; background: rgba(251, 191, 36, 0.12); border: 1px solid rgba(251, 191, 36, 0.45); }
.nw-status.is-on  { color: #4ade80; background: rgba(74, 222, 128, 0.12); border: 1px solid rgba(74, 222, 128, 0.5); }
.nw-status.is-on::before { animation: nwLive 1.4s ease-in-out infinite; }
.nw-status.is-end { color: #94a3b8; background: rgba(148, 163, 184, 0.10); border: 1px solid rgba(148, 163, 184, 0.30); }
@keyframes nwLive { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); } 50% { opacity: 0.6; box-shadow: 0 0 0 5px rgba(74, 222, 128, 0); } }
@media (prefers-reduced-motion: reduce) { .nw-status.is-on::before { animation: none; } }
.nw-event-tags { margin-bottom: 0; }
.nw-past-row .nw-status { font-size: 0.65rem; padding: 0.2rem 0.6rem; }

/* blurred background fill for news pictures (news.js blurFill): whole picture, blurred copy fills the gaps */
.nw-blurfill { position: relative; overflow: hidden; background: #0b0f19; isolation: isolate; }
.nw-blurfill .nw-blur { position: absolute; inset: -40px; z-index: 0; background-size: cover; background-position: center;
    filter: blur(24px) brightness(0.5) saturate(1.25); transform: scale(1.08); }
.nw-blurfill img.nw-fit { position: relative; z-index: 1; display: block; width: 100%; height: 100%; max-height: none;
    object-fit: contain; background: none; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.45)); }
.nw-feature-img.nw-blurfill { min-height: 380px; }
.nw-cover.nw-blurfill { height: clamp(340px, 62vh, 600px); }
/* the hover zoom only moves the picture; the blurred fill stays put */
.nw-card:hover .nw-card-img .nw-blur, .nw-feature:hover .nw-feature-img .nw-blur { transform: scale(1.08); }
@media (max-width: 1000px) { .nw-feature-img.nw-blurfill { min-height: 0; aspect-ratio: 4 / 3; } }
@media (max-width: 768px) {
    .nw-card-img.nw-blurfill { aspect-ratio: 4 / 3; }          /* a little taller on phones, so portrait posters are bigger */
    .nw-cover.nw-blurfill { height: auto; aspect-ratio: 4 / 5; max-height: 75vh; }
}
@media (prefers-reduced-transparency: reduce) { .nw-blurfill .nw-blur { display: none; } }

/* ---- event cards: one tidy layout on every screen ----
   date block on the left, everything else lined up in one column on the right,
   badges on one row, and the Details button + calendar button side by side */
.nw-event-body { flex: 1 1 auto; display: flex; flex-direction: column; }
.nw-event-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0 0 0.55rem; }
.nw-event-tags .nw-pill, .nw-event-tags .nw-status { font-size: 0.7rem; padding: 0.22rem 0.7rem; line-height: 1.4; border: 1px solid transparent; }
.nw-event-tags .nw-status.is-up { border-color: rgba(251, 191, 36, 0.45); }
.nw-event-tags .nw-status.is-on { border-color: rgba(74, 222, 128, 0.5); }
.nw-event-body h3 { margin: 0 0 0.35rem; line-height: 1.25; }
.nw-event .nw-line { margin: 0.15rem 0; }
.nw-event .nw-actions { flex-wrap: wrap; gap: 0.5rem; margin-top: auto; padding-top: 0.9rem; }
/* buttons share a row; on a very narrow phone they wrap instead of squashing their text */
.nw-event .nw-actions .btn-primary, .nw-event .nw-actions .btn-secondary {
    flex: 1 1 108px; min-width: 0; max-width: none; min-height: 44px; padding: 0.6rem 0.9rem; white-space: nowrap;
    display: inline-flex; align-items: center; justify-content: center; font-size: 0.85rem; text-align: center; }
.nw-event .nw-iconbtn { flex: 0 0 44px; width: 44px; height: 44px; }

@media (max-width: 768px) {
    .nw-event { flex-direction: row; align-items: stretch; gap: 0.9rem; padding: 1.1rem; }
    .nw-date { flex: 0 0 56px; width: 56px; height: 64px; flex-direction: column; gap: 0; padding: 0; border-radius: 14px; align-self: flex-start; }
    .nw-date-mon { font-size: 0.66rem; }
    .nw-date-day { font-size: 1.5rem; }
    .nw-event-body h3 { font-size: 1.08rem; }
    .nw-event .nw-line { font-size: 0.88rem; }
}
/* with an RSVP button: RSVP gets its own full-width row on top, Details + calendar always share the row below */
.nw-event .nw-actions .btn-primary { order: -1; flex: 1 1 100%; }
.nw-event .nw-actions .btn-secondary { flex: 1 1 0; }

/* ==========================================================================
   31. UPCOMING EVENT "POSTER CARDS" (news.js eventCard)
   ========================================================================== */
.nw-events { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1.25rem; }
.nw-evcard { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 22px;
    background: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.07); transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease; }
.nw-evcard.next { border-color: rgba(245, 158, 11, 0.55); box-shadow: 0 0 40px -14px var(--accent-primary); }
@media (hover: hover) { .nw-evcard:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.2); } .nw-evcard.next:hover { border-color: var(--accent-primary); } }
.nw-evcard:focus-within { outline: 2px solid var(--accent-secondary); outline-offset: 3px; }

/* poster: whole image with the blurred fill, 4:3 frame */
.nw-evcard-media { position: relative; aspect-ratio: 4 / 3; }
.nw-evcard-media.nw-noimg { display: grid; place-items: center; font-size: 2.6rem; color: rgba(255, 255, 255, 0.18); background: linear-gradient(135deg, #17213a, #0f1626); }

/* date badge in the corner of the poster */
.nw-evcard-date { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 58px; padding: 0.45rem 0.6rem 0.4rem; border-radius: 14px; line-height: 1;
    background: rgba(11, 15, 25, 0.82); border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35); }
.nw-evcard-mon { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.16em; color: var(--accent-primary); }
.nw-evcard-day { font-size: 1.55rem; font-weight: 800; color: #fff; margin-top: 0.2rem; }
.nw-evcard-live { position: absolute; top: 14px; right: 12px; z-index: 2; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); background: rgba(5, 46, 22, 0.75); }

/* text */
.nw-evcard-body { display: flex; flex-direction: column; gap: 0.45rem; padding: 1.1rem 1.25rem 1.25rem; }
.nw-evcard-title { font-size: 1.15rem; line-height: 1.3; margin: 0; overflow-wrap: anywhere; }
.nw-evcard-link { color: #fff; }
.nw-evcard-link::after { content: ''; position: absolute; inset: 0; z-index: 3; }        /* the whole card opens the event */
.nw-evcard-link:focus-visible { outline: none; }
.nw-evcard-info { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; margin: 0; }
.nw-evcard-info .nw-countdown { background: none; padding: 0; color: var(--accent-primary); font-weight: 700; white-space: nowrap; }
.nw-evcard-rsvp { position: relative; z-index: 4; align-self: flex-start; margin-top: 0.4rem; min-height: 42px; padding: 0.55rem 1.4rem !important; font-size: 0.85rem !important; width: auto !important; }

@media (max-width: 768px) {
    .nw-events { grid-template-columns: 1fr; gap: 1rem; }
    .nw-evcard-body { padding: 1rem 1.1rem 1.15rem; }
    .nw-evcard-title { font-size: 1.1rem; }
    .nw-evcard-rsvp { align-self: stretch; width: 100% !important; }
}
.nw-evcard-cd { white-space: nowrap; }
