/* ==========================================================================
   Damar agency — design tokens (mirrors design-tokens.json)
   Only three hues exist: navy, electric, white. Greys are navy at opacity.
   ========================================================================== */
:root {
  --damar-navy: #00008e;
  --damar-electric: #1600fe;
  --damar-white: #ffffff;

  --navy-90: rgba(0, 0, 142, .9);
  --navy-85: rgba(0, 0, 142, .85);
  --navy-60: rgba(0, 0, 142, .6);
  --navy-15: rgba(0, 0, 142, .15);
  --navy-10: rgba(0, 0, 142, .10);
  --navy-05: rgba(0, 0, 142, .05);
  --white-80: rgba(255, 255, 255, .8);
  --white-60: rgba(255, 255, 255, .6);
  --white-15: rgba(255, 255, 255, .15);
  --white-08: rgba(255, 255, 255, .08);
  --electric-30: rgba(22, 0, 254, .3);

  /* glassmorphism */
  --glass-light: rgba(255, 255, 255, .5);
  --glass-light-card: rgba(255, 255, 255, .74);
  --glass-light-strong: rgba(255, 255, 255, .62);
  --glass-dark: rgba(255, 255, 255, .10);
  --glass-navy: rgba(0, 0, 142, .5);
  --glass-border: rgba(255, 255, 255, .28);
  --glass-blur: blur(16px) saturate(1.35);
  --glass-shadow: 0 24px 50px -28px rgba(0, 0, 142, .35);

  --gradient: linear-gradient(135deg, #00008e 0%, #1600fe 100%);
  --gradient-soft: linear-gradient(135deg, rgba(0, 0, 142, .08) 0%, rgba(22, 0, 254, .10) 100%);
  --gradient-deep: linear-gradient(140deg, #1600fe 0%, #0b00c2 45%, #00008e 100%);
  /* glass tint: white sheen over a navy→electric wash */
  --glass-grad-light: linear-gradient(140deg, rgba(255, 255, 255, .72) 0%, rgba(255, 255, 255, .48) 55%, rgba(22, 0, 254, .10) 100%);
  --glass-grad-dark: linear-gradient(140deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, .05) 55%, rgba(22, 0, 254, .18) 100%);

  /* deep surfaces: brand navy pushed toward black (oklch 17% .075 266 / 19% .09 266).
     Large dark areas sit on these; electric #1600fe is used as light (a soft glow) and for accents
     (buttons, icons, focus), never as a full-screen fill: a saturated blue field strains the eye. */
  --surface-ink: #030a2f;          /* heroes, CTA, loader */
  --surface-ink-2: #030d3b;        /* "why", CTA band, footer: a step lighter so stacked dark sections separate */
  --surface-glow:
    radial-gradient(65% 85% at 10% 0%, rgba(22, 0, 254, .42), rgba(22, 0, 254, 0) 62%),
    radial-gradient(55% 70% at 100% 100%, rgba(0, 0, 142, .45), rgba(0, 0, 142, 0) 70%);
  /* fine monochrome grain: breaks up banding in large dark gradients */
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.07'/></svg>");

  /* nav glass: four layers — blur, tint, top specular (inset), bottom hairline.
     Blur is constant; only tint / hairline / depth animate (backdrop-filter transitions cost frames). */
  --nav-blur: blur(18px) saturate(1.5);
  --nav-tint-light: rgba(255, 255, 255, .42);          /* at rest, over the hero */
  --nav-tint-light-scrolled: rgba(255, 255, 255, .6);  /* denser once content runs under it */
  --nav-tint-dark: rgba(0, 0, 0, .22);
  --nav-tint-dark-scrolled: rgba(0, 0, 0, .36);
  --nav-specular-light: rgba(255, 255, 255, .7);
  --nav-specular-dark: rgba(255, 255, 255, .16);
  --nav-hairline-light: rgba(0, 0, 142, .08);
  --nav-hairline-dark: rgba(255, 255, 255, .12);
  --nav-depth-light: 0 12px 32px -20px rgba(0, 0, 142, .28);
  --nav-depth-dark: 0 12px 32px -20px rgba(0, 0, 0, .6);
  --font-display: "Atyp Display", "Atyp Display Fallback", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Atyp Text", "Atyp Text Fallback", "Helvetica Neue", Arial, sans-serif;
  --font-cond: "Instagram Sans Condensed", "Instagram Sans Fallback", "Atyp Text", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --dur: .8s;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 64px);
  --section: clamp(64px, 8vw, 120px);
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;

  --nav-h: 76px;
}

/* touch devices: a wide blur under a fixed bar is repainted on every scroll frame. Half the radius, no
   saturation pass, and a slightly denser tint so the text stays as legible. */
@media (pointer: coarse) {
  :root {
    --nav-blur: blur(9px);
    --nav-tint-light: rgba(255, 255, 255, .58);
    --nav-tint-light-scrolled: rgba(255, 255, 255, .74);
    --nav-tint-dark: rgba(0, 0, 0, .34);
    --nav-tint-dark-scrolled: rgba(0, 0, 0, .48);
  }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; scroll-behavior: auto !important; } /* Lenis drives scrolling; native smooth-scroll must be off */
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--navy-90);
  background: var(--damar-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
:focus-visible { outline: 3px solid var(--damar-electric); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--damar-electric); color: var(--damar-white); }

.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 14px; background: var(--damar-navy); color: #fff; border-radius: 8px; }
.skip:focus { top: 12px; }
.hp { position: absolute; left: -9999px; }

/* ---------- typography ---------- */
.eyebrow, .kicker {
  font-family: var(--font-cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 14px;
  color: var(--damar-electric);
  margin-bottom: 20px;
}
.kicker--light { color: var(--white-80); }
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5.2vw, 68px);
  line-height: 1.02;
  letter-spacing: -.024em;
  color: var(--damar-navy);
  max-width: 14ch;
}
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--navy-60); max-width: 44ch; margin-top: 20px; }

