/* self-hosted variable fonts (one file = all weights) */
@font-face { font-family: 'Inter Display'; src: url('../fonts/InterDisplay.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter Tight';   src: url('../fonts/InterTight.woff2')   format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter';         src: url('../fonts/InterDisplay.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }  /* alias: pages referencing 'Inter' get the self-hosted face too */
@font-face { font-family: 'Geist Mono';    src: url('../fonts/GeistMono.woff2')    format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-800.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }

/* ===== Unified interaction system ===== */
:root {
    --t-fast: 150ms;
    --t-base: 250ms;
    --t-slow: 400ms;
    --t-reveal: 700ms;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
/* One easing for every Tailwind transition (marquees/loaders use @keyframes, unaffected) */
.transition-all, [class*="duration-"] { transition-timing-function: var(--ease) !important; }
/* Visible keyboard focus (cursor is hidden by the custom cursor) */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible, input:focus-visible, .mz-nav__pill a:focus-visible {
    outline: 2px solid #f4f2ed; outline-offset: 3px; border-radius: 6px;
}
/* Skip link */
.mz-skip { position: absolute; left: -999px; top: 8px; z-index: 100000; background: #f4f2ed; color: #0f0f0f; padding: 10px 16px; border-radius: 8px; font-weight: 600; font-size: .9rem; }
.mz-skip:focus { left: 12px; }
/* Scroll reveal — opt-in, safe (only hides when JS marks <html class="js">) */
.js .mz-reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease); }
.js .mz-reveal.in { opacity: 1; transform: none; }
/* Reduced motion — kill all motion, show final state */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .js .mz-reveal { opacity: 1 !important; transform: none !important; }
}

/* ===== Global theme: white/black/gray + Inter ===== */
:root {
    --primary: 0 0% 100%;                                  /* was gold; now white — flips every accent */
    --font-sans: 'Inter Tight', system-ui, -apple-system, sans-serif;  /* primary — body/UI */
    --font-display: 'Poppins', 'Inter Tight', system-ui, sans-serif;  /* primary — display/headings */
}
body, p, a, span, div, li, button, input, textarea {
    font-family: var(--font-sans);
}
/* Geist = secondary display face: every heading, big numerals, brand mark */
h1, h2, h3, h4, h5, h6,
.mz-hero__title,
.csd .h2, .csd-hero h1, .csd-card h3, .csd-rcard h4,
.mz-footer__mark, .mz-bento__num,
.font-geist {
    font-family: var(--font-display);
}

/* ===== Coming Soon badge cards ===== */
.coming-soon-card {
    cursor: default;
}

.coming-soon-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: #ffffff;
    color: #0f0f0f;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55);
    animation: cs-pulse 2.2s ease-out infinite;
}

.coming-soon-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #0f0f0f;
    animation: cs-blink 1.4s ease-in-out infinite;
}

@keyframes cs-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); }
    70%  { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@keyframes cs-blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.2; }
}

/* Shimmer sweep on hover */
.coming-soon-card .cs-shimmer {
    position: absolute;
    inset: 0;
    z-index: 15;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.10) 50%, transparent 65%);
    background-size: 220% 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.coming-soon-card:hover .cs-shimmer {
    opacity: 1;
    animation: cs-shimmer 1.5s linear infinite;
}

@keyframes cs-shimmer {
    0%   { background-position: 150% 0; }
    100% { background-position: -150% 0; }
}

/* Darken overlay so text stays readable */
.coming-soon-card .cs-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: linear-gradient(180deg, rgba(15, 15, 15, 0) 30%, rgba(15, 15, 15, 0.82) 100%);
    opacity: 0.75;
    transition: opacity 0.3s ease;
}

.coming-soon-card:hover .cs-overlay {
    opacity: 1;
}

.coming-soon-card .cs-placeholder-label {
    animation: cs-float 6s ease-in-out infinite;
}

