/* ═══════════════════════════════════════════
   RESET & BASE
════════════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

:root {
    --dark: #0C0C0C;
    --darker: #080808;
    --surface: #131313;
    --light: #EDEDED;
    --muted: #555;
    --muted-lt: #888;
    --gold: #EDEDED;
    --gold-dim: rgba(237, 237, 237, 0.08);
    --gold-glow: rgba(237, 237, 237, 0.06);
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Inter', system-ui, sans-serif;
    --display: 'Space Grotesk', sans-serif;
    --ease: cubic-bezier(.16, 1, .3, 1);

    /* SVG theme variables – dark defaults */
    --svg-bg: rgba(10,10,10,.85);
    --svg-bg-high: rgba(10,10,10,.9);
    --svg-bg-60: rgba(10,10,10,.6);
    --svg-tooltip-bg: rgba(15,15,15,.95);
    --svg-surface: rgba(237,237,237,.025);
    --svg-surface-02: rgba(237,237,237,.02);
    --svg-surface-04: rgba(237,237,237,.04);
    --svg-surface-07: rgba(237,237,237,.07);
    --svg-surface-08: rgba(237,237,237,.08);
    --svg-surface-10: rgba(237,237,237,.1);
    --svg-border: rgba(237,237,237,.06);
    --svg-border-04: rgba(237,237,237,.04);
    --svg-border-05: rgba(237,237,237,.05);
    --svg-border-07: rgba(237,237,237,.07);
    --svg-border-08: rgba(237,237,237,.08);
    --svg-border-12: rgba(237,237,237,.12);
    --svg-card-bg: rgba(237,237,237,.04);
    --svg-card-border: rgba(237,237,237,.07);
    --svg-text-primary: #EDEDED;
    --svg-text-primary-85: rgba(237,237,237,.85);
    --svg-text-secondary: rgba(237,237,237,.7);
    --svg-text-secondary-60: rgba(237,237,237,.6);
    --svg-text-secondary-55: rgba(237,237,237,.55);
    --svg-text-muted: rgba(237,237,237,.5);
    --svg-text-muted-45: rgba(237,237,237,.45);
    --svg-text-muted-40: rgba(237,237,237,.4);
    --svg-text-muted-35: rgba(237,237,237,.35);
    --svg-text-faint: rgba(237,237,237,.3);
    --svg-text-faint-25: rgba(237,237,237,.25);
    --svg-text-faint-20: rgba(237,237,237,.2);
    --svg-text-faint-15: rgba(237,237,237,.15);
    --svg-text-faint-12: rgba(237,237,237,.12);
    --svg-text-faint-10: rgba(237,237,237,.1);
    --svg-button-bg: rgba(237,237,237,.9);
    --svg-button-text: rgba(10,10,10,.9);
    --svg-accent: #EDEDED;
    --svg-grad-stop: #EDEDED;
}

html {
    overflow-x: hidden
}

body {
    background: var(--dark);
    color: var(--light);
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 300;
    overflow-x: hidden;
    cursor: default;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html.lenis,
html.lenis body {
    height: auto
}
.lenis.lenis-smooth {
    scroll-behavior: auto !important
}
.lenis.lenis-stopped {
    overflow: hidden
}

::-webkit-scrollbar {
    width: 2px
}
::-webkit-scrollbar-track {
    background: var(--dark)
}
::-webkit-scrollbar-thumb {
    background: rgba(237, 237, 237, .2);
    border-radius: 2px
}

/* ── CURSOR ── */
#cur {
    position: fixed;
    width: 4px;
    height: 4px;
    background: var(--light);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width .3s var(--ease),
        height .3s var(--ease),
        opacity .4s ease;
    will-change: transform;
    mix-blend-mode: difference;
}
#cur-ring {
    position: fixed;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(237, 237, 237, .18);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width .5s var(--ease),
        height .5s var(--ease),
        border-color .5s,
        opacity .4s ease;
    will-change: transform;
}
body:has(a:hover) #cur,
body:has(button:hover) #cur,
body.cursor-active #cur {
    width: 3px;
    height: 3px;
    background: #fff;
}
body:has(a:hover) #cur-ring,
body:has(button:hover) #cur-ring,
body.cursor-active #cur-ring {
    width: 52px;
    height: 52px;
    border-color: rgba(237, 237, 237, .3);
    background: rgba(237, 237, 237, .02);
}

/* ── PROGRESS BAR ── */
#progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 1px;
    width: 100%;
    background: var(--light);
    z-index: 1001;
    transform-origin: left center;
    transform: scJohann(0);
}

/* ── PRELOADER ── */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--darker);
    z-index: 8000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity .9s cubic-bezier(.4, 0, .2, 1),
        visibility .9s;
    overflow: hidden;
}
#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none
}
#preloader::before {
    content: '';
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(237, 237, 237, .025), transparent 65%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbPulse 6s ease-in-out infinite;
}
.pre-num {
    font-family: var(--display);
    font-size: clamp(5rem, 18vw, 14rem);
    font-weight: 200;
    color: var(--light);
    line-height: 1;
    letter-spacing: -.04em;
    font-variant-numeric: tabular-nums;
    position: relative;
    z-index: 1;
}
.pre-bar-wrap {
    width: 120px;
    height: 1px;
    background: rgba(237, 237, 237, .08);
    margin-top: 3rem;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.pre-bar {
    height: 100%;
    background: rgba(237, 237, 237, .6);
    width: 0;
    transition: width .05s linear;
}
.pre-label {
    font-size: .6rem;
    letter-spacing: .45em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 1.8rem;
    position: relative;
    z-index: 1;
    font-weight: 400;
    overflow: hidden;
}
.pre-label span {
    display: inline-block
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.8rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity .8s var(--ease),
        transform .8s var(--ease),
        background .6s,
        padding .6s;
    background: transparent;
    backdrop-filter: blur(0px);
}
nav.visible {
    opacity: 1;
    transform: translateY(0)
}
nav.scrolled {
    background: rgba(12, 12, 12, .92);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(237, 237, 237, .05);
    padding: 1.2rem 3rem;
}
.nav-logo {
    font-family: var(--display);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .12em;
    color: var(--light);
    text-decoration: none;
    text-transform: uppercase;
    will-change: transform;
}
.nav-logo span {
    color: var(--light);
    opacity: .45
}
.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none
}
.nav-links a {
    font-size: .65rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color .3s;
    position: relative;
    font-weight: 400;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--light);
    transform: scJohann(0);
    transform-origin: right;
    transition: transform .4s var(--ease);
}
.nav-links a:hover {
    color: var(--light)
}
.nav-links a:hover::after {
    transform: scJohann(1);
    transform-origin: left
}
.nav-avail {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .65rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(237, 237, 237, .55);
    text-decoration: none;
    font-weight: 500;
    transition: gap .3s,
        color .3s;
    will-change: transform;
}
.nav-avail:hover {
    gap: 1rem;
    color: var(--light)
}
.nav-avail-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--light);
    animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1)
    }
    50% {
        opacity: .25;
        transform: scale(.65)
    }
}

