:root {
  /* Color */
  --paper: #F2F2F2;
  --ink: #111111;
  --night: #0F0F0F;
  --mute-light: #6E6E6E;
  --mute-dark: #A3A3A3;
  --line-light: #D4D4D4;
  --line-dark: #2A2A2A;
  --overlay: rgba(10, 8, 6, .55);
  --halo: rgba(17, 17, 17, .08);

  /* Type */
  --font-display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --fs-wordmark: clamp(72px, 22vw, 240px);
  --fs-cta: clamp(44px, 6vw, 80px);
  --fs-stat: clamp(56px, 7vw, 96px);
  --fs-h2: clamp(40px, 5vw, 64px);
  --fs-statement: clamp(28px, 3.4vw, 44px);
  --fs-h3: 32px;
  --fs-q: 22px;
  --fs-body: 16px;
  --fs-caption: 18px;

  /* Space */
  --margin: clamp(20px, 5vw, 80px);
  --gutter: 16px;
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 40px;
  --s-5: 64px;
  --s-6: 104px;
  --s-7: 160px;

  /* Shape */
  --radius: 0;
  --hairline: 1px;
  --icon-btn: 40px;
  --header-h: 68px;
  --max: 1366px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

body {
  font-family: var(--font-display);
  font-size: var(--fs-body);
  line-height: 1.35;
  letter-spacing: -0.01em;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

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

button,
input {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

address {
  font-style: normal;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.section-night :focus-visible,
.hero :focus-visible,
.cta-banner :focus-visible,
.site-footer :focus-visible,
.sticky-book:focus-visible {
  outline-color: var(--paper);
}

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

/* ---------- Text CTA ---------- */
.text-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-body);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  width: fit-content;
  transition: gap 0.25s ease;
}

.text-cta:hover,
.text-cta:focus-visible {
  gap: 18px;
}

.text-cta--light {
  color: var(--paper);
}

.text-cta span {
  font-size: 14px;
  line-height: 1;
}

/* ---------- Sticky Book Now ---------- */
.sticky-book {
  position: fixed;
  z-index: 60;
  right: var(--margin);
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--night);
  color: var(--paper);
  font-size: var(--fs-body);
  font-weight: 500;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--paper);
  transition: gap 0.25s ease, transform 0.3s ease, opacity 0.3s ease;
}

.sticky-book:hover,
.sticky-book:focus-visible {
  gap: 18px;
}

.sticky-book.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

@media (max-width: 640px) {
  .sticky-book {
    right: 20px;
    left: 20px;
    bottom: 16px;
    justify-content: center;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  transition: background 0.3s ease, color 0.3s ease;
}

.site-header.is-scrolled {
  background: var(--paper);
  color: var(--ink);
}

.site-header.is-scrolled .nav-desktop a,
.site-header.is-scrolled .header-contact a {
  color: var(--mute-light);
}

.site-header.is-scrolled .menu-toggle span {
  background: var(--ink);
}

.header-inner {
  height: var(--header-h);
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--margin);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--gutter);
}

.logo {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--paper);
  justify-self: start;
}

.site-header.is-scrolled .logo {
  color: var(--ink);
}

.logo sup {
  font-size: 0.45em;
  vertical-align: super;
}

.nav-desktop {
  display: none;
  gap: 28px;
  justify-self: center;
}

.nav-desktop a,
.header-contact a {
  color: var(--mute-dark);
  font-size: var(--fs-body);
  transition: color 0.2s ease;
}

.nav-desktop a:hover,
.header-contact a:hover {
  color: var(--paper);
}

.site-header.is-scrolled .nav-desktop a:hover,
.site-header.is-scrolled .header-contact a:hover {
  color: var(--ink);
}

.header-contact {
  display: none;
  gap: 24px;
  justify-self: end;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  width: 36px;
  height: 36px;
  justify-self: end;
}

.menu-toggle span {
  display: block;
  width: 36px;
  height: 2px;
  background: var(--paper);
  transition: background 0.2s ease;
}

.nav-mobile {
  background: var(--paper);
  color: var(--ink);
  padding: var(--s-3) var(--margin) var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  border-top: var(--hairline) solid var(--line-light);
}

.nav-mobile[hidden] {
  display: none;
}

.nav-mobile a {
  color: var(--mute-light);
  font-size: var(--fs-q);
}

.nav-mobile .text-cta {
  color: var(--ink);
  margin-top: var(--s-2);
}

@media (min-width: 960px) {
  .nav-desktop,
  .header-contact {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
}

.hero-media,
.cta-media {
  position: absolute;
  inset: 0;
  background:
    url("https://images.unsplash.com/photo-1585747860715-2ba37e788b70?w=1800&q=85")
    center / cover no-repeat;
  transform: scale(1.02);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

@keyframes hero-drift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-1.5%, -1%, 0); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 var(--margin) clamp(80px, 12vw, 120px);
}

.wordmark {
  font-size: var(--fs-wordmark);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.06em;
  width: 100%;
  animation: rise 0.9s ease both;
}

