/* ==========================================================================
   BELLO CREATIVE — Design System
   A motion designer's portfolio, told as a story rather than a page.
   ========================================================================== */

:root {
    --bg: #05050a;
    --bg-soft: #0b0b16;
    --bg-elevated: #12121f;
    --fg: #f4f3f6;
    --fg-dim: #a6a3b8;
    --fg-faint: #6b687d;
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.16);

    --accent: #8b7bff;
    --accent-soft: rgba(139, 123, 255, 0.16);
    --accent-2: #5cffb0;
    --accent-warm: #ff9b5c;

    --font-display: "Space Grotesk", sans-serif;
    --font-body: "Inter", sans-serif;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
    --radius-s: 10px;
    --radius-m: 18px;
    --radius-l: 28px;

    --header-h: 88px;
    color-scheme: dark;
}

/* time-of-day nuance — identity stays dark & cinematic, only warmth shifts */
html[data-time="morning"] {
    --accent-warm: #ffb37a;
    --bg-soft: #0e0c14;
}
html[data-time="afternoon"] {
    --accent-warm: #ffcf7a;
    --bg-soft: #0a0b16;
}
html[data-time="night"] {
    --accent-warm: #8b7bff;
    --bg-soft: #08070f;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    scroll-behavior: auto;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body.no-scroll {
    overflow: hidden;
    height: 100vh;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.02em;
}
p {
    margin: 0;
}
a {
    color: inherit;
    text-decoration: none;
}
ul,
ol {
    list-style: none;
    margin: 0;
    padding: 0;
}
button {
    font-family: inherit;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
}
img {
    max-width: 100%;
    display: block;
}
svg {
    display: block;
}

/* ambient time-of-day backdrop */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
    background:
        radial-gradient(
            60% 45% at 82% -6%,
            var(--accent-soft),
            transparent 60%
        ),
        radial-gradient(
            50% 40% at 10% 108%,
            rgba(92, 255, 176, 0.08),
            transparent 60%
        );
    transition: background 1.2s var(--ease);
}
html[data-time="night"] body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(
            1.5px 1.5px at 20% 30%,
            rgba(255, 255, 255, 0.5),
            transparent
        ),
        radial-gradient(
            1.5px 1.5px at 70% 12%,
            rgba(255, 255, 255, 0.4),
            transparent
        ),
        radial-gradient(
            1px 1px at 40% 80%,
            rgba(255, 255, 255, 0.35),
            transparent
        ),
        radial-gradient(
            1px 1px at 85% 65%,
            rgba(255, 255, 255, 0.3),
            transparent
        ),
        radial-gradient(
            1.5px 1.5px at 55% 45%,
            rgba(255, 255, 255, 0.25),
            transparent
        ),
        radial-gradient(
            1px 1px at 92% 90%,
            rgba(255, 255, 255, 0.3),
            transparent
        );
    opacity: 0.7;
}

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

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9998;
    pointer-events: none;
    mix-blend-mode: difference;
}
.cursor-dot,
.cursor-ring {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.cursor-dot {
    width: 6px;
    height: 6px;
    background: #fff;
}
.cursor-ring {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition:
        width 0.25s var(--ease),
        height 0.25s var(--ease),
        opacity 0.25s;
}
.cursor.is-hover .cursor-ring {
    width: 60px;
    height: 60px;
    border-color: #fff;
}
@media (hover: none), (pointer: coarse) {
    .cursor {
        display: none;
    }
}

/* ==========================================================================
   SCENE 0 — PRELOADER / INVITATION
   ========================================================================== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.preloader.is-exiting {
    pointer-events: none;
}
#intro-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.7;
}

.preloader-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
    padding: 0 24px;
}
.preloader-eyebrow {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.72rem;
    color: var(--accent);
    margin-bottom: 22px;
    opacity: 0;
}
.preloader-headline {
    font-size: clamp(1.7rem, 4.4vw, 3.1rem);
    line-height: 1.18;
    color: var(--fg);
    opacity: 0;
}
.preloader-headline em {
    color: var(--fg-dim);
    font-style: normal;
    font-weight: 400;
}
.preloader-sub {
    margin-top: 20px;
    color: var(--fg-faint);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    opacity: 0;
}

.begin-btn {
    position: relative;
    margin: 46px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    color: var(--fg);
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    transition:
        transform 0.4s var(--ease),
        border-color 0.4s;
    opacity: 0;
}
.begin-btn:hover {
    transform: scale(1.06);
    border-color: var(--accent);
}
.begin-btn:active {
    transform: scale(0.96);
}
.begin-btn-label {
    position: relative;
    z-index: 2;
}
.begin-btn-ripple {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid var(--accent);
    opacity: 0.55;
    animation: ripple 2.6s var(--ease-soft) infinite;
}
.begin-btn-ripple--2 {
    animation-delay: 1.3s;
}
@keyframes ripple {
    0% {
        transform: scale(0.94);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

.begin-arrow {
    display: block;
    margin: 26px auto 0;
    color: var(--fg-faint);
    animation: arrow-float 2s ease-in-out infinite;
    opacity: 0;
}
@keyframes arrow-float {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    50% {
        transform: translateY(8px);
        opacity: 1;
    }
}

.preloader-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 36px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 220px;
    margin: 0 auto;
}
.preloader-progress::before {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: var(--border);
}
.preloader-progress-bar {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 1px;
    width: 0%;
    background: var(--accent);
    transition: width 0.25s var(--ease);
}
.preloader-progress-label {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fg-faint);
}

/* ==========================================================================
   SCENE 1+2 — BIRTH STAGE
   ========================================================================== */
.birth-stage {
    position: fixed;
    inset: 0;
    z-index: 8900;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
}
.birth-stage.is-active {
    pointer-events: auto;
}
#birth-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.whoosh {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(139, 123, 255, 0.9),
        transparent 60%
    );
    transform: scale(0);
    opacity: 0;
}
.birth-wordmark {
    position: absolute;
    left: 50%;
    top: 62%;
    transform: translate(-50%, 0);
    z-index: 2;
    text-align: center;
    opacity: 0;
    width: 100%;
    padding: 0 20px;
}
.birth-role {
    font-family: var(--font-display);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--accent-2);
}