/* ---------- language-switch shimmer ---------- */
@keyframes langSweep { from { background-position: 180% 0; } to { background-position: -80% 0; } }
@keyframes langSettle { 0% { opacity: .35; } 100% { opacity: 1; } }
body.lang-switching [data-i18n] {
  color: transparent !important;
  background-image: linear-gradient(100deg, var(--navy-15) 20%, var(--navy-05) 40%, var(--navy-15) 60%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  border-radius: 6px;
  animation: langSweep .6s linear infinite;
}
body.lang-switching [data-theme="dark"] [data-i18n],
body.lang-switching .nav.is-dark [data-i18n],
body.lang-switching .btn--primary[data-i18n], body.lang-switching .btn--white[data-i18n] {
  background-image: linear-gradient(100deg, var(--white-15) 20%, rgba(255,255,255,.35) 40%, var(--white-15) 60%);
}
/* fresh text fades up crisply once the swap finishes */
body.lang-settle [data-i18n] { animation: langSettle .45s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { body.lang-switching [data-i18n] { animation: none; } }

/* ---------- glass (every information card) ---------- */
.glass {
  background: var(--glass-grad-light);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), 0 0 0 1px var(--navy-10);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
}
.glass--dark { background: var(--glass-grad-dark); box-shadow: var(--glass-shadow); }
.glass--navy { background: rgba(0, 0, 0, .74); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .6); } /* darker tint: keeps white text ≥ 7:1 on light pages */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(255, 255, 255, .88); }
  .glass--dark { background: rgba(255, 255, 255, .22); }
  .glass--navy { background: rgba(0, 0, 0, .9); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 500; font-size: 16px; line-height: 1;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.btn--sm { padding: 12px 20px; font-size: 14px; }
.btn--primary { background: var(--gradient); color: #fff; box-shadow: 0 10px 30px -12px var(--electric-30); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(22, 0, 254, .55); }
.btn--ghost { color: var(--damar-navy); border: 1.5px solid var(--navy-15); }
.btn--ghost:hover { border-color: var(--damar-navy); }
.btn--white { background: #fff; color: var(--damar-navy); }
.btn--white:hover { transform: translateY(-2px); }
[data-theme="dark"] .btn--ghost { color: #fff; border-color: var(--white-15); }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: var(--surface-ink);
  transition: opacity .6s var(--ease), visibility .6s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__d { font-size: 64px; color: #fff; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .5; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }

/* ---------- adaptive logo ----------
   Vector masks painted with currentColor: the mark and wordmark take whatever colour the surrounding UI
   uses (navy on light glass, white on dark glass / footer / loader) and scale crisply at any size.
   Size = font-size of the container: the mark is 1em tall, the wordmark .8em (brand lock-up ratio). */
.damar-logo { display: inline-flex; align-items: center; gap: .225em; }
.damar-logo__mark, .damar-logo__word {
  display: block; flex: none; background-color: currentColor;
  -webkit-mask: var(--logo-mask) center / contain no-repeat; mask: var(--logo-mask) center / contain no-repeat;
}
.damar-logo__mark { --logo-mask: url("../assets/brand/symbol.svg"); height: 1em; aspect-ratio: 510 / 519; }
.damar-logo__word { --logo-mask: url("../assets/brand/wordmark.svg"); height: .8em; aspect-ratio: 1200 / 307; }
/* pre-2016 engines without mask-image: fall back to the raster files */
@supports not ((mask-image: url("")) or (-webkit-mask-image: url(""))) {
  .damar-logo__mark, .damar-logo__word { background: center / contain no-repeat; }
  .damar-logo__mark { background-image: url("../assets/brand/symbol-blue-nav.webp"); }
  .damar-logo__word { background-image: url("../assets/brand/wordmark-navy.webp"); }
  .nav.is-dark .damar-logo__mark, .footer .damar-logo__mark, .loader .damar-logo__mark { background-image: url("../assets/brand/symbol-white-nav.webp"); }
  .nav.is-dark .damar-logo__word, .footer .damar-logo__word { background-image: url("../assets/brand/wordmark-white.webp"); }
}

/* ---------- nav ---------- */
/* The bar itself is transparent; the glass pane lives in ::before so that the mobile dropdown
   (a descendant with its own backdrop-filter) is NOT trapped inside the pane's backdrop root
   and can still blur the page behind it. */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  color: var(--damar-navy);
  transition: color .4s;
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  /* layer 1 — blur (constant, never transitioned: animating backdrop-filter costs frames) */
  backdrop-filter: var(--nav-blur); -webkit-backdrop-filter: var(--nav-blur);
  /* layer 2 — tint (solid colour, so rest → scrolled → dark cross-fade cleanly) */
  background-color: var(--nav-tint-light);
  /* layer 3 — sheen: light catches the top of the pane and fades out; this is what reads as glass rather than a plate */
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 70%);
  /* layer 4 — top specular (inset) + bottom hairline */
  box-shadow: inset 0 1px 0 var(--nav-specular-light), 0 1px 0 var(--nav-hairline-light);
  transition: background-color .4s, box-shadow .4s;
  transform: translateZ(0); /* own compositing layer: keeps the blur stable in Safari while Lenis scrolls */
}
.nav.is-scrolled::before {
  background-color: var(--nav-tint-light-scrolled);
  box-shadow: inset 0 1px 0 var(--nav-specular-light), 0 1px 0 var(--nav-hairline-light), var(--nav-depth-light);
}
.nav.is-dark { color: #fff; }
.nav.is-dark::before {
  background-color: var(--nav-tint-dark);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, 0) 70%);
  box-shadow: inset 0 1px 0 var(--nav-specular-dark), 0 1px 0 var(--nav-hairline-dark);
}
.nav.is-dark.is-scrolled::before {
  background-color: var(--nav-tint-dark-scrolled);
  box-shadow: inset 0 1px 0 var(--nav-specular-dark), 0 1px 0 var(--nav-hairline-dark), var(--nav-depth-dark);
}
/* fallbacks: no backdrop-filter → near-opaque so text stays legible; reduced-transparency preference → solid */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav::before, .nav.is-scrolled::before { background-color: rgba(255, 255, 255, .94); }
  .nav.is-dark::before, .nav.is-dark.is-scrolled::before { background-color: rgba(0, 0, 0, .9); }
}
@media (prefers-reduced-transparency: reduce) {
  .nav::before { backdrop-filter: none; -webkit-backdrop-filter: none; background-image: none; }
  .nav::before, .nav.is-scrolled::before { background-color: #fff; }
  .nav.is-dark::before, .nav.is-dark.is-scrolled::before { background-color: var(--surface-ink); }
}
/* three-column grid: the link group sits on the true centre line of the bar, independent of logo / CTA widths */
.nav__inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.nav__logo { font-size: 40px; height: 40px; justify-self: start; }
/* the mark carries the brand gradient on light UI and collapses to the text colour on dark UI;
   registered properties let the two gradient stops animate instead of snapping */
@property --logo-a { syntax: "<color>"; inherits: false; initial-value: #1600fe; }
@property --logo-b { syntax: "<color>"; inherits: false; initial-value: #00008e; }
.nav__symbol { background: linear-gradient(135deg, var(--logo-a), var(--logo-b)); transition: --logo-a .4s, --logo-b .4s, opacity .35s; }
.nav.is-dark .nav__symbol { --logo-a: #fff; --logo-b: #fff; }
.nav__wordmark { transition: opacity .35s; }
/* while the 3D D is still un-docked, the flat symbol is hidden */
.nav.is-undocked .nav__symbol { opacity: 0; }
.nav__links { justify-self: center; display: flex; gap: 6px; font-size: 16px; font-weight: 600; letter-spacing: -.005em; white-space: nowrap; }
.nav__links a { position: relative; display: inline-flex; align-items: center; padding: 10px 14px; border-radius: 999px; opacity: .78; transition: opacity .3s, background-color .3s; }
/* underline indicator: glides in from the centre on hover, stays on the current page */
.nav__links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px; background: currentColor; transform: scaleX(0); transform-origin: center; transition: transform .4s var(--ease); }
.nav__links a:hover, .nav__links a:focus-visible, .nav__links a[aria-current="page"] { opacity: 1; }
.nav__links a:hover::after, .nav__links a:focus-visible::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__links a:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
.nav__right { justify-self: end; display: flex; align-items: center; gap: 18px; }
.lang { display: flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid currentColor; opacity: .85; }
.lang__btn { position: relative; width: 34px; text-align: center; padding: 6px 0; border-radius: 999px; font-size: 12px; font-weight: 500; letter-spacing: .04em; opacity: .6; transition: opacity .3s, background-color .3s, color .3s; }
.lang__btn.is-active { opacity: 1; background: var(--damar-navy); color: #fff; }
.lang__btn::after { content: ""; position: absolute; inset: -8px 0; }   /* taller hit area, same visual pill */
.nav.is-dark .lang__btn.is-active { background: #fff; color: var(--damar-navy); }
.nav__burger { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.nav__burger span { width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease); }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* tablet tier: same layout, tighter rhythm so logo + links + CTA fit without wrapping */
@media (max-width: 1100px) and (min-width: 901px) {
  .nav__inner { gap: 20px; }
  .nav__links { gap: 2px; font-size: 15px; }
  .nav__links a { padding: 10px 10px; }
  .nav__links a::after { left: 10px; right: 10px; }
  .nav__right { gap: 12px; }
  .nav__right .btn--sm { padding: 11px 16px; }
  .lang__btn { width: 30px; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: var(--nav-h); overflow: hidden; }
.hero__backdrop { position: absolute; inset: -10%; z-index: 0; opacity: .4; pointer-events: none; will-change: transform; animation: drift 24s ease-in-out infinite alternate; }
.hero__backdrop img { filter: blur(24px); transform: translateZ(0); }
.hero__backdrop img { width: 100%; height: 100%; object-fit: cover; }
@keyframes drift { from { transform: translate3d(-2%, -1%, 0) scale(1.02); } to { transform: translate3d(2%, 1.5%, 0) scale(1.06); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.85) 45%, rgba(255,255,255,.35) 100%); pointer-events: none; }
.hero__particles { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.hero__inner {
  position: relative; z-index: 2; padding-bottom: 24px;
  width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 40px;
  padding-block: 40px;
}
.hero__h1 {
  font-family: var(--font-display); font-weight: 700;
  /* the headline is a full sentence, so it is set smaller and wider than a two-word title */
  font-size: clamp(36px, 4.6vw, 68px); line-height: 1.04; letter-spacing: -.028em;
  color: var(--damar-navy);
  max-width: 17ch;
}
.hero__sub { margin-top: 28px; font-size: clamp(17px, 1.5vw, 22px); color: var(--navy-85); max-width: 40ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero__stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 640px; justify-self: end; }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__bg canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
/* ink hero — matches the index.html animation screen */
.hero--ink { background: #000; color: #fff; }
.hero--ink::after { display: none; }
.hero--ink .hero__backdrop { display: none; }
.hero--ink .hero__inner { position: relative; z-index: 1; grid-template-columns: minmax(0, 1fr); align-items: end; }
.hero--ink .hero__stage { display: none; }
.hero--ink .hero__h1 { color: #fff; max-width: 17ch; }
.hero--ink .hero__sub { color: rgba(255,255,255,.8); }
.hero--ink .eyebrow { color: rgba(255,255,255,.75); }
.hero--ink .hero__scroll { color: rgba(255,255,255,.6); }
.hero--ink .btn--ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.hero__static { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-l); }
.hero.is-3d .hero__static { display: none; }
.hero__scroll { position: absolute; left: 50%; bottom: 28px; z-index: 2; min-width: 44px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--font-cond); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-60); }
.hero__scroll i { width: 1px; height: 40px; background: linear-gradient(var(--damar-electric), transparent); animation: scrollline 2.2s var(--ease) infinite; }
@keyframes scrollline { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* entrance choreography (the one orchestrated moment) */
.hero .eyebrow, .hero__h1, .hero__sub, .hero__cta, .hero__proof { opacity: 0; transform: translateY(24px); }
.hero.is-in .eyebrow, .hero.is-in .hero__h1, .hero.is-in .hero__sub, .hero.is-in .hero__cta, .hero.is-in .hero__proof { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.hero.is-in .hero__h1 { transition-delay: .08s; } .hero.is-in .hero__sub { transition-delay: .18s; } .hero.is-in .hero__cta { transition-delay: .28s; } .hero.is-in .hero__proof { transition-delay: .4s; }

/* ---------- about + stats ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.about__p { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.2; letter-spacing: -.02em; color: var(--damar-navy); max-width: 30ch; }
.stats { display: grid; gap: 8px; perspective: 900px; }
.stat { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 20px; padding: 22px 0; border-top: 1px solid var(--navy-10); }
.stat:last-child { border-bottom: 1px solid var(--navy-10); }
.stat__num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(64px, 8vw, 128px); line-height: .9; letter-spacing: -.032em;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
  transform-style: preserve-3d; display: inline-block;
}
.stat__num i { font-style: normal; font-size: .72em; margin-left: .02em; }
.stat__label { font-family: var(--font-cond); font-weight: 500; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-60); text-align: right; max-width: 12ch; }

/* ---------- why: liquid-glass card stack (scroll-driven, snapping) ---------- */
.why { position: relative; background: var(--surface-ink-2); color: #fff; overflow: hidden; }
.why__bg { position: absolute; inset: 0; opacity: .32; pointer-events: none; overflow: hidden; }
.why__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform: none; }
.why__glow { position: absolute; width: 60vmax; height: 60vmax; left: 50%; top: 50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(22, 0, 254, .55), rgba(22, 0, 254, 0) 70%); transform: translate(-50%, -50%); filter: blur(40px); opacity: .5; will-change: transform; }
.why__pin { position: relative; height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.why__head { position: absolute; top: calc(var(--nav-h) + 24px); left: 50%; transform: translateX(-50%); display: flex; justify-content: space-between; align-items: center; width: min(100% - var(--gutter) * 2, var(--container)); z-index: 5; }
.why__head .kicker { margin: 0; }
.why__progress { display: flex; align-items: center; gap: 14px; font-family: var(--font-cond); font-size: 13px; letter-spacing: .1em; color: var(--white-60); }
.why__progress span { color: #fff; }
.why__bar { width: 120px; height: 2px; border-radius: 2px; background: var(--white-15); overflow: hidden; }
.why__bar i { display: block; height: 100%; width: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); will-change: transform; }
.why__stage { position: relative; width: min(100% - var(--gutter) * 2, 880px); margin-inline: auto; height: 62svh; min-height: 420px; max-height: 560px; }

.panel {
  position: absolute; inset: 0;
  padding: clamp(28px, 4vw, 56px);
  border-radius: 32px;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff;
  /* liquid glass: translucent body, refractive rim, top specular, soft depth */
  background:
    radial-gradient(120% 90% at var(--mx, 30%) var(--my, 0%), rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 55%),
    linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .04) 60%, rgba(22, 0, 254, .14));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .45),
    inset 0 -1px 0 rgba(255, 255, 255, .08),
    inset 1px 0 0 rgba(255, 255, 255, .18),
    inset -1px 0 0 rgba(255, 255, 255, .10),
    0 40px 80px -30px rgba(0, 0, 60, .7);
  border: 1px solid rgba(255, 255, 255, .22);
  transform-origin: 50% 30%;
  will-change: transform, opacity; backface-visibility: hidden;
  pointer-events: none;
}
.panel::after { /* thin refracted edge, like light bending through the rim */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  padding: 1px; background: linear-gradient(135deg, rgba(255,255,255,.7), rgba(255,255,255,0) 35%, rgba(255,255,255,0) 65%, rgba(22,0,254,.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .8;
}
.panel.is-glass { backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6); }
/* phones: these panels are transformed every frame while the section is pinned, and blurring a moving layer
   costs frames. The translucent gradient alone still reads as glass. */
@media (max-width: 900px) {
  .panel.is-glass { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.panel.is-front { pointer-events: auto; }
.panel__body { display: flex; flex-direction: column; flex: 1; will-change: opacity, transform; pointer-events: none; }
.panel.is-front .panel__body { pointer-events: auto; }
.panel__num { font-family: var(--font-cond); font-weight: 500; font-size: 14px; letter-spacing: .1em; color: var(--white-60); margin-bottom: auto; }
.panel__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4.2vw, 56px); line-height: 1; letter-spacing: -.024em; }
.panel__text { margin-top: 18px; font-size: clamp(16px, 1.4vw, 20px); color: var(--white-80); max-width: 44ch; }

/* ---------- projects (home): scroll-driven cards cascade — companies flow diagonally through focus ---------- */
.fold { position: relative; background: linear-gradient(var(--damar-white), var(--navy-05) 55%, var(--damar-white)); overflow: hidden; }
.fold__pin { height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(14px, 2.5svh, 28px); padding-top: var(--nav-h); }
.fold__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.fold__head .h2 { font-size: clamp(30px, 3.8vw, 48px); }
.fold__head .kicker { margin-bottom: 12px; }
.fold__right { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.fold__progress { display: flex; align-items: center; gap: 14px; font-family: var(--font-cond); font-size: 13px; letter-spacing: .1em; color: var(--navy-60); white-space: nowrap; }
.fold__progress span { color: var(--damar-navy); }
.fold__progress .why__bar { background: var(--navy-10); }
.fold__progress .why__bar i { background: var(--damar-electric); }
.fold__stage { position: relative; height: min(60svh, 580px); perspective: 1600px; perspective-origin: 50% 45%; }
.fold__slide { position: absolute; left: 50%; top: 50%; width: min(78vw, 900px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.5vw, 20px); transform-style: preserve-3d; will-change: transform, opacity; backface-visibility: hidden; margin-left: min(-39vw, -450px); margin-top: -21vh; }
.fold__slide .wcard { height: min(42svh, 400px); grid-template-rows: 1fr auto; padding: 16px; }
.fold__slide .wcard__logo { --pad: clamp(24px, 3vw, 44px); aspect-ratio: auto; height: 100%; }
.fold__slide .wcard__name { font-size: 17px; }
.fold__slide .wcard__tag { font-size: 12px; }
.fold__cta { display: grid; place-content: center; text-align: center; gap: 12px; padding: 24px; border-radius: var(--radius-l); background: var(--gradient); color: #fff; }
.fold__cta strong { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3vw, 44px); letter-spacing: -.024em; line-height: 1; }
.fold__cta span { font-family: var(--font-cond); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--white-80); }
.fold__mobile { display: none; }
@media (max-width: 900px) {
  .fold__pin { height: auto; padding: var(--section) 0; }
  .fold__head { flex-direction: column; align-items: flex-start; }
  .fold__right { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
  .fold__progress { display: none; }
  .fold__stage { display: none; }
  .fold__mobile { display: block; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-inline: var(--gutter); }
  .fold__mobile::-webkit-scrollbar { display: none; }
  .fold__row { display: grid; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: 180px; gap: 12px; width: max-content; padding-right: var(--gutter); }
  .fold__row .wcard { scroll-snap-align: start; }
}
@media (min-width: 901px) and (max-height: 780px) { .fold__stage { height: min(56svh, 460px); } .fold__slide .wcard { height: min(40svh, 340px); } .fold__head .h2 { font-size: clamp(26px, 3vw, 36px); } .fold__pin { gap: 12px; } }
@media (prefers-reduced-motion: reduce) { .fold__pin { height: auto; padding: var(--section) 0; } .fold__stage { display: none; } .fold__mobile { display: block; overflow-x: auto; padding-inline: var(--gutter); } .fold__row { display: grid; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: 200px; gap: 12px; width: max-content; } }

.logo {
  --pad: clamp(14px, 2vw, 26px);
  position: relative; aspect-ratio: 16 / 9; min-width: 0; overflow: hidden;
  border-radius: var(--radius-m); background: #fff; box-shadow: inset 0 0 0 1px var(--navy-10);
}
.logo img { position: absolute; inset: var(--pad); width: calc(100% - var(--pad) * 2); height: calc(100% - var(--pad) * 2); object-fit: contain; }
/* logo drawn on its own colour block (see tools/build-logo-plates.py): the block becomes the whole media area;
   its breathing room is baked into the plate file, so the image fills edge to edge */
.logo[data-plate], .wcard__logo[data-plate] { background: var(--plate); }
.logo[data-plate] img, .wcard__logo[data-plate] img { inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- services: curved tile wall ---------- */
.services { background: linear-gradient(var(--damar-white), var(--navy-05) 40%, var(--damar-white)); }
.wall { margin-top: 64px; perspective: 1800px; perspective-origin: 50% 40%; padding-inline: var(--gutter); overflow: visible; }
.wall__grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
  width: min(100%, 1360px); margin-inline: auto;
  transform-style: preserve-3d;
  counter-reset: tile;
}
.tile {
  position: relative; min-height: 180px; padding: 18px 18px 16px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  border-radius: var(--radius-m);
  /* glass look without live backdrop blur: the surface behind this wall is a flat tint, so blur costs frames and shows nothing */
  background: var(--glass-grad-light); border: 1px solid var(--glass-border);
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, .3), 0 0 0 1px var(--navy-10);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  contain: layout paint;
  transition: transform .7s var(--ease), background-color .5s, color .5s, border-color .5s;
  --rx: 0deg; --ry: 0deg; --tz: 0px;
  transform: rotateY(var(--ry)) rotateX(var(--rx)) translateZ(var(--tz));
}
.tile::before { counter-increment: tile; content: counter(tile, decimal-leading-zero); font-family: var(--font-cond); font-size: 12px; letter-spacing: .1em; color: var(--navy-60); }
.tile__text { font-size: 14px; line-height: 1.35; color: var(--damar-navy); font-weight: 500; }
.tile__qty { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; color: var(--damar-electric); }
.tile:hover, .tile:focus-within { transform: rotateY(var(--ry)) rotateX(var(--rx)) translateZ(calc(var(--tz) + 60px)); background: rgba(22, 0, 254, .78); border-color: rgba(255, 255, 255, .35); box-shadow: 0 40px 80px -30px rgba(22, 0, 254, .7); }
.tile:hover::before, .tile:hover .tile__text, .tile:hover .tile__qty { color: #fff; }
/* curve: column index → yaw; outer columns swing inward */
.wall__grid .tile:nth-child(6n+1) { --ry: 16deg; --tz: 0px; }
.wall__grid .tile:nth-child(6n+2) { --ry: 8deg; --tz: 30px; }
.wall__grid .tile:nth-child(6n+3) { --ry: 2deg; --tz: 40px; }
.wall__grid .tile:nth-child(6n+4) { --ry: -2deg; --tz: 40px; }
.wall__grid .tile:nth-child(6n+5) { --ry: -8deg; --tz: 30px; }
.wall__grid .tile:nth-child(6n+6) { --ry: -16deg; --tz: 0px; }
.wall__grid .tile:nth-child(-n+6) { --rx: -4deg; }
.wall__grid .tile:nth-child(n+13) { --rx: 4deg; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 18px; margin-top: 56px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 36px 32px; border-radius: var(--radius-l); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan__name { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; color: var(--damar-navy); }
.plan__price { font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 4.6vw, 64px); line-height: 1; letter-spacing: -.032em; color: var(--damar-navy); margin-top: 10px; }
.plan__price small { font-family: var(--font-body); font-weight: 500; font-size: 16px; letter-spacing: 0; color: var(--navy-60); }
.plan__note { font-weight: 500; color: var(--damar-electric); }
.plan__desc { color: var(--navy-60); font-size: 15px; margin-bottom: 20px; }
.plan--featured { background: var(--glass-light-strong); outline: 2px solid var(--damar-electric); outline-offset: -2px; box-shadow: 0 40px 90px -40px rgba(22, 0, 254, .45), var(--glass-shadow); }
.plan__badge { position: absolute; top: -13px; left: 30px; padding: 6px 12px; border-radius: 999px; background: var(--gradient); color: #fff; font-family: var(--font-cond); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.extras { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; align-items: start; }
.extras__h3 { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -.02em; color: var(--damar-navy); }
.extras__list { display: grid; }
.extras__list div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-top: 1px solid var(--navy-10); }
.extras__list div:last-child { border-bottom: 1px solid var(--navy-10); }
.extras__list dt { color: var(--navy-85); }
.extras__list dd { font-weight: 700; color: var(--damar-navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.extras__discount { grid-column: 2; margin-top: 8px; padding: 16px 20px; border-radius: var(--radius-s); color: var(--damar-navy); font-weight: 500; }

/* ---------- rules: accordion ---------- */
.rules { background: var(--navy-05); }
.rules__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.rules__intro { position: sticky; top: calc(var(--nav-h) + 24px); }
.acc { border-top: 1px solid var(--navy-15); }
.acc:last-child { border-bottom: 1px solid var(--navy-15); }
.acc__btn { width: 100%; display: flex; align-items: center; gap: 20px; padding: 22px 0; text-align: left; font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -.02em; color: var(--damar-navy); }
.acc__num { font-family: var(--font-cond); font-weight: 500; font-size: 13px; letter-spacing: .1em; color: var(--navy-60); width: 28px; flex: none; }
/* the title is the only flex item that may shrink; without min-width it keeps its longest word and
   pushes the round icon past the right edge on narrow phones */
.acc__btn > span { min-width: 0; overflow-wrap: break-word; }
.acc__icon { margin-left: auto; width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid var(--navy-15); position: relative; transition: transform .6s var(--ease), background-color .3s, border-color .3s; }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--damar-navy); transform: translate(-50%, -50%); transition: background-color .3s; }
.acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc__btn[aria-expanded="true"] .acc__icon { transform: rotate(45deg); background: var(--damar-electric); border-color: var(--damar-electric); }
.acc__btn[aria-expanded="true"] .acc__icon::before, .acc__btn[aria-expanded="true"] .acc__icon::after { background: #fff; }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.acc__panel > div { overflow: hidden; }
.acc__panel p { padding: 0 0 24px 48px; color: var(--navy-85); max-width: 56ch; }
.acc.is-open .acc__panel { grid-template-rows: 1fr; }

/* ---------- contact ---------- */
.contact { position: relative; background: var(--grain), var(--surface-glow), var(--surface-ink); color: #fff; padding-block: clamp(48px, 6vw, 88px); overflow: hidden; }
.contact__bg { position: absolute; inset: 0; opacity: .12; pointer-events: none; mix-blend-mode: screen; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; }
.contact__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
/* The headline is a full sentence, so it wraps: nowrap would push the whole centred block sideways. */
.contact__h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 4.6vw, 68px); line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
.contact__sub { margin-top: 16px; font-size: clamp(17px, 1.5vw, 22px); color: var(--white-80); }
.contact__links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }
.contact__tel { display: flex; flex-direction: column; font-size: 13px; color: var(--white-60); }
.contact__tel strong { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; color: #fff; }
.form { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--white-15); max-width: 640px; }
#leadForm { scroll-margin-top: calc(var(--nav-h) + 24px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
/* min-width:0 — a <select> is sized by its longest option, which would otherwise widen the grid column. */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; font-family: var(--font-cond); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--white-60); }
.field input, .field select, .field textarea { min-width: 0; max-width: 100%; }
.field select { text-overflow: ellipsis; }
.field input, .field select { font-family: var(--font-body); font-size: 16px; letter-spacing: 0; text-transform: none; color: #fff; padding: 14px 16px; border-radius: var(--radius-s); border: 1px solid var(--white-15); background: var(--white-08); transition: border-color .3s, background-color .3s; -webkit-appearance: none; appearance: none; }
.field input::placeholder { color: var(--white-60); }
.field input:focus, .field select:focus { outline: none; border-color: #fff; background: rgba(255,255,255,.14); }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field select option { color: var(--damar-navy); }
/* phone: +998 is fixed inside the field, the visitor types the 9 national digits */
.phone { position: relative; display: block; }
.field .phone input { width: 100%; padding-left: 70px; font-variant-numeric: tabular-nums; }
.phone__prefix { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 11px; font-family: var(--font-body); font-size: 16px; letter-spacing: 0; text-transform: none; color: #fff; pointer-events: none; font-variant-numeric: tabular-nums; }
.phone__prefix::after { content: ""; width: 1px; height: 18px; background: var(--white-15); }
.field--light .phone__prefix { color: var(--damar-navy); }
.field--light .phone__prefix::after { background: var(--navy-15); }
/* invalid field, set by js/lead-form.js */
.field input[aria-invalid="true"] { border-color: #ff9b9b; background: rgba(255, 110, 110, .12); }
.field--light input[aria-invalid="true"] { border-color: #d93025; background: #fff; box-shadow: 0 0 0 3px rgba(217, 48, 37, .16); }

/* ---------- success sheet: centred card over a blurred page (js/success-sheet.js) ---------- */
html.is-modal, html.is-modal body { overflow: hidden; }
/* the open mobile menu covers the page, so the page behind it must not scroll */
body.menu-open { overflow: hidden; }
html.is-modal body, html.is-modal .nav, html.is-modal .cfab { padding-right: var(--sbw, 0px); }
.sheet { width: min(440px, calc(100vw - 32px)); padding: 0; border: 0; background: transparent; color: var(--damar-navy); overflow: visible; }
.sheet::backdrop { background: rgba(3, 10, 47, .55); backdrop-filter: blur(14px) saturate(120%); -webkit-backdrop-filter: blur(14px) saturate(120%); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .sheet::backdrop { background: rgba(3, 10, 47, .85); }
}
.sheet__card { padding: clamp(28px, 4vw, 40px) clamp(22px, 3vw, 32px); border-radius: var(--radius-l); background: #fff; box-shadow: 0 40px 90px -35px rgba(0, 0, 60, .6); text-align: center; }
.sheet__check { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 50%; background: var(--gradient-soft); }
.sheet__check svg { width: 52px; height: 52px; fill: none; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.sheet__ring { stroke: var(--electric-30); stroke-dasharray: 145; animation: sheetRing .6s var(--ease) both; }
.sheet__tick { stroke: var(--damar-electric); stroke-dasharray: 34; animation: sheetTick .45s var(--ease) .22s both; }
.sheet__h { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3vw, 30px); letter-spacing: -.022em; }
.sheet__p { margin-top: 12px; color: var(--navy-60); line-height: 1.55; }
.sheet__actions { display: grid; gap: 10px; margin-top: 26px; }
.sheet__actions .btn { width: 100%; justify-content: center; }
@keyframes sheetRing { from { stroke-dashoffset: 145; } to { stroke-dashoffset: 0; } }
@keyframes sheetTick { from { stroke-dashoffset: 34; } to { stroke-dashoffset: 0; } }
@keyframes sheetIn { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes sheetOut { to { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes sheetFade { from { opacity: 0; } to { opacity: 1; } }
.sheet[open] .sheet__card { animation: sheetIn .4s var(--ease) both; }
.sheet[open]::backdrop { animation: sheetFade .3s ease both; }
.sheet.is-out .sheet__card { animation: sheetOut .22s ease-in forwards; }
.sheet.is-out::backdrop { animation: sheetFade .22s ease reverse forwards; }
@media (prefers-reduced-motion: reduce) {
  .sheet[open] .sheet__card, .sheet[open]::backdrop, .sheet.is-out .sheet__card, .sheet.is-out::backdrop,
  .sheet__ring, .sheet__tick { animation: none; }
  .sheet__ring, .sheet__tick { stroke-dashoffset: 0; }
}
.form__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.form__status { font-size: 15px; color: var(--white-80); min-height: 1.5em; }
.form__status.is-error { color: #fff; font-weight: 500; }
.contact__stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.contact__d { width: 100%; aspect-ratio: 1; max-width: 520px; }
.contact__d canvas { width: 100% !important; height: 100% !important; }
.contact__qr { display: flex; align-items: center; gap: 18px; padding: 14px 20px 14px 14px; border-radius: var(--radius-m); font-family: var(--font-cond); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--white-80); transition: background-color .3s; }
.contact__qr:hover { background: rgba(255,255,255,.16); }
.contact__qr img { width: 96px; height: 96px; }

/* ---------- contact page ---------- */
.chero { position: relative; background: var(--grain), var(--surface-glow), var(--surface-ink); color: #fff; padding: calc(var(--nav-h) + clamp(56px, 8vw, 120px)) 0 clamp(56px, 8vw, 120px); overflow: hidden; }
.chero__bg { position: absolute; inset: 0; opacity: .12; pointer-events: none; mix-blend-mode: screen; }
.chero__bg img { width: 100%; height: 100%; object-fit: cover; }
.chero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.chero__h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 6.2vw, 108px); line-height: .92; letter-spacing: -.032em; white-space: nowrap; }
@media (max-width: 900px) { .chero__h1 { white-space: nowrap; font-size: clamp(34px, 11vw, 64px); } }
.chero__sub { margin-top: 24px; font-size: clamp(17px, 1.5vw, 22px); color: var(--white-80); max-width: 46ch; }
.chero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.chero__stage .contact__d { max-width: 460px; margin-inline: auto; }
/* Service pages are mostly text, so they run on a tighter vertical rhythm than the landing pages:
   two neighbouring sections used to leave 140px of empty space between their headings. */
.page-service .chero { padding-block: calc(var(--nav-h) + clamp(36px, 4.5vw, 68px)) clamp(36px, 4.5vw, 68px); }
.page-service .section { padding-block: clamp(30px, 3.2vw, 46px); }
.page-service .sband { padding-block: clamp(40px, 4.5vw, 64px); }
.page-service .h2--sm { max-width: 24ch; line-height: 1.06; }   /* sentence headings, not two-word titles */
.page-service .h2--sm + .lead { margin-top: 12px; }
.page-service .lead { max-width: 62ch; }
.page-service .steps { margin-top: 28px; }
.page-service .rules__grid { row-gap: 24px; }

/* ---------- service page: "what you get", deliverables, quoted price ---------- */
.chero__facts--steps b { font-size: clamp(20px, 1.8vw, 26px); color: var(--white-60); }
.chero__facts--steps li { align-items: center; }
.chero__facts--steps span { font-size: 14px; letter-spacing: .06em; color: #fff; }
.svclist__action { display: inline-flex; align-items: center; gap: 16px; }
.svclist__more { font-family: var(--font-cond); font-style: normal; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--damar-electric); white-space: nowrap; }
@media (max-width: 700px) { .svclist__more { display: none; } }

.svcpoints { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.svcpoint { padding: 26px 28px; border-radius: var(--radius-l); }
.svcpoint__num { font-family: var(--font-cond); font-size: 13px; letter-spacing: .1em; color: var(--damar-electric); }
.svcpoint__h { margin-top: 10px; font-family: var(--font-display); font-weight: 600; font-size: clamp(19px, 1.7vw, 23px); letter-spacing: -.02em; color: var(--damar-navy); }
.svcpoint__p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--navy-60); }
.svcdeliver { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.svcdeliver li { padding: 22px 24px; border-radius: var(--radius-m); font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -.018em; color: var(--damar-navy); }
.svcprice .lead { margin-top: 14px; }
.svcprice .btn { margin-top: 22px; }
@media (max-width: 900px) { .svcpoints, .svcdeliver { grid-template-columns: minmax(0, 1fr); } }

/* ---------- contact page: profiles ---------- */
.csocial { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.csocial__item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 18px 20px; border-radius: var(--radius-m); color: var(--damar-navy); transition: transform .3s var(--ease), border-color .3s; }
.csocial__item:hover { transform: translateY(-2px); border-color: var(--damar-electric); }
.csocial__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--gradient); color: #fff; }
.csocial__body { display: grid; gap: 2px; min-width: 0; }
.csocial__net { font-family: var(--font-cond); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-60); }
.csocial__body strong { font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: -.02em; overflow-wrap: anywhere; }
@media (max-width: 900px) { .csocial { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .csocial { grid-template-columns: minmax(0, 1fr); } }

/* ---------- office map: a card that loads the real map on click ---------- */
.cmap__box { margin-top: 28px; border-radius: var(--radius-l); overflow: hidden; }
.cmap__load { display: grid; place-items: center; gap: 14px; width: 100%; min-height: clamp(240px, 32vw, 380px); padding: 32px 24px; text-align: center;
  background: var(--gradient-soft), var(--grain); color: var(--damar-navy); cursor: pointer; transition: background-color .3s; }
.cmap__load:hover { background-color: var(--navy-05); }
.cmap__pin { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--damar-electric); box-shadow: 0 10px 30px -14px var(--electric-30); }
.cmap__addr { font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 2vw, 24px); letter-spacing: -.02em; max-width: 24ch; }
.cmap__cta { pointer-events: none; }
.cmap iframe { display: block; width: 100%; height: clamp(280px, 38vw, 440px); border: 0; }
.cmap__links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 18px; }
.cmap__links a { font-weight: 600; color: var(--damar-electric); border-bottom: 1px solid currentColor; }
.cmap__links a:hover { color: var(--damar-navy); }
.csection { background: linear-gradient(var(--damar-white), var(--navy-05)); }
.cgrid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
/* contact page: the form stands alone, so it is centred and roomier */
.cgrid--form { grid-template-columns: minmax(0, 1fr); justify-items: center; }
/* contact hero: the question on the left, the form card on the right */
.chero__grid--form { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; }
.chero__grid--form .cform { width: 100%; padding: clamp(24px, 2.6vw, 38px); }
.chero__grid--form .cform__h { font-size: clamp(24px, 2.4vw, 32px); }
.chero__grid--form .cform__p { margin-bottom: 22px; }
.page-contact .chero { padding-block: calc(var(--nav-h) + clamp(32px, 4vw, 64px)) clamp(40px, 5vw, 76px); }
@media (max-width: 900px) { .chero__grid--form { grid-template-columns: minmax(0, 1fr); } .chero__grid--form .cform { order: 2; } }
.cgrid--form .cform { width: min(100%, 760px); padding: clamp(28px, 4vw, 56px); }
.cgrid--form .cform__h { font-size: clamp(30px, 3.4vw, 44px); }
.cgrid--form .cform__p { font-size: 17px; margin-bottom: 32px; }
.cgrid--form .field--light { margin-bottom: 20px; }
.cgrid--form .field--light input, .cgrid--form .field--light select { padding: 16px 18px; }
.cgrid--form .field--light .phone input { padding-left: 74px; }   /* keep room for the +998 prefix */
.cgrid--form .phone__prefix { left: 18px; }
.cgrid--form .cform__submit { margin-top: 12px; }
.cinfo { display: grid; gap: 12px; }
.ccardx { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 20px 22px; border-radius: var(--radius-m); color: var(--damar-navy); transition: transform var(--dur) var(--ease), border-color .3s; }
a.ccardx:hover { transform: translateY(-2px); border-color: var(--damar-electric); }
.ccardx__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--gradient); color: #fff; }
.ccardx__body { display: grid; gap: 4px; min-width: 0; }
.ccardx__h { font-family: var(--font-cond); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-60); }
.ccardx strong { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -.02em; line-height: 1.25; }
.ccardx__p { font-size: 14px; color: var(--navy-60); }
.ccardx--qr { grid-template-columns: 88px 1fr; align-items: center; }
.ccardx--qr img { width: 88px; height: 88px; border-radius: 10px; background: var(--damar-navy); padding: 6px; }
.cform { padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-l); }
.cform__h { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.024em; color: var(--damar-navy); }
.cform__p { margin: 8px 0 24px; color: var(--navy-60); }
.field--light { color: var(--navy-60); margin-bottom: 16px; }
.field--light input, .field--light select, .field--light textarea { color: var(--damar-navy); background: rgba(255, 255, 255, .7); border: 1px solid var(--navy-15); font-family: var(--font-body); font-size: 16px; letter-spacing: 0; text-transform: none; padding: 14px 16px; border-radius: var(--radius-s); -webkit-appearance: none; appearance: none; resize: vertical; }
.field--light input:focus, .field--light select:focus, .field--light textarea:focus { outline: none; border-color: var(--damar-electric); background: #fff; box-shadow: 0 0 0 3px var(--electric-30); }
.field--light input::placeholder { color: var(--navy-60); }
.field--light select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2300008e' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.form__status--light { color: var(--navy-85); }
.form__status--light.is-error { color: var(--damar-electric); }
.cnext { padding-top: 0; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 40px; counter-reset: s; }
.step { padding: 24px 22px 26px; border-radius: var(--radius-m); display: grid; gap: 10px; align-content: start; }
.step__num { font-family: var(--font-cond); font-size: 12px; letter-spacing: .1em; color: var(--damar-electric); }
.step__h { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -.02em; color: var(--damar-navy); }
.step__p { font-size: 15px; color: var(--navy-85); }
.page-contact .nav__symbol { opacity: 1; }
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .chero__grid, .cgrid { grid-template-columns: minmax(0, 1fr); } .chero__stage { order: -1; } .chero__stage .contact__d { max-width: 260px; } .page-contact .nav__right .btn { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- services page ---------- */
.chero__grid--wide { grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); }
.chero__h1--wrap { white-space: normal; font-size: clamp(38px, 4.8vw, 76px); line-height: 1.05; letter-spacing: -.028em; max-width: 16ch; }
/* a headline that is a full sentence: smaller type, a wider column */
.chero__h1--long { font-size: clamp(25px, 2.7vw, 40px); line-height: 1.16; letter-spacing: -.02em; max-width: 26ch; }
.chero__facts { display: grid; gap: 12px; }
.chero__sub + .chero__sub { margin-top: 14px; }
.chero__facts-note { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--white-60); }
.chero__facts li { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 16px; padding: 18px 22px; border-radius: var(--radius-m); background: var(--white-08); border: 1px solid var(--white-15); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.chero__facts b { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3vw, 44px); white-space: nowrap; line-height: 1; letter-spacing: -.032em; }
.chero__facts span { font-family: var(--font-cond); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--white-80); }
.packs { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 18px; margin-top: 48px; }
.pack { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 36px 32px; border-radius: var(--radius-l); }
.pack--featured { background: var(--glass-grad-light); outline: 2px solid var(--damar-electric); outline-offset: -2px; box-shadow: 0 40px 90px -40px rgba(22, 0, 254, .45), var(--glass-shadow); }
.pack__desc { color: var(--navy-85); }
.pack__list { display: grid; gap: 8px; margin: 12px 0 24px; padding-left: 0; }
.pack__list li { position: relative; padding-left: 22px; font-size: 15px; color: var(--navy-85); }
.pack__list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 2px; background: var(--damar-electric); }
.pack .btn { margin-top: auto; align-self: flex-start; }
#pricing .extras__discount { margin-top: 18px; }
.ssmm { background: linear-gradient(var(--damar-white), var(--navy-05) 40%, var(--damar-white)); }
.sgroups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.sgroup { padding: 26px 28px; border-radius: var(--radius-l); }
.sgroup__head { display: flex; align-items: baseline; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--navy-10); }
.sgroup__num { font-family: var(--font-cond); font-size: 13px; letter-spacing: .1em; color: var(--damar-electric); }
.sgroup__h { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; color: var(--damar-navy); }
.sgroup__count { margin-left: auto; font-family: var(--font-cond); font-size: 12px; letter-spacing: .1em; color: var(--navy-60); }
.sgroup__list { display: grid; }
.sgroup__list li { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--navy-05); font-size: 15px; color: var(--navy-85); }
.sgroup__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.sgroup__list b { font-family: var(--font-display); color: var(--damar-electric); white-space: nowrap; font-size: 15px; }
.extras--page { margin-top: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.h2--sm { font-size: clamp(30px, 3.4vw, 44px); }
.page-services .cnext { padding-top: 0; }
.page-services .rules__intro .kicker { display: none; }
.sband { background: var(--surface-ink-2); color: #fff; padding-block: clamp(56px, 8vw, 96px); }
.sband__grid { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.sband__h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3.6vw, 52px); letter-spacing: -.024em; line-height: 1; }
.sband__p { margin-top: 12px; color: var(--white-80); }
.page-services .nav__symbol { opacity: 1; }
@media (max-width: 1100px) { .packs { grid-template-columns: minmax(0, 1fr); max-width: 560px; } .sgroups { grid-template-columns: minmax(0, 1fr); } .extras--page { grid-template-columns: minmax(0, 1fr); } .chero__grid--wide { grid-template-columns: minmax(0, 1fr); } .chero__facts { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) {
  .chero__facts { grid-template-columns: minmax(0, 1fr); }
  /* phones: the three number cards sit in one compact row (number over label) instead of three tall cards */
  .chero__facts:not(.chero__facts--steps) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .chero__facts:not(.chero__facts--steps) li { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 12px 10px; align-content: start; }
  .chero__facts:not(.chero__facts--steps) b { font-size: 24px; }
  .chero__facts:not(.chero__facts--steps) span { font-size: 10px; letter-spacing: .06em; line-height: 1.3; }
}
/* keep the last fact card's label clear of the floating call/Telegram buttons */
@media (max-width: 700px) { .chero__facts li:last-child { padding-right: 76px; } }

/* ---------- works page ---------- */
.wgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
/* brand card = one white surface. Client logos are supplied on white, so the logo area has no box of its own
   and the artwork sits flush with the card; logos drawn on a colour block fill the whole media area instead. */
.wcard { min-width: 0; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: var(--radius-l); background: #fff; border: 1px solid var(--navy-10); box-shadow: 0 1px 2px rgba(0, 0, 142, .04), 0 18px 36px -30px rgba(0, 0, 142, .35); transition: transform var(--dur) var(--ease), border-color .3s, box-shadow var(--dur) var(--ease); }
.wcard:hover { transform: translateY(-3px); border-color: rgba(22, 0, 254, .35); box-shadow: 0 1px 2px rgba(0, 0, 142, .04), 0 28px 48px -30px rgba(22, 0, 254, .45); }
.wcard__logo { --pad: 26px; position: relative; aspect-ratio: 16 / 9; }
.wcard__logo img { position: absolute; inset: var(--pad); width: calc(100% - var(--pad) * 2); height: calc(100% - var(--pad) * 2); object-fit: contain; }
.wcard__meta { display: grid; gap: 3px; padding: 14px 18px 16px; min-width: 0; border-top: 1px solid var(--navy-05); }
.wcard__name { flex: 1 1 auto; min-width: 0; font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: -.01em; color: var(--damar-navy); }
.wcard__tag { min-width: 0; font-family: var(--font-cond); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--navy-60); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.whow { padding-top: 0; }
.steps--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.page-works .nav__symbol { opacity: 1; }
@media (max-width: 1100px) { .wgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .steps--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .wgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .wcard { border-radius: var(--radius-m); } .wcard__logo { --pad: 16px; } .wcard__meta { padding: 10px 12px 12px; } .wcard__tag { display: none; } }
@media (max-width: 560px) { .steps--5 { grid-template-columns: minmax(0, 1fr); } }

/* ================= TZ: home restructure ================= */
/* quick contact: Telegram + phone, pinned bottom-right on every page and width.
   Telegram is the primary action (brand gradient, larger, nearest the thumb); the phone sits above it as a glass disc.
   Labels appear on hover / keyboard focus; the phone label is the number itself. */
.cfab {
  position: fixed; z-index: 90;
  right: calc(var(--cfab-edge) + env(safe-area-inset-right, 0px));
  bottom: calc(var(--cfab-edge) + env(safe-area-inset-bottom, 0px));
  --cfab-edge: clamp(16px, 2vw, 28px);
  display: flex; flex-direction: column-reverse; align-items: center; gap: 12px;
  pointer-events: none;                       /* the gap between the discs never blocks the page */
  animation: cfabIn .7s var(--ease) .8s both;
}
@keyframes cfabIn { from { opacity: 0; transform: translateY(16px); } }
.cfab__btn {
  pointer-events: auto; position: relative; display: grid; place-items: center; border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background-color .3s;
}
.cfab__btn--tg {
  width: 58px; height: 58px; color: #fff; background: var(--gradient);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 0 0 1px rgba(255, 255, 255, .16), 0 16px 32px -12px rgba(22, 0, 254, .65);
}
/* attention ring: three soft pulses after the widget arrives, then it stays still */
.cfab__btn--tg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--damar-electric);
  opacity: 0; animation: cfabPulse 2.4s var(--ease) 1.6s 3;
}
@keyframes cfabPulse { 0% { opacity: .35; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }
.cfab__btn--tel {
  width: 48px; height: 48px; color: var(--damar-navy);
  background: rgba(255, 255, 255, .78); backdrop-filter: var(--nav-blur); -webkit-backdrop-filter: var(--nav-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 1px var(--navy-10), 0 12px 26px -14px rgba(0, 0, 142, .5);
}
.cfab__tip {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(8px, -50%);
  padding: 9px 14px; border-radius: 999px; white-space: nowrap;
  font-size: 14px; font-weight: 600; letter-spacing: -.005em; color: var(--damar-navy);
  background: rgba(255, 255, 255, .92); backdrop-filter: var(--nav-blur); -webkit-backdrop-filter: var(--nav-blur);
  box-shadow: 0 0 0 1px var(--navy-10), 0 12px 26px -14px rgba(0, 0, 142, .45);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .4s var(--ease);
}
.cfab__tip.js-tel-display { font-variant-numeric: tabular-nums; }
@media (hover: hover) {
  .cfab__btn:hover { transform: translateY(-2px); }
  .cfab__btn--tg:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 0 0 1px rgba(255, 255, 255, .16), 0 22px 40px -12px rgba(22, 0, 254, .75); }
  .cfab__btn--tel:hover { background-color: #fff; }
  .cfab__btn:hover .cfab__tip { opacity: 1; transform: translate(0, -50%); }
}
.cfab__btn:focus-visible { outline: 2px solid var(--damar-electric); outline-offset: 3px; }
.cfab__btn:focus-visible .cfab__tip { opacity: 1; transform: translate(0, -50%); }
.cfab__btn:active { transform: scale(.96); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .cfab__btn--tel, .cfab__tip { background: #fff; }
}
@media (max-width: 900px) {
  .cfab__btn--tg { width: 54px; height: 54px; }
  .cfab__btn--tel { width: 46px; height: 46px; }
}
@media print { .cfab { display: none; } }
/* brand marquee (five rows) */
.brands { overflow: hidden; }
.marquee { margin-top: 44px; display: grid; gap: 14px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__row { overflow: hidden; }
.marquee__track { display: flex; gap: 14px; width: max-content; will-change: transform; animation: marq var(--dur,60s) linear infinite; animation-direction: var(--adir, normal); }
.marquee__row:hover .marquee__track { animation-play-state: paused; }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee .logo { flex: 0 0 auto; width: clamp(180px, 21vw, 248px); aspect-ratio: 16/9; }
@media (max-width: 700px) {   /* smaller tiles on a phone, so more brands are on screen at once */
  .marquee { gap: 10px; }
  .marquee__track { gap: 10px; }
  .marquee .logo { width: clamp(92px, 25vw, 120px); aspect-ratio: 3 / 2; --pad: 8px; border-radius: 14px; }   /* ~4 logos per row on a phone */
}
.brands__more { display: flex; justify-content: center; margin-top: 36px; }
@media (prefers-reduced-motion: reduce) {
  .marquee { grid-auto-flow: row; overflow-x: auto; }
  .marquee__track { animation: none; }
}
/* five services as a list (home + services page), same layout as the "Nima qilamiz" reference:
   full-width rows with a large display title and channel tags, the description, and a round arrow.
   The whole row is the link, so the tap target is the row. */
.svclist { margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--navy-10); }
.svclist__row {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 32px; align-items: center;
  padding: clamp(28px, 3vw, 48px) 0; border-bottom: 1px solid var(--navy-10); color: var(--damar-navy);
  transition: padding-left .5s var(--ease);
}
.svclist__row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--damar-electric); transition: width .5s var(--ease); }
.svclist__h { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 4.6vw, 76px); line-height: 1; letter-spacing: -.03em; }
.svclist__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.svclist__tags li { padding: 5px 10px; border-radius: 999px; background: var(--navy-05); color: var(--damar-electric); font-size: 13px; font-weight: 500; }
.svclist__p { max-width: 44ch; color: var(--navy-60); }
.svclist__go {
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--navy-10);
  transition: transform .4s var(--ease), background-color .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
}
@media (hover: hover) {
  .svclist__row:hover { padding-left: 20px; }
  .svclist__row:hover::before { width: 4px; }
  .svclist__row:hover .svclist__go { background: var(--damar-electric); border-color: var(--damar-electric); color: #fff; transform: rotate(-45deg); }
}
.svclist__row:focus-visible { outline: 2px solid var(--damar-electric); outline-offset: 4px; }
@media (max-width: 900px) { .svclist__row { grid-template-columns: minmax(0, 1fr) auto; } .svclist__p { grid-column: 1 / -1; } }

/* "How Damar works" (home), same layout as the reference: headline, lead, values and founder on the left,
   the numbered process on the right; one column on phones */
.how__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
.how__lead { max-width: 52ch; margin-top: 24px; }
.how__values { margin-top: 40px; border-top: 1px solid var(--navy-10); }
.how__value { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--navy-10); }
.how__value b, .how__step b { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; color: var(--damar-navy); }
.how__value p, .how__step p { color: var(--navy-60); }
.how__founder { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px; align-items: center; margin-top: 40px; padding: 28px; border-radius: var(--radius-s); background: var(--navy-05); }
.how__ava { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: var(--damar-electric); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 24px; }
.how__founder b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--damar-navy); }
.how__founder p { font-size: 15px; color: var(--navy-60); }
.how__steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.how__step { counter-increment: step; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--navy-10); }
.how__step::before { content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--damar-electric); }
.how__step b { display: block; margin-bottom: 4px; }
@media (max-width: 900px) { .how__grid { grid-template-columns: minmax(0, 1fr); } .how__value { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
/* one-line pricing */
.priceline__box { max-width: 720px; margin-top: 8px; padding: clamp(28px,4vw,48px); border-radius: var(--radius-l); display: grid; gap: 14px; justify-items: start; }
.priceline__lead { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px,2.8vw,38px); letter-spacing: -.024em; color: var(--damar-navy); line-height: 1.05; }
.priceline__note { color: var(--navy-60); max-width: 46ch; }
.priceline__box .btn { margin-top: 8px; }
.btn--lg { padding: 18px 34px; font-size: 18px; }
/* contact as CTA */
.contact--cta { text-align: center; }
.contact__cta { position: relative; display: grid; justify-items: center; gap: 22px; }
.contact--cta .contact__d { width: min(60vw, 300px); aspect-ratio: 1; margin-bottom: 4px; }
.contact--cta .contact__h2 { max-width: 18ch; margin-inline: auto; }
.contact--cta .contact__sub { max-width: 40ch; margin: 0 auto; }
/* lead form inside the dark CTA: fields keep the dark .field styling, the block stays centred and readable */
.contact__form { width: min(100%, 520px); margin: 28px auto 0; text-align: left; }
.contact__submit { width: 100%; margin-top: 8px; }
.contact--cta .form__status { margin-top: 12px; text-align: center; }

/* services anchored blocks + branding */
.svc-block { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.svc-block .lead { margin-top: 12px; }
.svc-anchor { scroll-margin-top: calc(var(--nav-h) + 20px); border-top: 1px solid var(--navy-10); }
.branding { scroll-margin-top: calc(var(--nav-h) + 20px); }
.branding__head { margin-bottom: 28px; }
.branding__list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 40px; margin-bottom: 32px; }
.branding__list li { position: relative; padding-left: 26px; font-size: 16px; color: var(--navy-85); padding-block: 6px; }
.branding__list li::before { content: ""; position: absolute; left: 0; top: 14px; width: 12px; height: 2px; background: var(--damar-electric); }
#overview { scroll-margin-top: calc(var(--nav-h) + 20px); }
#smm { scroll-margin-top: calc(var(--nav-h) + 20px); }
@media (max-width: 700px) { .branding__list { grid-template-columns: minmax(0, 1fr); } }

/* works: featured cases */
.cases__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 44px; }
.case { border-radius: var(--radius-l); overflow: hidden; display: flex; flex-direction: column; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.case:hover { transform: translateY(-4px); box-shadow: 0 34px 64px -34px rgba(0,0,0,.4); }
.case__cover { aspect-ratio: 16/10; display: grid; place-items: center; padding: 36px; background: linear-gradient(135deg, var(--navy-05), rgba(22,0,254,.06)); }
.case__cover img { max-width: 72%; max-height: 60%; object-fit: contain; }
.case__body { padding: 20px 22px 24px; display: grid; gap: 8px; }
.case__name { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -.02em; color: var(--damar-navy); }
.case__field { font-family: var(--font-cond); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-60); }
.case__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.case__tags li { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--navy-05); color: var(--damar-navy); }
.cases { scroll-margin-top: calc(var(--nav-h) + 20px); }
@media (max-width: 1000px) { .cases__grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px) { .cases__grid { grid-template-columns: minmax(0, 1fr); } }

