@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@400;600;700&family=Oswald:wght@400;500;600;700&display=swap');

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

html,
body {
    margin: 0;
    padding: 0;
}

html {
    overflow-y: scroll;
    scroll-behavior: smooth;
}

body {
    font-family: 'Oswald', sans-serif;
    background-color: #F5FFFF;
    min-height: 100vh;
    color: #202427;
}

/* Loader: library → deck formation, click to enable sound and start */
.loader {
    position: fixed;
    inset: 0;
    z-index: 100;
    background-color: #1a1510;
    font-family: 'Oswald', sans-serif;
    cursor: none;
    perspective: 1400px;
}

/* Tablet/mobile: no centered "Click" ring or word trail on the library loader */
@media (max-width: 1024px) {
    .loader {
        cursor: pointer;
    }
    .loader-cursor {
        display: none !important;
    }
    .loader-cursor-trail {
        display: none !important;
    }
}

/* Pre-loader: full-screen same bg, 3 book icons; top-to-bottom reveal only when it closes */
.loader-pre {
    position: absolute;
    inset: 0;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1510;
    pointer-events: none;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.loader-pre__books {
    display: flex;
    align-items: flex-end;
    gap: 1vmin;
}

/* Same shape as loader library books: tall rectangle, solid white */
.loader-pre__book {
    width: 2vmin;
    height: 6vmin;
    background-color: #fff;
    transform-origin: center bottom;
}

.loader-pre__book--third {
    transform-origin: center bottom;
}

/* Library screen: wraps library + text + cursor; sits under first screen, revealed when first screen wipes up (same as about page) */
.loader-library-screen {
    position: absolute;
    inset: 0;
    z-index: 10;
}

.loader-library {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.loader-text {
    position: absolute;
    top: 3rem;
    z-index: 5;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.loader-text--line1 {
    left: 3rem;
    text-align: left;
    max-width: 24rem;
}

.loader-text--line2 {
    left: 3rem;
    top: 4.75rem; /* stacked just below line 1 */
    text-align: left;
    max-width: 26rem;
}

@media (max-width: 768px) {
    .loader-text {
        font-size: 1.15rem;
        bottom: 2rem;
    }
    .loader-text--line1 {
        left: 1.5rem;
        max-width: 85%;
    }
    .loader-text--line2 {
        right: 1.5rem;
        left: auto;
        max-width: 85%;
    }
}

@media (max-width: 480px) {
    .loader-text {
        font-size: 1.2rem;
        bottom: 1.75rem;
    }
}

/* Custom round cursor with label – follows mouse on loader */
.loader-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    pointer-events: none;
    width: 5.5rem;
    height: 5.5rem;
    display: block;
    transform: translate(-50%, -50%);
}

.loader-cursor__dot {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    /* Match site cursor glass style */
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.06),
        0 6px 18px rgba(0, 0, 0, 0.25);
}

.loader-cursor__label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #FFFFFF;
    white-space: nowrap;
}

/* Words left behind cursor – book-like trail */
.loader-cursor-trail {
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
}

.loader-cursor-trail__word {
    position: fixed;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(0.75rem, 1.2vw, 1rem);
    font-weight: 400;
    font-style: normal;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    transform: translate(-50%, -50%);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.loader-sound-hint {
    position: absolute;
    left: 50%;
    bottom: 1.75rem;
    transform: translateX(-50%);
    z-index: 5;
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    /* Shimmering light passing through the text */
    background: linear-gradient(120deg,
        rgba(255, 255, 255, 0.35),
        rgba(255, 255, 255, 0.95),
        rgba(255, 255, 255, 0.35)
    );
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: loaderSoundShimmer 2.2s linear infinite;
    white-space: nowrap;
}

@keyframes loaderSoundShimmer {
    0% {
        background-position: -100% 0;
    }
    50% {
        background-position: 50% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Site cursor – large circular button with text inside (desktop only) */
.site-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100001;
    pointer-events: none;
    width: 5.5rem;
    height: 5.5rem;
    display: block;
    position: fixed;
    transform: translate(-50%, -50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    /* Let the cursor visually adapt to whatever is underneath */
    mix-blend-mode: difference;
    pointer-events: none;
}
/* Desktop only — hide custom cursor + restore native cursor on tablet/mobile (≤1024px) */
@media (pointer: fine) and (min-width: 1025px) {
    body.ready .site-cursor {
        opacity: 1;
        visibility: visible;
    }
    body.ready,
    body.ready * {
        cursor: none !important;
    }
    .site-cursor__dot {
        position: absolute;
        inset: 0;
        margin: auto;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        /* Subtle glass outline; color is inverted via mix-blend-mode */
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        box-shadow:
            0 0 0 1px rgba(0, 0, 0, 0.06),
            0 6px 18px rgba(0, 0, 0, 0.25);
    }
    .site-cursor__label {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-family: 'Oswald', sans-serif;
        font-size: 0.8rem;
        font-weight: 600;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        /* With mix-blend-mode:difference on the wrapper, this text inverts
           smoothly over light and dark backgrounds */
        color: #FFFFFF;
        white-space: nowrap;
    }
}

@media (max-width: 1024px) {
    .site-cursor {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    body.ready,
    body.ready * {
        cursor: auto !important;
    }
}

.loader-book {
    position: absolute;
    width: 2vmin;
    height: 6vmin;
    background: #fff;
    transform-origin: center bottom;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 700;
    font-size: 0.85vmin;
    letter-spacing: 0.02em;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
    pointer-events: auto;
    cursor: default;
}

.loader-book-label {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #333;
    white-space: nowrap;
}

.loader-book-label--horizontal {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
}

.loader-book-label--meta {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    line-height: 1.5;
    white-space: normal;
}

.loader-book-label--right {
    text-align: right;
    margin-left: auto;
}

.loader-book--deck {
    z-index: 10;
    transform-origin: center center;
}

.loader-book--deck.loader-book--interactive {
    transform-origin: left center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover: slide/scale on all rectangles (interactive, after fly-out) */
.loader-book--deck.loader-book--interactive[data-deck-index="0"]:hover { transform: translateX(-10%) scale(1.02); box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.12); }
.loader-book--deck.loader-book--interactive[data-deck-index="1"]:hover { transform: translateX(10%) scale(1.02); box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.12); }
.loader-book--deck.loader-book--interactive[data-deck-index="2"]:hover { transform: translateX(-20%) scale(1.02); box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.12); }
.loader-book--deck.loader-book--interactive[data-deck-index="3"]:hover { transform: translateX(12%) scale(1.02); box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.12); }
.loader-book--deck.loader-book--interactive[data-deck-index="4"]:hover { transform: translateX(-20%) scale(1.02); box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.12); }
.loader-book--deck.loader-book--interactive[data-deck-index="5"]:hover { transform: translateX(12%) scale(1.02); box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.12); }
.loader-book--deck.loader-book--interactive[data-deck-index="6"]:hover { transform: translateX(-23%) scale(1.02); box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.12); }
.loader-book--deck.loader-book--interactive[data-deck-index="7"]:hover { transform: translateX(10%) scale(1.02); box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.12); }
.loader-book--deck.loader-book--interactive[data-deck-index="8"]:hover { transform: translateX(-10%) scale(1.02); box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.12); }

