/* ───────────────────────── Tokens ───────────────────────── */
:root {
  color-scheme: dark;
  /* Black, gold & purple barbershop palette */
  --ink: #0b090e;
  --ink-2: #131017;
  --ink-3: #1b1720;
  --ink-4: #252030;
  --line: #322a3d;
  --line-soft: #211c29;
  --bone: #f4ecdb;
  --bone-2: #d9cfbb;
  --muted: #9c93a6;
  --accent: #d4af37;          /* gold */
  --accent-hi: #e8c860;
  --accent-ink: #171204;
  --purple: #6d34b8;
  --purple-hi: #b28af5;       /* purple that reads on black */
  --purple-deep: #2a1245;
  --gold-text: linear-gradient(180deg, #fff3c4 0%, #ecc964 30%, #c99a2e 64%, #8f6a1a 100%);
  --pole: repeating-linear-gradient(135deg, var(--purple) 0 12px, var(--bone) 12px 18px, var(--accent) 18px 30px, var(--bone) 30px 36px);
  --ok: #4ade80;

  --display: 'Big Shoulders Display', 'Impact', 'Arial Narrow', sans-serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --r: 14px;
  --r-sm: 9px;
  --gutter: 16px;
  --max: 1200px;
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 760px) { :root { --gutter: 32px; --nav-h: 72px; } }

/* ───────────────────────── Base ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 500 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

h1, h2, h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .9; letter-spacing: -.005em; margin: 0; }
h2 { font-size: clamp(44px, 7vw, 88px); }
h3 { font-size: clamp(28px, 4vw, 40px); }

.demo-banner {
  background: repeating-linear-gradient(-45deg, #2a1a12 0 14px, #24160f 14px 28px);
  color: var(--bone-2); text-align: center; font-size: 14px; padding: 8px var(--gutter);
  border-bottom: 1px solid #3d2418;
}
.demo-banner .mono { color: var(--accent); margin-right: 6px; }

/* ───────────────────────── Buttons ───────────────────────── */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn-sm { --h: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { --h: 54px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hi); }
.btn-ghost { border-color: var(--line); background: transparent; color: var(--bone); }
.btn-ghost:hover { border-color: var(--bone-2); }
.btn[disabled] { opacity: .35; cursor: not-allowed; transform: none; }
.linkish { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; }
.text-link { color: var(--bone-2); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; font-weight: 600; }
.text-link:hover { color: var(--bone); border-color: var(--accent); }

/* ───────────────────────── Nav ───────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 40; height: var(--nav-h);
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line-soft); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; }
.brand-word { font-family: var(--display); font-weight: 800; font-size: 24px; text-transform: uppercase; letter-spacing: .01em; }
.dot { color: var(--accent); }
.nav-links { display: none; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--bone-2); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--bone); }
@media (min-width: 860px) { .nav-links { display: flex; } }

/* ───────────────────────── Hero ───────────────────────── */
.hero { padding: 40px 0 56px; position: relative; }
.hero::before { /* faint grain-like vignette */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 60% at 85% 15%, rgba(109, 52, 184, .30), transparent 62%), radial-gradient(50% 45% at 5% 95%, rgba(212, 175, 55, .08), transparent 70%);
}
.hero-grid { display: grid; gap: 44px; align-items: center; position: relative; }
@media (min-width: 960px) { .hero { padding: 72px 0 96px; } .hero-grid { grid-template-columns: 1.25fr .75fr; gap: 64px; } }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--bone-2); font-weight: 600; font-size: 14px;
  padding: 6px 14px 6px 10px; border: 1px solid var(--line); border-radius: 999px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status-dot.open { background: var(--ok); box-shadow: 0 0 0 4px rgba(74, 222, 128, .15); }