/* ═══════════════════════════════════════════
   HERO
════════════════════════════════════════════ */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
}
.hero-inner {
    position: absolute;
    inset: 0;
    overflow: hidden
}

.h-bg {
    position: absolute;
    inset: 0;
    background: #0C0C0C;
}
.h-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(237, 237, 237, .028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(237, 237, 237, .028) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    opacity: 1;
    will-change: transform;
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 15%, transparent 72%);
    mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 15%, transparent 72%);
}
.h-orb {
    position: absolute;
    width: 70vw;
    height: 70vw;
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(237, 237, 237, .022) 0%, transparent 68%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: orbPulse 12s ease-in-out infinite;
}
@keyframes orbPulse {
    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: .7
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 1
    }
}
.h-mono {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--serif);
    font-size: clamp(50vw, 65vw, 80vw);
    font-weight: 300;
    color: transparent;
    -webkit-text-stroke: 1px rgba(237, 237, 237, .03);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    will-change: transform, opacity;
}
.h-first-layer,
.h-last-layer {
    position: absolute;
    width: 100%;
    text-align: center;
    left: 0;
    will-change: transform, opacity;
}
.h-first-layer {
    top: calc(50% - 1em);
    transform: translateY(-50%)
}
.h-last-layer {
    top: calc(50% + .08em);
    transform: translateY(-50%)
}
.h-first {
    font-family: var(--display);
    font-size: clamp(5rem, 12vw, 14rem);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: .88;
    display: inline-block;
    color: var(--light);
    will-change: transform;
}
.h-last {
    font-family: var(--serif);
    font-size: clamp(5rem, 12vw, 14rem);
    font-weight: 300;
    letter-spacing: -.03em;
    line-height: .88;
    display: inline-block;
    color: rgba(237, 237, 237, 0.28);
    will-change: transform;
}
.h-center-layer {
    position: absolute;
    width: 100%;
    top: 53%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    will-change: opacity, transform;
    opacity: 0;
}
.h-role {
    font-size: .6rem;
    letter-spacing: .5em;
    text-transform: uppercase;
    color: rgba(237, 237, 237, .4);
    margin-bottom: 1.2rem;
    font-weight: 500;
}
.h-tagline {
    font-family: var(--serif);
    font-size: clamp(1rem, 2.2vw, 1.55rem);
    font-style: italic;
    font-weight: 300;
    color: rgba(237, 237, 237, .35);
    max-width: 40ch;
    margin: 0 auto;
    line-height: 1.8;
}
.h-tagline em {
    color: rgba(237, 237, 237, .65);
    font-style: italic
}
.h-scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    will-change: opacity;
}
.h-scroll-text {
    font-size: .58rem;
    letter-spacing: .4em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 400;
}
.h-scroll-line {
    width: 1px;
    height: 44px;
    background: linear-gradient(to bottom, rgba(237, 237, 237, .4), transparent);
    animation: scrollDrop 2.4s ease-in-out infinite;
}
@keyframes scrollDrop {
    0% {
        transform: scaleY(0);
        transform-origin: top;
        opacity: 1
    }
    50% {
        transform: scaleY(1);
        transform-origin: top;
        opacity: 1
    }
    100% {
        transform: scaleY(1);
        transform-origin: top;
        opacity: 0
    }
}
.h-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    opacity: .12;
    will-change: transform;
}
.h-corner::before,
.h-corner::after {
    content: '';
    position: absolute;
    background: var(--light);
}
.h-corner::before {
    width: 100%;
    height: 1px;
    top: 0;
    left: 0
}
.h-corner::after {
    width: 1px;
    height: 100%;
    top: 0;
    left: 0
}
.h-corner-tl {
    top: 2.5rem;
    left: 2.5rem
}
.h-corner-tr {
    top: 2.5rem;
    right: 2.5rem;
    transform: scJohann(-1)
}
.h-corner-bl {
    bottom: 2.5rem;
    left: 2.5rem;
    transform: scaleY(-1)
}
.h-corner-br {
    bottom: 2.5rem;
    right: 2.5rem;
    transform: scale(-1)
}

/* ── SECTION BASE ── */
.section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--dark);
    z-index: 2;
}
.section-inner {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 3rem;
}
.section-number {
    font-family: var(--display);
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 700;
    color: rgba(237, 237, 237, .04);
    position: absolute;
    right: 2rem;
    top: -2rem;
    line-height: 1;
    letter-spacing: -.04em;
    pointer-events: none;
    will-change: transform;
}
.label {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: .62rem;
    letter-spacing: .38em;
    text-transform: uppercase;
    color: rgba(237, 237, 237, .38);
    margin-bottom: 2.5rem;
    font-weight: 500;
}
.label::before {
    content: '';
    width: 20px;
    height: 1px;
    background: rgba(237, 237, 237, .25);
    flex-shrink: 0;
    transform-origin: left;
}

