/* ТРИ ГРУП ИНВЕСТ — demo site
   Direction: "Photographs at uneven sizes" (taste-skill, seed 2091751242), palette "Stone and blueprint".
   Type: Noto Serif Display Light (display) + Manrope (text), both with Cyrillic. */

@font-face { font-family: 'Noto Serif Display'; font-style: normal; font-weight: 300 400; font-display: swap; src: url(/fonts/noto-serif-display-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Noto Serif Display'; font-style: normal; font-weight: 300 400; font-display: swap; src: url(/fonts/noto-serif-display-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/manrope-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/manrope-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #ededea;
  --surface: #e2e2de;
  --surface-2: #d5d5d0;
  --paper: #f7f7f5;
  --ink: #1a1c21;
  --muted: #53555b;
  --accent: #1f4fd1;
  --accent-deep: #173fb0;
  --accent-ink: #ffffff;
  --plan: #1840b2;
  --night: #15171b;
  --viber: #7360f2;
  --viber-deep: #5e4bd8;
  --fill: #c4312b;

  --f-display: 'Noto Serif Display', 'Times New Roman', serif;
  --f-text: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.3125rem, 1.05rem + 0.85vw, 1.875rem);
  --step-head: clamp(2.375rem, 1.45rem + 3.4vw, 4.75rem);
  --step-display: clamp(3.6rem, 1rem + 9vw, 10rem);

  --margin: clamp(20px, 5.2vw, 100px);
  --gap: clamp(14px, 1.7vw, 28px);
  --section: clamp(104px, 11vw, 200px);
  --header-h: 76px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

/* ---------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--step-body)/1.6 var(--f-text);
  font-feature-settings: "locl" 0; /* standard Cyrillic letterforms */
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
*, *::before, *::after { font-feature-settings: "locl" 0 !important; }
[hidden] { display: none !important; }
img, video, svg { display: block; max-width: 100%; }
picture { display: block; }
/* frames with a fixed ratio: the picture fills the frame, the photo is cropped */
.svc__frame, .moment__pic, .about__photo, .scope__pic, .phero__small, .phero__tall, .kmap a, .work__item picture, .strip__item picture, .g-item__btn picture { position: relative; overflow: clip; }
.svc__frame > picture, .moment__pic > picture, .about__photo > picture, .scope__pic > picture, .phero__small > picture, .phero__tall > picture, .kmap > a > picture { position: absolute; inset: 0; }
.svc__frame img, .moment__pic img, .about__photo img, .scope__pic img, .phero__small img, .phero__tall img, .kmap img, .work__item img, .strip__item img, .g-item__btn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2 { font: 300 var(--step-head)/1 var(--f-display); letter-spacing: -0.025em; text-wrap: balance; }
h3 { font: 600 var(--step-body)/1.35 var(--f-text); }
.statement { font: 400 var(--step-lead)/1.38 var(--f-text); letter-spacing: -0.01em; text-wrap: pretty; }
.lead { font-size: var(--step-lead); line-height: 1.4; }
.small { font-size: var(--step-small); line-height: 1.5; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }

.ico { width: 1.25em; height: 1.25em; flex: none; }
.ico--l { transform: scaleX(-1); }

/* ---------- buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 54px; padding: 0 26px; border: 0; border-radius: 0; cursor: pointer;
  font: 600 1rem/1.1 var(--f-text); letter-spacing: 0.005em; text-decoration: none; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--viber { background: var(--viber); color: #fff; }
.btn .ico { width: 1.15em; height: 1.15em; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn--accent:hover { background: var(--accent-deep); }
  .btn--paper:hover { background: #fff; }
  .btn--viber:hover { background: var(--viber-deep); }
  .btn:hover .ico:last-child:not(:first-child) { transform: translateX(3px); }
}
.link {
  display: inline-flex; align-items: center; gap: 0.45em; font-weight: 600; text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 0.28em; transition: color 200ms ease, text-underline-offset 200ms var(--ease-out);
}
.link .ico { width: 1.1em; height: 1.1em; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link:hover { color: var(--accent); text-underline-offset: 0.36em; }
  .link:hover .ico { transform: translateX(3px); }
}
.sq {
  width: 52px; height: 52px; display: grid; place-items: center; border: 0; border-radius: 0; cursor: pointer;
  background: var(--ink); color: #fff; transition: transform 160ms var(--ease-out), background-color 200ms ease, opacity 200ms ease;
}
.sq:active { transform: scale(0.95); }
.sq[disabled] { opacity: 0.3; cursor: default; }
@media (hover: hover) and (pointer: fine) { .sq:not([disabled]):hover { background: var(--accent); } }

/* ---------- demo marks */
.demo-fill, .demo-confirm { text-decoration: underline wavy; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
.demo-fill { text-decoration-color: var(--fill); }
.demo-confirm { text-decoration-color: var(--accent); }
.demo-fill::after, .demo-confirm::after {
  content: attr(data-note); display: inline-block; margin-left: 0.4em; padding: 0.05em 0.45em; vertical-align: 0.12em;
  font: 600 0.8125rem/1.35 var(--f-text); letter-spacing: 0; text-decoration: none; white-space: nowrap;
  color: #fff; background: var(--fill);
}
.demo-confirm::after { background: var(--accent); }
.notes-off .demo-fill, .notes-off .demo-confirm { text-decoration: none; }
.notes-off .demo-fill::after, .notes-off .demo-confirm::after { display: none; }
.sample { color: inherit; }

/* ---------- header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-inline: var(--margin);
  color: var(--ink); background: transparent;
  transition: background-color 300ms ease, color 300ms ease, transform 400ms var(--ease-drawer);
  view-transition-name: site-header;
}
.site-header[data-theme="over-media"] { color: #fff; }
.site-header.is-solid { background: var(--bg); color: var(--ink); }
.site-header.is-hidden { transform: translateY(-100%); }
.wordmark { font: 500 var(--step-body)/1 var(--f-text); letter-spacing: 0.04em; text-decoration: none; white-space: nowrap; }
.wordmark b { font-weight: 800; }
.nav__list { display: flex; gap: clamp(18px, 2.4vw, 40px); align-items: center; }
.nav__link { font: 600 var(--step-small)/1 var(--f-text); text-decoration: none; background: none; border: 0; padding: 10px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; position: relative; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 250ms var(--ease-out); }
.nav__link[aria-current="page"]::after, .nav__link[data-current]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .nav__link:hover::after { transform: scaleX(1); } }
.nav__btn svg { transition: transform 200ms var(--ease-out); }
.nav__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.has-sub { position: relative; }
.sub {
  display: none; position: absolute; top: calc(100% + 14px); left: -24px; width: 380px; padding: 10px; background: var(--paper); color: var(--ink);
  box-shadow: 0 18px 50px rgb(20 20 24 / 0.18); /* taste-skill-ignore: dropdown is a real overlay */
  transform-origin: 40px 0;
}
.has-sub.is-open .sub { display: block; animation: sub-in 200ms var(--ease-out); }
@keyframes sub-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
.sub a { display: grid; gap: 2px; padding: 14px 16px; text-decoration: none; transition: background-color 150ms ease; }
.sub a span { font-weight: 600; }
.sub a small { font-size: var(--step-small); color: var(--muted); }
.sub a:hover, .sub a:focus-visible, .sub a[aria-current="page"] { background: var(--surface); }
.header__actions { display: flex; align-items: center; gap: 20px; }
.header__phone { font: 600 var(--step-small)/1 var(--f-text); text-decoration: none; white-space: nowrap; }
.header__cta { min-height: 46px; padding: 0 20px; font-size: var(--step-small); }
.menu-toggle { display: none; }

@media (max-width: 1023px) {
  .nav, .header__phone { display: none; }
  .header__cta { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 12px; height: 46px; padding: 0 0 0 14px; border: 0; background: none; cursor: pointer; font-weight: 600; }
  .menu-toggle__bars { width: 26px; height: 10px; position: relative; }
  .menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform 300ms var(--ease-out); }
  .menu-toggle__bars::before { top: 0; } .menu-toggle__bars::after { bottom: 0; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-4px) rotate(-45deg); }
}
.mobile-menu {
  position: fixed; inset: 0; z-index: 39; background: var(--bg); padding: calc(var(--header-h) + 16px) var(--margin) 120px;
  display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto;
  opacity: 0; transform: translateY(-12px); transition: opacity 240ms var(--ease-out), transform 300ms var(--ease-out);
}
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu a:not(.btn) { display: block; padding: 10px 0; font: 300 clamp(1.75rem, 7vw, 2.5rem)/1.15 var(--f-display); text-decoration: none; }
.mobile-menu a[aria-current="page"] { color: var(--accent); }
.mobile-menu__contact { display: grid; gap: 14px; margin-top: 32px; }
.menu-open .site-header { background: var(--bg); color: var(--ink); }
.menu-open { overflow: hidden; }