/* contact page telegram panel */
.ctgpanel { display: grid; gap: 16px; justify-items: start; align-content: center; }
.ctgpanel__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--gradient); color: #fff; }
.ctgpanel .cform__h { margin: 0; }
/* lead form on the contact page */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cform__submit { width: 100%; margin-top: 8px; }
.cform form { margin-top: 4px; }
.cform__alt { display: inline-flex; align-items: center; min-height: 44px; margin-top: 18px; font-weight: 600; color: var(--damar-electric); border-bottom: 1px solid currentColor; }
.cform__alt:hover { color: var(--damar-navy); }

/* ---------- footer ---------- */
.footer { background: var(--surface-ink-2); color: #fff; border-top: 1px solid var(--white-15); padding-block: 48px 36px; }
.footer__grid { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
.footer__logo { display: inline-flex; align-items: center; min-height: 44px; }
.footer__logo { font-size: 32px; color: #fff; }
.footer__links { display: flex; gap: 4px 12px; justify-content: center; flex-wrap: wrap; font-size: 15px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; opacity: .75; transition: opacity .3s; }
.footer__links a:hover { opacity: 1; }
.footer__social { display: flex; gap: 6px; }
.footer__social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--white-15); transition: background-color .3s; }
.footer__social a:hover { background: var(--white-08); }
.footer__legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--white-15); font-size: 13px; color: var(--white-60); }
/* keep footer content clear of the pinned quick-contact discs (.cfab):
   desktop lifts the social row above them; on phones only the full-width legal line reaches that corner */
