/* ═══════════════════════════════════════════════════════════
   BAYNHAM.STUDIO — Styles
   Dark, cinematic, abstract portfolio
   ═══════════════════════════════════════════════════════════ */

/* ── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg:      #0a0a0a;
    --bg-2:    #111111;
    --text:    #e8e8e8;
    --text-dim:#666666;
    --accent:  #5ce0d6;  /* teal from VEX */
    --accent-2:#f472b6;  /* pink secondary */
    --font:    'Space Grotesk', sans-serif;
    --mono:    'JetBrains Mono', monospace;
    --nav-h:   60px;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #333 var(--bg);
}

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

a { color: inherit; text-decoration: none; }
img, video { display: block; width: 100%; height: 100%; object-fit: cover; }
::selection { background: var(--accent); color: var(--bg); }

/* transition-overlay removed — hero-expand handles this now */

/* ── Hero Video Expand (landing → scroller transition) ── */
.hero-expand {
    position: relative;
    z-index: 1;
    background: var(--bg);
}

.hero-expand-scroll {
    height: 180vh;
    position: relative;
}

.hero-expand-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.hero-expand-box {
    position: fixed;
    z-index: 3;
    width: 280px;
    height: 380px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
}

.hero-expand-box video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

/* ── Checker Plane Background ────────────────────────── */
.checker-wrap {
    position: relative;
}

.checker-wrap .section {
    position: relative;
    z-index: 1;
    background: transparent;
}

.checker-canvas {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: block;
    margin-bottom: -100vh; /* overlap — content flows on top */
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
}

.checker-wrap .section,
.checker-wrap .footer {
    position: relative;
    z-index: 1;
    background: transparent;
}

/* ── Rainbow Wave Background ─────────────────────────── */
.rainbow-wrap {
    position: relative;
}

.rainbow-canvas {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: block;
    margin-bottom: -100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
}

.rainbow-wrap .section,
.rainbow-wrap .footer {
    position: relative;
    z-index: 1;
    background: transparent;
}

/* ── Film Grain Overlay ───────────────────────────────── */
.grain {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.035;
    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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px;
    /* mix-blend-mode: overlay removed — at 0.035 opacity the blend is imperceptible,
       but forces full-viewport recompositing on every scroll frame */
}

/* ── Navigation ───────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(24px, 4vw, 60px);
    height: var(--nav-h);
    mix-blend-mode: difference;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav--visible {
    transform: translateY(0);
}

.nav-logo {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #fff;
}

.nav-section-wrap {
    position: relative;
}

.nav-current {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.8);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 0;
    transition: color 0.3s;
}

.nav-current:hover { color: #fff; }

.nav-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 20px;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.2s, transform 0.2s;
    min-width: 160px;
    margin-top: 4px;
}

.nav-section-wrap:hover .nav-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-link {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.5);
    transition: color 0.3s;
    padding: 6px 0;
    white-space: nowrap;
}

.nav-link:hover { color: #fff; }

.nav-link--active {
    color: var(--accent);
}

.nav-num {
    color: var(--accent);
    margin-right: 6px;
    font-size: 10px;
}

/* Nav audio controls — centered, always visible once loaded */
.nav-audio {
    position: fixed;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    height: var(--nav-h);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 101;
}

.nav-audio-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #fff;
    padding: 6px;
    cursor: pointer;
    transition: opacity 0.3s;
    opacity: 0.5;
    pointer-events: auto;
    position: relative;
}

.nav-audio-btn svg { width: 14px; height: 14px; }
.nav-audio-btn:hover { opacity: 1; }
.nav-audio-btn--skip svg { width: 11px; height: 11px; }
.nav-audio-btn--skip { opacity: 0.35; }
.nav-audio-btn--skip:hover { opacity: 0.8; }

/* Volume slider dropdown */
.nav-vol-wrap {
    position: relative;
}

.nav-vol-slider {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 8px;
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    transform: translateX(-50%) translateY(4px);
    margin-top: 6px;
}

