/* ==========================================================================
   Кај Кецот — design tokens
   Palette taken from the brand logo: apple red, leaf green, black circle.
   ========================================================================== */
:root {
  --bg: #0B0F0C;
  --surface: #111912;
  --surface-2: #172119;
  --surface-3: #1E2B20;
  --line: rgba(243, 239, 230, 0.12);
  --line-strong: rgba(243, 239, 230, 0.28);

  --text: #F3EFE6;
  --muted: #AEB8AF;

  --red: #D62828;
  --red-hi: #EF3B33;
  --red-deep: #8E0F14;
  --green: #7CC243;
  --green-deep: #2E6B2A;
  --sun: #F6C445;
  --error: #FF8A80;

  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: clamp(28px, 4vw, 56px);

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1360px;
  --section-y: clamp(96px, 14vw, 200px);

  --z-canvas: 0;
  --z-content: 1;
  --z-header: 100;
  --z-menu: 90;
  --z-progress: 110;
  --z-grain: 200;
  --z-loader: 1000;
}

/* ========================= Base ========================= */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; overflow-x: clip;
  /* root background too, so overscroll / pull-to-refresh areas stay dark */
  background-color: var(--bg); color-scheme: dark;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.is-loading, body.menu-open { overflow: hidden; }
/* <html> has overflow-x: clip, so body's overflow never reaches the window: hide the
   window's own scrollbar here while the loading screen is up */
html.is-loading { overflow: hidden; scrollbar-width: none; }
html.is-loading::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) { html.is-loading { overflow: visible; scrollbar-width: auto; } }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, dl, figure { margin: 0; }
ul { padding: 0; list-style: none; }
em { font-style: normal; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: calc(var(--z-loader) + 1);
  padding: 12px 20px; border-radius: 999px; background: var(--green); color: var(--bg);
  font-weight: 700; text-decoration: none; transform: translateY(-200%);
  transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ========================= Type ========================= */
.kicker {
  display: inline-flex; align-items: center; gap: .75em;
  font-family: var(--font-body); font-size: .8rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: var(--green);
  margin-bottom: 1.6rem;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }

.h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 5.2vw, 4.9rem);
  line-height: 1.02; letter-spacing: -0.035em;
  text-wrap: balance;
}
.h2 em, .hero__title em { color: var(--green); }

.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: inline-block; }

.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--muted); max-width: 36rem; line-height: 1.65; }

.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}

.link {
  display: inline-flex; align-items: center; gap: .35em;
  color: var(--text); font-weight: 700; text-decoration: underline;
  text-decoration-color: var(--green); text-underline-offset: 5px; text-decoration-thickness: 2px;
  transition: color .25s;
}
.link:hover { color: var(--green); }

/* ========================= Buttons ========================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 54px; padding: 0 1.6em; border-radius: 999px;
  font-family: var(--font-body); font-size: 1rem; font-weight: 800; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  touch-action: manipulation; will-change: transform;
  transition: background-color .25s var(--ease-out), border-color .25s var(--ease-out), box-shadow .3s var(--ease-out), color .25s;
}
.btn .icon { transition: transform .3s var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 10px 30px -10px rgba(214, 40, 40, .6); }
.btn--red:hover { background: #C21F1F; box-shadow: 0 14px 40px -8px rgba(214, 40, 40, .75); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: rgba(243, 239, 230, .03); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(243, 239, 230, .1); border-color: var(--text); }
.btn--sm { min-height: 44px; padding: 0 1.2em; font-size: .9rem; }
.btn--block { width: 100%; }

/* ========================= Loader ========================= */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: var(--z-loader);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  /* static red glow behind the logo (cheaper and steadier than a CSS filter) */
  background: radial-gradient(circle at 50% 50%, rgba(214, 40, 40, .2), transparent min(38vw, 340px)), var(--bg);
  will-change: transform;
  animation: loader-failsafe .5s 7s forwards;
}
.loader__mark { width: 110px; height: 110px; animation: loader-pulse 1.4s var(--ease-in-out) infinite; }
.loader__brand { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: .02em; }
.loader__pct {
  position: absolute; right: var(--gutter); bottom: var(--gutter);
  font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 10vw, 8rem);
  line-height: 1; font-variant-numeric: tabular-nums;
  /* A light colour at low alpha, not a dark colour: it blends to the same deep green (#1E2B20)
     on our background, but browsers with forced dark mode (e.g. Samsung Internet) see light
     text and leave it alone instead of "fixing" it to white. */
  color: rgba(150, 230, 160, .13);
}
/* Full logo on the loading screen (all screen sizes) */
.loader__logo {
  display: block; width: min(72vw, 300px); height: auto; overflow: visible;
  will-change: transform; /* own GPU layer */
  /* quick pop in with a small overshoot, like a fruit landing on the counter */
  animation: loader-logo-in .7s cubic-bezier(.34, 1.56, .64, 1) both;
}
.loader__mark, .loader__brand { display: none; }
@media (min-width: 1024px) {
  .loader__logo { width: min(52vh, 460px); }
}
@keyframes loader-logo-in { 0% { opacity: 0; transform: scale(.6); } 35% { opacity: 1; } 100% { transform: scale(1); } }
/* juice-splash exit (see splashLoader in main.js) */
.splash {
  position: fixed; left: 50%; top: 50%; z-index: calc(var(--z-loader) + 2);
  pointer-events: none; overflow: visible;
}
.splash-drop {
  position: fixed; left: 50%; top: 50%; z-index: calc(var(--z-loader) + 3);
  border-radius: 50%; background: #C41F22; pointer-events: none;
  box-shadow: inset -3px -4px 0 rgba(0, 0, 0, .18), inset 3px 3px 0 rgba(255, 255, 255, .18);
}
.splash-curtain {
  position: fixed; inset: 0; z-index: calc(var(--z-loader) + 1);
  background: #C41F22; pointer-events: none; visibility: hidden; opacity: 0;
}
/* drips trail above the top edge as the juice slides down the screen */
.splash-curtain svg { position: absolute; left: 0; bottom: calc(100% - 1px); width: 100%; height: 130px; display: block; transform: scaleY(-1); }
/* knife-cut exit (see sliceLoader in main.js): the lower half is a clone of the loader */
.loader--lower { z-index: calc(var(--z-loader) - 1); animation: none; }
.loader-blade {
  position: fixed; left: 50%; top: 50%; z-index: calc(var(--z-loader) + 2); pointer-events: none;
  width: 260vmax; height: 3px; /* long enough to reach both edges wherever the logo sits */
}
.loader-blade span {
  display: block; width: 100%; height: 100%; border-radius: 3px;
  clip-path: inset(-30px 100% -30px 0px); /* hidden until the slash draws it */
  background: linear-gradient(90deg, transparent, #FFFDE7 18%, #fff 50%, #FFFDE7 82%, transparent);
  box-shadow: 0 0 12px 2px rgba(255, 253, 231, .8), 0 0 40px 8px rgba(214, 40, 40, .45);
}
@keyframes loader-pulse { 50% { transform: scale(1.08) rotate(-4deg); } }
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; } }

