/* ==========================================================================
   Tokens — dark by default (set before paint in the layout); light when the visitor picks it
   ========================================================================== */
:root {
    --bg: #F7F6F2;
    --bg-2: #EFEDE7;
    --surface: #FFFFFF;
    --surface-2: #F2F0EA;
    --line: #E4E1D9;
    --line-strong: #CDC9BE;
    --text: #121210;
    --text-2: #3B3A36;
    --muted: #6E6B63;
    --accent: #D9481C;
    --accent-ink: #FFFFFF;
    --accent-soft: rgba(217, 72, 28, .08);
    --ink: #121210;
    --ink-on: #FFFFFF;
    --shadow: 0 1px 2px rgba(18, 18, 16, .04), 0 12px 32px -12px rgba(18, 18, 16, .14);
    --shadow-lg: 0 40px 80px -30px rgba(18, 18, 16, .35);
    --radius: 14px;
    --gutter: clamp(16px, 3vw, 48px);
    --font-head: 'Geist', ui-sans-serif, system-ui, sans-serif;
    --font-body: 'Geist', ui-sans-serif, system-ui, sans-serif;
    --font-mono: 'Geist Mono', ui-monospace, monospace;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0E0E0D; --bg-2: #141413; --surface: #181816; --surface-2: #1F1F1C;
        --line: #2A2A26; --line-strong: #3A3A35; --text: #F3F1EC; --text-2: #CFCCC4; --muted: #96938B;
        --accent: #FF6B3D; --accent-ink: #120A06; --accent-soft: rgba(255, 107, 61, .1);
        --ink: #F3F1EC; --ink-on: #121210;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
        --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .8);
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --bg: #0E0E0D; --bg-2: #141413; --surface: #181816; --surface-2: #1F1F1C;
    --line: #2A2A26; --line-strong: #3A3A35; --text: #F3F1EC; --text-2: #CFCCC4; --muted: #96938B;
    --accent: #FF6B3D; --accent-ink: #120A06; --accent-soft: rgba(255, 107, 61, .1);
    --ink: #F3F1EC; --ink-on: #121210;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .8);
    color-scheme: dark;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
