/* ============================================================
   Everythink Design Studio — custom theme
   Rejouice-inspired: fluid type, smooth scroll, minimal
   ============================================================ */

:root {
    --ink: #0a0a0a;
    --paper: #f4f2ee;
    --paper-pure: #ffffff;
    --brand: #2e3192;
    --muted: #8a8a8a;
    --line: rgba(10, 10, 10, 0.12);
    --ease: cubic-bezier(0.65, 0.05, 0, 1);

    --fs-display: clamp(2.4rem, 7vw, 7.5rem);
    --fs-h1: clamp(2rem, 5.5vw, 5.5rem);
    --fs-h2: clamp(1.6rem, 4vw, 3.5rem);
    --fs-body: clamp(1.05rem, 1.5vw, 1.5rem);

    --pad-x: clamp(1.25rem, 5vw, 5rem);
    --max: 1680px;

    font-family: 'Inter', system-ui, sans-serif;
}

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

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
    background: var(--paper);
    color: var(--ink);
    font-size: var(--fs-body);
    line-height: 1.5;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, .display, .nav-link, .service-name, .footer-mail {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1;
}

/* ---------- Page loader ---------- */
.page-loader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--brand);
    display: flex; align-items: center; justify-content: center;
}
.loader-logo { position: relative; z-index: 1; opacity: 1; animation: loaderPulse 1.4s ease-in-out infinite; }
.loader-logo img { width: clamp(160px, 30vw, 320px); }
@keyframes loaderPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }

