/* =========================================================
   BNM Barbershop: demo site stylesheet
   Swap the tokens below to re-skin this template for another client.
   ========================================================= */

/* Self-hosted fonts (SIL Open Font License, see fonts/OFL.txt). Latin subset, variable weights. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/inter-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display"; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url("../fonts/playfair-display-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display"; font-style: italic; font-weight: 500; font-display: swap;
  src: url("../fonts/playfair-display-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Palette (DESIGN.md section 4) */
  --c-ceiling: #0B0B0D;      /* dark section background */
  --c-station: #16171A;      /* cards / surfaces */
  --c-wall: #F7F7F5;         /* light section background */
  --c-gold: #F2C230;         /* primary accent */
  --c-gold-deep: #C9A13B;    /* accent hover */
  --c-chrome: #C8CCD2;       /* metal / borders */
  --c-glow: #EAF4FF;         /* LED glow */
  --c-text-on-dark: #E6E6E6;
  --c-text-on-light: #1A1A1A;
  --c-muted-on-dark: #A3A7AE;
  --c-muted-on-light: #55575C;
  --c-dim-word: #5A5D63;     /* unlit words in welcome paragraph */
  --c-line-light: #D9DBDE;
  --c-warm-light: #FFE9C2;   /* mirror strip light */

  /* Type (BUILD-BRIEF section 1) */
  --f-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Shape and rhythm */
  --radius: 6px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 10vw, 8rem);
  --max: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: 240ms;
  --glow-shadow: 0 0 0 1px rgba(242, 194, 48, .55), 0 0 18px rgba(242, 194, 48, .35), 0 0 36px rgba(234, 244, 255, .12);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-text-on-dark);
  background: var(--c-ceiling);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--c-gold); outline-offset: 3px; border-radius: 2px; }
.section--light :focus-visible { outline-color: var(--c-text-on-light); box-shadow: 0 0 0 6px var(--c-gold); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--c-gold); color: #000; padding: .75rem 1rem; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--section-y); }
.section--dark { background: var(--c-ceiling); color: var(--c-text-on-dark); }
.section--station { background: var(--c-station); color: var(--c-text-on-dark); }
.section--light { background: var(--c-wall); color: var(--c-text-on-light); }

/* Film grain over dark sections (<4% opacity) */
.section--dark::after, .section--station::after, .site-footer::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../images/grain.svg"); opacity: .035; mix-blend-mode: screen;
}
.section > * { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--f-body); font-size: .75rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; margin: 0 0 1rem;
  color: var(--c-gold);
}
.eyebrow::before {
  content: ""; width: 10px; height: 10px; background: url("../images/hex-gold.svg") center / contain no-repeat;
}
.section--light .eyebrow { color: var(--c-text-on-light); }

.section-title { font-size: clamp(2rem, 5vw, 3.25rem); margin-bottom: .4em; }
.section-intro { max-width: 60ch; color: var(--c-muted-on-dark); font-size: 1.0625rem; }
.section--light .section-intro { color: var(--c-muted-on-light); }
.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head--center { text-align: center; }
.section-head--center .section-intro { margin-inline: auto; }

.gold { color: var(--c-gold); }