/* ==========================================================================
   HEADER / LOGO
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(20px, 4vw, 56px);
    opacity: 0;
    transform: translateY(-16px);
    transition:
        opacity 0.8s var(--ease),
        transform 0.8s var(--ease),
        background 0.4s;
}
.site-header.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.site-header.is-scrolled {
    backdrop-filter: blur(14px);
    background: rgba(5, 5, 10, 0.45);
}

.logo-mark {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--fg);
    will-change: transform;
}
.logo-mark svg {
    color: var(--accent);
    transition: color 0.4s;
}
.logo-word {
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}
.logo-word em {
    font-style: normal;
    color: var(--fg-faint);
    font-weight: 400;
    margin-left: 2px;
}

.say-hello {
    border: 1px solid var(--border-strong);
    border-radius: 100px;
    padding: 10px 22px;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    transition:
        border-color 0.3s,
        background 0.3s,
        color 0.3s;
}
.say-hello:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--fg);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
}
.menu-toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--fg);
    transition:
        transform 0.3s var(--ease),
        opacity 0.3s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ==========================================================================
   CHAPTER NAV (right-side dot nav)
   ========================================================================== */
.chapter-nav {
    position: fixed;
    right: clamp(16px, 3vw, 40px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 400;
    display: flex;
    align-items: center;
    gap: 18px;
    opacity: 0;
    transition: opacity 0.8s var(--ease) 0.3s;
}
.chapter-nav.is-visible {
    opacity: 1;
}
.chapter-nav ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;
}
.chapter-nav li button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
}
.chap-index {
    font-family: var(--font-display);
    font-size: 0.68rem;
    color: var(--fg-faint);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s var(--ease);
}
.chap-label {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-faint);
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.35s var(--ease);
}
.chapter-nav li:hover .chap-label {
    max-width: 120px;
    opacity: 1;
    margin-right: 2px;
}
.chapter-nav li:hover .chap-index {
    border-color: var(--accent);
    color: var(--fg);
}
.chapter-nav li.is-active .chap-index {
    background: var(--accent);
    border-color: var(--accent);
    color: #08070f;
    transform: scale(1.1);
}
.chapter-nav li.is-active .chap-label {
    max-width: 120px;
    opacity: 1;
    color: var(--fg);
}
.chapter-nav-track {
    position: relative;
    width: 1px;
    height: 150px;
    background: var(--border);
}
.chapter-nav-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--accent);
    transition: height 0.2s linear;
}

