/*
Theme Name: Baguio Musicians Guild
Theme URI: https://baguiomusiciansguild.org
Author: Baguio Musicians Guild
Author URI: https://baguiomusiciansguild.org
Description: A premium, single-page landing theme for the Baguio Musicians Guild. Built around a deep-navy and gold visual identity with a galactic, classical-music atmosphere. Native WordPress (no page builder required), mobile-first, accessible, SEO-ready, and Customizer-driven for fully editable content.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bmg
Tags: one-column, custom-colors, custom-logo, editor-style, featured-images, footer-widgets, full-site-editing, theme-options, threaded-comments, translation-ready
*/

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
    /* Brand palette */
    --c-navy-deepest: #001a35;
    --c-navy-deep: #002549;
    --c-navy: #013565;
    --c-blue-accent: #2776AE;
    --c-gold: #FFC300;
    --c-gold-light: #FFD60B;
    --c-gold-soft: #d8a52e;
    --c-cream: #f5e9c8;
    --c-white: #F5F5F5;
    --c-text: #e9ecf2;
    --c-text-muted: #a8b3c4;

    /* Typography scale */
    --font-display: "Playfair Display", "Cormorant Garamond", Georgia, serif;
    --font-serif: "Cormorant Garamond", Georgia, serif;
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Spatial scale (8pt grid, generous) */
    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --space-5: 3rem;
    --space-6: 4rem;
    --space-7: 6rem;
    --space-8: 8rem;
    --space-9: 12rem;

    /* Layout */
    --container-max: 1280px;
    --container-pad: clamp(1.25rem, 4vw, 3rem);

    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.83, 0, 0.17, 1);
    --dur-slow: 1200ms;
    --dur-med: 600ms;
    --dur-fast: 300ms;

    /* Effects */
    --shadow-gold-soft: 0 0 40px rgba(255, 195, 0, 0.15);
    --shadow-gold-strong: 0 0 80px rgba(255, 195, 0, 0.35);
    --shadow-deep: 0 30px 80px rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 195, 0, 0.18);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--c-text);
    background: var(--c-navy-deepest);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img, svg, picture { max-width: 100%; height: auto; display: block; }

a { color: var(--c-gold); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--c-gold-light); }
a:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 4px; border-radius: 2px; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--c-gold); color: var(--c-navy-deepest); }

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 1rem;
    padding: 0.75rem 1.25rem;
    background: var(--c-gold);
    color: var(--c-navy-deepest);
    font-weight: 600;
    z-index: 9999;
}
.skip-link:focus { left: 1rem; }

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}

/* ============================================================
   3. COSMIC BACKDROP (site-wide)
   ============================================================ */
.cosmic-backdrop {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(39, 118, 174, 0.20), transparent 60%),
        radial-gradient(ellipse 70% 50% at 85% 90%, rgba(255, 195, 0, 0.08), transparent 65%),
        radial-gradient(ellipse 60% 80% at 50% 50%, rgba(1, 53, 101, 0.55), transparent 70%),
        linear-gradient(180deg, var(--c-navy-deepest) 0%, var(--c-navy-deep) 40%, var(--c-navy-deepest) 100%);
}

.cosmic-backdrop::after {
    /* Subtle film grain */
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.04 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
    opacity: 0.6;
    mix-blend-mode: overlay;
    pointer-events: none;
}

#particle-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

