:root {
  --ink: #10100f;
  --ink-soft: #2b2925;
  --ivory: #f7f1e7;
  --paper: #fffaf2;
  --brass: #c99b4a;
  --brass-dark: #8b6122;
  --sage: #637564;
  --oxblood: #7d2f2f;
  --line: rgba(16, 16, 15, 0.14);
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(16, 16, 15, 0.18);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(247, 241, 231, 0.94), rgba(255, 250, 242, 1) 32rem),
    var(--paper);
  color: var(--ink);
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(255, 250, 242, 0.94);
  color: var(--ink);
  box-shadow: 0 10px 34px rgba(16, 16, 15, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  font-weight: 800;
  font-size: clamp(0.94rem, 1.7vw, 1.06rem);
}

.brand small {
  margin-top: 0.18rem;
  opacity: 0.76;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-nav a {
  opacity: 0.82;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  opacity: 1;
}

.nav-call {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0 1.1rem;
}

.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  place-items: center;
  padding: 0.7rem;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 1rem;
  height: 2px;
  background: currentColor;
  margin: 0.12rem auto;
}

.hero {
  position: relative;
  display: grid;
  min-height: 650px;
  height: 88svh;
  max-height: 850px;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/barber-chair.jpg");
  background-position: 53% 48%;
  background-size: cover;
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(16, 16, 15, 0.86), rgba(16, 16, 15, 0.48) 48%, rgba(16, 16, 15, 0.18)),
    linear-gradient(0deg, rgba(16, 16, 15, 0.38), rgba(16, 16, 15, 0.1) 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(780px, calc(100% - 2rem));
  align-self: center;
  margin-left: clamp(1rem, 7vw, 7rem);
  padding-top: 4rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(4rem, 11vw, 8.8rem);
  line-height: 0.84;
}

.hero-copy {
  max-width: 650px;
  margin: 1.5rem 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}

.hero-actions,
.carey-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  padding: 0.85rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button-primary {
  border: 1px solid var(--brass);
  background: var(--brass);
  color: var(--ink);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.54);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.button-quiet {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}

.hero-strip {
  position: absolute;
  right: clamp(1rem, 4vw, 4rem);
  bottom: 1.25rem;
  left: clamp(1rem, 4vw, 4rem);
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.82);
}

.hero-strip span {
  display: grid;
  min-height: 3.35rem;
  place-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-strip span:last-child {
  border-right: 0;
}

.section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(2rem, 7vw, 6rem);
  align-items: end;
}

.intro h2,
.section-heading h2,
.carey-copy h2,
.experience-copy h2 {
  font-size: clamp(2.5rem, 5.5vw, 5.2rem);
  line-height: 0.94;
}

.intro-card {
  border-left: 4px solid var(--oxblood);
  background: var(--white);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.intro-card .stat {
  display: block;
  color: var(--oxblood);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 5rem;
  line-height: 0.85;
}

.intro-card p {
  margin: 1rem 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.intro-card a {
  color: var(--brass-dark);
  font-weight: 900;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--white);
}

.service-card {
  min-height: 310px;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-right: 1px solid var(--line);
}

.service-card:nth-child(4) {
  border-right: 0;
}

.service-card span {
  color: var(--brass-dark);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.service-card h3,
.visit-card h3 {
  margin: 4rem 0 1rem;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.05;
}

.service-card p,
.carey-copy p,
.experience-copy p,
.visit-card p,
.footer p {
  color: rgba(16, 16, 15, 0.72);
  line-height: 1.7;
}

.carey {
  width: 100%;
  background:
    linear-gradient(90deg, rgba(16, 16, 15, 0.04), transparent),
    var(--ivory);
  padding-right: clamp(1rem, 4vw, 4rem);
  padding-left: clamp(1rem, 4vw, 4rem);
}

.carey-panel {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1fr);
  width: min(1180px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(16, 16, 15, 0.12);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.carey-portrait {
  position: relative;
  display: grid;
  min-height: 640px;
  place-items: end start;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(125, 47, 47, 0.88), rgba(99, 117, 100, 0.78)),
    url("assets/barber-chair.jpg") center / cover;
  color: var(--white);
}

.carey-portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(16, 16, 15, 0.56), rgba(16, 16, 15, 0.06)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 5rem);
  mix-blend-mode: soft-light;
}

