/* ============================================================
   THE VFX BRIDGE — Global Stylesheet
   style.css
   ============================================================ */


/* ── Variables ──────────────────────────────────────────────
   Note: index.php uses a slightly lighter --glass and --border
   instead of --glass-border. Both are defined here for
   compatibility. They resolve to the same intent.
   ---------------------------------------------------------- */
:root {
    --accent:       #00d2ff;
    --accent-dim:   rgba(0,210,255,0.12);
    --glass:        rgba(255,255,255,0.05);
    --glass-border: rgba(255,255,255,0.1);
    --border:       rgba(255,255,255,0.09);   /* index.php variant */
}


/* ── Global reset ───────────────────────────────────────────── */
* { box-sizing: border-box; }


/* ── Body ───────────────────────────────────────────────────── */
body {
    background: linear-gradient(135deg, #000, #172A30, #244452);
    

    min-height: 100vh;
    color: white;
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}


/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 100;
}
.navbar-brand {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 0.05em;
}
.nav-link { color: rgba(255,255,255,0.8) !important; font-weight: 500; }
.nav-link:hover { color: #fff !important; }


/* ── Typography helpers ─────────────────────────────────────── */
.highlight  { color: var(--accent); font-weight: 600; }

.eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
    opacity: 0.9;
}


/* ── Stat strip ─────────────────────────────────────────────── */
.stat-strip {
    background: rgba(0,210,255,0.06);
    border-top: 1px solid rgba(0,210,255,0.15);
    border-bottom: 1px solid rgba(0,210,255,0.15);
    padding: 30px 0;
}
.stat-item  { text-align: center; }
.stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}
.stat-label {
    font-size: 0.75rem;
    opacity: 0.65;
    margin-top: 5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}


/* ── Feature cards (mission / individuals pages) ────────────── */
.mission-section { padding: 80px 0; }

.feature-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 15px;
    height: 100%;
    transition: 0.3s;
}
.feature-card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-5px);
}
.icon-box { font-size: 2.5rem; color: var(--accent); margin-bottom: 20px; }


/* ── Studio badge pill ──────────────────────────────────────── */
.studio-badge {
    display: inline-block;
    background: var(--accent-dim);
    border: 1px solid rgba(0,210,255,0.3);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 50px;
    margin: 3px;
}


/* ── Generic glass box (bio, commitment, philosophy) ────────── */
.bio-box,
.commitment-box,
.philosophy-box,
.contact-card {
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 44px;
}
.bio-box p { opacity: 0.88; margin-bottom: 1.1rem; }

/* Larger padding variant */
.commitment-box,
.philosophy-box { padding: 48px; }


/* ── Blockquote ─────────────────────────────────────────────── */
blockquote.pull-quote,
.commitment-box blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 22px;
    font-size: 1.15rem;
    font-style: italic;
    opacity: 0.85;
    margin: 28px 0;
}


/* ── Section spacing ────────────────────────────────────────── */
.page-section   { padding: 80px 0; }
.bio-section    { padding: 80px 0 40px; }
.hero-section   { padding: 90px 0 70px; }
.credits-section { padding: 20px 0 80px; }
.journey-section { padding: 60px 0; }
.philosophy-section,
.timeline-section { padding: 0 0 80px; }


/* ── Hero (bio pages — instructor / david-james) ────────────── */
.hero-name {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 6px;
}
.hero-title {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.65;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 28px;
}


/* ── Credit cards (instructor page) ────────────────────────── */
.credit-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 18px 22px;
    height: 100%;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}
.credit-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: var(--accent);
    opacity: 0;
    transition: 0.3s;
}
.credit-card:hover { background: rgba(255,255,255,0.08); transform: translateY(-4px); }
.credit-card:hover::before { opacity: 1; }