/* ========================= Fixed layers ========================= */
#webgl {
  position: fixed; inset: 0; width: 100%; height: 100lvh;
  z-index: var(--z-canvas); pointer-events: none;
  transition: opacity .8s var(--ease-out);
}
.webgl-dim #webgl { opacity: .28; }
.webgl-off #webgl { opacity: 0; }

.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: var(--z-progress);
  background: linear-gradient(90deg, var(--green), var(--sun), var(--red));
  transform-origin: 0 50%; transform: scaleX(0);
}

.grain {
  position: fixed; inset: -50%; z-index: var(--z-grain); pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, .footer { position: relative; z-index: var(--z-content); }

/* ========================= Header ========================= */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header);
  /* extra room on top so the logo's stem and leaf sit clear of the screen edge and the progress bar */
  padding: 22px 0 14px;
  transition: transform .5s var(--ease-out), padding .4s;
}
/* Frosted backdrop with no hard bottom line: the layer reaches 36px below the header
   and a mask fades both the tint and the blur out gradually. */
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -36px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 15, 12, .82) 0%, rgba(11, 15, 12, .6) 60%, rgba(11, 15, 12, 0) 100%);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  opacity: 0; transition: opacity .4s;
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-scrolled { padding: 16px 0 10px; }
.site-header:focus-within { transform: none; }
.site-header__inner {
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 50px; height: 50px; filter: drop-shadow(0 4px 12px rgba(214, 40, 40, .35)); }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; }
/* Full logo in the header's top-left corner; shrinks a little once the page scrolls */
.brand__logo {
  display: block; width: clamp(64px, 7vw, 92px); height: auto; aspect-ratio: 1;
  filter: drop-shadow(0 6px 16px rgba(214, 40, 40, .3));
  transition: width .4s var(--ease-out);
}
.site-header.is-scrolled .brand__logo { width: clamp(52px, 5vw, 64px); }

.nav ul { display: flex; gap: 6px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .95rem; color: var(--muted);
  transition: color .25s, background-color .25s;
}
.nav a:hover, .nav a.is-active { color: var(--text); background: rgba(243, 239, 230, .07); }

.menu-btn {
  display: none; position: relative; width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); background: rgba(11, 15, 12, .5); cursor: pointer;
}
.menu-btn span {
  position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform .4s var(--ease-out);
}
.menu-btn span:first-child { transform: translateY(-4px); }
.menu-btn span:last-child { transform: translateY(4px); }
.menu-btn[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 110px var(--gutter) 40px;
  background: radial-gradient(120% 60% at 100% 0%, rgba(214, 40, 40, .25), transparent 60%), var(--bg);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease-out), visibility .4s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu__links a {
  display: flex; align-items: baseline; gap: 14px; padding: 10px 0;
  /* 6.9vw: the longest link, "Големопродажба" (~11.2em wide in this font, plus its number),
     still fits the screen width on phones as narrow as 320px */
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 6.9vw, 3.4rem);
  min-width: 0;
  line-height: 1.1; text-decoration: none; letter-spacing: -.03em;
  border-bottom: 1px solid var(--line);
  transform: translateY(20px); opacity: 0; transition: transform .6s var(--ease-out), opacity .6s;
}
.menu__links span { font-family: var(--font-body); font-size: .8rem; color: var(--green); letter-spacing: .1em; }
.menu.is-open .menu__links a { transform: none; opacity: 1; }
.menu.is-open .menu__links li:nth-child(2) a { transition-delay: .05s; }
.menu.is-open .menu__links li:nth-child(3) a { transition-delay: .1s; }
.menu.is-open .menu__links li:nth-child(4) a { transition-delay: .15s; }
.menu.is-open .menu__links li:nth-child(5) a { transition-delay: .2s; }
.menu__foot { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.menu__foot a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; text-decoration: none; color: var(--muted); }