/* ── PHILOSOPHY ── */
#philosophy .section-inner {
    padding-top: 10rem
}
.phil-glow {
    position: absolute;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(237, 237, 237, .015), transparent 65%);
    top: 10%;
    left: -10%;
    pointer-events: none;
    will-change: transform;
    filter: blur(40px);
}
.philosophy-statement {
    font-family: var(--serif);
    font-size: clamp(2.8rem, 6vw, 6rem);
    font-weight: 300;
    line-height: 1.12;
    letter-spacing: -.02em;
    position: relative;
}
.philosophy-statement .line {
    display: block;
    overflow: hidden;
}
.philosophy-statement .line span {
    display: block;
    will-change: transform, filter;
}
.philosophy-statement em {
    font-style: italic;
    color: rgba(237, 237, 237, .28);
}
.philosophy-aside {
    margin-top: 5rem;
    padding-left: 2.5rem;
    border-left: 1px solid rgba(237, 237, 237, .1);
    max-width: 44ch;
}
.philosophy-aside p {
    font-size: .95rem;
    line-height: 2.1;
    color: var(--muted-lt);
    font-weight: 300;
}

/* ═══════════════════════════════════════════
   HORIZONTAL WORK SECTION — GSAP PIN + SCRUB
   [LOCKED — Portfolio section, do not modify]
════════════════════════════════════════════ */
.work-pin {
    position: relative;
    background: var(--dark);
    border-top: 1px solid rgba(237, 237, 237, .05);
    z-index: 2;
}
.work-viewport {
    height: 100vh;
    width: 100%;
    overflow: hidden;
    position: relative;
}
.work-track {
    display: flex;
    height: 100vh;
    width: max-content;
    will-change: transform;
}
.work-track .panel {
    flex: 0 0 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

/* WORK INTRO HEADING (first panel overlay) */
.work-heading {
    position: absolute;
    top: 3rem;
    left: 3rem;
    z-index: 5;
    pointer-events: none;
}
.work-heading .label {
    margin-bottom: .6rem
}
.work-heading h2 {
    font-family: var(--display);
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-weight: 400;
    color: rgba(237, 237, 237, .22);
    letter-spacing: -.01em;
}

/* PANEL CONTENT */
.panel-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}
.panel-meta {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
}
.panel-idx {
    font-size: .65rem;
    letter-spacing: .3em;
    color: var(--muted);
    font-family: var(--display);
    font-weight: 400;
}
.panel-tag {
    font-size: .6rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(237, 237, 237, .4);
    border: 1px solid rgba(237, 237, 237, .08);
    padding: .25rem .7rem;
    border-radius: 3px;
    font-weight: 500;
}
.panel-name {
    font-family: var(--display);
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: .9;
    margin-bottom: 1.5rem;
    background: linear-gradient(140deg, var(--light) 35%, rgba(237, 237, 237, .35) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.panel-tagline {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.05rem;
    font-weight: 300;
    color: rgba(237, 237, 237, .38);
    margin-bottom: 1.5rem;
}
.panel-desc {
    font-size: .875rem;
    line-height: 2.05;
    color: var(--muted);
    max-width: 38ch;
    font-weight: 300;
}
.panel-metrics {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
}
.panel-metric-val {
    font-family: var(--display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--light);
    line-height: 1;
}
.panel-metric-label {
    font-size: .65rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: .4rem;
    font-weight: 400;
}
.panel-cta {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    margin-top: 2.5rem;
    font-size: .65rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: rgba(237, 237, 237, .7);
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(237, 237, 237, .08);
    transition: color .3s,
        border-color .35s,
        gap .4s var(--ease);
    width: fit-content;
    font-weight: 500;
}
.panel-cta:hover {
    color: var(--light);
    border-color: rgba(237, 237, 237, .3);
    gap: 1.5rem;
}
.panel-cta-arrow {
    display: inline-block;
    transition: transform .4s
}
.panel-cta:hover .panel-cta-arrow {
    transform: translateX(6px)
}

/* PANEL VISUALS (parallax layer) */
.panel-visual {
    position: absolute;
    right: 0;
    top: 0;
    width: 52%;
    height: 100%;
    overflow: hidden;
    background: var(--surface);
    will-change: transform;
}
.panel-visual-inner {
    position: absolute;
    inset: -8% -4%;
    width: 108%;
    height: 116%;
    will-change: transform;
}
.panel-visual svg {
    width: 100%;
    height: 100%;
    display: block
}
.panel-visual .glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%,
            rgba(237, 237, 237, .03) 0%, transparent 70%);
    pointer-events: none;
}
.panel-visual .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--dark) 0%, transparent 58%);
    pointer-events: none;
    z-index: 2;
}

/* PANEL PROGRESS INDICATOR (fixed in viewport) */
.panel-progress {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.7rem;
    z-index: 10;
}
.panel-progress .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(237, 237, 237, .08);
    transition: background .4s,
        transform .4s,
        box-shadow .4s;
    cursor: pointer;
}
.panel-progress .dot.active {
    background: var(--light);
    transform: scale(1.4);
    box-shadow: 0 0 12px rgba(237, 237, 237, .15);
}
.panel-progress .dot:hover {
    background: rgba(237, 237, 237, .2);
}

.panel-counter {
    position: absolute;
    bottom: 2rem;
    right: 3rem;
    font-family: var(--display);
    font-size: .7rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: .15em;
    z-index: 10;
}
.panel-counter .current {
    color: var(--light)
}
.panel-counter .total {
    color: var(--muted)
}

/* PANEL CTA AS BUTTON (case-study trigger) */
button.panel-cta {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(237, 237, 237, .08);
    font-family: inherit;
    padding: 0;
    margin-top: 2.5rem;
}
[data-theme="light"] button.panel-cta {
    border-bottom-color: rgba(17, 17, 17, .1);
}
button.panel-cta:focus-visible,
.cs-close:focus-visible,
.cs-nav-btn:focus-visible {
    outline: 1px solid var(--svg-text-secondary);
    outline-offset: 4px;
}

