/* =========================================================
   Ace Barbers — design tokens
   ========================================================= */
:root {
  --bg: #060607;
  --bg-raise: #0d0d0e;
  --bg-raise-2: #131314;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.28);
  --white: #ffffff;
  --ink: #f4f3f1;
  --dim: #9c9a97;
  --dim-2: #6f6d6b;
  --accent: #c9a769;
  --accent-glow: rgba(201, 167, 105, 0.35);

  --font-display: "Playfair Display", "Playfair Display Placeholder", Georgia, serif;
  --font-body: "Inter", "Inter Placeholder", -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1400px;
  --gutter: clamp(1.25rem, 4vw, 3.75rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.7s;

  --nav-h: 84px;

  --hero-image: url("../assets/images/hero1.jpg");
  --footer-image: url("../assets/images/hero2.jpg");
}

@media (max-width: 640px) {
  :root { --nav-h: 68px; }
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button, select, input { font-family: inherit; }
h1, h2, h3, p, blockquote, figure { margin: 0; }

button, a { cursor: pointer; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--white);
  color: #000;
  padding: 0.75rem 1.25rem;
  z-index: 999;
  font-size: 0.9rem;
}
.skip-link:focus {
  left: var(--gutter);
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

/* =========================================================
   Type helpers
   ========================================================= */
.section-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 7.5vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--white);
}
.section-heading--tight { margin-bottom: 0.25rem; }

/* =========================================================
   Text-expansion safety net (RO strings run longer than EN)
   ========================================================= */
.section-heading,
.hero__heading,
.barber__name,
.footer__wordmark,
.location__address,
.service-row__info h3 {
  overflow-wrap: break-word;
  word-break: normal;
}
.service-row__info p,
.barber__bio,
.barber__signature-text,
.testimonial p,
.footer__copy,
.booking__lede,
.location__hours,
.footer__hours,
.hero__cta span,
.btn--cta span,
.location__cta span {
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* =========================================================
   Scroll reveal states (JS toggles .is-visible)
   ========================================================= */
.reveal-up,
.reveal-line .reveal-text,
.reveal-fade,
.reveal-scale {
  will-change: transform, opacity;
}
.reveal-up.is-visible,
.reveal-line .reveal-text.is-visible,
.reveal-fade.is-visible,
.reveal-scale.is-visible {
  will-change: auto;
}

.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mask reveal: the line wrapper clips, the inner text span is the thing
   that actually slides — inline-block so translateY resolves against its
   own line height instead of the (unpredictable) inline box. */
.reveal-line { display: block; overflow: hidden; }
.reveal-line .reveal-text {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.reveal-line .reveal-text.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-fade {
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.reveal-fade.is-visible { opacity: 1; }

.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up, .reveal-line .reveal-text, .reveal-fade, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(6,6,7,0.55), rgba(6,6,7,0));
  transition: background var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  background: rgba(8, 8, 9, 0.6);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}
.nav__logo { color: var(--white); display: inline-flex; flex: none; }
.nav__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--dim);
  white-space: nowrap;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.75rem);
  font-size: 0.95rem;
  font-weight: 400;
}
.nav__links a {
  position: relative;
  padding: 0.4rem 0;
  white-space: nowrap;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--white);
  transition: right var(--dur) var(--ease);
}
.nav__links a:hover::after,
.nav__links a:focus-visible::after { right: 0; }

/* ---------------------------------------------------------
   Language toggle — RO | EN pill with a sliding glass thumb
   --------------------------------------------------------- */
.lang-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color var(--dur) var(--ease);
}
.lang-toggle:hover { border-color: var(--line-strong); }

.lang-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.5);
  transition: transform var(--dur) var(--ease);
}
.lang-toggle[data-active="en"] .lang-toggle__thumb {
  transform: translateX(100%);
}

.lang-toggle__btn {
  position: relative;
  z-index: 1;
  min-width: 2.6rem;
  min-height: 30px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--dim);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.7rem;
  transition: color var(--dur) var(--ease);
}
.lang-toggle__btn:hover { color: var(--white); }
.lang-toggle__btn[aria-pressed="true"] { color: var(--white); }

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

