@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=Outfit:wght@300;400;500;600&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #080808;
    --bg-raised: #0d0d0d;
    --bg-card: #111111;
    --gold: #d4af37;
    --gold-glow: #e8c84a;
    --gold-soft: rgba(212,175,55,0.08);
    --gold-line: rgba(212,175,55,0.15);
    --teal: #4ec9a0;
    --teal-soft: rgba(78,201,160,0.08);
    --amber: #e8a84c;
    --amber-soft: rgba(232,168,76,0.08);
    --coral: #e8836a;
    --coral-soft: rgba(232,131,106,0.08);
    --text: #a8a8a8;
    --text-bright: #e0e0e0;
    --text-dim: #606060;
    --text-faint: #333;
    --border: rgba(255,255,255,0.06);
    --display: 'Playfair Display', Georgia, serif;
    --body: 'Outfit', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ── PARTICLE CANVAS ── */
#particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(8,8,8,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 72px;
    padding: 0 30px;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-brand {
    font-family: var(--display);
    font-size: 32px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    margin-right: 24px;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: -0.5px;
}
.nav-brand span { color: var(--gold); }
.nav-link {
    font-family: var(--body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
    text-decoration: none;
    padding: 6px 10px;
    white-space: nowrap;
    transition: color 0.3s;
    flex-shrink: 0;
}
.nav-link:hover { color: var(--text-bright); }
.nav-link.active { color: var(--gold); }
.nav-sep { width: 1px; height: 16px; background: var(--border); flex-shrink: 0; margin: 0 4px; }

/* ── HERO (home only) ── */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 140px 30px 80px;
}
.hero-label {
    font-family: var(--body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 1s ease 0.2s forwards;
}
.hero h1 {
    font-family: var(--display);
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 1s ease 0.5s forwards;
}
.hero h1 em {
    font-style: italic;
    color: var(--gold);
    text-shadow: 0 0 60px rgba(212,175,55,0.3);
}
.hero-sub {
    font-family: var(--display);
    font-size: clamp(16px, 2.2vw, 22px);
    font-weight: 400;
    font-style: italic;
    color: var(--text);
    max-width: 600px;
    line-height: 1.6;
    opacity: 0;
    animation: fadeUp 1s ease 0.8s forwards;
}
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeUp 1s ease 1.2s forwards;
}
.hero-scroll span {
    display: block;
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    margin: 0 auto 8px;
    animation: pulse 2s ease-in-out infinite;
}
.hero-scroll small {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* ── PAGE HEADER (interior pages) ── */
.page-header {
    position: relative;
    z-index: 1;
    padding: 160px 30px 60px;
    text-align: center;
}
.page-header .section-label {
    opacity: 0;
    animation: fadeUp 0.8s ease 0.1s forwards;
}
.page-header h1 {
    font-family: var(--display);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.3s forwards;
}
.page-header h1 em {
    font-style: italic;
    color: var(--gold);
    text-shadow: 0 0 60px rgba(212,175,55,0.3);
}
.page-header .lead {
    max-width: 640px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.5s forwards;
}

/* ── MAIN CONTENT ── */
.content {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 30px 80px;
}

/* ── TYPOGRAPHY ── */
.section-label {
    font-family: var(--body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.label-gold { color: var(--gold); }
.label-teal { color: var(--teal); }
.label-amber { color: var(--amber); }
.label-coral { color: var(--coral); }

h2 {
    font-family: var(--display);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 32px;
    letter-spacing: -0.5px;
}
h2 em { font-style: italic; color: var(--gold); }
h3 {
    font-family: var(--display);
    font-size: 22px;
    font-weight: 600;
    color: var(--text-bright);
    margin: 40px 0 16px;
}
p { font-size: 16px; color: var(--text); margin-bottom: 22px; font-weight: 300; }
.lead {
    font-family: var(--display);
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 400;
    font-style: italic;
    color: var(--text-bright);
    line-height: 1.6;
    margin-bottom: 36px;
}

/* ── REVEAL ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── GOLD RULE ── */
.gold-rule {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 48px 0;
    box-shadow: 0 0 20px rgba(212,175,55,0.3);
}

/* ── FLAG ROW ── */
.flag-row { display: flex; gap: 20px; margin: 40px 0; flex-wrap: wrap; }
.flag {
    flex: 1;
    min-width: 260px;
    border: 1px solid var(--gold-line);
    padding: 28px;
    text-align: center;
    background: var(--gold-soft);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.flag:hover {
    border-color: rgba(212,175,55,0.35);
    box-shadow: 0 0 40px rgba(212,175,55,0.06);
}
.flag-url {
    font-family: var(--display);
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}
.flag-desc { font-size: 14px; color: var(--text-dim); font-weight: 300; }

/* ── STAT ROW ── */
.stat-row { display: flex; gap: 30px; margin: 48px 0; flex-wrap: wrap; }
.stat { flex: 1; min-width: 130px; padding-top: 16px; border-top: 1px solid var(--gold-line); }
.stat .number {
    font-family: var(--display);
    font-size: 44px;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 0 40px rgba(212,175,55,0.2);
    line-height: 1;
}
.stat .desc { font-size: 13px; color: var(--text-dim); margin-top: 6px; font-weight: 300; }

/* ── TIER LIST ── */
.tier {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin: 20px 0;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.tier:last-of-type { border-bottom: none; }
.tier-label {
    font-family: var(--display);
    font-size: 15px;
    font-weight: 600;
    color: var(--gold);
    min-width: 120px;
    flex-shrink: 0;
    padding-top: 2px;
}
.tier-text { font-size: 15px; color: var(--text); font-weight: 300; }

/* ── PRINCIPLE BLOCKS ── */
.principle {
    border-left: 2px solid var(--gold);
    padding: 16px 0 16px 28px;
    margin: 28px 0;
    background: linear-gradient(90deg, var(--gold-soft), transparent 70%);
}
.principle .label {
    font-family: var(--body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 6px;
}
.principle p { color: var(--text-bright); margin-bottom: 0; font-weight: 300; }

/* ── STATION GRID ── */
.station-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    margin: 40px 0;
}
.station {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 28px 16px;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s;
    position: relative;
    overflow: hidden;
}
.station::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--teal);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.station:hover::before { transform: scaleX(1); }
.station:hover { border-color: rgba(78,201,160,0.2); transform: translateY(-2px); }
.station-num {
    font-family: var(--display);
    font-size: 36px;
    font-weight: 700;
    color: var(--teal);
    opacity: 0.6;
    margin-bottom: 8px;
    line-height: 1;
}
.station-name {
    font-family: var(--display);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 8px;
}
.station-desc { font-size: 12px; color: var(--text-dim); line-height: 1.5; font-weight: 300; }

/* ── CARDS ── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 36px;
    margin: 28px 0;
    position: relative;
    transition: border-color 0.3s;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: var(--teal);
    opacity: 0;
    transition: opacity 0.3s;
}
.card:hover { border-color: rgba(255,255,255,0.1); }
.card:hover::before { opacity: 1; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* ── WELCOME BLOCK ── */
.welcome-block {
    background: var(--gold-soft);
    border: 1px solid var(--gold-line);
    padding: 48px;
    margin: 48px 0;
    text-align: center;
    position: relative;
}
.welcome-block::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, rgba(212,175,55,0.1), transparent, rgba(212,175,55,0.05));
    pointer-events: none;
}
.welcome-block .welcome-title {
    font-family: var(--display);
    font-size: 22px;
    color: var(--gold);
    font-style: italic;
    margin-bottom: 14px;
    position: relative;
}
.welcome-block p { color: var(--text); font-size: 16px; margin-bottom: 0; position: relative; }

/* ── TIMELINE ── */
.timeline-item {
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 24px 0;
    border-left: 1px solid var(--border);
    padding-left: 28px;
    position: relative;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 30px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--coral);
    box-shadow: 0 0 12px rgba(232,131,106,0.4);
}
.timeline-date {
    font-family: var(--body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--coral);
    min-width: 90px;
    flex-shrink: 0;
    padding-top: 1px;
}
.timeline-text { font-size: 15px; color: var(--text); font-weight: 300; }

/* ── CLOSING ── */
.closing {
    text-align: center;
    margin-top: 80px;
    padding: 60px 0;
    border-top: 1px solid var(--border);
}
.closing .gold {
    font-family: var(--display);
    font-size: clamp(16px, 2vw, 20px);
    color: var(--gold);
    font-style: italic;
    line-height: 1.8;
    text-shadow: 0 0 40px rgba(212,175,55,0.15);
}
.closing .muted { font-size: 13px; color: var(--text-faint); margin-top: 16px; }

/* ── FOOTER ── */
footer {
    text-align: center;
    padding: 48px 20px 40px;
    border-top: 1px solid var(--border);
}
footer .footer-main {
    font-size: 13px;
    color: var(--text-faint);
    font-weight: 300;
    line-height: 1.6;
}
footer .footer-main + .footer-main {
    margin-top: 6px;
}
footer .footer-tagline {
    font-size: 12px;
    color: var(--text-faint);
    font-weight: 300;
    font-style: italic;
    opacity: 0.35;
    margin-top: 20px;
}
footer a { color: var(--gold); text-decoration: none; transition: color 0.3s; }
footer a:hover { color: var(--gold-glow); }

/* ── NAV BRANCH LINKS ── */
.branch-links {
    display: flex;
    gap: 16px;
    margin: 40px 0;
    flex-wrap: wrap;
}
.branch-link {
    flex: 1;
    min-width: 180px;
    display: block;
    text-decoration: none;
    border: 1px solid var(--border);
    padding: 24px;
    background: var(--bg-card);
    transition: border-color 0.3s, transform 0.3s;
}
.branch-link:hover { border-color: rgba(255,255,255,0.12); transform: translateY(-2px); }
.branch-link .bl-label {
    font-family: var(--body);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.branch-link .bl-title {
    font-family: var(--display);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-bright);
}
.branch-link .bl-desc {
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 4px;
    font-weight: 300;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    nav { position: relative !important; background: var(--bg) !important; }
    .nav-inner { flex-direction: column !important; height: auto !important; padding: 14px 20px 12px !important; gap: 6px !important; overflow: visible !important; }
    .nav-brand { font-size: 24px !important; margin-right: 0 !important; }
    .nav-links { justify-content: center !important; flex-wrap: wrap !important; gap: 4px !important; overflow: visible !important; }
    .nav-link { font-size: 10px !important; padding: 4px 8px !important; color: var(--text) !important; }
    .nav-sep { display: none !important; }
    .station-grid { grid-template-columns: repeat(2, 1fr); }
    .station:nth-child(5) { grid-column: span 2; }
    .tier { flex-direction: column; gap: 4px; }
    .tier-label { min-width: 0; }
    .flag-row { flex-direction: column; }
    .timeline-item { flex-direction: column; gap: 4px; }
    .hero { min-height: 90vh; padding: 100px 24px 60px; }
    .branch-links { flex-direction: column; }
    .page-header { padding: 120px 20px 40px; }
}
@media (max-width: 480px) {
    .station-grid { grid-template-columns: 1fr; }
    .station:nth-child(5) { grid-column: span 1; }
    .content { padding: 0 20px 60px; }
}

/* ── KEYFRAMES ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}