/* ═══════════════════════════════════════════
   CASE STUDY OVERLAY
   Immersive in-page project deep-dive.
   Built on the same tokens/easing as the rest
   of the site so it reads as one continuous
   experience rather than a bolted-on modal.
════════════════════════════════════════════ */
.case-study {
    position: fixed;
    inset: 0;
    z-index: 9000;
    visibility: hidden;
    pointer-events: none;
}
.case-study.open {
    visibility: visible;
    pointer-events: auto;
}
body.cs-open {
    overflow: hidden;
    height: 100%;
}
.cs-backdrop {
    position: absolute;
    inset: 0;
    background: var(--darker);
    opacity: 0;
}
.cs-shell {
    position: absolute;
    inset: 0;
    background: var(--dark);
    clip-path: circle(0px at 50% 50%);
    will-change: clip-path;
    display: flex;
    flex-direction: column;
}
body.cs-noclip .cs-shell {
    /* fallback for browsers w/o clip-path support, or reduced motion */
    clip-path: none !important;
    opacity: 0;
}

/* Slim progress bar — mirrors the global #progress treatment */
.cs-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(237, 237, 237, .06);
    z-index: 30;
}
[data-theme="light"] .cs-progress { background: rgba(17, 17, 17, .06); }
.cs-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--light);
    transform-origin: left center;
}

/* Close control — same circular language as #theme-toggle */
.cs-close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 40;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--svg-border-12);
    background: var(--svg-surface-04);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .3s, background .3s, transform .4s var(--ease);
}
.cs-close:hover {
    border-color: var(--svg-border-12);
    background: var(--svg-surface-08);
    transform: scale(1.08) rotate(90deg);
}
.cs-close-line {
    position: absolute;
    width: 16px;
    height: 1px;
    background: var(--svg-text-primary);
}
.cs-close-line:first-child { transform: rotate(45deg); }
.cs-close-line:last-child  { transform: rotate(-45deg); }

/* Bottom nav cluster — mirrors .panel-counter / .panel-progress */
.cs-nav {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 1.6rem;
    font-family: var(--display);
}
.cs-nav-btn {
    appearance: none;
    background: var(--svg-surface-04);
    border: 1px solid var(--svg-border-08);
    color: var(--svg-text-secondary);
    font-family: inherit;
    font-size: .62rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    padding: .7rem 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    transition: border-color .3s, color .3s, background .3s;
    white-space: nowrap;
}
.cs-nav-btn:hover {
    border-color: var(--svg-border-12);
    color: var(--svg-text-primary);
    background: var(--svg-surface-08);
}
.cs-nav-index {
    font-size: .65rem;
    letter-spacing: .15em;
    color: var(--svg-text-muted);
}

/* Scroll container — native scroll, ScrollTrigger bound to it */
.cs-scroll {
    position: relative;
    flex: 1;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}
.cs-content { position: relative; }

/* ── CS HERO ── */
.cs-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 8rem 3rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}
.cs-hero-meta {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
}
.cs-hero-idx {
    font-size: .65rem;
    letter-spacing: .3em;
    color: var(--muted);
    font-family: var(--display);
}
.cs-hero-tag {
    font-size: .6rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--svg-text-secondary);
    border: 1px solid var(--svg-border-08);
    padding: .25rem .7rem;
    border-radius: 3px;
    font-weight: 500;
}
.cs-hero-title {
    font-family: var(--display);
    font-size: clamp(3.5rem, 9vw, 8.5rem);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: .88;
    margin-bottom: 1.5rem;
    background: linear-gradient(140deg, var(--light) 35%, rgba(237, 237, 237, .35) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
[data-theme="light"] .cs-hero-title {
    background: linear-gradient(140deg, var(--light) 35%, rgba(17, 17, 17, .35) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}
.cs-hero-tagline {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 300;
    color: var(--svg-text-secondary);
    max-width: 46ch;
    margin-bottom: 3rem;
}
.cs-hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 4rem;
}
.cs-hero-fact-label {
    font-size: .6rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .5rem;
}
.cs-hero-fact-val {
    font-size: .85rem;
    color: var(--svg-text-secondary);
    font-weight: 400;
    max-width: 22ch;
}
.cs-hero-frame {
    position: relative;
    width: 100%;
    max-width: 980px;
    aspect-ratio: 16 / 9.2;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--svg-border-08);
    background: var(--surface);
    box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .6);
}
[data-theme="light"] .cs-hero-frame {
    box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .15);
}
.cs-hero-frame svg {
    width: 100%;
    height: 100%;
    display: block;
}
.cs-hero-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(237, 237, 237, .05), transparent 60%);
    pointer-events: none;
}
.cs-scroll-cue {
    position: absolute;
    bottom: 2.5rem;
    left: 3rem;
    display: flex;
    align-items: center;
    gap: .8rem;
    font-size: .6rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--muted);
}
.cs-scroll-cue::after {
    content: '';
    width: 1px;
    height: 28px;
    background: linear-gradient(to bottom, var(--muted), transparent);
}

/* ── CS GENERIC SECTION ── */
.cs-section {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 7rem 3rem;
    border-top: 1px solid var(--svg-border-04);
}
.cs-section-label {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: .62rem;
    letter-spacing: .38em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2.5rem;
    font-weight: 500;
}
.cs-section-label::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--svg-border-12);
    flex-shrink: 0;
}

/* ── OVERVIEW ── */
.cs-overview-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 5rem;
}
.cs-overview-text p {
    font-size: 1rem;
    line-height: 2;
    color: var(--muted-lt);
    font-weight: 300;
    max-width: 56ch;
    margin-bottom: 1.4rem;
}
.cs-facts {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-left: 2.5rem;
    border-left: 1px solid var(--svg-border-08);
}
.cs-facts .panel-metric-val { font-size: 2.2rem; }

/* ── PULL QUOTE (challenge) ── */
.cs-pull-quote {
    font-family: var(--serif);
    font-size: clamp(2rem, 4.4vw, 3.6rem);
    font-weight: 300;
    line-height: 1.25;
    letter-spacing: -.01em;
    max-width: 22ch;
}
.cs-pull-quote em {
    font-style: italic;
    color: var(--svg-text-faint);
}

/* ── TIMELINE (process) ── */
.cs-timeline {
    display: flex;
    flex-direction: column;
}
.cs-timeline-step {
    position: relative;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 2.5rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--svg-border-04);
}
.cs-timeline-step:first-child { border-top: 1px solid var(--svg-border-04); }
.cs-timeline-num {
    font-family: var(--display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--light);
    opacity: .3;
}
.cs-timeline-title {
    font-family: var(--display);
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: .7rem;
    letter-spacing: -.01em;
}
.cs-timeline-desc {
    font-size: .85rem;
    line-height: 1.9;
    color: var(--muted);
    font-weight: 300;
    max-width: 60ch;
}

