/* ============================================================
   ЛЕЗВИЕ 2.0 — Design C "ДВИЖЕНИЕ"
   Editorial, motion-rich barbershop landing page
   ============================================================ */

/* ---------- Custom Properties ---------- */
:root {
  /* Palette — deeper, more defined */
  --color-bg:         #F2EFEA;
  --color-bg-light:   #FAF8F4;
  --color-dark:       #1F1C19;
  --color-dark-warm:  #15110E;
  --color-text:       #2A2724;
  --color-text-muted: #6E6863;

  /* Accent — richer copper */
  --color-accent:       #B8653C;
  --color-accent-hover: #9E4E2A;
  --color-accent-soft:  rgba(184, 101, 60, 0.12);

  /* Gold — unified palette */
  --color-gold:       #C9A96E;
  --color-gold-deep:  #8C6A30;
  --color-gold-light: #E2C88C;

  /* Shadows — warm tint, layered */
  --shadow-sm:  0 1px 2px rgba(31, 28, 25, 0.06);
  --shadow-md:  0 4px 16px rgba(31, 28, 25, 0.08), 0 1px 3px rgba(31, 28, 25, 0.05);
  --shadow-lg:  0 12px 40px rgba(31, 28, 25, 0.14), 0 4px 12px rgba(31, 28, 25, 0.06);
  --shadow-accent: 0 8px 28px rgba(184, 101, 60, 0.32);
  --shadow-warm:   0 6px 30px rgba(21, 17, 14, 0.55);

  /* Typography */
  --font-heading: 'Oswald', sans-serif;
  --font-body:    'Lora', serif;

  /* Structure */
  --nav-height:    72px;
  --container-max: 1280px;
  --container-pad: 24px;

  /* Easing — cinematic curves */
  --ease-out-expo:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-soft:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth:    cubic-bezier(0.4, 0, 0.2, 1);

  /* Contract aliases — ALL NEW code uses these; existing code keeps --ease-out-expo */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);    /* = --ease-soft, promoted to contract default */
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);    /* exits only: lightbox close, drawer close, img swap-out */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);/* HARD CAP 3 uses: burger X, magnetic release, lightbox arrows */

  /* Timings — duration scale (contract) */
  --t-press:  0.1s;   /* :active compress */
  --t-fast:   0.15s;  /* hover color/opacity flips */
  --t-base:   0.2s;   /* default small UI */
  --t-modal:  0.3s;   /* overlay open/close */
  --t-slow:   0.7s;   /* word/char reveals */
  --t-reveal: 1.1s;   /* scroll reveals */

  /* Glow (lamp + spotlight share it) */
  --glow-gold: rgba(201, 169, 110, 0.09);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-dark-warm);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: opacity 0.6s var(--ease-out-expo);
}

/* Hidden state scoped under html.js — no-JS never hides content */
html.js body {
  opacity: 0;
}

html.js body.is-ready {
  opacity: 1;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* ---------- Selection ---------- */
::selection {
  background-color: var(--color-accent);
  color: var(--color-bg-light);
}

/* ---------- Focus ring — no animation, instant ---------- */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Custom scrollbar ---------- */
html {
  scrollbar-color: var(--color-accent) var(--color-dark-warm);
  scrollbar-width: thin;
}
html::-webkit-scrollbar       { width: 10px; }
html::-webkit-scrollbar-track { background: var(--color-dark-warm); }
html::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border: 2px solid var(--color-dark-warm);
  border-radius: 10px;
}
html::-webkit-scrollbar-thumb:hover { background: var(--color-accent-hover); }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ---------- Section Title ---------- */
.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 3rem;
  color: var(--color-dark);
}

/* ============================================================
   SCROLL ANIMATION ENGINE — cinematic reveal
   ============================================================ */
[data-animate] {
  will-change: opacity, transform, filter;
}

html.js [data-animate="fade-up"] {
  opacity: 0;
  transform: translate3d(0, 36px, 0) scale(0.985);
  filter: blur(6px);
  transition:
    opacity    var(--t-reveal) var(--ease-out-expo),
    transform  var(--t-reveal) var(--ease-out-expo),
    filter     0.85s           var(--ease-out-expo);
}
html.js [data-animate="fade-up"].visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

html.js [data-animate="fade-in"] {
  opacity: 0;
  filter: blur(4px);
  transition:
    opacity var(--t-reveal) var(--ease-out-expo),
    filter  0.75s           var(--ease-out-expo);
}
html.js [data-animate="fade-in"].visible {
  opacity: 1;
  filter: blur(0);
}

html.js [data-animate="slide-left"] {
  opacity: 0;
  transform: translate3d(-56px, 0, 0);
  filter: blur(5px);
  transition:
    opacity   var(--t-reveal) var(--ease-out-expo),
    transform var(--t-reveal) var(--ease-out-expo),
    filter    0.8s            var(--ease-out-expo);
}
html.js [data-animate="slide-left"].visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

html.js [data-animate="slide-right"] {
  opacity: 0;
  transform: translate3d(56px, 0, 0);
  filter: blur(5px);
  transition:
    opacity   var(--t-reveal) var(--ease-out-expo),
    transform var(--t-reveal) var(--ease-out-expo),
    filter    0.8s            var(--ease-out-expo);
}
html.js [data-animate="slide-right"].visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

/* After reveal, release will-change to save memory */
[data-animate].visible {
  will-change: auto;
}

/* ---------- New reveal variants ---------- */

/* words / chars — parent hides until split to avoid FOUC; RM kill-switch rescues it */
html.js [data-animate="words"]:not(.split),
html.js [data-animate="chars"]:not(.split) { opacity: 0; }
html.js [data-animate="words"] .word,
html.js [data-animate="chars"] .char {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 0.35em, 0);
  filter: blur(8px);
  transition:
    opacity   var(--t-slow) var(--ease-out-expo),
    transform var(--t-slow) var(--ease-out-expo),
    filter    0.5s          var(--ease-out-expo);
}
html.js [data-animate="words"].visible .word { transition-delay: calc(var(--i) * 60ms); }
html.js [data-animate="chars"].visible .char { transition-delay: calc(var(--i) * 70ms); }
html.js [data-animate].visible .word,
html.js [data-animate].visible .char {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* card-rise (services) */
html.js [data-animate="card-rise"] {
  opacity: 0;
  transform: translate3d(0, 48px, 0) scale(0.96);
  filter: blur(4px);
  transition:
    opacity   0.9s  var(--ease-out-expo),
    transform 0.9s  var(--ease-out-expo),
    filter    0.65s var(--ease-out-expo);
}

/* zoom-in (gallery inner) — --edit-offset carries the editorial nth-child offsets */
html.js [data-animate="zoom-in"] {
  opacity: 0;
  transform: translate3d(0, calc(var(--edit-offset, 0px) + 24px), 0) scale(0.94);
  filter: blur(6px);
  transition:
    opacity   1s   var(--ease-out-expo),
    transform 1s   var(--ease-out-expo),
    filter    0.7s var(--ease-out-expo);
}
html.js [data-animate="zoom-in"].visible {
  transform: translate3d(0, var(--edit-offset, 0px), 0) scale(1);
}

/* line (footer rule, hairlines) */
html.js [data-animate="line"] {
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 1s var(--ease-out-expo);
}

/* shared resolve for new variants */
html.js [data-animate].visible {
  opacity: 1;
  filter: blur(0);
}
html.js [data-animate="card-rise"].visible { transform: none; }
html.js [data-animate="line"].visible { transform: scaleX(1); }

/* rise — animation-driven fade-up twin for elements with their own hover/press
   transforms (CTA button, socials). The from-only keyframe self-expires, so the
   magnetic/hover engine keeps full ownership of transform afterwards. */
html.js [data-animate="rise"]:not(.visible) {
  opacity: 0;
}
html.js [data-animate="rise"].visible {
  animation: riseIn var(--t-reveal) var(--ease-out-expo) var(--reveal-delay, 0s) backwards;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translate3d(0, 36px, 0) scale(0.985);
    filter: blur(6px);
  }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition:
    background-color 0.5s var(--ease-smooth),
    backdrop-filter  0.5s var(--ease-smooth),
    border-color     0.5s var(--ease-smooth),
    box-shadow       0.5s var(--ease-smooth),
    opacity          0.6s var(--ease-out-expo) 0.15s,
    transform        0.6s var(--ease-out-expo) 0.15s;
  background-color: transparent;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
}

