/* ============================================================
   PRADHUMAN SAH TELI — PORTFOLIO
   Design system
   ============================================================ */

:root {
    --c-bg: #0a1628;
    --c-bg-2: #0e1a30;
    --c-surface: #142543;
    --c-surface-2: #1a2d52;
    --c-line: rgba(255, 255, 255, 0.08);
    --c-line-strong: rgba(255, 255, 255, 0.18);
    --c-text: #e8eef8;
    --c-text-soft: #a8b5cc;
    --c-text-mute: #6a7488;
    --c-accent: #d4a847;
    --c-accent-soft: #e6c062;
    --c-cyan: #7da2c8;
    --c-green: #4ade80;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Instrument Serif', 'Times New Roman', serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;

    --max: 1240px;
    --gutter: clamp(1.25rem, 3vw, 2.25rem);

    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-sans);
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.55;
    font-size: 16px;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

::selection { background: var(--c-accent); color: #0a1628; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ============================================================
   SITE-WIDE PROFILE BACKGROUND
   ============================================================ */
.site-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* (Hero video lives inside the hero section — see HERO VIDEO below) */

@keyframes bgFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Warm accent glow behind the figure */
.site-bg-glow {
    position: absolute;
    top: 10%;
    right: 8%;
    width: 45%;
    height: 55%;
    background: radial-gradient(circle, rgba(212, 168, 71, 0.25), rgba(212, 168, 71, 0) 65%);
    filter: blur(40px);
    animation: bgPulse 8s ease-in-out infinite;
}
@keyframes bgPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Darkening overlay — keeps text readable. Heavy on left, fades to clear over the figure */
.site-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(10, 22, 40, 0.97) 0%,
            rgba(10, 22, 40, 0.94) 35%,
            rgba(10, 22, 40, 0.78) 55%,
            rgba(10, 22, 40, 0.55) 75%,
            rgba(10, 22, 40, 0.45) 100%),
        linear-gradient(180deg,
            rgba(10, 22, 40, 0.5) 0%,
            transparent 25%,
            transparent 70%,
            rgba(10, 22, 40, 0.85) 100%);
}

/* Subtle grid texture on top of everything */
.site-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

main, section, header, footer, .nav, .marquee { position: relative; z-index: 2; }

/* ============================================================
   SCROLL PROGRESS
   ============================================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--c-accent), var(--c-cyan));
    z-index: 1000;
    transition: width 0.05s linear;
}

/* ============================================================
   CUSTOM CURSOR (desktop)
   ============================================================ */
.cursor-dot, .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: opacity 0.3s;
    opacity: 0;
}
.cursor-dot {
    width: 6px; height: 6px;
    background: var(--c-text);
    transform: translate(-50%, -50%);
}
.cursor-ring {
    width: 36px; height: 36px;
    border: 1.5px solid var(--c-text);
    transform: translate(-50%, -50%);
    transition: width 0.25s var(--ease), height 0.25s var(--ease), opacity 0.3s;
}
body.cursor-ready .cursor-dot,
body.cursor-ready .cursor-ring { opacity: 1; }
body.cursor-hover .cursor-ring {
    width: 60px; height: 60px;
    border-color: var(--c-accent);
}

@media (hover: none), (max-width: 900px) {
    .cursor-dot, .cursor-ring { display: none !important; }
    * { cursor: auto !important; }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.1rem var(--gutter);
    transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s;
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(10, 22, 40, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--c-line);
}

.nav-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.logo-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--c-accent), #8a6a1a);
    color: #050d1a;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 8px 24px -8px rgba(212, 168, 71, 0.6);
}
.logo-text { font-size: 1rem; }
.logo-dot { color: var(--c-accent); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}
.nav-link {
    font-size: 0.86rem;
    color: var(--c-text-soft);
    transition: color 0.3s;
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    position: relative;
}
.nav-link:hover { color: var(--c-text); }
.nav-link.active,
.nav-link.is-current { color: var(--c-text); }
.nav-link.active::after,
.nav-link.is-current::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 1.7em;
    right: 0;
    height: 1px;
    background: var(--c-accent);
}
.nav-num {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--c-accent);
    font-weight: 500;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.05rem;
    border: 1px solid var(--c-line-strong);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--c-text);
    transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
    background: rgba(255, 255, 255, 0.02);
}
.nav-cta:hover {
    border-color: var(--c-accent);
    background: rgba(212, 168, 71, 0.08);
}