/* Floating note glyphs */
.floating-notes { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.floating-notes span {
    position: absolute;
    color: var(--c-gold);
    opacity: 0;
    font-family: var(--font-serif);
    font-size: 2rem;
    filter: drop-shadow(0 0 8px rgba(255, 195, 0, 0.4));
    animation: float-up 18s linear infinite;
}
.floating-notes span:nth-child(1) { left: 8%;  animation-delay: 0s;  font-size: 1.6rem; }
.floating-notes span:nth-child(2) { left: 22%; animation-delay: 3s;  font-size: 2.4rem; opacity: .8; }
.floating-notes span:nth-child(3) { left: 38%; animation-delay: 7s;  font-size: 1.4rem; }
.floating-notes span:nth-child(4) { left: 55%; animation-delay: 1s;  font-size: 2.8rem; }
.floating-notes span:nth-child(5) { left: 72%; animation-delay: 9s;  font-size: 1.8rem; }
.floating-notes span:nth-child(6) { left: 88%; animation-delay: 5s;  font-size: 2.2rem; }

@keyframes float-up {
    0%   { transform: translateY(110vh) rotate(-12deg); opacity: 0; }
    10%  { opacity: 0.35; }
    50%  { opacity: 0.55; }
    90%  { opacity: 0.2; }
    100% { transform: translateY(-15vh) rotate(12deg); opacity: 0; }
}

/* ============================================================
   4. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--c-white);
}

.eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--c-gold);
    margin-bottom: var(--space-3);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}
.eyebrow::before, .eyebrow::after {
    content: "";
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--c-gold));
}
.eyebrow::after { background: linear-gradient(90deg, var(--c-gold), transparent); }

.script-accent {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--c-gold);
}

p { margin: 0 0 var(--space-3); }
p.lead { font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.6; color: var(--c-text); }

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.9rem;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--dur-med) var(--ease-out);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--c-gold) 0%, var(--c-gold-light) 100%);
    color: var(--c-navy-deepest);
    box-shadow: 0 0 0 1px rgba(255, 195, 0, 0.4), 0 18px 40px -12px rgba(255, 195, 0, 0.35);
}
.btn-primary:hover {
    color: var(--c-navy-deepest);
    box-shadow: 0 0 0 1px rgba(255, 195, 0, 0.6), 0 22px 50px -8px rgba(255, 195, 0, 0.6);
    transform: translateY(-2px);
}

.btn-outline {
    color: var(--c-white);
    border: 1px solid rgba(255, 195, 0, 0.45);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(6px);
}
.btn-outline:hover {
    color: var(--c-gold-light);
    border-color: var(--c-gold);
    background: rgba(255, 195, 0, 0.06);
    box-shadow: var(--shadow-gold-soft);
    transform: translateY(-2px);
}

/* Shimmer sweep on any .btn-shimmer */
.btn-shimmer::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
    transform: translateX(-110%);
    transition: transform 900ms var(--ease-out);
}
.btn-shimmer:hover::after { transform: translateX(110%); }

