/* ---------- fonts ---------- */

@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(../fonts/unbounded-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(../fonts/unbounded-latin-wght-normal.woff2) format('woff2-variations');
  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: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/onest-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/onest-latin-wght-normal.woff2) format('woff2-variations');
  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: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(../fonts/jetbrains-mono-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(../fonts/jetbrains-mono-latin-wght-normal.woff2) format('woff2-variations');
  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;
}

/* Latin Extended: Polish, Czech, Baltic, Romanian and other EU languages (loaded only when used) */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(../fonts/unbounded-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/onest-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(../fonts/jetbrains-mono-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- tokens ---------- */

:root {
  /* Defaults for the dark scheme. The server overrides them from the background chosen in the admin. */
  --bg: #0f0e0c;
  --bg-rgb: 15, 14, 12;
  --bg-2: #181714;
  --bg-3: #201e1b;
  --text: #ece5d8;
  --fg-rgb: 236, 229, 216;
  --text-2: #e2d9c8;
  --muted: #9a9385;
  --line: rgba(236, 229, 216, 0.12);
  --line-strong: rgba(236, 229, 216, 0.22);
  --accent: #ff5b2e;
  --accent-rgb: 255, 91, 46;
  --on-accent: #12110e;
  --inv-bg: #ece5d8;
  --inv-bg-2: #f5f0e6;
  --inv-text: #12110e;
  --inv-muted: #6e675b;
  --inv-line: rgba(18, 17, 14, 0.12);
  --inv-line-strong: rgba(18, 17, 14, 0.24);
  --inv-field: #f7f3eb;
  --inv-field-focus: #ffffff;
  --inv-ok: #2f6b3a;
  --inv-err: #b3361a;
  --cover-bg: #13120f;
  --grain: 0.05;

  --f-display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --f-body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.75, 0.2, 1);
  --section-pad: clamp(88px, 11vw, 168px);
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* film grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: var(--grain);
  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 type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
em { font-style: normal; color: var(--accent); }
::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
}
.skip:focus { top: 16px; }

.ico { width: 1em; height: 1em; flex: none; }

.pulse {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ---------- buttons ---------- */

.btn {
  --h: 58px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: var(--h);
  padding: 0 10px 0 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
  will-change: transform;
}
.btn-ico {
  display: grid;
  place-items: center;
  width: calc(var(--h) - 16px);
  height: calc(var(--h) - 16px);
  border-radius: 50%;
  font-size: 18px;
  overflow: hidden;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
.btn-ico .ico { transition: transform 0.45s var(--ease); }
.btn:hover .btn-ico .ico { transform: translateX(3px); }

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary .btn-ico { background: var(--on-accent); color: var(--accent); }
.btn-primary:hover { background: var(--text); color: var(--bg); }
.btn-primary:hover .btn-ico { background: var(--accent); color: var(--on-accent); }

.btn-ghost { border-color: var(--line-strong); color: var(--text); padding: 0 28px; }
.btn-ghost:hover { border-color: var(--text); background: rgba(var(--fg-rgb), 0.06); }

.btn-small { --h: 44px; padding: 0 20px; font-size: 14px; background: var(--text); color: var(--bg); }
.btn-small:hover { background: var(--accent); color: var(--on-accent); }

.btn-block { width: 100%; justify-content: space-between; }

.round-btn {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.round-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.round-btn:disabled { opacity: 0.35; pointer-events: none; }

/* ---------- header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(var(--bg-rgb), 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border-bottom-color: var(--line);
}
.header.hidden { transform: translateY(-100%); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.02em;
  line-height: 1;
}
/* built-in emblem: sizes in em, so --em-size scales the whole mark */
.logo-mark {
  position: relative;
  font-size: var(--em-size, 26px);
  width: 1em;
  height: 1em;
  border-radius: 50%;
  border: 0.155em solid var(--mark-ring, var(--text));
  flex: none;
}
.logo-mark::after {
  content: '';
  position: absolute;
  width: 0.42em;
  height: 0.42em;
  right: -0.3em;
  top: -0.3em;
  border-radius: 50%;
  background: var(--mark-dot, var(--accent));
  transition: transform 0.6s var(--ease);
}
.logo:hover .logo-mark::after { transform: translate(-0.15em, 0.15em); }
.brand-emblem { display: inline-flex; width: var(--em-size, 26px); height: var(--em-size, 26px); flex: none; }
.brand-emblem svg { display: block; width: 100%; height: 100%; }
.brand-logo, .brand-img { height: var(--logo-h, 30px); max-height: calc(var(--header-h) - 22px); }
.brand-logo { display: inline-flex; flex: none; }
.brand-logo svg { display: block; height: 100%; width: auto; max-width: min(280px, 50vw); }
.brand-img { width: auto; max-width: min(280px, 50vw); object-fit: contain; }
.footer-brand .brand-logo, .footer-brand .brand-img { max-height: none; }

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  position: relative;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); background: rgba(var(--fg-rgb), 0.07); }

.header-cta { margin-left: 8px; }

.burger {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  margin-left: auto;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.menu-open .burger span:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: calc(var(--header-h) + 24px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.mobile-menu[hidden] { display: flex; }
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-display);
  font-size: clamp(26px, 8vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: calc(var(--i) * 50ms + 80ms);
}
.mobile-menu nav a span { font-family: var(--f-mono); font-size: 13px; color: var(--accent); letter-spacing: 0; }
.menu-open .mobile-menu nav a { opacity: 1; transform: none; }
.mobile-menu .btn { align-self: stretch; justify-content: space-between; }
.menu-open { overflow: hidden; }
.menu-open .header { background: var(--bg); border-bottom-color: var(--line); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 40px;
  overflow: hidden;
  isolation: isolate;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  -webkit-mask-image: linear-gradient(to bottom, transparent 18%, #000 44%);
  mask-image: linear-gradient(to bottom, transparent 18%, #000 44%);
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 62% 50% at 18% 46%, rgba(var(--bg-rgb), 0.82), transparent 72%),
    linear-gradient(to top, var(--bg) 0%, transparent 18%);
}

.hero-inner { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(22px, 3vw, 34px);
  padding: 8px 16px 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-2);
  background: rgba(var(--bg-rgb), 0.5);
}

.hero-title {
  font-family: var(--f-display);
  font-size: clamp(34px, 5.4vw, 86px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 17ch;
  text-wrap: balance;
}
.hero-title .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.hero-title .w > span {
  display: inline-block;
  animation: rise 1.1s var(--ease) both;
  animation-delay: calc(var(--i) * 70ms + 0.1s);
}
@keyframes rise {
  from { transform: translateY(110%); }
  to { transform: none; }
}

.hero-sub {
  max-width: 560px;
  margin-top: clamp(22px, 3vw, 32px);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--text-2);
  animation: fadeUp 1s var(--ease) 0.55s both;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(30px, 4vw, 44px);
  animation: fadeUp 1s var(--ease) 0.7s both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.hero-bottom {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(48px, 8vh, 96px);
  animation: fadeUp 1s var(--ease) 0.9s both;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-badges li { display: flex; flex-direction: column; gap: 2px; padding-left: 16px; border-left: 1px solid var(--accent); }
.hero-badges strong { font-family: var(--f-display); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.hero-badges span { font-size: 14px; color: var(--muted); }

.scroll-hint {
  position: relative;
  width: 30px;
  height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  flex: none;
}
.scroll-hint span {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--accent);
  animation: scrollHint 2s var(--ease) infinite;
}
@keyframes scrollHint {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(20px); opacity: 0; }
}

/* ---------- marquee ---------- */

.marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 22px 0;
  background: var(--bg);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.mq-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .mq-track { animation-play-state: paused; }
.mq-row { display: flex; align-items: center; flex: none; }
.mq-item {
  padding: 0 28px;
  font-family: var(--f-display);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text-2);
  white-space: nowrap;
}
.mq-sep { color: var(--accent); font-size: 18px; display: inline-flex; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */

.section { position: relative; padding-block: var(--section-pad); }
.section + .section:not(.invert):not(.contact) { border-top: 1px solid var(--line); }

.sec-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 80px); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.sec-num { color: var(--accent); }
.sec-line { width: 40px; height: 1px; background: currentColor; opacity: 0.5; }
.sec-title {
  font-family: var(--f-display);
  font-size: clamp(30px, 4.4vw, 62px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.sec-sub {
  margin-top: 22px;
  max-width: 560px;
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--muted);
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tags li {
  padding: 4px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
}

/* reveal on scroll */
@media (scripting: enabled) {
  html:not(.is-preview) [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: var(--d, 0s);
  }
  html:not(.is-preview) [data-reveal].in { opacity: 1; transform: none; }
}

/* ---------- services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.service {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 330px;
  padding: clamp(26px, 3vw, 40px);
  background: var(--bg);
  isolation: isolate;
  transition: background-color 0.4s var(--ease);
}
.service::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(var(--accent-rgb), 0.13), transparent 60%);
  transition: opacity 0.4s var(--ease);
}
.service:hover::before { opacity: 1; }
.service-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; padding-bottom: 36px; }
.service-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  font-size: 26px;
  color: var(--text);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.5s var(--ease);
}
.service:hover .service-icon { background: var(--accent); color: var(--on-accent); border-color: var(--accent); transform: rotate(-6deg); }
.service-idx { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.service-title { font-family: var(--f-display); font-size: clamp(20px, 1.7vw, 24px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.service-text { color: var(--muted); font-size: 16px; }
.service .tags { margin-top: 6px; }

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.about-main .sec-head { margin-bottom: 32px; }
.about-text { display: grid; gap: 18px; max-width: 600px; color: var(--text-2); font-size: clamp(16px, 1.3vw, 19px); }
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: clamp(40px, 5vw, 64px);
  background: var(--line);
  border-block: 1px solid var(--line);
}
.stat { padding: 28px 24px 28px 0; background: var(--bg); }
.stat:nth-child(even) { padding-left: 28px; }
.stat-value {
  font-family: var(--f-display);
  font-size: clamp(36px, 4.2vw, 60px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.stat-suffix { color: var(--accent); }
.stat-label { margin-top: 10px; color: var(--muted); font-size: 15px; }

.about-visual { position: relative; aspect-ratio: 1; width: 100%; max-width: 600px; justify-self: center; }
.about-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.orb-caption {
  position: absolute;
  left: 50%;
  bottom: 2%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(var(--bg-rgb), 0.7);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--text-2);
  white-space: nowrap;
}

/* ---------- process ---------- */

.steps {
  --n: 5;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 7px;
  height: 1px;
  background: var(--line-strong);
}
.step { position: relative; display: flex; flex-direction: column; gap: 12px; }
.step-mark { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.step-dot {
  position: relative;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--accent);
}
.step-dot::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform 0.6s var(--ease) calc(var(--d, 0s) + 0.3s); }
.step.in .step-dot::after, .is-preview .step-dot::after { transform: scale(1); }
.step-num { font-family: var(--f-mono); font-size: 13px; color: var(--accent); background: var(--bg); padding-right: 8px; }
.step-dur { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.step-title { font-family: var(--f-display); font-size: clamp(19px, 1.6vw, 23px); font-weight: 500; letter-spacing: -0.02em; }
.step-text { color: var(--muted); font-size: 15.5px; }

/* ---------- journey (timeline) ---------- */

.tl {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.tl-aside {
  position: sticky;
  top: calc(var(--header-h) + 56px);
  display: grid;
  gap: 26px;
}
.tl-year {
  position: relative;
  height: 1.02em;
  overflow: hidden;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(76px, 11.5vw, 184px);
  line-height: 1;
  letter-spacing: -0.055em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.tl-year span { position: absolute; left: 0; top: 0; }
.tl-year .key { color: var(--accent); }
.tl-year .in { animation: tlIn 0.65s var(--ease) both; }
.tl-year .out { animation: tlOut 0.65s var(--ease) both; }
.tl-year .tl-probe { position: absolute; visibility: hidden; }
@keyframes tlIn { from { transform: translateY(var(--from, 105%)); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tlOut { to { transform: translateY(var(--to, -105%)); opacity: 0; } }
.tl-meta { display: flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.tl-meta b { color: var(--accent); font-weight: 500; }
.tl-bar { position: relative; flex: 1; max-width: 220px; height: 1px; margin-left: 8px; background: var(--line-strong); }
.tl-bar span { position: absolute; left: 0; top: -0.5px; height: 2px; width: calc(var(--p, 0) * 100%); background: var(--accent); }

.tl-list { --p: 0; position: relative; margin: 0; padding: 0 0 0 52px; list-style: none; }
.tl-list::before, .tl-list::after { content: ''; position: absolute; left: 7px; top: 10px; width: 1px; }
.tl-list::before { bottom: 10px; background: var(--line-strong); }
.tl-list::after { width: 3px; left: 6px; border-radius: 3px; height: calc((100% - 20px) * var(--p)); background: linear-gradient(to bottom, rgba(var(--accent-rgb), 0.1), var(--accent)); }
.tl-item { position: relative; padding-bottom: clamp(52px, 7vw, 92px); transition: opacity 0.5s var(--ease); }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: -52px;
  top: 3px;
  z-index: 1;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.tl-item.is-key .tl-dot { border-color: var(--accent); }
.tl-item.past .tl-dot, .tl-item.active .tl-dot { background: var(--accent); border-color: var(--accent); }
.tl-item.active .tl-dot { box-shadow: 0 0 0 7px rgba(var(--accent-rgb), 0.16); transform: scale(1.1); }
.tl-date { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tl-item.is-key .tl-date { color: var(--accent); }
.tl-tag { padding: 2px 9px; border-radius: 999px; border: 1px solid rgba(var(--accent-rgb), 0.5); font-size: 11px; color: var(--accent); }
.tl-title { font-family: var(--f-display); font-size: clamp(22px, 2.2vw, 32px); font-weight: 500; line-height: 1.15; letter-spacing: -0.03em; }
.tl-text { margin-top: 12px; max-width: 540px; color: var(--muted); }
.tl-img { margin-top: 22px; max-width: 540px; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.tl-img img { width: 100%; height: 100%; object-fit: cover; }
@media (scripting: enabled) {
  .tl.ready .tl-item { opacity: 0.32; }
  .tl.ready .tl-item.past { opacity: 0.6; }
  .tl.ready .tl-item.active { opacity: 1; }
}

/* ---------- cases (inverted) ---------- */

.invert {
  background: var(--inv-bg);
  color: var(--inv-text);
  --muted: var(--inv-muted);
  --line: var(--inv-line);
  --line-strong: var(--inv-line-strong);
  border-radius: clamp(24px, 4vw, 48px);
  margin-inline: clamp(0px, 1vw, 16px);
}
.invert .sec-label { color: var(--muted); }
.invert em { color: var(--accent); }

.cases-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.case {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--inv-bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.case:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(18, 17, 14, 0.35); }
.case--wide { grid-column: 1 / -1; flex-direction: row; }
.case-cover { position: relative; aspect-ratio: 16 / 10; background: var(--cover-bg); overflow: hidden; }
.case--wide .case-cover { flex: 1.25; aspect-ratio: auto; min-height: 380px; }
.case-cover img, .case-cover canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.case:hover .case-cover img { transform: scale(1.04); }
.case-cat {
  position: absolute;
  left: 18px;
  top: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.case-body { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 2.6vw, 36px); }
.case--wide .case-body { flex: 1; justify-content: center; }
.case-meta { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.case-meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.case-title { font-family: var(--f-display); font-size: clamp(22px, 2vw, 30px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }
.case-title a { display: inline-flex; gap: 10px; align-items: flex-start; }
.case-arrow { display: inline-flex; color: var(--accent); transition: transform 0.4s var(--ease); }
.case-title a:hover .case-arrow { transform: translate(3px, -3px); }
.case-text { color: var(--muted); }
.case-result {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--inv-text);
  color: var(--inv-bg);
}
.case-result span { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }
.case-result strong { font-weight: 600; font-size: 17px; }

/* ---------- stack ---------- */

.stack-rows { border-top: 1px solid var(--line); }
.stack-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) 1fr;
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.stack-name { display: flex; align-items: baseline; gap: 14px; font-family: var(--f-display); font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; letter-spacing: -0.02em; }
.stack-name span { font-family: var(--f-mono); font-size: 12px; color: var(--accent); letter-spacing: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pills li {
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 15px;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.pills li:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- reviews ---------- */

.reviews-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.reviews-nav { display: flex; gap: 10px; margin-bottom: clamp(44px, 6vw, 80px); }
.reviews-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
  padding-bottom: 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.reviews-track::-webkit-scrollbar { display: none; }
.review {
  flex: 0 0 min(560px, 86vw);
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 0;
  padding: clamp(26px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  scroll-snap-align: start;
}
.review-q { font-size: 34px; color: var(--accent); display: inline-flex; }
.review blockquote { margin: 0; flex: 1; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: var(--text); }
.review figcaption { display: flex; align-items: center; gap: 14px; padding-top: 24px; border-top: 1px solid var(--line); }
.review figcaption strong { display: block; font-weight: 600; }
.review figcaption small { display: block; color: var(--muted); font-size: 14px; }
.avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
  font-family: var(--f-display);
  font-size: 15px;
  color: var(--accent);
  overflow: hidden;
  flex: none;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- faq ---------- */

.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid .sec-head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--f-display);
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  transition: color 0.3s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-plus { position: relative; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 50%; flex: none; transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.4s var(--ease); }
.faq-plus::before, .faq-plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -0.75px 0 0 -7px; background: currentColor; transition: transform 0.4s var(--ease); }
.faq-plus::after { transform: rotate(90deg); }
.faq-item[open] .faq-plus { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: rotate(180deg); }
.faq-item[open] .faq-plus::after { transform: rotate(0deg); }
.faq-a { display: grid; gap: 12px; padding: 0 56px 28px 0; color: var(--muted); }
.faq-item[open] .faq-a { animation: fadeUp 0.5s var(--ease); }

/* ---------- contact ---------- */

.contact { overflow: hidden; background: var(--bg-2); border-top: 1px solid var(--line); isolation: isolate; }
.contact-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.9; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-text { max-width: 480px; font-size: clamp(16px, 1.3vw, 19px); color: var(--text-2); margin-top: -12px; }
.contact-list { display: grid; gap: 4px; margin: 40px 0 0; padding: 0; list-style: none; }
.contact-list li { display: flex; align-items: center; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list small { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ct-body { flex: 1; min-width: 0; }
.ct-val { display: inline; font-size: clamp(17px, 1.5vw, 20px); font-weight: 500; overflow-wrap: anywhere; }
a.ct-val { background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--ease); }
a.ct-val:hover { background-size: 100% 1px; }
.ct--code .ct-val { font-family: var(--f-mono); font-size: clamp(15px, 1.25vw, 17px); font-weight: 400; letter-spacing: 0.02em; }
.ct--code .contact-ico { color: var(--text-2); }
.ct-copy {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 17px;
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.ct-copy:hover { color: var(--text); border-color: var(--line-strong); }
.ct-copy .ico-done { display: none; }
.ct-copy.done { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.ct-copy.done .ico { display: none; }
.ct-copy.done .ico-done { display: block; }
.ct-copy::after {
  content: attr(data-done);
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.ct-copy.done::after { opacity: 1; transform: none; }
.contact-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 19px; color: var(--accent); flex: none; }

.lead-form {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 3.2vw, 44px);
  border-radius: calc(var(--radius) + 6px);
  background: var(--inv-bg);
  color: var(--inv-text);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}
.form-title { font-family: var(--f-display); font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -0.03em; margin-bottom: 6px; }
.fl { position: relative; }
.fl input, .fl textarea {
  width: 100%;
  padding: 26px 18px 10px;
  border: 1px solid var(--inv-line-strong);
  border-radius: var(--radius-sm);
  background: var(--inv-field);
  color: var(--inv-text);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.fl textarea { resize: vertical; min-height: 120px; }
.fl label {
  position: absolute;
  left: 19px;
  top: 18px;
  font-size: 16px;
  color: var(--inv-muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.fl input:focus, .fl textarea:focus { outline: none; border-color: var(--inv-text); background: var(--inv-field-focus); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.18); }
.fl input:focus + label, .fl input:not(:placeholder-shown) + label,
.fl textarea:focus + label, .fl textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(0.76); }
.fl.invalid input { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.18); }

.budget { border: 0; margin: 4px 0; padding: 0; min-width: 0; }
.budget legend { padding: 0; margin-bottom: 10px; font-size: 14px; color: var(--inv-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 9px 16px; border: 1px solid var(--inv-line-strong); border-radius: 999px; font-size: 14.5px; transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease); }
.chip:hover span { border-color: var(--inv-text); }
.chip input:checked + span { background: var(--inv-text); color: var(--inv-bg); border-color: var(--inv-text); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--inv-muted); cursor: pointer; line-height: 1.45; }
.consent input { position: absolute; opacity: 0; pointer-events: none; }
.consent .box { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--inv-line-strong); border-radius: 7px; color: transparent; font-size: 15px; flex: none; transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease); }
.consent input:checked + .box { background: var(--inv-text); border-color: var(--inv-text); color: var(--accent); }
.consent input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent.invalid .box { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.18); }
.consent a { text-decoration: underline; text-underline-offset: 3px; }

.lead-form .btn-primary:hover { background: var(--inv-text); color: var(--inv-bg); }
.lead-form .btn-primary:hover .btn-ico { background: var(--accent); color: var(--on-accent); }
.lead-form .btn[disabled] { opacity: 0.6; pointer-events: none; }
.form-status { min-height: 1.4em; font-size: 15px; }
.form-status.ok { color: var(--inv-ok); }
.form-status.err { color: var(--inv-err); }
.lead-form.sent .fl, .lead-form.sent .budget, .lead-form.sent .consent { opacity: 0.45; pointer-events: none; }

/* mail card: replaces the form when it is switched off */
.mail-card { align-content: start; gap: 22px; }
.mail-text { color: var(--inv-muted); font-size: 16px; line-height: 1.6; }
.mail-addr {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-block: 1px solid var(--inv-line);
}
.mail-addr a {
  flex: 1;
  min-width: 0;
  font-family: var(--f-display);
  font-size: clamp(17px, 1.8vw, 24px);
  font-weight: 500;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat;
  transition: background-size 0.4s var(--ease);
}
.mail-addr a:hover { background-size: 100% 2px; }
.mail-ico { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--inv-text); color: var(--accent); font-size: 19px; }
.mail-card .ct-copy { border-color: var(--inv-line-strong); color: var(--inv-muted); }
.mail-card .ct-copy:hover { color: var(--inv-text); border-color: var(--inv-text); }
.mail-card .ct-copy::after { background: var(--inv-text); color: var(--inv-bg); }
.mail-card .btn-primary:hover { background: var(--inv-text); color: var(--inv-bg); }
.contact-grid--solo { grid-template-columns: minmax(0, 1fr); }

/* ---------- footer ---------- */

.footer { padding: clamp(64px, 8vw, 112px) 0 32px; border-top: 1px solid var(--line); overflow: hidden; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 32px 48px; }
.footer-brand { display: grid; gap: 16px; max-width: 360px; }
.footer-brand p { color: var(--muted); font-size: 15px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-links a { color: var(--text-2); transition: color 0.3s var(--ease); }
.footer-links a:hover { color: var(--accent); }
.to-top { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.to-top span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 17px; color: var(--text); transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.4s var(--ease); }
.to-top:hover span { background: var(--accent); color: var(--on-accent); transform: translateY(-3px); }
.footer-mark {
  margin: clamp(40px, 6vw, 80px) 0 clamp(20px, 2.4vw, 32px);
  overflow: hidden;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(64px, 18vw, 290px);
  line-height: 1;
  letter-spacing: -0.06em;
  white-space: nowrap;
  text-align: center;
  user-select: none;
}
.footer-mark span {
  display: inline-block;
  padding: 0 0.04em 0.06em;
  background: linear-gradient(180deg, rgba(var(--fg-rgb), 0.11) 0%, rgba(var(--fg-rgb), 0.035) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: opacity 0.6s var(--ease);
}
.footer-mark span::selection { background: transparent; }
.footer-gap { height: clamp(40px, 6vw, 72px); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 22px; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.02em; }
.footer-legal b { font-weight: 400; color: var(--text-2); margin-right: 4px; }

/* ---------- 404 ---------- */

.nf { min-height: 100vh; display: grid; place-items: center; }
.nf-main { display: grid; gap: 32px; justify-items: start; padding-block: 80px; }
.nf .hero-title .w > span { animation: none; }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .nav, .header-cta { display: none; }
  .burger { display: block; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .steps::before { display: none; }
  .step-mark { margin-bottom: 14px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 520px; }
  .case--wide { flex-direction: column; }
  .case--wide .case-cover { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .sec-head { position: static; margin-bottom: 8px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .tl { grid-template-columns: 1fr; gap: 28px; }
  .tl-aside {
    top: calc(var(--header-h) + 10px);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 14px;
    justify-self: start;
    padding: 10px 18px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(var(--bg-rgb), 0.86);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  .tl-year { font-size: 22px; letter-spacing: -0.03em; min-width: 2.6em; }
  .tl-bar { width: 64px; flex: none; }
  .tl-list { padding-left: 36px; }
  .tl-dot { left: -36px; }
  .tl-item { padding-bottom: 44px; }
  .ct-copy { width: 34px; height: 34px; }
  body { font-size: 16px; }
  .logo { font-size: 19px; }
  .hero { justify-content: flex-start; padding-top: calc(var(--header-h) + 36px); }
  .hero-title { font-size: clamp(30px, 9.4vw, 46px); letter-spacing: -0.03em; }
  .hero-shade { background: linear-gradient(to bottom, rgba(var(--bg-rgb), 0.9) 0%, rgba(var(--bg-rgb), 0.6) 45%, transparent 70%), linear-gradient(to top, var(--bg) 0%, transparent 16%); }
  .hero-canvas { -webkit-mask-image: linear-gradient(to bottom, transparent 22%, #000 55%); mask-image: linear-gradient(to bottom, transparent 22%, #000 55%); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: space-between; }
  .hero-actions .btn-ghost { justify-content: center; }
  .hero-bottom { margin-top: auto; padding-top: 48px; }
  .hero-badges { gap: 16px 28px; }
  .hero-badges strong { font-size: 19px; }
  .scroll-hint { display: none; }
  .eyebrow { font-size: 11.5px; padding: 7px 14px 7px 12px; }
  .services-grid { grid-template-columns: 1fr; }
  .service { min-height: 0; }
  .service-top { padding-bottom: 20px; }
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .step { padding: 0 0 36px 34px; }
  .step::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 0; width: 1px; background: var(--line-strong); }
  .step:last-child { padding-bottom: 0; }
  .step:last-child::before { display: none; }
  .step-mark { position: absolute; left: 0; top: 0; margin: 0; }
  .step-num { display: none; }
  .step-dur { order: -1; }
  .cases-grid { grid-template-columns: 1fr; }
  .case--wide .case-cover, .case-cover { aspect-ratio: 4 / 3; }
  .stack-row { grid-template-columns: 1fr; gap: 14px; padding: 22px 0; }
  .pills li { padding: 7px 14px; font-size: 14px; }
  .reviews-head { flex-direction: column; align-items: flex-start; gap: 0; }
  .reviews-nav { display: none; }
  .stat { padding: 22px 12px 22px 0; }
  .stat:nth-child(even) { padding-left: 18px; }
  .faq-a { padding-right: 0; }
  .orb-caption { white-space: normal; text-align: center; width: max-content; max-width: 92%; }
  .footer-top { flex-direction: column; }
}

@media (hover: none) {
  .case:hover { transform: none; box-shadow: none; }
  .service:hover .service-icon { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .mq-track { animation: none; }
}
