/* ═══════════════════════════════════════════════════════════════════════════
   CUTZ & ROSES BARBER COMPANY — the heavy identity (docs/BRAND.md is the rulebook; admin/brand.php renders it live)
   Type: the live site's free Google fonts: Pirata One for titles (caps), Syncopate for labels,
   buttons and numerals (caps, tracked), IBM Plex Mono for body and data. The logo's own textura is artwork only.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Tokens (docs/THEME.md for colour, docs/BRAND.md for type/space/motion) ──
   Dark is the default and the brand. html[data-theme="light"] swaps the SAME token names for the ivory/ink set,
   so every component is themed by its tokens alone: never write a literal colour in a component rule.
   Ground: --black (page) · --ink / --ink-2 (panels) · Text: --fg (strongest) · --bone · --bone-2 · --smoke · --smoke-2
   Gold: --gold = area fills (buttons, ticket month, selected day: always bright, black text on it)
         --gold-t = gold TEXT and thin marks (eyebrows, dots, 1–3px edges, now line): bright on black, deep on ivory
         --gold-2 = highlights (prices, links, em) · --gold-3 = dim gold · --gold-dim = dimmer labels · --gold-line = hairline
   Lines: --line (hairline) · --line-2 · --line-3 (control boundaries)
   Danger (never red — Brandon, Oct 2026): --bad (text) --bad-2 (tags) --bad-line (outline) --bad-fill (destructive
         hover fill, black text on it) --bad-bg (tint) — ink-on-ground, carried by an outline + the alert icon, not a hue.
   RGB triplets for translucent surfaces/scrims: --bg-rgb (page) · --ink-rgb (panel) · --fg-rgb (strongest text) */
:root {
  color-scheme: dark;
  --black: #000;
  --ink: #060606;
  --ink-2: #0c0c0c;
  --bg-rgb: 0,0,0;
  --ink-rgb: 6,6,6;
  --fg: #fff;
  --fg-rgb: 255,255,255;
  --line: #1c1a16;
  --line-2: #2a2721;
  --line-3: #67614f; /* 3.2:1 on black, 3.1:1 on a panel — WCAG non-text minimum for control boundaries */
  --bone: #efe9dd;
  --bone-2: #cfc7b8;
  --smoke: #8d867a;   /* 5.8:1 on black */
  --smoke-2: #867f72; /* 5.1:1 on #060606 — small labels */
  --gold: #c9a44a;
  --gold-t: #c9a44a;
  --gold-2: #e6cf8f;
  --gold-3: #8a6d2a;
  --gold-dim: #a3833f;
  --gold-line: rgba(201,164,74,.45);
  --gold-glow: rgba(201,164,74,.22);
  --gold-frame: rgba(201,164,74,.18); /* the inset frame inside bordered cards */
  --cal-dim: #4f4a41; /* past / closed calendar days */
  --open: #4fc27a;    /* the "open now" dot */
  --bad: var(--fg); --bad-2: var(--bone-2); --bad-line: var(--bone-2); --bad-fill: var(--bone); --bad-bg: rgba(var(--fg-rgb),.04);
  --backdrop: rgba(0,0,0,.82); /* behind the join drawer / admin sheets */
  /* legacy aliases used by admin + cancel pages */
  --rose: var(--gold); --rose-2: var(--gold-3); --petal: var(--gold-2);

  /* Type — the live site's three free faces (Brandon, Oct 11: "what we had before was pretty good"). Pirata One also
     measured as the closest free match to the logo's blackletter (letter-by-letter comparison, docs/BRAND.md §2):
     --font-display  Pirata One (one weight, 400 — never ask for bold, the browser would fake it). Two registers, both
                     from Title Case source strings:
                       CAPS (.display, the default): section / page titles, tier names, menu items, the quote band,
                         the address — text-transform: uppercase, tracking .035em (.03em at card size), as live.
                       Title Case (.display.tc, and the card-level title classes): booking-step titles, barber names,
                         FAQ questions, the service on a ticket — mixed case, tracking .02em, as live.
                     Also the big ticket numerals (day, time) and the day-strip numbers. Never below 20px; never the
                     shop name (that is always the logo image); never body, buttons, labels, prices or data.
     --font-label    Syncopate (400; 700 only for the ticket month strip and email buttons): nav, eyebrows, meta lines,
                     buttons, tags, prices, table heads. Caps, tracked. It is very wide (≈ .83em a capital), so labels
                     stay 10–12px on the public site (10px is the floor there, CUSTOMER-SPEC A19) and 9px only in dense
                     staff UI; full-width buttons pad 16px a side so a 320px phone never clips a label.
     --font-body     IBM Plex Mono: paragraphs, forms, names in data, small print. Tabular numerals in tables.
     Fallbacks: Georgia for the display face (no system blackletter — Old English Text MT is unreadable in caps) and
     Arial for labels (closest light, wide-tracked caps). Production loads all three from Google Fonts (font_head()). */
  --font-display: "CR Amp", "Pirata One", Georgia, "Times New Roman", serif;
  --font-label: "Syncopate", "Michroma", Arial, sans-serif;
  --font-body: "IBM Plex Mono", Menlo, Consolas, monospace;
  --font-mono: var(--font-body);
  --fw-display: 400;                   /* Pirata One has one weight */
  --fw-title: 400;
  /* Display scale (Pirata One is narrow — ≈ .42em a capital — so it runs larger than a book face). phone → desktop. */
  --fs-xl: clamp(42px, 4.6vw + 24px, 84px);   /* the quote band — 42 → 84 */
  --fs-h1: clamp(34px, 1.2vw + 30px, 44px);   /* page titles on inner pages (in a card) — 34 → 44 */
  --fs-h2: clamp(38px, 4vw + 22px, 72px);     /* section titles — 38 → 72 */
  --fs-h3: clamp(28px, 1.2vw + 23px, 40px);   /* tier names, the address, Reserved — 28 → 40 (caps) */
  --fs-h4: clamp(24px, 1vw + 20px, 32px);     /* item titles in caps: menu names — 24 → 32 (service rows: 22 / 24) */
  --fs-tc: clamp(24px, .5vw + 22px, 30px);    /* Title Case titles: booking steps, barber names, FAQ — 24 → 30 */
  --fs-tc-sm: 22px;                           /* Title Case at row size: the service on a ticket, a visit */
  /* Label scale (Syncopate) */
  --fs-label: 10px;                    /* eyebrows, field labels, meta, chips — the public floor */
  --fs-label-sm: 9px;                  /* dense staff UI only: tags, table heads, tab bar, grid */
  --fs-label-lg: 11px;                 /* desktop nav, the hero tag */
  --fs-button: 11px;
  --fs-price: 15px;                    /* prices in lists */
  --fs-body: 14px;
  --fs-small: 13px;
  --fs-tk-day: 56px;                   /* ticket: big day (Pirata One, as on the live site) — 48 on phones */
  --fs-tk-time: 40px;                  /* ticket: big time (Pirata One) — 34 on phones */
  --tr-display: .035em;                /* CAPS titles, as on the live site */
  --tr-h3: .03em;                      /* CAPS at card size */
  --tr-tc: .02em;                      /* Title Case titles */
  --tr-label: .22em;
  --tr-label-sm: .16em;
  --tr-button: .2em;
  --tr-price: .06em;
  --lh-display: 1.02;                  /* CAPS: no descenders to clear */
  --lh-tc: 1.12;                       /* Title Case: room for the descenders */
  /* Space: a 4/8 grid. Phone gutter is one 20px line (--gutter, set below 760px). */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;
  --gutter: 28px;
  --w-page: 1280px; --w-text: 62ch; --w-simple: 600px;
  /* Motion: 150–250ms, opacity/transform only; prefers-reduced-motion zeroes it all (bottom of file). */
  --dur-1: 150ms; --dur-2: 200ms; --dur-3: 250ms;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-std: ease;
  /* Icons: one inline glyph, drawn as a mask so it takes currentColor. The alert mark = a square with "!" in it. */
  --icon-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 1.5h13v13h-13z' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3Cpath d='M7.3 4h1.4l-.2 5.2h-1z M7.2 10.6h1.6v1.6H7.2z' fill='%23000'/%3E%3C/svg%3E");
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 1.5h13v13h-13z' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3Cpath d='M4.6 8.2l2.3 2.3 4.6-4.9' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E");
  --nav-h: 76px;
}
/* Pirata One's "&" reads as a "G" in caps ("SERVICES G PRICES"), so titles borrow ONE glyph — the ampersand — from a
   bold system serif (unicode-range U+0026; local files only, no request). Where none is installed the title simply
   keeps Pirata One's own "&". */