/* ============================================================
   6. HEADER / NAV
   ============================================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: var(--space-3) 0;
    transition: all var(--dur-med) var(--ease-out);
}
.site-header.scrolled {
    padding: var(--space-2) 0;
    background: rgba(0, 26, 53, 0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 195, 0, 0.12);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--c-white);
}
.brand-mark img { height: 48px; width: auto; filter: drop-shadow(0 4px 12px rgba(255, 195, 0, 0.35)); }
.brand-mark-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.brand-mark-text .name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--c-white);
    letter-spacing: 0.02em;
}
.brand-mark-text .meta {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    color: var(--c-gold);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin-top: 2px;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.nav-link {
    color: var(--c-text);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}
.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 0;
    height: 1px;
    background: var(--c-gold);
    transition: width var(--dur-med) var(--ease-out);
}
.nav-link:hover { color: var(--c-gold); }
.nav-link:hover::after { width: 100%; }

@media (max-width: 720px) {
    .nav-link { display: none; }
    .brand-mark img { height: 40px; }
    .brand-mark-text .name { font-size: 0.95rem; }
}

/* ============================================================
   7. HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    padding: calc(var(--space-8) + 2rem) 0 var(--space-7);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: var(--space-6);
    align-items: center;
}

@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: var(--space-5); text-align: center; }
    .hero .eyebrow { justify-content: center; }
}

.hero-text {
    position: relative;
}
.hero-text::before {
    content: "";
    position: absolute;
    top: 0.5rem;
    left: -2rem;
    width: 1px;
    height: 70%;
    background: linear-gradient(180deg, transparent, var(--c-gold) 30%, var(--c-gold) 70%, transparent);
    opacity: 0.7;
}
@media (max-width: 980px) { .hero-text::before { display: none; } }

.hero h1 {
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: 1.02;
    margin-bottom: var(--space-3);
    font-weight: 500;
}
.hero h1 .line-2 {
    display: block;
    font-style: italic;
    font-family: var(--font-serif);
    color: var(--c-gold);
    font-weight: 400;
    margin-top: 0.25em;
}

.hero p.lead {
    max-width: 540px;
    margin-bottom: var(--space-4);
    color: var(--c-text-muted);
}
@media (max-width: 980px) { .hero p.lead { margin-left: auto; margin-right: auto; } }

.hero-cta {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}
@media (max-width: 980px) { .hero-cta { justify-content: center; } }

.hero-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 540px;
    margin-left: auto;
    justify-self: end;
}
@media (max-width: 980px) { .hero-visual { margin: 0 auto; max-width: 380px; justify-self: center; } }

.hero-orb {
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 195, 0, 0.35), transparent 55%),
                radial-gradient(circle at 70% 70%, rgba(39, 118, 174, 0.55), transparent 60%),
                radial-gradient(circle at 50% 50%, rgba(1, 53, 101, 0.85), rgba(0, 26, 53, 0.95));
    box-shadow: inset 0 0 100px rgba(255, 195, 0, 0.15), 0 0 120px rgba(39, 118, 174, 0.35), 0 0 220px rgba(255, 195, 0, 0.1);
    animation: orb-breathe 8s ease-in-out infinite;
}
@keyframes orb-breathe {
    0%, 100% { transform: scale(1); box-shadow: inset 0 0 100px rgba(255, 195, 0, 0.15), 0 0 120px rgba(39, 118, 174, 0.35), 0 0 220px rgba(255, 195, 0, 0.1); }
    50%      { transform: scale(1.04); box-shadow: inset 0 0 140px rgba(255, 195, 0, 0.25), 0 0 160px rgba(39, 118, 174, 0.5), 0 0 280px rgba(255, 195, 0, 0.2); }
}

.hero-rings { position: absolute; inset: 0; pointer-events: none; }
.hero-rings circle { fill: none; stroke: rgba(255, 195, 0, 0.18); stroke-width: 1; }
.hero-rings .ring-1 { animation: ring-rotate 60s linear infinite; transform-origin: center; }
.hero-rings .ring-2 { animation: ring-rotate 90s linear infinite reverse; transform-origin: center; }
@keyframes ring-rotate { to { transform: rotate(360deg); } }

.hero-logo {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24%;
}
.hero-logo img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(255, 195, 0, 0.55)) drop-shadow(0 0 8px rgba(255, 214, 11, 0.4));
    animation: gentle-float 6s ease-in-out infinite;
}
@keyframes gentle-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--c-gold);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.7;
}
.scroll-indicator .line {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, var(--c-gold), transparent);
    position: relative;
    overflow: hidden;
}
.scroll-indicator .line::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(180deg, var(--c-gold-light), transparent);
    animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
    0%   { transform: translateY(-100%); opacity: 0; }
    50%  { opacity: 1; }
    100% { transform: translateY(330%); opacity: 0; }
}

/* ============================================================
   8. COMING SOON FRAME
   ============================================================ */
.coming-soon {
    padding: var(--space-7) 0;
    position: relative;
}

.cs-frame {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem);
    background:
        radial-gradient(ellipse at top, rgba(255, 195, 0, 0.05), transparent 60%),
        linear-gradient(180deg, rgba(1, 53, 101, 0.45), rgba(0, 26, 53, 0.65));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 195, 0, 0.25);
    text-align: center;
    overflow: hidden;
}

/* Decorative corner ornaments */
.cs-corner {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 1px solid var(--c-gold);
    pointer-events: none;
}
.cs-corner.tl { top: 14px; left: 14px;  border-right: none; border-bottom: none; }
.cs-corner.tr { top: 14px; right: 14px; border-left: none;  border-bottom: none; }
.cs-corner.bl { bottom: 14px; left: 14px;  border-right: none; border-top: none; }
.cs-corner.br { bottom: 14px; right: 14px; border-left: none;  border-top: none; }
.cs-corner::after {
    content: "";
    position: absolute;
    width: 8px; height: 8px;
    background: var(--c-gold);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(255, 195, 0, 0.8);
}
.cs-corner.tl::after { top: -4px; left: -4px; }
.cs-corner.tr::after { top: -4px; right: -4px; }
.cs-corner.bl::after { bottom: -4px; left: -4px; }
.cs-corner.br::after { bottom: -4px; right: -4px; }

/* Shimmer sweep across the frame */
.cs-frame::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(115deg, transparent 40%, rgba(255, 195, 0, 0.08) 50%, transparent 60%);
    animation: shimmer-sweep 7s ease-in-out infinite;
    pointer-events: none;
}
@keyframes shimmer-sweep {
    0%, 100% { transform: translate(-30%, -30%); }
    50%      { transform: translate(30%, 30%); }
}