.nav-toggle {
    display: none;
    width: 36px;
    height: 36px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    align-items: flex-end;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--c-text);
    transition: transform 0.3s var(--ease), opacity 0.3s, width 0.3s;
}
.nav-toggle span:nth-child(2) { width: 16px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); width: 22px; }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); width: 22px; }

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--c-text-soft);
    letter-spacing: 0.04em;
    text-transform: none;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--c-line-strong);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.025);
}
.eyebrow-dot {
    width: 7px; height: 7px;
    background: var(--c-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--c-green);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(1.35); }
}

.display {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.8rem, 8vw, 6.2rem);
    line-height: 0.98;
    letter-spacing: -0.025em;
    color: var(--c-text);
    margin: 1.5rem 0;
}
.display em {
    font-style: italic;
    color: var(--c-accent);
    font-family: var(--font-display);
}

.lede {
    font-size: clamp(1rem, 1.15vw, 1.15rem);
    color: var(--c-text-soft);
    max-width: 52ch;
    line-height: 1.65;
}
.lede strong { color: var(--c-text); font-weight: 600; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.95rem 1.55rem;
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 500;
    transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
    white-space: nowrap;
    will-change: transform;
}
.btn svg { transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
    background: var(--c-accent);
    color: #050d1a;
    box-shadow: 0 14px 32px -10px rgba(212, 168, 71, 0.55);
}
.btn-primary:hover {
    background: var(--c-accent-soft);
    box-shadow: 0 20px 44px -10px rgba(212, 168, 71, 0.75);
}

.btn-ghost {
    border: 1px solid var(--c-line-strong);
    color: var(--c-text);
    background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover {
    border-color: var(--c-text);
    background: rgba(255, 255, 255, 0.06);
}

/* CV button — gradient border, glassy fill, sweeping shimmer */
.btn-cv {
    position: relative;
    color: var(--c-text);
    background:
        linear-gradient(rgba(8, 16, 28, 0.85), rgba(8, 16, 28, 0.85)) padding-box,
        linear-gradient(120deg, var(--c-accent), var(--c-cyan), var(--c-accent)) border-box;
    border: 1px solid transparent;
    background-size: 100% 100%, 220% 100%;
    overflow: hidden;
    transition: transform 0.4s var(--ease), box-shadow 0.3s, background-position 0.6s var(--ease);
}
.btn-cv::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transform: skewX(-18deg);
    transition: left 0.6s var(--ease);
    pointer-events: none;
}
.btn-cv:hover {
    box-shadow: 0 18px 40px -12px rgba(212, 168, 71, 0.5);
    background-position: 100% 0, 100% 0;
}
.btn-cv:hover::after { left: 120%; }
.btn-cv .btn-cv-ico { transition: transform 0.4s var(--ease); }
.btn-cv:hover .btn-cv-ico { transform: translateY(-2px) scale(1.08); }
.btn-cv:hover svg { transform: none; }

.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100vh;
    padding: 5.5rem var(--gutter) 4rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Video fills the entire hero, edge to edge */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    pointer-events: none;
}
.hero-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg,
            rgba(10, 22, 40, 0.92) 0%,
            rgba(10, 22, 40, 0.78) 40%,
            rgba(10, 22, 40, 0.55) 70%,
            rgba(10, 22, 40, 0.42) 100%),
        linear-gradient(180deg,
            rgba(10, 22, 40, 0.55) 0%,
            transparent 30%,
            transparent 65%,
            rgba(10, 22, 40, 0.9) 100%);
}

.hero-grid {
    position: relative;
    z-index: 2;
    max-width: var(--max);
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.hero-text > * + * { margin-top: 1.25rem; }
.hero-text .display { margin: 1.4rem 0 1.6rem; }

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.hero-meta {
    display: flex;
    gap: clamp(1.5rem, 3vw, 3rem);
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--c-line);
}
.hero-meta > div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.meta-num {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    line-height: 1;
    color: var(--c-text);
    font-weight: 400;
}
.meta-plus {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2vw, 1.9rem);
    color: var(--c-accent);
    margin-left: 0.1rem;
}
.hero-meta p {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--c-text-mute);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.4rem;
}

