/* =========================================================
   THE ATELIER — Design tokens
   ========================================================= */
:root {
  --ink:         #0A0908;
  --ink-raised:  #13110F;
  --ink-deeper:  #050403;
  --hairline:    #2A2622;
  --ivory:       #F5EFE6;
  --ivory-muted: #A89E91;
  --brass:       #B68A48;
  --brass-deep:  #7A5A2C;
  --oxblood:     #5B1A1A;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-door: cubic-bezier(0.83, 0, 0.17, 1);

  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans:  "Archivo", "Helvetica Neue", Helvetica, sans-serif;

  --gutter: 32px;
  --margin: 120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--ink); color: var(--ivory); }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  cursor: none;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
@media (hover: none) { body { cursor: auto; } }

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: none; }
a { color: inherit; text-decoration: none; cursor: none; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.mob-nav, .frame-top, .back-to-top { user-select: none; }

::selection { background: var(--brass); color: var(--ink); }

/* tabular figures everywhere we want numbers */
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* =========================================================
   Type primitives
   ========================================================= */
.display { font-family: var(--serif); font-weight: 500; line-height: 0.92; letter-spacing: -0.02em; }
.display-italic { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ivory-muted);
}
.eyebrow .num { color: var(--ivory); font-variant-numeric: tabular-nums; }
.dash::before { content: "— "; color: var(--ivory-muted); margin-right: 4px; }

.lead {
  font-size: clamp(18px, 1.25vw, 22px);
  line-height: 1.7;
  color: var(--ivory);
}
.body { font-size: 16px; line-height: 1.65; color: var(--ivory-muted); }
.body strong { color: var(--ivory); font-weight: 500; }

.h-xl { font-size: clamp(72px, 12vw, 220px); }
.h-l  { font-size: clamp(48px, 6vw, 96px); }
.h-m  { font-size: clamp(32px, 3.4vw, 56px); }

/* =========================================================
   Loader
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink);
  display: grid; place-items: center;
  clip-path: inset(0 0 0% 0);
  transition: clip-path 700ms var(--ease-door), visibility 700ms var(--ease-door);
}
.loader.done {
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  pointer-events: none;
}
.loader-line {
  width: 0; height: 1px; background: var(--brass);
  transition: width 1400ms var(--ease);
}
.loader.fill .loader-line { width: 60vw; }
.loader.split .loader-line {
  width: 100vw;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 700ms var(--ease);
}

/* ---- Loader wordmark ---- */
.loader-wordmark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, calc(-50% - 32px));
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 700ms var(--ease);
}
.loader.fill .loader-wordmark {
  opacity: 1;
  transition: opacity 700ms var(--ease) 200ms;
}
.loader.split .loader-wordmark {
  opacity: 0;
  transition: opacity 350ms var(--ease);
}
.loader-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ivory);
  line-height: 1;
}
.loader-name em { font-style: italic; color: var(--brass); }
.loader-eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-muted);
  margin-bottom: 14px;
}

/* =========================================================
   Cursor
   ========================================================= */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  border-radius: 999px;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--brass);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 48px; height: 48px;
  border: 1px solid var(--brass);
  transform: translate(-50%, -50%) scale(0.15);
  transition: transform 320ms var(--ease), opacity 320ms var(--ease), background-color 320ms var(--ease);
  opacity: 0.6;
}
.cursor-ring.hover { transform: translate(-50%, -50%) scale(1); }
.cursor-ring.label {
  width: auto; height: auto;
  border: 0;
  padding: 8px 14px;
  background: rgba(10,9,8,0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 10px; letter-spacing: 0.22em;
  color: var(--ivory);
  transform: translate(-50%, -50%) scale(1);
  mix-blend-mode: normal;
}
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* =========================================================
   Grain + vignette overlays
   ========================================================= */
.grain {
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 200px;
  animation: grain 6s steps(8) infinite;
  mix-blend-mode: overlay;
}
@keyframes grain {
  0%   { transform: translate(0,0); }
  25%  { transform: translate(-1px, 1px); }
  50%  { transform: translate(1px, -1px); }
  75%  { transform: translate(-1px, -1px); }
  100% { transform: translate(0,0); }
}

.vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 90;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.42) 100%);
}