@font-face { font-family: "CR Amp"; font-weight: 400; font-style: normal; unicode-range: U+0026;
  src: local("Georgia Bold"), local("Georgia-Bold"), local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT"), local("Noto Serif Bold"), local("NotoSerif-Bold"), local("Liberation Serif Bold"), local("LiberationSerif-Bold"), local("DejaVu Serif Bold"), local("DejaVuSerif-Bold"); }
/* Light: ivory ground, ink text, the same gold for fills, a deeper gold for anything thin or typed.

   Ratios (contrast table in docs/BRAND.md): body 16:1 · secondary 9.9:1 · muted 6.0:1 · gold text 5.0:1 · borders 3.5:1. */
html[data-theme="light"] {
  color-scheme: light;
  --black: #f3eee4;
  --ink: #ebe5d7;
  --ink-2: #e4ddcd;
  --bg-rgb: 243,238,228;
  --ink-rgb: 235,229,215;
  --fg: #0d0b08;
  --fg-rgb: 13,11,8;
  --line: #ddd6c5;
  --line-2: #cbc3ae;
  --line-3: #857d6c; /* 3.5:1 on ivory */
  --bone: #15130f;
  --bone-2: #3d3930;
  --smoke: #5f594d;   /* 6.0:1 on ivory */
  --smoke-2: #5a5449; /* 6.5:1 */
  --gold-t: #7d6222;  /* 5.0:1 on ivory, 4.6:1 on a panel */
  --gold-2: #7d6222;
  --gold-3: #9a7c35;  /* 3.4:1 — borders only */
  --gold-dim: #7d6222;
  --gold-line: rgba(125,98,34,.55);
  --gold-glow: rgba(201,164,74,.28);
  --gold-frame: rgba(125,98,34,.22);
  --cal-dim: #a39b8a;
  --open: #2f8f55;
  --bad: var(--fg); --bad-2: var(--bone-2); --bad-line: var(--bone-2); --bad-fill: var(--bone); --bad-bg: rgba(var(--fg-rgb),.035);
  --backdrop: rgba(20,17,12,.45);
}
/* Every logo file is pure white on transparent; in light mode it is inverted to pure black (no second asset set). */
html[data-theme="light"] .logo-inv { filter: invert(1); }
/* The switch itself cross-fades colours for a beat (set by the inline script; reduced-motion users get none). */
html.theme-switching, html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after { transition: background-color .18s, color .18s, border-color .18s, fill .18s, filter .18s; }
/* Theme toggle: a half-disc glyph + the mode you'd switch TO, in label caps. 44px target everywhere. */
.theme-toggle { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 6px; background: none; border: 0; color: var(--bone-2); font-family: var(--font-label); font-size: var(--fs-label); letter-spacing: var(--tr-label-sm); text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.theme-toggle:hover { color: var(--gold-2); }
.theme-toggle .tt-glyph { flex: none; }
.theme-toggle .tt-to-dark { display: none; }
html[data-theme="light"] .theme-toggle .tt-to-light { display: none; }
html[data-theme="light"] .theme-toggle .tt-to-dark { display: inline; }
.nav-links .theme-toggle { padding: 0 2px; }
@media (max-width: 860px) { .nav-links .theme-toggle { font-size: 12px; } }
.footer-cols { align-items: center; }
.footer-cols .theme-toggle { font-size: var(--fs-label); letter-spacing: .2em; color: var(--smoke); padding: 0 4px; min-height: 44px; }
.footer-cols .theme-toggle:hover { color: var(--gold-2); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--black); color: var(--bone); font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.75; font-weight: 400; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--gold); color: #000; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
[hidden] { display: none !important; }
table, .tnum { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 300; background: var(--gold); color: #000; font-family: var(--font-label); font-size: var(--fs-label); letter-spacing: var(--tr-label-sm); text-transform: uppercase; padding: 12px 16px; transition: top var(--dur-2); }
.skip:focus { top: 16px; }

/* grain */
body::after { content: ''; position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ── Type ──────────────────────────────────────────────────────────────────
   Roles (docs/BRAND.md §2): .display = Pirata One CAPS (tracking .035em, as on the live site); .display.tc = Pirata One
   in Title Case (card / step level, .02em) · .label / .eyebrow / .num = Syncopate caps, tracked · body, names in data =
   Plex Mono. Titles wrap on whole words (text-wrap: balance), never hyphenate, never go below 20px. One heavy element
   per view: the lockup OR a big title. */
.display { font-family: var(--font-display); font-weight: var(--fw-title); font-style: normal; line-height: var(--lh-display); letter-spacing: var(--tr-display); text-transform: uppercase; color: var(--fg); margin: 0; text-wrap: balance; overflow-wrap: break-word; hyphens: none; font-size: max(20px, 1em); font-synthesis: none; }
h1.display, .display-xl { font-weight: var(--fw-display); }
.display em { font-style: normal; font-weight: inherit; color: var(--gold-2); }
.display-xl { font-size: var(--fs-xl); line-height: 1; }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); letter-spacing: var(--tr-h3); }
.h4 { font-size: var(--fs-h4); letter-spacing: var(--tr-h3); line-height: 1.08; }
/* Title Case register: the live site's card-level titles (choices, barber names, FAQ, the service on a ticket). */
.display.tc, .tc-title { text-transform: none; letter-spacing: var(--tr-tc); line-height: var(--lh-tc); }
.h-tc { font-size: var(--fs-tc); }
.tc-title { font-family: var(--font-display); font-weight: var(--fw-title); font-style: normal; color: var(--fg); font-synthesis: none; }
.label { font-family: var(--font-label); font-size: var(--fs-label); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--smoke); }
.label.sm { font-size: var(--fs-label-sm); letter-spacing: var(--tr-label-sm); }
.eyebrow { font-family: var(--font-label); font-size: var(--fs-label); line-height: 1.6; letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--gold-t); margin: 0 0 var(--sp-5); display: flex; align-items: center; gap: var(--sp-4); }
.eyebrow::before { content: ''; width: 36px; height: 1px; background: var(--gold-line); flex: none; }
.eyebrow.center { justify-content: center; }
.eyebrow.center::before, .eyebrow.center::after { content: ''; width: 36px; height: 1px; background: var(--gold-line); flex: none; }
.lede { font-family: var(--font-body); font-size: 14.5px; line-height: 1.6; color: var(--bone-2); max-width: 54ch; font-weight: 400; }
.muted { color: var(--smoke); }
.small { font-size: var(--fs-small); }
.center { text-align: center; }
.num { font-family: var(--font-label); font-variant-numeric: tabular-nums; letter-spacing: var(--tr-price); text-transform: uppercase; } /* prices and small numerals: Syncopate */

/* ── The stem divider (the logo's BARBER | COMPANY stem) — meta lines. PHP: stem_sep(['45 min', 'with Danny']).
   A 1px × .9em rule in currentColor at 60%; set --stem-track to the line's letter-spacing so both gaps match. */
.stem-line { display: inline; }
.stem-sep { display: inline-block; width: 1px; height: .9em; background: currentColor; opacity: .6; vertical-align: -.08em; margin: 0 var(--stem-gap, 1em) 0 calc(var(--stem-gap, 1em) - var(--stem-track, 0em)); }

/* ── The thorn rule — a hairline with one thorn at its centre, between MAJOR sections only. PHP: thorn_rule(). */
.thorn-rule { display: flex; align-items: flex-end; justify-content: center; color: var(--gold-line); width: min(420px, 70%); margin: 0 auto; }
.thorn-rule::before, .thorn-rule::after { content: ''; flex: 1; height: 1px; background: currentColor; }
.thorn-rule svg { display: block; flex: none; width: 28px; height: 14px; }
.thorn-band { padding: 0; }
.thorn-band + .section { padding-top: clamp(72px, 9vw, 128px); }
.thorn-rule.on-photo { color: rgba(230,207,143,.55); } /* on photo */
.band .thorn-rule { width: min(240px, 60%); }
/* the old star ornament, kept only so a stray .orn renders as a plain hairline */
.orn { display: flex; align-items: center; justify-content: center; color: var(--gold-line); font-size: 0; margin: 0 auto; width: min(280px, 60%); }
.orn::before { content: ''; flex: 1; height: 1px; background: currentColor; }

/* ── Layout ────────────────────────────────────────────────────────────── */
.wrap { width: min(var(--w-page), calc(100% - 2 * var(--gutter))); margin: 0 auto; }
section { position: relative; }
.section { padding: clamp(80px, 10vw, 144px) 0; }
.section-head { display: grid; gap: var(--sp-4); margin-bottom: clamp(40px, 5vw, 72px); }
.section-head > .eyebrow { margin: 0; } /* the grid gap is the rhythm: eyebrow · 16 · title · 16 · lede */
.section-head > .lede { margin: var(--sp-2) 0 0; }
.section-head .display { font-size: var(--fs-h2); }
.section-head.center { justify-items: center; text-align: center; }
.section-head.compact { margin-bottom: clamp(28px, 3.5vw, 48px); }
.section-head.compact .display { font-size: var(--fs-h2); }
@media (max-width: 860px) { :root { --gutter: 20px; } }

/* ── Buttons: primary (.btn-light, gold fill) · secondary (.btn, gold hairline) · ghost (.btn-ghost) ·
   destructive (.btn-danger, ink outline + alert icon, never red) · disabled ([disabled] / [aria-disabled]) ·
   loading (.is-loading + aria-busy). Square, hairline, no shadow; the hover fill slides up in 250ms. */
/* Sizes: .btn 48px · .btn.small 44px · .btn-lg 56px (the hero, Confirm). Syncopate 11 / 10 / 12px; the label's trailing
   tracking is pulled back (margin-right) so a tracked label sits optically centred. */
.btn { --btn-tr: var(--tr-button); display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-3); min-height: 48px; font-family: var(--font-label); font-size: var(--fs-button); line-height: 1.25; letter-spacing: var(--btn-tr); text-transform: uppercase; padding: 14px 28px; border: 1px solid var(--gold-line); color: var(--gold-2); background: transparent; position: relative; overflow: hidden; transition: color var(--dur-3) var(--ease-std), border-color var(--dur-3) var(--ease-std); white-space: nowrap; text-align: center; -webkit-tap-highlight-color: transparent; }
.btn::before { content: ''; position: absolute; inset: 0; background: var(--gold); transform: translateY(101%); transition: transform var(--dur-3) var(--ease); z-index: 0; }
.btn > * { position: relative; z-index: 1; }
.btn > span:last-child { margin-right: calc(-1 * var(--btn-tr)); }
.btn-light { background: var(--gold); color: #000; border-color: var(--gold); }
.btn-light::before { background: var(--fg); }
.btn-ghost { border-color: var(--line-3); color: var(--bone-2); }
.btn-ghost::before { background: var(--bone); }
.btn-danger, .btn.danger { border-color: var(--bad-line); color: var(--bad); }
.btn-danger::after, .btn.danger::after { content: ''; position: relative; z-index: 1; order: -1; width: 13px; height: 13px; flex: none; background: currentColor; -webkit-mask: var(--icon-alert) center / contain no-repeat; mask: var(--icon-alert) center / contain no-repeat; }
.btn-danger::before, .btn.danger::before { background: var(--bad-fill); }
/* Hover fills only where a pointer can hover: on touch a tapped button would keep the fill (sticky :hover) after the tap,
   e.g. Confirm stays inverted while the form shows its errors. Touch gets the fill while pressed (:active). */
@media (hover: hover) {
  .btn:hover { color: #000; border-color: var(--gold); }
  .btn:hover::before { transform: translateY(0); }
  .btn-light:hover { color: var(--black); border-color: var(--fg); }
  .btn-ghost:hover { color: var(--black); border-color: var(--bone); }
  .btn-danger:hover, .btn.danger:hover { color: var(--black); border-color: var(--bad-fill); }
}
.btn:active { color: #000; border-color: var(--gold); }
.btn:active::before { transform: translateY(0); transition-duration: 0s; }
.btn-light:active { color: var(--black); border-color: var(--fg); }
.btn-ghost:active { color: var(--black); border-color: var(--bone); }
.btn-danger:active, .btn.danger:active { color: var(--black); border-color: var(--bad-fill); }
.btn.small { --btn-tr: .18em; min-height: 44px; padding: 12px 18px; font-size: 10px; }
.btn-lg { --btn-tr: .24em; min-height: 56px; padding: 18px 36px; font-size: 12px; }
.btn[disabled], .btn[aria-disabled="true"], .btn.is-disabled { opacity: .4; pointer-events: none; }
.btn.is-loading { pointer-events: none; color: transparent; }
.btn.is-loading::after { content: ''; position: absolute; left: 22%; right: 22%; top: 50%; height: 1px; background: currentColor; color: var(--gold-2); z-index: 1; animation: btnLoad 1s var(--ease-std) infinite alternate; transform-origin: left; -webkit-mask: none; mask: none; width: auto; order: 0; }
.btn-light.is-loading::after { color: #000; }
@keyframes btnLoad { from { transform: scaleX(.15); } to { transform: scaleX(1); } }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.btn-row.center { justify-content: center; }

/* ── Nav ─────────────────────────────────────────────────────────────────
   Monogram 44px tall (40px phone) — docs/BRAND.md placement map. On the home page it fades in once the hero lockup
   has scrolled away (.scrolled), so the flagship mark is never doubled above the fold. */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h); display: flex; align-items: center; border-bottom: 1px solid transparent; transition: border-color var(--dur-3); }
.nav::before { content: ''; position: absolute; inset: 0; background: rgba(var(--bg-rgb),.88); backdrop-filter: blur(16px); opacity: 0; transition: opacity var(--dur-3); z-index: -1; }
.nav.scrolled { border-color: var(--line); }
.nav.scrolled::before, .nav:has(.nav-links.open)::before { opacity: 1; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); position: relative; }
.nav-logo { display: flex; align-items: center; justify-content: center; flex: none; min-width: 44px; min-height: 44px; padding: 0; opacity: 0; transform: translateY(-4px); transition: opacity var(--dur-3) var(--ease-std), transform var(--dur-3) var(--ease); }
.nav-logo img { height: 44px; width: auto; }
@media (max-width: 860px) { .nav-logo img { height: 40px; } }
.nav.scrolled .nav-logo { opacity: 1; transform: none; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.1vw, 34px); }
.nav-links a { font-family: var(--font-label); font-size: var(--fs-label); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--bone-2); position: relative; padding: 14px 0; min-height: 44px; display: inline-flex; align-items: center; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: var(--tr-label); bottom: 8px; height: 1px; background: var(--gold-t); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-3) var(--ease); }
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links .btn { --btn-tr: var(--tr-label); min-height: 44px; padding: 12px 22px; font-size: var(--fs-label); }
.nav-links a.btn::after { display: none; }
.nav-links a.btn-light { color: #000; }
.nav-toggle { display: none; background: none; border: 0; color: var(--fg); padding: 9px 9px 10px; min-width: 44px; min-height: 44px; }
.nav-toggle span { display: block; width: 26px; height: 1px; background: var(--gold-2); margin: 6px 0; transition: transform var(--dur-3), opacity var(--dur-3); }
@media (max-width: 1060px) { .nav-links { gap: 16px; } .nav-links a { letter-spacing: .16em; } }
@media (max-width: 860px) {
  .nav-links { position: fixed; inset: var(--nav-h) 0 0 0; background: var(--black); flex-direction: column; justify-content: center; gap: 8px; transform: translateY(-110%); transition: transform var(--dur-3) var(--ease); }
  .nav-links.open { transform: none; }
  .nav-links:not(.open) { visibility: hidden; transition: transform var(--dur-3) var(--ease), visibility 0s var(--dur-3); }
  .nav-links a { font-size: 13px; letter-spacing: var(--tr-label); min-height: 48px; padding: 0 12px; }
  .nav-links a::after { left: 12px; right: calc(12px + var(--tr-label)); bottom: 10px; }
  .nav-links .btn { margin-top: 16px; min-width: 200px; }
  .nav-toggle { display: block; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ── Hero: the primary lockup, nothing else competes (logo · BARBERSHOP | BELLINGHAM, WA · one button · open line) ── */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--nav-h) + 16px) 0 72px; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; z-index: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 30%; filter: grayscale(.7) contrast(1.15) brightness(.6); transform: scale(1.04); animation: heroDrift 26s ease-in-out infinite alternate; }