/* After fly-out on phone/tablet: loader rectangles match JS layout — no horizontal slide hover, labels stay centered */
@media (max-width: 1024px) {
    .loader-book.loader-book--deck {
        overflow: hidden;
        box-sizing: border-box;
    }
    .loader-book--deck .loader-book-label:not(.loader-book-label--meta) {
        font-family: 'Bebas Neue', sans-serif;
        font-weight: 700;
        letter-spacing: 0.02em;
        text-align: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-inline: 0.15rem;
    }
    .loader-book-label--right {
        text-align: center;
        margin-left: 0;
    }
    .loader-book--deck.loader-book--interactive[data-deck-index]:hover {
        transform: scale(1.02) !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
    }
}

/* Hero content – GSAP staggers in after loader ends, hidden until then */
.scroll-prompt,
.book-deck {
    opacity: 0;
}

.deck-card {
    opacity: 0;
}

.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

/* Homepage: nav hidden until about-me is in view — desktop (≥1025px) only.
   Tablet/phone: nav stays visible so the menu is always reachable (unchanged on wide screens). */
.top-nav {
    transition: transform 0.35s ease, opacity 0.35s ease;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

@media (min-width: 1025px) {
    .top-nav {
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
    }

    body.scrolled-to-about-me .top-nav {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
}

.scroll-prompt {
    position: fixed;
    bottom: 3rem;
    left: 2rem;
    z-index: 110;
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    max-width: 12rem;
}

/* Book deck navigation */
.book-deck {
    grid-area: deck;
    position: fixed;
    left: 50%;
    top: 0;
    width: 65vw;
    height: 100vh;
    margin-left: -32.5vw;
    transform: translateY(calc(-80% * 100vh / 9));
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 50;
    pointer-events: none;
}

/* Hide loader text and sound prompt once loader is done */
body.ready .loader-text,
body.ready .loader-cursor,
body.ready .loader-sound-hint {
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
}

body.ready .book-deck {
    pointer-events: auto;
}

/* Direct #work / #services or Back: no GSAP fly-out — show HTML hero deck until user scrolls past hero */
body.ready.home-loader-skipped:not(.scrolled-past-hero) .scroll-prompt,
body.ready.home-loader-skipped:not(.scrolled-past-hero) .book-deck,
body.ready.home-loader-skipped:not(.scrolled-past-hero) .deck-card {
    opacity: 1;
}

/* Allow loader books to receive hover/clicks – parent had pointer-events: none */
body.ready .loader-library {
    pointer-events: auto;
}

.deck-card {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    flex: 1;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
    min-height: 0;
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 11vh, 14rem);
    letter-spacing: 0.02em;
    text-decoration: none;
    color: #333;
    transition: transform 0.25s ease, box-shadow 0.25s ease, z-index 0.15s ease;
    transform-origin: left center;
    cursor: pointer;
}

/* Colored cards above gray so they receive hover */
.deck-card:not(.deck-card--gray) {
    z-index: 2;
}

.deck-card:hover {
    z-index: 10;
}

/* Gray books (non-interactive) - shorter so colored books stand out */
.deck-card--gray {
    background-color: #D9D9D9;
    cursor: default;
    flex: 0.6;
}

/* Staggered base positions - highly irregular, fills more screen */
.deck-card:nth-child(1) { transform: translateX(-8%); }
.deck-card:nth-child(2) { transform: translateX(22%); }
.deck-card:nth-child(3) { transform: translateX(2%); }
.deck-card:nth-child(4) { transform: translateX(26%); }
.deck-card:nth-child(5) { transform: translateX(-5%); }
.deck-card:nth-child(6) { transform: translateX(18%); }
.deck-card:nth-child(7) { transform: translateX(8%); }
.deck-card:nth-child(8) { transform: translateX(28%); }
.deck-card:nth-child(9) { transform: translateX(-2%); }

/* Hover: rectangles slide left or right (alternating) */
.deck-card:nth-child(1):hover { transform: translateX(-18%); }
.deck-card:nth-child(2):hover { transform: translateX(32%); }
.deck-card:nth-child(3):hover { transform: translateX(-18%) scale(1.02); box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.12); }
.deck-card:nth-child(4):hover { transform: translateX(38%) scale(1.02); box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.12); }
.deck-card:nth-child(5):hover { transform: translateX(-25%) scale(1.02); box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.12); }
.deck-card:nth-child(6):hover { transform: translateX(30%) scale(1.02); box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.12); }
.deck-card:nth-child(7):hover { transform: translateX(-15%) scale(1.02); box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.12); }
.deck-card:nth-child(8):hover { transform: translateX(38%); }
.deck-card:nth-child(9):hover { transform: translateX(-12%); }