/* ── TECH STACK ── */
.cs-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}
.cs-tag {
    color: var(--svg-text-secondary);
    border: 1px solid var(--svg-border-08);
    padding: .45rem .9rem;
    border-radius: 30px;
    font-size: .68rem;
    letter-spacing: .04em;
    transition: border-color .3s, background .3s, color .3s;
}
.cs-tag:hover {
    border-color: var(--svg-border-12);
    background: var(--svg-surface-04);
    color: var(--svg-text-primary);
}

/* ── RESULTS ── */
.cs-results-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4.5rem;
}
.cs-results-grid .panel-metric-val { font-size: 3rem; }

/* ── CLOSING ── */
.cs-closing {
    text-align: center;
    padding: 8rem 3rem 10rem;
}
.cs-closing-eyebrow {
    font-size: .62rem;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.5rem;
}
.cs-closing-title {
    font-family: var(--display);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: 2.5rem;
}
.cs-closing-cta {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    font-size: .7rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--light);
    text-decoration: none;
    padding: 1rem 2rem;
    border: 1px solid var(--svg-border-12);
    border-radius: 30px;
    transition: background .35s, transform .35s var(--ease);
}
.cs-closing-cta:hover {
    background: var(--svg-surface-08);
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .cs-hero { padding: 7rem 1.5rem 3rem; }
    .cs-section { padding: 4.5rem 1.5rem; }
    .cs-overview-grid { grid-template-columns: 1fr; gap: 3rem; }
    .cs-facts { border-left: none; padding-left: 0; border-top: 1px solid var(--svg-border-08); padding-top: 2rem; flex-direction: row; flex-wrap: wrap; }
    .cs-timeline-step { grid-template-columns: 1fr; gap: .6rem; }
    .cs-close { width: 40px; height: 40px; top: 1.2rem; right: 1.2rem; }
    .cs-nav { bottom: 1.2rem; gap: 1rem; }
    .cs-nav-btn { padding: .6rem .9rem; }
    .cs-results-grid { gap: 2.5rem; }
}

/* ── CAPABILITIES ── */
.cap-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 6rem;
    align-items: start;
}
.cap-left {
    position: sticky;
    top: 30%
}
.cap-eyebrow {
    font-size: .65rem;
    letter-spacing: .4em;
    text-transform: uppercase;
    color: var(--light);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: .8rem;
    font-weight: 500;
}
.cap-eyebrow::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--light);
    opacity: .5;
}
.cap-title {
    font-family: var(--display);
    font-size: clamp(2.5rem, 4.5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.05;
}
.cap-note {
    font-size: .85rem;
    line-height: 2;
    color: var(--muted);
    margin-top: 2rem;
    max-width: 28ch;
    font-weight: 300;
}
.cap-items {
    display: flex;
    flex-direction: column
}
.cap-item {
    position: relative;
    padding: 2.5rem 0 2.5rem 0;
    border-bottom: 1px solid rgba(237, 237, 237, .04);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    transition: padding .5s var(--ease);
}
.cap-item:first-child {
    border-top: 1px solid rgba(237, 237, 237, .04)
}
.cap-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--light), transparent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .6s var(--ease);
}
.cap-item:hover {
    padding-left: 1.5rem
}
.cap-item:hover::before {
    transform: scaleY(1)
}
.cap-name-wrap {
    display: flex;
    align-items: baseline;
    gap: 1rem
}
.cap-num {
    font-family: var(--display);
    font-size: .65rem;
    letter-spacing: .18em;
    color: var(--light);
    opacity: .4;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}
.cap-name {
    font-family: var(--display);
    font-size: 1.35rem;
    font-weight: 600;
    background: linear-gradient(90deg,
            var(--light) 0%, var(--light) 50%,
            var(--light) 50%, var(--light) 100%);
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background-position .55s var(--ease);
    opacity: .7;
}
.cap-item:hover .cap-name {
    background-position: 0 0;
    opacity: 1;
}
.cap-arrow {
    position: absolute;
    right: 0;
    top: 2.6rem;
    color: var(--light);
    font-size: 1rem;
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity .45s var(--ease),
        transform .45s var(--ease);
    pointer-events: none;
}
.cap-item:hover .cap-arrow {
    opacity: 1;
    transform: translateX(0)
}
.cap-tools {
    font-size: .78rem;
    line-height: 2.3;
    color: var(--muted);
    font-weight: 300;
}
.cap-tools .tag {
    color: rgba(237, 237, 237, .6);
    border: 1px solid rgba(237, 237, 237, .06);
    padding: .15rem .55rem;
    border-radius: 3px;
    font-size: .62rem;
    margin-right: .3rem;
    transition: border-color .3s,
        background .3s,
        color .3s;
    display: inline-block;
    letter-spacing: .05em;
}
.cap-item:hover .cap-tools .tag {
    border-color: rgba(237, 237, 237, .2);
    background: rgba(237, 237, 237, .04);
    color: var(--light);
}

