:root {
  --ink: #111110;
  --muted: #8d8d88;
  --line: rgba(17, 17, 16, 0.07);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(1rem, 2.4vw, 3rem);
  background: #fff;
  color: var(--ink);
  color-scheme: light;
  font-family: "Vartan Display Condensed", "Arial Narrow", sans-serif;
}

@font-face {
  font-family: "Vartan Display Condensed";
  src: url("/public/fonts/VartanDisplayCondensed.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 800;
  font-stretch: condensed;
}

@font-face {
  font-family: "Brandbe";
  src: url("/public/fonts/Brandbe-Bold.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

@font-face {
  font-family: "DIN Pro Condensed Medium";
  src: url("/public/fonts/DINPro-CondensedMedium.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

* { box-sizing: border-box; }

html,
body,
#hero-scene {
  width: 100%;
  min-height: 100%;
}

html,
body {
  margin: 0;
  background: #fff;
  /* clip (not hidden) so body does not become a scroll container — sticky needs that. */
  overflow-x: clip;
}

html.is-loading,
html.is-loading body {
  overflow: hidden;
}

::selection {
  background: var(--ink);
  color: #fff;
}

/* ───────── Preloader ───────── */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}

/* White screen fills left → right with the real loading progress. */
.preloader__fill {
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
}

/* Difference blend: white on black, black where the white fill has passed. */
.preloader__count {
  position: absolute;
  right: var(--gutter);
  bottom: var(--gutter);
  display: block;
  overflow: hidden;
  color: #fff;
  mix-blend-mode: difference;
  font-family: "Brandbe", "Arial Narrow", sans-serif;
  font-size: clamp(9rem, 30vw, 34rem);
  line-height: 0.78;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.preloader__count-inner {
  display: inline-flex;
}

/* Odometer: every digit is a 0–9 strip sliding inside a one-line window. */
.preloader__digit {
  display: inline-block;
  height: 0.86em;
  overflow: hidden;
}

.preloader__strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 280ms cubic-bezier(0.65, 0, 0.35, 1);
}

.preloader__strip span {
  display: block;
  height: 0.86em;
  line-height: 0.92;
}

/* ───────── Hero ───────── */

.scroll-stage {
  --pin: 80vh;
  position: relative;
  height: calc(100vh + var(--pin));
}

.hero {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  background: #fff;
  overflow: hidden;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  padding: clamp(1rem, 2vw, 1.8rem) var(--gutter);
}

.site-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.site-geo {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.4rem);
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: clamp(0.66rem, 0.72vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav__links {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: clamp(1.15rem, 2vw, 2.35rem);
}

.site-nav__link,
.site-nav__contact,
.mobile-menu__link,
.mobile-menu__contact {
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: clamp(0.78rem, 0.86vw, 0.92rem);
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  transition: opacity 180ms ease, background-color 180ms ease, color 180ms ease;
}

.site-nav__link {
  position: relative;
  padding: 0.35rem 0 0.48rem;
}

.mobile-menu__link:hover,
.mobile-menu__link:focus-visible {
  opacity: 0.58;
}

.site-nav__link:focus-visible,
.site-nav__contact:focus-visible,
.site-header__burger:focus-visible,
.mobile-menu__link:focus-visible,
.mobile-menu__contact:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

.site-nav__link.is-active {
  font-weight: 600;
}

.site-nav__link::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  transform: translateX(-50%) scale(0);
  transition: transform 450ms var(--ease-out);
}

.site-nav__link.is-active::after,
.site-nav__link:hover::after {
  transform: translateX(-50%) scale(1);
}

.site-nav__contact {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.92rem 1.35rem;
  border-radius: 0;
  background: var(--ink);
  color: #fff;
  font-size: clamp(0.82rem, 0.9vw, 0.96rem);
  will-change: transform;
}

/* Text roll: label slides up, its copy (text-shadow) slides in from below. */
.roll {
  display: inline-block;
  height: 1.2em;
  overflow: hidden;
  padding-inline: 0.08em;
  margin-inline: -0.08em;
  line-height: 1.2;
  vertical-align: middle;
}

.roll__inner {
  display: inline-block;
  text-shadow: 0 1.2em currentColor;
  transition: transform 600ms var(--ease-out);
}

a:hover .roll__inner,
a:focus-visible .roll__inner {
  transform: translateY(-1.2em);
}

.site-header__burger,
.mobile-menu {
  display: none;
}

.hero__scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.hero__scene canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
}

.hero__scene canvas.is-dragging {
  cursor: grabbing;
}

body.is-dragging-character {
  user-select: none;
}

.hero__type {
  position: relative;
  width: 100%;
  height: 100%;
  pointer-events: none;
  --hero-text-shift: 50px;
}

.hero__title,
.hero__side {
  margin: 0;
  color: var(--ink);
  font-family: "Vartan Display Condensed", "Arial Narrow", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
}

.hero__title {
  position: absolute;
  z-index: 0;
  font-family: "Brandbe", "Arial Narrow", sans-serif;
  font-weight: 700;
  top: calc(clamp(4rem, 4.2vw, 6rem) + var(--hero-text-shift) + 22px);
  left: 50%;
  width: 100%;
  padding-inline: clamp(0.75rem, 1.7vw, 2rem);
  /* --title-nudge (set in JS) centres the visible ink, not the glyph boxes. */
  transform: translateX(calc(-50% + var(--title-nudge, 0px))) scaleX(1.01) scaleY(1.06);
  transform-origin: top center;
  font-size: clamp(13rem, 20vw, 25rem);
  line-height: 0.8;
  letter-spacing: -0.042em;
  text-align: center;
  white-space: nowrap;
}

.hero__word {
  display: inline-block;
  white-space: nowrap;
}

/* Each letter has its own mask: padding leaves room for Й and side bearings,
   negative margin keeps the original spacing. */
.hero__mask {
  position: relative;
  display: inline-block;
  overflow: hidden;
  padding: 0.14em 0.03em 0.04em;
  margin: -0.14em -0.03em -0.04em;
  vertical-align: top;
}

.hero__glyph {
  position: relative;
  display: inline-block;
  will-change: transform;
}

.hero__clone {
  position: absolute;
  top: 0;
  left: calc(100% + 0.12em);
}

.hero__side {
  position: absolute;
  z-index: 0;
  font-family: "DIN Pro Condensed Medium", "Arial Narrow", sans-serif;
  font-weight: 500;
  top: calc(50% + var(--hero-text-shift));
  font-size: clamp(3.25rem, 5.75vw, 6.5rem);
  line-height: 0.78;
  letter-spacing: -0.038em;
  transform: translateY(-50%);
}

.hero__side--left {
  left: var(--gutter);
}

.hero__side--right {
  right: var(--gutter);
}

/* ───────── Bottom meta row ───────── */

.hero__meta {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  padding: 0 var(--gutter) clamp(1rem, 2vw, 1.8rem);
  color: var(--ink);
  font-family: Arial, sans-serif;
  pointer-events: none;
}

.hero__scroll {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.66rem;
}

/* ───────── Portfolio list ───────── */

.works {
  --screen-w: calc(100vw - 2 * var(--gutter));
  position: relative;
  z-index: 4;
  display: grid;
  /* Pull the list up so its first card ends the pin at 70% of the viewport. */
  margin-top: -30vh;
  padding: 0 var(--gutter) 14vh;
}

/* Stack: each project sticks once you reach its bottom (top is set in JS),
   the next one rises over it. Opaque white so it fully covers the one below. */
.work {
  position: sticky;
  background: #fff;
}

.work + .work {
  padding-top: clamp(1.5rem, 3vh, 2.5rem);
}

/* Darkening layer for a project that is being covered. */
.work__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #000;
  opacity: 0;
  pointer-events: none;
}

.work__head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.7rem;
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: clamp(0.62rem, 0.72vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.work__index {
  margin-right: 1.2rem;
  color: var(--muted);
}

.work__screen {
  position: relative;
  /* 16:10, but never taller than the screen minus the caption row and breathing room,
     so the whole project fits in one view. */
  height: min(calc((100vw - 2 * var(--gutter)) * 0.625), calc(100vh - 7rem));
  overflow: hidden;
  background: #f3f3f1;
}

/* ───────── Price calculator ───────── */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.calc {
  position: relative;
  z-index: 4;
  padding: clamp(6rem, 16vh, 11rem) var(--gutter) clamp(5rem, 12vh, 9rem);
  background: #fff;
  color: var(--ink);
  font-family: Arial, sans-serif;
}

.calc__label,
.calc__legend,
.calc__panel-label {
  font-size: clamp(0.66rem, 0.72vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.calc__label span,
.calc__legend span {
  margin-right: 0.8rem;
  color: var(--muted);
}

.calc__label {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.calc__title {
  margin: 0 0 clamp(3rem, 7vw, 6rem);
  font-family: "Brandbe", "Arial Narrow", sans-serif;
  font-size: clamp(3.4rem, 9.6vw, 11.5rem);
  font-weight: 700;
  line-height: 0.84;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.calc__title > span {
  display: block;
  overflow: hidden;
  padding-top: 0.08em;
}

.calc__title .line-inner {
  display: block;
}

.calc__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.25rem, 2vw, 2rem);
  align-items: start;
}

.calc__form {
  grid-column: 1 / span 7;
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
}

.calc__step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.calc__legend {
  margin-bottom: 1.2rem;
  padding: 0;
}

/* Step 1: type rows — black fill sweeps in from the left when selected. */
.calc-type {
  position: relative;
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: clamp(1rem, 1.6vw, 1.45rem) 1rem;
  border-top: 1px solid rgba(17, 17, 16, 0.14);
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition: color 500ms var(--ease-out);
}

.calc-type:last-child {
  border-bottom: 1px solid rgba(17, 17, 16, 0.14);
}

.calc-type::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  content: "";
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 750ms cubic-bezier(0.77, 0, 0.18, 1);
}

.calc-type.is-active {
  color: #fff;
}

.calc-type.is-active::before {
  transform: scaleX(1);
  transform-origin: left center;
}

.calc-type__index,
.calc-type__meta {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.55;
}

.calc-type__name {
  font-family: "Brandbe", "Arial Narrow", sans-serif;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  transition: transform 600ms var(--ease-out);
}

.calc-type:hover .calc-type__name {
  transform: translateX(0.8rem);
}

.calc-type:focus-within,
.calc-extra:focus-within,
.calc-speed:focus-within {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

/* Step 2: volume slider */
.calc__volume-value {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.calc__volume-num {
  display: inline-block;
  min-width: 1.2ch;
  font-family: "Brandbe", "Arial Narrow", sans-serif;
  font-size: clamp(4rem, 7vw, 7rem);
  line-height: 0.8;
  letter-spacing: -0.03em;
}

.calc__range {
  --fill: 0%;
  width: 100%;
  height: 2.2rem;
  margin: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
}

.calc__range::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(90deg, var(--ink) var(--fill), rgba(17, 17, 16, 0.14) var(--fill));
}

.calc__range::-moz-range-track {
  height: 2px;
  background: linear-gradient(90deg, var(--ink) var(--fill), rgba(17, 17, 16, 0.14) var(--fill));
}

.calc__range::-webkit-slider-thumb {
  width: 1.5rem;
  height: 1.5rem;
  margin-top: calc(-0.75rem + 1px);
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  appearance: none;
  transition: transform 400ms var(--ease-out);
}

.calc__range::-moz-range-thumb {
  width: 1.5rem;
  height: 1.5rem;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  transition: transform 400ms var(--ease-out);
}

.calc__range:hover::-webkit-slider-thumb,
.calc__range:active::-webkit-slider-thumb { transform: scale(1.35); }
.calc__range:hover::-moz-range-thumb,
.calc__range:active::-moz-range-thumb { transform: scale(1.35); }

.calc__range:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

.calc__range-scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

/* Step 3: extras — black fill rises from the bottom when switched on. */
.calc__extras {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.calc-extra {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  min-height: 6.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(17, 17, 16, 0.14);
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition: color 450ms var(--ease-out), border-color 450ms var(--ease-out);
}

.calc-extra::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  content: "";
  clip-path: inset(100% 0 0 0);
  transition: clip-path 650ms cubic-bezier(0.77, 0, 0.18, 1);
}

.calc-extra:hover {
  border-color: var(--ink);
}

.calc-extra.is-active {
  border-color: var(--ink);
  color: #fff;
}

.calc-extra.is-active::before {
  clip-path: inset(0 0 0 0);
}

.calc-extra__name {
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  font-weight: 700;
}

.calc-extra__price {
  font-size: 0.74rem;
  font-weight: 700;
  opacity: 0.6;
}

.calc-extra__icon {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  width: 0.9rem;
  height: 0.9rem;
  transition: transform 600ms var(--ease-out);
}

.calc-extra__icon::before,
.calc-extra__icon::after {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  content: "";
}

.calc-extra__icon::after {
  transform: rotate(90deg);
}

.calc-extra.is-active .calc-extra__icon {
  transform: rotate(135deg);
}

/* Step 4: speed — segmented control with a sliding black indicator */
.calc__speed {
  position: relative;
  display: inline-flex;
  padding: 0.3rem;
  border: 1px solid rgba(17, 17, 16, 0.14);
}

.calc__speed-indicator {
  position: absolute;
  top: 0.3rem;
  bottom: 0.3rem;
  left: 0;
  width: 0;
  background: var(--ink);
}

.calc-speed {
  position: relative;
  z-index: 1;
  padding: 0.95rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 450ms var(--ease-out);
}

.calc-speed.is-active {
  color: #fff;
}

/* Result panel */
.calc__panel {
  position: sticky;
  top: 2rem;
  grid-column: 9 / span 4;
  display: grid;
  gap: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--ink);
}

.calc__price {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-family: "Brandbe", "Arial Narrow", sans-serif;
  font-size: clamp(3.4rem, 6.2vw, 7.5rem);
  line-height: 0.86;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.calc__price-from,
.calc__price-cur {
  padding-top: 0.12em;
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.calc__days {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.calc__days .odo {
  font-family: "Brandbe", "Arial Narrow", sans-serif;
  font-size: 2rem;
}

/* Odometer wheels (same idea as the preloader counter). */
.odo {
  display: inline-flex;
  font-variant-numeric: tabular-nums;
}

.odo__digit {
  display: inline-block;
  height: 0.86em;
  overflow: hidden;
}

.odo__strip {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.odo__strip span {
  display: block;
  height: 0.86em;
  line-height: 0.92;
}

.odo__sep {
  display: inline-block;
  width: 0.18em;
}

.calc__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-height: 2rem;
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
}

.calc__summary li {
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(17, 17, 16, 0.14);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.calc__cta {
  display: flex;
  justify-content: center;
  padding: 1.15rem 1.35rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 300ms ease;
}

.calc__cta:hover {
  background: #2c2c2a;
}

.calc__note {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 960px) {
  .calc__form,
  .calc__panel {
    grid-column: 1 / -1;
  }

  /* On phones the result sticks to the bottom of the screen while the form scrolls. */
  .calc__panel {
    position: sticky;
    top: auto;
    bottom: 0;
    z-index: 5;
    gap: 0.6rem;
    margin: 0 calc(-1 * var(--gutter));
    padding: 1rem var(--gutter);
    background: #fff;
    box-shadow: 0 -12px 30px rgba(17, 17, 16, 0.06);
  }

  .calc__panel-label,
  .calc__summary,
  .calc__note {
    display: none;
  }

  .calc__price {
    font-size: clamp(2.8rem, 12vw, 4rem);
  }
}

@media (max-width: 600px) {
  .calc-type {
    grid-template-columns: 2rem 1fr;
  }

  .calc-type__meta {
    grid-column: 2;
  }

  .calc__extras {
    grid-template-columns: 1fr;
  }

  .calc-extra {
    min-height: 4.5rem;
  }
}

/* Placeholder "site" inside the screen. */
.mock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--mock-bg);
  color: var(--mock-ink);
  font-family: Arial, sans-serif;
}

.work--1 { --mock-bg: #f1f1ef; --mock-ink: #111110; }
.work--2 { --mock-bg: #111110; --mock-ink: #f4f4f2; }
.work--3 { --mock-bg: #e6e3dc; --mock-ink: #111110; }
.work--4 { --mock-bg: #2b2b29; --mock-ink: #f4f4f2; }

.mock__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 6%;
  padding: 0 2%;
  border-bottom: 1px solid color-mix(in srgb, var(--mock-ink) 12%, transparent);
  font-size: 0.58rem;
}

.mock__bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.25;
}

.mock__bar span {
  margin-inline: auto;
  opacity: 0.45;
}

.mock__body {
  display: grid;
  flex: 1;
  align-content: end;
  gap: clamp(0.7rem, 1.4vw, 1.4rem);
  padding: 5%;
}

.mock__kicker {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.5;
}

.mock__title {
  font-family: "Brandbe", "Arial Narrow", sans-serif;
  font-size: calc(var(--screen-w) * 0.12);
  line-height: 0.8;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.mock__lines {
  display: grid;
  gap: 6px;
}

.mock__lines i {
  display: block;
  height: 4px;
  background: currentColor;
  opacity: 0.12;
}

.mock__lines i:nth-child(1) { width: 62%; }
.mock__lines i:nth-child(2) { width: 48%; }
.mock__lines i:nth-child(3) { width: 30%; }

/* ───────── Responsive ───────── */

@media (max-width: 960px) {
  .hero__title {
    top: calc(clamp(1.35rem, 6.5vw, 2rem) + var(--hero-text-shift));
    width: min(100% - 1.5rem, 30rem);
    padding: 0;
    transform: translateX(calc(-50% + var(--title-nudge, 0px))) scaleX(0.99) scaleY(1.03);
    font-size: clamp(7rem, 35vw, 9.5rem);
    line-height: 0.8;
    letter-spacing: -0.048em;
    white-space: normal;
  }

  .hero__side {
    top: calc(57% + var(--hero-text-shift));
    font-size: clamp(2.25rem, 11.5vw, 4.1rem);
  }

  .hero__side--left { left: 0.6rem; }
  .hero__side--right { right: 0.6rem; }

}

@media (max-width: 1180px) {
  .site-geo__coords { display: none; }
}

@media (max-width: 760px) {

  .site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
  }

  .site-nav {
    display: flex;
  }

  .site-nav__links,
  .site-nav__contact,
  .site-geo__coords {
    display: none;
  }

  .site-header__burger {
    display: inline-flex;
    position: relative;
    z-index: 2;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 2.75rem;
    height: 2.75rem;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--ink);
    color: #fff;
    cursor: pointer;
    transition: background-color 180ms ease, transform 180ms ease;
  }

  .site-header__burger span {
    display: block;
    width: 1rem;
    height: 1px;
    background: currentColor;
    transition: transform 300ms var(--ease-out);
  }

  .site-header__burger[aria-expanded="true"] span:first-child {
    transform: translateY(3px) rotate(45deg);
  }

  .site-header__burger[aria-expanded="true"] span:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }

  .mobile-menu {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: min(17rem, calc(100vw - 1.5rem));
    padding: 4.25rem 1.1rem 1.1rem;
    background: #fff;
    box-shadow: 0 20px 60px rgba(17, 17, 16, 0.08);
  }

  .mobile-menu:not([hidden]) {
    display: block;
    animation: menu-in 450ms var(--ease-out);
  }

  @keyframes menu-in {
    from { clip-path: inset(0 0 100% 0); }
    to { clip-path: inset(0 0 0 0); }
  }

  .mobile-menu__nav {
    display: grid;
    gap: 0.3rem;
  }

  .mobile-menu__link {
    padding: 0.75rem 0.2rem;
    font-size: 0.94rem;
  }

  .mobile-menu__link.is-active {
    font-weight: 600;
  }

  .mobile-menu__contact {
    margin-top: 0.65rem;
    padding: 1rem 1.1rem;
    background: var(--ink);
    color: #fff;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .preloader { display: none; }
}