.credit-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 3px; }
.credit-role  { font-size: 0.78rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.credit-year  { font-size: 0.75rem; opacity: 0.45; }

.tier-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.tier-lead   { background: rgba(255,215,0,0.15);  color: #ffd700;             border: 1px solid rgba(255,215,0,0.3); }
.tier-senior { background: rgba(0,210,255,0.12);  color: var(--accent);       border: 1px solid rgba(0,210,255,0.3); }
.tier-artist { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.15); }


/* ── Timeline (david-james page) ───────────────────────────── */
.timeline-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 0;
    position: relative;
}
.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 23px;
    top: 48px;
    width: 2px;
    height: calc(100% + 8px);
    background: rgba(0,210,255,0.2);
}
.timeline-year {
    min-width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-dim);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--accent);
    font-size: 0.65rem;
    flex-shrink: 0;
    text-align: center;
    line-height: 1.1;
}
.timeline-content {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
    flex: 1;
    transition: 0.3s;
}
.timeline-content:hover { background: rgba(255,255,255,0.08); }
.timeline-content h5 { margin-bottom: 4px; font-size: 1rem; }
.timeline-content p  { margin: 0; opacity: 0.7; font-size: 0.88rem; }


/* ── Archive callout (david-james page) ─────────────────────── */
.archive-callout {
    background: rgba(0,210,255,0.05);
    border: 1px solid rgba(0,210,255,0.2);
    border-radius: 12px;
    padding: 24px 28px;
}


/* ── Journey steps (individuals page) ──────────────────────── */
.journey-step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 36px;
}
.step-badge {
    min-width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0,210,255,0.15);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--accent);
    font-size: 1rem;
    flex-shrink: 0;
}
.step-connector {
    width: 2px;
    height: 30px;
    background: rgba(0,210,255,0.25);
    margin: 4px 0 4px 23px;
}


/* ── Contact form (contact page) ────────────────────────────── */
.form-label { font-size: 0.88rem; font-weight: 600; opacity: 0.85; margin-bottom: 6px; }

.form-control,
.form-select {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.93rem;
    transition: 0.2s;
}
.form-control:focus,
.form-select:focus {
    background: rgba(255,255,255,0.08);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 0 0 3px rgba(0,210,255,0.15);
}
.form-control::placeholder { opacity: 0.35; }
.form-select option { background: #1a3040; color: white; }

.type-toggle { display: flex; gap: 12px; }
.type-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: rgba(255,255,255,0.6);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: 0.2s;
    text-align: center;
}
.type-btn.active,
.type-btn:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
    color: var(--accent);
}
input[name="enquiry_type"] { display: none; }

/* Honeypot — must stay hidden from humans */
.hp-field { opacity: 0; position: absolute; top: -9999px; left: -9999px; height: 0; }

.alert-success-custom {
    background: rgba(0,210,100,0.1);
    border: 1px solid rgba(0,210,100,0.3);
    border-radius: 10px;
    padding: 18px 24px;
    color: #7fffc4;
    font-size: 0.93rem;
}
.alert-error-custom {
    background: rgba(255,80,80,0.1);
    border: 1px solid rgba(255,80,80,0.3);
    border-radius: 10px;
    padding: 18px 24px;
    color: #ffaaaa;
    font-size: 0.93rem;
}

.info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 28px;
}
.info-icon {
    width: 42px; height: 42px;
    border-radius: 10px;
    background: var(--accent-dim);
    border: 1px solid rgba(0,210,255,0.2);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
    font-size: 1rem;
    flex-shrink: 0;
}
.info-item h6 { margin: 0 0 4px; font-size: 0.88rem; font-weight: 700; }
.info-item p  { margin: 0; font-size: 0.83rem; opacity: 0.6; line-height: 1.5; }


/* ── Index page — background layers ─────────────────────────── */
.bg-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.bg-gradient {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    position: absolute; inset: 0;
}
.bg-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(0,210,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,210,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}
.bg-orb-1 {
    width: 600px; height: 600px;
    top: -200px; left: -150px;
    background: rgba(0,140,200,0.12);
    animation: drift1 18s ease-in-out infinite alternate;
}
.bg-orb-2 {
    width: 500px; height: 500px;
    bottom: -100px; right: -100px;
    background: rgba(0,80,160,0.1);
    animation: drift2 22s ease-in-out infinite alternate;
}
@keyframes drift1 { from { transform: translate(0,0); } to { transform: translate(60px,40px); } }
@keyframes drift2 { from { transform: translate(0,0); } to { transform: translate(-40px,-60px); } }

.page-wrap { position: relative; z-index: 1; }