/* Load choreography — nav drops in at ~150ms */
html.js .nav {
  opacity: 0;
  transform: translateY(-16px);
}

html.js body.is-ready .nav {
  opacity: 1;
  transform: none;
}

.nav--solid {
  /* Matches the УСЛУГИ block (--color-dark-warm) — no white bar on scroll */
  background-color: rgba(21, 17, 14, 0.9);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-top-color: rgba(201, 169, 110, 0.14);
  border-bottom-color: rgba(201, 169, 110, 0.1);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav__logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.15em;
  color: var(--color-bg-light);
  transition:
    color               0.5s var(--ease-smooth),
    transform           0.4s var(--ease-out-expo),
    background-position 0.6s var(--ease-out);
}

.nav__logo:hover {
  transform: translateY(-1px);
  background-position: 0% 0;
}

.nav__logo:active {
  transform: translateY(0) scale(0.97);
  transition-duration: var(--t-press);
}

.nav--solid .nav__logo {
  color: var(--color-bg-light);
}

/* One-shot gold sheen on logo hover — gradient text, light band sweeps through */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .nav__logo {
    --logo-ink: var(--color-bg-light);
    color: transparent;
    background-image: linear-gradient(100deg,
      var(--logo-ink) 45%,
      var(--color-gold-light) 50%,
      var(--logo-ink) 55%);
    background-size: 300% 100%;
    background-position: 100% 0;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
  }

  .nav--solid .nav__logo {
    --logo-ink: var(--color-bg-light);
    color: transparent;
  }
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-bg-light);
  transition:
    color     0.4s var(--ease-smooth),
    transform var(--t-press) var(--ease-smooth);
  position: relative;
  padding: 4px 0;
}

.nav__link:active {
  transform: translateY(1px);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.4s var(--ease-out-expo);
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
  transform: translateX(-50%) scaleX(1);
}

.nav--solid .nav__link {
  color: var(--color-bg-light);
}

/* Scroll-spy — the hover underline doubles as wayfinding */
.nav__link--active {
  color: var(--color-gold-light);
}

.nav--solid .nav__link--active {
  color: var(--color-gold-light);
}

.nav__link--active::after {
  transform: translateX(-50%) scaleX(1);
  background-color: var(--color-gold);
}

.nav__cta {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 24px;
  background-color: var(--color-accent);
  color: #fff;
  border-radius: 2px;
  transition:
    background-color 0.35s var(--ease-smooth),
    transform        0.35s var(--ease-out-expo),
    box-shadow       0.4s  var(--ease-out-expo);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.nav__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.8s var(--ease-out-expo);
}

.nav__cta:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.nav__cta:hover::before {
  transform: translateX(100%);
}

.nav__cta:active {
  transform: translateY(0) scale(0.97);
  transition-duration: var(--t-press);
  transition-timing-function: var(--ease-smooth);
}

/* Touch tap fires the same shine sweep hover produces */
.nav__cta.is-pressed::before {
  animation: navCtaShine 0.8s var(--ease-out-expo);
}

@keyframes navCtaShine {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  z-index: 1001;
}

.nav__burger span {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--color-bg-light);
  transition:
    transform        0.4s var(--ease-spring), /* spring use 1 of 3 — the X snaps shut */
    opacity          0.25s,
    background-color 0.5s var(--ease-smooth);
  margin: 0 auto;
}

.nav--solid .nav__burger span {
  background-color: var(--color-bg-light);
}

.nav__burger.active span:nth-child(1) { transform: translateY(7px)  rotate(45deg); }
.nav__burger.active span:nth-child(2) { opacity: 0; transform: scaleX(0.4); }
.nav__burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Scroll progress razor line — position feedback, stays under RM */
.nav__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--color-gold-deep), var(--color-gold), var(--color-gold-light));
  opacity: 0;
  transition: opacity 0.5s var(--ease-smooth);
  pointer-events: none;
}

.nav--solid .nav__progress {
  opacity: 1;
}

/* Engine 1: scroll-driven animation; JS rAF fallback writes scaleX when unsupported */
@supports (animation-timeline: scroll()) {
  .nav__progress {
    animation: growX linear both;
    animation-timeline: scroll(root);
  }
}

@keyframes growX {
  to { transform: scaleX(1); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-dark-warm);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: kenburns 32s ease-in-out infinite alternate;
  will-change: transform;
}

/* Focus pull waits for body.is-ready — pre-blurred until then */
html.js .hero__bg {
  filter: blur(var(--focus-blur, 14px)) brightness(0.72);
}

html.js body.is-ready .hero__bg {
  animation:
    kenburns  32s  ease-in-out infinite alternate,
    heroFocus 1.4s var(--ease-out-expo) both;
}

@keyframes kenburns {
  from { transform: scale(1)    translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(-1%, -1%, 0); }
}

/* Focus pull — the opening shot racks into focus */
@keyframes heroFocus {
  from { filter: blur(var(--focus-blur, 14px)) brightness(0.72); }
  to   { filter: blur(0) brightness(1); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%),
    linear-gradient(
      to bottom,
      rgba(21,17,14,0.45) 0%,
      rgba(21,17,14,0.22) 40%,
      rgba(21,17,14,0.70) 78%,
      rgba(21,17,14,0.95) 94%,
      rgba(21,17,14,1.00) 100%
    );
}

/* Bleed band — photo dissolves into services color over ~14vh */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14vh;
  background: linear-gradient(to bottom, rgba(21,17,14,0) 0%, var(--color-dark-warm) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--container-pad);
  max-width: 820px;
}

/* Gold hairline under the tagline — draws in at ~1.15s */
.hero__content::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -1.75rem;
  width: 180px;
  margin-left: -90px;
  height: 1px;
  background: linear-gradient(90deg, var(--color-gold-deep), var(--color-gold) 55%, transparent);
  transform: scaleX(1);
  transform-origin: left;
}