/* ── CONTACT ── */
.contact {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 3rem;
    background: var(--dark);
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(237, 237, 237, .04);
}
.contact::before {
    content: '';
    position: absolute;
    width: 90vw;
    height: 90vw;
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(237, 237, 237, .025) 0%, transparent 58%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    will-change: transform, opacity;
}
.contact-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(237, 237, 237, .012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(237, 237, 237, .012) 1px, transparent 1px);
    background-size: 100px 100px;
    pointer-events: none;
    opacity: .4;
    will-change: transform;
    -webkit-mask-image: radial-gradient(ellipse 55% 55% at 50% 50%, #000 25%, transparent 75%);
    mask-image: radial-gradient(ellipse 55% 55% at 50% 50%, #000 25%, transparent 75%);
}
.contact-eyebrow {
    font-size: .65rem;
    letter-spacing: .5em;
    text-transform: uppercase;
    color: rgba(237, 237, 237, .4);
    margin-bottom: 2.5rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}
.contact-heading {
    font-family: var(--display);
    font-size: clamp(3.5rem, 12vw, 12rem);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: .85;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}
.ch-line {
    display: block;
    overflow: hidden;
    padding: 0 .02em
}
.ch-line>span {
    display: block;
    will-change: transform
}
.contact-heading .dim {
    color: rgba(237, 237, 237, .12);
    font-weight: 300;
}
.contact-heading .highlight {
    background: linear-gradient(120deg, var(--light), rgba(237, 237, 237, .3) 50%, var(--light));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 7s linear infinite;
}
@keyframes shine {
    to {
        background-position: 200% center
    }
}
.contact-email {
    font-family: var(--display);
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 500;
    color: var(--light);
    text-decoration: none;
    border-bottom: 1px solid rgba(237, 237, 237, .15);
    padding-bottom: 8px;
    transition: border-color .4s,
        opacity .3s;
    display: inline-block;
    position: relative;
    z-index: 1;
    will-change: transform;
}
.contact-email:hover {
    border-color: var(--light);
    opacity: .75;
}
.contact-sub {
    font-size: .68rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 3rem;
    line-height: 2.4;
    font-weight: 300;
    position: relative;
    z-index: 1;
}
.contact-socials {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}
.contact-socials a {
    font-size: .65rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color .3s;
    will-change: transform;
}
.contact-socials a:hover {
    color: var(--light)
}

/* ── FOOTER ── */
footer {
    padding: 2.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(237, 237, 237, .04);
    background: var(--dark);
    position: relative;
    z-index: 2;
}
.foot-copy {
    font-size: .65rem;
    letter-spacing: .12em;
    color: var(--muted);
    font-weight: 300;
}
.foot-links {
    display: flex;
    gap: 2rem;
    list-style: none
}
.foot-links a {
    font-size: .65rem;
    letter-spacing: .12em;
    color: var(--muted);
    text-decoration: none;
    transition: color .3s;
    position: relative;
}
.foot-links a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 1px;
    background: var(--light);
    transform: scJohann(0);
    transform-origin: right;
    transition: transform .4s var(--ease);
}
.foot-links a:hover {
    color: var(--light)
}
.foot-links a:hover::after {
    transform: scJohann(1);
    transform-origin: left
}

/* ── RESPONSIVE ── */
@media(max-width:1024px) {
    .panel-visual {
        width: 46%
    }
    .cap-grid {
        grid-template-columns: 1fr;
        gap: 3rem
    }
    .cap-left {
        position: static
    }
}

@media(max-width:900px) {
    nav {
        padding: 1.5rem 1.5rem
    }
    .nav-links {
        display: none
    }
    .work-viewport {
        height: auto;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    .work-viewport::-webkit-scrollbar {
        display: none
    }
    .work-track {
        width: max-content;
        height: auto;
    }
    .work-track .panel {
        flex: 0 0 88vw;
        height: auto;
        min-height: 90vh;
        scroll-snap-align: center;
        flex-direction: column;
        justify-content: center;
        padding: 5rem 1.5rem;
    }
    .work-heading {
        position: static;
        padding: 5rem 1.5rem 0
    }
    .panel-visual {
        position: relative;
        width: 100%;
        height: 38vh;
        margin-top: 2rem;
        order: -1;
    }
    .panel-content {
        max-width: 100%
    }
    .panel-metrics {
        flex-wrap: wrap;
        gap: 1.5rem
    }
    .panel-progress,
    .panel-counter {
        display: none
    }
    .cap-item {
        grid-template-columns: 1fr
    }
    .cap-arrow {
        display: none
    }
    footer {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center
    }
    #philosophy .section-inner {
        padding-top: 6rem
    }
    .section-inner {
        padding: 4rem 1.5rem
    }
}
@media(max-width:600px) {
    .h-first,
    .h-last {
        font-size: clamp(3.5rem, 16vw, 7rem) !important
    }
    .philosophy-statement {
        font-size: clamp(2rem, 10vw, 3rem) !important
    }
    .contact-heading {
        font-size: clamp(2.8rem, 15vw, 6rem) !important
    }
    nav {
        padding: 1rem 1.2rem
    }
    .nav-avail .nav-avail-text {
        display: none
    }
}

@media(hover:none) {
    #cur,
    #cur-ring {
        display: none
    }
}
@media(prefers-reduced-motion:reduce) {
    * {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important
    }
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    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)' opacity='0.025'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9990;
    opacity: .25;
}
.h-mono {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-size: clamp(50vw, 65vw, 80vw);
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 2px rgba(237, 237, 237, 0.15);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  will-change: transform, opacity;
}

/* ═══════════════════════════════════════════
   THEME TRANSITION
════════════════════════════════════════════ */
body,
body *,
body *::before,
body *::after {
    transition:
        background-color .45s cubic-bezier(.16,1,.3,1),
        border-color .45s cubic-bezier(.16,1,.3,1),
        color .45s cubic-bezier(.16,1,.3,1),
        fill .45s cubic-bezier(.16,1,.3,1),
        stroke .45s cubic-bezier(.16,1,.3,1),
        box-shadow .45s cubic-bezier(.16,1,.3,1);
}
/* let GSAP still do its own transitions unimpeded */
body.theme-switching * {
    transition:
        background-color .45s cubic-bezier(.16,1,.3,1),
        border-color .45s cubic-bezier(.16,1,.3,1),
        color .45s cubic-bezier(.16,1,.3,1) !important;
}

