/* Vito's Service: single-page site
   Palette: warm concrete paper, asphalt night, one signal red taken from the client's own sign. */

/* One file for Georgian + Latin (a single shaping font per text run), Cyrillic loads only for the Russian version.
   Subset to the characters in use and to the axis ranges the page uses: weight 400-800, width 75-100%. */
@font-face {
  font-family: "NSG";
  src: url("fonts/nsg.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+10D0-10FF, U+2000-206F, U+2190-2193, U+20BE, U+2212;
}
@font-face {
  font-family: "NSG";
  src: url("fonts/ns-cyrillic.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
  unicode-range: U+0400-045F, U+2116;
}

:root {
  --paper: #F4F1EB;
  --paper-2: #ECE7DE;
  --card: #FBFAF7;
  --ink: #15130F;
  --muted: #5C564D;
  --line: #E0DAD0;
  --red: #D7261E;
  --red-press: #B91F18;
  --red-ink: #C8231B;
  --night: #141210;
  --night-2: #1D1B18;
  --night-line: #2E2B27;
  --night-ink: #F4F1EB;
  --night-muted: #A8A097;
  --night-red: #FF5A4E;

  --font: "NSG", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 20px;
  --max: 1200px;
  --radius: 22px;
  --radius-sm: 14px;
  --bar: 60px;      /* height of the navigation bar */
  --hdr: 68px;      /* bar plus the gap above it */
  --bleed: 12px;    /* how far the bar plate reaches past the page edges */
  --jump: 20px;     /* where a section stops after a menu jump */
  --inset: 8px;

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

  color-scheme: light;
  interpolate-size: allow-keywords;
}
@media (min-width: 640px)  { :root { --gutter: 32px; --inset: 12px; } }

@media (min-width: 1024px) { :root { --gutter: 48px; --bar: 72px; --hdr: 84px; --bleed: 20px; --jump: 0px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--jump);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.sec--night :focus-visible, .hero :focus-visible, .contact :focus-visible { outline-color: var(--night-red); }

.skip {
  position: fixed; top: 10px; left: 10px; z-index: 100;
  padding: 12px 18px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-weight: 600;
  transform: translateY(-160%);
  transition: transform 200ms var(--ease-out);
}
.skip:focus-visible { transform: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
/* inside the inset dark panels the content keeps the page's own edges */
.hero__panel .wrap, .contact__panel .wrap { width: min(100% - 2 * (var(--gutter) - var(--inset)), var(--max)); }
.ico { width: 20px; height: 20px; flex: none; }

/* ---------- type ---------- */
.h2 {
  font-size: clamp(1.85rem, 1.25rem + 2.2vw, 3rem);
  line-height: 1.12;
  font-weight: 800;
  font-stretch: 75%;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.lead {
  margin-top: 18px;
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
}
.lead--night { color: var(--night-muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
  color: var(--red-ink);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow--night { color: var(--night-red); }

/* ---------- buttons & links ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 0.9875rem; line-height: 1.2;
  text-align: center;
  text-wrap: balance;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--red { --bg: var(--red); --fg: #fff; }
.btn--dark { --bg: var(--night-2); --fg: var(--night-ink); }
.btn--ghost { --bg: rgba(244, 241, 235, 0.1); --fg: var(--night-ink); box-shadow: inset 0 0 0 1px rgba(244, 241, 235, 0.22); }
.btn--light { --bg: #fff; --fg: var(--ink); }
.btn--lg { min-height: 56px; padding: 14px 26px; font-size: 1.0625rem; }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 0.9375rem; }
.btn--red .ico, .btn--ghost .ico { width: 19px; height: 19px; }
.ico--wa { color: #25D366; }
.btn--light .ico--wa { color: #1DA851; }
.btn span { font-variant-numeric: tabular-nums; }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(21, 19, 15, 0.45); }
  .btn--red:hover { --bg: var(--red-press); }
  .btn--ghost:hover { --bg: rgba(244, 241, 235, 0.16); box-shadow: inset 0 0 0 1px rgba(244, 241, 235, 0.4); }
  .btn:active { transform: scale(0.97); }
}

.link {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  font-weight: 600;
  color: var(--ink);
  background: linear-gradient(currentColor, currentColor) no-repeat 0 calc(100% - 9px) / 0% 1.5px;
  transition: background-size 280ms var(--ease-out), color 200ms ease;
}
.link .ico { width: 18px; height: 18px; color: var(--red-ink); transition: transform 220ms var(--ease-out); }
.link--night { color: var(--night-ink); }
.link--night .ico { color: var(--night-red); }
@media (hover: hover) and (pointer: fine) {
  .link:hover { background-size: calc(100% - 26px) 1.5px; }
  .link:hover .ico { transform: translateX(3px); }
}

/* ---------- header: a strip of road ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--night-ink);
  pointer-events: none;
}
.hdr :focus-visible, .menu :focus-visible { outline-color: var(--night-red); }
.bar {
  position: relative;
  display: flex; align-items: center; gap: 24px;
  height: var(--bar);
  margin-top: calc(var(--hdr) - var(--bar));
  pointer-events: auto;
  transform: translateY(8px);
  transition: transform 480ms var(--ease-out);
}
.bar__plate {
  position: absolute; inset: 0 calc(-1 * var(--bleed)); z-index: -1;
  border-radius: 20px;
  background: var(--night-2);
  box-shadow: 0 0 0 1px var(--night-line), 0 18px 40px -22px rgba(21, 19, 15, 0.7);
  opacity: 0; transform: translateY(-14px) scaleX(1.02);
  transition: opacity 260ms ease, transform 480ms var(--ease-out);
}
.hdr.is-stuck .bar { transform: none; }
.hdr.is-stuck .bar__plate, .menu-open .bar__plate { opacity: 1; transform: none; }

.brand { display: inline-flex; align-items: center; gap: 11px; min-height: 44px; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__tread { transform-origin: 32px 32px; }
.brand__text { display: grid; line-height: 1; }
.brand__name { font-weight: 800; font-stretch: 75%; font-size: 1.3rem; letter-spacing: 0.005em; }
.brand__tag { margin-top: 5px; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; color: #C9C2B8; }
.brand--night { --mark-tire: #2A2723; --mark-tread: rgba(244, 241, 235, 0.22); color: var(--night-ink); }
.brand--night .brand__tag { color: var(--night-muted); }

.nav { display: none; margin-inline: auto; padding-inline: 30px; }
.nav a {
  position: relative;
  display: flex; align-items: center;
  height: 44px; margin-bottom: 8px; padding: 0 16px;
  font-weight: 600; font-size: 0.9375rem; color: #C9C2B8;
  transition: color 220ms ease;
}
.nav a.is-current { color: #fff; }

.road { position: absolute; left: 8px; right: 8px; bottom: 0; height: 2px; opacity: 0; transition: opacity 300ms ease; }
.is-stuck .road { opacity: 1; }
.road__track {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, var(--red) 0 5px, transparent 5px 8px);
  clip-path: inset(0 100% 0 0);
}
.road__tire { display: none; }

.bar__end { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.bar__call { display: none; }
@keyframes ring { 0%, 100% { transform: none; } 20%, 60% { transform: rotate(-14deg); } 40%, 80% { transform: rotate(12deg); } }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: #fff; }
  .bar__call:hover .ico { animation: ring 520ms ease; }
}

/* language: one thumb slides to the chosen language */
.lang { position: relative; display: none; }
.lang::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: calc(100% / 3);
  border-radius: 12px;
  background: rgba(244, 241, 235, 0.14);
  transition: transform 360ms var(--ease-out);
}
.lang:has([data-lang="en"][aria-pressed="true"])::before { transform: translateX(100%); }
.lang:has([data-lang="ru"][aria-pressed="true"])::before { transform: translateX(200%); }
.lang button {
  position: relative; flex: 1;
  min-width: 44px; min-height: 40px; padding: 6px 8px;
  border: 0; background: none;
  font-size: 0.8125rem; font-weight: 600; color: #C9C2B8;
  cursor: pointer;
  transition: color 200ms ease;
}
.lang button[aria-pressed="true"] { color: #fff; }
@media (hover: hover) and (pointer: fine) { .lang button:hover { color: #fff; } }

.menu-btn {
  display: grid; place-items: center;
  width: 48px; height: 48px; margin-right: -10px;
  border: 0; border-radius: 14px; background: none; cursor: pointer;
  transition: transform 160ms var(--ease-out);
}
.menu-btn:active { transform: scale(0.94); }
.menu-btn__bars { position: relative; width: 24px; height: 12px; }
.menu-btn__bars::before, .menu-btn__bars::after {
  content: ""; position: absolute; right: 0; width: 24px; height: 2.5px; border-radius: 2px; background: currentColor;
  transition: transform 380ms var(--ease-sheet), width 380ms var(--ease-sheet);
}
.menu-btn__bars::before { top: 0; }
.menu-btn__bars::after { bottom: 0; width: 15px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(4.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { width: 24px; transform: translateY(-4.75px) rotate(-45deg); }

@media (min-width: 640px) { .bar__call { display: inline-flex; } }
@media (min-width: 1180px) {
  .nav { display: flex; }
  .lang { display: flex; }
  .menu-btn { display: none; }
  /* on wide screens the road runs under the links; site.js sets its left and width */
  .road { right: auto; bottom: 1px; opacity: 1; }
  .road::before {
    content: ""; position: absolute; inset: 0;
    background: rgba(244, 241, 235, 0.2);
    transform-origin: 0 50%;
    animation: draw 1100ms var(--ease-in-out) 200ms backwards;
  }
  .road__tire { display: block; position: absolute; left: -11px; bottom: 2px; width: 22px; height: 22px; }
  .brand { animation: drop 700ms var(--ease-out) backwards; }
  .brand__mark { animation: roll-in 1100ms var(--ease-out) backwards; }
  .nav a { animation: drop 600ms var(--ease-out) backwards; }
  .nav a:nth-child(1) { animation-delay: 120ms; }
  .nav a:nth-child(2) { animation-delay: 170ms; }
  .nav a:nth-child(3) { animation-delay: 220ms; }
  .nav a:nth-child(4) { animation-delay: 270ms; }
  .bar__end { animation: drop 600ms var(--ease-out) 320ms backwards; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-12px); } }
@keyframes draw { from { transform: scaleX(0); } }
@keyframes roll-in { from { transform: translateX(-70px) rotate(-200deg); } }

/* mobile menu: the bar itself unfolds downwards */
.scrim {
  position: fixed; inset: 0; z-index: 48;
  background: rgba(20, 18, 16, 0.5);
  opacity: 0; pointer-events: none;
  transition: opacity 320ms ease;
}
.menu-open .scrim { opacity: 1; pointer-events: auto; }
.menu {
  position: fixed; z-index: 49;
  top: calc(var(--hdr) - var(--bar));
  left: calc(var(--gutter) - var(--bleed)); right: calc(var(--gutter) - var(--bleed));
  max-height: calc(100dvh - 2 * (var(--hdr) - var(--bar)));
  padding: calc(var(--bar) + 6px) var(--bleed) 16px;
  border-radius: 20px;
  background: var(--night-2);
  color: var(--night-ink);
  box-shadow: inset 0 0 0 1px #3A3631;
  overflow-y: auto; overscroll-behavior: contain;
  clip-path: inset(0 0 calc(100% - var(--bar)) round 20px);
  transition: clip-path 340ms var(--ease-sheet);
}
.menu[hidden] { display: none; }
.menu.is-open { clip-path: inset(0 round 20px); transition-duration: 520ms; }
.menu-open .bar { transform: none; }
.menu-open .bar__plate { box-shadow: none; }
.menu-open .road { opacity: 0; }
.menu__nav { display: grid; }
.menu__nav a {
  padding: 13px 4px;
  border-bottom: 1px solid var(--night-line);
  font-size: 1.55rem; line-height: 1.3; font-weight: 800; font-stretch: 75%;
}
.menu__nav a:active { color: var(--night-red); }
.menu__foot { display: grid; gap: 4px; padding-top: 14px; }
.menu__phone { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; padding: 4px; }
.menu__phone span { color: var(--night-muted); font-size: 0.875rem; font-weight: 600; }
.menu__phone b { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.menu__foot .lang { display: flex; margin-top: 10px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--night-line); }
.lang--lg button { min-height: 46px; font-size: 0.9375rem; }
.menu.is-open .menu__nav a, .menu.is-open .menu__foot > * { animation: unfold 520ms var(--ease-out) backwards; animation-delay: calc(60ms + var(--i, 0) * 38ms); }
.menu__nav a:nth-child(2) { --i: 1; } .menu__nav a:nth-child(3) { --i: 2; } .menu__nav a:nth-child(4) { --i: 3; } .menu__nav a:nth-child(5) { --i: 4; }
.menu__foot > * { --i: 5; } .menu__foot > :nth-child(2) { --i: 6; } .menu__foot > :nth-child(3) { --i: 7; }
@keyframes unfold { from { opacity: 0; transform: translateY(-16px); } }
body.menu-open { overflow: hidden; }

/* ---------- hero ---------- */
.hero { padding: var(--inset); }
.hero__panel {
  position: relative;
  display: flex; flex-direction: column;
  min-height: calc(100svh - 2 * var(--inset));
  border-radius: 28px;
  background: var(--night);
  color: var(--night-ink);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: relative;
  height: clamp(230px, 35svh, 400px);
  flex: none;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 58% 60%;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  filter: saturate(0.92) contrast(1.04);
}
.hero__panel::before {
  /* keeps the bar readable over the photo */
  content: ""; position: absolute; inset: 0 0 auto; height: 150px; z-index: 1;
  background: linear-gradient(rgba(20, 18, 16, 0.82), rgba(20, 18, 16, 0));
  pointer-events: none;
}
.hero__in {
  position: relative;
  flex: 1;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: 4px 0 28px;
}
/* the open sign: hangs from a nail, swings once when the page opens */
.sign { display: flex; }
.sign__swing { position: relative; display: inline-block; padding-top: 23px; transform-origin: 50% 4px; animation: swing 3200ms ease-in-out 350ms backwards; }
.sign__cord { position: absolute; top: 0; left: 50%; width: 72px; height: 24px; margin-left: -36px; color: #A8A097; }
.sign__plate {
  display: block; padding: 8px 18px 9px;
  border-radius: 7px;
  background: var(--paper); color: var(--ink);
  outline: 1.5px solid var(--red); outline-offset: -5px;
  font-size: 1.125rem; font-weight: 800; font-stretch: 75%; line-height: 1.25;
}
@keyframes swing {
  0% { transform: rotate(-11deg); } 18% { transform: rotate(8deg); } 36% { transform: rotate(-5.5deg); }
  54% { transform: rotate(3.5deg); } 70% { transform: rotate(-2deg); } 85% { transform: rotate(1deg); } 100% { transform: none; }
}

.hero__title {
  margin-top: 22px;
  font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4.4rem);
  line-height: 1.04;
  font-weight: 800;
  font-stretch: 75%;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.hero__title em { font-style: normal; color: var(--night-red); }
.hero__title span { display: block; margin-top: 0.12em; color: var(--night-muted); font-weight: 600; font-stretch: 100%; font-size: 0.62em; line-height: 1.15; letter-spacing: 0; }
.hero__lead { margin-top: 20px; max-width: 30em; color: #D6D0C7; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--night-line); }
.fact { padding: 18px 14px 0 0; }
.fact + .fact { padding-left: 14px; border-left: 1px solid var(--night-line); }
.fact dt { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem); font-weight: 800; font-stretch: 75%; line-height: 1; }
@media (max-width: 400px) { .fact { padding-right: 10px; } .fact + .fact { padding-left: 10px; } .fact dd { font-size: 0.75rem; } }
.fact dd { margin-top: 8px; color: var(--night-muted); font-size: 0.8125rem; line-height: 1.35; }

@media (max-width: 639px) {
  .hero__actions .btn { width: 100%; }
}

@media (min-width: 960px) {
  .hero__panel { min-height: min(calc(100svh - 2 * var(--inset)), 940px); }
  .hero__media {
    position: absolute; inset: 0 0 0 auto;
    width: 60%; height: 100%;
  }
  .hero__media img {
    object-position: 46% 50%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.55) 22%, #000 48%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.55) 22%, #000 48%);
  }
  .hero__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(20, 18, 16, 0.75), transparent 38%);
  }
  .hero__in { padding: calc(var(--hdr) + clamp(28px, 6vh, 72px)) 0 40px; }
  .hero__copy { max-width: 600px; }
  .facts { max-width: 640px; }
  .fact { padding-top: 22px; }
}

/* hero entrance: once, on load */
[data-enter] > * {
  animation: enter 760ms var(--ease-out) both;
}
[data-enter] > :nth-child(2) { animation-delay: 70ms; }
[data-enter] > :nth-child(3) { animation-delay: 130ms; }
[data-enter] > :nth-child(4) { animation-delay: 180ms; }
.facts[data-enter] > * { animation-delay: 260ms; }
.facts[data-enter] > :nth-child(2) { animation-delay: 310ms; }
.facts[data-enter] > :nth-child(3) { animation-delay: 360ms; }
.hero__media img { animation: settle 1400ms var(--ease-out) both; }
/* the h1 only slides, never fades: it is painted on the first frame */
[data-enter] > .hero__title { animation-name: rise; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } }
@keyframes rise { from { transform: translateY(10px); } }
@keyframes settle { from { opacity: 0; transform: scale(1.04); } }

/* ---------- sections ---------- */
.sec { padding-block: clamp(80px, 10vw, 136px); }
.sec--tint { background: var(--paper-2); }
.sec--night { background: var(--night); color: var(--night-ink); }
.sec__head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec__head--tight { margin-bottom: 0; }

/* services */
.cards { display: grid; gap: 20px; }
@media (min-width: 640px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.card {
  display: flex; flex-direction: column;
  padding: 10px 10px 26px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line);
}
.card__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: calc(var(--radius) - 8px); background: var(--paper-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.card__media .pos-dash { object-position: 30% 50%; }
.card__title { margin: 22px 16px 0; font-size: 1.3rem; line-height: 1.2; font-weight: 800; font-stretch: 75%; }
.card__text { margin: 10px 16px 0; color: var(--muted); font-size: 0.975rem; }
@media (hover: hover) and (pointer: fine) {
  .card:hover .card__media img { transform: scale(1.03); }
}
.card--cta {
  justify-content: flex-end;
  min-height: 320px;
  padding: 30px 26px;
  background: var(--red);
  color: #fff;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}
.card--cta::before {
  /* tread marks: the one decorative motif on the page */
  content: ""; position: absolute; inset: -20px -20px auto auto; width: 70%; height: 70%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M2 6 14 14 26 6M2 18 14 26 26 18' fill='none' stroke='%23fff' stroke-opacity='.14' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 0 0 / 28px 28px;
  -webkit-mask-image: radial-gradient(closest-side at 70% 30%, #000, transparent);
  mask-image: radial-gradient(closest-side at 70% 30%, #000, transparent);
}
.card--cta .card__title, .card--cta .card__text { margin-inline: 0; }
.card--cta .card__title { margin-top: 10px; font-size: 1.6rem; }
.card--cta .card__text { color: rgba(255, 255, 255, 0.88); margin-bottom: 24px; }
.card--cta .btn { align-self: flex-start; }
.card--cta__kicker { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); }

/* call-out split */
.split { display: grid; gap: 40px; align-items: center; }
.split__media { order: 2; }
.split__media { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; }
.split__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; gap: clamp(48px, 6vw, 96px); }
  .split__media { order: 0; }
  .split__media { aspect-ratio: 1 / 1.08; }
}
.steps { margin: 36px 0 22px; display: grid; gap: 4px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n { padding-top: 3px; color: var(--red-ink); font-weight: 800; font-stretch: 75%; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.step__title { font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
.step__text { margin-top: 4px; color: var(--muted); font-size: 0.975rem; }

/* rims: the 10-minute clock */
.rims { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .rims { grid-template-columns: minmax(280px, 0.9fr) 1.1fr; gap: clamp(56px, 7vw, 112px); } }
.clock { position: relative; width: min(100%, 420px); aspect-ratio: 1; margin-inline: auto; }
.clock__svg { width: 100%; height: 100%; overflow: visible; }
.clock__tread, .clock__lit { fill: none; stroke-width: 22; }
.clock__tread { stroke: #34302B; }
.clock__lit { stroke: var(--red); }
.clock__rim { fill: none; stroke: var(--night-line); stroke-width: 1.5; }
.clock__arc { stroke-dashoffset: 0; }
.clock.is-armed .clock__arc { stroke-dashoffset: 10; }
.clock.is-on .clock__arc { stroke-dashoffset: 0; transition: stroke-dashoffset 2400ms steps(10, end) 200ms; }
.clock__face { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.clock__num { font-size: clamp(5.5rem, 4rem + 6vw, 8.5rem); font-weight: 800; font-stretch: 75%; line-height: 0.9; letter-spacing: -0.03em; }
.clock__unit { margin-top: 8px; color: var(--night-muted); font-weight: 600; font-size: 1rem; letter-spacing: 0.04em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 20px; }
.chips li {
  padding: 9px 16px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--night-line);
  color: var(--night-ink); font-size: 0.9375rem; font-weight: 600;
}

/* branches */
.branches__top { display: grid; gap: 36px; align-items: end; margin-bottom: clamp(32px, 4vw, 48px); }
.branches__media { overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 10; }
.branches__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
@media (min-width: 960px) { .branches__top { grid-template-columns: 1fr 1fr; gap: clamp(48px, 6vw, 96px); } }
.branches { display: grid; gap: 16px; }
@media (min-width: 760px) { .branches { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.branch {
  display: flex; flex-direction: column;
  padding: 26px 26px 14px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line);
  transition: transform 260ms var(--ease-out), box-shadow 260ms ease;
}
.branch__n { color: var(--red-ink); font-weight: 800; font-stretch: 75%; font-size: 0.95rem; }
.branch__area { margin-top: 18px; font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); line-height: 1.05; font-weight: 800; font-stretch: 75%; }
.branch__street { margin-top: 8px; color: var(--muted); }
.branch .link { margin-top: 18px; align-self: flex-start; }
@media (hover: hover) and (pointer: fine) {
  .branch:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -24px rgba(21, 19, 15, 0.35); }
}

/* faq */
.faq { display: grid; gap: 8px; }
@media (min-width: 960px) {
  .faq { grid-template-columns: 0.8fr 1.2fr; gap: clamp(48px, 6vw, 96px); align-items: start; }
  .faq__head { position: sticky; top: calc(var(--hdr) + 32px); margin-bottom: 0; }
}
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 72px; padding: 18px 0;
  font-size: 1.125rem; font-weight: 700; line-height: 1.35;
  cursor: pointer; list-style: none;
  transition: color 200ms ease;
}
.qa summary::-webkit-details-marker { display: none; }
.qa__icon {
  width: 36px; height: 36px; padding: 8px; flex: none;
  border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 300ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.qa[open] .qa__icon { transform: rotate(45deg); background: var(--ink); color: var(--paper); box-shadow: none; }
.qa p { padding: 0 52px 24px 0; color: var(--muted); max-width: 38em; }
.qa::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size 320ms var(--ease-out), content-visibility 320ms allow-discrete;
}
.qa[open]::details-content { block-size: auto; }
.qa[open] p { animation: enter 420ms var(--ease-out) 60ms backwards; }
@media (hover: hover) and (pointer: fine) {
  .qa summary:hover { color: var(--red-ink); }
}

/* contact + footer */
.contact { padding: 0 var(--inset) var(--inset); }
.contact__panel { border-radius: 28px; background: var(--night); color: var(--night-ink); overflow: hidden; }
.contact__in {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px;
  padding-block: clamp(72px, 9vw, 128px) clamp(56px, 7vw, 96px);
}
.contact__copy .btn { margin-top: 28px; }
@media (min-width: 960px) {
  .contact__in { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: clamp(48px, 6vw, 96px); }
}
.numbers { display: grid; }
.number {
  display: grid; gap: 4px;
  padding: 22px 0;
  border-top: 1px solid var(--night-line);
}
.number:last-child { border-bottom: 1px solid var(--night-line); }
.number__label { color: var(--night-muted); font-size: 0.875rem; font-weight: 600; }
.number__value {
  font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4rem);
  font-weight: 800; font-stretch: 75%; line-height: 1; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  transition: color 200ms ease, transform 260ms var(--ease-out);
}
.number:first-child .number__value { color: var(--night-red); }
@media (hover: hover) and (pointer: fine) {
  .number:hover .number__value { transform: translateX(6px); }
}

.ftr {
  display: grid; gap: 28px;
  padding-block: 36px calc(36px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--night-line);
  color: var(--night-muted);
  font-size: 0.9375rem;
}
.ftr__addr { display: grid; gap: 10px; }
.ftr__addr li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.4; }
.ftr__addr li > span { display: grid; }
.ftr__addr b { color: var(--night-ink); font-weight: 700; }
.ftr__addr .ico { width: 17px; height: 17px; margin-top: 2px; color: var(--night-red); }
.ftr__legal { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 18px; border-top: 1px solid var(--night-line); font-size: 0.8125rem; }
.osg { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; }
.osg img { width: auto; height: 26px; opacity: 0.82; transition: opacity 220ms ease, transform 320ms var(--ease-out); }
.osg span { transition: color 220ms ease; }
@media (hover: hover) and (pointer: fine) {
  .osg:hover { color: var(--night-ink); }
  .osg:hover img { opacity: 1; transform: translateX(3px); }
}
@media (min-width: 640px) {
  .ftr__addr { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}
@media (min-width: 1180px) {
  .ftr { grid-template-columns: 1fr auto; align-items: start; }
  .ftr__addr { grid-template-columns: repeat(3, auto); gap: 40px; }
  .ftr__legal { grid-column: 1 / -1; }
}

/* mobile call dock */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(244, 241, 235, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 -1px 0 var(--line);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 320ms var(--ease-out), visibility 0s linear 320ms;
}
.dock.is-shown { transform: none; visibility: visible; transition: transform 320ms var(--ease-out), visibility 0s; }
.dock .btn { min-height: 52px; }
@media (min-width: 1024px) { .dock { display: none; } }

/* ---------- scroll motion ----------
   site.js hides an element only while it waits just below the screen, then plays it in once.
   Everything else on the page is always visible, so nothing can stay blank. */
.is-waiting { opacity: 0; transition: none !important; }
.is-waiting.mv-words { opacity: 1; }
.is-waiting.mv-words .w > span { transform: translateY(115%); }
.mv-rise { animation: mv-rise 820ms var(--ease-out) var(--d, 0ms) backwards; transition: none !important; }
.mv-line { animation: mv-line 700ms var(--ease-out) var(--d, 0ms) backwards; transition: none !important; }
.mv-line::before { transform-origin: 0 50%; animation: draw 800ms var(--ease-out) var(--d, 0ms) backwards; }
.mv-open { animation: mv-open 1100ms var(--ease-out) var(--d, 0ms) backwards; transition: none !important; }
.mv-open img, .mv-rise .card__media img { animation: mv-unzoom 1400ms var(--ease-out) var(--d, 0ms) backwards; }
.w { display: inline-block; overflow: clip; overflow-clip-margin: 0.14em; vertical-align: top; }
.w > span { display: inline-block; }
.mv-words:not(.is-waiting) .w > span { animation: mv-word 900ms var(--ease-out) calc(var(--d, 0ms) + var(--i) * 55ms) backwards; }
@keyframes mv-rise { from { opacity: 0; transform: translateY(30px); } }
@keyframes mv-line { from { opacity: 0; transform: translateX(-10px); } }
@keyframes mv-open { from { opacity: 0; clip-path: inset(14% 10% 14% 10% round var(--radius)); } 40% { opacity: 1; } to { clip-path: inset(0 round var(--radius)); } }
@keyframes mv-unzoom { from { scale: 1.14; } }
@keyframes mv-word { from { transform: translateY(115%); } }

.split__media picture, .branches__media picture { display: block; height: 100%; }
@media print { .is-waiting { opacity: 1; } .is-waiting.mv-words .w > span { transform: none; } }

/* the two large photos drift slightly slower than the page */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .split__media picture, .branches__media picture { display: block; height: 112%; animation: drift linear both; animation-timeline: view(); }
    @keyframes drift { from { transform: translateY(-10.7%); } to { transform: none; } }
  }
}

/* language switch: a soft crossfade in place */
[data-i18n] { transition: opacity 180ms ease, filter 180ms ease; }
.is-switching [data-i18n] { opacity: 0; filter: blur(2px); }

/* reduced motion: everything rests, nothing stays hidden */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
}