html.js .hero__content::after {
  transform: scaleX(0);
}

html.js body.is-ready .hero__content::after {
  animation: heroHairline 0.9s var(--ease-out-expo) 1.15s both;
}

@keyframes heroHairline {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.hero__tagline {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.4rem, 3.5vw, 2.6rem);
  line-height: 1.4;
  color: var(--color-bg-light);
  letter-spacing: 0.04em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.hero__tagline .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
  filter: blur(8px);
}

/* Word stagger starts when the curtain opens (is-ready), not at load */
body.is-ready .hero__tagline .word {
  animation: wordReveal 0.9s var(--ease-out-expo) forwards;
}

@keyframes wordReveal {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Brand word "ЛЕЗВИЕ." — shiny gold text; first sweep at 1.6s, then every 9s */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__tagline .word--brand {
    background-image: linear-gradient(100deg,
      var(--color-gold) 45%,
      var(--color-gold-light) 50%,
      var(--color-gold) 55%);
    background-size: 300% 100%;
    background-position: 100% 0;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  body.is-ready .hero__tagline .word--brand {
    animation:
      wordReveal 0.9s var(--ease-out-expo) forwards,
      brandSheen 9s   linear infinite;
  }
}

@keyframes brandSheen {
  0%    { background-position: 100% 0; }
  13.3% { background-position: 0% 0; }
  100%  { background-position: 0% 0; }
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--color-bg-light);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__scroll-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.85;
  transition:
    opacity   var(--t-base) var(--ease-out),
    transform var(--t-base) var(--ease-out);
}

.hero__scroll-link:hover {
  opacity: 1;
  transform: translateY(3px);
}

.hero__scroll-indicator svg {
  animation: scrollBounce 2.2s var(--ease-smooth) infinite;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0);    opacity: 0.8; }
  50%      { transform: translateY(10px); opacity: 1;   }
}

/* ============================================================
   SERVICES — Dark section
   ============================================================ */
.services {
  padding: 5rem 0;
  background-color: var(--color-dark-warm);
  color: #E8E4DE;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

.services::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(184, 101, 60, 0.05), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(21, 17, 14, 0.8), transparent 70%);
  pointer-events: none;
}

.services > .container {
  position: relative;
  z-index: 1;
}

.services__label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-top: 2.5rem; /* sits below the hook now — header of the price ledger */
  margin-bottom: 0.75rem;
  text-align: center;
}

.services__headline {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  text-align: center;
  color: #F0ECE5;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
  position: relative;
}

/* Lamp Glow — single overhead barbershop lamp pools onto the headline */
.services__headline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -150px;
  width: 480px;
  height: 220px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow-gold), transparent);
  filter: blur(60px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.4s var(--ease-out-expo) 0.2s;
}

.services__headline.visible::before {
  opacity: 0.85;
}

.services__subtext {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(232, 228, 222, 0.55);
  text-align: center;
  margin-bottom: 3rem;
}

/* Editorial ledger — full-width typographic menu rows, no cards */
.services__ledger {
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid rgba(201, 169, 110, 0.18);
}

.services__row {
  position: relative;
  border-bottom: 1px solid rgba(201, 169, 110, 0.18);
}

.services__row--birthday {
  border-radius: 2px;
}

/* Hover focuses one row — the rest fall back. Dim lives on the children so it
   never fights the reveal engine's opacity transition on the row itself */
@media (hover: hover) and (pointer: fine) {
  .services__ledger:hover .services__row:not(:hover) .services__row-head,
  .services__ledger:hover .services__row:not(:hover) .services__desc-wrap {
    opacity: 0.4;
  }
}

.services__row-heading {
  margin: 0;
}

.services__row-head {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  width: 100%;
  padding: 1.75rem 0.5rem;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  transition:
    opacity   0.45s var(--ease-smooth),
    transform 0.45s var(--ease-out-expo);
}

/* Press — the ledger's tactile beat */
.services__row-head:active {
  transform: scale(0.995);
  transition-duration: var(--t-press);
}

.services__number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-accent);
  opacity: 0.55;
  user-select: none;
  transition:
    opacity   0.4s var(--ease-smooth),
    transform 0.4s var(--ease-out-expo);
}

/* 0.05s delay — row hover → number brighten reads cause → effect */
.services__row-head:hover .services__number {
  opacity: 1;
  transform: translateY(-2px);
  transition-delay: 0.05s;
}

.services__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.1rem, 2.6vw, 1.65rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #F0ECE5;
  transition: color 0.4s var(--ease-smooth);
}

.services__row-head:hover .services__name {
  color: var(--color-gold-light);
}

/* Dotted gold leader — draws itself toward the price when the row lands */
.services__leader {
  flex: 1;
  align-self: center;
  height: 2px;
  min-width: 2rem;
  background-image: radial-gradient(circle, rgba(201, 169, 110, 0.55) 1px, transparent 1.5px);
  background-size: 10px 2px;
  background-repeat: repeat-x;
  background-position: 0 50%;
}

html.js .services__leader {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease-out-expo) calc(var(--reveal-delay, 0s) + 0.3s);
}

html.js .services__row.visible .services__leader {
  transform: scaleX(1);
}

.services__price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Description — accordion via grid-rows. The one deliberate layout animation:
   an accordion IS a layout change; 0fr→1fr keeps it contained and smooth.
   Opens on hover (fine pointers), tap/click (is-open), and keyboard focus. */
.services__desc-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition:
    grid-template-rows 0.5s  var(--ease-out-expo),
    opacity            0.45s var(--ease-smooth);
}

.services__row.is-open .services__desc-wrap,
.services__row:focus-within .services__desc-wrap {
  grid-template-rows: 1fr;
}

@media (hover: hover) and (pointer: fine) {
  .services__row:hover .services__desc-wrap {
    grid-template-rows: 1fr;
  }
}

.services__desc {
  min-height: 0;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(232, 228, 222, 0.58);
  max-width: 620px;
  padding: 0 0.5rem 1.6rem;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity   0.45s var(--ease-smooth)   0.08s,
    transform 0.45s var(--ease-out-expo) 0.08s;
}

.services__row.is-open .services__desc,
.services__row:focus-within .services__desc {
  opacity: 1;
  transform: none;
}

@media (hover: hover) and (pointer: fine) {
  .services__row:hover .services__desc {
    opacity: 1;
    transform: none;
  }
}

.services__row--birthday .services__number {
  opacity: 0.85;
}

/* Border Beam — the page's one continuous ambient effect (birthday row only) */
@property --beam-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.services__row--birthday .beam {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  opacity: 0.7;
  background: conic-gradient(from var(--beam-angle),
              transparent 0 340deg, var(--color-gold-light) 355deg, var(--color-gold) 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: beam 7s linear infinite paused;
}

/* Runs only revealed AND on-screen (JS IO toggles .services--inview — battery) */
.services--inview .services__row--birthday.visible .beam {
  animation-play-state: running;
}

@keyframes beam {
  to { --beam-angle: 360deg; }
}

/* No @property (Safari <16.4, detected in JS) — degrade to a static gold border */
html.no-at-property .services__row--birthday .beam {
  background: none;
  animation: none;
  box-shadow: inset 0 0 0 1px rgba(201, 169, 110, 0.4);
}

/* ============================================================
   BARBERS — Dark section, refined gold frames
   ============================================================ */
.barbers {
  padding: 5rem 0;
  background-color: var(--color-dark-warm);
  color: #E8E4DE;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 700px;
}

.barbers::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(184, 101, 60, 0.05), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(21, 17, 14, 0.8), transparent 70%);
  pointer-events: none;
}