/* Hexagon divider row */
.hex-divider {
  height: 24px; background: url("../images/hex-row.svg") center / 36px 24px repeat-x;
  opacity: .5; border: 0; margin: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
}
.hairline { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, var(--c-gold-deep), transparent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.5rem;
  font-family: var(--f-body); font-weight: 600; font-size: .875rem;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  border-radius: var(--radius); border: 1px solid transparent;
  transition: box-shadow var(--t) var(--ease), background-color var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.btn--gold { background: var(--c-gold); color: #0B0B0D; }
.btn--gold:hover, .btn--gold:focus-visible { background: var(--c-gold-deep); box-shadow: var(--glow-shadow); }
.btn--chrome { border-color: var(--c-chrome); color: var(--c-text-on-dark); background: rgba(11, 11, 13, .35); }
.btn--chrome:hover, .btn--chrome:focus-visible { border-color: var(--c-glow); box-shadow: 0 0 18px rgba(234, 244, 255, .28); background: rgba(234, 244, 255, .06); }
.btn--dark { background: var(--c-text-on-light); color: var(--c-wall); }
.btn--dark:hover, .btn--dark:focus-visible { background: #000; box-shadow: var(--glow-shadow); }
.btn--outline-dark { border-color: var(--c-text-on-light); color: var(--c-text-on-light); }
.btn--outline-dark:hover, .btn--outline-dark:focus-visible { background: var(--c-text-on-light); color: var(--c-wall); }
.btn--sm { min-height: 44px; padding: .5rem 1rem; font-size: .75rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.text-link {
  display: inline-flex; align-items: center; min-height: 44px; gap: .35rem;
  font-weight: 600; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  color: var(--c-gold); border-bottom: 1px solid transparent;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.section--light .text-link { color: var(--c-text-on-light); }
.section--light .text-link::after { content: "→"; color: var(--c-text-on-light); }

/* ---------- LED progress line ---------- */
.progress-line {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 300; pointer-events: none;
  background: var(--c-gold); transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
  box-shadow: 0 0 8px rgba(242, 194, 48, .8), 0 0 18px rgba(234, 244, 255, .25);
}

/* ---------- Brand intro ---------- */
.intro { display: none; }
.intro-on .intro {
  position: fixed; inset: 0; z-index: 900; display: grid; place-items: center;
  background: var(--c-ceiling);
  animation: intro-out 300ms var(--ease) 1.2s forwards; /* fail-safe even if main.js never runs */
}
.intro__hex {
  position: absolute; inset: 0; background: url("../images/hex-pattern.svg") center / 56px 100px;
  opacity: 0; filter: drop-shadow(0 0 3px rgba(234, 244, 255, .8));
  -webkit-mask-image: radial-gradient(circle at center, #000 0, transparent 65%);
          mask-image: radial-gradient(circle at center, #000 0, transparent 65%);
  animation: intro-hex 700ms ease-out 250ms forwards;
}
.intro__mark { width: 120px; height: 120px; opacity: 0; transform: scale(.94); animation: intro-mark 500ms var(--ease) forwards; }
.intro__skip {
  position: absolute; right: 1rem; bottom: 1rem; min-height: 44px; padding: .5rem 1rem;
  background: transparent; border: 1px solid var(--c-chrome); border-radius: var(--radius);
  font-size: .75rem; letter-spacing: .16em; text-transform: uppercase;
}
.intro.is-done { animation: intro-out 250ms var(--ease) forwards; }
@keyframes intro-mark { to { opacity: 1; transform: none; } }
@keyframes intro-hex { 0% { opacity: 0; } 60% { opacity: .35; } 100% { opacity: .22; } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200; height: var(--header-h);
  background: rgba(11, 11, 13, .82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 204, 210, .14);
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; min-height: 44px; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__word { font-family: var(--f-display); font-size: 1.15rem; letter-spacing: .14em; color: #fff; white-space: nowrap; }
.brand__word span { color: var(--c-muted-on-dark); font-family: var(--f-body); font-size: .62rem; letter-spacing: .32em; display: block; line-height: 1; margin-top: 2px; }

.open-badge {
  display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .7rem;
  border: 1px solid rgba(200, 204, 210, .28); border-radius: 999px;
  font-size: .75rem; white-space: nowrap; color: var(--c-text-on-dark);
}
.open-badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-muted-on-dark); flex: none; }
.open-badge.is-open .open-badge__dot { background: var(--c-gold); box-shadow: 0 0 8px var(--c-gold); }
.site-header .open-badge { display: none; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: .25rem; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .8rem;
  font-size: .8125rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  color: var(--c-text-on-dark); position: relative;
}
.nav__link::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: 8px; height: 1px; background: var(--c-gold);
  transform: scaleX(0); transition: transform var(--t) var(--ease);
}
.nav__link:hover::after, .nav__link:focus-visible::after { transform: scaleX(1); }
.header-phone { display: none; font-size: .875rem; text-decoration: none; white-space: nowrap; min-height: 44px; align-items: center; color: var(--c-text-on-dark); }
.header-phone:hover { color: var(--c-gold); }
.site-header .btn { flex: none; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto;
  background: transparent; border: 1px solid rgba(200, 204, 210, .35); border-radius: var(--radius);
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 18px; height: 1.5px; background: var(--c-text-on-dark); position: relative; transition: transform var(--t) var(--ease);
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1023.98px) {
  .site-header .btn--gold { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: var(--c-ceiling); border-bottom: 1px solid rgba(200, 204, 210, .18);
    padding: 1rem var(--gutter) 1.5rem; display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; }
  .nav__link { min-height: 52px; font-size: .9375rem; border-bottom: 1px solid rgba(200, 204, 210, .1); width: 100%; padding: 0; }
  .nav__link::after { left: 0; right: auto; width: 40px; }
  .nav .open-badge { margin-top: 1rem; }
}
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-header .open-badge { display: inline-flex; }
  .site-header .open-badge--mobile { display: none; }
  .nav { margin-left: auto; }
}
@media (min-width: 1280px) { .header-phone { display: inline-flex; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: calc(100svh - var(--header-h)); display: grid; align-items: end;
  overflow: hidden; background: var(--c-ceiling) url("../images/hero-poster-shop-interior.webp") center / cover no-repeat;
  padding-bottom: clamp(5rem, 10vh, 7rem);
}
@media (max-width: 767.98px) { .hero { background-image: url("../images/hero-poster-shop-interior-960.webp"); } }
.hero__media { position: absolute; inset: 0; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 11, 13, .5) 0%, rgba(11, 11, 13, .45) 35%, rgba(11, 11, 13, .9) 80%, var(--c-ceiling) 100%),
    radial-gradient(ellipse at 30% 70%, rgba(11, 11, 13, .55), transparent 60%);
}
.hero__hex {
  position: absolute; inset: 0; pointer-events: none;
  background: url("../images/hex-pattern.svg") center top / 56px 100px;
  opacity: .14; filter: drop-shadow(0 0 2px rgba(234, 244, 255, .9));
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 55%);
          mask-image: linear-gradient(180deg, #000 0%, transparent 55%);
  animation: led-breathe 6s ease-in-out infinite;
}
@keyframes led-breathe { 0%, 100% { opacity: .1; } 50% { opacity: .2; } }
.hero__content { position: relative; z-index: 2; }
.hero__title {
  font-size: clamp(2.75rem, 10vw, 7rem); font-weight: 600; letter-spacing: .06em; line-height: 1; margin-bottom: .25em; color: #fff;
}
.hero__title span { display: block; font-size: .32em; letter-spacing: .5em; font-family: var(--f-body); font-weight: 500; color: var(--c-chrome); margin-top: .6em; }
.hero__tagline { font-family: var(--f-display); font-style: italic; font-size: clamp(1.25rem, 3vw, 1.75rem); color: var(--c-gold); margin-bottom: 1.75rem; }
.hero__phone { margin-top: 1rem; font-size: .9375rem; color: var(--c-muted-on-dark); }
.hero__phone a { color: var(--c-text-on-dark); }
.media-toggle {
  position: absolute; z-index: 3; right: var(--gutter); bottom: 1.25rem;
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem .9rem;
  background: rgba(11, 11, 13, .6); border: 1px solid rgba(200, 204, 210, .45); border-radius: var(--radius);
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
}
.media-toggle:hover { border-color: var(--c-glow); }
.media-toggle svg { width: 14px; height: 14px; }

/* ---------- Welcome (lights up word by word) ---------- */
.welcome__text {
  font-family: var(--f-display); font-size: clamp(1.6rem, 4.2vw, 3rem); line-height: 1.35; max-width: 26ch; margin: 0 0 2rem;
  color: #fff;
}
.welcome__text .key { color: var(--c-gold); }
.js-lit .welcome__text .w { color: var(--c-dim-word); transition: color 200ms linear, text-shadow 200ms linear; }
.js-lit .welcome__text .w.on { color: #fff; text-shadow: 0 0 18px rgba(234, 244, 255, .25); }
.js-lit .welcome__text .w.key.on { color: var(--c-gold); text-shadow: 0 0 18px rgba(242, 194, 48, .3); }

.space { display: grid; gap: 2rem; margin-top: clamp(3rem, 7vw, 5rem); }
.space__copy p { color: var(--c-muted-on-dark); max-width: 52ch; }
.space__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.space__grid figure:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .space { grid-template-columns: 1fr 1.6fr; align-items: center; }
}

/* Mirror-light frame for images and cards */
.frame { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--c-station); border: 1px solid rgba(200, 204, 210, .22); }
.frame::before {
  content: ""; position: absolute; z-index: 2; top: 0; left: 12%; right: 12%; height: 2px;
  background: var(--c-warm-light); box-shadow: 0 0 10px rgba(255, 233, 194, .8);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Style ribbon ---------- */
.ribbon { position: relative; padding-block: 1.25rem; border-block: 1px solid rgba(200, 204, 210, .16); overflow: hidden; }
.ribbon__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ribbon__track { display: flex; width: max-content; animation: ribbon 60s linear infinite; }
.ribbon__list { display: flex; align-items: center; flex: none; }
.ribbon__list li {
  display: flex; align-items: center; gap: 1.75rem; padding-right: 1.75rem;
  font-family: var(--f-display); font-style: italic; font-size: clamp(1.25rem, 2.6vw, 1.75rem); white-space: nowrap; color: var(--c-text-on-dark);
}
.ribbon__list li::after { content: ""; width: 10px; height: 10px; background: url("../images/hex-gold.svg") center / contain no-repeat; }
.ribbon:hover .ribbon__track, .ribbon:focus-within .ribbon__track, .ribbon.is-paused .ribbon__track { animation-play-state: paused; }
.ribbon .media-toggle { position: static; margin: 1rem auto 0; display: flex; }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* ---------- Services menu ---------- */
.menu-grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); }
@media (min-width: 900px) { .menu-grid { grid-template-columns: 1fr 1fr; column-gap: clamp(3rem, 6vw, 6rem); } }
.menu-group__title {
  font-size: 1.5rem; display: flex; align-items: baseline; gap: 1rem; padding-bottom: .75rem; margin-bottom: .5rem;
  border-bottom: 1px solid var(--c-text-on-light);
}
.menu-group__title small { font-family: var(--f-body); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--c-muted-on-light); font-weight: 500; }
.menu-item { position: relative; padding: 1rem .25rem; border-bottom: 1px solid var(--c-line-light); transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease); }
.menu-item:hover, .menu-item:focus-within { border-bottom-color: var(--c-gold-deep); background: rgba(242, 194, 48, .06); }
.menu-item__row { display: flex; align-items: baseline; gap: .5rem; }
.menu-item__name { font-family: var(--f-display); font-size: 1.1875rem; font-weight: 600; margin: 0; }
.menu-item__leader { flex: 1; border-bottom: 2px dotted #A6A9AF; transform: translateY(-.3em); min-width: 1.5rem; }
.menu-item__price { font-family: var(--f-display); font-size: 1.1875rem; font-weight: 600; white-space: nowrap; }
.menu-item__desc { margin: .25rem 0 .25rem; color: var(--c-muted-on-light); font-size: .9375rem; max-width: 46ch; }
.menu-item__meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .8125rem; color: var(--c-muted-on-light); letter-spacing: .06em; }
.menu-item__meta .text-link { min-height: 44px; font-size: .75rem; }
.menu-group--spaced { margin-top: 3rem; }
.menu-item__name small { font-family: var(--f-body); font-size: .8125rem; font-weight: 400; color: var(--c-muted-on-light); }
.menu-note { margin-top: 2.5rem; font-size: .875rem; color: var(--c-muted-on-light); }