/* ═══════════════════════════════════════════
   LIGHT THEME — [data-theme="light"] on <html>
════════════════════════════════════════════ */
[data-theme="light"] {
    /* Flip the token palette */
    --dark:     #F5F5F3;
    --darker:   #EBEBEA;
    --surface:  #EDEDE9;
    --light:    #111111;
    --muted:    #888;
    --muted-lt: #666;
    --gold:     #111111;
    --gold-dim: rgba(17,17,17,0.06);
    --gold-glow: rgba(17,17,17,0.04);

    /* SVG theme variables – light overrides */
    --svg-bg: rgba(245,245,243,.85);
    --svg-bg-high: rgba(245,245,243,.9);
    --svg-bg-60: rgba(245,245,243,.6);
    --svg-tooltip-bg: rgba(245,245,243,.95);
    --svg-surface: rgba(17,17,17,.025);
    --svg-surface-02: rgba(17,17,17,.02);
    --svg-surface-04: rgba(17,17,17,.04);
    --svg-surface-07: rgba(17,17,17,.07);
    --svg-surface-08: rgba(17,17,17,.08);
    --svg-surface-10: rgba(17,17,17,.1);
    --svg-border: rgba(17,17,17,.06);
    --svg-border-04: rgba(17,17,17,.04);
    --svg-border-05: rgba(17,17,17,.05);
    --svg-border-07: rgba(17,17,17,.07);
    --svg-border-08: rgba(17,17,17,.08);
    --svg-border-12: rgba(17,17,17,.12);
    --svg-card-bg: rgba(17,17,17,.04);
    --svg-card-border: rgba(17,17,17,.07);
    --svg-text-primary: #111;
    --svg-text-primary-85: rgba(17,17,17,.85);
    --svg-text-secondary: rgba(17,17,17,.7);
    --svg-text-secondary-60: rgba(17,17,17,.6);
    --svg-text-secondary-55: rgba(17,17,17,.55);
    --svg-text-muted: rgba(17,17,17,.5);
    --svg-text-muted-45: rgba(17,17,17,.45);
    --svg-text-muted-40: rgba(17,17,17,.4);
    --svg-text-muted-35: rgba(17,17,17,.35);
    --svg-text-faint: rgba(17,17,17,.3);
    --svg-text-faint-25: rgba(17,17,17,.25);
    --svg-text-faint-20: rgba(17,17,17,.2);
    --svg-text-faint-15: rgba(17,17,17,.15);
    --svg-text-faint-12: rgba(17,17,17,.12);
    --svg-text-faint-10: rgba(17,17,17,.1);
    --svg-button-bg: rgba(17,17,17,.9);
    --svg-button-text: rgba(245,245,243,.9);
    --svg-accent: #111;
    --svg-grad-stop: #111;
}

/* ── Body & scrollbar ── */
[data-theme="light"] body {
    background: var(--dark);
    color: var(--light);
}
[data-theme="light"] ::-webkit-scrollbar-track  { background: var(--dark); }
[data-theme="light"] ::-webkit-scrollbar-thumb  { background: rgba(17,17,17,.2); }

/* ── Cursor ── */
[data-theme="light"] #cur                         { background: var(--light); }
[data-theme="light"] #cur-ring                    { border-color: rgba(17,17,17,.18); }
[data-theme="light"] body:has(a:hover) #cur,
[data-theme="light"] body:has(button:hover) #cur,
[data-theme="light"] body.cursor-active #cur      { background: #000; }
[data-theme="light"] body:has(a:hover) #cur-ring,
[data-theme="light"] body:has(button:hover) #cur-ring,
[data-theme="light"] body.cursor-active #cur-ring {
    border-color: rgba(17,17,17,.3);
    background: rgba(17,17,17,.02);
}

/* ── Progress bar ── */
[data-theme="light"] #progress { background: var(--light); }

/* ── Preloader ── */
[data-theme="light"] #preloader            { background: var(--darker); }
[data-theme="light"] #preloader::before    { background: radial-gradient(circle, rgba(17,17,17,.025), transparent 65%); }
[data-theme="light"] .pre-num              { color: var(--light); }
[data-theme="light"] .pre-bar-wrap         { background: rgba(17,17,17,.08); }
[data-theme="light"] .pre-bar              { background: rgba(17,17,17,.6); }

/* ── Nav ── */
[data-theme="light"] nav.scrolled {
    background: rgba(245,245,243,.92);
    border-bottom-color: rgba(17,17,17,.06);
}
[data-theme="light"] .nav-logo             { color: var(--light); }
[data-theme="light"] .nav-logo span        { color: var(--light); opacity: .4; }
[data-theme="light"] .nav-links a          { color: var(--muted); }
[data-theme="light"] .nav-links a::after   { background: var(--light); }
[data-theme="light"] .nav-links a:hover    { color: var(--light); }
[data-theme="light"] .nav-avail            { color: rgba(17,17,17,.5); }
[data-theme="light"] .nav-avail:hover      { color: var(--light); }
[data-theme="light"] .nav-avail-dot        { background: var(--light); }