.nav__toggle {
  display: none;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  position: relative;
}
.nav__toggle-line {
  position: absolute;
  left: 10px; right: 10px;
  height: 1px;
  background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
}
.nav__toggle-line:first-child { top: 16px; }
.nav__toggle-line:last-child { top: 23px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-line:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-line:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 0.5rem var(--gutter) 1.5rem;
  gap: 0.25rem;
  background: rgba(8, 8, 9, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a {
  padding: 0.85rem 0;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.mobile-menu a:last-child { border-bottom: none; }

.mobile-menu.is-open a {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu.is-open a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.is-open a:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.is-open a:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.is-open a:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu.is-open a:nth-child(5) { transition-delay: 0.5s; }

.mobile-menu__lang {
  align-self: center;
  margin-top: 0.85rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.mobile-menu.is-open .mobile-menu__lang {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .lang-toggle--desktop { display: none; }
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .mobile-menu {
    display: flex;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--dur) var(--ease), visibility var(--dur);
  }
  .mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu a,
  .mobile-menu__lang {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  /* Slower than --dur on purpose — a lingering, cinematic settle rather
     than the snappier timing used for UI chrome elsewhere on the page. */
  transition: opacity 1.4s var(--ease), transform 2.2s var(--ease);
}
.hero__media.is-visible { transform: scale(1); }
.hero__media--intro { transition-delay: 0s; }
.hero__heading .reveal-text { transition-duration: 1s; }
/* Line-by-line stagger: each mask opens a beat after the previous one. */
.hero__heading .reveal-line:nth-of-type(1) .reveal-text { transition-delay: 0.25s; }
.hero__heading .reveal-line:nth-of-type(2) .reveal-text { transition-delay: 0.45s; }
.hero__cta--intro { transition-delay: 0.95s; }
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.32)),
    linear-gradient(to bottom, rgba(6,6,7,0.5) 0%, rgba(6,6,7,0.08) 30%, rgba(6,6,7,0.22) 70%, rgba(6,6,7,0.68) 100%),
    linear-gradient(to right, rgba(6,6,7,0.22), rgba(6,6,7,0));
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter);
  padding-bottom: clamp(2rem, 6vw, 4rem);
}
.hero__heading {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--white);
  font-size: clamp(3.25rem, 11vw, 11rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  max-width: 22ch;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.4);
}
.hero__script {
  font-style: italic;
  font-weight: 400;
  font-size: 0.72em;
}

.hero__cta {
  position: relative;
  z-index: 2;
  margin: 0 var(--gutter) clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line-strong);
  padding: clamp(1.1rem, 2.5vw, 1.6rem) 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--white);
  background: rgba(6, 6, 7, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  min-height: 44px;
}
.hero__cta:hover, .hero__cta:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--white);
}
.hero__cta-arrow { transition: transform var(--dur) var(--ease); }
.hero__cta:hover .hero__cta-arrow { transform: translateX(6px); }

/* Idle "breathe" invitation to tap — a separate blurred layer behind the
   button so only opacity/transform animate (box-shadow would repaint on
   every frame; this stays on the compositor). Starts once the entrance
   settles, pauses on hover so it doesn't fight the hover state. */
.hero__cta::after {
  content: "";
  position: absolute;
  inset: -8px;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(16px);
  opacity: 0;
  transform: scale(0.94);
  pointer-events: none;
  z-index: -1;
  animation: heroCtaGlow 3.2s var(--ease) infinite;
  animation-delay: 1.7s;
}
.hero__cta:hover::after,
.hero__cta:focus-visible::after {
  animation-play-state: paused;
}
@keyframes heroCtaGlow {
  0%, 100% { opacity: 0.12; transform: scale(0.94); }
  50% { opacity: 0.5; transform: scale(1.06); }
}

/* ---------------------------------------------------------
   Scroll cue — bounces to invite a scroll, fades out for good
   the moment the visitor actually scrolls (see app.js).
   --------------------------------------------------------- */
.hero__scroll-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: clamp(1rem, 3vw, 1.75rem);
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
}
.hero__scroll-cue svg {
  display: block;
  animation: heroScrollCue 2.2s var(--ease) infinite;
}
.hero__scroll-cue.is-hidden { opacity: 0 !important; }
@keyframes heroScrollCue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__cta::after { animation: none; opacity: 0.2; }
  .hero__scroll-cue svg { animation: none; }
}