/* ---------- Products ---------- */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .products { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .products { grid-template-columns: repeat(6, 1fr); } }
.card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(160deg, #1d1e22, var(--c-station) 45%, #111214);
  border: 1px solid rgba(200, 204, 210, .2); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); overflow: hidden;
}
.card::before { content: ""; position: absolute; z-index: 2; top: 0; left: 15%; right: 15%; height: 2px; background: var(--c-warm-light); box-shadow: 0 0 10px rgba(255, 233, 194, .75); }
.card img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.card__body { padding: 1rem; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.card__title { font-size: 1.0625rem; margin: 0; }
.card__price { color: var(--c-gold); font-weight: 600; }
.card__note { font-size: .8125rem; color: var(--c-muted-on-dark); margin: 0; margin-top: auto; padding-top: .25rem; }
.card .text-link { font-size: .75rem; }

/* ---------- Story ---------- */
.story { display: grid; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
@media (min-width: 900px) { .story { grid-template-columns: 5fr 7fr; } }
.story__portrait { aspect-ratio: 4 / 5; }
.story__copy p { color: var(--c-muted-on-light); max-width: 58ch; }
.story__copy .section-title { color: var(--c-text-on-light); }
.pull-quote {
  margin: 2rem 0; padding-left: 1.5rem; border-left: 1px solid var(--c-gold-deep);
  font-family: var(--f-display); font-style: italic; font-size: clamp(1.5rem, 3.4vw, 2.25rem); line-height: 1.3; color: var(--c-text-on-light);
}
.pull-quote p { color: inherit; max-width: none; margin: 0; }
.story__copy .signature {
  display: inline-block; padding: .4rem 1rem; background: var(--c-ceiling); border-radius: var(--radius);
  font-family: var(--f-display); font-style: italic; font-size: 1.75rem; color: var(--c-gold); line-height: 1.3;
}
.signature small { display: block; font-family: var(--f-body); font-style: normal; font-size: .6875rem; letter-spacing: .22em; text-transform: uppercase; color: var(--c-chrome); }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: 1fr; gap: 2.5rem 1.5rem; }
@media (min-width: 560px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .team { grid-template-columns: repeat(4, 1fr); } }
.barber { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hex-frame {
  width: min(220px, 70vw); aspect-ratio: 1 / 1.1547; position: relative; margin-bottom: 1.25rem;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(160deg, #f4f6f8, var(--c-chrome) 50%, #6f747c);
  padding: 2px;
}
.hex-frame img {
  width: 100%; height: 100%; object-fit: cover; background: var(--c-station);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.barber__name { font-size: 1.5rem; margin-bottom: .1em; }
.barber__role { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--c-gold); margin-bottom: .5rem; }
.barber__bio { color: var(--c-muted-on-dark); font-size: .9375rem; max-width: 30ch; margin-bottom: 1.25rem; }
.barber .btn { margin-top: auto; }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter-btn {
  min-height: 44px; padding: .5rem 1.1rem; border-radius: 999px; background: transparent;
  border: 1px solid var(--c-text-on-light); color: var(--c-text-on-light);
  font-size: .8125rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
}
.filter-btn:hover { background: rgba(26, 26, 26, .06); }
.filter-btn[aria-pressed="true"] { background: var(--c-text-on-light); color: var(--c-wall); }
.masonry { columns: 2 160px; column-gap: .75rem; }
@media (min-width: 900px) { .masonry { columns: 3; column-gap: 1rem; } }
.masonry__item { break-inside: avoid; margin-bottom: .75rem; }
@media (min-width: 900px) { .masonry__item { margin-bottom: 1rem; } }
.masonry__btn {
  display: block; width: 100%; padding: 0; border: 0; background: var(--c-station); border-radius: var(--radius); overflow: hidden; position: relative;
}
.masonry__btn img { width: 100%; transition: transform 280ms var(--ease), opacity 280ms var(--ease); }
.masonry__btn:hover img { transform: scale(1.03); }
.masonry__btn::after {
  content: attr(data-caption); position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem .75rem .6rem;
  background: linear-gradient(transparent, rgba(11, 11, 13, .85)); color: #fff; font-size: .8125rem; letter-spacing: .08em; text-align: left;
  opacity: 0; transition: opacity var(--t) var(--ease);
}
.masonry__btn:hover::after, .masonry__btn:focus-visible::after { opacity: 1; }
.gallery-count { font-size: .875rem; color: var(--c-muted-on-light); margin-bottom: 1rem; }

/* Before / after */
.ba-wrap { margin-top: clamp(3rem, 7vw, 5rem); }
.ba-grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .ba-grid { grid-template-columns: 1fr 1fr; } }
.ba { margin: 0; }
.ba__stage { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--c-station); --pos: 50%; touch-action: pan-y; }
.ba__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__after { clip-path: inset(0 0 0 var(--pos)); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--c-gold);
  box-shadow: 0 0 10px rgba(242, 194, 48, .8); pointer-events: none;
}
.ba__handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: var(--c-ceiling); border: 1px solid var(--c-gold); color: var(--c-gold); font-size: 1.1rem; letter-spacing: .1em;
}
.ba__label {
  position: absolute; top: .75rem; z-index: 2; padding: .25rem .6rem; border-radius: 4px;
  background: rgba(11, 11, 13, .75); color: #fff; font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase;
}
.ba__label--before { left: .75rem; }
.ba__label--after { right: .75rem; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; }
.ba__stage:has(.ba__range:focus-visible) { outline: 3px solid var(--c-text-on-light); box-shadow: 0 0 0 6px var(--c-gold); }
.ba figcaption { margin-top: .75rem; font-size: .9375rem; color: var(--c-muted-on-light); }

