/* ===== FONT FACES ===== */
@font-face { font-family: 'Termina'; src: url('fonts/TerminaTest-Light.otf') format('opentype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Termina'; src: url('fonts/TerminaTest-Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Termina'; src: url('fonts/TerminaTest-Medium.otf') format('opentype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Termina'; src: url('fonts/TerminaTest-Demi.otf') format('opentype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Termina'; src: url('fonts/TerminaTest-Bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Termina'; src: url('fonts/TerminaTest-Heavy.otf') format('opentype'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Termina'; src: url('fonts/TerminaTest-Black.otf') format('opentype'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Formetor'; src: url('fonts/formetor-regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; }
body {
    font-family: Arial, 'Helvetica Neue', sans-serif;
    background: #eae5de;
    color: #000000;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: none;
}

:root {
    --black: #000000;
    --white: #FFFBF2;
    --gray-light: #F5F5F5;
    --gray-mid: #EAEAEA;
    --gray-dark: #1A1A1A;
    --warm: #FFFBF2;
    --font-display: 'Termina', sans-serif;
    --font-body: Arial, 'Helvetica Neue', sans-serif;
}

/* ===== TYPOGRAPHY ===== */
.label {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
.body-text { font-size: 1.6rem; line-height: 1.6; font-weight: 300; }
.body-text-lg { font-size: 1.8rem; line-height: 1.7; font-weight: 300; }
.body-text-sm { font-size: 1.4rem; line-height: 1.6; font-weight: 300; }
.display-massive {
    font-family: var(--font-display);
    font-size: clamp(6rem, 10vw, 14rem);
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}
.display-giant {
    font-family: var(--font-display);
    font-size: clamp(8rem, 14vw, 20rem);
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}
.display-lg {
    font-family: var(--font-display);
    font-size: clamp(4rem, 6vw, 8rem);
    line-height: 1.1;
    text-transform: uppercase;
}
.display-sm {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1.2;
    text-transform: uppercase;
}
.dim { opacity: 1; }
.warm { color: #000000; }
.tag {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1.2rem;
    border: 1px solid currentColor;
    border-radius: 100px;
}

/* ===== HEADER — Editorial overlay ===== */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 0;
    pointer-events: none;
}
.header > * { pointer-events: auto; }

/* Centered script logo — sits in the dark border above the video */
.header-logo {
    position: absolute;
    top: 2.2rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Formetor', cursive;
    font-size: 2.8rem;
    color: #1A1A1A;
    text-decoration: none;
    letter-spacing: 0.02em;
    opacity: 0;
    transition: color 0.4s ease, opacity 0.4s ease;
    white-space: nowrap;
    text-transform: lowercase;
}
.logo-cap {
    font-size: 1.35em;
    line-height: 1;
}

/* Pill buttons — inside the video frame area */
.header-pill {
    position: absolute;
    top: 10rem;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #FFFFFF;
    text-decoration: none;
    padding: 1rem 2.4rem;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 100px;
    transition: border-color 0.4s ease, background 0.4s ease, color 0.4s ease;
    opacity: 0;
    z-index: 101;
}
.header-pill--left { left: 8rem; }
.header-pill--right { right: 8rem; }
.header-pill:hover {
    border-color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.08);
}

/* Hide pills and logo outside hero */
.header.hide-pills .header-pill {
    opacity: 0 !important;
    pointer-events: none;
}
.header.hide-logo .header-logo {
    opacity: 0 !important;
    pointer-events: none;
}

/* ===== VERTICAL SIDE NAV ===== */
.side-nav {
    position: fixed;
    left: 2.4rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.4rem;
}
.side-nav-link {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(0, 0, 0, 0.3);
    text-decoration: none;
    transition: color 0.3s ease;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
}
.side-nav-link:hover {
    color: rgba(0, 0, 0, 0.7);
}
.side-nav-link.active {
    color: #000000;
}
/* Side nav on dark sections (work) — switch to white */
.side-nav.nav-light .side-nav-link {
    color: rgba(255, 255, 255, 0.3);
}
.side-nav.nav-light .side-nav-link:hover {
    color: rgba(255, 255, 255, 0.7);
}
.side-nav.nav-light .side-nav-link.active {
    color: #FFFFFF;
}

/* Header on light sections */
.header.header-dark .header-logo { color: #000000; }
.header.header-dark .header-pill {
    color: #000000;
    border-color: rgba(0,0,0,0.2);
}
.header.header-dark .header-pill:hover {
    border-color: rgba(0,0,0,0.6);
    background: rgba(0,0,0,0.04);
}


/* ===== PANELS ===== */
.panel {
    width: 100vw; height: 100vh;
    flex-shrink: 0; position: relative; overflow: hidden;
}
.panel-inner {
    width: 100%; height: 100%;
    padding: 12rem 8rem 6rem;
    display: flex; flex-direction: column; justify-content: center;
}

/* ===== I. HERO — Dark editorial, framed video ===== */
.panel-hero {
    background: #eae5de;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

/* Framed video — large dark border, top extra tall for logo */
.hero-video-frame {
    position: absolute;
    top: 8rem; left: 6rem; right: 6rem; bottom: 4rem;
    border-radius: 6px;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.97);
}
.hero-video-frame video {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
}
.hero-video-overlay {
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

/* Centered headline */
.hero-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.4rem;
    width: 90%;
    max-width: 90rem;
    opacity: 0;
}
.hero-label {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #FF6B81;
}
.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 4vw, 5.6rem);
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #FFFFFF;
}

/* Scroll cue — bottom center */
.hero-scroll-cue {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    opacity: 0;
}
.hero-scroll-text {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.4);
}
.hero-scroll-line {
    width: 1px; height: 4rem;
    background: rgba(255,255,255,0.12);
    position: relative; overflow: hidden;
}
.hero-scroll-line span {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 40%;
    background: rgba(255,255,255,0.5);
    animation: heroScrollPulse 2s ease-in-out infinite;
}
@keyframes heroScrollPulse {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(350%); }
}


/* ============================================================
   TESTIMONIAL — Large centered pull quote
   ============================================================ */
.testimonial-section {
    width: 100%;
    background: #eae5de;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 6rem;
    position: relative;
}
.testimonial-inner {
    max-width: 90rem;
    padding: 3rem 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
    margin: 0 auto;
}
.testimonial-quote {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4vw, 4.2rem);
    font-weight: 300;
    line-height: 1.4;
    color: #000000;
    font-style: italic;
}
.testimonial-author {
    font-family: 'Formetor', cursive;
    font-size: 2.8rem;
    color: #FF6B81;
}
.testimonial-role {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(0, 0, 0, 0.4);
    margin-top: -1rem;
}
/* mobile testimonial — see main responsive block */

/* ============================================================
   WHY CHOOSE NSM — Layered editorial reveal
   ============================================================ */
.why-section {
    width: 100%;
    height: 100vh;
    background: #eae5de;
    color: #000000;
    position: relative;
    overflow: hidden;
}

/* Centered background heading */
.why-heading {
    position: absolute;
    top: 3.6rem;
    left: 6rem;
    font-family: var(--font-display);
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #000000;
    z-index: 3;
    pointer-events: none;
    white-space: nowrap;
    opacity: 1;
}

/* Horizontal scroll filmstrip */
.why-cards-layer {
    position: absolute;
    top: 0; bottom: 0;
    left: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 3.2rem;
    padding: 0 6rem;
    will-change: transform;
}

/* Individual card — tall, wide */
.why-card {
    position: relative;
    flex-shrink: 0;
    width: 38rem;
    height: 70%;
    min-height: 36rem;
    max-height: 52rem;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.06),
        0 12px 40px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.why-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.1),
        0 20px 50px rgba(0, 0, 0, 0.06);
}

/* Card icon */
.why-card-icon {
    margin-bottom: 2rem;
    color: #FF6B81;
}
.why-card-icon svg {
    width: 80px; height: 80px;
}

.why-card-inner {
    width: 100%;
    height: 100%;
    padding: 3.2rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1.6rem;
}

.why-card-num {
    font-family: 'Formetor', cursive;
    font-size: 5rem;
    color: #FF6B81;
    opacity: 0.4;
    margin-bottom: auto;
}

.why-card-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 2.8vw, 3.2rem);
    line-height: 1.15;
    text-transform: uppercase;
    color: #000000;
}