@keyframes heroDrift { to { transform: scale(1.1) translateX(-1.5%); } }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--bg-rgb),.35) 0%, rgba(var(--bg-rgb),.45) 40%, rgba(var(--bg-rgb),.92) 82%, var(--black) 100%), radial-gradient(ellipse at 50% 40%, rgba(var(--bg-rgb),.15), rgba(var(--bg-rgb),.7) 75%); }
.hero-glow { position: absolute; left: 50%; bottom: -25vh; width: 110vw; height: 80vh; transform: translateX(-50%); background: radial-gradient(ellipse at center, var(--gold-glow) 0%, rgba(201,164,74,.06) 40%, transparent 70%); filter: blur(30px); pointer-events: none; z-index: 1; animation: breathe 10s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .6 } 50% { opacity: 1 } }
.hero-inner { position: relative; z-index: 2; width: min(1000px, calc(100% - 2 * var(--gutter))); display: grid; justify-items: center; }
/* The lockup fills min(560px, 100vw - 40px) — 350 × 205px on a 390 phone (the 20px gutter each side), 560 × 328 on desktop (≥150px tall everywhere). */
.hero-logo { width: min(560px, calc(100vw - 40px)); margin: 0; font-size: inherit; line-height: 0; }
.hero-logo img { width: 100%; height: auto; margin: 0 auto; }
/* tracked wide, like BARBER | COMPANY in the lockup above it */
.hero-tag { margin: clamp(24px, 3vh, 32px) 0 0; font-family: var(--font-label); font-size: clamp(10px, .9vw, 12px); line-height: 1.6; letter-spacing: .32em; --stem-track: .32em; --stem-gap: 1.2em; text-transform: uppercase; color: var(--bone-2); }
.hero-tag .stem-line > span { white-space: nowrap; }
@media (max-width: 420px) { .hero-tag { letter-spacing: .2em; --stem-track: .2em; --stem-gap: .9em; } }
.hero-status { margin: var(--sp-4) 0 0; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; font-size: var(--fs-small); color: var(--smoke); }
.hero-status > i { width: 7px; height: 7px; border-radius: 50%; background: var(--smoke-2); } /* the status dot only: a descendant selector also turned the stem divider (i.stem-sep) into a dot */
.hero-status.is-open > i { background: var(--open); }
.hero-cta { margin-top: clamp(24px, 3.4vh, 34px); display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }

.reveal-in { opacity: 0; transform: translateY(8px); animation: rise var(--dur-3) var(--ease) forwards; }
.reveal-in.d1 { animation-delay: 0s } .reveal-in.d2 { animation-delay: .08s } .reveal-in.d3 { animation-delay: .16s } .reveal-in.d4 { animation-delay: .24s }
@keyframes rise { to { opacity: 1; transform: none; } }


/* ── Reservations (docs/ux/CUSTOMER-SPEC.md): SERVICE → TIME → DETAILS → RESERVED ─────────────────────────
   One card (.booking-shell). A sticky summary bar (.bk-sum) under the nav on TIME and DETAILS; a sticky Confirm bar
   (.bk-action) on DETAILS — fixed to the bottom on phones. Rows, not cards, for services; a 14-day strip + 4-column slots
   for times; the same strip + slots on the manage page (cancel.php). Selected = gold fill + black text (+ a deep-gold
   edge in light mode). Labels Syncopate 9–11px, targets ≥ 44px, errors ink (never red). */
.booking { background: var(--black); }
.booking .section-head { margin-bottom: 40px; }
.booking-shell { position: relative; border: 1px solid var(--gold-line); background: var(--ink); padding: 0; }
.booking-shell::before { content: ''; position: absolute; inset: 10px; border: 1px solid var(--gold-frame); pointer-events: none; z-index: 0; }
.booking-shell > * { position: relative; z-index: 1; }
.book-main { padding: 36px 48px 44px; min-width: 0; }
.bk-step { animation: bkfade var(--dur-2) var(--ease-std); } /* a step enters by opacity only: nothing moves under a finger */
@keyframes bkfade { from { opacity: 0; } }
@keyframes panel { from { opacity: 0; transform: translateY(8px); } }
.display.bk-title { font-size: var(--fs-tc); text-transform: none; letter-spacing: var(--tr-tc); line-height: var(--lh-tc); margin: 0 0 var(--sp-5); } /* step titles: Pirata One in Title Case, as the live site's step titles */
.bk-label { font-family: var(--font-label); font-size: var(--fs-label); line-height: 1.6; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-t); margin: 0 0 var(--sp-2); }
.bk-text { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 2px; background: none; border: 0; font-family: var(--font-label); font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); cursor: pointer; text-decoration: none; transition: color var(--dur-1) var(--ease-std); white-space: nowrap; }
.bk-text:hover { color: var(--fg); }
.bk-text.muted { color: var(--smoke); }
.bk-text.muted:hover { color: var(--fg); }
.bk-notice { margin-bottom: var(--sp-5); }

/* Summary bar: SKIN FADE | ANY BARBER | TUE, OCT 13 10:00 AM — each segment goes back to its step */
.bk-sum { position: sticky; top: var(--nav-h); z-index: 20; display: flex; align-items: center; min-height: 44px; padding: 0 48px; background: rgba(var(--ink-rgb), .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); color: var(--smoke); --stem-gap: .75em; white-space: nowrap; overflow: hidden; }
.bk-sum[hidden] { display: none !important; }
.bk-sum-seg { min-height: 44px; padding: 0 2px; background: none; border: 0; font-family: var(--font-body); font-size: 12.5px; color: var(--bone); cursor: pointer; text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: 4px; min-width: 44px; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; white-space: nowrap; }
.bk-sum-seg:hover { color: var(--gold-2); text-decoration-color: currentColor; }
.bk-sum-seg[data-sum="time"] { flex: none; }
.bk-sum .stem-sep[hidden] { display: none; }

/* ── 1 · SERVICE: rows, the whole row is the button ───────────────────── */
.bk-svc { display: grid; gap: var(--sp-5); }
.bk-cat { break-inside: avoid; }
.bk-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; row-gap: 4px; align-items: baseline; width: 100%; min-height: 72px; padding: 14px 0; margin: 0; background: none; border: 0; border-top: 1px solid var(--line-2); color: var(--fg); text-align: left; cursor: pointer; transition: background-color var(--dur-1) var(--ease-std), padding var(--dur-3) var(--ease); }
.bk-cat .bk-row:last-child { border-bottom: 1px solid var(--line-2); }
.bk-row:hover { background: rgba(var(--fg-rgb), .025); }
.bk-row:active { background: rgba(var(--fg-rgb), .05); }
/* The service is the option's title: Pirata One caps, as on the menu (the live site's choice titles). */
.bk-row-name { font-family: var(--font-display); font-weight: var(--fw-title); font-size: 22px; line-height: 1.05; letter-spacing: var(--tr-h3); text-transform: uppercase; font-synthesis: none; transition: color var(--dur-1); overflow-wrap: break-word; }
.bk-row:hover .bk-row-name { color: var(--gold-2); }
.bk-row-price { font-family: var(--font-label); font-size: var(--fs-price); letter-spacing: var(--tr-price); color: var(--gold-2); white-space: nowrap; text-align: right; }
.bk-row-price.is-covered { font-size: var(--fs-label); letter-spacing: .18em; color: var(--gold-t); }
.bk-row-meta { grid-column: 1 / -1; font-size: 12.5px; line-height: 1.6; color: var(--smoke); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; --stem-gap: .6em; }
.bk-row-dur { font-family: var(--font-label); font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; color: var(--smoke-2); }
.bk-row-cov { grid-column: 2; grid-row: 2; justify-self: end; font-size: 12px; color: var(--smoke); white-space: nowrap; }
.bk-row[aria-current="true"] { box-shadow: inset 3px 0 0 var(--gold-t); padding-left: 14px; }