.wordmark sup {
  font-size: 0.28em;
  vertical-align: super;
  letter-spacing: -0.04em;
}

.hero-tagline {
  margin-top: var(--s-3);
  max-width: 45ch;
  color: rgba(242, 242, 242, 0.85);
  font-size: var(--fs-q);
  animation: rise 0.9s ease 0.12s both;
}

.hero .text-cta {
  margin-top: var(--s-4);
  animation: rise 0.9s ease 0.24s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-dots {
  position: absolute;
  right: var(--margin);
  top: 50%;
  transform: translateY(-50%);
  display: none;
  flex-direction: column;
  gap: 12px;
}

.dot {
  width: 10px;
  height: 10px;
  background: var(--paper);
  border-radius: 0;
  opacity: 0.35;
}

.dot.is-active {
  opacity: 1;
  box-shadow: 0 0 0 5px var(--halo);
}

/* ---------- Shared section bits ---------- */
.section-paper {
  background: var(--paper);
  color: var(--ink);
  padding-block: var(--s-7);
}

.section-night {
  background: var(--night);
  color: var(--paper);
  padding-block: var(--s-7);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-body);
  color: var(--mute-light);
  margin-bottom: var(--s-4);
}

.section-label--dark {
  color: var(--mute-dark);
}

.dot-marker {
  width: 10px;
  height: 10px;
  background: var(--ink);
  flex-shrink: 0;
}

.section-label--dark .dot-marker {
  background: var(--paper);
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}

.section-lede,
.services-lede {
  margin-top: var(--s-3);
  max-width: 42ch;
  color: var(--mute-light);
}

.services-lede {
  color: var(--mute-dark);
}

.statement {
  font-size: var(--fs-statement);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

/* ---------- Intro / stats ---------- */
.intro-statement {
  max-width: 28ch;
  margin-left: 0;
}

@media (min-width: 900px) {
  .intro-statement {
    margin-left: calc((100% - 2 * var(--margin)) * 0.28);
    max-width: 36ch;
  }
}

.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: var(--hairline) solid var(--line-light);
}

@media (min-width: 720px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-num {
  font-family: var(--font-mono);
  font-size: var(--fs-stat);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  margin-top: var(--s-2);
  color: var(--mute-light);
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  gap: var(--s-5);
}

@media (min-width: 960px) {
  .services-grid {
    grid-template-columns: minmax(220px, 0.85fr) 1.8fr;
    gap: var(--s-5);
    align-items: start;
  }

  .services-heading-col {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

.services-list {
  display: flex;
  flex-direction: column;
}

.service-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-2) var(--s-3);
  padding-block: var(--s-4);
  border-top: var(--hairline) solid var(--line-dark);
}

.service-row:last-child {
  border-bottom: var(--hairline) solid var(--line-dark);
}

.service-index {
  font-size: var(--fs-body);
  color: var(--mute-dark);
  padding-top: 6px;
}

.service-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2);
  margin-bottom: var(--s-2);
}

.service-row h3 {
  font-size: clamp(24px, 3vw, var(--fs-h3));
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.service-price {
  font-family: var(--font-mono);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.service-desc {
  color: var(--mute-dark);
  max-width: 42ch;
  margin-bottom: var(--s-2);
}

.service-tags {
  color: var(--paper);
  font-size: var(--fs-body);
}

.service-image {
  grid-column: 1 / -1;
  aspect-ratio: 1 / 1;
  max-width: 320px;
  margin-top: var(--s-2);
  overflow: hidden;
}

.service-image img {
  transition: transform 0.6s ease;
}

.service-row:hover .service-image img {
  transform: scale(1.04);
}

@media (min-width: 720px) {
  .service-row {
    grid-template-columns: auto 1fr minmax(180px, 280px);
    align-items: start;
  }

  .service-image {
    grid-column: auto;
    margin-top: 0;
    max-width: none;
    width: 100%;
  }
}

/* ---------- Barbers ---------- */
.barber-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  margin-top: var(--s-5);
}

@media (min-width: 800px) {
  .barber-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gutter);
    align-items: start;
  }

  .barber--offset {
    margin-top: 120px;
  }
}

.barber img {
  aspect-ratio: 3 / 4;
  filter: grayscale(0.15) contrast(1.05);
}

.barber-meta {
  margin-top: 10px;
}

.barber h3 {
  font-size: clamp(24px, 2.5vw, var(--fs-h3));
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.barber-role {
  margin-top: 6px;
  color: var(--mute-light);
}

.barber-specialty {
  margin-top: var(--s-2);
  color: var(--ink);
  max-width: 32ch;
}

/* ---------- Gallery ---------- */
.gallery {
  padding-top: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5) var(--gutter);
  margin-top: var(--s-5);
}

@media (min-width: 800px) {
  .gallery-grid {
    grid-template-columns: repeat(12, 1fr);
  }

  .gallery-item--portrait {
    grid-column: span 5;
  }

  .gallery-item--landscape {
    grid-column: 7 / span 6;
  }

  .gallery-item--stagger {
    margin-top: 180px;
  }

  .gallery-item--wide {
    grid-column: 2 / span 10;
  }
}