@media (max-width: 768px) {
  /* 0.92 line-height sits shorter than the font's actual glyph height at
     this size, clipping descenders (e.g. the "y" in "Style") against the
     reveal-line mask's overflow:hidden. */
  .hero__heading {
    line-height: 1.3;
  }

  /* Full-bleed centered layout: text floats over the middle of the photo
     instead of being pinned to the bottom edge. */
  .hero {
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: clamp(1.75rem, 6vw, 2.5rem);
  }
  .hero__content {
    padding-bottom: 0;
  }
  .hero__cta {
    margin: 0 var(--gutter);
  }

  /* hero1.jpg's lit subject (the hands/tools against a near-black
     background) sits slightly right and below the image's own geometric
     center — measured centroid ≈ 52%/57%. Plain "center" crops the
     trimmer on tall mobile ratios, so the anchor is nudged to match. */
  .hero__media {
    background-position: 52% 56% !important;
  }

  /* The bottom-heavy scrim no longer makes sense once the text is
     centered — swap it for a soft pool of contrast right behind the
     text block, keeping the rest of the frame bright. */
  .hero__scrim {
    background:
      radial-gradient(ellipse 85% 55% at 50% 50%, rgba(6,6,7,0.55) 0%, rgba(6,6,7,0.18) 45%, rgba(6,6,7,0.05) 72%),
      linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18)),
      linear-gradient(to bottom, rgba(6,6,7,0.32) 0%, rgba(6,6,7,0.1) 100%);
  }
}

/* =========================================================
   Section shell
   ========================================================= */
.services, .gallery, .testimonials, .barber, .numbers, .booking {
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}

/* =========================================================
   Services
   ========================================================= */
.service-list {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
}
.service-row {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.25rem, 3vw, 2rem) clamp(0.5rem, 2vw, 1.5rem);
  border-bottom: 1px solid var(--line);
  transition: background var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.service-row:hover {
  background: rgba(255, 255, 255, 0.03);
}
.service-row__arrow {
  color: var(--dim);
  font-size: 1.2rem;
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}
.service-row:hover .service-row__arrow {
  transform: translateX(6px);
  color: var(--white);
}
.service-row__info h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--white);
}
.service-row__info p {
  margin-top: 0.35rem;
  color: var(--dim);
  font-size: clamp(0.85rem, 1.4vw, 0.98rem);
  font-weight: 300;
}
.service-row__price {
  text-align: right;
  white-space: nowrap;
  color: var(--dim);
  font-size: 0.95rem;
}
.price-value {
  font-family: var(--font-display);
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-left: 0.35rem;
}

@media (max-width: 640px) {
  .service-row {
    grid-template-columns: 1.75rem 1fr;
  }
  .service-row__price {
    grid-column: 2 / 3;
    text-align: left;
    margin-top: 0.5rem;
  }
}

/* =========================================================
   Gallery — draggable infinite marquee (JS-driven)
   ========================================================= */
.gallery__marquee {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1.5vw, 1rem);
}
.marquee-viewport {
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.marquee-viewport.is-dragging { cursor: grabbing; }

.marquee-row__track {
  display: flex;
  width: max-content;
  gap: clamp(0.5rem, 1.5vw, 1rem);
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}

.marquee-row__track img {
  flex: none;
  width: clamp(180px, 20vw, 260px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-raise);
  filter: saturate(0.9) contrast(1.05);
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

@media (max-width: 640px) {
  .marquee-row__track img { width: clamp(140px, 42vw, 200px); border-radius: 10px; }
}

/* =========================================================
   Testimonials
   ========================================================= */
.testimonials__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}
.testimonials__rating {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--dim);
  font-size: 0.95rem;
}
.stars { color: var(--white); letter-spacing: 0.15em; }

.testimonials__marquee {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  padding-inline: var(--gutter);
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 3%, #000 97%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 3%, #000 97%, transparent 100%);
}
.testimonials__marquee.is-dragging { cursor: grabbing; }

.testimonials__track {
  display: flex;
  width: max-content;
  gap: clamp(0.85rem, 2vw, 1.25rem);
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}

.testimonial {
  flex: 0 0 clamp(250px, 70vw, 360px);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.testimonial time {
  color: var(--dim-2);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.testimonial p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.3;
  color: var(--white);
}
.testimonial cite {
  font-style: normal;
  color: var(--dim);
  font-size: 0.9rem;
}

/* =========================================================
   Meet the Barber
   ========================================================= */
.barber__grid {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
.barber__photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
}
.barber__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(6,6,7,0.05), rgba(6,6,7,0.4));
}
.barber__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(0.35) contrast(1.08) brightness(0.95);
  transition: transform 0.9s var(--ease), filter var(--dur) var(--ease);
}
.barber__photo:hover img {
  transform: scale(1.04);
  filter: grayscale(0) contrast(1.05) brightness(1);
}