.nav-vol-wrap:hover .nav-vol-slider {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Vertical range input */
.nav-vol-slider input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    outline: none;
    transform: rotate(-90deg);
    transform-origin: center;
    margin: 38px -28px;
}

.nav-vol-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 6px rgba(92, 224, 214, 0.4);
}

.nav-vol-slider input[type="range"]::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 6px rgba(92, 224, 214, 0.4);
}

.nav-vol-slider input[type="range"]::-webkit-slider-runnable-track {
    background: linear-gradient(to right, var(--accent), var(--accent)) no-repeat;
    border-radius: 2px;
    height: 4px;
}

.nav-vol-slider input[type="range"]::-moz-range-track {
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    height: 4px;
}

/* EQ bars */
.nav-eq {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.nav-eq-bar {
    width: 2px;
    background: var(--accent);
    border-radius: 1px;
    height: 3px;
}

.nav-eq--playing .nav-eq-bar {
    animation: eqBounce 0.8s ease-in-out infinite;
}

.nav-eq--playing .nav-eq-bar:nth-child(1) { animation-duration: 0.6s; }
.nav-eq--playing .nav-eq-bar:nth-child(2) { animation-duration: 0.8s; animation-delay: 0.1s; }
.nav-eq--playing .nav-eq-bar:nth-child(3) { animation-duration: 0.5s; animation-delay: 0.2s; }
.nav-eq--playing .nav-eq-bar:nth-child(4) { animation-duration: 0.7s; animation-delay: 0.05s; }

@keyframes eqBounce {
    0%, 100% { height: 3px; }
    50% { height: 14px; }
}

.nav-track-name {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.4);
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1;
}

/* Unmute toast */
.unmute-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s, transform 0.5s;
}

.unmute-toast--visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.unmute-toast-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    padding: 12px 24px;
    color: rgba(255,255,255,0.7);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.unmute-toast-btn:hover {
    background: rgba(255,255,255,0.12);
    color: var(--text);
    border-color: var(--accent);
}

.unmute-toast-btn svg {
    flex-shrink: 0;
    color: var(--accent);
}

/* ── Landing ──────────────────────────────────────────── */
.landing-wrapper {
    position: relative;
    background: var(--bg);
}

.landing-scroll-space {
    height: 80vh;
    position: relative;
}

.landing {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Dark overlay that fades in on scroll */
.landing-fade {
    position: absolute;
    inset: 0;
    background: var(--bg);
    opacity: 0;
    z-index: 5;
    pointer-events: none;
}

/* ── 3D Topographic Parallax ─────────────────────────── */
.topo-viewport {
    position: absolute;
    inset: 0;
    perspective: 2000px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;
}

.topo-canvas {
    position: relative;
    width: 800px;
    height: 500px;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transform: rotateX(55deg) rotateZ(-25deg);
    opacity: 0;
    pointer-events: none;
}

.topo-layer {
    position: absolute;
    inset: 0;
    border: none;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
    pointer-events: none;
}

.topo-layer-vid {
    filter: grayscale(1) contrast(1.2) brightness(0.5);
    overflow: hidden;
}

.topo-layer-vid video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topo-layer-vid-overlay {
    background: rgba(92, 224, 214, 0.08);
    filter: contrast(1.1) brightness(0.7);
    opacity: 0.6;
    mix-blend-mode: screen;
}

.topo-layer-vid-top {
    background: rgba(255,255,255,0.02);
    filter: contrast(1.3) brightness(0.8);
    opacity: 0.4;
    mix-blend-mode: overlay;
}

.topo-contours {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: repeating-radial-gradient(
        circle at 50% 50%,
        transparent 0, transparent 40px,
        rgba(255,255,255,0.05) 41px,
        transparent 42px
    );
    transform: translateZ(120px);
    pointer-events: none;
}

/* Interface grid overlay */
.topo-grid {
    position: absolute;
    inset: 0;
    padding: clamp(24px, 4vw, 60px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr auto;
    z-index: 2;
    pointer-events: none;
}

.topo-grid-tl {
    font-family: var(--font);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--text);
}

.topo-grid-tr {
    text-align: right;
    font-family: var(--mono);
    color: var(--accent);
    font-size: 11px;
    letter-spacing: 0.05em;
    line-height: 1.8;
}

.landing-title {
    grid-column: 1 / -1;
    align-self: center;
    display: flex;
    flex-direction: column;
    line-height: 0.85;
    letter-spacing: -0.04em;
    mix-blend-mode: difference;
}

.landing-title-line {
    font-size: clamp(60px, 14vw, 200px);
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.landing-title-line--outline {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--text);
    text-stroke: 1.5px var(--text);
}

.topo-grid-bottom {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.topo-grid-bl {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    line-height: 1.8;
}

/* Hero title — fixed overlay that persists through video expand + hold */
.hero-title-fixed {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: 6;
    pointer-events: none;
    padding: clamp(24px, 4vw, 60px);
}

.hero-title-fixed .landing-title {
    mix-blend-mode: difference;
    align-items: flex-start;
}

.topo-cta-group {
    position: fixed;
    bottom: clamp(24px, 4vw, 60px);
    right: clamp(24px, 4vw, 60px);
    display: flex;
    gap: 12px;
    z-index: 50;
}

.topo-cta {
    display: inline-block;
    pointer-events: auto;
    cursor: pointer;
    position: relative;
    z-index: 20;
    background: var(--text);
    color: var(--bg);
    padding: 14px 32px;
    font-family: var(--font);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-decoration: none;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 85% 100%, 0 100%);
    transition: background 0.3s, color 0.3s, transform 0.3s;
}

.topo-cta:hover {
    background: var(--accent);
    color: var(--bg);
    transform: translateY(-5px);
}

/* Scroll hint line */
.topo-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--text), transparent);
    z-index: 2;
    animation: topoFlow 2s infinite ease-in-out;
}

