/* =========================================================
   Dev Team Agency — main stylesheet (no framework)
   ========================================================= */
:root {
    --bg: #05070f;
    --bg-2: #080c1a;
    --bg-3: #0c1226;
    --panel: rgba(255, 255, 255, .035);
    --panel-2: rgba(255, 255, 255, .06);
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .14);
    --text: #eef1fa;
    --muted: #8e97b3;
    --dim: #5d6584;
    --blue: #4d7cff;
    --blue-2: #7aa0ff;
    --violet: #8b5cf6;
    --orange: #ff8a3d;
    --yellow: #ffd166;
    --grad: linear-gradient(120deg, var(--blue) 0%, var(--violet) 100%);
    --font-display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
    --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;
    --radius: 22px;
    --radius-sm: 14px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --container: 1280px;
    --gutter: clamp(16px, 4vw, 40px);
    --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
code { font-family: var(--font-mono); font-size: .85em; background: var(--panel-2); padding: .1em .4em; border-radius: 6px; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
::selection { background: var(--violet); color: #fff; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--blue); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 820px; }
.ic { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Type ---------- */
.h1, .h2, .display { font-family: var(--font-display); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.h1 { font-size: clamp(2.5rem, 5.6vw, 4.9rem); }
.h2 { font-size: clamp(2.1rem, 4.6vw, 4rem); }
.display { font-size: clamp(2.6rem, 7.5vw, 6.8rem); }
.h1 em, .h2 em, .display em {
    font-style: normal;
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
    font-family: var(--font-mono); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--blue-2); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; }
.lead { color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.18rem); max-width: 56ch; margin-top: 18px; }
.muted { color: var(--muted); }

.section { position: relative; padding: clamp(84px, 11vw, 150px) 0; }
.sec-head { margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head.center { text-align: center; }
.sec-head.center .lead { margin-inline: auto; }
.sec-head.center .eyebrow::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; }

/* ---------- Buttons ---------- */
.btn {
    --bh: 48px;
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: var(--bh); padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: .95rem;
    transition: transform .4s var(--ease), background .3s, box-shadow .3s, color .3s, border-color .3s;
    white-space: nowrap; will-change: transform;
}
.btn span, .btn .btn-ic { position: relative; z-index: 1; pointer-events: none; }
.btn-lg { --bh: 56px; padding: 0 28px; font-size: 1rem; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 30px -10px rgba(77, 124, 255, .7), inset 0 1px 0 rgba(255,255,255,.25); overflow: hidden; }
.btn-primary::before { content: ""; position: absolute; inset: 0; background: var(--grad); opacity: 0; transition: opacity .4s; }
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { box-shadow: 0 16px 44px -12px rgba(139, 92, 246, .8), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-ghost { border: 1px solid var(--line-2); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.06); }
.btn-light { background: #fff; color: #0a0f1f; --bh: 44px; }
.btn .btn-ic { transition: transform .4s var(--ease); }
.btn:hover .btn-ic { transform: translateX(4px); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--blue-2); margin-top: 18px; }
.link-arrow .ic { transition: transform .3s var(--ease); }
.link-arrow:hover .ic { transform: translateX(4px); }
.round-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .3s, border-color .3s; }
.round-btn:hover { background: var(--panel-2); border-color: rgba(255,255,255,.3); }
.pill { font-size: .72rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.1); backdrop-filter: blur(8px); letter-spacing: .02em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-family: var(--font-mono); font-size: .72rem; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); }
.badge-sample {
    display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase;
    color: #1b1300; background: var(--yellow); padding: 4px 9px; border-radius: 6px; font-weight: 500; width: max-content; max-width: 100%; white-space: normal; line-height: 1.4;
}
.sample-note { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); margin: -30px 0 28px; }
.sample-note .ic { color: var(--yellow); }
.empty-state { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 48px; text-align: center; color: var(--muted); display: grid; justify-items: center; gap: 12px; }
.empty-state .ic { width: 32px; height: 32px; color: var(--blue-2); }

/* ---------- Chrome: progress, cursor glow, curtain ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 200; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--violet), var(--orange)); transform-origin: 0 50%; transform: scaleX(0); }
.cursor-glow {
    position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%;
    background: radial-gradient(circle, rgba(77, 124, 255, .13), rgba(139, 92, 246, .05) 40%, transparent 70%);
    pointer-events: none; z-index: 1; opacity: 0; transition: opacity .6s; will-change: transform;
}
body.has-pointer .cursor-glow { opacity: 1; }
.page-curtain { position: fixed; inset: 0; background: var(--bg); z-index: 300; pointer-events: none; animation: curtain 1s var(--ease) .1s forwards; }
.page-curtain.out { animation: curtainIn .45s var(--ease) forwards; }
@keyframes curtain { to { opacity: 0; visibility: hidden; } }
@keyframes curtainIn { from { opacity: 0; visibility: visible; } to { opacity: 1; visibility: visible; } }

/* ---------- Navbar ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .4s, border-color .4s, backdrop-filter .4s, transform .5s var(--ease); border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(5, 7, 15, .62); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-color: var(--line); }
.nav.hide { transform: translateY(-100%); }
.nav-inner { height: var(--nav-h); max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.logo-mark { position: relative; width: 34px; height: 34px; display: inline-block; }
.logo-mark i { position: absolute; border-radius: 8px; }
.logo-mark i:first-child { left: 0; top: 0; width: 22px; height: 22px; background: var(--grad); }
.logo-mark i:last-child { right: 0; bottom: 0; width: 20px; height: 20px; border: 2.5px solid var(--orange); }
.logo-mark.big { width: 64px; height: 64px; }
.logo-mark.big i:first-child { width: 42px; height: 42px; border-radius: 14px; }
.logo-mark.big i:last-child { width: 38px; height: 38px; border-width: 4px; border-radius: 12px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text b { font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em; }
.logo-text small { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .42em; color: var(--muted); margin-top: 4px; }
.nav-links { display: flex; gap: 2px; margin: 0 auto; }
.nav-links a { font-size: .86rem; font-weight: 600; color: var(--muted); padding: 8px 11px; border-radius: 999px; transition: color .25s, background .25s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--panel-2); }
.nav-cta { --bh: 42px; padding: 0 18px; font-size: .88rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); place-items: center; margin-left: auto; }
.mobile-menu {
    position: fixed; inset: 0; z-index: 99; background: rgba(5, 7, 15, .96); backdrop-filter: blur(20px);
    display: flex; flex-direction: column; justify-content: center; gap: 32px; padding: var(--nav-h) var(--gutter) 40px;
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: grid; gap: 4px; }
.mobile-menu nav a { font-family: var(--font-display); font-size: clamp(1.8rem, 8vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; transform: translateY(20px); opacity: 0; transition: transform .5s var(--ease), opacity .5s; }
.mobile-menu.open nav a { transform: none; opacity: 1; }
.mobile-menu.open nav a:nth-child(n) { transition-delay: calc(var(--i, 0) * 40ms); }

@media (max-width: 1180px) {
    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: grid; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 90px; overflow: hidden; isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(80px); z-index: -2; pointer-events: none; }
.hero-glow.g1 { width: 46vw; height: 46vw; right: -10vw; top: -8vw; background: radial-gradient(circle, rgba(77,124,255,.35), transparent 65%); }
.hero-glow.g2 { width: 34vw; height: 34vw; left: -12vw; bottom: -14vw; background: radial-gradient(circle, rgba(139,92,246,.28), transparent 65%); }
.hero-grid {
    position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: .5;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(24px, 4vw, 64px); }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .84rem; font-weight: 600; color: var(--muted); padding: 7px 14px 7px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255,255,255,.02); margin-bottom: 28px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 0 rgba(61,220,151,.6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(61,220,151,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,151,0); } }
.hero-positioning { font-family: var(--font-mono); font-size: clamp(.72rem, 1vw, .82rem); letter-spacing: .08em; text-transform: uppercase; color: var(--blue-2); margin-top: 26px; }
.hero-text { color: var(--muted); font-size: clamp(1.02rem, 1.3vw, 1.15rem); max-width: 52ch; margin-top: 16px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-ctas.center { justify-content: center; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; color: var(--muted); }
.hero-trust .ic { color: var(--orange); }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border-radius: 20px; border: 1.5px solid var(--line-2); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--text); animation: cue 1.8s infinite var(--ease); }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Ecosystem 3D composition */
.eco { position: relative; height: clamp(420px, 44vw, 600px); perspective: 1400px; }
.eco-stage { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 8deg)) rotateY(var(--ry, -14deg)); transition: transform .9s var(--ease); }
.eco-card, .eco-chip {
    position: absolute; transform-style: preserve-3d;
    transform: translate3d(var(--px, 0), var(--py, 0), var(--z, 0px));
    background: linear-gradient(160deg, rgba(22, 30, 58, .92), rgba(10, 14, 30, .92));
    border: 1px solid var(--line-2); border-radius: 18px;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06);
    animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 50% { translate: 0 -10px; } }