/* Lenis drives scrolling when it is on; native smooth scrolling would fight its per-frame updates */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font: 400 16px/1.6 var(--font-body); letter-spacing: -.005em;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); letter-spacing: -.03em; line-height: 1.15; }
h3 { font-size: 1.15rem; letter-spacing: -.015em; line-height: 1.3; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.muted { color: var(--muted); }
.icon { width: 1.1em; height: 1.1em; flex: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: none; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--ink-on); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.label { display: block; font: 500 .78rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 18px; }
.lead { font-size: 1.1rem; line-height: 1.6; color: var(--muted); max-width: 46ch; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; transition: border-color .2s, color .2s; }
.text-link:hover { border-color: var(--accent); color: var(--accent); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    min-height: 46px; padding: 0 1.3em; border-radius: 999px; border: 1px solid transparent;
    font-weight: 500; font-size: .95rem; letter-spacing: -.01em; white-space: nowrap;
    transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn .icon { transition: transform .2s; }
.btn:hover .icon { transform: translate(2px, -2px); }
.btn--primary { background: var(--ink); color: var(--ink-on); }
.btn--primary:hover { background: var(--accent); color: #fff; }
.btn--ghost { border-color: var(--line-strong); background: transparent; }
.btn--ghost:hover { border-color: var(--text); }
.btn--sm { min-height: 38px; padding: 0 1.05em; font-size: .88rem; }
.btn--lg { min-height: 54px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--danger { border-color: rgba(220, 38, 38, .35); color: #DC2626; background: transparent; }
.icon-btn {
    display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--line); background: transparent; color: var(--text); transition: border-color .2s, background .2s;
}
.icon-btn:hover { border-color: var(--line-strong); background: var(--surface); }
:root:not([data-theme]) .only-dark, :root[data-theme="light"] .only-dark { display: none; }
:root[data-theme="dark"] .only-light { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .only-dark { display: block; }
    :root:not([data-theme]) .only-light { display: none; }
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav { position: fixed; inset: 12px 0 auto; z-index: 50; padding: 0 var(--gutter); pointer-events: none; }
/* Floating glass pill: brand on the left, links in the middle, actions on the right */
.nav__inner { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px;
    max-width: none; margin: 0 auto; padding: 0 8px 0 10px; border-radius: 999px; border: 1px solid transparent;
    transition: background .3s, border-color .3s, box-shadow .3s, backdrop-filter .3s; }
.nav.is-scrolled .nav__inner, .nav.is-open .nav__inner {
    background: color-mix(in srgb, var(--surface, var(--bg)) 78%, transparent); border-color: var(--line);
    backdrop-filter: saturate(1.5) blur(18px); -webkit-backdrop-filter: saturate(1.5) blur(18px);
    box-shadow: 0 12px 32px -18px rgba(0, 0, 0, .35); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.brand__mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--ink-on); font: 600 .78rem/1 var(--font-mono); letter-spacing: 0; }
.logo { font-weight: 700; font-size: 1.15rem; letter-spacing: -.03em; }
.logo span { color: var(--accent); }
.nav__links { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--text) 5%, transparent); }
.nav__links a:not(.btn) { padding: 8px 14px; font-size: .88rem; font-weight: 500; white-space: nowrap; color: var(--muted); border-radius: 999px; transition: color .2s, background .2s; }
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__links a.is-active { color: var(--text); background: var(--surface, var(--bg)); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 1px var(--line); }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__actions .btn { white-space: nowrap; border-radius: 999px; }
.nav__actions .icon-btn { border-radius: 50%; }
.nav__burger, .nav__mobile-cta { display: none !important; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: 148px 0 0; }
/* Hero background: faint code drifting upward and a growth line that draws across on load */
.hero { position: relative; isolation: isolate; }
.hero__fx { position: absolute; inset: 0 0 -10% 0; z-index: -1; overflow: hidden; pointer-events: none;
    -webkit-mask: linear-gradient(to bottom, transparent, #000 18%, #000 75%, transparent); mask: linear-gradient(to bottom, transparent, #000 18%, #000 75%, transparent); }
.hero__growth { position: absolute; left: 0; right: 0; bottom: 6%; width: 100%; height: 46%; }
.hero__growth-line { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; opacity: .55;
    stroke-dasharray: 1 2; stroke-dashoffset: 1.01; animation: heroLine 2.8s .6s cubic-bezier(.6, 0, .2, 1) forwards;
    filter: drop-shadow(0 0 6px var(--accent)); }
.hero__growth-area { fill: color-mix(in srgb, var(--accent) 7%, transparent); opacity: 0; animation: heroFade 1.6s 2.2s ease forwards; }
@keyframes heroLine { to { stroke-dashoffset: 0; } }
@keyframes heroFade { to { opacity: 1; } }
.hero__code { position: absolute; top: 0; right: 0; width: 52ch; height: 100%; overflow: hidden; opacity: .07;
    font: 500 .8rem/2.1 var(--font-mono); color: var(--text);
    -webkit-mask: linear-gradient(to right, transparent, #000 25%, #000 75%, transparent); mask: linear-gradient(to right, transparent, #000 25%, #000 75%, transparent); }
.hero__code > div { display: flex; flex-direction: column; animation: heroCode 30s linear infinite; animation-play-state: paused; }
.hero__fx.is-live .hero__code > div { animation-play-state: running; }
.hero__code span { white-space: nowrap; }
.hero__code span:nth-child(3n+1) { color: var(--accent); }
@keyframes heroCode { to { transform: translateY(-100%); } }
@media (max-width: 900px) { .hero__code { right: -14ch; opacity: .05; } }
@media (prefers-reduced-motion: reduce) { .hero__growth-line { animation: none; stroke-dashoffset: 0; } .hero__growth-area { animation: none; opacity: 1; } .hero__code > div { animation: none; } }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(40px, 7vw, 110px); align-items: end; }
.hero__kicker { font: 400 1rem/1.5 var(--font-body); letter-spacing: -.005em; color: var(--muted); margin: 0 0 22px; }
.hero__kicker strong { color: var(--text); font-weight: 600; }
.hero__status { font-size: .9rem; color: var(--muted); margin: -14px 0 30px; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin: 0 8px 1px 4px; border-radius: 50%; background: #16A34A; box-shadow: 0 0 0 4px rgba(22, 163, 74, .15); }
.hero__title { font-size: clamp(2rem, 3.3vw, 3rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.12; max-width: 20ch; margin-bottom: 22px; }
.hero__lead { font-size: clamp(1rem, 1.3vw, 1.1rem); line-height: 1.65; color: var(--text-2); max-width: 52ch; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.hero__cta .text-link { margin-left: 10px; }
.hero__photo { margin: 0; position: relative; }
.hero__photo::before { content: ""; position: absolute; inset: 8% -6% -4% 6%; border-radius: 50%; background: var(--bg-2); z-index: -1; }
.hero__photo img { width: 100%; height: auto; border-radius: 50%; }


/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: clamp(88px, 11vw, 140px) 0; }
.section--tint { background: var(--bg-2); }
.section__head { margin-bottom: clamp(40px, 5vw, 64px); max-width: 760px; }
.section__head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 64px; flex-wrap: wrap; }
.section__head--split > div { max-width: 640px; }
.section__head--split .lead { margin: 0; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(40px, 7vw, 110px); }
.split__head { align-self: start; position: sticky; top: 112px; }
.split__head h2 { margin-bottom: 20px; }
.split__head .text-link { margin-top: 8px; }

/* Open to work */
.hire-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.availability { margin: 26px 0 0; border-top: 1px solid var(--line); }
.availability > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.availability dt { color: var(--muted); }
.availability dd { margin: 0; font-weight: 500; text-align: right; }
.roles { padding-top: 24px; border-top: 1px solid var(--line); }
.roles h3, .why__item h3 { font-size: 1.05rem; }
.roles h3 { margin-bottom: 16px; }
.roles ul { display: flex; flex-wrap: wrap; gap: 8px; }
.roles li { padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 500; font-size: .95rem; }
.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; margin-top: 40px; }
.why__item { padding: 24px 0; border-top: 1px solid var(--line); }
.why__item h3 { margin-bottom: 6px; }
.why__item p { margin: 0; color: var(--muted); font-size: .95rem; }
.btn--light { background: var(--ink-on); color: var(--ink); margin-bottom: 28px; }
.btn--light:hover { background: var(--accent); color: #fff; }

/* Services */
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.service {
    position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 26px 26px 26px 22px;
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; isolation: isolate;
    transition: border-color .3s, transform .4s cubic-bezier(.2, .7, .2, 1);
}
.service::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
    background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 65%);
}
.service:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); transform: translateY(-3px); }
.service:hover::before { opacity: 1; }
.service__no { font: 500 .8rem/1.9 var(--font-mono); color: var(--accent); }
.service h3 { margin-bottom: 8px; }
.service p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Platforms */
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.platform { padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.platform__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.platform__top h3 { font-size: 1.6rem; letter-spacing: -.035em; }
.platform__stat { font: 500 .78rem var(--font-mono); color: var(--accent); }
.platform__intro { color: var(--muted); font-size: .95rem; margin-bottom: 24px; }
.platform__group { padding: 18px 0; border-top: 1px solid var(--line); }
.platform__group:last-child { padding-bottom: 0; }
.platform__group h4 { font: 500 .74rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.platform__group ul { display: grid; gap: 6px; }
.platform__group li { font-size: .94rem; }

/* Approach: funnel */
.funnel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-bottom: 72px; counter-reset: stage; }
.funnel > li { position: relative; padding: 28px 28px 0 0; border-top: 2px solid var(--line); }
.funnel > li::before { content: ""; position: absolute; top: -2px; left: 0; right: 0; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(clamp(0, calc(var(--fill, 1) * 4 - var(--i, 0)), 1)); }
.funnel > li + li { padding-left: 28px; }
.funnel__step { display: block; font: 500 .76rem var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.funnel h3 { font-size: 1.35rem; margin-bottom: 4px; }
.funnel p { color: var(--muted); font-size: .93rem; margin-bottom: 16px; }
.funnel ul { display: grid; gap: 7px; }
.funnel ul li { font-size: .93rem; color: var(--text-2); }

/* Approach: channel structures */
.channels { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 72px; overflow: hidden; }
.tabs { display: flex; gap: 4px; padding: 0 12px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
    position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 18px 14px;
    border: 0; background: none; color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .2s;
}
.tab::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: transparent; transition: background .2s; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); }
.tab[aria-selected="true"]::after { background: var(--text); }
.tab__badge { padding: 2px 6px; border-radius: 4px; background: var(--accent); color: #fff; font: 600 .62rem/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.structure { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; }
.structure > div { padding: 28px 32px; border-bottom: 1px solid var(--line); }
.structure > div:nth-child(odd) { border-right: 1px solid var(--line); }
.structure > div:nth-last-child(-n+2) { border-bottom: 0; }
.structure dt { font-weight: 600; letter-spacing: -.015em; margin-bottom: 6px; }
.structure dd { margin: 0; color: var(--muted); font-size: .95rem; }

/* Approach: search */
.search-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.search { padding-top: 28px; border-top: 1px solid var(--line); }
.search__key { font-size: clamp(2.6rem, 4.5vw, 3.6rem); font-weight: 600; letter-spacing: -.05em; line-height: 1; margin-bottom: 18px; }
.search h3 { margin-bottom: 4px; }
.search ul, .checks { display: grid; gap: 9px; margin-top: 18px; }
.search li, .checks li { position: relative; padding-left: 22px; font-size: .94rem; color: var(--text-2); }
.search li::before, .checks li::before {
    content: ""; position: absolute; left: 1px; top: .5em; width: 9px; height: 5px;
    border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg);
}

/* Work */
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter {
    display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px;
    border: 1px solid var(--line-strong); background: transparent; font-size: .88rem; color: var(--text-2); transition: all .2s;
}
.filter span { font: 500 .74rem var(--font-mono); color: var(--muted); }
.filter:hover { border-color: var(--text); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--ink-on); }
.filter.is-active span { color: inherit; opacity: .6; }
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 32px; }
.project__media {
    display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    aspect-ratio: 16 / 10; background: var(--surface); box-shadow: var(--shadow); cursor: zoom-in;
}
.project__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.project:hover .project__media img { transform: scale(1.025); }
.project__placeholder { display: grid; place-items: center; height: 100%; padding: 24px; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -.04em; color: var(--muted); background: repeating-linear-gradient(135deg, var(--surface), var(--surface) 12px, var(--surface-2) 12px, var(--surface-2) 13px); }
.project__body { padding-top: 22px; }
.project__meta { display: flex; justify-content: space-between; gap: 12px; font: 500 .76rem var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.project h3 { font-size: 1.45rem; letter-spacing: -.03em; margin-bottom: 8px; }
.project h3 button { padding: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; text-align: left; }
.project h3 button:hover { color: var(--accent); }
.project__body > p { color: var(--muted); margin-bottom: 10px; }
.project__roles { font-size: .88rem; color: var(--text-2) !important; }

/* Creative */
.creative-caps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.creative-caps h3 { margin-bottom: 14px; }
.creative-caps ul { display: grid; gap: 8px; }
.creative-caps li { color: var(--text-2); }
.tools { margin-top: 18px; font: 500 .85rem var(--font-mono); color: var(--text-2); }
.note { margin-top: 36px; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px dashed var(--line-strong); color: var(--muted); }
.note .text-link { margin-left: 6px; }
.filters--creative { margin: 40px 0 20px; }
.gallery { columns: 3 200px; column-gap: 14px; margin-top: 36px; }
.filters--creative + .gallery { margin-top: 0; }
.gallery__item { position: relative; display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); cursor: zoom-in; break-inside: avoid; text-align: left; }
.gallery__item.is-hidden { display: none; }
.gallery__item img, .gallery__item video { width: 100%; height: auto; display: block; transition: transform .6s; }
.gallery__item:hover img { transform: scale(1.03); }
.gallery__blank { display: grid; place-items: center; aspect-ratio: 9 / 16; color: var(--muted); }
.gallery__blank .icon { width: 36px; height: 36px; }
.gallery__play { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; }
.gallery__cap { position: absolute; inset: auto 0 0; padding: 28px 12px 10px; font-size: .78rem; color: rgba(255, 255, 255, .8); background: linear-gradient(transparent, rgba(0, 0, 0, .75)); opacity: 0; transition: opacity .3s; }
.gallery__cap b { display: block; color: #fff; font-weight: 600; font-size: .88rem; }
.gallery__item:hover .gallery__cap, .gallery__item:focus-visible .gallery__cap { opacity: 1; }

/* Experience */
.timeline { position: relative; display: grid; gap: 0; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 1px; background: var(--line-strong); }
.job { position: relative; padding: 0 0 44px; }
.job:last-child { padding-bottom: 0; }
.job::before {
    content: ""; position: absolute; left: -36px; top: 4px; width: 13px; height: 13px; border-radius: 50%;
    background: var(--bg-2); border: 2px solid var(--accent); box-sizing: border-box;
}
.job:first-child::before { background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.job__when { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 500 .8rem var(--font-mono); color: var(--accent); margin-bottom: 12px; }
.job__when span { color: var(--muted); }
.job h3 { font-size: 1.35rem; letter-spacing: -.03em; margin-bottom: 4px; }
.job__company { color: var(--text-2); font-weight: 500; margin-bottom: 16px; }
.job ul { display: grid; gap: 8px; }
.job li { position: relative; padding-left: 18px; color: var(--muted); font-size: .95rem; }
.job li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 1px; background: var(--text-2); }

/* About */
.about__text p { color: var(--text-2); font-size: 1.05rem; }
.about__text p:first-child { color: var(--text); font-size: 1.25rem; line-height: 1.5; letter-spacing: -.015em; }
.facts { margin: 40px 0 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .92rem; }
.facts dd { margin: 0; font-weight: 500; }
.facts small { display: block; color: var(--muted); font-weight: 400; font-size: .88rem; }

/* Project page */
.case-page { padding-top: 112px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--muted); margin-bottom: 40px; }
.crumbs a:hover { color: var(--text); }
.case-page__head { max-width: 760px; margin-bottom: 56px; }
.case-page__head h1 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -.035em; margin-bottom: 18px; }
.case-page__head .lead { margin-bottom: 28px; max-width: 60ch; }
.case-page__stage { margin: 0 0 clamp(72px, 9vw, 120px); padding: clamp(32px, 6vw, 80px) clamp(40px, 9vw, 120px) clamp(48px, 7vw, 96px) clamp(24px, 5vw, 64px); border-radius: 20px; background: var(--bg-2); }
.case-page__stage .mock { max-width: 980px; margin: 0 auto; }
.case-page__body { margin-bottom: clamp(72px, 9vw, 120px); }
.case-page__desc { font-size: 1.15rem; line-height: 1.65; color: var(--text-2); }
.case-page__h { font-size: 1rem; margin: 32px 0 4px; }
.case-page__more { padding-top: 40px; border-top: 1px solid var(--line); margin-bottom: clamp(72px, 9vw, 120px); }
.case-page__more h2 { font-size: 1.6rem; margin-bottom: 32px; }
.case-page__more .projects { grid-template-columns: repeat(3, 1fr); gap: 28px; }
.case-page__more .project h3 { font-size: 1.15rem; }
.case-page__cta h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 14px; color: var(--ink-on); }
.btn--on-dark { color: var(--ink-on); border-color: color-mix(in srgb, var(--ink-on) 35%, transparent); }
.btn--on-dark:hover { border-color: var(--ink-on); }
@media (max-width: 900px) { .case-page__more .projects { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { position: relative; padding: 22px 40px 22px 0; font-weight: 600; font-size: 1.1rem; letter-spacing: -.015em; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-weight: 400; font-size: 1.4rem; color: var(--muted); transition: transform .3s; }
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { margin: 0 0 24px; color: var(--text-2); max-width: 65ch; }

/* Toolkit */
.skills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; }
.skill-group { padding-top: 20px; border-top: 1px solid var(--line); }
.skill-group h3 { font-size: 1rem; margin-bottom: 10px; }
.skill-group p { color: var(--muted); font-size: .92rem; line-height: 1.7; margin: 0; }

/* Contact */
.contact-section { background: var(--ink); color: var(--ink-on); }
.contact-section .label, .contact-section .lead { color: color-mix(in srgb, var(--ink-on) 60%, transparent); }
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(40px, 7vw, 110px); align-items: start; }
.contact__intro h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); letter-spacing: -.035em; margin-bottom: 22px; }
.contact__intro .btn { margin-bottom: 28px; }
/* Contact details: a highlighted email card with copy button, then tappable tiles */
.contact__ico { display: inline-grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; color: var(--accent);
    background: color-mix(in srgb, var(--accent) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent); }
