:root {
  --bg: #f5f6f8;
  --bg-2: #ffffff;
  --bg-3: #e9ecf0;
  --line: rgb(17 20 24 / .1);
  --soft: rgb(17 20 24 / .05);
  --soft-2: rgb(17 20 24 / .1);
  --text: #111418;
  --muted: #545b65;
  --accent: #4a86e8;
  --accent-text: #1f5fc4;
  --accent-ink: #0b1220;
  --shadow: 0 10px 40px rgb(30 45 70 / .08);
  --radius: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(16px, 4vw, 56px);
  --sec: clamp(56px, 7vw, 96px);
  --head: clamp(24px, 3vw, 36px);
  color-scheme: light;
}
.dark {
  --bg: #0d0f12;
  --bg-2: #14171c;
  --bg-3: #1c2027;
  --line: rgb(236 233 228 / .1);
  --soft: rgb(236 233 228 / .07);
  --soft-2: rgb(236 233 228 / .14);
  --text: #ece9e4;
  --muted: #b3b9c1;
  --accent-text: #8db3f5;
  --shadow: none;
  color-scheme: dark;
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 "Manrope", system-ui, sans-serif;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: "Bricolage Grotesque", "Manrope", sans-serif; font-weight: 600; letter-spacing: -.03em; line-height: 1.02; }
h1 { font-size: clamp(2.6rem, 5.6vw, 5.2rem); max-width: 15ch; }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
h3 { font-size: 1.35rem; letter-spacing: -.01em; line-height: 1.2; }
p { color: var(--muted); max-width: 62ch; }
em { font-style: normal; color: var(--accent-text); }
.wrap { width: min(1360px, 100%); margin: 0 auto; padding: 0 var(--pad); }
section { padding: var(--sec) 0; position: relative; }
/* same-colour neighbours share one gap instead of two */
section:not(.dark) + section:not(.dark), section.dark + section.dark { padding-top: 0; }

/* grain */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* nav */
.nav {
  position: fixed; inset: 16px var(--pad) auto; z-index: 50; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 10px 0 22px; border-radius: 999px;
  background: rgb(13 15 18 / .72); border: 1px solid rgb(236 233 228 / .1); color: #ece9e4;
  --text: #ece9e4; --muted: #b3b9c1; --soft: rgb(236 233 228 / .08); --accent-text: #8db3f5;
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: transform .6s var(--ease);
}
.nav.hide { transform: translateY(-120%); }
.logo { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.logo span { color: var(--accent-text); }
.nav ul { display: flex; gap: 4px; list-style: none; }
.nav ul a { display: block; padding: 8px 14px; border-radius: 999px; font-size: .92rem; color: var(--muted); transition: color .3s, background .3s; }
.nav ul a:hover, .nav ul a[aria-current] { color: var(--text); background: var(--soft); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--text); cursor: pointer; }
.burger i { display: block; width: 16px; height: 1.5px; margin: 4px auto; background: currentColor; transition: transform .4s var(--ease); }
.nav.open .burger i:first-child { transform: translateY(2.75px) rotate(45deg); }
.nav.open .burger i:last-child { transform: translateY(-2.75px) rotate(-45deg); }

.btn {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font: 600 .95rem "Manrope", sans-serif;
  transition: transform .4s var(--ease), background .3s;
}
.btn:hover { background: #6a9cf0; }
.btn:active { transform: scale(.97); }
.btn.ghost { background: var(--soft); color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--soft-2); }
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.nav .btn { padding: 11px 20px; }

/* hero */
.hero { min-height: 100svh; padding: 0; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 22s var(--ease) both; }
.hero-media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgb(13 15 18 / .88) 0%, rgb(13 15 18 / .55) 45%, rgb(13 15 18 / .1) 75%),
  linear-gradient(180deg, rgb(13 15 18 / .6) 0%, transparent 25%, transparent 55%, var(--bg) 100%); }