.why-card-body {
    font-family: var(--font-body);
    font-size: 1.5rem;
    line-height: 1.7;
    font-weight: 300;
    color: rgba(0, 0, 0, 0.6);
}

/* mobile why — see main responsive block */


/* ===== SERVICES ===== */
.services-section {
    width: 100%; background: #eae5de; color: #000000;
    padding: 8rem 6rem;
}
.services-header {
    text-align: center; margin-bottom: 4rem;
    position: relative;
}
.services-cursive {
    font-family: 'Formetor', cursive; font-size: clamp(3rem, 5vw, 5rem);
    color: #000000; display: block; margin-bottom: -1.2rem;
}
.services-heading {
    font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 4rem);
    font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
}
.services-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    border-top: 1px solid rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(0,0,0,0.2);
    max-width: 100rem; margin: 0 auto;
}
.services-card {
    padding: 3.6rem 3.2rem;
    border-bottom: 1px solid rgba(0,0,0,0.2);
}
.services-card:nth-child(odd) {
    border-right: 1px solid rgba(0,0,0,0.2);
}
.services-card:nth-last-child(-n+2) {
    border-bottom: none;
}
.services-card-title {
    font-family: var(--font-display); font-size: clamp(1.4rem, 2vw, 1.8rem);
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em;
    margin-bottom: 1.2rem;
}
.services-card-body {
    font-family: var(--font-body); font-size: 1.4rem; font-weight: 400;
    line-height: 1.7; color: rgba(0,0,0,0.7);
}