.footer { padding-bottom: 96px; }
@media (max-width: 900px) { .footer { padding-bottom: 36px; } .footer__legal { padding-right: 76px; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .wall__grid { grid-template-columns: repeat(3, 1fr); }
  .wall__grid .tile { --rx: 0deg; }
  .wall__grid .tile:nth-child(3n+1) { --ry: 10deg; --tz: 0px; }
  .wall__grid .tile:nth-child(3n+2) { --ry: 0deg; --tz: 20px; }
  .wall__grid .tile:nth-child(3n+3) { --ry: -10deg; --tz: 0px; }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .extras { grid-template-columns: minmax(0, 1fr); }
  .extras__discount { grid-column: auto; }
  .footer__grid { grid-template-columns: 1fr auto; }
  .footer__links { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav__inner { grid-template-columns: auto 1fr; }
  .nav__links { justify-self: stretch; }   /* justify-self also positions fixed grid children: reset it so the dropdown spans the viewport */
  .nav__links a { justify-content: center; }
  .nav__links a::after { display: none; }
  /* dropdown = a second glass pane hanging under the bar; denser than the bar since it carries 22px text over arbitrary content */
  .nav__links { position: fixed; inset: var(--nav-h) 0 auto 0; display: flex; flex-direction: column; gap: 4px; padding: 16px var(--gutter) 24px; background-color: rgba(255,255,255,.78); background-image: linear-gradient(180deg, rgba(255,255,255,.3), rgba(255,255,255,0) 40%); backdrop-filter: var(--nav-blur); -webkit-backdrop-filter: var(--nav-blur); box-shadow: inset 0 1px 0 var(--nav-hairline-light), 0 1px 0 var(--nav-hairline-light), 0 24px 48px -24px rgba(0,0,142,.35); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s, background-color .4s, color .4s; font-size: 22px; font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; color: var(--damar-navy); }
  .nav.is-dark .nav__links { background-color: rgba(0,0,0,.6); background-image: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0) 40%); box-shadow: inset 0 1px 0 var(--nav-hairline-dark), 0 1px 0 var(--nav-hairline-dark), 0 24px 48px -24px rgba(0,0,0,.7); color: #fff; }
  .nav__links a { padding: 10px 0; opacity: .72; border-radius: 0; }
  .nav__links a[aria-current="page"] { opacity: 1; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease), transform .35s var(--ease), background-color .4s, color .4s; }
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .nav__links { background-color: rgba(255,255,255,.96); }
    .nav.is-dark .nav__links { background-color: rgba(0,0,0,.92); }
  }
  @media (prefers-reduced-transparency: reduce) {
    .nav__links { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
    .nav.is-dark .nav__links { background: var(--surface-ink); }
  }
  .nav__right .btn { display: none; }
  .nav__burger { display: flex; }
  .nav__logo { font-size: 32px; height: 44px; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-block: 24px 80px; }
  .hero__stage { order: -1; max-width: 62vw; justify-self: center; margin-bottom: -4vw; }
  .hero__h1 { max-width: 15ch; font-size: clamp(32px, 8.4vw, 42px); }
  .hero::after { background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.9) 60%); }
  .about__grid, .rules__grid, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .rules__intro { position: static; }
  .stat { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 18px 0; }
  .stat__num { font-size: clamp(52px, 17vw, 72px); width: max-content; max-width: 100%; }
  .stat__label { max-width: none; text-align: left; }
  .why__stage { height: 58svh; max-height: none; }
  .why__bar { width: 64px; }
  .wall__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .wall__grid .tile { --ry: 0deg; --tz: 0px; --rx: 0deg; min-height: 150px; }
  .contact__stage { order: -1; }
  .contact__d { max-width: 220px; }
  .contact__h2 { font-size: clamp(34px, 11vw, 64px); }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .contact__links .btn { white-space: normal; text-align: left; line-height: 1.25; max-width: 100%; }
  .btn { white-space: normal; }
}
@media (max-width: 700px) {
  /* Phones: the pinned deck (four screens of scrolling for a card with three lines of text) becomes a
     plain list. Each card is as tall as its own text, so there is no empty glass left over. */
  .why__pin { height: auto; padding-block: calc(var(--nav-h) + 64px) 80px; }
  .why__head { position: static; transform: none; margin: 0 auto 24px; width: min(100% - var(--gutter) * 2, var(--container)); }
  .why__progress { display: none; }
  .why__stage { height: auto; min-height: 0; max-height: none; display: grid; gap: 14px; }
  .why__stage .panel { position: static; inset: auto; transform: none !important; opacity: 1 !important; }
  .panel { padding: 26px 22px 30px; border-radius: 26px; justify-content: flex-start; }
  .panel__body { opacity: 1 !important; transform: none !important; visibility: visible !important; }
  .panel__num { margin-bottom: 16px; }
  .panel__title { font-size: clamp(26px, 7.6vw, 36px); }
  .panel__text { margin-top: 12px; }
}