.hero-title { font-size: clamp(64px, 14.5vw, 168px); line-height: .84; letter-spacing: -.01em; }
.hero-title span { display: inline-block; animation: rise .8s var(--ease) both; }
.hero-title span:nth-child(2) { animation-delay: .06s; }
.hero-title span:nth-child(3) { animation-delay: .12s; }
.hero-title span:nth-child(4) { animation-delay: .18s; }
.outline { color: transparent; -webkit-text-stroke: 2px var(--bone); }
@supports not (-webkit-text-stroke: 2px red) { .outline { color: var(--bone-2); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

.lede { max-width: 34ch; font-size: clamp(17px, 2vw, 20px); color: var(--bone-2); margin: 26px 0 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 480px) { .hero-ctas .btn { flex: 1 1 100%; } }

.next-slot {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; text-decoration: none;
  font-size: 15px; color: var(--bone-2); padding: 10px 16px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line-soft);
}
.next-slot strong { color: var(--bone); }
.next-slot:hover { border-color: var(--line); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); position: relative; flex: none; }
.pulse::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

.hero-photo {
  width: min(100%, 440px); aspect-ratio: 4/5; border-radius: 22px; overflow: hidden; position: relative;
  border: 1px solid var(--line); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: var(--pole); }

/* ───────────────────────── Marquee ───────────────────────── */
.marquee { border-block: 1px solid var(--line-soft); overflow: hidden; background: var(--ink-2); }
.marquee-track { display: flex; width: max-content; gap: 28px; padding: 16px 0; animation: scroll 32s linear infinite; }
.marquee span { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 26px; letter-spacing: .02em; }
.marquee i { font-style: normal; color: var(--accent); font-size: 18px; align-self: center; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ───────────────────────── Sections ───────────────────────── */
.section { padding: 80px 0; }
.section-alt { background: var(--ink-2); border-block: 1px solid var(--line-soft); }
@media (min-width: 960px) { .section { padding: 120px 0; } }
.section-head { display: grid; gap: 14px; margin-bottom: 44px; align-items: end; }
@media (min-width: 860px) {
  .section-head { grid-template-columns: 1fr auto; }
  .section-head .kicker { grid-column: 1 / -1; }
}
.kicker { color: var(--accent); margin: 0; }
.section-note { color: var(--muted); margin: 0; max-width: 36ch; }

/* ───────────────────────── Gallery ───────────────────────── */
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; grid-auto-flow: dense; }
@media (min-width: 760px) { .gallery { gap: 14px; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; } }
.tile { position: relative; border-radius: var(--r); overflow: hidden; background: var(--ink-3); border: 0; padding: 0; cursor: zoom-in; }
/* Every 6 tiles fill a clean block: one big, two small, three wide */
.tile:nth-child(6n+1) { grid-row: span 2; }
.tile:nth-child(6n+4) { grid-column: span 2; }
@media (min-width: 760px) {
  .tile:nth-child(6n+1) { grid-column: span 2; }
  .tile:nth-child(6n+5), .tile:nth-child(6n) { grid-column: span 2; }
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tile:hover img { transform: scale(1.04); }
.tile-cap { position: absolute; left: 10px; bottom: 10px; padding: 5px 10px; border-radius: 999px; background: rgba(14, 14, 15, .75);
  backdrop-filter: blur(6px); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--bone); }