/* mobile services — see main responsive block */

/* ============================================================
   III. SELECTED WORK — Centered text, side-scrolling images
   ============================================================ */
.sw-section {
    width: 100%;
    height: 100vh;
    background: #000000;
    color: #FFFBF2;
    position: relative;
    overflow: hidden;
}

/* --- Center text layer --- */
.sw-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.4rem;
    width: 70%;
    max-width: 90rem;
    pointer-events: none;
    visibility: hidden;
}
.sw-section.is-active .sw-center {
    visibility: visible;
}
.sw-center > * { pointer-events: auto; }

.sw-label {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.4);
    position: absolute;
    top: 3.6rem;
    left: 4rem;
    transform: none;
    z-index: 6;
}

/* Title + counter wrapper */
.sw-title-wrap {
    position: relative;
    width: 100%;
}

/* Counter — large number overlay in front of event name */
.sw-counter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}
.sw-counter-num {
    font-family: 'Formetor', cursive;
    font-size: clamp(12rem, 22vw, 28rem);
    font-weight: 400;
    font-style: normal;
    color: rgba(255, 107, 129, 0.2);
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
    text-transform: lowercase;
}

/* Title area — split-flap, height set by JS based on line count */
.sw-title-area {
    position: relative;
    width: 100%;
    z-index: 1;
}
.sw-title-layer {
    position: absolute;
    top: 50%; left: 0; width: 100%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.sw-title-line {
    display: flex;
    justify-content: center;
    overflow: hidden;
    line-height: 1;
}
.sw-ch {
    display: inline-block;
    overflow: hidden;
    line-height: 0.92;
    min-width: 0.3em;
}
.sw-ch span {
    display: inline-block;
    font-family: var(--font-display);
    font-size: clamp(4.2rem, 7.5vw, 10rem);
    line-height: 0.92;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    will-change: transform;
}

/* Description */
.sw-desc-area {
    position: relative;
    width: 100%;
    min-height: 3rem;
    margin-top: 2.4rem;
}
.sw-desc-layer {
    position: absolute;
    top: 0; left: 0; width: 100%;
    will-change: transform, opacity;
    opacity: 0;
}
.sw-desc {
    font-family: var(--font-body);
    font-size: 1.6rem;
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.7);
    max-width: 64rem;
    margin: 0 auto;
}