/* Book again (recognised visitors) */
.bk-again { display: grid; gap: var(--sp-2); margin: 0 0 var(--sp-6); padding: 20px 20px 8px; border: 1px solid var(--gold-line); background: rgba(201,164,74,.05); }
.bk-again .bk-label { margin: 0; }
.display.bk-again-title { font-size: var(--fs-tc); text-transform: none; letter-spacing: var(--tr-tc); line-height: var(--lh-tc); margin: 0; }
.bk-again-meta { margin: 0; font-family: var(--font-label); font-size: var(--fs-label); line-height: 1.6; letter-spacing: .18em; text-transform: uppercase; color: var(--bone-2); --stem-track: .18em; --stem-gap: .8em; }
.bk-again-meta b { font-weight: 400; color: var(--gold-2); }
.bk-again-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 6px 0 0; }
.bk-again-msg { margin: 6px 0 0; font-size: 13px; color: var(--bone-2); }
.bk-again-actions { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 2px 0 0; }
/* An opening chip: day label · time · (any barber) who */
.bk-open { display: grid; place-content: center; justify-items: center; gap: 4px; min-height: 68px; padding: 8px 4px; background: var(--black); border: 1px solid var(--line-3); color: var(--fg); cursor: pointer; text-align: center; transition: border-color var(--dur-1), background-color var(--dur-1), color var(--dur-1); min-width: 0; }
.bk-open small { font-family: var(--font-label); font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--smoke); line-height: 1.3; white-space: nowrap; }
.bk-open small.who { font-family: var(--font-body); font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--gold-t); white-space: normal; } /* who: a name (data) — Plex Mono, so "Either chair" fits a 320px phone */
.bk-open b { font-family: var(--font-body); font-weight: 500; font-size: 15px; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bk-open:hover { border-color: var(--gold-t); }
.bk-open[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #000; }
.bk-open[aria-pressed="true"] small { color: #3a2d0c; }

/* ── 2 · TIME ─────────────────────────────────────────────────────────── */
.bk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--sp-5); }
.bk-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; background: var(--black); border: 1px solid var(--line-3); color: var(--fg); font-family: var(--font-label); font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase; cursor: pointer; white-space: nowrap; transition: border-color var(--dur-1), background-color var(--dur-1), color var(--dur-1); }
.bk-chip:hover { border-color: var(--gold-t); }
.bk-chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #000; }
.bk-cof, .bk-note { position: relative; margin: -6px 0 var(--sp-5); padding-left: 20px; font-size: 12.5px; line-height: 1.55; color: var(--smoke); }
.bk-cof::before, .bk-note::before { content: ''; position: absolute; left: 0; top: .78em; width: 10px; height: 1px; background: var(--gold-t); }
.bk-note { color: var(--bone-2); margin-top: 0; }
.bk-away { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 var(--sp-5); padding: 12px 16px; border: 1px solid var(--line-2); font-size: 13px; color: var(--bone-2); }
.bk-away p { margin: 0; }
.bk-empty { display: grid; justify-items: start; gap: 14px; padding: 4px 0; }
.bk-empty-lead { margin: 0; font-size: 14px; color: var(--fg); }
.bk-soon { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 var(--sp-5); }
.bk-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 2px; }
.bk-label-row .bk-label { margin: 0; }
.bk-strip { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin; padding: 2px 0 8px; }
.bk-day { flex: 0 0 64px; height: 76px; display: grid; place-content: center; justify-items: center; gap: 2px; padding: 0; scroll-snap-align: start; background: var(--black); border: 1px solid var(--line-3); color: var(--fg); cursor: pointer; transition: border-color var(--dur-1), background-color var(--dur-1), color var(--dur-1); }
.bk-day small { font-family: var(--font-label); font-size: var(--fs-label); letter-spacing: .12em; text-transform: uppercase; color: var(--smoke); line-height: 1.3; padding-left: .12em; }
/* the day number is a small ticket numeral: Pirata One, as on the ticket */
.bk-day b { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1; letter-spacing: .02em; font-variant-numeric: tabular-nums; font-synthesis: none; }
.bk-day:hover { border-color: var(--gold-t); }
.bk-day:focus-visible { outline-offset: -5px; } /* inside the cell: the strip scrolls, so an outer ring would be clipped */
.bk-day[aria-pressed="true"]:focus-visible, .bk-slot[aria-pressed="true"]:focus-visible, .bk-chip[aria-pressed="true"]:focus-visible, .bk-open[aria-pressed="true"]:focus-visible { outline-color: #000; outline-offset: -5px; } /* on the gold fill: black, like its text */
.bk-day:active, .bk-slot:active, .bk-chip:active, .bk-open:active { border-color: var(--gold-t); }

.bk-day[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #000; }
.bk-day[aria-pressed="true"] small { color: #3a2d0c; }
.bk-day.is-full { border-style: dashed; border-color: var(--line-2); color: var(--smoke-2); cursor: default; }
.bk-day.is-full s { text-decoration-thickness: 1px; }
.bk-day.is-full small:last-child { color: var(--bone-2); }
.bk-month { margin: var(--sp-3) 0 var(--sp-1); max-width: 380px; }
/* Phones: the month runs to the shell's edges with 2px gaps, so seven days stay ≥ 44px wide even at 320px. */
@media (max-width: 420px) { .bk-month .cal-grid { margin: 0 calc(-1 * var(--gutter)); gap: 2px; } .bk-month { max-width: none; } }

.cal-day.full { color: var(--smoke-2); border-style: dashed; border-color: var(--line-2); cursor: default; }
.cal-day.full s { text-decoration-thickness: 1px; }
.bk-dayhead { margin: var(--sp-5) 0 var(--sp-3); font-family: var(--font-label); font-weight: 400; font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase; color: var(--fg); line-height: 1.6; --stem-track: .18em; --stem-gap: .8em; min-height: 1.6em; }
.bk-rel { color: var(--smoke); }
.bk-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bk-period { grid-column: 1 / -1; margin: var(--sp-3) 0 0; font-family: var(--font-label); font-size: var(--fs-label); line-height: 1.6; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dim); }
.bk-period:first-child { margin-top: 0; }
.bk-slot { min-height: 48px; padding: 0 1px; background: var(--black); border: 1px solid var(--line-3); color: var(--fg); font-family: var(--font-body); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; cursor: pointer; transition: border-color var(--dur-1), background-color var(--dur-1), color var(--dur-1); }
.bk-slot:hover { border-color: var(--gold-t); }
.bk-slot[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #000; }
.bk-slot.is-current { display: grid; place-content: center; border-style: dashed; color: var(--smoke); cursor: default; line-height: 1.2; }
.bk-slot.is-current small { font-family: var(--font-label); font-size: var(--fs-label); letter-spacing: .06em; text-transform: uppercase; }
.bk-empty-day { grid-column: 1 / -1; margin: 0; font-size: 13.5px; color: var(--smoke); }
.bk-neterr { grid-column: 1 / -1; display: grid; justify-items: start; gap: 12px; font-size: 13.5px; color: var(--fg); }
.bk-neterr p { margin: 0; }
.bk-tz { margin: 12px 0 0; font-size: 12px; color: var(--smoke); }
@media (max-width: 359px) { .bk-slot { font-size: 12px; } .bk-slot.is-current { white-space: normal; } .bk-slot.is-current small { letter-spacing: 0; } } /* "12:45 PM" fits a 64px column at 320px; "Your time" wraps under it */
.bk-chip-skel { height: 68px; }
.bk-day-skel { flex: 0 0 64px; height: 76px; }

.bk-slot-skel { height: 48px; }

/* ── 3 · DETAILS ──────────────────────────────────────────────────────── */
.bk-details { display: grid; gap: var(--sp-5); }
.bk-review .when-card { width: 100%; }
.bk-where { margin: 10px 0 0; font-size: 12.5px; color: var(--bone-2); --stem-gap: .7em; }
.bk-where a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 12px 0; margin: -12px 0; }
.bk-arrival { margin: 6px 0 0; font-size: 12.5px; color: var(--smoke); }
.bk-as { padding: 14px 16px 2px; border: 1px solid var(--line-2); background: var(--black); }
.bk-as .bk-label { color: var(--smoke); margin: 0 0 4px; }
.bk-as-who { margin: 0; font-size: 14px; line-height: 1.6; color: var(--fg); overflow-wrap: anywhere; --stem-gap: .6em; }
.bk-as-actions { display: flex; gap: 0 22px; margin: 2px 0 0; }
.bk-fields { display: grid; gap: 14px; }
.bk-fields .field input { padding: 14px 14px; min-height: 52px; }
.field .help { font-size: 12px; color: var(--smoke); margin-top: -2px; }
.bk-addnote { margin-top: 8px; }
#bkNoteField { margin-top: 8px; }
.bk-error { position: relative; margin: 0; font-size: 14px; line-height: 1.55; color: var(--bad); }
.bk-error.show { margin-top: 18px; padding: 14px 16px 14px 42px; border: 1px solid var(--bad-line); background: var(--bad-bg); }
.bk-error.show::before { content: ''; position: absolute; left: 16px; top: 17px; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--icon-alert) center / contain no-repeat; mask: var(--icon-alert) center / contain no-repeat; }
.bk-error p { margin: 0; }
.bk-error .contact-block { margin-top: 12px; }
.bk-error:focus { outline: none; }
.bk-taken { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--bad-line); background: var(--bad-bg); }
.bk-taken > p { margin: 0; font-size: 14px; color: var(--bad); }
.bk-taken .bk-again-chips { margin: 0; }
/* The Confirm bar: sticky to the bottom of the step on wide screens, fixed above the keyboard / home bar on phones */
.bk-action { position: sticky; bottom: 0; z-index: 30; margin: 28px -48px -44px; padding: 14px 48px; background: rgba(var(--ink-rgb), .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--gold-line); }
.bk-action-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.bk-policy { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--bone-2); max-width: 56ch; }
.bk-policy:empty { display: none; }
.btn .stem-line { --stem-gap: 1.2em; } /* tracked button caps need a wider gap around the stem */
.bk-times.is-error { display: block; }
.bk-times.is-error .bk-col-a, .bk-times.is-error .bk-dayhead, .bk-times.is-error .bk-tz { display: none; }
.bk-title[tabindex="-1"]:focus { outline: none; } /* focused by script so screen readers hear the step; not a control */
/* Anything scrolled into view inside a step (an error, the 409 openings, a focused field) clears the nav + sticky summary. */
.booking-shell .bk-step * { scroll-margin-top: calc(var(--nav-h) + 56px); }
.bk-action .btn { flex: none; }
.bk-action .btn[aria-busy="true"] { opacity: 1; }

/* ── RESERVED ─────────────────────────────────────────────────────────── */
.bk-done { display: grid; justify-items: center; text-align: center; padding: 4px 0 6px; }
.bk-done .check-mark { width: 48px; height: 48px; margin: 0 auto 14px; display: grid; place-items: center; border: 1px solid var(--gold-t); color: var(--gold-2); animation: pop var(--dur-3) var(--ease); }
.bk-done .eyebrow { margin-bottom: 8px; }
.bk-done-title { font-size: var(--fs-h3); margin: 0 0 var(--sp-4); }
.bk-done-title:focus { outline: none; }
.bk-done-ticket { display: flex; justify-content: center; width: 100%; }
.bk-done-ticket .when-card { min-width: min(100%, 340px); }
.bk-done-pay { margin: 14px 0 0; font-size: 13px; color: var(--bone-2); --stem-gap: .7em; }
.bk-done-pay b { font-weight: 500; color: var(--fg); }
.bk-done-policy { margin: 2px 0 0; font-size: 13px; color: var(--bone-2); }
.bk-done .bk-where { margin-top: 2px; }
.bk-done-cal { display: grid; justify-items: center; gap: 0; margin: 16px 0 0; }
.bk-acct { width: min(100%, 420px); margin: 16px auto 0; padding-top: 16px; border-top: 1px solid var(--line); }
.bk-acct > div { display: grid; justify-items: center; gap: 8px; }
.bk-acct-lead { margin: 0; font-size: 14px; color: var(--fg); }
.bk-acct-title { margin: 0; font-family: var(--font-display); font-weight: var(--fw-title); font-size: var(--fs-tc-sm); letter-spacing: var(--tr-tc); line-height: var(--lh-tc); color: var(--fg); font-synthesis: none; } /* Title Case register */
.bk-fine { margin: 0; font-size: 12px; line-height: 1.6; color: var(--smoke); max-width: 40ch; }
.bk-acct-err { margin: 4px 0 0; text-align: left; }
.bk-expect { width: min(100%, 460px); margin: 18px auto 0; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 4px; font-size: 13px; line-height: 1.6; color: var(--bone-2); }
.bk-expect p { margin: 0; }
.bk-expect a, .faq-list p a, .cb-reply a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.bk-done-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 28px; margin: 8px 0 0; }