/* Colors matching the design */
.deck-card--work {
    background-color: #FFDA2C;
}

.deck-card--about {
    background-color: #CED700;
}

.deck-card--services {
    background-color: #FF3CA4;
}

.deck-card--archive {
    background-color: #ACE8F6;
}

.deck-card--contact {
    background-color: #FF7D00;
}

/* About section – normal document flow, green full-height block (visible after transition) */
.about {
    width: 100vw;
    min-height: 100vh;
    height: 100vh;
    position: relative;
    background-color: #CED700;
}

.about-spacer {
    display: none;
}

/* About content – fixed when green overlay is shown, absolute inside section when in flow */
.about-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(2rem, 6vw, 5rem);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

/* When green card is expanded: raise page wrap above loader so about overlay can sit on top */
body.scrolled-past-hero:not(.about-flow) #pageTransitionWrap {
    position: relative;
    z-index: 150;
}

/* Scrolled past hero: green rectangle expanded, content fixed on top */
body.scrolled-past-hero:not(.about-flow) .about-content {
    position: fixed;
    inset: 0;
    z-index: 201;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Transition done: green fades into #about section, content lives in section */
body.about-flow .about-content {
    position: absolute;
    opacity: 1;
    visibility: visible;
}


.about-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: min(28%, 20rem);
    align-self: flex-end;
  
}

/* Card expanded: text visible after GSAP animation (no rule = GSAP controls). about-flow: ScrollTrigger reveals text. */
body.scrolled-past-hero:not(.about-flow) .about-text--small,
body.scrolled-past-hero:not(.about-flow) .about-line {
    opacity: 1;
}

.about-text--small,
.about-line {
    opacity: 0;
}

.about-text--small {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 400;
    line-height: 1.7;
    color: #202427;
    margin: 0;
}

.about-text--big {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1em;
    text-align: right;
}

.about-line {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 12vw, 12rem);
    letter-spacing: 0.02em;
    line-height: 0.9;
    color: #202427;
}

/* Irregular 3 levels – staggered line lengths */
.about-line:nth-child(1) { margin-right: 15%; }
.about-line:nth-child(2) { margin-right: 5%; }
.about-line:nth-child(3) { margin-right: 0; }

/* Green rectangle expanded to full screen (before transition to #about) */
.loader-book--deck.about-expanded {
    z-index: 200;
    overflow: visible;
    pointer-events: auto;
    transition: opacity 0.5s ease;
}
.loader-book--deck.about-expanded,
.loader-book--deck.about-expanded:hover {
    transform: none !important;
    box-shadow: none !important;
}
.loader-book--deck.about-expanded .loader-book-label {
    opacity: 0;
}

/* Transition: at 100vh the green card fades into #about section */
body.about-flow .loader-book--deck.about-expanded {
    opacity: 0;
    pointer-events: none;
}
body.about-flow .loader-library {
    overflow: visible;
}

/* Scrolled past hero (green overlay): loader transparent, hide deck/scroll prompt */
body.scrolled-past-hero:not(.about-flow) .loader {
    background: transparent;
    pointer-events: none;
}
body.scrolled-past-hero:not(.about-flow) .loader-book--deck.about-expanded {
    pointer-events: auto;
}
body.scrolled-past-hero .loader .loader-text,
body.scrolled-past-hero .loader .loader-cursor {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}
body.scrolled-past-hero .scroll-prompt,
body.scrolled-past-hero .book-deck {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
body.scrolled-past-hero:not(.about-flow) .loader-book--deck:not(.about-expanded) {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

/* After transition: hide loader so #about and #about-me scroll normally */
body.about-flow .loader {
    display: none !important;
}

/*
 * Tablet/phone (≤1024px): no fullscreen expand animation for the green ABOUT book (main.js).
 * The ABOUT rectangle stays in the deck like WORK/SERVICES; #about below is a normal section.
 * Text reveal in #about = ScrollTrigger only (initAboutContentTextReveal).
 */
body.about-static-mobile .about {
    min-height: 100dvh !important;
    height: auto;
    display: flex;
    flex-direction: column;
}

body.about-static-mobile #about .about-content {
    position: relative !important;
    inset: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 1 !important;
    transition: none;
    /* Fill the viewport: intro at top, headline block uses remaining height */
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    min-height: 100dvh;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: clamp(1.5rem, 5vw, 2.75rem) clamp(1.25rem, 4vw, 2rem);
    gap: clamp(1.25rem, 3vh, 2rem);
    flex-wrap: nowrap;
}

body.about-static-mobile .about-left {
    width: 100%;
    max-width: 42rem;
    align-self: flex-start;
    flex-shrink: 0;
}

body.about-static-mobile .about-text--small {
    font-size: clamp(1.12rem, 3.4vw, 1.4rem);
    line-height: 1.68;
    max-width: 100%;
}

body.about-static-mobile .about-text--big {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    width: 100%;
    min-height: min(52dvh, 28rem);
    gap: 0.03em;
}

body.about-static-mobile .about-line {
    font-size: clamp(3.5rem, 12.5vw, 7.5rem);
    line-height: 0.9;
}

body.about-static-mobile .about-line:nth-child(1),
body.about-static-mobile .about-line:nth-child(2),
body.about-static-mobile .about-line:nth-child(3) {
    margin-right: 0 !important;
}

/* Override desktop overlay rule that forces opacity:1 on lines after ~80px scroll — keep hidden until ScrollTrigger */
body.about-static-mobile.scrolled-past-hero:not(.about-flow) .about-text--small,
body.about-static-mobile.scrolled-past-hero:not(.about-flow) .about-line {
    opacity: 0;
}

/* About me – normal section below #about in document flow */
.about-me {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    background-color: #F5FFFF;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(3rem, 8vw, 6rem);
    padding: clamp(3rem, 10vw, 8rem);
    box-sizing: border-box;
}

.about-me__title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    letter-spacing: 0.15em;
    color: #202427;
    margin: 0;
    flex-shrink: 0;
}