/* =========================================================
   Top frame (nav + section counter)
   ========================================================= */
.frame-top {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 80;
  padding: 24px var(--margin);
  display: flex; justify-content: space-between; align-items: center;
  pointer-events: none;
  color: var(--ivory);
}
.frame-top::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 110px;
  background: linear-gradient(to bottom, rgba(10,9,8,0.82) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 500ms var(--ease);
  pointer-events: none;
  z-index: -1;
}
.frame-top.scrolled::before { opacity: 1; }
.frame-top > * { pointer-events: auto; }
.wordmark {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.wordmark .amp { font-style: italic; color: var(--brass); }

.nav-desktop {
  display: flex;
  gap: 36px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.nav-desktop a {
  position: relative;
  padding: 6px 0;
  color: var(--ivory);
  opacity: 0.7;
  transition: opacity 300ms var(--ease);
}
.nav-desktop a:hover { opacity: 1; }
.nav-desktop a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--brass);
  transition: right 360ms var(--ease);
}
.nav-desktop a:hover::after { right: 0; }

.section-counter {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  display: flex; gap: 14px; align-items: center;
}
.section-counter .num-current { color: var(--ivory); font-variant-numeric: tabular-nums; }
.section-counter .label { color: var(--ivory-muted); transition: color 240ms var(--ease); }

@media (max-width: 900px) {
  .frame-top { padding: 18px 24px; }
  .nav-desktop { display: none; }
}

/* =========================================================
   Mobile bottom nav
   ========================================================= */
.mob-nav {
  display: none;
  position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 85;
  background: rgba(19,17,15,0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 8px;
}
.mob-nav .row { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.mob-nav .row > a {
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 12px 6px;
  color: rgba(245,239,230,0.72);
  position: relative;
  z-index: 2;
  transition: color 280ms var(--ease);
}
.mob-nav .row > a.active { color: var(--ink); }
.mob-nav .indicator {
  position: absolute;
  top: 0; left: 0; width: 25%; height: 100%;
  background: var(--brass);
  border-radius: 999px;
  z-index: 1;
  transition: transform 460ms var(--ease);
}
@media (max-width: 900px) { .mob-nav { display: block; } }

/* =========================================================
   Section base
   ========================================================= */
section { position: relative; }
.section-pad { padding: 160px var(--margin); }
@media (max-width: 900px) { .section-pad { padding: 96px 24px; } }

.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 80px;
  gap: 24px;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  height: 100vh; min-height: 720px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.hero-bg {
  position: absolute; inset: -4%;
  background-image: url("assets/landing_page/hero_atelier_interior_16x9.webp");
  background-size: cover; background-position: center;
  filter: brightness(0.65) contrast(1.05);
  transform: scale(1.06);
  opacity: 0;
  transition: opacity 1200ms var(--ease), transform 2400ms var(--ease);
  will-change: transform, opacity;
}
.hero-bg.in { opacity: 1; transform: scale(1.0); }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.55) 100%),
    linear-gradient(to bottom, rgba(10,9,8,0.2) 0%, rgba(10,9,8,0) 30%, rgba(10,9,8,0) 70%, rgba(10,9,8,0.55) 100%);
}
@media (max-width: 760px) {
  .hero-bg { background-image: url("assets/landing_page/hero_atelier_interior_9x16.webp"); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}
.hero-word {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(72px, 16vw, 260px);
  letter-spacing: -0.03em;
  line-height: 0.9;
  display: inline-flex;
}
.hero-word .letter {
  display: inline-block;
  transform: translateY(110%);
  animation: heroLetter 1100ms var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + 100ms);
  animation-play-state: paused;
}
body.hero-ready .hero-word .letter { animation-play-state: running; }
@keyframes heroLetter { to { transform: translateY(0); } }
.hero-word-mask { display: inline-block; overflow: hidden; }

.hero-tag {
  margin-top: 28px;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(20px, 2vw, 30px);
  color: var(--ivory);
  letter-spacing: 0.005em;
  opacity: 0;
  animation: tagIn 1200ms var(--ease) forwards;
  animation-delay: 1400ms;
  animation-play-state: paused;
}
body.hero-ready .hero-tag { animation-play-state: running; }
@keyframes tagIn { to { opacity: 0.95; transform: translateY(0); } }

