/* Home page: the scroll story. */

/* Hero: the wordmark parts and the shop opens up to fill the screen */
.hero { position: relative; height: 210vh; }
.hero-stage { position: sticky; top: 0; height: 100vh; min-height: 560px; overflow: hidden; }
.hero-copy {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; align-items: center;
  padding: calc(var(--bar-h) + clamp(16px, 4vh, 48px)) var(--gutter) clamp(20px, 4vh, 40px);
  text-align: center;
}
.hero-eyebrow { margin-bottom: clamp(10px, 2vh, 20px); }
/* The logo, in three pieces cut from the shop's own artwork so "LUXURY" and "CUTS" can part.
   Widths keep the logo's exact proportions (pieces are 830 + 514 of 1342 units wide). */
.hero { --lockup: min(84vw, 1120px, 128vh); }
.wordmark { display: flex; width: var(--lockup); margin: 0; }
.wm { display: block; height: auto; will-change: transform, opacity; }
.wm-l { width: 61.85%; }
.wm-r { width: 38.3%; margin-left: -0.15%; }
.motto { width: var(--lockup); margin-top: calc(var(--lockup) * 0.024); }
.motto img { display: block; width: 100%; height: auto; }
.hero-sub {
  display: flex; align-items: center; justify-content: center; gap: clamp(14px, 3vw, 40px); flex-wrap: wrap;
  margin-top: clamp(16px, 3.4vh, 34px);
}
.hero-sub .lede { max-width: 38ch; text-align: left; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-frame { flex: 1; width: 100%; min-height: 120px; margin-top: clamp(18px, 3.6vh, 36px); }
/* The chair sits behind the words (which fade as it grows). Its photo keeps its own shape
   (16:9), centered, and its backdrop melts into the page, so no frame or window is needed. */
.hero-image { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-image .ph {
  position: absolute; left: 0; top: 50%; width: 100%; aspect-ratio: 16 / 9; margin-top: -28.125%;
  background: transparent; will-change: transform;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%);
}
.hero-image .breath { position: absolute; inset: 0; }
[data-hero-fade], .hero-hint { will-change: transform, opacity; }
.hero-turn { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.4s var(--ease-out); }
.hero-turn.on { opacity: 1; }
.hero-hint {
  position: absolute; left: 50%; bottom: 18px; z-index: 3; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font: 500 10.5px/1 var(--body); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink); white-space: nowrap;
  background: rgba(251, 251, 250, 0.88); padding: 9px 14px 8px;
}
.hero-hint svg { animation: nudge 2.4s var(--ease-soft) -0.6s infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* The craft: the words, and a real photo of the shop that drifts slower than the page */
.craft { position: relative; min-height: 92vh; display: flex; align-items: center; padding: 16vh 0; overflow: hidden; }
.craft .wrap {
  position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 110px); align-items: center;
}
.craft-copy { max-width: 560px; }
.craft-photo { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; background: var(--stone-wash); }
.craft-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }
.craft-copy .title { margin: 18px 0 22px; }
.craft-list {
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--vein);
  font: 500 12px/1.8 var(--body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink);
}