@keyframes topoFlow {
    0%, 100% { transform: scaleY(0); transform-origin: top; }
    50%      { transform: scaleY(1); transform-origin: top; }
    51%      { transform: scaleY(1); transform-origin: bottom; }
}

/* Scramble chars */
.scramble-char {
    display: inline-block;
    min-width: 0.6em;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Old scroll hint — kept for reference */
.landing-scroll-hint {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--text-dim);
    opacity: 0;
    animation: fadeUp 1s 1.2s forwards;
}

.landing-scroll-hint--killed {
    animation: none;
}

.landing-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--text-dim), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
    50%      { opacity: 1; transform: scaleY(1); }
}

/* ── Scroller — Full-screen section switcher ─────────── */
/* ── Video Hold — full-screen pinned video with title ──── */
.video-hold {
    position: relative;
    z-index: 4;
    background: var(--bg);
}

.video-hold-scroll {
    height: 180vh;
    position: relative;
}

.video-hold-fixed {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    opacity: 0;
}

.video-hold-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 0.85;
    letter-spacing: -0.04em;
    text-align: center;
    mix-blend-mode: difference;
}

.video-hold-title-line {
    font-size: clamp(60px, 14vw, 200px);
    font-weight: 700;
    color: var(--text);
}

.video-hold-title-line--outline {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--text);
    text-stroke: 1.5px var(--text);
}

.scroller {
    position: relative;
    z-index: 4;
}

.scroller-scroll {
    height: 500vh;
    position: relative;
}

.scroller-fixed {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: transparent;
    z-index: 4;
    opacity: 0;
}

/* Fixed video background — stays locked, sections scroll over it */
.scroller-video-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0;
}

.scroller-video-bg--visible {
    /* opacity controlled by GSAP for precise timing */
}

.scroller-video-bg video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.scroller-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}

/* Grid layout — 3 columns */
.scroller-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    height: 100%;
    padding: 0 clamp(24px, 4vw, 60px);
    align-items: center;
}

