/* Bobby's Barbershop — "Hot towel, cold steel"
   Lather white, strop navy, Barbicide blue, oxblood for the one action that matters. */

@font-face {
  font-family: "Bodoni Moda";
  src: url("/fonts/bodoni-moda.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("/fonts/bodoni-moda-italic.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --lather: #eef3f4;
  --porcelain: #f8fbfb;
  --strop: #14233a;
  --strop-2: #1b2f4d;
  --barbicide: #2a8fa6;
  --barbicide-soft: #9fd3e0;
  --oxblood: #6b1e28;
  --oxblood-hover: #84252f;
  --steel: #5d6b78;
  --steel-soft: #8b98a4;

  --bg: var(--lather);
  --surface: var(--porcelain);
  --ink: var(--strop);
  --ink-muted: var(--steel);
  --line: color-mix(in oklab, var(--strop) 16%, transparent);
  --accent: #1f7489; /* barbicide, darkened for AA text on lather */
  --focus: #1f7489;

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Type scale: 1.25 at small, opening up to ~1.414 at large viewports */
  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.6rem);
  --step-2: clamp(1.6rem, 1.35rem + 1.2vw, 2.4rem);
  --step-3: clamp(2.2rem, 1.6rem + 3vw, 4.2rem);
  --step-hero: clamp(3.4rem, 1.2rem + 10.5vw, 12rem);

  --gutter: clamp(1rem, 0.5rem + 3vw, 3.5rem);
  --max: 82rem;
  --radius-sm: 4px;
  --radius-pill: 999px;
  --ease-out: cubic-bezier(.2, .7, .1, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1b2e;
    --surface: #14233a;
    --ink: #e6eef0;
    --ink-muted: #a3b2bf;
    --line: color-mix(in oklab, #e6eef0 16%, transparent);
    --accent: var(--barbicide-soft);
    --focus: var(--barbicide-soft);
    --oxblood: #8e2a36;
    --oxblood-hover: #a5313f;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-0)/1.55 var(--sans);
  font-feature-settings: "ss01";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .6rem 1rem; background: var(--strop); color: var(--lather);
  border-radius: var(--radius-sm); text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .8rem 1.5rem;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  font-weight: 600; font-size: var(--step-0); letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--oxblood); color: #fff; }
.btn--primary:hover { background: var(--oxblood-hover); }
.btn--quiet { border-color: var(--line); background: transparent; }
.btn--quiet:hover { border-color: currentColor; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ───────── Nav ───────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem var(--gutter);
  color: var(--ink);
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.nav.is-scrolled {
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-dark { color: var(--lather); }
.nav.is-dark.is-scrolled { background: color-mix(in oklab, var(--strop) 80%, transparent); box-shadow: 0 1px 0 rgb(255 255 255 / .08); }
.wordmark {
  font: italic 600 1.6rem/1 var(--serif);
  text-decoration: none; letter-spacing: -.01em;
}
.nav ul { display: flex; gap: clamp(.75rem, 2vw, 2rem); align-items: center; margin: 0; padding: 0; list-style: none; }
.nav a:not(.wordmark) { text-decoration: none; font-size: var(--step--1); font-weight: 500; }
.nav a:not(.wordmark):not(.nav-book):hover { text-decoration: underline; text-underline-offset: .3em; }
.nav-book { padding: .55rem 1rem; border: 1px solid currentColor; border-radius: var(--radius-pill); }
@media (max-width: 560px) {
  .nav li:not(:last-child) { display: none; }
}

/* ───────── Hero ───────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto auto;
  padding: 7rem var(--gutter) 2rem;
  overflow: hidden;
}
.hero-title {
  align-self: end;
  font-family: var(--serif);
  font-size: var(--step-hero);
  font-weight: 500;
  font-variation-settings: "opsz" 96;
  line-height: .9;
  letter-spacing: -.035em;
}
.hero-line { display: block; position: relative; width: fit-content; }
.hero-line--indent { margin-left: clamp(1.5rem, 12vw, 14rem); font-style: italic; font-weight: 400; }

/* The one page-load moment: a blade line sweeps each line into view. */
@media (prefers-reduced-motion: no-preference) {
  .hero-line { clip-path: inset(-10% 100% -20% 0); animation: shave-in .8s var(--ease-out) forwards; }
  .hero-line::after {
    content: ""; position: absolute; top: 4%; bottom: -6%; left: 0; width: 2px;
    background: linear-gradient(var(--barbicide-soft), var(--accent));
    box-shadow: 0 0 18px var(--barbicide-soft);
    animation: blade .8s var(--ease-out) forwards;
  }
  .hero-line--indent, .hero-line--indent::after { animation-delay: .25s; }
  .hero-foot, .hero-scroll { opacity: 0; animation: settle .6s var(--ease-out) .6s forwards; }
}
@keyframes shave-in { to { clip-path: inset(-10% -2% -20% 0); } }
@keyframes blade { 0% { left: 0; opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes settle { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hero-foot {
  display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: end; justify-content: space-between;
  margin-top: clamp(2rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.hero-lede { max-width: 34rem; font-size: var(--step-1); line-height: 1.45; color: var(--ink-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-scroll {
  margin-top: 2.5rem; font-size: var(--step--1); color: var(--ink-muted);
  display: flex; align-items: center; gap: .75rem;
}
.hero-scroll::before { content: ""; width: 2.5rem; height: 1px; background: currentColor; }

/* ───────── 3D hero stage ───────── */
.hero--stage {
  display: block; min-height: 0; padding: 0; overflow: visible;
  color: var(--lather);
  background:
    radial-gradient(60% 55% at 68% 42%, #2a4a74 0%, rgb(42 74 116 / 0) 70%),
    radial-gradient(120% 90% at 50% 110%, #0a1424 0%, rgb(10 20 36 / 0) 60%),
    var(--strop);
}
.hero-pin {
  position: relative; min-height: 100svh; overflow: clip;
  display: grid; grid-template-rows: 1fr auto;
  padding: 7rem var(--gutter) 2rem;
}
.hero--stage.is-live { height: 320svh; }
.hero--stage.is-live .hero-pin { position: sticky; top: 0; height: 100svh; }
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 1.4s var(--ease-out);
}
.hero-canvas.is-ready { opacity: 1; }
/* Pre-rendered start frame (same scene at rest), shown until live 3D takes over. */
.hero-poster img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none;
  transition: opacity 1.4s var(--ease-out);
}
.has-3d .hero-poster img { opacity: 0; }
.hero-copy { position: relative; z-index: 1; align-self: end; display: grid; pointer-events: none; }
.hero-copy a { pointer-events: auto; }
.hero--stage .hero-title { font-size: clamp(3rem, 1rem + 7.2vw, 8.75rem); text-shadow: 0 2px 40px rgb(10 20 36 / .55); }
.hero--stage .hero-lede { color: color-mix(in oklab, var(--lather) 80%, var(--strop)); }
.hero--stage .hero-foot { border-top-color: rgb(255 255 255 / .16); }
.hero--stage .btn--quiet { border-color: rgb(255 255 255 / .3); color: var(--lather); }
.hero--stage .btn--quiet:hover { border-color: var(--lather); }
.hero--stage .hero-scroll { position: relative; z-index: 1; color: var(--steel-soft); }
.hero--stage:not(.is-live) .hero-scroll { visibility: hidden; }
.hero-caption {
  position: absolute; z-index: 1; left: var(--gutter); bottom: clamp(2rem, 8vh, 5rem);
  margin: 0; opacity: 0;
  font: italic 400 clamp(2.4rem, 1rem + 5vw, 5.6rem)/.95 var(--serif); letter-spacing: -.03em;
  text-shadow: 0 2px 40px rgb(10 20 36 / .7);
}
@media (max-width: 760px) {
  .hero-pin { padding-top: 5.5rem; }
  .hero--stage .hero-title { font-size: clamp(3rem, 1rem + 11vw, 5rem); }
}

/* ───────── Statement ───────── */
.statement {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(5rem, 14vw, 11rem) var(--gutter);
}
.statement-text {
  position: relative;
  max-width: 22ch;
  font: 500 clamp(2.2rem, 1rem + 4.4vw, 5.4rem)/1.04 var(--serif); letter-spacing: -.025em;
}
.statement-word { opacity: .55; transition: opacity .35s var(--ease-out); }
.statement-word.is-lit { opacity: 1; }

/* ───────── Ritual ───────── */
.ritual {
  --p: 0;
  background: var(--strop);
  color: var(--lather);
  padding: clamp(4rem, 8vw, 7rem) var(--gutter);
}
.ritual-sticky {
  display: grid; gap: 2.5rem;
  max-width: var(--max); margin: 0 auto;
}
.ritual-title {
  font: 500 var(--step-3)/1 var(--serif);
  letter-spacing: -.02em;
  margin-bottom: 2rem;
}
.ritual-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; }
.ritual-step { display: grid; grid-template-columns: 4.5rem 1fr; column-gap: 1rem; max-width: 34rem; }
.ritual-num {
  grid-row: span 2;
  font: italic 400 var(--step-3)/.9 var(--serif);
  color: var(--barbicide-soft);
}
.ritual-step h3 { font: 600 var(--step-1)/1.2 var(--sans); margin-bottom: .4rem; }
.ritual-step p { color: color-mix(in oklab, var(--lather) 78%, var(--strop)); max-width: 30rem; }
.ritual-rail { display: none; }
.ritual-stage { margin: 0; }
@media (min-width: 861px) {
  .ritual:not(.is-live) .ritual-sticky { grid-template-columns: 1fr 1fr; align-items: center; }
}
.scene { width: 100%; height: auto; max-height: 80svh; margin-inline: auto; aspect-ratio: 6 / 7; }

/* Static (no-JS / reduced motion): show the finished scene */
.s-skin { fill: #2b4466; }
.s-neck { fill: #213756; }
.s-frame { fill: none; stroke: #8b98a4; stroke-width: 3; }
.s-frame--outer { stroke: #4a5a6b; stroke-width: 1.5; }
.ritual:not(.is-live) .s-balm { opacity: 1; }
.ritual.is-live .s-balm { opacity: 0; }
.s-hair { fill: #0c1828; }
.s-jaw, .s-ear path { fill: none; stroke: #8fb6c3; stroke-width: 2; stroke-linecap: round; opacity: .7; }
.s-ear-hairs path { fill: none; stroke: #c9d6dc; stroke-width: 1.6; stroke-linecap: round; }
.s-stubble circle { fill: #c9d6dc; }
.s-lather circle { fill: #f8fbfb; }
.s-guides path { fill: none; stroke: var(--barbicide-soft); stroke-width: 1.5; stroke-dasharray: 6 8; }
.s-guides text { fill: var(--barbicide-soft); font: 500 15px var(--sans); }
.s-neckline { fill: none; stroke: #e6eef0; stroke-width: 2.5; }
.s-towel rect { stroke: none; }
.s-towel path { fill: none; stroke: #b9c9ce; stroke-width: 2; }
.s-steam path { fill: none; stroke: #e6eef0; stroke-width: 3; stroke-linecap: round; }
.s-loupe { fill: none; stroke: var(--barbicide-soft); stroke-width: 3; }
.s-razor-blade { fill: #c7d1d8; }
.s-razor-edge { stroke: #fff; stroke-width: 2; }
.s-razor-handle { fill: #0c1828; stroke: #8fb6c3; stroke-width: 1.5; }

.ritual:not(.is-live) .s-towel,
.ritual:not(.is-live) .s-steam,
.ritual:not(.is-live) .s-guides,
.ritual:not(.is-live) .s-razor,
.ritual:not(.is-live) .s-ear-hairs,
.ritual:not(.is-live) .s-lather,
.ritual:not(.is-live) .s-stubble { display: none; }

/* Live (scroll-driven) mode, added by JS when motion is allowed */
.ritual.is-live { height: 640vh; padding: 0; }
.ritual.is-live .ritual-sticky {
  position: sticky; top: 0;
  height: 100svh;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  padding: 5rem var(--gutter) 2rem;
}
.ritual.is-live .ritual-copy { position: relative; display: grid; grid-template-columns: 1fr auto; column-gap: 2rem; }
.ritual.is-live .ritual-title { grid-column: 1 / -1; }
.ritual.is-live .ritual-steps { display: grid; }
.ritual.is-live .ritual-step {
  grid-area: 1 / 1;
  opacity: 0; transform: translateY(1.25rem);
  transition: opacity .45s var(--ease-out), transform .6s var(--ease-out);
  pointer-events: none;
}
.ritual.is-live .ritual-step.is-active { opacity: 1; transform: none; }
.ritual.is-live .ritual-step { grid-template-columns: clamp(4.5rem, 2.5rem + 3.5vw, 6.5rem) 1fr; }
.ritual.is-live .ritual-num { font-size: clamp(4rem, 3rem + 5vw, 9rem); }
.ritual.is-live .ritual-rail {
  display: block; position: relative; grid-row: 2; grid-column: 2;
  width: 2px; height: 100%; min-height: 12rem;
  background: rgb(255 255 255 / .14);
}
.ritual-rail-fill {
  position: absolute; inset: 0 0 auto 0;
  height: calc(var(--p) * 100%);
  background: var(--barbicide-soft);
}
.ritual.is-live .s-towel { will-change: transform; }

@media (max-width: 860px) {
  .ritual.is-live .ritual-sticky {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
    padding-top: 4.5rem;
  }
  .ritual.is-live .ritual-copy { order: 2; grid-template-columns: 1fr; }
  .ritual.is-live .ritual-title { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .ritual.is-live .ritual-rail { display: none; }
  .ritual.is-live .ritual-step { grid-template-columns: 3rem 1fr; }
  .ritual.is-live .ritual-num { font-size: var(--step-3); }
  .ritual.is-live .ritual-stage { order: 1; }
  .ritual.is-live .scene { max-height: 56svh; }
}

/* ───────── Scroll band ───────── */
.band {
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem) 0;
  border-bottom: 1px solid var(--line);
}
.band-track {
  white-space: nowrap;
  font: italic 400 clamp(3rem, 1.5rem + 7vw, 9rem)/1 var(--serif);
  letter-spacing: -.03em;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
  transform: translateX(calc(var(--shift, 0) * -1px));
  will-change: transform;
}

/* ───────── Menu ───────── */
.menu, .book { max-width: var(--max); margin: 0 auto; padding: clamp(4rem, 9vw, 8rem) var(--gutter); }
.menu-head { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.menu-head h2, .book-aside h2 { font: 500 var(--step-3)/1 var(--serif); letter-spacing: -.02em; }
.menu-head p { max-width: 36rem; color: var(--ink-muted); }
.menu-cols { display: grid; gap: clamp(3rem, 6vw, 6rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); }
.menu-group h3 { font: 600 var(--step--1)/1 var(--sans); color: var(--accent); margin-bottom: 1rem; letter-spacing: .02em; }
.price-list { margin: 0; }
.price-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; column-gap: .75rem;
  padding: 1.1rem 0; border-top: 1px solid var(--line);
}
.price-row dt { font: 500 var(--step-1)/1.2 var(--serif); }
.price-row::after { content: none; }
.price-row .price { grid-column: 3; grid-row: 1; margin: 0; font: 500 var(--step-1)/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.price-row .price-note { grid-column: 1 / -1; margin: .35rem 0 0; color: var(--ink-muted); font-size: var(--step--1); }
/* Dotted leader between name and price, drawn as the row scrolls in */
.price-row { position: relative; }
.price-row > dt { grid-column: 1; grid-row: 1; }
.price-row::before {
  content: ""; grid-column: 2; grid-row: 1; align-self: end;
  height: 1px; margin-bottom: .35em;
  background-image: radial-gradient(circle, var(--steel-soft) 1px, transparent 1.2px);
  background-size: 6px 2px; background-repeat: repeat-x;
  transform-origin: left;
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .price-row::before { animation: leader linear both; animation-timeline: view(); animation-range: entry 10% cover 35%; }
  }
}
@keyframes leader { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.standards { margin-top: 3rem; padding: 1.5rem; background: var(--surface); border-radius: var(--radius-sm); border-left: 3px solid var(--accent); }
.standards ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .5rem; }

/* ───────── Booking ───────── */
.book {
  display: grid; gap: clamp(2.5rem, 6vw, 6rem);
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
  border-top: 1px solid var(--line);
}
@media (max-width: 860px) { .book { grid-template-columns: 1fr; } }
.book-aside { display: grid; gap: 2rem; }
@media (min-width: 861px) { .book-aside { position: sticky; top: 6rem; } }
.book-how { margin: 0; padding-left: 1.25rem; display: grid; gap: .75rem; color: var(--ink-muted); }
.book-how li::marker { font-family: var(--serif); font-style: italic; color: var(--accent); }
.contact { margin: 0; display: grid; gap: .75rem; }
.contact div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.contact dt { color: var(--ink-muted); font-size: var(--step--1); padding-top: .15em; }
.contact dd { margin: 0; }
.contact a { text-decoration-thickness: 1px; text-underline-offset: .2em; }

.book-form { display: grid; gap: 1.75rem; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend, .field > label { display: block; font-weight: 600; margin-bottom: .6rem; padding: 0; }
.optional { font-weight: 400; color: var(--ink-muted); font-size: var(--step--1); margin-left: .35rem; }
.field-row { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }

.choice-list { display: grid; border-top: 1px solid var(--line); }
.choice {
  position: relative; display: grid; grid-template-columns: 1.4rem 1fr auto; align-items: center; gap: .9rem;
  padding: 1rem .75rem; border-bottom: 1px solid var(--line); cursor: pointer;
  transition: background-color .2s;
}
.choice:hover { background: color-mix(in oklab, var(--accent) 6%, transparent); }
.choice:has(input:checked) { background: color-mix(in oklab, var(--accent) 12%, transparent); }
.choice-name { font: 500 var(--step-1)/1.2 var(--serif); }
.choice-meta { color: var(--ink-muted); font-size: var(--step--1); }

input[type="radio"], input[type="checkbox"] { accent-color: var(--accent); width: 1.15rem; height: 1.15rem; margin: 0; }

.chip-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: .5rem 1.1rem;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip input:hover + span { border-color: var(--ink); }
.chip input:checked + span { background: var(--strop); border-color: var(--strop); color: var(--lather); }
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (prefers-color-scheme: dark) {
  .chip input:checked + span { background: var(--barbicide-soft); border-color: var(--barbicide-soft); color: var(--strop); }
}

.segmented { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 3px; }
.segmented label { position: relative; text-align: center; }
.segmented input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.segmented span { display: block; padding: .6rem .5rem; border-radius: var(--radius-pill); font-size: var(--step--1); font-weight: 500; transition: background-color .2s, color .2s; }
.segmented input:checked + span { background: var(--strop); color: var(--lather); }
.segmented input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (prefers-color-scheme: dark) {
  .segmented input:checked + span { background: var(--barbicide-soft); color: var(--strop); }
}

input[type="text"], input[type="tel"], input[type="email"], input[type="date"], textarea {
  width: 100%; min-height: 3rem; padding: .75rem .9rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
input:focus-visible, textarea:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in oklab, var(--focus) 30%, transparent); }
[aria-invalid="true"] { border-color: var(--oxblood) !important; }
textarea { resize: vertical; }
.field-error { color: var(--oxblood); font-size: var(--step--1); font-weight: 500; margin-top: .4rem; min-height: 0; }
.field-error:empty { display: none; }
@media (prefers-color-scheme: dark) { .field-error { color: #f0a3ab; } }


.ticket {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  padding: 1rem 1.25rem; border: 1px dashed var(--steel-soft); border-radius: var(--radius-sm);
}
.ticket-label { color: var(--ink-muted); font-size: var(--step--1); }
.ticket-value { font: 500 var(--step-1)/1.2 var(--serif); font-variant-numeric: tabular-nums; }
.ticket.is-updated .ticket-value { animation: tick .5s var(--ease-out); }
@keyframes tick { from { opacity: .2; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.form-note { margin-top: -.75rem; color: var(--ink-muted); font-size: var(--step--1); }
.form-status { font-weight: 500; }
.contact-alt { margin-left: .75rem; color: var(--ink-muted); font-size: var(--step--1); }
.form-status.is-error { color: var(--oxblood); }
@media (prefers-color-scheme: dark) { .form-status.is-error { color: #f0a3ab; } }

.book-done {
  grid-column: 2; padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--strop); color: var(--lather); border-radius: var(--radius-sm);
  display: grid; gap: 1rem;
}
.book-done[hidden] { display: none; }
@media (max-width: 860px) { .book-done { grid-column: 1; } }
.book-done h3 { font: italic 500 var(--step-3)/1 var(--serif); }
.qr { margin: 0; display: grid; grid-template-columns: minmax(14rem, 18rem) 1fr; gap: 1.25rem; align-items: center; }
@media (max-width: 640px) { .qr { grid-template-columns: 1fr; } }
.qr-code svg { width: 100%; height: auto; border-radius: var(--radius-sm); }
.qr figcaption { color: color-mix(in oklab, var(--lather) 78%, var(--strop)); font-size: var(--step--1); max-width: 18rem; }
.sms-preview {
  margin: 0; padding: 1rem 1.25rem; white-space: pre-wrap; overflow-wrap: anywhere;
  font: 400 var(--step--1)/1.5 var(--sans);
  background: rgb(255 255 255 / .06); border-left: 2px solid var(--barbicide-soft); border-radius: var(--radius-sm);
}
.done-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.btn--light { background: var(--lather); color: var(--strop); }
.btn--light:hover { background: #fff; }
.btn--ghost { background: transparent; border-color: rgb(255 255 255 / .3); color: var(--lather); }
.btn--ghost:hover { border-color: var(--lather); }
.copy-status { font-size: var(--step--1); color: var(--barbicide-soft); }
.copy-status:empty { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .book-done:not([hidden]) { animation: settle .6s var(--ease-out); }
}

/* ───────── Mobile booking dock ───────── */
.dock { display: none; }
@media (max-width: 860px) {
  .dock {
    display: flex; align-items: center; justify-content: center;
    position: fixed; z-index: 40; left: 1rem; right: 1rem; bottom: max(1rem, env(safe-area-inset-bottom));
    min-height: 3.25rem; border-radius: var(--radius-pill);
    background: var(--oxblood); color: #fff; font-weight: 600; text-decoration: none;
    box-shadow: 0 10px 30px rgb(20 35 58 / .35);
    transform: translateY(calc(100% + 2rem)); visibility: hidden;
    transition: transform .4s var(--ease-out), visibility 0s linear .4s;
  }
  .dock.is-shown { transform: none; visibility: visible; transition: transform .4s var(--ease-out); }
  .dock-shown .nav-book { opacity: 0; pointer-events: none; }
  .nav-book { transition: opacity .3s; }
}

/* ───────── Footer ───────── */
.footer {
  background: var(--strop); color: var(--lather);
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) 2rem;
  display: grid; gap: .75rem;
}
.footer-mark { font: italic 500 clamp(4rem, 2rem + 10vw, 11rem)/1 var(--serif); letter-spacing: -.04em; padding-bottom: .25em; }
.footer a { text-underline-offset: .2em; }
.footer-small { font-size: var(--step--1); color: var(--steel-soft); margin-top: 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