/* Hero side column — sits over the bg image */
.hero-side {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 1rem;
    min-height: 60vh;
    justify-self: end;
    max-width: 380px;
    width: 100%;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--c-text);
    padding: 0.7rem 1.1rem;
    background: rgba(10, 22, 40, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--c-line-strong);
    border-radius: 50px;
    width: fit-content;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}
.hero-tag strong { color: var(--c-accent); font-weight: 500; }

.tag-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--c-accent);
    box-shadow: 0 0 10px var(--c-accent);
    animation: pulse 2s ease-in-out infinite;
}

.hero-cards {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.portrait-card {
    background: rgba(14, 26, 48, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--c-line-strong);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.8rem;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    animation: floatY 6s ease-in-out infinite;
}
.portrait-card:nth-child(2) { animation-delay: 3s; }

.card-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--c-text-mute);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.card-value { color: var(--c-text); font-weight: 500; font-size: 0.88rem; }

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--c-text-mute);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.scroll-line {
    width: 1px;
    height: 36px;
    background: linear-gradient(180deg, var(--c-text-mute), transparent);
    position: relative;
    overflow: hidden;
}
.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--c-accent);
    animation: scrollLine 2.5s ease-in-out infinite;
}
@keyframes scrollLine {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
    overflow: hidden;
    padding: 1.5rem 0;
    border-top: 1px solid var(--c-line);
    border-bottom: 1px solid var(--c-line);
    background: rgba(14, 26, 48, 0.35);
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
    display: flex;
    gap: 2.5rem;
    width: max-content;
    animation: marquee 40s linear infinite;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--c-text);
    white-space: nowrap;
}
.marquee-track span:nth-child(even) { color: var(--c-accent); font-style: italic; }
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(5rem, 10vw, 8rem) var(--gutter);
}

.section-header {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0 1.5rem;
    margin-bottom: 4rem;
    align-items: start;
}
.section-num {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--c-accent);
    grid-row: 1 / span 2;
    align-self: start;
    padding-top: 0.5rem;
    border-top: 1px solid var(--c-accent);
    min-width: 2.5rem;
}
.section-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.2rem, 6vw, 4.6rem);
    line-height: 0.98;
    letter-spacing: -0.022em;
    color: var(--c-text);
}
.section-title em { font-style: italic; color: var(--c-accent); }
.section-kicker {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--c-text-mute);
    letter-spacing: 0.04em;
    margin-top: 0.8rem;
    grid-column: 2;
}

/* ============================================================
   YOUTUBE LIVE SUBSCRIBER COUNT
   ============================================================ */
.yt-section {
    padding-top: clamp(2rem, 4vw, 3rem);
    padding-bottom: clamp(2rem, 4vw, 3rem);
    display: grid;
    place-items: center;
}

.yt-live-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
    width: min(440px, 100%);
    padding: clamp(1.8rem, 4vw, 2.6rem);
    border-radius: 24px;
    border: 1px solid var(--c-line-strong);
    background:
        radial-gradient(120% 100% at 50% 0%, rgba(255, 0, 51, 0.12), transparent 60%),
        rgba(10, 22, 40, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    transition: transform 0.45s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.yt-live-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 0, 51, 0.6), transparent 45%, rgba(255, 0, 51, 0.3));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0.7;
    pointer-events: none;
}
.yt-live-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 0, 51, 0.5);
    box-shadow: 0 30px 70px -22px rgba(255, 0, 51, 0.35);
}

.yt-live-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.yt-logo {
    display: grid;
    place-items: center;
    filter: drop-shadow(0 4px 14px rgba(255, 0, 51, 0.45));
}
.yt-live-id {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.yt-handle {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--c-text);
    letter-spacing: 0.01em;
}
.yt-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: #ff5a76;
}
.yt-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff0033;
    box-shadow: 0 0 0 0 rgba(255, 0, 51, 0.6);
    animation: ytPulse 1.8s ease-out infinite;
}
@keyframes ytPulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 0, 51, 0.55); }
    70%  { box-shadow: 0 0 0 9px rgba(255, 0, 51, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 51, 0); }
}