/* Side columns — vertically centered track */
.scroller-col {
    height: 50vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.scroller-col--left { justify-content: flex-start; }
.scroller-col--right { justify-content: flex-end; }

.scroller-track {
}

.scroller-label {
    font-family: var(--font);
    font-size: clamp(14px, 2vw, 20px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0em;
    color: var(--text);
    opacity: 0.25;
    padding: 6px 0;

    transition: opacity 0.3s;
    line-height: 1.4;
    user-select: none;
}

.scroller-label--active {
    opacity: 1;
}

.scroller-col--left .scroller-label--active {
    padding-left: 16px;
    position: relative;
}

.scroller-col--left .scroller-label--active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--text);
    border-radius: 50%;
}

.scroller-col--right .scroller-label--active {
    padding-right: 16px;
    position: relative;
}

.scroller-col--right .scroller-label--active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--text);
    border-radius: 50%;
}

/* Center title */
.scroller-center {
    display: grid;
    place-items: center;
    text-align: center;
    height: 50vh;
    overflow: hidden;
    position: relative;
}

.scroller-title {
    position: absolute;
    opacity: 0;
    visibility: hidden;
}

.scroller-title--active {
    opacity: 1;
    visibility: visible;
}

.scroller-body {
    font-size: clamp(13px, 1.2vw, 16px);
    line-height: 1.7;
    color: rgba(255,255,255,0.5);
    max-width: 440px;
    margin: 16px auto 0;
    font-weight: 400;
}

.scroller-title h2 {
    font-size: clamp(48px, 9vw, 120px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0;
}

.scroller-word-mask {
    display: inline-block;
    overflow: hidden;
    vertical-align: middle;
}

.scroller-word {
    display: inline-block;
    vertical-align: middle;
}

/* Progress bar */
.scroller-progress {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text);
    z-index: 3;
}

.scroller-progress-bar {
    width: 120px;
    height: 2px;
    background: rgba(255,255,255,0.2);
    position: relative;
}

.scroller-progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    background: var(--text);
    height: 100%;
    transition: width 0.4s ease;
}

@media (max-width: 768px) {
    .scroller-grid {
        grid-template-columns: 1fr;
    }
    .scroller-col { display: none; }
    .scroller-center { width: 100%; }
    .scroller-title {
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .scroller-title h2 { font-size: clamp(36px, 12vw, 80px); }

    /* Hero expand — skip the pin/expand on mobile, just show video inline */
    .hero-expand-scroll { height: auto; }
    .hero-expand-sticky {
        position: relative !important;
        height: auto;
        padding: 10vh clamp(16px, 4vw, 60px);
    }
    .hero-expand-box {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
        border-radius: 12px !important;
        opacity: 1 !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        z-index: 1 !important;
    }

    /* Video expand — skip the pin/expand, show inline at proper aspect ratio */
    .vid-expand-scroll { height: auto; }
    .vid-expand-sticky {
        position: relative !important;
        height: auto;
        padding: 10vh clamp(16px, 4vw, 60px);
    }
    .vid-expand-box {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
        border-radius: 12px !important;
    }
}

/* ── Sections (shared) ────────────────────────────────── */
.section {
    position: relative;
    z-index: 1;
    background: var(--bg);
    padding: clamp(80px, 10vh, 140px) clamp(24px, 4vw, 60px);
    min-height: 100vh;
}

.section-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: 60px;
    text-transform: uppercase;
}

.section-num {
    color: var(--accent);
    margin-right: 10px;
}

/* ── Video Expand Transition ──────────────────────────── */
.vid-expand {
    position: relative;
    z-index: 1;
    background: transparent;
}

/* Duplicate ethereal bg for this section */
.vid-expand .ethereal-bg-mirror {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.35;
    z-index: 0;
}

.vid-expand-scroll {
    height: 300vh;
    position: relative;
}

.vid-expand-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.vid-expand-box {
    width: 280px;
    height: 380px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(0,0,0,0.4);
    position: relative;
}

.vid-expand-box video,
.vid-expand-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    pointer-events: none;
}

.vid-expand-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ── Clients Gallery Carousel ─────────────────────────── */
.section--clients {
    overflow: hidden;
    padding-top: clamp(120px, 15vh, 200px);
}

.gallery-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: clamp(32px, 5vh, 60px);
}

.gallery-title {
    font-size: clamp(24px, 4vw, 48px);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 12px;
}