.about-me__text {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: clamp(1.5rem, 4vw, 3.5rem);
    line-height: 1.25;
    color: #202427;
    margin: 0;
    max-width: 55%;
}

.about-me__text .about-me__word {
    display: inline-block;
}

.about-me__text .about-me__char {
    display: inline-block;
    opacity: 0.2;
}

/* Services – vertical list with bookmark-style hover, keeping book theme */
.services {
    width: 100vw;
    min-height: 100vh;
    background-color: #F5FFFF;
    padding: clamp(3rem, 8vw, 6rem) clamp(2rem, 8vw, 6rem);
    box-sizing: border-box;
    font-family: 'Oswald', sans-serif;
    scroll-margin-top: 4.5rem;
}

.services__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(2.5rem, 6vw, 4rem);
}

.services__title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #202427;
}

.services__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, 3vw, 2rem);
}

.service-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: clamp(3.5rem, 9vw, 7rem);
    letter-spacing: 0.02em;
    color: #202427;
    cursor: default;
    padding: clamp(0.75rem, 2vw, 1.25rem) clamp(0.9rem, 3vw, 1.8rem);
}

.service-item__label {
    position: relative;
    z-index: 1;
}

.service-item__description {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 0;
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    line-height: 1.5;
    max-width: 34rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-0.35em);
    transition: max-height 0.28s ease-out, opacity 0.22s ease-out, transform 0.22s ease-out, margin-top 0.22s ease-out;
}

.service-item__bookmark {
    position: absolute;
    left: -0.25em;
    top: 0;
    bottom: 0;
    transform: scaleX(0);
    transform-origin: left top;
    width: calc(100% + 0.5em);
    background-color: #FFDA2C; /* default, overridden per modifier */
    z-index: 0;
    transition: transform 0.28s ease-out;
    clip-path: polygon(
        0 0,
        100% 0,
        100% 72%,
        92% 100%,
        0 100%
    );
}

