/* ===========================
   BCM HERITAGE — heritage.css
   Same design system as main site
   =========================== */

/* --- CURSOR --- */
.cursor-dot {
    width: 6px; height: 6px;
    background: #edbe00; border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%);
}
.cursor-ring {
    width: 36px; height: 36px;
    border: 1px solid rgba(237,190,0,0.5);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, width 0.3s, height 0.3s;
}

/* --- VARIABLES --- */
:root {
    --gold: #edbe00;
    --gold-dim: rgba(237,190,0,0.12);
    --gold-glow: rgba(237,190,0,0.3);
    --dark: #080808;
    --dark-2: #111111;
    --dark-3: #1a1a1a;
    --dark-4: #242424;
    --white: #ffffff;
    --grey: #888888;
    --grey-light: #b0b0b0;
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --font-mono: 'Space Mono', monospace;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--dark);
    color: var(--white);
    font-family: var(--font-body);
    overflow-x: hidden;
    cursor: none;
    opacity: 0;
    animation: bodyFadeIn 0.8s var(--ease-out) 0.1s forwards;
}
@keyframes bodyFadeIn { to { opacity: 1; } }
a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* --- REVEAL --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- SHARED UTILS --- */
.section-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem; color: var(--gold);
    letter-spacing: 3px; display: block; margin-bottom: 12px;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    letter-spacing: 4px; line-height: 1;
}
.section-title em { font-style: normal; color: var(--gold); }

/* ===========================
   NAVIGATION (same as main)
   =========================== */
#navbar {
    position: fixed; top: 0; width: 100%;
    height: 70px; padding: 0 50px; z-index: 1000;
    display: flex; align-items: center;
    background: transparent;
    transition: background 0.5s, border-color 0.5s;
    border-bottom: 1px solid transparent;
}
#navbar.scrolled {
    background: rgba(8,8,8,0.85);
    backdrop-filter: blur(20px);
    border-bottom-color: rgba(255,255,255,0.06);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.brand { font-family: var(--font-display); font-size: 1.8rem; letter-spacing: 4px; }
.brand-dot { color: var(--gold); }
.menu { display: flex; gap: 5px; }
.nav-link {
    position: relative; padding: 8px 16px;
    font-family: var(--font-body); font-size: 0.8rem;
    font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
    color: var(--grey-light); transition: color 0.3s; overflow: hidden;
}
.nav-link span { position: relative; z-index: 1; }
.nav-link::before {
    content: ''; position: absolute; inset: 0;
    background: var(--gold-dim);
    transform: translateX(-100%); transition: transform 0.3s var(--ease-out);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::before { transform: translateX(0); }
.nav-est { font-family: var(--font-mono); font-size: 0.65rem; color: var(--grey); letter-spacing: 3px; }

/* ===========================
   HERITAGE HERO
   =========================== */
.heritage-hero {
    height: 100vh; min-height: 700px;
    position: relative;
    display: flex; align-items: center; justify-content: center;
    text-align: center; overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    /* dark editorial gradient — replace with a real image if available */
    background: linear-gradient(135deg, #0a0a0a 0%, #161010 40%, #0d0d0d 100%);
    /* Subtle diagonal lines texture */
    background-image:
        linear-gradient(135deg, #0d0d0d 0%, #1a0a00 50%, #0d0d0d 100%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 60px,
            rgba(237,190,0,0.015) 60px,
            rgba(237,190,0,0.015) 61px
        );
    transform: scale(1.04);
    animation: heroBgZoom 8s var(--ease-out) forwards;
}
@keyframes heroBgZoom { to { transform: scale(1); } }
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(8,8,8,0.4) 0%, rgba(8,8,8,0.6) 60%, rgba(8,8,8,1) 100%);
}
.hero-noise {
    position: absolute; inset: 0; z-index: 2; opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 200px; pointer-events: none;
}

.hero-content { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 24px; }

.hero-eyebrow {
    display: flex; align-items: center; gap: 20px;
    animation: fadeUp 0.8s var(--ease-out) 0.4s both;
}
.eyebrow-line { display: block; width: 50px; height: 1px; background: var(--gold); opacity: 0.6; }
.eyebrow-text { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 5px; color: var(--gold); }