.gallery-item img {
  width: 100%;
}

.gallery-item--portrait img {
  aspect-ratio: 3 / 4;
}

.gallery-item--landscape img {
  aspect-ratio: 4 / 3;
}

.gallery-item--wide img {
  aspect-ratio: 16 / 9;
}

.gallery-item figcaption {
  display: flex;
  justify-content: space-between;
  gap: var(--s-2);
  margin-top: 10px;
  font-size: var(--fs-caption);
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ---------- Reviews ---------- */
.reviews-layout {
  display: grid;
  gap: var(--s-5);
}

@media (min-width: 900px) {
  .reviews-layout {
    grid-template-columns: 1.6fr 0.8fr;
    gap: var(--s-6);
    align-items: end;
  }
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--s-4);
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 0;
  object-fit: cover;
}

.review-name {
  color: var(--ink);
}

.review-role {
  color: var(--mute-light);
}

.review-quote {
  font-size: var(--fs-statement);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  max-width: 22ch;
}

.rating-score {
  font-size: var(--fs-h3);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.rating-stars {
  margin-top: var(--s-1);
  letter-spacing: 0.12em;
  color: var(--ink);
}

.rating-caption {
  margin-top: var(--s-2);
  color: var(--mute-light);
  max-width: 20ch;
}

.carousel-controls {
  display: flex;
  gap: 8px;
  margin-top: var(--s-4);
}

.icon-btn {
  width: var(--icon-btn);
  height: var(--icon-btn);
  border: 1px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- Find Us ---------- */
.find-us {
  padding-top: 0;
}

.find-us-grid {
  display: grid;
  gap: var(--s-5);
}

@media (min-width: 900px) {
  .find-us-grid {
    grid-template-columns: 0.9fr 1.3fr;
    gap: var(--s-5);
    align-items: stretch;
  }
}

.find-address {
  margin-top: var(--s-4);
  font-size: var(--fs-q);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.find-phone {
  margin-top: var(--s-3);
}

.find-phone a {
  border-bottom: 1px solid currentColor;
  font-weight: 500;
}

.hours {
  margin: var(--s-4) 0;
  display: grid;
  gap: 10px;
  max-width: 280px;
}

.hours div {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  padding-bottom: 10px;
  border-bottom: var(--hairline) solid var(--line-light);
}

.hours dt {
  color: var(--mute-light);
}

.hours dd {
  color: var(--ink);
}

.find-us-map {
  min-height: 320px;
  background: var(--line-light);
}

.find-us-map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  filter: grayscale(1) contrast(1.05);
}

@media (min-width: 900px) {
  .find-us-map iframe {
    min-height: 520px;
  }
}

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  min-height: clamp(420px, 70vh, 640px);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--paper);
  overflow: hidden;
}

.cta-media {
  background-image: url("https://images.unsplash.com/photo-1503951914875-452162b0f3f1?w=1800&q=85");
  animation: none;
  transform: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  padding: var(--s-6) var(--margin);
  max-width: min(720px, 100%);
}

.cta-content h2 {
  font-size: var(--fs-cta);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.045em;
  max-width: 14ch;
  margin-inline: auto;
}

.cta-sub {
  margin: var(--s-3) auto var(--s-4);
  font-size: var(--fs-q);
  color: rgba(242, 242, 242, 0.75);
  max-width: 36ch;
}

.cta-content .text-cta {
  margin-inline: auto;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--night);
  color: var(--paper);
  padding-top: var(--s-6);
  padding-bottom: var(--s-4);
}

.footer-top {
  display: grid;
  gap: var(--s-5);
}

@media (min-width: 900px) {
  .footer-top {
    grid-template-columns: 1.4fr 0.7fr 0.7fr 0.9fr;
    gap: var(--gutter);
  }
}

.footer-heading {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 12ch;
  margin-bottom: var(--s-4);
}

.newsletter {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-3);
}

.newsletter input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-dark);
  color: var(--paper);
  outline: none;
}

.newsletter input::placeholder {
  color: var(--mute-dark);
}

.newsletter input:focus-visible {
  border-bottom-color: var(--paper);
  outline: none;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a,
.footer-col p,
.footer-legal a {
  color: var(--mute-dark);
}

.footer-col a:hover,
.footer-legal a:hover {
  color: var(--paper);
}

.footer-col--contact {
  text-align: left;
}

@media (min-width: 900px) {
  .footer-col--contact {
    text-align: right;
    align-items: flex-end;
  }
}

.footer-legal {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  border-top: var(--hairline) solid var(--line-dark);
  color: var(--mute-dark);
  font-size: 14px;
}

.footer-wordmark {
  margin-top: var(--s-5);
  font-size: var(--fs-wordmark);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: var(--paper);
  overflow: hidden;
}

.footer-wordmark sup {
  font-size: 0.28em;
  vertical-align: super;
}

/* ---------- Motion for sections entering view ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
