/* Three Chairs, barbers. Direction: the split stage (frost and slate, Gambarino and General Sans). */

@font-face { font-family: "Gambarino"; src: url("fonts/gambarino-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("fonts/general-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("fonts/general-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --bg: #f7f9fa;
  --paper: #ffffff;
  --surface: #e6ecef;
  --surface-2: #d9e2e6;
  --ink: #1f3038;
  --muted: #56656c;
  --accent: #0d7480;
  --accent-strong: #095c66;
  --accent-ink: #ffffff;
  --steel: #d0dbe0;
  --steel-2: #bccad1;
  --slate: #1f3038;
  --on-slate: #f2f5f7;
  --on-slate-soft: #b9c6cc;

  --font-display: "Gambarino", "Times New Roman", Georgia, serif;
  --font-text: "General Sans", "Helvetica Neue", Arial, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(4rem, 1.5rem + 8vw, 9.5rem);

  --margin: clamp(1rem, 0.6rem + 1.1vw, 1.5rem);
  --gutter: 1rem;
  --pad: clamp(1.5rem, 4vw, 3.5rem);
  --section: clamp(6rem, 4rem + 8vw, 11rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.5; font-kerning: normal; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, figure, ul, ol, table { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; background: var(--surface); }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 1.5rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; hyphens: none; }
p { max-width: 62ch; text-wrap: pretty; }
b, strong { font-weight: 500; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: var(--margin); top: -4rem; z-index: 10; background: var(--ink); color: var(--paper); padding: 0.75rem 1rem; text-decoration: none; }
.skip:focus { top: var(--margin); }
.only-narrow { display: none; }

.head { font-family: var(--font-display); font-size: var(--step-head); line-height: 0.95; letter-spacing: -0.02em; }

/* ---------- controls ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.75rem;
  background: var(--accent); color: var(--accent-ink); font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
.button--paper { background: var(--paper); color: var(--ink); }
.text-link { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; font-weight: 500; transition: color var(--t-hover) ease, text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent-strong); }
  .button--paper:hover { background: var(--ink); color: var(--paper); }
  .field--slate .button--paper:hover, .gift .button--paper:hover { background: var(--accent); color: var(--accent-ink); }
  .text-link:hover { color: var(--accent); }
}

/* ---------- the stripe: the pole outside the door ---------- */
.stripe { height: 3.5rem; overflow: clip; background: var(--paper); flex: none; }
.stripe svg { width: calc(100% + 56px); max-width: none; height: 100%; margin-left: -56px; }
.stripe--thin { height: 1.25rem; margin-top: var(--section); }
@media (prefers-reduced-motion: no-preference) {
  .stripe.is-turning svg { animation: pole 2.6s linear infinite; }
  .stripe.is-paused svg { animation-play-state: paused; }
}
@keyframes pole { to { transform: translateX(56px); } }

/* ---------- the split ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); padding: var(--margin) var(--margin) 0; }
.split__col { min-width: 0; }
.split__stage { position: sticky; top: var(--margin); height: calc(100svh - 2 * var(--margin)); overflow: clip; background: var(--surface); align-self: start; }
.stage__fig { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1600ms ease, visibility 0s linear 1600ms; }
.stage__fig.is-on { opacity: 1; visibility: visible; transition: opacity 1600ms ease, visibility 0s; }
.stage__fig img { width: 100%; height: 100%; object-fit: cover; }
.stage__fig:nth-child(1) img { object-position: 22% 70%; }
.stage__fig:nth-child(2) img { object-position: 30% 50%; }
.stage__fig:nth-child(3) img { object-position: 58% 50%; }
.stage__caption, .letter__picture figcaption {
  z-index: 1;
  position: absolute; left: 0; bottom: 0; max-width: calc(100% - 2rem); padding: 0.6rem 0.9rem;
  background: var(--ink); color: var(--on-slate); font-size: var(--step-small); line-height: 1.35;
}

/* ---------- hero: the printed card ---------- */
.hero { min-height: calc(100svh - 2 * var(--margin)); background: var(--surface); display: flex; flex-direction: column; }
.hero__body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 3rem var(--pad) 2.5rem; }
.wordmark { font-family: var(--font-display); font-size: var(--step-lead); line-height: 1; letter-spacing: -0.01em; margin-bottom: 1.5rem; }
.hero__title { font-family: var(--font-display); font-size: var(--step-head); line-height: 0.98; letter-spacing: -0.02em; }
.hero__lede { max-width: 38ch; margin-top: 1.75rem; }
.hero .button { margin-top: 2rem; }
.now { margin-top: 2.5rem; width: min(100%, 27rem); }
.now__status { font-size: var(--step-small); color: var(--muted); margin: 0 auto 0.6rem; }
.now__list li + li { margin-top: 4px; }
.now__list a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.9rem; padding: 0.55rem 1rem; background: var(--surface-2); text-decoration: none; text-align: left; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.now__who { font-size: var(--step-small); }
.now__when { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .now__list a:hover { background: var(--ink); color: var(--paper); } }
.now__list a:active { background: var(--ink); color: var(--paper); }
.hero__nav { display: flex; justify-content: center; gap: 1.75rem; padding: 0 var(--pad) 1.75rem; font-size: var(--step-small); }
.hero__nav a { text-decoration: none; padding: 0.5rem 0; }
@media (hover: hover) and (pointer: fine) { .hero__nav a:hover { text-decoration: underline; text-underline-offset: 0.25em; } }

/* ---------- the barbers: a letter, then who sits where ---------- */
.letter { padding: 10rem var(--pad) 0; }
.letter__text { margin-top: 2.5rem; }
.letter__text p { max-width: 46ch; }
.letter__text p + p { margin-top: 1.1em; }
.letter__sign { margin-top: 2rem !important; display: flex; flex-direction: column; }
.letter__name { font-family: var(--font-display); font-size: var(--step-lead); }
.letter__role { color: var(--muted); font-size: var(--step-small); }
.roster { padding: 7.5rem var(--pad) 0; }
.roster__item { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: 1.5rem; align-items: start; }
.roster__item + .roster__item { margin-top: 3.5rem; }
.roster__name { font-family: var(--font-display); font-size: var(--step-head); line-height: 0.9; letter-spacing: -0.02em; grid-row: span 3; }
.roster__item p { grid-column: 2; }
.roster__chair { font-weight: 500; }
.roster__item p + p { margin-top: 0.4rem; }
.roster__item .text-link { grid-column: 2; justify-self: start; margin-top: 0.75rem; display: inline-block; padding: 0.4rem 0; }

/* ---------- prices: two fields ---------- */
.prices { display: grid; grid-template-columns: 5fr 7fr; margin-top: var(--section); }
.field { min-height: 90svh; padding: clamp(2.5rem, 5vw, 4.5rem) calc(var(--margin) + var(--pad)); display: flex; flex-direction: column; }
.field--slate { background: var(--slate); color: var(--on-slate); }
.field--steel { background: var(--steel); color: var(--ink); }
.field__name { font-family: var(--font-display); font-size: var(--step-head); line-height: 0.95; letter-spacing: -0.02em; }
.field__line { font-size: var(--step-lead); line-height: 1.3; max-width: 30ch; margin-top: 1rem; }
.menu { margin-top: 3rem; display: grid; row-gap: 1.4rem; }
.menu--two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; }
.menu__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; text-decoration: none; color: inherit; }
.menu__name, .menu__price { font-weight: 500; }
.menu__price { font-variant-numeric: tabular-nums; }
.menu__note { grid-column: 1 / -1; font-size: var(--step-small); line-height: 1.4; margin-top: 0.15rem; color: var(--muted); }
.field--slate .menu__note { color: var(--on-slate-soft); }
.field--steel .menu__note, .field--steel .field__big span:last-child { color: #3f4f57; }
a.menu__row .menu__name { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { a.menu__row:hover .menu__name { text-decoration-color: currentColor; } }
.menu__group { margin-top: 2.75rem; font-size: var(--step-body); font-weight: 500; }
.menu--extras { margin-top: 1rem; }
.menu--after { margin-top: 1rem; }
.field__foot { margin-top: auto; padding-top: 3.5rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.field__big { display: flex; align-items: flex-end; gap: 1rem; }
.field__big .big { font-family: var(--font-display); font-size: var(--step-display); line-height: 0.78; letter-spacing: -0.03em; font-variant-numeric: lining-nums; }
.field__big span:last-child { font-size: var(--step-small); max-width: 12ch; line-height: 1.35; padding-bottom: 0.3rem; }

/* ---------- booking ---------- */
.split--book { margin-top: var(--section); }
.book { padding: 2rem var(--pad) 0; }
.book__intro { margin-top: 1.5rem; max-width: 46ch; }
.q { border: 0; margin: 2.75rem 0 0; padding: 0; min-width: 0; }
.q__title { padding: 0; font-size: var(--step-lead); line-height: 1.2; margin-bottom: 0.9rem; }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 1.1rem; top: 50%; width: 0.75rem; height: 0.5rem; margin-top: -0.2rem; background: var(--ink); clip-path: polygon(0 0, 100% 0, 50% 100%); pointer-events: none; }
.select select { appearance: none; -webkit-appearance: none; width: 100%; min-height: 3.5rem; padding: 0 3rem 0 1rem; background: var(--surface); border: 0; border-radius: 0; font-size: max(1rem, var(--step-body)); font-weight: 500; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { position: relative; display: block; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip > span { display: flex; align-items: center; min-height: 2.9rem; padding: 0.5rem 1rem; background: var(--surface); font-size: var(--step-small); cursor: pointer; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.chip input:checked + span { background: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip:active > span { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .chip:hover input:not(:checked) + span { background: var(--surface-2); } }
.chips--barbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; }
.chip--tall > span { flex-direction: column; align-items: flex-start; justify-content: center; min-height: 4rem; font-size: var(--step-body); line-height: 1.25; }
.chip--tall b { font-weight: 500; }
.chip--tall small { font-size: var(--step-small); opacity: 0.85; }

.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day { min-height: 4.25rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.1rem; background: var(--surface); font-variant-numeric: tabular-nums; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.day__wd { font-size: var(--step-small); }
.day__n { font-weight: 500; line-height: 1.1; }
.day__free { font-size: var(--step-small); color: var(--muted); }
.day[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.day[aria-pressed="true"] .day__free { color: var(--on-slate-soft); }
.day:disabled { background: transparent; color: var(--muted); cursor: default; }
.day:not(:disabled):active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .day:not(:disabled):not([aria-pressed="true"]):hover { background: var(--surface-2); } }

.times__empty { color: var(--muted); background: var(--surface); padding: 1rem; max-width: none; }
.times__label { font-size: var(--step-small); color: var(--muted); margin: 1rem 0 0.4rem; }
.times__label:first-child { margin-top: 0; }
.slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.slot { min-height: 3rem; background: var(--surface); font-weight: 500; font-variant-numeric: tabular-nums; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.slot[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.slot:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .slot:not([aria-pressed="true"]):hover { background: var(--surface-2); } }

.fields { display: grid; }
.field-label { display: block; margin: 1rem 0 0.35rem; font-size: var(--step-small); }
.field-label:first-child { margin-top: 0; }
.opt { color: var(--muted); }
.input { width: 100%; min-height: 3.25rem; padding: 0.75rem 1rem; background: var(--surface); border: 0; border-radius: 0; font-size: max(1rem, var(--step-body)); }
textarea.input { resize: vertical; min-height: 6rem; }
.input:focus-visible, .select select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.booking__error { margin-top: 2rem; padding: 0.9rem 1rem; background: var(--ink); color: var(--paper); max-width: none; }
.booking .button--wide { margin-top: 2rem; }
.booking__alt { margin-top: 1rem; color: var(--muted); font-size: var(--step-small); }
.booking__alt a { color: var(--ink); }
.booked { margin-top: 2.5rem; padding: 2rem; background: var(--surface); }
.booked__title { font-family: var(--font-display); font-size: var(--step-lead); margin-bottom: 1rem; }
.booked p + p { margin-top: 0.8rem; }
.booked .text-link { margin-top: 1.25rem; }

/* the appointment card */
.stage--card { background: var(--slate); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.75rem; padding: 2rem; }
.stage__note { width: min(30rem, 100%); color: var(--on-slate-soft); font-size: var(--step-small); }
.appt { width: min(30rem, 100%); background: var(--paper); color: var(--ink); }
.appt .stripe { height: 2.5rem; }
.appt__body { padding: 1.75rem 1.75rem 1.5rem; }
.appt__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.appt__name { font-family: var(--font-display); font-size: var(--step-lead); line-height: 1; }
.appt__addr { font-size: var(--step-small); color: var(--muted); text-align: right; }
.appt__title { margin-top: 1.75rem; font-size: var(--step-small); color: var(--muted); }
.appt__rows { margin: 0.6rem 0 0; display: grid; gap: 4px; }
.appt__row { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 0.75rem; align-items: baseline; padding: 0.6rem 0.75rem; background: var(--bg); }
.appt__row dt { font-size: var(--step-small); color: var(--muted); }
.appt__row dd { margin: 0; font-weight: 500; }
.appt__row dd.is-empty { font-weight: 400; color: var(--muted); }
.appt__row.is-new dd { animation: ink-in 520ms var(--ease-out); }
.appt__state { margin-top: 1rem; font-size: var(--step-small); color: var(--muted); }
.appt__state.is-ready { color: var(--accent); font-weight: 500; }
@keyframes ink-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- pictures: the drag row ---------- */
.pictures { margin-top: calc(var(--section) - 1.5rem); padding-top: 1.5rem; }
.pictures__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding-inline: var(--margin); margin-bottom: 2rem; }
.pictures__count { color: var(--muted); }
.row { display: flex; gap: 12px; overflow-x: auto; padding-inline: var(--margin); scroll-padding-inline: var(--margin); scroll-snap-type: x proximity; scrollbar-width: none; cursor: grab; }
.row::-webkit-scrollbar { display: none; }
.row.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.row.is-dragging * { pointer-events: none; }
.mod { flex: none; height: 68svh; margin: 0; scroll-snap-align: start; }
.mod--tall { aspect-ratio: 3 / 4.4; }
.mod--wide { aspect-ratio: 16 / 11; }
.mod--pair { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 2 / 3.05; }
.mod figure, figure.mod { display: flex; flex-direction: column; min-height: 0; margin: 0; }
.mod img, .mod video { flex: 1; min-height: 0; width: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; background: var(--surface); }
.mod video { object-position: 38% 50%; }
.mod img[src*="razor"] { object-position: 52% 50%; }
.mod img.on-white { object-fit: contain; background: var(--surface); padding: 6%; }
.mod figure:has(.on-white) , figure.mod:has(.on-white) { background: var(--surface); }
.mod figcaption { flex: none; padding: 0.55rem 0 0; font-size: var(--step-small); line-height: 1.3; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--bg); }

/* ---------- questions ---------- */
.faq { margin-top: calc(var(--section) - 1.5rem); padding: 1.5rem var(--margin) 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.faq__title { grid-column: 1 / 5; font-family: var(--font-display); font-size: var(--step-head); line-height: 0.95; letter-spacing: -0.02em; align-self: start; }
.faq__text { grid-column: 5 / 13; columns: 2; column-gap: 3.5rem; }
.faq__text p { break-inside: avoid; margin-bottom: 1.4rem; max-width: 40ch; }

/* ---------- gift cards ---------- */
.gift { margin-top: var(--section); background: var(--steel); min-height: 90svh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: 4rem var(--margin) 0; overflow: clip; }
.gift__chair { grid-column: 1 / 7; align-self: end; display: flex; flex-direction: column; }
.gift__chair img { width: min(100%, 44rem); background: var(--steel); margin-inline: auto; }
.gift__chair figcaption { font-size: var(--step-small); color: var(--muted); padding: 0.75rem 0 1.25rem; }
.gift__text { grid-column: 8 / 13; align-self: end; padding-bottom: clamp(3rem, 14svh, 9rem); }
.gift__title { font-family: var(--font-display); font-size: var(--step-head); line-height: 0.95; letter-spacing: -0.02em; }
.gift__text p { margin-top: 1.5rem; max-width: 40ch; }
.gift__text .button { margin-top: 2rem; }

/* ---------- visit ---------- */
.visit { padding: var(--section) var(--margin) 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.visit__title { grid-column: 1 / -1; }
.visit__text { grid-column: 1 / 7; margin-top: 2.5rem; }
.visit__title { font-family: var(--font-display); font-size: var(--step-display); line-height: 0.88; letter-spacing: -0.035em; white-space: nowrap; }
.visit__line { font-size: var(--step-lead); line-height: 1.35; max-width: 32ch; }
.visit__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; margin-top: 3.5rem; }
.visit__h { font-size: var(--step-body); font-weight: 500; margin-bottom: 0.75rem; }
.hours { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; font-weight: 400; padding: 0.4rem 0.6rem; }
.hours th { padding-left: 0; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 500; }
.hours tr.is-today { background: var(--surface); }
.hours tr.is-today th { padding-left: 0.6rem; }
.visit__photo { width: 10rem; aspect-ratio: 1; object-fit: cover; object-position: 62% 50%; margin-bottom: 1.5rem; }
.visit__contact p + p { margin-top: 0.4rem; }
.visit__contact .text-link { display: inline-block; padding: 0.3rem 0; }
.visit__note { color: var(--muted); font-size: var(--step-small); margin-top: 0.9rem !important; }
.visit__map { grid-column: 7 / 13; position: relative; margin: 2.5rem 0 0; align-self: start; }
.visit__map svg { width: 100%; height: auto; }
.m-block { fill: var(--steel); }
.m-house { fill: var(--steel-2); }
.m-shop { fill: var(--ink); }
.m-library { fill: #a9b9c1; }
.m-street { fill: var(--bg); }
.m-zebra { fill: var(--steel-2); }
.m-stall { fill: var(--paper); }
.m-tree { fill: #a9b9c1; }
.m-bus { fill: var(--ink); }
.m-pin { fill: var(--accent); }
.m-pin-dot { fill: var(--paper); }
.map-label { position: absolute; transform: translate(-50%, -50%); font-size: var(--step-small); line-height: 1.2; white-space: nowrap; pointer-events: none; }
.map-label--shop { background: var(--ink); color: var(--paper); padding: 0.3rem 0.55rem; font-weight: 500; }
.map-label--street { color: var(--muted); }
.map-label--v { writing-mode: vertical-rl; }

/* ---------- footer ---------- */
.foot { padding: 1.5rem var(--margin) 2rem; }
.foot__line { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 1.5rem; font-size: var(--step-small); }
.foot__line p { color: var(--muted); }
.foot__nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.foot__nav a { text-decoration: none; padding: 0.3rem 0; }
@media (hover: hover) and (pointer: fine) { .foot__nav a:hover { text-decoration: underline; text-underline-offset: 0.25em; } }
.foot__right { text-align: right; }
.credits { margin-top: 2.5rem; font-size: var(--step-small); }
.credits p { max-width: 70ch; }
.credits ul { margin-top: 0.9rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 0.45rem 1.5rem; }
.credits li { max-width: 46ch; }
.credits a { text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; }
.made { margin-top: 1.25rem; font-size: var(--step-small); }

/* ---------- motion ---------- */
.lines .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.lines [data-line] { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .js .lines [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-expo) forwards; animation-delay: calc(var(--i, 0) * 100ms + 140ms); }
  .js [data-load] { opacity: 0; transform: translateY(14px); animation: rise 600ms var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
  .js .split--intro .stage__fig:first-child { clip-path: inset(0 0 100% 0); animation: open 1100ms var(--ease-in-out) 120ms forwards; }
  .stage__fig img { animation: drift 24s ease-in-out 1.6s infinite alternate; }
  .js .split--intro .stage__fig:first-child img { animation: settle 1400ms var(--ease-expo) 100ms both, drift 24s ease-in-out 1.6s infinite alternate; }
  .js [data-reveal], .js [data-reveal-group] > * { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo); transition-delay: calc(var(--i, 0) * 70ms); }
  .js [data-reveal].is-in, .js [data-reveal-group].is-in > * { opacity: 1; transform: none; }
  .js .mod { opacity: 0; transform: translateX(40px); transition: opacity 700ms var(--ease-out), transform 1000ms var(--ease-expo); transition-delay: calc(var(--i, 0) * 80ms); }
  .js .row.is-in .mod { opacity: 1; transform: none; }
  .js .gift__chair { transform: translateY(6%); transition: transform 1400ms var(--ease-soft); }
  .js .gift.is-in .gift__chair { transform: none; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 900px) {
  .js [data-reveal], .js [data-reveal-group] > *, .js .mod { opacity: 1; }
}
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes open { to { clip-path: inset(0); } }
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06) translateX(-1.5%); } }
@media (prefers-reduced-motion: reduce) {
  .stage__fig { transition-duration: 400ms; }
  .appt__row.is-new dd { animation: none; }
}

/* ---------- phone and narrow tablet: a composition of its own ---------- */
@media (max-width: 900px) {
  .only-narrow { display: block; }
  .split { display: flex; flex-direction: column; }
  .split--intro .split__stage { order: -1; position: relative; top: 0; height: 42svh; min-height: 17rem; align-self: stretch; }
  .split--intro .stage__fig:not(:first-child) { display: none; }
  .hero { min-height: 0; margin-top: -1.5rem; position: relative; z-index: 1; }
  .split--intro .stage__caption { bottom: 1.5rem; }
  .stripe { height: 2.5rem; }
  .hero__body { padding: 2rem 1.25rem 1.75rem; }
  .wordmark { margin-bottom: 1rem; }
  .hero__lede { margin-top: 1.25rem; }
  .hero .button { margin-top: 1.5rem; width: 100%; }
  .now { margin-top: 2rem; }
  .hero__nav { padding-bottom: 1.25rem; }
  .letter { padding: 5.5rem 0 0; }
  .letter__picture { position: relative; margin-top: 2rem; }
  .letter__picture img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 30% 50%; }
  .roster { padding: 6.5rem 0 0; }
  .roster__item + .roster__item { margin-top: 5.5rem; }
  .roster__item { grid-template-columns: 1fr; }
  .roster__name { grid-row: auto; margin-bottom: 0.75rem; }
  .roster__item p, .roster__item .text-link { grid-column: 1; }
  .prices { grid-template-columns: 1fr; }
  .field { min-height: 70svh; padding: 3rem calc(var(--margin) + 0.25rem); }
  .field--steel { order: -1; }
  .menu--two { grid-template-columns: 1fr; }
  .field__foot { flex-direction: column; align-items: stretch; padding-top: 7rem; }
  .field__foot .button { width: 100%; }
  .split--book .split__stage { display: none; }
  .book { padding: 0; }
  .appt--inline { margin-top: 2.75rem; width: 100%; border: 6px solid var(--slate); }
  .chips--barbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .slots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .booking .button--wide { width: 100%; }
  .mod { height: 62svh; }
  .mod--tall { width: 72vw; aspect-ratio: auto; }
  .mod--pair { width: 64vw; aspect-ratio: auto; }
  .mod--wide { width: 86vw; height: 42svh; aspect-ratio: auto; align-self: center; }
  .faq { display: block; }
  .faq__text { columns: 1; margin-top: 2rem; }
  .faq__text p { max-width: 62ch; }
  .gift { display: flex; flex-direction: column; padding-top: 3rem; min-height: 0; }
  .gift__text { order: -1; padding-bottom: 2.5rem; }
  .gift__text .button { width: 100%; }
  .visit { display: block; }
  .visit__title { white-space: normal; }
  .visit__grid { grid-template-columns: 1fr; gap: 2.5rem; margin-top: 2.5rem; }
  .visit__map { margin-top: 3rem; }
  .foot__line { grid-template-columns: 1fr; gap: 0.5rem; }
  .foot__right { text-align: left; }
}
@media (min-width: 600px) and (max-width: 900px) {
  .menu { max-width: 38rem; }
  .menu--two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; max-width: none; }
  .letter__picture img { aspect-ratio: 4 / 3; }
  .field { min-height: 0; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .menu--two { grid-template-columns: 1fr; }
  .chips--barbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .faq__title { grid-column: 1 / -1; margin-bottom: 2.5rem; }
  .faq__text { grid-column: 1 / -1; }
  .visit__grid { grid-template-columns: 1fr; }
}
