/* Mark Edge — custom styles (complements Tailwind CDN) */

/* Base44 font research (2026-04-09):
   markedge.base44.app uses no custom/web font for "Mark Edge" text.
   It renders with the system stack: ui-sans-serif, system-ui, sans-serif.
   Styled via Tailwind: font-black tracking-tight (or tracking-tighter).
   No Google Font to import. */

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: #0d0d0d; color: #e4e4e7; }

/* Silver gradient for headings */
.silver-text {
    background: linear-gradient(135deg, #fff 0%, #d4d4d8 40%, #f4f4f5 60%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card borders */
.card-border {
    border: 1px solid rgba(212, 212, 216, 0.08);
}
.card-border:hover {
    border-color: rgba(212, 212, 216, 0.2);
}

/* Nav underline */
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: #d0c9a8;
    transition: width 0.3s;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Navbar glass */
.navbar-bg {
    background: rgba(13, 13, 13, 0.95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

/* Video embed 16:9 */
.video-embed { position: relative; padding-bottom: 56.25%; }
.video-embed iframe,
.video-embed img,
.video-embed > * { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Mobile menu */
.mobile-menu { transform: translateX(100%); transition: transform 0.3s ease; }
.mobile-menu.open { transform: translateX(0); }

/* Scroll fade */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Noise overlay */
.noise-bg::before {
    content: '';
    position: absolute; inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1a1a1a; }
::-webkit-scrollbar-thumb { background: #454545; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #5d5d5d; }

/* Portrait treatment — desaturate + blend into dark bg (per Donna, 2026-04-16) */
.portrait-blend {
    filter: saturate(0.15) contrast(1.05) brightness(0.95);
}
.portrait-blend-container {
    position: relative;
    isolation: isolate;
}
.portrait-blend-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 55%, rgba(13, 13, 13, 0.85) 100%);
    pointer-events: none;
    z-index: 1;
}

/* ========================================
   Awesome-upgrade tokens (2026-04-17)
   ======================================== */

/* Editorial drop cap */
.drop-cap::first-letter {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 5.5rem;
    line-height: 0.85;
    float: left;
    margin: 0.25rem 0.75rem 0 0;
    color: #e4e4e7;
    font-variation-settings: "opsz" 144, "SOFT" 50;
}

/* Luxury ticker — tight tracking, tabular numerals */
.ticker {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

/* On-air pulse dot */
.on-air-dot {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: #ff2d2d;
    box-shadow: 0 0 0 0 rgba(255, 45, 45, 0.7);
    animation: onAirPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes onAirPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 45, 45, 0.6); }
    50% { box-shadow: 0 0 0 8px rgba(255, 45, 45, 0); }
}

/* Waveform decorative bars */
.waveform {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 32px;
}
.waveform span {
    display: block;
    width: 2px;
    background: linear-gradient(180deg, rgba(228,228,231,0.1) 0%, rgba(208,201,168,0.4) 50%, rgba(228,228,231,0.1) 100%);
    border-radius: 2px;
    animation: waveformPulse 1.8s ease-in-out infinite;
}
@keyframes waveformPulse {
    0%, 100% { height: 20%; }
    50% { height: 100%; }
}

/* Editorial rule — hairline divider with accent dot */
.editorial-rule {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(208, 201, 168, 0.5);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}
.editorial-rule::before,
.editorial-rule::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(208, 201, 168, 0.2) 50%, transparent 100%);
}

/* Pull quote — sans, sharp */
.pull-quote {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #d4d4d8;
}
.pull-quote::before {
    content: '“';
    font-size: 1.2em;
    line-height: 0;
    vertical-align: -0.1em;
    color: rgba(208, 201, 168, 0.5);
    margin-right: 0.1em;
}
.pull-quote::after {
    content: '”';
    font-size: 1.2em;
    line-height: 0;
    vertical-align: -0.4em;
    color: rgba(208, 201, 168, 0.5);
}

/* Slow parallax scrub */
.parallax-slow {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* Logo-matched headline — Big Shoulders Display, industrial signage.
   Matches the silver MARK EDGE SHOW logo (per Donna + Mark, 2026-04-21) */
.hed-editorial {
    font-family: 'Big Shoulders Display', 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: 0em;
    text-transform: uppercase;
    /* Silver metallic gradient fill */
    background: linear-gradient(180deg, #f4f4f5 0%, #d4d4d8 35%, #a1a1aa 55%, #e4e4e7 75%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}
.hed-editorial-light {
    font-family: 'Big Shoulders Display', 'Inter', sans-serif;
    font-weight: 400;
    letter-spacing: 0em;
    text-transform: uppercase;
    /* Dimmer silver */
    background: linear-gradient(180deg, #d4d4d8 0%, #a1a1aa 50%, #71717a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Number ticker — investor deck */
.big-num {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.05em;
    font-variation-settings: "opsz" 144, "SOFT" 0;
}

/* Hairline card border — upgraded */
.hairline {
    border: 1px solid rgba(228, 228, 231, 0.06);
}
.hairline:hover { border-color: rgba(208, 201, 168, 0.2); }

/* Cross-fade hero backdrop */
.hero-spot {
    background-image:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(208, 201, 168, 0.06), transparent 60%),
        radial-gradient(ellipse 40% 30% at 85% 30%, rgba(208, 201, 168, 0.08), transparent 70%);
}

/* Subtle grain that doesn't dominate */
.grain::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* Hide X/Twitter links until Donna provides the real handle */
a[data-pending-handle="true"] { display: none !important; }

/* Accessible-only text — visible to screen readers + crawlers, not to sighted users.
   Used to guarantee "Mark Edgington" SEO presence on every page without altering visual hierarchy. */
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Microscopic SEO stamp — visible but effectively invisible (black on near-black, tiny).
   Per Mark 2026-04-21: "Mark Edgington" must be on every page but not prominent. */
.seo-stamp {
    display: block;
    font-size: 1px;
    line-height: 1px;
    color: #0d0d0d;
    background: #0d0d0d;
    user-select: none;
    opacity: 0.5;
    margin: 0;
    padding: 0;
    position: absolute;
    left: -9999px;
}