/* ── Contact block: wherever the copy says call / text / DM (spec §3.9) ── */
.contact-block { display: grid; gap: 12px; }
.cb-title { margin: 0; font-family: var(--font-label); font-size: var(--fs-label); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-t); }
.cb-lead { margin: 0; font-size: 14px; line-height: 1.6; color: var(--fg); }
.cb-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cb-actions .btn { flex: 1 1 auto; min-width: 140px; padding: 14px 18px; } /* basis = content: "Call (360) 555-0100" wraps Text to its own row on a phone instead of clipping */
.cb-reply { margin: 0; font-size: 12.5px; color: var(--smoke); }
.bk-closed .book-main { padding-top: 40px; padding-bottom: 40px; }
.bk-closed .contact-block { max-width: 460px; margin: 0 auto; text-align: center; justify-items: center; }
.bk-closed .cb-actions { justify-content: center; width: 100%; }

/* ── Manage page (cancel.php): Move it with the same strip + slots; cancel confirmed in the page ── */
.manage { max-width: 760px; }
.page-manage .card { overflow: visible; } /* the sticky Move button needs the viewport as its scroll box */
.m-ticket { margin: 6px 0 18px; }
.m-ticket .when-card { width: 100%; max-width: 460px; }
.m-text, .m-policy { margin: 0 0 6px; font-size: 14px; line-height: 1.65; color: var(--bone-2); }
.m-text b, .m-policy b { font-weight: 500; color: var(--fg); }
.m-policy { position: relative; padding-left: 20px; margin: 4px 0 8px; }
.m-policy::before { content: ''; position: absolute; left: 0; top: .82em; width: 10px; height: 1px; background: var(--gold-t); }
.m-was { margin: -6px 0 10px; font-size: 13px; color: var(--smoke); --stem-gap: .6em; }
.m-ok { margin: 0 0 8px; padding: 12px 14px; border: 1px solid var(--gold-line); color: var(--gold-2); font-size: 14px; }
.m-actions { margin-top: 22px; }
.m-inline { display: contents; }
.m-contact { margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); }
.m-move-box { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.m-move-box .display { margin: 0 0 14px; }
.bk-manage .bk-dayhead { margin-top: 16px; }
.m-move { position: sticky; bottom: 0; z-index: 5; margin: 16px calc(-1 * var(--card-pad, 36px)) 0; padding: 12px var(--card-pad, 36px) calc(12px + env(safe-area-inset-bottom)); background: rgba(var(--ink-rgb), .96); border-top: 1px solid var(--gold-line); }
.m-move .btn { width: 100%; --stem-track: var(--tr-label); }
.m-details { margin: 26px 0 0; }
.m-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin-top: 26px; }
.m-cancel { color: var(--smoke); }
.m-cancel:hover { color: var(--fg); }
.m-confirm { display: grid; gap: 12px; margin: 4px 0 6px; padding: 22px 22px 16px; border: 1px solid var(--bad-line); background: var(--bad-bg); }
.m-confirm .eyebrow { margin: 0; }
.m-confirm h2 { margin: 0; font-family: var(--font-body); font-weight: 500; font-size: 18px; line-height: 1.4; letter-spacing: 0; color: var(--fg); } /* a question (often with an amount): Plex Mono, never the title face */
.m-confirm p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--bone-2); --stem-gap: .6em; }
.m-confirm p b { font-weight: 500; color: var(--fg); }
.m-confirm .btn-row { margin-top: 4px; }
.page-simple .m-confirm .btn-row .btn-danger { flex: 0 1 auto; }
.detail-list dd a { color: var(--gold-2); display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; } /* a 44px target laid out as a line */
@media (max-width: 760px) { .m-move { --card-pad: var(--gutter); } .m-confirm { padding: 18px 16px 12px; } }

/* Studio: Reserve with <Barber> */
.barber-cta { display: inline-flex; align-items: center; gap: 8px; justify-self: start; min-height: 44px; margin-top: 2px; font-family: var(--font-label); font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); }
.barber-cta:hover { color: var(--fg); }
.barber-mini.has-photo .barber-cta { grid-column: 2; }

/* Wide screens: two columns per step (no nested scroll anywhere) */
@media (min-width: 980px) {
  .bk-svc { display: block; columns: 2; column-gap: 56px; }
  .bk-row-name { font-size: 24px; }

  .bk-cat { margin-bottom: var(--sp-5); }
  .bk-times { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 48px; align-items: start; }
  .bk-col-b .bk-dayhead { margin-top: 0; }
  .bk-details { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 0 48px; align-items: start; }
  .bk-again { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); column-gap: 32px; }
  .bk-again > .bk-label, .bk-again-title, .bk-again-meta { grid-column: 1; }
  .bk-again > .bk-again-chips, .bk-again > .bk-again-msg { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin: 0; }
  .bk-again-actions { grid-column: 1 / -1; }
}

/* ── Shared form + calendar components (booking, join drawer, account, admin) ── */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cal-head .month { font-family: var(--font-display); font-style: normal; font-weight: 400; font-size: var(--fs-tc-sm); line-height: 1.1; color: var(--fg); letter-spacing: var(--tr-tc); font-synthesis: none; } /* "October 2026": a Title Case title, as the live calendar */
.cal-nav { background: none; border: 1px solid var(--line-3); color: var(--gold-2); width: 44px; height: 44px; display: grid; place-items: center; transition: border-color var(--dur-3), color var(--dur-3), background-color var(--dur-3); }
.cal-nav:hover { border-color: var(--gold-t); }
.cal-nav[disabled] { opacity: .25; pointer-events: none; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { font-family: var(--font-label); text-transform: uppercase; font-size: var(--fs-label); letter-spacing: .1em; padding-left: .1em; color: var(--smoke-2); text-align: center; padding-top: 8px; padding-bottom: 8px; }
.cal-day { aspect-ratio: 1; border: 1px solid var(--line-2); background: var(--black); color: var(--smoke-2); display: grid; place-items: center; font-family: var(--font-body); font-size: 12.9px; position: relative; transition: border-color var(--dur-3), color var(--dur-3), background-color var(--dur-3); }
.cal-day.pad { border-color: transparent; background: transparent; }
.cal-day.closed, .cal-day.past { border-color: transparent; background: transparent; color: var(--cal-dim); cursor: default; }
.cal-day.open { color: var(--fg); border-color: var(--line-2); cursor: pointer; }
.cal-day.open::after { content: ''; position: absolute; bottom: 8px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold-t); }
.cal-day.open:hover { border-color: var(--gold-line); }
.cal-day.selected, .cal-day.selected:hover { background: var(--gold); color: #000; border-color: var(--gold); }
.cal-day.selected::after { background: #000; }
.cal-day.today::before { content: ''; position: absolute; top: 6px; right: 6px; width: 4px; height: 4px; background: var(--smoke); border-radius: 50%; }
.cal-loading { opacity: .4; pointer-events: none; }
.dot-open { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-t); vertical-align: middle; }
.cal-foot { margin-top: 12px; }
.skel { position: relative; overflow: hidden; background: var(--ink-2); border: 1px solid var(--line); height: 44px; }
.skel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(var(--fg-rgb),.05), transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { from { transform: translateX(-100%) } to { transform: translateX(100%) } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; align-content: start; }
/* A checkbox label is a sentence, and so is the aside inside a label: body face, sentence case — never wide caps. */
.field label.check { font-family: var(--font-body); font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--bone-2); line-height: 1.5; }
.field label .muted, .field label small { font-family: var(--font-body); font-size: 12px; letter-spacing: 0; text-transform: none; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-label); font-size: var(--fs-label); line-height: 1.6; letter-spacing: .18em; text-transform: uppercase; color: var(--smoke); }
.field input, .field textarea, .field select { background: var(--black); border: 1px solid var(--line-3); border-radius: 0; color: var(--fg); padding: 14px 16px; min-height: 52px; font: inherit; font-size: 16px; line-height: 1.5; width: 100%; transition: border-color var(--dur-3); -webkit-appearance: none; appearance: none; }
.field input[type="checkbox"], .field input[type="radio"] { -webkit-appearance: auto; appearance: auto; } /* keep the native box: its checked state is the signal */
/* select: no native chrome, a gold chevron drawn by two gradients; --chev moves it (dense selects set 10px) */
.field select { --chev: 16px; padding-right: calc(var(--chev) + 24px); background-image: linear-gradient(45deg, transparent 50%, var(--gold-t) 50%), linear-gradient(-45deg, transparent 50%, var(--gold-t) 50%); background-position: right calc(var(--chev) + 5px) center, right var(--chev) center; background-size: 5px 5px; background-repeat: no-repeat; }

.field input::placeholder, .field textarea::placeholder { color: var(--smoke); opacity: 1; }
@media (hover: hover) { .field input:hover:not(:focus):not([disabled]), .field textarea:hover:not(:focus):not([disabled]), .field select:hover:not(:focus):not([disabled]) { border-color: var(--bone-2); } }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold-t); }
.field input[disabled], .field textarea[disabled], .field select[disabled] { opacity: .5; cursor: not-allowed; }
.field input:focus:not(:focus-visible), .field textarea:focus:not(:focus-visible), .field select:focus:not(:focus-visible) { outline: 0; }
.field.error input, .field.error textarea, .field.error select { border-color: var(--bad-line); border-left-width: 3px; }
.field.ok input { border-color: var(--gold-3); }
.field .err { position: relative; font-size: 12.5px; color: var(--bad); line-height: 1.5; }
.field .err:not(:empty) { padding-left: 21px; }
.field .err:not(:empty)::before { content: ''; position: absolute; left: 0; top: 3px; width: 13px; height: 13px; background: currentColor; -webkit-mask: var(--icon-alert) center / contain no-repeat; mask: var(--icon-alert) center / contain no-repeat; }
.field textarea { min-height: 96px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--smoke); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--gold-t); margin: 0; }
.note { font-size: 12.5px; color: var(--smoke); margin: 18px 0 0; }
.alert { border: 1px solid var(--gold-line); background: rgba(201,164,74,.08); color: var(--gold-2); padding: 14px 16px; font-size: 14px; margin-bottom: var(--sp-5); line-height: 1.6; }
.alert a { text-decoration: underline; }
.confirm { text-align: center; padding: 30px 0; }
.confirm .check-mark { width: 64px; height: 64px; border: 1px solid var(--gold-t); display: grid; place-items: center; margin: 0 auto 28px; color: var(--gold-2); animation: pop var(--dur-3) var(--ease); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.confirm .display { font-size: var(--fs-h1); }
.confirm-addr { font-size: 14px; color: var(--bone-2); margin: 6px 0 4px; }
.confirm-addr a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.confirm .btn-row { justify-content: center; margin-top: 30px; }

/* ── Photo band (quote) ────────────────────────────────────────────────── */
.band { position: relative; min-height: 78vh; display: grid; place-items: center; text-align: center; overflow: hidden; background: #000; /* on photo: the band stays a dark photo panel in both themes */ }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.2) brightness(.55); }
.band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--black) 0%, rgba(var(--bg-rgb),.2) 25%, rgba(var(--bg-rgb),.2) 75%, var(--black) 100%); }
.band .wrap { position: relative; z-index: 1; display: grid; justify-items: center; gap: 26px; padding: 120px 0; }
/* on photo */ .band blockquote { margin: 0; font-family: var(--font-display); font-style: normal; font-weight: var(--fw-display); font-size: var(--fs-xl); line-height: 1; letter-spacing: .03em; text-transform: uppercase; color: #fff; max-width: 24ch; text-wrap: balance; font-synthesis: none; } /* caps, as on the live site */
.band blockquote em { font-style: normal; color: var(--gold-2); }

/* ── Menu ──────────────────────────────────────────────────────────────── */
.menu-card { border: 1px solid var(--gold-line); padding: clamp(28px, 5vw, 72px) clamp(22px, 5vw, 80px); position: relative; background: var(--ink); }
.menu-card::before { content: ''; position: absolute; inset: 10px; border: 1px solid var(--gold-frame); pointer-events: none; }
.menu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(40px, 6vw, 96px); }
@media (max-width: 860px) { .menu-cols { grid-template-columns: 1fr; } }
.menu-cat { font-family: var(--font-label); font-size: var(--fs-label); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--gold-t); margin: 38px 0 14px; display: flex; align-items: center; gap: 14px; }
.menu-cat::after { content: ''; flex: 1; height: 1px; background: var(--gold-line); opacity: .6; }
.menu-cols > div > .menu-cat:first-child { margin-top: 0; }
.menu-item { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; align-items: baseline; padding: 20px 0; border-bottom: 1px dotted var(--line-2); position: relative; transition: padding var(--dur-3) var(--ease); }
.menu-item:last-child { border-bottom: 0; }
.menu-item:hover { padding-left: 10px; }
/* Menu items: Pirata One caps, as on the live site's menu; price in Syncopate. */
.menu-item .name { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h4); color: var(--fg); line-height: 1.05; letter-spacing: var(--tr-display); text-transform: uppercase; font-synthesis: none; transition: color var(--dur-1); }
.menu-item:hover .name { color: var(--gold-2); }
.menu-item .price { font-family: var(--font-label); text-transform: uppercase; font-size: var(--fs-price); letter-spacing: var(--tr-price); font-variant-numeric: tabular-nums; color: var(--gold-2); text-align: right; white-space: nowrap; }
.menu-item .dur { grid-column: 1; font-family: var(--font-label); font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; color: var(--smoke-2); margin-top: var(--sp-2); }
.menu-item .desc { grid-column: 1 / -1; margin: var(--sp-2) 0 0; color: var(--smoke); font-size: 13.5px; max-width: 52ch; line-height: 1.6; }
.menu-item .book { grid-column: 2; grid-row: 2; justify-self: end; font-family: var(--font-label); font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); opacity: 0; transform: translateX(6px); transition: opacity var(--dur-3), transform var(--dur-3) var(--ease); margin-top: var(--sp-2); white-space: nowrap; }
.menu-item:hover .book { opacity: 1; transform: none; }
@media (max-width: 640px) { .menu-item .book { opacity: 1; transform: none; } }