/* Hero colours per service (WORK, ABOUT, SERVICES, ARCHIVE, E-COMMERCE) */
.service-item--work .service-item__bookmark { background-color: #FFDA2C; }
.service-item--about .service-item__bookmark { background-color: #CED700; }
.service-item--services .service-item__bookmark { background-color: #FF3CA4; }
.service-item--archive .service-item__bookmark { background-color: #ACE8F6; }
.service-item--ecommerce .service-item__bookmark { background-color: #FFC966; }

.service-item__icon {
    position: absolute;
    right: clamp(-3.5rem, -3.5vw, -3rem);
    top: 50%;
    width: 5rem;
    height: 2rem;
    opacity: 0;
    pointer-events: none;
    transform: translate(40%, -50%) rotate(18deg) scale(1);
    transform-origin: center center;
    transition: opacity 0.25s ease-out, transform 0.25s ease-out;
    z-index: 2;
}

.service-item__icon::before,
.service-item__icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid #202427;
    border-radius: 999px;
    background: transparent;
}

.service-item__icon::before {
    border-right-color: transparent;
    border-bottom-color: transparent;
}

.service-item__icon::after {
    inset: 22% 32%;
    border-left-color: transparent;
    border-top-color: transparent;
}

.service-item:hover .service-item__bookmark,
.service-item:focus-within .service-item__bookmark {
    transform: scaleX(1);
}

.service-item:hover .service-item__description,
.service-item:focus-within .service-item__description {
    max-height: 8rem;
    opacity: 1;
    margin-top: 0.3em;
    transform: translateY(0);
}

.service-item:hover .service-item__icon,
.service-item:focus-within .service-item__icon {
    opacity: 1;
    transform: translate(40%, -50%) rotate(18deg) scale(1.05);
}

/* Testimonials – sticky note with clip */
.testimonials {
    width: 100vw;
    height: 100vh;
    background-color: #CED700;
    padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 8vw, 6rem) clamp(2rem, 8vw, 6rem);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    position: relative;
}

.testimonials__trail {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    overflow: hidden;
}

.testimonials__trail-word {
    position: absolute;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(0.75rem, 1.2vw, 1rem);
    font-weight: 400;
    color: rgba(17, 20, 24, 0.5);
    white-space: nowrap;
    transform: translate(-50%, -50%);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.testimonials__inner {
    position: relative;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

.testimonials__note-source {
    display: none;
}

.testimonials__stack {
    position: absolute;
    right: -7rem; /* half visible, starting at section edge */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    z-index: 5;
}

.testimonials__stack-note {
    width: 14rem;
    height: 8rem;
    border: 1px solid #202427;
    background-color: #F5FFFF;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    padding: 0;
    border-radius: 1px;
    transform-origin: center center;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, background-color 0.2s ease-out;
}

.testimonials__stack-note--1 {
    transform: rotate(-6deg);
}

.testimonials__stack-note--2 {
    transform: translateX(4px) rotate(3deg);
}

.testimonials__stack-note--3 {
    transform: translateX(8px) rotate(-2deg);
}

.testimonials__stack-note.is-active {
    background-color: #FFDA2C;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.25);
}

.testimonials__stack-note:focus-visible {
    outline: 2px solid #202427;
    outline-offset: 2px;
}

.testimonials__note {
    position: absolute;
    left: 50%;
    top: 50%;
    margin: 0;
    max-width: 520px;
    width: min(520px, 70vw);
    min-height: clamp(16rem, 48vh, 22rem);
    padding: clamp(2rem, 4vw, 2.75rem) clamp(2.25rem, 5vw, 3.25rem);
    border: 1px solid #202427;
    background-color: #F5FFFF;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
    transform-origin: 15% -8%;
    transform: translate(-50%, -50%);
}

.testimonials__note::before {
    content: '';
    position: absolute;
    inset: 0.9rem -0.8rem -0.9rem 0.8rem;
    background-color: #E6F1F1;
    border: 1px solid #202427;
    z-index: -1;
    transform: rotate(-2deg);
}

.testimonials__pin {
    position: absolute;
    top: 0;
    left: clamp(2.2rem, 4vw, 3rem);
    width: 5rem;
    height: 2rem;
    transform: translate(-40%, -55%) rotate(-18deg);
    z-index: 3;
    transform-origin: 50% 100%;
}

.testimonials__pin::before,
.testimonials__pin::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid #202427;
    border-radius: 999px;
    background: transparent;
}

.testimonials__pin::before {
    border-right-color: transparent;
    border-bottom-color: transparent;
}

.testimonials__pin::after {
    inset: 22% 32%;
    border-left-color: transparent;
    border-top-color: transparent;
}

.testimonials__eyebrow {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    letter-spacing: 0.15em;
    margin: 0 0 2.5rem;
    color: #202427;
}

.testimonials__quote {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    line-height: 1.7;
    color: #202427;
    margin: 0 0 2.5rem;
}

.testimonials__meta {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: clamp(0.85rem, 1.4vw, 1.05rem);
    letter-spacing: 0.18em;
    margin: 0;
    color: #202427;
}

.testimonials__aside {
    position: absolute;
    left: 0;
    bottom: 0;
    max-width: 14rem;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(0.8rem, 1.2vw, 0.95rem);
    line-height: 1.6;
    color: #202427;
}

.testimonials__cta {
    position: absolute;
    right: 0;
    bottom: 0;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(0.8rem, 1.2vw, 0.95rem);
    font-weight: 500;
    letter-spacing: 0.12em;
    color: #202427;
    text-decoration: none;
    padding: 0.6rem 1.5rem;
    border: 1px solid #202427;
    border-radius: 2px;
    box-sizing: border-box;
}

.testimonials__cta:hover {
    background-color: #202427;
    color: #F5FFFF;
}

@keyframes testimonials-note-swing {
    0% {
        transform: rotate(-1.2deg) translateY(0);
    }
    50% {
        transform: rotate(0.4deg) translateY(3px);
    }
    100% {
        transform: rotate(-0.6deg) translateY(-2px);
    }
}

@keyframes testimonials-pin-swing {
    0% {
        transform: translate(-40%, -55%) rotate(-21deg);
    }
    50% {
        transform: translate(-40%, -55%) rotate(-15deg);
    }
    100% {
        transform: translate(-40%, -55%) rotate(-19deg);
    }
}

/* Work section – >100vh, 3 images irregular sizes, right / left / right, text under each */
.work {
    min-height: 180vh;
    background-color: #F5FFFF;
    padding: clamp(3rem, 8vw, 6rem) clamp(2rem, 6vw, 4rem);
    padding-bottom: clamp(3rem, 8vw, 5rem);
    position: relative;
    box-sizing: border-box;
    scroll-margin-top: 4.5rem;
    display: flex;
    flex-direction: column;
}

.work__inner {
    display: flex;
    flex-direction: column;
    gap: clamp(4rem, 15vh, 10rem);
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.work-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    perspective: 1400px;
}

.work-item__block {
    display: grid;
    grid-template-columns: 1fr;
    width: fit-content;
    justify-items: start;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.work-item__block:hover {
    text-decoration: none;
    color: inherit;
}

.work-item--right {
    align-items: flex-end;
    margin-left: auto;
}

.work-item--left {
    align-items: flex-start;
    margin-right: auto;
}

/* Irregular sizes per item – bigger width, same aspect ratios (542×824, 562×671, 654×811) */
.work-item--1 .work-item__image-wrap {
    width: min(95vw, 650px);
    aspect-ratio: 542 / 824;
}

.work-item--2 .work-item__image-wrap {
    width: min(95vw, 675px);
    aspect-ratio: 562 / 671;
}

.work-item--3 .work-item__image-wrap {
    width: min(95vw, 785px);
    aspect-ratio: 654 / 811;
}

.work-item__image-wrap {
    overflow: hidden;
    border-radius: 0;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    opacity: 0;
    /* Folded page: soft shadows as if resting on a surface with a slight curl */
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.06),
        0 6px 20px rgba(0, 0, 0, 0.1),
        4px 12px 32px rgba(0, 0, 0, 0.08);
}

/* Wavy edge on one side so the paper isn’t straight */
.work-item--right .work-item__image-wrap {
    transform-origin: right center;
    transform: rotateY(88deg);
    clip-path: polygon(
        0 0,
        100% 0,
        99.8% 8%,
        100% 18%,
        99.5% 28%,
        100% 40%,
        99.6% 52%,
        100% 62%,
        99.8% 75%,
        100% 88%,
        99.9% 100%,
        100% 100%,
        0 100%,
        0 0
    );
}

.work-item--left .work-item__image-wrap {
    transform-origin: left center;
    transform: rotateY(-88deg);
    clip-path: polygon(
        0 0,
        0.1% 0,
        0 8%,
        0.2% 18%,
        0 28%,
        0.5% 40%,
        0 52%,
        0.4% 62%,
        0.2% 75%,
        0 88%,
        0.1% 100%,
        0 100%,
        100% 100%,
        100% 0,
        0 0
    );
}

.work-item__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.work-item__info {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(0.8rem, 1.2vw, 0.95rem);
    font-weight: 500;
    color: #202427;
    line-height: 1.5;
    margin: 0;
    margin-top: 0.75rem;
    width: 100%;
    min-width: 0;
    text-align: left;
    grid-column: 1;
}

.work-item--1 .work-item__info {
    margin-top: 1.5rem;
    text-align: right;
}

.work-item--3 .work-item__info {
    text-align: right;
}

.work-item__meta {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    color: #555;
}

/* In document flow so it never overlaps the last project caption (was position:absolute) */
.work__cta {
    position: relative;
    align-self: flex-end;
    margin-top: clamp(2.5rem, 6vh, 4.5rem);
    margin-right: 0;
    margin-bottom: 0;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #202427;
    text-decoration: none;
    padding: 0.6rem 1.4rem;
    border: 1px solid #202427;
    border-radius: 2px;
    transition: background 0.2s, color 0.2s;
}

.work__cta:hover {
    background: #202427;
    color: #F5FFFF;
}

/* In-page anchor for #archive (nav + work CTA) */
.page-anchor {
    height: 0;
    scroll-margin-top: 4.5rem;
}

/* Footer – bold name lockup */
.footer {
    /* 100vw is wider than the layout when a vertical scrollbar exists → white strip on the right */
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    min-height: 100vh;
    background-color: #111418;
    color: #F5FFFF;
    padding: clamp(2.5rem, 6vw, 4rem) clamp(2rem, 6vw, 4rem);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer__inner {
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(2.5rem, 5vw, 4rem);
}

.footer__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(2rem, 8vw, 6rem);
    font-family: 'Oswald', sans-serif;
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    letter-spacing: 0.08em;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.footer__col--services p,
.footer__col--location p,
.footer__col--experience p {
    margin: 0;
}

.footer__link {
    color: #F5FFFF;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.footer__name {
    margin: 0;
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400; /* Bebas Neue has a single weight; keep normal */
    /* Target ~280px on large screens, scale down on smaller widths */
    font-size: min(280px, 19vw);
    letter-spacing: 0.03em; /* much tighter tracking, closer to specimen */
    color: #CED700;
    text-align: center;
    line-height: 0.85;
    width: 100%;
    /* extend through the footer’s horizontal padding so it touches edges */
    margin-left: calc(-1 * clamp(2rem, 6vw, 4rem));
    margin-right: calc(-1 * clamp(2rem, 6vw, 4rem));
    white-space: nowrap;
}

.footer__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: clamp(1.5rem, 4vw, 3rem);
    font-family: 'Oswald', sans-serif;
    font-size: clamp(0.75rem, 0.9vw, 0.9rem);
}

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer__contact span {
    opacity: 0.8;
}

.footer__contact a {
    color: #F5FFFF;
    text-decoration: none;
}

.footer__contact a:hover {
    text-decoration: underline;
}

.footer__copyright {
    margin: 0;
    text-align: center;
    flex: 1;
}

.footer__policy {
    color: #F5FFFF;
    text-decoration: none;
}

.footer__policy:hover {
    text-decoration: underline;
}
/* ========== Responsive: tablet and phone ========== */
/* html font-size (112.5% → 1rem = 18px) set in common.css for max-width: 1024px */

/* Tablet (≤1024px) – tighter spacing, larger text, less white space */
@media (max-width: 1024px) {
    /* Mobile browser UI: avoid clipped hero */
    .hero {
        min-height: 100dvh;
        height: 100dvh;
    }
    body.about-static-mobile #about .about-content {
        padding-top: max(clamp(1.5rem, 5vw, 2.75rem), var(--content-below-nav));
    }
    .top-nav__menu-btn {
        display: flex;
    }
    .book-deck {
        width: min(94vw, 100%);
        margin-left: calc(-1 * min(47vw, 50%));
        padding: 0 0.5rem;
        box-sizing: border-box;
    }
    /* Staggered translateX + hero overflow:hidden clips labels on phones/tablets — keep layout only on desktop */
    .deck-card:nth-child(1),
    .deck-card:nth-child(2),
    .deck-card:nth-child(3),
    .deck-card:nth-child(4),
    .deck-card:nth-child(5),
    .deck-card:nth-child(6),
    .deck-card:nth-child(7),
    .deck-card:nth-child(8),
    .deck-card:nth-child(9) {
        transform: none;
    }
    .deck-card:nth-child(1):hover,
    .deck-card:nth-child(2):hover,
    .deck-card:nth-child(3):hover,
    .deck-card:nth-child(4):hover,
    .deck-card:nth-child(5):hover,
    .deck-card:nth-child(6):hover,
    .deck-card:nth-child(7):hover,
    .deck-card:nth-child(8):hover,
    .deck-card:nth-child(9):hover {
        transform: none;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    }
    .deck-card {
        /* Same Bebas + scale as desktop deck (bars are full width, no stagger — room for big type) */
        font-family: 'Bebas Neue', sans-serif;
        font-weight: 700;
        font-size: clamp(2.25rem, 11vh, 10rem);
        letter-spacing: 0.02em;
        padding: 0 clamp(0.65rem, 2.5vw, 1rem);
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }
    .scroll-prompt {
        bottom: 1.75rem;
        left: 1.25rem;
        font-size: 1.125rem;
        line-height: 1.45;
    }
    .about {
        min-height: 85vh;
        height: auto;
    }
    .about-content {
        padding: clamp(1.5rem, 4vw, 2.5rem);
        padding-top: max(clamp(1.5rem, 4vw, 2.5rem), var(--content-below-nav));
        flex-wrap: wrap;
        gap: 1.25rem;
    }
    .about-left {
        width: min(90%, 18rem);
    }
    .about-text--small {
        font-size: clamp(1.15rem, 2.6vw, 1.4rem);
        line-height: 1.68;
    }
    .about-line {
        font-size: clamp(2.25rem, 10vw, 7rem);
    }
    .about-me {
        min-height: auto;
        height: auto;
        padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 5vw, 2.5rem);
        padding-top: max(clamp(2rem, 5vw, 3rem), var(--content-below-nav));
        gap: clamp(1.5rem, 4vw, 2rem);
    }
    .about-me__text {
        max-width: 90%;
        font-size: clamp(1.55rem, 4.5vw, 2.85rem);
        line-height: 1.42;
    }
    .about-me__title {
        font-size: 1.1rem;
    }
    .services {
        min-height: auto;
        padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 5vw, 2.5rem);
        padding-top: max(clamp(2rem, 5vw, 3rem), var(--content-below-nav));
    }
    .services__inner {
        gap: clamp(1.5rem, 4vw, 2.5rem);
    }
    .services__title {
        font-size: 1.125rem;
    }
    .service-item {
        font-size: clamp(2.5rem, 8vw, 5rem);
        padding: clamp(0.6rem, 1.5vw, 1rem) clamp(0.75rem, 2vw, 1.25rem);
    }
    .service-item__description {
        font-size: clamp(1.2rem, 2.3vw, 1.45rem);
        line-height: 1.55;
    }
    .work {
        padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 5vw, 2.5rem);
        padding-top: max(clamp(2rem, 5vw, 3rem), var(--content-below-nav));
        padding-bottom: clamp(3rem, 8vw, 5rem);
        min-height: auto;
    }
    .work__inner {
        gap: clamp(2.5rem, 8vh, 5rem);
    }
    .work-item--1 .work-item__image-wrap,
    .work-item--2 .work-item__image-wrap,
    .work-item--3 .work-item__image-wrap {
        width: min(92vw, 100%);
    }
    .work-item__info {
        font-size: clamp(1.12rem, 2.1vw, 1.32rem);
        line-height: 1.45;
    }
    .work-item__info .work-item__meta {
        font-size: clamp(1rem, 1.9vw, 1.18rem);
    }
    .work__cta {
        margin-top: clamp(2rem, 5vh, 3.5rem);
        font-size: 1.05rem;
    }
    .testimonials {
        min-height: auto;
        height: auto;
        /* Room for pin + tilt so the sticky note isn’t clipped at the top */
        padding: clamp(3rem, 10vw, 5rem) clamp(1.25rem, 5vw, 2rem);
        padding-top: max(clamp(3rem, 10vw, 5rem), var(--content-below-nav));
        padding-bottom: clamp(3rem, 8vw, 4rem);
        overflow-x: visible;
    }
    .testimonials__inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        min-height: auto;
        padding-bottom: 2rem;
        overflow: visible; /* was hidden — clipped tilted note + pin */
    }
    .testimonials__note {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: min(90vw, 480px);
        min-height: clamp(12rem, 35vh, 18rem);
        padding: clamp(1.5rem, 4vw, 2rem) clamp(1.5rem, 4vw, 2.25rem);
        margin: clamp(0.75rem, 2.5vw, 1.5rem) auto 0;
    }
    .testimonials__eyebrow {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    .testimonials__quote {
        font-size: clamp(1.22rem, 2.6vw, 1.55rem);
        line-height: 1.65;
        margin-bottom: 1.5rem;
    }
    .testimonials__meta {
        font-size: clamp(1rem, 2vw, 1.22rem);
    }
    .testimonials__stack {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 28rem;
        margin: 1.25rem auto 0;
        gap: 0.65rem;
    }
    .testimonials__stack-note {
        width: 11rem;
        height: 6.5rem;
    }
    .testimonials__aside {
        position: relative;
        left: auto;
        bottom: auto;
        max-width: min(100%, 28rem);
        margin-top: 1.5rem;
        margin-left: auto;
        margin-right: auto;
        padding: 0 0.5rem;
        text-align: center;
        font-size: clamp(1.08rem, 2.3vw, 1.32rem);
        line-height: 1.6;
    }
    .testimonials__cta {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: 1rem;
    }
    .footer {
        min-height: auto;
        padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 5vw, 2.5rem);
        padding-top: max(clamp(2rem, 5vw, 3rem), var(--content-below-nav));
    }
    .footer__inner {
        gap: clamp(1.5rem, 4vw, 2.5rem);
    }
    .footer__top {
        font-size: 1.1rem;
        line-height: 1.55;
    }
    .footer__bottom {
        font-size: 1rem;
        line-height: 1.5;
    }
}

