/*
  Premium Core Design System: Cinematic Noir Luxury
  Version: 2.0
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Syne:wght@700;800&display=swap');

:root {
    /* Deepened backgrounds — true cinema black */
    --noir-void:    #000000;
    --noir-obsidian: #030508;
    --noir-deep:    #060a10;
    --noir-onyx:    rgba(10, 18, 30, 0.55);
    --satin-glow:   rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.06);

    /* Single accent: Coral — the hero color */
    --accent:       #ff7338;
    --accent-glow:  rgba(255, 115, 56, 0.15);
    --accent-soft:  rgba(255, 115, 56, 0.08);

    /* Text hierarchy */
    --text-primary:  #edf2f8;
    --text-secondary:#8a9bb5;
    --text-muted:    #4e6280;
}

/* ── Base ── */
body {
    background-color: var(--noir-obsidian);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ══════════════════════════════════════════
   TYPOGRAPHY — Optical Sizing Hierarchy
   ══════════════════════════════════════════ */

.font-syne {
    font-family: 'Syne', sans-serif !important;
}

.font-inter {
    font-family: 'Inter', sans-serif !important;
}

/* Hero display — the showstopper */
.type-display {
    font-family: 'Syne', sans-serif !important;
    font-weight: 800;
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

/* Section headings */
.type-heading {
    font-family: 'Syne', sans-serif !important;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

/* Card titles */
.type-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

/* Body text — luxurious reading */
.type-body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Editorial labels */
.section-label {
    font-family: 'Inter', sans-serif !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3em !important;
    font-weight: 500 !important;
    color: var(--accent) !important;
}

/* ══════════════════════════════════════════
   HERO VIDEO BACKGROUND
   ══════════════════════════════════════════ */

.hero-cinema {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-cinema-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    opacity: 0.25;
    filter: saturate(0.6) brightness(0.4);
}

/* Gradient scrim over video — fades to site background */
.hero-cinema::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(3, 5, 8, 0.3) 0%,
        rgba(3, 5, 8, 0.6) 50%,
        var(--noir-obsidian) 100%
    );
    z-index: 1;
}

.hero-cinema-content {
    position: relative;
    z-index: 2;
}

/* ══════════════════════════════════════════
   LOADING TITLE CARD — The Film Opens
   ══════════════════════════════════════════ */

.title-card {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--noir-void);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.6s;
}

.title-card.dismissed {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.title-card-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 5vw, 3rem);
    letter-spacing: -0.03em;
    color: transparent;
    background: linear-gradient(135deg, #ff7338 0%, #ff7338 100%);
    -webkit-background-clip: text;
    background-clip: text;
    opacity: 0;
    transform: translateY(12px);
    animation: titleReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.title-card-rule {
    width: 0;
    height: 1px;
    background: var(--accent);
    margin-top: 16px;
    animation: ruleExpand 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

.title-card-sub {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 14px;
    opacity: 0;
    animation: titleReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

@keyframes titleReveal {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes ruleExpand {
    from { width: 0; }
    to   { width: 64px; }
}

/* ══════════════════════════════════════════
   GLASSMORPHISM — The Luxury Surface
   ══════════════════════════════════════════ */

.luxury-card {
    background: var(--noir-onyx) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border) !important;
    box-shadow: inset 0 1px 0 var(--satin-glow) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease;
}

.luxury-card:hover {
    transform: translateY(-3px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12),
                0 12px 40px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 115, 56, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

/* ══════════════════════════════════════════
   ATMOSPHERIC EFFECTS
   ══════════════════════════════════════════ */

/* Film Grain Overlay */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65536' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Luxury divider — gradient accent line */
.luxury-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06) 20%, var(--accent-glow) 50%, rgba(255, 255, 255, 0.06) 80%, transparent);
    margin: 0 auto;
    max-width: 480px;
}

/* Accent glow on focused inputs */
input:focus, textarea:focus, select:focus {
    border-color: rgba(255, 115, 56, 0.4) !important;
    box-shadow: 0 0 0 3px var(--accent-soft), inset 0 1px 1px rgba(255, 255, 255, 0.05) !important;
    outline: none;
}

/* ══════════════════════════════════════════
   CINEMATIC ANIMATIONS
   ══════════════════════════════════════════ */

.reveal-scale {
    animation: revealScale 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes revealScale {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Scroll-triggered reveal */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for child cards */
.reveal-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.reveal-on-scroll:nth-child(3) { transition-delay: 0.16s; }
.reveal-on-scroll:nth-child(4) { transition-delay: 0.24s; }
.reveal-on-scroll:nth-child(5) { transition-delay: 0.32s; }
.reveal-on-scroll:nth-child(6) { transition-delay: 0.40s; }

/* ══════════════════════════════════════════
   GRADIENT TEXT — Unified accent
   ══════════════════════════════════════════ */

.gradient-text-accent {
    background: linear-gradient(135deg, #ff7338 0%, #e85d2a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