.yt-count-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}
.yt-count {
    font-family: var(--font-display);
    font-size: clamp(3rem, 9vw, 4.4rem);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--c-text);
    font-variant-numeric: tabular-nums;
}
.yt-count.is-updating { color: #ff5a76; transition: color 0.4s; }
.yt-count-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-text-soft);
}

.yt-stats {
    display: flex;
    gap: 2.2rem;
    padding-top: 0.4rem;
    border-top: 1px solid var(--c-line);
    width: 100%;
    justify-content: center;
}
.yt-stats li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}
.yt-stat-num {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--c-text);
    font-variant-numeric: tabular-nums;
}
.yt-stat-label {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-text-soft);
}

.yt-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    background: #ff0033;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 12px 30px -10px rgba(255, 0, 51, 0.6);
    transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.yt-cta svg { transition: transform 0.3s var(--ease); }
.yt-live-card:hover .yt-cta { box-shadow: 0 18px 40px -10px rgba(255, 0, 51, 0.8); }
.yt-live-card:hover .yt-cta svg { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
    .yt-live-dot { animation: none; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
.about-copy > * + * { margin-top: 1.25rem; }
.about-copy p {
    font-size: 1.05rem;
    color: var(--c-text-soft);
    line-height: 1.7;
}
.about-copy a { color: var(--c-accent); border-bottom: 1px solid currentColor; }
.about-copy a:hover { color: var(--c-accent-soft); }
.pull-quote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.3rem, 2.5vw, 1.7rem) !important;
    color: var(--c-text) !important;
    line-height: 1.35 !important;
    padding-left: 1.25rem;
    border-left: 2px solid var(--c-accent);
}

.about-side {
    display: grid;
    gap: 0.75rem;
}
.side-card {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    transition: border-color 0.3s, transform 0.3s var(--ease);
}
.side-card:hover { border-color: var(--c-line-strong); transform: translateX(4px); }
.side-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--c-text-mute);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.side-value { color: var(--c-text); font-weight: 500; font-size: 0.95rem; }
.side-value a { color: var(--c-accent); }
.status-dot {
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--c-green);
    border-radius: 50%;
    margin-right: 0.4rem;
    box-shadow: 0 0 8px var(--c-green);
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.skill-cell {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    padding: 1.8rem 1.7rem;
    transition: border-color 0.4s, transform 0.4s var(--ease), background 0.4s;
    min-height: 220px;
    display: flex;
    flex-direction: column;
}
.skill-cell:hover {
    border-color: var(--c-line-strong);
    background: var(--c-surface-2);
    transform: translateY(-3px);
}
.skill-cell-lg { grid-column: span 2; grid-row: span 1; }
.skill-cell-soft { grid-column: span 4; }
.skill-cat {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--c-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}
.skill-cell ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.skill-cell li {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--c-text);
    transition: color 0.3s, transform 0.3s var(--ease);
}
.skill-cell:hover li { color: var(--c-text); }
.skill-cell li:hover {
    color: var(--c-accent);
    transform: translateX(6px);
}
.skill-cell-lg li { font-size: 1.7rem; }
/* Denser data/ML/cloud lists — smaller type so longer entries fit on one line */
.skill-cell-tech li { font-size: 1.15rem; }
.skill-cell-tech ul { gap: 0.55rem; }

.soft-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.soft-tags span {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--c-text-soft);
    padding: 0.55rem 0.95rem;
    border: 1px solid var(--c-line-strong);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s;
}
.soft-tags span:hover {
    color: var(--c-text);
    border-color: var(--c-accent);
    background: rgba(212, 168, 71, 0.08);
}

/* ============================================================
   WORK
   ============================================================ */
.work-bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 1rem;
}
.work-card {
    grid-column: span 3;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    padding: 2rem 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color 0.4s, transform 0.5s var(--ease), background 0.4s;
    position: relative;
    overflow: hidden;
}
.work-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(212, 168, 71, 0.12), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.work-card:hover {
    border-color: var(--c-line-strong);
    transform: translateY(-4px);
    background: var(--c-surface-2);
}
.work-card:hover::before { opacity: 1; }