/* Tablet only (769–1024px): large comfortable paragraph copy */
@media (min-width: 769px) and (max-width: 1024px) {
    body.about-static-mobile .about-text--small {
        font-size: clamp(1.38rem, 2.6vw, 1.72rem);
        line-height: 1.65;
    }
    .about-me__text {
        font-size: clamp(1.75rem, 4.2vw, 3.1rem);
        line-height: 1.42;
    }
    .service-item__description {
        font-size: clamp(1.3rem, 2.1vw, 1.58rem);
        line-height: 1.58;
    }
    .testimonials__quote {
        font-size: clamp(1.38rem, 2.5vw, 1.75rem);
        line-height: 1.65;
    }
    .testimonials__eyebrow {
        font-size: 1.12rem;
    }
    .testimonials__meta {
        font-size: clamp(1.05rem, 2vw, 1.25rem);
    }
    .testimonials__aside {
        font-size: clamp(1.15rem, 2.1vw, 1.42rem);
    }
    .work-item__info {
        font-size: clamp(1.2rem, 2vw, 1.42rem);
    }
    .work-item__info .work-item__meta {
        font-size: clamp(1rem, 1.85vw, 1.25rem);
    }
    .footer__top {
        font-size: 1.15rem;
    }
    .footer__bottom {
        font-size: 1rem;
    }
}