.cs-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: var(--space-3);
}
.cs-ornament .star {
    color: var(--c-gold);
    font-size: 0.6rem;
    filter: drop-shadow(0 0 6px rgba(255, 195, 0, 0.6));
}
.cs-ornament .bar {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--c-gold), transparent);
}

.cs-headline {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 7vw, 5rem);
    font-weight: 500;
    letter-spacing: 0.06em;
    background: linear-gradient(180deg, #fff6c8 0%, var(--c-gold) 60%, var(--c-gold-soft) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: var(--space-3);
    text-shadow: 0 0 40px rgba(255, 195, 0, 0.15);
}

.cs-body {
    max-width: 540px;
    margin: 0 auto var(--space-4);
    color: var(--c-text);
    font-family: var(--font-serif);
    font-size: 1.18rem;
    line-height: 1.65;
}

.cs-launching {
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--c-text-muted);
    margin-bottom: 0.5rem;
}
.cs-url {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--c-gold);
    margin-bottom: var(--space-4);
    letter-spacing: 0.02em;
}

/* Mailing list form */
.mailing-form {
    display: flex;
    gap: 0.5rem;
    max-width: 460px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}
.mailing-form input[type="email"] {
    flex: 1 1 240px;
    padding: 0.95rem 1.2rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 195, 0, 0.3);
    color: var(--c-white);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    border-radius: 2px;
    transition: all var(--dur-med) var(--ease-out);
}
.mailing-form input[type="email"]::placeholder { color: var(--c-text-muted); }
.mailing-form input[type="email"]:focus {
    outline: none;
    border-color: var(--c-gold);
    box-shadow: 0 0 0 3px rgba(255, 195, 0, 0.15);
    background: rgba(0, 0, 0, 0.5);
}

.form-feedback {
    margin-top: var(--space-3);
    font-size: 0.9rem;
    min-height: 1.5rem;
    color: var(--c-gold-light);
    font-family: var(--font-serif);
    font-style: italic;
}
.form-feedback.error { color: #ff9b9b; }

/* ============================================================
   9. LEGACY SECTION
   ============================================================ */
.legacy {
    padding: var(--space-8) 0;
    position: relative;
}

.legacy-grid {
    display: grid;
    grid-template-columns: 0.85fr 1fr;
    gap: var(--space-6);
    align-items: center;
}

@media (max-width: 900px) {
    .legacy-grid { grid-template-columns: 1fr; gap: var(--space-5); }
}

.legacy-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 480px;
    margin: 0 auto;
}
.legacy-visual::before {
    content: "";
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    border: 1px solid rgba(255, 195, 0, 0.2);
    background: radial-gradient(circle, rgba(255, 195, 0, 0.06), transparent 70%);
}
.legacy-visual::after {
    content: "";
    position: absolute;
    inset: -2%;
    border-radius: 50%;
    border: 1px dashed rgba(255, 195, 0, 0.18);
    animation: ring-rotate 100s linear infinite;
}
.legacy-visual img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12%;
    filter: drop-shadow(0 0 24px rgba(255, 195, 0, 0.4));
}

.legacy-year {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 500;
    color: var(--c-gold);
    line-height: 1;
    margin: var(--space-3) 0 var(--space-2);
    letter-spacing: -0.02em;
}
.legacy-year sup {
    font-size: 0.25em;
    color: var(--c-text-muted);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    font-family: var(--font-sans);
    vertical-align: super;
    margin-left: 0.5em;
    top: -1.2em;
}

.legacy-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.6rem;
    color: var(--c-gold-light);
    margin-bottom: var(--space-3);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
    margin-top: var(--space-4);
}
@media (max-width: 540px) { .stats-grid { grid-template-columns: 1fr; } }

.stat-card {
    padding: var(--space-3) var(--space-2);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    text-align: center;
    transition: all var(--dur-med) var(--ease-out);
    position: relative;
}
.stat-card::before {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    width: 0;
    height: 1px;
    background: var(--c-gold);
    transform: translateX(-50%);
    transition: width var(--dur-med) var(--ease-out);
}
.stat-card:hover::before { width: 80%; }
.stat-card:hover {
    border-color: rgba(255, 195, 0, 0.5);
    box-shadow: var(--shadow-gold-soft);
    transform: translateY(-4px);
}