/* ── The Work ──────────────────────────────────────────────────────────── */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 120px; gap: 12px; }
.work-grid figure { margin: 0; position: relative; overflow: hidden; background: var(--ink); }
.work-grid figure::before { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(201,164,74,.28); z-index: 2; pointer-events: none; opacity: 0; transition: opacity var(--dur-3); }
.work-grid figure:hover::before { opacity: 1; }
/* on photo */ .work-grid figure::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.85)); pointer-events: none; }
.work-grid img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.2) brightness(.8); transition: filter var(--dur-3) var(--ease), transform var(--dur-3) var(--ease); }
.work-grid figure:hover img { filter: grayscale(0) contrast(1.05) brightness(.95); transform: scale(1.05); }
/* on photo */ .work-grid figcaption { position: absolute; left: 24px; right: 16px; bottom: 20px; z-index: 3; font-family: var(--font-display); font-style: normal; font-weight: 400; font-size: 28px; line-height: 1; letter-spacing: .03em; text-transform: uppercase; color: #fff; opacity: 0; transform: translateY(6px); transition: opacity var(--dur-3) var(--ease-std), transform var(--dur-3) var(--ease); font-synthesis: none; } /* caps, as on the live site */
.work-grid figcaption::before { content: ''; display: inline-block; width: 18px; height: 1px; background: var(--gold); margin-right: 12px; vertical-align: .3em; } /* on photo */
.work-grid figure:hover figcaption { opacity: 1; transform: none; }
.w-a { grid-column: span 5; grid-row: span 5; }
.w-b { grid-column: span 4; grid-row: span 3; }
.w-c { grid-column: span 3; grid-row: span 3; }
.w-d { grid-column: span 3; grid-row: span 2; }
.w-e { grid-column: span 4; grid-row: span 2; }
.w-f { grid-column: span 12; grid-row: span 3; }
@media (max-width: 860px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; gap: 8px; }
  .w-a, .w-b, .w-c, .w-d, .w-e, .w-f { grid-column: span 1; grid-row: span 1; }
  .w-a, .w-c { grid-row: span 2; }
  .w-f { grid-column: span 2; }
  .work-grid figcaption { opacity: 1; transform: none; font-size: 22px; left: 14px; right: 10px; bottom: 14px; }
  .work-grid figcaption::before { width: 12px; margin-right: 8px; }
}

/* ── Studio (split) ────────────────────────────────────────────────────── */
.studio { padding: 0; display: grid; grid-template-columns: 1fr 1fr; min-height: 90vh; }
.studio-photo { position: relative; overflow: hidden; min-height: 60vh; }
.studio-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(.75); }
.studio-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, var(--black)); }
.studio-text { padding: clamp(72px, 9vw, 140px) clamp(28px, 6vw, 96px); display: grid; align-content: center; gap: 26px; }
.studio-text .display { font-size: var(--fs-h2); }
.studio-text p { margin: 0; color: var(--bone-2); font-size: 14px; line-height: 1.8; max-width: 50ch; }
.studio-text .lede { font-size: 15px; }
@media (max-width: 900px) { .studio { grid-template-columns: 1fr; } .studio-photo { min-height: 56vh; } .studio-photo::after { background: linear-gradient(180deg, transparent 60%, var(--black)); } }
.barber-strip { display: grid; gap: 14px; margin-top: 8px; }
.barber-mini { border-top: 1px solid var(--line); padding-top: 20px; display: grid; gap: 4px; }
/* The barber's name is the card's title (BRAND §2 exception): Pirata One in Title Case, as on the live site. */
.barber-mini .display { font-size: var(--fs-tc); text-transform: none; letter-spacing: var(--tr-tc); line-height: var(--lh-tc); }
.barber-mini .title { font-family: var(--font-label); font-size: var(--fs-label); line-height: 1.6; letter-spacing: .18em; --stem-track: .18em; --stem-gap: .8em; text-transform: uppercase; color: var(--gold-t); }
.barber-mini .bio { color: var(--smoke); font-size: 14px; margin-top: 4px; }
.barber-mini .ig { color: var(--gold-2); font-size: 13px; margin-top: 4px; }


/* ── Visit ─────────────────────────────────────────────────────────────── */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
@media (max-width: 900px) { .visit-grid { grid-template-columns: 1fr; gap: 40px; } }
/* The address is the Visit section's title: Pirata One caps, as on the live site. */
.address { font-family: var(--font-display); font-size: clamp(36px, 2.8vw + 25px, 60px); color: var(--fg); line-height: 1.02; margin: 0; font-weight: 400; text-transform: uppercase; letter-spacing: .03em; font-synthesis: none; }
.address small { display: block; font-family: var(--font-label); font-size: var(--fs-label); line-height: 1.6; letter-spacing: var(--tr-label); --stem-track: var(--tr-label); color: var(--gold-t); margin-top: var(--sp-5); text-transform: uppercase; }
.hours { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--line); }
.hours li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3); padding: 12px 0; min-height: 48px; border-bottom: 1px solid var(--line); font-size: 14px; }
.hours li span:first-child { font-family: var(--font-label); font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase; color: var(--bone-2); }
.hours li.closed span:last-child { color: var(--smoke-2); }
.hours li.today span:first-child { color: var(--fg); }
.hours li em { font-style: normal; color: var(--gold-t); margin-left: var(--sp-2); letter-spacing: .12em; font-size: var(--fs-label); }
.map { border: 1px solid var(--gold-line); aspect-ratio: 4 / 3.4; background: var(--ink); position: relative; overflow: hidden; padding: 10px; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(1.05); display: block; }
.map::after { content: ''; position: absolute; inset: 10px; pointer-events: none; border: 1px solid var(--gold-frame); }

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer { padding: 0 0 44px; text-align: center; }
.footer > .thorn-rule { margin-bottom: clamp(64px, 8vw, 96px); }
/* The horizontal wordmark as the sign-off: 64px tall desktop / 56px phone (BARBER COMPANY needs ≥ 56px; never below 48). */
.footer-logo { display: flex; justify-content: center; margin: 0 auto var(--sp-6); line-height: 0; }
.footer-logo img { height: 64px; width: auto; }
@media (max-width: 760px) { .footer-logo img { height: 56px; } }
.footer-cols { display: flex; justify-content: center; gap: 0 32px; flex-wrap: wrap; font-family: var(--font-label); font-size: var(--fs-label); letter-spacing: .2em; text-transform: uppercase; color: var(--smoke); }
.footer-cols a:hover { color: var(--gold-2); }
.footer-bottom { margin: var(--sp-7) auto 0; max-width: 1180px; font-family: var(--font-label); font-size: var(--fs-label); letter-spacing: .16em; --stem-track: .16em; text-transform: uppercase; color: var(--smoke-2); line-height: 2.4; }
.footer-bottom { --stem-gap: 1.2em; }
.footer-bottom .stem-line > span { white-space: nowrap; }
@media (max-width: 760px) { .footer-bottom .stem-sep { display: none; } .footer-bottom .stem-line > span { display: block; white-space: normal; } } /* phone: one item per line, no dangling stems */
.footer-bottom a { color: var(--smoke-2); display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; margin: -12px -4px; }

/* ── Sticky mobile bar ─────────────────────────────────────────────────── */
.sticky-book { display: none; }
@media (max-width: 860px) {
  .sticky-book { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(var(--bg-rgb),.92); backdrop-filter: blur(14px); border-top: 1px solid var(--gold-line); transform: translateY(110%); transition: transform var(--dur-3) var(--ease); }
  .sticky-book.show { transform: none; }
  .sticky-book .btn { --btn-tr: .18em; flex: none; min-height: 44px; padding: 12px 20px; font-size: 10px; }
  .sb-status { font-size: 12px; color: var(--bone-2); display: flex; align-items: center; gap: 8px; }
  .sb-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--smoke-2); }
  .sb-status.is-open::before { background: var(--open); }
}