.eco-browser { left: 4%; top: 12%; width: 72%; --z: 40px; animation-delay: -1s; overflow: hidden; }
.eb-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.eb-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.eb-bar i:nth-child(2) { background: #febc2e; } .eb-bar i:nth-child(3) { background: #28c840; }
.eb-bar span { margin-left: 10px; font-family: var(--font-mono); font-size: .68rem; color: var(--dim); background: rgba(255,255,255,.04); padding: 3px 12px; border-radius: 6px; flex: 1; }
.eb-body { position: relative; display: flex; padding: 22px 20px 14px; min-height: 170px; }
.eb-hero { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; max-width: 60%; }
.eb-tag { font-size: .62rem; font-weight: 700; color: var(--orange); letter-spacing: .1em; text-transform: uppercase; }
.eb-hero b { font-family: var(--font-display); font-size: clamp(1.1rem, 1.9vw, 1.7rem); line-height: 1.05; letter-spacing: -.02em; }
.eb-line { height: 6px; border-radius: 6px; background: rgba(255,255,255,.12); width: 90%; }
.eb-line.s { width: 60%; }
.eb-btn { margin-top: 6px; font-size: .68rem; font-weight: 700; padding: 7px 14px; border-radius: 999px; background: var(--blue); width: max-content; }
.eb-orb { position: absolute; right: 18px; top: 14px; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #a9c0ff, var(--blue) 35%, var(--violet) 70%, #1b1240); box-shadow: 0 0 60px rgba(77,124,255,.45); }
.eb-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 20px 20px; }
.eb-cards i { height: 46px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.eco-dash { right: 0; top: 0; width: 44%; padding: 14px; --z: 90px; animation-delay: -3s; }
.ed-head { display: flex; justify-content: space-between; font-size: .72rem; font-weight: 700; }
.ed-head em { font-style: normal; color: var(--dim); font-weight: 500; }
.ed-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.ed-kpis div { background: rgba(255,255,255,.04); border-radius: 10px; padding: 8px 10px; display: grid; }
.ed-kpis small { font-size: .62rem; color: var(--muted); }
.ed-kpis b { font-family: var(--font-display); font-size: 1.15rem; }
.ed-kpis .up { font-style: normal; font-size: .6rem; color: #3ddc97; }
.ed-chart { width: 100%; height: 56px; }
.eco-insta { left: 0; bottom: 2%; width: 34%; padding: 10px; --z: 120px; animation-delay: -2s; }
.ei-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ei-head b { font-size: .72rem; display: block; line-height: 1.1; } .ei-head small { font-size: .58rem; color: var(--dim); }
.ei-av { width: 26px; height: 26px; border-radius: 50%; background: conic-gradient(var(--orange), #e95ecb, var(--violet), var(--orange)); padding: 2px; }
.ei-img { aspect-ratio: 1; border-radius: 10px; background: linear-gradient(135deg, var(--orange), #e95ecb 55%, var(--violet)); position: relative; overflow: hidden; }
.ei-img span { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; border: 10px solid rgba(255,255,255,.25); left: 20%; top: 20%; }
.ei-actions { display: flex; gap: 10px; margin: 8px 2px 4px; color: var(--muted); }
.ei-actions .ic { width: 16px; height: 16px; }
.ei-actions .ic:first-child { color: #ff5a7a; fill: #ff5a7a; }
.ei-likes { font-size: .62rem; font-weight: 700; padding-left: 2px; }
.eco-graph { right: 6%; bottom: 6%; width: 32%; padding: 14px; --z: 70px; animation-delay: -4s; display: grid; gap: 6px; }
.eco-graph small { font-size: .66rem; color: var(--muted); font-weight: 600; }
.eg-bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; }
.eg-bars i { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--yellow), var(--orange)); opacity: .85; transform-origin: bottom; animation: grow 1.6s var(--ease) both; }
.eg-bars i:nth-child(2) { animation-delay: .1s; } .eg-bars i:nth-child(3) { animation-delay: .2s; } .eg-bars i:nth-child(4) { animation-delay: .3s; } .eg-bars i:nth-child(5) { animation-delay: .4s; } .eg-bars i:nth-child(6) { animation-delay: .5s; }
@keyframes grow { from { transform: scaleY(0); } }
.eco-graph b { font-family: var(--font-display); font-size: 1.4rem; }
.eco-social { left: 38%; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; --z: 150px; animation-delay: -5s; border-radius: 14px; }
.es-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(61,220,151,.14); color: #3ddc97; }
.eco-social b { font-family: var(--font-display); font-size: 1.05rem; display: block; line-height: 1; } .eco-social small { font-size: .62rem; color: var(--muted); }
.eco-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; padding: 8px 12px; border-radius: 999px; }
.eco-chip .ic { width: 14px; height: 14px; }
.eco-chip-1 { right: 34%; top: 2%; --z: 180px; color: #ff7a93; animation-delay: -2.5s; }
.eco-chip-2 { right: -2%; top: 46%; --z: 160px; color: var(--blue-2); animation-delay: -6s; }
.eco-note { position: absolute; right: 0; bottom: -26px; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }

@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; }
    .eco { height: clamp(340px, 90vw, 460px); margin-top: 56px; }
    .eco-stage { --rx: 6deg; --ry: -8deg; }
    .scroll-cue { display: none; }
}
@media (max-width: 560px) {
    .eco-browser { width: 86%; left: 0; }
    .eco-dash { width: 56%; }
    .eco-insta { width: 42%; }
    .eco-graph { width: 42%; right: 0; }
    .eco-social { left: 44%; }
    .eco-chip-2 { display: none; }
}

/* ---------- Stats ---------- */
.stats { position: relative; border-block: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.015), transparent); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(28px, 4vw, 48px) clamp(12px, 2vw, 28px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: flex; align-items: baseline; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 4.2rem); letter-spacing: -.04em; line-height: 1; }
.stat em { font-style: normal; color: var(--orange); font-size: .6em; margin-left: 2px; }
.stat small { display: block; margin-top: 10px; color: var(--muted); font-weight: 600; font-size: .9rem; }
@media (max-width: 760px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(3) { border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Tilt ---------- */
.tilt { transform-style: preserve-3d; transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .6s var(--ease); will-change: transform; }
.tilt.tilting { transition: transform .12s linear; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc {
    --c: var(--blue);
    position: relative; overflow: hidden; padding: 30px; border-radius: var(--radius); min-height: 300px;
    display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line);
}
.svc::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, var(--c), transparent 45%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .5s; pointer-events: none; }
.svc:hover::after { opacity: 1; }
.svc-glow { position: absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 40%, transparent), transparent 70%); left: var(--mx, 80%); top: var(--my, 0%); translate: -50% -50%; opacity: .35; transition: opacity .4s; pointer-events: none; }
.svc:hover .svc-glow { opacity: .9; }
.svc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; transform: translateZ(30px); }
.svc-num { font-family: var(--font-mono); font-size: .8rem; color: var(--dim); }
.svc-ic { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); transition: transform .6s var(--ease); }
.svc-ic .ic { width: 26px; height: 26px; }
.svc:hover .svc-ic { transform: rotate(-8deg) scale(1.08); }
.svc h3 { font-family: var(--font-display); font-size: 1.55rem; letter-spacing: -.02em; margin-top: 40px; transform: translateZ(20px); }
.svc p { color: var(--muted); margin-top: 10px; transform: translateZ(10px); }
.svc-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 700; font-size: .92rem; color: var(--c); }
.svc-link .ic { transition: transform .3s var(--ease); }
.svc:hover .svc-link .ic { transform: translateX(5px); }
@media (max-width: 1000px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } .svc { min-height: 0; } }