.hero-foot {
  position: absolute; bottom: 32px; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 0 var(--margin);
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  opacity: 0;
  animation: footIn 1200ms var(--ease) forwards;
  animation-delay: 1900ms;
  animation-play-state: paused;
}
body.hero-ready .hero-foot { animation-play-state: running; }
@keyframes footIn { to { opacity: 1; } }
@media (max-width: 900px) {
  .hero-foot { padding: 0 24px; bottom: 96px; }
}

.brass-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ivory);
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 6px 0;
}
.brass-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--brass);
  transform-origin: right;
  transition: transform 340ms var(--ease);
}
.brass-link:hover::after {
  animation: linkRetract 600ms var(--ease) forwards;
}
@keyframes linkRetract {
  0%   { transform: scaleX(1); transform-origin: right; }
  40%  { transform: scaleX(0); transform-origin: right; }
  60%  { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}
.brass-link .arrow { color: var(--brass); transition: transform 320ms var(--ease); }
.brass-link:hover .arrow { transform: translateX(6px); }

.scroll-indicator {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.scroll-indicator .line {
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, transparent, var(--brass) 30%, var(--brass) 70%, transparent);
  position: relative;
  overflow: hidden;
}
.scroll-indicator .line::after {
  content: ""; position: absolute; left: 0; right: 0;
  height: 14px;
  background: var(--ivory);
  animation: scrollDown 2400ms var(--ease) infinite;
}
@keyframes scrollDown {
  0%   { top: -14px; opacity: 0; }
  30%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about { background: var(--ink); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
}
.about-quote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(36px, 4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ivory);
  text-wrap: balance;
}
.about-quote .word {
  display: inline-block;
  opacity: 0; transform: translateY(20px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.about-quote.in .word {
  opacity: 1; transform: translateY(0);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.about-quote .accent {
  position: relative; display: inline-block;
}
.about-quote .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--brass);
  transform: scaleX(0); transform-origin: left;
  transition: transform 700ms var(--ease) 1200ms;
}
.about-quote.in .accent::after { transform: scaleX(1); }

.about-hairline {
  width: 1px; background: var(--hairline);
  position: relative;
  overflow: hidden;
}
.about-hairline::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: 0;
  background: var(--brass);
  transition: height 200ms linear;
}

.about-body { display: flex; flex-direction: column; gap: 24px; }
.about-body p { color: var(--ivory-muted); font-size: clamp(15px, 1.05vw, 17px); line-height: 1.75; }
.about-body p strong { color: var(--ivory); font-weight: 500; }

.about-spread {
  position: relative;
  margin-top: 160px;
  height: 70vh; min-height: 480px;
  overflow: hidden;
}
.about-spread img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
  transition: transform 1600ms var(--ease), filter 1200ms var(--ease);
  filter: grayscale(0.85) brightness(0.9);
}
.about-spread.in img { transform: scale(1.0); filter: grayscale(0) brightness(1); }
.about-spread::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.65));
  pointer-events: none;
  z-index: 1;
}
.about-spread .caption {
  position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ivory);
  white-space: nowrap;
  z-index: 2;
}
/* Reveal-mask: only clipped when JS is alive. Without JS — or if the
   IntersectionObserver misses an element — the image stays visible. */
html.js .reveal-mask {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1100ms var(--ease);
}
html.js .reveal-mask.in { clip-path: inset(0 0 0 0); }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-hairline { display: none; }
  .about-spread { margin-top: 80px; height: 50vh; }
}

/* =========================================================
   SERVICES
   ========================================================= */
.services {
  background: var(--ink);
  position: relative;
}
.services-wrap {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 80px;
  align-items: start;
}
.services-flatlay {
  position: sticky; top: 18vh;
  height: 64vh;
  border: 1px solid var(--hairline);
  overflow: hidden;
}
.services-flatlay img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1200ms var(--ease), filter 800ms var(--ease);
  transform-origin: center;
}
.services-flatlay .indicator {
  position: absolute;
  width: 96px; height: 96px;
  border: 1px solid var(--brass);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 500ms var(--ease), transform 800ms var(--ease);
  mix-blend-mode: screen;
}
.services-flatlay.armed .indicator { opacity: 1; }

