:root {
  --ink: #11160f;
  /* колір стику фільм→декори: тепла бежева */
  --seam-tone: #9c8a72;
  --paper: #f7f5ed;
  --paper-soft: rgba(247, 245, 237, 0.76);
  --brass: #c89a59;
  --display: "Cormorant", "Iowan Old Style", Baskerville, "Times New Roman", serif;
  --display-weight: 500;
  --body: "Jost", "Helvetica Neue", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 5rem);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  min-width: 320px;
  color-scheme: dark;
  background: var(--ink);
  scroll-behavior: auto;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body,
a,
button {
  -webkit-tap-highlight-color: transparent;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2 {
  margin: 0;
}

::selection {
  color: #17130e;
  background: #d6af76;
}

:focus-visible {
  outline: 2px solid #f0c989;
  outline-offset: 5px;
}

.page-grain {
  position: fixed;
  inset: -50%;
  z-index: 12;
  width: 200%;
  height: 200%;
  pointer-events: none;
  opacity: 0.04;
  background-image:
    repeating-radial-gradient(circle at 19% 23%, rgba(248, 238, 214, 0.72) 0 0.4px, transparent 0.55px 3px),
    repeating-radial-gradient(circle at 71% 63%, rgba(18, 22, 16, 0.7) 0 0.35px, transparent 0.5px 5px);
  background-size: 3px 3px, 5px 5px;
  mix-blend-mode: soft-light;
  transform: translate3d(0, 0, 0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: clamp(1.15rem, 2.4vw, 2.25rem) var(--gutter);
  pointer-events: none;
  color: #f8f5ed;
  /* Білий текст поверх будь-якого тла: легка тінь тримає читабельність,
     а над світлими секціями JS вмикає темний режим (--on-light). */
  text-shadow: 0 1px 18px rgba(10, 12, 9, 0.5), 0 0 2px rgba(10, 12, 9, 0.25);
  /* text-shadow разом із color: інакше тінь зникала стрибком, поки колір
     ще їхав, і перехід над світлою секцією читався як смикання. */
  transition:
    color 700ms var(--ease-out-quart),
    text-shadow 700ms var(--ease-out-quart);
}

.site-header--on-light {
  color: #182016;
  text-shadow: none;
}

.site-header--on-light .site-header__cta {
  background: rgba(247, 245, 237, 0.62);
}

.site-header__brand,
.site-header__meta {
  pointer-events: auto;
}

.site-header__brand {
  font-family: var(--display);
  font-size: clamp(1rem, 1.3vw, 1.35rem);
  line-height: 1;
  letter-spacing: 0.19em;
  /* Анімуємо лише прозорість. Раніше «дихав» ще й letter-spacing: під час
     переходу текст переливався по субпікселях і виглядав як здвоєний/розмитий. */
  transition: opacity 400ms var(--ease-out-quart);
}

.site-header__brand:hover {
  opacity: 0.72;
}

.site-header__meta {
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eco-journey,
.eco-scrub,
.eco-signature-anchor {
  position: relative;
}

.eco-journey {
  background: var(--ink);
}

.eco-scrub {
  /* fallback до JS: домотування лупа (2с) + мастер перехід+фільм (25.17с), по 200px/с */
  height: calc(200vh + 5434px);
  height: calc(200svh + 5434px);
  background: var(--ink);
}

/* Хвіст фільму гасне в бежевий тон стику, щоб під змахом не було жорсткої кромки.
   z-index 3: над відео, але під копірайтом фільму (z 5) */
.eco-scrub::before {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  height: clamp(11rem, 26vh, 18rem);
  content: "";
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(156, 138, 114, 0) 0%,
    rgba(156, 138, 114, 0.38) 42%,
    rgba(156, 138, 114, 0.8) 68%,
    var(--seam-tone) 86%,
    var(--seam-tone) 100%
  );
}

/* Світлий діагональний змах через стик фільм→декори.
   Малюється ДВОМА половинами (у фільмі й у декорах), бо мусить лежати ПІД
   текстом обох секцій. Спільна геометрія: обидві половини малюють один і той
   самий градієнт у віртуальному боксі 136rem, верхня показує його верх,
   нижня - низ, тому на стику вони сходяться без шва. */
.eco-scrub::after,
.decors-section::after {
  position: absolute;
  right: 0;
  left: 0;
  height: 68rem;
  content: "";
  pointer-events: none;
  background-image: linear-gradient(
    173deg,
    rgba(247, 245, 237, 0) 827px,
    rgba(247, 245, 237, 0.1) 920px,
    rgba(247, 245, 237, 0.34) 1010px,
    rgba(247, 245, 237, 0.7) 1100px,
    rgba(247, 245, 237, 0.94) 1180px,
    rgba(247, 245, 237, 0.96) 1260px,
    rgba(247, 245, 237, 0.72) 1340px,
    rgba(247, 245, 237, 0.36) 1420px,
    rgba(247, 245, 237, 0.1) 1500px,
    rgba(247, 245, 237, 0) 1590px
  );
  background-repeat: no-repeat;
  background-size: 100% 136rem;
  /* світло входить справа: зліва лежать і підпис фільму, і заголовок декорів */
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.2) 24%, rgba(0, 0, 0, 0.62) 48%, #000 72%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.2) 24%, rgba(0, 0, 0, 0.62) 48%, #000 72%, #000 100%);
}

/* верхня половина: над відео й сірим хвостом, але під копірайтом фільму (z 5) */
.eco-scrub::after {
  z-index: 4;
  bottom: 0;
  background-position: left top;
}

/* нижня половина: над сценою декорів (z 0-1), але під контентом (z 2) */
.decors-section::after {
  z-index: 1;
  top: 0;
  background-position: left -68rem;
}

.eco-scrub__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  color: var(--paper);
  background: #cdd7cb;
}

