/* БГФАСАДА - landing styles */

:root {
  --bg: #edebe5;
  --paper: #f7f6f2;
  --white: #ffffff;
  --ink: #15181b;
  --ink-2: #474c51;
  --ink-3: #62686d;
  --line: rgba(21, 24, 27, 0.12);
  --line-2: rgba(21, 24, 27, 0.2);
  --dark: #1a1e1b;
  --dark-2: #262b27;
  --on-dark: #f3f2ee;
  --on-dark-2: #b9bcb6;
  --accent: #d5f24b;
  --accent-deep: #c2df36;
  --alu: #b7bcc1;

  --f-display: "Geologica", "Onest", system-ui, sans-serif;
  --f-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;

  --wrap: 1320px;
  --gutter: clamp(12px, 2.4vw, 28px);
  --hdr-h: 68px;

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

  --z-bar: 40;
  --z-hdr: 50;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 28px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; margin: 0; letter-spacing: -0.025em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.card--dark :focus-visible, .contact :focus-visible, .review--big :focus-visible, .stats :focus-visible { outline-color: var(--accent); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }

/* ---------- Buttons & chips ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 6px 8px 6px 24px;
  border: 0; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease;
}
.btn:not(:has(.btn__dot)) { padding-right: 24px; }
.btn:active { transform: scale(0.97); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--paper); }
.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--ink); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--sm { min-height: 42px; padding: 4px 18px; font-size: 15px; }
.btn--lg { min-height: 60px; font-size: 17px; }
.btn--block { width: 100%; }
.btn .ic { width: 18px; height: 18px; }
.btn__dot { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--ink); transition: transform 220ms var(--ease-out); }
.btn--accent .btn__dot { background: var(--ink); color: var(--accent); }
.btn--ghost .btn__dot { background: var(--ink); color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .btn--dark:hover { --btn-bg: #2a2f33; }
  .btn--accent:hover { --btn-bg: var(--accent-deep); }
  .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
  .btn:hover .btn__dot { transform: rotate(45deg); }
}

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em; line-height: 1.2; text-decoration: none; white-space: nowrap;
}
.chip--line { box-shadow: inset 0 0 0 1px var(--line-2); background: var(--paper); color: var(--ink-2); }
.chip--line::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px rgba(21, 24, 27, 0.25); }
.chip--glass { background: rgba(247, 246, 242, 0.88); color: var(--ink); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.chip--dark { background: rgba(255, 255, 255, 0.08); color: var(--on-dark); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.chip .ic { width: 16px; height: 16px; }
a.chip--dark { transition: background-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { a.chip--dark:hover { background: rgba(255, 255, 255, 0.16); } }

/* ---------- Header ---------- */
.hdr { position: fixed; top: 12px; left: 0; right: 0; z-index: var(--z-hdr); pointer-events: none; }
.hdr__bar {
  pointer-events: auto;
  width: min(100% - var(--gutter) * 2 - 24px, calc(var(--wrap) - 24px)); margin-inline: auto;
  height: var(--hdr-h); padding: 0 10px 0 22px;
  display: flex; align-items: center; gap: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(21, 24, 27, 0.04), 0 8px 30px -18px rgba(21, 24, 27, 0.35);
  transition: box-shadow 240ms ease;
}
.hdr.is-scrolled .hdr__bar { box-shadow: 0 1px 0 rgba(21, 24, 27, 0.06), 0 14px 40px -18px rgba(21, 24, 27, 0.45); }
.hdr__logo { flex: none; display: block; padding: 6px 0; }
.hdr__logo img { width: 132px; height: auto; }
.hdr__nav { flex: 1; display: flex; justify-content: center; }
.hdr__nav ul { list-style: none; display: flex; gap: 2px; }
.hdr__nav a {
  display: block; padding: 9px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: background-color 200ms ease, color 200ms ease;
}
.hdr__nav a[aria-current="true"] { background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .hdr__nav a:not([aria-current="true"]):hover { background: rgba(21, 24, 27, 0.06); color: var(--ink); } }
.hdr__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.hdr__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; text-decoration: none; padding: 8px 6px; }
.hdr__phone .ic { width: 17px; height: 17px; }
.hdr__burger { display: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--ink); color: var(--paper); place-items: center; transition: transform 160ms var(--ease-out); }
.hdr__burger:active { transform: scale(0.94); }
.hdr__burger .ic--close { display: none; }
.hdr__burger[aria-expanded="true"] .ic--open { display: none; }
.hdr__burger[aria-expanded="true"] .ic--close { display: block; }