.gallery-desc {
    max-width: 480px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-dim);
}

.gallery-nav {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.gallery-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    color: var(--text-dim);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

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

.gallery-btn:disabled {
    opacity: 0.3;
    cursor: default;
    transform: none;
}

.gallery-viewport {
    overflow: hidden;
    cursor: grab;
}

.gallery-viewport:active {
    cursor: grabbing;
}

.gallery-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.gallery-card {
    flex: 0 0 320px;
    min-height: 430px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    text-decoration: none;
    color: var(--text);
    border: 2px solid transparent;
    transition: border-color 0.3s, transform 0.3s, opacity 0.3s;
    opacity: 0.5;
    transform: scale(0.95);
}

.gallery-card--active {
    border-color: var(--accent);
    opacity: 1;
    transform: scale(1);
}

.gallery-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.gallery-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.4) 40%, transparent 100%);
    z-index: 1;
}

.gallery-card-gradient--solid {
    background: linear-gradient(135deg, #151515 0%, #1a1a1a 50%, #111 100%);
}

.gallery-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    width: 100%;
}

.gallery-card-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.gallery-card-desc {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255,255,255,0.65);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-card-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text);
    font-family: var(--mono);
    letter-spacing: 0.03em;
}

.gallery-card-link svg {
    transition: transform 0.3s;
}

.gallery-card:hover .gallery-card-link svg {
    transform: translateX(4px);
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    padding: 0;
}

.gallery-dot--active {
    background: var(--accent);
}

@media (max-width: 768px) {
    .gallery-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .gallery-card {
        flex: 0 0 280px;
        min-height: 380px;
    }
}

/* ── Timeline (Path) ─────────────────────────────────── */
/* section--path removed — merged into about-path */

.timeline-header {
    margin-bottom: clamp(48px, 8vh, 80px);
}

.timeline-heading {
    font-size: clamp(24px, 4vw, 48px);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 12px;
}

.timeline-subheading {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-dim);
    max-width: 480px;
}

.timeline {
    position: relative;
    padding-bottom: 40px;
}

/* Vertical line */
.timeline-line {
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255,255,255,0.08);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 5%, #000 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.timeline-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, var(--accent), var(--accent-2));
    border-radius: 2px;
}

/* All dots on the line share the same structure */
.timeline-entry {
    position: relative;
}

/* Removes default spacing — individual nodes handle it */
.timeline-content {
    padding: 0;
}

/* Every node on the line — year or bullet */
.timeline-node {
    position: relative;
    padding-left: 48px;
    padding-top: clamp(20px, 3vh, 36px);
    padding-bottom: clamp(20px, 3vh, 36px);
}

/* The dot on the line */
.timeline-node::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid rgba(255,255,255,0.15);
    z-index: 2;
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

/* Year node — slightly larger label */
.timeline-node--year::before {
    width: 16px;
    height: 16px;
}

.timeline-node-year {
    font-size: 13px;
    font-family: var(--mono);
    font-weight: 500;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.25);
    margin-bottom: 0;
    transition: color 0.3s;
}

.timeline-node p {
    font-size: clamp(14px, 1.2vw, 16px);
    line-height: 1.8;
    color: rgba(255,255,255,0.45);
    max-width: 520px;
    transition: color 0.3s;
}

/* Active states */
.timeline-node--active::before {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 12px rgba(92, 224, 214, 0.4);
}

.timeline-node--active .timeline-node-year {
    color: var(--accent);
}

.timeline-node--active p {
    color: var(--text);
}

/* Trajectory divider */
.timeline-divider {
    padding-top: clamp(100px, 15vh, 180px);
    padding-left: 32px;
    position: relative;
}

.timeline-divider-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 6px 16px;
    border: 1px solid rgba(92, 224, 214, 0.25);
    border-radius: 4px;
}

/* Future entries — dashed dots, pink accent */
.timeline-entry--future .timeline-node::before {
    border-style: dashed;
    border-color: rgba(255,255,255,0.1);
}