/* ========================= Hero ========================= */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 140px 0 clamp(48px, 8vh, 96px);
  overflow: hidden;
}
.hero__bgword {
  position: absolute; left: 0; top: 14%; white-space: nowrap; pointer-events: none;
  font-family: var(--font-display); font-weight: 900; font-size: 27vw; line-height: 1;
  letter-spacing: -.05em; color: transparent;
  -webkit-text-stroke: 1.5px rgba(243, 239, 230, .07);
}
.hero__content { position: relative; }
.hero__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.35rem, 8vw, 8.4rem);
  line-height: .95; letter-spacing: -.045em; text-transform: uppercase;
  margin: 1.1rem 0 1.6rem;
}
.hero__lead { max-width: 33rem; font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 2.4rem; font-size: .92rem; font-weight: 600; color: var(--muted); }
.hero__meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta .icon { color: var(--green); width: 1.1em; height: 1.1em; stroke-width: 2.5; }

.scroll-cue {
  position: absolute; right: var(--gutter); bottom: clamp(48px, 8vh, 96px);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-size: .72rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue span { writing-mode: vertical-rl; }
.scroll-cue i { position: relative; width: 1.5px; height: 64px; background: var(--line); overflow: hidden; }
.scroll-cue i::after {
  content: ""; position: absolute; inset: 0; background: var(--green);
  animation: cue 2s var(--ease-in-out) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ========================= Intro ========================= */
.intro { padding: var(--section-y) 0; }
.intro__statement {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.55rem, 4.1vw, 3.8rem); line-height: 1.18; letter-spacing: -.03em;
  max-width: 22ch; text-wrap: pretty;
}
.intro__statement .w { display: inline-block; }

/* ========================= Photos ========================= */
.photo {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius); aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--surface-3), var(--surface));
}
.photo--square { aspect-ratio: 1; }
.photo--wide { aspect-ratio: 21 / 9; }
.photo--land { aspect-ratio: 16 / 10; }
.photo--fill { aspect-ratio: auto; height: 100%; min-height: 420px; }
.photo__media { position: absolute; inset: -10% -8%; will-change: transform; }
.photo__ph {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px;
  color: rgba(243, 239, 230, .5);
  background:
    radial-gradient(110% 80% at 20% 10%, rgba(124, 194, 67, .22), transparent 60%),
    radial-gradient(90% 70% at 85% 90%, rgba(214, 40, 40, .28), transparent 60%),
    linear-gradient(160deg, #18241B, #0E1510);
}
.photo__ph .icon { width: 44px; height: 44px; stroke-width: 1.25; }
.photo__ph span { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .9s var(--ease-out);
}
.photo.is-loaded img { opacity: 1; }
.photo::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(243, 239, 230, .08);
}

/* ========================= Story ========================= */
.story { position: relative; padding: var(--section-y) 0; }
.story__track { display: flex; flex-direction: column; gap: 96px; padding-inline: var(--gutter); max-width: var(--maxw); margin-inline: auto; }
.panel { display: grid; gap: 28px; }
.panel--intro { max-width: 640px; }
.panel--intro .lead { margin-top: 1.6rem; }
.story__hint { display: none; }
.panel__body { position: relative; }
.panel__num {
  display: block; font-family: var(--font-display); font-weight: 900; line-height: .9;
  font-size: clamp(4.5rem, 10vw, 9rem); letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1.5px var(--green); opacity: .8;
  margin-bottom: 1.2rem;
}
.panel h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 3.2vw, 3rem); letter-spacing: -.03em; line-height: 1.05; margin-bottom: 1rem; }
.panel p { color: var(--muted); font-size: 1.1rem; max-width: 30rem; }
.panel .photo { max-height: 72vh; }

@media (min-width: 1024px) {
  .story { padding: 0; overflow: hidden; }
  .story__track {
    flex-direction: row; align-items: center; gap: 8vw;
    height: 100vh; width: max-content; max-width: none; margin: 0;
    padding-inline: var(--gutter) 12vw;
  }
  .panel { width: min(74vw, 1080px); grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 4vw; align-items: center; }
  .panel--intro { width: min(44vw, 620px); display: block; }
  .panel .photo { height: 70vh; aspect-ratio: auto; }
  .story__hint {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 2.4rem;
    font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--green);
  }
  .story__hint .icon { animation: nudge 1.6s var(--ease-in-out) infinite; }
}
@keyframes nudge { 50% { transform: translateX(8px); } }