/* Phone (≤768px) – single column, larger text, compact spacing */
@media (max-width: 768px) {
    .book-deck {
        width: min(96vw, 100%);
        margin-left: calc(-1 * min(48vw, 50%));
        gap: 8px;
        padding: 0 0.35rem;
    }
    .deck-card {
        /* Phone: same formula as desktop loader fly-out */
        font-family: 'Bebas Neue', sans-serif;
        font-weight: 700;
        font-size: clamp(2.5rem, 12vh, 6rem);
        letter-spacing: 0.02em;
        padding: 0 clamp(0.65rem, 2.5vw, 1rem);
        justify-content: center;
        text-align: center;
    }
    .scroll-prompt {
        bottom: 1.5rem;
        left: 1rem;
        font-size: 1.2rem;
        line-height: 1.45;
        max-width: 15rem;
    }
    .about {
        min-height: 75vh;
    }
    .about-content {
        padding: 1.75rem 1.25rem;
        padding-top: max(1.75rem, var(--content-below-nav));
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .about-left {
        width: 100%;
        max-width: none;
    }
    .about-text--small {
        font-size: 1.3rem;
        line-height: 1.65;
    }
    .about-text--big {
        align-items: flex-start;
    }
    .about-line {
        font-size: clamp(2.5rem, 11vw, 6rem);
        margin-right: 0 !important;
    }
    .about-me {
        padding: 2rem 1.25rem;
        padding-top: max(2rem, var(--content-below-nav));
        flex-direction: column;
        gap: 1.5rem;
    }
    .about-me__title {
        font-size: 1.15rem;
        letter-spacing: 0.12em;
    }
    .about-me__text {
        max-width: 100%;
        font-size: clamp(1.65rem, 7vw, 2.85rem);
        line-height: 1.42;
    }
    .services {
        padding: 2rem 1.25rem;
        padding-top: max(2rem, var(--content-below-nav));
    }
    .service-item {
        font-size: clamp(2.25rem, 9vw, 4rem);
    }
    .service-item__description {
        font-size: 1.24rem;
        line-height: 1.55;
    }
    .work {
        padding: 2rem 1.25rem;
        padding-top: max(2rem, var(--content-below-nav));
        padding-bottom: 4rem;
    }
    .work__inner {
        gap: clamp(2rem, 6vh, 4rem);
    }
    .work-item--right,
    .work-item--left {
        align-items: center;
        margin-left: auto;
        margin-right: auto;
    }
    .work-item--1 .work-item__image-wrap,
    .work-item--2 .work-item__image-wrap,
    .work-item--3 .work-item__image-wrap {
        width: 92vw;
        max-width: 420px;
    }
    .work-item__info {
        font-size: 1.2rem;
        line-height: 1.45;
    }
    .work-item__info .work-item__meta {
        font-size: 1.12rem;
    }
    .work__cta {
        margin-top: clamp(2rem, 5vh, 3rem);
        padding: 0.65rem 1.35rem;
        font-size: 1.1rem;
    }
    .testimonials {
        padding: clamp(2.75rem, 9vw, 4rem) 1rem clamp(2rem, 6vw, 3rem);
        padding-top: max(clamp(2.75rem, 9vw, 4rem), var(--content-below-nav));
    }
    .testimonials__eyebrow {
        font-size: 1.12rem;
    }
    .testimonials__quote {
        font-size: clamp(1.22rem, 3.8vw, 1.48rem);
    }
    .testimonials__meta {
        font-size: 1.1rem;
    }
    .testimonials__aside {
        font-size: clamp(1.1rem, 3.2vw, 1.28rem);
    }
    .testimonials__note {
        width: min(92vw, 420px);
        min-height: 14rem;
        padding: 1.5rem 1.25rem;
    }
    .testimonials__stack-note {
        width: 9rem;
        height: 5.5rem;
    }
    .footer {
        padding: 2rem 1.25rem;
        padding-top: max(2rem, var(--content-below-nav));
    }
    .footer__inner {
        gap: 1.5rem;
    }
    .footer__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        font-size: 1.1rem;
        line-height: 1.55;
    }
    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        font-size: 1rem;
        line-height: 1.5;
    }
    .footer__name {
        text-align: center;
        font-size: clamp(2.5rem, 16vw, 3.5rem);
    }
}