/* ── Scroll reveal ─────────────────────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .1s } .rv.d2 { transition-delay: .2s } .rv.d3 { transition-delay: .3s }

/* ── Simple pages (cancel) ─────────────────────────────────────────────── */
.page-simple { display: grid; align-items: center; justify-items: stretch; min-height: 100vh; padding: 40px 20px; }
.simple-wrap { width: 100%; max-width: 600px; margin: 0 auto; min-width: 0; }
.page-simple .card { min-width: 0; overflow: hidden; }
.page-simple .btn-row { flex-wrap: wrap; }
.card { border: 1px solid var(--gold-line); background: var(--ink); padding: 40px; }
.card .display { font-size: var(--fs-h1); margin-bottom: var(--sp-4); }
.card a { color: var(--gold-2); }
.card a.btn-light { color: #000; }
.card a.btn-light:hover { color: var(--black); }
.card a.btn-ghost { color: var(--bone-2); }
.detail-list { margin: 0 0 26px; padding: 0; border-top: 1px solid var(--line); }
.detail-list > div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.detail-list dt { font-family: var(--font-label); font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; color: var(--smoke); padding-top: 4px; }
.detail-list dd { margin: 0; color: var(--fg); }
.notice { border: 1px solid var(--line-2); padding: 12px 14px; font-size: 14px; color: var(--bone-2); }
/* an upcoming appointment on the account/membership pages: service name, actions, then the ticket */
.visit { display: grid; grid-template-columns: 1fr auto; gap: 8px 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.visit .svc { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-tc-sm); color: var(--fg); line-height: var(--lh-tc); letter-spacing: var(--tr-tc); font-synthesis: none; } /* the service is the visit's title: Title Case register */
.visit .when-card { grid-column: 1 / -1; width: 100%; }
.visit .side { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.visit .side a { font-family: var(--font-label); font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); min-height: 44px; display: inline-flex; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
}

@media (max-width: 760px) { .cal-day { font-size: 13px; } .cal-day.open::after { bottom: 5px; width: 3px; height: 3px; } .cal-day.today::before { top: 4px; right: 4px; } }

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq { padding-top: 0; }
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 72px; align-items: start; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; gap: 30px; } }
.faq-grid .display { font-size: var(--fs-h2); position: sticky; top: calc(var(--nav-h) + 24px); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
/* FAQ questions: Pirata One in Title Case, as on the live site (short questions; the answers stay Plex Mono). */
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; min-height: 64px; font-family: var(--font-display); font-style: normal; font-size: clamp(22px, .5vw + 20px, 26px); letter-spacing: var(--tr-tc); color: var(--fg); font-weight: 400; line-height: var(--lh-tc); font-synthesis: none; transition: color var(--dur-1); }
@media (hover: hover) { .faq-list summary:hover { color: var(--gold-2); } }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-family: var(--font-label); color: var(--gold-t); font-size: 18px; flex: none; transition: transform var(--dur-3) var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { margin: -6px 0 22px; color: var(--smoke); font-size: 13.5px; line-height: 1.7; max-width: 60ch; }

/* barber photos */
.barber-mini.has-photo { grid-template-columns: auto 1fr; column-gap: 18px; align-items: center; }
.barber-mini .barber-photo { grid-row: 1 / span 4; width: 96px; height: 96px; object-fit: cover; border: 1px solid var(--gold-line); filter: grayscale(.25); }

/* ── Memberships ───────────────────────────────────────────────────────── */
.members { padding-top: 0; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
.tier { position: relative; border: 1px solid var(--line-2); background: var(--ink); padding: 40px 32px 34px; display: grid; gap: 10px; align-content: stretch; grid-template-rows: auto auto auto auto auto 1fr auto; transition: border-color var(--dur-3), transform var(--dur-3) var(--ease); }
.tier::after { content: ''; position: absolute; inset: 7px; border: 1px solid transparent; pointer-events: none; transition: border-color var(--dur-3); }
.tier:hover { border-color: var(--gold-line); transform: translateY(-3px); }
.tier.featured { border-color: var(--gold-t); background: linear-gradient(180deg, rgba(201,164,74,.10), rgba(201,164,74,0) 55%), var(--ink); }
.tier.featured::after { border-color: rgba(201,164,74,.25); }
.tier-flag { position: absolute; top: -1px; left: 50%; transform: translate(-50%, -50%); background: var(--gold); color: #000; font-family: var(--font-label); font-size: var(--fs-label); line-height: 1.6; letter-spacing: .2em; text-transform: uppercase; padding: 4px 14px 4px calc(14px + .2em); white-space: nowrap; }
.tier-num { margin: 0; font-family: var(--font-label); font-size: var(--fs-label); letter-spacing: var(--tr-label); color: var(--gold-t); }
.tier .display { font-size: clamp(36px, 1.6vw + 30px, 52px); line-height: 1; } /* tier names: Pirata One caps, as live */
.tier-tag { margin: 0; font-style: italic; color: var(--bone-2); font-size: 13.5px; }
.tier-price { margin: 14px 0 6px; display: flex; align-items: baseline; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; }
.tier-price .amt { font-family: var(--font-label); text-transform: uppercase; font-size: 26px; letter-spacing: var(--tr-price); font-variant-numeric: tabular-nums; color: var(--fg); }
.tier-price .per { font-family: var(--font-label); font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; color: var(--smoke); }
.tier-desc { margin: 0; color: var(--smoke); font-size: 13px; line-height: 1.65; }
.tier-perks { list-style: none; margin: 8px 0 22px; padding: 0; display: grid; gap: 9px; }
.tier-perks li { position: relative; padding-left: 20px; font-size: 13px; color: var(--bone-2); }

.tier .btn { justify-self: start; margin-top: auto; }
.tier-note { text-align: center; margin: 28px auto 0; max-width: 62ch; font-size: 12.5px; color: var(--smoke-2); }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; gap: 28px; } .tier.featured { order: -1; } .tier { padding: 34px 26px 30px; } }
.member-hint { display: none; gap: 10px; align-items: flex-start; border: 1px solid var(--gold-line); background: rgba(201,164,74,.07); color: var(--gold-2); padding: 12px 14px; font-size: 13px; margin: 4px 0 0; }
.member-hint.show { display: flex; }
.member-hint.warn { border-color: var(--line-2); color: var(--bone-2); background: transparent; }
.member-hint::before { content: ''; flex: none; width: 10px; height: 1px; background: var(--gold-t); margin-top: .75em; }

/* ── Card to hold your chair (Stripe Payment Element, details step) ────── */
.card-hold { grid-column: 1 / -1; border: 1px solid var(--gold-line); background: rgba(201,164,74,.04); padding: 22px 22px 20px; display: grid; gap: 14px; }
.ch-title { margin: 0; font-family: var(--font-label); font-size: var(--fs-label); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-t); display: flex; align-items: center; gap: var(--sp-4); }
.ch-title::after { content: ''; flex: 1; height: 1px; background: var(--gold-line); opacity: .6; }
.ch-copy { margin: 0; font-size: 13.5px; color: var(--bone-2); line-height: 1.6; }
.ch-element { min-height: 48px; }
.ch-element.loading { background: linear-gradient(90deg, var(--ink) 25%, var(--ink-2) 50%, var(--ink) 75%); background-size: 200% 100%; animation: shimmer-bg 1.4s linear infinite; border: 1px solid var(--line-2); }
@keyframes shimmer-bg { from { background-position: 200% 0 } to { background-position: -200% 0 } }
.ch-status { margin: 0; font-size: 12.5px; color: var(--smoke); }
/* The consent row: the checkbox and the policy are ONE label, a full-row target ≥ 44px (spec S4). */
.ch-consent { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 10px 12px; margin: 0 -12px; font-size: 13px; color: var(--bone-2); line-height: 1.6; cursor: pointer; }
.ch-consent:hover { background: rgba(var(--fg-rgb), .03); }
.ch-consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--gold-t); }
.card-hold { margin-top: 18px; }
.card-hold.reveal { animation: fade var(--dur-1) var(--ease-std); }
@keyframes fade { from { opacity: 0; } }
.card-hold .err:empty { display: none; }
.card-hold.saved .ch-element, .card-hold.saved .ch-status { display: none; }
@media (max-width: 760px) { .card-hold { padding: 18px 16px 16px; } }

/* ── Mobile gutter: one 20px line for every text edge ──────────────────── */
@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .wrap { width: calc(100% - 2 * var(--gutter)); }
  .hero-inner { width: calc(100% - 2 * var(--gutter)); }
  /* bordered cards run edge to edge; their inner padding = the gutter */
  .booking-shell, .menu-card, .tier { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); border-left: 0; border-right: 0; }
  .booking-shell::before, .menu-card::before, .tier::after { left: 0; right: 0; border-left: 0; border-right: 0; }
  .book-main { padding: 22px var(--gutter) 30px; }
  .bk-sum { padding: 0 var(--gutter); }
  .bk-sum-seg { font-size: 12px; }
  /* the day strip scrolls edge to edge; its first day still sits on the gutter */
  .bk-strip { margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); scroll-padding-inline: var(--gutter); }
  .bk-again { margin-left: 0; margin-right: 0; padding: 16px 16px 4px; }
  .booking .section-head .eyebrow { margin-bottom: 0; }
  .booking.section { padding-top: 40px; }
  /* DETAILS fits above the Confirm bar on a 390 × 844 phone: slimmer ticket, tighter field rhythm */
  .bk-title { margin-bottom: 16px; }
  .bk-details { gap: 16px; }
  .bk-fields { gap: 10px; }
  .bk-fields .field { gap: 5px; }
  .bk-fields .field label { line-height: 1.4; }
  .bk-review .when-card .date-tile .m { padding: 5px 10px 4px; }
  .bk-review .when-card .date-tile .d { padding: 9px 12px 4px; }
  .bk-review .when-card .date-tile .w { padding: 0 8px 9px; }
  .bk-review .wc-head { padding: 11px 16px 10px; }
  .menu-card { padding: 30px var(--gutter) 34px; }
  .menu-item:hover { padding-left: 0; }
  .menu-cols > div + div > .menu-cat:first-child { margin-top: 38px; }
  .tier { padding: 34px var(--gutter) 30px; }
  .tier:hover { transform: none; }
  .tiers { gap: 18px; }
  .studio-text { padding: 56px var(--gutter) 64px; }
  .studio-text .barber-strip { margin-left: 0; }
  .band .wrap { padding: 96px 0; }
  .footer-cols { gap: 10px 28px; }
  .footer { padding-top: 72px; }
  .band blockquote { max-width: 100%; }
  .section-head .display, .studio-text .display, .faq-grid .display { overflow-wrap: anywhere; }
  .confirm { padding: 20px 0; }
  .card { padding: 30px var(--gutter); margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); border-left: 0; border-right: 0; }
  .page-simple { padding: 28px var(--gutter) 40px; }
  .page-simple .btn-row .btn { flex: 1 1 100%; }
}
.inline-form { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.inline-form .field { flex: 1 1 220px; }
.inline-form .btn { padding: 17px 24px; }

/* ── Join drawer ───────────────────────────────────────────────────────── */
.join-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.join-modal[hidden] { display: none; }
.join-backdrop { position: absolute; inset: 0; background: var(--backdrop); backdrop-filter: blur(6px); }
.join-panel { position: relative; width: min(640px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--ink); border: 1px solid var(--gold-line); padding: 44px 40px 40px; animation: panel var(--dur-3) var(--ease); }
.join-panel::before { content: ''; position: absolute; inset: 8px; border: 1px solid var(--gold-frame); pointer-events: none; }
.join-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; background: none; border: 1px solid var(--line-3); color: var(--bone-2); font-size: 22px; line-height: 1; }
.join-close:hover { border-color: var(--gold-t); color: var(--gold-2); }
.join-panel .display { font-size: var(--fs-h1); }
.join-plan { display: grid; gap: 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; margin: 16px 0 22px; }
.join-plan .price { font-family: var(--font-label); font-size: var(--fs-label); letter-spacing: .16em; color: var(--gold-2); text-transform: uppercase; }
.join-plan .price b { font-size: 15px; letter-spacing: .04em; font-weight: 400; color: var(--fg); }
.join-plan .cov { color: var(--bone-2); font-size: 13px; }
.join-panel .confirm { padding: 10px 0 0; }
.join-panel .confirm p { color: var(--bone-2); font-size: 14px; }
body.join-open { overflow: hidden; }
@media (max-width: 760px) { .join-modal { padding: 0; align-items: end; } .join-panel { max-height: 100dvh; width: 100%; border-left: 0; border-right: 0; padding: 40px var(--gutter) 36px; } .join-panel .form-foot { flex-direction: column; align-items: stretch; } .join-panel .btn-lg { width: 100%; } }

