/* ============================================================
   0. RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

:root {
    /* ---- Color tokens sampled directly from the BrightKraft logo ---- */
    --void: #07060d;
    --surface: #0d0c17;
    --surface-2: #14131f;
    --surface-3: #1a1826;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.16);

    --violet: #7a3edb;
    --violet-2: #9d6fea;
    --violet-deep: #4a2591;
    --blue-mid: #4c7fe0;
    --cyan: #12cbd1;
    --cyan-2: #5fe6e4;
    --cyan-deep: #0c7f8f;

    --paper: #f6f4ff;
    --paper-dim: #c9c5dc;
    --muted: #948fa8;
    --muted-2: #6a6580;

    --gradient: linear-gradient(115deg, var(--violet) 0%, var(--blue-mid) 52%, var(--cyan) 100%);
    --gradient-soft: linear-gradient(115deg, rgba(122, 62, 219, 0.16) 0%, rgba(18, 203, 209, 0.16) 100%);
    --gradient-text: linear-gradient(100deg, var(--violet-2) 0%, var(--blue-mid) 50%, var(--cyan-2) 100%);

    --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;

    --container: 1240px;
    --pad: clamp(20px, 5vw, 64px);
    --ease: cubic-bezier(.16, .84, .24, 1);
}

html,
body {
    background: var(--void);
}

body {
    font-family: var(--font-body);
    color: var(--paper);
    background: var(--void);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    cursor: none;
}

@media (hover: none),
(pointer: coarse) {
    body {
        cursor: auto;
    }
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

ul {
    list-style: none;
}

::selection {
    background: var(--violet);
    color: #fff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
    border-radius: 2px;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--void);
}

::-webkit-scrollbar-thumb {
    background: var(--surface-3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--violet-deep);
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 3000;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    transition: opacity .2s ease;
}

.cursor-ring {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width .25s var(--ease), height .25s var(--ease), opacity .2s ease, border-color .25s ease;
}

.cursor-ring.hovered {
    width: 60px;
    height: 60px;
    border-color: var(--cyan-2);
    background: rgba(18, 203, 209, 0.08);
}

@media (hover: none),
(pointer: coarse) {

    .cursor-dot,
    .cursor-ring {
        display: none;
    }
}

/* ============================================================
   LOADING BAR + PRELOADER
   ============================================================ */
.load-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: var(--gradient);
    z-index: 2100;
    transition: width .25s ease;
}

.preloader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: var(--void);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 22px;
    transition: opacity .7s ease, visibility .7s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader .mark {
    width: 58px;
    height: 58px;
}

.preloader .mark img {
    width: 100%;
    height: 100%;
    animation: pulse-mark 1.5s ease-in-out infinite;
}

@keyframes pulse-mark {

    0%,
    100% {
        opacity: 0.45;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.preloader .pct {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    color: var(--muted);
}

/* ============================================================
   1. UTILITIES / TYPE
   ============================================================ */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding-left: var(--pad);
    padding-right: var(--pad);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cyan-2);
}

.eyebrow::before {
    content: '';
    width: 7px;
    height: 7px;
    background: var(--gradient);
    transform: rotate(45deg);
    flex-shrink: 0;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.01em;
}

h2.section-title {
    font-size: clamp(2rem, 4.2vw, 3.1rem);
    margin-top: 14px;
    max-width: 16ch;
    overflow: hidden;
}

.split-word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}

.split-word span {
    display: inline-block;
    transform: translateY(100%);
    transition: transform .8s var(--ease);
}

.split-word.revealed span {
    transform: translateY(0);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.section-head p {
    max-width: 38ch;
    color: var(--muted);
    font-size: 1rem;
    padding-bottom: 6px;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 100%;
    animation: gradient-shift 6s ease-in-out infinite;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

section {
    position: relative;
    padding: 130px 0;
}

@media (max-width: 720px) {
    section {
        padding: 90px 0;
    }
}

.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
    opacity: 0.035;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.blueprint-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
    pointer-events: none;
    will-change: transform;
}

.bracket {
    position: relative;
}

.bracket::before,
.bracket::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--cyan);
    opacity: 0;
    transition: opacity .35s ease, width .35s ease, height .35s ease;
    pointer-events: none;
}

.bracket::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.bracket::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

.bracket:hover::before,
.bracket:hover::after {
    opacity: 1;
    width: 22px;
    height: 22px;
}