/* View button — white fill, dark text */
.sw-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #000000;
    background: #FFFBF2;
    border: 1px solid #FFFBF2;
    padding: 1.4rem 3rem;
    border-radius: 100px;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.3s ease;
    will-change: opacity;
    margin-top: 0.8rem;
}
.sw-view-btn:hover {
    background: #e6ff00;
    border-color: #e6ff00;
    color: #000000;
    transform: scale(1.02);
}
.sw-view-btn .arrow { font-size: 1.4rem; transition: transform 0.3s ease; display: inline-block; }
.sw-view-btn:hover .arrow { transform: translate(2px, -2px); }

/* --- Image columns (left, right, center) --- */
.sw-col {
    position: absolute;
    top: 0; bottom: 0;
    width: 22%;
    z-index: 2;
    overflow: visible;
    pointer-events: none;
}
.sw-col-left   { left: 0; }
.sw-col-right  { right: 0; }
.sw-col-center {
    left: 50%;
    transform: translateX(-50%);
    width: 26%;
    z-index: 8;
}

.sw-img-card {
    position: absolute;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    will-change: transform, opacity;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.sw-img-card img,
.sw-img-card video {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}

/* Editorial accent lines — SVG falling lines anchored to images */
.sw-accent-svg {
    position: absolute;
    pointer-events: none;
    z-index: 3;
    overflow: visible;
    opacity: 0;
    will-change: top, opacity;
}
.sw-accent-svg .fall-line {
    stroke: rgba(255,255,255,0.2);
    stroke-width: 2;
    stroke-linecap: round;
    fill: none;
}

/* Project count — bottom right */
.sw-project-count {
    position: absolute;
    bottom: 4.5rem;
    right: 4rem;
    z-index: 6;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}
.sw-project-current {
    color: #FFFFFF;
    font-size: 1.6rem;
}
.sw-project-sep {
    color: rgba(255, 255, 255, 0.3);
}
.sw-project-total {
    color: rgba(255, 255, 255, 0.3);
}

/* Progress bar */
.sw-bottom {
    position: absolute;
    bottom: 2.5rem;
    left: 4rem; right: 4rem;
    z-index: 6;
}
.sw-progress-track {
    width: 100%; height: 2px;
    background: rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}
.sw-progress-fill {
    position: absolute;
    top: 0; left: 0;
    height: 100%; width: 0%;
    background: rgba(255, 255, 255, 0.5);
    transition: width 0.15s linear;
    border-radius: 2px;
}

/* mobile selected work — see main responsive block */


/* ============================================================
   EVENT MODAL
   ============================================================ */
.event-modal {
    position: fixed; inset: 0; z-index: 500;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.35s ease;
}
.event-modal.is-open { opacity: 1; pointer-events: auto; }
.event-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.event-modal-content {
    position: relative;
    width: 64rem; max-width: 92vw; max-height: 92vh;
    background: #212121;
    color: #FFFFFF;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px; overflow-y: auto; overflow-x: hidden;
    display: flex; flex-direction: column;
    box-shadow: 0 24px 80px rgba(0,0,0,0.15);
    transform: translateY(30px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.event-modal.is-open .event-modal-content {
    transform: translateY(0) scale(1);
}
/* Project prev/next arrows — outside the modal content */
.modal-project-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 510;
    width: 5rem; height: 5rem; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.6); color: #FFFFFF;
    font-size: 3rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
    line-height: 1;
}
.modal-project-arrow:hover { background: rgba(255,255,255,0.15); }
.modal-project-prev { left: 1.5rem; }
.modal-project-next { right: 1.5rem; }

.event-modal-close {
    position: absolute; top: 1.6rem; right: 1.6rem; z-index: 10;
    width: 4rem; height: 4rem; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.6); color: #FFFFFF;
    font-size: 2.4rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    line-height: 1; transition: background 0.3s ease;
}
.event-modal-close:hover { background: rgba(255,255,255,0.15); }

