/* ============================================================
   TALHA RASHID — "THE TRAINING RUN"
   Thermal identity: inferno colormap on deep aubergine black.
   Type: Clash Display (display) / Satoshi (body) / JetBrains Mono (data)
   ============================================================ */

:root {
    --bg: #0b0510;
    --bg-2: #140a1e;
    --surface: rgba(242, 235, 247, 0.03);
    --line: rgba(242, 235, 247, 0.1);
    --text: #f2ebf7;
    --muted: #9d8fae;
    --heat-1: #4a0c6b;
    --heat-2: #a52c60;
    --heat-3: #ed6925;
    --heat-4: #f7d03c;
    --ramp: linear-gradient(90deg, #4a0c6b, #a52c60, #ed6925, #f7d03c);
    --font-display: 'Clash Display', 'Arial Black', sans-serif;
    --font-body: 'Satoshi', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
    --nav-h: 76px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: auto; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Grain overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
    opacity: 0.05;
    contain: strict;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--heat-3); color: var(--bg); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

:focus-visible { outline: 2px solid var(--heat-3); outline-offset: 3px; border-radius: 2px; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a1a3d; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--heat-2); }

/* ============ PRELOADER ============ */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 400;
    background: var(--bg);
    display: none;
    align-items: center;
    justify-content: center;
}
.js .preloader { display: flex; }
.preloader-inner { width: min(480px, 84vw); }
.boot-log {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 2rem;
}
.boot-log p { opacity: 0; }
.boot-log .boot-loss { color: var(--heat-3); }
.boot-progress { display: flex; align-items: center; gap: 1rem; }
.boot-pct {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text);
    min-width: 3.5ch;
}
.boot-bar {
    flex: 1;
    height: 2px;
    background: var(--line);
    overflow: hidden;
    display: block;
}
.boot-bar-fill {
    display: block;
    height: 100%;
    width: 100%;
    background: var(--ramp);
    transform: scaleX(0);
    transform-origin: left;
}

/* ============ CURSOR ============ */
.cursor-dot, .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    z-index: 300;
    pointer-events: none;
    border-radius: 50%;
    opacity: 0;
}
.cursor-dot {
    width: 6px; height: 6px;
    background: var(--heat-4);
    transform: translate(-50%, -50%);
}
.cursor-ring {
    width: 36px; height: 36px;
    border: 1px solid rgba(242, 235, 247, 0.4);
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
                background-color 0.3s, border-color 0.3s;
}
.cursor-ring.is-hover {
    width: 64px; height: 64px;
    border-color: var(--heat-3);
    background: rgba(237, 105, 37, 0.08);
}
.cursor-ring.is-label {
    width: 76px; height: 76px;
    background: var(--heat-3);
    border-color: var(--heat-3);
}
.cursor-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--bg);
    opacity: 0;
    transition: opacity 0.2s;
}
.cursor-ring.is-label .cursor-label { opacity: 1; }
@media (pointer: coarse) {
    .cursor-dot, .cursor-ring { display: none; }
}

/* ============ THERMAL PROGRESS BAR ============ */
.thermal-progress {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 3px;
    z-index: 250;
    background: var(--ramp);
    transform: scaleX(0);
    transform-origin: left;
}