.barbers > .container {
  position: relative;
  z-index: 1;
}

.barbers__label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  text-align: center;
}

.barbers__headline {
  font-family: var(--font-body);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  text-align: center;
  color: #F0ECE5;
  margin-bottom: 3rem;
}

.barbers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.barbers__portrait {
  text-align: center;
  transition: transform 0.6s var(--ease-out-expo);
}

.barbers__portrait:hover {
  transform: translateY(-6px);
}

/* Touch press — the img zoom does NOT fire on touch, the lift does */
.barbers__portrait:active {
  transform: translateY(-2px) scale(0.995);
  transition-duration: 0.15s;
}

.barbers__frame {
  position: relative;
  padding: 6px;
  background:
    linear-gradient(
      135deg,
      var(--color-gold-light) 0%,
      var(--color-gold)       22%,
      var(--color-gold-deep)  50%,
      var(--color-gold)       78%,
      var(--color-gold-light) 100%
    );
  border-radius: 4px;
  box-shadow:
    var(--shadow-warm),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.6s var(--ease-out-expo);
}

.barbers__portrait:hover .barbers__frame {
  box-shadow:
    0 18px 44px rgba(21, 17, 14, 0.65),
    0 0 0 1px rgba(201, 169, 110, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.barbers__frame::before {
  content: '';
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(201, 169, 110, 0.45);
  border-radius: 3px;
  pointer-events: none;
  z-index: 1;
}

.barbers__img-wrap {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
  border-radius: 2px;
  background-color: #2A2622;
}

.barbers__img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 55%,
    rgba(21, 17, 14, 0.55) 100%
  );
  pointer-events: none;
  /* 0.9s — vignette resolves after the zoom starts, same focus-pull signature */
  transition: opacity 0.9s var(--ease-out-expo);
}

.barbers__portrait:hover .barbers__img-wrap::after {
  opacity: 0.55;
}

.barbers__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* zooms anchor near the face line so heads never leave the frame
     during the curtain settle or hover */
  transform-origin: 50% 25%;
  object-position: 50% 20%;
  transition: transform 1.2s var(--ease-out-expo), filter 0.6s var(--ease-out-expo);
  filter: saturate(0.92);
}

/* Img zoom is hover-only — suppressed on touch (press lift covers it) */
@media (hover: hover) {
  .barbers__portrait:hover .barbers__img-wrap img {
    transform: scale(1.06);
    filter: saturate(1);
  }
}

.barbers__name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 228, 222, 0.75);
  margin-top: 1.1rem;
  transition:
    color     0.4s var(--ease-out-expo),
    transform 0.4s var(--ease-out-expo);
}

/* The name answers the frame — staggered causality (0.08s) */
.barbers__portrait:hover .barbers__name {
  color: var(--color-gold);
  transform: translateY(-2px);
  transition-delay: 0.08s;
}

/* ---------- Gold Curtain Reveal — FLAGSHIP entrance ---------- */
/* Transform-only pseudo-element sweep; --reveal-delay carries the portrait's
   data-delay onto the descendants (80ms left→right stagger) */
html.js .barbers__img-wrap::before {
  content: '';
  position: absolute;
  inset: -1%;
  z-index: 2;
  background: linear-gradient(160deg, var(--color-gold-deep), var(--color-gold) 55%, var(--color-gold-light));
  transform: translateY(0);
  transition: transform 0.9s var(--ease-out-expo);
  transition-delay: var(--reveal-delay, 0s);
  will-change: transform;
}

html.js [data-animate="curtain"].visible .barbers__img-wrap::before {
  transform: translateY(-102%);
  will-change: auto;
}

/* Pre-reveal: img zoomed + desaturated behind the curtain, nameplate hidden */
html.js [data-animate="curtain"]:not(.visible) .barbers__img-wrap img {
  transform: scale(1.18);
  filter: saturate(0.7) brightness(0.85);
}

html.js [data-animate="curtain"]:not(.visible) .barbers__name {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
}

/* Reveal beats — one-shot keyframes (from-only: they land on the natural style
   and self-expire, so hover transforms/transitions stay untouched afterwards):
   1. curtain lifts (0.9s)  2. img drifts into place (1.3s)  3. nameplate +0.5s */
html.js [data-animate="curtain"].visible .barbers__img-wrap img {
  animation: curtainImg 1.3s var(--ease-out-expo) var(--reveal-delay, 0s) backwards;
}

html.js [data-animate="curtain"].visible .barbers__name {
  animation: curtainName 0.5s var(--ease-out) calc(var(--reveal-delay, 0s) + 0.5s) backwards;
}

@keyframes curtainImg {
  from { transform: scale(1.18); filter: saturate(0.7) brightness(0.85); }
}

@keyframes curtainName {
  from { opacity: 0; transform: translate3d(0, 10px, 0); }
}

.barbers__caption {
  text-align: center;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(232, 228, 222, 0.5);
  letter-spacing: 0.02em;
  max-width: 500px;
  margin: 0 auto;
}

/* ============================================================
   REVIEWS — Dark section, single-card shuffle carousel
   ============================================================ */
.reviews {
  padding: 5rem 0 5.5rem;
  background-color: var(--color-dark-warm);
  color: #E8E4DE;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 560px;
}

.reviews::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201, 169, 110, 0.06), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(21, 17, 14, 0.8), transparent 70%);
  pointer-events: none;
}

.reviews > .container {
  position: relative;
  z-index: 1;
}

.reviews__label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  text-align: center;
}

.reviews__headline {
  font-family: var(--font-body);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  text-align: center;
  color: #F0ECE5;
  margin-bottom: 3rem;
}

.reviews__stage {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 680px;
  margin: 0 auto;
}

.reviews__track {
  position: relative;
  flex: 1;
  min-height: 220px;
}

.reviews__card {
  background-color: #1C1814;
  border: 1px solid rgba(201, 169, 110, 0.14);
  border-radius: 2px;
  padding: 2.5rem 2.75rem;
  text-align: center;
}

.reviews__stars {
  color: var(--color-gold);
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  margin-bottom: 1.1rem;
}

.reviews__text {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.65;
  color: #EFEBE4;
  margin-bottom: 1.5rem;
}

.reviews__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.reviews__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 228, 222, 0.7);
}

.reviews__source {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--color-dark-warm);
  background-color: var(--color-gold);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}

.reviews__arrow {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 110, 0.25);
  background-color: rgba(255, 255, 255, 0.03);
  color: rgba(232, 228, 222, 0.75);
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    color            0.3s var(--ease-out-expo),
    border-color     0.3s var(--ease-out-expo),
    background-color 0.3s var(--ease-out-expo),
    transform         0.3s var(--ease-out-expo);
}