.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 480;
    background: rgba(5, 5, 10, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition:
        opacity 0.4s var(--ease),
        transform 0.4s var(--ease);
}
.mobile-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 22px;
    text-align: center;
}
.mobile-nav li {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--fg-dim);
    cursor: pointer;
    transition: color 0.3s;
}
.mobile-nav li:hover {
    color: var(--accent);
}

/* ==========================================================================
   CHAPTER / SECTION BASE
   ========================================================================== */
.chapter {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: calc(var(--header-h) + 40px) clamp(20px, 6vw, 90px) 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.chapter-work,
.chapter-process,
.chapter-playground {
    justify-content: flex-start;
    padding-top: calc(var(--header-h) + 70px);
}

.chapter-kicker {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.72rem;
    color: var(--accent);
    margin-bottom: 18px;
}
.chapter-heading {
    max-width: 780px;
    margin-bottom: 64px;
}
.chapter-heading h2 {
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    margin-bottom: 18px;
}
.chapter-intro-text {
    color: var(--fg-dim);
    font-size: 1.05rem;
    max-width: 560px;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.9s var(--ease),
        transform 0.9s var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms);
}
[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   CHAPTER 00 — INTRO
   ========================================================================== */
.chapter-intro {
    max-width: 1100px;
}
.hero-name {
    font-size: clamp(3.6rem, 13vw, 9.5rem);
    line-height: 0.92;
    letter-spacing: -0.03em;
}
.hero-dot {
    color: var(--accent);
    animation: dot-pulse 2.4s ease-in-out infinite;
}
@keyframes dot-pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.25;
    }
}

.hero-role-line {
    margin-top: 26px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
}
.hero-role-static {
    color: var(--fg-dim);
}
.role-rotator {
    position: relative;
    display: inline-block;
    height: 1.4em;
    overflow: hidden;
    min-width: 260px;
}
.role-rotator-item {
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-2);
    font-family: var(--font-display);
    transform: translateY(120%);
    opacity: 0;
    transition:
        transform 0.6s var(--ease),
        opacity 0.6s var(--ease);
}
.role-rotator-item.is-active {
    transform: translateY(0);
    opacity: 1;
}
.role-rotator-item.is-exit {
    transform: translateY(-120%);
    opacity: 0;
}

.hero-desc {
    margin-top: 30px;
    max-width: 540px;
    color: var(--fg-dim);
    font-size: 1.02rem;
}

.scroll-cue {
    margin-top: 70px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    color: var(--fg-faint);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.scroll-cue-line {
    width: 1px;
    height: 56px;
    background: var(--border);
    position: relative;
    overflow: hidden;
}
.scroll-cue-line i {
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: var(--accent);
    animation: cue-drop 1.8s var(--ease-soft) infinite;
}
@keyframes cue-drop {
    0% {
        top: -20px;
    }
    100% {
        top: 56px;
    }
}

/* ==========================================================================
   CHAPTER 01 — MOTION MUSEUM
   ========================================================================== */
.museum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 34px;
    max-width: 1400px;
}