@media (max-width: 480px) {
  .nav__inner { gap: 12px; }
  .nav__right { gap: 10px; }
  .lang__btn { width: 30px; font-size: 12px; padding: 5px 0; }
  .nav__logo { font-size: 28px; height: 44px; }
  .nav__burger { width: 44px; height: 44px; }
  .wall__grid { grid-template-columns: minmax(0, 1fr); }

}

@media (max-width: 900px) {
  .btn--sm { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}
@media (max-width: 359px) {
  .nav__logo { font-size: 25px; }        /* 320px phones: logo + language pill + 44px menu button fit inside the gutters */
}

/* ---------- reduced motion: static hero, no auto-rotation, instant transitions ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero .eyebrow, .hero__h1, .hero__sub, .hero__cta, .hero__proof { opacity: 1; transform: none; }
  .hero__backdrop { animation: none; }
  .nav.is-undocked .nav__symbol { opacity: 1; }
  .why__pin { height: auto; padding: 120px 0; }
  .why__head { position: static; transform: none; margin: 0 auto 32px; }
  .why__stage { height: auto; max-height: none; display: grid; gap: 16px; }
  .why__glow { animation: none; }
  .panel { position: static; transform: none !important; opacity: 1 !important; }
  .panel__body { opacity: 1 !important; transform: none !important; }
  .panel__num { margin-bottom: 20px; }
}

/* ---------- contact page: skeleton shimmer while the fonts and the form script load ----------
   <html class="is-booting"> is set by an inline script before the first paint and removed once the
   fonts are ready. Text keeps its box (only `color` goes transparent), so nothing moves on reveal. */
@keyframes skel-shine { from { background-position: 150% 0; } to { background-position: -150% 0; } }
@keyframes skel-in { from { opacity: 0; } to { opacity: 1; } }

.is-booting .page-contact .chero__copy .kicker,
.is-booting .page-contact .chero__h1,
.is-booting .page-contact .chero__sub,
.is-booting .page-contact .chero__actions .btn,
.is-booting .page-contact .cform__h,
.is-booting .page-contact .cform__p,
.is-booting .page-contact .field > span,
.is-booting .page-contact .field input,
.is-booting .page-contact .field select,
.is-booting .page-contact .phone__prefix,
.is-booting .page-contact .cform__submit,
.is-booting .page-contact .cform__alt {
  color: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  text-decoration-color: transparent !important;
  background-color: var(--skel-base);
  background-image: linear-gradient(90deg, transparent 20%, var(--skel-shine) 50%, transparent 80%) !important;
  background-repeat: no-repeat;
  background-size: 220% 100%;
  border-radius: var(--radius-s);
  animation: var(--skel-anim);
}
/* the placeholder and the select arrow are drawn separately, so silence them too */
.is-booting .page-contact .field input::placeholder { color: transparent !important; }
.is-booting .page-contact .phone__prefix::after { opacity: 0; }

/* dark hero column: pale bars; light glass panel: navy bars */
.page-contact { --skel-base: rgba(255, 255, 255, .10); --skel-shine: rgba(255, 255, 255, .22);
  --skel-anim: skel-in .2s ease .12s both, skel-shine 1.25s linear .12s infinite; }
.is-booting .page-contact .cform { --skel-base: rgba(0, 0, 90, .09); --skel-shine: rgba(0, 0, 90, .16); }

/* the swap from bars to real text gets one short fade so it does not snap */
@keyframes skel-reveal { from { opacity: 0; } to { opacity: 1; } }
.is-revealing .page-contact .chero__copy > *,
.is-revealing .page-contact .cform > * { animation: skel-reveal .26s ease both; }

@media (prefers-reduced-motion: reduce) {
  .page-contact { --skel-anim: skel-in .2s ease .12s both; }   /* no sweeping highlight */
  .is-revealing .page-contact .chero__copy > *,
  .is-revealing .page-contact .cform > * { animation: none; }
}

/* /about — founder block */
.founder { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); grid-template-areas: "photo head" "photo copy"; grid-template-rows: auto 1fr; gap: 0 56px; align-items: start; }
.founder__photo { grid-area: photo; margin: 0; border-radius: var(--radius-l, 28px); overflow: hidden; aspect-ratio: 4 / 5; background: var(--navy-10); }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.founder__head { grid-area: head; align-self: end; padding-top: 24px; }
.founder__head .h2 { margin-top: 8px; }
.founder__copy { grid-area: copy; max-width: 52ch; color: var(--navy-60); font-size: 17px; line-height: 1.55; }
.founder__copy p { margin: 14px 0 0; }
.founder__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 760px) {
  .founder { grid-template-columns: 140px minmax(0, 1fr); grid-template-areas: "photo head" "copy copy"; gap: 0 16px; }
  .founder__photo { border-radius: 18px; }
  .founder__head { align-self: center; padding-top: 0; }
  .founder__head .h2 { font-size: 24px; }
  .founder__copy { font-size: 15px; }
  .founder__actions { gap: 8px; margin-top: 20px; }
  .founder__actions .btn { flex: 1 1 auto; justify-content: center; padding-inline: 14px; font-size: 14px; white-space: nowrap; }
}
.btn--ghost-dark { background: transparent; color: var(--damar-navy); border: 1px solid var(--navy-10); }