/* Buttons */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 2px;
    overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s ease, color .35s ease, border-color .35s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient);
    background-size: 200% 100%;
    color: #07060d;
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px -10px rgba(122, 62, 219, 0.55);
    background-position: 100% 0;
}

.btn-ghost {
    border: 1px solid var(--line-strong);
    color: var(--paper);
    z-index: 1;
}

.btn-ghost::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s var(--ease);
    z-index: -1;
}

.btn-ghost:hover {
    color: #07060d;
    border-color: transparent;
    transform: translateY(-3px);
}

.btn-ghost:hover::before {
    transform: scaleX(1);
}

.btn svg {
    width: 15px;
    height: 15px;
    transition: transform .3s ease;
}

.btn:hover svg {
    transform: translate(3px, -3px);
}

[data-reveal] {
    opacity: 0;
    transform: perspective(1000px) translateY(34px) translateZ(-60px) rotateX(8deg);
    transform-origin: 50% 100%;
    transition: opacity 1s var(--ease), transform 1s var(--ease);
    will-change: transform, opacity;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: perspective(1000px) translateY(0) translateZ(0) rotateX(0deg);
}

.back-to-top {
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 400;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line-strong);
    background: rgba(13, 12, 23, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity .35s ease, transform .35s ease, border-color .3s ease;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    border-color: var(--cyan);
}

.back-to-top svg {
    width: 16px;
    height: 16px;
}

/* ============================================================
   2. NAV
   ============================================================ */
header.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    padding: 22px 0;
    transition: padding .35s ease, background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
    border-bottom: 1px solid transparent;
}

header.nav.scrolled {
    padding: 14px 0;
    background: rgba(7, 6, 13, 0.78);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.18rem;
    letter-spacing: -0.01em;
}

.logo .mark {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.logo .mark img {
    width: 100%;
    height: 100%;
}

.logo .word span {
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 0.72em;
    color: var(--cyan-2);
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.nav-links a {
    font-size: 0.86rem;
    color: var(--paper-dim);
    position: relative;
    padding: 8px 14px;
    transition: color .25s ease;
    z-index: 1;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--paper);
}

.nav-indicator {
    position: absolute;
    top: 0;
    height: 100%;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 2px;
    transition: left .4s var(--ease), width .4s var(--ease);
    z-index: 0;
    opacity: 0;
}

.nav-links.ready .nav-indicator {
    opacity: 1;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-cta {
    display: inline-flex;
}

.burger {
    display: none;
    width: 26px;
    height: 20px;
    position: relative;
    z-index: 600;
}

.burger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: var(--paper);
    transition: transform .3s ease, opacity .3s ease, top .3s ease;
}

.burger span:nth-child(1) {
    top: 0;
}

.burger span:nth-child(2) {
    top: 9px;
}

.burger span:nth-child(3) {
    top: 18px;
}

.burger.active span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 450;
    background: var(--void);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 0 var(--pad);
    transform: translateY(-100%);
    transition: transform .55s var(--ease);
}

.mobile-menu.open {
    transform: translateY(0);
}

.mobile-menu a {
    font-family: var(--font-display);
    font-size: 2.2rem;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.mobile-menu .mob-contact {
    margin-top: 30px;
    font-family: var(--font-mono);
    color: var(--muted);
    font-size: 0.85rem;
}

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

    .nav-cta {
        display: none;
    }

    .burger {
        display: block;
    }
}

/* ============================================================
   3. HERO
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    padding-bottom: 60px;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.85;
}

.hero-3d {
    position: absolute;
    top: 0;
    right: 0;
    width: min(50vw, 760px);
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.4s var(--ease) .4s;
}

.hero-3d.ready {
    opacity: 1;
}

.hero-3d canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 980px) {
    .hero-3d {
        display: none;
    }
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    margin-bottom: 26px;
}

.hero h1 {
    font-size: clamp(2.6rem, 6.4vw, 5.4rem);
    max-width: 16ch;
}

.hero h1 .line {
    display: block;
    overflow: hidden;
}

.hero h1 .line span {
    display: inline-block;
}

.hero-sub {
    margin-top: 30px;
    max-width: 46ch;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: var(--paper-dim);
}

.hero-actions {
    display: flex;
    gap: 18px;
    margin-top: 44px;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 50px;
    margin-top: 88px;
    padding-top: 34px;
    border-top: 1px solid var(--line);
    max-width: 620px;
}

.hero-stats .stat-num {
    font-family: var(--font-mono);
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 500;
    color: var(--paper);
}

.hero-stats .stat-num .plus {
    color: var(--cyan);
}

.hero-stats .stat-label {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 6px;
    max-width: 16ch;
}

@media (max-width: 620px) {
    .hero-stats {
        grid-template-columns: repeat(2, auto);
        row-gap: 30px;
    }
}

.scroll-cue {
    position: absolute;
    bottom: 34px;
    left: var(--pad);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 2;
}

.scroll-cue .dash {
    width: 26px;
    height: 1px;
    background: var(--muted);
    position: relative;
    overflow: hidden;
}

.scroll-cue .dash::after {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--cyan);
    animation: dash-run 2.2s ease-in-out infinite;
}

@keyframes dash-run {
    0% {
        left: -100%;
    }

    50% {
        left: 0;
    }

    100% {
        left: 100%;
    }
}

@media (max-width: 720px) {
    .scroll-cue {
        display: none;
    }
}

/* ============================================================
   4. MARQUEE
   ============================================================ */