/* ---------- Work ---------- */
.work { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.work-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 64px); }
.work-head .sec-head { margin-bottom: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.02); }
.filter { padding: 9px 16px; border-radius: 999px; font-size: .86rem; font-weight: 700; color: var(--muted); transition: background .3s, color .3s; }
.filter:hover { color: var(--text); }
.filter.active { background: var(--text); color: var(--bg); }
.work-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(18px, 2.4vw, 32px); }
.proj { grid-column: span 2; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.proj-lg { grid-column: span 3; }
.proj.is-hidden { display: none; }
.proj-link { display: flex; flex-direction: column; height: 100%; }
.proj-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 11; background: var(--bg-3); border: 1px solid var(--line); }
.proj-lg .proj-media { aspect-ratio: 16 / 10; }
.proj-media > .pv, .proj-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.proj-link:hover .proj-media > .pv, .proj-link:hover .proj-media > img { transform: scale(1.06); }
.proj-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, transparent 30%, rgba(5,7,15,.75)); opacity: 0; transition: opacity .5s var(--ease); }
.proj-overlay .btn { transform: translateY(14px) translateZ(40px); transition: transform .5s var(--ease); }
.proj-link:hover .proj-overlay { opacity: 1; }
.proj-link:hover .proj-overlay .btn { transform: translateY(0) translateZ(40px); }
.proj-info { padding: 20px 4px 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.proj-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.proj-meta span + span::before { content: "•"; margin-right: 14px; color: var(--dim); }
.proj-info h3 { font-family: var(--font-display); font-size: clamp(1.35rem, 2vw, 1.75rem); letter-spacing: -.02em; line-height: 1.1; }
.proj-info > p { color: var(--muted); font-size: .95rem; }
.proj-results { display: flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; color: #3ddc97; }
.proj-results.muted { color: var(--muted); }
.proj-results .ic { color: var(--c1); }
.proj-cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; margin-top: auto; padding-top: 6px; color: var(--text); }
.proj-cta .ic { transition: transform .3s var(--ease); }
.proj-link:hover .proj-cta .ic { transform: translateX(5px); }
.work-empty { grid-column: 1 / -1; border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 48px; display: grid; justify-items: center; gap: 18px; text-align: center; color: var(--muted); }
@media (max-width: 1000px) { .proj, .proj-lg { grid-column: span 3; } }
@media (max-width: 640px) {
    .work-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 10px; scrollbar-width: none; }
    .work-grid::-webkit-scrollbar { display: none; }
    .proj { flex: 0 0 86%; scroll-snap-align: center; }
    .work-empty { flex: 0 0 100%; }
    .filters { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; scrollbar-width: none; }
    .filter { flex: none; }
}