.menu {
  pointer-events: auto;
  width: min(100% - var(--gutter) * 2, 560px); margin: 8px auto 0;
  padding: 12px; border-radius: var(--r-lg);
  background: var(--white); box-shadow: 0 24px 60px -24px rgba(21, 24, 27, 0.45);
  transform-origin: top center;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.menu[hidden] { display: none; }
.menu.is-entering { opacity: 0; transform: translateY(-8px) scale(0.98); }
.menu ul { list-style: none; margin-bottom: 10px; }
.menu a:not(.btn) { display: block; padding: 13px 14px; border-radius: 12px; font-family: var(--f-display); font-size: 20px; font-weight: 500; text-decoration: none; }
.menu a:not(.btn)[aria-current="true"] { background: var(--bg); }

@media (max-width: 1180px) { .hdr__nav a { padding: 9px 10px; font-size: 14.5px; } .hdr__phone span { display: none; } }
@media (max-width: 1020px) {
  :root { --hdr-h: 60px; }
  .hdr { top: 8px; }
  .hdr__bar { padding: 0 6px 0 18px; width: min(100% - var(--gutter) * 2, var(--wrap)); }
  .hdr__nav, .hdr__cta { display: none; }
  .hdr__burger { display: grid; }
  .hdr__phone { width: 48px; height: 48px; justify-content: center; border-radius: 50%; background: var(--accent); padding: 0; }
  .hdr__logo img { width: 118px; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 14px;
  padding-top: 12px;
  min-height: min(900px, 100svh);
}
.hero__text {
  order: 2;
  display: flex; flex-direction: column;
  padding: calc(var(--hdr-h) + 64px) clamp(28px, 4vw, 64px) clamp(28px, 3.4vw, 48px);
  background: var(--paper); border-radius: var(--r-xl);
}
.hero__text .chip { align-self: flex-start; }
.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.7rem, 1.2rem + 4.6vw, 5.6rem);
  font-weight: 600; line-height: 0.98; letter-spacing: -0.035em;
  max-width: 11ch;
}
.hero__lead { margin-top: 22px; max-width: 34em; font-size: clamp(17px, 1rem + 0.3vw, 20px); color: var(--ink-2); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero__foot { margin-top: auto; padding-top: 40px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.hero__stat { display: flex; align-items: center; gap: 16px; }
.hero__num {
  display: inline-flex; align-items: center; justify-content: center; flex: none; white-space: nowrap;
  min-width: 118px; height: 78px; padding: 0 22px;
  border-radius: 999px; background: var(--accent);
  font-family: var(--f-display); font-weight: 600; font-size: 40px; letter-spacing: -0.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero__numlabel { max-width: 12em; font-size: 15px; line-height: 1.35; color: var(--ink-2); font-weight: 500; }
.hero__ba {
  position: relative; display: flex; align-items: center; gap: 10px;
  height: 64px; padding: 0 20px 0 0; border-radius: 999px; overflow: hidden;
  background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; font-size: 15px;
  transition: transform 160ms var(--ease-out);
}
.hero__ba img { width: 96px; height: 64px; object-fit: cover; }
.hero__ba span { display: inline-flex; align-items: center; gap: 6px; }
.hero__ba .ic { width: 16px; height: 16px; color: var(--accent); }
.hero__ba:active { transform: scale(0.97); }

.hero__video {
  order: 1; position: relative; margin: 0;
  border-radius: var(--r-xl); overflow: hidden; background: var(--dark);
  min-height: 560px;
}
.hero__video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* hidden on request: the reel works as a pure background; remove display:none to bring the pause button back */
.vbtn { display: none !important; }
.vbtn {
  position: absolute; right: 16px; bottom: 16px; z-index: 1;
  display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(247, 246, 242, 0.72); color: var(--ink); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
@media (hover: hover) and (pointer: fine) { .vbtn:hover { background: rgba(247, 246, 242, 0.95); } }
.vbtn:active { transform: scale(0.94); }
.vbtn .ic { width: 18px; height: 18px; }
.vbtn .ic--play { display: none; fill: currentColor; }
.vbtn.is-paused .ic--pause { display: none; }
.vbtn.is-paused .ic--play { display: block; }

@media (min-width: 1021px) {
  /* Reference layout: video card left (narrower), text card right. */
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .hero__video { order: 1; }
  .hero__text { order: 2; }
}
@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 8px; }
  .hero__text { order: 1; padding-top: calc(var(--hdr-h) + 44px); }
  .hero__video { order: 2; min-height: 0; aspect-ratio: 4 / 5; max-height: 78svh; }
}
/* Phones: short text card so the autoplaying video shows on the first screen.
   "Преди и след" takes the place of "Виж проектите" (same destination), BG · DE is hidden. */
@media (max-width: 760px) {
  .hero__text { padding-top: calc(var(--hdr-h) + 30px); }
  .hero__ctas .btn--ghost, .hero__stat { display: none; }
  .hero__foot { margin-top: 10px; padding-top: 0; }
  .hero__ba { width: 100%; height: 52px; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
  .hero__ba img { width: 84px; height: 52px; }
  .hero__ba .ic { color: var(--ink); }
}
@media (max-width: 560px) {
  .hero__text { padding-inline: 20px; padding-bottom: 22px; border-radius: 26px; }
  .hero__video { border-radius: 26px; aspect-ratio: 9 / 13; }
  .hero__ctas .btn { width: 100%; justify-content: space-between; }
  .hero__ctas .btn--ghost { justify-content: center; }
}

/* page-load rise */
[data-rise] { animation: rise 700ms var(--ease-out) both; }
.hero__text > [data-rise]:nth-child(1) { animation-delay: 60ms; }
.hero__text > [data-rise]:nth-child(2) { animation-delay: 120ms; }
.hero__text > [data-rise]:nth-child(3) { animation-delay: 190ms; }
.hero__text > [data-rise]:nth-child(4) { animation-delay: 260ms; }
.hero__text > [data-rise]:nth-child(5) { animation-delay: 330ms; }
.hero__video[data-rise] { animation-name: rise-card; animation-duration: 900ms; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes rise-card { from { opacity: 0; transform: scale(0.97); } }

/* ---------- Marquee ---------- */
.marquee {
  margin: clamp(28px, 4vw, 48px) 0 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; gap: 12px; padding-right: 12px; list-style: none; }
.pill {
  display: flex; align-items: center; height: 64px; padding: 0 30px;
  border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2);
  font-family: var(--f-display); font-size: clamp(18px, 1rem + 0.6vw, 24px); font-weight: 500; font-style: italic; letter-spacing: -0.01em; white-space: nowrap;
}
.pill--img { padding: 0; width: 128px; overflow: hidden; box-shadow: none; }
.pill--img img { width: 100%; height: 100%; object-fit: cover; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.sec { padding-top: clamp(80px, 9vw, 136px); }
.sec__head { display: grid; grid-template-columns: minmax(160px, 3fr) minmax(0, 9fr); gap: 20px 40px; align-items: start; margin-bottom: clamp(32px, 4vw, 56px); }
.sec__head .chip { justify-self: start; margin-top: 10px; }
.sec h2 { font-size: clamp(2.1rem, 1.2rem + 3vw, 4rem); max-width: 16ch; }
.sec__lead { margin-top: 16px; max-width: 40em; font-size: clamp(17px, 1rem + 0.25vw, 19px); color: var(--ink-2); }
@media (max-width: 760px) { .sec__head { grid-template-columns: 1fr; } .sec__head .chip { margin-top: 0; } }

/* reveal on scroll (enabled by JS) */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Services bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 460px; padding: 26px 26px 28px;
  border-radius: var(--r-xl);
}
.card__no { font-family: var(--f-display); font-size: 15px; font-weight: 500; padding-bottom: 14px; border-bottom: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 30%, transparent); }
.card__body { margin-top: auto; padding-right: 56px; }
.card h3 { font-size: clamp(24px, 1rem + 0.9vw, 30px); }
.card p { margin-top: 10px; font-size: 16px; line-height: 1.5; }
.card__link {
  margin-top: 16px; padding: 0; border: 0; background: none;
  font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px;
}
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
/* Corner notch with the arrow button, "cut" out of the card in the page colour. */
.card { border-bottom-right-radius: 28px; }
.card__arrow {
  position: absolute; right: 0; bottom: 0; z-index: 1;
  width: 68px; height: 68px; border-top-left-radius: 28px; background: var(--bg);
}
.card__arrow::before {
  content: ""; position: absolute; right: 0; bottom: 0;
  width: 56px; height: 56px; border-radius: 50%; background: var(--accent);
  transition: transform 260ms var(--ease-out);
}
.card__arrow .ic { position: absolute; right: 18px; bottom: 18px; width: 20px; height: 20px; color: var(--ink); transition: transform 260ms var(--ease-out); }
.card__arrow::after, .card::after {
  content: ""; position: absolute; width: 28px; height: 28px;
  background: radial-gradient(circle at 0 0, transparent 27.5px, var(--bg) 28px);
}
.card__arrow::after { right: 68px; bottom: 0; }
.card::after { right: 0; bottom: 68px; z-index: 1; }
@media (hover: hover) and (pointer: fine) {
  .card:hover .card__arrow::before { transform: scale(1.08); }
  .card:hover .card__arrow .ic { transform: rotate(45deg); }
  .card:hover .card__bg { transform: scale(1.04); }
}

.card--dark { background: var(--dark); color: var(--on-dark); }
.card--dark p { color: var(--on-dark-2); }
.card--dark .card__bg { opacity: 0.38; }
.card--dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(26, 30, 27, 0.2) 0%, rgba(26, 30, 27, 0.92) 62%); }
.card--accent { background: var(--accent); color: var(--ink); }
.card--accent p { color: #2f3a12; }
.card--photo { color: var(--white); }
.card--photo p { color: rgba(255, 255, 255, 0.86); }
.card--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 12, 11, 0.15) 0%, rgba(10, 12, 11, 0.05) 30%, rgba(10, 12, 11, 0.82) 100%); }
.card__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.card__pic { order: 3; margin: 20px -26px -28px; width: calc(100% + 52px); max-width: none; height: 190px; object-fit: cover; border-radius: 22px 22px 0 0; }
.card--accent .card__body { margin-top: 26px; }
.card--accent .card__pic { margin-top: auto; }
/* the photo strip fills the bottom of accent cards, keep the notch over it */
.card--accent .card__arrow { z-index: 2; }
.card--accent::after { z-index: 2; }