.work-card-featured {
    grid-column: span 6;
    background: linear-gradient(135deg, rgba(212, 168, 71, 0.08), rgba(125, 162, 200, 0.04)), var(--c-surface);
    border-color: rgba(212, 168, 71, 0.3);
    min-height: 320px;
}
.work-card-featured .work-title {
    font-size: clamp(2rem, 4vw, 3rem);
}

.work-card-cta {
    grid-column: span 6;
    text-align: center;
    align-items: center;
    background: transparent;
    border-style: dashed;
}
.work-card-cta .work-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.work-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.work-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--c-text-mute);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--c-line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
}
.work-tag-new {
    color: var(--c-accent);
    border-color: var(--c-accent);
    background: rgba(212, 168, 71, 0.1);
}
.work-rating {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--c-text);
    font-weight: 500;
}

.work-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.8rem;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--c-text);
}

.work-desc {
    color: var(--c-text-soft);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    max-width: 56ch;
}

.work-tech {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
}
.work-tech li {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--c-text-soft);
    padding: 0.35rem 0.7rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
}

.work-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--c-accent);
    transition: gap 0.3s var(--ease);
    margin-top: 0.5rem;
    align-self: flex-start;
}
.work-link:hover { gap: 0.85rem; }
.work-card-cta .work-link { align-self: center; }

/* ============================================================
   CERTIFICATES — 3D gold frames
   ============================================================ */
/* Dedicated certificates page — clear the fixed nav */
.cert-page { padding-top: clamp(7rem, 14vw, 11rem); }

.cert-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 0.6rem 1.1rem;
    border-radius: 50px;
    border: 1px solid var(--c-line-strong);
    background: rgba(255, 255, 255, 0.02);
    color: var(--c-text-soft);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    transition: color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.cert-back:hover {
    color: var(--c-text);
    border-color: var(--c-accent);
    transform: translateX(-3px);
}
.cert-back svg { transition: transform 0.3s var(--ease); }
.cert-back:hover svg { transform: translateX(-3px); }

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: clamp(2rem, 4vw, 3rem);
    perspective: 1400px;
}

.cert-card {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    transform-style: preserve-3d;
}

.cert-frame {
    position: relative;
    aspect-ratio: 4 / 3;
    width: 100%;
    border-radius: var(--radius);
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
    animation: certFloat 7s ease-in-out infinite;
    will-change: transform;
    background:
        /* Outer gold frame with metallic gradient */
        linear-gradient(135deg, #f6e9b5 0%, #d4a847 18%, #a8842f 40%, #d4a847 62%, #f6e9b5 82%, #a8842f 100%);
    padding: 14px;
    box-shadow:
        0 30px 60px -20px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(212, 168, 71, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.cert-card:nth-child(even) .cert-frame { animation-delay: -3.5s; }
.cert-card:nth-child(3n) .cert-frame { animation-delay: -1.8s; }

@keyframes certFloat {
    0%, 100% { transform: translateY(0) rotateZ(0); }
    50% { transform: translateY(-6px) rotateZ(0.4deg); }
}

.cert-frame:hover {
    box-shadow:
        0 50px 100px -20px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(212, 168, 71, 0.7),
        0 0 60px -10px rgba(212, 168, 71, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    animation-play-state: paused;
}

/* Inner mat — like a real picture frame */
.cert-frame-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background: #0a1628;
    border-radius: 6px;
    overflow: hidden;
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.8),
        inset 0 4px 16px rgba(0, 0, 0, 0.6);
}

.cert-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease);
    background: #142543;
}
.cert-frame:hover .cert-img { transform: scale(1.04); }

/* Shine sweep across the frame on hover */
.cert-frame-shine {
    position: absolute;
    top: 0; left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(115deg,
        transparent 30%,
        rgba(255, 255, 255, 0.18) 50%,
        transparent 70%);
    transition: left 0.9s var(--ease);
    z-index: 2;
    pointer-events: none;
}
.cert-frame:hover .cert-frame-shine { left: 150%; }