.marquee-section {
    padding: 46px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.marquee-label {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 30px;
}

.marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 90px;
    animation: scroll-x 26s linear infinite;
}

.marquee-section:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-track span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.7rem;
    color: var(--muted-2);
    white-space: nowrap;
    transition: color .3s ease, opacity .3s ease;
    opacity: 0.7;
}

.marquee-track span:hover {
    color: var(--cyan-2);
    opacity: 1;
}

@keyframes scroll-x {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ============================================================
   5. SERVICES
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    perspective: 1200px;
}

.service-card {
    background: var(--void);
    padding: 42px 34px;
    position: relative;
    transition: background .4s ease, transform .1s linear;
    transform-style: preserve-3d;
    will-change: transform;
}

.service-card:hover {
    background: var(--surface);
}

.service-card .num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted-2);
    transform: translateZ(20px);
}

.service-card .icon {
    width: 40px;
    height: 40px;
    margin: 26px 0 22px;
    color: var(--cyan);
    transition: transform .4s var(--ease);
    transform: translateZ(20px);
}

.service-card:hover .icon {
    transform: translateZ(20px) scale(1.12) rotate(-6deg);
}

.service-card .icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 1.18rem;
    margin-bottom: 12px;
    font-weight: 600;
    transform: translateZ(15px);
}

.service-card p {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.65;
    transform: translateZ(10px);
}

.service-card::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: var(--gradient);
    transition: width .45s ease;
}

.service-card:hover::after {
    width: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(122, 62, 219, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 620px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   6. WORK / CASE STUDIES
   ============================================================ */
.work-list {
    display: flex;
    flex-direction: column;
    gap: 140px;
}

.work-item {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 70px;
    align-items: center;
    perspective: 1400px;
}

.work-item.reverse {
    grid-template-columns: 0.9fr 1fr;
}

.work-item.reverse .work-visual {
    order: 2;
}

.work-item.reverse .work-copy {
    order: 1;
}

.work-visual {
    position: relative;
    aspect-ratio: 4/3;
    border: 1px solid var(--line-strong);
    padding: 18px;
    cursor: pointer;
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform .1s linear;
}

.work-visual .visual-inner {
    width: 100%;
    height: 100%;
    background: var(--surface-2);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-visual .tag-index {
    position: absolute;
    top: -1px;
    left: 18px;
    transform: translateY(-50%) translateZ(46px);
    background: var(--void);
    padding: 0 10px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--cyan);
    letter-spacing: .1em;
    z-index: 4;
}

.work-visual img.case-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease), filter .5s ease;
    filter: saturate(1.05);
}

.work-visual:hover img.case-photo {
    transform: scale(1.08);
}

.work-visual .photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 6, 13, 0.05) 40%, rgba(7, 6, 13, 0.75) 100%);
    z-index: 2;
}

.work-wordmark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 2;
    transform: translateZ(40px);
}

.work-visual .glow {
    position: absolute;
    inset: -30%;
    opacity: 0.55;
    filter: blur(50px);
    background: radial-gradient(circle at 30% 30%, var(--violet), transparent 60%), radial-gradient(circle at 70% 70%, var(--cyan), transparent 60%);
    transition: transform .6s ease;
    transform: translateZ(-70px);
}

.work-visual:hover .glow {
    transform: translateZ(-70px) scale(1.15) rotate(8deg);
}