.eco-scrub__video,
.eco-scrub__loop,
.eco-scrub__finale,
.eco-scrub__veil,
.eco-scrub__finale-veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.eco-scrub__video,
.eco-scrub__loop,
.eco-scrub__finale {
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.eco-scrub__video {
  z-index: 0;
}

.eco-scrub__loop {
  z-index: 1;
  will-change: opacity;
}

.eco-scrub__finale {
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  will-change: opacity;
}

.eco-scrub__veil {
  z-index: 3;
  pointer-events: none;
  /* Останній третині фільму дошка світла майже до білого, і білий текст на
     ній зникав. Тримаємо контраст там, де лежить текст - низ і ліва частина
     кадру, - а середину кадру не глушимо: інакше плівка стає мутною.
     Верхній світлий градієнт прибрано (він додатково вибілював шапку). */
  background:
    linear-gradient(180deg, rgba(250, 249, 243, 0.16) 0%, rgba(250, 249, 243, 0.05) 15%, transparent 34%),
    linear-gradient(0deg, rgba(7, 11, 7, 0.42) 0%, rgba(7, 11, 7, 0.2) 20%, transparent 42%),
    radial-gradient(ellipse at 6% 92%, rgba(7, 11, 7, 0.58) 0%, rgba(7, 11, 7, 0.3) 42%, transparent 78%);
  will-change: opacity;
}

.eco-scrub__finale-veil {
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(0deg, rgba(7, 9, 6, 0.46) 0%, rgba(7, 9, 6, 0.2) 20%, transparent 42%),
    radial-gradient(ellipse at 10% 88%, rgba(7, 9, 6, 0.7) 0%, rgba(7, 9, 6, 0.34) 42%, transparent 76%);
  will-change: opacity;
}

.eco-scrub__inner {
  position: absolute;
  z-index: 5;
  right: var(--gutter);
  bottom: clamp(4.8rem, 9vh, 7.5rem);
  left: var(--gutter);
  width: min(55rem, calc(100vw - (var(--gutter) * 2)));
  pointer-events: none;
  opacity: 0;
  /* дві тіні: близька тримає кромку літер на світлій дошці, далека - обʼєм */
  text-shadow: 0 1px 3px rgba(5, 8, 5, 0.42), 0 2px 30px rgba(5, 8, 5, 0.34);
  will-change: opacity;
}

.eco-scrub__inner[data-at="0"] {
  pointer-events: auto;
  opacity: 1;
}

/* Підложка живе під самим текстовим блоком і згасає разом із ним: у кадрах,
   де тексту немає, плівка лишається чистою. Це замість глушіння всього
   кадру - у другій половині фільму дошка світла майже до білого. */
.eco-scrub__inner::before,
.eco-scrub__finale-copy::before {
  position: absolute;
  z-index: -1;
  /* Бокс свідомо набагато більший за пляму, а пляма гасне у нуль задовго до
     його кромки: інакше на світлому кадрі проступала рівна межа прямокутника. */
  inset: -40% -60% -110% -80%;
  content: "";
  pointer-events: none;
  background: radial-gradient(
    70% 62% at 30% 64%,
    rgba(6, 10, 7, 0.66) 0%,
    rgba(6, 10, 7, 0.36) 30%,
    rgba(6, 10, 7, 0.1) 48%,
    transparent 62%
  );
}

.eco-scrub__copy {
  max-width: 55rem;
}

.eco-scrub__kicker {
  margin-bottom: clamp(1.15rem, 2.2vh, 1.8rem);
  color: rgba(247, 245, 237, 0.78);
  font-size: clamp(0.66rem, 0.75vw, 0.78rem);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eco-scrub__title {
  max-width: 10ch;
  font-family: var(--display);
  font-size: clamp(4.5rem, 9vw, 9.75rem);
  font-weight: var(--display-weight);
  line-height: 0.86;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.eco-scrub__inner--hero .eco-scrub__title {
  max-width: 10.5ch;
  font-size: clamp(4.25rem, 9.7vw, 10.6rem);
  line-height: 0.84;
}

.eco-scrub__sub {
  max-width: 48ch;
  margin-top: clamp(1.25rem, 2.4vh, 2rem);
  color: rgba(247, 245, 237, 0.9);
  font-size: clamp(1rem, 1.25vw, 1.24rem);
  line-height: 1.58;
  letter-spacing: -0.012em;
}

.eco-scrub__cta {
  display: inline-flex;
  gap: 1.15rem;
  align-items: center;
  justify-content: space-between;
  min-width: 11.6rem;
  min-height: 3.6rem;
  padding: 0.55rem 0.55rem 0.55rem 1.35rem;
  margin-top: clamp(1.45rem, 3vh, 2.25rem);
  overflow: hidden;
  color: #1a1711;
  background: rgba(247, 245, 237, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  box-shadow: 0 12px 36px rgba(5, 8, 5, 0.14);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-shadow: none;
  text-transform: uppercase;
  transition: transform 500ms var(--ease-out-expo), background-color 500ms var(--ease-out-expo), box-shadow 500ms var(--ease-out-expo);
}

.eco-scrub__cta:hover {
  background: #fffdf6;
  box-shadow: 0 18px 42px rgba(5, 8, 5, 0.24);
  transform: translateY(-3px);
}

.eco-scrub__cta-mark {
  position: relative;
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(17, 22, 15, 0.09);
  border-radius: 50%;
  transition: transform 600ms var(--ease-out-expo), background-color 500ms var(--ease-out-expo);
}

.eco-scrub__cta-mark::before,
.eco-scrub__cta-mark::after {
  position: absolute;
  top: 50%;
  content: "";
}

.eco-scrub__cta-mark::before {
  left: 0.78rem;
  width: 0.84rem;
  height: 1px;
  background: currentColor;
}

.eco-scrub__cta-mark::after {
  left: 1.2rem;
  width: 0.36rem;
  height: 0.36rem;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-44%) rotate(45deg);
}

.eco-scrub__cta:hover .eco-scrub__cta-mark {
  background: rgba(17, 22, 15, 0.14);
  transform: rotate(8deg) scale(1.04);
}

/* Підказка скролу стоїть вертикально на правій кромці і рухається згори
   вниз - тобто в бік самого скролу. Знизу горизонтальною вона губилась
   між рядком проєктів і кромкою екрана. Праворуч по центру живе рейка
   розділів, тому підказка сидить нижче за неї. */
.eco-scrub__scroll {
  position: absolute;
  right: clamp(0.75rem, 1.7vw, 1.9rem);
  bottom: clamp(2.4rem, 7vh, 5rem);
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: center;
  color: rgba(247, 245, 237, 0.82);
  /* на світлих кадрах фільму тонка лінія і капс губились */
  text-shadow: 0 1px 3px rgba(5, 8, 5, 0.5), 0 0 18px rgba(5, 8, 5, 0.3);
  filter: drop-shadow(0 1px 2px rgba(5, 8, 5, 0.45));
  transition: opacity 180ms var(--ease-out-quart);
}

.eco-scrub__scroll-label {
  font-size: 0.64rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  /* читається згори вниз; sideways-rl не беремо - у Safari його немає */
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.eco-scrub__scroll-track {
  position: relative;
  display: block;
  width: 1px;
  height: 3.4rem;
  overflow: hidden;
  background: rgba(247, 245, 237, 0.28);
}

.eco-scrub__scroll-track span {
  position: absolute;
  top: 0;
  left: -1px;
  width: 3px;
  height: 1.3rem;
  background: rgba(247, 245, 237, 0.9);
  animation: cueTravel 2.35s var(--ease-out-quart) infinite;
}

@keyframes cueTravel {
  0% {
    opacity: 0;
    transform: translateY(-120%);
  }

  24%,
  76% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(245%);
  }
}

.eco-scrub__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 8;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(247, 245, 237, 0.9), var(--brass));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 90ms linear;
}

.eco-signature-anchor {
  z-index: 1;
  height: 100vh;
  height: 100svh;
  pointer-events: none;
  margin-top: -100vh;
  margin-top: -100svh;
  background: transparent;
}

.eco-scrub__finale-copy {
  position: absolute;
  z-index: 5;
  bottom: clamp(3.75rem, 8vh, 6.5rem);
  left: var(--gutter);
  width: min(56rem, calc(100vw - (var(--gutter) * 2)));
  pointer-events: none;
  opacity: 0;
  text-shadow: 0 1px 3px rgba(5, 8, 5, 0.44), 0 2px 30px rgba(5, 8, 5, 0.36);
  will-change: opacity;
}

.eco-scrub__finale-copy h2 {
  max-width: 11ch;
  font-family: var(--display);
  font-size: clamp(3.7rem, 7.4vw, 8rem);
  font-weight: var(--display-weight);
  line-height: 0.91;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.eco-scrub__finale-copy p {
  max-width: 31rem;
  margin-top: clamp(1.45rem, 2.8vh, 2.3rem);
  color: rgba(247, 245, 237, 0.9);
  font-size: clamp(1.02rem, 1.24vw, 1.25rem);
  line-height: 1.58;
  letter-spacing: -0.012em;
}

.projects-section {
  position: relative;
  z-index: 10;
  /* full-bleed стрічка (100vw) не повинна давати горизонтальний скрол */
  overflow-x: clip;
  min-height: 150vh;
  color: #182016;
  background: rgb(251 252 250);
  isolation: isolate;
}

.projects-section__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 86rem);
  min-height: 150vh;
  padding: clamp(8rem, 14vh, 12rem) var(--gutter);
  margin-inline: auto;
}

.projects-section__header {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
  align-items: end;
}

.projects-section__eyebrow {
  grid-column: 1 / -1;
  margin-bottom: clamp(0.8rem, 1.5vh, 1.25rem);
  color: rgba(24, 32, 22, 0.6);
  font-size: clamp(0.66rem, 0.75vw, 0.78rem);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.projects-section__header h2 {
  grid-column: 1 / span 8;
  max-width: 8.5ch;
  font-family: var(--display);
  font-size: clamp(4.2rem, 7.8vw, 8.6rem);
  font-weight: var(--display-weight);
  line-height: 0.88;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.projects-section__line {
  grid-column: 9 / -1;
  max-width: 28rem;
  padding-bottom: 0.55rem;
  font-size: clamp(1rem, 1.16vw, 1.16rem);
  line-height: 1.58;
  letter-spacing: -0.012em;
  color: rgba(24, 32, 22, 0.72);
}

.projects-grid {
  --projects-gap: clamp(0.9rem, 1.7vw, 1.6rem);

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--projects-gap);
  margin-top: clamp(3.25rem, 7vh, 5.25rem);
}

.projects-grid__column {
  display: flex;
  flex-direction: column;
  gap: var(--projects-gap);
  min-width: 0;
}

.project-tile {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #d9ddd5;
  border-radius: 20px;
  box-shadow: 0 12px 34px rgba(19, 29, 18, 0.08);
  isolation: isolate;
  transform: translateZ(0);
  transition: box-shadow 650ms var(--ease-out-expo);
}

.project-tile::after {
  position: absolute;
  z-index: 1;
  inset: 42% 0 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(7, 11, 7, 0.7));
}

.project-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 850ms var(--ease-out-expo);
  will-change: transform;
}

.project-tile__overlay {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  justify-content: space-between;
  padding: clamp(1.15rem, 2vw, 1.65rem);
  color: #faf8f1;
}

.project-tile__city {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.1vw, 2.1rem);
  line-height: 1;
  letter-spacing: -0.025em;
}

.project-tile__action {
  padding-bottom: 0.16rem;
  font-size: 0.62rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(0.6rem);
  transition: opacity 450ms var(--ease-out-expo), transform 600ms var(--ease-out-expo);
}

.project-tile:hover,
.project-tile:focus-visible {
  box-shadow: 0 24px 58px rgba(19, 29, 18, 0.2);
}

.project-tile:hover img,
.project-tile:focus-visible img {
  transform: scale(1.05);
}

.project-tile:hover .project-tile__action,
.project-tile:focus-visible .project-tile__action {
  opacity: 0.92;
  transform: translateY(0);
}

.site-footer {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(8rem, 20vh, 13rem);
  padding: 2rem var(--gutter);
  color: rgba(44, 58, 49, 0.65);
  background: var(--paper);
  text-align: center;
}