.contact__ico .icon { width: 19px; height: 19px; }
.contact__mailbox { display: flex; align-items: center; gap: 14px; padding: 16px 16px 16px 18px; margin-bottom: 12px; border-radius: 20px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, transparent), color-mix(in srgb, var(--ink-on) 4%, transparent));
    border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.contact__mailbox > div { min-width: 0; flex: 1; }
.contact__mailbox small, .contact__tile-text small { display: block; font: 500 .7rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--ink-on) 55%, transparent); margin-bottom: 2px; }
.contact__email { display: block; font-size: clamp(1rem, 1.5vw, 1.2rem); font-weight: 600; letter-spacing: -.02em; overflow-wrap: normal; word-break: normal; transition: color .2s; }
.contact__email:hover { color: var(--accent); }
.contact__copy { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 9px 14px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--ink-on) 18%, transparent);
    background: color-mix(in srgb, var(--ink-on) 6%, transparent); color: var(--ink-on); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; transition: background .2s, border-color .2s; }
.contact__copy:hover { border-color: var(--accent); }
.contact__copy .icon { width: 15px; height: 15px; }
.contact__copy.is-done { background: #2BD4A4; border-color: #2BD4A4; color: #07080A; }
.contact__tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 12px; }
.contact__tiles a, .contact__tiles li > span { display: flex; align-items: center; gap: 12px; height: 100%; padding: 14px; border-radius: 18px;
    background: color-mix(in srgb, var(--ink-on) 4%, transparent); border: 1px solid color-mix(in srgb, var(--ink-on) 11%, transparent);
    transition: transform .25s, border-color .25s, background .25s; }
.contact__tiles a:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.contact__tile-text { min-width: 0; flex: 1; }
.contact__tile-text b { display: block; font-size: .95rem; font-weight: 600; letter-spacing: -.01em; }
.contact__go { width: 16px; height: 16px; flex: none; opacity: .45; transition: opacity .2s, transform .2s; }
.contact__tiles a:hover .contact__go { opacity: 1; color: var(--accent); transform: translate(2px, -2px); }
@media (max-width: 1100px) { .contact { grid-template-columns: 1fr; } }
/* Phones: addresses stay on one line (text sized to the card), the copy button becomes a round icon */
.contact__intro { container-type: inline-size; }
@container (max-width: 480px) {
    .contact__mailbox { gap: 12px; padding: 14px; }
    .contact__ico { width: 38px; height: 38px; border-radius: 11px; }
    .contact__ico .icon { width: 17px; height: 17px; }
    .contact__mailbox > .contact__ico, .contact__go { display: none; }
    .contact__email { font-size: clamp(.8rem, calc((100cqi - 92px) / 14.5), 1.1rem); }
    .contact__copy { width: 38px; height: 38px; padding: 0; justify-content: center; }
    .contact__copy span { display: none; }
    .contact__tiles a, .contact__tiles li > span { gap: 12px; padding: 12px 14px; }
    .contact__tile-text b { font-size: clamp(.8rem, 4.3cqi, .95rem); }
}
.contact__form { padding: clamp(24px, 3.5vw, 40px); border-radius: 18px; background: var(--surface); color: var(--text); }

/* Forms (also used by the admin) */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 6px; font-size: .88rem; font-weight: 500; }
.form label > input, .form label > select, .form label > textarea { flex: 1 1 100%; }
.form .opt, .form .hint { font-weight: 400; color: var(--muted); font-size: .8rem; }
.form input, .form select, .form textarea {
    width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg);
    font-size: .95rem; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 4px var(--accent-soft); }
.form textarea::placeholder { color: var(--muted); }
.hp { position: absolute !important; left: -9999px; }
.alert { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 10px; font-size: .92rem; }
.alert--ok { background: rgba(22, 163, 74, .1); color: #15803D; border: 1px solid rgba(22, 163, 74, .3); }
.alert--err { background: rgba(220, 38, 38, .08); color: #DC2626; border: 1px solid rgba(220, 38, 38, .3); }

/* Footer */
.footer { background: var(--ink); color: var(--ink-on); padding: 0 0 40px; }
.footer__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 32px; border-top: 1px solid color-mix(in srgb, var(--ink-on) 14%, transparent); }
.footer p { margin: 0; }
.footer .muted { color: color-mix(in srgb, var(--ink-on) 55%, transparent); font-size: .9rem; }
.footer__name { font-weight: 600; letter-spacing: -.02em; }
.footer__links { display: flex; gap: 10px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.footer__links a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--ink-on) 14%, transparent);
    color: color-mix(in srgb, var(--ink-on) 75%, transparent); font-size: .9rem; transition: color .2s, border-color .2s, background .2s; }
.footer__links a .icon { width: 16px; height: 16px; }
.footer__links a:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
/* Phones and tablets: stacked, centred, with room at the bottom so the floating WhatsApp and auto-scroll buttons never cover it */
@media (max-width: 900px) {
    .footer { padding-bottom: 100px; }
    .footer__inner { flex-direction: column; align-items: center; text-align: center; gap: 18px; }
    .footer__links { justify-content: center; }
}
.footer__links a:hover { color: var(--ink-on); }

/* ==========================================================================
   Case study dialog (device mockup, no scrolling frames)
   ========================================================================== */
