/* ================= Tokens ================= */
:root {
  --ink: #0f1d2e;
  --ink-2: #1b2b40;
  --paper: #f7f4ef;
  --paper-2: #efeae2;
  --line: #ddd5c8;
  --text: #1d2733;
  --muted: #5f6b78;
  --accent: #f25c2a;
  --accent-dark: #d6461a;
  --green: #2f6f5e;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: var(--sans); color: var(--text); background: var(--paper); line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { display: block; }
h1, h2, h3 { color: var(--ink); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
em { font-style: italic; color: var(--accent); }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
::selection { background: var(--accent); color: #fff; }

/* ================= Buttons & links ================= */
.btn {
  display: inline-flex; align-items: center; gap: .6rem; justify-content: center;
  padding: .95rem 1.5rem; border-radius: 10px; border: 0; cursor: pointer;
  font: 600 1rem var(--sans); transition: background .25s, color .25s, transform .25s var(--ease);
}
.btn-sm { padding: .6rem 1.05rem; font-size: .92rem; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--accent); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--ink); }
.btn-block { width: 100%; }
.arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arrow, .cta-mail:hover .arrow { transform: translateX(5px); }
.link-underline { font-weight: 600; color: var(--ink); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; padding-bottom: 2px; transition: background-size .35s var(--ease); }
.link-underline:hover { background-size: 0 1.5px; background-position: 100% 100%; }

.label { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.1rem; }
.label.light { color: #ffb08f; }

/* ================= Loader / progress ================= */
.loader { position: fixed; inset: 0; z-index: 999; background: var(--ink); display: grid; place-items: center; transition: opacity .5s, visibility .5s; animation: loaderOut .5s 3.2s forwards; }
@keyframes loaderOut { to { opacity: 0; visibility: hidden; } }
.loader.done { opacity: 0; visibility: hidden; }
.loader-logo { width: 84px; height: 84px; }
.loader-logo path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 1s var(--ease) forwards; }
.loader-logo circle { fill: var(--accent); transform-box: fill-box; transform-origin: center; transform: scale(0); animation: popIn .4s .8s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes popIn { to { transform: scale(1); } }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; z-index: 300; }

/* ================= Header ================= */
.header { position: fixed; inset: 0 0 auto; z-index: 100; transition: background .3s, box-shadow .3s, transform .4s var(--ease); }
.header.scrolled { background: rgba(247, 244, 239, .9); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.header.hidden { transform: translateY(-100%); }
.nav { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-mark { width: 40px; height: 40px; }
.brand-mark rect { fill: var(--ink); }
.brand-mark path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark circle { fill: var(--accent); transition: transform .4s var(--ease); transform-box: fill-box; transform-origin: center; }
.brand:hover .brand-mark circle { transform: scale(1.4); }
.brand-name { font-weight: 700; font-size: 1.12rem; color: var(--ink); letter-spacing: -.01em; }
.brand-name span { font-weight: 500; color: var(--muted); }
.brand-light .brand-mark rect { fill: #fff; }
.brand-light .brand-mark path { stroke: var(--ink); }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-name span { color: #9fb0c3; }
.menu { display: flex; align-items: center; gap: 2rem; font-weight: 500; font-size: .97rem; }
.menu a:not(.btn) { position: relative; padding: .3rem 0; }
.menu a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.menu a:not(.btn):hover::after, .menu a.active::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), top .3s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger.open span:first-child { top: 21px; transform: rotate(45deg); }
.burger.open span:last-child { top: 21px; transform: rotate(-45deg); }

/* ================= Hero ================= */
.hero { padding: 150px 0 0; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); opacity: .7; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 4rem; align-items: center; }
.status { display: inline-flex; align-items: center; gap: .6rem; font-size: .9rem; font-weight: 600; color: var(--green); background: #e3eee9; padding: .4rem .85rem .4rem .7rem; border-radius: 6px; margin-bottom: 1.6rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2fa36b; box-shadow: 0 0 0 0 rgba(47,163,107,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(47,163,107,0); } 100% { box-shadow: 0 0 0 0 rgba(47,163,107,0); } }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); line-height: 1.02; letter-spacing: -.03em; }
.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 520px; margin: 1.6rem 0 2.2rem; }
.hero-cta { display: flex; align-items: center; gap: 1.8rem; flex-wrap: wrap; }

.hero-art { position: relative; height: 440px; }
.window { position: absolute; background: #fff; border-radius: 14px; box-shadow: 0 1px 0 var(--line), 0 30px 60px -20px rgba(15, 29, 46, .25); overflow: hidden; }
.w-main { inset: 20px 40px 40px 0; animation: floatY 7s ease-in-out infinite; }
.window-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid #eee8de; }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e6ded2; }
.window-bar span { margin-left: 10px; font-size: .75rem; color: var(--muted); background: var(--paper); padding: 3px 10px; border-radius: 5px; }
.window-body { padding: 20px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpis div { background: var(--paper); border-radius: 10px; padding: 12px; }
.kpis small { display: block; font-size: .72rem; color: var(--muted); }
.kpis b { font-size: 1.35rem; color: var(--ink); }
.chart { width: 100%; height: 120px; margin: 18px 0 14px; }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 420; stroke-dashoffset: 420; }
.chart-fill { fill: rgba(242, 92, 42, .1); opacity: 0; }
.hero-art.in .chart-line { animation: draw 2s .4s var(--ease) forwards; }
.hero-art.in .chart-fill { animation: fadeIn 1s 1.4s forwards; }
@keyframes fadeIn { to { opacity: 1; } }
.rows span { display: block; height: 10px; border-radius: 5px; background: var(--paper-2); margin-top: 10px; }
.rows span:nth-child(1) { width: 90%; } .rows span:nth-child(2) { width: 70%; } .rows span:nth-child(3) { width: 80%; }
.w-phone { width: 170px; height: 300px; right: 0; bottom: 0; border-radius: 26px; padding: 30px 12px 12px; border: 6px solid var(--ink); animation: floatY 7s -3.5s ease-in-out infinite; }
.phone-notch { position: absolute; top: 8px; left: 50%; width: 50px; height: 8px; margin-left: -25px; background: var(--ink); border-radius: 6px; }
.phone-card { background: var(--paper); border-radius: 12px; padding: 10px; margin-bottom: 10px; }
.phone-card b { display: block; font-size: .8rem; color: var(--ink); }
.phone-card small { font-size: .7rem; color: var(--muted); }
.bar { height: 5px; border-radius: 3px; background: #e6ded2; margin-top: 8px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 60%; background: var(--accent); border-radius: 3px; animation: grow 3s ease-in-out infinite alternate; }
.bar.done span { width: 100%; background: #2fa36b; animation: none; }
@keyframes grow { from { width: 35%; } to { width: 80%; } }
@keyframes floatY { 50% { transform: translateY(-12px); } }
.spin-badge { position: absolute; width: 120px; height: 120px; left: -40px; bottom: -10px; animation: spin 18s linear infinite; }
.spin-badge text { font: 700 9px var(--sans); letter-spacing: 1.5px; fill: var(--ink); }
.spin-badge circle { fill: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }

.stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 90px; border-top: 1px solid var(--line); }
.stat { padding: 2rem 1.5rem 2.4rem 0; }
.stat + .stat { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 4vw, 3.2rem); color: var(--ink); line-height: 1; }
.stat b[data-count]::after { content: "+"; color: var(--accent); }
.stat span { color: var(--muted); font-size: .95rem; }

/* ================= Ticker ================= */
.ticker { background: var(--ink); color: #fff; overflow: hidden; padding: 1.3rem 0; }
.ticker-track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.ticker span { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2rem); white-space: nowrap; padding: 0 1.6rem; }
.ticker span::after { content: "✳"; color: var(--accent); margin-left: 3.2rem; font-family: var(--sans); font-size: .8em; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ================= Sections ================= */
.section { padding: 120px 0; }
.section-tint { background: var(--paper-2); }
.section-dark { background: var(--ink); color: #c8d2de; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-top { margin-bottom: 3.5rem; }
.split-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }

/* About */
.about { display: grid; grid-template-columns: 220px 1fr; gap: 3rem; }
.about-main h2 { max-width: 900px; }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 2.5rem; color: var(--muted); }
.quote { margin-top: 3.5rem; padding-left: 1.6rem; border-left: 3px solid var(--accent); }
.quote blockquote { font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 1.8rem); color: var(--ink); line-height: 1.35; }
.quote figcaption { margin-top: .8rem; font-size: .92rem; color: var(--muted); }

/* Services */
.services { border-top: 1px solid rgba(255,255,255,.12); counter-reset: s; }
.service { display: grid; grid-template-columns: 70px 1fr 280px 40px; gap: 2rem; align-items: center; padding: 2rem 0; border-bottom: 1px solid rgba(255,255,255,.12); position: relative; cursor: default; }
.service::before { content: ""; position: absolute; inset: 0 -20px; background: var(--ink-2); border-radius: 12px; opacity: 0; transform: scaleY(.85); transition: opacity .35s, transform .35s var(--ease); z-index: 0; }
.service > * { position: relative; z-index: 1; }
.service:hover::before { opacity: 1; transform: none; }
.num { font-family: var(--serif); font-size: 1.1rem; color: var(--accent); }
.service h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-family: var(--serif); font-weight: 400; margin-bottom: .4rem; transition: transform .35s var(--ease); }
.service:hover h3 { transform: translateX(8px); }
.service p { font-size: .98rem; max-width: 520px; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chips li { font-size: .78rem; font-weight: 600; padding: .3rem .65rem; border: 1px solid rgba(255,255,255,.2); border-radius: 6px; color: #dfe6ee; }
.go { font-size: 1.5rem; color: #fff; opacity: .35; transition: opacity .3s, transform .35s var(--ease), color .3s; }
.service:hover .go { opacity: 1; color: var(--accent); transform: rotate(45deg); }

/* Work */
.filters { display: flex; gap: .4rem; background: var(--paper-2); padding: .3rem; border-radius: 10px; }
.filter { font: 600 .92rem var(--sans); padding: .55rem 1rem; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; transition: background .25s, color .25s; }
.filter:hover { color: var(--ink); }
.filter.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem 2rem; }
.case { cursor: default; }
.case.hide { display: none; }
.case.pop { animation: casePop .5s var(--ease) both; }
@keyframes casePop { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.case-visual { aspect-ratio: 4/3; border-radius: 14px; display: grid; place-items: center; overflow: hidden; position: relative; }
.case-visual::after { content: "View case →"; position: absolute; left: 16px; bottom: 16px; background: #fff; color: var(--ink); font-weight: 600; font-size: .85rem; padding: .45rem .8rem; border-radius: 8px; opacity: 0; transform: translateY(10px); transition: .35s var(--ease); }
.case:hover .case-visual::after { opacity: 1; transform: none; }
.v1 { background: #f3d9c9; } .v2 { background: #d4e4dc; } .v3 { background: #d6dfeb; }
.v4 { background: #e8e0d0; } .v5 { background: #dce7e9; } .v6 { background: #f1e3c4; }
.mock { width: 72%; aspect-ratio: 16/10; background: #fff; border-radius: 8px; padding: 10px; box-shadow: 0 20px 40px -18px rgba(15,29,46,.35); transition: transform .6s var(--ease); display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; }
.mock i { width: 7px; height: 7px; border-radius: 50%; background: #e6ded2; }
.mock b { display: block; width: 100%; height: 22%; border-radius: 5px; background: var(--paper-2); }
.mock b:first-of-type { height: 40%; background: var(--ink); opacity: .85; }
.mock.phone { width: 34%; aspect-ratio: 9/17; border-radius: 16px; border: 5px solid var(--ink); padding: 8px; }
.mock.phone b { height: 24%; }
.mock.phone b:first-of-type { background: var(--accent); opacity: 1; }
.case:hover .mock { transform: translateY(-8px) rotate(-1.5deg) scale(1.03); }
.case-meta { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0 .35rem; font-size: .85rem; color: var(--muted); }
.result { color: var(--green); font-weight: 700; }
.case h3 { font-size: 1.15rem; }

/* Process */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.process-line { position: absolute; top: 22px; left: 22px; right: 22px; height: 2px; background: var(--line); }
.process-line span { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.step { position: relative; }
.step-n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); font-weight: 700; color: var(--ink); margin-bottom: 1.4rem; transition: background .3s, color .3s, border-color .3s; }
.step.visible .step-n { background: var(--ink); color: #fff; }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .97rem; }

/* Testimonials */
.testi { display: grid; grid-template-columns: 220px 1fr; gap: 3rem; }
.testi-slider { position: relative; min-height: 260px; }
.testi-item { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s var(--ease); pointer-events: none; }
.testi-item.active { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.testi-item blockquote { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.25; color: var(--ink); letter-spacing: -.01em; }
.testi-item figcaption { margin-top: 1.4rem; color: var(--muted); }
.testi-item figcaption b { color: var(--ink); }
.testi-dots { display: flex; gap: .5rem; margin-top: 2rem; }
.testi-dots button { width: 28px; height: 4px; border: 0; border-radius: 2px; background: var(--line); cursor: pointer; transition: background .3s, width .3s var(--ease); }
.testi-dots button.active { background: var(--accent); width: 48px; }

/* Team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.person { background: #fff; border-radius: 14px; padding: 1.8rem; transition: transform .4s var(--ease), box-shadow .4s; }
.person:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -24px rgba(15,29,46,.35); }
.avatar { width: 64px; height: 64px; border-radius: 14px; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.15rem; margin-bottom: 1.4rem; transition: border-radius .4s var(--ease); }
.person:hover .avatar { border-radius: 50%; }
.person p { color: var(--muted); font-size: .95rem; margin-top: .25rem; }

/* CTA */
.cta { background: var(--ink); color: #fff; padding: 130px 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 0 0 60px rgba(255,255,255,.02), 0 0 0 120px rgba(255,255,255,.015); }
.cta-title { color: #fff; font-size: clamp(2.8rem, 8vw, 6.5rem); line-height: 1; max-width: 900px; }
.cta-mail { display: inline-flex; align-items: center; gap: .8rem; margin-top: 2.6rem; font-size: clamp(1.15rem, 2.5vw, 1.6rem); font-weight: 600; color: #fff; border-bottom: 2px solid var(--accent); padding-bottom: .3rem; word-break: break-all; }
.cta-mail:hover { color: #ffb08f; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; }
.contact h2 { margin-bottom: 1rem; }
.info { margin: 2.2rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 2rem; }
.info li { color: var(--ink); font-weight: 600; }
.info small { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .2rem; }
.info a:hover { color: var(--accent); }
.map { border-radius: 14px; overflow: hidden; height: 230px; border: 1px solid var(--line); filter: grayscale(.4); }
.map iframe { width: 100%; height: 100%; border: 0; }
.form { background: #fff; border-radius: 18px; padding: 2.4rem; display: grid; gap: 1.3rem; align-self: start; box-shadow: 0 1px 0 var(--line); }
.field { position: relative; }
.field input, .field textarea { width: 100%; font: 500 1rem var(--sans); color: var(--ink); border: 0; border-bottom: 1.5px solid var(--line); padding: 1.4rem 0 .55rem; background: transparent; outline: none; transition: border-color .3s; resize: vertical; }
.field label { position: absolute; left: 0; top: 1.3rem; color: var(--muted); pointer-events: none; transition: .25s var(--ease); }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 0; font-size: .78rem; color: var(--accent); font-weight: 600; }
.pick { border: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.pick legend { font-size: .9rem; color: var(--muted); margin-bottom: .7rem; }
.pick label { cursor: pointer; }
.pick input { position: absolute; opacity: 0; }
.pick span { display: inline-block; padding: .5rem .9rem; border: 1.5px solid var(--line); border-radius: 8px; font-size: .9rem; font-weight: 600; transition: .2s; }
.pick label:hover span { border-color: var(--ink); }
.pick input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-status { font-size: .95rem; min-height: 1.4em; }
.form-status.ok { color: var(--green); } .form-status.err { color: #c0392b; }

/* Footer */
.footer { background: #0a1522; color: #9fb0c3; padding: 80px 0 0; font-size: .95rem; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3.5rem; }
.footer-brand p { margin-top: 1.2rem; max-width: 300px; }
.footer h4 { color: #fff; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-top > div > a:not(.brand), .footer-top > div > span { display: block; margin-bottom: .55rem; transition: color .2s; }
.footer-top > div > a:not(.brand):hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.6rem 0; border-top: 1px solid rgba(255,255,255,.08); font-size: .88rem; }
.credit a { color: #fff; font-weight: 700; border-bottom: 1px solid var(--accent); transition: color .2s; }
.credit a:hover { color: var(--accent); }

.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 46px; height: 46px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; opacity: 0; transform: translateY(16px); pointer-events: none; transition: .35s var(--ease); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); }

/* ================= Motion ================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.fade-up { opacity: 0; transform: translateY(20px); }
body.ready .fade-up { animation: fadeUp .9s var(--ease) forwards; }
body.ready .hero-sub { animation-delay: .5s; }
body.ready .hero-cta { animation-delay: .65s; }
body.ready .hero-art { animation-delay: .4s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.status { opacity: 0; }
body.ready .status { animation: fadeUp .7s .1s var(--ease) forwards; }

.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.split.visible .w > span { transform: none; }

/* ================= Responsive ================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-art { max-width: 560px; width: 100%; }
  .service { grid-template-columns: 50px 1fr 40px; }
  .chips { grid-column: 2; }
  .go { grid-row: 1; grid-column: 3; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .about, .testi { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .menu { position: fixed; inset: 76px 0 auto; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 20px 1.5rem; box-shadow: 0 20px 30px -10px rgba(0,0,0,.12); clip-path: inset(0 0 100% 0); transition: clip-path .45s var(--ease); }
  .menu.open { clip-path: inset(0 0 0 0); }
  .menu a:not(.btn) { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .menu a:not(.btn)::after { display: none; }
  .menu .btn { margin-top: 1.2rem; }
  .header.menu-open { background: var(--paper); }
  .section { padding: 88px 0; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: 60px; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .about-cols, .contact { grid-template-columns: 1fr; gap: 2rem; }
  .contact { gap: 3rem; }
  .process { grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; }
  .process-line { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding-top: 120px; }
  .hero-art { height: 360px; }
  .w-main { inset: 10px 30px 50px 0; }
  .kpis b { font-size: 1.05rem; }
  .w-phone { width: 135px; height: 240px; }
  .spin-badge { width: 92px; height: 92px; left: -10px; bottom: -20px; }
  .work-grid, .team, .process, .info { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr 30px; gap: .8rem 1rem; padding: 1.6rem 0; }
  .num { grid-column: 1; }
  .service-head, .chips { grid-column: 1 / -1; }
  .go { grid-row: 1; grid-column: 2; justify-self: end; }
  .form { padding: 1.6rem; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .loader { display: none; }
  .reveal, .fade-up, .status, .split .w > span { opacity: 1 !important; transform: none !important; }
  .chart-line { stroke-dashoffset: 0; } .chart-fill { opacity: 1; }
}