.carey-portrait div {
  position: relative;
  z-index: 1;
  padding: 2rem;
}

.carey-portrait span,
.carey-portrait strong {
  display: block;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  line-height: 0.9;
}

.carey-portrait span {
  font-size: clamp(4.5rem, 9vw, 8rem);
}

.carey-portrait strong {
  color: var(--brass);
  font-size: clamp(4.75rem, 9vw, 8.6rem);
}

.carey-copy {
  padding: clamp(2rem, 5vw, 4.5rem);
}

.carey-copy h2 {
  max-width: 720px;
}

.quote-block {
  margin: 2rem 0 0;
  border-left: 4px solid var(--brass);
  padding-left: 1.25rem;
}

.quote-block p {
  margin: 0;
  color: var(--ink);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
}

.quote-block span {
  display: block;
  margin-top: 0.7rem;
  color: var(--brass-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.experience {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.experience-image {
  min-height: 560px;
  background: url("assets/barber-chair.jpg") center / cover;
  box-shadow: var(--shadow);
}

.experience-copy ul {
  display: grid;
  gap: 0.8rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.experience-copy li {
  display: grid;
  grid-template-columns: 0.9rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: baseline;
  color: var(--ink-soft);
  line-height: 1.55;
}

.experience-copy li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--sage);
}

.visit {
  padding-top: 1rem;
}

.visit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.visit-card {
  min-height: 270px;
  border: 1px solid var(--line);
  background: var(--white);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.visit-card h3 {
  margin-top: 0;
}

.visit-card a {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--brass-dark);
  font-weight: 900;
}

.visit-card-dark {
  background: var(--ink);
  color: var(--white);
}

.visit-card-dark p {
  color: rgba(255, 255, 255, 0.74);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding: 2rem clamp(1rem, 4vw, 4rem);
  background: var(--ivory);
}

.footer strong {
  display: block;
}

.footer p {
  margin: 0.35rem 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 980px) {
  .site-header {
    padding: 0.8rem 1rem;
  }

  .menu-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    top: 4.8rem;
    right: 1rem;
    left: 1rem;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    min-height: 3.75rem;
    padding: 1.2rem;
    border-bottom: 1px solid var(--line);
    opacity: 1;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .nav-call {
    border: 0;
    border-radius: 0;
    justify-content: flex-start;
  }

  .hero {
    height: 88svh;
    min-height: 690px;
  }

  .hero-content {
    width: min(680px, calc(100% - 2rem));
    margin: 0 auto;
  }

  .hero-strip {
    grid-template-columns: repeat(5, minmax(8rem, 1fr));
    overflow-x: auto;
  }

  .intro,
  .section-heading,
  .carey-panel,
  .experience,
  .visit-grid {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card:nth-child(2) {
    border-right: 0;
  }

  .service-card:nth-child(1),
  .service-card:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .carey-portrait,
  .experience-image {
    min-height: 430px;
  }
}

@media (max-width: 620px) {
  .brand small {
    display: none;
  }

  .hero {
    height: auto;
    min-height: 88svh;
    max-height: none;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(3.1rem, 14vw, 4.15rem);
    line-height: 0.9;
  }

  .hero-content {
    align-self: start;
    padding: 8rem 0 7rem;
  }

  .hero-actions,
  .carey-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-strip {
    display: none;
  }

  .section {
    width: min(100% - 1.25rem, 1180px);
    padding: 3.75rem 0;
  }

  .intro h2,
  .section-heading h2,
  .carey-copy h2,
  .experience-copy h2 {
    font-size: clamp(2.45rem, 13vw, 3.65rem);
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 250px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-card:last-child {
    border-bottom: 0;
  }

  .service-card h3 {
    margin-top: 2rem;
  }

  .carey {
    padding-right: 0.625rem;
    padding-left: 0.625rem;
  }

  .carey-copy {
    padding: 1.3rem;
  }

  .carey-portrait,
  .experience-image {
    min-height: 340px;
  }

  .carey-portrait div {
    padding: 1.25rem;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