dialog { color: var(--text); }
dialog::backdrop { background: rgba(10, 10, 9, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
body:has(dialog[open]) { overflow: hidden; }
/* One screen, no scrollbars: mockup on the left, details on the right */
.case {
    width: min(1320px, calc(100vw - 48px)); height: min(760px, calc(100dvh - 48px)); max-width: none; max-height: none;
    padding: 0; border: 0; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden;
}
.case[open] { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(340px, 1fr); animation: rise .35s cubic-bezier(.2, .7, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.case__close { position: absolute; top: 16px; right: 16px; z-index: 3; background: var(--surface); }
.case__stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 48px 72px 48px 40px; background: var(--bg-2); overflow: hidden; }
.case__stage[hidden] { display: none; }
.case__stage[hidden] + .case__info { grid-column: 1 / -1; }
.mock { position: relative; width: 100%; max-width: 760px; }
.mock__browser { border-radius: 12px !important; border-bottom: 1px solid var(--line) !important; }
.mock__browser { border-radius: 12px 12px 0 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-bottom: 0; box-shadow: var(--shadow-lg); }
.mock__bar { display: flex; align-items: center; gap: 14px; padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.mock__dots { display: flex; gap: 6px; }
.mock__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.mock__url { flex: 1; max-width: 340px; margin: 0 auto; padding: 4px 12px; border-radius: 6px; background: var(--surface); font: 500 .76rem var(--font-mono); color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock__screen { width: 100%; aspect-ratio: 16 / 10; background: var(--surface-2); }
.mock__phone {
    position: absolute; right: -9%; bottom: -12%; width: 25%; min-width: 110px; aspect-ratio: 390 / 844;
    border-radius: 28px; padding: 7px; background: #0F0F0E; box-shadow: var(--shadow-lg);
}
.mock__phone { overflow: hidden; }
.mock__phone[hidden] { display: none; }
.case__info { display: flex; flex-direction: column; min-height: 0; padding: 56px 44px 36px; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain;  -webkit-overflow-scrolling: touch; touch-action: pan-y; }
.case__info::-webkit-scrollbar { display: none; }
.case__info h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); letter-spacing: -.04em; margin-bottom: 14px; }
.case__desc { font-size: 1rem; color: var(--text-2); margin-bottom: 26px; }
.case__cols { display: grid; gap: 22px; padding-top: 22px; border-top: 1px solid var(--line); margin-bottom: 28px; }
.case__info h4 { font: 500 .72rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.case__info h4:not(:first-child) { margin-top: 20px; }
.case__info .btn { align-self: flex-start; }
.case__page { align-self: flex-start; margin: auto 0 18px; }
.case .checks li { font-size: .92rem; }
.case__info h4[hidden], .case__info ul[hidden], .case__info .btn[hidden] { display: none; }
.case .checks { margin-top: 0; }
.plain { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.plain li { font-size: .95rem; color: var(--text-2); }

/* Lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); overflow: visible; }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; animation: rise .3s ease-out; }
.lightbox__media img, .lightbox__media video { display: block; max-width: min(1000px, calc(100vw - 32px)); max-height: calc(100dvh - 120px); border-radius: 12px; }
.lightbox__media iframe { display: block; width: min(1000px, calc(100vw - 32px)); aspect-ratio: 16 / 9; border: 0; border-radius: 12px; }
.lightbox__cap { margin: 12px 0 0; color: #fff; font-size: .9rem; text-align: center; }
.lightbox__close { position: fixed; top: 16px; right: 16px; background: rgba(0, 0, 0, .5); color: #fff; border-color: transparent; }

/* ==========================================================================
   Motion layer: work reel, split headings, cursor
   ========================================================================== */
.nav { transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.nav.is-hidden { transform: translateY(calc(-100% - 16px)); }

/* Split headings (words wrapped by JS) */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split-word > span { display: inline-block; will-change: transform; }

/* Work */
.work { padding: clamp(88px, 11vw, 140px) 0; }
.work__head .section__head { margin-bottom: clamp(32px, 4vw, 56px); }
.reel { position: relative; overflow: hidden; }
.reel__track { display: flex; gap: clamp(20px, 3vw, 40px); width: max-content; padding: 6px var(--gutter) 0; will-change: transform; }
.reel__item { flex: none; width: min(64vw, 900px); }
.reel__media { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); text-align: left; }
.reel__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.reel__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.reel__bar span { margin-left: 12px; font: 500 .74rem var(--font-mono); color: var(--muted); }
.reel__screen, .project__media { position: relative; }
.reel__screen { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.reel__screen img, .reel__screen video, .project__media video {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
}
.reel__screen video, .project__media video { opacity: 0; transition: opacity .5s ease; }
.reel__screen video.is-playing, .project__media video.is-playing { opacity: 1; }
.reel__meta { display: flex; gap: 20px; align-items: baseline; margin-top: 22px; }
.reel__no { font: 500 .82rem var(--font-mono); color: var(--accent); }
.reel__meta h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); letter-spacing: -.03em; margin-bottom: 4px; }
.reel__meta p { margin: 0; color: var(--muted); font-size: .95rem; }
.reel__progress { height: 2px; margin: 40px var(--gutter) 0; background: var(--line); overflow: hidden; }
.reel__progress span { display: block; height: 100%; background: var(--text); transform-origin: left; transform: scaleX(0); }

.more-work { margin-top: clamp(88px, 10vw, 130px); }
.more-work__title { font-size: 1.35rem; margin-bottom: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.more-work .projects { grid-template-columns: repeat(3, 1fr); gap: 48px 28px; }
.more-work .project h3 { font-size: 1.2rem; }
.more-work .project__body > p { font-size: .93rem; }

/* Case study videos */
.mock__screen { position: relative; display: block; overflow: hidden; }
.mock__screen img, .mock__screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mock__screen video, .mock__phone video { opacity: 0; transition: opacity .5s; }
.mock__screen video.is-playing, .mock__phone video.is-playing { opacity: 1; }
.mock__phone img, .mock__phone video { position: absolute; inset: 7px; width: calc(100% - 14px); height: calc(100% - 14px); object-fit: cover; object-position: top; border-radius: 22px; }

/* Cursor label over projects (mouse only) */
.cursor { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; }
.cursor span {
    position: absolute; left: -44px; top: -44px; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%;
    background: var(--ink); color: var(--ink-on); font-size: .85rem; font-weight: 500; transform: scale(0); transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
.cursor.is-active span { transform: scale(1); }
@media (hover: hover) and (pointer: fine) { .has-cursor [data-cursor] { cursor: none; } }
@media not all and (hover: hover) { .cursor { display: none; } }

@media (max-width: 1100px) {
    .more-work .projects { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .reel { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .reel::-webkit-scrollbar { display: none; }
    .reel__item { width: 84vw; scroll-snap-align: center; }
    .reel__progress { display: none; }
}
@media (max-width: 640px) {
    .more-work .projects { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Modern motion details
   ========================================================================== */
.scroll-progress { position: fixed; inset: 0 0 auto; z-index: 80; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(0); pointer-events: none; }

/* Hero: soft moving colour behind the photo, photo tilts toward the cursor */
.hero__photo { transform-style: preserve-3d; will-change: transform; }
.hero__aura { position: absolute; inset: -18% -20% -14% -16%; z-index: -1; filter: blur(48px); opacity: .75; pointer-events: none; }
.hero__aura i { position: absolute; border-radius: 50%; mix-blend-mode: multiply; animation: drift 14s ease-in-out infinite alternate; }
.hero__aura i:nth-child(1) { width: 62%; height: 62%; left: 6%; top: 10%; background: #F6B48F; }
.hero__aura i:nth-child(2) { width: 52%; height: 52%; right: 2%; top: 30%; background: #F3D3A6; animation-duration: 18s; animation-delay: -6s; }
.hero__aura i:nth-child(3) { width: 46%; height: 46%; left: 26%; bottom: 0; background: #E9A88C; animation-duration: 22s; animation-delay: -11s; }
:root[data-theme="dark"] .hero__aura { opacity: .35; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero__aura { opacity: .35; } }
:root[data-theme="dark"] .hero__aura i { mix-blend-mode: screen; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero__aura i { mix-blend-mode: screen; } }
@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(8%, -6%) scale(1.08); }
    100% { transform: translate(-6%, 8%) scale(.95); }
}
.hero__photo::before { display: none; }

/* Last word of the headline: accent with a hand-drawn underline */
.hero__title .is-accent > span { position: relative; color: var(--accent); }
.hero__title .is-accent { overflow: visible; }

/* Project images unveil from a mask (set by JS so they still show without it) */
.project__media, .reel__media { will-change: clip-path; }

/* Magnetic buttons settle back smoothly */
[data-magnetic] { will-change: transform; }

html.has-gsap .reveal { transition: none !important; }

/* Reveal on scroll — subtle */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
    .platforms { grid-template-columns: 1fr; }
    .platform { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 28px; }
    .platform__top, .platform__intro { grid-column: 1 / -1; }
    .skills { grid-template-columns: repeat(2, 1fr); }
    .funnel { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
}
/* Collapse the header links into the menu before they run out of room */
@media (max-width: 1100px) {
    .nav__inner { position: relative; }
    .nav__links {
        position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; gap: 0; padding: 10px 18px 20px;
        background: var(--surface, var(--bg)); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .4);
        pointer-events: auto; transform: translateY(-8px) scale(.98); opacity: 0; visibility: hidden; transition: all .22s;
    }
    .nav.is-open .nav__links { transform: none; opacity: 1; visibility: visible; }
    .nav__links a:not(.btn) { padding: 14px 4px; font-size: 1.05rem; color: var(--text); border-bottom: 1px solid var(--line); border-radius: 0; }
    .nav__links a.is-active { background: none; box-shadow: none; color: var(--accent); }
    .nav__burger { display: inline-grid !important; }
    .nav__mobile-cta { display: inline-flex !important; margin-top: 18px; }
    .nav__cta { display: none; }
}
@media (max-width: 900px) {
    .hero { padding-top: 116px; }
    .hero__grid { grid-template-columns: 1fr; }
    .hero__photo { order: -1; width: 168px; }
    .hero__photo::before { display: none; }
    .split, .contact { grid-template-columns: 1fr; }
    .split__head { position: static; }
    .service-list { grid-template-columns: 1fr; }
    .projects { grid-template-columns: 1fr; gap: 48px; }
    .search-trio { grid-template-columns: 1fr; gap: 0; }
    .search { padding-bottom: 28px; }
    .structure { grid-template-columns: 1fr; }
    .structure > div:nth-child(odd) { border-right: 0; }
    .structure > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
    .case[open] { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
    .case__stage { padding: 36px 56px 40px 32px; }
    .mock { max-width: 560px; }
    .case__info { padding: 28px 28px 28px; }
}
@media (max-width: 640px) {
    .platform { display: block; }
    .funnel { grid-template-columns: 1fr; }
    .skills, .creative-caps, .form__row, .why { grid-template-columns: 1fr; }
    .facts > div { grid-template-columns: 1fr; gap: 2px; }
    .hero__cta .btn { flex: 1 1 auto; }
    .hero__cta .text-link { margin: 6px 0 0; }
    .structure > div { padding: 22px 20px; }
    .case { width: 100vw; height: 100dvh; border-radius: 0; }
    .case__stage { padding: 56px 44px 30px 20px; }
    .mock__phone { width: 27%; min-width: 0; right: -10%; border-radius: 16px; padding: 4px; }
    .mock__phone img, .mock__phone video { inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); border-radius: 12px; }
    .case__info { padding: 24px 20px; }
    .gallery { columns: 2 140px; column-gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Bento cards: tints, icon tiles, logo tiles, chips
   ========================================================================== */
:root {
    --t-peach: #FDEBDF; --t-peach-fg: #C4561D;
    --t-lilac: #EEE9FB; --t-lilac-fg: #6D4FD3;
    --t-mint: #E2F4EA; --t-mint-fg: #17885A;
    --t-sky: #E3EEFB; --t-sky-fg: #2A6FC9;
    --t-butter: #FBF2D5; --t-butter-fg: #A87A06;
    --t-rose: #FBE5EA; --t-rose-fg: #C83E62;
    --card-radius: 24px;
}
:root[data-theme="dark"] {
    --t-peach: #2A1E17; --t-peach-fg: #FF9A66; --t-lilac: #221D33; --t-lilac-fg: #B3A1FF; --t-mint: #16271F; --t-mint-fg: #5FD8A0;
    --t-sky: #17222F; --t-sky-fg: #7DB6FF; --t-butter: #2A2414; --t-butter-fg: #F2C94C; --t-rose: #2B1A20; --t-rose-fg: #FF8FAE;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --t-peach: #2A1E17; --t-peach-fg: #FF9A66; --t-lilac: #221D33; --t-lilac-fg: #B3A1FF; --t-mint: #16271F; --t-mint-fg: #5FD8A0;
        --t-sky: #17222F; --t-sky-fg: #7DB6FF; --t-butter: #2A2414; --t-butter-fg: #F2C94C; --t-rose: #2B1A20; --t-rose-fg: #FF8FAE;
    }
}
.tint-peach { --tint: var(--t-peach); --tint-fg: var(--t-peach-fg); }
.tint-lilac { --tint: var(--t-lilac); --tint-fg: var(--t-lilac-fg); }
.tint-mint { --tint: var(--t-mint); --tint-fg: var(--t-mint-fg); }
.tint-sky { --tint: var(--t-sky); --tint-fg: var(--t-sky-fg); }
.tint-butter { --tint: var(--t-butter); --tint-fg: var(--t-butter-fg); }
.tint-rose { --tint: var(--t-rose); --tint-fg: var(--t-rose-fg); }
/* One colour only (user found the mixed pastel tints too busy): every tint is a plain card with the accent */
.tint-peach, .tint-lilac, .tint-mint, .tint-sky, .tint-butter, .tint-rose { --tint: var(--surface); --tint-fg: var(--accent); }
.icon-tile[class*="tint-"] { --tint: color-mix(in srgb, var(--accent) 12%, var(--surface)); }

.bento { display: grid; gap: 16px; }
.bento--2 { grid-template-columns: repeat(2, 1fr); }
.bento--3 { grid-template-columns: repeat(3, 1fr); }
.card {
    position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0;
    padding: 28px; border-radius: var(--card-radius); background: var(--surface); border: 1px solid var(--line);
    overflow: hidden; isolation: isolate; transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s, border-color .3s;
}
.card[class*="tint-"] { background: var(--tint); border-color: var(--line); }
.card[data-spotlight]::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--tint-fg, var(--accent)) 14%, transparent), transparent 65%);
}
.card[data-spotlight]:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(18, 18, 16, .35); }
.card[data-spotlight]:hover::before { opacity: 1; }
.card h3 { font-size: 1.2rem; letter-spacing: -.02em; }
.card > p { margin: 0; color: var(--text-2); font-size: .95rem; }
.card--full { grid-column: 1 / -1; }
.card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.card__no { font: 500 .78rem var(--font-mono); color: var(--muted); }
.card__group { margin-top: 8px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--text) 8%, transparent); }
.card__group h4 { font: 500 .72rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }

.icon-tile {
    display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 15px;
    background: var(--tint, var(--surface-2)); color: var(--tint-fg, var(--text));
}
.card[class*="tint-"] .icon-tile { background: color-mix(in srgb, var(--surface) 75%, transparent); }
.icon-tile .icon { width: 23px; height: 23px; }
.logo-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.logo-tile {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 13px;
    background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(18, 18, 16, .05);
    transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
.logo-tile:hover { transform: translateY(-3px) rotate(-4deg); }
.logo-tile img { width: 22px; height: 22px; }
.logo-row--sm .logo-tile { width: 30px; height: 30px; border-radius: 9px; }
.logo-row--sm .logo-tile img { width: 15px; height: 15px; }
.logo-tile--lg { width: 60px; height: 60px; border-radius: 18px; }
.logo-tile--lg img { width: 30px; height: 30px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
    display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--line); font-size: .84rem; color: var(--text);
}
.chips li img { width: 15px; height: 15px; }
.chips--light li { background: var(--bg); border-color: var(--line); }
.chips--lg li { padding: 9px 14px; font-size: .92rem; font-weight: 500; background: var(--surface); }
.chips--lg li .icon { width: 15px; height: 15px; color: var(--t-mint-fg); }
.ticks { display: grid; gap: 9px; margin-top: 6px; }
.ticks li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; font-size: .92rem; color: var(--text-2); }
.ticks .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--tint-fg, var(--accent)); }
.pill-date { display: inline-block; padding: 5px 11px; border-radius: 999px; background: var(--ink); color: var(--ink-on); font: 500 .74rem var(--font-mono); white-space: nowrap; }

/* Hero bento */
.hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__bento { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; }
.hb { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-width: 0; margin: 0; padding: 20px; border-radius: var(--card-radius); background: var(--tint, var(--surface)); border: 1px solid transparent; overflow: hidden; }
.hb b { font-size: 1.02rem; letter-spacing: -.015em; }
.hb > span:not(.hb__icon):not(.hero__aura):not(.hb__label) { color: var(--text-2); font-size: .86rem; }
.hb__icon { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: auto; border-radius: 12px; background: color-mix(in srgb, var(--surface) 75%, transparent); color: var(--tint-fg); }
.hb__icon .status-dot { margin: 0; }
.hb--photo { grid-row: span 2; padding: 18px; align-items: center; justify-content: center; aspect-ratio: 1 / 1.08; }
.hb--photo img { position: relative; width: 92%; height: auto; border-radius: 50%; }
.hb--photo .hero__aura { inset: -10%; }
.hb--status, .hb--place { min-height: 150px; }
.hb--tools { grid-column: 1 / -1; background: var(--surface); border-color: var(--line); gap: 12px; }
.hb__label { font: 500 .72rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.hb--tools .logo-row { margin: 0; padding: 0; }

/* Open to work */
.bento--hire { grid-template-columns: repeat(4, 1fr); }
.card--roles { grid-column: span 2; grid-row: span 2; }
.card--roles h3 { font-size: 1.45rem; margin-top: 6px; }
.card--roles .chips { margin: 8px 0 auto; }
.mini-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 0; }
.mini-facts div { padding: 14px 16px; border-radius: 16px; background: var(--surface-2); }
.mini-facts dt { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); margin-bottom: 2px; }
.mini-facts dt .icon { width: 14px; height: 14px; }
.mini-facts dd { margin: 0; font-weight: 600; font-size: .95rem; }