/* /works: founder's earlier brands — same 4-column grid as Damar clients (3 on phones) */
.wpast-section { padding-top: 0; }
.wcard--past { box-shadow: none; }
.wcard--past .wcard__name { font-size: 13px; }
/* phones: compact logo walls — Damar clients 3 per row, earlier projects 4 per row (logos only) */
@media (max-width: 760px) {
  #wgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
  #wgrid .wcard__logo { --pad: 10px; }
  #wgrid .wcard__meta { padding: 6px 8px 8px; }
  #wgrid .wcard__name { font-size: 11px; line-height: 1.25; }
  .wgrid--past { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
  .wcard--past .wcard__logo { --pad: 10px; }
  .wcard--past .wcard__meta { display: none; }
}
/* cards rise in row by row as they scroll into view (JS adds .js-reveal; without JS they are simply shown) */
.wgrid.js-reveal .wcard { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: var(--d, 0ms); }
.wgrid.js-reveal .wcard.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .wgrid.js-reveal .wcard { opacity: 1; transform: none; transition: none; } }
/* phones: footer links as a tidy 2×2 grid instead of a ragged wrap */
@media (max-width: 520px) { .footer__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; justify-items: start; } .footer__links a { padding: 0; } }

/* home "how we work": founder card shows the real photo and links to /about */
img.how__ava { object-fit: cover; object-position: 50% 18%; background: var(--navy-10); }
.how__link { display: inline-block; margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--damar-electric); }