/* ---------- home hero */
.hero { position: relative; height: 100svh; min-height: 620px; color: #fff; overflow: clip; background: #3a3a38; }
.hero__media, .hero__media > * { position: absolute; inset: 0; }
.hero__media { z-index: 0; } /* the videos stack inside, always under the scrim */
.hero__media img, .hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__video { opacity: 0; transition: opacity 1100ms ease; }
.hero__video.is-on { opacity: 1; }
.hero__video.is-front { z-index: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to right, rgb(12 12 14 / 0.5) 0%, rgb(12 12 14 / 0.34) 30%, rgb(12 12 14 / 0.1) 56%, rgb(12 12 14 / 0) 72%), /* taste-skill-ignore: neutral scrim */
    linear-gradient(to top, rgb(12 12 14 / 0.74) 0%, rgb(12 12 14 / 0.42) 30%, rgb(12 12 14 / 0.1) 56%, rgb(12 12 14 / 0) 74%), /* taste-skill-ignore: neutral scrim */
    linear-gradient(to bottom, rgb(14 14 16 / 0.4), rgb(14 14 16 / 0) 20%); /* taste-skill-ignore: neutral scrim */
}
.hero__content { position: absolute; inset: auto 0 clamp(28px, 6vh, 72px) 0; z-index: 2; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
.hero__title { grid-column: 1 / -1; font: 400 var(--step-display)/0.94 var(--f-display); letter-spacing: -0.035em; margin-bottom: clamp(24px, 3.4vh, 40px); }
.hero__title .line, .stepped .line { display: block; overflow: clip; padding-bottom: 0.3em; margin-bottom: -0.3em; } /* room for descenders: д, р, у, щ, ц */
.hero__title .line > span, .stepped .line > span { display: block; }
.hero__title .line--2 { padding-left: calc((100% - 11 * var(--gap)) / 12 * 3 + 3 * var(--gap)); }
.hero__foot { grid-column: 1 / span 7; display: grid; gap: 26px; }
.hero__lead { max-width: 40ch; font-size: var(--step-body); font-weight: 500; line-height: 1.5; color: #f2f2f0; }
.hero__lead b { font-weight: 700; color: #fff; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__where { grid-column: 9 / -1; justify-self: end; text-align: right; margin-bottom: 64px; font-size: var(--step-small); line-height: 1.5; color: #ececea; }
.hero__actions .btn--paper .ico { width: 1.1em; height: 1.1em; }

/* load animation: each headline line rises from behind its baseline */
@keyframes rise { from { transform: translateY(calc(100% + 0.34em)); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero__title .line > span, .stepped .line > span { animation: rise 1000ms var(--ease-out) both; animation-delay: 120ms; }
  .hero__title .line--2 > span, .stepped .line--2 > span { animation-delay: 230ms; }
  .hero__foot, .hero__where, .phero__lead, .ghero__lead, .filters { animation: fade-up 700ms var(--ease-out) both; animation-delay: 520ms; }
}

/* ---------- inner-page hero: stepped title, two photographs */
.phero, .ghero { padding-top: calc(var(--header-h) + clamp(24px, 6vh, 64px)); }
.phero {
  position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  grid-template-rows: auto auto auto; min-height: min(100svh, 980px); padding-bottom: clamp(56px, 8vw, 120px); align-content: start;
}
.phero__small { grid-column: 10 / -1; grid-row: 1; align-self: start; aspect-ratio: 16 / 10; overflow: clip; margin-bottom: 20px; }
.phero__small img, .phero__tall img { width: 100%; height: 100%; object-fit: cover; }
.stepped {
  --W: calc(100vw - 2 * var(--margin));
  --fs: min(var(--fs-max, var(--step-display)), calc(var(--W) / (var(--n1) * 0.58)), calc(var(--W) / (var(--n2) * 0.58 + 0.9)));
  font: 300 var(--fs)/0.94 var(--f-display); letter-spacing: -0.035em; white-space: nowrap;
}
.phero .stepped { grid-column: 1 / -1; grid-row: 2; }
.stepped .line--2 { padding-left: clamp(0.9em, calc(100% - var(--n2) * 0.58 * var(--fs)), var(--indent2, 2.2em)); }
.phero .stepped { --indent2: 41.6%; }
.phero .stepped .line:first-child { padding-left: clamp(0px, calc(100% - var(--n1) * 0.58 * var(--fs)), 8.33%); }
.phero__tall { grid-column: 2 / span 4; grid-row: 3; aspect-ratio: 4 / 5; overflow: clip; margin-top: 28px; }
.phero__lead { grid-column: 6 / span 6; grid-row: 3; align-self: start; padding-top: clamp(28px, 4vw, 56px); display: grid; gap: 28px; }
.phero__lead p { font-size: var(--step-lead); line-height: 1.4; max-width: 34ch; }
.phero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; }

/* ---------- the building that rises with the scroll (three.js), pinned for several screens */
.build { --navy: #0f1d3f; position: relative; height: 560vh; background: var(--navy); color: #fff; }
.build__stage { position: sticky; top: 0; height: 100svh; overflow: clip; }
.build__canvas, .build__poster, .build__poster img { position: absolute; inset: 0; width: 100%; height: 100%; }
.build__poster img { object-fit: cover; }
.build__poster { transition: opacity 500ms ease; }
.build__poster--final { opacity: 0; }
.build.is-live .build__poster { opacity: 0; }
.build.is-static .build__poster--start { opacity: 0; }
.build.is-static .build__poster--final { opacity: 1; }
.build__canvas { display: block; }
.build__ui { position: absolute; inset: 0; pointer-events: none; display: grid; grid-template-rows: auto 1fr auto; padding-top: calc(var(--header-h) + clamp(20px, 3vh, 40px)); padding-bottom: clamp(28px, 4.5vh, 48px); }
.build__head { display: flex; justify-content: space-between; align-items: start; gap: 24px; }
.build__title { color: #fff; font-size: var(--step-head); }
.build__note { max-width: 24ch; text-align: right; color: rgb(255 255 255 / 0.7); font-size: var(--step-small); }
.build__caps { position: relative; align-self: end; min-height: 11rem; }
.build__cap { position: absolute; left: 0; bottom: 0; max-width: 34rem; opacity: 0; transform: translateY(14px); transition: opacity 450ms var(--ease-out), transform 600ms var(--ease-out); }
.build__cap.is-on { opacity: 1; transform: none; }
.build__cap h3 { font: 300 clamp(2.4rem, 1rem + 4.2vw, 5.75rem)/0.95 var(--f-display); letter-spacing: -0.035em; }
.build__cap p { margin-top: 14px; font-size: var(--step-lead); line-height: 1.35; color: rgb(255 255 255 / 0.82); }
.build__progress { margin-top: clamp(20px, 3vh, 36px); }
.build__steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); padding-bottom: 12px; font-size: var(--step-small); color: rgb(255 255 255 / 0.5); }
.build__steps li { transition: color 300ms ease; }
.build__steps li.is-on { color: #fff; }
.build__bar { height: 4px; background: rgb(255 255 255 / 0.16); overflow: clip; }
.build__bar span { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.build.is-static { height: auto; }
.build.is-static .build__stage { position: relative; }
.build.is-static .build__cap { opacity: 0; } .build.is-static .build__cap:last-child { opacity: 1; transform: none; }
.build.is-static .build__bar span { transform: none; }

/* ---------- intro: a large photograph to the edge, a detail laid over it */
.intro {
  display: grid; grid-template-columns: minmax(0, 57fr) minmax(0, 43fr); column-gap: clamp(40px, 7vw, 128px);
  align-items: center; padding-block: var(--section); padding-right: var(--margin);
}
.intro__media { position: relative; height: min(90svh, 860px); min-height: 520px; }
.intro__big { position: absolute; inset: 0; overflow: clip; }
.intro__big > picture { position: absolute; inset: 0; }
.intro__big img, .intro__small img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.intro__small { position: absolute; right: calc(clamp(40px, 7vw, 128px) * -0.55); bottom: -9%; width: 34%; aspect-ratio: 4 / 5; padding: clamp(8px, 0.8vw, 14px); background: var(--bg); }
.intro__small > picture { position: absolute; inset: clamp(8px, 0.8vw, 14px); overflow: clip; }
.intro__text { display: grid; gap: clamp(22px, 2.2vw, 32px); max-width: 36rem; }
.intro__say { font: 300 clamp(2.3rem, 1rem + 3.4vw, 4.6rem)/1 var(--f-display); letter-spacing: -0.03em; }
.intro__say span { display: block; white-space: nowrap; }
.intro__say span + span { padding-left: 0.9em; }
.intro__p { max-width: 42ch; }
.intro__list { display: grid; gap: 4px; margin-top: 6px; }
.intro__list li { display: grid; gap: 4px; padding: 16px 20px 18px; background: var(--surface); }
.intro__list li:nth-child(2) { background: var(--surface-2); }
.intro__list li:nth-child(3) { background: #cbcbc5; }
.intro__list b { font: 400 var(--step-lead)/1.15 var(--f-display); letter-spacing: -0.01em; }
.intro__list span { font-size: var(--step-small); color: var(--muted); }
.intro__legal { color: var(--muted); }
.intro__legal .link { color: var(--ink); }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px var(--gap); }
.facts dt { font-size: var(--step-small); color: var(--muted); }
.facts dd { font-weight: 600; }

/* ---------- services: frame run, one lifted */
.services { padding-bottom: var(--section); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.services__head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: end; gap: 24px; padding-bottom: clamp(32px, 4vw, 56px); }
.services__head p { max-width: 30ch; text-align: right; color: var(--muted); }
.services__head h2, .proof__head h2, .field__h, .ref__h, .faq__h, .strip__head h2, .more h2, .credits h2, .story__h, .team h2, .data__h, .reviews__h { font-size: var(--step-head); }
.services__run { grid-column: 1 / -1; display: flex; gap: 8px; align-items: flex-end; height: clamp(440px, 70vh, 760px); }
.svc { flex: 1 1 0; min-width: 0; height: 100%; display: flex; transition: flex-grow 600ms var(--ease-in-out); }
.svc.is-lifted { flex-grow: 2.1; }
.svc__link { display: flex; flex-direction: column; width: 100%; text-decoration: none; }
.svc__frame { flex: 1; overflow: clip; position: relative; background: var(--surface); }
.svc__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.svc:not(.is-lifted) .svc__frame { margin-top: 30%; }
.svc__frame { transition: margin-top 600ms var(--ease-in-out); }
.svc__cap { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; padding-top: 14px; min-height: 118px; align-content: start; }
.svc__cap h3 { font: 400 var(--step-lead)/1.12 var(--f-display); letter-spacing: -0.01em; }
.svc__cap span { grid-column: 1; font-size: var(--step-small); color: var(--muted); margin-top: 6px; }
.svc__arrow { grid-column: 2; grid-row: 1; width: 26px; height: 26px; transition: transform 250ms var(--ease-out), color 200ms; }
@media (hover: hover) and (pointer: fine) {
  .svc__link:hover .svc__frame img { transform: scale(1.04); }
  .svc__link:hover .svc__arrow { transform: translateX(4px); color: var(--accent); }
}

/* ---------- blueprint compare */
.plan { padding-bottom: var(--section); }
.plan__head { align-items: end; padding-bottom: clamp(32px, 4vw, 56px); }
.plan__head h2 { grid-column: 1 / span 6; }
.plan__text { grid-column: 8 / span 5; max-width: 44ch; }
.compare { position: relative; height: min(92svh, 58vw); min-height: 360px; overflow: clip; user-select: none; touch-action: pan-y; cursor: ew-resize; background: var(--plan); }
.compare picture, .compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
/* the photo is revealed through a sliding window: two opposite translations, no repaint per frame */
.compare__photo { position: absolute; inset: 0; overflow: clip; transform: translateX(var(--p)); will-change: transform; }
.compare__photo > picture { transform: translateX(calc(-1 * var(--p))); will-change: transform; }
.compare__track { position: absolute; inset: 0; transform: translateX(var(--p)); will-change: transform; pointer-events: none; }
.compare__line { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px; background: #fff; }
.compare__knob { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; display: flex; align-items: center; justify-content: center; gap: 0; background: #fff; color: var(--ink); border-radius: 50%; transition: transform 200ms var(--ease-out); }
.compare__knob .ico { width: 20px; height: 20px; }
.compare.is-dragging .compare__knob { transform: scale(0.92); }
.compare__tag { position: absolute; top: 24px; padding: 8px 14px; font-weight: 600; font-size: var(--step-small); background: rgb(255 255 255 / 0.94); color: var(--ink); pointer-events: none; }
.compare__tag--l { left: var(--margin); background: #fff; color: var(--plan); }
.compare__tag--r { right: var(--margin); }
.compare__range { position: absolute; inset: auto 0 0 0; width: 100%; opacity: 0; height: 2px; pointer-events: none; }
.compare:focus-within .compare__knob { outline: 2px solid #fff; outline-offset: 4px; }
.plan__note { padding-top: 16px; }

/* ---------- process: drag row of moments */
.process { padding-bottom: var(--section); }
.process__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding-bottom: 28px; }
.process__btns { display: flex; gap: 8px; }
.process__bar { height: 6px; background: var(--surface-2); overflow: clip; }
.process__bar span { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0.15); }
.process__row {
  display: flex; gap: 32px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none;
  padding: 40px var(--margin) 8px; scroll-padding-inline: var(--margin); cursor: grab;
}
.process__row::-webkit-scrollbar { display: none; }
.process__row.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.process__row.is-dragging * { pointer-events: none; }
.moment { flex: 0 0 300px; scroll-snap-align: start; display: flex; flex-direction: column; }
.moment h3 { font: 700 var(--step-body)/1.3 var(--f-text); }
.moment p { margin-top: 10px; font-size: 1rem; line-height: 1.55; min-height: 6.2em; }
.moment__pic { margin-top: var(--gap, 64px); aspect-ratio: 4 / 5; overflow: clip; background: var(--surface); }
.moment__pic img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; transform: translateX(var(--pan, 0%)) scale(1.18); will-change: transform; }

/* ---------- proof: big figures on a deep blue field, the work list as one flowing line */
.proof { --navy: #0f1d3f; background: var(--navy); color: #fff; padding-block: var(--section); }
.proof__head { display: flex; justify-content: space-between; align-items: end; gap: 32px; padding-bottom: clamp(96px, 8vw, 128px); }
.proof__head h2 { color: #fff; }
.proof__head p { max-width: 34ch; color: rgb(255 255 255 / 0.74); text-align: right; }
.proof__stats { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.stat:first-child { grid-column: 1 / span 6; }
.stat:last-child { grid-column: 8 / -1; margin-top: clamp(64px, 9vw, 160px); }
.stat__num { font: 300 clamp(3.4rem, 1.4rem + 6.2vw, 8.25rem)/0.95 var(--f-display); letter-spacing: -0.035em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stat__num small { font-size: 0.42em; letter-spacing: -0.01em; }
.stat h3 { font: 600 var(--step-lead)/1.25 var(--f-text); margin-top: 26px; }
.stat p:not(.stat__num) { margin-top: 10px; color: rgb(255 255 255 / 0.76); max-width: 46ch; }
.proof__works { margin-top: clamp(80px, 10vw, 160px); }
.proof__works h3 { font: 600 var(--step-body)/1.3 var(--f-text); color: rgb(255 255 255 / 0.7); margin-bottom: 18px; }
.proof__cloud { font: 300 clamp(1.6rem, 1rem + 1.6vw, 2.25rem)/1.35 var(--f-display); letter-spacing: -0.01em; }
.proof__cloud span { white-space: nowrap; transition: color 200ms ease; }
.proof__cloud i { font-style: normal; color: #6f86c9; margin: 0 0.4em; }
@media (hover: hover) and (pointer: fine) { .proof__cloud span:hover { color: #b9c8ff; } }
.proof__note { margin-top: 20px; color: rgb(255 255 255 / 0.6); }
.proof .demo-confirm { text-decoration-color: #9fb4ff; }

/* ---------- work: loose scatter */
.work { padding-block: var(--section); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.work__head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: end; gap: 24px; padding-bottom: clamp(32px, 4vw, 64px); }
.work__scatter { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(48px, 8vh, 96px); }
.work__item { display: grid; gap: 10px; align-content: start; }
.work__item picture { overflow: clip; }
.work__item img { width: 100%; height: 100%; object-fit: cover; }
.work__item--a { grid-column: 1 / span 7; grid-row: 1; } .work__item--a picture { aspect-ratio: 3 / 2; }
.work__item--b { grid-column: 9 / -1; grid-row: 1; margin-top: clamp(80px, 12vw, 200px); } .work__item--b picture { aspect-ratio: 4 / 5; }
.work__item--c { grid-column: 5 / span 7; grid-row: 2; margin-top: clamp(-120px, -6vw, -40px); } .work__item--c picture { aspect-ratio: 16 / 9; }
.work__name { font-size: var(--step-small); color: var(--muted); }
.work__desc { font-size: 1rem; }
.work__remark { grid-column: 1 / span 4; grid-row: 2; align-self: center; max-width: 22ch; }

/* ---------- about: wide photo, colour tile, facts */
.about { padding-block: 0 var(--section); }
.about__head { display: grid; gap: 22px; max-width: 760px; padding-bottom: clamp(48px, 5vw, 72px); }
.about__tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 16px; align-items: start; }
.about__photo { grid-column: 1 / span 8; position: relative; aspect-ratio: 16 / 10; overflow: clip; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__over { position: absolute; top: 0; right: 0; width: min(340px, 48%); padding: 22px; background: var(--paper); font-size: 1rem; line-height: 1.55; }
.about__side { grid-column: 9 / -1; display: grid; gap: 28px; }
.about__map { background: var(--accent); color: #fff; padding: clamp(18px, 2vw, 32px); aspect-ratio: 4 / 3.1; display: grid; place-items: center; }
.about__map svg { width: 100%; height: auto; overflow: visible; }
.about__map path { fill: rgb(255 255 255 / 0.16); }
.about__map .dot { fill: #fff; }
.about__map .dot--2 { fill: rgb(255 255 255 / 0.7); }
.about__map text { fill: #fff; font: 600 16px var(--f-text); }

/* ---------- closing call to action: a large title, three wide rows, a tall photograph to the edge */
.cta { padding-block: clamp(56px, 6vw, 112px) var(--section); }
.cta__in { display: grid; grid-template-columns: minmax(0, 56fr) minmax(0, 44fr); column-gap: clamp(40px, 7vw, 128px); padding-left: var(--margin); align-items: stretch; }
.cta__main { display: grid; gap: clamp(22px, 2.4vw, 34px); align-content: center; }
.cta__title { font: 300 clamp(2.8rem, 1rem + 5vw, 6.5rem)/0.95 var(--f-display); letter-spacing: -0.035em; }
.cta__title span { display: block; white-space: nowrap; }
.cta__title span + span { padding-left: 1.1em; }
.cta__lead { font-size: var(--step-lead); line-height: 1.4; max-width: 30ch; }
.cta__rows { display: grid; gap: 4px; }
.cta__row {
  display: grid; grid-template-columns: 1fr auto 28px; align-items: center; gap: 20px;
  min-height: clamp(78px, 7vw, 104px); padding: 0 clamp(20px, 2vw, 32px); background: var(--surface); text-decoration: none;
  transition: background-color 250ms ease, color 250ms ease, transform 160ms var(--ease-out); -webkit-tap-highlight-color: transparent;
}
.cta__row:nth-child(2) { background: var(--surface-2); }
.cta__row:nth-child(3) { background: #cbcbc5; }
.cta__row:active { transform: scale(0.99); }
.cta__k { font: 300 clamp(1.6rem, 1rem + 1.6vw, 2.5rem)/1.1 var(--f-display); letter-spacing: -0.015em; }
.cta__v { font-size: var(--step-small); color: var(--muted); transition: color 250ms ease; }
/* the arrow is drawn by the row itself (a masked shape), so the rows stay plain text */
.cta__row::after {
  content: ""; width: 28px; height: 28px; background: currentColor; transition: transform 250ms var(--ease-out);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (hover: hover) and (pointer: fine) {
  .cta__row:hover { background: var(--accent); color: #fff; }
  .cta__row[data-viber]:hover { background: var(--viber); }
  .cta__row:hover .cta__v { color: rgb(255 255 255 / 0.85); }
  .cta__row:hover::after { transform: translateX(6px); }
}
.cta__where { color: var(--muted); }
.cta__pic { position: relative; min-height: min(86svh, 820px); overflow: clip; }
.cta__pic > picture { position: absolute; inset: 0; }
.cta__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- service pages */
.scope { padding-block: var(--section); align-items: start; }
.scope__pic { grid-column: 1 / span 5; aspect-ratio: 4 / 5; overflow: clip; }
.scope__pic img { width: 100%; height: 100%; object-fit: cover; }
.scope__list { grid-column: 7 / -1; display: grid; gap: clamp(32px, 3vw, 48px); }
.scope__list ul { display: grid; gap: clamp(24px, 2.4vw, 36px); }
.scope__list h3 { font: 400 var(--step-lead)/1.2 var(--f-display); letter-spacing: -0.01em; }
.scope__list p { margin-top: 8px; max-width: 52ch; }

.field { background: var(--surface); padding-block: var(--section); }
.field__say { grid-column: 1 / span 8; }
.field__h { grid-column: 1 / -1; margin-top: clamp(64px, 7vw, 112px); margin-bottom: clamp(28px, 3vw, 44px); font-size: clamp(2rem, 1.3rem + 2.2vw, 3.25rem); }
.field__steps { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.field__steps li { padding-top: 18px; border-top: 6px solid var(--ink); }
.field__steps li:nth-child(2) { border-color: var(--surface-2); }
.field__steps li:nth-child(n+2) { border-top-color: var(--surface-2); }
.field__steps h3 { font: 700 var(--step-body)/1.3 var(--f-text); }
.field__steps p { margin-top: 8px; font-size: 1rem; }

.ref { padding-block: var(--section) 0; }
.ref__h { grid-column: 1 / span 4; font-size: clamp(2rem, 1.3rem + 2.2vw, 3.25rem); }
.ref__list { grid-column: 5 / -1; display: grid; gap: clamp(32px, 3vw, 48px); }
.ref__item h3 { font: 400 var(--step-lead)/1.2 var(--f-display); }
.ref__item p { margin-top: 8px; max-width: 62ch; }

.faq { padding-block: var(--section); }
.faq__h { grid-column: 1 / span 4; font-size: clamp(2rem, 1.3rem + 2.2vw, 3.25rem); }
.faq__list { grid-column: 5 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 3vw, 48px) var(--gap); }
.faq__list dt { font-weight: 700; }
.faq__list dd { margin-top: 8px; }

.strip { padding-bottom: var(--section); }
.strip__head { display: flex; justify-content: space-between; align-items: end; padding-bottom: clamp(28px, 3vw, 48px); }
.strip__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.strip__item { display: grid; gap: 10px; }
.strip__item picture { overflow: clip; }
.strip__item img { width: 100%; height: 100%; object-fit: cover; }
.strip__item figcaption { font-size: var(--step-small); color: var(--muted); }
.strip__item--0 { grid-column: 1 / span 5; } .strip__item--0 picture { aspect-ratio: 4 / 5; }
.strip__item--1 { grid-column: 6 / span 4; margin-top: clamp(60px, 9vw, 140px); } .strip__item--1 picture { aspect-ratio: 1; }
.strip__item--2 { grid-column: 10 / -1; } .strip__item--2 picture { aspect-ratio: 3 / 4; }

.more { padding-bottom: var(--section); }
.more h2 { font-size: clamp(2rem, 1.3rem + 2.2vw, 3.25rem); padding-bottom: 24px; }
.more ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.more a { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 96px; padding: 22px 24px; background: var(--surface); text-decoration: none; font: 400 var(--step-lead)/1.15 var(--f-display); transition: background-color 200ms ease, color 200ms ease; }
.more a .ico { transition: transform 200ms var(--ease-out); }
.more a:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) { .more a:hover { background: var(--accent); color: #fff; } .more a:hover .ico { transform: translateX(4px); } }

/* ---------- objects page */
.ghero { display: grid; gap: clamp(24px, 3vw, 40px); padding-bottom: clamp(40px, 5vw, 72px); }
.ghero .stepped { --indent2: 25%; }
.ghero__lead { font-size: var(--step-lead); line-height: 1.4; max-width: 46ch; margin-left: auto; margin-right: calc((100% - 11 * var(--gap)) / 12 * 2); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 46px; padding: 0 20px; border: 0; background: var(--surface); cursor: pointer; font-weight: 600; transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) { .chip:not([aria-pressed="true"]):hover { background: var(--surface-2); } }
.gallery { padding-bottom: var(--section); }
.gallery__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(40px, 5vw, 72px); align-items: start; }
.g-item { display: grid; gap: 10px; transition: opacity 300ms ease; }
.g-item[hidden] { display: none; }
.g-item__btn { display: block; padding: 0; border: 0; background: var(--surface); cursor: zoom-in; overflow: clip; width: 100%; }
.g-item__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .g-item__btn:hover img { transform: scale(1.03); } }
.g-item__cap { font-size: var(--step-small); color: var(--muted); }
.g-item--0 { grid-column: 1 / span 7; } .g-item--0 picture { aspect-ratio: 3 / 2; }
.g-item--1 { grid-column: 9 / -1; margin-top: clamp(40px, 8vw, 140px); } .g-item--1 picture { aspect-ratio: 4 / 5; }
.g-item--2 { grid-column: 2 / span 4; } .g-item--2 picture { aspect-ratio: 4 / 5; }
.g-item--3 { grid-column: 7 / -1; margin-top: clamp(24px, 4vw, 72px); } .g-item--3 picture { aspect-ratio: 16 / 10; }
.g-item--4 { grid-column: 1 / span 5; } .g-item--4 picture { aspect-ratio: 1; }
.g-item--5 { grid-column: 6 / -1; margin-top: clamp(32px, 6vw, 110px); } .g-item--5 picture { aspect-ratio: 16 / 9; }
.gallery.is-filtered .g-item { grid-column: span 6; margin-top: 0; }
.gallery.is-filtered .g-item picture { aspect-ratio: 3 / 2; }

.credits { padding-block: var(--section); }
.credits h2 { font-size: clamp(2rem, 1.3rem + 2.2vw, 3.25rem); }
.credits > p { margin-top: 14px; max-width: 70ch; }
.credits__list { margin-top: 28px; columns: 3 280px; column-gap: var(--gap); font-size: var(--step-small); line-height: 1.5; }
.credits__list li { break-inside: avoid; margin-bottom: 8px; }

.lightbox { width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(16 17 20 / 0.96); color: #fff; }
.lightbox[open] { display: grid; place-items: center; animation: fade-in 220ms var(--ease-out); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: calc(100vw - 2 * var(--margin)); max-height: calc(100svh - 140px); width: auto; height: auto; object-fit: contain; }
.lightbox__close { position: absolute; top: 16px; right: 16px; width: 52px; height: 52px; border: 0; background: rgb(255 255 255 / 0.12); color: #fff; font-size: 20px; cursor: pointer; }
.lightbox__nav { position: absolute; bottom: 24px; background: rgb(255 255 255 / 0.12); }
.lightbox__prev { left: calc(50% - 60px); } .lightbox__next { left: calc(50% + 8px); }

/* ---------- about page */
.story { padding-block: var(--section); align-items: start; }
.story__side { grid-column: 1 / span 4; display: grid; gap: 40px; align-content: start; }
.story__pic { aspect-ratio: 4 / 5; position: relative; overflow: clip; }
.story__pic > picture { position: absolute; inset: 0; }
.story__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story__text { grid-column: 6 / -1; display: grid; gap: 28px; align-content: start; }
.story__text > p:not(.statement) { max-width: 60ch; }
.team { padding-bottom: var(--section); }
.team h2 { font-size: clamp(2rem, 1.3rem + 2.2vw, 3.25rem); padding-bottom: clamp(28px, 3vw, 48px); }
.team__list { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.team__list li:nth-child(1) { grid-column: 1 / span 4; }
.team__list li:nth-child(2) { grid-column: 6 / span 3; margin-top: clamp(40px, 6vw, 96px); }
.team__list li:nth-child(3) { grid-column: 10 / -1; margin-top: clamp(16px, 3vw, 48px); }
.team__ph { aspect-ratio: 4 / 5; background: var(--surface); display: grid; place-items: center; padding: 16px; text-align: center; margin-bottom: 16px; color: var(--muted); }
.team__list h3 { font: 400 var(--step-lead)/1.2 var(--f-display); }
.team__list p { color: var(--muted); margin-top: 4px; }
.team__note { margin-top: 32px; }
.data { padding-block: var(--section); }
.field-bg { background: var(--surface); }
.data__h { grid-column: 1 / span 4; font-size: clamp(2rem, 1.3rem + 2.2vw, 3.25rem); }
.data__table { grid-column: 5 / -1; border-collapse: collapse; width: 100%; }
.data__table th, .data__table td { text-align: left; vertical-align: top; padding: 16px 0; border-bottom: 1px solid #c9c9c3; }
.data__table th { font-weight: 400; color: var(--muted); width: 42%; padding-right: 24px; }
.data__table td { font-weight: 600; }
.reviews { padding-block: var(--section); align-items: start; }
.reviews__pic { grid-column: 1 / span 5; grid-row: 1 / span 2; aspect-ratio: 4 / 3; position: relative; overflow: clip; }
.reviews__pic > picture { position: absolute; inset: 0; }
.reviews__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reviews__h { grid-column: 7 / -1; }
.reviews__p { grid-column: 7 / -1; margin-top: 24px; }
.city { position: relative; min-height: min(86svh, 860px); display: grid; align-items: end; color: #fff; overflow: clip; }
.city__pic, .city__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.city::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(14 14 16 / 0.78), rgb(14 14 16 / 0.1) 60%); } /* taste-skill-ignore: neutral scrim */
.city__text { position: relative; z-index: 1; padding-bottom: clamp(40px, 7vw, 96px); display: grid; gap: 20px; justify-items: start; max-width: 900px; }
.city__text p { font-size: var(--step-lead); line-height: 1.4; max-width: 34ch; }

/* ---------- contact page */
.khero { padding-top: calc(var(--header-h) + clamp(24px, 6vh, 64px)); padding-bottom: var(--section); align-items: start; row-gap: 48px; }
.khero__text { grid-column: 1 / span 6; display: grid; gap: 26px; align-content: start; }
.khero .stepped { --W: calc((100vw - 2 * var(--margin)) * 0.5); --fs-max: clamp(3.2rem, 1rem + 6vw, 7.5rem); --indent2: 1.2em; }
.khero__phone { font: 300 var(--step-head)/1 var(--f-display); letter-spacing: -0.02em; text-decoration: none; }
.khero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.khero__facts { margin-top: 12px; }
.khero__facts dd { overflow-wrap: anywhere; }
.kmap { grid-column: 8 / -1; position: relative; margin-top: clamp(0px, 8vw, 140px); }
.kmap > a { display: block; position: relative; aspect-ratio: 4 / 5; overflow: clip; background: var(--surface); }
.kmap img { width: 100%; height: 100%; object-fit: cover; }
.kmap__pin { position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -28px 0 0 -14px; background: var(--accent); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.kmap__pin::after { content: ""; position: absolute; inset: 9px; background: #fff; border-radius: 50%; }
.kmap figcaption { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 12px; flex-wrap: wrap; }

.inq { padding-block: var(--section); background: var(--surface); align-items: start; }
.inq__side { grid-column: 1 / span 4; display: grid; gap: 18px; align-content: start; }
.inq__pic { margin-top: 20px; aspect-ratio: 4 / 5; position: relative; overflow: clip; }
.inq__pic > picture { position: absolute; inset: 0; }
.inq__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.inq__side h2 { font-size: var(--step-head); }
.inq__form { grid-column: 6 / -1; background: var(--paper); padding: clamp(24px, 3.4vw, 56px); display: grid; gap: 24px; }
.inq__progress { height: 6px; background: var(--surface); overflow: clip; }
.inq__progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0.25); transition: transform 500ms var(--ease-out); }
.inq__step { border: 0; padding: 0; margin: 0; min-width: 0; }
.inq__step legend { font: 300 var(--step-lead)/1.15 var(--f-display); letter-spacing: -0.02em; padding: 0; margin-bottom: 22px; }
.js .inq__step:not(.is-current) { display: none; }
.js .inq__step.is-current { animation: fade-up 380ms var(--ease-out); }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.opt { position: relative; display: flex; align-items: center; min-height: 64px; padding: 14px 18px; background: var(--bg); cursor: pointer; font-weight: 600; transition: background-color 180ms ease, color 180ms ease, transform 160ms var(--ease-out); }
.opt:active { transform: scale(0.985); }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt:has(input:checked) { background: var(--accent); color: #fff; }
.opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .opt:not(:has(input:checked)):hover { background: var(--surface-2); } }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px var(--gap); }
.field { display: grid; gap: 8px; font-weight: 600; font-size: var(--step-small); }
.field--wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 12px 14px; border: 1px solid #c9c8c0; border-radius: 0; background: #fff; color: var(--ink);
  font: 400 1rem/1.4 var(--f-text); transition: border-color 150ms ease;
}
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); } /* taste-skill-ignore: form field focus */
.field [aria-invalid="true"] { border-color: var(--fill); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: var(--step-small); font-weight: 400; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.inq__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.inq__count { margin: 0 auto; }

.inq__error { color: var(--fill); font-weight: 600; }
.inq__done { display: grid; gap: 18px; }
.inq__done h3 { font: 300 var(--step-lead)/1.15 var(--f-display); }
.inq__msg { margin: 0; padding: 18px; background: var(--bg); font: 400 0.9688rem/1.55 var(--f-text); white-space: pre-wrap; }
.inq__send { display: flex; flex-wrap: wrap; gap: 10px; }
.no-js-note { display: none; }

/* ---------- legal pages */
.legal { padding-top: calc(var(--header-h) + clamp(40px, 8vh, 96px)); padding-bottom: var(--section); }
.legal__in { grid-column: 3 / span 8; display: grid; gap: 18px; }
.legal__in h1 { font-size: var(--step-head); margin-bottom: 8px; }
.legal__in h2 { font: 600 1.25rem/1.3 var(--f-text); margin-top: 22px; }
.legal__in p { max-width: 68ch; }

/* ---------- footer: the name across the last photograph */
.site-footer { position: relative; color: var(--paper); min-height: min(100svh, 940px); display: grid; overflow: clip; background: var(--night); }
.site-footer__bg, .site-footer__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.site-footer__bg img { filter: brightness(0.5) saturate(0.8); }
.site-footer__in { position: relative; z-index: 1; display: grid; grid-template-rows: auto 1fr auto auto; padding-top: clamp(40px, 6vw, 88px); padding-bottom: 28px; }
.site-footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.site-footer__nav ul { display: grid; gap: 6px; }
.site-footer__nav a, .site-footer__contact a { text-decoration: none; }
.site-footer__nav a { font-size: 1rem; }
@media (hover: hover) and (pointer: fine) { .site-footer a:hover { text-decoration: underline; text-underline-offset: 0.25em; } }
.site-footer__contact { display: grid; gap: 6px; font-style: normal; text-align: right; justify-items: end; font-size: 1rem; }
.site-footer__contact > a:first-child { font: 300 var(--step-lead)/1.1 var(--f-display); margin-bottom: 8px; }
.site-footer__name {
  grid-row: 3; font: 300 calc((100vw - 2 * var(--margin)) / 8.25)/0.86 var(--f-display); letter-spacing: -0.04em; white-space: nowrap;
  margin-inline: -0.04em; padding-bottom: 0.06em;
}
.site-footer__legal { grid-row: 4; font-size: var(--step-small); color: #d9d9d6; padding-top: 18px; }
.site-footer__legal a { text-decoration: underline; text-underline-offset: 0.2em; }
.site-footer .demo-fill::after, .site-footer .demo-confirm::after { color: #fff; }

/* ---------- phone call bar (always visible on phones) */
.callbar { display: none; }
@media (max-width: 767px) {
  .callbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    padding-bottom: env(safe-area-inset-bottom); background: var(--ink);
  }
  .callbar__btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 60px; padding: 0 12px; background: var(--accent); color: #fff; font-weight: 700; font-size: 0.9375rem; text-decoration: none; -webkit-tap-highlight-color: transparent; transition: transform 160ms var(--ease-out); }
  .callbar__btn:active { transform: scale(0.97); }
  .callbar__btn .ico { width: 20px; height: 20px; }
  .callbar__btn--viber { background: var(--viber); }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .mobile-menu { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}

/* ---------- demo notes */
.demo-chip {
  position: fixed; right: 16px; bottom: 16px; z-index: 44; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border: 0; background: var(--ink); color: #fff; font-weight: 600; font-size: 0.875rem; cursor: pointer; transition: transform 160ms var(--ease-out), opacity 200ms;
}
.demo-chip:active { transform: scale(0.97); }
.demo-chip__n { background: var(--fill); padding: 0 6px; }
.demo-chip { font-size: var(--step-small); }
.demo-panel {
  position: fixed; right: 16px; bottom: 64px; z-index: 46; width: min(420px, calc(100vw - 32px)); max-height: min(70vh, 640px); overflow: auto;
  background: var(--paper); color: var(--ink); padding: 20px; box-shadow: 0 24px 60px rgb(20 20 24 / 0.24); font-size: 0.9375rem; /* taste-skill-ignore: floating panel */
  transform-origin: calc(100% - 16px) 100%; animation: pop 200ms var(--ease-out);
}
@keyframes pop { from { opacity: 0; transform: scale(0.97) translateY(6px); } }
.demo-panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.demo-panel h2 { font: 700 1.0625rem/1.3 var(--f-text); letter-spacing: 0; }
.demo-panel__close { border: 0; background: var(--surface); width: 36px; height: 36px; cursor: pointer; }
.demo-panel__list { list-style: decimal; padding-left: 1.4em; margin: 14px 0; display: grid; gap: 6px; }
.demo-panel__list a { text-decoration: underline; text-underline-offset: 0.2em; }
.demo-panel__toggle { display: flex; gap: 10px; align-items: center; font-weight: 600; cursor: pointer; }
@media (max-width: 767px) { .demo-chip { display: none; } .demo-panel { top: calc(var(--header-h) + 12px); bottom: auto; max-height: calc(100svh - var(--header-h) - 100px); } }
.link-btn { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }

/* ---------- scroll reveals (only when the script runs and motion is allowed) */
@media (prefers-reduced-motion: no-preference) {
  .js.reveal-on [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(26px); }
  .js.reveal-on [data-reveal] { transition: opacity 800ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--d, 0ms); }
}

/* ---------- page transitions (same-origin navigations) */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-out 260ms var(--ease-out) both; }
  ::view-transition-new(root) { animation: vt-in 520ms var(--ease-out) both; }
}
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* ================= tablet */
@media (max-width: 1023px) {
  :root { --header-h: 68px; }
  .hero__foot { grid-column: 1 / span 9; }
  .hero__where { display: none; }
  .services__head { grid-column: 1 / -1; padding-bottom: 32px; }
  .services__run { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; height: auto; gap: 48px 16px; }
  .svc, .svc.is-lifted { height: auto; }
  .svc:not(.is-lifted) .svc__frame { margin-top: 0; }
  .svc__frame { flex: none; aspect-ratio: 4 / 3; }
  .svc__cap { min-height: 0; }
  .plan__head h2 { grid-column: 1 / -1; padding-bottom: 20px; }
  .plan__text { grid-column: 1 / span 9; }
  .proof__head { flex-direction: column; align-items: start; }
  .proof__head p { text-align: left; }
  .stat:first-child, .stat:last-child { grid-column: 1 / -1; margin-top: 0; }
  .stat:last-child { margin-top: 64px; }
  .build__steps { display: none; }
  .build__note { display: none; }
  .intro { grid-template-columns: 1fr; padding-right: 0; row-gap: 96px; }
  .intro__media { height: 72vw; min-height: 0; margin-right: var(--margin); }
  .intro__small { right: calc(var(--margin) * -1 + 16px); width: 38%; bottom: -12%; }
  .intro__text { padding-inline: var(--margin); max-width: none; }
  .cta__in { grid-template-columns: 1fr; padding-left: 0; row-gap: 56px; }
  .cta__main { padding-inline: var(--margin); }
  .cta__pic { min-height: 0; aspect-ratio: 16 / 10; }
  .about__photo { grid-column: 1 / -1; }
  .about__side { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; align-items: start; margin-top: 16px; }
  .about__side .link { grid-column: 1 / -1; }
  .ref__h, .faq__h, .data__h, .reviews__h { grid-column: 1 / -1; padding-bottom: 32px; }
  .story__side { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; align-items: start; padding-bottom: 40px; }
  .reviews__pic { grid-column: 1 / -1; grid-row: auto; margin-bottom: 32px; }
  .reviews__p { margin-top: 0; }
  .ref__list, .faq__list, .story__text, .data__table, .reviews__p { grid-column: 1 / -1; }
  .inq__side { grid-column: 1 / -1; position: static; padding-bottom: 32px; }
  .inq__form { grid-column: 1 / -1; }
  .khero__text { grid-column: 1 / -1; }
  .khero .stepped { --W: calc(100vw - 2 * var(--margin)); }
  .kmap > a { aspect-ratio: 3 / 2; }
  .kmap { grid-column: 1 / -1; margin-top: 0; }
  .legal__in { grid-column: 1 / -1; }
  .more ul { grid-template-columns: 1fr; }
  .field__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
}

/* ================= phone */
@media (max-width: 699px) {
  :root { --header-h: 62px; }
  .wordmark { font-size: 0.9688rem; }
  .hero { height: calc(100svh - 60px - env(safe-area-inset-bottom)); min-height: 540px; }
  /* on a phone the text runs the full width over the picture: a deeper neutral scrim under it */
  .hero::after {
    background:
      linear-gradient(to top, rgb(12 12 14 / 0.92) 0%, rgb(12 12 14 / 0.82) 34%, rgb(12 12 14 / 0.5) 56%, rgb(12 12 14 / 0.14) 74%, rgb(12 12 14 / 0) 86%), /* taste-skill-ignore: neutral scrim */
      linear-gradient(to bottom, rgb(12 12 14 / 0.5), rgb(12 12 14 / 0) 20%); /* taste-skill-ignore: neutral scrim */
  }
  .hero__actions .btn--paper { display: none; }
  .hero__content { bottom: 24px; }
  .hero__title { margin-bottom: 18px; }
  .hero__title .line--2 { padding-left: 22vw; }
  .hero__foot { grid-column: 1 / -1; gap: 18px; }
  .hero__lead { font-size: 1rem; }
  .hero__actions .btn { flex: 1 1 auto; min-height: 50px; padding: 0 16px; }

  .phero { min-height: 0; grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .phero__small { grid-column: 6 / -1; margin-bottom: 18px; }
  .phero .stepped .line:first-child { padding-left: 0; }
  .phero__tall { grid-column: 1 / span 9; margin-top: 22px; }
  .phero__lead { grid-column: 1 / -1; grid-row: 4; padding-top: 22px; }
  .phero__lead p { font-size: 1.1875rem; }

  .build { height: 480vh; }
  .build__ui { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .build__caps { min-height: 8rem; }
  .build__cap p { font-size: 1.0625rem; }
  .intro { padding-block: 72px 88px; row-gap: 72px; }
  .intro__media { height: 112vw; }
  .intro__small { width: 44%; bottom: -10%; }
  .intro__list li { padding: 14px 16px 16px; }
  .facts { grid-template-columns: 1fr 1fr; }

  .services__run { grid-template-columns: 1fr; gap: 40px; }
  .svc, .svc.is-lifted { flex: none; height: auto; }
  .svc:nth-child(even) { margin-left: 14%; }
  .svc:not(.is-lifted) .svc__frame { margin-top: 0; }
  .svc__frame { flex: none; aspect-ratio: 4 / 3; }
  .svc__cap { min-height: 0; }

  .compare { height: 118vw; min-height: 0; }
  .compare__tag { top: 14px; padding: 6px 10px; font-size: 0.8125rem; }
  .compare__knob { width: 54px; height: 54px; margin: -27px 0 0 -27px; }

  .process__btns { display: none; }
  .process__row { gap: 16px; padding-top: 28px; }
  .moment { flex-basis: 72vw; }
  .moment__pic { margin-top: calc(var(--gap, 64px) / 2.6); }
  .moment p { min-height: 0; }

  .proof__cloud i { margin: 0 0.25em; }

  .work__scatter { row-gap: 56px; }
  .work__item--a, .work__item--c { grid-column: 1 / -1; grid-row: auto; margin-top: 0; }
  .work__item--b { grid-column: 4 / -1; grid-row: auto; margin-top: 0; }
  .work__remark { grid-column: 1 / -1; grid-row: auto; max-width: none; }

  .about__over { position: static; width: auto; padding: 18px 0 0; background: none; }
  .about__photo { aspect-ratio: auto; overflow: visible; }
  .about__photo picture { aspect-ratio: 4 / 3; overflow: clip; }
  .about__side { grid-template-columns: 1fr; }

  .cta { padding-block: 80px; }
  .cta__row { grid-template-columns: 1fr 28px; row-gap: 2px; padding: 14px 16px; }
  .cta__v { grid-column: 1; grid-row: 2; }
  .cta__row::after { grid-column: 2; grid-row: 1 / span 2; }
  .cta__pic { aspect-ratio: 4 / 5; }

  .scope__pic { grid-column: 1 / -1; aspect-ratio: 4 / 3; margin-bottom: 40px; }
  .scope__list { grid-column: 1 / -1; }
  .field__say { grid-column: 1 / -1; }
  .field__steps { grid-template-columns: 1fr; }
  .faq__list { grid-template-columns: 1fr; }
  .strip__item--0 { grid-column: 1 / -1; }
  .strip__item--1 { grid-column: 1 / span 8; margin-top: 40px; }
  .strip__item--2 { grid-column: 5 / -1; margin-top: 40px; }

  .gallery__grid { row-gap: 44px; }
  .g-item--0, .g-item--3, .g-item--5 { grid-column: 1 / -1; margin-top: 0; }
  .g-item--1, .g-item--4 { grid-column: 3 / -1; margin-top: 0; }
  .g-item--2 { grid-column: 1 / span 10; }
  .gallery.is-filtered .g-item { grid-column: 1 / -1; }
  .ghero__lead { margin: 0; }

  .team__list { row-gap: 40px; }
  .team__list li:nth-child(n) { grid-column: 1 / span 9; margin-top: 0; }
  .team__list li:nth-child(2) { grid-column: 4 / -1; }

  .opts, .fields { grid-template-columns: 1fr; }
  .inq__form { padding: 22px 16px; }
  .inq__pic { display: none; }
  .inq__count { display: none; }
  .inq__nav .btn { flex: 1; }

  .site-footer { min-height: 88svh; }
  .site-footer__top { flex-direction: column; gap: 28px; }
  .site-footer__contact { text-align: left; justify-items: start; }
  .site-footer__name { font-size: calc((100vw - 2 * var(--margin)) / 8.4); }
}

/* ---------- reduced motion: keep everything, drop travel */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-delay: 0ms !important; scroll-behavior: auto !important; }
  .hero__video { display: none; }
}