.barber__eyebrow {
  color: var(--dim);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.barber__name {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  color: var(--white);
  line-height: 1.05;
}
.barber__bio {
  margin-top: 1.25rem;
  color: var(--dim);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.7;
  max-width: 52ch;
}
.barber__signature {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
}
.barber__signature-label {
  display: block;
  color: var(--dim-2);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.barber__signature-text {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--white);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.4;
  max-width: 42ch;
}

@media (max-width: 760px) {
  .barber__grid { grid-template-columns: 1fr; }
  .barber__photo { max-width: 420px; margin: 0 auto; }
}

/* =========================================================
   Numbers
   ========================================================= */
.numbers__grid {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat {
  background: var(--bg);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  color: var(--white);
  line-height: 1;
}
.stat__label { color: var(--dim); font-size: 0.95rem; }

@media (max-width: 640px) {
  .numbers__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Booking
   ========================================================= */
.booking {
  max-width: 760px;
  text-align: center;
}
.booking__head {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.booking .section-heading {
  font-size: clamp(3rem, 7vw, 5.5rem);
}
.booking__lede {
  margin-top: clamp(0.85rem, 2vw, 1.35rem);
  color: var(--dim);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 300;
  max-width: 34ch;
}

.booking__form {
  margin-top: clamp(3.5rem, 8vw, 5.5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 3.5vw, 2.75rem);
  text-align: left;
}

.master-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}
.master-preview img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(0.4);
  flex: none;
}
.master-preview__info { display: flex; flex-direction: column; gap: 0.15rem; }
.master-preview__name { color: var(--white); font-size: 1rem; }
.master-preview__role { color: var(--dim); font-size: 0.85rem; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.field label {
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--dim-2);
}
.field select,
.field input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 300;
  padding: 0.4rem 0 0.75rem;
  min-height: 30px;
  font-family: var(--font-body);
  transition: border-color var(--dur) var(--ease);
}
.field select { appearance: none; cursor: pointer; }
.field input::placeholder { color: var(--dim-2); }
.field input[type="date"] {
  color-scheme: dark;
}
.field select:hover,
.field input:hover,
.field select:focus-visible,
.field input:focus-visible {
  border-bottom-color: var(--accent);
  outline: none;
}

.booking__actions {
  margin-top: clamp(0.5rem, 1.5vw, 1rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
}
.btn--cta {
  border: none;
  border-radius: 999px;
  background: var(--white);
  color: #0a0a0a;
  padding: clamp(1.15rem, 2.4vw, 1.5rem) clamp(2.5rem, 6vw, 3.75rem);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn--cta-arrow { transition: transform var(--dur) var(--ease); }
.btn--cta:hover,
.btn--cta:focus-visible {
  background: var(--accent);
  color: #1a1305;
  transform: scale(1.045);
  box-shadow: 0 0 0 1px var(--accent), 0 16px 44px -10px var(--accent-glow);
}
.btn--cta:hover .btn--cta-arrow,
.btn--cta:focus-visible .btn--cta-arrow { transform: translateX(6px); }
.btn--cta:active { transform: scale(0.98); }

.booking__reset {
  background: none;
  border: none;
  color: var(--dim);
  font-size: 0.9rem;
  padding: 0.4rem;
  min-height: 44px;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
}
.booking__reset:hover,
.booking__reset:focus-visible {
  color: var(--white);
  text-decoration-color: var(--line-strong);
}

.booking__status {
  margin-top: 0.25rem;
  color: var(--dim);
  min-height: 1.2em;
  text-align: center;
}
.booking__status.is-success { color: var(--white); }

.booking__contact {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  color: var(--dim);
  font-size: 0.95rem;
}
.booking__contact a:hover { color: var(--accent); }

@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; gap: 1.75rem; }
  .booking__actions { width: 100%; }
  .btn--cta { width: 100%; justify-content: center; }
}

/* =========================================================
   Location / Visit Us
   ========================================================= */
.location {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: clamp(520px, 58vw, 660px);
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.location__map {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform: translateZ(0);
  will-change: transform;
}
.location__map-frame {
  position: absolute;
  top: -14%;
  left: -12%;
  width: 124%;
  height: 132%;
  border: 0;
  filter: invert(92%) hue-rotate(180deg) grayscale(35%) brightness(0.85) contrast(1.1);
  pointer-events: none;
  transform: translateZ(0);
  will-change: filter, transform;
  backface-visibility: hidden;
}
.location__map-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(6,6,7,0.92) 0%, rgba(6,6,7,0.65) 32%, rgba(6,6,7,0.25) 55%, rgba(6,6,7,0.55) 100%),
    linear-gradient(to top, rgba(6,6,7,0.85) 0%, rgba(6,6,7,0) 40%);
}

