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

:root {
    --bg:           #FAFAF8;
    --text:         #1C1C1A;
    --text-muted:   #787872;
    --accent:       #FFFD74;
    --border:       #E8E8E2;
    --card-hover:   rgba(255, 253, 116, 0.14);
    --max-width:    1100px;
    --nav-height:   64px;
    --pad-x:        40px;
    --pad-section:  120px;
}

/* ============================================================
   DARK MODE
============================================================ */
[data-theme="dark"] {
    --bg:           #141412;
    --text:         #EEEDE8;
    --text-muted:   #8A8A82;
    --accent:       #FFFD74;
    --border:       #2E2E2A;
    --card-hover:   rgba(255, 253, 116, 0.08);
    color-scheme: dark;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a, button, [role="button"], input, textarea, select {
    cursor: none;
}

/* ============================================================
   THEME TOGGLE BUTTON
============================================================ */
.theme-toggle {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 200;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    transition: border-color 0.2s ease, color 0.2s ease,
                background-color 0.3s ease;
}

.theme-toggle:hover {
    color: var(--text);
    border-color: var(--text-muted);
}

.theme-toggle .icon-sun { display: none; }

[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }

/* ============================================================
   CUSTOM CURSOR — two rings
============================================================ */

/* Shared ring base */
.cursor-inner,
.cursor-outer {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Inner ring — follows mouse with slight lag, smaller */
.cursor-inner {
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--text);
    opacity: 0.8;
    z-index: 99999;
    transition: width 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                height 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.2s ease,
                border-color 0.2s ease,
                border-radius 0.2s ease,
                background 0.2s ease;
}

/* Outer ring — lags more, larger */
.cursor-outer {
    width: 44px;
    height: 44px;
    border: 1px solid var(--text);
    opacity: 0.3;
    z-index: 99998;
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.3s ease,
                border-color 0.3s ease,
                background 0.3s ease,
                border-radius 0.3s ease;
}

/* Hover links/buttons — both expand */
.cursor-inner.is-hovering { width: 22px; height: 22px; opacity: 1; }
.cursor-outer.is-hovering { width: 60px; height: 60px; opacity: 0.5; }

/* Hover project CTAs — hide inner, outer shows label only */
.cursor-inner.is-view { display: none; }
.cursor-outer.is-view {
    width: auto;
    height: auto;
    border: none;
    background: none;
    opacity: 1;
}

/* Text cursor — both collapse to vertical bars */
.cursor-inner.is-text {
    width: 1.5px;
    height: 20px;
    border-radius: 2px;
    background: var(--text);
    border: none;
    opacity: 0.6;
}
.cursor-outer.is-text {
    width: 1.5px;
    height: 32px;
    border-radius: 2px;
    background: var(--text);
    border: none;
    opacity: 0.2;
}

/* Click — both compress */
.cursor-inner.is-clicking { width: 12px; height: 12px; opacity: 1; }
.cursor-outer.is-clicking { width: 36px; height: 36px; opacity: 0.6; }


/* Label inside outer ring */
.cursor-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text);
    opacity: 0;
    transition: opacity 0.2s ease;
    white-space: nowrap;
    user-select: none;
}

.cursor-outer.is-view .cursor-label { opacity: 1; }

/* ============================================================
   NAVIGATION
============================================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--pad-x);
    background: rgba(250, 250, 248, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.nav-logo {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: opacity 0.2s ease;
}

.nav-logo:hover {
    opacity: 0.6;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ============================================================
   HERO
============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 var(--pad-x);
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
}

.hero-content {
    width: 100%;
}

/* Top row: name left, location+time right */
.hero-top-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 48px;
    animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.0s both;
}

.hero-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    font-weight: 400;
    margin: 0;
}

.hero-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.hero-meta-sep {
    opacity: 0.4;
}

.hero-time {
    font-variant-numeric: tabular-nums;
    min-width: 70px;
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 500;
    line-height: 1.0;
    letter-spacing: -0.035em;
    color: var(--text);
    margin: 0;
    margin-left: -0.04em;
}

/* Bottom row: sub left, role right */
.hero-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.52s both;
}