.services-list { padding-top: 0; }
.services-list .service {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  padding: 36px 0;
  border-top: 1px solid var(--hairline);
  align-items: baseline;
  cursor: none;
  transition: transform 420ms var(--ease);
}
.services-list .service:last-child { border-bottom: 1px solid var(--hairline); }
.services-list .service .cat {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ivory-muted); width: 90px;
}
.services-list .service .name {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1;
}
.services-list .service .desc {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--ivory-muted);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 540ms var(--ease), opacity 380ms var(--ease);
}
.services-list .service .meta {
  text-align: right;
  font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ivory-muted);
  font-variant-numeric: tabular-nums;
}
.services-list .service .meta .price {
  font-family: var(--serif);
  font-size: clamp(28px, 2.6vw, 40px);
  color: var(--ivory);
  display: block;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.services-list .service.is-active {
  transform: translateX(12px);
}
.services-list .service.is-active .name { color: var(--ivory); }
.services-list .service.is-active .desc { max-height: 80px; opacity: 1; }
.services-list .service:not(.is-active) .name { color: var(--ivory-muted); }
.services-list .service .underline {
  display: block; height: 1px; width: 0; background: var(--brass);
  margin-top: 12px;
  transition: width 420ms var(--ease);
}
.services-list .service.is-active .underline { width: 100%; }

@media (max-width: 900px) {
  .services-wrap { grid-template-columns: 1fr; gap: 40px; }
  .services-flatlay { position: relative; top: 0; height: 56vh; }
}

/* =========================================================
   BARBERS — pinned horizontal scroll
   ========================================================= */
.barbers { background: var(--ink); }
.barbers-intro { text-align: center; padding: 160px var(--margin) 80px; }
.barbers-intro .line {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 80px);
  font-style: italic;
  letter-spacing: -0.015em;
  margin-top: 32px;
  line-height: 1.05;
}

.barbers-pin {
  position: relative;
  height: 400vh; /* drives scroll length */
}
.barbers-track-wrap {
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.barbers-track {
  display: flex;
  gap: 48px;
  padding: 0 var(--margin);
  will-change: transform;
}
.barber-card {
  flex: 0 0 auto;
  width: 32vw; min-width: 380px;
  display: flex; flex-direction: column;
}
.barber-portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--ink-raised);
}
.barber-portrait img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.85) brightness(0.85);
  transform: scale(1.04);
  transition: filter 700ms var(--ease), transform 1100ms var(--ease);
}
.barber-card.is-center .barber-portrait img {
  filter: grayscale(0) brightness(1);
  transform: scale(1.0);
}
.barber-card:not(.is-center) .barber-portrait img { opacity: 0.55; }
.barber-meta {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
}
.barber-name {
  font-family: var(--serif);
  font-size: clamp(28px, 2.6vw, 44px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1;
}
.barber-spec {
  font-family: var(--serif); font-style: italic;
  font-size: 17px;
  color: var(--ivory-muted);
  margin-top: 8px;
}
.barber-years {
  font-family: var(--serif);
  font-size: clamp(40px, 4vw, 72px);
  line-height: 0.9;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.barber-years small {
  display: block;
  font-family: var(--sans);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ivory-muted);
  margin-top: 6px;
}

.barbers-progress {
  position: absolute;
  bottom: 64px; left: var(--margin); right: var(--margin);
  height: 1px; background: var(--hairline);
}
.barbers-progress .fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--brass);
  width: 0;
}

@media (max-width: 900px) {
  .barbers-intro { padding: 96px 24px 40px; }
  .barbers-pin { height: auto; }
  .barbers-track-wrap { position: relative; height: auto; overflow-x: auto; scroll-snap-type: x mandatory; }
  .barbers-track { padding: 0 24px; transform: none !important; }
  .barber-card { width: 80vw; min-width: 280px; scroll-snap-align: center; }
  .barber-card .barber-portrait img { filter: grayscale(0) brightness(1); transform: scale(1.0); opacity: 1; }
  .barbers-progress { display: none; }
}

/* =========================================================
   RITUAL — pinned scrubbed frames
   ========================================================= */