.site-footer p {
  font-size: clamp(0.68rem, 0.78vw, 0.82rem);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .projects-section__inner {
    width: min(100%, 54rem);
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects-grid__column {
    display: contents;
  }
}

@media (max-width: 767px) {
  :root {
    --gutter: clamp(1.1rem, 5.4vw, 1.7rem);
  }

  .page-grain {
    opacity: 0.035;
  }

  .site-header {
    padding-top: max(1.15rem, env(safe-area-inset-top));
  }

  .site-header__brand {
    font-size: 0.98rem;
  }

  .site-header__meta {
    font-size: 0.58rem;
    letter-spacing: 0.13em;
  }

  .eco-scrub__veil {
    background:
      linear-gradient(180deg, rgba(250, 249, 243, 0.14) 0%, rgba(250, 249, 243, 0.04) 16%, transparent 36%),
      linear-gradient(0deg, rgba(7, 11, 7, 0.46) 0%, rgba(7, 11, 7, 0.22) 22%, transparent 46%),
      radial-gradient(ellipse at 8% 90%, rgba(7, 11, 7, 0.6) 0%, rgba(7, 11, 7, 0.3) 40%, transparent 78%);
  }

  .eco-scrub__inner {
    right: var(--gutter);
    bottom: max(4.8rem, calc(env(safe-area-inset-bottom) + 3.9rem));
    left: var(--gutter);
    width: calc(100vw - (var(--gutter) * 2));
  }

  .eco-scrub__kicker {
    max-width: 25rem;
    margin-bottom: 1.05rem;
    font-size: 0.6rem;
    letter-spacing: 0.13em;
  }

  .eco-scrub__title,
  .eco-scrub__inner--hero .eco-scrub__title {
    max-width: 10.5ch;
    font-size: clamp(3.05rem, 14.1vw, 5.2rem);
    line-height: 0.88;
    letter-spacing: -0.05em;
  }

  .eco-scrub__sub {
    max-width: 29rem;
    margin-top: 1rem;
    font-size: 0.96rem;
    line-height: 1.52;
  }

  .eco-scrub__cta {
    min-width: 10.8rem;
    min-height: 3.35rem;
    margin-top: 1.25rem;
    font-size: 0.7rem;
  }

  .eco-scrub__cta-mark {
    flex-basis: 2.25rem;
    width: 2.25rem;
    height: 2.25rem;
  }

  .eco-scrub__cta-mark::before {
    left: 0.67rem;
  }

  .eco-scrub__cta-mark::after {
    left: 1.08rem;
  }

  .eco-scrub__scroll {
    right: 0.55rem;
    bottom: max(3.4rem, calc(env(safe-area-inset-bottom) + 2.6rem));
    gap: 0.7rem;
  }

  .eco-scrub__scroll-track {
    height: 2.6rem;
  }

  .eco-scrub__scroll-label {
    font-size: 0.58rem;
  }

  .eco-scrub__finale-veil {
    background:
      linear-gradient(0deg, rgba(7, 9, 6, 0.5) 0%, rgba(7, 9, 6, 0.22) 22%, transparent 46%),
      radial-gradient(ellipse at 8% 90%, rgba(7, 9, 6, 0.7) 0%, rgba(7, 9, 6, 0.34) 43%, transparent 78%);
  }

  .eco-scrub__finale-copy {
    bottom: max(2.6rem, calc(env(safe-area-inset-bottom) + 1.5rem));
    width: calc(100vw - (var(--gutter) * 2));
  }

  .eco-scrub__finale-copy h2 {
    max-width: 10.5ch;
    font-size: clamp(2.75rem, 12.2vw, 4.65rem);
    line-height: 0.9;
  }

  .eco-scrub__finale-copy p {
    max-width: 22rem;
    margin-top: 1.1rem;
    font-size: 0.96rem;
    line-height: 1.52;
  }

  .projects-section__inner {
    width: 100%;
    min-height: 150vh;
    padding-top: clamp(7rem, 15vh, 10rem);
    padding-bottom: clamp(7rem, 15vh, 10rem);
  }

  .projects-section__header {
    display: block;
  }

  .projects-section__eyebrow {
    margin-bottom: 0.9rem;
    font-size: 0.58rem;
  }

  .projects-section__header h2 {
    max-width: 8.5ch;
    font-size: clamp(3.15rem, 14vw, 5rem);
    line-height: 0.9;
  }

  .projects-section__line {
    max-width: 27rem;
    padding-bottom: 0;
    margin-top: 1.2rem;
    font-size: 0.96rem;
    line-height: 1.52;
  }

  .projects-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin-top: 2.75rem;
  }

  .project-tile {
    width: min(100%, 30rem);
    justify-self: center;
  }

  .project-tile__action {
    opacity: 0.82;
    transform: none;
  }

  .site-footer {
    min-height: 9rem;
  }

  .site-footer p {
    max-width: 25rem;
    font-size: 0.62rem;
    letter-spacing: 0.11em;
  }
}

@media (max-width: 390px) {
  .eco-scrub__title,
  .eco-scrub__inner--hero .eco-scrub__title {
    font-size: clamp(2.85rem, 13.3vw, 3.6rem);
  }

  .eco-scrub__sub,
  .eco-scrub__finale-copy p {
    font-size: 0.9rem;
  }

  .eco-scrub__finale-copy h2 {
    font-size: clamp(2.65rem, 13.3vw, 3.45rem);
  }

  .projects-section__header h2 {
    font-size: clamp(2.8rem, 13.7vw, 3.6rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lv-leaf3d-canvas,
  .eco-scrub__video,
  .eco-scrub__loop,
  .eco-scrub__scroll,
  .eco-scrub__progress {
    display: none !important;
  }

  .eco-scrub {
    height: auto !important;
    background: #172016;
  }

  .eco-scrub__sticky {
    position: relative;
    top: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2.5rem, 6vw, 6rem);
    align-content: end;
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(8rem, 14vh, 11rem) var(--gutter) clamp(4rem, 9vh, 7rem);
    background:
      linear-gradient(180deg, rgba(7, 10, 7, 0.2), rgba(7, 9, 6, 0.68)),
      url("../img/eco/journey-poster.jpg") center / cover no-repeat;
  }

  .eco-scrub__veil {
    z-index: 0;
    background: linear-gradient(90deg, rgba(7, 10, 7, 0.38), rgba(7, 10, 7, 0.08));
  }

  .eco-scrub__inner,
  .eco-scrub__inner[data-at="0"] {
    position: relative;
    z-index: 1;
    inset: auto;
    width: 100%;
    max-width: 39rem;
    pointer-events: auto !important;
    opacity: 1 !important;
    text-shadow: 0 2px 28px rgba(5, 8, 5, 0.32);
  }

  .eco-scrub__inner--hero {
    grid-column: 1 / -1;
    max-width: 55rem;
  }

  .eco-scrub__inner:not(.eco-scrub__inner--hero) .eco-scrub__title {
    font-size: clamp(3.4rem, 6vw, 6.5rem);
  }

  .eco-scrub__finale,
  .eco-scrub__finale-veil,
  .eco-scrub__finale-copy {
    grid-row: 4;
    grid-column: 1 / -1;
  }

  .eco-scrub__finale,
  .eco-scrub__finale-veil {
    position: relative;
    inset: auto;
    width: calc(100% + var(--gutter) + var(--gutter));
    height: 100vh;
    height: 100svh;
    min-height: 36rem;
    margin-left: calc(0px - var(--gutter));
  }

  .eco-scrub__finale {
    z-index: 1;
    display: block !important;
    max-width: none;
    opacity: 1 !important;
    object-fit: cover;
  }

  .eco-scrub__finale-veil {
    z-index: 2;
    opacity: 1 !important;
  }

  .eco-scrub__finale-copy {
    position: relative;
    z-index: 3;
    inset: auto;
    align-self: end;
    width: 100%;
    padding-bottom: clamp(3.75rem, 8vh, 6.5rem);
    opacity: 1 !important;
  }

  .eco-signature-anchor {
    height: 0 !important;
    margin-top: 0 !important;
  }

  .project-tile {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 767px) {
  .eco-scrub__sticky {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: max(7rem, calc(env(safe-area-inset-top) + 5rem));
    padding-bottom: max(4rem, calc(env(safe-area-inset-bottom) + 3rem));
  }

  .eco-scrub__inner--hero {
    grid-column: auto;
  }

  .eco-scrub__finale,
  .eco-scrub__finale-veil,
  .eco-scrub__finale-copy {
    grid-row: 5;
  }
}

@media print {
  .page-grain,
  .lv-leaf3d-canvas,
  .eco-scrub__video,
  .eco-scrub__loop,
  .eco-scrub__finale,
  .eco-scrub__finale-veil,
  .eco-scrub__scroll,
  .eco-scrub__progress {
    display: none !important;
  }

  .site-header {
    position: absolute;
    color: #1a1e18;
    mix-blend-mode: normal;
    transform: none;
  }

  .eco-scrub,
  .eco-scrub__sticky {
    height: auto !important;
    min-height: 75vh;
    color: #1a1e18;
    background: #f5f1e7;
  }

  .eco-scrub__inner,
  .eco-scrub__finale-copy {
    position: relative;
    inset: auto;
    padding: 3rem var(--gutter);
    color: #1a1e18;
    opacity: 1 !important;
    text-shadow: none;
  }

  .eco-signature-anchor {
    height: 0 !important;
    margin-top: 0 !important;
  }
}

/* ============================================================
   Секції v2: інтерактивні блоки фільму, декори, ялинка,
   виробництво, контакт, хедер-навігація.
   ============================================================ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.site-header__nav {
  display: flex;
  gap: clamp(1.2rem, 2.4vw, 2.4rem);
  pointer-events: auto;
}

/* ---------- Компактна шапка: планшет і телефон ----------
   Шість розділів + "Кабінет" не влазять у рядок вужче ~1024px - на 768
   бренд наїжджав на перший пункт, а меню розповзалось у два рівні.
   Тому нижче цієї межі навігація йде під бургер (розмітка та сама).

   Друге: шапка фіксована над суцільним стовпцем тексту. Раніше вона при
   скролі вниз ховалась (is-tucked), але Pavel 2026-07-30 хоче її елементи
   видимими завжди - читабельність тепер тримає лише підсвітка під шапкою
   (--lv-header-wash + is-scrolled). */
@media (max-width: 1023px) {
  .site-header__nav {
    display: none;
  }

  /* will-change/filter тут НЕ ставити: будь-що з цього робить шапку
     containing block для fixed-нащадків, і панель .mobile-nav (inset: 0)
     схлопується до висоти шапки замість повного екрана. */
  .site-header {
    transition: color 450ms var(--ease-out-quart);
  }
}

/* Хто просив менше руху: колір шапки перемикається без плавного переходу. */
@media (prefers-reduced-motion: reduce) {
  .site-header {
    transition: color 450ms var(--ease-out-quart);
  }
}

.site-header__nav a {
  position: relative;
  padding-bottom: 0.2rem;
  font-size: 0.66rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.site-header__nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 450ms var(--ease-out-expo);
}

.site-header__nav a:hover::after,
.site-header__nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* ---------- Чіп-лінк у фільмі ---------- */

.eco-chip-link {
  display: inline-flex;
  gap: 0.9rem;
  align-items: center;
  min-height: 2.9rem;
  padding: 0.45rem 1.2rem;
  margin-top: clamp(1.35rem, 2.6vh, 2rem);
  color: var(--paper);
  background: rgba(14, 18, 13, 0.3);
  border: 1px solid rgba(247, 245, 237, 0.32);
  border-radius: 999px;
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-shadow: none;
  text-transform: uppercase;
  transition: border-color 450ms var(--ease-out-expo), background-color 450ms var(--ease-out-expo), transform 450ms var(--ease-out-expo);
}

.eco-chip-link:hover,
.eco-chip-link:focus-visible {
  background: rgba(14, 18, 13, 0.48);
  border-color: rgba(214, 175, 118, 0.85);
  transform: translateY(-2px);
}

.eco-chip-link__arrow {
  position: relative;
  display: inline-block;
  width: 1.05rem;
  height: 1px;
  background: currentColor;
}

.eco-chip-link__arrow::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: 0.34rem;
  height: 0.34rem;
  content: "";
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-52%) rotate(45deg);
}