.hero-sub {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 300;
    white-space: nowrap;
    line-height: 1.6;
    margin: 0;
    letter-spacing: 0.01em;
}

.hero-role {
    display: inline-block;
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: var(--pad-x);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.9s both;
}

.hero-scroll-label {
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.6;
}

.hero-scroll-line {
    width: 40px;
    height: 1px;
    background: var(--text-muted);
    opacity: 0.3;
    position: relative;
    overflow: hidden;
}

.hero-scroll-line::after {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--text);
    animation: scrollPulse 2.2s cubic-bezier(0.4, 0, 0.2, 1) 1.2s infinite;
}

@keyframes scrollPulse {
    0%   { left: -100%; opacity: 1; }
    50%  { left: 0%;    opacity: 1; }
    100% { left: 100%;  opacity: 0; }
}

/* ============================================================
   CYCLING HEADLINE
============================================================ */
.headline-wrap {
    position: relative;
    margin-bottom: 28px;
}

/* The cycling word — same Inter, lighter weight, warm tone */
#headlineWord {
    display: inline-block;
    font-weight: 600;
    color: #1C1810;
}
[data-theme="dark"] #headlineWord {
    color: #F2EFE8;
}

/* Breathing — very soft sine-like pulse on the whole sentence */
@keyframes headlineBreathe {
    0%, 100% { opacity: 1;    }
    50%      { opacity: 0.96; }
}
#headlineMain {
    animation: headlineBreathe 4.5s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

/* Final locked line — sits in-place, fades in via JS */
.hero-final {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    /* Smooth tracking tighten on arrival */
    transition: letter-spacing 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Final state: tracking tightens, opacity locked, no animation */
#headlineFinal.is-final {
    letter-spacing: -0.042em;
    opacity: 1;
    animation: none;
}

/* ============================================================
   SHARED SECTION STYLES
============================================================ */
.section-label {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================================
   WORK — STICKY STORYTELLING
============================================================ */
.work {
    border-top: 1px solid var(--border);
}

/* Tall wrapper gives scroll room for 3 projects */
.work-sticky-wrapper {
    position: relative;
    height: 320vh;
}

/* Sticky panel that locks in place */
.work-sticky-inner {
    position: sticky;
    top: 0;
    height: 100vh;
    display: grid;
    grid-template-columns: 260px 1fr;
    overflow: hidden;
}

/* ── Left panel ───────────────────────────── */
.work-sticky-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 52px 40px;
    border-right: 1px solid var(--border);
}

.work-counter-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.work-counter-current {
    font-family: 'Inter', sans-serif;
    font-size: 4.5rem;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--text);
    transition: opacity 0.3s ease;
}

.work-counter-total {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--border);
    letter-spacing: -0.01em;
}

.work-progress-track {
    width: 2px;
    height: 100px;
    background: var(--border);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.work-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--text);
    border-radius: 2px;
}

/* ── Right panel: slides ──────────────────── */
.work-sticky-right {
    position: relative;
    overflow: hidden;
}

/* Soft cursor glow */
.work-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    background: radial-gradient(
        circle 440px at var(--cx, 50%) var(--cy, 50%),
        var(--glow-color, rgba(255, 253, 116, 0.22)) 0%,
        transparent 70%
    );
    transition: opacity 0.5s ease;
}

.work-sticky-right.is-hovered .work-glow {
    opacity: 1;
}

.work-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 60px 72px;
    opacity: 0;
    transform: translateY(52px);
    z-index: 1;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.work-slide.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.work-slide.is-past {
    opacity: 0;
    transform: translateY(-52px);
    transition-duration: 0.4s;
}

/* Ghost number watermark in background */
.slide-bg-number {
    position: absolute;
    right: -0.08em;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Inter', sans-serif;
    font-size: clamp(180px, 32vw, 380px);
    color: var(--border);
    opacity: 0.5;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.05em;
}


/* Abstract UI preview card — decorative visual per slide */
.slide-visual {
    position: absolute;
    top: 50%;
    right: 72px;
    transform: translateY(-50%);
    z-index: 0;
}

.slide-visual-card {
    width: 220px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0.7;
}

.svc-bar {
    height: 8px;
    border-radius: 4px;
    background: var(--accent);
    width: 60%;
}