.reviews__arrow:hover {
  color: var(--color-gold);
  border-color: rgba(201, 169, 110, 0.6);
  background-color: rgba(201, 169, 110, 0.08);
  transform: translateY(-1px);
}

.reviews__arrow:active {
  transform: scale(0.94);
  transition-duration: 0.12s;
}

.reviews__progress {
  max-width: 680px;
  height: 2px;
  margin: 1.5rem auto 0;
  background-color: rgba(232, 228, 222, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.reviews__progress span {
  display: block;
  height: 100%;
  width: 0%;
  background-color: var(--color-gold);
  transform-origin: left center;
}

.reviews__progress-fill--run {
  animation: reviewsProgress 6s linear forwards; /* keep in sync with AUTOPLAY_MS in reviews.js */
}

@keyframes reviewsProgress {
  from { width: 0%; }
  to   { width: 100%; }
}

.reviews__all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: fit-content;
  margin: 2.5rem auto 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(201, 169, 110, 0.35);
  transition:
    color        0.3s var(--ease-out-expo),
    border-color 0.3s var(--ease-out-expo),
    gap          0.3s var(--ease-out-expo);
}

.reviews__all:hover {
  color: var(--color-gold-light);
  border-color: var(--color-gold-light);
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .reviews__stage {
    gap: 0.6rem;
  }
  .reviews__card {
    padding: 2rem 1.5rem;
  }
  .reviews__arrow {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }
}

/* ============================================================
   GALLERY — Dark section, editorial layout
   ============================================================ */
.gallery {
  padding: 6rem 0 1rem;
  background-color: var(--color-dark-warm);
  color: #E8E4DE;
  overflow: hidden;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 1200px;
}

.gallery::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(184, 101, 60, 0.05), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(21, 17, 14, 0.8), transparent 70%);
  pointer-events: none;
}

.gallery > .container,
.gallery__grid {
  position: relative;
  z-index: 1;
}

.gallery .section-title {
  text-align: center;
  color: #F0ECE5;
}

/* Gold hairline under the gallery/locations titles — echoes the hero hairline */
.gallery .section-title,
.locations .section-title {
  position: relative;
}

.gallery .section-title::after,
.locations .section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -1.25rem;
  width: 180px;
  margin-left: -90px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold) 35%, var(--color-gold) 65%, transparent);
  transform: scaleX(1);
  transform-origin: center;
}

html.js .gallery .section-title::after,
html.js .locations .section-title::after {
  transform: scaleX(0);
  transition: transform 0.7s var(--ease-out-expo) 0.3s;
}

html.js .gallery .section-title.visible::after,
html.js .locations .section-title.visible::after {
  transform: scaleX(1);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* Three-layer transform split — outer owns parallax (inline translate3d),
   inner owns the zoom-in reveal + editorial offset, img owns hover/press.
   LAW: hover/press transforms NEVER live on .gallery__item — inline parallax
   would overwrite them every frame. */
.gallery__item {
  position: relative;
  cursor: zoom-in;
}

/* Inner wrapper — visual chrome lives here so the editorial offset moves the
   clip/shadow together with the image */
.gallery__item-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 2px;
  background-color: #2A2421;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.6s var(--ease-out-expo);
}

/* zoom-in owns the reveal transition; box-shadow keeps its hover fade */
html.js .gallery__item-inner[data-animate="zoom-in"] {
  transition:
    opacity    1s   var(--ease-out-expo),
    transform  1s   var(--ease-out-expo),
    filter     0.7s var(--ease-out-expo),
    box-shadow 0.6s var(--ease-out-expo);
}

.gallery__item-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(21,17,14,0.25) 100%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-expo);
  pointer-events: none;
}

.gallery__item:hover .gallery__item-inner {
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(201, 169, 110, 0.22);
}

.gallery__item:hover .gallery__item-inner::after {
  opacity: 1;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out-expo), filter 0.6s var(--ease-out-expo);
  filter: saturate(0.95);
}

.gallery__item:hover img {
  transform: scale(1.06);
  filter: saturate(1.05);
}

/* Press — the photo compresses under your finger, then the lightbox blooms */
.gallery__item:active img {
  transform: scale(0.97);
  transition-duration: var(--t-press);
}

/* Editorial overlapping layout — offsets ride --edit-offset (consumed by zoom-in) */
.gallery__item:nth-child(1) { grid-column: 1 / 6;  grid-row: 1; aspect-ratio: 3/4; }
.gallery__item:nth-child(2) { grid-column: 5 / 10; grid-row: 1; aspect-ratio: 4/3; --edit-offset: 3rem; z-index: 2; }
.gallery__item:nth-child(3) { grid-column: 9 / 13; grid-row: 1; aspect-ratio: 3/4; }
.gallery__item:nth-child(4) { grid-column: 2 / 7;  grid-row: 2; aspect-ratio: 4/3; --edit-offset: -2rem; }
.gallery__item:nth-child(5) { grid-column: 6 / 10; grid-row: 2; aspect-ratio: 1/1; z-index: 2; }
.gallery__item:nth-child(6) { grid-column: 9 / 13; grid-row: 2; aspect-ratio: 3/4; --edit-offset: -3rem; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(15, 13, 11, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 5rem 5rem;
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity    var(--t-modal) var(--ease-out),
    visibility var(--t-modal) var(--ease-out);
}

/* Close — exits faster on --ease-in; visibility flips after the fade */
.lightbox:not(.active) {
  transition:
    opacity    0.25s var(--ease-in),
    visibility 0s 0.25s;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  display: block;
  max-width:  100%;
  max-height: 100%;
  width:      auto;
  height:     auto;
  object-fit: contain;
  margin:     0 auto;
  transform:  scale(0.95);
  transition:
    transform 0.25s var(--ease-in),
    opacity   0.2s  var(--ease-smooth); /* legacy no-WAAPI swap fade */
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  cursor: default;
}

/* Open — rise-and-settle bloom (from-only keyframe self-expires, so the WAAPI
   directional swap keeps full ownership of transform afterwards) */
.lightbox.active .lightbox__img {
  transform: none;
  animation: lightboxBloom 0.45s var(--ease-out);
}

@keyframes lightboxBloom {
  from { transform: scale(0.92) translateY(12px); }
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  color: #fff;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  border-radius: 50%;
}

.lightbox__close {
  top: 1.25rem;
  right: 1.25rem;
  font-size: 2rem;
  transition:
    color            0.3s,
    background-color 0.3s,
    transform        0.35s var(--ease-out-expo),
    opacity          0.25s var(--ease-in);
}

.lightbox__prev,
.lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.8rem;
  background-color: rgba(255, 255, 255, 0.06);
  transition:
    color            0.3s,
    background-color 0.3s,
    transform        0.35s var(--ease-spring), /* spring use 3 of 3 — arrow nudge */
    opacity          0.25s var(--ease-in);
}

