/* =========================================================
   Bulletproof Barbering — Modern Grooming Studio
   Style: modern minimal — off-white + near-black + one accent
   Accent is a single token (--accent). Swap it once here to
   rebrand the whole site.
   ========================================================= */

/* ---------- Font: Inter, self-hosted (latin variable subset) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}

/* ---------- Design tokens ----------
   Brand palette (from brand sheet): one accent, no second colour.
   Blurple #9184D9 · Ink #161826 · Charcoal #292B31 · Paper #F3F5FE */
:root {
  /* Brand accent */
  --accent:        #9184d9;   /* Blurple — the mark & accents */
  --accent-strong: #7a6bd0;   /* accent hover / active */
  --accent-ink:    #5a49b8;   /* accent as text/links on Paper (>=6:1) */
  --accent-soft:   #e4e0f7;   /* accent tint (bullets, chips) */

  /* Brand neutrals */
  --brand-ink:      #161826;
  --brand-charcoal: #292b31;
  --brand-paper:    #f3f5fe;

  /* Neutrals (light) */
  --bg:        #f3f5fe;   /* Paper */
  --surface:   #ffffff;
  --surface-2: #e9ebf7;
  --ink:       #161826;   /* Ink */
  --ink-2:     #43465a;
  --muted:     #5f616c;
  --line:      #dcdeeb;

  /* Primary button — Ink ground, Paper text (max legibility, on-brand) */
  --btn-primary-bg:   #161826;
  --btn-primary-bg-h: #292b31;   /* Charcoal on hover */
  --btn-primary-fg:   #f3f5fe;

  /* Type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Spacing scale (8pt) */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4rem;
  --sp-7: 6rem;

  --radius:    14px;
  --radius-sm: 10px;
  --container: 1180px;
  --header-h:  72px;

  --shadow-sm: 0 1px 2px rgba(20, 20, 15, .06), 0 1px 3px rgba(20, 20, 15, .10);
  --shadow-md: 0 10px 30px -12px rgba(20, 20, 15, .25);

  /* Footer stays dark in BOTH themes — define explicitly, never via --ink */
  --footer-bg:   #161826;   /* Ink */
  --footer-ink:  #eceef8;
  --footer-link: #b9bbc9;
  --footer-line: #2c2e3c;

  --ease: cubic-bezier(.22, 1, .36, 1);

  --z-header: 100;
  --z-mobilebar: 90;
  --z-menu: 200;
}

/* ---------- Dark mode (system) ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --accent:        #9184d9;   /* same single accent */
    --accent-strong: #a99ee6;
    --accent-ink:    #b4a9ec;   /* links on Ink ground (~8:1) */
    --accent-soft:   #2c2a44;

    --bg:        #12131d;       /* just under Ink so Ink surfaces separate */
    --surface:   #1b1d29;       /* ~Charcoal */
    --surface-2: #171826;
    --ink:       #f3f5fe;       /* Paper */
    --ink-2:     #c4c6d4;
    --muted:     #8b8d9e;
    --line:      #2f313d;

    /* Ink button would vanish on a dark ground — use Blurple + Ink text (~5.5:1) */
    --btn-primary-bg:   #9184d9;
    --btn-primary-bg-h: #a99ee6;
    --btn-primary-fg:   #161826;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 1px 3px rgba(0, 0, 0, .5);
    --shadow-md: 0 14px 34px -14px rgba(0, 0, 0, .7);

    --footer-bg:   #0d0e16;
    --footer-ink:  #eceef8;
    --footer-link: #b3b5c4;
    --footer-line: #262835;
  }
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }

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

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 0; left: 0; transform: translateY(-120%);
  background: var(--ink); color: var(--bg);
  padding: .75rem 1.25rem; border-radius: 0 0 var(--radius-sm) 0;
  z-index: 999; font-weight: 600; transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }
.muted { color: var(--muted); font-weight: 500; }
.accent-word { color: var(--accent-ink); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: var(--sp-2);
}
[data-placeholder] { /* visual hint while content is stubbed — remove attr when real */ }