.svc-row {
    height: 6px;
    border-radius: 3px;
    background: var(--border);
    width: 100%;
}

.svc-row--short { width: 72%; }

.svc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 4px;
}

.svc-cell {
    height: 28px;
    border-radius: 6px;
    background: var(--border);
}

/* Per-project accent color on the bar */
.work-slide[data-index="0"] .svc-bar { background: var(--accent); }
.work-slide[data-index="1"] .svc-bar { background: #B5C9E8; }
.work-slide[data-index="2"] .svc-bar { background: #E8B5C9; }

.work-slide[data-index="0"] .svc-cell:nth-child(1),
.work-slide[data-index="0"] .svc-cell:nth-child(4) { background: rgba(255,253,116,0.35); }

.work-slide[data-index="1"] .svc-cell:nth-child(2),
.work-slide[data-index="1"] .svc-cell:nth-child(5) { background: rgba(181,201,232,0.4); }

.work-slide[data-index="2"] .svc-cell:nth-child(3),
.work-slide[data-index="2"] .svc-cell:nth-child(6) { background: rgba(232,181,201,0.4); }

.slide-content {
    position: relative;
    z-index: 1;
    max-width: 480px;
}

.project-tag {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 20px;
}

.project-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: var(--text);
    margin-bottom: 20px;
}

.project-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.65;
    margin-bottom: 36px;
}

.project-cta {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.02em;
    position: relative;
}

.project-cta::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: var(--accent);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.project-cta:hover::after {
    transform: scaleX(0);
    transform-origin: right;
}

/* ============================================================
   ABOUT
============================================================ */
.about {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--pad-x) var(--pad-section);
    border-top: 1px solid var(--border);
}

.about-inner {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 80px;
    padding-top: 48px;
}

.about-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

/* ── Polaroid / scrapbook ──────────────────────────────── */
.polaroid-cluster {
    display: flex;
    align-items: flex-start;
    padding: 16px 0 32px;
}

.polaroid {
    background: #FFFEF9;
    padding: 10px 10px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.10), 0 8px 20px rgba(0,0,0,0.07);
    position: relative;
    flex-shrink: 0;
    width: 200px;
}

/* Tape strip */
.polaroid::before {
    content: '';
    position: absolute;
    width: 58px;
    height: 20px;
    background: rgba(255, 251, 176, 0.78);
    border-left: 1px solid rgba(210, 198, 120, 0.2);
    border-right: 1px solid rgba(210, 198, 120, 0.2);
    top: -9px;
    z-index: 10;
}

.polaroid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    background: var(--border);
}

.polaroid-caption {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-style: italic;
    font-weight: 400;
    color: #3a3835;
    text-align: center;
    letter-spacing: 0.01em;
    padding: 10px 6px 14px;
    line-height: 1.4;
}

/* Individual rotations + tape positions */
.polaroid--1 {
    transform: rotate(-3.5deg);
    z-index: 1;
    margin-right: -16px;
}
.polaroid--1::before {
    left: 28%;
    transform: rotate(-7deg);
}

.polaroid--2 {
    transform: rotate(2.2deg) translateY(14px);
    z-index: 3;
}
.polaroid--2::before {
    left: 38%;
    transform: rotate(4deg);
}

.polaroid--3 {
    transform: rotate(-1.6deg) translateY(6px);
    z-index: 2;
    margin-left: -16px;
}
.polaroid--3::before {
    left: 33%;
    transform: rotate(-3deg);
}

/* Bio text below cluster */
.about-bio {
    max-width: 520px;
}

.about-bio p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
    font-weight: 300;
    margin-bottom: 16px;
}

.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background: var(--text);
    color: var(--bg);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 6px;
    letter-spacing: 0.03em;
    transition: background 0.25s ease,
                color 0.25s ease,
                transform 0.2s ease;
}

.btn:hover {
    background: var(--accent);
    color: var(--text);
    transform: translateY(-2px);
}

/* ============================================================
   CONTACT
============================================================ */
.contact {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--pad-x) var(--pad-section);
    border-top: 1px solid var(--border);
}

.contact-inner {
    padding-top: 80px;
}