.hero h1 { text-shadow: 0 2px 30px rgb(0 0 0 / .45); }

.hero .wrap { padding-bottom: clamp(48px, 9vh, 96px); display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.hero p { color: #e3e5e8; font-size: 1.1rem; margin: 20px 0 28px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-side { justify-self: end; text-align: right; }
.hero-side b { display: block; font: 600 clamp(3.5rem, 7vw, 6rem)/1 "Bricolage Grotesque", sans-serif; letter-spacing: -.04em; }
.hero-side span { color: #c9ccd1; font-size: .95rem; }
@keyframes kenburns { from { transform: scale(1.18); } to { transform: scale(1); } }

.page-hero { min-height: 78svh; }
.hero .wrap { padding-top: 120px; }
.page-hero .wrap { grid-template-columns: 1fr; }

/* word reveal */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 60ms + 150ms); }
.split.in .w > span { transform: none; }

/* reveal */
.rv { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.rv.in { opacity: 1; transform: none; }
.clip { opacity: 0; transition: opacity 1.2s var(--ease); }
.clip.in { opacity: 1; }

/* intro split */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.intro .media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; }
.intro .media img { width: 100%; height: 100%; object-fit: cover; }
.intro h2 { margin-bottom: 20px; }
.intro p + p { margin-top: 16px; }

/* marquee */
.marquee { padding: 22px 0; border-block: 1px solid var(--line); overflow: hidden; }
.marquee .track { display: flex; width: max-content; animation: marq 38s linear infinite; }
.marquee span { font: 500 clamp(1.8rem, 4vw, 3.2rem) "Bricolage Grotesque", sans-serif; letter-spacing: -.03em; white-space: nowrap; padding-right: 48px; }
.marquee span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--muted); }
@keyframes marq { to { transform: translateX(-50%); } }

/* services bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(240px, auto); gap: 14px; margin-top: var(--head); }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.tile.img { border: 0; }
.tile.img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.tile.img::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(13 15 18 / .05) 25%, rgb(13 15 18 / .95) 92%); }
.tile.img p { color: #d9dce0; }
.tile:hover img { transform: scale(1.06); }
.tile h3 { margin-bottom: 8px; }
.tile p { font-size: .95rem; }
.tile.blue { background: var(--accent); border: 0; }
.tile.blue h3, .tile.blue p { color: var(--accent-ink); }
.t-a { grid-column: span 4; grid-row: span 2; }
.t-b { grid-column: span 2; }
.t-c { grid-column: span 2; }
.t-d { grid-column: span 3; }
.t-e { grid-column: span 3; }
.spot::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgb(74 134 232 / .16), transparent 60%); }
.spot:hover::after { opacity: 1; }

/* feature dom */
.dom { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dom .big { grid-column: 1 / -1; padding: clamp(28px, 5vw, 64px); border-radius: var(--radius); background: radial-gradient(120% 140% at 100% 0%, rgb(74 134 232 / .22), transparent 55%), var(--bg-2); border: 1px solid var(--line); }
.dom .big h2 { max-width: 16ch; margin-bottom: 24px; }
.dom .big p { font-size: 1.1rem; }

.dom-feat { padding: var(--sec) 0; min-height: 70svh; display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.dom-bg { position: absolute; inset: 0; z-index: -1; }
.dom-bg img { width: 100%; height: 100%; object-fit: cover; }
.dom-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(13 15 18 / .92) 0%, rgb(13 15 18 / .6) 50%, rgb(13 15 18 / .15)), linear-gradient(180deg, var(--bg), transparent 15%, transparent 85%, var(--bg)); }
.dom-card { max-width: 560px; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); background: rgb(13 15 18 / .55); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.dom-card h2 { margin-bottom: 20px; }
.dom-card p { color: #d9dce0; margin-bottom: 28px; }

/* why */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: stretch; }
.why-media { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 520px; }
.why-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.why-stats { position: absolute; left: 16px; right: 16px; bottom: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.why-stats div { padding: 16px; border-radius: 12px; background: rgb(13 15 18 / .7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #ece9e4; }
.why-stats b { display: block; font: 600 clamp(1.4rem, 2.2vw, 1.9rem)/1 "Bricolage Grotesque", sans-serif; letter-spacing: -.03em; margin-bottom: 6px; }
.why-stats span { font-size: .8rem; color: #c9ccd1; }
.why-list { display: flex; flex-direction: column; justify-content: center; }
.why-list h2 { margin-bottom: var(--head); }
.why-item { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.why-item:last-child { border-bottom: 1px solid var(--line); }
.why-item .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: var(--accent); color: var(--accent-ink); transition: transform .5s var(--ease); }
.why-item:hover .ic { transform: rotate(-8deg) scale(1.06); }
.why-item h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); margin-bottom: 6px; }
.why-item p { font-size: .98rem; }

/* gallery strip (horizontal drag) */
.strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--pad); margin-top: var(--head); scrollbar-width: none; cursor: grab; }
.strip::-webkit-scrollbar { display: none; }
.strip figure { flex: 0 0 clamp(200px, 22vw, 320px); aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; scroll-snap-align: start; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); pointer-events: none; }
.strip figure:hover img { transform: scale(1.05); }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }

/* reviews */
.reviews { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; margin-top: var(--head); }
.review { box-shadow: var(--shadow); padding: 32px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.review blockquote { font-size: 1.2rem; line-height: 1.45; color: var(--text); }
.review:first-child { grid-row: span 3; }
.review:first-child blockquote { font: 500 clamp(1.5rem, 2.4vw, 2rem)/1.25 "Bricolage Grotesque", sans-serif; letter-spacing: -.02em; }
.review footer { font-size: .9rem; color: var(--muted); }
.review footer b { color: var(--text); font-weight: 600; display: block; }
.stars { color: var(--accent-text); letter-spacing: 3px; }

/* cta */
.cta { overflow: hidden; }
.cta .box { position: relative; border-radius: calc(var(--radius) * 2); overflow: hidden; padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 64px); isolation: isolate; }
.cta .box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta .box::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgb(13 15 18 / .94) 30%, rgb(13 15 18 / .35)); }
.cta h2 { max-width: 14ch; margin-bottom: 20px; }
.cta p { color: #c9ccd1; margin-bottom: 32px; }

/* services page groups */
.groups { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: var(--head); }
.group { box-shadow: var(--shadow); grid-column: span 2; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); position: relative; overflow: hidden; display: flex; flex-direction: column; }
.group:nth-child(n+4) { grid-column: span 3; }
.g-img { aspect-ratio: 16/10; overflow: hidden; }
.g-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.group:hover .g-img img { transform: scale(1.06); }
.g-body { padding: 28px; position: relative; }
.group h3 { margin-bottom: 18px; }
.group ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.group li { padding: 8px 14px; border-radius: 999px; background: var(--soft); font-size: .92rem; color: var(--text); }
.group .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 24px; margin: -52px 0 18px; position: relative; box-shadow: 0 8px 24px rgb(13 15 18 / .5); }

/* references */
.refs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: var(--head); }
.ref { box-shadow: var(--shadow); border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.ref .thumb { aspect-ratio: 16/10; overflow: hidden; }
.ref .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ref:hover .thumb img { transform: scale(1.06); }
.thumb.noimg { display: grid; place-items: center; font-size: 64px; color: var(--accent-text); background: radial-gradient(90% 120% at 0% 0%, rgb(74 134 232 / .28), transparent 60%), var(--bg-3); }
.ref-body { padding: 28px; }
.ref h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin: 10px 0; }
.ref p { font-size: .98rem; color: var(--muted); }
.tag { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--accent-text); background: rgb(74 134 232 / .12); padding: 5px 12px; border-radius: 999px; }
.ref.feat { grid-column: 1 / -1; flex-direction: row; }
.ref.feat .thumb { flex: 1.3; aspect-ratio: auto; min-height: 380px; }
.ref.feat .ref-body { flex: 1; align-self: center; padding: clamp(28px, 4vw, 56px); }
.ref.feat h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }

/* gallery grid */
.masonry { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(140px, 17vw, 240px); grid-auto-flow: dense; gap: 8px; margin-top: var(--head); }
.masonry button { position: relative; border: 0; padding: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--bg-3); }
/* 1 large + 4 small = two full rows, no holes; keep the image count a multiple of 5 */
.masonry button:nth-child(5n+1) { grid-column: span 2; grid-row: span 2; }
.masonry img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.masonry button::after { content: "B"; position: absolute; inset: auto 12px 12px auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: rgb(13 15 18 / .7); color: #ece9e4; opacity: 0; transform: scale(.8); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.masonry button:hover::after, .masonry button:focus-visible::after { opacity: 1; transform: none; }
.masonry button:hover img { transform: scale(1.05); }
.lb { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgb(8 9 11 / .94); opacity: 0; pointer-events: none; transition: opacity .4s var(--ease); }
.lb.on { opacity: 1; pointer-events: auto; }
.lb img { max-width: 92vw; max-height: 84dvh; border-radius: 10px; transform: scale(.94); transition: transform .5s var(--ease); }
.lb.on img { transform: none; }
.lb button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: rgb(236 233 228 / .06); color: var(--text); font-size: 20px; cursor: pointer; }
.lb .x { top: 20px; right: 20px; }
.lb .pv { left: 20px; top: 50%; translate: 0 -50%; }
.lb .nx { right: 20px; top: 50%; translate: 0 -50%; }
.lb .ct { position: absolute; bottom: 24px; color: var(--muted); font-size: .9rem; }

/* about */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 24px; margin-top: var(--head); }
.values div { padding: 0; }
.values img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); margin-bottom: 22px; }
.values b { display: block; font: 600 1.25rem "Bricolage Grotesque", sans-serif; margin-bottom: 10px; }
.prose p { font-size: 1.12rem; margin-bottom: 18px; }
.prose p:first-child { color: var(--text); font: 500 clamp(1.4rem, 2.4vw, 2rem)/1.3 "Bricolage Grotesque", sans-serif; letter-spacing: -.02em; max-width: 30ch; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); }
.cinfo a, .cinfo div { display: block; padding: 24px 0; border-top: 1px solid var(--line); }
.cinfo small { display: block; color: var(--muted); font-size: .85rem; margin-bottom: 4px; }
.cinfo span { font: 500 clamp(1.2rem, 2.2vw, 1.7rem) "Bricolage Grotesque", sans-serif; letter-spacing: -.02em; transition: color .3s; }
.cinfo a:hover span { color: var(--accent-text); }
form { box-shadow: var(--shadow); display: grid; gap: 18px; padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
label { display: grid; gap: 8px; font-size: .9rem; color: var(--text); font-weight: 500; }
input, textarea { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--soft-2); border-radius: 10px; padding: 14px 16px; transition: border-color .3s, box-shadow .3s; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgb(74 134 232 / .2); }
textarea { min-height: 150px; resize: vertical; }
.hint { font-size: .85rem; color: var(--muted); }
.map { background: var(--bg-2); margin-top: 14px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 320px; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* footer */
.foot { padding: var(--sec) 0 32px; border-top: 1px solid var(--line); }
.foot .big { font: 700 clamp(3rem, 13vw, 12rem)/.9 "Bricolage Grotesque", sans-serif; letter-spacing: -.05em; color: var(--soft); margin-top: 40px; white-space: nowrap; }
.foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot .cols a { display: block; color: var(--muted); padding: 4px 0; transition: color .3s; }
.foot .cols a:hover { color: var(--text); }
.foot h4 { font-size: .95rem; margin-bottom: 12px; }
.foot .copy { color: var(--muted); font-size: .85rem; margin-top: 24px; }

/* floating CTA */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 55; display: flex; gap: 10px; align-items: center; animation: fabin .9s var(--ease) 1.2s both; transition: opacity .4s var(--ease), translate .4s var(--ease); }
.fab.away { opacity: 0; translate: 0 24px; pointer-events: none; }
.fab-main { position: relative; box-shadow: 0 12px 40px rgb(74 134 232 / .35), 0 4px 14px rgb(0 0 0 / .4); padding: 16px 24px; }
.fab-main::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid var(--accent); opacity: 0; animation: ping 2.8s var(--ease) 2.5s infinite; pointer-events: none; }
.fab-call { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-3); border: 1px solid var(--line); font-size: 22px; box-shadow: 0 8px 24px rgb(0 0 0 / .4); }
@keyframes fabin { from { opacity: 0; transform: translateY(30px); } }
@keyframes ping { 0% { opacity: .8; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.25); } }