/* ========================= Stats ========================= */
.stats { padding: var(--section-y) 0; }
/* after the gallery (which already ends with generous space) keep the gap above ≈ the gap below */
.gallery + .stats { padding-top: calc(var(--section-y) * .55); }
.stats__grid { display: grid; gap: 48px; }
.stat { border-top: 1px solid var(--line-strong); padding-top: 28px; }
.stat__num {
  font-family: var(--font-display); font-weight: 800; line-height: 1;
  font-size: clamp(3.4rem, 8vw, 7.4rem); letter-spacing: -.05em; font-variant-numeric: tabular-nums;
}
.stat__suffix { color: var(--green); }
.stat__label { margin-top: 14px; color: var(--muted); max-width: 22rem; }
@media (min-width: 768px) { .stats__grid { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

/* ========================= Sheets ========================= */
.sheet {
  position: relative; background: var(--surface);
  /* rounded on all four corners so each panel reads as one floating card, with a soft shadow above and below */
  border-radius: var(--radius-lg);
  box-shadow: 0 -40px 80px -20px rgba(0, 0, 0, .55), 0 40px 80px -20px rgba(0, 0, 0, .6);
  transform-origin: 50% 0;
}
.sheet + .climax, .sheet + .gallery { margin-top: 0; }
.sheet::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(60%, 640px); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 194, 67, .5), transparent);
}

.section-head { display: grid; gap: 28px; margin-bottom: clamp(48px, 7vw, 96px); align-items: end; }
@media (min-width: 900px) { .section-head { grid-template-columns: 1.2fr .8fr; gap: 64px; } }

/* ========================= Shop ========================= */
.shop { padding: var(--section-y) 0 calc(var(--section-y) * .6); }
.cards { display: grid; gap: 16px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card {
  --mx: 50%; --my: 0%;
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  min-height: 320px; padding: 28px;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface-2);
  transform-style: preserve-3d; will-change: transform;
  transition: border-color .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(360px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.card:hover::before { opacity: 1; }

/* Ambient glow: the same accent light as the hover effect, drifting on its own.
   A separate layer (::after, below ::before) so the pointer glow still works on top. */
@property --gx { syntax: '<percentage>'; inherits: false; initial-value: 20%; }
@property --gy { syntax: '<percentage>'; inherits: false; initial-value: 15%; }
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(380px circle at var(--gx) var(--gy), color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%);
  animation: card-drift 12s ease-in-out infinite;
  transition: opacity .4s;
}
.card { animation: card-edge 12s ease-in-out infinite; }
/* each card starts at a different point of the loop, so they don't move in sync */
.card:nth-child(2), .card:nth-child(2)::after { animation-delay: -3s; }
.card:nth-child(3), .card:nth-child(3)::after { animation-delay: -6s; }
.card:nth-child(4), .card:nth-child(4)::after { animation-delay: -9s; }
@keyframes card-drift {
  0%, 100% { --gx: 18%;  --gy: 12%; }
  25%      { --gx: 88%;  --gy: 28%; }
  50%      { --gx: 72%;  --gy: 92%; }
  75%      { --gx: 12%;  --gy: 70%; }
}
@keyframes card-edge {
  0%, 100% { border-color: var(--line); }
  50%      { border-color: color-mix(in srgb, var(--accent) 38%, transparent); }
}
/* while the visitor hovers, the pointer glow leads and the border uses its hover colour */
.card:hover { animation: none; }
.card:hover::after { opacity: .35; }
.card__top { display: flex; justify-content: space-between; align-items: flex-start; }
.card__icon {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent);
  transform: translateZ(30px);
}
.card__icon .icon { width: 28px; height: 28px; }
.card__num { font-family: var(--font-display); font-weight: 700; color: var(--muted); font-size: .9rem; }
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.55rem; letter-spacing: -.02em; margin-bottom: .6rem; transform: translateZ(20px); }
.card p { color: var(--muted); }

.shop__feature { position: relative; margin-top: clamp(64px, 9vw, 120px); }
.shop__feature .photo--wide { border-radius: var(--radius-lg); }
@media (max-width: 767px) { .shop__feature .photo--wide { aspect-ratio: 4 / 3; } }
.badge {
  position: absolute; left: clamp(16px, 4vw, 56px); bottom: calc(clamp(110px, 13vw, 180px) / -2);
  width: clamp(110px, 13vw, 180px); aspect-ratio: 1; border-radius: 50%;
  background: var(--green); color: var(--bg); display: grid; place-items: center;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .6);
}
.badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.badge__ring text { fill: var(--bg); font-family: var(--font-display); font-weight: 700; font-size: 21px; } /* spacing comes from textLength */
.badge__mark { width: 46%; height: 46%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ========================= Wholesale ========================= */
.wholesale { padding: calc(var(--section-y) * .9) 0 var(--section-y); }
/* heading + call buttons on the left, the four benefits on the right (desktop);
   stacked heading -> benefits -> buttons on phones */
.wholesale__grid { display: grid; gap: 44px; grid-template-areas: "head" "features" "cta"; }
.wholesale__head { grid-area: head; }
.wholesale__head .lead { margin-top: 1.6rem; }
.wholesale__grid .features { grid-area: features; margin: 0; }
.wholesale__cta { grid-area: cta; }
@media (min-width: 1024px) {
  .wholesale__grid { grid-template-columns: 1fr 1.05fr; grid-template-areas: "head features" "cta features"; column-gap: 88px; row-gap: 40px; align-items: start; }
  .wholesale__grid .features { align-self: center; gap: 40px 40px; }
}
.features { display: grid; gap: 28px 32px; margin: 48px 0; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
.features li { display: flex; gap: 16px; }
.features__icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: rgba(124, 194, 67, .12); color: var(--green); }
.features h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-bottom: .3rem; letter-spacing: -.01em; }
.features p { color: var(--muted); font-size: .98rem; }