.hero-title { display: flex; flex-direction: column; align-items: center; line-height: 0.9; }
.title-row {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: 8px; text-transform: uppercase; color: var(--white);
    opacity: 0; transform: translateY(40px) skewX(-3deg);
    animation: titleReveal 0.7s var(--ease-out) forwards;
}
.title-row:nth-child(1) { animation-delay: 0.5s; font-size: clamp(2rem, 4vw, 4rem); }
.title-row.big { animation-delay: 0.65s; font-size: clamp(4rem, 12vw, 10rem); }
.title-row:nth-child(3) { animation-delay: 0.8s; font-size: clamp(2rem, 4vw, 4rem); }
.title-row.gold { color: var(--gold); }
@keyframes titleReveal { to { opacity: 1; transform: translateY(0) skewX(0); } }

.hero-sub {
    font-family: var(--font-body);
    font-size: 1rem; letter-spacing: 4px; color: var(--grey-light);
    text-transform: uppercase; font-weight: 300;
    animation: fadeUp 0.8s var(--ease-out) 1s both;
}

/* SCROLL HINT */
.hero-scroll-hint {
    position: absolute; bottom: 120px; right: 50px; z-index: 3;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    animation: fadeIn 1s var(--ease-out) 1.8s both;
}
.hero-scroll-hint span { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 4px; color: var(--grey); writing-mode: vertical-rl; }
.scroll-line { width: 1px; height: 60px; background: linear-gradient(to bottom, var(--grey), transparent); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100% { transform: scaleY(1); opacity: 0.5; } 50% { transform: scaleY(0.5); opacity: 1; } }

/* TIMELINE BAR */
.hero-timeline {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
    display: flex; align-items: center; justify-content: center;
    background: rgba(8,8,8,0.85); backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 20px 50px; gap: 0;
    animation: fadeUp 0.8s var(--ease-out) 1.3s both;
}
.tl-item {
    font-family: var(--font-display);
    font-size: 1.5rem; letter-spacing: 3px;
    color: var(--grey); padding: 0 30px;
    transition: color 0.3s;
    cursor: default;
}
.tl-item.active, .tl-item:hover { color: var(--gold); }
.tl-line { flex: 1; max-width: 80px; height: 1px; background: rgba(255,255,255,0.1); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===========================
   ARTICLE SECTIONS
   =========================== */
.article-section {
    padding: 120px 80px;
    background: var(--dark-2);
    position: relative;
    overflow: hidden;
}
.article-section.dark { background: var(--dark); }

.article-inner { max-width: 1200px; margin: 0 auto; }

.article-meta {
    display: flex; align-items: center; gap: 30px;
    margin-bottom: 60px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.article-source {
    font-family: var(--font-mono);
    font-size: 0.65rem; letter-spacing: 2px;
    color: var(--grey); text-transform: uppercase;
    display: flex; align-items: center; gap: 8px;
}
.article-source i { color: var(--gold); }

/* Two-column layout: text left, image right */
.article-layout {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 80px; align-items: start;
    margin-bottom: 80px;
}
.article-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    letter-spacing: 4px; line-height: 0.95;
    color: var(--white); margin-bottom: 32px;
}
.article-title em { font-style: normal; color: var(--gold); }
.article-title.centered { text-align: center; margin-bottom: 60px; }

.article-body p {
    color: var(--grey-light); font-size: 1rem;
    line-height: 1.85; margin-bottom: 22px;
    font-weight: 300;
}

.article-img-wrap { position: relative; }
.article-img-wrap img {
    width: 100%; object-fit: cover;
    filter: brightness(0.9) saturate(0.85);
    transition: filter 0.5s;
}
.article-img-wrap:hover img { filter: brightness(1) saturate(1); }
.img-caption {
    font-family: var(--font-mono);
    font-size: 0.6rem; letter-spacing: 2px;
    color: var(--grey); text-transform: uppercase;
    padding: 12px 0 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 12px;
}

/* Full-width divider + two col */
.article-divider {
    text-align: center; position: relative;
    margin-bottom: 50px;
}
.article-divider::before, .article-divider::after {
    content: ''; position: absolute;
    top: 50%; width: calc(50% - 120px); height: 1px;
    background: rgba(255,255,255,0.08);
}
.article-divider::before { left: 0; }
.article-divider::after { right: 0; }
.article-divider span {
    font-family: var(--font-mono);
    font-size: 0.6rem; letter-spacing: 5px;
    color: var(--gold); text-transform: uppercase;
    padding: 0 20px; position: relative;
}

.article-two-col {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: start;
}
.article-two-col h3 {
    font-family: var(--font-display);
    font-size: 1.8rem; letter-spacing: 3px;
    color: var(--white); margin-bottom: 18px;
}
.article-two-col p {
    color: var(--grey-light); font-size: 1rem; line-height: 1.8; font-weight: 300;
}

/* PULL QUOTE */
.pull-quote {
    position: relative;
    padding: 36px 40px;
    border-left: 3px solid var(--gold);
    background: rgba(237,190,0,0.04);
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2vw, 2rem);
    letter-spacing: 2px; line-height: 1.3;
    color: var(--white);
    align-self: center;
}
.pull-quote em { font-style: normal; color: var(--gold); }
.quote-mark {
    position: absolute; top: -10px; left: 16px;
    font-size: 5rem; color: var(--gold); opacity: 0.2;
    font-family: Georgia, serif; line-height: 1;
}