/* ---------- Фільм: свотчі декорів ---------- */

.eco-swatches {
  display: flex;
  gap: clamp(0.7rem, 1.4vw, 1.15rem);
  align-items: flex-start;
  margin-top: clamp(1.4rem, 2.8vh, 2.2rem);
}

.eco-swatch {
  display: grid;
  /* Колонка жорстко в ширину кружка: інакше довга назва (Хмельницький)
     розсуває грід-трек, і кружок вилазить за свою комірку. */
  grid-template-columns: minmax(0, 1fr);
  gap: 0.55rem;
  justify-items: center;
  width: clamp(4.1rem, 5.4vw, 5.4rem);
  text-align: center;
}

.eco-swatch img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(247, 245, 237, 0.45);
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(5, 8, 5, 0.32);
  transition: transform 550ms var(--ease-out-expo), border-color 450ms var(--ease-out-expo), box-shadow 550ms var(--ease-out-expo);
}

.eco-swatch span {
  max-width: 100%;
  font-size: 0.6rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  /* Довгі назви міст переносяться, а не диктують ширину кружка */
  overflow-wrap: anywhere;
  opacity: 0.88;
}

.eco-swatch:hover img,
.eco-swatch:focus-visible img {
  border-color: rgba(214, 175, 118, 0.95);
  box-shadow: 0 16px 34px rgba(5, 8, 5, 0.42);
  transform: translateY(-4px) scale(1.05);
}

.eco-swatch--more {
  align-content: center;
}

.eco-swatch--more span {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  background: rgba(14, 18, 13, 0.32);
  border: 1px solid rgba(247, 245, 237, 0.4);
  border-radius: 50%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.56rem;
  transition: transform 550ms var(--ease-out-expo), border-color 450ms var(--ease-out-expo);
}

.eco-swatch--more:hover span,
.eco-swatch--more:focus-visible span {
  border-color: rgba(214, 175, 118, 0.95);
  transform: translateY(-4px) scale(1.05);
}

/* ---------- Фільм: міні-картки проєктів ---------- */

.eco-minicards {
  display: flex;
  gap: clamp(0.7rem, 1.4vw, 1.1rem);
  margin-top: clamp(1.4rem, 2.8vh, 2.2rem);
}

.eco-minicard {
  position: relative;
  display: block;
  width: clamp(7.4rem, 9.6vw, 9.6rem);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(247, 245, 237, 0.3);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(5, 8, 5, 0.3);
  isolation: isolate;
  transition: transform 550ms var(--ease-out-expo), border-color 450ms var(--ease-out-expo), box-shadow 550ms var(--ease-out-expo);
}

.eco-minicard img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms var(--ease-out-expo);
}

.eco-minicard::after {
  position: absolute;
  inset: 30% 0 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(7, 11, 7, 0.78));
}

.eco-minicard__label {
  position: absolute;
  z-index: 2;
  right: 0.85rem;
  bottom: 0.75rem;
  left: 0.85rem;
  display: grid;
  gap: 0.2rem;
}

.eco-minicard__label em {
  font-family: var(--display);
  font-size: clamp(1.02rem, 1.25vw, 1.3rem);
  font-style: normal;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.eco-minicard__label small {
  font-size: 0.54rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  opacity: 0.72;
}

.eco-minicard:hover,
.eco-minicard:focus-visible {
  border-color: rgba(214, 175, 118, 0.85);
  box-shadow: 0 20px 44px rgba(5, 8, 5, 0.44);
  transform: translateY(-4px);
}

.eco-minicard:hover img,
.eco-minicard:focus-visible img {
  transform: scale(1.06);
}

.eco-minicard--more {
  display: grid;
  place-items: center;
  background: rgba(14, 18, 13, 0.34);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
}

.eco-minicard--more::after {
  content: none;
}

.eco-minicard--more .eco-minicard__label {
  position: static;
  justify-items: center;
  text-align: center;
}

.eco-minicard--more .eco-minicard__label em {
  font-size: clamp(1.5rem, 2vw, 2rem);
}

/* ---------- 03 · Декори ---------- */

.decors-section {
  position: relative;
  z-index: 10;
  /* -1px: перекриває субпіксельну щілину на стику з фільмом */
  margin-top: -1px;
  overflow: clip;
  color: var(--paper);
  background: var(--seam-tone);
  isolation: isolate;
}

.decors-section::before {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  left: 0;
  height: clamp(12rem, 30vh, 20rem);
  content: "";
  pointer-events: none;
  background: linear-gradient(
    180deg,
    var(--seam-tone) 0%,
    var(--seam-tone) 9%,
    rgba(156, 138, 114, 0.78) 30%,
    rgba(156, 138, 114, 0.34) 62%,
    rgba(156, 138, 114, 0) 100%
  );
}

.decors-section__stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.decors-section__stage::after {
  position: absolute;
  z-index: 3;
  inset: -10%;
  content: "";
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    ellipse at 46% 42%,
    rgba(247, 245, 237, 0.92) 0%,
    rgba(247, 245, 237, 0.54) 24%,
    rgba(247, 245, 237, 0.18) 48%,
    rgba(247, 245, 237, 0) 72%
  );
  transform: scale(0.94);
  will-change: opacity, transform;
}

.decors-section__stage.is-revealing::after {
  animation: decors-reveal 640ms var(--ease-out-quart) both;
}

@keyframes decors-reveal {
  0% {
    opacity: 0;
    transform: scale(0.94);
  }

  24% {
    opacity: 0.5;
  }

  100% {
    opacity: 0;
    transform: scale(1.05);
  }
}

.decors-section__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0;
  transition: opacity 800ms var(--ease-out-quart);
  will-change: opacity;
}

.decors-section__layer.is-active {
  opacity: 1;
}