.wholesale__cta-note { color: var(--muted); margin-bottom: 1.2rem; }
.wholesale__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ========================= Distribution center ========================= */
.dc { padding: 0 0 var(--section-y); }
.dc__card {
  position: relative; overflow: hidden; display: grid; gap: 40px;
  padding: clamp(28px, 5vw, 72px); border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 90% at 100% 0%, rgba(124, 194, 67, .22), transparent 60%),
    radial-gradient(60% 70% at 0% 100%, rgba(214, 40, 40, .18), transparent 60%),
    var(--surface-3);
  border: 1px solid var(--line);
}
.dc__card > * { min-width: 0; }
@media (min-width: 1024px) { .dc__card { grid-template-columns: .82fr 1.18fr; align-items: center; gap: 56px; } }
/* scales with the screen on phones so the long word "дистрибутивен" always fits the card */
.dc__text .h2 { margin: 1.4rem 0 1.4rem; font-size: clamp(1.4rem, 7vw, 3rem); }
@media (min-width: 1024px) { .dc__text .h2 { font-size: clamp(1.9rem, 3vw, 3rem); } }
/* Also cap the size by the text column's own width ("cqi" = 1% of the column), so
   "дистрибутивен" (about 9.7x the font size wide) always fits, on every screen and with
   slightly wider fallback fonts. Browsers without container units keep the sizes above. */
.dc__text { container-type: inline-size; }
.dc__text .h2 { font-size: min(clamp(1.4rem, 7vw, 3rem), 9.6cqi); }
@media (min-width: 1024px) { .dc__text .h2 { font-size: min(clamp(1.9rem, 3vw, 3rem), 9.6cqi); } }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  background: rgba(246, 196, 69, .14); color: var(--sun);
  font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 0 rgba(246, 196, 69, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(246, 196, 69, 0); } 100% { box-shadow: 0 0 0 0 rgba(246, 196, 69, 0); } }
.dc__list { display: flex; flex-wrap: wrap; gap: 10px; margin: 2rem 0 2.4rem; }
.dc__list li {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px;
  border: 1px solid var(--line-strong); font-weight: 700; font-size: .95rem;
}
.dc__list .icon { color: var(--green); }
/* ---- Blueprint (technical drawing on blueprint paper) ---- */
.dc__visual {
  --bp-paper: #0A2540;
  --bp-ink: #CFE8FF;
  --bp-cyan: #7FD3FF;
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(8px, 1.4vw, 16px);
  border-radius: var(--radius);
  background-color: var(--bp-paper);
  background-image:
    linear-gradient(rgba(127, 211, 255, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 211, 255, .09) 1px, transparent 1px),
    linear-gradient(rgba(127, 211, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 211, 255, .04) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px, 12px 12px, 12px 12px;
  box-shadow: inset 0 0 0 1px rgba(127, 211, 255, .25), 0 30px 70px -25px rgba(0, 0, 0, .7);
}
.dc__visual::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(90% 80% at 50% 45%, transparent 50%, rgba(3, 14, 28, .55));
}
.blueprint { width: 100%; height: auto; overflow: visible; font-family: var(--font-body); }

.bp-grid__line { fill: none; stroke: rgba(207, 232, 255, .16); stroke-width: .6; }
.bp-axis { fill: none; stroke: rgba(127, 211, 255, .45); stroke-width: .8; }
.bp-bubble circle { fill: var(--bp-paper); stroke: var(--bp-cyan); stroke-width: 1.2; }
.bp-bubble__txt { fill: var(--bp-ink); font-size: 9.5px; font-weight: 800; }