.stat-num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--c-gold);
    line-height: 1;
    margin-bottom: 0.4rem;
}
.stat-label {
    font-size: 0.72rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--c-text-muted);
}

/* ============================================================
   10. VALUES SECTION
   ============================================================ */
.values {
    padding: var(--space-8) 0;
    text-align: center;
}

.values-heading {
    max-width: 640px;
    margin: 0 auto var(--space-6);
}
.values-heading h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    margin-bottom: var(--space-2);
}
.values-heading p { color: var(--c-text-muted); font-family: var(--font-serif); font-size: 1.15rem; }

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
}
@media (max-width: 980px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .values-grid { grid-template-columns: 1fr; } }

.value-card {
    padding: var(--space-4) var(--space-3);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 195, 0, 0.18);
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: all var(--dur-med) var(--ease-out);
}
.value-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 100%, rgba(255, 195, 0, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity var(--dur-med) var(--ease-out);
}
.value-card:hover {
    border-color: var(--c-gold);
    transform: translateY(-8px);
    box-shadow: var(--shadow-gold-soft);
}
.value-card:hover::before { opacity: 1; }

.value-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-3);
    color: var(--c-gold);
    position: relative;
    z-index: 1;
}
.value-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
    color: var(--c-white);
}
.value-card p {
    font-size: 0.95rem;
    color: var(--c-text-muted);
    margin: 0;
    position: relative;
    z-index: 1;
}

.value-card .number {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-family: var(--font-display);
    font-size: 1rem;
    color: rgba(255, 195, 0, 0.4);
    letter-spacing: 0.1em;
}

/* ============================================================
   11. FOOTER (Social + Contact)
   ============================================================ */
.site-footer {
    padding: var(--space-6) 0 var(--space-4);
    border-top: 1px solid rgba(255, 195, 0, 0.15);
    position: relative;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3));
}

.footer-inner {
    text-align: center;
}

.footer-mark img {
    height: 64px;
    margin: 0 auto var(--space-3);
    filter: drop-shadow(0 0 16px rgba(255, 195, 0, 0.4));
}

.footer-name {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--c-white);
    margin-bottom: 0.4rem;
}
.footer-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--c-gold);
    margin-bottom: var(--space-4);
    font-size: 1.05rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 195, 0, 0.3);
    color: var(--c-white);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: all var(--dur-med) var(--ease-out);
    background: rgba(255, 255, 255, 0.02);
}
.social-btn:hover {
    color: var(--c-navy-deepest);
    background: var(--c-gold);
    border-color: var(--c-gold);
    box-shadow: var(--shadow-gold-soft);
    transform: translateY(-2px);
}
.social-btn svg { width: 18px; height: 18px; }

.footer-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding-top: var(--space-3);
    border-top: 1px solid rgba(255, 195, 0, 0.08);
    color: var(--c-text-muted);
    font-size: 0.85rem;
}
.footer-meta .url { color: var(--c-gold); letter-spacing: 0.05em; }
.footer-meta .copy { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* ============================================================
   12. SCROLL REVEAL
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1100ms var(--ease-out), transform 1100ms var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 100ms; }
.reveal[data-delay="2"] { transition-delay: 200ms; }
.reveal[data-delay="3"] { transition-delay: 300ms; }
.reveal[data-delay="4"] { transition-delay: 400ms; }
.reveal[data-delay="5"] { transition-delay: 500ms; }

/* ============================================================
   13. LOADER
   ============================================================ */
.site-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--c-navy-deepest);
    display: grid;
    place-items: center;
    transition: opacity 800ms var(--ease-out), visibility 0s linear 800ms;
}
.site-loader.is-hidden { opacity: 0; visibility: hidden; }

.loader-mark {
    width: 80px;
    height: 80px;
    border: 1px solid rgba(255, 195, 0, 0.3);
    border-top-color: var(--c-gold);
    border-radius: 50%;
    animation: loader-spin 1.2s linear infinite;
}
@keyframes loader-spin { to { transform: rotate(360deg); } }

/* ============================================================
   14. REDUCED MOTION
   ============================================================ */
@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;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   15. PRINT
   ============================================================ */
@media print {
    .cosmic-backdrop, #particle-canvas, .floating-notes, .scroll-indicator { display: none; }
    body { background: white; color: black; }
    h1, h2, h3, h4 { color: black; }
}