.decors-section__wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 17%, rgba(214, 175, 118, 0.2) 0%, rgba(200, 154, 89, 0.07) 29%, transparent 54%),
    radial-gradient(ellipse at 50% 46%, transparent 43%, rgba(6, 9, 5, 0.18) 73%, rgba(5, 7, 4, 0.48) 100%),
    /* світлі декори (Хмельницький, Дуб Арктік) майже білі - без цього
       назва й мета в лівій колонці зливались із дошкою */
    linear-gradient(90deg, rgba(9, 12, 8, 0.76) 0%, rgba(9, 12, 8, 0.34) 46%, rgba(9, 12, 8, 0.44) 100%),
    linear-gradient(180deg, rgba(9, 12, 8, 0.5) 0%, transparent 30%, rgba(9, 12, 8, 0.7) 100%);
}

.decors-section__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
  grid-template-rows: auto 1fr auto;
  gap: clamp(1.5rem, 3vw, 3rem);
  width: min(100%, 94rem);
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(7rem, 13vh, 10rem) var(--gutter) clamp(4.5rem, 9vh, 7rem);
  margin-inline: auto;
}

.decors-section__header {
  grid-row: 1;
  grid-column: 1;
}
.decors-section__eyebrow,
.craft-section__eyebrow,
.about-section__eyebrow,
.contact-section__eyebrow {
  margin-bottom: clamp(0.85rem, 1.6vh, 1.3rem);
  font-size: clamp(0.66rem, 0.75vw, 0.78rem);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.82;
}
.decors-section__header h2,
.craft-section__header h2,
.about-section__header h2,
.contact-section__inner h2 {
  max-width: 12ch;
  font-family: var(--display);
  font-size: clamp(3.2rem, 5.6vw, 6.2rem);
  font-weight: var(--display-weight);
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.decors-section__current {
  grid-row: 3;
  grid-column: 1;
  align-self: end;
}

.decors-section__name {
  max-width: 12ch;
  font-family: var(--display);
  font-size: clamp(2.3rem, 3.7vw, 4.1rem);
  font-weight: var(--display-weight);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.decors-section__price {
  margin-top: 0.85rem;
  color: #d6af76;
  font-size: clamp(0.95rem, 1.15vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.decors-list {
  display: grid;
  grid-row: 1 / span 2;
  grid-column: 2;
  align-content: center;
  align-self: center;
  padding: clamp(0.9rem, 1.6vw, 1.4rem);
  margin: 0;
  list-style: none;
  background: rgba(10, 13, 9, 0.42);
  border: 1px solid rgba(247, 245, 237, 0.14);
  border-radius: 22px;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.decors-list li + li {
  border-top: 1px solid rgba(247, 245, 237, 0.1);
}

.decors-list__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  width: 100%;
  padding: 0.72rem 0.4rem;
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  font: inherit;
  text-align: left;
  opacity: 0.62;
  transition: opacity 350ms var(--ease-out-quart), transform 450ms var(--ease-out-expo);
}

.decors-list__item:hover,
.decors-list__item:focus-visible {
  opacity: 0.92;
  transform: translateX(3px);
}

.decors-list__item.is-active {
  opacity: 1;
}

.decors-list__item i {
  width: 2.3rem;
  height: 2.3rem;
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(247, 245, 237, 0.35);
  border-radius: 50%;
  transition: border-color 350ms var(--ease-out-quart), box-shadow 350ms var(--ease-out-quart);
}

.decors-list__item.is-active i {
  border-color: #d6af76;
  box-shadow: 0 0 0 3px rgba(214, 175, 118, 0.22);
}

.decors-list__item span {
  overflow: hidden;
  font-size: 0.92rem;
  font-weight: 550;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.decors-list__item em {
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.78;
}

.decors-list__item.is-active em {
  color: #d6af76;
  opacity: 1;
}

.decors-section__cta {
  display: inline-flex;
  gap: 1rem;
  align-items: center;
  justify-self: start;
  grid-row: 3;
  grid-column: 2;
  align-self: end;
  min-height: 3.3rem;
  padding: 0.55rem 1.5rem;
  color: #1a1711;
  background: rgba(247, 245, 237, 0.94);
  border-radius: 999px;
  box-shadow: 0 12px 36px rgba(5, 8, 5, 0.24);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 500ms var(--ease-out-expo), box-shadow 500ms var(--ease-out-expo);
}

.decors-section__cta:hover,
.decors-section__cta:focus-visible {
  box-shadow: 0 18px 44px rgba(5, 8, 5, 0.34);
  transform: translateY(-3px);
}

/* ---------- 05 · Виробництво ---------- */

.craft-section {
  position: relative;
  z-index: 10;
  color: #182016;
  background: var(--paper);
}

.craft-section__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 90rem);
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(6.5rem, 12vh, 10rem) var(--gutter);
  margin-inline: auto;
}

.craft-section__eyebrow {
  color: rgba(24, 32, 22, 0.6);
  opacity: 1;
}

.craft-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: 0;
  margin: clamp(3rem, 6vh, 4.5rem) 0 0;
  list-style: none;
}

.craft-step {
  padding-top: 1.4rem;
  border-top: 1px solid rgba(24, 32, 22, 0.22);
}

.craft-step__no {
  display: block;
  color: #a67b3f;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

.craft-step h3 {
  margin: 0.9rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.45rem, 1.9vw, 1.9rem);
  font-weight: var(--display-weight);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.craft-step p {
  max-width: 24rem;
  margin-top: 0.8rem;
  color: rgba(24, 32, 22, 0.7);
  font-size: clamp(0.92rem, 1.05vw, 1.05rem);
  line-height: 1.6;
}

.craft-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  margin: clamp(3.5rem, 7vh, 5.5rem) 0 0;
}

.craft-stat {
  padding-top: 1.4rem;
  border-top: 1px solid rgba(24, 32, 22, 0.22);
}

.craft-stat dt {
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(24, 32, 22, 0.58);
}

.craft-stat dd {
  margin: 0.55rem 0 0;
  font-family: var(--display);
  font-size: clamp(2.9rem, 4.8vw, 5.2rem);
  font-weight: var(--display-weight);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

/* ---------- 07 · Контакт ---------- */

.contact-section {
  position: relative;
  z-index: 10;
  overflow: clip;
  color: var(--paper);
  background:
    radial-gradient(ellipse at 78% 18%, rgba(200, 154, 89, 0.13), transparent 52%),
    radial-gradient(ellipse at 12% 92%, rgba(200, 154, 89, 0.07), transparent 46%),
    #0e120d;
}

.contact-section__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  width: min(100%, 90rem);
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(7rem, 14vh, 11rem) var(--gutter) clamp(6rem, 11vh, 9rem);
  margin-inline: auto;
}

.contact-section__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-section__sub {
  max-width: 32rem;
  margin-top: clamp(1.25rem, 2.4vh, 2rem);
  color: rgba(247, 245, 237, 0.82);
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  line-height: 1.6;
}

.contact-form {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  width: min(100%, 36rem);
  margin-top: clamp(2rem, 4.5vh, 3.25rem);
}

.contact-form__field {
  flex: 1 1 15rem;
}

.contact-form__field input {
  width: 100%;
  min-height: 3.6rem;
  padding: 0.55rem 1.4rem;
  color: var(--paper);
  background: rgba(247, 245, 237, 0.07);
  border: 1px solid rgba(247, 245, 237, 0.24);
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: border-color 350ms var(--ease-out-quart), background-color 350ms var(--ease-out-quart);
}

.contact-form__field input::placeholder {
  color: rgba(247, 245, 237, 0.44);
}

.contact-form__field input:focus {
  outline: none;
  background: rgba(247, 245, 237, 0.1);
  border-color: rgba(214, 175, 118, 0.85);
}

.contact-form__submit {
  display: inline-flex;
  gap: 1rem;
  align-items: center;
  min-height: 3.6rem;
  padding: 0.55rem 1.6rem;
  color: #1a1711;
  cursor: pointer;
  background: rgba(247, 245, 237, 0.94);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 500ms var(--ease-out-expo), box-shadow 500ms var(--ease-out-expo);
}

.contact-form__submit:hover,
.contact-form__submit:focus-visible {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
  transform: translateY(-3px);
}

.contact-form__done {
  flex-basis: 100%;
  color: #d6af76;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.contact-form.is-done .contact-form__field,
.contact-form.is-done .contact-form__submit {
  pointer-events: none;
  opacity: 0.28;
}

.contact-section__alt {
  display: flex;
  /* П'ять посилань в один рядок не влазять у телефон: без переносу
     колонка секції розтягувалась до 494px і хвіст різало overflow: clip. */
  flex-wrap: wrap;
  gap: 1rem clamp(1.4rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 5vh, 3.75rem);
}

.contact-section__alt a {
  padding-bottom: 0.2rem;
  border-bottom: 1px solid rgba(247, 245, 237, 0.28);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
  transition: opacity 350ms var(--ease-out-quart), border-color 350ms var(--ease-out-quart);
}

.contact-section__alt a:hover,
.contact-section__alt a:focus-visible {
  border-color: rgba(214, 175, 118, 0.9);
  opacity: 1;
}

/* ---------- Адаптив нових секцій ---------- */

@media (max-width: 1024px) {
  .decors-section__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
  }

  .decors-list {
    grid-row: 3;
    grid-column: 1;
    align-self: start;
  }

  .decors-section__current {
    grid-row: 2;
    grid-column: 1;
    align-self: start;
  }

  .decors-section__cta {
    grid-row: 4;
    grid-column: 1;
  }

  .craft-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .craft-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .craft-step p {
    max-width: 34rem;
  }
}

@media (max-width: 767px) {
  .eco-swatches {
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .eco-swatch {
    width: 3.9rem;
  }

  .eco-swatch span {
    font-size: 0.52rem;
  }

  .eco-minicards {
    max-width: calc(100vw - (var(--gutter) * 2));
    padding-bottom: 0.4rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .eco-minicards::-webkit-scrollbar {
    display: none;
  }

  /* ---------- Сегмент "Простір": стрічка йде за кадр ----------
     Кадр має читатись як вікно у більший ряд, а не як плитки в рамці:
     стрічка виходить за правий край екрана і зрізається нижнім. Через це
     назва проєкту переїжджає на ВЕРХ картки - внизу її з'їв би обріз. */
  .eco-scrub__inner[data-seg="3"] {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    padding-left: var(--gutter);
  }

  .eco-scrub__inner[data-seg="3"] .eco-scrub__title,
  .eco-scrub__inner[data-seg="3"] .eco-scrub__sub {
    padding-right: var(--gutter);
  }

  .eco-scrub__inner[data-seg="3"] .eco-minicards {
    max-width: none;
    width: 100vw;
    /* Компенсуємо padding-left батька: ряд стартує від тексту, а праворуч
       і знизу вже нічим не обмежений. */
    margin-left: calc(var(--gutter) * -1);
    padding-left: var(--gutter);
    padding-bottom: 0;
    /* Хвіст ряду зрізає нижня кромка екрана */
    margin-bottom: -2.6rem;
  }

  .eco-scrub__inner[data-seg="3"] .eco-minicard {
    width: 9.2rem;
    aspect-ratio: 3 / 4.6;
  }

  .eco-scrub__inner[data-seg="3"] .eco-minicard::after {
    inset: 0 0 42% 0;
    background: linear-gradient(180deg, rgba(7, 11, 7, 0.82), transparent);
  }

  .eco-scrub__inner[data-seg="3"] .eco-minicard__label {
    top: 0.72rem;
    right: 0.7rem;
    bottom: auto;
    left: 0.7rem;
  }

  .eco-scrub__inner[data-seg="3"] .eco-minicard--more .eco-minicard__label {
    position: absolute;
    top: 0.9rem;
    justify-items: start;
    text-align: left;
  }

  .eco-minicard {
    flex: 0 0 auto;
    width: 8.6rem;
  }

  /* "ЖК Шевченківський" у 7rem різало по краю картки (overflow: hidden).
     Тепер назва переноситься, а не тікає за межі кадру. */
  .eco-minicard__label {
    right: 0.7rem;
    left: 0.7rem;
  }

  .eco-minicard__label em {
    font-size: 0.92rem;
    line-height: 1.12;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
.decors-section__header h2,
.craft-section__header h2,
.about-section__header h2,
.contact-section__inner h2 {
    font-size: clamp(2.6rem, 11.4vw, 4.2rem);
  }

  .decors-list {
    padding: 0.55rem 0.8rem;
  }

  /* На телефоні назва й склад декору не вміщались в один рядок:
     "Хмельницький" різало в три крапки. Кладемо їх у два рядки
     праворуч від кружка. */
  .decors-list__item {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.1rem 0.75rem;
    padding: 0.6rem 0.1rem;
  }

  .decors-list__item i {
    grid-row: span 2;
  }

  .decors-list__item span {
    font-size: 0.84rem;
    white-space: normal;
  }

  .decors-list__item em {
    font-size: 0.68rem;
  }

  .contact-form {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-form__field {
    flex: 0 0 auto;
  }

  .contact-form__submit {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .decors-section__layer {
    transition: none;
  }

  .decors-section__stage::after {
    animation: none !important;
    opacity: 0 !important;
  }
}

/* ================= Luxe pass: rail, header CTA, section fill ================= */

/* ---------- Header CTA ---------- */

.site-header__cta {
  display: inline-flex;
  padding: 0.95rem 1.7rem 0.9rem;
  border: 0;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  pointer-events: auto;
  background: rgba(10, 13, 9, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 400ms var(--ease-out-quart), transform 500ms var(--ease-out-expo), background-color 400ms var(--ease-out-quart);
}

.site-header__cta:hover,
.site-header__cta:focus-visible {
  opacity: 0.78;
  transform: translateY(-1px);
}

/* ---------- Бічна рейка розділів ---------- */

.section-rail {
  position: fixed;
  top: 50%;
  right: clamp(0.9rem, 1.8vw, 2.1rem);
  z-index: 55;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: flex-end;
  transform: translateY(-50%);
  color: #f8f5ed;
  mix-blend-mode: difference;
}

.section-rail a {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  justify-content: flex-end;
  padding: 0.12rem 0;
}

.section-rail__tick {
  width: 1.1rem;
  height: 1px;
  background: currentColor;
  opacity: 0.42;
  transition: width 500ms var(--ease-out-expo), opacity 400ms var(--ease-out-quart);
}

.section-rail__label {
  font-size: 0.58rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(0.4rem);
  transition: opacity 400ms var(--ease-out-quart), transform 500ms var(--ease-out-expo);
}

.section-rail a:hover .section-rail__tick,
.section-rail a:focus-visible .section-rail__tick {
  opacity: 0.9;
}

.section-rail a:hover .section-rail__label,
.section-rail a:focus-visible .section-rail__label {
  opacity: 0.88;
  transform: translateX(0);
}

.section-rail a.is-active .section-rail__tick {
  width: 2.4rem;
  opacity: 1;
}

/* ---------- Декори: мета активного декору ---------- */

.decors-section__meta {
  margin-top: 0.7rem;
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  /* 0.62 губилось на світлих декорах у зоні стику з фільмом */
  color: rgba(247, 245, 237, 0.78);
}

/* ---------- Медіа-стрічка (виробництво, проєкти) ---------- */

.media-band {
  position: relative;
  overflow: hidden;
  margin: clamp(3rem, 6vh, 4.5rem) 0 0;
  background: #d9ddd5;
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(19, 29, 18, 0.14);
  isolation: isolate;
}

.media-band__video,
.media-band__img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.media-band__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  padding: clamp(2.4rem, 4.5vh, 3.4rem) clamp(1.2rem, 2vw, 1.8rem) clamp(1rem, 1.9vh, 1.4rem);
  margin: 0;
  color: #faf8f1;
  background: linear-gradient(180deg, transparent, rgba(7, 11, 7, 0.62));
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Стрічка «Дерево, що стало простором» - на всю ширину екрана, нижчий кадр */

.projects-section__film {
  /* лежить поза .projects-section__inner - на всю ширину секції, під CTA */
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.projects-section__film .media-band__video {
  aspect-ratio: 40 / 9;
}

.projects-section__film .media-band__caption {
  padding-right: var(--gutter);
  padding-left: var(--gutter);
}

@media (max-width: 767px) {
  .projects-section__film .media-band__video {
    aspect-ratio: 21 / 9;
  }
}

/* ---------- Проєкти: ритм плитки + CTA ---------- */

@media (min-width: 1025px) {
  .projects-grid {
    align-items: start;
    padding-bottom: clamp(2rem, 6vh, 4.5rem);
  }

  .projects-grid__column:nth-child(1) .project-tile {
    aspect-ratio: 3 / 4;
  }

  .projects-grid__column:nth-child(2) {
    transform: translate3d(0, clamp(2rem, 6vh, 4.5rem), 0);
  }

  .projects-grid__column:nth-child(2) .project-tile {
    aspect-ratio: 3 / 3.4;
  }

  .projects-grid__column:nth-child(3) .project-tile {
    aspect-ratio: 3 / 4.3;
  }
}

.projects-cta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  justify-content: space-between;
  padding-top: clamp(1.6rem, 3vh, 2.4rem);
  margin-top: clamp(3rem, 6.5vh, 5rem);
  border-top: 1px solid rgba(24, 32, 22, 0.18);
}

.projects-cta__line {
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  font-weight: var(--display-weight);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.eco-chip-link--ink {
  color: var(--paper);
  background: #182016;
  border-color: transparent;
}

.eco-chip-link--ink:hover,
.eco-chip-link--ink:focus-visible {
  background: #22301f;
}

/* ---------- Контакт: латунний лист ---------- */

.contact-section__leaf {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(214, 175, 118, 0.28);
  border-radius: 20px;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.42);
  isolation: isolate;
}

.contact-section__leaf img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 3.6;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 1200ms var(--ease-out-expo);
}

.contact-section__leaf:hover img {
  transform: scale(1.045);
}

.contact-section__leaf figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: clamp(2.4rem, 4.5vh, 3.4rem) clamp(1.1rem, 1.9vw, 1.6rem) clamp(1rem, 1.9vh, 1.4rem);
  color: rgba(247, 245, 237, 0.92);
  background: linear-gradient(180deg, transparent, rgba(5, 8, 5, 0.66));
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ---------- Футер ---------- */

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(1.1rem, 2.4vh, 1.8rem);
  align-items: center;
}

p.site-footer__mark {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  font-weight: var(--display-weight);
  line-height: 1;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: rgba(24, 32, 22, 0.88);
}

.site-footer__nav {
  display: flex;
  gap: clamp(1.2rem, 2.6vw, 2.2rem);
}

.site-footer__nav a {
  padding-bottom: 0.18rem;
  border-bottom: 1px solid rgba(44, 58, 49, 0.25);
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 350ms var(--ease-out-quart), border-color 350ms var(--ease-out-quart);
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
  border-color: rgba(166, 123, 63, 0.9);
  opacity: 1;
}

/* ---------- Адаптив luxe-блоків ---------- */

@media (max-width: 1024px) {
  .section-rail {
    display: none;
  }

  /* minmax(0, 1fr), не 1fr: інакше min-content найширшого рядка задирає
     трек вище за екран, і контент їде під обрізку секції. */
  .contact-section__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-section__leaf {
    max-width: 26rem;
  }
}

/* Шість пунктів у меню: на середніх ширинах тиснемо крок і кегль,
   а CTA ховаємо раніше, щоб навігація не наїжджала на кнопку. */
@media (max-width: 1366px) {
  .site-header__nav {
    gap: clamp(0.9rem, 1.5vw, 1.4rem);
  }

  .site-header__nav a,
  .site-header__account {
    font-size: 0.74rem;
  }
}

@media (max-width: 1180px) {
  .site-header__cta {
    display: none;
  }
}

@media (max-width: 767px) {
  .site-header__cta {
    display: none;
  }

  .craft-film__video {
    aspect-ratio: 16 / 10;
  }

  .projects-cta {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .projects-grid__column:nth-child(2) {
    transform: none;
  }
}
/* ================= Luxe label-шрифт: serif-капс замість Helvetica =================
   Мікро-лейбли,
меню й підписи - Cormorant 600 caps. Кнопки-пілюлі,
параграфи та UI-список декорів лишаються на body-гротеску. */

.site-header__nav a,
.site-header__account,
.eco-scrub__kicker,
.eco-scrub__scroll-label,
.eco-swatch span,
.eco-minicard__label small,
.decors-section__eyebrow,
.craft-section__eyebrow,
.contact-section__eyebrow,
.projects-section__eyebrow,
.decors-section__meta,
.section-rail__label,
.media-band__caption,
.contact-section__leaf figcaption,
.about-family__shot figcaption,
.craft-stat dt,
.project-tile__action,
.contact-section__alt a,
.site-footer__line,
.site-footer__nav a {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.18em;
}

.eco-scrub__cta,
.eco-chip-link,
.decors-section__cta,
.contact-form__submit,
.site-header__cta {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
}

/* Serif-капс дрібнішого кегля потребує запасу розміру */

.site-header__nav a,
.site-header__account {
  font-size: 0.82rem;
}

/* display тут НЕ чіпаємо: цей блок стоїть нижче за @media, які ховають
   CTA на планшеті й телефоні, і з display: inline-flex перебивав їх -
   кнопка вилазила за праву кромку шапки на 768-1180. */
.site-header__cta {
  align-items: center;
  min-height: 3rem;
  padding: 0 1.5rem;
  font-size: 0.72rem;
}

.eco-scrub__kicker {
  font-size: clamp(0.78rem, 0.95vw, 0.95rem);
}

.eco-scrub__scroll-label {
  font-size: 0.74rem;
}
.decors-section__eyebrow,
.craft-section__eyebrow,
.contact-section__eyebrow,
.projects-section__eyebrow {
  font-size: clamp(0.78rem, 0.9vw, 0.94rem);
}

.decors-section__meta {
  font-size: 0.8rem;
}

.section-rail__label {
  font-size: 0.72rem;
}

.media-band__caption,
.contact-section__leaf figcaption,
.about-family__shot figcaption {
  font-size: 0.78rem;
}
.craft-stat dt {
  font-size: 0.76rem;
}

.project-tile__action {
  font-size: 0.76rem;
}

.contact-section__alt a,
.site-footer__nav a {
  font-size: 0.76rem;
}

.site-footer__line {
  font-size: clamp(0.78rem, 0.9vw, 0.94rem);
}

.eco-swatch span {
  font-size: 0.68rem;
}

.eco-minicard__label small {
  font-size: 0.66rem;
}

@media (max-width: 767px) {
  .eco-swatch span {
    font-size: 0.6rem;
  }
}

/* ---------- Ореол посадки листа ---------- */

.lv-leaf-flash {
  position: fixed;
  z-index: 21;
  width: 36vmin;
  height: 36vmin;
  margin: -18vmin 0 0 -18vmin;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 208, 145, 0.5) 0%, rgba(232, 186, 120, 0.2) 40%, transparent 68%);
  mix-blend-mode: screen;
  animation: lv-leaf-flash 900ms var(--ease-out-quart) forwards;
}

@keyframes lv-leaf-flash {
  0% { opacity: 0; transform: scale(0.35); }
  28% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.25); }
}

/* Латунне кільце фіналу: розходиться від точки підпису разом з вибухом листа */
.lv-leaf-ring {
  position: fixed;
  z-index: 21;
  width: 10vmin;
  height: 10vmin;
  margin: -5vmin 0 0 -5vmin;
  pointer-events: none;
  border: 1px solid rgba(214, 175, 118, 0.75);
  border-radius: 50%;
  animation: lv-leaf-ring 1200ms var(--ease-out-expo) forwards;
}

@keyframes lv-leaf-ring {
  0% { opacity: 0; transform: scale(0.18); }
  16% { opacity: 0.9; }
  100% { opacity: 0; transform: scale(4.6); }
}

/* Відгук на клік: коротка латунна брижа в точці натискання */
.lv-leaf-tap {
  position: fixed;
  z-index: 21;
  width: 4vmin;
  height: 4vmin;
  margin: -2vmin 0 0 -2vmin;
  pointer-events: none;
  border: 1px solid rgba(214, 175, 118, 0.6);
  border-radius: 50%;
  animation: lv-leaf-tap 700ms var(--ease-out-quart) forwards;
}

@keyframes lv-leaf-tap {
  0% { opacity: 0.85; transform: scale(0.3); }
  100% { opacity: 0; transform: scale(2.6); }
}

@media (prefers-reduced-motion: reduce) {
  .lv-leaf-flash,
  .lv-leaf-ring,
  .lv-leaf-tap {
    display: none;
  }
}

/* ---------- 06 · Сімейна справа (about) ---------- */

.about-section {
  position: relative;
  z-index: 10;
  color: #182016;
  background:
    radial-gradient(ellipse at 84% 8%, rgba(200, 154, 89, 0.1), transparent 46%),
    #efece1;
}

.about-section__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 90rem);
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(6.5rem, 12vh, 10rem) var(--gutter);
  margin-inline: auto;
}

.about-section__eyebrow {
  color: rgba(24, 32, 22, 0.6);
  opacity: 1;
}

.about-section__lead {
  max-width: 46rem;
  margin-top: clamp(1.4rem, 2.6vh, 2.2rem);
  color: rgba(24, 32, 22, 0.74);
  font-size: clamp(1.05rem, 1.3vw, 1.3rem);
  line-height: 1.65;
}

.about-family {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 0.72fr);
  gap: clamp(0.9rem, 2vw, 1.75rem);
  align-items: end;
  margin: clamp(2.75rem, 6vh, 4.25rem) 0 0;
}