/* What I bring */
.bento--services { grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; }
.card--wide { grid-column: span 2; }

/* Service cards: a small live animation per service (partials/svc-viz). Paused until on screen. */
.viz { --vz: color-mix(in srgb, var(--text) 10%, transparent); position: relative; height: 96px; margin: 2px 0 6px; padding: 12px 14px; border-radius: 14px; overflow: hidden;
    background: color-mix(in srgb, var(--bg) 60%, transparent); border: 1px solid var(--line); font-size: .7rem; color: var(--text-2); }
.viz i, .viz b, .viz em { font-style: normal; }
.viz, .viz * { animation-play-state: paused !important; }
.viz.is-live, .viz.is-live * { animation-play-state: running !important; }

/* Strategy: a funnel that fills stage by stage with a lead dropping through */
.viz--funnel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.viz--funnel span { position: relative; height: 15px; width: calc(100% - var(--k) * 18%); border-radius: 6px; background: var(--vz); overflow: hidden; }
.viz--funnel span::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #FFB37A));
    transform-origin: left; animation: vzFill 4s calc(var(--k) * .35s) ease-in-out infinite; }
.viz--funnel b { position: relative; z-index: 1; display: block; font-size: .62rem; line-height: 15px; text-align: center; color: #fff; font-weight: 600; letter-spacing: .02em; }
.viz__drop { position: absolute; left: 50%; top: 8px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px var(--accent); animation: vzDrop 4s ease-in infinite; }
@keyframes vzFill { 0% { transform: scaleX(0); } 35%, 80% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes vzDrop { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 70% { transform: translateY(72px); opacity: 1; } 100% { transform: translateY(72px); opacity: 0; } }

/* Paid media: an ad gets clicked, the meters climb, a sale pops */
.viz--ad { display: flex; gap: 12px; align-items: center; }
.viz__adcard { display: flex; flex-direction: column; gap: 4px; width: 92px; padding: 6px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.viz__adhead { display: flex; align-items: center; gap: 4px; font-size: .56rem; color: var(--muted); }
.viz__adhead i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.viz__adimg { height: 26px; border-radius: 6px; background: linear-gradient(135deg, #FFB37A, var(--accent) 55%, #7B5CFF); }
.viz__adcta { align-self: stretch; text-align: center; padding: 2px 0; border-radius: 6px; font-size: .58rem; font-weight: 700; color: #fff; background: var(--accent); animation: vzClick 3.6s ease-in-out infinite; }
.viz__adstats { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.viz__adstats span { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 6px; font-size: .62rem; }
.viz__meter { height: 6px; border-radius: 9px; background: var(--vz); position: relative; overflow: hidden; }
.viz__meter::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #2BD4A4; transform-origin: left; animation: vzMeter 3.6s ease-out infinite; }
.viz__meter--2::before { background: var(--accent); animation-delay: .25s; }
.viz__plus { position: absolute; right: 14px; top: 10px; padding: 2px 8px; border-radius: 99px; font-size: .6rem; font-weight: 700; color: #2BD4A4; background: color-mix(in srgb, #2BD4A4 14%, transparent); animation: vzPop 3.6s ease-out infinite; }
@keyframes vzClick { 0%, 22%, 34%, 100% { transform: scale(1); } 28% { transform: scale(.88); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 25%, transparent); } }
@keyframes vzMeter { 0%, 28% { transform: scaleX(.25); } 60%, 100% { transform: scaleX(.92); } }
@keyframes vzPop { 0%, 50% { opacity: 0; transform: translateY(8px); } 62%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }

/* SEO: your page climbs the results */
.viz--serp { display: flex; flex-direction: column; gap: 6px; }
.viz__q { display: flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: .62rem; color: var(--muted); white-space: nowrap; overflow: hidden; }
.viz__q .icon { width: 11px; height: 11px; flex: none; }
.viz__results { position: relative; flex: 1; }
.viz__results span { position: absolute; left: 0; right: 0; height: 12px; border-radius: 4px; background: var(--vz); }
.viz__results span:nth-child(1) { top: 0; width: 82%; } .viz__results span:nth-child(2) { top: 17px; width: 70%; } .viz__results span:nth-child(3) { top: 34px; width: 76%; }
.viz__results .viz__mine { top: 34px; width: auto; right: 20%; height: 13px; padding-left: 8px; font-size: .58rem; font-weight: 700; line-height: 13px; color: #fff; background: var(--accent);
    box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 55%, transparent); animation: vzClimb 4.5s cubic-bezier(.6, 0, .2, 1) infinite; z-index: 1; }
@keyframes vzClimb { 0%, 15% { transform: translateY(17px); } 40%, 50% { transform: translateY(0); } 75%, 100% { transform: translateY(-34px); } }

/* Image editing: before/after sweep over a retouched photo */
.viz--edit { padding: 0; }
.viz__photo { position: absolute; inset: 0; background: radial-gradient(40% 55% at 30% 70%, #FFD2A6, transparent 70%), radial-gradient(35% 45% at 75% 35%, #8C7BFF, transparent 70%), linear-gradient(135deg, #3A2A26, #6E4636); }
.viz__photo--raw { filter: grayscale(1) brightness(.7) contrast(.8); }
.viz__photo--done { filter: saturate(1.3); clip-path: inset(0 0 0 50%); animation: vzWipe 4s ease-in-out infinite alternate; }
.viz__split { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; box-shadow: 0 0 8px rgba(255,255,255,.8); animation: vzSplit 4s ease-in-out infinite alternate; }
.viz__crop { position: absolute; inset: 12px 18%; border: 1px dashed rgba(255,255,255,.7); border-radius: 6px; }
@keyframes vzWipe { from { clip-path: inset(0 0 0 85%); } to { clip-path: inset(0 0 0 15%); } }
@keyframes vzSplit { from { left: 85%; } to { left: 15%; } }

/* Video editing: a playhead sweeps the edit timeline */
.viz--video { display: grid; grid-template-columns: 74px 1fr; gap: 10px; align-items: center; }
.viz__screen { display: grid; place-items: center; height: 70px; border-radius: 10px; background: linear-gradient(160deg, #241B3D, #3B1F1A); color: #fff; position: relative; }
.viz__screen .icon { width: 18px; height: 18px; }
.viz__screen b { position: absolute; left: 5px; bottom: 4px; font-size: .5rem; padding: 1px 4px; border-radius: 4px; background: rgba(0,0,0,.5); }
.viz__tracks { position: relative; display: flex; gap: 3px; height: 40px; padding: 4px 0; }
.viz__tracks span { width: var(--w); border-radius: 5px; background: color-mix(in srgb, #7B5CFF 55%, var(--vz)); }
.viz__tracks span:nth-child(2) { background: color-mix(in srgb, var(--accent) 60%, var(--vz)); }
.viz__tracks span:nth-child(3) { background: color-mix(in srgb, #2BD4A4 50%, var(--vz)); }
.viz__head { position: absolute; top: -4px; bottom: -4px; left: 0; width: 2px; background: #fff; box-shadow: 0 0 6px #fff; animation: vzHead 3.5s linear infinite; }
@keyframes vzHead { from { left: 0; } to { left: 88%; } }

/* Tracking: conversion events fire one after another */
.viz--events { display: flex; flex-direction: column; justify-content: center; gap: 1px; font-family: var(--font-mono); }
.viz--events span { display: flex; align-items: center; gap: 6px; font-size: .62rem; line-height: 1.55; opacity: 0; animation: vzEvent 4.8s calc(var(--k) * .6s) infinite; }
.viz--events i { width: 6px; height: 6px; border-radius: 50%; background: #2BD4A4; box-shadow: 0 0 6px #2BD4A4; }
.viz--events b { margin-left: auto; color: #2BD4A4; }
.viz--events span:last-child { color: var(--text); font-weight: 700; }
.viz--events span:last-child i { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
@keyframes vzEvent { 0% { opacity: 0; transform: translateX(-8px); } 8%, 80% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }

/* Email: a customer travels through the automation */
.viz--flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-items: center; }
.viz--flow::before { content: ""; position: absolute; left: 14%; right: 14%; top: 50%; height: 2px; background: var(--vz); }
.viz--flow span { position: relative; display: grid; place-items: center; min-height: 40px; padding: 4px; border-radius: 9px; text-align: center; font-size: .58rem; line-height: 1.2;
    background: var(--surface); border: 1px solid var(--line); }
.viz--flow span:last-of-type { color: #fff; font-weight: 700; background: var(--accent); border-color: transparent; }
.viz__pulse { position: absolute; top: 50%; left: 14%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px var(--accent), 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent);
    animation: vzTravel 4s ease-in-out infinite; z-index: 1; }
@keyframes vzTravel { 0% { left: 14%; opacity: 0; } 8% { opacity: 1; } 90% { left: 86%; opacity: 1; } 100% { left: 86%; opacity: 0; } }

/* Web: code typing in */
.viz--code { display: flex; flex-direction: column; justify-content: center; gap: 8px; background: #0B0E14; border-color: #222838; }
.viz--code span { height: 7px; width: var(--w); margin-left: calc(var(--x, 0) * 16px); border-radius: 9px; transform-origin: left;
    background: linear-gradient(90deg, #FF8A5C 0 22%, #7FB6FF 22% 55%, #8BE38F 55%); animation: vzType 4s calc(var(--k) * .45s) steps(8) infinite; }
.viz--code span:nth-child(2) { background: linear-gradient(90deg, #F5C26B 0 30%, #C9D1E0 30%); }
.viz--code span:nth-child(4) { background: linear-gradient(90deg, #FF8A5C 0 40%, #C9D1E0 40%); }
@keyframes vzType { 0% { transform: scaleX(0); } 30%, 85% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .viz * { animation: none !important; opacity: 1 !important; } }

/* Experience */
.bento--jobs { grid-template-columns: repeat(3, 1fr); }
.card--current { grid-column: 1 / -1; background: var(--ink); color: var(--ink-on); border-color: transparent; }
.card--current h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.card--job.card--current .job__company, .card--current .ticks li { color: color-mix(in srgb, var(--ink-on) 78%, transparent); }
.card--current .ticks { grid-template-columns: 1fr 1fr; column-gap: 32px; }
.card--current .ticks .icon { color: #FF8A5C; }
.card--current .pill-date { background: var(--accent); color: #fff; }
.card--current .muted { color: color-mix(in srgb, var(--ink-on) 60%, transparent); }
.card--current .icon-tile { background: color-mix(in srgb, var(--ink-on) 12%, transparent); color: var(--ink-on); }
.card--job .job__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: .82rem; text-align: right; }
.card--job .job__company { margin: -4px 0 4px; font-weight: 500; color: var(--text-2); }

/* Platforms */
.card--platform > p { margin-bottom: 4px; }

/* Approach */
.funnel { gap: 16px; margin-bottom: 24px; }
.funnel > li.card { padding: 26px; border-top: 0; }
.funnel > li.card + li.card { padding-left: 26px; }
.funnel > li.card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--tint-fg); transform-origin: left; transform: scaleX(clamp(0, calc(var(--fill, 1) * 4 - var(--i, 0)), 1)); }
.funnel > li.card::before { display: none; }
.funnel__num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--surface) 75%, transparent); color: var(--tint-fg); font-weight: 700; margin-bottom: 6px; }
.funnel > li.card h3 { margin: 0; }
.funnel > li.card p { margin: 0 0 6px; color: var(--text-2); }
.channels.card { padding: 0; gap: 0; margin-bottom: 24px; }
.tab { gap: 8px; }
.tab img { width: 16px; height: 16px; }
.structure { gap: 12px; padding: 20px; }
.structure > div, .structure > div:nth-child(odd), .structure > div:nth-last-child(-n+2) { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); }
.structure dt { display: flex; align-items: center; gap: 10px; }
.structure__no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: var(--ink-on); font: 600 .75rem var(--font-mono); }
.search-trio .card { padding-top: 28px; border-top: 0; }
.search-trio .search__key { color: var(--tint-fg); margin-bottom: 6px; }

/* About */
.bento--about { grid-template-columns: repeat(4, 1fr); }
.card--about { grid-column: span 2; grid-row: span 3; justify-content: center; }
.card--about p { margin: 0; color: var(--text-2); }
.card--about p:first-child { font-size: 1.2rem; line-height: 1.5; color: var(--text); font-weight: 500; letter-spacing: -.01em; }
.card--fact { gap: 4px; padding: 22px; }
.card--fact .icon-tile { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 8px; }
.card--fact .icon-tile .icon { width: 19px; height: 19px; }
.fact__label { font-size: .8rem; color: var(--muted); }
.card--fact b { font-size: 1rem; letter-spacing: -.01em; line-height: 1.35; }
.card--fact small { color: var(--text-2); font-size: .82rem; }

/* Skills */
.card--skills h3 { font-size: 1.05rem; margin-bottom: 4px; }

/* FAQ */
.faq { display: grid; gap: 10px; border-top: 0; }
.faq__item.card { padding: 4px 24px; gap: 0; border-bottom: 1px solid var(--line); }
.faq__item[open] { background: var(--surface); box-shadow: 0 18px 40px -30px rgba(18, 18, 16, .35); }

/* Contact as a big rounded card */
.section--contact { padding-top: 0; }
/* Growth line before Contact: milestones on a climbing line (drawn on scroll in site.js) */
.journey { padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px); }
.journey__track { position: relative; height: clamp(300px, 34vw, 400px); margin-top: 18px; }
.journey__line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.journey__path { fill: none; stroke: var(--accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round;
    filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 70%, transparent)); }
.journey__line { color: var(--accent); }
.journey__steps { list-style: none; margin: 0; padding: 0; }
.journey__step { position: absolute; left: var(--x); bottom: var(--y); width: min(24%, 240px); translate: -50% 0; padding-bottom: 38px; text-align: center; }
.journey__dot { position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 16%, transparent); }
.journey__step b { display: block; font: 600 .78rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.journey__step > span:last-child { display: block; font-size: .95rem; line-height: 1.4; color: var(--text-2); }
.journey__step.is-next > span:last-child { color: var(--text); font-weight: 600; }
.journey__step.is-next .journey__dot { width: 20px; height: 20px; margin-left: -10px; bottom: -10px; background: var(--accent); border-color: var(--bg);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 25%, transparent), 0 0 30px var(--accent); animation: nextPulse 2s ease-in-out infinite; }
@keyframes nextPulse { 50% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--accent) 8%, transparent), 0 0 40px var(--accent); } }
.has-gsap .journey__path { stroke-dasharray: 1 2; stroke-dashoffset: 1.01; }
.has-gsap .journey__area { opacity: 0; }
.has-gsap .journey__step { opacity: 0; }
@media (max-width: 760px) {
    .journey__track { height: auto; padding-left: 26px; border-left: 2px solid var(--accent); margin-left: 8px; }
    .journey__line { display: none; }
    .journey__steps { display: grid; gap: 26px; }
    .journey__step { position: relative; left: auto; bottom: auto; width: auto; translate: none; padding: 0; text-align: left; }
    .journey__dot, .journey__step.is-next .journey__dot { left: -34px; top: 2px; bottom: auto; margin: 0; }
}

.contact-card { padding: clamp(20px, 5vw, 64px); border-radius: 32px; background: var(--ink); color: var(--ink-on); position: relative; overflow: hidden; }
.contact-card::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(217, 72, 28, .45), transparent 65%); filter: blur(10px); pointer-events: none; }
.contact-card > * { position: relative; }
.contact-card .label, .contact-card .lead { color: color-mix(in srgb, var(--ink-on) 62%, transparent); }

@media (max-width: 1100px) {
    .bento--services, .bento--hire, .bento--about { grid-template-columns: repeat(2, 1fr); }
    .card--about { grid-row: auto; }
    .bento--jobs, .bento--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__bento { order: -1; max-width: 560px; }
    .card--current .ticks { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .bento--services, .bento--hire, .bento--about, .bento--jobs, .bento--3, .bento--2 { grid-template-columns: 1fr; }
    .card--wide, .card--roles, .card--about { grid-column: auto; grid-row: auto; }
    .hero__bento { grid-template-columns: 1fr 1fr; }
    .hb--photo { grid-row: span 1; grid-column: 1 / -1; aspect-ratio: auto; padding: 22px; }
    .hb--photo img { width: 160px; }
    .hb--status, .hb--place { min-height: 120px; padding: 16px; }
    .mini-facts { grid-template-columns: 1fr; }
    .card { padding: 22px; }
}

/* ==========================================================================
   Hero profile card: one polished "digital business card"
   ========================================================================== */
.hero__bento { position: relative; display: flex; justify-content: flex-end; align-items: center; padding: 28px 28px 28px 0; }
.hero__bento .hero__aura { inset: 0 -6% 0 -6%; z-index: 0; opacity: .55; }
.profile-card {
    position: relative; z-index: 1; width: 100%; padding: 26px;
    border-radius: 28px; color: #F3F1EC;
    background: radial-gradient(120% 90% at 100% 0%, #2B2925 0%, #161614 55%, #121210 100%);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 40px 80px -32px rgba(18, 18, 16, .55), 0 12px 24px -12px rgba(18, 18, 16, .3);
}
/* A second card peeking out behind, for depth (on the wrapper so it sits under the card) */
.profile-stack { position: relative; z-index: 1; width: 100%; max-width: 440px; transform-style: preserve-3d; will-change: transform; }
.profile-stack::before {
    content: ""; position: absolute; inset: 16px -16px -16px 16px; z-index: 0; border-radius: 28px;
    background: linear-gradient(135deg, #F6B48F, #F3D3A6); transform: rotate(4deg); opacity: .9;
}
.profile-card::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(60% 50% at 85% 0%, rgba(217, 72, 28, .22), transparent 70%);
}
.profile-card > * { position: relative; z-index: 1; }

.profile-card__head { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.profile-card__photo {
    width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: #E9E6DF;
    box-shadow: 0 0 0 3px #121210, 0 0 0 5px rgba(255, 138, 92, .9);
}
.profile-card__name { margin: 0; font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; }
.profile-card__role { margin: 2px 0 0; color: rgba(243, 241, 236, .65); font-size: .92rem; }
.profile-card__badge {
    position: static; grid-column: 1 / -1; justify-self: start; order: -1; margin-bottom: 2px; display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 12px; border-radius: 999px; background: rgba(34, 197, 94, .14); color: #6EE7A0;
    border: 1px solid rgba(34, 197, 94, .3); font-size: .78rem; font-weight: 500;
}
.profile-card__badge .status-dot { margin: 0; width: 7px; height: 7px; background: #22C55E; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); } }

.profile-card__facts { display: grid; gap: 12px; padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.profile-card__facts li { display: flex; align-items: center; gap: 12px; font-size: .95rem; color: rgba(243, 241, 236, .9); }
.profile-card__facts .icon {
    width: 30px; height: 30px; padding: 7px; flex: none; border-radius: 9px;
    background: rgba(255, 255, 255, .07); color: #FF8A5C;
}

.profile-card__tools { padding-top: 18px; }
.profile-card__tools > span { display: block; margin-bottom: 12px; font: 500 .7rem var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: rgba(243, 241, 236, .5); }
.profile-card__logos { display: flex; flex-wrap: wrap; gap: 5px; }
.profile-card__logos .logo-tile { width: 28px; height: 28px; border-radius: 8px; border-color: transparent; box-shadow: none; }
.profile-card__logos .logo-tile img { width: 15px; height: 15px; }

:root[data-theme="dark"] .profile-card { background: radial-gradient(120% 90% at 100% 0%, #2F2D29 0%, #1C1C1A 60%); border-color: rgba(255, 255, 255, .12); }
:root[data-theme="dark"] .profile-stack::before { opacity: .35; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .profile-card { background: radial-gradient(120% 90% at 100% 0%, #2F2D29 0%, #1C1C1A 60%); border-color: rgba(255, 255, 255, .12); }
    :root:not([data-theme="light"]) .profile-stack::before { opacity: .35; }
}

@media (max-width: 900px) {
    .hero__bento { order: -1; justify-content: flex-start; max-width: none; padding: 8px 14px 24px 0; }
}
@media (max-width: 640px) {
    .profile-card { padding: 22px; }
    .profile-card__photo { width: 68px; height: 68px; }
    .profile-card__head { padding-right: 0; }
}

/* Three "why" cards: the last one fills the row. Tools without a logo show their name. */
@media (min-width: 641px) { .bento--hire .card:nth-child(4):last-child { grid-column: span 2; } }
.profile-card__logos .logo-tile--text { width: auto; padding: 0 8px; color: #121210; font-size: .68rem; font-weight: 600; }

/* Never let anything widen the page sideways (iOS Safari ignores overflow-x: hidden on body in some cases) */
html, body { overflow-x: clip; }

/* ==========================================================================
   CV download form (popup + /download-cv page) and floating WhatsApp button
   ========================================================================== */
.cv-dialog {
    width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 28px; border: 0; border-radius: 24px;
    background: var(--surface); box-shadow: var(--shadow-lg); overflow-y: auto;
}
.cv-dialog[open] { animation: rise .3s cubic-bezier(.2, .7, .2, 1); }
.cv-dialog__close { position: absolute; top: 16px; right: 16px; }
.cv-dialog__head { display: flex; gap: 14px; align-items: center; margin: 0 40px 22px 0; }
.cv-dialog__head img { width: 56px; height: 56px; border-radius: 50%; background: var(--bg-2); flex: none; }
.cv-dialog__head h3 { font-size: 1.25rem; margin-bottom: 2px; }
.cv-dialog__head p { margin: 0; font-size: .88rem; }
.cv-form { gap: 14px; }
.cv-form__note { margin: 0; font-size: .78rem; color: var(--muted); text-align: center; }
.cv-form button[disabled] { opacity: .6; cursor: progress; }

.cv-page { min-height: 100dvh; display: grid; place-items: center; padding: 40px 0; }
.cv-page .container { display: grid; justify-items: center; gap: 28px; }
.cv-page__card { width: min(460px, 100%); align-items: stretch; text-align: left; }
.cv-page__card h1 { font-size: 1.6rem; letter-spacing: -.03em; }
.cv-page__card .text-link { align-self: center; margin-top: 6px; }
.cv-page__photo { width: 72px; height: 72px; border-radius: 50%; background: var(--bg-2); }

.wa-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 60; display: grid; place-items: center;
    width: 52px; height: 52px; border-radius: 50%; background: #25D366; color: #fff;
    box-shadow: 0 10px 30px -8px rgba(37, 211, 102, .6), 0 4px 12px rgba(0, 0, 0, .12);
    transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s;
}
.wa-float:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 36px -8px rgba(37, 211, 102, .7), 0 4px 12px rgba(0, 0, 0, .14); }
.wa-float__icon { width: 26px; height: 26px; background: #fff; -webkit-mask: var(--wa) center / contain no-repeat; mask: var(--wa) center / contain no-repeat; }
.wa-float::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #25D366;
    animation: wa-ring 2.6s ease-out infinite; pointer-events: none;
}
@keyframes wa-ring { 0% { opacity: .7; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.35); } }
body:has(dialog[open]) .wa-float { display: none; }
@media (max-width: 900px) { .wa-float { width: 48px; height: 48px; right: 16px; bottom: 16px; } .wa-float__icon { width: 24px; height: 24px; } }
@media (prefers-reduced-motion: reduce) { .wa-float::after { display: none; } }

/* Elements marked hidden stay hidden even when a component sets display */
[hidden] { display: none !important; }

/* ==========================================================================
   Dark "lines of light" theme (the default): near-black canvas, glass cards with
   gradient hairline borders, soft accent glows. Light theme stays as it was.
   ========================================================================== */
:root[data-theme="dark"] {
    --bg: #07080A; --bg-2: #0A0C0F; --surface: #0E1115; --surface-2: #141820;
    --line: #1C2028; --line-strong: #2A303A; --text: #F2F4F7; --text-2: #C2C7D0; --muted: #8B929D;
    --accent: #FF6B3D; --accent-ink: #120A06; --accent-soft: rgba(255, 107, 61, .1);
    --ink: #F2F4F7; --ink-on: #07080A;
    --glow: 0 0 0 1px rgba(255, 107, 61, .25), 0 10px 40px -10px rgba(255, 107, 61, .55);
    --edge: linear-gradient(140deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04) 38%, rgba(255, 255, 255, .02) 62%, rgba(255, 107, 61, .35));
}

/* Ambient light behind the whole page: two soft glows and a faint dot grid that fades out */
:root[data-theme="dark"] body::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(900px 600px at 12% -10%, rgba(255, 107, 61, .13), transparent 60%),
        radial-gradient(800px 600px at 100% 110%, rgba(120, 110, 255, .09), transparent 60%),
        radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.4px) 0 0 / 26px 26px;
    -webkit-mask: linear-gradient(#000, rgba(0, 0, 0, .35)); mask: linear-gradient(#000, rgba(0, 0, 0, .35));
}
:root[data-theme="dark"] body { background: var(--bg); }
:root[data-theme="dark"] .section--tint { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .015) 20%, rgba(255, 255, 255, .015) 80%, transparent); }

/* Glass cards: translucent fill, gradient hairline border, tint shows as a corner glow */
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .card[class*="tint-"] {
    border: 1px solid transparent;
    background:
        radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--tint-fg, var(--accent)) 11%, transparent), transparent 55%) padding-box,
        linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012)) padding-box,
        linear-gradient(var(--bg), var(--bg)) padding-box,
        var(--edge) border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
:root[data-theme="dark"] .card[data-spotlight]:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 60px -30px color-mix(in srgb, var(--tint-fg, var(--accent)) 45%, transparent); }
:root[data-theme="dark"] .icon-tile,
:root[data-theme="dark"] .card[class*="tint-"] .icon-tile,
:root[data-theme="dark"] .hb__icon {
    background: color-mix(in srgb, var(--tint-fg, var(--accent)) 14%, transparent); color: var(--tint-fg, var(--accent));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tint-fg, var(--accent)) 30%, transparent), 0 0 24px -6px color-mix(in srgb, var(--tint-fg, var(--accent)) 60%, transparent);
}
:root[data-theme="dark"] .chips li { background: rgba(255, 255, 255, .03); border-color: var(--line); }
:root[data-theme="dark"] .chips--lg li { background: rgba(255, 255, 255, .04); }

/* Feature blocks that used the inverted "ink" colour become lit glass instead of white slabs */
:root[data-theme="dark"] .card--current,
:root[data-theme="dark"] .contact-card {
    color: var(--text);
    background:
        radial-gradient(70% 120% at 100% 0%, rgba(255, 107, 61, .2), transparent 60%) padding-box,
        linear-gradient(180deg, #11141A, #0B0D11) padding-box,
        linear-gradient(140deg, rgba(255, 107, 61, .6), rgba(255, 255, 255, .06) 40%, rgba(255, 107, 61, .25)) border-box;
    border: 1px solid transparent;
}
/* These blocks were built on the inverted ink colours; flip them back locally so every mixed text colour reads light */
:root[data-theme="dark"] .card--current,
:root[data-theme="dark"] .contact-card,
:root[data-theme="dark"] .contact-section,
:root[data-theme="dark"] .footer { --ink-on: var(--text); --ink: var(--bg); }
:root[data-theme="dark"] .card--job.card--current .job__company,
:root[data-theme="dark"] .card--current .ticks li { color: var(--text-2); }
:root[data-theme="dark"] .contact-section { background: transparent; color: var(--text); }
:root[data-theme="dark"] .footer { background: #050608; color: var(--text); border-top: 1px solid var(--line); }
:root[data-theme="dark"] .footer .muted { color: var(--muted); }
:root[data-theme="dark"] .footer__links a { color: var(--text-2); }
:root[data-theme="dark"] .footer__links a:hover { color: var(--accent); }
:root[data-theme="dark"] .footer__inner { border-top-color: var(--line); }

/* Buttons and small marks glow in the accent */
:root[data-theme="dark"] .btn--primary { background: linear-gradient(135deg, #FF8A4C, #FF4F2B); color: #fff; box-shadow: var(--glow); }
:root[data-theme="dark"] .btn--primary:hover { background: linear-gradient(135deg, #FF9B63, #FF5F3A); box-shadow: 0 0 0 1px rgba(255, 107, 61, .4), 0 14px 50px -10px rgba(255, 107, 61, .75); }
:root[data-theme="dark"] .btn--ghost { border-color: var(--line-strong); background: rgba(255, 255, 255, .03); }
:root[data-theme="dark"] .btn--ghost:hover { border-color: rgba(255, 107, 61, .6); box-shadow: 0 0 24px -8px rgba(255, 107, 61, .6); }
:root[data-theme="dark"] .brand__mark,
:root[data-theme="dark"] .structure__no,
:root[data-theme="dark"] .pill-date { background: linear-gradient(135deg, #FF8A4C, #FF4F2B); color: #fff; }
:root[data-theme="dark"] .card--current .pill-date { background: rgba(255, 255, 255, .1); }
:root[data-theme="dark"] .filter.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
:root[data-theme="dark"] .nav__links a.is-active { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }

/* Auto-scroll toggle, bottom left; the ring fills with page progress */
.autoplay { position: fixed; left: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 6px;
    border-radius: 999px; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--surface) 80%, transparent); color: var(--text);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font: 500 .8rem var(--font-body); cursor: pointer; transition: border-color .2s, box-shadow .2s, opacity .3s; }
.autoplay[hidden] { display: none !important; }
.autoplay:hover { border-color: var(--accent); box-shadow: 0 0 24px -8px var(--accent); }
.autoplay__ring { position: relative; display: grid; place-items: center; width: 32px; height: 32px; }
.autoplay__track { position: absolute; inset: 0; transform: rotate(-90deg); fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); }
.autoplay__ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--line-strong); }
.autoplay .icon { position: relative; width: 13px; height: 13px; }
.autoplay__play { fill: currentColor; margin-left: 2px; }
.autoplay .autoplay__pause, .autoplay[aria-pressed="true"] .autoplay__play { display: none; }
.autoplay[aria-pressed="true"] .autoplay__pause { display: block; }
body:has(dialog[open]) .autoplay { display: none; }
@media (max-width: 900px) { .autoplay { left: 16px; bottom: 16px; padding-right: 6px; } .autoplay__label { display: none; } }

/* Project results: big figures ("3.4×" over "ROAS") on case pages, cards and the preview */
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 190px)); gap: 10px; margin: 18px 0 24px; }
.results > div { padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.results dt { font-size: clamp(1.35rem, 2.4vw, 1.8rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; color: var(--accent); }
.results dd { margin: 4px 0 0; font-size: .82rem; line-height: 1.35; color: var(--text-2); }
.results--sm { margin-top: 12px; }
.results--sm > div { padding: 10px 12px; border-radius: 12px; }
.results--sm dt { font-size: 1.2rem; }
.results--sm dd { font-size: .76rem; }

/* Recommendations */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.quote { margin: 0; gap: 18px; }
.quote__mark { font-size: 4rem; line-height: .6; height: 28px; font-weight: 700; color: var(--accent); }
.quote blockquote { margin: 0; font-size: 1.05rem; line-height: 1.6; color: var(--text); }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.quote__avatar { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; font-weight: 700; font-size: .85rem; color: #fff;
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000)); }
.quote figcaption b { display: block; font-size: .95rem; }
.quote figcaption a:hover b { color: var(--accent); }
.quote figcaption small { display: block; font-size: .82rem; color: var(--muted); }

/* Certifications */
.certs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.cert { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.cert__text { flex: 1; min-width: 0; }
.cert__text b { display: block; font-size: .98rem; line-height: 1.35; }
.cert__text small { display: block; margin-top: 2px; font-size: .82rem; color: var(--muted); }
.cert__verify { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: .82rem; font-weight: 600; color: var(--accent); }
.cert__verify .icon { width: 14px; height: 14px; }