/* Focus visibility (never removed) */
:focus-visible {
  outline: 3px solid var(--accent-ink);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-pad-y: .72rem;
  --btn-pad-x: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .18s var(--ease), background-color .15s var(--ease),
              border-color .15s var(--ease), color .15s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover:not(.btn-block) { transform: scale(1.04); }
.btn:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) {
  .btn:hover:not(.btn-block), .btn:active { transform: none; }
}
.btn-lg { --btn-pad-y: .95rem; --btn-pad-x: 1.6rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
}
.btn-primary:hover { background: var(--btn-primary-bg-h); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-header[data-elevated="true"] {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: var(--sp-2);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 500; letter-spacing: -0.035em; font-size: 1.05rem; }
.brand-tag {
  font-size: .62rem; text-transform: uppercase; letter-spacing: .2em;
  color: var(--muted); font-weight: 400;
}

/* Nav */
.primary-nav { display: flex; align-items: center; }
.nav-menu {
  list-style: none; padding: 0; display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1.6rem);
}
.nav-menu a:not(.btn) {
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 600;
  font-size: .95rem;
  padding: .4rem .1rem;
  transition: color .15s var(--ease);
}
.nav-menu a:not(.btn):hover,
.nav-menu a:not(.btn)[aria-current="true"] { color: var(--ink); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    background: transparent; border: 1.5px solid var(--line); border-radius: 12px;
    cursor: pointer;
  }
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    content: ""; display: block; width: 20px; height: 2px; background: var(--ink);
    transition: transform .2s var(--ease), opacity .2s var(--ease);
  }
  .nav-toggle-bars::before { transform: translateY(-6px); }
  .nav-toggle-bars::after  { transform: translateY(4px); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { transform: rotate(-45deg); }

  .nav-menu {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: var(--sp-2) clamp(1.1rem, 4vw, 2.5rem) var(--sp-3);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
    z-index: var(--z-menu);
  }
  .nav-menu[data-open="true"] { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-menu li { border-bottom: 1px solid var(--line); }
  .nav-menu li:last-child { border-bottom: 0; }
  .nav-menu a:not(.btn) { display: block; padding: 1rem .2rem; font-size: 1.05rem; }
  .nav-cta { padding-top: var(--sp-2); }
  .nav-cta .btn { width: 100%; }
}

/* ---------- Hero (video background) ---------- */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3rem, 8vw, 6rem); }

.hero--video {
  position: relative;
  isolation: isolate;
  padding: 0;
  background: var(--brand-ink);
  /* tall track: 1 viewport of stage + ~1 viewport of scroll to scrub the clip */
  height: 210vh;
}
.hero-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: clip;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--brand-ink); }
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 30%;   /* mobile framing (looks good as-is) */
}
/* desktop: the portrait clip gets cropped to a wide band — recentre it on the
   subject. Tune the 52% (up/down). scale(1) = no extra zoom (cover already
   crops); go above 1 to tighten, not below (that would expose edges). */
@media (min-width: 821px) {
  .hero-video {
    object-position: 50% 52%;
    transform: scale(1);
  }
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,12,20,.50) 0%, rgba(11,12,20,.22) 32%, rgba(11,12,20,.60) 100%),
    linear-gradient(90deg,  rgba(11,12,20,.88) 0%, rgba(11,12,20,.55) 46%, rgba(11,12,20,.15) 100%);
}
.hero-inner {
  position: relative; z-index: 1; width: 100%;
  padding-block: clamp(3rem, 10vh, 6rem);
  will-change: opacity, transform;
}