/* ============ HUD ============ */
.hud {
    position: fixed;
    z-index: 120;
    font-family: var(--font-mono);
    font-size: 0.68rem;
}
.js .hud-metrics, .js .hud-epochs { opacity: 0; }
.hud-metrics {
    left: 1.5rem;
    bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.85rem 1rem;
    background: rgba(11, 5, 16, 0.9);
    border: 1px solid var(--line);
    border-radius: 10px;
}
.hud-row { display: flex; gap: 1.25rem; justify-content: space-between; }
.hud-key { color: var(--muted); }
.hud-val { color: var(--heat-4); font-weight: 500; }
.hud-ok { color: #7ddb8a; }

.hud-epochs {
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.epoch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    transition: color 0.3s;
}
.epoch-idx { letter-spacing: 0.05em; }
.epoch-name {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    letter-spacing: 0.1em;
    transition: max-width 0.45s var(--ease-out), opacity 0.3s;
    opacity: 0;
}
.epoch:hover .epoch-name, .epoch.is-active .epoch-name { max-width: 90px; opacity: 1; }
.epoch.is-active { color: var(--heat-4); }
.epoch.is-active .epoch-idx { text-shadow: 0 0 14px rgba(247, 208, 60, 0.5); }

@media (max-width: 1023px) {
    .hud-metrics, .hud-epochs { display: none; }
}

/* ============ NAV ============ */
.nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: var(--nav-h);
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
    background: linear-gradient(rgba(11, 5, 16, 0.94), rgba(11, 5, 16, 0));
    transition: transform 0.5s var(--ease-out);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
}
.logo-dot {
    color: var(--heat-3);
    font-size: 0.55em;
    vertical-align: 0.35em;
    margin-left: 1px;
    animation: logoPulse 2.4s ease-in-out infinite;
}
@keyframes logoPulse {
    0%, 100% { opacity: 1; text-shadow: 0 0 8px rgba(237, 105, 37, 0.8); }
    50% { opacity: 0.45; text-shadow: none; }
}
.nav-links { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); }
.nav-link {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.3s;
}
.nav-link:hover { color: var(--heat-4); }
.nav-gh {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 0.55rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: border-color 0.3s, background-color 0.3s;
}
.nav-gh:hover { border-color: var(--heat-3); background: rgba(237, 105, 37, 0.08); }
@media (max-width: 640px) {
    .nav-links { display: none; }
}

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}
.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 1.25rem;
}
.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0.55rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(11, 5, 16, 0.88);
    margin-bottom: clamp(1.5rem, 4vh, 3rem);
}
.pulse-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--heat-4);
    box-shadow: 0 0 0 0 rgba(247, 208, 60, 0.6);
    animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(247, 208, 60, 0.55); }
    70% { box-shadow: 0 0 0 10px rgba(247, 208, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(247, 208, 60, 0); }
}
.hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(3.4rem, 14vw, 11.5rem);
    line-height: 0.92;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-line {
    display: block;
    overflow: hidden;
    padding: 0.1em 0.12em;
    margin: -0.1em -0.12em;
}
.hero-line .ch { display: inline-block; will-change: transform; }
.hero-line--outline {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(242, 235, 247, 0.85);
}
.hero-sub {
    font-family: var(--font-mono);
    font-size: clamp(0.78rem, 1.6vw, 0.95rem);
    color: var(--muted);
    max-width: 620px;
    margin: clamp(1.5rem, 3.5vh, 2.5rem) auto 0;
    min-height: 2.6em;
}
.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
    margin-top: clamp(1.5rem, 3.5vh, 2.5rem);
    font-size: 0.85rem;
    color: var(--muted);
}
.hero-meta-item b { color: var(--heat-4); font-family: var(--font-mono); font-weight: 600; }
.hero-meta-sep { width: 1px; height: 14px; background: var(--line); }
.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
}
.hint-line {
    width: 1px;
    height: 44px;
    background: linear-gradient(var(--heat-3), transparent);
    animation: hintDrop 1.8s var(--ease-out) infinite;
    transform-origin: top;
}
@keyframes hintDrop {
    0% { transform: scaleY(0); }
    45% { transform: scaleY(1); }
    100% { transform: scaleY(1); opacity: 0; }
}
/* Elements staged for intro animation */
.js .hero-chip, .js .hero-sub, .js .hero-meta, .js .hero-scroll-hint { opacity: 0; }

/* ============ MARQUEE ============ */
.marquee {
    overflow: hidden;
    padding: 1.4rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg-2);
}
.marquee-inner {
    display: flex;
    width: max-content;
    will-change: transform;
}
.marquee-chunk {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1rem, 2.4vw, 1.5rem);
    letter-spacing: 0.06em;
    white-space: nowrap;
    color: var(--muted);
    padding-right: 0.5em;
}
.marquee-chunk i {
    font-style: normal;
    color: var(--heat-3);
    font-size: 0.55em;
    vertical-align: 0.3em;
}

/* ============ SHARED SECTION BITS ============ */
.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--heat-3);
    margin-bottom: 1.1rem;
}
.section-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
}
.rl-mask { display: block; overflow: hidden; }
.rl { display: block; }
.js .rl { transform: translateY(115%); }
.js .no-anim .rl, .no-anim .rl { transform: none; }