/* service price block: one row per product (video, branding, website) */
.svcprice__rows { margin: 20px 0 0; display: grid; gap: 8px; max-width: 560px; }
.svcprice__rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 18px; border-radius: var(--radius-s, 14px); background: var(--navy-05); }
.svcprice__rows dt { font-size: 16px; color: var(--damar-navy); }
.svcprice__rows dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--damar-navy); white-space: nowrap; }

/* home hero: proof under the CTAs — Damar's clients and the founder (A+B variant, 02.11.2026) */
.hero__proof { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; max-width: 760px; }
.hproof, .hfounder { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: #fff; text-decoration: none; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .3s; }
.hproof:hover, .hfounder:hover { background: rgba(255,255,255,.14); }
.hproof { flex-direction: column; align-items: flex-start; gap: 10px; width: min(420px, 100%); min-width: 0; box-sizing: border-box; }
.hproof__label { font-size: 14px; color: rgba(255,255,255,.85); }
.hproof__label b { font-family: var(--font-display); font-size: 22px; color: #fff; margin-right: 2px; }
.hproof__logos { display: block; width: 100%; max-width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.hproof__track { display: flex; gap: 6px; width: max-content; }
.hproof__track.is-moving { animation: marq var(--dur, 60s) linear infinite; }
.hproof:hover .hproof__track { animation-play-state: paused; }
.hproof__logos i { flex: 0 0 auto; width: 72px; height: 40px; border-radius: 10px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.hproof__logos i[data-plate] { background: var(--plate); }
.hproof__logos i[data-plate] img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: cover; }
.hproof__logos img { max-width: 58px; max-height: 24px; width: auto; height: auto; object-fit: contain; }
.hfounder { align-self: stretch; }
.hfounder img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.hfounder span { display: flex; flex-direction: column; gap: 2px; }
.hfounder b { font-size: 15px; font-weight: 600; }
.hfounder small { font-size: 12px; color: rgba(255,255,255,.7); }
.hfounder svg { margin-left: auto; opacity: .7; }
@media (max-width: 760px) {
  .hero__proof { margin-top: 28px; flex-direction: column; }
  .hproof, .hfounder { width: 100%; box-sizing: border-box; }
  .hproof__logos { width: 100%; }
  .hproof__logos i { width: 64px; height: 36px; }
  .hproof__logos img { max-width: 80%; max-height: 22px; }
  .hero .hero__scroll { display: none; }
}
/* phones: the floating pair is smaller and stays tucked away while the page's own hero buttons are on screen */
.cfab { transition: opacity .35s var(--ease), transform .45s var(--ease); }
.cfab.is-tucked { opacity: 0; transform: translateY(24px); visibility: hidden; animation: none; }
@media (max-width: 760px) {
  .cfab { --cfab-edge: 14px; gap: 10px; }
  .cfab__btn--tg { width: 52px; height: 52px; }
  .cfab__btn--tel { width: 44px; height: 44px; }
}

/* /about: story, principles, clients, Space Academy */
.astory__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px 56px; align-items: start; }
.astory__copy p { margin: 0 0 14px; font-size: 17px; line-height: 1.6; color: var(--navy-60); max-width: 56ch; }
.astory__h { margin-top: 64px; }
.aprinc { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.aprinc li { padding: 24px; border-radius: var(--radius-m); }
.aprinc__n { font-family: var(--font-cond); font-size: 13px; letter-spacing: .1em; color: var(--damar-electric); }
.aprinc h3 { margin: 10px 0 8px; font-family: var(--font-display); font-size: 20px; color: var(--damar-navy); }
.aprinc p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--navy-60); }
.aclients { padding-top: 0; }
.aclients__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.aclients__more { color: var(--damar-electric); font-weight: 600; white-space: nowrap; }
.aclients__grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.aacad { padding-top: 0; }
.aacad__card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: center; padding: 32px; border-radius: var(--radius-l); background: var(--navy-05); }
.aacad__card img { width: 100%; height: auto; mix-blend-mode: multiply; }   /* the logo file has a white box; multiply drops it on the tinted card */
.aacad__card .lead { max-width: 60ch; }
@media (max-width: 900px) {
  .astory__grid { grid-template-columns: minmax(0, 1fr); }
  .aprinc { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .aclients__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .aclients__grid .logo { --pad: 8px; border-radius: 12px; }
  .aacad__card { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 22px; }
  .aacad__card img { width: 160px; }
  .astory__h { margin-top: 44px; }
}
.aacad__stats { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.aacad__stats li { padding: 12px 16px; border-radius: 14px; background: #fff; display: flex; flex-direction: column; gap: 2px; }
.aacad__stats b { font-family: var(--font-display); font-size: 22px; color: var(--damar-navy); white-space: nowrap; }
.aacad__stats span { font-size: 13px; color: var(--navy-60); }
@media (max-width: 900px) { .aacad__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .aacad__stats li { padding: 10px 8px; } .aacad__stats b { font-size: 16px; white-space: normal; } .aacad__stats span { font-size: 11px; } }
.founder__insta { display: inline-block; margin-top: 16px; font-size: 15px; font-weight: 600; color: var(--damar-electric); text-decoration: underline; text-underline-offset: 4px; }
.aclients__marq { margin-top: 28px; }
/* client logo files carry their own white (sometimes off-white) box; multiply melts it into whatever tile it sits on.
   Logos drawn on a colour block (data-plate) are full-bleed and keep normal blending. */
.logo:not([data-plate]) img, .wcard__logo:not([data-plate]) img, .hproof__logos i:not([data-plate]) img { mix-blend-mode: multiply; }
/* ---------- header language switch: inline pill on desktop, "globe + code" dropdown on phones ---------- */
.langdd { position: relative; display: flex; align-items: center; }
.langdd__toggle { display: none; }
.lang__full { display: none; }
.lang__btn b { font-weight: inherit; }
@media (max-width: 900px) {
  .langdd__toggle { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px 0 14px; border-radius: 999px; border: 1px solid currentColor; font-size: 14px; font-weight: 500; color: inherit; background: transparent; opacity: .9; }
  .langdd__chev { transition: transform .3s var(--ease); }
  .langdd.is-open .langdd__chev { transform: rotate(180deg); }
  .langdd .lang { position: absolute; top: calc(100% + 8px); right: 0; z-index: 120; min-width: 168px; flex-direction: column; gap: 2px; padding: 6px; border: 0; border-radius: 16px; background: #fff; color: var(--damar-navy); box-shadow: 0 0 0 1px var(--navy-10), 0 20px 40px -16px rgba(0, 0, 0, .45); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s var(--ease), transform .3s var(--ease), visibility .3s; }
  .langdd.is-open .lang { opacity: 1; visibility: visible; transform: none; }
  .langdd .lang__btn { width: auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px; border-radius: 10px; font-size: 15px; letter-spacing: 0; opacity: 1; color: var(--damar-navy); }
  .langdd .lang__btn b { order: 2; font-size: 12px; opacity: .6; }
  .langdd .lang__full { display: inline; }
  .langdd .lang__btn.is-active, .nav.is-dark .langdd .lang__btn.is-active { background: var(--navy-05); color: var(--damar-navy); }
  .langdd .lang__btn::after { display: none; }
  .nav__right { gap: 8px; }
  /* menu button: brand disc, second line shorter */
  .nav__burger { width: 44px; height: 44px; border-radius: 50%; background: var(--damar-electric); color: #fff; gap: 5px; align-items: center; }
  .nav__burger span { width: 18px; }
  .nav__burger span:last-child { width: 12px; transform: translateX(-3px); }
  .nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:last-child { width: 18px; transform: translateY(-3.5px) rotate(-45deg); }
  /* menu = full-height sheet: big links, then the consultation button and quick contacts */
  .nav__links { bottom: 0; justify-content: flex-start; gap: 0; padding: 12px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; }
  .nav__links > a { justify-content: space-between; padding: 18px 0; font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -.02em; opacity: 1; border-bottom: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 14%, transparent); }
  .nav__links > a::before { content: "→"; order: 2; font-size: 18px; opacity: .5; }
  .nav__foot { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }
  .nav__foot .btn { justify-content: center; width: 100%; }
  .nav__quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .nav__quick a { display: flex; justify-content: center; align-items: center; min-height: 48px; border-radius: 999px; border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 30%, transparent); font-size: 14px; font-weight: 500; }
}
@media (min-width: 901px) { .nav__foot { display: none; } }
@media (max-width: 900px) { .nav__foot a { opacity: 1; } .nav__links .nav__foot a { opacity: 1; } }
@media (max-width: 900px) {
  /* the sheet is solid so page content never shows through */
  .nav__links, .nav.is-dark .nav__links { background: #030A2F; background-image: none; color: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav__links .nav__foot .btn { border-radius: 999px; padding: 16px 20px; }
}
@media (max-width: 900px) { .nav.is-open { color: #fff; } .nav.is-open::before { background: #030A2F !important; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; } }
/* ---------- footer (02.11.2026): brand + CTA, services, company, contacts ---------- */
.footer { padding-block: 64px 32px; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.footer__about { margin: 0; max-width: 34ch; font-size: 15px; line-height: 1.55; color: var(--white-60); }
.footer__cta { margin-top: 4px; }
.footer__h { margin: 0 0 14px; font-family: var(--font-cond); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--white-60); }
.footer__list { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.footer__list a, .footer__addr { display: inline-flex; align-items: center; min-height: 36px; font-size: 15px; color: rgba(255, 255, 255, .86); transition: color .25s; }
.footer__list a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer__addr { min-height: 0; padding-top: 6px; font-size: 14px; line-height: 1.45; color: var(--white-60); }
.footer__col .footer__social { margin-top: 18px; }
.footer__bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--white-15); }
.footer__bottom .footer__legal { margin: 0; padding: 0; border: 0; }
@media (max-width: 1000px) { .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 640px) {
  .footer { padding-block: 48px 28px; }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .footer__brand .footer__cta { width: 100%; justify-content: center; }
  .footer__col:last-child { grid-column: 1 / -1; }
  .footer__bottom { margin-top: 36px; padding-right: 70px; }
}
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer__top-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 13px; color: var(--white-60); transition: color .25s; }
.footer__top-link:hover { color: #fff; }
@media (max-width: 640px) { .footer__top-link { display: none; } }
/* contact-section 3D D: soft electric-blue glow behind it that slowly "breathes" */
.contact__d { position: relative; isolation: isolate; }
.contact__d::before { content: ""; position: absolute; inset: 8%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(40, 60, 255, .8), rgba(22, 0, 254, .28) 55%, transparent 78%); filter: blur(22px); animation: dglow 5s ease-in-out infinite; pointer-events: none; }
@keyframes dglow { 0%, 100% { opacity: .55; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .contact__d::before { animation: none; opacity: .8; } }
/* ---------- header logo: light sweep (on load and on hover) + small 3D tilt on hover/tap — A+B, 02.11.2026 ----------
   The sweep is a gradient painted through the same mask, so it stays inside the D. */
.nav__logo .damar-logo__mark {
  --shine: rgba(255, 255, 255, .95);
  /* layer 1: the moving sweep; layer 2: the logo's own fill (.nav__symbol gradient, kept as is) */
  background-image: linear-gradient(110deg, transparent 38%, var(--shine) 50%, transparent 62%), linear-gradient(135deg, var(--logo-a), var(--logo-b));
  background-size: 300% 100%, 100% 100%; background-position: 120% 0, 0 0; background-repeat: no-repeat;
  transform: perspective(160px) rotateY(0) rotateX(0); transform-origin: 50% 55%;
  transition: transform .5s var(--ease);
  animation: logoShine 1.4s var(--ease) 1.1s 1 both;
}
.nav.is-dark .nav__logo .damar-logo__mark { --shine: rgba(120, 140, 255, .95); }
@keyframes logoShine { from { background-position: 120% 0, 0 0; } to { background-position: -20% 0, 0 0; } }
@keyframes logoShine2 { from { background-position: 120% 0, 0 0; } to { background-position: -20% 0, 0 0; } }
@media (hover: hover) {
  .nav__logo:hover .damar-logo__mark { transform: perspective(160px) rotateY(-24deg) rotateX(10deg); animation: logoShine2 .9s var(--ease) 1 both; }
}
.nav__logo:active .damar-logo__mark { transform: perspective(160px) rotateY(-24deg) rotateX(10deg); }
@media (prefers-reduced-motion: reduce) { .nav__logo .damar-logo__mark { animation: none; transition: none; } .nav__logo:hover .damar-logo__mark { transform: none; animation: none; } }
