/* Blackwood & Sons — barbershop. DM Serif Display + Karla. Bottle green, parchment, mustard. */
:root {
  --bg: #15231e;
  --deep: #0f1a16;
  --cream: #efe6d2;
  --muted: #a5ab9c;
  --line: rgba(239, 230, 210, 0.18);
  --accent: #d9a441;
  --display: 'DM Serif Display', Georgia, serif;
  --sans: 'Karla', system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.9, 0.2, 1);
  --pad: clamp(20px, 5vw, 76px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--cream); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--deep); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--cream); color: var(--bg); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
.wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding-inline: var(--pad); }

.eyebrow { display: flex; align-items: center; justify-content: center; gap: 16px; font-size: 13px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent); margin-bottom: 26px; }
.eyebrow i { width: 34px; height: 1px; background: currentColor; }
.eyebrow--left { justify-content: flex-start; }
.h2 { font-family: var(--display); font-weight: 400; font-size: clamp(42px, 6vw, 92px); line-height: 0.98; letter-spacing: -0.01em; }
em { font-style: italic; color: var(--accent); }
.orn { display: block; width: 120px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.2; margin: 0 auto 36px; }

/* Motion primitives */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease) var(--d, 0ms), transform 1.3s var(--ease) var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"] { opacity: 1; transform: none; }
.js [data-reveal="clip"] > img { clip-path: inset(100% 0 0 0); transition: clip-path 1.5s var(--ease) var(--d, 0ms) !important; }
.js [data-reveal="clip"].is-in > img { clip-path: inset(0); }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.16em; margin-bottom: -0.16em; }
.w-i { display: inline-block; transform: translateY(112%); transition: transform 1.2s var(--ease); }
.is-in .w-i { transform: none; }

.media { position: relative; overflow: hidden; background: var(--deep); }
.media img { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.25) saturate(0.85); transition: transform 1.5s var(--ease), filter 1s var(--ease); }
.media img[data-parallax] { position: absolute; left: 0; top: -8%; height: 116%; transition: none; will-change: transform; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; border: 1px solid var(--cream); background: none; cursor: pointer; font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease); }
.btn:hover { background: var(--cream); color: var(--bg); }
.btn--solid { background: var(--accent); border-color: var(--accent); color: var(--deep); padding: 18px 32px; }
.btn--solid:hover { background: var(--cream); border-color: var(--cream); }

/* Header */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 22px var(--pad); transition: padding 0.6s var(--ease), background 0.6s var(--ease); }
.header.is-scrolled { padding-block: 12px; background: rgba(15, 26, 22, 0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 26px; line-height: 1; }
.brand i { color: var(--accent); }
.brand svg { width: 36px; height: 36px; fill: none; stroke: var(--accent); stroke-width: 1.3; stroke-linecap: round; }
.nav { display: flex; gap: clamp(16px, 2.6vw, 38px); }
.nav a { position: relative; font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; padding: 6px 0; }
.nav a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform 0.6s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header__right { display: flex; justify-content: flex-end; }
.header__right .btn { padding: 11px 22px; }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; justify-self: end; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--cream); transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.nav-open .burger span:first-child { top: 22px; transform: rotate(45deg); }
.nav-open .burger span:last-child { top: 22px; transform: rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; text-align: center; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 118%; object-fit: cover; filter: sepia(0.3) saturate(0.8); will-change: transform; animation: heroIn 2.4s var(--ease) both; }
.hero__media::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(15, 26, 22, 0.62) 0%, rgba(15, 26, 22, 0.86) 70%, rgba(15, 26, 22, 0.96) 100%); }
@keyframes heroIn { from { opacity: 0; scale: 1.08; } to { opacity: 1; scale: 1; } }
.hero__inner { position: relative; padding: 150px var(--pad) 60px; }
.hero__title { font-family: var(--display); font-weight: 400; font-size: clamp(52px, 9.4vw, 160px); line-height: 0.94; letter-spacing: -0.015em; }
.hero__title em { display: block; }
.hero__lede { margin: 30px auto 0; max-width: 40ch; font-size: 19px; color: rgba(239, 230, 210, 0.8); }
.hero__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero__strip { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: auto; }
.hero__strip p { padding: 22px var(--pad); font-size: 14px; color: var(--muted); }
.hero__strip p + p { border-left: 1px solid var(--line); }
.hero__strip b { display: block; font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--cream); }

/* Intro */
.intro { text-align: center; padding-block: clamp(96px, 13vw, 190px); }
.statement { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.7vw, 56px); line-height: 1.16; max-width: 26ch; margin-inline: auto; }
.sign { margin-top: 36px; font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }

/* Services */
.services { background: var(--cream); color: var(--bg); padding-block: clamp(96px, 12vw, 180px); }
.services .eyebrow, .services em { color: #a8741a; }
.services__inner { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 8vw, 140px); align-items: start; }
.services__head { position: sticky; top: 110px; }
.services__media { aspect-ratio: 4 / 3; margin-top: 44px; background: #ddd2ba; }
.menu__title { font-family: var(--display); font-weight: 400; font-style: italic; font-size: 26px; color: #a8741a; padding-bottom: 12px; border-bottom: 2px solid var(--bg); }
.menu ul { margin-bottom: clamp(40px, 5vw, 64px); }
.menu li { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 22px 0; border-bottom: 1px solid rgba(21, 35, 30, 0.2); transition: padding 0.6s var(--ease); }
.menu li:hover { padding-left: 14px; }
.menu h4 { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2.5vw, 34px); line-height: 1.15; }
.menu p { font-size: 15px; color: #56635b; margin-top: 2px; }
.menu span { font-family: var(--display); font-size: clamp(28px, 2.8vw, 40px); flex: none; }

/* Shop rail */
.shop { padding-block: clamp(96px, 12vw, 180px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(36px, 5vw, 64px); }
.rail-nav { display: flex; gap: 10px; }
.rail-nav button { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; display: grid; place-items: center; transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease); }
.rail-nav button:hover { background: var(--accent); border-color: var(--accent); color: var(--deep); }
.rail-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.rail { display: flex; gap: clamp(14px, 1.8vw, 26px); overflow-x: auto; padding-inline: max(var(--pad), calc((100vw - 1400px) / 2 + var(--pad))); scroll-snap-type: x proximity; scrollbar-width: none; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.rail figure { flex: 0 0 clamp(260px, 30vw, 440px); scroll-snap-align: start; }
.rail .media { aspect-ratio: 4 / 5; }
.rail figure:hover img { transform: scale(1.05); filter: none; }
.rail figcaption { margin-top: 14px; font-size: 15px; color: var(--muted); padding-left: 14px; border-left: 1px solid var(--accent); }

/* Barbers */
.barbers { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; padding-bottom: clamp(96px, 12vw, 180px); }
.barbers__copy > p:not(.eyebrow) { margin-top: 26px; max-width: 44ch; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.stats dt { font-family: var(--display); font-size: clamp(46px, 5vw, 78px); line-height: 1; color: var(--accent); }
.stats dd { font-size: 14px; color: var(--muted); margin-top: 8px; }
.crew { position: relative; padding: 0 0 16% 20%; }
.crew__a { aspect-ratio: 4 / 5; }
.crew__b { position: absolute; left: 0; bottom: 0; width: 44%; aspect-ratio: 3 / 4; outline: 10px solid var(--bg); }
.crew figcaption { position: absolute; left: 0; bottom: 0; z-index: 1; padding: 10px 16px; background: var(--cream); color: var(--bg); font-family: var(--display); font-size: 20px; line-height: 1.2; }
.crew__a figcaption { left: auto; right: 0; }
.crew figcaption span { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: 0.06em; color: #56635b; }

/* Booking */
.book { background: var(--deep); border-block: 1px solid var(--line); padding-block: clamp(96px, 11vw, 170px); }
.book__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 8vw, 140px); align-items: center; }
.book .orn { margin-left: 0; }
.book__title { font-family: var(--display); font-weight: 400; font-size: clamp(60px, 9vw, 150px); line-height: 0.9; }
.book__inner > div > p { margin-top: 26px; max-width: 36ch; color: var(--muted); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; padding: clamp(24px, 3.4vw, 48px); border: 1px solid var(--line); background: var(--bg); }
.form__wide { grid-column: 1 / -1; }
.form label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.form input, .form select { display: block; width: 100%; margin-top: 8px; padding: 10px 0 12px; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font-family: var(--display); font-size: 21px; letter-spacing: 0; text-transform: none; color: var(--cream); transition: border-color 0.5s var(--ease); color-scheme: dark; }
.form select option { background: var(--bg); }
.form input::placeholder { color: rgba(239, 230, 210, 0.3); }
.form input:focus, .form select:focus { outline: none; border-color: var(--accent); }
.form__note { font-family: var(--display); font-style: italic; font-size: 20px; color: var(--accent); min-height: 1.6em; opacity: 0; transition: opacity 0.6s var(--ease); }
.form__note.is-shown { opacity: 1; }

/* Footer */
.footer { padding-top: clamp(64px, 8vw, 110px); overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; text-align: center; }
.footer h3 { font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.footer p { color: var(--muted); font-size: 16px; }
.footer a { transition: color 0.4s var(--ease); }
.footer a:hover { color: var(--cream); }
.footer .footer__mark { font-family: var(--display); font-size: clamp(54px, 12.5vw, 210px); line-height: 1; text-align: center; white-space: nowrap; color: var(--cream); opacity: 0.1; margin-top: clamp(40px, 6vw, 80px); user-select: none; }
.footer__mark i { font-style: italic; }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px; border-top: 1px solid var(--line); margin-top: 20px; }
.footer__base p { font-size: 14px; }

/* Responsive */
@media (max-width: 960px) {
  .header { grid-template-columns: 1fr auto; }
  .brand { grid-column: 1; grid-row: 1; z-index: 2; }
  .burger { display: block; z-index: 2; }
  .header__right { display: none; }
  .nav { position: fixed; inset: 0; background: var(--deep); flex-direction: column; justify-content: center; align-items: center; gap: 8px; opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0.5s; }
  .nav a { font-family: var(--display); font-size: 44px; letter-spacing: 0; text-transform: none; font-weight: 400; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
  .services__inner, .barbers, .book__inner { grid-template-columns: 1fr; }
  .services__head { position: static; }
  .hero__strip { grid-template-columns: 1fr; }
  .hero__strip p { padding-block: 14px; }
  .hero__strip p + p { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .form { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .rail-nav { display: none; }
  .brand { font-size: 21px; }
  .brand svg { width: 30px; height: 30px; }
  .stats { gap: 10px; }
  .hero__strip p:first-child { display: none; }
  .eyebrow { letter-spacing: 0.18em; gap: 10px; }
  .eyebrow i { width: 18px; }
}
@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; }
}