.about-family__facts {
  display: flex;
  flex-direction: column;
  gap: clamp(1.1rem, 2.4vh, 1.8rem);
  padding: 0 0 clamp(0.5rem, 1.5vh, 1.2rem) clamp(0.5rem, 1.5vw, 1.5rem);
  margin: 0;
}

.about-family__facts dt {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(24, 32, 22, 0.5);
}

.about-family__facts dd {
  margin: 0.4rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.5vw, 1.5rem);
  font-weight: var(--display-weight);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.about-family__facts > div {
  padding-top: 0.9rem;
  border-top: 1px solid rgba(24, 32, 22, 0.2);
}

.about-family__shot {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: #ddd9cc;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(19, 29, 18, 0.16);
  isolation: isolate;
}

.about-family__shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 34%;
}

.about-family__shot figcaption {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  padding: clamp(2.2rem, 4vh, 3rem) clamp(1rem, 1.6vw, 1.5rem) clamp(0.9rem, 1.7vh, 1.25rem);
  margin: 0;
  color: #faf8f1;
  background: linear-gradient(180deg, transparent, rgba(7, 11, 7, 0.66));
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.about-usps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: 0;
  margin: clamp(3rem, 6vh, 4.5rem) 0 0;
  list-style: none;
}

.about-usp {
  padding-top: 1.4rem;
  border-top: 1px solid rgba(24, 32, 22, 0.22);
}