/* Small phone (≤480px) – larger text, minimal white space */
@media (max-width: 480px) {
    .deck-card {
        font-family: 'Bebas Neue', sans-serif;
        font-weight: 700;
        font-size: clamp(2.25rem, 11vh, 6rem);
        letter-spacing: 0.02em;
    }
    .scroll-prompt {
        font-size: 1.12rem;
    }
    .about-text--small {
        font-size: 1.28rem;
    }
    .about-line {
        font-size: clamp(2.25rem, 10vw, 5rem);
    }
    .about-me__title {
        font-size: 1rem;
    }
    .about-me__text {
        font-size: clamp(1.55rem, 6.2vw, 2.5rem);
    }
    .service-item {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
    .service-item__description {
        font-size: 1.18rem;
    }
    .work-item__info {
        font-size: 1.14rem;
    }
    .work-item__info .work-item__meta {
        font-size: 1.08rem;
    }
    .work__cta {
        font-size: 1.06rem;
    }
    .work-item--1 .work-item__image-wrap,
    .work-item--2 .work-item__image-wrap,
    .work-item--3 .work-item__image-wrap {
        width: 95vw;
        max-width: none;
    }
    .testimonials__stack-note {
        width: 7.5rem;
        height: 4.5rem;
    }
    .footer__name {
        font-size: clamp(2.25rem, 14vw, 3rem);
    }
}

/* ≤1024px: 18px minimum sitewide; loader intro / cursor / sound hint: 25px minimum */
@media (max-width: 1024px) {
    .loader-text {
        font-size: max(25px, clamp(1.5625rem, 2.4vw, 1.85rem));
    }
    .loader-cursor__label,
    .loader-sound-hint {
        font-size: max(25px, 1.5625rem);
    }
    .loader-cursor-trail__word {
        font-size: max(25px, clamp(1.25rem, 2vw, 1.35rem));
    }
    /* Before/during fly-out, meta lines are not yet inline-styled by GSAP */
    .loader-book-label--meta {
        font-size: max(18px, 1rem);
    }
    .testimonials__trail-word {
        font-size: max(18px, clamp(1rem, 1.2vw, 1.05rem));
    }
    /* Work section — final pass so caption/CTA never render under 18px */
    .work-item__info {
        font-size: max(18px, clamp(1.2rem, 2.1vw, 1.38rem));
        line-height: 1.5;
    }
    .work-item__info .work-item__meta {
        font-size: max(18px, 1.1rem);
    }
    .work__cta {
        font-size: max(18px, 1.1rem);
    }
}