/* Tiled pattern.svg background, each triangle fading in/out at a random phase */
.loader-pattern { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.loader-pattern svg { display: block; width: 100%; height: 100%; }
.loader-tri { opacity: 0.12; animation: loaderTwinkle 2.6s ease-in-out infinite; }
@keyframes loaderTwinkle { 0%, 100% { opacity: 0.1; } 50% { opacity: 0.85; } }
@media (prefers-reduced-motion: reduce) { .loader-tri { animation: none; opacity: 0.5; } }

/* ---------- Header ---------- */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%;
    z-index: 100; padding: clamp(1rem, 2vw, 1.6rem) var(--pad-x);
    mix-blend-mode: difference;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand-logo { height: clamp(18px, 2vw, 26px); width: auto; filter: invert(1); }
.site-nav { display: flex; gap: clamp(1.5rem, 3vw, 3rem); }
.nav-link {
    font-size: 0.95rem; font-weight: 500; color: #fff;
    position: relative; overflow: hidden; display: inline-block;
    line-height: 1.3; height: 1.3em; vertical-align: bottom;
}
.nav-link span {
    display: block; position: relative; line-height: 1.3;
    transition: transform 0.5s var(--ease);
}
.nav-link span::after {
    content: attr(data-text); position: absolute; top: 100%; left: 0; line-height: 1.3;
}
.nav-link:hover span { transform: translateY(-100%); }
.nav-link.active span { opacity: 1; }

.menu-toggle { display: none; flex-direction: column; gap: 6px; background: none; border: 0; cursor: pointer; }
.menu-toggle span { width: 28px; height: 2px; background: #fff; display: block; }

.mobile-menu {
    position: fixed; inset: 0; z-index: 90; background: var(--brand);
    display: flex; align-items: center; justify-content: center;
    transform: translateY(-100%); transition: transform 0.7s var(--ease);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 1.5rem; text-align: center; }
.mobile-link { font-family: 'Space Grotesk'; font-size: clamp(2rem, 9vw, 4rem); color: #fff; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; background: #07070c;
    min-height: 100svh; display: flex; align-items: flex-end;
    /* extra bottom padding reserves room below .hero-footer for the
       absolutely-positioned .hero-scroll-cue so it never overlaps hero-loc */
    padding: var(--pad-x); padding-bottom: clamp(4.5rem, 10vw, 7rem);
}
/* Grid-distortion WebGL canvas renders header_bg.jpg.
   ::before is the same image as a static fallback if WebGL is unavailable. */
.hero::before {
    content: ''; position: absolute; inset: 0; z-index: 0;
    background: #07070c url('../images/header_bg.jpg') center / cover no-repeat;
    opacity: 1; transition: opacity 0.6s ease;
}
.hero.shader-live::before { opacity: 0; }

.hero-video {
    position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
    object-fit: cover; display: block;
}

/* Dark scrim at the bottom so the light headline stays crisp over the image */
.hero::after {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(to top, rgba(7,7,12,0.62) 0%, rgba(7,7,12,0.18) 45%, transparent 75%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto; }
.hero-title { font-size: calc(var(--fs-display) * 0.5); color: #fff; }
.hero-title .hero-line { display: block; }
.hero-cta {
    display: inline-flex; align-items: center; gap: 0.7rem;
    margin-top: clamp(1.25rem, 3vw, 2rem); padding: 0.85rem 1.7rem;
    border-radius: 100px; border: 1px solid rgba(255,255,255,0.5); color: #fff;
    font-family: 'Space Grotesk'; font-weight: 500; font-size: 1rem;
    transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease),
        opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}
.hero-cta-arrow { transition: transform 0.4s var(--ease); }
.hero-cta:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero-cta:hover .hero-cta-arrow { transform: translateX(6px); }
@media (max-width: 600px) { .hero-cta { padding: 0.7rem 1.4rem; font-size: 0.9rem; } }
.hero-footer {
    display: flex; justify-content: flex-end; align-items: center;
    margin-top: clamp(2rem, 5vw, 4rem); font-size: 0.95rem;
    text-transform: uppercase; letter-spacing: 0.04em; color: rgba(255,255,255,0.7);
}
@media (max-width: 600px) { .hero-footer { font-size: 12px; } }
.hero-scroll-cue {
    position: absolute; left: 50%; bottom: clamp(0.75rem, 2vw, 1.25rem); transform: translateX(-50%);
    z-index: 2; display: flex; padding: 0.5rem; color: rgba(255,255,255,0.85);
    animation: scrollBounce 1.8s ease-in-out infinite;
}
@keyframes scrollBounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .hero-scroll-cue { animation: none; } }

/* ---------- Full-width autoplay video ---------- */
.video-section { width: 100%; line-height: 0; background: var(--ink); margin-bottom: clamp(5rem, 12vw, 12rem); }
.video-fill { width: 100%; height: auto; display: block; object-fit: cover; }

/* ---------- Featured project ---------- */
.featured { width: 100%; margin-bottom: clamp(5rem, 12vw, 12rem); background: var(--ink); }
.featured-link { display: block; position: relative; overflow: hidden; }
.featured-media { width: 100%; overflow: hidden; background: #1a1a1a; }
.featured-media--desktop { aspect-ratio: 16 / 9; }
.featured-media--mobile { display: none; aspect-ratio: 9 / 16; }
.featured-img { width: 100%; height: 120%; margin-top: -10%; object-fit: cover; will-change: transform; }
.featured-overlay {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: clamp(1.5rem, 5vw, 4.5rem); color: #fff;
    background: linear-gradient(to top, rgba(7,7,12,0.78) 0%, rgba(7,7,12,0.25) 45%, transparent 80%);
}
.featured-eyebrow { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.85; margin-bottom: 0.6rem; }
.featured-title { font-family: 'Space Grotesk'; font-weight: 500; font-size: var(--fs-h1); line-height: 1.05; }
.featured-more { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: clamp(1rem, 2.5vw, 1.8rem); font-family: 'Space Grotesk'; font-weight: 500; font-size: 1.1rem; }
.featured-arrow { transition: transform 0.4s var(--ease); }
.featured-link:hover .featured-arrow { transform: translateX(6px); }
@media (max-width: 700px) {
    .featured-media--desktop { display: none; }
    .featured-media--mobile { display: block; }
}

/* ---------- About ---------- */
.about { padding: clamp(5rem, 14vw, 14rem) var(--pad-x); }
.about-inner {
    max-width: var(--max); margin: 0 auto;
    display: grid; grid-template-columns: 1fr 3fr; gap: clamp(2rem, 6vw, 6rem);
}
.about-eyebrow, .section-eyebrow { font-size: 0.9rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.about-body { font-size: var(--fs-h2); font-family: 'Space Grotesk'; font-weight: 400; line-height: 1.2; letter-spacing: -0.02em; }
.about-body p { margin-bottom: 1em; }
.about-body p:last-child { margin-bottom: 0; }
.about-more {
    grid-column: 2; justify-self: start;
    display: inline-flex; align-items: center; gap: 0.6rem; margin-top: clamp(1.5rem, 3vw, 2.5rem);
    font-family: 'Space Grotesk'; font-weight: 500; font-size: 1.05rem; color: var(--brand);
}
.about-more-arrow { transition: transform 0.4s var(--ease); }
.about-more:hover .about-more-arrow { transform: translateX(6px); }
@media (max-width: 900px) { .about-more { grid-column: 1; } }
.about-body .word { display: inline-block; }

/* ---------- Services ---------- */
.services { padding: 0 var(--pad-x) clamp(5rem, 12vw, 12rem); }
.services-head { max-width: var(--max); margin: 0 auto clamp(2rem, 4vw, 3rem); }
.services-list { list-style: none; max-width: var(--max); margin: 0 auto; border-top: 1px solid var(--line); }
.service-item {
    display: flex; align-items: center; gap: clamp(1rem, 4vw, 4rem);
    padding: clamp(1.1rem, 2.4vw, 1.9rem) 0;
    /* inset box-shadow instead of border: a real border sits in the border
       area (outside the padding edge), which absolutely positioned children
       can never reach/cover — it would show through the marquee on hover.
       An inset shadow paints within the padding box, so the marquee (also
       bounded by the padding box) fully covers it. */
    box-shadow: inset 0 -1px 0 0 var(--line);
    position: relative; overflow: hidden;
}
.service-index { font-size: 0.9rem; color: var(--muted); font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.service-name { font-size: clamp(1.05rem, 2.6vw, 2.1rem); font-weight: 500; white-space: nowrap; position: relative; z-index: 1; }
@media (max-width: 600px) {
    .service-item { gap: 0.75rem; }
    .service-name { font-size: clamp(0.8rem, 4vw, 1rem); white-space: normal; }
}

/* ---------- Work category filters (Grav taxonomy: /projects/category:slug) ---------- */
.work-filters {
    display: flex; flex-wrap: wrap; gap: 0.6rem; max-width: var(--max); margin: 0 auto;
    padding: 0 var(--pad-x) clamp(2rem, 4vw, 3rem);
}
.work-filter {
    font-size: 0.9rem; padding: 0.55rem 1.1rem; border-radius: 100px; border: 1px solid var(--line);
    color: var(--muted); transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.work-filter:hover { border-color: var(--ink); color: var(--ink); }
.work-filter.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.work-empty { color: var(--muted); padding: 2rem 0; }

/* ---------- Projects ---------- */
.projects { padding: clamp(3rem, 8vw, 8rem) var(--pad-x); background: var(--ink); color: var(--paper); }
.projects-head, .projects-grid { max-width: var(--max); margin: 0 auto; }
.projects-head .section-eyebrow { color: var(--muted); }
.section-title, .page-title { font-size: var(--fs-h1); margin-top: 0.4em; line-height: 1.08; padding-bottom: 0.14em; }
.projects-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem); margin-top: clamp(2rem, 5vw, 5rem);
}
.project-card { display: block; }
@media (min-width: 901px) and (max-width: 1200px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }

.project-media { overflow: hidden; aspect-ratio: 9/11; background: #1a1a1a; border-radius: 4px; }
.project-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.project-card:hover .project-img { transform: scale(1.06); }
.project-placeholder { width: 100%; height: 100%; object-fit: cover; }
.project-placeholder { background: linear-gradient(135deg, #1a1a1a, #2a2a2a); }
.project-meta { display: flex; justify-content: space-between; margin-top: 1.2rem; font-size: 1.05rem; }
.project-cat { color: var(--muted); }

/* ---------- Generic page ---------- */
.page-hero { padding: clamp(8rem, 18vw, 16rem) var(--pad-x) clamp(2rem, 6vw, 5rem); }
.page-hero-inner, .page-body-inner, .project-hero-inner, .project-content { max-width: var(--max); margin: 0 auto; }
.page-body { padding: 0 var(--pad-x) clamp(5rem, 12vw, 12rem); }
.page-body-inner { font-size: var(--fs-h2); font-family: 'Space Grotesk'; font-weight: 400; line-height: 1.25; letter-spacing: -0.02em; max-width: 1100px; }
.page-body-inner h2 { font-size: clamp(1.4rem, 3vw, 2.4rem); margin: 1.5em 0 0.5em; }
.page-body-inner ul { list-style: none; margin-top: 1em; }
.page-body-inner li { padding: 0.6em 0; border-bottom: 1px solid var(--line); font-size: clamp(1.3rem, 3vw, 2.2rem); }

/* ---------- Project single ---------- */
.project-single { padding-top: clamp(7rem, 14vw, 12rem); }
.project-hero { padding: 0 var(--pad-x) clamp(2rem, 5vw, 4rem); }
.project-client { display: inline-block; margin-top: 1rem; color: var(--muted); }
.project-cover { padding: 0 var(--pad-x); margin-bottom: clamp(3rem, 7vw, 6rem); }
.project-cover .cover-img { width: 100%; border-radius: 6px; }
.cover-frame { overflow: hidden; border-radius: 6px; }
.cover-frame .cover-img { display: block; height: 114%; margin-top: -7%; object-fit: cover; will-change: transform; }
.project-content { padding: 0 var(--pad-x); font-size: var(--fs-body); line-height: 1.6; max-width: 900px; }
.project-content p { margin-bottom: 1.4em; }
/* Project gallery — additional images + self-hosted videos, masonry layout.
   CSS columns (not grid) so each tile keeps its natural aspect ratio and
   packs into whichever column is currently shortest, like Pinterest. */
.project-gallery {
    max-width: var(--max); margin: clamp(3rem, 7vw, 6rem) auto 0; padding: 0 var(--pad-x);
    column-count: 2; column-gap: clamp(1rem, 2.5vw, 2rem);
}
.gallery-item { display: block; break-inside: avoid; margin: 0 0 clamp(1rem, 2.5vw, 2rem); overflow: hidden; border-radius: 6px; background: #1a1a1a; }
.gallery-img { width: 100%; height: auto; display: block; }
.gallery-item--video { column-span: all; aspect-ratio: 16 / 9; }
.gallery-item--video .gallery-video { width: 100%; height: 100%; display: block; object-fit: cover; }
@media (min-width: 1000px) { .project-gallery { column-count: 3; } }
@media (max-width: 700px) { .project-gallery { column-count: 1; } }
/* ---------- Service CTA ---------- */
.service-cta { padding: clamp(4rem, 9vw, 9rem) var(--pad-x); background: var(--brand); color: #fff; margin-top: clamp(3rem, 7vw, 6rem); }
.service-cta-inner { max-width: var(--max); margin: 0 auto; text-align: center; }
.service-cta-eyebrow { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.75; margin-bottom: 1rem; }
.service-cta-title { font-family: 'Space Grotesk'; font-weight: 500; font-size: var(--fs-h1); line-height: 1.05; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.service-cta-btn {
    display: inline-flex; align-items: center; gap: 0.7rem; background: #fff; color: var(--brand);
    font-family: 'Space Grotesk'; font-weight: 500; font-size: 1.1rem;
    padding: 1rem 1.6rem; border-radius: 100px; transition: transform 0.4s var(--ease), opacity 0.3s;
}
.service-cta-btn:hover { transform: translateY(-3px); }
.service-cta-arrow { transition: transform 0.4s var(--ease); }
.service-cta-btn:hover .service-cta-arrow { transform: translateX(5px); }
.service-single .project-nav { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }

/* ---------- Service CTA contact form ---------- */
.service-cta-sub { opacity: 0.85; max-width: 46ch; margin: -1rem auto clamp(2rem, 4vw, 3rem); font-size: 1.05rem; }
.notices { max-width: 640px; margin: 0 auto clamp(1.5rem, 3vw, 2rem); padding: 0.9rem 1.2rem; border-radius: 8px; text-align: center; font-size: 0.95rem; }
.form-notices-slot:empty { margin: 0; }
.notices.green { background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.4); }
.notices.red { background: rgba(220,60,60,0.16); border: 1px solid rgba(220,60,60,0.55); }
.notices.yellow { background: rgba(230,180,40,0.16); border: 1px solid rgba(230,180,40,0.55); }
.cta-form { max-width: 720px; margin: 0 auto; text-align: left; }
.cta-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.2rem; }
.cta-field { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; }
.cta-field-full { margin-bottom: 1.6rem; }
.cta-field em { font-style: normal; opacity: 0.6; }
.cta-optional { font-size: 0.8em; }
.cta-field input, .cta-field textarea, .cta-field select {
    font-family: 'Inter', sans-serif; font-size: 1rem; color: #fff;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.3); border-radius: 8px;
    padding: 0.8rem 1rem; width: 100%; transition: border-color 0.3s, background 0.3s;
}
.cta-field input::placeholder, .cta-field textarea::placeholder { color: rgba(255,255,255,0.5); }
.cta-field input:focus, .cta-field textarea:focus, .cta-field select:focus { outline: none; border-color: #fff; background: rgba(255,255,255,0.14); }
.cta-field textarea { resize: vertical; min-height: 120px; }
.cta-field select { appearance: none; cursor: pointer; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path d="M1 1l5 5 5-5" stroke="white" stroke-width="1.5" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>'); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.cta-field select option { color: #111; }
.cta-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; left: -9999px; }
.cta-submit {
    display: inline-flex; align-items: center; gap: 0.7rem; background: #fff; color: var(--brand);
    font-family: 'Space Grotesk'; font-weight: 500; font-size: 1.1rem; border: 0; cursor: pointer;
    padding: 1rem 1.6rem; border-radius: 100px; transition: transform 0.4s var(--ease);
}
.cta-submit:hover { transform: translateY(-3px); }
.cta-submit-arrow { transition: transform 0.4s var(--ease); }
.cta-submit:hover .cta-submit-arrow { transform: translateX(5px); }
@media (max-width: 700px) { .cta-form-row { grid-template-columns: 1fr; } }

/* ---------- Why Choose Us ---------- */
.why-choose { padding: clamp(4rem, 9vw, 8rem) var(--pad-x); }
.why-choose-inner { max-width: var(--max); margin: 0 auto; }
.why-choose-intro { font-family: 'Space Grotesk'; font-weight: 400; font-size: var(--fs-h2); line-height: 1.3; max-width: 60ch; margin-top: 1em; }
.why-choose-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.why-choose-card { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.why-choose-index { display: block; color: var(--brand); font-size: 0.9rem; font-variant-numeric: tabular-nums; margin-bottom: 0.8rem; }
.why-choose-title { font-family: 'Space Grotesk'; font-weight: 500; font-size: 1.3rem; margin-bottom: 0.6rem; }
.why-choose-text { color: var(--muted); line-height: 1.55; }
@media (max-width: 900px) { .why-choose-grid { grid-template-columns: 1fr; } }

/* ---------- Our Process (timeline) ---------- */
.our-process { padding: clamp(4rem, 9vw, 8rem) var(--pad-x); background: var(--paper-pure); }
.our-process-inner { max-width: var(--max); margin: 0 auto; }
.process-timeline { margin-top: clamp(2.5rem, 5vw, 4rem); display: flex; flex-direction: column; }
.process-step { display: flex; gap: clamp(1.2rem, 3vw, 2.5rem); padding: clamp(1.4rem, 3vw, 2rem) 0; border-top: 1px solid var(--line); align-items: flex-start; }
.process-step:last-child { border-bottom: 1px solid var(--line); }
.process-step-num { font-family: 'Space Grotesk'; font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--brand); flex-shrink: 0; width: 3ch; }
.process-step-title { font-family: 'Space Grotesk'; font-weight: 500; font-size: 1.2rem; margin-bottom: 0.4rem; }
.process-step-text { color: var(--muted); max-width: 60ch; line-height: 1.55; }

/* ---------- Testimonials ---------- */
.testimonials { padding: clamp(4rem, 9vw, 8rem) var(--pad-x); background: var(--ink); color: var(--paper); }
.testimonials-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.testimonials .section-eyebrow { color: var(--muted); }
.testimonials-track { margin-top: clamp(2rem, 4vw, 3rem); min-height: 9rem; }
.testimonial-slide { animation: fadeInUp 0.6s var(--ease); touch-action: pan-y; }
@media (prefers-reduced-motion: reduce) { .testimonial-slide { animation: none; } }
.testimonial-quote { font-family: 'Space Grotesk'; font-weight: 400; font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.4; }
.testimonial-meta { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.2rem; }
.testimonial-name { font-weight: 600; }
.testimonial-company { color: var(--muted); font-size: 0.9rem; }
.testimonials-dots { display: flex; justify-content: center; align-items: center; gap: 0.25rem; margin-top: 2rem; }
.testimonials-dot {
    width: 19px; height: 19px; padding: 6px; margin: 0; border: 0; border-radius: 50%;
    background: rgba(255,255,255,0.25); background-clip: content-box;
    cursor: pointer; transition: background 0.3s, transform 0.2s; appearance: none;
}
.testimonials-dot:hover { transform: scale(1.2); }
.testimonials-dot.is-active { background: #fff; background-clip: content-box; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- FAQ accordion ---------- */
.service-faq { padding: clamp(4rem, 9vw, 8rem) var(--pad-x); }
.service-faq-inner { max-width: 900px; margin: 0 auto; }
.faq-list { margin-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: 0.3rem 0; }
.faq-question {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.1rem 0; cursor: pointer; list-style: none;
    font-family: 'Space Grotesk'; font-weight: 500; font-size: clamp(1.05rem, 2vw, 1.3rem);
}
.faq-question::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; background: var(--ink); transition: transform 0.3s var(--ease); }
.faq-icon::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.faq-icon::after { left: 50%; top: 0; height: 100%; width: 2px; transform: translateX(-50%); }
.faq-item[open] .faq-icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-answer { padding-bottom: 1.3rem; max-width: 70ch; }
.faq-answer p { color: var(--muted); line-height: 1.6; }

/* ---------- Project prev/next pager ---------- */
.project-pager {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    max-width: var(--max); margin: clamp(4rem,8vw,8rem) auto 0;
    padding: clamp(2.5rem,5vw,4rem) var(--pad-x); border-top: 1px solid var(--line);
}
.pager-link { display: flex; flex-direction: column; gap: 0.4rem; max-width: 40%; }
.pager-next { text-align: right; }
.pager-dir { color: var(--brand); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.pager-name { font-family: 'Space Grotesk'; font-weight: 500; font-size: clamp(1.1rem,2.2vw,1.8rem); line-height: 1.1; transition: opacity 0.3s; }
.pager-link:hover .pager-name { opacity: 0.55; }
.pager-all {
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted);
    border: 1px solid var(--line); border-radius: 100px; padding: 0.6rem 1.2rem; white-space: nowrap;
    transition: border-color 0.3s, color 0.3s;
}
.pager-all:hover { border-color: var(--ink); color: var(--ink); }


/* ---------- Footer ---------- */
.site-footer { background: var(--brand); color: #fff; padding: clamp(4rem, 9vw, 9rem) var(--pad-x) clamp(2rem, 4vw, 3rem); }
.footer-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; }
.footer-label { font-size: 0.95rem; opacity: 0.7; margin-bottom: 1rem; }
.footer-mail { font-size: clamp(2rem, 7vw, 6rem); font-weight: 500; display: inline-block; transition: opacity 0.4s; }
.footer-mail:hover { opacity: 0.6; }
.footer-cols { display: flex; gap: clamp(2rem, 5vw, 5rem); justify-content: flex-end; }
.footer-col-title { display: block; opacity: 0.6; font-size: 0.85rem; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { transition: opacity 0.3s; } .footer-col a:hover { opacity: 0.6; }
.footer-bottom {
    max-width: var(--max); margin: clamp(3rem, 8vw, 7rem) auto 0;
    padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.2);
    display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem;
    font-size: 0.85rem; opacity: 0.85;
}
.footer-logo { height: clamp(28px, 5vw, 60px); width: auto; }

/* ---------- Hero + loader reveal: pure CSS, triggered by body.is-ready ----------
   Below-the-fold [data-animate] states are set in JS (app.js), so if GSAP ever
   fails, that content stays visible. Nothing here hides content permanently. */

/* Loader: shown only while JS is present and not yet ready */
html:not(.js) .page-loader { display: none; }
.js .page-loader { transition: transform 0.8s cubic-bezier(0.76,0,0.24,1); }
body.is-ready .page-loader { transform: translateY(-100%); pointer-events: none; }
/* Reuse the sitewide preloader while an AJAX form submission is in flight */
body.form-loading .page-loader { transform: translateY(0) !important; pointer-events: auto !important; }

/* Hero lines: hidden under JS until ready, then transition up. No-JS = visible. */
.js .hero-title { opacity: 0; transform: translateY(26px); transition: opacity 1.3s var(--ease), transform 1.3s var(--ease); }
body.is-ready .hero-title { opacity: 1; transform: none; }

/* Hero label/footer gentle fade-in */
.js .hero-label, .js .hero-footer { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s; }
body.is-ready .hero-label, body.is-ready .hero-footer { opacity: 1; transform: none; }
/* .hero-cta keeps its own transition (declared above) so the hover fill still
   animates smoothly after the entrance reveal — a shared shorthand here would
   clobber it, since transition shorthand doesn't merge across selectors. */
.js .hero-cta { opacity: 0; transform: translateY(20px); }
body.is-ready .hero-cta { opacity: 1; transform: none; }

/* ---------- Hero label (SEO + visual context) ---------- */
.hero-label {
    display: block; font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.06em; color: #b9bdff;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

/* ---------- Services list as links ---------- */
.service-link { display: flex; align-items: center; gap: clamp(1rem, 4vw, 4rem); width: 100%; position: relative; z-index: 1; }
.service-arrow { margin-left: auto; font-size: 1.4rem; opacity: 0; transform: translateX(-10px); transition: all 0.4s var(--ease); }
.service-item:hover .service-arrow { opacity: 1; transform: translateX(0); }

/* ---------- Flowing menu (ReactBits-style): marquee slides in on hover,
   direction (top/bottom) set by JS from cursor entry point; CSS below is the
   no-JS / reduced-motion-safe base (marquee only reveals with JS enhancement). */
.fm-marquee {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    transform: translateY(101%); will-change: transform;
}
@media (prefers-reduced-motion: no-preference) {
    .fm-item:hover .fm-marquee { transform: translateY(0%); transition: transform 0.6s cubic-bezier(0.16,1,0.3,1); }
}
.fm-marquee-inner {
    width: 100%; height: 100%; overflow: hidden; display: flex; align-items: center;
    background: linear-gradient(120deg, var(--brand) 0%, #3a24d6 100%);
}
.fm-marquee-track {
    display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem);
    white-space: nowrap; padding-left: var(--pad-x);
    animation: fm-scroll 18s linear infinite;
}
.fm-item:nth-child(even) .fm-marquee-track { animation-direction: reverse; }
.fm-marquee-text { font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: clamp(1.05rem, 2.6vw, 2.1rem); color: #fff; }
.fm-marquee-dot { width: 8px; height: 8px; border-radius: 50%; background: #b9bdff; flex-shrink: 0; }
@keyframes fm-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .fm-marquee-track { animation: none; } }
@media (max-width: 600px) { .fm-marquee-text { font-size: clamp(0.8rem, 4vw, 1rem); } }

/* ---------- Service single page ---------- */
.service-hero { padding: clamp(8rem, 18vw, 16rem) var(--pad-x) clamp(2rem, 5vw, 4rem); }
.service-number { font-size: clamp(1rem,2vw,1.4rem); color: var(--brand); font-variant-numeric: tabular-nums; }
.service-deliverables { list-style: none; max-width: var(--max); margin: 0 auto; border-top: 1px solid var(--line); }
.service-deliverables li {
    padding: clamp(1rem, 2.5vw, 1.8rem) 0; border-bottom: 1px solid var(--line);
    font-family: 'Space Grotesk'; font-size: clamp(1.3rem, 3vw, 2.4rem); font-weight: 500;
}
.service-process { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin: 1.5em 0; }
.service-process span { font-family: 'Space Grotesk'; font-size: clamp(1.1rem,2.5vw,1.8rem); }
.service-process .sep { color: var(--brand); }

/* ---------- Team / Who we are ---------- */
.team { padding: clamp(4rem, 10vw, 10rem) var(--pad-x); }
.team-inner { max-width: var(--max); margin: 0 auto; }
.team-title { font-size: var(--fs-h1); margin-bottom: clamp(2.5rem, 6vw, 5rem); line-height: 1.08; padding-bottom: 0.14em; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 4rem); }
.team-photo { aspect-ratio: 9/7; overflow: hidden; background: #1a1a1a; border-radius: 4px; }
.team-photo img { width: 100%; height: 120%; margin-top: -10%; object-fit: cover; filter: grayscale(1); transition: filter 0.5s var(--ease); will-change: transform; }
.team-member:hover .team-photo img { filter: grayscale(0); }
.team-name { font-family: 'Space Grotesk'; font-weight: 600; font-size: clamp(1.2rem,2vw,1.6rem); margin-top: 1.2rem; }
.team-role { color: var(--brand); font-weight: 500; margin-top: 0.2rem; }
.team-tags { color: var(--muted); font-size: 0.95rem; margin-top: 0.1rem; }
.team-bio { margin-top: 1rem; font-size: 1rem; line-height: 1.55; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .about-inner { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .video-section { margin-bottom: clamp(3rem, 10vw, 6rem); }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-cols { justify-content: flex-start; }
    .site-nav { display: none; }
    .menu-toggle { display: flex; }
    .team-grid { grid-template-columns: 1fr; gap: 3rem; }
}