.timeline-entry--future .timeline-node--active::before {
    border-style: solid;
    border-color: var(--accent-2);
    background: var(--accent-2);
    box-shadow: 0 0 12px rgba(244, 114, 182, 0.4);
}

.timeline-entry--future .timeline-node-year {
    color: rgba(255,255,255,0.12);
}

.timeline-entry--future .timeline-node--active .timeline-node-year {
    color: var(--accent-2);
}

.timeline-entry--future .timeline-node p {
    color: rgba(255,255,255,0.25);
    font-style: italic;
}

.timeline-entry--future .timeline-node--active p {
    color: rgba(255,255,255,0.6);
}

@media (max-width: 768px) {
    .timeline-entry {
        padding-left: 40px;
    }
    .timeline-content {
        padding-left: 40px;
    }
}

/* ── Rolling Product List ─────────────────────────────── */
.rolling-list {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.rolling-item {
    position: relative;
    display: block;
    border-bottom: 1px solid #1e1e1e;
    padding: 24px 0;

    text-decoration: none;
    color: inherit;
}

.rolling-item:first-child {
    border-top: 1px solid #1e1e1e;
}

/* Rolling text — two lines stacked, hover slides up */
.rolling-text {
    position: relative;
    overflow: hidden;
    height: 60px;
}

.rolling-text-inner {
    transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

.rolling-item:hover .rolling-text-inner {
    transform: translateY(-50%);
}

.rolling-line {
    height: 60px;
    display: flex;
    align-items: center;
}

.rolling-line h2 {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--text);
}

.rolling-line--hover h2 {
    font-style: italic;
    color: var(--accent);
}

/* Category label — right side, fades on hover */
.rolling-category {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    transition: opacity 0.3s;
}

.rolling-item:hover .rolling-category {
    opacity: 0;
}

/* Image reveal on hover — slides in from right */
.rolling-img {
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 50%;
    z-index: 20;
    width: 200px;
    height: 130px;
    transform: translateY(-50%) translateX(16px) rotate(3deg) scale(0.95);
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.rolling-item:hover .rolling-img {
    opacity: 1;
    transform: translateY(-50%) translateX(0) rotate(0deg) scale(1);
}

.rolling-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s;
}

.rolling-item:hover .rolling-img img {
    filter: grayscale(0%);
}

/* Teal tint overlay on image */
.rolling-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(92, 224, 214, 0.1);
    mix-blend-mode: overlay;
}

/* Placeholder for missing images */
.rolling-img img[src*="placeholder"] {
    background: linear-gradient(135deg, #151515, #1e1e1e, #151515);
}

/* .tag is still used in clients section */
.tag {
    font-family: var(--mono);
    font-size: 11px;
    padding: 4px 10px;
    border: 1px solid #333;
    border-radius: 3px;
    color: var(--text-dim);
    letter-spacing: 0.02em;
}

/* ── About + Path Merged Section ──────────────────────── */
/* Cover bar — sticky inside ap-left, sits behind text but over timeline */
.ap-cover-bar {
    position: sticky;
    top: 0;
    height: calc(50vh - 225px + 76px);
    margin-bottom: calc(-1 * (50vh - 225px + 76px));
    background: #070707;
    z-index: 5;
    pointer-events: none;
    width: 100vw;
    margin-left: calc(-1 * clamp(24px, 4vw, 60px));
}

.section--about-path {
    background: transparent;
    overflow: visible;
    padding-top: calc(50vh - 225px);
}

.ap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: start;
}

.ap-left {
    position: relative;
    min-width: 0;
}

.ap-heading {
    position: sticky;
    top: calc(50vh - 225px);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
    line-height: 1.1;
    margin-bottom: 28px;
    z-index: 7;
}


.ap-right {
    position: relative;
    min-width: 0;
    align-self: stretch;
}

.ap-about-content {
    position: sticky;
    top: calc(50vh - 225px + 76px);
    margin-top: 16px;
    z-index: 7;
}


.ap-about-text .about-lead {
    margin-bottom: 24px;
}

.ap-about-text p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.ap-path-marker {
    height: 1px;
    margin-top: 150vh;
    margin-bottom: -1px;
}