@media (max-width: 1020px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .card { min-height: 400px; padding: 22px 22px 24px; border-radius: 26px; }
  .card__pic { margin-inline: -22px; margin-bottom: -24px; width: calc(100% + 44px); }
}

/* ---------- Stats ---------- */
.stats { padding-top: 14px; }
.stats__box {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--r-xl); background: var(--dark); color: var(--on-dark);
  padding: clamp(48px, 7vw, 110px) clamp(24px, 4vw, 64px) clamp(40px, 5vw, 72px);
}
.stats__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.6) contrast(1.05); opacity: 0.55; }
.stats__box::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 23, 21, 0.55), rgba(20, 23, 21, 0.9)); }
.stats__list { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; align-items: end; }
.stat { position: relative; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.stat::before { content: ""; position: absolute; left: 0; top: 10px; bottom: -200px; width: 1px; background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0)); }
.stat::after { content: ""; position: absolute; left: -4px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(213, 242, 75, 0.18); }
.stat:nth-child(2) { margin-bottom: 70px; }
.stat:nth-child(3) { margin-bottom: 20px; }
.stat:nth-child(4) { margin-bottom: 100px; }
.stat__num { white-space: nowrap; font-family: var(--f-display); font-size: clamp(40px, 4.3vw, 64px); font-weight: 600; letter-spacing: -0.04em; line-height: 0.95; font-variant-numeric: tabular-nums; }
.stat__num small { font-size: 0.45em; letter-spacing: 0; }
.stat__label { max-width: 15em; font-size: 15px; color: var(--on-dark-2); line-height: 1.4; }
@media (max-width: 900px) {
  .stats__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .stat__num { font-size: clamp(26px, 0.6rem + 5.2vw, 54px); }
  .stat:nth-child(n) { margin-bottom: 0; }
  .stat::before { bottom: 0; }
}

