/* =====================================================================
   Oxford Road Barbers
   Dark, glass and brass. Display: Bricolage Grotesque. Text: DM Sans.
   ===================================================================== */
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --bg: #0b0a09;
  --bg-2: #12100e;
  --glass: rgba(255, 255, 255, .055);
  --glass-2: rgba(255, 255, 255, .09);
  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .20);
  --text: #f5f2ea;
  --muted: #aaa493;
  --gold: #c8b068;
  --gold-hi: #f1dfa0;
  --gold-lo: #8d7632;
  --grad: linear-gradient(135deg, #f6e8b4 0%, #c8b068 48%, #9a8240 100%);
  --paper: #f3f0e9;
  --ink: #16120e;
  --ok: #34c06f;
  --bad: #ff7a6b;
  --display: "Bricolage Grotesque", "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.45, .5, 1);
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; overflow-x: clip; }
body { margin: 0; font: 400 1.0625rem/1.6 var(--sans); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.04; letter-spacing: -.025em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.7rem, 5.3vw, 4.7rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.8rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
h1, h2, h3 { text-wrap: balance; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--gold); color: var(--ink); padding: .6rem 1rem; border-radius: 10px; font-weight: 700; transition: top .2s; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; }

/* ambient background: soft glows plus film grain */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 12% -5%, rgba(200,176,104,.10), transparent 60%),
    radial-gradient(800px 600px at 100% 40%, rgba(122,59,42,.12), transparent 60%),
    var(--bg); }