/* scroll affordance */
.hero-scroll-hint {
  position: absolute;
  left: 50%; bottom: clamp(1rem, 4vh, 2rem);
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  color: rgba(243, 245, 254, .7);
  font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600;
  animation: hint-bob 2.4s var(--ease) infinite;
}
.hero-scroll-hint svg { stroke: currentColor; }
@keyframes hint-bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: .3rem 0 var(--sp-3);
}
.hero-lede {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--ink-2);
  max-width: 46ch;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  margin: var(--sp-4) 0 var(--sp-3);
}
.hero-trust {
  display: flex; align-items: center; gap: .6rem;
  color: var(--ink-2); font-size: .95rem;
}
.stars, .review-stars span { color: #e0a53d; letter-spacing: 2px; }

/* light text over the video, in both colour schemes */
.hero--video .hero-copy { max-width: 640px; color: var(--brand-paper); }
.hero--video .eyebrow   { color: rgba(243, 245, 254, .78); }
.hero--video h1         { color: var(--brand-paper); }
.hero--video .accent-word { color: #bcb1f2; }
.hero--video .hero-lede { color: rgba(243, 245, 254, .88); }
.hero--video .hero-trust { color: rgba(243, 245, 254, .88); }
.hero--video .btn-primary { background: var(--brand-paper); color: var(--brand-ink); }
.hero--video .btn-primary:hover { background: #ffffff; }
.hero--video .btn-ghost {
  color: var(--brand-paper);
  border-color: rgba(243, 245, 254, .5);
}
.hero--video .btn-ghost:hover {
  border-color: var(--brand-paper);
  background: rgba(243, 245, 254, .12);
}

/* play / pause control for the moving background (WCAG 2.2.2) */
.hero-motion-toggle {
  position: absolute;
  right: clamp(1rem, 4vw, 2.25rem);
  bottom: clamp(1rem, 4vw, 1.75rem);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 40px;
  padding: .5rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(243, 245, 254, .35);
  background: rgba(11, 12, 20, .5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--brand-paper);
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s var(--ease), border-color .15s var(--ease);
}
.hero-motion-toggle:hover { background: rgba(11, 12, 20, .72); border-color: rgba(243, 245, 254, .6); }
.hero-motion-toggle svg { fill: currentColor; }
.hero-motion-toggle .icon-play { display: none; }
.hero-motion-toggle[data-state="paused"] .icon-pause { display: none; }
.hero-motion-toggle[data-state="paused"] .icon-play { display: inline; }

@media (max-width: 820px) {
  .hero--video { min-height: min(78svh, 640px); }
  .hero-scrim {
    background: linear-gradient(180deg, rgba(11,12,20,.48) 0%, rgba(11,12,20,.68) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero--video { height: auto; }
  .hero-stage { position: static; height: auto; min-height: min(88svh, 820px); }
  .hero-video { display: none; }
  .hero-bg {
    background: var(--brand-ink) url("../../media/web/hero-poster.jpg") center / cover no-repeat;
  }
  .hero-scroll-hint { display: none; }
  .hero-motion-toggle { display: none !important; }
}

/* ---------- Section shell ---------- */
.section { padding: clamp(3rem, 8vw, 6rem) 0; }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 60ch; margin-bottom: var(--sp-5); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.section-sub { color: var(--ink-2); margin-top: var(--sp-2); }

/* ---------- Services ---------- */
.service-list { list-style: none; padding: 0; display: grid; gap: 0; }
.service-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
}
.service-row:first-child { border-top: 1px solid var(--line); }
.service-info h3 { font-size: 1.2rem; font-weight: 700; }
.service-info p { color: var(--muted); font-size: .95rem; margin-top: .25rem; max-width: 48ch; }
.service-price {
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.service-book { --btn-pad-x: 1.05rem; }
.services-footnote { margin-top: var(--sp-4); color: var(--ink-2); }

@media (max-width: 620px) {
  .service-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "info  price"
      "book  book";
    row-gap: var(--sp-2);
  }
  .service-info { grid-area: info; }
  .service-price { grid-area: price; }
  .service-book { grid-area: book; width: 100%; }
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(.6rem, 2vw, 1rem);
}
.gallery-item {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-2);
}
/* let the <picture> wrapper collapse so existing img rules apply unchanged */
.gallery-item picture,
.about-media picture { display: contents; }
.gallery-item img,
.gallery-item video {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.gallery-item:hover img,
.gallery-item:hover video { transform: scale(1.04); }
.gallery-item:first-child { grid-column: span 2; }
.gallery-item:first-child img { aspect-ratio: 1 / 1; }

/* video tiles: the source clips are pillar-boxed portrait, so a 9:16 frame
   crops the black bars away cleanly via object-fit: cover */
.gallery-item--video video { aspect-ratio: 9 / 16; background: #000; }

.gallery-cta { margin-top: var(--sp-4); }

@media (max-width: 620px) {
  .gallery-item:first-child { grid-column: span 1; }
  .gallery-item:first-child img { aspect-ratio: 4 / 5; }
}

/* ---------- Reviews ---------- */
.review-grid {
  list-style: none; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-3);
}
.review-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-3);
  box-shadow: var(--shadow-sm);
}
.review-stars { letter-spacing: 2px; margin-bottom: var(--sp-1); }
.review-card blockquote { font-size: 1.02rem; color: var(--ink); }
.review-name { margin-top: var(--sp-2); color: var(--ink-2); font-weight: 600; font-size: .9rem; }
.review-src { color: var(--muted); font-weight: 500; }
.review-src::before { content: "\00b7\00a0"; }
.reviews-cta { margin-top: var(--sp-5); display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.about-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about-media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.about-copy p + p { margin-top: var(--sp-2); }
.about-points {
  list-style: none; padding: 0; margin-top: var(--sp-3);
  display: grid; gap: .6rem;
}
.about-points li {
  padding-left: 1.6rem; position: relative; color: var(--ink-2);
}
.about-points li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: .7rem; height: .7rem; border-radius: 3px;
  background: var(--accent);
}
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  .about-media img { aspect-ratio: 16 / 11; }
}

/* ---------- Visit ---------- */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: start;
}
.visit-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
  margin: var(--sp-4) 0;
}
.visit-details dt {
  text-transform: uppercase; letter-spacing: .14em; font-size: .72rem;
  font-weight: 700; color: var(--muted); margin-bottom: .35rem;
}
.visit-details dd { font-size: 1rem; color: var(--ink); }
.visit-hours-block { grid-column: 1 / -1; }