/* ===========================
   MOTORSPORT SECTION
   =========================== */
.motorsport-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 2px; margin-bottom: 60px;
}
.ms-card {
    background: var(--dark-3);
    padding: 44px 32px;
    position: relative; overflow: hidden;
    transition: transform 0.4s var(--ease-out), background 0.3s;
    transition-delay: var(--d, 0ms);
}
.ms-card::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 2px; background: var(--gold);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.5s var(--ease-out);
}
.ms-card:hover { transform: translateY(-6px); background: var(--dark-4); }
.ms-card:hover::after { transform: scaleX(1); }

.ms-icon {
    width: 50px; height: 50px;
    border: 1px solid rgba(237,190,0,0.3);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-size: 1.1rem;
    margin-bottom: 24px;
    transition: background 0.3s, border-color 0.3s;
}
.ms-card:hover .ms-icon { background: var(--gold-dim); border-color: var(--gold); }

.ms-card h4 {
    font-family: var(--font-display);
    font-size: 1.4rem; letter-spacing: 4px;
    color: var(--white); margin-bottom: 16px;
}
.ms-card p { color: var(--grey-light); font-size: 0.9rem; line-height: 1.7; font-weight: 300; }

.article-img-wide {
    position: relative; margin-bottom: 50px; overflow: hidden;
}
.article-img-wide img {
    width: 100%; max-height: 500px; object-fit: cover;
    filter: brightness(0.85) saturate(0.85);
    transition: filter 0.5s, transform 0.8s var(--ease-out);
}
.article-img-wide:hover img { filter: brightness(1) saturate(1); transform: scale(1.02); }
.img-caption-wide {
    font-family: var(--font-mono); font-size: 0.6rem;
    letter-spacing: 2px; color: var(--grey);
    text-transform: uppercase; margin-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 12px;
}

.article-closing {
    font-size: 1.15rem; color: var(--grey-light);
    line-height: 1.8; font-weight: 300;
    text-align: center; max-width: 700px;
    margin: 0 auto; font-style: italic;
}

/* ===========================
   JOURNAL / HEADLINES
   =========================== */
.journal-section {
    padding: 120px 80px;
    background: var(--dark-2);
}
.journal-inner { max-width: 1200px; margin: 0 auto; }
.journal-header { margin-bottom: 70px; }