/* ===== About page ===== */
.mz-ab-hero { text-align: center; padding: 40px 24px 0; }
.mz-ab-hero h1 { font-size: clamp(1.8rem, 4.4vw, 3rem); font-weight: 600; line-height: 1.22; letter-spacing: -0.02em; color: #f4f2ed; }
.mz-ab-hero h1 em { font-style: italic; color: #f4f2ed; }
.mz-ab-hero p { color: #8a8a8a; font-size: 1rem; margin-top: 16px; }
/* (old photo-carousel .mz-carousel base removed — replaced by ring; class now used by the project carousel below) */
.mz-bar { flex: none; width: 84px; height: 300px; border-radius: 16px; overflow: hidden; cursor: pointer; position: relative; z-index: 2; background-size: cover; background-position: center; will-change: width, height; box-shadow: 0 12px 30px rgba(0,0,0,0.45); }
.mz-carousel__backdrop { position: absolute; inset: -40px; z-index: 1; pointer-events: none; }
.mz-carousel__hint { text-align: center; color: #8a8a8a; font-size: 0.82rem; margin-top: 18px; }
.mz-tip { position: absolute; z-index: 6; transform: translate(-50%,-100%); background: #f4f2ed; color: #141414; padding: 9px 14px; border-radius: 12px; pointer-events: none; opacity: 0; transition: opacity 0.18s cubic-bezier(0.16,1,0.3,1); box-shadow: 0 10px 28px rgba(0,0,0,0.45); white-space: nowrap; text-align: left; }
.mz-tip.show { opacity: 1; }
.mz-tip b { display: block; font-size: 0.9rem; font-weight: 600; }
.mz-tip span { display: block; color: #666; font-size: 0.76rem; margin-top: 1px; }
.mz-bio { max-width: 640px; margin: 64px auto 0; padding: 0 24px; }
.mz-bio p { color: #9a9a98; font-size: 1rem; line-height: 1.75; margin-bottom: 16px; }
.mz-bio b { color: #f4f2ed; font-weight: 600; }
.mz-bio__label { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: #f4f2ed; margin: 34px 0 10px; font-weight: 600; }
.mz-bio__chat { margin-top: 34px; font-size: 1.1rem; color: #f4f2ed; }
.mz-ab-contact { display: flex; align-items: center; gap: 12px; margin: 26px auto 0; padding: 0 24px; max-width: 640px; }
.mz-ab-email { display: inline-flex; align-items: center; gap: 10px; background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 999px; padding: 11px 18px; font-size: 0.92rem; font-weight: 500; color: #e6e6e6; cursor: pointer; transition: background 0.25s; }
.mz-ab-email:hover { background: #242424; }
.mz-ab-icon { width: 44px; height: 44px; border-radius: 50%; background: #1a1a1a; border: 1px solid #2a2a2a; display: flex; align-items: center; justify-content: center; color: #e6e6e6; transition: background 0.25s; }
.mz-ab-icon:hover { background: #242424; }
.mz-ab-icon svg { width: 18px; height: 18px; }
.mz-abfoot { margin-top: 120px; }
@media (max-width: 760px) { .mz-abfoot { margin-top: 80px; } }
.mz-footer img.mz-footer__pic { width: 44px; height: 44px; max-width: 44px; border-radius: 50%; object-fit: cover; object-position: top center; margin-bottom: 0; display: block; border: 1px solid rgba(255,255,255,0.16); }

/* ===== Playground big image cards ===== */
.mz-pgb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 1024px; margin: 0 auto; }
.mz-pgb {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 26px;
    color: #fff;
    border: 1px solid #242424;
}
.mz-pgb.wide { grid-column: span 2; }
.mz-pgb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.mz-pgb:hover img { transform: scale(1.05); }
.mz-pgb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,15,15,0.05) 30%, rgba(15,15,15,0.88)); z-index: 1; }
.mz-pgb .in { position: relative; z-index: 2; }
.mz-pgb .cat { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #dcdcdc; margin-bottom: 8px; }
.mz-pgb .t { font-weight: 600; font-size: 1.5rem; line-height: 1.15; }
.mz-pgb .s { font-size: 0.92rem; color: #cfcfcf; margin-top: 8px; max-width: 34ch; }
@media (max-width: 760px) {
    .mz-pgb-grid { grid-template-columns: 1fr; }
    .mz-pgb.wide { grid-column: span 1; }
    .mz-pgb { min-height: 220px; }
}

/* ===== Playground bento ===== */
.mz-pg-head { max-width: 1024px; margin: 0 auto 32px; }
.mz-pg-head h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 600; letter-spacing: -0.02em; color: #f4f2ed; margin-bottom: 12px; }
.mz-pg-head p { color: #9a9a98; font-size: 1rem; max-width: 46ch; }
.mz-pg-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; max-width: 1024px; margin: 0 auto; }
.mz-pg-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #242424;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    color: #f4f2ed;
    min-height: 230px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s;
}
.mz-pg-card:hover { transform: translateY(-4px); border-color: #3d3d3d; }
.mz-pg-card .cat { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #8a8a8a; margin-bottom: 8px; }
.mz-pg-card .t { font-weight: 600; font-size: 1.4rem; line-height: 1.15; }
.mz-pg-card .s { font-size: 0.9rem; color: #9a9a98; margin-top: 6px; max-width: 24ch; }
.mz-pg-card .ghost { position: absolute; right: -8px; bottom: -46px; font-weight: 800; font-size: 8.5rem; line-height: 1; color: #fff; opacity: 0.045; pointer-events: none; }
.mz-pg-card.tall { min-height: 340px; }
.mz-pg-card .cta-row { margin-top: auto; }
.mz-pg-grid .c7 { grid-column: span 7; }
.mz-pg-grid .c5 { grid-column: span 5; }
.mz-pg-grid .c6 { grid-column: span 6; }
@media (max-width: 760px) {
    .mz-pg-grid { grid-template-columns: 1fr; }
    .mz-pg-grid .c7, .mz-pg-grid .c5, .mz-pg-grid .c6 { grid-column: span 1; }
    .mz-pg-card, .mz-pg-card.tall { min-height: 190px; }
}

/* ===== Selected Work — sticky stacking cards ===== */
.mz-projects { position: relative; max-width: 1320px; margin: 0 auto; width: 100%; }
.mz-projects__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.mz-projects__title { display: flex; flex-direction: column; gap: 10px; }
.mz-projects__head h2 { font-weight: 600; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1; letter-spacing: -0.02em; color: #f4f2ed; }
.mz-projects__count { font-size: .78rem; color: #8a8a8a; letter-spacing: .14em; }
.mz-filter { display: inline-flex; gap: 2px; background: #1a1a1a; border: 1px solid #262626; border-radius: 999px; padding: 4px; }
.mz-filter__btn { border: none; background: none; color: #9a9a98; font-family: inherit; font-size: .85rem; font-weight: 500; padding: 7px 18px; border-radius: 999px; cursor: pointer; transition: color .2s, background .2s; }
.mz-filter__btn:hover { color: #f4f2ed; }
.mz-filter__btn.is-active { background: #f4f2ed; color: #0f0f0f; }
[data-theme="light"] .mz-filter { background: #ffffff; border-color: #e6e4df; }
[data-theme="light"] .mz-filter__btn { color: #6a6a66; }
[data-theme="light"] .mz-filter__btn:hover { color: #17170f; }
[data-theme="light"] .mz-filter__btn.is-active { background: #17170f; color: #faf9f7; }
.mz-pcard { position: sticky; top: 96px; border: 1px solid #242424; border-radius: 22px; overflow: hidden; background: #151515; margin-bottom: 26px; display: grid; grid-template-columns: 1.05fr .95fr; min-height: min(60vh, 540px); }
.mz-pcard .p-info { padding: clamp(26px, 3.2vw, 50px); display: flex; flex-direction: column; justify-content: space-between; }
.mz-p-top { display: flex; justify-content: space-between; gap: 12px; font-size: .78rem; color: #8a8a8a; letter-spacing: .06em; }
.mz-p-title { font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.8rem); line-height: 1.05; margin: 20px 0 14px; letter-spacing: -0.02em; color: #f4f2ed; }
.mz-p-desc { color: #a3a3a3; font-size: 1rem; line-height: 1.55; max-width: 44ch; }
.mz-p-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.mz-p-tags span { font-size: .74rem; color: #8a8a8a; border: 1px solid #242424; padding: 6px 13px; border-radius: 100px; }
.mz-p-result { margin-top: 24px; padding-top: 18px; border-top: 1px solid #242424; color: #e6e6e6; font-size: .95rem; display: flex; gap: 10px; align-items: flex-start; }
.mz-p-result b { color: #fff; }
.mz-p-cta { margin-top: 24px; display: inline-flex; align-items: center; gap: 9px; font-size: .9rem; width: fit-content; color: #f4f2ed; }
.mz-p-cta .arrow { transition: transform var(--t-slow) var(--ease); }
.mz-p-cta:hover .arrow { transform: translateX(6px); }
.mz-p-cta.soon { color: #8a8a8a; cursor: default; }
.mz-p-visual { position: relative; overflow: hidden; background: #0e0e0e; }
.mz-p-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.mz-pcard:hover .mz-p-visual img { transform: scale(1.05); }
.mz-p-visual.grad { display: flex; align-items: center; justify-content: center; }
.mz-p-mesh { position: absolute; inset: 0; }
.mz-p-badge { position: relative; z-index: 2; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.8vw, 2.4rem); color: rgba(255,255,255,.92); text-align: center; padding: 20px; line-height: 1.2; letter-spacing: -.01em; }
@media (max-width: 860px) {
    .mz-pcard { grid-template-columns: 1fr; }
    .mz-p-visual { min-height: 240px; order: -1; }
}

/* ===== Project carousel (swipe / drag / arrows) ===== */
.mz-carousel { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth; padding: 4px 2px 14px; scrollbar-width: none; -ms-overflow-style: none; cursor: grab; }
.mz-carousel::-webkit-scrollbar { display: none; }
.mz-carousel.is-dragging { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; }
.mz-carousel.is-dragging a, .mz-carousel.is-dragging .mz-pcard { pointer-events: none; }
/* turn stacked sticky cards into fixed-width slides */
.mz-projects .mz-pcard { position: static; top: auto; margin: 0; flex: none; width: clamp(300px, 86vw, 760px); scroll-snap-align: start; min-height: min(56vh, 500px); }
@media (min-width: 861px) and (max-width: 1024px) { .mz-projects .mz-pcard { width: 720px; } }
/* desktop: undo carousel, restore sticky stacking-card animation */
@media (min-width: 1025px) {
    .mz-carousel { display: block; overflow: visible; padding: 0; cursor: default; scroll-snap-type: none; }
    .mz-projects .mz-pcard { position: sticky; top: 96px; width: auto; margin-bottom: 26px; min-height: min(60vh, 540px); }
    .mz-projects .mz-carousel__nav { display: none; }
}
.mz-carousel__nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.mz-carousel__btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid #262626; background: #1a1a1a; color: #e6e6e6; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s, transform .2s, opacity .2s; }
.mz-carousel__btn:hover { background: #242424; transform: translateY(-2px); }
.mz-carousel__btn:disabled { opacity: .35; cursor: default; transform: none; }
[data-theme="light"] .mz-carousel__btn { background: #ffffff; border-color: #e6e4df; color: #17170f; }
[data-theme="light"] .mz-carousel__btn:hover { background: #f1f1ee; }

/* ===== Project cards (full-width + marquee) ===== */
.mz-proj { padding: 40px 0 8px; }
.mz-proj__head {
    max-width: 1024px;
    margin: 0 auto 28px;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
}
.mz-proj__top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.mz-proj__thumb { width: 44px; height: 44px; border-radius: 11px; object-fit: cover; flex: none; border: 1px solid #242424; }
.mz-proj__title { font-size: 0.95rem; color: #8a8a8a; font-weight: 500; }
.mz-proj__headline { font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.18; letter-spacing: -0.02em; color: #f4f2ed; margin-bottom: 14px; max-width: 26ch; }
.mz-proj__metrics { font-size: 0.92rem; color: #8a8a8a; }
.mz-proj__cta {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f4f2ed;
    color: #141414;
    border-radius: 999px;
    padding: 13px 22px;
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.mz-proj__cta:hover { transform: translateY(-2px); }
.mz-proj__cta.soon { background: transparent; color: #8a8a8a; border: 1px solid #2a2a2a; cursor: default; }
.mz-proj__cta.soon:hover { transform: none; }
.mz-marquee { width: 100%; overflow: hidden; position: relative; }
.mz-track { display: flex; gap: 20px; width: max-content; padding: 0 10px; animation: mz-scroll 95s linear infinite; }
.mz-marquee:hover .mz-track { animation-play-state: paused; }
.mz-track .mz-media { height: 400px; width: auto; border-radius: 16px; object-fit: cover; display: block; background: #1a1a1a; flex: none; }
@keyframes mz-scroll { to { transform: translateX(-50%); } }
@media (max-width: 760px) {
    .mz-proj__head { flex-direction: column; gap: 18px; padding: 0 24px; }
    .mz-track .mz-media { height: 260px; }
}

/* ===== Testimonials (horizontal scroll) ===== */
.mz-tcards { overflow: hidden; width: 100%; padding: 4px 0 14px; }
.mz-ttrack { display: flex; gap: 16px; width: max-content; animation: mz-scroll 55s linear infinite; }
.mz-tcards:hover .mz-ttrack { animation-play-state: paused; }
.mz-tcard { flex: 0 0 clamp(280px, 82vw, 340px); background: #1a1a1a; border: 1px solid #242424; border-radius: 18px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; min-height: 300px; }
.mz-tcard.feat { background: #f4f2ed; border-color: #f4f2ed; }
.mz-tcard__mark { font-size: 2.4rem; line-height: .6; color: #3a3a3a; font-family: var(--font-display); height: 20px; }
.mz-tcard.feat .mz-tcard__mark { color: #c9c7c0; }
.mz-tcard__q { font-size: .95rem; line-height: 1.6; color: #cfcfcd; margin-top: 14px; }
.mz-tcard.feat .mz-tcard__q { color: #1c1c1a; }
.mz-tcard__who { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.mz-tcard__av { width: 44px; height: 44px; border-radius: 50%; background: #2a2a2a; color: #f4f2ed; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: .9rem; flex: none; }
.mz-tcard.feat .mz-tcard__av { background: #0f0f0f; color: #f4f2ed; }
.mz-tcard__name { font-size: .92rem; font-weight: 600; color: #f4f2ed; }
.mz-tcard.feat .mz-tcard__name { color: #141414; }
.mz-tcard__role { font-size: .8rem; color: #8a8a8a; margin-top: 1px; }
.mz-tcard.feat .mz-tcard__role { color: #555; }

/* ===== What I bring — magnetic pills ===== */
.mz-wib { position: relative; width: 100%; max-width: 1320px; margin: 0 auto; min-height: 640px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; }
.mz-wib__center { position: relative; z-index: 2; max-width: 560px; }
.mz-wib__icon { color: #f4f2ed; margin-bottom: 18px; display: inline-block; will-change: transform; }
.mz-wib__title { font-weight: 600; font-size: clamp(2.2rem, 5.5vw, 3.8rem); line-height: 1.05; letter-spacing: -0.02em; color: #f4f2ed; }
.mz-wib__sub { color: #9a9a98; font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.55; margin-top: 20px; max-width: 460px; margin-inline: auto; }
.mz-pill { position: absolute; z-index: 1; background: #1a1a1a; color: #e6e6e6; border: 1px solid #2a2a2a; font-weight: 500; font-size: clamp(.82rem, 1.1vw, .95rem); padding: 11px 18px; border-radius: 999px; white-space: nowrap; box-shadow: 0 10px 26px rgba(0,0,0,.4); cursor: default; will-change: transform; opacity: 0; transition: box-shadow .3s var(--ease, cubic-bezier(.16,1,.3,1)), border-color .3s; }
.mz-pill:hover { box-shadow: 0 18px 40px rgba(0,0,0,.55); border-color: #3f3f3f; }
.mz-p1 { top: 8%; left: 40%; } .mz-p2 { top: 15%; left: 64%; } .mz-p3 { top: 24%; left: 22%; }
.mz-p4 { top: 42%; left: 12%; } .mz-p5 { top: 40%; left: 76%; } .mz-p6 { top: 64%; left: 22%; }
.mz-p7 { top: 78%; left: 40%; } .mz-p8 { top: 58%; left: 76%; } .mz-p9 { top: 75%; left: 60%; } .mz-p10 { top: 30%; left: 84%; }
@media (max-width: 820px) {
    .mz-wib { min-height: auto; padding: 50px 20px; }
    .mz-wib__pills { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
    .mz-pill { position: static !important; opacity: 1 !important; transform: none !important; }
}

/* ===== What I do — capability cards ===== */
.mz-cap {
    background: #1a1a1a;
    border: 1px solid #242424;
    border-radius: 16px;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), border-color 0.35s;
}
.mz-cap:hover { transform: translateY(-4px); border-color: #3a3a3a; }
.mz-cap__ic { width: 44px; height: 44px; border-radius: 12px; border: 1px solid #2f2f2f; display: flex; align-items: center; justify-content: center; color: #f4f2ed; }
.mz-cap__ic svg { width: 22px; height: 22px; }
.mz-cap h3 { font-size: 1.02rem; font-weight: 600; color: #f4f2ed; }
.mz-cap p { font-size: 0.88rem; line-height: 1.55; color: #9a9a98; }

/* ===== Bento (tools + stats) ===== */
.mz-bento {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-auto-rows: auto;
    gap: 14px;
    width: 100%;
}
.mz-bento__cell {
    border: 1px solid #242424;
    border-radius: 14px;
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 150px;
}
.mz-bento__tools { grid-row: span 2; gap: 22px; position: relative; overflow: hidden; }
.mz-bento__tools .mz-bento__label { position: relative; z-index: 2; pointer-events: none; }
.mz-drop { position: absolute; inset: 0; z-index: 1; }
.mz-drop .badge {
    position: absolute; top: 0; left: 0;
    height: 40px; padding: 0 16px; border-radius: 999px;
    display: inline-flex; align-items: center; gap: 8px;
    background: #1a1a1a; border: 1px solid #333; color: #e6e6e6;
    font-size: 13px; font-weight: 500; white-space: nowrap;
    will-change: transform; user-select: none; pointer-events: none;
}
.mz-drop .badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #f4f2ed; flex: none; }
.mz-drop .badge .ic { width: 18px; height: 18px; border-radius: 4px; object-fit: contain; flex: none; pointer-events: none; }
.mz-drop.is-static { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-end; padding-top: 40px; }
.mz-drop.is-static .badge { position: static; }
.mz-bento__cell.is-invert { background: #f4f2ed; border-color: #f4f2ed; color: #0f0f0f; }
.mz-bento__label {
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8a8a8a;
}
.mz-bento__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mz-bento__chips span {
    border: 1px solid #2a2a2a;
    border-radius: 9px;
    padding: 7px 12px;
    font-size: 13px;
    color: #e6e6e6;
}
.mz-bento__num { font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 600; line-height: 1; letter-spacing: -0.02em; color: #f4f2ed; }
.mz-bento__cell.is-invert .mz-bento__num { color: #0f0f0f; }
.mz-bento__cap { font-size: 13px; color: #8a8a8a; margin-top: 12px; line-height: 1.35; }
.mz-bento__cell.is-invert .mz-bento__cap { color: #555; }
@media (max-width: 760px) {
    .mz-bento { grid-template-columns: 1fr 1fr; }
    .mz-bento__tools { grid-column: span 2; grid-row: auto; min-height: 120px; }
}

/* ===== Case-study timeline ===== */
.mz-timeline {
    position: relative;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding-left: 44px;
}
.mz-timeline::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, hsl(var(--primary) / 0.5), rgba(255, 255, 255, 0.08));
}
.mz-tl-item {
    position: relative;
    padding-bottom: 52px;
}
.mz-tl-item:last-child { padding-bottom: 0; }
.mz-tl-marker {
    position: absolute;
    left: -44px;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0f0f0f;
    border: 2px solid hsl(var(--primary));
    display: grid;
    place-items: center;
}
.mz-tl-marker::after {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: hsl(var(--primary));
}
.mz-tl-date {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: hsl(var(--primary));
    font-weight: 500;
    margin-bottom: 14px;
}

/* ===== Preloader ===== */
.mz-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    overflow: hidden;
    pointer-events: none;
    background: #faf9f7;
}
[data-theme="light"] .mz-preloader { background: #0f0f0f; }
.mz-preloader canvas { position: absolute; inset: 0; display: block; }
.mz-preloader__brand {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff;
    font-family: 'Inter', system-ui, sans-serif;
    transition: opacity 0.1s linear;
}
.mz-preloader__name { font-size: clamp(2rem, 7vw, 4rem); font-weight: 800; letter-spacing: -0.03em; }
.mz-preloader__count { font-size: 0.85rem; letter-spacing: 0.12em; opacity: 0.65; }

/* ===== Footer ===== */
.mz-footer,
.mz-footer h2,
.mz-footer div,
.mz-footer a,
.mz-footer nav {
    font-family: 'Inter', system-ui, sans-serif;
}
.mz-footer {
    background: #161616;
    color: #fff;
    padding: 40px clamp(24px, 5vw, 56px) 26px;
    overflow: hidden;
}
.mz-footer__quote-label { font-size: 0.9rem; color: #cfcfcf; margin-bottom: 8px; }
.mz-footer__quote {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 500;
    letter-spacing: -0.01em;
    max-width: 660px;
    line-height: 1.15;
    color: #fff;
}
.mz-footer__quote em { font-style: italic; }
.mz-footer__mark {
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 0.9;
    color: #fff;
    font-size: clamp(2.4rem, 12vw, 7.5rem);
    white-space: nowrap;
    margin: 40px 0 44px;
    user-select: none;
}
.mz-footer__row { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.mz-footer__id { display: flex; align-items: center; gap: 13px; }
.mz-footer__name { color: #f0f0ee; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.mz-footer__socials { display: flex; align-items: center; gap: 20px; }
.mz-footer__social { width: 22px; height: 22px; color: #8a8a8a; transition: color 0.25s, transform 0.25s; }
.mz-footer__social:hover { color: #fff; transform: translateY(-2px); }
.mz-footer__band { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid #262626; padding-top: 16px; flex-wrap: wrap; }
.mz-footer__loc { display: flex; align-items: center; gap: 8px; color: #8a8a8a; font-size: 0.82rem; }
.mz-footer__flag { font-size: 1.1rem; line-height: 1; flex: none; }
.mz-footer__copy { color: #6a6a6a; font-size: 0.8rem; }
@media (max-width: 640px) {
    .mz-footer__band { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ===== Chat widget (Muzeeb AI) ===== */
.cw-orb {
    border-radius: 50%;
    background:
        radial-gradient(circle at 28% 26%, #ffe1b3 0%, transparent 46%),
        radial-gradient(circle at 74% 30%, #c7a4ff 0%, transparent 46%),
        radial-gradient(circle at 38% 74%, #9ad8ff 0%, transparent 52%),
        radial-gradient(circle at 70% 72%, #ffb0cd 0%, transparent 52%),
        linear-gradient(135deg, #f4a6c4, #a88bf5);
}
#cw-launcher { position: fixed; right: 28px; bottom: 28px; z-index: 9997; width: 66px; height: 66px; border: none; background: none; cursor: pointer; padding: 0; display: grid; place-items: center; transition: transform .35s cubic-bezier(.16,1,.3,1); }
#cw-launcher:hover { transform: translateY(-3px) scale(1.06); }
#cw-launcher .cw-load { --size: .6; }
/* shared mask host (hidden) */
.cw-mask-host { position: absolute; width: 0; height: 0; overflow: hidden; }
/* animated AI loader orb */
.cw-load {
    --color-one: #ffbf48; --color-two: #be4a1d; --color-three: #ffbf4780;
    --color-four: #bf4a1d80; --color-five: #ffbf4740; --time-animation: 2s; --size: 1;
    position: relative; width: 100px; height: 100px; border-radius: 50%; transform: scale(var(--size)); flex: none;
    box-shadow: 0 0 25px 0 var(--color-three), 0 20px 50px 0 var(--color-four);
    animation: cwcolorize calc(var(--time-animation) * 3) ease-in-out infinite;
}
.cw-load::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100px; height: 100px; border-radius: 50%;
    border-top: solid 1px var(--color-one); border-bottom: solid 1px var(--color-two);
    background: linear-gradient(180deg, var(--color-five), var(--color-four));
    box-shadow: inset 0 10px 10px 0 var(--color-three), inset 0 -10px 10px 0 var(--color-four);
}
.cw-load-box { width: 100px; height: 100px; background: linear-gradient(180deg, var(--color-one) 30%, var(--color-two) 70%); -webkit-mask: url(#cwclip); mask: url(#cwclip); }
#cwclip { filter: contrast(15); animation: cwround calc(2s / 2) linear infinite; }
#cwclip polygon { filter: blur(7px); }
#cwclip polygon:nth-child(1) { transform-origin: 75% 25%; transform: rotate(90deg); }
#cwclip polygon:nth-child(2) { transform-origin: 50% 50%; animation: cwrot 2s linear infinite reverse; }
#cwclip polygon:nth-child(3) { transform-origin: 50% 60%; animation: cwrot 2s linear infinite; animation-delay: calc(2s / -3); }
#cwclip polygon:nth-child(4) { transform-origin: 40% 40%; animation: cwrot 2s linear infinite reverse; }
#cwclip polygon:nth-child(5) { transform-origin: 40% 40%; animation: cwrot 2s linear infinite reverse; animation-delay: calc(2s / -2); }
#cwclip polygon:nth-child(6) { transform-origin: 60% 40%; animation: cwrot 2s linear infinite; }
#cwclip polygon:nth-child(7) { transform-origin: 60% 40%; animation: cwrot 2s linear infinite; animation-delay: calc(2s / -1.5); }
/* in-chat thinking indicator */
.cw-think { display: inline-flex; align-items: center; gap: 9px; align-self: flex-start; background: #F4F4F3; color: #6f6f6c; padding: 11px 16px; border-radius: 20px; border-bottom-left-radius: 7px; font-size: .88rem; }
.cw-think .cw-dots { display: inline-flex; gap: 4px; }
.cw-think .cw-dots i { width: 6px; height: 6px; border-radius: 50%; background: #bcbcb8; animation: cwb 1.2s infinite; }
.cw-think .cw-dots i:nth-child(2) { animation-delay: .2s; }
.cw-think .cw-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes cwrot { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes cwround { 0% { filter: contrast(15); } 20% { filter: contrast(3); } 40% { filter: contrast(3); } 60% { filter: contrast(15); } 100% { filter: contrast(15); } }
@keyframes cwcolorize { 0% { filter: hue-rotate(0deg); } 20% { filter: hue-rotate(-30deg); } 40% { filter: hue-rotate(-60deg); } 60% { filter: hue-rotate(-90deg); } 80% { filter: hue-rotate(-45deg); } 100% { filter: hue-rotate(0deg); } }
#cw-panel { position: fixed; right: 24px; bottom: 24px; z-index: 9998; width: min(390px, calc(100vw - 32px)); height: min(600px, calc(100vh - 52px)); background: #fff; border-radius: 24px; overflow: hidden; display: none; flex-direction: column; border: 1px solid rgba(0,0,0,.05); box-shadow: 0 30px 90px rgba(24,24,40,.24); font-family: 'Inter', system-ui, sans-serif; opacity: 0; transform: translateY(18px) scale(.97); transition: opacity .3s cubic-bezier(.16,1,.3,1), transform .3s cubic-bezier(.16,1,.3,1); }
#cw-panel.open { display: flex; opacity: 1; transform: none; }
.cw-head { display: flex; align-items: center; gap: 12px; padding: 18px 18px 10px; }
.cw-havatar { width: 40px; height: 40px; flex: none; position: relative; overflow: hidden; border-radius: 50%; }
.cw-havatar .cw-load { --size: .4; position: absolute; top: 50%; left: 50%; margin: -50px 0 0 -50px; box-shadow: none; }
.cw-havatar .cw-load::before { box-shadow: inset 0 10px 10px 0 var(--color-three), inset 0 -10px 10px 0 var(--color-four); }
.cw-head .cw-name { font-weight: 600; font-size: .95rem; color: #1c1c1e; }
.cw-head .cw-name span { display: block; font-weight: 450; font-size: .74rem; color: #16a34a; }
.cw-head .sp { flex: 1; }
.cw-head button { background: none; border: none; cursor: pointer; color: #9a9a97; width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
.cw-head button:hover { background: #f2f2ef; color: #333; }
.cw-head button svg { width: 18px; height: 18px; }
.cw-body { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.cw-body::-webkit-scrollbar { width: 0; }
.cw-msg { max-width: 86%; padding: 13px 16px; font-size: .92rem; line-height: 1.55; border-radius: 20px; }
.cw-msg.bot { background: #F4F4F3; color: #1c1c1e; align-self: flex-start; border-bottom-left-radius: 7px; }
.cw-msg.user { background: #EDEBF6; color: #2a2440; align-self: flex-end; border-bottom-right-radius: 7px; }
/* action links attached under a bot answer */
.cw-links { display: flex; flex-wrap: wrap; gap: 7px; align-self: flex-start; margin: -2px 0 4px; }
.cw-link { display: inline-flex; align-items: center; gap: 6px; background: #17170f; color: #fff; border-radius: 999px; padding: 8px 13px; font-size: .8rem; font-weight: 500; text-decoration: none; line-height: 1.2; transition: transform .18s ease, filter .18s ease; }
.cw-link:hover { transform: translateY(-1px); filter: brightness(1.12); }
.cw-link-ic svg { width: 14px; height: 14px; display: block; }
.cw-suggest-label { font-size: .78rem; color: #9a9a97; margin: 8px 2px 2px; }
.cw-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 4px; }
.cw-chip { text-align: left; background: #fff; border: 1px solid rgba(0,0,0,.1); border-radius: 999px; padding: 7px 13px; font-size: .8rem; color: #2a2a2a; cursor: pointer; transition: background .2s, border-color .2s; font-family: inherit; line-height: 1.3; }
.cw-chip:hover { background: #F1F1EE; border-color: rgba(0,0,0,.2); }
.cw-typing { display: flex; gap: 5px; align-self: flex-start; background: #F4F4F3; padding: 14px 16px; border-radius: 20px; border-bottom-left-radius: 7px; }
.cw-typing span { width: 7px; height: 7px; border-radius: 50%; background: #bcbcb8; animation: cwb 1.2s infinite; }
.cw-typing span:nth-child(2) { animation-delay: .2s; }
.cw-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes cwb { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.cw-foot { padding: 12px 16px 16px; }
.cw-inrow { display: flex; align-items: center; gap: 10px; background: #F4F4F3; border: 1px solid transparent; border-radius: 999px; padding: 6px 8px 6px 16px; transition: border-color .2s, background .2s; }
.cw-inrow:focus-within { background: #fff; border-color: rgba(0,0,0,.12); box-shadow: 0 4px 16px rgba(0,0,0,.05); }
.cw-inrow .cw-search { width: 17px; height: 17px; color: #a2a29e; flex: none; }
.cw-input { flex: 1; border: none; background: none; outline: none; font-size: .92rem; font-family: inherit; color: #1c1c1e; }
.cw-input:focus, .cw-input:focus-visible { outline: none; }   /* focus is shown by .cw-inrow — kill the global a11y ring on this input */
.cw-send { width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer; flex: none; display: flex; align-items: center; justify-content: center; background: #17170f; color: #fff; transition: transform .2s, filter .2s, background .2s; }
.cw-send:hover { transform: scale(1.06); filter: brightness(1.05); }
.cw-send svg { width: 17px; height: 17px; }
.cw-note { text-align: center; font-size: .7rem; color: #adaca8; margin-top: 10px; }
/* when chat is open, restore native cursor + hide custom one */
body.cw-open, body.cw-open * { cursor: auto !important; }   /* beat body.mz-cursor-on button{cursor:none} inside the open chat */
body.cw-open .cw-chip, body.cw-open .cw-send, body.cw-open .cw-head button, body.cw-open #cw-launcher { cursor: pointer !important; }
body.cw-open .mz-cursor, body.cw-open .mz-cursor-follow { display: none !important; }

/* ===== Custom cursor ===== */
.mz-cursor,
.mz-cursor-follow {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.2s ease;
    will-change: transform;
}
.mz-cursor { color: hsl(var(--primary)); transform-origin: 0 0; }
.mz-cursor svg { display: block; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4)); }
.mz-cursor-follow { z-index: 9998; transform-origin: 0% 50%; }
.mz-cursor-follow span {
    display: inline-block;
    background: hsl(var(--primary));
    color: #141414;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
body.mz-cursor-on,
body.mz-cursor-on a,
body.mz-cursor-on button { cursor: none; }

/* ===== Pill navbar ===== */
.mz-nav {
    position: sticky;
    top: 40px;
    z-index: 60;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}
/* top scrim: fades page content out behind the floating pill nav so it
   doesn't bleed into the transparent gutters on scroll-up */
.mz-nav::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 112px;
    background: linear-gradient(180deg, #0f0f0f 0%, #0f0f0f 55%, rgba(15,15,15,.7) 78%, rgba(15,15,15,0) 100%);
    z-index: -1;
    pointer-events: none;
}
.mz-nav__logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mz-nav__logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.mz-nav__logo:hover { transform: rotate(-8deg); }
.mz-nav__pill {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(26, 26, 26, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 6px 7px;
}
.mz-nav__pill a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    color: var(--nav-ink, #cfcfcd);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s;
}
.mz-nav__pill a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.mz-nav__pill a.active { background: hsl(var(--primary)); color: var(--nav-active-ink, #141414); }
.mz-nav__pill svg { width: 17px; height: 17px; stroke-width: 2; flex: none; }
.mz-nav__tip {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translate(-50%, 6px) scale(0.96);
    background: #1a1a1a;
    color: #f4f2ed;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 7px 12px;
    border-radius: 9px;
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 5;
}
.mz-nav__tip::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom-color: #1a1a1a;
}
.mz-nav__resume:hover .mz-nav__tip,
.mz-nav__mail:hover .mz-nav__tip {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
}
.mz-nav__resume {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid hsl(var(--primary) / 0.55);
    color: hsl(var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s, color 0.25s;
}
.mz-nav__resume svg { width: 21px; height: 21px; stroke-width: 2; }
.mz-nav__resume:hover { transform: translateY(-2px); background: hsl(var(--primary)); color: #141414; }
.mz-nav__mail {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: hsl(var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    box-shadow: 0 8px 22px rgba(255, 255, 255, 0.18);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mz-nav__mail:hover { transform: translateY(-2px) rotate(-6deg); }
.mz-nav__mail svg { width: 22px; height: 22px; stroke: #141414; stroke-width: 2; fill: none; }
@media (max-width: 640px) {
    .mz-nav__pill a span { display: none; }
    .mz-nav__pill a { padding: 9px; }
    .mz-nav { gap: 7px; padding: 0 8px; }
    .mz-nav__logo, .mz-nav__resume, .mz-nav__mail { width: 42px; height: 42px; }
    .mz-nav__pill { padding: 5px 6px; gap: 0; }
    .mz-nav__pill svg { width: 16px; height: 16px; }
}
@media (max-width: 380px) {
    .mz-nav__resume { display: none; }
}
/* trim the heavy 40px side gutter on phones so content isn't cramped */
@media (max-width: 600px) {
    #main { padding-left: 18px !important; padding-right: 18px !important; }
}

/* ===== Mobile hamburger + slide-in drawer ===== */
.mz-nav__burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: #1a1a1a; border: 1px solid #262626; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; flex: none; }
.mz-nav__burger span { width: 18px; height: 2px; background: #e6e6e6; border-radius: 2px; }
.mz-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(80vw, 320px); z-index: 200; transform: translateX(100%); visibility: hidden; transition: transform .35s cubic-bezier(.16,1,.3,1), visibility 0s linear .35s; }
.mz-drawer.open { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.16,1,.3,1); }
.mz-drawer__panel { position: relative; height: 100%; background: #141414; border-left: 1px solid #242424; padding: 84px 30px 30px; display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(0,0,0,.5); }
.mz-drawer__close { position: absolute; top: 22px; right: 24px; background: none; border: none; color: #e6e6e6; font-size: 2rem; line-height: 1; cursor: pointer; }
.mz-drawer__links { display: flex; flex-direction: column; }
.mz-drawer__links a { color: #f4f2ed; font-size: 1.3rem; font-weight: 500; text-decoration: none; padding: 14px 0; border-bottom: 1px solid #232323; }
.mz-drawer__links a:hover { color: #fff; }
.mz-drawer__ov { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 199; opacity: 0; visibility: hidden; transition: opacity .3s ease; }
.mz-drawer__ov.open { opacity: 1; visibility: visible; }
[data-theme="light"] .mz-nav__burger { background: #fff; border-color: #e6e4df; }
[data-theme="light"] .mz-nav__burger span { background: #17170f; }
[data-theme="light"] .mz-drawer__panel { background: #faf9f7; border-color: #e6e4df; }
[data-theme="light"] .mz-drawer__links a { color: #17170f; border-color: #e6e4df; }
[data-theme="light"] .mz-drawer__close { color: #17170f; }
@media (max-width: 760px) {
    .mz-nav {
        justify-content: space-between !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 20px !important;
        box-sizing: border-box !important;
    }
    .mz-nav__pill, .mz-nav__resume, .mz-nav__mail { display: none !important; }
    .mz-nav__burger { display: flex !important; }
}

/* ===== Hero (xhulia-style mask reveal) ===== */
.mz-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: -260px;
    padding: clamp(150px, 17vw, 220px) 24px clamp(18px, 3vw, 36px);
    background:
        linear-gradient(180deg, rgba(15,15,15,.62) 0%, rgba(15,15,15,.32) 34%, rgba(15,15,15,.88) 82%, #0f0f0f 100%),
        url("../images/portfolio_hero_dark.webp") center/cover no-repeat;
    background-color: #0f0f0f;
}
/* full-bleed helper: breaks a child out to the viewport edges regardless of
   parent padding/centering (used for the case-study footer) */
.mz-fullbleed {
    align-self: stretch;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
.mz-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    font-size: 0.9rem;
    color: #ededeb;
    background: rgba(15, 15, 15, 0.55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 16px;
    border-radius: 999px;
    margin-bottom: 30px;
    opacity: 0;
    animation: mz-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}
.mz-hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7ccb8f;
    box-shadow: 0 0 0 4px rgba(124, 203, 143, 0.15);
    flex: none;
}
.mz-hero__portrait {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    clip-path: inset(0 0 100% 0);
    animation: mz-portrait 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}
@keyframes mz-portrait {
    to { clip-path: inset(0 0 0% 0); }
}
.mz-hero__title {
    font-weight: 500;
    font-size: clamp(1.5rem, 5.9vw, 4.75rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: #f4f2ed;
    max-width: none;
    margin-inline: auto;
}
/* Force each headline line onto a single row (always 2 lines total) */
.mz-hero__title .mz-line { white-space: nowrap; }
.mz-hero__title em {
    font-style: italic;
    font-weight: 500;
    color: hsl(var(--primary));
}
.mz-mask {
    overflow: hidden;
    display: block;
}
.mz-line {
    display: block;
    transform: translateY(110%);
    animation: mz-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.mz-mask:nth-child(1) .mz-line { animation-delay: 0.22s; }
.mz-mask:nth-child(2) .mz-line { animation-delay: 0.34s; }
.mz-mask:nth-child(3) .mz-line { animation-delay: 0.46s; }
.mz-hero__sub {
    margin: 34px auto 0;
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    line-height: 1.5;
    color: #9a9a98;
    max-width: 46ch;
    opacity: 0;
    animation: mz-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}
.mz-hero__sub b {
    color: #f4f2ed;
    font-weight: 500;
}
@keyframes mz-rise {
    to { transform: translateY(0); }
}
@keyframes mz-fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .mz-line { transform: none; animation: none; }
    .mz-hero__eyebrow, .mz-hero__sub { opacity: 1; animation: none; }
    .mz-hero__portrait { clip-path: none; animation: none; }
}

@keyframes cs-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}
/* ============================================================
   CASE STUDY DETAIL (.csd-*) — Aria layout, ported to dark B&W
   ============================================================ */
.csd{--ink:#f2f2f2;--muted:#a3a3a3;--soft:#6f6f6f;--line:rgba(255,255,255,.09);
  --card:#161616;--tint:#141414;--btint:#12161c;--acc:#e5e5e5;
  color:var(--ink);font-family:inherit;line-height:1.6;width:100%;margin:0 auto}
.csd img{max-width:100%;display:block}
.csd .wrap{max-width:1200px;margin:0 auto;padding:0 24px}
.csd .prose{max-width:700px;margin:0 auto}
.csd .eyebrow{font-size:.72rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--soft);margin-bottom:16px}
.csd .h2{font-weight:600;font-size:clamp(1.7rem,3.3vw,2.35rem);line-height:1.18;letter-spacing:-.02em;margin-bottom:22px;color:var(--ink)}
.csd .h2 em,.csd h1 em{font-style:italic;font-weight:500}
.csd .prose p{color:var(--muted);font-size:1rem;line-height:1.72;margin-bottom:16px}
.csd .prose b{color:var(--ink);font-weight:600}
.csd .prose em{font-style:italic}
.csd .prose ul{list-style:none;margin:8px 0 16px;padding:0}
.csd .prose li{position:relative;padding-left:18px;color:var(--muted);margin-bottom:8px;font-size:1rem}
.csd .prose li::before{content:"–";position:absolute;left:0;color:var(--soft)}
.csd .prose li b{color:var(--ink)}

.csd .media{border-radius:22px;padding:26px;margin:34px auto;max-width:900px;background:var(--tint);border:1px solid var(--line)}
.csd .media.blue{background:var(--btint)}
.csd .media img{border-radius:10px}
.csd .cap{text-align:center;color:var(--soft);font-size:.8rem;margin-top:-16px;margin-bottom:34px}
.csd .callout{max-width:700px;margin:24px auto;background:rgba(255,255,255,.04);border:1px solid var(--line);border-left:3px solid var(--acc);border-radius:14px;padding:16px 20px;color:var(--muted);font-size:.95rem;display:flex;gap:12px}
.csd .callout b{color:var(--ink)}
.csd section{padding:0}
.csd .divider{display:flex;align-items:center;gap:16px;max-width:1200px;margin:70px auto;padding:0 24px}
.csd .divider::before,.csd .divider::after{content:"";flex:1;height:1px;background:var(--line)}
.csd .divider span{font-size:.75rem;color:var(--soft);background:#141414;border:1px solid var(--line);border-radius:999px;padding:5px 14px}

/* hero */
.csd-hero{position:relative;text-align:center;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);margin-top:-100px;padding:200px 24px 110px;background:linear-gradient(180deg,rgba(15,15,15,.55) 0%,rgba(15,15,15,.3) 34%,rgba(15,15,15,.82) 78%,#0f0f0f 100%),url("../images/portfolio_hero_dark.webp") center/cover no-repeat;background-color:#0f0f0f}
.csd-hero__icon{width:56px;height:56px;border-radius:14px;margin:0 auto 30px;object-fit:cover;border:1px solid var(--line);box-shadow:0 8px 24px rgba(0,0,0,.5)}
.csd-hero h1{font-weight:600;font-size:clamp(2rem,5vw,3.4rem);line-height:1.14;letter-spacing:-.025em;max-width:940px;margin:0 auto;color:var(--ink)}

/* intro + meta */
.csd-intro{display:grid;grid-template-columns:1fr 260px;gap:56px;max-width:900px;margin:56px auto;padding:0 24px}
.csd-intro__text p{color:var(--muted);font-size:.92rem;line-height:1.7;margin-bottom:14px}
.csd-intro__text b{color:var(--ink);font-weight:600}
.csd-intro__text em{font-style:italic}
.csd-intro__note{display:flex;gap:8px;align-items:center;color:var(--soft);font-size:.8rem;font-style:italic;margin-top:20px}
.csd-meta__group{margin-bottom:22px}
.csd-meta__label{font-size:.68rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--soft);margin-bottom:9px}
.csd-chip{display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.05);border:1px solid var(--line);border-radius:8px;padding:5px 11px;font-size:.82rem;color:#d4d4d4;margin:0 6px 6px 0}
.csd-tools{display:flex;gap:8px}
.csd-tools img{width:26px;height:26px;border-radius:6px}

/* 3 cards */
.csd-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;max-width:1120px;margin:20px auto;padding:0 24px}
.csd-card{background:var(--card);border:1px solid var(--line);border-radius:20px;padding:26px}
.csd-card__ic{width:46px;height:46px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-bottom:44px}
.csd-card h3{font-weight:600;font-size:1.35rem;margin-bottom:16px;color:var(--ink)}
.csd-card ul{list-style:none;padding:0}
.csd-card li{position:relative;padding-left:16px;font-size:.9rem;color:var(--muted);margin-bottom:12px;line-height:1.5}
.csd-card li::before{content:"›";position:absolute;left:0;color:var(--soft)}
.csd-card li b{color:var(--ink);font-weight:600}

/* gallery */
.csd-gallery{max-width:1120px;margin:20px auto;padding:0 24px;display:grid;grid-template-columns:1fr 1fr;gap:20px}
.csd-shot{background:var(--btint);border:1px solid var(--line);border-radius:20px;padding:22px;display:flex;align-items:center;justify-content:center}
.csd-shot img{border-radius:10px}
.csd-shot.full{grid-column:1/-1}

/* results cards */
.csd-rcards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;max-width:1120px;margin:40px auto;padding:0 24px}
.csd-rcard{background:var(--card);border:1px solid var(--line);border-radius:20px;padding:26px;min-height:230px;display:flex;flex-direction:column}
.csd-rcard .big{font-weight:700;font-size:2.6rem;letter-spacing:-.02em;color:var(--ink)}
.csd-rcard .stars{color:#e5e5e5;font-size:1rem;margin:4px 0 auto}
.csd-rcard h4{font-weight:600;font-size:1.2rem;line-height:1.3;margin-top:auto;margin-bottom:10px;color:var(--ink)}
.csd-rcard h4 em{font-style:italic}
.csd-rcard .rc-cap{font-size:.8rem;color:var(--soft);line-height:1.5}
.csd-bubble{display:inline-block;padding:6px 12px;border-radius:14px;font-size:.78rem;margin-bottom:6px}
.csd-bubble.gray{background:#2a2a2a;color:#cfcfcf}
.csd-bubble.blue{background:#f2f2f2;color:#111}
.csd-smiley{width:44px;height:44px;border-radius:50%;background:#242424;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;font-size:1.4rem}

/* next project marquee */
.csd-next{overflow:hidden;padding:60px 0;border-top:1px solid var(--line)}
.csd-next__track{display:flex;align-items:center;gap:40px;width:max-content;animation:csd-scroll 26s linear infinite}
.csd-next a{display:flex;align-items:center;gap:40px;text-decoration:none;color:var(--ink)}
.csd-next span{font-weight:600;font-size:clamp(2rem,4vw,3rem);white-space:nowrap;letter-spacing:-.02em}
.csd-next img{height:70px;width:auto;border-radius:8px;opacity:.9}
@keyframes csd-scroll{to{transform:translateX(-50%)}}
@media(prefers-reduced-motion:reduce){.csd-next__track{animation:none}}

@media(max-width:860px){
  .csd-intro{grid-template-columns:1fr;gap:32px}
  .csd-cards,.csd-rcards{grid-template-columns:1fr}
  .csd-gallery{grid-template-columns:1fr}
}

/* ============================================================
   LIGHT / DARK THEME  (data-theme on <html>; default dark)
   Hero image band + footer + playground stay dark in both.
   ============================================================ */
:root {
    --bg:#0f0f0f; --surface:#1a1a1a; --surface-2:#141414; --surface-3:#161616;
    --text:#f4f2ed; --text-2:#cfcfcd; --muted:#8a8a8a; --border:#242424; --border-2:#2a2a2a;
}
[data-theme="light"] {
    --bg:#faf9f7; --surface:#ffffff; --surface-2:#f1f0ec; --surface-3:#f4f4f2;
    --text:#17170f; --text-2:#3a3a38; --muted:#6a6a66; --border:#e6e4df; --border-2:#dcdad4;
    --primary:0 0% 12%;   /* flip the white accent to near-black in light */
    --nav-ink:#3a3a38; --nav-active-ink:#ffffff;
}

/* page bg + generic Tailwind color classes */
[data-theme="light"] body { background:#faf9f7; }
[data-theme="light"] .bg-\[\#0f0f0f\] { background-color:#faf9f7 !important; }
[data-theme="light"] .bg-\[\#1a1a1a\] { background-color:#ffffff !important; border-color:#e6e4df; }
[data-theme="light"] .bg-white\/10 { background-color:rgba(0,0,0,.05) !important; }
[data-theme="light"] .hover\:bg-\[\#e5e5e5\]:hover, [data-theme="light"] .bg-\[\#e5e5e5\] { background-color:#2a2a2a !important; }
[data-theme="light"] .text-white, [data-theme="light"] .text-\[\#F2F2F2\] { color:#17170f !important; }
[data-theme="light"] .text-white\/80 { color:rgba(23,23,15,.82) !important; }
[data-theme="light"] .text-\[\#a3a3a3\] { color:#5f5d57 !important; }
[data-theme="light"] .text-black { color:#ffffff !important; }
[data-theme="light"] .border-white\/20 { border-color:rgba(0,0,0,.14) !important; }

/* nav */
[data-theme="light"] .mz-nav__pill, [data-theme="light"] .mz-nav__logo, [data-theme="light"] .mz-nav__resume { background:#ffffff; border-color:#e6e4df; box-shadow:0 6px 22px rgba(0,0,0,.08); }
[data-theme="light"] .mz-nav__pill a { color:#3a3a38; }
[data-theme="light"] .mz-nav__pill a:hover { background:rgba(0,0,0,.05); color:#111; }
[data-theme="light"] .mz-nav__pill a.active { color:#fff; }
[data-theme="light"] .mz-nav__logo, [data-theme="light"] .mz-nav__resume svg { color:#17170f; }
[data-theme="light"] .mz-nav::before { background:linear-gradient(180deg,#faf9f7 0%,rgba(250,249,247,.9) 38%,rgba(250,249,247,0) 100%); }

/* bento / stats / tool drop */
[data-theme="light"] .mz-bento__cell { background:#ffffff; border-color:#e6e4df; }
[data-theme="light"] .mz-bento__cell.is-invert { background:#17170f; border-color:#17170f; color:#faf9f7; }
[data-theme="light"] .mz-bento__num, [data-theme="light"] .mz-bento__label { color:#17170f; }
[data-theme="light"] .mz-bento__cell.is-invert .mz-bento__num, [data-theme="light"] .mz-bento__cell.is-invert .mz-bento__cap { color:#faf9f7; }
[data-theme="light"] .mz-bento__cap { color:#6a6a66; }
[data-theme="light"] .mz-drop .badge { background:#ffffff; border-color:#e0ded8; color:#2a2a28; }

/* what I bring / capability pills / selected work heads */
[data-theme="light"] .mz-cap { background:#ffffff; border-color:#e6e4df; color:#17170f; }
[data-theme="light"] .mz-cap__ic { border-color:#e0ded8; color:#17170f; }
[data-theme="light"] .mz-wib__sub { color:#6a6a66; }
[data-theme="light"] .mz-projects__head h2 { color:#17170f; }
[data-theme="light"] .mz-projects__count { color:#6a6a66; }
[data-theme="light"] .mz-pcard { background:#ffffff; border-color:#e6e4df; }

/* testimonials */
[data-theme="light"] .mz-tcard { background:#ffffff; border-color:#e6e4df; }
[data-theme="light"] .mz-tcard__q { color:#3a3a38; }
[data-theme="light"] .mz-tcard__name { color:#17170f; }
[data-theme="light"] .mz-tcard__av { background:#ececea; color:#17170f; }
[data-theme="light"] .mz-tcard.feat { background:#17170f; border-color:#17170f; }
[data-theme="light"] .mz-tcard.feat .mz-tcard__q { color:#f2f1ec; }
[data-theme="light"] .mz-tcard.feat .mz-tcard__name { color:#fff; }
[data-theme="light"] .mz-tcard.feat .mz-tcard__av { background:#faf9f7; color:#17170f; }
[data-theme="light"] .mz-tcard.feat .mz-tcard__role { color:#bdbcb6; }

/* case study (flip its own vars) */
[data-theme="light"] .csd { --ink:#17170f; --muted:#5f5d57; --soft:#8a887f; --line:rgba(0,0,0,.10); --card:#ffffff; --tint:#f4f4f2; --btint:#eef2f7; --acc:#17170f; }
[data-theme="light"] .csd .divider span { background:#faf9f7; }
[data-theme="light"] .csd-chip { background:rgba(0,0,0,.04); border-color:#e6e4df; color:#3a3a38; }
[data-theme="light"] .csd-bubble.gray { background:#ececea; color:#3a3a38; }
[data-theme="light"] .csd-bubble.blue { background:#17170f; color:#fff; }
[data-theme="light"] .csd-smiley { background:#ececea; border-color:#e6e4df; }

/* about */
[data-theme="light"] .mz-ab-hero h1, [data-theme="light"] .mz-ab-hero h1 em, [data-theme="light"] .mz-bio b, [data-theme="light"] .mz-bio__label, [data-theme="light"] .mz-bio__chat { color:#17170f; }
[data-theme="light"] .mz-ab-hero p, [data-theme="light"] .mz-bio p, [data-theme="light"] .mz-carousel__hint { color:#6a6a66; }
[data-theme="light"] .mz-ab-email, [data-theme="light"] .mz-ab-icon { background:#ffffff; border-color:#e6e4df; color:#17170f; }
[data-theme="light"] .mz-ab-email:hover, [data-theme="light"] .mz-ab-icon:hover { background:#f0efec; }

/* chat widget panel */
[data-theme="light"] #cw-panel { background:#ffffff; border:1px solid #e6e4df; color:#17170f; }
[data-theme="light"] .cw-input { color:#17170f; }
[data-theme="light"] .cw-msg.bot { background:#f0efec; color:#17170f; }

/* chat widget — dark theme (default site theme is dark, so this must exist) */
[data-theme="dark"] #cw-panel { background:#171717; border:1px solid rgba(255,255,255,.08); color:#f4f2ed; box-shadow:0 30px 90px rgba(0,0,0,.55); }
[data-theme="dark"] .cw-head .cw-name { color:#f4f2ed; }
[data-theme="dark"] .cw-head .cw-name span { color:#22c55e; }
[data-theme="dark"] .cw-head button { color:#8a8a86; }
[data-theme="dark"] .cw-head button:hover { background:#262626; color:#fff; }
[data-theme="dark"] .cw-msg.bot { background:#242424; color:#ececea; }
[data-theme="dark"] .cw-msg.user { background:#2c2a40; color:#e7e5f5; }
[data-theme="dark"] .cw-suggest-label { color:#8a8a86; }
[data-theme="dark"] .cw-chip { background:#1f1f1f; border-color:rgba(255,255,255,.12); color:#e6e6e2; }
[data-theme="dark"] .cw-chip:hover { background:#2a2a2a; border-color:rgba(255,255,255,.24); }
[data-theme="dark"] .cw-think { background:#242424; color:#b7b7b3; }
[data-theme="dark"] .cw-think .cw-dots i, [data-theme="dark"] .cw-typing span { background:#5c5c58; }
[data-theme="dark"] .cw-inrow { background:#242424; }
[data-theme="dark"] .cw-inrow:focus-within { background:#1a1a1a; border-color:rgba(255,255,255,.16); box-shadow:0 4px 16px rgba(0,0,0,.4); }
[data-theme="dark"] .cw-input { color:#f4f2ed; }
[data-theme="dark"] .cw-input::placeholder { color:#7a7a76; }
[data-theme="dark"] .cw-search { color:#7a7a76; }
[data-theme="dark"] .cw-note { color:#6f6f6c; }
/* send button flips to a light chip w/ dark arrow on dark theme */
[data-theme="dark"] .cw-send { background:#f4f2ed; color:#141414; }
[data-theme="dark"] .cw-link { background:#f4f2ed; color:#17170f; }

/* ===== Creative Hub — WebGL carousel section (home) ===== */
.mz-creative { max-width:1320px; width:100%; margin:0 auto; padding:clamp(60px,9vw,120px) 0 clamp(16px,3vw,40px); }
.mz-creative__eyebrow { display:inline-block; font-family:var(--font-display); font-size:.78rem; font-weight:600; letter-spacing:.16em; text-transform:uppercase; color:hsl(var(--primary)); margin-bottom:12px; }
.mz-creative h2 { font-family:var(--font-display); font-size:clamp(1.9rem,4.6vw,3rem); font-weight:600; letter-spacing:-.02em; line-height:1.08; margin:0; color:#f4f2ed; }
.mz-creative h2 em { font-style:italic; }
.mz-creative__sub { margin:14px 0 30px; color:#9a9a98; font-size:1rem; line-height:1.55; max-width:54ch; }
.mz-creative__stage { width:100%; height:min(72vh,660px); min-height:460px; border-radius:22px; overflow:hidden; position:relative; cursor:grab; background:#0e0e12; border:1px solid rgba(255,255,255,.07); box-shadow:0 30px 80px rgba(0,0,0,.45); }
.mz-creative__stage canvas { display:block; }
.mz-creative__hint { margin-top:16px; text-align:center; font-size:.82rem; letter-spacing:.02em; color:#7a7a76; }
[data-theme="light"] .mz-creative h2 { color:#17170f; }
[data-theme="light"] .mz-creative__sub { color:#6b6b66; }
[data-theme="light"] .mz-creative__stage { border-color:#e6e4df; box-shadow:0 24px 60px rgba(0,0,0,.12); }
[data-theme="light"] .mz-creative__hint { color:#8a8880; }
@media (max-width:640px){ .mz-creative__stage { height:min(64vh,540px); min-height:400px; border-radius:18px; } }
/* hover tooltip over a carousel card (stage is dark on both themes -> light pill) */
.mz-wc-tip { position:absolute; left:0; top:0; transform:translate(-50%,-140%) scale(.9); transform-origin:50% 120%; background:#f4f2ed; color:#141414; font-family:var(--font-display); font-size:.72rem; font-weight:600; letter-spacing:.02em; padding:6px 12px; border-radius:999px; white-space:nowrap; pointer-events:none; opacity:0; z-index:5; box-shadow:0 10px 24px rgba(0,0,0,.4); transition:opacity .18s ease, transform .24s cubic-bezier(.16,1,.3,1); }
.mz-wc-tip.on { opacity:1; transform:translate(-50%,-165%) scale(1); }
.mz-wc-tip::after { content:""; position:absolute; left:50%; bottom:-5px; transform:translateX(-50%); border:5px solid transparent; border-top-color:#f4f2ed; border-bottom:0; }

/* theme toggle button (injected by site.js) */
.mz-theme-btn { position:fixed; top:24px; right:24px; z-index:61; width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center; cursor:pointer; background:var(--surface); border:1px solid var(--border); color:var(--text); box-shadow:0 6px 20px rgba(0,0,0,.18); transition:transform var(--t-base) var(--ease), background var(--t-base) var(--ease); }
.mz-theme-btn:hover { transform:translateY(-2px); }
.mz-theme-btn svg { width:20px; height:20px; }
@media (max-width:760px){ .mz-theme-btn { top:auto; bottom:24px; left:20px; right:auto; width:42px; height:42px; } }

/* hero CTA — Book a 1:1 call */
.mz-hero__cta { display:inline-flex; align-items:center; gap:9px; margin-top:30px; padding:13px 24px; border-radius:999px; background:hsl(var(--primary)); color:#0f0f0f; font-weight:600; font-size:.98rem; text-decoration:none; box-shadow:0 10px 30px rgba(0,0,0,.25); transition:transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease); opacity:0; animation:mz-fade-up .8s cubic-bezier(0.16,1,0.3,1) .35s forwards; }
.mz-hero__cta:hover { transform:translateY(-2px); box-shadow:0 14px 36px rgba(0,0,0,.32); }
.mz-hero__cta svg { width:18px; height:18px; }
[data-theme="light"] .mz-hero__cta { color:#faf9f7; }

/* theme toggle inside footer nav */
.mz-footer__theme { display:inline-flex; align-items:center; justify-content:flex-end; gap:8px; background:none; border:none; padding:0; cursor:pointer; color:#8a8a8a; font-size:1.05rem; font-family:inherit; transition:color .25s var(--ease); }
.mz-footer__theme:hover { color:#fff; }
.mz-footer__theme svg { width:18px; height:18px; flex:none; }
@media (max-width:640px){ .mz-footer__theme { justify-content:flex-start; } }

/* ---- light theme: fixes for cursor label + missed text/surfaces ---- */
/* cursor label pill: bg is --primary (near-black in light) -> text must be light */
[data-theme="light"] .mz-cursor-follow span { color:#faf9f7; }
/* What I bring */
[data-theme="light"] .mz-wib__title, [data-theme="light"] .mz-wib__icon { color:#17170f; }
[data-theme="light"] .mz-pill { background:#ffffff; color:#17170f; border-color:#e6e4df; box-shadow:0 10px 26px rgba(0,0,0,.10); }
/* Selected work sticky cards (text side) */
[data-theme="light"] .mz-p-top, [data-theme="light"] .mz-p-tags span { color:#6a6a66; }
[data-theme="light"] .mz-p-title { color:#17170f; }
[data-theme="light"] .mz-p-desc { color:#5f5d57; }
[data-theme="light"] .mz-p-cta { color:#17170f; }
[data-theme="light"] .mz-p-cta.soon { color:#8a8a86; }
[data-theme="light"] .mz-p-result { color:#3a3a38; border-top-color:#e6e4df; }
[data-theme="light"] .mz-p-result b { color:#111; }
[data-theme="light"] .mz-p-tags span { border-color:#e6e4df; }
/* keep the visual/image half of the sticky card dark (it's the media panel) */

/* ---- light theme: nav contrast + hardcoded white-stroke card arrows ---- */
[data-theme="light"] .mz-nav__pill a { color:#3a3a38 !important; }
[data-theme="light"] .mz-nav__pill a:hover { background:rgba(0,0,0,.05) !important; color:#111 !important; }
[data-theme="light"] .mz-nav__pill a.active, [data-theme="light"] .mz-nav__pill a.active:hover { background:#17170f !important; color:#ffffff !important; }
[data-theme="light"] .mz-nav__mail svg { stroke:#faf9f7 !important; }
/* card "↗" arrows are inline SVGs hardcoded stroke="#ffffff"; dark on light cards */
[data-theme="light"] path[stroke="#ffffff"] { stroke:#17170f; }

/* ---- light theme: case-study hero uses the light image (title stays dark via --ink) ---- */
[data-theme="light"] .csd-hero {
    background:
        linear-gradient(180deg, rgba(250,249,247,.5) 0%, rgba(250,249,247,.28) 34%, rgba(250,249,247,.9) 78%, #faf9f7 100%),
        url("../images/portfolio_hero_light.webp") center/cover no-repeat;
    background-color: #faf9f7;
}
[data-theme="light"] .csd-rcard .stars { color:#17170f; }

/* ---- light theme: swap home hero to the light image + dark hero text ---- */
[data-theme="light"] .mz-hero {
    background:
        linear-gradient(180deg, rgba(250,249,247,.5) 0%, rgba(250,249,247,.28) 34%, rgba(250,249,247,.9) 82%, #faf9f7 100%),
        url("../images/portfolio_hero_light.webp") center/cover no-repeat;
    background-color: #faf9f7;
}
[data-theme="light"] .mz-hero__title, [data-theme="light"] .mz-hero__title em { color:#17170f; }
[data-theme="light"] .mz-hero__sub { color:#3a3a38; }
[data-theme="light"] .mz-hero__sub b { color:#17170f; }
[data-theme="light"] .mz-hero__eyebrow { background:rgba(255,255,255,.72); border-color:rgba(0,0,0,.10); color:#17170f; }

/* ============================================================
   PAGE HERO (.mz-pagehero) — theme-aware image hero (blog, etc.)
   ============================================================ */
.mz-pagehero {
    position: relative;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: -260px;
    padding: clamp(230px, 24vw, 300px) 24px clamp(70px, 8vw, 110px);
    background:
        linear-gradient(180deg, rgba(15,15,15,.55) 0%, rgba(15,15,15,.3) 34%, rgba(15,15,15,.85) 82%, #0f0f0f 100%),
        url("../images/portfolio_hero_dark.webp") center/cover no-repeat;
    background-color: #0f0f0f;
}
[data-theme="light"] .mz-pagehero {
    background:
        linear-gradient(180deg, rgba(250,249,247,.5) 0%, rgba(250,249,247,.28) 34%, rgba(250,249,247,.9) 82%, #faf9f7 100%),
        url("../images/portfolio_hero_light.webp") center/cover no-repeat;
    background-color: #faf9f7;
}

/* ===== 3D GSAP ring carousel (about page) ===== */
.mzr-stage { position: relative; width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); height: 560px; overflow: hidden; transform-style: preserve-3d; margin-top: 6px; margin-bottom: 2px; }
.mzr-stage * { user-select: none; }
.mzr-container { position: absolute; perspective: 1200px; perspective-origin: 50% 40%; width: 477px; height: 318px; left: 50%; top: 50%; transform: translate(-50%, -50%); transform-style: preserve-3d; }
@media (max-width: 600px) { .mzr-stage { height: 420px; } .mzr-container { width: 330px; height: 220px; } }
.mzr-ring { position: absolute; width: 100%; height: 100%; transform-style: preserve-3d; cursor: grab; }
.mzr-img { position: absolute; width: 100%; height: 100%; border-radius: 16px; background-size: cover; background-repeat: no-repeat; background-position: center; background-color: #141414; border: 1px solid rgba(255,255,255,.07); box-shadow: 0 24px 48px rgba(0,0,0,.45); backface-visibility: hidden; }
[data-theme="light"] .mzr-img { background-color: #ffffff; border-color: #ececE6; box-shadow: 0 12px 26px rgba(0,0,0,.10); }
.mzr-tip { position: fixed; z-index: 100; pointer-events: none; white-space: nowrap; text-align: left; background: #fff; border-radius: 14px; padding: 11px 16px; box-shadow: 0 14px 34px rgba(0,0,0,.28); opacity: 0; transform: translate(-50%, -135%) scale(.92); transition: opacity .18s ease, transform .18s ease; }
.mzr-tip.show { opacity: 1; transform: translate(-50%, -135%) scale(1); }
.mzr-tip b { display: block; font: 600 14px/1.2 'Inter', system-ui, sans-serif; color: #111; }
.mzr-tip span { display: block; font: 400 12.5px/1.3 'Inter', system-ui, sans-serif; color: #7c7c78; margin-top: 3px; }
[data-theme="dark"] .mzr-tip { background: #1a1a1a; box-shadow: 0 14px 34px rgba(0,0,0,.55); }
[data-theme="dark"] .mzr-tip b { color: #f4f2ed; }
[data-theme="dark"] .mzr-tip span { color: #9a9a98; }

/* person cutout in front of the ring (about) */
.mzr-person { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: 94%; width: auto; max-width: none; z-index: 10; pointer-events: none;
    -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 14%, #000 100%);
    mask-image: linear-gradient(to top, transparent 0%, #000 14%, #000 100%); }
@media (max-width: 600px) { .mzr-person { height: 80%; } }

/* ===== Works marquee (hero band, full-bleed) ===== */
.mzw { position: relative; width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-top: -120px; padding: 26px 0 6px; overflow: hidden; }
@media (max-width: 640px) { .mzw { margin-top: -24px; } }
.mzw-row { overflow: hidden; padding: 10px 0; }
.mzw-track { display: flex; align-items: center; gap: 20px; width: max-content; will-change: transform; }
.mzw-track.mzw-left { animation: mzw-tl 70s linear infinite; }
.mzw-track.mzw-right { animation: mzw-tr 70s linear infinite; }
@keyframes mzw-tl { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
@keyframes mzw-tr { from { transform: translate3d(-50%,0,0); } to { transform: translate3d(0,0,0); } }
.mzw-card { flex: none; border-radius: 16px; overflow: hidden; position: relative; background: #141414; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 14px 34px rgba(0,0,0,.3); }
.mzw-card img { width: 100%; height: 100%; display: block; object-fit: cover; }
[data-theme="light"] .mzw-card { background: #fff; border-color: #dcdad4; box-shadow: 0 8px 22px rgba(0,0,0,.06); }
#mzwA .mzw-card, #mzwB .mzw-card { height: 360px; aspect-ratio: 16 / 9; }
.mzw-tag { position: absolute; left: 16px; bottom: 14px; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: .95rem; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.mzw-tag span { display: block; font-family: var(--font-sans); font-weight: 400; font-size: .78rem; opacity: .85; margin-top: 2px; }
.mzw-cta { display: flex; justify-content: center; margin-top: 34px; }
.mzw-btn { display: inline-flex; align-items: center; gap: 10px; background: #1a1a1a; border: 1px solid #262626; border-radius: 999px; padding: 13px 26px; font-family: var(--font-display); font-weight: 500; font-size: 1rem; color: #f4f2ed; text-decoration: none; transition: transform .3s var(--ease), background .3s; }
.mzw-btn:hover { transform: translateY(-2px); background: #242424; }
.mzw-btn svg { width: 16px; height: 16px; }
[data-theme="light"] .mzw-btn { background: #fff; border-color: #e6e4df; color: #17170f; }
[data-theme="light"] .mzw-btn:hover { background: #f1f1ee; }
@media (max-width: 640px) { #mzwA .mzw-card, #mzwB .mzw-card { height: 200px; } }
@media (prefers-reduced-motion: reduce) { .mzw-track { animation: none; } }