/* Decorative corner brackets — adds the "gold frame" detail */
.cert-frame-corners span {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(212, 168, 71, 0.85);
    z-index: 3;
    pointer-events: none;
}
.cert-frame-corners span:nth-child(1) { top: 6px; left: 6px; border-right: none; border-bottom: none; }
.cert-frame-corners span:nth-child(2) { top: 6px; right: 6px; border-left: none; border-bottom: none; }
.cert-frame-corners span:nth-child(3) { bottom: 6px; left: 6px; border-right: none; border-top: none; }
.cert-frame-corners span:nth-child(4) { bottom: 6px; right: 6px; border-left: none; border-top: none; }

.cert-meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0 0.25rem;
}
.cert-meta h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.35rem;
    line-height: 1.25;
    color: var(--c-text);
    letter-spacing: -0.01em;
}
.cert-meta p {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--c-text-mute);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.cert-meta p span:first-child { color: var(--c-accent); }
.cert-dot { color: var(--c-text-mute); }

.cert-verify {
    margin-top: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--c-text);
    border-bottom: 1px solid var(--c-accent);
    align-self: flex-start;
    padding-bottom: 2px;
    transition: color 0.3s;
}
.cert-verify:hover { color: var(--c-accent); }

.cert-footnote {
    margin-top: 3rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--c-text-mute);
    text-align: center;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    justify-content: center;
}
.cert-footnote code {
    color: var(--c-accent);
    background: rgba(212, 168, 71, 0.08);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.78rem;
    border: 1px solid rgba(212, 168, 71, 0.2);
}
.cert-pin {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--c-accent);
    box-shadow: 0 0 8px var(--c-accent);
}

/* Lightbox */
.cert-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(5, 13, 26, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 9000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
    padding: 4rem 2rem;
    opacity: 0;
    transition: opacity 0.35s var(--ease);
}
.cert-lightbox.open { display: flex; opacity: 1; }

.cert-lightbox-stage {
    max-width: min(1100px, 90vw);
    max-height: 75vh;
    padding: 16px;
    background: linear-gradient(135deg, #f6e9b5 0%, #d4a847 18%, #a8842f 40%, #d4a847 62%, #f6e9b5 82%, #a8842f 100%);
    border-radius: var(--radius);
    box-shadow: 0 60px 120px -30px rgba(0, 0, 0, 0.85), 0 0 80px -10px rgba(212, 168, 71, 0.3);
    animation: certPop 0.5s var(--ease);
}
.cert-lightbox-stage img {
    max-width: 100%;
    max-height: calc(75vh - 32px);
    border-radius: 6px;
    display: block;
    background: #142543;
}
@keyframes certPop {
    from { transform: scale(0.88) rotateY(-10deg); opacity: 0; }
    to { transform: scale(1) rotateY(0); opacity: 1; }
}

.cert-lightbox-meta { text-align: center; max-width: 600px; }
.cert-lightbox-meta h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--c-text);
    font-weight: 400;
    margin-bottom: 0.4rem;
}
.cert-lightbox-meta p {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--c-accent);
}

.cert-lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--c-line-strong);
    color: var(--c-text);
    font-size: 1.6rem;
    line-height: 1;
    display: grid;
    place-items: center;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.cert-lightbox-close:hover {
    background: rgba(212, 168, 71, 0.15);
    border-color: var(--c-accent);
    transform: rotate(90deg);
}