.location__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.location__card {
  max-width: 420px;
  padding: clamp(2rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  background: rgba(10, 10, 11, 0.5);
  border: 1px solid var(--line);
  border-radius: 8px;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.65);
}

.location__pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(201, 167, 105, 0.1);
  color: var(--accent);
}

.location__eyebrow {
  color: var(--dim);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.location__address {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  line-height: 1.25;
  color: var(--white);
  margin-top: -0.4rem;
}

.location__hours {
  color: var(--dim);
  font-size: 0.92rem;
}

.location__cta {
  margin-top: 0.4rem;
  border: 1px solid var(--line-strong);
  padding: 0.9rem 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  min-height: 44px;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.location__cta:hover,
.location__cta:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1305;
}
.location__cta-arrow { transition: transform var(--dur) var(--ease); }
.location__cta:hover .location__cta-arrow,
.location__cta:focus-visible .location__cta-arrow { transform: translateX(6px); }

@media (max-width: 768px) {
  .location {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }

  /* Map becomes a fixed-height block at the top of the stack instead of a
     full-bleed backdrop, so it never competes with the card for space. */
  .location__map {
    position: relative;
    inset: auto;
    width: 100%;
    height: clamp(240px, 58vw, 340px);
    flex: none;
  }
  .location__map-scrim {
    background: linear-gradient(to top, rgba(6, 6, 7, 0.75) 0%, rgba(6, 6, 7, 0.05) 55%, rgba(6, 6, 7, 0.25) 100%);
  }

  /* Card drops into normal document flow below the map — no overlay, no overlap. */
  .location__inner {
    position: relative;
    padding: clamp(1.5rem, 6vw, 2rem) var(--gutter);
  }
  .location__card {
    max-width: 100%;
    padding: 1.75rem;
  }
  .location__address { font-size: 1.5rem; }
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  padding-top: clamp(3rem, 8vw, 6rem);
}
.footer__hero {
  position: relative;
  background:
    linear-gradient(
      to bottom,
      var(--bg) 0%,
      rgba(6, 6, 7, 0.6) 6%,
      rgba(6, 6, 7, 0.3) 18%,
      rgba(6, 6, 7, 0.16) 32%,
      rgba(6, 6, 7, 0.42) 55%,
      rgba(4, 4, 5, 0.78) 100%
    ),
    var(--footer-image);
  background-size: cover;
  background-position: center;
  padding: clamp(4rem, 12vw, 7rem) 5% clamp(2.5rem, 6vw, 4rem);
}
.footer__hero-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.footer__wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--white);
  line-height: 0.95;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}
.footer__columns {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.footer__copy {
  color: var(--dim);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  max-width: 46ch;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}
.footer__copy strong { color: var(--white); font-weight: 500; }
.footer__hours { color: var(--dim); font-size: 0.95rem; line-height: 1.9; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55); }
.footer__hours-title { color: var(--white); margin-bottom: 0.35rem; }

@media (max-width: 768px) {
  /* hero2.jpg's two hands sit wide and slightly left of the image's own
     center (centroid ≈ 46%) — nudge the anchor so cover-cropping on
     narrow screens doesn't favor one hand over the other. */
  .footer__hero {
    background-position: 46% center !important;
  }
}

.footer__divider {
  max-width: var(--container);
  margin: 0 auto;
  height: 28px;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--line) 0, var(--line) 1px,
    transparent 1px, transparent 14px
  );
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.footer__bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 2rem) var(--gutter) clamp(2rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  font-size: 0.92rem;
  color: var(--dim);
}
.footer__links a:hover { color: var(--white); }

@media (max-width: 860px) {
  .footer__columns { grid-template-columns: 1fr; gap: clamp(1.75rem, 5vw, 2.5rem); }
}

/* =========================================================
   Back to top
   ========================================================= */
.back-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(8, 8, 9, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--white);
  font-size: 1.1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  z-index: 90;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: rgba(255,255,255,0.08); }