.ap-accordion {
    position: sticky;
    top: calc(50vh - 225px);
    display: flex;
    width: 100%;
    height: 450px;
    gap: 4px;
    border-radius: 12px;
    overflow: hidden;
    z-index: 7;
}

.ap-accordion .accordion-item {
    position: relative;
    flex: 0 0 60px;
    overflow: hidden;
    transition: flex 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.ap-accordion .accordion-item--active {
    flex: 1 0 0;
}

@media (max-width: 768px) {
    .ap-grid {
        grid-template-columns: 1fr;
    }
    .ap-accordion {
        position: relative;
        top: auto;
        height: 250px;
        margin-bottom: 40px;
    }
}

/* ── About ────────────────────────────────────────────── */
.about-lead {
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 24px;
    color: var(--text);
}

.about-text p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-dim);
    margin-bottom: 16px;
}

/* ── About Image Accordion ────────────────────────────── */
.about-accordion {
    display: flex;
    gap: 4px;
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-item {
    position: relative;
    flex: 0 0 60px;
    overflow: hidden;

    transition: flex 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-item--active {
    flex: 1 0 0;
}

.accordion-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%) brightness(0.7);
    transition: filter 0.5s;
}

.accordion-item--active img {
    filter: grayscale(0%) brightness(0.85);
}

.accordion-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
    pointer-events: none;
}

.accordion-label {
    position: absolute;
    color: #fff;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

/* Active: label at bottom center, horizontal */
.accordion-item--active .accordion-label {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
}

/* Inactive: label rotated vertically */
.accordion-item:not(.accordion-item--active) .accordion-label {
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
    font-size: 13px;
    opacity: 0.7;
}

/* Placeholder for missing accordion images */
.accordion-item img[src*="placeholder"] {
    background: linear-gradient(135deg, #151515, #1e1e1e, #151515);
}

.accordion-item .media-placeholder {
    font-size: 10px !important;
}

/* ── Stack Marquee ────────────────────────────────────── */
.stack-marquee {
    overflow: hidden;
    padding: 24px 0;
    border-top: 1px solid #1e1e1e;
    border-bottom: 1px solid #1e1e1e;
}

.stack-track {
    display: flex;
    gap: 0;
    white-space: nowrap;
    animation: marqueeScroll 30s linear infinite;
    width: max-content;
}

.stack-item {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text-dim);
    padding: 0 12px;
    letter-spacing: 0.03em;
}

.stack-sep {
    color: #333;
    padding: 0 4px;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ── Testimonials / Reviews ───────────────────────────── */
.section--reviews {
    overflow: hidden;
}

.testimonials {
    position: relative;
    width: 100%;
    height: 500px;
    margin: 0 auto;
}

.testimonial-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 340px;
    height: 340px;
    padding: 32px;
    border: 1.5px solid #2a2a2a;
    background: var(--bg-2);

    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    clip-path: polygon(40px 0%, calc(100% - 40px) 0%, 100% 40px, 100% 100%, calc(100% - 40px) 100%, 40px 100%, 0 100%, 0 0);
    display: flex;
    flex-direction: column;
}

.testimonial-card--center {
    background: var(--accent);
    border-color: var(--accent);
    z-index: 10;
}

.testimonial-card--center .testimonial-quote,
.testimonial-card--center .testimonial-by {
    color: var(--bg);
}

/* Corner slash line */
.testimonial-card::before {
    content: '';
    position: absolute;
    right: -1px;
    top: 39px;
    width: 58px;
    height: 1.5px;
    background: #2a2a2a;
    transform-origin: top right;
    transform: rotate(45deg);
}

.testimonial-card--center::before {
    background: var(--bg);
    opacity: 0.3;
}

.testimonial-avatar {
    width: 48px;
    height: 56px;
    object-fit: cover;
    object-position: top;
    margin-bottom: 16px;
    filter: grayscale(100%);
}

.testimonial-card--center .testimonial-avatar {
    filter: grayscale(0%);
    box-shadow: 3px 3px 0px var(--bg);
}

.testimonial-quote {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text);
    flex: 1;
}