@media (max-width: 560px) {
    .cert-grid { grid-template-columns: 1fr; }
    .cert-frame { padding: 10px; }
    .cert-frame-corners span { width: 14px; height: 14px; }
    .cert-lightbox-close { top: 1rem; right: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .cert-frame, .cert-frame-shine { animation: none !important; transition: none !important; }
}

/* ============================================================
   EXPERIENCE / TIMELINE
   ============================================================ */
.timeline {
    list-style: none;
    position: relative;
    padding-left: 0;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: clamp(11px, 11vw, 200px);
    width: 1px;
    background: linear-gradient(180deg, var(--c-accent), transparent);
}
.timeline-item {
    display: grid;
    grid-template-columns: clamp(160px, 22vw, 220px) 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    padding: 2.5rem 0;
    position: relative;
}
.timeline-item + .timeline-item { border-top: 1px solid var(--c-line); }
.timeline-dot {
    position: absolute;
    top: 3rem;
    left: clamp(6px, calc(11vw - 5px), 195px);
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--c-accent);
    box-shadow: 0 0 0 4px var(--c-bg), 0 0 16px var(--c-accent);
    z-index: 2;
}
.timeline-meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--c-accent);
    letter-spacing: 0.06em;
}
.timeline-role {
    font-size: 0.85rem;
    color: var(--c-text-mute);
}
.timeline-body h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    margin-bottom: 1rem;
    color: var(--c-text);
}
.timeline-body ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.timeline-body li {
    color: var(--c-text-soft);
    padding-left: 1.3rem;
    position: relative;
    line-height: 1.6;
    font-size: 0.96rem;
}
.timeline-body li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--c-accent);
    font-family: var(--font-mono);
}

/* ============================================================
   CONTACT
   ============================================================ */
.section-contact { padding-top: clamp(4rem, 8vw, 6rem); }
.contact-title { max-width: 12ch; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
    margin-bottom: 5rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.contact-method {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem 1.5rem;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.contact-method:hover {
    border-color: var(--c-line-strong);
    background: var(--c-surface-2);
    transform: translateX(4px);
}
.contact-method.contact-method-static { cursor: default; }
.contact-method.contact-method-static:hover { transform: none; }
.cm-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--c-text-mute);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    min-width: 4.5rem;
}
.cm-value {
    font-size: 1rem;
    color: var(--c-text);
    font-weight: 500;
    overflow-wrap: anywhere;
}
.contact-method svg { color: var(--c-accent); transition: transform 0.3s var(--ease); }
.contact-method:hover svg { transform: translate(3px, -3px); }

.contact-form {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.form-field { display: flex; flex-direction: column; gap: 0.45rem; }
.form-field label {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--c-text-mute);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.form-field input,
.form-field textarea {
    background: var(--c-bg);
    border: 1px solid var(--c-line-strong);
    border-radius: var(--radius-sm);
    color: var(--c-text);
    font-family: inherit;
    font-size: 0.98rem;
    padding: 0.85rem 1rem;
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
    resize: vertical;
}
.form-field textarea { min-height: 130px; }
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--c-accent);
    box-shadow: 0 0 0 4px rgba(212, 168, 71, 0.12);
    background: var(--c-bg-2);
}

/* Socials */
.socials {
    border-top: 1px solid var(--c-line);
    padding-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.socials-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--c-text-mute);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.socials-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
}
.socials-list a {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: var(--c-text);
    transition: color 0.3s, transform 0.3s var(--ease);
    will-change: transform;
}
.socials-list a:hover { color: var(--c-accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    border-top: 1px solid var(--c-line);
    padding: 2.5rem var(--gutter);
    background: rgba(10, 22, 40, 0.5);
}
.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
}
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.92rem;
    color: var(--c-text);
}
.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--c-text-mute);
}
.footer-top {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--c-text);
    border: 1px solid var(--c-line-strong);
    padding: 0.55rem 1rem;
    border-radius: 50px;
    transition: border-color 0.3s, background 0.3s;
}
.footer-top:hover { border-color: var(--c-accent); background: rgba(212, 168, 71, 0.08); }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .marquee-track,
    .badge-dot,
    .tag-dot,
    .eyebrow-dot,
    .status-dot,
    .portrait-card,
    .scroll-line::after { animation: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
    .skills-bento { grid-template-columns: repeat(2, 1fr); }
    .skill-cell-lg { grid-column: span 2; }
    .skill-cell-soft { grid-column: span 2; }
    .work-bento { grid-template-columns: repeat(4, 1fr); }
    .work-card { grid-column: span 2; }
    .work-card-featured, .work-card-cta { grid-column: span 4; }
}