/* ============ WORK ============ */
.work { background: var(--bg); }
.work-track {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: clamp(4rem, 10vh, 7rem) clamp(1.25rem, 5vw, 4rem);
}
.work-intro { max-width: 560px; }
.work-note {
    color: var(--muted);
    font-size: 0.95rem;
    margin-top: 1.5rem;
    max-width: 400px;
}
.work-drag-hint {
    display: none;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--heat-3);
    margin-top: 2.5rem;
    animation: dragNudge 2s ease-in-out infinite;
}
@keyframes dragNudge {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

.run-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    min-height: 420px;
    overflow: hidden;
    transition: border-color 0.4s, transform 0.4s var(--ease-out);
}
.run-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(560px circle at 85% -10%, color-mix(in srgb, var(--heat) 22%, transparent), transparent 65%);
    opacity: 0.8;
    transition: opacity 0.4s;
    pointer-events: none;
}
.run-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--heat), transparent 70%);
}
.run-card:hover { border-color: color-mix(in srgb, var(--heat) 45%, transparent); transform: translateY(-6px); }
.run-card:hover::before { opacity: 1; }
.ghost-num {
    position: absolute;
    bottom: -2.2rem;
    right: -0.75rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(8rem, 14vw, 13rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px color-mix(in srgb, var(--heat) 30%, transparent);
    pointer-events: none;
    user-select: none;
}
.run-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
}
.run-idx { color: var(--muted); }
.run-cat {
    color: var(--heat);
    border: 1px solid color-mix(in srgb, var(--heat) 40%, transparent);
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
}
.run-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
    margin-bottom: 0.9rem;
}
.run-desc {
    color: var(--muted);
    font-size: 0.95rem;
    max-width: 420px;
}
.run-foot {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.run-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.run-tags span {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--muted);
    border: 1px solid var(--line);
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
}
.run-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text);
    padding: 0.65rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.run-link .arrow { transition: transform 0.3s var(--ease-out); }
.run-link:hover { background: var(--heat); border-color: var(--heat); color: var(--bg); }
.run-link:hover .arrow { transform: translateX(4px); }

.work-outro { display: flex; align-items: center; justify-content: center; padding: 2rem 0; }
.archive-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}
.archive-big {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(242, 235, 247, 0.7);
    transition: color 0.4s;
}
.archive-link:hover .archive-big { color: var(--heat-3); -webkit-text-stroke-color: var(--heat-3); }
.archive-sub {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--muted);
}

/* Desktop: horizontal pinned gallery.
   Only when motion is allowed AND GSAP loaded (html:not(.no-anim)) —
   otherwise cards stay in the vertical fallback flow. */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
    html:not(.no-anim) .work { overflow: hidden; }
    html:not(.no-anim) .work-track {
        flex-direction: row;
        align-items: center;
        width: max-content;
        height: 100vh;
        gap: clamp(2rem, 4vw, 4rem);
        padding: 0 8vw;
        will-change: transform;
    }
    html:not(.no-anim) .work-intro { width: 34vw; flex-shrink: 0; }
    html:not(.no-anim) .work-drag-hint { display: block; }
    html:not(.no-anim) .run-card {
        width: clamp(430px, 42vw, 560px);
        height: min(66vh, 620px);
        flex-shrink: 0;
    }
    html:not(.no-anim) .work-outro { width: 40vw; flex-shrink: 0; padding: 0; }
}