/* ── Index page — two-column hero ───────────────────────────── */
.hero {
    min-height: calc(100vh - 57px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 0;
}
.hero-left {
    padding: 80px 60px 80px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-body {
    font-size: 1.05rem;
    line-height: 1.75;
    opacity: 0.72;
    max-width: 480px;
    margin-bottom: 40px;
    font-weight: 300;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-right {
    padding: 80px 80px 80px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-left: 1px solid var(--border);
    min-height: calc(100vh - 57px);
    justify-content: center;
}


/* ── Index page — info cards ────────────────────────────────── */
.info-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 26px 28px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}
.info-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transition: 0.3s;
}
.info-card:hover { background: rgba(255,255,255,0.07); transform: translateX(4px); }
.info-card:hover::before { opacity: 1; }

.card-eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
    opacity: 0.85;
}
.info-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}
.info-card p {
    font-size: 0.87rem;
    opacity: 0.62;
    margin: 0;
    line-height: 1.65;
    font-weight: 300;
}
.info-card .card-link {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.04em;
}
.info-card .card-link:hover { opacity: 0.75; }


/* ── Status / enrolment pill ────────────────────────────────── */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-dim);
    border: 1px solid rgba(0,210,255,0.25);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.status-pill .dot,
.enrolment-banner .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s infinite;
}


/* ── Animations ─────────────────────────────────────────────── */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.35; transform: scale(0.75); }
}

.fade-up {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.7s ease forwards;
}
.fade-up:nth-child(1) { animation-delay: 0.1s; }
.fade-up:nth-child(2) { animation-delay: 0.25s; }
.fade-up:nth-child(3) { animation-delay: 0.4s; }
.fade-up:nth-child(4) { animation-delay: 0.55s; }
.fade-up:nth-child(5) { animation-delay: 0.7s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}


/* ── Social row ─────────────────────────────────────────────── */
.social-row { display: flex; gap: 20px; margin-top: 8px; }
.social-row a {
    color: white;
    opacity: 0.35;
    font-size: 1.2rem;
    transition: 0.2s;
    text-decoration: none;
}
.social-row a:hover { opacity: 1; color: var(--accent); }


/* ── Stat bar (index page) ──────────────────────────────────── */
.stat-bar {
    position: relative; z-index: 1;
    background: rgba(0,0,0,0.3);
    border-top: 1px solid var(--border);
    padding: 22px 0;
}


/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 991px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .hero-left {
        padding: 60px 30px 40px;
        border-bottom: 1px solid var(--border);
    }
    .hero-right {
        padding: 40px 30px 60px;
        border-left: none;
        min-height: auto;
    }
    .bg-orb-1 { width: 300px; height: 300px; }
    .bg-orb-2 { width: 250px; height: 250px; }
}


/* ── Scroll-reveal system (site-wide) ───────────────────────── */
.reveal {
    opacity: 0;
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal--up    { transform: translateY(44px); }
.reveal--left  { transform: translateX(-40px); }
.reveal--right { transform: translateX(40px); }
.reveal--scale { transform: scale(0.93); }
.reveal--fade  { transform: none; }

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.18s; }
.reveal-d3 { transition-delay: 0.28s; }
.reveal-d4 { transition-delay: 0.40s; }
.reveal-d5 { transition-delay: 0.52s; }
.reveal-d6 { transition-delay: 0.64s; }


/* ── Pipeline page ───────────────────────────────────────────── */
.pipeline-hero {
    min-height: calc(100vh - 57px);
    display: flex;
    align-items: flex-end;
    padding: 80px 0;
    position: relative;
}

.pipeline-hero-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    max-width: 820px;
    margin-bottom: 20px;
}

.pipeline-hero-sub {
    font-size: 1.05rem;
    opacity: 0.7;
    max-width: 560px;
    line-height: 1.75;
    margin-bottom: 0;
}

.pipeline-section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
}

.pipeline-stage-list {
    border-top: 1px solid var(--glass-border);
}

.pipeline-stage {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    align-items: start;
    gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    transition: padding-left 0.2s;
}

.pipeline-stage::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.pipeline-stage:hover { padding-left: 12px; }
.pipeline-stage:hover::before { transform: scaleY(1); }

.pipeline-stage-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--accent);
    opacity: 0.45;
    line-height: 1;
    padding-top: 4px;
}

.pipeline-stage-body h5 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.pipeline-stage-body p {
    font-size: 0.88rem;
    opacity: 0.65;
    line-height: 1.7;
    max-width: 520px;
    margin: 0;
}

@media (max-width: 768px) {
    .pipeline-stage { grid-template-columns: 40px 1fr; }
    .pipeline-stage .studio-badge { display: none; }
}