.museum-card {
    position: relative;
    border-radius: var(--radius-m);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    transition:
        transform 0.6s var(--ease),
        border-color 0.5s,
        box-shadow 0.6s,
        opacity 0.8s var(--ease);
    transition-delay:
        calc(var(--i, 0) * 80ms), 0s, 0s, calc(var(--i, 0) * 80ms);
    opacity: 0;
    transform: translateY(40px);
}
.museum-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.museum-card:hover {
    transform: translateY(-8px) scale(1.015);
    border-color: var(--border-strong);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.museum-card--frame {
    padding: 14px;
}
.museum-card--frame .museum-media {
    border-radius: calc(var(--radius-m) - 10px);
    border: 1px solid var(--border-strong);
}
.museum-card--float:hover {
    transform: translateY(-8px) rotate(-0.4deg) scale(1.015);
}
.museum-card--glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(6px);
}

.museum-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
}
.museum-media img,
.museum-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.museum-media video {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s var(--ease);
}
.museum-card:hover .museum-media video {
    opacity: 1;
}

.museum-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px 24px;
    background: linear-gradient(to top, rgba(2, 2, 6, 0.92), transparent);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
}
.museum-idx {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--fg-faint);
}
.museum-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-top: 4px;
}
.museum-cat {
    font-size: 0.8rem;
    color: var(--fg-dim);
    margin-top: 2px;
}
.museum-enter {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.3s,
        transform 0.4s var(--ease);
}
.museum-card:hover .museum-enter {
    background: var(--accent);
    border-color: var(--accent);
    transform: rotate(45deg);
}

/* ==========================================================================
   PROJECT OVERLAY
   ========================================================================== */
.project-overlay {
    position: fixed;
    inset: 0;
    z-index: 7000;
    background: rgba(4, 4, 9, 0.97);
    opacity: 0;
    pointer-events: none;
    transform: scale(0.97);
    transition:
        opacity 0.55s var(--ease),
        transform 0.55s var(--ease);
    overflow-y: auto;
}
.project-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}
.project-close {
    position: fixed;
    top: 28px;
    right: clamp(20px, 4vw, 56px);
    z-index: 20;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        transform 0.4s var(--ease),
        background 0.3s;
}
.project-close:hover {
    background: var(--accent);
    transform: rotate(90deg);
}
.project-close span {
    position: absolute;
    width: 16px;
    height: 1.5px;
    background: var(--fg);
}
.project-close span:first-child {
    transform: rotate(45deg);
}
.project-close span:last-child {
    transform: rotate(-45deg);
}

.project-overlay-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 120px clamp(20px, 5vw, 40px) 100px;
}
.project-hero-media {
    width: 100%;
    border-radius: var(--radius-l);
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #000;
    margin-bottom: 44px;
}
.project-hero-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.project-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}
.project-meta-row h2 {
    font-size: clamp(2rem, 5vw, 3.2rem);
}
.project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.project-tags span {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid var(--border-strong);
    border-radius: 100px;
    padding: 6px 14px;
    color: var(--fg-dim);
}
.project-blurb {
    font-size: 1.15rem;
    color: var(--fg-dim);
    max-width: 680px;
    margin: 26px 0 50px;
}

.project-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}
.project-details h4 {
    font-family: var(--font-display);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent);
    margin-bottom: 12px;
}
.project-details p {
    color: var(--fg-dim);
    line-height: 1.7;
}
.project-details .full-span {
    grid-column: 1 / -1;
}
.project-tools {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.project-tools span {
    font-size: 0.8rem;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 100px;
}

/* ==========================================================================
   CHAPTER 02 — PROCESS
   ========================================================================== */
.process-list {
    max-width: 900px;
}
.process-step {
    display: flex;
    gap: 36px;
    padding: 34px 0;
    border-top: 1px solid var(--border);
    align-items: flex-start;
}
.process-step:last-child {
    border-bottom: 1px solid var(--border);
}
.process-number {
    font-family: var(--font-display);
    font-size: 2.6rem;
    color: transparent;
    -webkit-text-stroke: 1px var(--border-strong);
    flex-shrink: 0;
    width: 90px;
}
.process-step h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}
.process-step p {
    color: var(--fg-dim);
    max-width: 560px;
}