.ritual {
  position: relative;
  height: 360vh;
  background: var(--ink-deeper);
}
.ritual-stage {
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  padding: 0 var(--margin);
  align-items: center;
}
.ritual-steps {
  position: relative;
  z-index: 3;
}
.ritual-eyebrow { margin-bottom: 32px; }
.ritual-step {
  position: relative;
  padding: 32px 0 32px 40px;
  border-top: 1px solid var(--hairline);
  opacity: 0.35;
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.ritual-step:last-child { border-bottom: 1px solid var(--hairline); }
.ritual-step .step-num {
  font-family: var(--sans);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.ritual-step .step-name {
  font-family: var(--serif);
  font-size: clamp(40px, 4.5vw, 72px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.95;
  display: block;
}
.ritual-step .step-caption {
  font-family: var(--serif); font-style: italic;
  font-size: 18px;
  color: var(--ivory-muted);
  margin-top: 12px;
  max-width: 28ch;
}
.ritual-step::before {
  content: ""; position: absolute;
  left: 0; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brass);
  opacity: 0;
  transition: opacity 400ms var(--ease);
}
.ritual-step.is-active { opacity: 1; transform: translateX(8px); }
.ritual-step.is-active::before { opacity: 1; }

.ritual-frames {
  position: relative;
  width: 100%; height: 80vh;
  overflow: hidden;
}
.ritual-frame {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 400ms linear;
  transform: scale(1.04);
}
.ritual-frame.f1 { background-image: url("assets/landing_page/ARRIVE.webp"); }
.ritual-frame.f2 { background-image: url("assets/landing_page/SETTLE.webp"); }
.ritual-frame.f3 { background-image: url("assets/landing_page/EMERGE.webp"); }
.ritual-frames::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(182,138,72,0.10) 0%, rgba(0,0,0,0) 40%);
  mix-blend-mode: screen;
}

.ritual-timeline {
  position: absolute;
  left: calc(var(--margin) - 40px);
  top: 80px; bottom: 80px;
  width: 1px;
  background: var(--hairline);
}
.ritual-timeline .fill {
  position: absolute; left: 0; right: 0; top: 0;
  background: var(--brass);
  height: 0;
}

.ritual-coda {
  position: absolute; bottom: 96px; left: 50%; transform: translateX(-50%);
  font-family: var(--serif); font-style: italic;
  font-size: clamp(20px, 2vw, 30px);
  color: var(--ivory);
  opacity: 0;
  transition: opacity 800ms var(--ease);
  white-space: nowrap;
}
.ritual-coda.in { opacity: 0.92; }