/* ============ STACK ============ */
.stack {
    padding: clamp(5rem, 12vh, 9rem) clamp(1.25rem, 5vw, 4rem);
    background: var(--bg);
}
.stack-head { margin-bottom: clamp(3rem, 8vh, 5rem); }
.stack-cards {
    display: flex;
    flex-direction: column;
    /* the gap is the scroll travel each card gets before the next one lands on it */
    gap: clamp(6rem, 30vh, 20rem);
    max-width: 980px;
    margin: 0 auto;
}
.stack-card {
    position: sticky;
    top: calc(var(--nav-h) + 1.5rem + var(--i) * 3.25rem);
}
.stack-card-inner {
    display: flex;
    align-items: flex-start;
    gap: clamp(1.25rem, 4vw, 3rem);
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-left: 4px solid var(--heat);
    border-radius: 18px;
    padding: clamp(1.5rem, 4vw, 2.75rem);
    box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.5);
    will-change: transform;
}
.stack-idx {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1;
    color: var(--heat);
    flex-shrink: 0;
}
.stack-main { flex: 1; }
.stack-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: 0.6rem;
}
.stack-desc { color: var(--muted); font-size: 0.95rem; max-width: 480px; }
.stack-tags {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.45rem;
    flex-shrink: 0;
}
.stack-tags span {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--muted);
    border: 1px solid var(--line);
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    white-space: nowrap;
}
@media (max-width: 640px) {
    .stack-card-inner { flex-wrap: wrap; }
    .stack-tags { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
}
/* Spacer so the last sticky card has room to settle */
.stack-cards::after { content: ''; height: clamp(4rem, 18vh, 10rem); }

/* ============ ABOUT ============ */
.about {
    padding: clamp(6rem, 16vh, 11rem) clamp(1.25rem, 5vw, 4rem);
    max-width: 1100px;
    margin: 0 auto;
}
.about-manifesto {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.6rem, 4vw, 3.1rem);
    line-height: 1.28;
    letter-spacing: -0.01em;
    max-width: 22ch;
}
.about-manifesto .w { display: inline-block; }
.about-stats {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(2rem, 6vw, 5rem);
    margin-top: clamp(3rem, 8vh, 5rem);
    padding-top: 2.5rem;
    border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: 0.3rem; }
.stat-num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    line-height: 1;
    background: var(--ramp);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ============ CONTACT ============ */
.contact {
    padding: clamp(6rem, 18vh, 12rem) clamp(1.25rem, 5vw, 4rem) clamp(5rem, 12vh, 8rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.contact::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -40%;
    width: 90vw;
    height: 80vh;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center bottom, rgba(237, 105, 37, 0.14), rgba(165, 44, 96, 0.07) 40%, transparent 70%);
    pointer-events: none;
}
.contact .eyebrow { text-align: center; }
.contact-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.6rem, 9vw, 8rem);
    line-height: 0.98;
    letter-spacing: -0.025em;
    text-transform: uppercase;
    margin-bottom: clamp(2.5rem, 6vh, 4rem);
}
.contact-title .rl-mask { text-align: center; }
.contact-outline {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(242, 235, 247, 0.85);
}
.contact-actions {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.mega-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.1rem, 2.6vw, 1.6rem);
    letter-spacing: 0.02em;
    padding: 1.15em 2.2em;
    border-radius: 999px;
    background: var(--text);
    color: var(--bg);
    transition: background-color 0.35s, box-shadow 0.35s;
}
.mega-cta .arrow { transition: transform 0.35s var(--ease-out); }
.mega-cta:hover {
    background: var(--heat-3);
    box-shadow: 0 0 60px rgba(237, 105, 37, 0.45);
}
.mega-cta:hover .arrow { transform: translate(3px, -3px); }
.email-chip {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    color: var(--muted);
    padding: 0.7rem 1.4rem;
    border: 1px dashed var(--line);
    border-radius: 999px;
    transition: color 0.3s, border-color 0.3s;
}
.email-chip:hover { color: var(--heat-4); border-color: var(--heat-4); }
.email-chip.is-copied { color: var(--heat-4); border-color: var(--heat-4); border-style: solid; }

/* ============ FOOTER ============ */
.footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.75rem clamp(1.25rem, 5vw, 4rem);
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    color: var(--muted);
}
.footer-right { display: flex; flex-wrap: wrap; align-items: center; gap: 1.75rem; }
.footer-right a { transition: color 0.3s; }
.footer-right a:hover { color: var(--heat-4); }
.footer-clock { color: var(--heat-3); }

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
    .js .preloader { display: none; }
    .js .hero-chip, .js .hero-sub, .js .hero-meta, .js .hero-scroll-hint,
    .js .hud-metrics, .js .hud-epochs { opacity: 1; }
    .js .rl { transform: none; }
    .logo-dot, .pulse-dot, .hint-line, .work-drag-hint { animation: none; }
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* If GSAP failed to load, script.js adds .no-anim — show everything */
.no-anim .preloader { display: none !important; }
.no-anim .hero-chip, .no-anim .hero-sub, .no-anim .hero-meta,
.no-anim .hero-scroll-hint, .no-anim .hud-metrics, .no-anim .hud-epochs { opacity: 1 !important; }