.tile-style { cursor: default; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; text-align: left;
  background: linear-gradient(170deg, #17121e 0%, #241536 55%, #3a1d63 100%); }
.tile-style:nth-child(even) { background: linear-gradient(160deg, #0e0b12 0%, #1b1622 55%, #2c2416 100%); }
.tile-style:nth-child(3n) { background: linear-gradient(200deg, #0e0b12 10%, #2a1245 60%, rgba(212, 175, 55, .55) 145%); }
.tile-style .mono { color: rgba(242, 237, 228, .6); }
.tile-style strong { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(30px, 4vw, 46px); line-height: .88; }

/* ───────────────────────── Services menu ───────────────────────── */
.menu { display: grid; gap: 0 56px; }
@media (min-width: 860px) { .menu { grid-template-columns: 1fr 1fr; } }
.svc {
  display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line);
  padding: 22px 0; cursor: pointer; transition: padding .25s var(--ease);
}
.svc:hover { padding-left: 8px; }
.svc:hover .svc-name { color: var(--accent); }
.svc-top { display: flex; align-items: baseline; gap: 12px; }
.svc-name { font-family: var(--display); font-weight: 800; font-size: 30px; text-transform: uppercase; line-height: 1; transition: color .2s; }
.svc-leader { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-6px); min-width: 20px; }
.svc-price { font-family: var(--display); font-weight: 800; font-size: 30px; }
.svc-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 8px; color: var(--muted); font-size: 15px; }
.svc-meta .mono { color: var(--bone-2); font-size: 11px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; }
.badge { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink);
  background: var(--accent); padding: 3px 8px; border-radius: 6px; font-weight: 500; }

/* ───────────────────────── Booking ───────────────────────── */
.booker { display: grid; gap: 20px; align-items: start; }
@media (min-width: 960px) { .booker { grid-template-columns: 1fr 360px; gap: 32px; } }
.booker-steps { display: grid; gap: 16px; }
.step { margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--ink-2); min-width: 0; transition: opacity .3s; }
.step[disabled] { opacity: .4; }
.step legend { float: left; width: 100%; padding: 0; margin-bottom: 18px; font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase; }
.step legend + * { clear: both; }
.step-num { color: var(--accent); margin-right: 8px; font-size: 13px; vertical-align: 4px; }

.service-options { display: grid; gap: 8px; }
@media (min-width: 640px) { .service-options { grid-template-columns: 1fr 1fr; } }
.opt {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--r-sm);
  background: var(--ink-3); border: 1px solid var(--line-soft); cursor: pointer; text-align: left; transition: border-color .2s, background .2s;
}
.opt:hover { border-color: var(--line); }
.opt[aria-checked="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--ink-3)); }
.opt-name { font-weight: 700; font-size: 15px; line-height: 1.3; }
.opt-sub { display: block; color: var(--muted); font-size: 13px; font-weight: 500; }
.opt-price { font-family: var(--display); font-weight: 800; font-size: 22px; }

.date-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; margin: 0 -2px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.day {
  flex: 0 0 74px; scroll-snap-align: start; display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border-radius: var(--r-sm);
  background: var(--ink-3); border: 1px solid var(--line-soft); cursor: pointer;
}
.day:hover:not([disabled]) { border-color: var(--line); }
.day[aria-checked="true"] { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.day[disabled] { opacity: .35; cursor: not-allowed; }
.day-dow { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.day-num { font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1; }
.day-avail { font-size: 11px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.day[aria-checked="true"] .day-avail { color: #5a554d; }
.day-avail.few { color: var(--accent); }

.times { margin-top: 8px; min-height: 60px; }
.time-group + .time-group { margin-top: 16px; }
.time-group h4 { margin: 0 0 8px; color: var(--muted); font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot {
  height: 44px; border-radius: var(--r-sm); background: var(--ink-3); border: 1px solid var(--line-soft); cursor: pointer; font-weight: 700; font-size: 15px;
  transition: border-color .2s, background .2s;
}
.slot:hover { border-color: var(--line); }
.slot[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.times-empty { color: var(--muted); padding: 10px 0; margin: 0; }
.skeleton { height: 44px; border-radius: var(--r-sm); background: linear-gradient(90deg, var(--ink-3), var(--ink-4), var(--ink-3)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.fields { display: grid; gap: 14px; }
@media (min-width: 640px) { .fields { grid-template-columns: 1fr 1fr; } .field-wide { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; font-weight: 700; }
.field em { font-style: normal; font-weight: 500; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: var(--r-sm); background: var(--ink); border: 1px solid var(--line);
  font-size: 16px; font-weight: 500; resize: vertical; transition: border-color .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #5f5b55; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field input[aria-invalid="true"] { border-color: var(--accent); }

/* Ticket summary */
.ticket { background: var(--bone); color: var(--ink); border-radius: var(--r); position: relative; }
@media (min-width: 960px) { .ticket { position: sticky; top: calc(var(--nav-h) + 20px); } }
.ticket-top, .ticket-bottom { padding: 22px; }
.ticket-label { color: #7a7368; margin: 0 0 12px; }
.ticket-rows { margin: 0; display: grid; gap: 10px; }
.ticket-rows div { display: flex; justify-content: space-between; gap: 16px; }
.ticket-rows dt { color: #7a7368; font-size: 14px; }
.ticket-rows dd { margin: 0; font-weight: 700; text-align: right; font-size: 15px; }
.ticket-total { padding-top: 10px; border-top: 1px solid #d8d1c4; }
.ticket-total dd { font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1; }
.ticket-perf { height: 0; border-top: 2px dashed #c9c1b3; margin: 0 18px; position: relative; }
.ticket-perf::before, .ticket-perf::after { content: ''; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); }
.ticket-perf::before { left: -30px; }
.ticket-perf::after { right: -30px; }
.ticket .btn-accent[disabled] { opacity: 1; background: #d3ccc0; color: #8a8378; }
.ticket-fine { margin: 12px 0 0; font-size: 13px; color: #7a7368; text-align: center; line-height: 1.4; }
.form-error { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: #ffe2dc; color: #8f1d0a; font-size: 14px; font-weight: 600; }

/* Confirmation */
.confirmed { outline: none; }
.confirmed-card {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 5vw, 48px); position: relative; overflow: hidden;
}
.confirmed-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 6px;
  background: var(--pole); }
.confirmed-kicker { color: var(--ok); margin: 0 0 14px; }
.confirmed-kicker.pending { color: var(--accent); }
.request-text {
  white-space: pre-wrap; margin: 0 0 22px; padding: 14px 16px; max-width: 60ch; border-radius: var(--r-sm);
  background: var(--ink); border: 1px dashed var(--line); color: var(--bone-2); font: 400 13px/1.6 var(--mono);
}
.confirmed-card h3 { font-size: clamp(44px, 7vw, 76px); }
.confirmed-when { font-size: clamp(18px, 2.4vw, 22px); font-weight: 700; margin: 16px 0 6px; }
.confirmed-note { color: var(--muted); margin: 0 0 24px; max-width: 52ch; }
.confirmed-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 520px) { .confirmed-actions .btn { flex: 1 1 100%; } }

/* ───────────────────────── About ───────────────────────── */
.about-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .about-grid { grid-template-columns: .8fr 1.2fr; gap: 72px; } }
.about-art { aspect-ratio: 4/5; border-radius: 22px; overflow: hidden; position: relative; border: 1px solid var(--line);
  background: linear-gradient(180deg, #0e0b12 0%, #1d1428 50%, #3a1d63 100%); display: grid; place-items: center; max-width: 440px; }
.about-art img { width: 100%; height: 100%; object-fit: cover; }
.about-mono { font-family: var(--display); font-weight: 900; font-size: 260px; line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(212, 175, 55, .65); }
.about-copy p { color: var(--bone-2); font-size: 18px; max-width: 52ch; margin: 22px 0 0; }

/* ───────────────────────── Reviews ───────────────────────── */
.reviews { display: grid; gap: 14px; margin-bottom: 28px; }
@media (min-width: 760px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review { margin: 0; padding: 24px; border-radius: var(--r); background: var(--ink-2); border: 1px solid var(--line-soft); }
.review p { margin: 0 0 16px; font-size: 18px; }
.review cite { font-style: normal; color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.review .stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 10px; }

/* ───────────────────────── Policies ───────────────────────── */
.policies { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; }
@media (min-width: 760px) { .policies { grid-template-columns: 1fr 1fr; } }
.policy { background: var(--ink); padding: 26px; }
.policy h3 { font-size: 26px; margin-bottom: 10px; }
.policy p { margin: 0; color: var(--bone-2); }

/* ───────────────────────── Visit ───────────────────────── */
.visit-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 860px) { .visit-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.visit-address { font-style: normal; font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; margin: 26px 0 24px; display: grid; gap: 6px; }
.visit-address small { font-size: 15px; color: var(--muted); font-weight: 500; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hours-card { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; background: var(--ink); }
.hours-label { color: var(--muted); margin: 0 0 8px; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 16px; }
.hours tr:last-child td { border-bottom: 0; }
.hours td:last-child { text-align: right; font-weight: 700; }
.hours .closed td:last-child { color: var(--muted); font-weight: 500; }
.hours .today td { color: var(--accent); }
.hours .today td:first-child::after { content: ' · today'; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }

/* ───────────────────────── Footer ───────────────────────── */
.footer { padding: 64px 0 calc(120px + var(--badge-h, 0px)); }
@media (min-width: 860px) { .footer { padding-bottom: calc(56px + var(--badge-h, 0px)); } }
.footer-inner { display: grid; gap: 22px; }
.footer-word { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .82; margin: 0;
  font-size: clamp(56px, 13vw, 180px); letter-spacing: -.01em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-links a, .footer-links button { color: var(--bone-2); text-decoration: none; font-weight: 600; }
.footer-links a:hover, .footer-links button:hover { color: var(--accent); }
.owner-link { margin-left: auto; color: var(--muted) !important; }
.footer-fine { color: var(--muted); margin: 0; }

/* ───────────────────────── Mobile book bar ───────────────────────── */
.book-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--badge-h, 0px) + env(safe-area-inset-bottom)); z-index: 50;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 18px;
  background: color-mix(in srgb, var(--ink-3) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); text-decoration: none; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .7);
  /* Hidden: push it fully below the screen, past the badge offset too */
  transform: translateY(calc(100% + 40px + var(--badge-h, 0px) + env(safe-area-inset-bottom))); transition: transform .4s var(--ease);
}
.book-bar.show { transform: none; }
.book-bar span:first-child { display: grid; line-height: 1.25; }
.book-bar small { color: var(--muted); font-size: 13px; }
.book-bar-cta { background: var(--accent); color: var(--accent-ink); font-weight: 800; padding: 12px 16px; border-radius: 12px; font-size: 15px; }
@media (min-width: 860px) { .book-bar { display: none; } }

/* ───────────────────────── Dialogs ───────────────────────── */
dialog { border: 0; padding: 0; background: none; color: inherit; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(5, 5, 6, .85); backdrop-filter: blur(4px); }
.lightbox[open] { display: grid; place-items: center; width: 100vw; height: 100dvh; padding: 56px var(--gutter) 24px; }
.lightbox img { max-width: min(100%, 1000px); max-height: calc(100dvh - 120px); border-radius: 12px; object-fit: contain; }
.lightbox-cap { color: var(--bone-2); margin: 12px 0 0; }
.lightbox-close { position: fixed; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--ink-2); cursor: pointer; font-size: 16px; }
.sheet[open] { position: fixed; inset: auto 0 0 0; margin: 0 auto; width: min(100%, 460px); background: var(--ink-2); border: 1px solid var(--line);
  border-radius: 22px 22px 0 0; padding: 26px var(--gutter) calc(24px + env(safe-area-inset-bottom)); animation: up .35s var(--ease); }
.sheet h3 { font-size: 34px; margin-bottom: 14px; }
.sheet ol { padding-left: 20px; color: var(--bone-2); margin: 0 0 22px; display: grid; gap: 8px; }
@keyframes up { from { transform: translateY(100%); } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