@media (max-width: 900px) {
  .ritual { height: auto; }
  .ritual-stage {
    position: relative;
    height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
    padding: 64px 24px 48px;
    gap: 0;
  }
  .ritual-frames {
    order: 0;
    height: 56vw;
    max-height: 280px;
    margin-bottom: 32px;
    border-radius: 4px;
    overflow: hidden;
  }
  .ritual-steps { order: 1; }
  .ritual-timeline { display: none; }
  .ritual-step {
    padding: 20px 0 20px 24px;
    opacity: 1;
    transform: none;
  }
  .ritual-step.is-active { transform: none; }
  .ritual-step .step-name { font-size: clamp(28px, 8vw, 36px); }
  .ritual-coda {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    text-align: center;
    opacity: 0.92;
    font-size: 18px;
    white-space: normal;
    width: 90%;
    margin: 32px auto 16px;
    display: block;
  }
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials {
  position: relative;
  height: 360vh;
  background: var(--ink);
}
.testimonials-stage {
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
  display: grid; place-items: center;
}
.testimonials-bg {
  position: absolute; inset: 0;
  background: url("assets/landing_page/testimonial_ambient_lifestyle.webp") center/cover no-repeat;
  filter: brightness(0.32) saturate(0.9);
  will-change: transform;
}
.testimonials-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.7) 90%);
}
.testimonials-inner {
  position: relative; z-index: 2;
  width: min(900px, 86vw);
  text-align: center;
}
.testimonial-quote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(28px, 3.6vw, 56px);
  line-height: 1.15;
  color: var(--ivory);
  letter-spacing: -0.01em;
  text-wrap: balance;
  position: relative;
  min-height: 5em;
}
.testimonial-quote .quote-state {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 700ms var(--ease);
}
.testimonial-quote .quote-state.in { opacity: 1; }
.testimonial-mask {
  position: absolute; left: 0; right: 0;
  height: 1px; background: var(--brass);
  top: 50%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 700ms var(--ease);
}
.testimonials.swap .testimonial-mask { transform: scaleX(1); transform-origin: left; }
.testimonial-attr {
  margin-top: 48px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ivory-muted);
}
.testimonial-attr .name { color: var(--ivory); }
.testimonial-pagination {
  display: flex; gap: 12px; justify-content: center;
  margin-top: 48px;
}
.testimonial-pagination .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--hairline);
  transition: background 320ms var(--ease), transform 320ms var(--ease);
}
.testimonial-pagination .dot.active {
  background: var(--brass);
  transform: scale(1.5);
}

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  background: var(--ink);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 32px 0;
  overflow: hidden;
  position: relative;
}
.marquee-track {
  display: inline-flex; gap: 64px;
  white-space: nowrap;
  animation: marquee 36s linear infinite;
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 96px);
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--ivory);
  font-weight: 500;
}
.marquee-track span { display: inline-block; }
.marquee-track .star { color: var(--brass); font-style: normal; font-family: var(--sans); transform: translateY(-0.12em); display: inline-block; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================================
   GALLERY
   ========================================================= */
.gallery { background: var(--ink); }
.gallery-filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 56px;
}
.gallery-filters button {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ivory-muted);
  padding: 10px 18px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  transition: color 280ms var(--ease), border-color 280ms var(--ease), background 280ms var(--ease);
}
.gallery-filters button.active {
  color: var(--ink); background: var(--brass); border-color: var(--brass);
}
.gallery-filters button:not(.active):hover { color: var(--ivory); border-color: var(--ivory-muted); }

.gallery-grid {
  column-count: 4;
  column-gap: 16px;
}
.gallery-item {
  display: block;
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  background: var(--ink-raised);
  transition: transform 600ms var(--ease);
}
.gallery-item img {
  width: 100%; height: auto; display: block;
  transition: transform 700ms var(--ease), filter 600ms var(--ease);
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item::before,
.gallery-item::after {
  content: ""; position: absolute;
  width: 24px; height: 24px;
  border-color: var(--brass);
  border-style: solid;
  opacity: 0;
  transition: opacity 300ms var(--ease), transform 400ms var(--ease);
}
.gallery-item::before {
  top: 12px; left: 12px;
  border-width: 1px 0 0 1px;
  transform: translate(-6px, -6px);
}
.gallery-item::after {
  bottom: 12px; right: 12px;
  border-width: 0 1px 1px 0;
  transform: translate(6px, 6px);
}
.gallery-item:hover::before,
.gallery-item:hover::after { opacity: 1; transform: translate(0,0); }
.gallery-item.reveal { opacity: 0; transform: translateY(20px); }
.gallery-item.reveal.in {
  opacity: 1; transform: translateY(0);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

@media (max-width: 1200px) { .gallery-grid { column-count: 3; } }
@media (max-width: 760px)  { .gallery-grid { column-count: 2; column-gap: 10px; } .gallery-item { margin-bottom: 10px; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(5,4,3,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 150;
  display: none;
  align-items: center; justify-content: center;
  padding: 80px;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 90vw; max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  color: var(--ivory);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 16px;
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-count {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: 0.22em;
  color: var(--ivory-muted);
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   BOOKING CTA
   ========================================================= */
.booking {
  position: relative;
  height: 200vh;
  background: var(--ink-deeper);
}
.booking-stage {
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
  display: grid; place-items: center;
}
.booking-bg {
  position: absolute; inset: 0;
  background: url("assets/landing_page/booking_close_up_dramatic.webp") center/cover no-repeat;
  filter: brightness(0.4) saturate(0.9);
  will-change: transform, filter;
  transition: filter 700ms var(--ease);
}
.booking-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.8) 100%),
    linear-gradient(120deg, rgba(182,138,72,0.12) 0%, transparent 40%);
}
.booking-stage:hover .booking-bg { filter: brightness(0.28) saturate(0.5); }

.booking-inner {
  position: relative; z-index: 2;
  text-align: center;
  width: 90vw;
}
.booking-line {
  font-family: var(--serif);
  font-size: clamp(56px, 11vw, 200px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.9;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
}
.booking-line .word-mask {
  display: inline-block; overflow: hidden;
  margin: 0 0.05em;
}
.booking-line .word-mask span {
  display: inline-block;
  transform: translateY(110%);
}
.booking-line.in .word-mask span {
  transform: translateY(0);
  transition: transform 1200ms var(--ease);
  transition-delay: calc(var(--i, 0) * 180ms);
}
.booking-line .fill-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--brass), var(--brass));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 700ms var(--ease);
  pointer-events: none;
}
.booking-stage:hover .booking-line .fill-overlay { clip-path: inset(0 0 0 0); }
.booking-cta {
  margin-top: 56px;
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 13px; letter-spacing: 0.32em; text-transform: uppercase;
  position: relative;
  padding: 14px 0;
  color: var(--ivory);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 800ms var(--ease) 1600ms, transform 800ms var(--ease) 1600ms;
}
.booking-line.in ~ .booking-cta { opacity: 1; transform: translateY(0); }
.booking-cta::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--brass);
  transform: scaleX(0); transform-origin: left;
  transition: transform 800ms var(--ease) 2000ms;
}
.booking-line.in ~ .booking-cta::after { transform: scaleX(1); }
.booking-cta .arrow { color: var(--brass); transition: transform 320ms var(--ease); }
.booking-cta:hover .arrow { transform: translateX(8px); }