/* progress bar */
.prog { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  .prog { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

@media (max-width: 1024px) {
  .nav ul, .nav > .btn { display: none; }
  .burger { display: block; }
  .nav.open { height: auto; border-radius: 24px; flex-wrap: wrap; padding: 10px 10px 16px 22px; background: rgb(13 15 18 / .96); }
  .nav.open .logo { height: 44px; display: flex; align-items: center; }
  .nav.open ul { display: flex; flex-direction: column; gap: 2px; width: 100%; order: 3; margin: 8px 0 12px; padding-right: 12px; }
  .nav.open ul a { font-size: 1.15rem; padding: 14px 16px; border-radius: 12px; }
  .nav.open > .btn { display: flex; justify-content: center; order: 4; width: calc(100% - 12px); }
}
@media (max-width: 860px) {
  .hero-media::after { background: linear-gradient(180deg, rgb(13 15 18 / .55) 0%, rgb(13 15 18 / .45) 30%, rgb(13 15 18 / .88) 62%, var(--bg) 100%); }
  .hero .wrap { padding-bottom: 96px; }
  .intro, .contact, .why-grid { gap: 28px; }
  h1 { font-size: clamp(2.3rem, 10vw, 3.2rem); }
  .why-grid, .refs, .groups { grid-template-columns: 1fr; }
  .masonry { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 6px; }
  .why-media { min-height: 420px; }
  .why-stats { left: 10px; right: 10px; bottom: 10px; gap: 6px; }
  .why-stats div { padding: 10px; }
  .why-stats b { font-size: 1.15rem; }
  .why-stats span { display: block; font-size: .72rem; line-height: 1.3; }
  .group, .group:nth-child(n+4) { grid-column: auto; }
  .ref.feat { flex-direction: column; }
  .ref.feat .thumb { min-height: 240px; }
  .dom-feat { align-items: end; padding-bottom: 40px; }
  .dom-bg::after { background: linear-gradient(180deg, var(--bg), transparent 15%, transparent 35%, rgb(13 15 18 / .9) 70%); }
  .fab { left: 16px; right: 16px; bottom: 16px; }
  .fab-main { flex: 1; justify-content: center; }

  .hero .wrap, .intro, .contact, .dom, .foot .cols { grid-template-columns: 1fr; }
  .hero-side { justify-self: start; text-align: left; }
  .bento { grid-template-columns: 1fr; }
  .bento > * { grid-column: auto; grid-row: auto; min-height: 260px; }
  .reviews { grid-template-columns: 1fr; }
  .review:first-child { grid-row: auto; }
  .groups { grid-template-columns: 1fr; }
  .group, .group.wide { grid-column: auto; }
  .ref { grid-template-columns: 1fr; gap: 14px; }
  .ref .tag { justify-self: start; }
  .values { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv, .split .w > span { opacity: 1; transform: none; }
  .clip { opacity: 1; }
}