/* Lightbox */
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(11, 11, 13, .96); color: var(--c-text-on-dark);
}
.lightbox::backdrop { background: rgba(0, 0, 0, .7); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: .75rem var(--gutter); }
.lightbox__count { font-size: .8125rem; letter-spacing: .14em; color: var(--c-muted-on-dark); }
.lightbox__figure { margin: 0; display: grid; place-items: center; min-height: 0; padding: 0 var(--gutter); }
.lightbox__img { max-height: 72vh; width: auto; max-width: 100%; border-radius: var(--radius); }
.lightbox__caption { text-align: center; padding: 1rem var(--gutter) 0; color: var(--c-text-on-dark); }
.lightbox__nav { display: flex; justify-content: center; gap: 1rem; padding: 1rem; }
.icon-btn {
  display: inline-grid; place-items: center; min-width: 48px; min-height: 48px; padding: 0 .9rem;
  background: transparent; border: 1px solid rgba(200, 204, 210, .45); border-radius: var(--radius);
  font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-text-on-dark);
}
.icon-btn:hover { border-color: var(--c-glow); box-shadow: 0 0 14px rgba(234, 244, 255, .2); }

/* ---------- Reviews ---------- */
.rating-line { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin-bottom: 2.5rem; }
.rating-line strong { font-family: var(--f-display); font-size: 2.5rem; color: var(--c-gold); line-height: 1; }
.stars { color: var(--c-gold); letter-spacing: .15em; }
.reviews { display: grid; gap: 1rem; }
@media (min-width: 640px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
.review {
  margin: 0; padding: 1.75rem; border: 1px solid rgba(200, 204, 210, .2); border-radius: var(--radius);
  background: linear-gradient(160deg, #1b1c20, var(--c-station));
}
.review blockquote { margin: .75rem 0 1.25rem; font-family: var(--f-display); font-size: 1.25rem; line-height: 1.45; color: #fff; }
.review blockquote p { margin: 0; }
.review figcaption { font-size: .875rem; color: var(--c-muted-on-dark); }
.review figcaption strong { color: var(--c-text-on-dark); font-weight: 600; }
.carousel-controls { display: none; gap: .75rem; align-items: center; margin-top: 1.5rem; }
.sample-note { font-size: .8125rem; color: var(--c-muted-on-dark); margin-top: 1.5rem; }
@media (min-width: 900px) {
  .reviews.is-carousel { display: grid; grid-template-columns: 1fr; position: relative; min-height: 260px; }
  .reviews.is-carousel .review { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 280ms var(--ease), visibility 0s linear 280ms; max-width: 760px; }
  .reviews.is-carousel .review.is-active { opacity: 1; visibility: visible; transition: opacity 280ms var(--ease); }
  .reviews.is-carousel .review blockquote { font-size: 1.75rem; }
  .is-carousel ~ .carousel-controls { display: flex; }
}

/* ---------- Gift / loyalty banner ---------- */
.perks { display: grid; gap: 1rem; }
@media (min-width: 768px) { .perks { grid-template-columns: 1fr 1fr; } }
.perk {
  position: relative; padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: 10px; overflow: hidden; color: var(--c-text-on-dark);
  background: linear-gradient(135deg, #1e1f23 0%, #0B0B0D 55%, #16171A 100%);
  border: 1px solid rgba(200, 204, 210, .3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.perk::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; pointer-events: none;
  background: url("../images/hex-pattern.svg") center / 28px 50px; opacity: .1;
  -webkit-mask-image: radial-gradient(circle, #000, transparent 70%); mask-image: radial-gradient(circle, #000, transparent 70%);
}
.perk__title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .35em; color: #fff; }
.perk p { color: var(--c-muted-on-dark); }
.perk .eyebrow { color: var(--c-gold); }

/* ---------- Book ---------- */
.book { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .book { grid-template-columns: 4fr 7fr; align-items: start; } }
.book__embed {
  min-height: 460px; border-radius: var(--radius); border: 1px solid rgba(200, 204, 210, .3);
  background: var(--c-station); display: grid; place-items: center; text-align: center; padding: 2rem; overflow: hidden; position: relative;
}
.book__embed::before { content: ""; position: absolute; top: 0; left: 15%; right: 15%; height: 2px; background: var(--c-warm-light); box-shadow: 0 0 10px rgba(255, 233, 194, .8); }
.book__embed iframe { width: 100%; height: 720px; border: 0; }
.book__embed.has-iframe { padding: 0; display: block; }
.book__placeholder h3 { font-size: 1.5rem; }
.book__placeholder .brand__mark { width: 56px; height: 56px; margin: 0 auto 1rem; }
.book__placeholder p { color: var(--c-muted-on-dark); max-width: 42ch; margin-inline: auto; }
.book__barber-note { display: inline-flex; gap: .5rem; align-items: center; padding: .5rem .9rem; border: 1px solid var(--c-gold); border-radius: 999px; color: var(--c-gold); font-size: .875rem; margin-bottom: 1rem; }
.book__aside p { color: var(--c-muted-on-dark); }
.book__list li { display: flex; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid rgba(200, 204, 210, .12); color: var(--c-text-on-dark); }
.book__list li::before { content: ""; flex: none; margin-top: .55em; width: 9px; height: 9px; background: url("../images/hex-gold.svg") center / contain no-repeat; }

/* ---------- Visit ---------- */
.visit { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 1024px) { .visit { grid-template-columns: 1fr 1fr; } }
.visit address { font-style: normal; font-size: 1.125rem; margin-bottom: 1rem; }
.visit__phone { font-family: var(--f-display); font-size: 1.5rem; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.visit__phone:hover { text-decoration: underline; }
.hours { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .9375rem; }
.hours caption { text-align: left; font-family: var(--f-display); font-size: 1.25rem; font-weight: 600; padding-bottom: .5rem; }
.hours th, .hours td { padding: .6rem 0; border-bottom: 1px solid var(--c-line-light); text-align: left; font-weight: 400; }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; }
.hours tr.is-today th::after { content: " · Today"; font-weight: 500; color: var(--c-muted-on-light); }
.note-list { margin: 1rem 0 1.5rem; }
.note-list li { padding: .3rem 0 .3rem 1.4rem; position: relative; color: var(--c-muted-on-light); }
.note-list li::before { content: ""; position: absolute; left: 0; top: .75em; width: 9px; height: 9px; background: var(--c-text-on-light); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.note-list strong { color: var(--c-text-on-light); }

.map { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--c-line-light); aspect-ratio: 12 / 7; background: #E7E8EA; }
.map img, .map iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.map__consent {
  position: absolute; inset: auto 0 0 0; padding: 1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem;
  background: rgba(247, 247, 245, .95); border-top: 1px solid var(--c-line-light); font-size: .8125rem; color: var(--c-muted-on-light);
}
.map__consent p { margin: 0; max-width: 38ch; }

.faq { margin-top: 2.5rem; }
.faq h3 { font-size: 1.5rem; }
.faq details { border-bottom: 1px solid var(--c-line-light); }
.faq summary {
  list-style: none; cursor: pointer; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-weight: 600; padding: .75rem 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-display); font-size: 1.5rem; line-height: 1; transition: transform var(--t) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--c-muted-on-light); padding-bottom: 1rem; margin: 0; }

/* Contact form */
.contact { margin-top: 2.5rem; padding: clamp(1.5rem, 4vw, 2rem); border: 1px solid var(--c-line-light); border-radius: var(--radius); background: #fff; }
.contact h3 { font-size: 1.5rem; }
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field label { font-weight: 600; font-size: .875rem; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem; border: 1px solid #8E929A; border-radius: var(--radius); background: #fff; color: var(--c-text-on-light);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--c-text-on-light); outline-offset: 1px; box-shadow: 0 0 0 6px var(--c-gold); }
.field [aria-invalid="true"] { border-color: #B3261E; }
.field__error { color: #B3261E; font-size: .8125rem; min-height: 0; }
.form-status { margin-top: 1rem; font-weight: 600; }
.form-status.is-error { color: #B3261E; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--c-ceiling); color: var(--c-text-on-dark); padding: 4rem 0 7rem; border-top: 1px solid rgba(200, 204, 210, .14); }
@media (min-width: 768px) { .site-footer { padding-bottom: 2.5rem; } }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font-family: var(--f-body); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--c-gold); font-weight: 600; margin-bottom: 1rem; }
.site-footer address { font-style: normal; color: var(--c-muted-on-dark); }
.site-footer a { color: var(--c-text-on-dark); }
.site-footer a:hover { color: var(--c-gold); }
.footer-links li a, .footer-links li button { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer-links button { background: none; border: 0; padding: 0; color: var(--c-text-on-dark); text-decoration: none; }
.footer-links button:hover { color: var(--c-gold); }
.footer-hours li { display: flex; justify-content: space-between; gap: 1rem; color: var(--c-muted-on-dark); padding: .15rem 0; max-width: 240px; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(200, 204, 210, .14);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .8125rem; color: var(--c-muted-on-dark);
}
.footer-bottom p { margin: 0; }
.demo-notice { max-width: 70ch; }
.footer-tagline { margin: 1rem 0 0; font-size: 1.25rem; }
.social { display: flex; gap: .5rem; margin-top: 1rem; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(200, 204, 210, .35); border-radius: var(--radius);
}
.social a:hover { border-color: var(--c-gold); box-shadow: 0 0 14px rgba(242, 194, 48, .25); }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Mobile sticky bar ---------- */
.mobile-bar {
  position: fixed; inset: auto 0 0 0; z-index: 250; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
  padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(11, 11, 13, .94); border-top: 1px solid rgba(200, 204, 210, .2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.mobile-bar .btn { min-height: 48px; }
@media (min-width: 768px) { .mobile-bar { display: none; } }
@media (max-width: 767.98px) { body { padding-bottom: 72px; } }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; z-index: 800; left: 1rem; right: 1rem; bottom: calc(80px + env(safe-area-inset-bottom));
  max-width: 560px; margin-inline: auto; padding: 1.5rem;
  background: var(--c-station); color: var(--c-text-on-dark); border: 1px solid rgba(200, 204, 210, .35); border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.cookie::before { content: ""; position: absolute; top: 0; left: 15%; right: 15%; height: 2px; background: var(--c-warm-light); box-shadow: 0 0 10px rgba(255, 233, 194, .8); }
@media (min-width: 768px) { .cookie { bottom: 1.5rem; left: auto; right: 1.5rem; margin: 0; } }
.cookie h2 { font-size: 1.375rem; }
.cookie p { font-size: .9375rem; color: var(--c-muted-on-dark); }
.cookie__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.cookie__actions .btn { padding-inline: .5rem; font-size: .75rem; letter-spacing: .08em; }
.cookie__prefs { margin: 1rem 0; border: 0; padding: 0; }
.cookie__prefs legend { font-weight: 600; margin-bottom: .5rem; }
.toggle { display: flex; align-items: flex-start; gap: .75rem; padding: .6rem 0; border-top: 1px solid rgba(200, 204, 210, .14); cursor: pointer; }
.toggle input { width: 22px; height: 22px; margin: .15rem 0 0; accent-color: var(--c-gold); flex: none; }
.toggle span { display: grid; font-size: .875rem; color: var(--c-muted-on-dark); }
.toggle strong { color: var(--c-text-on-dark); font-size: .9375rem; }
.cookie__gpc { font-size: .8125rem; color: var(--c-gold); margin: .25rem 0 0; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 280ms var(--ease), transform 280ms var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Simple pages (privacy / 404) ---------- */
.page { padding-block: clamp(3rem, 8vw, 6rem); }
.page h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); }
.page h2 { font-size: 1.5rem; margin-top: 2rem; }
.page p, .page li { max-width: 68ch; color: var(--c-muted-on-light); }
.page ul { list-style: disc; padding-left: 1.25rem; }
.notfound { min-height: calc(100svh - var(--header-h)); display: grid; place-items: center; text-align: center; position: relative; overflow: hidden; }
.notfound .hero__hex { -webkit-mask-image: radial-gradient(circle, #000, transparent 70%); mask-image: radial-gradient(circle, #000, transparent 70%); }
.section-intro--center { margin-inline: auto; margin-bottom: 2rem; }
.btn-row--center { justify-content: center; }
.privacy-book { margin-left: auto; }
.notfound__code { font-family: var(--f-display); font-size: clamp(5rem, 20vw, 10rem); color: var(--c-gold); line-height: 1; margin: 0; }

/* ---------- Breakpoint polish ---------- */
@media (min-width: 1440px) { :root { --max: 1280px; } }

/* ---------- Reduced motion: no glow animations, no autoplay, no movement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero__hex { animation: none; opacity: .14; }
  .progress-line { display: none; }
  .ribbon__track { animation: none; width: auto; }
  .ribbon__viewport { -webkit-mask-image: none; mask-image: none; }
  .ribbon__list { flex: 1 1 auto; flex-wrap: wrap; justify-content: center; row-gap: .5rem; padding-inline: var(--gutter); }
  .ribbon__list[aria-hidden="true"], .ribbon .media-toggle { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  .js-lit .welcome__text .w { color: #fff; }
  .js-lit .welcome__text .w.key { color: var(--c-gold); }
}