/* Chrome staggers in AFTER the image — film-title order */
.lightbox.active .lightbox__close {
  opacity: 1;
  transition:
    color            0.3s,
    background-color 0.3s,
    transform        0.35s var(--ease-out-expo),
    opacity          var(--t-modal) var(--ease-out) 0.15s;
}

.lightbox.active .lightbox__prev {
  opacity: 1;
  transition:
    color            0.3s,
    background-color 0.3s,
    transform        0.35s var(--ease-spring),
    opacity          var(--t-modal) var(--ease-out) 0.2s;
}

.lightbox.active .lightbox__next {
  opacity: 1;
  transition:
    color            0.3s,
    background-color 0.3s,
    transform        0.35s var(--ease-spring),
    opacity          var(--t-modal) var(--ease-out) 0.25s;
}

.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  color: var(--color-accent);
  background-color: rgba(255, 255, 255, 0.12);
}

.lightbox__prev:hover { transform: translateY(-50%) translateX(-3px); }
.lightbox__next:hover { transform: translateY(-50%) translateX(3px); }

.lightbox__close:active {
  transform: scale(0.9);
  transition-duration: var(--t-press);
}

.lightbox__prev:active,
.lightbox__next:active {
  transform: translateY(-50%) scale(0.9);
  transition-duration: var(--t-press);
}

/* ============================================================
   LOCATIONS — Dark section
   ============================================================ */
.locations {
  padding: 2rem 0 6rem;
  background-color: var(--color-dark-warm);
  color: #E8E4DE;
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

.locations .section-title {
  text-align: center;
  color: #F0ECE5;
}

.locations__list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.locations__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background-color: #1C1814;
  border: 1px solid rgba(201, 169, 110, 0.1);
  overflow: hidden;
  border-radius: 2px;
  transition:
    box-shadow   0.6s var(--ease-out-expo),
    border-color 0.5s var(--ease-out-expo),
    transform    0.6s var(--ease-out-expo);
}

.locations__card:hover {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  border-color: rgba(184, 101, 60, 0.35);
  transform: translateY(-2px);
}

/* !important beats the inline reveal-stagger delay — press must answer instantly */
.locations__card:active {
  transform: scale(0.995);
  transition-duration: 0.12s;
  transition-delay: 0s !important;
}

/* The reveal engine owns transform at higher specificity once .visible — re-win it */
html.js .locations__card[data-animate].visible:hover {
  transform: translateY(-2px);
}

html.js .locations__card[data-animate].visible:active {
  transform: scale(0.995);
  transition-duration: 0.12s;
  transition-delay: 0s !important;
}

.locations__info {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.locations__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  color: #F0ECE5;
}

.locations__address {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(232, 228, 222, 0.6);
  margin-bottom: 0.5rem;
}

.locations__hours {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-accent);
  font-weight: 500;
}

.locations__map {
  min-height: 200px; /* -20% per Daniel */
  background-color: #2A2421;
}

/* Two-beat reveal — frame lands first, the map materializes +0.25s later
   (also masks Yandex tile pop-in); the map canvas itself never moves */
html.js .locations__card[data-animate] .locations__map {
  opacity: 0;
  transform: scale(0.985);
  transition:
    opacity   0.8s var(--ease-out-expo),
    transform 0.8s var(--ease-out-expo);
  transition-delay: calc(var(--reveal-delay, 0s) + 0.25s);
}

html.js .locations__card[data-animate].visible .locations__map {
  opacity: 1;
  transform: scale(1);
}

/* ============================================================
   CTA / BOOKING
   ============================================================ */
.cta {
  padding: 6rem 0;
  /* Block ramp: sections #15110E -> CTA lifted warm -> footer darkest */
  background-color: #1A1410;
  background-image: radial-gradient(90% 70% at 50% 30%, rgba(201, 169, 110, 0.07), transparent 70%);
  text-align: center;
  content-visibility: auto;
  contain-intrinsic-size: 500px;
}

.cta__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  color: #F0ECE5;
}

/* Title card — big type lands from a heavier blur than body-copy splits */
html.js .cta__title:not(.visible) .char {
  filter: blur(10px);
}

.cta__subtitle {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: rgba(232, 228, 222, 0.6);
  margin-bottom: 2.5rem;
}

.cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 18px 56px;
  background-color: var(--color-accent);
  color: #fff;
  min-height: 56px;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  /* magnetic vars default 0 — safe with the entrance reveal */
  transform: translate3d(var(--mag-x, 0px), var(--mag-y, 0px), 0);
  transition:
    transform        0.5s var(--ease-spring), /* spring use 2 of 3 — magnetic release settle */
    box-shadow       0.4s var(--ease-out-expo),
    background-color 0.4s var(--ease-smooth);
}

.cta__button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 28%, rgba(255,255,255,0.24) 50%, transparent 72%);
  transform: translateX(-110%);
  transition: transform 0.9s var(--ease-out-expo);
}

.cta__button:hover {
  transform: translate3d(var(--mag-x, 0px), var(--mag-y, 0px), 0) translateY(-3px) scale(1.03);
  box-shadow: var(--shadow-accent);
  background-color: var(--color-accent-hover);
  transition:
    transform        0.25s var(--ease-out), /* elastic follow while hovered */
    box-shadow       0.4s  var(--ease-out-expo),
    background-color 0.4s  var(--ease-smooth);
}

.cta__button:hover::before {
  transform: translateX(110%);
}

.cta__button:active {
  /* press compresses, never lifts */
  transform: translate3d(var(--mag-x, 0px), var(--mag-y, 0px), 0) translateY(-1px) scale(0.98);
  transition-duration: var(--t-press);
  transition-timing-function: var(--ease-smooth);
}

/* Idle attract shimmer — IO-gated; first sweep 1.1s after the section reveals,
   then "the light catches the blade" every 6s */
.cta--inview .cta__button::before {
  animation: ctaShine 6s var(--ease-out) 1.1s infinite;
}

/* Hover suspends the idle cycle so the transition-based sweep can play —
   a running animation owns transform and would make hover do nothing */
.cta--inview .cta__button:hover::before {
  animation: none;
}

@keyframes ctaShine {
  0%   { transform: translateX(-110%); }
  20%  { transform: translateX(110%); }
  100% { transform: translateX(110%); }
}

/* Ripple — press feedback where hover doesn't exist */
.cta__button .ripple {
  position: absolute;
  width: 100px;
  height: 100px;
  margin: -50px 0 0 -50px;
  border-radius: 50%;
  background-color: rgba(201, 169, 110, 0.35);
  pointer-events: none;
  transform: scale(0);
  animation: rippleGrow 0.6s var(--ease-out) forwards;
}

@keyframes rippleGrow {
  from { transform: scale(0);   opacity: 1; }
  to   { transform: scale(3.5); opacity: 0; }
}

.cta__socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.cta__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(201, 169, 110, 0.28);
  border-radius: 50%;
  transition:
    color            0.4s var(--ease-smooth),
    border-color     0.4s var(--ease-smooth),
    background-color 0.4s var(--ease-smooth),
    transform        0.4s var(--ease-out-expo);
  color: #E8E4DE;
}