.contact-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin-bottom: 44px;
    color: var(--text);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-link {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: none;
    display: inline-block;
    position: relative;
    width: fit-content;
    transition: color 0.22s ease;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-link:hover {
    color: var(--text);
}

.contact-link:hover::after {
    transform: scaleX(1);
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
    border-top: 1px solid var(--border);
    padding: 28px var(--pad-x);
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer p {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* ============================================================
   CASE STUDY — NEXT PROJECT NAV
============================================================ */
.cs-next {
    border-top: 1px solid var(--border);
    padding: 80px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.cs-next-link {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-decoration: none;
    width: fit-content;
}

.cs-next-label {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
}

.cs-next-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--text);
    line-height: 1.1;
    position: relative;
    display: inline-block;
}

.cs-next-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text);
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.cs-next-link:hover .cs-next-title::after {
    width: 100%;
}

.cs-next-arrow {
    font-size: 1.2em;
    display: inline-block;
    margin-left: 12px;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.cs-next-link:hover .cs-next-arrow {
    transform: translateX(6px);
}

@media (max-width: 600px) {
    .cs-next {
        padding: 60px 20px;
    }
}

/* ============================================================
   ANIMATIONS
============================================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   REDUCED MOTION
============================================================ */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .cursor,
    .trail-dot {
        display: none !important;
    }

    body {
        cursor: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================
   NO HOVER (TOUCH DEVICES)
============================================================ */
@media (hover: none) {
    .cursor,
    .cursor-inner,
    .cursor-outer,
    .trail-dot {
        display: none !important;
    }

    body,
    a, button, [role="button"], input, textarea, select {
        cursor: auto;
    }
}

/* ============================================================
   RESPONSIVE — TABLET
============================================================ */
@media (max-width: 900px) {
    :root {
        --pad-x: 32px;
        --pad-section: 80px;
    }

    .about-inner {
        grid-template-columns: 140px 1fr;
        gap: 40px;
    }

    .work-sticky-inner {
        grid-template-columns: 200px 1fr;
    }

    .work-slide {
        padding: 48px 40px;
    }
}

/* ============================================================
   RESPONSIVE — MOBILE
============================================================ */
@media (max-width: 600px) {
    :root {
        --pad-x: 20px;
        --pad-section: 64px;
    }

    /* ── Hero ─────────────────────────────────────────────── */
    .hero {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-top-row {
        flex-direction: column;
        gap: 6px;
        margin-bottom: 32px;
    }

    .hero-sub {
        white-space: normal;
        font-size: 0.95rem;
    }

    .hero-bottom-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .hero-scroll { display: none; }

    /* ── Work ─────────────────────────────────────────────── */
    .work-sticky-inner {
        grid-template-columns: 1fr;
        grid-template-rows: 72px 1fr;
    }

    .work-sticky-left {
        flex-direction: row;
        align-items: center;
        padding: 0 20px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .work-counter-wrap {
        flex-direction: row;
        align-items: baseline;
        gap: 6px;
    }

    .work-counter-current {
        font-size: 1.8rem;
    }

    .work-progress-track {
        width: 60px;
        height: 2px;
        margin-left: auto;
    }

    .work-progress-fill {
        height: 100% !important;
        width: 0%;
        transition: width 0.1s linear;
    }

    .work-slide {
        padding: 32px 20px 40px;
        align-items: flex-start;
    }

    .slide-content {
        max-width: 100%;
    }

    .project-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .project-desc {
        font-size: 0.95rem;
        margin-bottom: 28px;
    }

    .slide-bg-number {
        font-size: 55vw;
        opacity: 0.2;
    }

    .work-glow { display: none; }
    .slide-visual { display: none; }

    /* ── About ────────────────────────────────────────────── */
    .about-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .polaroid {
        width: 140px;
    }

    /* ── Contact ──────────────────────────────────────────── */
    .contact-title {
        font-size: 2.2rem;
    }

    .contact-link {
        font-size: 1rem;
    }

    /* ── Theme toggle ─────────────────────────────────────── */
    .theme-toggle {
        top: 16px;
        right: 16px;
        width: 32px;
        height: 32px;
    }
}