.work-visual .expand-hint {
    position: absolute;
    bottom: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--paper-dim);
    opacity: 0;
    transform: translateY(6px) translateZ(46px);
    transition: all .3s ease;
    z-index: 3;
}

.work-visual:hover .expand-hint {
    opacity: 1;
    transform: translateY(0) translateZ(46px);
}

.work-visual .expand-hint svg {
    width: 13px;
    height: 13px;
}

.illustration {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.illustration svg {
    width: 100%;
    height: 100%;
}

.video-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.case-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}

.work-visual:hover .case-video {
    transform: scale(1.06);
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to top,
            rgba(7, 6, 13, .45),
            rgba(7, 6, 13, .15));
    transition: background .35s;
    pointer-events: none;
}

.work-visual:hover .video-overlay {
    background: rgba(0, 0, 0, .15);
}

.play-button {
    width: 78px;
    height: 78px;
    border: 2px solid #5fe6e4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 6, 13, .35);
    backdrop-filter: blur(6px);
    transition: transform .35s ease;
}

.work-visual:hover .play-button {
    transform: scale(1.08);
}

.play-button svg {
    width: 28px;
    height: 28px;
    color: #fff;
    margin-left: 4px;
}

.work-copy .tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.work-copy .tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--cyan-2);
    border: 1px solid var(--line-strong);
    padding: 5px 10px;
}

.work-copy h3 {
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    margin-bottom: 16px;
}

.work-copy p {
    color: var(--muted);
    max-width: 42ch;
    margin-bottom: 26px;
}

.work-copy .work-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--paper);
    border-bottom: 1px solid var(--line-strong);
    padding-bottom: 4px;
    transition: border-color .3s ease, color .3s ease, gap .3s ease;
}

.work-copy .work-link:hover {
    color: var(--cyan-2);
    border-color: var(--cyan);
    gap: 13px;
}

.work-copy .work-link svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 860px) {

    .work-item,
    .work-item.reverse {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .work-item.reverse .work-visual {
        order: 1;
    }

    .work-item.reverse .work-copy {
        order: 2;
    }

    .work-list {
        gap: 90px;
    }
}

/* ============================================================
   7. PROCESS
   ============================================================ */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 27px;
    left: 6%;
    right: 6%;
    height: 1px;
    background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 16px);
    z-index: 0;
}

.process-step {
    position: relative;
    z-index: 1;
}

