/* Kestrel Lane Barbers, a design concept by Owner's Copy. Warm black ground, white ink, one gold action. */
:root {
  --bg: #0c0a08;
  --surface: #181512;
  --surface-2: #24201b;
  --ink: #ffffff;
  --ink-soft: #efe9df;
  --muted: #a39d95;
  --accent: #c9a45a;
  --accent-ink: #0c0a08;
  --umber: #4a3b2c;
  --moss: #2f3a33;
  --plum: #3b3440;
  --brick: #5a2e24;
  --bone: #cfc2ab;
  --slate: #2b3038;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Public Sans", "Helvetica Neue", Arial, sans-serif;

  --step-small: 0.9375rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-head: clamp(1.75rem, 1.2rem + 1.9vw, 2.5rem);
  --step-caption: clamp(2.75rem, 1rem + 6.2vw, 6rem);

  --m: 20px;
  --gap-section: clamp(120px, 14vw, 220px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 260ms;
  --t-reveal: 800ms;
}
@media (min-width: 768px) { :root { --m: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--surface-2) var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--text); font-size: var(--step-body); line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
  background-image: url(grain.png); background-size: 240px 240px;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
svg { display: block; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
input { font: inherit; color: inherit; caret-color: var(--accent); }
h2 { font-family: var(--display); font-weight: 700; font-size: var(--step-head); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; overflow-wrap: break-word; }
h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
strong { font-weight: 600; }

.skin { fill: #1a1512; }
.skin2 { fill: #2a231d; }
.hair { fill: #efe9df; }
.defs { position: absolute; width: 0; height: 0; }

/* The banner: one flat bar, nothing hides it */
.banner {
  background: var(--accent); color: var(--accent-ink);
  padding: 12px var(--m); font-size: var(--step-small); font-weight: 600; line-height: 1.35; text-align: center;
  position: relative; z-index: 6;
}
.banner a { text-decoration: underline; text-underline-offset: 0.18em; }

/* Buttons: one shape, square, gold */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  background: var(--accent); color: var(--accent-ink); text-decoration: none; border: 0; border-radius: 0; cursor: pointer;
  font-family: var(--text); font-weight: 600; font-size: 1.0625rem; line-height: 1; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
  -webkit-tap-highlight-color: transparent;
}
.button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .button:hover { background: #d9b56a; } .button.ghost:hover { background: #2e2923; } }
.button.big { min-height: 60px; padding: 0 30px; font-size: 1.125rem; }
.button.ghost { background: var(--surface-2); color: var(--ink); }
.textlink {
  display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--ink);
  text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 0.09em; text-decoration-color: var(--accent);
  transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) { .textlink:hover { color: var(--accent); } }

/* Top bar: wordmark, four words, one action */
.bar {
  position: sticky; top: 0; z-index: 5; background: var(--bg);
  display: flex; align-items: center; gap: 24px; min-height: 64px; padding: 8px var(--m);
}
.mark { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; font-size: 1rem; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.links { display: none; gap: 28px; margin-left: auto; }
.links a { text-decoration: none; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .links a:hover { color: var(--accent); } }
.bar .button { margin-left: auto; }
@media (min-width: 768px) { .links { display: flex; } .bar .button { margin-left: 0; } }

/* Hero: one screen. The name and the action on the left, one barber at a time on the right. */
.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; }
.hero { position: relative; padding: 20px var(--m) 0; display: grid; gap: 28px; }
.hero-copy { display: grid; grid-template-rows: auto auto auto; justify-items: start; gap: 20px; }
.monument {
  font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.035em; line-height: 0.84;
  font-size: 17.4vw; margin: 0 0 0 -0.04em; color: var(--ink); text-wrap: nowrap; white-space: nowrap;
}
.monument .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.monument .word { display: inline-block; }
.lead { max-width: 24ch; font-weight: 600; font-size: 1.0625rem; line-height: 1.4; text-wrap: balance; }
.chairs { display: grid; gap: 0; }
.panels { position: relative; height: 60svh; min-height: 360px; overflow: hidden; }
.panel { position: absolute; inset: 0; display: block; opacity: 0; transition: opacity 900ms var(--ease-soft); }
.panel:first-child, .panel.is-on { opacity: 1; }
.js .panel:first-child:not(.is-on) { opacity: 0; }
.panel svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.panel .cap { position: absolute; left: 20px; right: 20px; bottom: 20px; max-width: 30ch; font-size: 1rem; line-height: 1.4; color: var(--ink-soft); }
.panel .cap strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 4px; color: var(--ink); }
.who { display: flex; flex-wrap: wrap; gap: 0 4px; margin-top: 6px; }
.who button {
  appearance: none; border: 0; border-radius: 0; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-weight: 600; font-size: var(--step-small);
  min-height: 44px; padding: 0 12px 0 0; display: inline-flex; align-items: center; gap: 10px; transition: color var(--t-hover) ease; -webkit-tap-highlight-color: transparent;
}
.who button::before { content: ""; width: 10px; height: 10px; background: var(--surface-2); transition: background-color var(--t-hover) ease; }
.who button[aria-pressed="true"] { color: var(--ink); }
.who button[aria-pressed="true"]::before { background: var(--accent); }
@media (hover: hover) and (pointer: fine) { .who button:hover { color: var(--ink); } }
.p-umber { background: var(--umber); }
.p-moss { background: var(--moss); }
.p-plum { background: var(--plum); }
.p-brick { background: var(--brick); }
.p-slate { background: var(--slate); }
.p-bone { background: var(--bone); color: var(--bg); }
@media (min-width: 768px) {
  .hero { grid-template-columns: 7fr 5fr; gap: 48px; padding-top: 24px; min-height: calc(100svh - 64px - var(--banner, 48px)); align-items: stretch; }
  .hero-copy { grid-template-rows: auto 1fr auto; padding-bottom: 50px; }
  .lead { grid-row: 3; align-self: end; font-size: 1.125rem; max-width: 26ch; }
  .hero-copy .button { grid-row: 3; align-self: end; justify-self: end; margin-left: 24px; }
  .hero-copy { grid-template-columns: 1fr auto; }
  .monument { grid-column: 1 / -1; font-size: min(11.6vw, 190px); }
  .lead { grid-column: 1; }
  .hero-copy .button { grid-column: 2; }
  .chairs { grid-template-rows: 1fr auto; }
  .panels { height: auto; min-height: 480px; }
  .panel .cap { left: 28px; right: 28px; bottom: 28px; }
  .who { margin-top: 0; min-height: 50px; align-items: center; }
}

/* The lane: a heading captions a drawn panorama */
.lane { padding-top: var(--gap-section); }
.lane-text { padding: 0 var(--m); max-width: 1100px; }
.lane h2 { font-size: var(--step-caption); font-weight: 800; line-height: 0.95; letter-spacing: -0.035em; max-width: 14ch; }
.lane-text p { margin-top: 20px; max-width: 34ch; font-size: 1rem; line-height: 1.45; }
@media (min-width: 768px) {
  .lane-text { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
  .lane-text h2 { grid-column: 1 / -1; }
  .lane-text p { margin-top: 28px; max-width: 26ch; }
}
.panorama { margin-top: 40px; height: 62svh; min-height: 300px; overflow: hidden; }
.panorama svg { width: 100%; height: 112%; will-change: transform; }

/* Services: one heading, one list, no cards */
.services { padding: var(--gap-section) var(--m) 0; }
.services-head p { margin: 20px 0 28px; max-width: 42ch; }
.menu { display: grid; margin-top: 48px; }
.menu li { background: var(--surface); padding: 20px 20px 22px; display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; align-items: baseline; }
.menu li:nth-child(even) { background: var(--surface-2); }
.menu .n { font-family: var(--display); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.015em; line-height: 1.1; }
.menu .d { grid-column: 1 / -1; color: var(--ink-soft); font-size: 1rem; line-height: 1.45; max-width: 60ch; }
.menu .t { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
@media (min-width: 768px) {
  .services { display: grid; grid-template-columns: 4fr 8fr; gap: 0 64px; align-items: start; }
  .services-head { position: sticky; top: 96px; }
  .menu { margin-top: 0; }
  .menu li { grid-template-columns: 240px 1fr auto; padding: 24px 28px 26px; gap: 0 32px; }
  .menu .d { grid-column: auto; }
}

/* Styles: a wall of shape studies you can tap */
.styles { padding: var(--gap-section) var(--m) 0; }
.styles h2 { max-width: 20ch; }
.wall { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 40px; }
.wall li { aspect-ratio: 4 / 5; overflow: hidden; }
.wall button {
  appearance: none; border: 0; border-radius: 0; padding: 0; margin: 0; background: transparent; color: inherit; cursor: pointer;
  display: block; width: 100%; height: 100%; position: relative; text-align: left; font: inherit;
  -webkit-tap-highlight-color: transparent;
}
.wall svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 600ms var(--ease-soft); transform-origin: 50% 100%; }
.wall button span { position: absolute; left: 16px; right: 16px; top: 16px; font-family: var(--display); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.015em; line-height: 1.15; text-wrap: balance; }
.wall button:active svg { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .wall button:hover svg { transform: translateY(-10px) scale(1.04); } }
@media (min-width: 768px) {
  .wall { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .wall button span { left: 24px; top: 24px; font-size: 1.5rem; }
}

/* The barbers: names as the structure */
.barbers { padding: var(--gap-section) var(--m) 0; }
.crew { margin-top: 40px; }
.crew li { padding: 32px 0 36px; display: grid; gap: 10px; align-items: start; }
.crew li + li { margin-top: 6px; }
.crew h3 { font-size: var(--step-caption); font-weight: 800; letter-spacing: -0.03em; line-height: 0.9; }
.crew p { max-width: 44ch; }
.crew .days { color: var(--muted); font-weight: 600; }
.crew .any { background: var(--surface); padding: 32px 24px 36px; }
.crew .any h3 { font-size: var(--step-head); }
@media (min-width: 768px) {
  .crew li { grid-template-columns: 5fr 4fr 2fr 2fr; gap: 0 40px; padding: 40px 0 44px; }
  .crew li > * { grid-row: 1; }
  .crew .any { padding: 40px 32px 44px; grid-template-columns: 5fr 4fr 4fr; }
  .crew .textlink { justify-self: end; }
}

/* Visit: hours, the address, a drawn map, in one step of tone */
.visit { margin-top: var(--gap-section); background: var(--surface); padding: 72px var(--m) 88px; }
.visit-grid { display: grid; gap: 48px; }
.week { margin-top: 24px; }
.week div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px; margin: 0 -12px; }
.week dt { font-weight: 600; }
.week dd { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.week div.is-today { background: var(--ink); color: var(--bg); }
.week div.is-today dd { color: var(--bg); }
.today { margin-top: 20px; color: var(--muted); font-weight: 600; min-height: 1.5em; }
.where h2 + p { margin-top: 24px; }
.addr { font-family: var(--display); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.015em; line-height: 1.2; }
.where p + p { margin-top: 16px; max-width: 34ch; }
.contact a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--accent); }
.where .button { margin-top: 24px; }
.map svg { width: 100%; height: auto; aspect-ratio: 4 / 3; }
@media (min-width: 768px) {
  .visit { padding: 112px var(--m) 128px; }
  .visit-grid { grid-template-columns: 3fr 4fr 5fr; gap: 64px; align-items: start; }
}

/* Footer: the name returns, inverted */
.foot { background: var(--ink); color: var(--bg); padding: 56px 0 40px; overflow: hidden; }
.foot .monument { color: var(--bg); }
.monument.small { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.035em; line-height: 0.84; font-size: 17.4vw; white-space: nowrap; padding: 0 var(--m); margin-left: -0.04em; }
@media (min-width: 768px) { .monument.small { font-size: 13.6vw; } }
.foot-grid { padding: 40px var(--m) 0; display: grid; gap: 28px; font-size: 1rem; line-height: 1.5; }
.foot a { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.08em; }
.credit { font-weight: 500; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1fr 1fr 1fr; gap: 48px; padding-top: 56px; } .credit { text-align: right; } }

/* The booking flow: a sheet on a phone, a side panel on a desk. A dialog truly floats, so it alone carries a shadow. */
.booking { border: 0; padding: 0; margin: 0; max-width: none; max-height: none; width: 100%; height: 100%; height: 100dvh; background: var(--bg); color: var(--ink); inset: 0; }
.booking::backdrop { background: rgba(6, 5, 4, 0.72); }
.booking[open] { display: flex; flex-direction: column; }
@media (min-width: 768px) {
  .booking { left: auto; width: 480px; box-shadow: -24px 0 60px rgba(0, 0, 0, 0.45); }
}
.flow { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.flow-head { display: flex; align-items: center; justify-content: space-between; padding: 20px var(--m) 0; }
.flow-head h2 { font-size: var(--step-head); }
.close { appearance: none; border: 0; background: var(--surface-2); color: var(--ink); width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer; border-radius: 0; transition: transform var(--t-press) var(--ease-out); }
.close:active { transform: scale(0.94); }
.steps { display: flex; gap: 20px; padding: 20px var(--m) 0; font-weight: 600; color: var(--muted); font-size: var(--step-small); }
.steps li[aria-current] { color: var(--accent); }
.steps li.is-done { color: var(--ink); }
.step { border: 0; padding: 20px var(--m) 24px; margin: 0; min-width: 0; overflow-y: auto; flex: 1; }
.step[hidden] { display: none; }
legend { font-family: var(--display); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.015em; padding: 0; margin-bottom: 16px; }
.opt { display: block; position: relative; cursor: pointer; }
.opt + .opt { margin-top: 6px; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.opt span { display: block; background: var(--surface); padding: 14px 16px; min-height: 52px; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.opt span strong { display: block; font-weight: 600; }
.opt:active span { transform: scale(0.99); }
.opt:has(input:checked) span { background: var(--ink); color: var(--bg); }
.opt:has(input:focus-visible) span { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .opt:hover span { background: var(--surface-2); } .opt:has(input:checked):hover span { background: var(--ink-soft); } }
.days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.days label { flex: 0 0 auto; position: relative; cursor: pointer; }
.days input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.days span { display: grid; place-items: center; width: 64px; min-height: 64px; background: var(--surface); font-weight: 600; line-height: 1.15; text-align: center; font-size: var(--step-small); transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.days span b { display: block; font-family: var(--display); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.02em; }
.days label:has(input:checked) span { background: var(--ink); color: var(--bg); }
.days label:has(input:focus-visible) span { outline: 3px solid var(--accent); outline-offset: 2px; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 20px; }
.slots label { position: relative; cursor: pointer; }
.slots input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.slots span { display: grid; place-items: center; min-height: 48px; background: var(--surface); font-weight: 600; font-variant-numeric: tabular-nums; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.slots label:has(input:checked) span { background: var(--ink); color: var(--bg); }
.slots label:has(input:disabled) { cursor: not-allowed; }
.slots label:has(input:disabled) span { color: var(--muted); background: transparent; text-decoration: line-through; }
.slots label:has(input:focus-visible) span { outline: 3px solid var(--accent); outline-offset: 2px; }
.slot-note { margin-top: 16px; color: var(--muted); font-size: var(--step-small); }
.summary div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; background: var(--surface); }
.summary div + div { margin-top: 6px; }
.summary dt { color: var(--muted); font-weight: 600; }
.summary dd { text-align: right; font-weight: 600; }
.field { display: block; margin-top: 16px; }
.field span { display: block; font-weight: 600; font-size: var(--step-small); margin-bottom: 6px; }
.field input { display: block; width: 100%; min-height: 52px; padding: 0 16px; border: 0; border-radius: 0; background: var(--surface); color: var(--ink); font-size: 1.0625rem; }
.field input::placeholder { color: var(--muted); }
.field input:focus-visible { outline: 3px solid var(--accent); outline-offset: 0; }
.note { margin-top: 20px; padding: 16px 18px; background: var(--accent); color: var(--accent-ink); font-weight: 600; line-height: 1.45; }
.note a { color: inherit; }
.note[hidden] { display: none; }
.flow-foot { display: flex; gap: 8px; padding: 12px var(--m) max(20px, env(safe-area-inset-bottom)); background: var(--bg); }
.flow-foot .button { flex: 1; min-height: 56px; }
.flow-foot [hidden] { display: none; }

/* Motion. Content is visible without script; the hidden start states exist only under html.js and when motion is allowed. */
@media (prefers-reduced-motion: no-preference) {
  .js .monument .word { transform: translateY(110%); animation: line-up 900ms var(--ease-out) forwards; animation-delay: 150ms; }
  .js .lead, .js .hero-copy .button { opacity: 0; transform: translateY(18px); animation: rise var(--t-reveal) var(--ease-out) forwards; }
  .js .lead { animation-delay: 520ms; }
  .js .hero-copy .button { animation-delay: 640ms; }
  .js .chairs { opacity: 0; animation: rise 900ms var(--ease-soft) forwards; animation-delay: 300ms; }
  .js [data-reveal] > * { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
  .js [data-reveal].is-in > * { opacity: 1; transform: none; }
  .js [data-reveal] > :nth-child(2) { transition-delay: 80ms; }
  .js [data-reveal] > :nth-child(3) { transition-delay: 160ms; }
  .js [data-reveal] > :nth-child(4) { transition-delay: 240ms; }
  .js [data-reveal] > :nth-child(5) { transition-delay: 320ms; }
  .js [data-reveal] > :nth-child(6) { transition-delay: 400ms; }
  .js [data-reveal] > :nth-child(7) { transition-delay: 480ms; }
  .js [data-reveal] > :nth-child(8) { transition-delay: 560ms; }
  .js [data-reveal] > :nth-child(9) { transition-delay: 640ms; }
  .js [data-reveal] > :nth-child(10) { transition-delay: 720ms; }
  .js h2[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
  .js h2[data-reveal].is-in { opacity: 1; transform: none; }
  .booking[open] { animation: sheet-in 380ms var(--ease-out); }
  .booking[open]::backdrop { animation: fade-in 300ms ease; }
  .step:not([hidden]) { animation: step-in 320ms var(--ease-out); }
}
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes sheet-in { from { transform: translateY(24px); opacity: 0; } }
@media (min-width: 768px) { @keyframes sheet-in { from { transform: translateX(32px); opacity: 0; } } }
@keyframes step-in { from { opacity: 0; transform: translateX(12px); } }