/* ── Date/time ticket (review + confirmation) ──────────────────────────── */
.when-card { display: inline-flex; align-items: stretch; border: 1px solid var(--gold-line); background: var(--black); text-align: left; max-width: 100%; }
.date-tile { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; min-width: 118px; border-right: 1px solid var(--gold-line); }
/* The ticket: gold month strip (Syncopate 700) · big day · weekday | big time (Pirata One numerals) · meta. */
.date-tile .m { width: 100%; text-align: center; background: var(--gold); color: #000; font-family: var(--font-label); font-size: var(--fs-label); line-height: 1.6; letter-spacing: .24em; text-transform: uppercase; padding: 4px 10px 4px calc(10px + .24em); font-weight: 700; }
.date-tile .d { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-tk-day); line-height: .9; letter-spacing: .02em; font-variant-numeric: tabular-nums; color: var(--fg); padding: 14px 14px 6px; font-synthesis: none; }
.date-tile .w { font-family: var(--font-label); font-size: var(--fs-label); line-height: 1.6; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); padding: 0 10px 12px calc(10px + .14em); }
.when-time { display: grid; align-content: center; gap: var(--sp-2); padding: 16px 24px; }
.when-time .t { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-tk-time); line-height: .95; letter-spacing: .03em; font-variant-numeric: tabular-nums; color: var(--fg); white-space: nowrap; font-synthesis: none; }
.when-time .t small { font-family: var(--font-label); text-transform: uppercase; font-size: var(--fs-label); letter-spacing: .14em; color: var(--gold-2); margin-left: var(--sp-2); vertical-align: .95em; }
.when-time .rel { font-family: var(--font-label); font-size: var(--fs-label); line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); margin-bottom: -4px; } /* "Today" / "Tomorrow": its own line, so the meta never strands a stem at a line end */
.when-time .meta { font-size: 12.5px; color: var(--bone-2); --stem-gap: .6em; }

.confirm .when { margin: 26px 0 18px; display: flex; justify-content: center; }
.confirm .when .when-card { min-width: min(100%, 340px); }
@media (max-width: 640px) {
  .when-card { width: 100%; }
  .when-time { padding: 14px 18px; flex: 1; }
  .when-time .t { font-size: 34px; }
  .date-tile { min-width: 96px; }
  .date-tile .d { font-size: 48px; }
}

/* A small title (style guide: .display.h4 / .sd-title) */
.sd-title { margin: 0 0 var(--sp-2); font-family: var(--font-display); font-weight: var(--fw-title); font-size: var(--fs-tc-sm); letter-spacing: var(--tr-tc); color: var(--fg); line-height: var(--lh-tc); font-synthesis: none; } /* Title Case register */

/* ticket with service header (details step) */
.when-card { display: inline-grid; grid-template-columns: auto 1fr; }
.when-card.has-head { display: grid; width: 100%; }
.wc-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 24px 12px; border-bottom: 1px solid var(--gold-line); }
.wc-title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-tc-sm); letter-spacing: var(--tr-tc); color: var(--fg); line-height: var(--lh-tc); font-synthesis: none; min-width: 0; overflow-wrap: break-word; } /* the service on the ticket head: Title Case register, as live */
.wc-price { font-family: var(--font-label); text-transform: uppercase; font-size: 15px; letter-spacing: .06em; font-variant-numeric: tabular-nums; color: var(--gold-2); white-space: nowrap; }
.when-card.has-head .date-tile { min-width: 112px; }
.when-card.has-head .when-time { padding: 16px 24px; }
.bk-review .when-card .d { font-size: 48px; }
.bk-review .when-card .t { font-size: 34px; }
@media (max-width: 760px) {
  .wc-head { padding: 12px 16px 10px; }
  .wc-title { font-size: 20px; }
  .when-card.has-head .when-time { padding: 12px 16px; }
  .when-card.has-head .date-tile { min-width: 96px; }
}

/* ── Header on inner pages ─────────────────────────────────────────────── */
.nav-solid::before { opacity: 1; }
.nav-solid { border-color: var(--line); }
.nav-solid .nav-logo { opacity: 1; transform: none; }
.nav-links a.nav-me { color: var(--gold-2); }
.nav-links a.active::after { transform: scaleX(1); }
body.has-nav.page-simple { padding-top: calc(var(--nav-h) + 28px); align-items: start; }
body.has-nav .simple-wrap { margin-top: 0; }
.page-crumb { font-family: var(--font-label); font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; color: var(--smoke); margin: 0 0 var(--sp-4); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.page-crumb a { color: var(--gold-2); display: inline-flex; align-items: center; min-height: 44px; margin: -14px 0; } /* 44px targets laid out as a line */
.page-crumb span::before { content: ''; display: inline-block; width: 1px; height: .9em; background: currentColor; opacity: .6; vertical-align: -.08em; margin-right: 10px; } /* the stem divider */

/* ── Review batch: anchors, controls, errors, motion ────────────────────── */
section[id], #book, #bookingApp, #top { scroll-margin-top: calc(var(--nav-h) + 16px); }
.cal-nav, .btn-ghost { border-color: var(--line-3); }
.footer-cols a { padding: 0 4px; display: inline-flex; align-items: center; min-height: 44px; } /* 44px targets */
/* Errors: never red. An ink outline, the alert icon and the strongest text colour carry the state (≥ 4.5:1 both themes). */
.alert.error { position: relative; border-color: var(--bad-line); background: var(--bad-bg); color: var(--bad); padding-left: 42px; }
.alert.error::before { content: ''; position: absolute; left: 16px; top: 17px; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--icon-alert) center / contain no-repeat; mask: var(--icon-alert) center / contain no-repeat; }
.alert.error a { color: var(--fg); }
.form-foot .alert { flex-basis: 100%; margin: 0; }
.confirm .btn-row .btn { --btn-tr: .18em; font-size: 10px; padding: 14px 22px; }

@media (max-width: 640px) {
  .form-foot { flex-direction: column-reverse; align-items: stretch; }
  .form-foot .btn-lg { width: 100%; }
  .form-foot .check { justify-content: center; }
  .section-head .lede { display: none; }
  .booking .section-head { margin-bottom: 24px; gap: var(--sp-3); }
  /* The reservation title stays on one line on a 390px phone: every pixel above the booking is scroll (spec A17). */
  .booking .section-head .display { font-size: min(var(--fs-h2), 34px); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Phones: the Confirm bar is fixed to the bottom (above the home bar; app.js lifts it above the iOS keyboard). The step
   keeps room for it at its end, and the page's scroll-padding keeps a focused field from hiding under it. */
@media (max-width: 860px) {
  .bk-action { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; margin: 0; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); transform: translateY(110%); transition: transform var(--dur-3) var(--ease); }
  .bk-action.is-on { transform: none; }
  .bk-action-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .bk-policy { font-size: 11.5px; color: var(--smoke); text-align: center; max-width: none; }
  .bk-action .btn { width: 100%; min-height: 56px; padding: 14px 16px; } /* full width: 16px sides so the label fits a 320px phone */

  [data-step="details"] .bk-details { padding-bottom: calc(var(--bar-h, 124px) + 8px); }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cal-row { display: contents; }
.cal-day[aria-selected="true"] { outline-offset: 2px; }
.sticky-book .sb-status { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sticky-book .sb-status::before { display: inline-block; vertical-align: middle; margin-right: 8px; }
/* Less ornament: the inset frame stays on the hero, booking shell and menu only */
.tier::after, .work-grid figure::before { display: none; }
.tier-perks li::before { content: ''; position: absolute; left: 0; top: .85em; width: 10px; height: 1px; background: var(--gold-t); }
@media (max-width: 900px) { .tier-num { display: none; } }
.menu-item { column-gap: 20px; } .menu-item .name { overflow-wrap: break-word; }

/* ── Light mode: the few rules a token swap can't express (docs/THEME.md) ──
   Photos are never filtered differently per theme except the hero, whose black scrim becomes an ivory wash so the
   inverted (black) wordmark reads; the quote band, the work grid and the studio photo keep their dark treatment with
   white type ON the photo and fade into the ivory page at their edges through the tokens. */
html[data-theme="light"] .hero-photo img { filter: grayscale(.85) contrast(1.02) brightness(1.12); }
html[data-theme="light"] .hero-photo::after { background: linear-gradient(180deg, rgba(243,238,228,.66) 0%, rgba(243,238,228,.74) 40%, rgba(243,238,228,.97) 82%, var(--black) 100%), radial-gradient(ellipse at 50% 40%, rgba(243,238,228,.1), rgba(243,238,228,.55) 75%); }
html[data-theme="light"] .hero-glow { opacity: .5; }
/* Selected states: on ivory the gold fill alone is ~2:1 against the ground, so the selection also gets a deep-gold edge (5:1). */
html[data-theme="light"] .cal-day.selected, html[data-theme="light"] .cal-day.selected:hover, html[data-theme="light"] .bk-slot[aria-pressed="true"], html[data-theme="light"] .bk-day[aria-pressed="true"], html[data-theme="light"] .bk-chip[aria-pressed="true"], html[data-theme="light"] .bk-open[aria-pressed="true"] { border-color: var(--gold-t); box-shadow: inset 0 0 0 1px var(--gold-t); }
html[data-theme="light"] .band::after { background: linear-gradient(180deg, var(--black) 0%, rgba(var(--bg-rgb),0) 28%, rgba(var(--bg-rgb),0) 72%, var(--black) 100%); } /* no ivory haze over the photo: it fades in at the edges only */
html[data-theme="light"] .band blockquote em { color: #e6cf8f; } /* on photo */
html[data-theme="light"] .band .thorn-rule { color: rgba(230,207,143,.55); } /* on photo */
html[data-theme="light"] .map iframe { filter: grayscale(1) contrast(1.02); }
html[data-theme="light"] .alert { background: rgba(125,98,34,.07); }
html[data-theme="light"] .bk-again, html[data-theme="light"] .card-hold, html[data-theme="light"] .member-hint { background: rgba(125,98,34,.06); }
html[data-theme="light"] .tier.featured { background: linear-gradient(180deg, rgba(125,98,34,.08), rgba(125,98,34,0) 55%), var(--ink); }
html[data-theme="light"] .tier.featured::after { border-color: rgba(125,98,34,.25); }
html[data-theme="light"] .skel::after { background: linear-gradient(90deg, transparent, rgba(var(--fg-rgb),.06), transparent); }

/* ── 404: the monogram, large (160px), is the illustration ─────────────── */
.nf-card { text-align: center; }
.nf-mark { display: flex; justify-content: center; line-height: 0; margin: 0 0 var(--sp-6); }
.nf-mark img { height: 160px; width: auto; }

/* An inline text link that must still be a 44px target (CLAUDE.md). */
.tap44 { display: inline-flex; align-items: center; min-height: 44px; }

/* ── Phones: a full-width button pads 16px a side, so a Syncopate label never clips at 320px (BRAND §2) ── */
@media (max-width: 640px) {
  .btn-lg { padding-left: 20px; padding-right: 20px; }
  .form-foot .btn-lg, .m-move .btn, .page-simple .btn-row .btn, .join-panel .btn-lg { padding-left: 16px; padding-right: 16px; }
}