.hours {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: .35rem; max-width: 22rem;
}
.hours li {
  display: flex; justify-content: space-between; gap: 1.5rem;
  font-size: .95rem; font-variant-numeric: tabular-nums;
  padding-bottom: .35rem; border-bottom: 1px solid var(--line);
}
.hours li:last-child { border-bottom: 0; }
.hours .day { color: var(--muted); }
.hours li[data-closed] span:last-child { color: var(--muted); }
.hours li[data-today] { font-weight: 700; }
.hours li[data-today] .day { color: var(--accent-ink); }
.hours li[data-today] .day::after { content: " · Today"; font-weight: 600; }
.visit-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  min-height: 340px;
}
.visit-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }
@media (max-width: 820px) {
  .visit-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding: var(--sp-6) 0 calc(var(--sp-5) + env(safe-area-inset-bottom));
}
.footer-inner {
  display: grid;
  gap: var(--sp-3);
  align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.footer-nav a { color: var(--footer-link); text-decoration: none; font-weight: 600; font-size: .95rem; }
.footer-nav a:hover { color: #fff; }
.footer-meta { color: var(--footer-link); font-size: .88rem; line-height: 1.7; }
@media (min-width: 720px) {
  .footer-inner { grid-template-columns: 1fr auto; grid-auto-rows: min-content; }
  .footer-nav { justify-self: end; }
  .footer-meta { grid-column: 1 / -1; border-top: 1px solid var(--footer-line); padding-top: var(--sp-3); }
}

/* ---------- Sticky mobile book bar ---------- */
.mobile-book-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-mobilebar);
  padding: .7rem clamp(1rem, 4vw, 1.5rem) calc(.7rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  display: none;
}
@media (max-width: 860px) {
  .mobile-book-bar { display: block; }
  main { padding-bottom: 5rem; } /* reserve space so footer/content isn't hidden */
}

/* ---------- Scroll reveal (Gallery + Reviews only) ----------
   JS adds .reveal to the targets, then .is-revealed when they scroll into
   view. Guarded by reduced-motion so content is never hidden for those users,
   and JS has a failsafe that reveals anything still hidden. */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .reveal.is-revealed {
    opacity: 1;
    transform: none;
  }
}

/* section scroll offset for sticky header */
:target,
section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