.bp-line { fill: none; stroke: var(--bp-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.bp-line--thin { stroke-width: .9; opacity: .75; }
.bp-line--rack { stroke: var(--bp-cyan); stroke-width: .8; opacity: .7; }
.bp-line--slat { stroke-width: .7; opacity: .7; }
.bp-slab__fill { fill: rgba(127, 211, 255, .07); }
.bp-face { fill: rgba(127, 211, 255, .07); }
.bp-roof__back { fill: rgba(127, 211, 255, .05); }
.bp-roof__front { fill: rgba(127, 211, 255, .11); }
.bp-door__fill { fill: rgba(207, 232, 255, .14); }

.bp-crate path { stroke: rgba(10, 37, 64, .9); stroke-width: .6; stroke-linejoin: round; }
.bp-crate__slat { fill: none; }
.bp-crate--green .bp-crate__top { fill: #8FD14F; } .bp-crate--green .bp-crate__front { fill: #5AA832; } .bp-crate--green .bp-crate__side { fill: #3E7F22; }
.bp-crate--red .bp-crate__top { fill: #F0544A; } .bp-crate--red .bp-crate__front { fill: #D62828; } .bp-crate--red .bp-crate__side { fill: #9E1A1A; }
.bp-crate--sun .bp-crate__top { fill: #FFD966; } .bp-crate--sun .bp-crate__front { fill: #F6C445; } .bp-crate--sun .bp-crate__side { fill: #C99A22; }

.bp-note__leader { fill: none; stroke: var(--green); stroke-width: 1.2; }
.bp-note__dot { fill: var(--green); }
.bp-note__txt { fill: #fff; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; }

.bp-title__frame { fill: rgba(10, 37, 64, .85); stroke: var(--bp-ink); stroke-width: 1.2; }
.bp-title__rule { fill: none; stroke: rgba(207, 232, 255, .5); stroke-width: .8; }
.bp-title__brand { fill: #fff; font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .5px; }
.bp-title__txt { fill: var(--bp-ink); font-size: 10.5px; font-weight: 800; letter-spacing: 1px; }
.bp-title__small { fill: rgba(207, 232, 255, .7); font-size: 8.5px; font-weight: 700; letter-spacing: .8px; }
.bp-title__status { fill: var(--sun); font-size: 8.5px; font-weight: 800; letter-spacing: .8px; }

.bp-hud__txt { fill: rgba(207, 232, 255, .55); font-size: 10px; font-weight: 700; letter-spacing: 1px; font-variant-numeric: tabular-nums; }

.bp-stamp__outer { fill: none; stroke: var(--sun); stroke-width: 3; }
.bp-stamp__inner { fill: rgba(246, 196, 69, .1); stroke: var(--sun); stroke-width: 1.2; }
.bp-stamp__txt { fill: var(--sun); font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: 2px; }

.bp-scan { opacity: 0; pointer-events: none; }
.blueprint.is-built .bp-scan { opacity: 1; animation: bp-scan 3.2s linear infinite; }
@keyframes bp-scan { from { transform: translateY(0); } to { transform: translateY(530px); } }

.bp-stages {
  display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 4px 2px; padding: 0; list-style: none;
  counter-reset: stage;
}
.bp-stages li {
  counter-increment: stage; display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(207, 232, 255, .55); transition: color .3s;
}
.bp-stages li::before {
  content: counter(stage); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid currentColor; font-size: .66rem; transition: background-color .3s, color .3s, border-color .3s;
}
.bp-stages li.is-active { color: #7FD3FF; }
.bp-stages li.is-active::before { background: #7FD3FF; color: #0A2540; border-color: #7FD3FF; }
.bp-stages li.is-done { color: #CFE8FF; }
.bp-stages li.is-done::before { content: "✓"; background: var(--green); color: var(--bg); border-color: var(--green); }

/* ========================= Climax ========================= */
.climax {
  position: relative; min-height: 100svh; display: grid; place-content: center; text-align: center;
  padding: 120px var(--gutter);
}
.climax__words { display: grid; gap: .02em; }
.climax__word {
  display: block; font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(3rem, 13vw, 13.5rem); line-height: .92; letter-spacing: -.055em;
}
.climax__word--green { color: var(--green); }
.climax__word--red { color: var(--red-hi); }
.climax__sub { margin-top: 2rem; font-size: clamp(1.1rem, 1.6vw, 1.4rem); color: var(--muted); }

/* ========================= Gallery ========================= */
.gallery { padding: var(--section-y) 0 calc(var(--section-y) * .8); }
.gallery__cta { display: grid; gap: 24px; justify-items: start; }
/* Photo strip: full-bleed row of photo cards; JS duplicates the cards so it can loop endlessly */
.filmstrip {
  --fh: min(62vw, 300px);              /* height of a photo card */
  position: relative; margin-top: clamp(40px, 6vw, 72px);
  overflow: hidden;
}
@media (min-width: 768px) { .filmstrip { --fh: clamp(240px, 26vw, 360px); } }
.filmstrip__track { display: flex; width: max-content; }
/* each card carries half the gap on both sides, so the loop stays seamless */
.filmstrip__frame { display: block; flex: none; padding: 0 clamp(6px, .8vw, 10px); text-decoration: none; border-radius: var(--radius); }
.filmstrip__frame .photo {
  height: var(--fh); width: auto; aspect-ratio: 4 / 5;
  transition: transform .6s var(--ease-out);
}
.filmstrip__frame:hover .photo { transform: scale(.97); }
.filmstrip__frame .photo__media { inset: 0; } /* no parallax inside the film */
.filmstrip__frame .photo img { transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
.filmstrip__frame:hover .photo img { transform: scale(1.08); }
.filmstrip__frame:focus-visible { outline: none; }
.filmstrip__frame:focus-visible .photo { outline: 2px solid var(--green); outline-offset: 3px; }
/* reduced motion: no auto-run, the strip can be scrolled sideways instead */
.filmstrip.is-static { overflow-x: auto; }

/* ========================= Visit ========================= */
.visit { padding: var(--section-y) 0; }
.visit__grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .visit__grid { grid-template-columns: .9fr 1.1fr; gap: 24px; } }
.visit__info { display: grid; gap: 16px; }
.info-card {
  display: flex; gap: 20px; padding: 28px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--line);
}
.info-card__icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 16px; background: rgba(214, 40, 40, .14); color: var(--red-hi); }
.info-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin-bottom: .5rem; }
.info-card p { color: var(--muted); }
.info-card p + p, .info-card p + .link { margin-top: .5rem; }
.info-card .link { margin-top: .8rem; }
.hours div { display: flex; justify-content: space-between; gap: 24px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.hours div:last-child { border-bottom: 0; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.open-status { display: inline-flex; align-items: center; gap: 10px; margin-top: 1rem !important; font-weight: 700; color: var(--muted); }
.open-status i { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.open-status.is-open { color: var(--green); }
.open-status.is-open i { background: var(--green); animation: ping-green 2s infinite; }
@keyframes ping-green { 0% { box-shadow: 0 0 0 0 rgba(124, 194, 67, .6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(124, 194, 67, 0); } }
/* ---- animated map filling the whole section (see js/visitmap.js) ---- */
.visit { position: relative; overflow: hidden; border-radius: inherit; isolation: isolate; }
.visit > .container { position: relative; z-index: 2; }
.visit__map { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity .9s var(--ease-out); }
.visit__map.is-ready { opacity: 1; } /* set by visitmap.js once the tiles have loaded */
/* the map plane leans back in perspective; it is oversized so its far edge still covers the top */
.visit__map-plane {
  position: absolute; left: -50%; right: -50%; top: -120%; bottom: -12%;
  transform-origin: 50% 100%; background: #0E1410;
}
/* phones: the section is tall and narrow, so the far end needs extra width to cover the top corners */
@media (max-width: 899px) { .visit__map-plane { left: -130%; right: -130%; top: -160%; } }
.visit__map-plane.leaflet-container { background: #0E1410; font: inherit; }
/* OSM tiles turned into a dark, slightly green night map */
.visit__map-plane .leaflet-tile-pane { filter: invert(1) hue-rotate(185deg) brightness(1) contrast(.95) saturate(.4); }
/* fades: blend into the section at top and bottom, and darken behind the text column */
.visit__map::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    /* light tints only: the map shows edge to edge, top to bottom */
    linear-gradient(180deg, rgba(18, 24, 19, .35) 0%, rgba(18, 24, 19, .08) 45%, rgba(18, 24, 19, .3) 100%),
    linear-gradient(90deg, rgba(14, 20, 16, .4) 0%, rgba(14, 20, 16, .15) 45%, transparent 65%);
}
.visit__map-overlay { position: absolute; inset: 0; z-index: 2; }
/* blurred map behind the text (the left side on desktop, everything above the logo on phones).
   It's a static, soft copy of the map laid over the sharp one and faded in with a mask;
   see js/visitmap.js. No backdrop-filter: that would re-blur on every animation frame. */
.visit__map-blur {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(to top, transparent 0, transparent 480px, #000 640px);
  mask-image: linear-gradient(to top, transparent 0, transparent 480px, #000 640px);
}
.visit__map-blur-inner {
  position: absolute; left: 0; top: 0; width: 25%; height: 25%;
  transform: scale(4); transform-origin: 0 0;   /* 1/4-size map at zoom-2, scaled back up */
  filter: blur(1.6px);                          /* x4 on screen: a soft ~6px blur */
}
@media (min-width: 900px) {
  .visit__map-blur {
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 40%, transparent 58%);
    mask-image: linear-gradient(90deg, #000 0, #000 40%, transparent 58%);
  }
}
.visit__credit {
  position: absolute; right: 14px; bottom: 10px; z-index: 4;
  font-size: .7rem; color: rgba(243, 239, 230, .45); text-decoration: none;
}
.visit__credit:hover { color: var(--text); }
/* info cards: slightly see-through over the (already blurred) map; no backdrop-filter,
   which would have to re-blur every time a walker passes underneath */
.visit .info-card { background: rgba(22, 30, 24, .8); }
/* the welcome line as a chat bubble "said" by the shop: the logo's green banner colours,
   with the tail pointing down towards the hopping logo */
.visit__bubble {
  position: relative; justify-self: start; max-width: 26rem;
  padding: 18px 24px 20px; border-radius: 24px 24px 24px 6px;
  background: linear-gradient(180deg, #BEDD7C 0%, #92C75B 100%);
  color: #16290F; font-weight: 600; line-height: 1.55;
  box-shadow: 0 18px 36px -10px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.visit__bubble::after {
  content: ""; position: absolute; left: 0; bottom: -15px; width: 26px; height: 16px;
  background: #92C75B; clip-path: polygon(0 0, 100% 0, 0 100%);
}
/* the area where the logo hops (right column on desktop, below the cards on phones) */
.visit__stage { position: relative; min-height: 360px; }
@media (min-width: 900px) { .visit__stage { min-height: 460px; } }
/* centred with auto margins, not a transform: the magnetic hover effect animates transform */
.visit__map-btn { position: absolute; left: 0; right: 0; bottom: 8px; margin-inline: auto; width: max-content; z-index: 2; }

/* the logo on the shop's spot: hops in place with a squash and stretch, shadow and a ground ping */
.map-logo { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; will-change: transform; }
.map-logo__hop {
  position: absolute; left: -85px; bottom: 0; width: 170px; height: 170px;
  transform-origin: 50% 100%; animation: logo-hop 1.5s cubic-bezier(.45, 0, .55, 1) infinite;
  will-change: transform; /* the hop runs on the GPU; the ground shadow below replaces a costly drop-shadow filter */
}
.map-logo__hop svg { display: block; width: 100%; height: 100%; }
.map-logo__shadow {
  position: absolute; left: -54px; top: -13px; width: 108px; height: 26px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .6), transparent);
  animation: logo-hop-shadow 1.5s cubic-bezier(.45, 0, .55, 1) infinite;
}
.map-logo__ping {
  position: absolute; left: -66px; top: -22px; width: 132px; height: 44px; border-radius: 50%;
  border: 2px solid rgba(124, 194, 67, .7); animation: logo-ping 2.4s ease-out infinite;
}
@keyframes logo-hop {
  0%, 100% { transform: translateY(0) scale(1.1, .88); }
  12% { transform: translateY(-6px) scale(.94, 1.07); }
  45% { transform: translateY(-38px) scale(1, 1); }
  78% { transform: translateY(-6px) scale(.97, 1.04); }
  90% { transform: translateY(0) scale(1.06, .93); }
}
@keyframes logo-hop-shadow {
  0%, 100% { transform: scale(1.05); opacity: 1; }
  45% { transform: scale(.6); opacity: .45; }
}
@keyframes logo-ping { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

/* the little walkers: feet sit on the projected point; legs swing, body bobs */
.walker { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; opacity: 0; will-change: transform, opacity; }
.walker__body {
  position: absolute; left: -11px; bottom: 0; width: 22px; height: 44px;
  transform: scaleX(var(--flip, 1)); transform-origin: 50% 100%;
}
.walker__body svg { display: block; width: 100%; height: 100%; animation: walker-bob var(--step, .45s) ease-in-out infinite alternate; }
.walker__shadow { position: absolute; left: -10px; top: -4px; width: 20px; height: 8px; border-radius: 50%; background: rgba(0, 0, 0, .45); }
.walker__leg { transform-box: fill-box; transform-origin: 50% 0; animation: walker-leg var(--step, .45s) ease-in-out infinite alternate; }
.walker__leg--b { animation-direction: alternate-reverse; }
.walker.is-still .walker__leg, .walker.is-still svg { animation: none; }
.walker.is-still { opacity: 1; }
@keyframes walker-leg { from { transform: rotate(26deg); } to { transform: rotate(-26deg); } }
@keyframes walker-bob { from { transform: translateY(0); } to { transform: translateY(-1.5px); } }

/* ========================= Footer ========================= */
.footer { padding: clamp(80px, 10vw, 140px) 0 32px; overflow: hidden; }
/* Same lettering as the logo: Pacifico script, logo cream (#FFFDE7) */
.footer__word {
  font-family: Pacifico, 'Brush Script MT', cursive; font-weight: 400; white-space: nowrap;
  font-size: clamp(2.6rem, 11.4vw, 13rem); line-height: 1.45; letter-spacing: 0;
  background: linear-gradient(180deg, #FFFDE7 40%, rgba(255, 253, 231, .12));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  /* background-clip:text only paints inside the box: the padding gives the long
     descenders of ј and ц room, and the negative margin keeps the spacing the same */
  padding-bottom: .4em; margin-bottom: calc(clamp(48px, 7vw, 96px) - .4em);
}
/* JS sizes the font so this span exactly fills the content width (equal side margins);
   padding absorbs the last letter's negative tracking so it isn't clipped. */
.footer__word span { display: inline-block; }
/* three centred columns (navigation, contact, social): stacked on phones, side by side from tablet up */
.footer__grid {
  display: grid; gap: 36px; justify-items: center; text-align: center;
  padding-bottom: 48px; border-bottom: 1px solid var(--line);
}
.footer ul { justify-items: center; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
@media (max-width: 767px) {
  .footer__bottom { flex-direction: column; align-items: center; text-align: center; }
}
.footer__title { font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--green); margin-bottom: 1rem; }
.footer ul { display: grid; gap: 4px; }
.footer ul a, .footer ul span { display: inline-flex; align-items: center; min-height: 36px; color: var(--muted); text-decoration: none; transition: color .25s; }
.footer ul a:hover { color: var(--text); }
.social {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line-strong); text-decoration: none; font-weight: 700;
  transition: background-color .25s, border-color .25s;
}
.social:hover { background: rgba(243, 239, 230, .08); border-color: var(--text); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; color: var(--muted); font-size: .9rem; }
.footer__bottom p { margin: 0; }
/* legal links sit in the middle of the bottom row (centred, stacked, on phones) */
.footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; }
.footer__legal a { color: var(--muted); text-decoration: none; transition: color .25s; }
.footer__legal a:hover { color: var(--text); }
@media (min-width: 768px) {
  /* equal outer columns keep the legal links exactly in the middle */
  .footer__bottom { display: grid; grid-template-columns: 1fr auto 1fr; }
  .footer__bottom > :last-child { justify-self: end; }
}

/* ========================= Responsive ========================= */
@media (max-width: 1023px) {
  .nav { display: none; }
  .menu-btn { display: block; }
}
@media (max-width: 767px) {
  .site-header__cta { display: none; }
  .hero { align-items: flex-start; padding-top: 112px; padding-bottom: 40vh; }
  .hero__meta { position: relative; z-index: 1; }
  .hero__meta { margin-top: 1.8rem; gap: 8px 18px; font-size: .88rem; }
  .scroll-cue { display: none; }
  .hero__bgword { top: auto; bottom: 8%; font-size: 34vw; }
  .visit__map-btn { bottom: 0; }
}
@media (min-width: 1024px) {
  .menu { display: none; }
}

/* ========================= Reduced motion ========================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js .loader { display: none; }
}