.cta__social:hover {
  color: #fff;
  border-color: var(--color-accent);
  background-color: var(--color-accent);
  transform: translateY(-3px) rotate(-3deg);
}

.cta__social:active {
  transform: translateY(0) scale(0.92);
  transition-duration: var(--t-press);
  transition-timing-function: var(--ease-smooth);
}

/* Disabled — motion silence signals dead ends */
.cta__social[href="#"],
.cta__social[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

.cta__social[href="#"]:hover,
.cta__social[href="#"]:active,
.cta__social[aria-disabled="true"]:hover,
.cta__social[aria-disabled="true"]:active {
  color: var(--color-dark);
  background-color: transparent;
  border-color: rgba(31, 28, 25, 0.15);
  transform: none;
}

/* The shared reveal resolve forces opacity 1 — disabled socials keep their dimming */
html.js .cta__social[href="#"][data-animate].visible,
html.js .cta__social[aria-disabled="true"][data-animate].visible {
  opacity: 0.45;
}

/* ============================================================
   FOOTER — Dark
   ============================================================ */
.footer {
  background-color: #100D0A; /* darkest block — the outro of the ramp */
  color: rgba(232, 228, 222, 0.72);
  padding-bottom: 2.5rem;
}

.footer__rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(201, 169, 110, 0.18) 20%,
    var(--color-accent)       50%,
    rgba(201, 169, 110, 0.18) 80%,
    transparent 100%
  );
}

.footer__inner {
  padding-top: 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer__tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 500;
  font-size: 1.1rem;
  color: #F0ECE5;
  letter-spacing: 0.02em;
}

.footer__contacts {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__phone {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(232, 228, 222, 0.72);
  transition:
    color     0.35s var(--ease-smooth),
    transform var(--t-press) var(--ease-smooth);
  position: relative;
}

/* Underline draws in from the left, exits stage right */
.footer__phone::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out-expo);
}

.footer__phone:hover {
  color: var(--color-accent);
}

.footer__phone:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer__phone:active {
  transform: scale(0.98);
}

.footer__socials {
  display: flex;
  gap: 1rem;
}

.footer__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: rgba(232, 228, 222, 0.72);
  transition:
    color     0.35s var(--ease-smooth),
    transform 0.4s  var(--ease-out-expo);
}

.footer__socials a:hover {
  color: var(--color-accent);
  transform: translateY(-3px);
}

.footer__socials a:active {
  transform: translateY(0) scale(0.92);
  transition-duration: var(--t-press);
  transition-timing-function: var(--ease-smooth);
}

.footer__copy {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(232, 228, 222, 0.5);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
  .nav__burger {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background-color: #1A1510;
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-out-expo);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.45);
    z-index: 999;
  }

  .nav__menu.open {
    transform: translateX(0);
    visibility: visible;
  }

  /* Close is faster than open — everything exits together.
     visibility flips after the slide-out so the closed drawer's children
     leave the tab order with no visual change */
  .nav__menu:not(.open) {
    visibility: hidden;
    transition:
      transform  0.35s var(--ease-in),
      visibility 0s 0.35s;
  }

  /* Drawer child stagger */
  html.js .nav__menu .nav__link,
  html.js .nav__menu .nav__cta {
    opacity: 0;
    transform: translateX(32px);
    transition:
      opacity   0.45s var(--ease-out),
      transform 0.45s var(--ease-out);
  }

  html.js .nav__menu.open .nav__link,
  html.js .nav__menu.open .nav__cta {
    opacity: 1;
    transform: none;
  }

  .nav__menu.open .nav__link:nth-child(1) { transition-delay: 0.08s; }
  .nav__menu.open .nav__link:nth-child(2) { transition-delay: 0.14s; }
  .nav__menu.open .nav__link:nth-child(3) { transition-delay: 0.20s; }
  .nav__menu.open .nav__link:nth-child(4) { transition-delay: 0.26s; }
  .nav__menu.open .nav__cta               { transition-delay: 0.32s; }

  /* Press must still answer while the drawer is open — the stagger resolve
     outranks the global :active rules */
  html.js .nav__menu.open .nav__link:active {
    transform: translateY(1px);
    transition-duration: var(--t-press);
    transition-delay: 0s;
  }

  html.js .nav__menu.open .nav__cta:active {
    transform: scale(0.97);
    transition-duration: var(--t-press);
    transition-delay: 0s;
  }

  .nav__menu .nav__link {
    color: #E8E4DE;
    font-size: 1rem;
  }

  .nav__menu .nav__link::after {
    left: 0;
    transform: scaleX(0);
    transform-origin: left;
  }

  .nav__menu .nav__link:hover::after {
    transform: scaleX(1);
  }

  .nav__menu .nav__cta {
    margin-top: 1rem;
  }

  .hero__tagline {
    font-size: clamp(1.1rem, 5vw, 1.6rem);
  }

  /* Reduced focus-pull radius on mobile */
  .hero__bg {
    --focus-blur: 8px;
  }

  .services__row-head {
    gap: 0.85rem;
    padding: 1.4rem 0.25rem;
  }

  .services__desc {
    max-width: 100%;
  }

  .barbers__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .barbers__frame {
    padding: 4px;
  }

  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .gallery__item:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    --edit-offset: 0px;
    aspect-ratio: 1/1;
  }

  .gallery__item:nth-child(5) {
    grid-column: 1 / -1;
    aspect-ratio: 16/9;
  }

  .locations__card {
    grid-template-columns: 1fr;
  }

  .locations__map {
    min-height: 160px;
  }

  .cta__title {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .lightbox {
    padding: 4.5rem 1rem;
  }

  .lightbox__prev,
  .lightbox__next {
    font-size: 2.2rem;
    min-width: 40px;
    min-height: 40px;
  }
}

@media (min-width: 768px) {
  :root {
    --container-pad: 40px;
  }

  .section-title {
    margin-bottom: 4rem;
  }

  .gallery {
    padding: 8rem 0 2rem;
  }

  .locations {
    padding: 2.5rem 0 8rem;
  }

  .cta {
    padding: 8rem 0;
  }

  .services,
  .barbers {
    padding: 6rem 0;
  }
}