@media (max-width: 900px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(85vw, 360px);
        background: var(--c-bg-2);
        border-left: 1px solid var(--c-line-strong);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 1.5rem;
        padding: 2rem;
        transform: translateX(100%);
        transition: transform 0.4s var(--ease);
        z-index: 99;
    }
    .nav-menu.open { transform: translateX(0); }
    .nav-link { font-size: 1.3rem; font-family: var(--font-display); }
    .nav-link .nav-num { font-size: 0.8rem; }
    .nav-cta { display: none; }
    .nav-toggle { display: flex; z-index: 101; }

    .hero {
        padding-top: 5.5rem;
        min-height: auto;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-side {
        align-items: flex-start;
        justify-self: stretch;
        max-width: 100%;
        min-height: auto;
    }
    .hero-cards { justify-content: flex-start; }
    .hero-scroll { display: none; }

    /* Hero video — keep it centered & readable on tablet/mobile */
    .hero-video-overlay {
        background:
            linear-gradient(180deg,
                rgba(10, 22, 40, 0.7) 0%,
                rgba(10, 22, 40, 0.45) 35%,
                rgba(10, 22, 40, 0.55) 70%,
                rgba(10, 22, 40, 0.92) 100%);
    }
    .site-bg-overlay {
        background:
            linear-gradient(180deg,
                rgba(10, 22, 40, 0.7) 0%,
                rgba(10, 22, 40, 0.85) 30%,
                rgba(10, 22, 40, 0.92) 60%,
                rgba(10, 22, 40, 0.95) 100%);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .section-header {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .section-num {
        grid-row: 1;
        padding-top: 0;
        border-top: none;
        padding-left: 0;
        border-left: 1px solid var(--c-accent);
        padding-left: 0.6rem;
        min-width: auto;
        width: fit-content;
    }
    .section-kicker { grid-column: 1; }

    .timeline::before { left: 5px; }
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding-left: 2rem;
    }
    .timeline-dot { left: 0; top: 2.85rem; }
    .timeline-meta { flex-direction: row; align-items: center; gap: 1rem; flex-wrap: wrap; }
}

@media (max-width: 560px) {
    .work-bento { grid-template-columns: 1fr; }
    .work-card { grid-column: span 1; }
    .work-card-featured, .work-card-cta { grid-column: span 1; }
    .skills-bento { grid-template-columns: 1fr; }
    .skill-cell-lg, .skill-cell-soft { grid-column: span 1; }
    .hero-meta {
        flex-direction: column;
        gap: 1.5rem;
    }
    .hero-meta > div { flex-direction: row; align-items: baseline; gap: 0.5rem; }
    .hero-meta p { margin-top: 0; }
    .hero-cta .btn { flex: 1; justify-content: center; }
    .portrait-card { padding: 0.6rem 0.85rem; }
    .portrait-card-1 { left: 0.5rem; top: 1rem; }
    .portrait-card-2 { right: 0.5rem; bottom: 1rem; }
    .socials-list { gap: 1.2rem; }
    .timeline-item { padding-left: 1.5rem; }
    .contact-method { padding: 1.1rem 1.2rem; grid-template-columns: 1fr auto; }
    .contact-method .cm-label { grid-column: 1; }
    .contact-method .cm-value { grid-column: 1; }
    .contact-method svg { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}

/* ============================================================
   BACKGROUND VIDEO SOUND TOGGLE
   ============================================================ */
.bg-sound-toggle {
    position: fixed;
    left: clamp(1.1rem, 3vw, 1.75rem);
    bottom: clamp(1.1rem, 3vw, 1.75rem);
    z-index: 90;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--c-line-strong);
    background: rgba(10, 22, 40, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--c-text);
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.7);
    transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.bg-sound-toggle:hover {
    border-color: var(--c-accent);
    background: rgba(212, 168, 71, 0.12);
    transform: translateY(-2px);
}
.bg-sound-toggle svg { grid-area: 1 / 1; }
.bg-sound-toggle .ico-off { display: none; color: var(--c-text-soft); }
.bg-sound-toggle.is-muted .ico-on { display: none; }
.bg-sound-toggle.is-muted .ico-off { display: block; }

/* ============================================================
   THREE.JS 3D AMBIENT CANVAS
   ============================================================ */
.bg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.6s var(--ease);
}
.bg-canvas.is-on { opacity: 1; }

/* Give the hero genuine 3D depth for tilt/parallax interactions */
.hero-grid { perspective: 1400px; }
.hero-side { transform-style: preserve-3d; }