.bg::after { content: ""; position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* ---------- buttons ---------- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .95rem 1.7rem; border: 0; border-radius: 999px; background: var(--grad); color: #1a1409; font: 700 1rem var(--sans); letter-spacing: .005em; text-decoration: none; cursor: pointer; box-shadow: 0 10px 28px -10px rgba(200,176,104,.7), inset 0 1px 0 rgba(255,255,255,.5); transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s; }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -80%; width: 50%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); pointer-events: none; }
.btn:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 18px 38px -12px rgba(200,176,104,.85), inset 0 1px 0 rgba(255,255,255,.6); }
.btn:hover:not(:disabled)::after { animation: sheen .9s var(--ease); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }
.btn-sm { padding: .62rem 1.15rem; font-size: .92rem; }
.btn-glass { background: var(--glass-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(10px); }
.btn-glass:hover:not(:disabled) { background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.btn-dark { background: var(--ink); color: var(--gold-hi); box-shadow: 0 12px 26px -12px rgba(0,0,0,.6); }
.btn-dark:hover:not(:disabled) { box-shadow: 0 18px 32px -12px rgba(0,0,0,.7); }
.btn.ready { animation: ready 1.1s ease-out; }
@keyframes sheen { to { left: 150%; } }
@keyframes ready { 0% { box-shadow: 0 0 0 0 rgba(241,223,160,.8); } 100% { box-shadow: 0 0 0 20px rgba(241,223,160,0); } }

/* scroll progress */
.scrollbar { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.scrollbar i { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 12px rgba(241,223,160,.7); }

/* ---------- floating nav ---------- */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 100; padding-inline: 12px; pointer-events: none; }
.nav-pill { pointer-events: auto; width: min(1200px, 100%); margin-inline: auto; height: 66px; display: flex; align-items: center; gap: 1.2rem; padding: 0 10px 0 20px; border-radius: 999px; background: rgba(16, 14, 12, .55); border: 1px solid var(--line); backdrop-filter: blur(22px) saturate(1.4); box-shadow: 0 18px 40px -18px rgba(0,0,0,.8); transition: background .4s, height .4s var(--ease), box-shadow .4s; }
.nav.scrolled .nav-pill { height: 58px; background: rgba(12, 10, 9, .82); }
.brand { position: relative; display: block; flex: none; }
.brand img { display: block; height: 46px; width: auto; animation: logo-breathe 5s ease-in-out infinite; transition: height .4s var(--ease); }
.nav.scrolled .brand img { height: 40px; }
.menu { display: flex; align-items: center; gap: 1.9rem; margin-left: auto; }
.menu a { position: relative; color: #cfc9b8; text-decoration: none; font-weight: 500; font-size: .98rem; padding: .3rem 0; transition: color .25s; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.menu a:hover { color: #fff; }
.menu a:hover::after { transform: scaleX(1); }
.menu .menu-phone { color: var(--gold-hi); font-weight: 700; }
.burger { display: none; width: 46px; height: 46px; margin-left: auto; background: var(--glass-2); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; padding: 0; position: relative; }
.burger span { position: absolute; left: 14px; right: 14px; height: 2px; background: var(--gold-hi); border-radius: 2px; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }
@keyframes logo-breathe { 0%, 100% { filter: drop-shadow(0 4px 10px rgba(0,0,0,.6)) drop-shadow(0 0 6px rgba(200,176,104,.18)); } 50% { filter: drop-shadow(0 6px 14px rgba(0,0,0,.7)) drop-shadow(0 0 16px rgba(241,223,160,.5)); } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; padding: 132px 0 80px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .5; will-change: transform; }
.b1 { width: 560px; height: 560px; left: -140px; top: -120px; background: #c8b068; opacity: .28; animation: drift-1 24s ease-in-out infinite; }
.b2 { width: 520px; height: 520px; right: -120px; top: 30%; background: #8a3a28; opacity: .30; animation: drift-2 30s ease-in-out infinite; }
.b3 { width: 420px; height: 420px; left: 38%; bottom: -160px; background: #24407a; opacity: .26; animation: drift-3 28s ease-in-out infinite; }
@keyframes drift-1 { 50% { transform: translate(120px, 90px) scale(1.15); } }
@keyframes drift-2 { 50% { transform: translate(-100px, -60px) scale(1.1); } }
@keyframes drift-3 { 50% { transform: translate(-140px, -40px) scale(1.2); } }

.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 470px); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.lead { font-size: 1.22rem; color: #cdc7b6; max-width: 29em; margin: 1.3rem 0 1.6rem; }
.open-badge { display: inline-flex; align-items: center; gap: .6rem; padding: .35rem 1rem .35rem .8rem; border: 1px solid var(--line-2); background: var(--glass); backdrop-filter: blur(10px); border-radius: 999px; font-weight: 500; font-size: .95rem; margin-bottom: 1.1rem; }
.open-badge::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); animation: pulse 2.4s ease-out infinite; }
.open-badge.closed::before { background: var(--bad); animation-name: pulse-red; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,192,111,.6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(52,192,111,0); } }
@keyframes pulse-red { 0% { box-shadow: 0 0 0 0 rgba(255,122,107,.6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(255,122,107,0); } }

.h-line { display: block; }
.shimmer .w > span { background: linear-gradient(100deg, #b8a25a 10%, #fff7da 30%, #e6d395 42%, #b8a25a 62%, #f6e8b4 90%) 0 0 / 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 9s linear infinite; }
@keyframes shimmer { to { background-position: -260% 0; } }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chips a { display: inline-flex; align-items: center; gap: .55rem; padding: .6rem 1rem; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); text-decoration: none; font-weight: 500; font-size: .98rem; transition: background .3s, border-color .3s, transform .4s var(--ease); }
.chips a:hover { background: var(--glass-2); border-color: rgba(200,176,104,.55); transform: translateY(-2px); }
.chips svg { width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- the logo: float, shadow, glow, tilt, shine ---------- */
.hero-logo { position: relative; width: clamp(230px, 22vw, 310px); margin: 0 0 1.5rem; perspective: 900px; }
.logo-glow { position: absolute; inset: -18% -12%; background: radial-gradient(closest-side, rgba(241,223,160,.34), rgba(200,176,104,.10) 55%, transparent 72%); filter: blur(10px); animation: glow-pulse 6s ease-in-out infinite; pointer-events: none; }
.logo-float { position: relative; display: block; animation: logo-float 7s ease-in-out infinite; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); transform-style: preserve-3d; }
.logo-img { width: 100%; filter: drop-shadow(0 26px 22px rgba(0,0,0,.7)) drop-shadow(0 6px 8px rgba(0,0,0,.5)) drop-shadow(0 0 26px rgba(200,176,104,.25)); }
.logo-float::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.9) 50%, transparent 62%) 160% 0 / 260% 100% no-repeat;
  -webkit-mask: url("/images/logo.png") center / contain no-repeat; mask: url("/images/logo.png") center / contain no-repeat;
  animation: shine 8s ease-in-out 2.4s infinite; }
.logo-ground { position: absolute; left: 14%; right: 14%; bottom: -26px; height: 20px; background: radial-gradient(closest-side, rgba(0,0,0,.65), transparent); filter: blur(5px); animation: ground 7s ease-in-out infinite; }
@keyframes logo-float { 0%, 100% { translate: 0 0; rotate: -1deg; } 50% { translate: 0 -14px; rotate: 1.2deg; } }
@keyframes ground { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(.78); opacity: .5; } }
@keyframes glow-pulse { 0%, 100% { opacity: .65; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes shine { 0% { background-position: 160% 0; } 24%, 100% { background-position: -60% 0; } }
.js .hero .hero-logo { animation: logo-in 1.8s var(--ease) .15s both; }
@keyframes logo-in { from { opacity: 0; transform: translateY(30px) scale(.86); filter: blur(12px); } }

/* ---------- floating tools ---------- */
.tools { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.tool { position: absolute; left: var(--x); top: var(--y); width: var(--w); aspect-ratio: 1; opacity: .92;
  transform: translate(calc(var(--px, 0) * var(--depth, 0) * 1px), calc(var(--py, 0) * var(--depth, 0) * 1px)); transition: transform .8s var(--ease);
  filter: drop-shadow(0 10px 24px rgba(200,176,104,.28)); animation: tool-float var(--dur, 9s) ease-in-out var(--del, 0s) infinite; rotate: var(--r, 0deg); }
.tool svg { width: 100%; height: 100%; overflow: visible; display: block; }
.js .hero .tool { animation: tool-in 1.6s var(--ease) calc(1.2s + var(--del, 0s)) both, tool-float var(--dur, 9s) ease-in-out calc(2.8s + var(--del, 0s)) infinite; }
@keyframes tool-float { 0%, 100% { translate: 0 0; rotate: var(--r, 0deg); } 50% { translate: 0 -18px; rotate: calc(var(--r, 0deg) + 7deg); } }
@keyframes tool-in { from { opacity: 0; scale: .5; } }

/* tool part animations */
.sc-a, .sc-b, .rz, .clp, .brs { transform-box: view-box; }
.sc-a, .sc-b { transform-origin: 80px 90px; }
.sc-a { animation: snip-a 3.4s ease-in-out infinite; }
.sc-b { animation: snip-b 3.4s ease-in-out infinite; }
@keyframes snip-a { 0%, 62%, 100% { transform: rotate(0); } 10%, 36% { transform: rotate(11deg); } 22%, 48% { transform: rotate(0); } }
@keyframes snip-b { 0%, 62%, 100% { transform: rotate(0); } 10%, 36% { transform: rotate(-11deg); } 22%, 48% { transform: rotate(0); } }
.rz { transform-origin: 84px 87px; animation: razor 6s ease-in-out infinite; }
@keyframes razor { 0%, 100% { transform: rotate(0); } 40%, 60% { transform: rotate(-26deg); } }
.brs { transform-origin: 80px 142px; animation: brush-sway 5s ease-in-out infinite; }
@keyframes brush-sway { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
.clp { transform-origin: 80px 80px; animation: clip-buzz 3s ease-in-out infinite; }
@keyframes clip-buzz { 0%, 70%, 100% { transform: translateX(0); } 74% { transform: translateX(-1.6px); } 78% { transform: translateX(1.6px); } 82% { transform: translateX(-1.6px); } 86% { transform: translateX(1.6px); } 90% { transform: translateX(0); } }
.air path { stroke-dasharray: 8 14; animation: air 1.1s linear infinite; }
.air path:nth-child(2) { animation-delay: -.35s; }
.air path:nth-child(3) { animation-delay: -.7s; }
@keyframes air { to { stroke-dashoffset: -44; } }

/* ---------- booking card ---------- */
.ticket { position: relative; border-radius: var(--r-xl); background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04)); border: 1px solid var(--line); backdrop-filter: blur(26px) saturate(1.4); box-shadow: 0 50px 90px -30px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.16); scroll-margin-top: 96px; }
.ticket::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--a), transparent 0 58%, #f6e8b4 76%, #c8b068 82%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: beam 8s linear infinite; }
@keyframes beam { to { --a: 360deg; } }
.js .ticket { animation: ticket-in 1.4s var(--ease) .9s both; }
@keyframes ticket-in { from { opacity: 0; transform: translateY(50px) scale(.96); } }

.wizard { padding: clamp(1.2rem, 3.4vw, 1.9rem); min-height: 430px; }
.wizard h2 { font-size: 1.35rem; letter-spacing: -.02em; margin-bottom: .8rem; }
.wizard .mt { margin-top: 1.6rem; }

.progress { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.progress i { display: block; height: 5px; border-radius: 5px; background: linear-gradient(90deg, #f6e8b4, #c8b068) left center / 0% 100% no-repeat, rgba(255,255,255,.12); transition: background-size .8s var(--ease); }
.progress em { display: block; margin-top: .4rem; font-style: normal; font-size: .88rem; font-weight: 500; color: var(--muted); transition: color .4s; }
.progress li.active i, .progress li.is-done i { background-size: 100% 100%, auto; }
.progress li.active em { color: var(--text); font-weight: 700; }

.options { display: grid; gap: .55rem; }
.option { position: relative; display: block; }
.option input, .bpick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.option span { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; align-items: center; padding: .85rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(255,255,255,.045); transition: background .3s, border-color .3s, color .3s, transform .4s var(--ease), box-shadow .4s; }
.option b { font-weight: 700; font-size: 1.06rem; }
.option small { grid-column: 1; color: var(--muted); font-size: .92rem; line-height: 1.3; transition: color .3s; }
.option i { grid-row: 1 / span 2; grid-column: 2; font: 800 1.6rem var(--display); font-style: normal; color: var(--gold-hi); transition: color .3s; }
.option:hover span, .bpick:hover span { background: rgba(255,255,255,.09); border-color: var(--line-2); transform: translateY(-2px); }
.option input:checked + span, .bpick input:checked + span { background: var(--grad); border-color: transparent; color: #1a1409; box-shadow: 0 14px 34px -12px rgba(200,176,104,.8); transform: none; }
.option input:checked + span small { color: rgba(26,20,9,.72); }
.option input:checked + span i { color: #1a1409; }
.option input:focus-visible + span, .bpick input:focus-visible + span { outline: 3px solid var(--gold-hi); outline-offset: 2px; }

.barber-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.bpick { position: relative; display: block; }
.bpick span { display: block; text-align: center; padding: .8rem .4rem; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(255,255,255,.045); font-weight: 700; font-size: 1.05rem; transition: background .3s, border-color .3s, color .3s, transform .4s var(--ease), box-shadow .4s; }

.nav-row { display: flex; justify-content: space-between; gap: .8rem; margin-top: 1.7rem; }
.nav-row .btn { min-width: 124px; }

.dates { display: flex; gap: .5rem; overflow-x: auto; padding: .25rem .1rem .9rem; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--gold-lo) transparent; }
.date { flex: 0 0 64px; scroll-snap-align: start; text-align: center; padding: .55rem 0; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(255,255,255,.045); color: var(--text); font: inherit; cursor: pointer; transition: background .3s, border-color .3s, transform .4s var(--ease); }
.date small { display: block; font-size: .8rem; color: var(--muted); font-weight: 500; }
.date strong { display: block; font: 800 1.5rem/1.15 var(--display); }
.date em { display: block; font-style: normal; font-size: .78rem; color: var(--muted); }
.date:hover:not(:disabled) { border-color: var(--line-2); background: rgba(255,255,255,.09); transform: translateY(-2px); }
.date:disabled { opacity: .3; cursor: not-allowed; }
.date[aria-selected="true"] { background: var(--grad); border-color: transparent; color: #1a1409; box-shadow: 0 12px 28px -12px rgba(200,176,104,.8); }
.date[aria-selected="true"] small, .date[aria-selected="true"] em { color: rgba(26,20,9,.7); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: .5rem; min-height: 52px; max-height: 250px; overflow-y: auto; padding: 3px; scrollbar-width: thin; scrollbar-color: var(--gold-lo) transparent; }
.slot { padding: .62rem 0; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.045); color: var(--text); font: 700 1rem var(--sans); cursor: pointer; transition: background .3s, border-color .3s, transform .4s var(--ease); }
.slot:hover:not(:disabled) { border-color: var(--gold); background: rgba(200,176,104,.14); transform: translateY(-2px); }
.slot[aria-pressed="true"] { background: var(--grad); border-color: transparent; color: #1a1409; box-shadow: 0 10px 24px -10px rgba(200,176,104,.9); }
.slot:disabled { opacity: .28; text-decoration: line-through; cursor: not-allowed; }
.hint { color: var(--muted); margin: 0; grid-column: 1 / -1; }
.hint a { color: var(--gold-hi); }

.fields { display: grid; gap: .95rem; }
.fields label { display: flex; flex-direction: column; gap: .35rem; font-weight: 500; font-size: .95rem; color: var(--muted); }
input[type=text], input[type=tel] { font: 1.12rem var(--sans); padding: .85rem 1rem; border: 1px solid var(--line-2); border-radius: var(--r-md); background: rgba(0,0,0,.35); color: var(--text); width: 100%; transition: border-color .3s, box-shadow .3s; }
input::placeholder { color: #6f6a5c; }
input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(200,176,104,.25); }
input.invalid { border-color: var(--bad); box-shadow: 0 0 0 4px rgba(255,122,107,.18); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.recap { margin: 1.4rem 0 0; padding: .4rem 1.1rem; background: rgba(0,0,0,.28); border: 1px dashed var(--line-2); border-radius: var(--r-md); }
.recap div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.recap div:last-child { border-bottom: 0; }
.recap dt { color: var(--muted); }
.recap dd { margin: 0; font-weight: 700; text-align: right; }
.recap-total dd { font: 800 1.7rem var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error { background: rgba(255,122,107,.12); border: 1px solid rgba(255,122,107,.5); color: #ffc2ba; padding: .7rem .95rem; border-radius: 14px; margin: 1rem 0 0; }

.done { text-align: center; padding: 1.2rem 0; position: relative; }
.done-icon { display: block; width: 80px; height: 80px; margin: 0 auto .9rem; overflow: visible; }
.done-icon circle { fill: var(--ok); stroke: none; transform-origin: center; animation: ring-pop .6s var(--spring) both; }
.done-icon path { fill: none; stroke: #fff; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s ease-out .4s forwards; }
@keyframes ring-pop { from { transform: scale(.2); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h2, .done p, .done .btn { animation: fade-up .9s var(--ease) both; }
.done h2 { animation-delay: .55s; } .done p:nth-of-type(1) { animation-delay: .7s; } .done p:nth-of-type(2) { animation-delay: .85s; } .done p:nth-of-type(3) { animation-delay: 1s; } .done .btn { animation-delay: 1.15s; }
.done .ref strong { font-family: var(--display); font-size: 1.2rem; letter-spacing: .06em; background: rgba(0,0,0,.35); border: 1px dashed var(--line-2); padding: .15rem .7rem; border-radius: 10px; color: var(--gold-hi); }
.done .small { color: var(--muted); }
.done a { color: var(--gold-hi); }
#confetti { position: absolute; left: 50%; top: 52px; width: 0; height: 0; pointer-events: none; z-index: 5; }
#confetti i { position: absolute; width: 8px; height: 13px; left: -4px; top: -6px; border-radius: 2px; }

/* wizard step motion */
.step.enter-fwd  { animation: step-fwd .8s var(--ease); }
.step.enter-back { animation: step-back .8s var(--ease); }
@keyframes step-fwd  { from { opacity: 0; transform: translateX(40px); filter: blur(6px); } }
@keyframes step-back { from { opacity: 0; transform: translateX(-40px); filter: blur(6px); } }
.step.enter-fwd .option, .step.enter-back .option { animation: fade-up .8s var(--ease) both; }
.step .option:nth-child(2) { animation-delay: .08s !important; }
.step .option:nth-child(3) { animation-delay: .16s !important; }
.step.enter-fwd .bpick, .step.enter-back .bpick { animation: fade-up .8s var(--ease) .28s both; }
.step.enter-fwd .date, .step.enter-back .date { animation: fade-in .8s ease-out both; }
.slot { animation: slot-in .6s var(--ease) both; animation-delay: calc(min(var(--i, 0), 20) * 28ms); }
@keyframes slot-in { from { opacity: 0; transform: translateY(12px) scale(.92); } }
.option input:checked + span, .bpick input:checked + span, .date[aria-selected="true"], .slot[aria-pressed="true"] { animation: select-pop .5s var(--spring); }
@keyframes select-pop { 0% { transform: scale(.95); } 100% { transform: scale(1); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(22px); } }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- ticker ---------- */
.ticker { position: relative; padding: 2.2rem 0; overflow: hidden; border-block: 1px solid var(--line); background: rgba(255,255,255,.015);
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-row { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.ticker-row + .ticker-row { margin-top: .4rem; animation-direction: reverse; animation-duration: 75s; }
.ticker:hover .ticker-row { animation-play-state: paused; }
.tick-set { display: flex; align-items: center; flex: none; }
.tick { font: 800 clamp(2.4rem, 6vw, 4.8rem)/1.1 var(--display); letter-spacing: -.03em; white-space: nowrap; padding: 0 1.4rem; color: transparent; -webkit-text-stroke: 1.4px rgba(200,176,104,.7); }
.tick.fill { -webkit-text-stroke: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; }
.tick-ico { width: clamp(40px, 5vw, 64px); height: clamp(40px, 5vw, 64px); flex: none; opacity: .95; }
.tick-ico svg { width: 100%; height: 100%; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem 4rem; margin-bottom: clamp(2rem, 5vw, 3.4rem); }
.sec-head h2 { margin: 0; max-width: 11em; }
.sec-sub { color: var(--muted); max-width: 24em; margin: 0; }

.prices { padding: clamp(72px, 10vw, 128px) 0 clamp(96px, 12vw, 150px); position: relative; z-index: 1; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: stretch; }
.tile { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: 400px; padding: 2rem; border-radius: var(--r-xl); background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); transition: transform .6s var(--ease), border-color .4s, background .4s; }
.tile:hover { transform: translateY(-8px); border-color: rgba(200,176,104,.5); }
.tile.featured { background: linear-gradient(180deg, rgba(200,176,104,.20), rgba(255,255,255,.04) 70%); border-color: rgba(200,176,104,.5); }
.tile.featured::after { content: "Most popular"; position: absolute; top: 1.4rem; right: 1.4rem; font: 700 .8rem var(--sans); color: #1a1409; background: var(--grad); padding: .3rem .8rem; border-radius: 999px; }
.tile .tool-box { width: 132px; height: 132px; margin-bottom: auto; filter: drop-shadow(0 10px 22px rgba(200,176,104,.35)); transition: transform .7s var(--ease); }
.tile:hover .tool-box { transform: scale(1.1) rotate(-6deg); }
.tile .tool-box svg { width: 100%; height: 100%; overflow: visible; }
.tile:hover .sc-a { animation-duration: 1.7s; }
.tile:hover .sc-b { animation-duration: 1.7s; }
.tile h3 { font-size: 1.5rem; margin: 1.6rem 0 .1rem; }
.tile .price { font: 800 clamp(4.2rem, 7vw, 5.8rem)/1 var(--display); letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin: .1rem 0 .5rem; font-variant-numeric: lining-nums tabular-nums; }
.tile p { color: var(--muted); margin: 0 0 1.5rem; max-width: 20em; }
.tile .btn { align-self: flex-start; }

/* shared pointer spotlight */
.glow { position: relative; }
.glow::before, .tile::before, .b-card::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; pointer-events: none; transition: opacity .5s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(241,223,160,.16), transparent 60%); }
.glow:hover::before, .tile:hover::before, .b-card:hover::before { opacity: 1; }

/* barbers: light panel stacked over the dark page */
.barbers { position: relative; z-index: 2; margin-top: -52px; background: var(--paper); color: var(--ink); border-radius: 52px 52px 0 0; padding: clamp(72px, 10vw, 120px) 0 0; }
.barbers .sec-sub { color: #6c675a; }
.b-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.b-card { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; padding: 2rem; min-height: 340px; border-radius: var(--r-xl); background: #fff; border: 1px solid #e7e1d2; box-shadow: 0 30px 60px -36px rgba(22,18,14,.35); transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .4s; }
.b-card:hover { transform: translateY(-8px); border-color: var(--gold); box-shadow: 0 40px 70px -34px rgba(141,118,50,.55); }
.b-card::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(200,176,104,.22), transparent 60%); }
.b-card .watermark { position: absolute; right: -26px; top: -14px; width: 190px; height: 190px; z-index: -1; opacity: .16; animation: slow-spin 40s linear infinite; }
.b-card .watermark svg { width: 100%; height: 100%; }
@keyframes slow-spin { to { rotate: 360deg; } }
.avatar { position: relative; width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; font: 800 2.4rem var(--display); color: var(--gold-hi); background: radial-gradient(circle at 30% 25%, #3a2f22, #14110e); box-shadow: 0 14px 30px -12px rgba(0,0,0,.6), inset 0 0 0 2px rgba(200,176,104,.6); margin-bottom: auto; }
.avatar::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1.5px dashed rgba(141,118,50,.55); animation: slow-spin 24s linear infinite; }
.b-card h3 { font-size: clamp(2.2rem, 4vw, 3rem); margin: 1.6rem 0 .6rem; }
.next-free { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.2rem; padding: .35rem .85rem; border-radius: 999px; background: #f3f0e9; border: 1px solid #e3dcc9; color: #5a5446; font-size: .95rem; }
.next-free b { color: var(--ink); }
.next-free::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex: none; animation: pulse 2.4s ease-out infinite; }
.next-free.none::before { background: #c9c2ae; animation: none; }

/* scissors cut line (scroll driven) */
.cutline { --p: 0; padding: clamp(56px, 8vw, 96px) 0 clamp(88px, 11vw, 128px); }
.cut-track { position: relative; height: 56px; }
.cut-done, .cut-todo { position: absolute; top: 50%; height: 0; }
.cut-done { left: 0; width: calc(var(--p) * 100%); border-top: 2px dashed #b5a05a; }
.cut-todo { left: calc(var(--p) * 100%); right: 0; border-top: 2px solid var(--ink); }
.scis-wrap { position: absolute; top: 50%; left: calc(var(--p) * 100%); width: 108px; height: 108px; transform: translate(-72%, -50%) rotate(90deg); color: var(--ink); }
.scis-wrap svg { width: 100%; height: 100%; overflow: visible; }
.scis-wrap .sc-a, .scis-wrap .sc-b { animation-duration: .8s; animation-name: snip-fast-a; }
.scis-wrap .sc-b { animation-name: snip-fast-b; }
@keyframes snip-fast-a { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(12deg); } }
@keyframes snip-fast-b { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-12deg); } }

/* reviews */
.reviews { position: relative; z-index: 3; margin-top: -52px; background: var(--bg-2); border-radius: 52px 52px 0 0; padding: clamp(80px, 11vw, 140px) 0; overflow: hidden; box-shadow: 0 -30px 60px -30px rgba(0,0,0,.6); }
.tools-r .tool { filter: drop-shadow(0 10px 22px rgba(200,176,104,.22)); opacity: .55; }
.review-panel { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; padding: clamp(1.6rem, 5vw, 3.4rem); border-radius: var(--r-xl); background: var(--glass); border: 1px solid var(--line); }
.shopfront { margin: 0; background: #f6f3ec; padding: 10px 10px 0; border-radius: 6px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); rotate: -2.5deg; transition: rotate .8s var(--ease), transform .8s var(--ease); }
.review-panel:hover .shopfront { rotate: 0deg; transform: scale(1.03); }
.shopfront img { width: 100%; border-radius: 2px; }
.shopfront figcaption { color: #1c1812; font: 700 1.1rem var(--display); text-align: center; padding: .65rem 0 .75rem; }
.review-copy h2 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 13em; }
.review-copy p { color: #cdc7b6; max-width: 32em; font-size: 1.12rem; margin-bottom: 1.6rem; }

/* visit */
.visit { position: relative; z-index: 3; background: var(--bg-2); padding: 0 0 clamp(72px, 10vw, 130px); }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.2rem; }
.cell { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl); background: var(--glass); border: 1px solid var(--line); padding: 2rem; }
.cell-address { grid-column: span 5; display: flex; flex-direction: column; justify-content: space-between; gap: 1.4rem; }
.cell-hours { grid-column: span 5; }
.cell-map { grid-column: 6 / span 7; grid-row: 1 / span 2; padding: 0; min-height: 420px; }
.cell-address { grid-column: 1 / span 5; }
.cell-hours { grid-column: 1 / span 5; }
.addr-link { text-decoration: none; }
address { font-style: normal; font-size: 1.4rem; line-height: 1.3; color: #d6cfbc; }
address strong { display: block; font: 800 clamp(2.2rem, 4vw, 3rem)/1.05 var(--display); letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.visit-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.mail { margin: 0; }
.mail a { color: var(--muted); text-underline-offset: 4px; }
.cell h3 { margin-bottom: 1rem; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: .8rem 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; transition: color .3s; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours td { text-align: right; font-weight: 700; }
.hours tr.today th, .hours tr.today td { color: var(--gold-hi); font-weight: 700; }
.cell-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9) hue-rotate(180deg) brightness(.9); transition: filter .8s var(--ease); }
.cell-map:hover iframe { filter: none; }

/* footer */
.footer { position: relative; z-index: 3; background: var(--bg-2); text-align: center; padding: clamp(40px, 6vw, 80px) 0 3rem; border-top: 1px solid var(--line); color: #bdb7a6; }
.foot-logo { width: min(320px, 76%); margin: 0 auto 2.4rem; }
.footer p { margin: 0 0 .4rem; }
.footer a { color: var(--gold-hi); text-decoration: none; }
.footer .copy { margin-top: 1.2rem; font-size: .9rem; color: #7e7868; }

.sticky-book { display: none; }

/* ---------- text + section reveals (slow and soft) ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .04em .02em .16em; margin-bottom: -.16em; }
.w > span { display: inline-block; }
.js [data-split] .w > span { opacity: 0; transform: translateY(112%) rotate(3deg); filter: blur(10px);
  transition: transform 1.5s var(--ease) calc(var(--i, 0) * 110ms), opacity 1.2s ease calc(var(--i, 0) * 110ms), filter 1.3s ease calc(var(--i, 0) * 110ms); }
.js [data-split].in .w > span { opacity: 1; transform: none; filter: none; }
.js .shimmer.in .w > span, .js .shimmer .w > span { /* keeps gradient while animating */ }

.js .reveal { opacity: 0; transition: opacity 1.3s var(--ease) var(--d, 0ms), transform 1.4s var(--ease) var(--d, 0ms), filter 1.2s ease var(--d, 0ms); }
.js .reveal[data-fx="up"]   { transform: translateY(40px); filter: blur(6px); }
.js .reveal[data-fx="card"] { transform: translateY(70px) scale(.97); filter: blur(4px); }
.js .reveal[data-fx="drop"] { transform: translateY(-60px) rotate(-8deg); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
.js .shopfront.reveal.in { transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .hero { min-height: 0; padding-top: 112px; }
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero-copy { display: contents; }
  .hero-logo { order: 1; align-self: flex-start; width: 210px; margin-bottom: 1.6rem; }
  .open-badge { order: 2; align-self: flex-start; }
  .hero h1 { order: 3; }
  .lead { order: 4; }
  .ticket { order: 5; width: 100%; max-width: 560px; }
  .chips { order: 6; margin-top: 1.8rem; }
  .tools .tool[data-tool="razor"], .tools .tool[data-tool="comb"] { display: none; }
  .tiles, .b-cards { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .tile, .b-card { min-height: 0; }
  .tile .tool-box { margin-bottom: 1.4rem; }
  .avatar { margin-bottom: 1rem; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .review-panel { grid-template-columns: 1fr; }
  .shopfront { max-width: 300px; }
  .bento { grid-template-columns: 1fr; }
  .cell-address, .cell-hours, .cell-map { grid-column: auto; grid-row: auto; }
  .cell-map { min-height: 340px; }
}
@media (max-width: 860px) {
  .nav-cta { display: none; }
  .burger { display: block; }
  .menu { position: absolute; top: calc(100% + 10px); left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 0; padding: .6rem 1.4rem 1.2rem; border-radius: var(--r-lg); background: rgba(14, 12, 10, .94); backdrop-filter: blur(24px); border: 1px solid var(--line-2); margin: 0; opacity: 0; transform: translateY(-14px) scale(.98); visibility: hidden; transition: opacity .5s var(--ease), transform .6s var(--ease), visibility .5s; }
  .menu.open { opacity: 1; transform: none; visibility: visible; }
  .menu a { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; }
  .menu a::after { display: none; }
  .nav-pill { padding: 0 10px 0 16px; }
}
@media (max-width: 640px) {
  .hero-logo { width: 180px; }
  .tools .tool[data-tool="dryer"] { --w: 110px; }
  .tools .tool[data-tool="scissors"] { --w: 96px; --x: 70% !important; --y: 6% !important; opacity: .55; }
  .tools .tool[data-tool="dryer"] { --x: 66% !important; --y: 40% !important; opacity: .35; }
  .tools .tool[data-tool="brush"] { --w: 90px; --x: 78% !important; --y: 90% !important; opacity: .45; }
  .nav-row .btn { flex: 1; min-width: 0; }
  .tile, .b-card, .cell { padding: 1.5rem; }
  .footer { padding-bottom: 6.5rem; }
  .sticky-book { display: block; opacity: 0; pointer-events: none; transition: opacity .5s var(--ease), transform .5s var(--ease); transform: translateY(20px); position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 14px; text-align: center; padding: 1rem; border-radius: 999px; background: var(--grad); color: #1a1409; font: 700 1.05rem var(--sans); text-decoration: none; box-shadow: 0 18px 40px -10px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.2) inset; }
  .sticky-book.show { opacity: 1; pointer-events: auto; transform: none; }
}

/* ---------- reduced motion: no movement, everything visible ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-split] .w > span, .js .reveal, .js .reveal[data-fx] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .js .hero-logo, .js .ticket, .js .hero .tool { opacity: 1 !important; }
}