.testimonial-by {
    font-family: var(--mono);
    font-size: 12px;
    font-style: italic;
    color: var(--text-dim);
    margin-top: 16px;
}

/* Nav buttons */
.testimonials-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.testimonials-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1.5px solid #2a2a2a;
    color: var(--text-dim);

    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.testimonials-btn:hover {
    border-color: var(--accent);
    color: var(--text);
}

@media (max-width: 768px) {
    .testimonial-card {
        width: 270px;
        height: 270px;
        padding: 24px;
    }
    .testimonial-quote { font-size: 14px; }
    .testimonials { height: 400px; }
}

/* ── Contact ──────────────────────────────────────────── */
.section--contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: end;
    margin-bottom: 80px;
}

.contact-headline {
    font-size: clamp(48px, 8vw, 120px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 0.95;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-name {
    font-size: clamp(16px, 1.8vw, 22px);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.contact-email {
    font-family: var(--mono);
    font-size: clamp(14px, 1.6vw, 18px);
    color: var(--accent);
    letter-spacing: 0.02em;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
    width: fit-content;

}

.contact-email:hover {
    border-color: var(--accent);
}

.contact-sites {
    display: flex;
    gap: 20px;
    margin-top: 8px;
    margin-bottom: 20px;
}

.contact-sites a {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.03em;
    color: var(--text-dim);
    transition: color 0.3s;
}

.contact-sites a:hover {
    color: var(--accent);
}

.contact-socials {
    display: flex;
    gap: 16px;
}

.contact-social {
    color: var(--text-dim);
    transition: color 0.3s, transform 0.3s;

}

.contact-social:hover {
    color: var(--text);
    transform: translateY(-2px);
}

.contact-backlink {
    margin-top: 40px;
}

.contact-backlink a {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text-dim);
    letter-spacing: 0.03em;
    transition: color 0.3s;

}

.contact-backlink a:hover {
    color: var(--accent);
}

/* ── Footer ───────────────────────────────────────────── */
.footer {
    position: relative;
    z-index: 1;
    background: var(--bg);
    padding: 24px clamp(24px, 4vw, 60px);
    border-top: 1px solid #1a1a1a;
}

.footer-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-dim);
}

.footer-sep { opacity: 0.3; }

.footer-link {
    color: var(--text-dim);
    transition: color 0.3s;

}

.footer-link:hover { color: var(--accent); }

/* ── Section Reveal Animations ────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger--visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger--visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger--visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger--visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger--visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger--visible > *:nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger--visible > *:nth-child(7) { transition-delay: 0.48s; }
.reveal-stagger--visible > *:nth-child(8) { transition-delay: 0.56s; }

.reveal-stagger--visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {

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

    .about-accordion {
        height: 350px;
        order: -1;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }

    .landing-gradient--1 { width: 350px; height: 350px; }
    .landing-gradient--2 { width: 300px; height: 300px; }

    .rolling-text { height: 44px; }
    .rolling-line { height: 44px; }
    .rolling-line h2 { font-size: clamp(28px, 7vw, 40px); }
    .rolling-category { display: none; }
    .rolling-img { width: 140px; height: 90px; }

    .contact-headline {
        font-size: clamp(36px, 10vw, 80px);
    }
}

@media (max-width: 480px) {
    .section {
        padding: 60px 16px;
    }
}

/* ── Mobile Performance Overrides ────────────────────── */
@media (pointer: coarse) and (max-width: 1024px) {
    /* Kill film grain — mix-blend-mode: overlay causes full-viewport repaints */
    .grain {
        display: none;
    }

    /* Disable ethereal SVG filter — just show static tinted bg */
    .ethereal-filtered {
        filter: none;
    }

    /* Disable Three.js shader container — CSS gradient blobs are the fallback */
    .landing-bg canvas {
        display: none;
    }

    /* Simplify testimonial cards — remove expensive clip-path */
    .testimonial-card {
        clip-path: none;
        border-radius: 12px;
    }

    .testimonial-card::before {
        display: none;
    }
}