@media (min-width: 1280px) {
  :root {
    --container-pad: 60px;
  }

  .nav__menu {
    gap: 2.5rem;
  }

  .services__row-head {
    padding: 2rem 0.75rem;
  }

  .barbers__grid {
    gap: 2.5rem;
  }

  .locations__card {
    grid-template-columns: 1fr 1.2fr;
  }

  .locations__info {
    padding: 3rem;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  body,
  html.js body { opacity: 1; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  [data-animate] .word,
  [data-animate] .char {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  html.js [data-animate="words"],
  html.js [data-animate="chars"] { opacity: 1 !important; }

  /* Hero words reveal via keyframe forwards-fill and the h1 carries no
     [data-animate] — force visible in case RM flips on mid-session after
     the splitter has already run (otherwise ЛЕЗВИЕ. goes invisible) */
  .hero__tagline .word {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  /* [data-animate] transform:none would knock the indicator off its
     translateX(-50%) centering — restore it */
  .hero__scroll-indicator { transform: translateX(-50%) !important; }

  .barbers__img-wrap::before { display: none; }

  /* Curtain descendants forced to identity (parent covered by the universal override) */
  html.js [data-animate="curtain"] .barbers__img-wrap img,
  html.js [data-animate="curtain"] .barbers__name {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }

  .services__row--birthday .beam,
  .word--brand,
  .cta__button::before { animation: none !important; }

  .hero__bg,
  html.js .hero__bg { animation: none !important; filter: none !important; }

  /* Locations map descendant reveal forced visible */
  html.js .locations__card[data-animate] .locations__map {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Disabled socials keep their dimming (beats [data-animate] opacity 1) */
  .cta__social[href="#"],
  .cta__social[aria-disabled="true"] { opacity: 0.45 !important; }

  /* Progress bar stays (position feedback) — JS writes it with no smoothing */
  .nav__progress { animation: none !important; }
}

/* ============================================================
   PRELOADER — real-asset loading gate + curtain reveal
   Engine: js/preloader.js. Skins via ?loader=1|2|3 (default 1).
   Global reduced-motion block above already collapses all of
   this to an instant reveal.
   ============================================================ */

html.is-preloading { overflow: hidden; }

/* Hold the hero tagline entrance until the curtain starts opening —
   otherwise it plays unseen behind the overlay */
html.is-preloading .hero__tagline .word { animation-play-state: paused !important; }

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  --pl-p: 0;
}
html.js .preloader { display: block; }
.preloader--open { pointer-events: none; }

/* ---------- Curtain panels ---------- */
.pl__panel {
  position: absolute;
  z-index: 1;
  background: var(--color-dark-warm);
  transition: transform 0.9s var(--ease-out-expo);
  will-change: transform;
}

/* Skin 1 — vertical seam, panels part left/right */
[data-skin="1"] .pl__panel--a { top: 0; bottom: 0; left: 0;  width: 50.5%; }
[data-skin="1"] .pl__panel--b { top: 0; bottom: 0; right: 0; width: 50.5%; }
.preloader--open[data-skin="1"] .pl__panel--a { transform: translateX(-101%); transition-delay: 0.18s; }
.preloader--open[data-skin="1"] .pl__panel--b { transform: translateX(101%);  transition-delay: 0.18s; }

[data-skin="1"] .pl__seam {
  position: absolute;
  z-index: 2;
  left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg,
    transparent,
    var(--color-gold) 28%,
    var(--color-gold-light) 50%,
    var(--color-gold) 72%,
    transparent);
  opacity: 0;
  transform: scaleY(0.15);
  transform-origin: center;
}
.preloader--open[data-skin="1"] .pl__seam { animation: plSeam 0.7s var(--ease-out) forwards; }
@keyframes plSeam {
  0%   { opacity: 0; transform: scaleY(0.15); }
  25%  { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1); }
}

/* Skin 2 — panels part up/down */
[data-skin="2"] .pl__panel--a { left: 0; right: 0; top: 0;    height: 50.5%; }
[data-skin="2"] .pl__panel--b { left: 0; right: 0; bottom: 0; height: 50.5%; }
.preloader--open[data-skin="2"] .pl__panel--a { transform: translateY(-101%); transition-delay: 0.1s; }
.preloader--open[data-skin="2"] .pl__panel--b { transform: translateY(101%);  transition-delay: 0.1s; }

/* Skin 3 — single curtain lifts up */
[data-skin="3"] .pl__panel--solo { inset: 0; }
.preloader--open[data-skin="3"] .pl__panel--solo {
  transform: translateY(-101%);
  transition-duration: 0.85s;
  transition-delay: 0.1s;
}

/* ---------- Shared UI ---------- */
.pl__ui {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity 0.2s var(--ease-in);
}
.preloader--open .pl__ui { opacity: 0; }

.pl__brand {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.5em;
  text-indent: 0.5em; /* optical centering of the tracking */
  color: var(--color-bg);
  opacity: 0.92;
}

.pl__track {
  position: relative;
  width: min(420px, 68vw);
  height: 2px;
  background: rgba(242, 239, 234, 0.14);
}

.pl__fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    var(--color-gold-deep),
    var(--color-gold) 60%,
    var(--color-gold-light));
  transform: scaleX(calc(var(--pl-p) / 100));
  transform-origin: left center;
  will-change: transform;
}

.pl__pct {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--color-gold);
  min-width: 4ch;
  text-align: center;
}

/* ---------- Skin 1: blade riding the strop line ---------- */
.pl__rail {
  position: absolute;
  inset: 0;
  transform: translateX(calc(var(--pl-p) * 1%));
  pointer-events: none;
  will-change: transform;
}
.pl__blade {
  position: absolute;
  left: 0;
  top: 50%;
  width: 26px;
  height: 7px;
  transform: translate(-50%, -50%) skewX(-28deg);
  background: linear-gradient(90deg,
    var(--color-gold-light),
    var(--color-gold) 55%,
    var(--color-gold-deep));
  box-shadow: 0 0 14px rgba(226, 200, 140, 0.55);
}

/* ---------- Skin 2: barber pole ---------- */
.pl__pole {
  position: relative;
  width: 54px;
  height: 132px;
  border-radius: 27px;
  overflow: hidden;
  background: var(--color-bg);
  box-shadow:
    inset 0 0 0 2px rgba(201, 169, 110, 0.55),
    inset 10px 0 16px rgba(21, 17, 14, 0.35),
    inset -10px 0 16px rgba(21, 17, 14, 0.35);
}
.pl__stripes {
  position: absolute;
  left: -30px;
  right: -30px;
  top: -100px;
  height: calc(100% + 200px);
  background: repeating-linear-gradient(135deg,
    var(--color-accent) 0 14px,
    var(--color-bg) 14px 28px,
    var(--color-gold) 28px 42px,
    var(--color-bg) 42px 56px);
  animation: plPole 1.4s linear infinite;
  will-change: transform;
}
/* 56px period along a 135deg axis = 79.2px vertical period — seamless loop */
@keyframes plPole {
  to { transform: translateY(79.2px); }
}
[data-skin="2"] .pl__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: min(420px, 68vw);
}
[data-skin="2"] .pl__ui { gap: 32px; }
[data-skin="2"] .pl__pct { min-width: 0; text-align: right; }

/* ---------- Skin 3: editorial counter ---------- */
.pl__ui--corner {
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 clamp(24px, 6vw, 80px) clamp(32px, 8vh, 84px);
}
.pl__label {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.42em;
  color: var(--color-gold);
}
.pl__num {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(96px, 17vw, 220px);
  line-height: 0.9;
  color: var(--color-bg);
  display: flex;
  align-items: baseline;
}
.pl__num .pl__pct {
  font-size: inherit;
  letter-spacing: 0;
  color: inherit;
  min-width: 1.2em;
  text-align: left;
}
.pl__pctsign {
  font-size: 0.22em;
  font-weight: 500;
  color: var(--color-gold);
  margin-left: 0.2em;
}
.pl__baseline {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(242, 239, 234, 0.1);
  transition: opacity 0.2s var(--ease-in);
}
.preloader--open .pl__baseline { opacity: 0; }