/* Image — fills top area of modal */
.event-modal-img {
    width: 100%; height: 38rem; flex-shrink: 0;
    overflow: hidden;
    background: #0a0a0a;
    position: relative;
}
.event-modal-img img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: opacity 0.3s ease;
}

/* Slideshow arrows */
.modal-slide-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 5;
    width: 4.4rem; height: 4.4rem; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.5); color: #FFFFFF;
    font-size: 2.4rem; cursor: pointer;
    display: none; align-items: center; justify-content: center;
    transition: background 0.3s ease;
    line-height: 1;
}
.modal-slide-arrow:hover { background: rgba(255,255,255,0.15); }
.modal-slide-prev { left: 1.2rem; }
.modal-slide-next { right: 1.2rem; }
.event-modal-img.has-slides .modal-slide-arrow { display: flex; }

/* Slide label */
.modal-slide-label {
    position: absolute; top: 1.2rem; left: 1.2rem;
    z-index: 5; display: none;
    font-family: var(--font-body);
    font-size: 1.1rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: #FFFFFF; background: rgba(0,0,0,0.5);
    padding: 0.5rem 1.2rem; border-radius: 100px;
}
.event-modal-img.has-slides .modal-slide-label { display: block; }

/* Slideshow video slide */
.event-modal-img video {
    width: 100%; height: 100%;
    object-fit: contain; display: block; background: #000;
}

/* Slideshow dots */
.modal-slide-dots {
    position: absolute; bottom: 1.2rem; left: 50%;
    transform: translateX(-50%);
    display: none; gap: 0.8rem; z-index: 5;
}
.event-modal-img.has-slides .modal-slide-dots { display: flex; }
.modal-slide-dot {
    width: 0.8rem; height: 0.8rem; border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: none; cursor: pointer; padding: 0;
    transition: background 0.3s ease, transform 0.3s ease;
}
.modal-slide-dot.active {
    background: #FFFFFF;
    transform: scale(1.3);
}

/* Body — text area */
.event-modal-body {
    width: 100%;
    padding: 3.2rem 3.6rem 4rem;
    display: flex; flex-direction: column; gap: 1.6rem;
}
.event-modal-tags { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.event-modal-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 3.5vw, 3.6rem);
    line-height: 1.15;
    text-transform: uppercase;
    color: #FFFFFF;
}
.event-modal-desc {
    font-family: var(--font-body);
    font-size: 1.35rem;
    line-height: 1.7;
    font-weight: 300;
    color: #FFFBF2;
    white-space: pre-line;
}
.event-modal-body .tag {
    color: #FFFFFF;
    border-color: rgba(255,255,255,0.2);
}



/* ============================================================
   ABOUT INTRO — Cinematic text merge
   ============================================================ */
.about-intro {
    width: 100%;
    height: 100vh;
    background: #eae5de;
    color: #000000;
    position: relative;
    overflow: hidden;
    perspective: 1200px;
}
/* Thick cardstock texture — only on content phase */
.about-intro-content::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: var(--grain-texture);
    background-size: 512px 512px;
    background-repeat: repeat;
    opacity: 1;
    mix-blend-mode: multiply;
}