/* ── Hero ── */
[data-theme="light"] .h-bg                { background: #F5F5F3; }
[data-theme="light"] .h-grid {
    background-image:
        linear-gradient(rgba(17,17,17,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17,17,17,.04) 1px, transparent 1px);
}
[data-theme="light"] .h-orb               { background: radial-gradient(circle, rgba(17,17,17,.025) 0%, transparent 68%); }
[data-theme="light"] .h-mono              { -webkit-text-stroke: 2px rgba(17,17,17,.12); }
[data-theme="light"] .h-first             { color: #111; }
[data-theme="light"] .h-last              { color: rgba(17,17,17,0.22); }
[data-theme="light"] .h-role              { color: rgba(17,17,17,.38); }
[data-theme="light"] .h-tagline           { color: rgba(17,17,17,.32); }
[data-theme="light"] .h-tagline em        { color: rgba(17,17,17,.62); }
[data-theme="light"] .h-scroll-text       { color: var(--muted); }
[data-theme="light"] .h-scroll-line       { background: linear-gradient(to bottom, rgba(17,17,17,.4), transparent); }
[data-theme="light"] .h-corner::before,
[data-theme="light"] .h-corner::after     { background: var(--light); }

/* ── Section base ── */
[data-theme="light"] .section             { background: var(--dark); }
[data-theme="light"] .section-number      { color: rgba(17,17,17,.04); }
[data-theme="light"] .label               { color: rgba(17,17,17,.35); }
[data-theme="light"] .label::before       { background: rgba(17,17,17,.2); }

/* ── Philosophy ── */
[data-theme="light"] .phil-glow           { background: radial-gradient(circle, rgba(17,17,17,.018), transparent 65%); }
[data-theme="light"] .philosophy-statement em { color: rgba(17,17,17,.28); }
[data-theme="light"] .philosophy-aside    { border-left-color: rgba(17,17,17,.1); }
[data-theme="light"] .philosophy-aside p  { color: var(--muted-lt); }

/* ── Work section ── */
[data-theme="light"] .work-pin            { background: var(--dark); border-top-color: rgba(17,17,17,.07); }
[data-theme="light"] .work-heading h2     { color: rgba(17,17,17,.2); }
[data-theme="light"] .panel-idx           { color: var(--muted); }
[data-theme="light"] .panel-tag           {
    color: rgba(17,17,17,.4);
    border-color: rgba(17,17,17,.1);
}
[data-theme="light"] .panel-name {
    background: linear-gradient(140deg, #111 35%, rgba(17,17,17,.35) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
[data-theme="light"] .panel-tagline       { color: rgba(17,17,17,.35); }
[data-theme="light"] .panel-desc          { color: var(--muted); }
[data-theme="light"] .panel-metric-val    { color: var(--light); }
[data-theme="light"] .panel-metric-label  { color: var(--muted); }
[data-theme="light"] .panel-cta           { color: rgba(17,17,17,.65); border-bottom-color: rgba(17,17,17,.1); }
[data-theme="light"] .panel-cta:hover     { color: var(--light); border-bottom-color: rgba(17,17,17,.35); }
[data-theme="light"] .panel-visual        { background: var(--surface); }
[data-theme="light"] .panel-visual .glow  { background: radial-gradient(circle at 30% 50%, rgba(17,17,17,.025) 0%, transparent 70%); }
[data-theme="light"] .panel-visual .overlay { background: linear-gradient(90deg, var(--dark) 0%, transparent 58%); }
[data-theme="light"] .panel-progress .dot { background: rgba(17,17,17,.1); }
[data-theme="light"] .panel-progress .dot.active { background: var(--light); box-shadow: 0 0 12px rgba(17,17,17,.12); }
[data-theme="light"] .panel-progress .dot:hover  { background: rgba(17,17,17,.22); }
[data-theme="light"] .panel-counter       { color: var(--muted); }
[data-theme="light"] .panel-counter .current { color: var(--light); }

/* ── Capabilities ── */
[data-theme="light"] .cap-eyebrow         { color: var(--light); }
[data-theme="light"] .cap-eyebrow::before { background: var(--light); }
[data-theme="light"] .cap-note            { color: var(--muted); }
[data-theme="light"] .cap-item            { border-bottom-color: rgba(17,17,17,.06); }
[data-theme="light"] .cap-item:first-child { border-top-color: rgba(17,17,17,.06); }
[data-theme="light"] .cap-item::before    { background: linear-gradient(to bottom, var(--light), transparent); }
[data-theme="light"] .cap-num             { color: var(--light); opacity: .35; }
[data-theme="light"] .cap-name {
    background: linear-gradient(90deg, #111 0%, #111 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: .65;
}
[data-theme="light"] .cap-item:hover .cap-name { opacity: 1; }
[data-theme="light"] .cap-tools .tag {
    color: rgba(17,17,17,.55);
    border-color: rgba(17,17,17,.08);
}
[data-theme="light"] .cap-item:hover .cap-tools .tag {
    border-color: rgba(17,17,17,.22);
    background: rgba(17,17,17,.04);
    color: var(--light);
}

/* ── Contact ── */
[data-theme="light"] .contact {
    background: var(--dark);
    border-top-color: rgba(17,17,17,.06);
}
[data-theme="light"] .contact::before     { background: radial-gradient(circle, rgba(17,17,17,.028) 0%, transparent 58%); }
[data-theme="light"] .contact-grid {
    background-image:
        linear-gradient(rgba(17,17,17,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17,17,17,.018) 1px, transparent 1px);
}
[data-theme="light"] .contact-eyebrow     { color: rgba(17,17,17,.38); }
[data-theme="light"] .contact-heading .dim { color: rgba(17,17,17,.14); }
[data-theme="light"] .contact-heading .highlight {
    background: linear-gradient(120deg, #111, rgba(17,17,17,.3) 50%, #111);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
[data-theme="light"] .contact-email       { color: var(--light); border-bottom-color: rgba(17,17,17,.15); }
[data-theme="light"] .contact-email:hover { border-bottom-color: var(--light); }
[data-theme="light"] .contact-sub         { color: var(--muted); }
[data-theme="light"] .contact-socials a   { color: var(--muted); }
[data-theme="light"] .contact-socials a:hover { color: var(--light); }

/* ── Footer ── */
[data-theme="light"] footer               { background: var(--dark); border-top-color: rgba(17,17,17,.06); }
[data-theme="light"] .foot-copy           { color: var(--muted); }
[data-theme="light"] .foot-links a        { color: var(--muted); }
[data-theme="light"] .foot-links a::after { background: var(--light); }
[data-theme="light"] .foot-links a:hover  { color: var(--light); }

/* ── Film grain (lighter in light mode) ── */
[data-theme="light"] body::before         { opacity: .12; }

/* ═══════════════════════════════════════════
   THEME TOGGLE BUTTON
════════════════════════════════════════════ */
#theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(237,237,237,.1);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition:
        border-color .3s,
        background .3s,
        transform .4s cubic-bezier(.16,1,.3,1);
    will-change: transform;
    padding: 0;
    margin-left: 1.8rem;
}
#theme-toggle:hover {
    border-color: rgba(237,237,237,.3);
    background: rgba(237,237,237,.04);
    transform: scale(1.08);
}
/* Light mode overrides for the button itself */
[data-theme="light"] #theme-toggle {
    border-color: rgba(17,17,17,.12);
}
[data-theme="light"] #theme-toggle:hover {
    border-color: rgba(17,17,17,.3);
    background: rgba(17,17,17,.04);
}
/* SVG icons inside the toggle */
#theme-toggle svg {
    width: 14px;
    height: 14px;
    pointer-events: none;
}
/* Moon icon — shown in dark mode */
#icon-moon { display: block; }
/* Sun icon — shown in light mode */
#icon-sun  { display: none; }
[data-theme="light"] #icon-moon { display: none; }
[data-theme="light"] #icon-sun  { display: block; }

/* ── Nav right cluster (avail + toggle) ── */
.nav-right {
    display: flex;
    align-items: center;
}