.process-step .step-num {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    border: 1px solid var(--line-strong);
    background: var(--void);
    color: var(--cyan-2);
    margin-bottom: 26px;
    transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

.process-step:hover .step-num {
    border-color: var(--cyan);
    box-shadow: 0 0 24px -6px rgba(18, 203, 209, 0.55);
    transform: translateY(-4px);
}

.process-step h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.process-step p {
    color: var(--muted);
    font-size: 0.9rem;
    max-width: 30ch;
}

@media (max-width: 900px) {
    .process-grid {
        grid-template-columns: 1fr 1fr;
        row-gap: 50px;
    }

    .process-grid::before {
        display: none;
    }
}

@media (max-width: 560px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   8. STATS BAND
   ============================================================ */
.stats-band {
    position: relative;
    padding: 100px 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.stats-band .blueprint-grid {
    -webkit-mask-image: radial-gradient(ellipse 80% 100% at 50% 50%, black, transparent 95%);
    mask-image: radial-gradient(ellipse 80% 100% at 50% 50%, black, transparent 95%);
}

.stats-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
}

.stat-block {
    text-align: center;
    padding: 0 20px;
}

.stat-block .num {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-block .label {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.88rem;
    letter-spacing: 0.02em;
}

@media (max-width: 720px) {
    .stats-inner {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* ============================================================
   9. TESTIMONIALS (carousel)
   ============================================================ */
.testi-wrap {
    position: relative;
}

.testi-track-outer {
    overflow: hidden;
}

.testi-track {
    display: flex;
    transition: transform .6s var(--ease);
}

.testi-slide {
    flex: 0 0 100%;
    padding: 4px;
}

.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testi-card {
    border: 1px solid var(--line);
    padding: 34px 30px;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
    transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}

.testi-card:hover {
    border-color: var(--cyan);
    transform: translateY(-6px);
    box-shadow: 0 24px 50px -20px rgba(18, 203, 209, 0.25);
}

.testi-card .quote-mark {
    font-family: var(--font-display);
    font-size: 2.6rem;
    color: var(--violet-2);
    line-height: 1;
}

.testi-card p.quote {
    color: var(--paper-dim);
    font-size: 0.98rem;
    line-height: 1.7;
}

.testi-card .who {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testi-card .avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gradient);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: #07060d;
}

.testi-card .who .name {
    font-size: 0.9rem;
    font-weight: 600;
}

.testi-card .who .role {
    font-size: 0.78rem;
    color: var(--muted);
}

.testi-dots {
    display: flex;
    gap: 9px;
    justify-content: center;
    margin-top: 40px;
}

.testi-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--line-strong);
    transition: background .3s ease, transform .3s ease;
}

.testi-dots button.active {
    background: var(--cyan);
    transform: scale(1.3);
}

@media (max-width: 900px) {
    .testi-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   10. CTA BANNER
   ============================================================ */
.cta-banner {
    position: relative;
    padding: 140px 0;
    text-align: center;
    overflow: hidden;
    border-top: 1px solid var(--line);
}

#cta-canvas {
    position: absolute;
    inset: 0;
    opacity: 0.75;
}

.cta-banner .container {
    position: relative;
    z-index: 2;
}

.cta-banner h2 {
    font-size: clamp(2.2rem, 5.2vw, 4rem);
    max-width: 18ch;
    margin: 0 auto;
}

.cta-banner p {
    margin: 26px auto 0;
    color: var(--paper-dim);
    max-width: 42ch;
}

.cta-actions {
    display: flex;
    gap: 18px;
    justify-content: center;
    margin-top: 46px;
    flex-wrap: wrap;
}

/* ============================================================
   11. FOOTER
   ============================================================ */
footer {
    padding: 90px 0 0;
    border-top: 1px solid var(--line);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 70px;
}

.footer-brand p {
    color: var(--muted);
    margin-top: 18px;
    max-width: 32ch;
    font-size: 0.92rem;
}

.footer-brand .logo {
    margin-bottom: 4px;
}

.footer-brand .logo .mark {
    width: 40px;
    height: 40px;
}

.footer-social {
    display: flex;
    gap: 14px;
    margin-top: 26px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border: 1px solid var(--line-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .3s ease, color .3s ease, transform .3s ease;
}

.footer-social a:hover {
    border-color: var(--cyan);
    color: var(--cyan-2);
    transform: translateY(-3px);
}

.footer-social svg {
    width: 15px;
    height: 15px;
}

.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 22px;
    font-weight: 500;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.footer-col a,
.footer-col span {
    font-size: 0.9rem;
    color: var(--paper-dim);
    transition: color .25s ease;
}

.footer-col a:hover {
    color: var(--cyan-2);
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding: 26px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted-2);
}

@media (max-width: 860px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        row-gap: 46px;
    }
}

@media (max-width: 520px) {
    .footer-top {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   12. MODAL
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 800;
    background: rgba(4, 3, 8, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    width: 100%;
    max-width: 600px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    padding: 0;
    position: relative;
    transform: translateY(24px) scale(0.97);
    transition: transform .45s var(--ease);
    max-height: 86vh;
    overflow-y: auto;
}

.modal-overlay.open .modal-box {
    transform: translateY(0) scale(1);
}

.modal-box .modal-media {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    background: var(--surface-2);
}

.modal-box .modal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-box .modal-body {
    padding: 40px;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(7, 6, 13, 0.55);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: border-color .3s ease, transform .3s ease;
}

.modal-close:hover {
    border-color: var(--cyan);
    transform: rotate(90deg);
}

.modal-close svg {
    width: 14px;
    height: 14px;
}

.modal-box .tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.modal-box h3 {
    font-size: 1.7rem;
    margin-bottom: 16px;
}

.modal-box p {
    color: var(--muted);
    margin-bottom: 22px;
}

.modal-box .modal-services {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.modal-box .modal-services span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--paper-dim);
    background: var(--surface-2);
    padding: 6px 10px;
    border: 1px solid var(--line);
}

/* ============================================================
   14. CONTACT SECTION
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

@media (max-width: 980px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-card {
    border: 1px solid var(--line);
    padding: 40px 36px;
    transition: border-color .3s ease, background .3s ease, transform .3s ease;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card:hover {
    border-color: var(--cyan);
    background: var(--surface);
    transform: translateY(-5px);
}

.contact-card .icon {
    width: 34px;
    height: 34px;
    color: var(--cyan);
}

.contact-card .icon svg {
    width: 100%;
    height: 100%;
}

.contact-card h3 {
    font-size: 1.1rem;
}

.contact-card .value {
    font-family: var(--font-mono);
    color: var(--paper-dim);
    font-size: 1.05rem;
}

.contact-card .go {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--cyan-2);
    margin-top: auto;
}

.contact-card .go svg {
    width: 13px;
    height: 13px;
    transition: transform .3s ease;
}

.contact-card:hover .go svg {
    transform: translate(3px, -3px);
}

@media (max-width: 700px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.case-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
}

.case-gallery img {
    width: 100%;
    border-radius: 16px;
    display: block;
}

.note-banner {
    margin-top: 60px;
    border: 1px dashed var(--line-strong);
    padding: 18px 22px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--muted);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.note-banner svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--cyan);
}

/* ============================================================
   PAGE-TOP (About Us / Contact — lighter header than the
   Three.js hero, reuses the same tokens)
   ============================================================ */
.page-top {
    padding: 168px 0 70px;
    border-bottom: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}

.page-top .crumb {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: .04em;
}

.page-top .crumb span {
    color: var(--cyan-2);
}

.page-top h1 {
    font-size: clamp(2.4rem, 5.6vw, 4rem);
    margin-top: 18px;
    max-width: 16ch;
    overflow: hidden;
}

.page-top .lede {
    margin-top: 20px;
    color: var(--paper-dim);
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    max-width: 58ch;
}

.page-top .glow-bg {
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: var(--gradient);
    opacity: .14;
    filter: blur(100px);
    top: -220px;
    right: -120px;
    pointer-events: none;
}

/* work-wordmark cards — colour variants for portfolio items
   that don't yet have final photography/film assets */
.work-visual.wm-1 .glow {
    background: radial-gradient(circle at 30% 30%, var(--violet), transparent 60%), radial-gradient(circle at 70% 70%, var(--cyan), transparent 60%);
}

.work-visual.wm-2 .glow {
    background: radial-gradient(circle at 30% 30%, var(--cyan-deep), transparent 60%), radial-gradient(circle at 70% 70%, var(--violet-2), transparent 60%);
}

.work-visual.wm-3 .glow {
    background: radial-gradient(circle at 30% 30%, var(--violet-deep), transparent 60%), radial-gradient(circle at 70% 70%, var(--cyan-2), transparent 60%);
}

.work-visual .work-wordmark {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.work-visual .work-wordmark small {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--paper-dim);
    font-weight: 400;
}

/* Story / about split */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-split .about-visual {
    aspect-ratio: 1;
    border: 1px solid var(--line);
    background: var(--gradient-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.about-split .about-visual img {
    width: 42%;
    filter: drop-shadow(0 20px 50px rgba(122, 62, 219, .4));
    animation: pulse-mark 5s ease-in-out infinite;
}

.about-split p+p {
    margin-top: 16px;
}

@media (max-width: 900px) {
    .about-split {
        grid-template-columns: 1fr;
        gap: 34px;
    }
}

/* Values list, reused CSS tokens */
.values-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.values-row .value {
    padding-top: 20px;
    border-top: 2px solid var(--line-strong);
}

.values-row .value h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.values-row .value p {
    color: var(--paper-dim);
    font-size: 0.9rem;
}

@media (max-width: 760px) {
    .values-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 540px) {
    .values-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   15. 3D SCROLLER (PURE FULL-SCREEN VISUAL EXPERIENCE)
   ============================================================ */
.scroller-section {
    position: relative;
    height: 420vh;
    background: #000;
}

.scroller-pin {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.scroller-glow {
    position: absolute;
    inset: -15%;
    background: radial-gradient(circle at 50% 50%, rgba(122, 62, 219, 0.28), rgba(18, 203, 209, 0.16), transparent 70%);
    filter: blur(100px);
    opacity: 0.75;
    z-index: 0;
    pointer-events: none;
}

#scrollerCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
}

.scroller-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: var(--pad);
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    z-index: 3;
    background: rgba(7, 6, 13, 0.6);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: none;
}

.scroll-mouse {
    width: 16px;
    height: 24px;
    border: 1.5px solid var(--muted);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 3px;
}

.scroll-mouse .wheel {
    width: 2.5px;
    height: 5px;
    background: var(--cyan);
    border-radius: 2px;
    animation: mouse-wheel 1.6s ease-in-out infinite;
}

@keyframes mouse-wheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(8px);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .scroller-section {
        height: 320vh;
    }
    .scroller-scroll-hint {
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.65rem;
    }
}