.about-usp h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 1.8vw, 1.8rem);
  font-weight: var(--display-weight);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.about-usp p {
  max-width: 24rem;
  margin: 0.8rem 0 0;
  color: rgba(24, 32, 22, 0.7);
  font-size: clamp(0.92rem, 1.05vw, 1.05rem);
  line-height: 1.6;
}

.about-cta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  justify-content: space-between;
  padding-top: clamp(1.6rem, 3vh, 2.4rem);
  margin-top: clamp(3rem, 6.5vh, 5rem);
  border-top: 1px solid rgba(24, 32, 22, 0.18);
}

.about-cta__line {
  max-width: 34rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  font-weight: var(--display-weight);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

/* ---------- Контакт: телефон + дії + адреси ---------- */

.contact-section__phone {
  display: inline-block;
  margin-top: clamp(2rem, 4.5vh, 3.25rem);
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  font-weight: var(--display-weight);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  transition: color 350ms var(--ease-out-quart);
}

.contact-section__phone:hover,
.contact-section__phone:focus-visible {
  color: #d6af76;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-top: clamp(1.8rem, 3.6vh, 2.6rem);
}

/* Обидві кнопки в рядку - однакової висоти й на одній лінії:
   у .eco-chip-link свій нижчий min-height і власний margin-top,
   через них telegram-пілюля стояла нижче й меншою. */
.contact-actions .contact-form__submit,
.contact-actions .eco-chip-link {
  gap: 1rem;
  min-height: 3.6rem;
  padding: 0.55rem 1.6rem;
  margin-top: 0;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
}

.contact-section__where {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.4vw, 2.4rem);
  width: 100%;
  margin: clamp(2.5rem, 5vh, 3.75rem) 0 0;
}