/* ==========================================================================
   CHAPTER 03 — PLAYGROUND
   ========================================================================== */
.playground-toys {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1400px;
}
.toy-card {
    position: relative;
    height: 380px;
    border-radius: var(--radius-m);
    overflow: hidden;
    background: var(--bg-soft);
    border: 1px solid var(--border);
}
.toy-card canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.toy-label {
    position: absolute;
    left: 16px;
    bottom: 16px;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    color: var(--fg-faint);
    background: rgba(5, 5, 10, 0.6);
    padding: 6px 12px;
    border-radius: 100px;
    opacity: 0;
    transition: opacity 0.3s;
}
.toy-card:hover .toy-label {
    opacity: 1;
}
.goo-stage {
    position: absolute;
    inset: 0;
    filter: url(#goo-filter);
}

/* Reward shown once every blob has been dragged into one connected mass.
   Sits outside .goo-stage so the goo filter doesn't blur/distort it. */
.goo-reveal {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 6;
    width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.7);
    transition:
        opacity 0.45s var(--ease),
        transform 0.45s var(--ease);
}
.goo-reveal.is-active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.goo-reveal-mark {
    width: 40px;
    height: 40px;
    color: var(--accent);
}
.goo-reveal-word {
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    color: var(--fg);
}
.goo-reveal-word em {
    font-style: normal;
    font-weight: 400;
    color: var(--fg-faint);
    margin-left: 2px;
}
.goo-reveal-tag {
    font-size: 0.68rem;
    color: var(--fg-faint);
    line-height: 1.45;
}
.goo-blob {
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--accent);
    top: 0;
    left: 0;
    cursor: grab;
    will-change: transform;
}

/* ==========================================================================
   CHAPTER 04 — ABOUT
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1300px;
}
.about-copy h2 {
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    margin-bottom: 26px;
}
.about-copy p {
    color: var(--fg-dim);
    font-size: 1.05rem;
    margin-bottom: 20px;
    max-width: 560px;
}
.about-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}
.about-skills span {
    font-size: 0.8rem;
    border: 1px solid var(--border-strong);
    padding: 8px 16px;
    border-radius: 100px;
    color: var(--fg-dim);
}
.about-mark {
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-mark-svg {
    width: clamp(180px, 22vw, 320px);
    height: auto;
    color: var(--accent);
    animation: mark-breathe 6s ease-in-out infinite;
}
@keyframes mark-breathe {
    0%,
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.05) rotate(2deg);
        opacity: 1;
    }
}

/* ==========================================================================
   CHAPTER 05 — CONTACT
   ========================================================================== */
.chapter-contact {
    align-items: flex-start;
}
.contact-headline {
    font-size: clamp(2.6rem, 8vw, 5.4rem);
    line-height: 0.98;
}
.contact-email {
    display: inline-block;
    margin-top: 34px;
    font-size: clamp(1.1rem, 2.4vw, 1.5rem);
    border-bottom: 1px solid var(--border-strong);
    padding-bottom: 6px;
    transition:
        border-color 0.3s,
        color 0.3s;
}
.contact-email:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.site-footer {
    position: relative;
    z-index: 1;
    padding: 40px clamp(20px, 6vw, 90px) 56px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 24px;
    font-size: 0.78rem;
    color: var(--fg-faint);
}
.site-footer-email {
    color: var(--fg-dim);
    transition: color 0.3s;
}
.site-footer-email:hover {
    color: var(--accent);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
    .chapter-nav {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-mark {
        order: -1;
        margin-bottom: 20px;
    }
    .about-mark-svg {
        width: 140px;
    }
    .project-details {
        grid-template-columns: 1fr;
    }
    .logo-word {
        display: none;
    }
}
@media (max-width: 560px) {
    .begin-btn {
        width: 150px;
        height: 150px;
        font-size: 0.82rem;
    }
    .say-hello {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