/* Three stacked title lines */
.about-intro-titles {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    z-index: 2;
    pointer-events: none;
}
.about-intro-line {
    font-family: var(--font-display);
    font-size: clamp(6rem, 11vw, 15rem);
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    color: #000000;
    white-space: nowrap;
    will-change: transform, opacity;
}
.about-cursive-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-12deg);
    font-family: 'Formetor', cursive;
    font-size: clamp(12rem, 22vw, 30rem);
    color: #e6ff00;
    white-space: nowrap;
    z-index: 3;
    pointer-events: none;
    opacity: 0.7;
}

/* Content — hidden initially, revealed after merge */
.about-intro-content {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6rem 8rem;
    opacity: 0;
    will-change: opacity;
}
.about-intro-text {
    max-width: 60rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    color: #000000;
    text-align: center;
    align-items: center;
}
.about-intro-text .body-text-lg {
    color: #000000;
    font-weight: 400;
    font-size: 2.4rem;
    line-height: 1.6;
}
.about-intro-text .display-lg {
    color: #000000;
    font-family: 'Formetor', cursive;
    font-size: clamp(5rem, 8vw, 10rem);
    text-transform: lowercase;
    will-change: transform, opacity;
    transform-origin: center center;
    white-space: nowrap;
}
.about-intro-img {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
}
.about-img-placeholder {
    width: 100%;
    padding-bottom: 140%;
    background: #e5e4db;
    border-radius: 12px;
}


/* mobile about — see main responsive block */