/* Generated project placeholder (browser-like) */
.pv { --c1: #4d7cff; --c2: #8b5cf6; display: flex; flex-direction: column; background: linear-gradient(150deg, color-mix(in srgb, var(--c2) 70%, #05070f), #070a16 75%); padding: 4% 5%; gap: 6%; overflow: hidden; color: #fff; container-type: inline-size; }
.pv-nav { display: flex; align-items: center; gap: 3%; }
.pv-logo { width: 7cqw; aspect-ratio: 1; border-radius: 22%; background: var(--c1); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 2.6cqw; color: #05070f; }
.pv-nav i { width: 8%; height: 1.3cqw; border-radius: 4px; background: rgba(255,255,255,.18); }
.pv-nav i:first-of-type { margin-left: auto; }
.pv-nav b { width: 13%; height: 4.5cqw; border-radius: 999px; background: var(--c1); }
.pv-hero { display: flex; align-items: center; gap: 4%; flex: 1; }
.pv-copy { display: flex; flex-direction: column; gap: 2.2cqw; width: 58%; }
.pv-copy small { font-family: var(--font-mono); font-size: 1.9cqw; letter-spacing: .12em; text-transform: uppercase; color: var(--c1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-copy strong { font-family: var(--font-display); font-weight: 800; font-size: 6.2cqw; line-height: .98; letter-spacing: -.03em; }
.pv-line { height: 1.4cqw; border-radius: 6px; background: rgba(255,255,255,.16); width: 92%; }
.pv-line.short { width: 64%; }
.pv-btn { width: 30%; height: 5cqw; border-radius: 999px; background: linear-gradient(90deg, var(--c1), color-mix(in srgb, var(--c1) 60%, #fff)); margin-top: 1cqw; }
.pv-art { position: relative; flex: 1; aspect-ratio: 1; }
.pv-art span { position: absolute; border-radius: 30%; }
.pv-art span:nth-child(1) { inset: 8% 8% 22% 18%; background: linear-gradient(140deg, var(--c1), var(--c2)); transform: rotate(12deg); box-shadow: 0 0 8cqw color-mix(in srgb, var(--c1) 50%, transparent); }
.pv-art span:nth-child(2) { width: 38%; aspect-ratio: 1; right: 0; bottom: 6%; border-radius: 50%; border: 1.6cqw solid rgba(255,255,255,.7); }
.pv-art span:nth-child(3) { width: 22%; aspect-ratio: 1; left: 2%; top: 4%; border-radius: 50%; background: var(--yellow); opacity: .9; }
.pv-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3%; }
.pv-row i { height: 9cqw; border-radius: 1.6cqw; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); }

/* ---------- Marketing ---------- */
.marketing { background: var(--bg-2); }
.mk-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 52px); }
.mk-head .sec-head { margin-bottom: 0; }
.mk-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 18px; }
.mk-tab { text-align: left; padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--panel); transition: border-color .3s, background .3s; display: grid; gap: 2px; }
.mk-tab small { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mk-tab span { font-weight: 700; }
.mk-tab.active { border-color: var(--blue); background: rgba(77,124,255,.08); }
.cmp { display: grid; grid-template-columns: 340px 1fr; gap: 18px; animation: fadeUp .7s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }
.cmp-side { display: flex; flex-direction: column; gap: 16px; padding: 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.cmp-creative { aspect-ratio: 4 / 5; border-radius: var(--radius-sm); overflow: hidden; }
.cmp-creative img, .cmp-creative .art { width: 100%; height: 100%; object-fit: cover; }
.cmp-facts { display: grid; gap: 10px; }
.cmp-facts div { display: grid; grid-template-columns: 86px 1fr; gap: 10px; font-size: .9rem; }
.cmp-facts dt { color: var(--muted); font-size: .8rem; padding-top: 2px; }
.cmp-facts dd { font-weight: 600; }
.cmp-main { display: grid; gap: 18px; align-content: start; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { padding: 20px; border-radius: var(--radius-sm); background: var(--panel); border: 1px solid var(--line); display: grid; gap: 4px; }
.kpi .ic { color: var(--c1); margin-bottom: 8px; }
.kpi b { font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.3rem); letter-spacing: -.03em; line-height: 1; }
.kpi small { color: var(--muted); font-size: .82rem; font-weight: 600; }
.chart-card { padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.chart-head { display: flex; justify-content: space-between; font-weight: 700; font-size: .9rem; margin-bottom: 16px; }
.chart-head em { font-style: normal; color: var(--muted); font-weight: 500; font-family: var(--font-mono); font-size: .75rem; }
.line-chart { width: 100%; height: clamp(160px, 18vw, 220px); overflow: visible; }
.grid-lines line { stroke: var(--line); stroke-dasharray: 4 6; }
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.in-view .draw, .draw.in-view { animation: draw 2s var(--ease) .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.cmp-bottom { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.ba, .adperf { padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.mini-title { font-size: .8rem; color: var(--muted); font-weight: 600; }
.ba-row { display: grid; grid-template-columns: 56px 1fr 48px; gap: 12px; align-items: center; font-size: .85rem; }
.ba-row b { text-align: right; font-family: var(--font-display); }
.ba-bar { height: 10px; border-radius: 10px; background: rgba(255,255,255,.06); overflow: hidden; }
.ba-bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--dim); transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease) .2s; }
.ba-row.after .ba-bar i { background: linear-gradient(90deg, var(--c1), var(--c2)); }
.in-view .ba-bar i { transform: scaleX(1); }
.ap { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.ap:last-child { border: 0; padding: 0; }
.ap span { color: var(--muted); font-size: .88rem; }
.ap b { font-family: var(--font-display); font-size: 1.5rem; }
@media (max-width: 1000px) { .cmp { grid-template-columns: 1fr; } .cmp-side { display: grid; grid-template-columns: 200px 1fr; align-items: start; } .cmp-side .badge-sample { grid-column: 1 / -1; } }
@media (max-width: 640px) { .kpis { grid-template-columns: 1fr 1fr; } .cmp-bottom { grid-template-columns: 1fr; } .cmp-side { grid-template-columns: 1fr; } .cmp-creative { aspect-ratio: 16 / 10; } }

/* Generated creative art */
.art { --c1: #4d7cff; --c2: #8b5cf6; position: relative; width: 100%; height: 100%; overflow: hidden; background: linear-gradient(150deg, var(--c1), var(--c2)); display: flex; align-items: flex-end; container-type: inline-size; }
.art-shape { position: absolute; border-radius: 50%; }
.art .a { width: 70%; aspect-ratio: 1; right: -18%; top: -14%; background: rgba(255,255,255,.18); }
.art .b { width: 34%; aspect-ratio: 1; left: 10%; top: 14%; border: 3cqw solid rgba(255,255,255,.55); }
.art .c { width: 18%; aspect-ratio: 1; right: 16%; bottom: 36%; background: #05070f; opacity: .55; border-radius: 30%; transform: rotate(20deg); }
.art-1 .a { border-radius: 30%; transform: rotate(25deg); background: rgba(5,7,15,.25); }
.art-2 .b { border-radius: 26%; transform: rotate(-12deg); }
.art-3 .a { width: 120%; right: -60%; top: 30%; background: rgba(255,255,255,.12); }
.art-copy { position: relative; z-index: 1; padding: 8cqw 7cqw; display: grid; gap: 2cqw; }
.art-copy small { font-family: var(--font-mono); font-size: max(10px, 3.4cqw); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.art-copy strong { font-family: var(--font-display); font-weight: 800; font-size: max(16px, 9cqw); line-height: 1; letter-spacing: -.03em; color: #fff; text-wrap: balance; }

/* ---------- Social ---------- */
.masonry { columns: 4 240px; column-gap: 16px; }
.creative { position: relative; break-inside: avoid; margin-bottom: 16px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); }
.creative.size-tall { aspect-ratio: 4 / 5; } .creative.size-square { aspect-ratio: 1; } .creative.size-wide { aspect-ratio: 16 / 10; }
.creative > img, .creative > .art { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.creative:hover > img, .creative:hover > .art { transform: scale(1.05); }
.creative.is-hidden { display: none; }
.creative-over {
    position: absolute; inset: 0; padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
    background: linear-gradient(180deg, rgba(5,7,15,.1), rgba(5,7,15,.9)); opacity: 0; transition: opacity .4s var(--ease);
}
.creative:hover .creative-over, .creative:focus-within .creative-over, .creative.touch-on .creative-over { opacity: 1; }
.co-cat { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); }
.creative-over strong { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.1; }
.co-client { color: var(--muted); font-size: .82rem; }
.co-stats { display: flex; gap: 14px; margin-top: 6px; font-size: .82rem; font-weight: 700; }
.co-stats span { display: inline-flex; align-items: center; gap: 5px; }
.co-stats .ic { width: 15px; height: 15px; }
.creative-over .badge-sample { margin-top: 6px; }

/* ---------- Reels ---------- */
.reels { background: var(--bg-2); overflow: hidden; }
.reel-nav { display: flex; gap: 10px; }
.reel-track {
    display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding: 10px max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))) 30px;
}
.reel-track::-webkit-scrollbar { display: none; }
.reel {
    --c1: #4d7cff; --c2: #8b5cf6;
    position: relative; flex: 0 0 clamp(230px, 22vw, 300px); aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden;
    scroll-snap-align: start; text-align: left; border: 1px solid var(--line-2); background: #000;
    transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.reel:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -20px color-mix(in srgb, var(--c1) 60%, transparent); }
.reel-media, .reel-media img, .reel-media video, .reel-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-poster { background: linear-gradient(170deg, var(--c1), var(--c2) 60%, #05070f); }
.reel-poster span { position: absolute; border-radius: 50%; }
.reel-poster span:first-child { width: 90%; aspect-ratio: 1; left: -20%; top: 12%; background: rgba(255,255,255,.14); }
.reel-poster span:last-child { width: 50%; aspect-ratio: 1; right: -10%; top: 40%; border: 14px solid rgba(255,255,255,.22); }
.reel-preview { opacity: 0; transition: opacity .4s; }
.reel.previewing .reel-preview { opacity: 1; }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 26%, transparent 50%, rgba(0,0,0,.85)); pointer-events: none; }
.reel-top { position: absolute; z-index: 2; left: 14px; right: 14px; top: 14px; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.reel-play { position: absolute; z-index: 2; left: 50%; top: 46%; translate: -50% -50%; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.3); transition: transform .5s var(--ease), background .3s; }
.reel-play .ic { width: 22px; height: 22px; margin-left: 3px; }
.reel:hover .reel-play { transform: scale(1.12); background: var(--blue); }
.reel-meta { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 16px; display: grid; gap: 2px; }
.reel-meta strong { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.15; }
.reel-meta small { color: rgba(255,255,255,.7); font-size: .8rem; }
.reel-stats { display: flex; gap: 12px; margin-top: 8px; font-size: .78rem; font-weight: 700; }
.reel-stats span { display: inline-flex; align-items: center; gap: 4px; }
.reel-stats .ic { width: 14px; height: 14px; }
@media (max-width: 640px) { .reel { flex-basis: 70vw; } }

/* ---------- Instagram ---------- */
.insta-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.insta-profile { display: grid; gap: 26px; }
.ip-ring { width: 104px; height: 104px; border-radius: 50%; padding: 4px; background: conic-gradient(from 200deg, var(--yellow), var(--orange), #e95ecb, var(--violet), var(--yellow)); }
.ip-ring .logo-mark { margin: 0; }
.ip-ring { display: grid; place-items: center; position: relative; }
.ip-ring::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--bg); }
.ip-ring .logo-mark { position: relative; }
.ip-handle { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .95rem; margin: 18px 0 22px; color: var(--text); }
.feed-status { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: .8rem; color: var(--muted); }
.feed-status .dot { background: var(--yellow); animation: none; }
.feed-status.live .dot { background: #3ddc97; animation: pulse 2s infinite; }
.insta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ig-tile { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--bg-3); }
.ig-tile > img, .ig-tile > .art { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ig-tile .art-copy strong { font-size: max(13px, 8cqw); }
.ig-tile:hover > img, .ig-tile:hover > .art { transform: scale(1.06); }
.ig-type { position: absolute; top: 10px; right: 10px; color: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.ig-over { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; font-weight: 700; font-size: .85rem; background: rgba(5,7,15,.62); opacity: 0; transition: opacity .3s; text-align: center; }
.ig-over .ic { width: 26px; height: 26px; }
.ig-tile:hover .ig-over { opacity: 1; }
@media (max-width: 900px) { .insta-wrap { grid-template-columns: 1fr; } }

/* ---------- Case studies ---------- */
.cases { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.case-list { display: grid; gap: clamp(20px, 3vw, 40px); }
.case {
    --c1: #4d7cff; --c2: #8b5cf6;
    position: sticky; top: calc(var(--nav-h) + 20px);
    display: grid; grid-template-columns: 0.8fr 1.6fr; gap: clamp(24px, 4vw, 64px);
    padding: clamp(26px, 4vw, 52px); border-radius: 28px; overflow: hidden;
    background: linear-gradient(150deg, color-mix(in srgb, var(--c2) 38%, #070a16), #070a16 60%);
    border: 1px solid var(--line-2); box-shadow: 0 -20px 60px -20px rgba(0,0,0,.8);
}
.case-index { position: absolute; right: -10px; bottom: -40px; font-family: var(--font-display); font-weight: 800; font-size: clamp(8rem, 18vw, 16rem); line-height: 1; color: rgba(255,255,255,.035); pointer-events: none; }
.case-head h3 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.02; letter-spacing: -.03em; }
.case-head .eyebrow { color: var(--c1); }
.case-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; counter-reset: s; position: relative; }
.case-steps > li { padding: 20px; border-radius: var(--radius-sm); background: rgba(5,7,15,.45); border: 1px solid var(--line); opacity: .35; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.case-steps > li.on { opacity: 1; transform: none; }
.case-steps > li:nth-child(2) { transition-delay: .1s; } .case-steps > li:nth-child(3) { transition-delay: .2s; } .case-steps > li:nth-child(4) { transition-delay: .3s; }
.cs-label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c1); margin-bottom: 10px; }
.cs-label::before { counter-increment: s; content: "0" counter(s); color: var(--dim); }
.case-steps p { color: #c7cde0; font-size: .95rem; }
.cs-results { background: linear-gradient(140deg, color-mix(in srgb, var(--c1) 20%, transparent), rgba(5,7,15,.4)) !important; }
.cs-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cs-metrics b { display: block; font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1; }
.cs-metrics small { color: var(--muted); font-size: .75rem; line-height: 1.3; display: block; margin-top: 6px; }
@media (max-width: 900px) { .case { grid-template-columns: 1fr; position: relative; top: 0; } }
@media (max-width: 560px) { .case-steps { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.testimonials { overflow: hidden; }
.float-shapes i { position: absolute; border-radius: 30%; pointer-events: none; animation: drift 14s ease-in-out infinite; }
.float-shapes i:nth-child(1) { width: 120px; height: 120px; left: 6%; top: 20%; border: 1px solid rgba(77,124,255,.35); transform: rotate(20deg); }
.float-shapes i:nth-child(2) { width: 70px; height: 70px; right: 8%; top: 16%; background: rgba(139,92,246,.15); border-radius: 50%; animation-delay: -4s; }
.float-shapes i:nth-child(3) { width: 40px; height: 40px; right: 18%; bottom: 14%; background: rgba(255,138,61,.3); animation-delay: -8s; }
@keyframes drift { 50% { translate: 20px -30px; rotate: 30deg; } }
.carousel3d { position: relative; }
.c3d-stage { position: relative; height: 420px; perspective: 1600px; transform-style: preserve-3d; }
.tcard {
    position: absolute; left: 50%; top: 0; width: min(560px, 86vw); margin-left: calc(min(560px, 86vw) / -2);
    padding: clamp(24px, 3vw, 38px); border-radius: 26px; display: flex; flex-direction: column; gap: 20px;
    background: linear-gradient(160deg, #121a36, #0a0f22); border: 1px solid var(--line-2);
    transition: transform .9s var(--ease), opacity .9s var(--ease), filter .9s var(--ease);
    transform: translateX(calc(var(--off) * 62%)) translateZ(calc(var(--abs) * -220px)) rotateY(calc(var(--off) * -24deg));
    opacity: calc(1 - var(--abs) * .45); filter: blur(calc(var(--abs) * 2px)); z-index: calc(10 - var(--abs));
}
.tcard[aria-hidden="true"] { pointer-events: none; }
.tcard-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tcard blockquote { font-family: var(--font-display); font-size: clamp(1.1rem, 1.7vw, 1.4rem); font-weight: 600; line-height: 1.4; letter-spacing: -.01em; }
.tcard figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.tcard figcaption b { display: block; } .tcard figcaption small { color: var(--muted); }
.stars { display: inline-flex; gap: 2px; color: var(--dim); }
.stars .on { color: var(--yellow); }
.stars .ic { width: 16px; height: 16px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar-ini { display: grid; place-items: center; background: var(--grad); font-weight: 800; font-size: .9rem; }
.c3d-controls { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 26px; }
.c3d-dots { display: flex; gap: 8px; }
.c3d-dots button { width: 8px; height: 8px; border-radius: 8px; background: var(--line-2); transition: width .4s var(--ease), background .3s; }
.c3d-dots button.active { width: 28px; background: var(--blue); }
@media (max-width: 640px) { .c3d-stage { height: 470px; } }

/* ---------- Google (inverted light section) ---------- */
.google { background: #f3f4f8; color: #0a0f1f; }
.google .eyebrow { color: #3456d6; }
.google .lead { color: #4b5470; }
.g-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.g-summary { display: grid; gap: 4px; justify-items: start; }
.g-summary .btn { margin-top: 28px; }
.g-score { display: flex; gap: 36px; margin-top: 28px; }
.g-score div { display: grid; gap: 6px; }
.g-score small { font-weight: 700; font-size: .8rem; color: #4b5470; }
.g-score b { font-family: var(--font-display); font-size: 2.6rem; letter-spacing: -.03em; line-height: 1; }
.g-score em { font-style: normal; font-size: .45em; color: #4b5470; }
.google .stars { color: #cfd3df; } .google .stars .on { color: #fbbc04; }
.g-attrib { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: .78rem; color: #4b5470; }
.g-reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.g-card { background: #fff; border-radius: 18px; padding: 22px; display: grid; gap: 12px; align-content: start; box-shadow: 0 1px 0 rgba(10,15,31,.04), 0 20px 40px -24px rgba(10,15,31,.25); }
.g-card header { display: flex; align-items: center; gap: 10px; }
.g-card header b { display: block; font-size: .95rem; } .g-card header small { color: #6b7390; font-size: .78rem; }
.g-card p { color: #333a52; font-size: .92rem; }
.g-card .avatar { width: 40px; height: 40px; color: #fff; }
.g-logo { margin-left: auto; color: #4285f4; }
.g-logo.big .ic { width: 44px; height: 44px; }
.g-connect { grid-column: 1 / -1; background: #fff; border-radius: 24px; padding: clamp(28px, 4vw, 48px); display: grid; gap: 12px; justify-items: start; box-shadow: 0 20px 40px -24px rgba(10,15,31,.25); }
.g-connect .g-logo { margin: 0 0 8px; }
.g-connect h3 { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: -.02em; }
.g-connect p { color: #4b5470; max-width: 46ch; }
@media (max-width: 900px) { .g-wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .g-reviews { grid-template-columns: 1fr; } .g-score { gap: 24px; } }

/* ---------- Why ---------- */
.why-intro { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.why-intro .sec-head { margin: 0; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.why-card { position: relative; background: var(--bg); padding: clamp(26px, 3vw, 40px); min-height: 250px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; transition: background .5s; }
.why-card:hover { background: #0a1024; }
.why-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,138,61,.1); color: var(--orange); margin-bottom: auto; transition: transform .6s var(--ease); }
.why-card:hover .why-ic { transform: translateZ(30px) scale(1.06); }
.why-card h3 { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: -.02em; margin-top: 28px; }
.why-card p { color: var(--muted); }
.why-n { position: absolute; top: 20px; right: 24px; font-family: var(--font-mono); font-size: .75rem; color: var(--dim); }
@media (max-width: 900px) { .why-intro { grid-template-columns: 1fr; } .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } .why-card { min-height: 0; } }

/* ---------- Process ---------- */
.process { background: var(--bg-2); }
.timeline { position: relative; }
.tl-line { position: absolute; left: 10%; right: 10%; top: 32px; height: 2px; background: var(--line); }
.tl-line span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--violet), var(--orange)); transform-origin: left; transform: scaleX(var(--p, 0)); }
.tl-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.tl-step { text-align: center; display: grid; justify-items: center; gap: 8px; opacity: .3; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d); }
.tl-step.on { opacity: 1; transform: none; }
.tl-node { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line-2); position: relative; margin-bottom: 14px; transition: border-color .6s, box-shadow .6s; }
.tl-step.on .tl-node { border-color: var(--blue); box-shadow: 0 0 0 6px rgba(77,124,255,.1), 0 0 30px rgba(77,124,255,.35); }
.tl-node .ic { width: 24px; height: 24px; color: var(--blue-2); }
.tl-num { font-family: var(--font-mono); font-size: .75rem; color: var(--orange); }
.tl-step h3 { font-family: var(--font-display); font-size: 1.45rem; letter-spacing: -.02em; }
.tl-step p { color: var(--muted); font-size: .92rem; max-width: 22ch; }
@media (max-width: 900px) {
    .tl-line { left: 31px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
    .tl-line span { transform-origin: top; transform: scaleY(var(--p, 0)); width: 100%; height: 100%; }
    .tl-steps { grid-template-columns: 1fr; gap: 30px; }
    .tl-step { grid-template-columns: 64px 1fr; text-align: left; justify-items: start; column-gap: 20px; row-gap: 2px; }
    .tl-node { grid-row: span 3; margin: 0; }
    .tl-step p { max-width: none; }
}

/* ---------- Tools ---------- */
.tools-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; }
.tools-legend { display: flex; gap: 20px; font-size: .85rem; color: var(--muted); font-weight: 600; }
.tools-legend li { display: inline-flex; align-items: center; gap: 8px; }
.tools-legend i { width: 10px; height: 10px; border-radius: 3px; }
.tools-legend .b { background: var(--blue); } .tools-legend .g { background: var(--orange); } .tools-legend .c { background: var(--violet); }
.orbit { position: relative; aspect-ratio: 1; width: min(100%, 560px); margin-inline: auto; }
.orbit-core { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 128px; height: 128px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #121a3a, #070a16); border: 1px solid var(--line-2); box-shadow: 0 0 80px rgba(77,124,255,.25); }
.orbit-ring { position: absolute; border-radius: 50%; border: 1px dashed var(--line-2); }
.orbit-ring.r1 { inset: 12%; } .orbit-ring.r2 { inset: 0; border-style: solid; border-color: var(--line); }
.orbit-items { position: absolute; inset: 0; animation: spin 80s linear infinite; }
.tool { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(calc(360deg / var(--n) * var(--i))) translateY(calc(min(46vw, 280px) * -0.88)); }
.tool-inner { position: absolute; translate: -50% -50%; display: grid; justify-items: center; gap: 4px; animation: spin 80s linear infinite reverse; }
.tool-inner { transform: rotate(calc(360deg / var(--n) * var(--i) * -1)); }
.tool-inner b { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-family: var(--font-display); font-size: .95rem; color: var(--tc); background: #0b1128; border: 1px solid color-mix(in srgb, var(--tc) 35%, transparent); box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--tc) 50%, transparent); transition: transform .4s var(--ease); }
.tool-inner small { font-size: .72rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.tool:hover .tool-inner b { transform: scale(1.15); }
.orbit:hover .orbit-items, .orbit:hover .tool-inner { animation-play-state: paused; }
@keyframes spin { to { rotate: 360deg; } }
@media (max-width: 900px) { .tools-wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .tool-inner b { width: 46px; height: 46px; border-radius: 12px; font-size: .8rem; } .tool-inner small { font-size: .62rem; } .orbit-core { width: 90px; height: 90px; } }

/* ---------- Final CTA ---------- */
.final-cta { position: relative; padding: clamp(110px, 16vw, 200px) 0; overflow: hidden; isolation: isolate; text-align: center; background: radial-gradient(ellipse 80% 70% at 50% 100%, rgba(77,124,255,.28), transparent 60%), radial-gradient(ellipse 60% 50% at 80% 0%, rgba(139,92,246,.22), transparent 60%), #03040a; border-block: 1px solid var(--line); }
.cta-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.cta-inner .lead { margin-inline: auto; }
.cta-inner .eyebrow::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; }
.cta-shapes i { position: absolute; z-index: -1; pointer-events: none; animation: floaty 9s ease-in-out infinite; }
.cta-shapes .s1 { width: 120px; height: 120px; left: 8%; top: 18%; border-radius: 30px; background: linear-gradient(140deg, var(--blue), var(--violet)); transform: rotate(18deg); opacity: .5; filter: blur(1px); }
.cta-shapes .s2 { width: 80px; height: 80px; right: 10%; top: 24%; border-radius: 50%; border: 10px solid var(--orange); opacity: .55; animation-delay: -3s; }
.cta-shapes .s3 { width: 46px; height: 46px; left: 18%; bottom: 16%; border-radius: 12px; background: var(--yellow); opacity: .4; animation-delay: -5s; transform: rotate(-14deg); }
.cta-shapes .s4 { width: 160px; height: 160px; right: 16%; bottom: 8%; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #a9c0ff, var(--blue) 40%, var(--violet) 75%); opacity: .35; animation-delay: -7s; }
@media (max-width: 640px) { .cta-shapes .s1 { width: 70px; height: 70px; } .cta-shapes .s4 { width: 100px; height: 100px; } }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.channels { display: grid; gap: 10px; }
.channels a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--panel); transition: border-color .3s, background .3s, transform .4s var(--ease); }
.channels a:hover { border-color: var(--line-2); background: var(--panel-2); transform: translateX(4px); }
.ch-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(77,124,255,.1); color: var(--blue-2); flex: none; }
.channels small { display: block; font-size: .74rem; color: var(--muted); font-weight: 600; }
.channels b { font-size: .95rem; word-break: break-word; }
.ch-go { margin-left: auto; color: var(--dim); }
.cform { padding: clamp(22px, 3vw, 40px); border-radius: 28px; background: linear-gradient(160deg, #0d1430, #080c1c); border: 1px solid var(--line-2); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; }
.field.full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
    width: 100%; font: inherit; color: var(--text); background: rgba(255,255,255,.03); border: 1px solid var(--line-2);
    border-radius: 14px; padding: 24px 16px 10px; transition: border-color .3s, background .3s, box-shadow .3s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e97b3' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 40px; }
.field select option { background: #0b1128; color: var(--text); }
.field textarea { resize: vertical; min-height: 140px; }
.field label { position: absolute; left: 17px; top: 17px; color: var(--muted); font-size: .95rem; pointer-events: none; transition: transform .25s var(--ease), font-size .25s, color .25s; transform-origin: left; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: rgba(77,124,255,.05); box-shadow: 0 0 0 4px rgba(77,124,255,.12); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field select.has-value + label { transform: translateY(-9px); font-size: .72rem; color: var(--blue-2); }
.field.error input, .field.error select, .field.error textarea { border-color: #ff5a7a; }
.field .err { display: block; color: #ff7a93; font-size: .76rem; margin-top: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 22px; }
.form-msg { font-size: .9rem; font-weight: 600; }
.form-msg.ok { color: #3ddc97; } .form-msg.bad { color: #ff7a93; }
.btn.loading { pointer-events: none; opacity: .7; }
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .fgrid { grid-template-columns: 1fr; } .cform-foot .btn { width: 100%; } }

/* ---------- Footer ---------- */
.footer { position: relative; padding: clamp(70px, 9vw, 110px) 0 30px; border-top: 1px solid var(--line); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; }
.footer-brand { display: grid; gap: 20px; justify-items: start; align-content: start; }
.footer-brand p { color: var(--muted); max-width: 34ch; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h3 { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 500; margin-bottom: 16px; }
.footer-cols a { display: block; padding: 5px 0; color: var(--muted); font-weight: 600; font-size: .94rem; transition: color .25s; }
.footer-cols a:hover { color: var(--text); }
.footer-word { font-family: var(--font-display); font-weight: 800; font-size: clamp(4.5rem, 19vw, 17rem); letter-spacing: -.06em; line-height: .8; margin: 60px 0 0; background: linear-gradient(180deg, rgba(255,255,255,.1), transparent 85%); -webkit-background-clip: text; background-clip: text; color: transparent; text-align: center; user-select: none; white-space: nowrap; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.to-top { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Mobile CTA ---------- */
.mobile-cta { display: none; }
@media (max-width: 760px) {
    .mobile-cta {
        position: fixed; z-index: 90; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
        display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(10, 14, 30, .82); backdrop-filter: blur(16px);
        border: 1px solid var(--line-2); transform: translateY(140%); transition: transform .5s var(--ease);
    }
    .mobile-cta.show { transform: none; }
    .mc-wa { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #05210f; flex: none; }
    .mc-main { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; background: var(--blue); font-weight: 700; }
    .footer { padding-bottom: 100px; }
}

/* ---------- Modals ---------- */
.modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 4, 10, .78); backdrop-filter: blur(10px); animation: fadeIn .4s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } }
.modal-panel { position: relative; width: min(1120px, 100vw); height: min(92vh, 100%); overflow-y: auto; overscroll-behavior: contain; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 28px; animation: modalIn .7s var(--ease); scrollbar-width: thin; }
@keyframes modalIn { from { opacity: 0; transform: translateY(40px) scale(.97); } }
.modal-close { position: sticky; top: 16px; float: right; margin: 16px 16px 0 0; z-index: 3; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); backdrop-filter: blur(10px); border: 1px solid var(--line-2); transition: background .3s, transform .4s var(--ease); }
.modal-close:hover { background: rgba(255,255,255,.16); transform: rotate(90deg); }
.modal-body { padding: clamp(24px, 5vw, 64px); }
.closing .modal-panel, .closing .reel-stage { animation: modalOut .35s var(--ease) forwards; }
.closing .modal-backdrop { animation: fadeOut .35s var(--ease) forwards; }
@keyframes modalOut { to { opacity: 0; transform: translateY(30px) scale(.98); } }
@keyframes fadeOut { to { opacity: 0; } }
@media (max-width: 640px) { .modal-panel { border-radius: 22px 22px 0 0; height: 94vh; align-self: end; } }

/* Project detail (modal + page) */
.pd-head { max-width: 860px; }
.pd-head .h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); }
.pd-hero { margin: clamp(28px, 4vw, 48px) 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; }
.pd-hero .pv, .pd-hero img { width: 100%; height: 100%; object-fit: cover; }
.pd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pd-grid section { background: var(--bg-2); padding: 26px; }
.pd-grid h2, .pd-grid h3 { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c1, var(--blue-2)); font-weight: 500; margin-bottom: 12px; }
.pd-grid p { color: #c7cde0; }
.checks { display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: #c7cde0; font-size: .94rem; }
.checks .ic { color: #3ddc97; margin-top: 3px; width: 16px; height: 16px; }
.pd-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.pd-gallery img { border-radius: var(--radius-sm); border: 1px solid var(--line); width: 100%; }
.pd-cta { margin-top: 36px; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: linear-gradient(130deg, color-mix(in srgb, var(--c1, #4d7cff) 30%, #0b1128), #0b1128 70%); border: 1px solid var(--line-2); }
.pd-cta h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.02em; }
@media (max-width: 900px) { .pd-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pd-grid { grid-template-columns: 1fr; } .pd-gallery { grid-template-columns: 1fr; } }
.inner-page { padding: calc(var(--nav-h) + 50px) 0 100px; }
.back { margin: 0 0 30px; }
.next-proj { display: flex; align-items: center; gap: 16px; margin-top: 60px; padding: 30px 0; border-top: 1px solid var(--line); }
.next-proj small { color: var(--muted); font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.next-proj b { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.02em; }
.next-proj .ic { margin-left: auto; width: 28px; height: 28px; transition: transform .4s var(--ease); }
.next-proj:hover .ic { transform: translateX(8px); }

/* Reel modal */
.modal-reel .reel-stage { position: relative; display: flex; gap: 24px; align-items: center; animation: modalIn .7s var(--ease); max-height: 94vh; }
.modal-reel .modal-close { position: absolute; top: 0; right: -64px; margin: 0; float: none; }
.reel-frame { position: relative; height: min(88vh, 860px); aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; background: #000; border: 1px solid var(--line-2); }
.reel-frame video, .reel-frame iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.reel-frame .reel-empty { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; padding: 30px; color: rgba(255,255,255,.82); background: linear-gradient(170deg, var(--c1, #4d7cff), var(--c2, #8b5cf6) 60%, #05070f); }
.reel-frame .reel-empty b { color: #fff; font-family: var(--font-display); font-size: 1.3rem; }
.reel-info { width: 260px; display: grid; gap: 10px; }
.reel-info h3 { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; letter-spacing: -.02em; }
.reel-info p { color: var(--muted); }
.reel-info .reel-stats { font-size: .9rem; }
@media (max-width: 900px) {
    .modal-reel .reel-stage { flex-direction: column; gap: 0; }
    .reel-info { display: none; }
    .reel-frame { height: auto; width: min(100vw, calc(88vh * 9 / 16)); border-radius: 18px; }
    .modal-reel .modal-close { right: 10px; top: 10px; }
}

/* ---------- Reveal animations ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].in-view { opacity: 1; transform: none; filter: none; }
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js [data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--wi) * 45ms); }
.js [data-split].in-view .w > span { transform: none; }
.js .proj[data-reveal] .proj-media { clip-path: inset(12% 6% 12% 6% round var(--radius)); transition: clip-path 1.2s var(--ease); }
.js .proj[data-reveal].in-view .proj-media { clip-path: inset(0 0 0 0 round var(--radius)); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .js [data-reveal], .js [data-split] .w > span { opacity: 1 !important; transform: none !important; filter: none !important; }
    .hero-canvas, .cta-canvas, .cursor-glow { display: none; }
    .orbit-items, .tool-inner { animation: none !important; }
    .draw { stroke-dashoffset: 0; }
    .ba-bar i { transform: none; }
    .case-steps > li, .tl-step { opacity: 1; transform: none; }
}