/* ---------- Before / after ---------- */
.ba-row { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 14px; }
.ba {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  aspect-ratio: 4 / 3; background: var(--dark);
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__img--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__tag { position: absolute; top: 18px; z-index: 2; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; pointer-events: none; }
.ba__tag--before { left: 18px; background: rgba(21, 24, 27, 0.78); color: var(--paper); }
.ba__tag--after { right: 18px; background: var(--accent); color: var(--ink); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 2; width: 2px; margin-left: -1px; background: var(--paper); pointer-events: none; }
.ba__knob {
  position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px;
  display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--ink);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5);
  transition: transform 160ms var(--ease-out);
}
.ba.is-dragging .ba__knob { transform: scale(0.94); }
.ba__range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba__range:focus-visible + * , .ba:has(.ba__range:focus-visible) .ba__knob { outline: 2.5px solid var(--accent); outline-offset: 3px; }
.ba-side {
  display: flex; flex-direction: column; gap: 22px;
  padding: clamp(24px, 3vw, 40px); border-radius: var(--r-xl); background: var(--paper);
}
.ba-side__meta { font-family: var(--f-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.ba-side .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 1000px) { .ba-row { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ba { aspect-ratio: 4 / 4.2; border-radius: 26px; } }

.quote { margin: 0; }
.quote p { font-family: var(--f-display); font-size: clamp(20px, 1rem + 0.6vw, 24px); line-height: 1.35; letter-spacing: -0.015em; font-weight: 500; }
.quote footer { margin-top: 14px; font-size: 15px; color: var(--ink-3); font-weight: 500; }
.quote--sm { margin-top: 22px; padding: 20px 22px; border-radius: var(--r-md); background: var(--bg); }
.quote--sm p { font-size: 18px; }
.stars { display: flex; gap: 3px; color: #e2b203; margin-bottom: 14px; }
.stars .ic { width: 18px; height: 18px; fill: currentColor; stroke: none; }

/* ---------- Filters & projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: clamp(48px, 6vw, 72px) 0 20px; }
.filter {
  min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 500; font-size: 15px;
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.filter:active { transform: scale(0.97); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .filter[aria-pressed="false"]:hover { box-shadow: inset 0 0 0 1px var(--ink); } }

.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.proj[hidden] { display: none; }
.proj.is-filtered-in { animation: rise 420ms var(--ease-out) both; }
.proj__open {
  position: relative; display: flex; flex-direction: column; width: 100%; height: 100%;
  padding: 8px; border: 0; border-radius: 28px; background: var(--paper); text-align: left;
  transition: transform 160ms var(--ease-out), box-shadow 240ms ease;
}
.proj__open:active { transform: scale(0.985); }
.proj__media { position: relative; display: block; overflow: hidden; border-radius: 22px; aspect-ratio: 4 / 3; background: var(--alu); }
.proj__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.proj__media .chip { position: absolute; top: 12px; left: 12px; }
.proj__body { display: flex; flex-direction: column; gap: 4px; padding: 16px 64px 12px 12px; }
.proj__title { font-family: var(--f-display); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.proj__meta { font-size: 15px; color: var(--ink-3); }
.proj__arrow { position: absolute; right: 18px; bottom: 18px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); transition: transform 260ms var(--ease-out); }
.proj__arrow .ic { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) {
  .proj__open:hover { box-shadow: 0 18px 40px -26px rgba(21, 24, 27, 0.5); }
  .proj__open:hover .proj__media img { transform: scale(1.04); }
  .proj__open:hover .proj__arrow { transform: rotate(45deg); }
}
@media (max-width: 1020px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .projects { grid-template-columns: 1fr; } }

/* ---------- Dialog ---------- */
.dlg {
  width: min(1180px, 100% - 32px); max-width: none; max-height: min(92svh, 860px);
  padding: 0; border: 0; border-radius: var(--r-xl); background: var(--white); color: var(--ink);
  overflow: hidden;
  opacity: 1; transform: none;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), overlay 220ms allow-discrete, display 220ms allow-discrete;
}
.dlg:not([open]) { opacity: 0; transform: scale(0.97); }
@starting-style { .dlg[open] { opacity: 0; transform: scale(0.97); } }
.dlg::backdrop { background: rgba(12, 14, 13, 0.62); backdrop-filter: blur(4px); transition: opacity 220ms ease, overlay 220ms allow-discrete, display 220ms allow-discrete; }
@starting-style { .dlg[open]::backdrop { opacity: 0; } }
.dlg__panel { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); max-height: inherit; }
.dlg__close { position: absolute; top: 14px; right: 14px; z-index: 3; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--ink); color: var(--paper); transition: transform 160ms var(--ease-out); }
.dlg__close:active { transform: scale(0.94); }
.dlg__gal { position: relative; background: var(--dark); min-height: 0; }
.dlg__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.dlg__track::-webkit-scrollbar { display: none; }
.dlg__track img { flex: 0 0 100%; width: 100%; height: min(92svh, 860px); object-fit: contain; scroll-snap-align: center; }
.dlg__nav { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(247, 246, 242, 0.92); backdrop-filter: blur(8px); }
.dlg__btn { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.dlg__btn:active { transform: scale(0.94); }
.dlg__btn:disabled { opacity: 0.3; cursor: default; }
@media (hover: hover) and (pointer: fine) { .dlg__btn:not(:disabled):hover { background: rgba(21, 24, 27, 0.08); } }
.dlg__count { min-width: 52px; text-align: center; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dlg__body { overflow-y: auto; padding: 72px clamp(24px, 3vw, 40px) 36px; }
.dlg__body h3 { margin-top: 16px; font-size: clamp(26px, 1.2rem + 1vw, 34px); }
.dlg__body > p, .dlg__body > .dlg__text > p:not(.chip) { margin-top: 14px; color: var(--ink-2); }
.dlg__text > p:not(.chip) { margin-top: 14px; color: var(--ink-2); }
.dlg__text .btn { margin-top: 22px; }
.steps-mini { margin-top: 16px; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); font-size: 16px; }
.steps-mini b { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) {
  .dlg { width: 100%; max-height: 100svh; height: 100svh; border-radius: 0; margin: 0; }
  .dlg__panel { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: 100%; max-height: none; }
  .dlg__track img { height: min(46svh, 480px); }
  .dlg__body { padding-top: 26px; }
}

/* ---------- Etalbond ---------- */
.eta { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.eta__text h2 { margin-top: 20px; }
.benefits { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.benefits li { padding: 22px; border-radius: var(--r-lg); background: var(--paper); }
.benefits h3 { font-size: 19px; letter-spacing: -0.015em; line-height: 1.25; }
.benefits h3::before { content: ""; display: block; width: 26px; height: 4px; margin-bottom: 14px; border-radius: 2px; background: var(--accent-deep); }
.benefits p { margin-top: 8px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.eta__fig { margin: 0; padding: clamp(18px, 2.4vw, 30px); border-radius: var(--r-xl); background: var(--white); position: sticky; top: calc(var(--hdr-h) + 32px); }
.eta__fig figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-3); }
.dg { width: 100%; height: auto; }
.dg-wall { fill: #d9d6ce; }
.dg-hatchline { stroke: #b3afa5; stroke-width: 2; }
.dg-ins { fill: #f1eedf; }
.dg-woolline { fill: none; stroke: #d9cf9f; stroke-width: 1.6; }
.dg-steel path, .dg-steel rect { fill: #8c9297; }
.dg-air path { fill: none; stroke: #6fa3c9; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; animation: air 2.6s linear infinite; }
.dg-air path:nth-child(2) { animation-delay: -0.9s; }
.dg-air path:nth-child(3) { animation-delay: -1.7s; }
@keyframes air { from { transform: translateY(18px); opacity: 0; } 30% { opacity: 1; } 80% { opacity: 1; } to { transform: translateY(-18px); opacity: 0; } }
.dg-core { fill: #2b3034; }
.dg-skin { stroke: #cfd4d8; stroke-width: 4; }
.dg-nums circle { fill: var(--ink); }
.dg-nums text { fill: var(--paper); font: 600 15px var(--f-display); text-anchor: middle; }
.dg-nums .dg-hl { fill: var(--accent); }
.dg-nums .dg-hl-t { fill: var(--ink); }
.dg-leg text { font: 500 17px var(--f-display); fill: var(--ink); }
.dg-leg .dg-sub { font: 400 14px var(--f-body); fill: var(--ink-3); }
.dg-leg .dg-leg-hl { font-weight: 700; }
@media (max-width: 1000px) { .eta { grid-template-columns: 1fr; } .eta__fig { position: static; } }
@media (max-width: 560px) { .benefits { grid-template-columns: 1fr; } }

/* ---------- How ---------- */
.how { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: how; }
.how__step { position: relative; padding: 26px 24px 28px; border-radius: var(--r-lg); background: var(--paper); }
.how__step::after { content: ""; position: absolute; top: 49px; left: 84px; right: -14px; height: 1.5px; background: repeating-linear-gradient(to right, var(--line-2) 0 6px, transparent 6px 12px); }
.how__step:last-child::after { display: none; }
.how__no { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); font-family: var(--f-display); font-weight: 600; font-size: 16px; }
.how__step:first-child .how__no { background: var(--ink); color: var(--accent); }
.how__step h3 { margin-top: 28px; font-size: 22px; letter-spacing: -0.02em; }
.how__step p { margin-top: 10px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 1020px) { .how { grid-template-columns: repeat(2, minmax(0, 1fr)); } .how__step::after { display: none; } }
@media (max-width: 560px) { .how { grid-template-columns: 1fr; } }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); grid-template-rows: repeat(3, auto); gap: 14px; }
.review { position: relative; margin: 0; padding: 26px 26px 24px; border-radius: var(--r-lg); background: var(--paper); display: flex; flex-direction: column; }
.review blockquote { margin: 0; }
.review blockquote p { font-size: 17px; line-height: 1.55; }
.review figcaption { margin-top: 16px; display: flex; flex-direction: column; font-size: 15px; }
.review figcaption b { font-weight: 600; }
.review figcaption span { color: var(--ink-3); }
.review .card__link { align-self: flex-start; margin-top: 12px; }
.review .card__link::after { display: none; }
.review--big { grid-row: 1 / span 3; overflow: hidden; isolation: isolate; justify-content: flex-end; min-height: 520px; padding: clamp(26px, 3vw, 44px); background: var(--dark); color: var(--on-dark); border-radius: var(--r-xl); }
.review__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.review--big::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 23, 21, 0.1) 0%, rgba(20, 23, 21, 0.9) 70%); }
.review--big blockquote p { font-family: var(--f-display); font-size: clamp(24px, 1rem + 1.2vw, 34px); font-weight: 500; line-height: 1.25; letter-spacing: -0.02em; }
.review--big figcaption span { color: var(--on-dark-2); }
.review--big .card__link { color: var(--accent); }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } .review--big { grid-row: auto; min-height: 460px; } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.about__pic { position: relative; margin: 0; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 5; }
.about__pic img { width: 100%; height: 100%; object-fit: cover; }
.about__pic figcaption { position: absolute; left: 16px; bottom: 16px; }
.about__text h2 { margin-top: 20px; }
.about__text > p:not(.chip):not(.sec__lead) { margin-top: 14px; max-width: 40em; color: var(--ink-2); }
.checks { list-style: none; display: grid; gap: 10px; margin-top: 28px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-md); background: var(--paper); font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.checks b { color: var(--ink); font-weight: 600; }
.checks .ic { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--accent); color: var(--ink); stroke-width: 2.6; margin-top: -1px; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } .about__pic { aspect-ratio: 4 / 3.4; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.faq__side h2 { margin-top: 20px; }
.faq__side .btn { margin-top: 26px; }
.faq__list { display: grid; gap: 10px; }
.faq details { border-radius: var(--r-lg); background: var(--paper); transition: background-color 200ms ease; }
.faq details[open] { background: var(--white); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px; cursor: pointer; list-style: none;
  font-family: var(--f-display); font-size: clamp(18px, 1rem + 0.3vw, 21px); font-weight: 500; letter-spacing: -0.015em; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--bg); transition: transform 240ms var(--ease-out), background-color 200ms ease; }
.faq details[open] summary .ic { transform: rotate(45deg); background: var(--accent); }
.faq details p { padding: 0 24px 22px; max-width: 44em; color: var(--ink-2); }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { padding-top: clamp(80px, 9vw, 136px); }
.contact__box {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px);
  padding: clamp(26px, 4vw, 56px); border-radius: var(--r-xl);
  background: var(--dark); color: var(--on-dark);
}
.contact__info h2 { margin-top: 20px; font-size: clamp(2.1rem, 1.2rem + 3vw, 3.6rem); max-width: 12ch; }
.contact__lead { margin-top: 16px; color: var(--on-dark-2); font-size: 18px; max-width: 30em; }
.contact__list { list-style: none; display: grid; gap: 8px; margin-top: 32px; }
.contact__list a, .contact__row { display: flex; align-items: center; gap: 14px; padding: 10px 0; text-decoration: none; font-size: 18px; font-weight: 500; }
.contact__list small { display: block; font-size: 13px; font-weight: 500; color: var(--on-dark-2); }
.contact__ic { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
.contact__list a .contact__ic { background: var(--accent); color: var(--ink); }
.contact__apps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.contact__apps .chip { min-height: 44px; padding-inline: 16px; }

.form { padding: clamp(22px, 3vw, 36px); border-radius: var(--r-lg); background: var(--paper); color: var(--ink); }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend, .field .label { font-size: 15px; font-weight: 600; padding: 0; }
.field__opt { font-weight: 400; color: var(--ink-3); }
.field input:not([type="radio"]):not([type="file"]), .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px;
  border: 0; border-radius: 14px; background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: 16px; line-height: 1.4;
  transition: box-shadow 200ms ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #8b9095; }
.field.has-error input, .field.has-error textarea { box-shadow: inset 0 0 0 2px #c2361f; }
.field__err { color: #b3301b; font-size: 14px; font-weight: 500; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: 15px; font-weight: 500; cursor: pointer;
  transition: background-color 200ms ease, box-shadow 200ms ease;
}
.choice input:checked + span { background: var(--ink); color: var(--paper); box-shadow: none; }
.choice input:focus-visible + span { outline: 2.5px solid var(--ink); outline-offset: 2px; }
.upload {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px;
  border-radius: 14px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line);
  border: 1.5px dashed transparent; cursor: pointer; font-weight: 500; font-size: 15px;
  transition: box-shadow 200ms ease;
}
@media (hover: hover) and (pointer: fine) { .upload:hover { box-shadow: inset 0 0 0 1.5px var(--ink); } }
#f-photos:focus-visible + .thumbs, .field:has(#f-photos:focus-visible) .upload { outline: 2.5px solid var(--ink); outline-offset: 2px; }
.thumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.thumbs:empty { display: none; }
.thumbs li { position: relative; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: var(--alu); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(21, 24, 27, 0.8); color: #fff; }
.thumbs button .ic { width: 12px; height: 12px; stroke-width: 2.6; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 24px; }
.form__note { flex: 1 1 220px; font-size: 14px; color: var(--ink-3); line-height: 1.45; }
.form__status { margin-top: 18px; padding: 16px 18px; border-radius: 14px; font-weight: 500; }
.form__status.is-ok { background: #e8f5c8; color: #2b3a0b; }
.form__status.is-err { background: #fbe3dd; color: #7a1f10; }
.form.is-sending button[type="submit"] { pointer-events: none; opacity: 0.75; }
.form.is-sending .btn__dot { animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1000px) { .contact__box { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .contact__box { padding: 22px 16px; border-radius: 26px; }
  .form { padding: 20px 16px; }
  .form__grid { grid-template-columns: 1fr; }
  .form__foot .btn { width: 100%; justify-content: space-between; }
}

/* ---------- Footer ---------- */
.ftr { padding: clamp(56px, 7vw, 96px) 0 calc(28px + env(safe-area-inset-bottom)); }
.ftr__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.ftr__brand img { width: 190px; }
.ftr__brand p { margin-top: 16px; max-width: 28em; color: var(--ink-2); font-size: 15.5px; }
.ftr__nav ul { list-style: none; columns: 2; column-gap: 24px; }
.ftr__nav a { display: inline-block; padding: 6px 0; text-decoration: none; color: var(--ink-2); font-size: 15.5px; }
@media (hover: hover) and (pointer: fine) { .ftr__nav a:hover, .ftr__nap a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; } }
.ftr__nap { display: flex; flex-direction: column; gap: 6px; font-style: normal; font-size: 15.5px; color: var(--ink-2); }
.ftr__nap b { color: var(--ink); font-family: var(--f-display); font-weight: 600; }
.ftr__nap a { text-decoration: none; }
.ftr__social { display: flex; gap: 8px; margin-top: 10px; }
.ftr__social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); color: var(--ink); }
.ftr__copy { margin-top: 20px; font-size: 14px; color: var(--ink-3); }
@media (max-width: 860px) { .ftr__top { grid-template-columns: 1fr; } }

/* ---------- Mobile action bar ---------- */
.mbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: var(--z-bar);
  display: none; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 14px 40px -16px rgba(21, 24, 27, 0.5);
  transform: translateY(140%); transition: transform 320ms var(--ease-out);
}
.mbar .btn { min-height: 50px; padding: 0 16px; }
.mbar.is-on { transform: none; }
@media (max-width: 760px) { .mbar { display: grid; } .ftr { padding-bottom: calc(100px + env(safe-area-inset-bottom)); } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  [data-rise], .proj.is-filtered-in { animation: none; }
  .js [data-reveal] { transform: none; transition: opacity 300ms ease; }
  .marquee__track { animation: none; }
  .marquee { overflow-x: auto; }
  .dg-air path { animation: none; }
  .card__bg, .proj__media img { transition: none; }
}