/* ===== VII. CONTACT ===== */
.contact-section {
    width: 100%; min-height: 100vh;
    background: #eae5de; color: #000000;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    padding: 8rem 6rem;
}
.contact-layout {
    width: 100%; max-width: 120rem;
    display: grid; grid-template-columns: 1fr 1.4fr;
    gap: 6rem; align-items: start;
}
.contact-left {
    display: flex; flex-direction: column; gap: 2.4rem;
    position: sticky; top: 12rem;
}
.contact-left .label {
    font-family: var(--font-body); font-size: 1.2rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.12em; color: rgba(0,0,0,0.5);
}
.contact-left .display-giant {
    font-family: var(--font-display); font-size: clamp(4rem, 7vw, 8rem);
    font-weight: 700; line-height: 0.95; letter-spacing: -0.02em; color: #000000;
}
.contact-link {
    display: inline-flex; align-items: center; gap: 1.2rem;
    font-family: var(--font-body); font-size: 1.6rem; font-weight: 400;
    color: #000000; text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.3); padding-bottom: 0.4rem;
    transition: border-color 0.3s ease;
}
.contact-link:hover { border-color: #000000; }
.contact-link .arrow { font-size: 1.8rem; transition: transform 0.3s ease; }
.contact-link:hover .arrow { transform: translate(3px, -3px); }
/* ===== SITE FOOTER ===== */
.site-footer {
    width: 100%; background: #eae5de;
    border-top: 1px solid rgba(0,0,0,0.15);
    padding: 3rem 6rem;
}
.site-footer-inner {
    display: flex; align-items: center; justify-content: center;
    gap: 2rem; flex-wrap: wrap;
}
.header-logo-footer {
    font-family: var(--font-display); font-size: 1.4rem;
    letter-spacing: 0.1em; text-transform: uppercase; color: #000000;
}
.contact-footer-info {
    display: flex; flex-direction: column; gap: 0.3rem;
}
.contact-footer-phone {
    color: rgba(0,0,0,0.5); text-decoration: none;
    transition: color 0.3s ease;
}
.contact-footer-phone:hover { color: #000000; }

/* Contact form */
.contact-right { width: 100%; }
.contact-form { display: flex; flex-direction: column; gap: 2rem; }
.form-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}
.form-row-full { grid-template-columns: 1fr; }
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%; padding: 1.4rem 1.6rem;
    font-family: var(--font-body); font-size: 1.4rem; font-weight: 400;
    color: #000000; background: transparent;
    border: 1px solid rgba(0,0,0,0.25); border-radius: 10px;
    outline: none; transition: border-color 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: #000000;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(0,0,0,0.4); font-weight: 400;
}
.contact-form textarea {
    min-height: 14rem; resize: vertical;
}
.form-select-wrap {
    border: none; padding: 0; margin: 0; position: relative;
}
.form-select-wrap legend {
    font-family: var(--font-body); font-size: 1.1rem; font-weight: 500;
    color: rgba(0,0,0,0.5); margin-bottom: 0.6rem;
    letter-spacing: 0.02em;
}
.contact-form select {
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23000' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 1.6rem center;
    padding-right: 4rem; cursor: pointer;
}
.form-char-count {
    display: block; margin-top: 0.4rem;
    font-family: var(--font-body); font-size: 1.1rem;
    color: rgba(0,0,0,0.35);
}
.form-submit-btn {
    width: 100%; padding: 1.6rem 3rem;
    font-family: var(--font-display); font-size: 1.4rem; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: #FFFFFF; background: #000000;
    border: none; border-radius: 100px; cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-top: 1rem;
}
.form-submit-btn:hover { background: #1a1a1a; transform: scale(1.01); }
.form-submit-btn:disabled { opacity: 0.5; pointer-events: none; }

/* Form popup */
.form-popup {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    z-index: 10000; opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.form-popup.active { opacity: 1; pointer-events: auto; }
.form-popup-backdrop {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
}
.form-popup-box {
    position: relative; background: #FFFFFF; border-radius: 16px;
    padding: 3.6rem 3rem; max-width: 42rem; width: 90%;
    text-align: center;
    transform: scale(0.9); transition: transform 0.3s ease;
}
.form-popup.active .form-popup-box { transform: scale(1); }
.form-popup-icon { font-size: 4rem; margin-bottom: 1.2rem; }
.form-popup-title {
    font-family: var(--font-display); font-size: 2rem; font-weight: 700;
    color: #000000; margin-bottom: 0.8rem;
}
.form-popup-msg {
    font-family: var(--font-body); font-size: 1.4rem; color: rgba(0,0,0,0.6);
    line-height: 1.6; margin-bottom: 2.4rem;
}
.form-popup-btn {
    padding: 1.2rem 4rem; font-family: var(--font-display); font-size: 1.3rem;
    font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    color: #FFFFFF; background: #000000; border: none; border-radius: 100px;
    cursor: pointer; transition: background 0.3s ease;
}
.form-popup-btn:hover { background: #1a1a1a; }

/* ===== HERO "HANDLED." STAMP TRAIL ===== */
.handled-trail {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
}
.handled-stamp {
    position: absolute;
    pointer-events: none;
    font-family: 'Formetor', cursive;
    font-size: var(--stamp-size, clamp(2.4rem, 4vw, 4.8rem));
    font-weight: 300;
    text-transform: none;
    white-space: nowrap;
    color: #e6ff00;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7) rotate(var(--rot));
    will-change: transform, opacity;
}

/* ===== GLOBAL CURSOR DOT ===== */
.cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 16px;
    height: 16px;
    background: #212121;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, background 0.2s ease;
    background: #e6ff00;
}
a, button, [role="button"], .hero-cta, .sw-view-btn, .contact-link {
    cursor: none;
}
@media (hover: none) and (pointer: coarse) {
    .cursor-dot { display: none !important; }
    body { cursor: auto; }
    a, button, [role="button"] { cursor: auto; }
}

/* ===== MISC ===== */
::selection { background: #212121; color: #FFFFFF; }
::-webkit-scrollbar { width: 0; height: 0; }
body { scrollbar-width: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    /* Header */
    .header-logo { font-size: 1.6rem; top: 1.2rem; }
    .header-pill { font-size: 0.9rem; padding: 0.6rem 1.2rem; top: 5rem; }
    .header-pill--left { left: 1.6rem; }
    .header-pill--right { right: 1.6rem; }
    .side-nav { display: none; }

    /* Hero */
    .hero-video-frame { top: 4rem; left: 1.6rem; right: 1.6rem; bottom: 2rem; }
    .hero-headline { font-size: clamp(2.2rem, 6vw, 3.6rem); }
    .hero-label { font-size: 1rem; letter-spacing: 0.15em; }
    .hero-scroll-cue { bottom: 2rem; }
    .hero-scroll-text { font-size: 1rem; }

    /* About */
    .about-intro-line { font-size: clamp(4rem, 14vw, 10rem); }
    .about-cursive-overlay { font-size: clamp(3rem, 10vw, 6rem); }
    .about-intro-content { padding: 4rem 2rem; }
    .about-intro-text { max-width: 100%; }
    .about-intro-text .display-lg { font-size: clamp(2.4rem, 6vw, 4rem); }
    .about-intro-text .body-text-lg { font-size: 1.4rem; }

    /* Services */
    .services-section { padding: 4rem 2rem; }
    .services-grid { grid-template-columns: 1fr; }
    .services-card:nth-child(odd) { border-right: none; }
    .services-card:nth-last-child(2) { border-bottom: 1px solid rgba(0,0,0,0.2); }
    .services-card { padding: 2.4rem 2rem; }
    .services-card-title { font-size: 1.4rem; }
    .services-card-body { font-size: 1.3rem; }

    /* Selected Work */
    .sw-center { width: 90%; top: 50%; }
    .sw-ch span { font-size: clamp(3rem, 9vw, 6rem); }
    .sw-col-left, .sw-col-right { width: 28%; }
    .sw-col-center { width: 32%; }
    .sw-bottom { left: 1.6rem; right: 1.6rem; }
    .sw-label { left: 1.6rem; top: 2rem; font-size: 1rem; }
    .sw-project-count { right: 1.6rem; bottom: 4rem; }
    .sw-view-btn { font-size: 1.1rem; padding: 1rem 2.4rem; }
    .sw-desc-area { font-size: 1.2rem; }
    .sw-counter-num { font-size: clamp(6rem, 16vw, 14rem); }

    /* Testimonial */
    .testimonial-section { padding: 4rem 2rem; }
    .testimonial-inner { padding: 3rem 0; }
    .testimonial-quote { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }

    /* How NSM Works */
    .why-heading { left: 2rem; top: 2.4rem; font-size: 1.6rem; }
    .why-cards-layer { gap: 1.6rem; padding: 0 2rem; }
    .why-card { width: 28rem; min-width: 28rem; height: 55%; }
    .why-card-inner { padding: 2rem 1.8rem; }
    .why-card-title { font-size: 1.8rem; }
    .why-card-body { font-size: 1.3rem; }

    /* Contact */
    .contact-section { padding: 4rem 2rem; }
    .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
    .contact-left { position: static; }
    .contact-left .display-giant { font-size: clamp(3.6rem, 10vw, 6rem); }
    .contact-left .label { font-size: 1.1rem; }
    .contact-link { font-size: 1.4rem; }
    .form-row { grid-template-columns: 1fr; gap: 1.4rem; }
    .contact-form input,
    .contact-form textarea,
    .contact-form select { font-size: 1.6rem; padding: 1.2rem 1.4rem; }
    .form-submit-btn { font-size: 1.3rem; padding: 1.4rem 2rem; }

    /* Footer */
    .site-footer { padding: 2.4rem 2rem; }
    .site-footer-inner { flex-direction: column; gap: 0.8rem; text-align: center; }

    /* Modal */
    .event-modal-content { max-width: 95vw; max-height: 90vh; }
    .event-modal-img { height: 20rem; }
    .event-modal-body { padding: 2rem 2rem 3rem; }
    .event-modal-title { font-size: 2rem; }
    .event-modal-desc { font-size: 1.3rem; }
    .modal-project-prev, .modal-project-next { display: none; }

    /* Form popup */
    .form-popup-box { padding: 2.8rem 2rem; }
    .form-popup-title { font-size: 1.8rem; }
    .form-popup-msg { font-size: 1.3rem; }
}