.contact-section__where div {
  padding-top: 1.1rem;
  border-top: 1px solid rgba(247, 245, 237, 0.18);
}

.contact-section__where dt {
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 245, 237, 0.55);
}

.contact-section__where dd {
  margin: 0.45rem 0 0;
  font-size: 0.95rem;
  color: rgba(247, 245, 237, 0.85);
}

/* ---------- Футер: контакти ---------- */

.site-footer__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.9rem;
  justify-content: center;
  font-size: 0.85rem;
  color: rgba(247, 245, 237, 0.66);
}

.site-footer__contacts a {
  border-bottom: 1px solid rgba(247, 245, 237, 0.24);
  transition: color 350ms var(--ease-out-quart), border-color 350ms var(--ease-out-quart);
}

.site-footer__contacts a:hover,
.site-footer__contacts a:focus-visible {
  color: #d6af76;
  border-color: rgba(214, 175, 118, 0.9);
}

@media (min-width: 1025px) {
  .about-family__shot--offset {
    transform: translateY(clamp(1.25rem, 2.6vw, 2.5rem));
  }
}

@media (max-width: 1024px) {
  .about-usps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-family {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-family__facts {
    flex-direction: row;
    flex-wrap: wrap;
    grid-column: span 2;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    padding: clamp(0.75rem, 2vh, 1.25rem) 0 0;
  }

  .about-family__facts > div {
    flex: 1 1 11rem;
  }
}

@media (max-width: 767px) {
  .about-usps {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-family {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Колонка одна, тож span 2 з планшетного брейкпоінта треба зняти:
     інакше з'являється неявна друга колонка, і фото схлопується в 0. */
  .about-family__facts {
    grid-column: auto;
    padding-left: 0;
  }

  .craft-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-actions .contact-form__submit,
  .contact-actions .eco-chip-link {
    justify-content: center;
  }

  .contact-section__where {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Scroll-reveal: секції піднімаються при вході ---------- */

.lv-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1000ms var(--ease-out-expo),
    transform 1000ms var(--ease-out-expo);
  will-change: opacity, transform;
}

.lv-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .lv-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---------- Заставка головної: латунний лист наливається ----------
   Перший екран головної важкий (three + фільм + текстури листа), на телефоні
   він хвилинами стоїть порожній. Заставка закриває цей час і сама ж є
   індикатором: прогрес - це заливка листа знизу вгору за --lv-intro-progress.
   Форма листа та сама, з якої leaf3d.js будує 3D-лист (lib/leaf-mark.ts). */

/* Змінна оголошена через @property, тому її можна анімувати: до гідратації
   заливку веде CSS-анімація (на слабкому телефоні React їде довго, і без
   цього лист стояв би нерухомий), після - rAF у EcoHome. */
@property --lv-intro-progress {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

.eco-intro {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(1.5rem, 4.5vw, 2.4rem);
  padding: var(--gutter);
  /* Палітра - з фірмового знака клієнта: темний тон #0e1e1e і бірюзовий
     акцент #2f838c з логотипа (levens.ua). Зелений читався як чужий. */
  background:
    radial-gradient(118% 88% at 50% 40%, #143036 0%, #0e1e1e 52%, #060f10 100%);
  /* prefill - заливка до гідратації; failsafe - страховка, якщо JS не
     доїхав узагалі. Затримка у failsafe важлива: поки він у затримці,
     клас is-done вільно гасить шар (анімація ще не диктує opacity). */
  animation:
    lv-intro-prefill 5.5s var(--ease-out-quart) forwards,
    lv-intro-failsafe 700ms linear 12s forwards;
}

/* JS доїхав - прогрес далі веде rAF, prefill знімаємо, страховку лишаємо */
html.has-eco-js .eco-intro {
  animation: lv-intro-failsafe 700ms linear 12s forwards;
}

@keyframes lv-intro-prefill {
  from {
    --lv-intro-progress: 0;
  }
  to {
    --lv-intro-progress: 0.6;
  }
}

@keyframes lv-intro-failsafe {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* Скрол замикаємо лише поки заставка живе: інакше людина гортає наосліп
   у фільм, якого ще немає на екрані. */
html.lv-intro-lock,
html.lv-intro-lock body {
  overflow: hidden;
}

.eco-intro__mark {
  width: clamp(64px, 15vw, 96px);
  /* золото листа над холодним тлом: тепле свічення + бірюзовий підсвіт */
  filter:
    drop-shadow(0 12px 34px rgba(200, 154, 89, 0.26))
    drop-shadow(0 0 64px rgba(47, 131, 140, 0.34));
  /* Дихання: навіть коли прогрес стоїть, екран не виглядає завислим */
  animation: lv-intro-breathe 3.4s ease-in-out infinite alternate;
}

@keyframes lv-intro-breathe {
  to {
    transform: scale(1.035);
  }
}

.eco-intro__mark svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.eco-intro__ghost {
  fill: rgba(122, 176, 182, 0.06);
  stroke: rgba(122, 176, 182, 0.4);
  stroke-width: 1.6;
}

/* Заливка = прогрес: прямокутник під clip-path контуру піднімається знизу */
.eco-intro__fill {
  fill: var(--brass);
  /* Без transition: значення веде rAF у EcoHome і оновлює його щокадру,
     тому перехід тут лише боровся б із ним. */
  transform: translateY(calc((1 - var(--lv-intro-progress, 0)) * 300px));
}

.eco-intro__spine,
.eco-intro__vein {
  fill: none;
  stroke: rgba(247, 245, 237, 0.34);
  stroke-linecap: round;
  opacity: calc(0.25 + var(--lv-intro-progress, 0) * 0.75);
}

.eco-intro__spine {
  stroke-width: 2.2;
}

.eco-intro__vein {
  stroke-width: 1.1;
}

.eco-intro__word {
  margin: 0;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: clamp(0.98rem, 3.2vw, 1.3rem);
  /* трекінг з'їдає симетрію: text-indent повертає слово в центр */
  letter-spacing: 0.58em;
  text-indent: 0.58em;
  color: rgba(228, 238, 238, 0.72);
  opacity: calc(0.3 + var(--lv-intro-progress, 0) * 0.7);
}

/* Передача: силует гасне, канвас 3D-листа піднімається над тлом заставки -
   далі летить уже справжній лист, а тло розчиняється під ним. */
.eco-intro.is-handoff .eco-intro__mark,
.eco-intro.is-handoff .eco-intro__word {
  opacity: 0;
  /* із затримкою: спершу справжній лист входить у кадр (у leaf3d політ
     стартує з 0.25s), і лише тоді силует передає йому місце - інакше між
     ними лишалась порожня темна пауза. */
  transition: opacity 520ms var(--ease-out-quart) 420ms;
}

/* !important свідомо: leaf3d ставить z-index канваса інлайном (20), і на
   час передачі його треба підняти над темним шаром заставки. */
html.lv-intro-leaf .lv-leaf3d-canvas {
  z-index: 401 !important;
}

/* Вихід: шар тане, лист продовжує політ уже над хіро. */
.eco-intro.is-done {
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 780ms var(--ease-out-expo),
    visibility 0s linear 780ms;
}

.eco-intro.is-done .eco-intro__mark {
  /* дихання глушимо, інакше воно перебило б цей transform */
  animation: none;
  transform: translateY(-14px) scale(1.05);
  transition: transform 900ms var(--ease-out-expo);
}

/* Через передачу силует уже прозорий - зайвий рух прибираємо */
.eco-intro.is-handoff.is-done .eco-intro__mark {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .eco-intro,
  .eco-intro.is-done .eco-intro__mark {
    transition-duration: 1ms;
  }

  .eco-intro__mark {
    animation: none;
  }

  .eco-intro.is-done .eco-intro__mark {
    transform: none;
  }
}