.journal-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.journal-card {
    background: var(--dark-3);
    padding: 36px 32px;
    position: relative; overflow: hidden;
    transition: transform 0.5s var(--ease-out), background 0.3s;
    transition-delay: var(--d, 0ms);
    display: flex; flex-direction: column;
}
.journal-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 2px; background: var(--gold);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.5s var(--ease-out);
}
.journal-card:hover { transform: translateY(-5px); background: var(--dark-4); }
.journal-card:hover::before { transform: scaleX(1); }

.journal-card-top {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.journal-source {
    font-family: var(--font-mono); font-size: 0.65rem;
    color: var(--white); letter-spacing: 2px; text-transform: uppercase;
}
.source-cat {
    color: var(--gold); margin-left: 6px;
    font-size: 0.55rem;
}
.journal-date {
    font-family: var(--font-mono); font-size: 0.55rem;
    color: var(--grey); letter-spacing: 1px;
}

.journal-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem; letter-spacing: 2px;
    color: var(--white); margin-bottom: 16px;
    line-height: 1.1;
}
.journal-card p {
    color: var(--grey); font-size: 0.88rem;
    line-height: 1.7; font-weight: 300; flex: 1;
}
.journal-card-footer { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.05); }
.read-more {
    font-family: var(--font-mono); font-size: 0.65rem;
    letter-spacing: 2px; color: var(--gold); text-transform: uppercase;
    cursor: pointer; transition: letter-spacing 0.3s;
}
.journal-card:hover .read-more { letter-spacing: 4px; }

/* ===========================
   FOOTER
   =========================== */
footer {
    background: #040404;
    padding: 70px 60px 30px;
}
.footer-rule {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin-bottom: 70px; opacity: 0.3;
}
.footer-content {
    display: flex; justify-content: space-between; flex-wrap: wrap;
    gap: 40px; margin-bottom: 50px;
}
.footer-brand, .footer-nav, .footer-social { flex: 1; min-width: 200px; }
.footer-logo { font-family: var(--font-display); font-size: 2.5rem; letter-spacing: 6px; color: var(--white); margin-bottom: 12px; }
.footer-logo span { color: var(--gold); }
.footer-sub { color: var(--grey); font-size: 0.9rem; margin-bottom: 8px; }
.footer-est { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 3px; color: rgba(255,255,255,0.2); }
.footer-nav h4, .footer-social h4 { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 4px; color: var(--gold); text-transform: uppercase; margin-bottom: 20px; }
.footer-nav { display: flex; flex-direction: column; gap: 2px; }
.footer-nav a { color: var(--grey); font-size: 0.85rem; padding: 6px 0; transition: color 0.3s, padding-left 0.3s; border-bottom: 1px solid rgba(255,255,255,0.04); }
.footer-nav a:hover { color: var(--gold); padding-left: 8px; }
.social-icons { display: flex; gap: 12px; }
.social-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.1); color: var(--grey); font-size: 0.9rem; transition: color 0.3s, border-color 0.3s, background 0.3s, transform 0.3s; }
.social-btn:hover { color: var(--dark); background: var(--gold); border-color: var(--gold); transform: translateY(-4px); }
.footer-bottom { text-align: center; font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 3px; color: rgba(255,255,255,0.15); padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.04); }
.footer-sep { margin: 0 16px; color: var(--gold); opacity: 0.5; }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
    .article-layout { grid-template-columns: 1fr; gap: 40px; }
    .article-two-col { grid-template-columns: 1fr; gap: 30px; }
    .motorsport-grid { grid-template-columns: 1fr; }
    .journal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    #navbar { padding: 0 24px; }
    .nav-est { display: none; }
    .menu { gap: 0; }
    .nav-link { padding: 8px 10px; font-size: 0.7rem; letter-spacing: 1px; }
    .hero-scroll-hint { display: none; }
    .hero-timeline { padding: 16px 24px; gap: 0; }
    .tl-item { padding: 0 12px; font-size: 1rem; }
    .article-section { padding: 80px 24px; }
    .journal-section { padding: 80px 24px; }
    footer { padding: 50px 24px 24px; }
    .footer-content { flex-direction: column; }
    .cursor-dot, .cursor-ring { display: none; }
    body { cursor: auto; }
}