/* Booking modal */
.booking-modal {
  position: fixed; inset: 0;
  z-index: 160;
  display: none;
  align-items: center; justify-content: center;
}
.booking-modal.open { display: flex; }
.booking-modal .curtain {
  position: absolute; inset: 0;
  background: var(--brass);
  transform: translateY(100%);
  transition: transform 700ms var(--ease-door);
}
.booking-modal.open .curtain { transform: translateY(0); }
.booking-modal .booking-sheet {
  position: relative;
  width: min(640px, 92vw);
  background: var(--ink-raised);
  border: 1px solid var(--hairline);
  padding: 48px;
  z-index: 2;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease) 700ms, transform 600ms var(--ease) 700ms;
}
.booking-modal.open .booking-sheet { opacity: 1; transform: translateY(0); }
.booking-sheet h3 {
  font-family: var(--serif);
  font-size: 40px; font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}
.booking-sheet .sub {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ivory-muted);
  margin-bottom: 32px;
}
.booking-sheet .field {
  border-bottom: 1px solid var(--hairline);
  padding: 18px 0;
  position: relative;
}
.booking-sheet .field label {
  display: block;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ivory-muted);
  margin-bottom: 8px;
}
.booking-sheet .field input,
.booking-sheet .field select {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 22px;
  outline: none;
  padding: 4px 0;
}
.booking-sheet .field input::placeholder { color: var(--hairline); }
.booking-sheet .field select option { background: var(--ink); }
.booking-sheet .flip-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-top: 12px;
}
.booking-sheet .flip-slot {
  text-align: center;
  padding: 14px 0;
  border: 1px solid var(--hairline);
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ivory);
  font-variant-numeric: tabular-nums;
  cursor: none;
  transition: border-color 280ms var(--ease), color 280ms var(--ease);
}
.booking-sheet .flip-slot.active { border-color: var(--brass); color: var(--brass); }
.booking-sheet .primary-btn {
  width: 100%;
  margin-top: 32px;
  padding: 18px;
  border: 1px solid var(--brass);
  background: linear-gradient(to top, var(--brass) 50%, transparent 50%);
  background-size: 100% 200%;
  background-position: 0 0;
  font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ivory);
  transition: background-position 500ms var(--ease), color 500ms var(--ease);
  cursor: none;
}
.booking-sheet .primary-btn:hover { background-position: 0 100%; color: var(--ink); }
.booking-sheet .close-x {
  position: absolute; top: 16px; right: 16px;
  padding: 12px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ivory-muted);
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact { background: var(--ink); }
.contact-spread {
  position: relative;
  height: 50vh; min-height: 360px;
  overflow: hidden;
  margin-bottom: 80px;
}
.contact-spread img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.85);
}
.contact-sign {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 110px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ivory);
  text-shadow: 0 0 12px rgba(182, 138, 72, 0.0);
  animation: signFlicker 3s var(--ease) infinite;
}
@keyframes signFlicker {
  0%,100% { text-shadow: 0 0 18px rgba(182,138,72,0.4), 0 0 4px rgba(182,138,72,0.6); color: var(--ivory); }
  3%      { text-shadow: none; color: var(--ivory-muted); }
  6%      { text-shadow: 0 0 18px rgba(182,138,72,0.4); color: var(--ivory); }
  53%     { text-shadow: 0 0 22px rgba(182,138,72,0.6); }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 64px;
}
.contact-block .eyebrow { margin-bottom: 24px; }
.contact-block .addr {
  font-family: var(--serif);
  font-size: clamp(22px, 1.8vw, 32px);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.contact-block .hours {
  margin-top: 16px;
  display: grid; grid-template-columns: auto 1fr; gap: 8px 24px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ivory-muted);
  font-variant-numeric: tabular-nums;
}
.contact-block .hours .day { color: var(--ivory); }