/* Services: a sticky intro on the left, the live price list on the right */
.services { padding: 14vh 0 16vh; border-top: 1px solid var(--vein); }
.services .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.services-intro { position: sticky; top: calc(var(--bar-h) + 40px); }
.services-intro .title { margin: 18px 0 20px; }
/* The white cap falls in and lands; its backdrop matches the page, so the edges just melt away. */
.cap-fall {
  position: relative; margin-top: 18px; width: min(100%, 56vh); aspect-ratio: 1 / 1;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%);
}
.cap-fall img, .cap-turn { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cap-turn { opacity: 0; transition: opacity 0.4s var(--ease-out); }
.cap-turn.on { opacity: 1; }
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.svc {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; align-items: baseline;
  padding: 26px 0 24px; border-bottom: 1px solid var(--vein); text-decoration: none; color: inherit;
  transition: padding 0.45s var(--ease-out), background-color 0.45s var(--ease-out);
}
.svc:hover { padding-left: 14px; padding-right: 14px; background: var(--panel); }
.svc-name { font: 400 clamp(26px, 2.4vw, 34px)/1.1 var(--display); color: var(--ink); }
.svc-price { font: 500 clamp(17px, 1.4vw, 20px)/1 var(--body); color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.svc-sum { color: var(--stone); font-size: 15px; max-width: 52ch; }
.svc-meta {
  display: flex; align-items: center; justify-content: flex-end; gap: 14px;
  font: 500 11px/1.4 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone);
}
.svc-go {
  max-width: 0; overflow: hidden; white-space: nowrap; color: var(--ink); opacity: 0;
  transition: max-width 0.45s var(--ease-out), opacity 0.45s var(--ease-out);
}
.svc:hover .svc-go, .svc:focus-visible .svc-go { max-width: 90px; opacity: 1; }
.list-note { padding: 26px 0; color: var(--stone); }

/* Barbers: heading row, then portraits */
.barbers { padding: 14vh 0 16vh; background: var(--panel); border-top: 1px solid var(--vein); border-bottom: 1px solid var(--vein); }
.barbers-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: clamp(36px, 6vh, 64px); }
.barbers-head .title { margin-top: 18px; }
.barbers-head .lede { justify-self: end; }
.team {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(36px, 5vh, 56px) clamp(14px, 1.8vw, 28px);
}
.team > .list-note { grid-column: 1 / -1; }
.team.reveal.in > .barber { transition-delay: calc(var(--i, 0) * 70ms); }
.team.reveal.settled > .barber { transition-delay: 0s; }
.barber { display: block; min-width: 0; text-decoration: none; color: inherit; }
.barber-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone-wash); }
.barber-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  filter: saturate(0.88); transition: transform 1.2s var(--ease-out), filter 0.8s var(--ease-out);
}
.barber:hover .barber-photo img, .barber:focus-visible .barber-photo img { transform: scale(1.045); filter: none; }
.barber-initials {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 400 64px/1 var(--display); color: var(--vein-strong); letter-spacing: 0.06em;
}
.barber-num {
  position: absolute; top: 14px; left: 16px;
  font: 500 10.5px/1 var(--body); letter-spacing: 0.24em; color: var(--ink-soft);
}
.barber-book {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; align-items: center; gap: 10px; padding: 13px 14px;
  background: rgba(251, 251, 250, 0.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 500 10.5px/1.2 var(--body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink);
  opacity: 0; transform: translateY(12px); transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.barber-book-long { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barber-book-short { display: none; }
.barber-book-arrow { font-size: 13px; letter-spacing: 0; transition: transform 0.45s var(--ease-out); }
.barber:hover .barber-book, .barber:focus-visible .barber-book { opacity: 1; transform: none; }
.barber:hover .barber-book-arrow { transform: translateX(3px); }
.barber-meta { display: grid; gap: 7px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--vein); transition: border-color 0.6s var(--ease-out); }
.barber:hover .barber-meta { border-top-color: var(--oak-line); }
.barber-name { font: 400 clamp(23px, 2.1vw, 30px)/1.08 var(--display); color: var(--ink); overflow-wrap: anywhere; }
.barber-name em { font-style: italic; color: var(--ink-soft); }
.barber-role { font: 500 10.5px/1.4 var(--body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); }
/* Phones and tablets have no hover: a small "Book" tag stays on each portrait. */
@media (hover: none) {
  .barber-book { left: auto; right: 10px; bottom: 10px; padding: 9px 11px; opacity: 1; transform: none; }
  .barber-book-long { display: none; }
  .barber-book-short { display: inline; }
}

/* The shop: three materials, side by side */
.shop { padding: 16vh 0; text-align: center; }
.shop .title { margin: 18px auto 18px; }
.shop .lede { margin: 0 auto; }
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.social { text-transform: none; letter-spacing: 0.06em; font-size: 13px; }
/* The walk-through video: one tile in the gallery, between two photos */
.film-frame { position: relative; background: var(--ink); }
.film-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film-controls { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; }
.film-btn {
  padding: 10px 13px; border: 0; cursor: pointer;
  background: rgba(251, 251, 250, 0.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 500 10.5px/1.2 var(--body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink);
  transition: background 0.3s var(--ease-out);
}
.film-btn:hover { background: #fff; }
.film-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* Three portraits across, then three wide tiles (photo, video, photo): a six-column grid. */
.gallery {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(32px, 5vh, 48px) clamp(14px, 1.8vw, 28px); margin-top: clamp(40px, 7vh, 72px); text-align: left;
}
.shot { margin: 0; grid-column: span 2; }
.shot.wide { grid-column: span 2; }
.shot-img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone-wash); }
.shot.wide .shot-img { aspect-ratio: 4 / 3; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.shot:hover img { transform: scale(1.03); }
.shot figcaption {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--vein);
  font: 400 20px/1.2 var(--display); color: var(--ink);
}
.shot-num { font: 500 11px/1 var(--body); letter-spacing: 0.2em; color: var(--stone); }

/* Visit */
.visit { padding: 14vh 0; border-top: 1px solid var(--vein); }
.visit .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 110px); }
.visit .title { margin: 18px 0 28px; }
.visit-block { padding: 20px 0; border-top: 1px solid var(--vein); }
.visit-label { font: 500 11px/1.4 var(--body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); margin-bottom: 8px; }
.visit-value { font: 400 22px/1.35 var(--display); color: var(--ink); font-variant-numeric: lining-nums; }
.visit-value a { text-decoration: none; }
.visit-value a:hover { text-decoration: underline; text-underline-offset: 5px; }
.missing { color: var(--oak); font-family: var(--body); font-size: 14px; letter-spacing: 0.04em; }
.hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours td { padding: 7px 0; border-bottom: 1px solid var(--vein); }
.hours td:last-child { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.hours tr.today td { color: var(--ink); font-weight: 600; }
.visit-link {
  display: inline-block; margin-top: 10px; text-decoration: none; color: var(--ink);
  font: 500 12px/1.4 var(--body); letter-spacing: 0.16em; text-transform: uppercase;
  border-bottom: 1px solid var(--ink); padding-bottom: 3px;
}
.visit-link:hover { color: #000; border-bottom-color: var(--oak-line); }
.map { position: relative; min-height: 420px; height: 100%; background: var(--stone-wash); overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }

/* Final: the room fades up behind "Take a seat." */
.final { position: relative; padding: 18vh 0 20vh; border-top: 1px solid var(--vein); text-align: center; }
.final-card { margin: 0 auto; width: min(680px, calc(100% - 2 * var(--gutter))); }
.final-card .title { margin-bottom: 18px; font-size: clamp(56px, 8vw, 128px); }
.final-card .lede { margin: 0 auto; }
.final-card .hero-ctas { margin-top: 30px; justify-content: center; }

/* Footer: shared, in site.css */

@media (max-width: 900px) {
  .services .wrap, .visit .wrap { grid-template-columns: minmax(0, 1fr); }
  .services-intro { position: static; }
  .cap-fall { width: min(100%, 420px); margin: 10px auto 0; }
  .barbers-head { grid-template-columns: minmax(0, 1fr); }
  .barbers-head .lede { justify-self: start; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map { min-height: 320px; }
  .craft { padding: 12vh 0; }
  .craft .wrap { grid-template-columns: minmax(0, 1fr); }
  .craft-photo { aspect-ratio: 4 / 5; }
}
@media (max-width: 640px) {
  .hero { height: 190vh; }
  .hero { --lockup: 90vw; }
  .socials { gap: 8px; }
  .social { padding: 0 12px; }
  .hero-sub .lede { text-align: center; }
  .hero-ctas { justify-content: center; }
  /* On phones the photos sit in a row you swipe through. */
  .gallery {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 8px; scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .shot { flex: 0 0 78%; scroll-snap-align: center; }
  .shot.wide .shot-img { aspect-ratio: 4 / 5; }
  .film-controls { right: 10px; bottom: 10px; }
  .film-btn { padding: 8px 10px; font-size: 10px; letter-spacing: 0.14em; }
  .svc { grid-template-columns: minmax(0, 1fr); }
  .svc-price { text-align: left; }
  .svc-meta { justify-content: flex-start; }
  .svc-go { opacity: 1; transform: none; }
}
@media (max-height: 640px) and (min-width: 641px) {
  .hero-sub .lede { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .hero-stage { position: relative; height: auto; min-height: 100vh; }
  .hero-image { position: relative; inset: auto; height: 60vh; }
  .hero-frame { display: none; }
}

/* Prices by barber: a row of small avatar buttons above the service list */
.svc-col { min-width: 0; }
.price-by { margin-bottom: 22px; }
.pb-label { margin-bottom: 12px; font: 500 11px/1.4 var(--body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); }
.pb-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.pb-chips::-webkit-scrollbar { display: none; }
.pb-chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 5px;
  border: 1px solid var(--vein-strong); border-radius: 999px; background: transparent; cursor: pointer;
  font: 500 13px/1 var(--body); color: var(--ink-soft); transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.pb-chip.all { padding: 0 16px; }
.pb-chip:hover { border-color: var(--ink); color: var(--ink); }
.pb-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pb-chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pb-avatar { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--stone-wash); font-size: 11px; color: var(--stone); }
.pb-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pb-avatar img[src^="assets/barbers/"] { transform: scale(1.75); transform-origin: 50% 26%; }

/* Merch teaser: copy and deals on the left, four products on the right */
.merch-home { padding: 14vh 0; border-top: 1px solid var(--vein); }
.merch-home .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
.merch-home-copy .title { margin: 18px 0 20px; }
.merch-home-deals { display: grid; gap: 0; margin: 28px 0 30px; border-top: 1px solid var(--vein); }
.mh-deal { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--vein); }
.mh-deal dt { font: 400 22px/1.2 var(--display); color: var(--ink); }
.mh-deal dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--oak); text-align: right; }
.merch-home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.mh-item { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone-wash); }
.mh-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.mh-item:hover img { transform: scale(1.04); }
@media (max-width: 900px) {
  .merch-home .wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 641px) {
  .pb-chips { flex-wrap: wrap; overflow: visible; }
}

/* Room for Netlify's badge (see site.css). */
@media (max-width: 900px) {
  .hero-hint { bottom: calc(18px + var(--badge-room)); }
}