.map-svg {
  width: 100%; aspect-ratio: 4/3;
  background: var(--ink-raised);
  border: 1px solid var(--hairline);
  display: block;
}

.contact-links { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.contact-link {
  position: relative;
  font-family: var(--serif);
  font-size: clamp(22px, 1.8vw, 32px);
  font-weight: 500;
  letter-spacing: -0.01em;
  display: inline-block;
  align-self: flex-start;
}
.contact-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: var(--brass);
  transform: scaleX(0); transform-origin: left;
  transition: transform 360ms var(--ease);
}
.contact-link:hover::after { transform: scaleX(1); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  position: relative;
  padding: 120px var(--margin) 0;
  overflow: hidden;
  background: var(--ink);
}
.footer-wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(120px, 26vw, 460px);
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: var(--ivory);
  white-space: nowrap;
  display: block;
  transform: translateY(20%);
}
.footer-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--hairline);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ivory-muted);
}
.footer-credit {
  text-align: center;
  font-family: var(--serif); font-style: italic;
  font-size: 16px;
  color: var(--ivory-muted);
  padding: 0 0 56px;
}
.back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 70;
  display: flex; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ivory);
  opacity: 0; visibility: hidden;
  transition: opacity 400ms var(--ease), visibility 400ms var(--ease);
}
.back-to-top.in { opacity: 1; visibility: visible; }
.back-to-top .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }

@media (max-width: 900px) {
  .footer { padding: 80px 24px 0; }
  .back-to-top { bottom: calc(96px + env(safe-area-inset-bottom)); right: 24px; }
}

/* =========================================================
   Mobile: native-app feel overrides
   ========================================================= */
@media (max-width: 900px) {
  /* Testimonials — unpin; JS auto-advances instead of scroll-scrubbing */
  .testimonials { height: auto; }
  .testimonials-stage { position: relative; height: 100svh; min-height: 520px; }
  /* Larger dot tap targets */
  .testimonial-pagination { gap: 20px; }
  .testimonial-pagination .dot { width: 9px; height: 9px; cursor: pointer; }

  /* Booking CTA — unpin; single viewport */
  .booking { height: auto; }
  .booking-stage { position: relative; height: 100svh; min-height: 520px; }
}

@media (max-width: 760px) {
  /* Lightbox — reachable controls */
  .lightbox { padding: 16px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-img { max-height: 72vh; }

  /* Booking modal — safe area so submit button isn't obscured */
  .booking-sheet { padding: 32px 24px calc(32px + env(safe-area-inset-bottom)); }
}

/* =========================================================
   Reveal utilities
   ========================================================= */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.fade-up.in { opacity: 1; transform: translateY(0); }
.fade-up.delay-1 { transition-delay: 80ms; }
.fade-up.delay-2 { transition-delay: 160ms; }
.fade-up.delay-3 { transition-delay: 240ms; }

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ritual, .testimonials, .booking, .barbers-pin { height: auto; }
  .ritual-stage, .testimonials-stage, .booking-stage, .barbers-track-wrap { position: relative; height: auto; }
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}
