/* ==========================================================================
   Top Boys Barbershop — styles.css
   Hand-authored build (no framework). Mirrors the original design tokens,
   custom classes and animations.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../assets/fonts/cinzel-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../assets/fonts/cinzel-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/cormorant-garamond-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/manrope-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/manrope-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0b0c0e;
  --ink-2: #131519;
  --gold: #d4af37;
  --gold-2: #e9c96a;
  --silver: #c9ced6;
  --silver-2: #e2e8f0;
  --bone: #f6f3ec;
  --muted: #94a3b8;
  --hairline: rgba(226, 232, 240, 0.12);
  --maxw: 1400px;
  --pad: 1.25rem;
  --ease: cubic-bezier(0.76, 0, 0.24, 1);
}

@media (min-width: 768px) {
  :root { --pad: 2.5rem; }
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
/*
 * The safety net against sideways scrolling. On the html element it applies to the
 * viewport itself, so it works on older iPhones that ignore "clip" — and
 * unlike overflow on the body it does not turn the page into a separate
 * scroll box, which would break the sticky gallery.
 */
html { overflow-x: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
input, select, textarea { font: inherit; }

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

/*
 * Reduced motion — smooth scrolling only.
 *
 * This used to be a global kill switch:
 *
 *   *, *::before, *::after {
 *     animation-duration: 0.001ms !important;
 *     animation-iteration-count: 1 !important;
 *   }
 *
 * That is the usual boilerplate, and on Windows it is a trap. Windows
 * reports `prefers-reduced-motion: reduce` whenever Settings →
 * Accessibility → Visual effects → "Animation effects" is switched off,
 * which is the default on many installs. So a visitor who had never heard
 * of the preference — the shop's own owner, in fact — got a page where the
 * marquee stood still, the badge did not turn, the review rails did not
 * drift and the hero title never rose: every animation on the site, gone,
 * with no way to tell why.
 *
 * The preference is about motion sickness, and what causes that is large
 * travel across the viewport, parallax and scroll-jacking — not a 4px
 * badge breathing or a strip of type sliding at 25px a second. So the
 * scroll behaviour is the thing that actually changes here, and the
 * targeted opt-outs live in motion.css next to the effects they undo.
 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: 6rem; }
@media (min-width: 768px) { .section { padding-block: 9rem; } }
.section--tight { padding-block: 6rem; }
@media (min-width: 768px) { .section--tight { padding-block: 8rem; } }

.section--dark { background: var(--ink); color: var(--bone); }

.divider { border-top: 1px solid var(--hairline); }
.hairline { border-color: var(--hairline); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Type ---------- */
.font-display { font-family: "Cinzel", Georgia, serif; }
.font-serif-i { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; }

.text-silver {
  background: linear-gradient(180deg, #ffffff 0%, #c9ced6 55%, #8d939c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gold-foil {
  background: linear-gradient(100deg, #a8862a 0%, #e9c96a 30%, #fff1c1 45%, #d4af37 60%, #8f7020 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: foil 7s ease-in-out infinite;
}

.eyebrow {
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--gold);
  flex: none;
}

.h2 {
  margin-top: 1.25rem;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 4.375rem);
  line-height: 0.95;
  font-weight: 400;
}
@media (min-width: 640px) { .h2 { font-size: clamp(3rem, 6vw, 4.375rem); } }

.lede {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--silver);
}
@media (min-width: 768px) { .lede { font-size: 1.5rem; } }

.body-text { color: var(--silver); line-height: 1.75; }

/* ---------- Buttons ---------- */
.btn-gold {
  position: relative;
  overflow: hidden;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  white-space: nowrap;
}
.btn-gold::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
}
.btn-gold:hover::after { left: 120%; }
.btn-gold:hover { background: var(--gold-2); }
.btn-gold[disabled] { opacity: 0.4; pointer-events: none; }

.btn-ghost {
  padding: 1rem 2rem;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border: 1px solid rgba(201, 206, 214, 0.5);
  background: rgba(11, 12, 14, 0.3);
  backdrop-filter: blur(4px);
  color: var(--bone);
  transition: color 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

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

/* ---------- Intro curtain ---------- */
.intro-curtain {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--ink);
  pointer-events: none;
  animation: curtainUp 0.9s var(--ease) 0.35s forwards;
}
.progress-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform-origin: left;
  z-index: 70;
  animation: barGrow 1.1s var(--ease) forwards, barFade 0.5s ease 1.5s forwards;
}
@keyframes curtainUp { to { transform: translateY(-100%); visibility: hidden; } }
@keyframes barGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes barFade { to { opacity: 0; visibility: hidden; } }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transform-origin: left;
  transform: scaleX(0);
  z-index: 75;
  pointer-events: none;
  will-change: transform;
}

/* ---------- Load-in animations ---------- */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes zoomIn {
  from { opacity: 0; transform: scale(1.06); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes maskUp {
  from { transform: translateY(105%); }
  to { transform: none; }
}
@keyframes ping {
  0% { transform: scale(1); opacity: 0.7; }
  80%, 100% { transform: scale(2.2); opacity: 0; }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes drawLine {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes countUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.js .load-in { opacity: 0; }
.is-loaded .load-in { animation: riseIn 0.9s var(--ease) forwards; }
.is-loaded .load-in[data-d="1"] { animation-delay: 0.05s; }
.is-loaded .load-in[data-d="2"] { animation-delay: 0.12s; }
.is-loaded .load-in[data-d="3"] { animation-delay: 0.19s; }
.is-loaded .load-in[data-d="4"] { animation-delay: 0.26s; }
.is-loaded .load-in[data-d="5"] { animation-delay: 0.33s; }
.is-loaded .load-in[data-d="6"] { animation-delay: 0.4s; }

.hero__title .b {
  background: linear-gradient(180deg, #ffffff 0%, #c9ced6 55%, #8d939c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__bg img { will-change: transform; }

/* ---------- Reveal on scroll ----------
   Elements only start hidden when JavaScript is available, so the page is
   fully readable if the script fails to load. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal-mask { overflow: hidden; padding-bottom: 0.1em; }
.js .reveal-mask > * { display: block; transform: translateY(105%); transition: transform 1s var(--ease); }
.js .reveal-mask.is-visible > * { transform: none; }

/* Stagger children of a revealed group */
.reveal-group.is-visible > * { animation: fadeInUp 0.8s var(--ease) both; }
.reveal-group.is-visible > *:nth-child(1) { animation-delay: 0.02s; }
.reveal-group.is-visible > *:nth-child(2) { animation-delay: 0.1s; }
.reveal-group.is-visible > *:nth-child(3) { animation-delay: 0.18s; }
.reveal-group.is-visible > *:nth-child(4) { animation-delay: 0.26s; }
.reveal-group.is-visible > *:nth-child(5) { animation-delay: 0.34s; }
.reveal-group.is-visible > *:nth-child(6) { animation-delay: 0.42s; }
.js .reveal-group > * { opacity: 0; }
.reveal-group.is-visible > * { opacity: 1; }


/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background-color 0.5s ease, border-color 0.5s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 12, 14, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--hairline);
}
.nav__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand { display: flex; align-items: center; gap: 0.75rem; }
.nav__brand svg { width: 2.25rem; height: 2.25rem; flex: none; }
.nav__brand span { display: block; line-height: 1; }
.nav__brand .name { font-family: "Cinzel", Georgia, serif; font-size: 1rem; letter-spacing: 0.2em; }
.nav__brand .sub { font-size: 0.625rem; letter-spacing: 0.3em; color: var(--silver); }
.nav__links { display: none; align-items: center; gap: 2.5rem; }
@media (min-width: 1024px) { .nav__links { display: flex; } }
.nav__link {
  position: relative;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  color: var(--silver-2);
  transition: color 0.3s ease;
  padding-block: 0.25rem;
}
.nav__link:hover { color: #fff; }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px; width: 0;
  background: var(--gold);
  transition: width 0.5s ease;
}
.nav__link:hover::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 0.75rem; }
.nav__cta { display: none; }
@media (min-width: 640px) { .nav__cta { display: inline-flex; padding: 0.75rem 1.5rem; } }
.nav__toggle { padding: 0.5rem; color: var(--silver-2); }
@media (min-width: 1024px) { .nav__toggle { display: none; } }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 72px 0 0;
  z-index: 45;
  background: rgba(11, 12, 14, 0.98);
  backdrop-filter: blur(12px);
  padding: 2.5rem var(--pad);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
  overflow-y: auto;
}
.drawer.is-open { transform: none; }
.drawer a {
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--bone);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1rem;
}
.drawer .btn-gold { justify-content: center; margin-top: 1rem; }
body.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-top: 7rem;
  padding-bottom: 3rem;
  background: var(--ink);
}
@media (min-width: 768px) { .hero { padding-bottom: 4rem; } }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 20%; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--ink), rgba(11, 12, 14, 0.55) 45%, rgba(11, 12, 14, 0.1));
}
.hero__top {
  position: absolute; inset-inline: 0; top: 0;
  height: 8rem;
  background: linear-gradient(to bottom, rgba(11, 12, 14, 0.8), transparent);
}
.hero__inner { position: relative; z-index: 10; width: 100%; }
.hero__pin {
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .hero__pin { font-size: 0.75rem; letter-spacing: 0.4em; margin-bottom: 1.25rem; }
}
.hero__pin svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.hero__title {
  font-family: "Cinzel", Georgia, serif;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.025em;
  font-size: 11.5vw;
}
@media (min-width: 1024px) {
  .hero__title { font-size: 6.4vw; white-space: nowrap; display: flex; gap: 0.3em; }
}
@media (min-width: 1280px) { .hero__title { font-size: 5.9rem; } }
.hero__title span { display: block; overflow: hidden; padding-bottom: 0.08em; }
@media (min-width: 1024px) { .hero__title span { display: inline-block; } }
.hero__title .b {
  background: linear-gradient(180deg, #ffffff 0%, #c9ced6 55%, #8d939c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--silver-2);
}
@media (min-width: 640px) { .hero__sub { font-size: 1.875rem; } }
.hero__row {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.5rem;
  align-items: end;
}
@media (min-width: 768px) {
  .hero__row { margin-top: 2rem; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; }
  .hero__copy { grid-column: span 7 / span 7; }
  .hero__cta { grid-column: span 5 / span 5; }
}
@media (min-width: 1024px) {
  .hero__copy { grid-column: span 6 / span 6; }
  .hero__cta { grid-column: span 6 / span 6; }
}
.hero__copy p { margin-top: 0.75rem; color: var(--silver-2); max-width: 28rem; line-height: 1.75; font-size: 0.875rem; }
@media (min-width: 640px) { .hero__copy p { font-size: 1rem; } }
.hero__cta { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .hero__cta { flex-direction: row; gap: 1rem; } }
@media (min-width: 768px) { .hero__cta { flex-direction: column; } }
@media (min-width: 1024px) { .hero__cta { flex-direction: row; justify-content: flex-end; } }
.hero__cta .btn-gold, .hero__cta .btn-ghost { width: 100%; }
@media (min-width: 768px) and (max-width: 1023px) { .hero__cta .btn-gold, .hero__cta .btn-ghost { width: 300px; } }
@media (min-width: 1024px) { .hero__cta .btn-gold, .hero__cta .btn-ghost { width: auto; } }

.hero__pole {
  position: absolute;
  right: var(--pad);
  top: 7rem;
  z-index: 10;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
@media (min-width: 1024px) { .hero__pole { display: flex; } }
.pole {
  width: 0.75rem;
  height: 6rem;
  border-radius: 9999px;
  border: 1px solid rgba(201, 206, 214, 0.4);
  background: repeating-linear-gradient(135deg, var(--gold) 0 10px, var(--ink) 10px 20px, var(--silver-2) 20px 30px, var(--ink) 30px 40px);
  background-size: 56px 56px;
  animation: pole 2.4s linear infinite;
}
.hero__pole span {
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.625rem;
  letter-spacing: 0.4em;
  color: var(--silver-2);
  writing-mode: vertical-rl;
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  border-block: 1px solid var(--hairline);
  padding-block: 2rem;
  overflow: hidden;
  background: var(--ink);
}
@media (min-width: 768px) { .marquee { padding-block: 2.5rem; } }
.marquee__track {
  display: flex;
  width: max-content;
  font-size: 2.25rem;
  animation: marquee 60s linear infinite;
}
@media (min-width: 768px) { .marquee__track { font-size: 3.75rem; } }
@media (min-width: 1024px) { .marquee__track { font-size: 4.375rem; } }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item { padding-inline: 2rem; white-space: nowrap; }
@media (min-width: 768px) { .marquee__item { padding-inline: 3rem; } }
.marquee__item--display { font-family: "Cinzel", Georgia, serif; color: var(--bone); }
.marquee__item--italic { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; color: var(--silver); }
.marquee__star { color: var(--gold); font-size: 1.5rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about__grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .about__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4rem; } }
.about__media { position: relative; }
@media (min-width: 1024px) { .about__media { grid-column: span 5 / span 5; } }
.about__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.about__frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(30%); }
.about__frame::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.3);
  pointer-events: none;
}
.about__badge {
  position: absolute;
  right: -0.25rem; bottom: -2.5rem;
  width: 7rem; height: 7rem;
}
@media (min-width: 768px) { .about__badge { right: -2.5rem; width: 9rem; height: 9rem; } }
.about__badge .spin { width: 100%; height: 100%; animation: spin 18s linear infinite; }
.about__badge-mark {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 2.5rem;
  height: 2.5rem;
}
@media (min-width: 768px) { .about__badge-mark { width: 3rem; height: 3rem; } }
.about__body { display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 1024px) { .about__body { grid-column: span 7 / span 7; padding-left: 2rem; } }
.about__body h2 {
  margin-top: 1.5rem;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.875rem, 4vw, 3rem);
  line-height: 1.25;
}
.about__body > p { margin-top: 1.5rem; max-width: 42rem; }
.about__pillars { margin-top: 3rem; border-top: 1px solid var(--hairline); }
.pillar {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--hairline);
  transition: background-color 0.4s ease, padding-left 0.4s ease;
}
.pillar:hover { background: var(--ink-2); padding-left: 1.25rem; }
@media (min-width: 768px) { .pillar { grid-template-columns: 4rem 16rem minmax(0, 1fr); } }
.pillar__no { font-family: "Cinzel", Georgia, serif; font-size: 0.875rem; color: var(--gold); padding-left: 1rem; }
.pillar__title {
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  color: var(--bone);
  align-self: center;
}
@media (min-width: 768px) { .pillar__title { font-size: 1.25rem; } }
/* On a phone the text sits under the title, not in the narrow number column. */
.pillar__text { grid-column: 2; color: var(--silver); line-height: 1.7; font-size: 0.9375rem; }
@media (min-width: 768px) { .pillar__text { grid-column: 3; padding-left: 1rem; } }

/* ---------- Services ---------- */
.services { position: relative; overflow: hidden; }
.services__ghost {
  position: absolute;
  top: -2.5rem; right: 0;
  font-family: "Cinzel", Georgia, serif;
  font-weight: 900;
  font-size: 22vw;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(226, 232, 240, 0.06);
  pointer-events: none;
  user-select: none;
}
.services__head {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
@media (min-width: 768px) {
  .services__head { flex-direction: row; align-items: flex-end; justify-content: space-between; margin-bottom: 5rem; }
}
.services__rule {
  height: 1px;
  width: 100%;
  background: linear-gradient(to right, var(--gold), rgba(201, 206, 214, 0.4), transparent);
  transform-origin: left;
}
.js .services__rule { transform: scaleX(0); transition: transform 1.2s var(--ease); }
.services__rule.is-visible { transform: scaleX(1); }

.service {
  position: relative;
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding-block: 2.5rem;
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}
@media (min-width: 768px) {
  .service { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; padding-block: 3.5rem; }
}
.service__wash {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.55s var(--ease);
}
.service:hover .service__wash { transform: scaleY(1); }
.service__no {
  position: relative;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.875rem;
  color: var(--gold);
  transition: color 0.3s ease;
}
@media (min-width: 768px) { .service__no { grid-column: span 1; padding-left: 1rem; } }
.service__name {
  position: relative;
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.875rem;
  color: var(--bone);
  transition: color 0.3s ease, transform 0.5s ease;
}
@media (min-width: 640px) { .service__name { font-size: 2.25rem; } }
@media (min-width: 1024px) { .service__name { grid-column: span 5; font-size: 3rem; } }
.service__body {
  position: relative;
  display: grid;
  gap: 0.5rem;
  align-content: start;
}
@media (min-width: 768px) { .service__body { grid-column: span 4; } }
.service__desc {
  position: relative;
  color: var(--silver);
  font-size: 0.875rem;
  line-height: 1.75;
  transition: color 0.3s ease;
}
@media (min-width: 768px) { .service__desc { font-size: 1rem; } }
.service__meta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--silver);
  transition: color 0.3s ease;
}
.service__aside {
  position: relative;
  display: grid;
  gap: 0.35rem;
  justify-items: start;
  align-content: start;
}
@media (min-width: 768px) { .service__aside { grid-column: span 3; justify-items: end; text-align: right; } }
.service__price {
  position: relative;
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.5rem;
  color: var(--bone);
  white-space: nowrap;
  transition: color 0.3s ease;
}
.service__book {
  position: relative;
  margin-top: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color 0.3s ease;
}
@media (min-width: 768px) { .service__price, .service__book { justify-self: end; } }
.service:hover .service__no,
.service:hover .service__name,
.service:hover .service__desc,
.service:hover .service__meta,
.service:hover .service__price,
.service:hover .service__book { color: var(--ink); }
.service:hover .service__name { transform: translateX(0.75rem); }
.services__note { margin-top: 2rem; color: var(--muted); font-size: 0.875rem; }

/* ---------- Barbers ---------- */
.barbers__head {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 4rem;
  align-items: end;
}
@media (min-width: 768px) {
  .barbers__head { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 6rem; }
}
.barbers__head p { color: var(--silver); max-width: 28rem; }
@media (min-width: 768px) { .barbers__head p { font-size: 1.125rem; justify-self: end; } }
.barbers__grid { display: grid; gap: 4rem; }
@media (min-width: 768px) { .barbers__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; } }
@media (min-width: 1024px) { .barbers__grid { gap: 6rem; } }

.barber__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-2); }
.barber__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  filter: grayscale(100%);
  transform: scale(1.05);
  transition: filter 1s ease, transform 1s ease;
}
.barber:hover .barber__media img { filter: grayscale(0%); transform: scale(1); }
.barber__glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.28), transparent 45%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.barber:hover .barber__glow { opacity: 1; }
.barber__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--ink), transparent 55%, transparent);
}
.barber__no {
  position: absolute; top: 1.25rem; right: 1.5rem;
  font-family: "Cinzel", Georgia, serif;
  font-size: 3.75rem;
  color: rgba(246, 243, 236, 0.15);
}
@media (min-width: 768px) { .barber__no { font-size: 4.375rem; } }
.barber__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem; }
@media (min-width: 768px) { .barber__caption { padding: 2rem; } }
.barber__role { font-family: "Cinzel", Georgia, serif; font-size: 0.6875rem; letter-spacing: 0.35em; color: var(--gold); }
.barber__name { font-family: "Cinzel", Georgia, serif; font-size: 3rem; margin-top: 0.5rem; color: var(--silver-2); }
@media (min-width: 768px) { .barber__name { font-size: 3.75rem; } }
.barber__details { margin-top: 1.5rem; display: grid; gap: 1.25rem; }
.barber__bio { color: var(--silver); line-height: 1.75; max-width: 28rem; }
.barber__phone { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--bone); font-size: 0.9375rem; letter-spacing: 0.05em; transition: color 0.3s ease; }
.barber__phone:hover { color: var(--gold); }
.barber__phone svg { width: 16px; height: 16px; color: var(--gold); }
.barber__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--silver);
  border: 1px solid var(--hairline);
  padding: 0.375rem 0.75rem;
}
.barber__cta { margin-top: 1.5rem; }

/* ---------- Booking ---------- */
.booking { position: relative; overflow: hidden; }
.booking__glow {
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 80% 20%, rgba(212, 175, 55, 0.08), transparent 55%);
}
/*
 * minmax(0, 1fr), not 1fr: a plain 1fr column grows to fit its widest
 * content, and the scrollable day strip is ~800px wide — on a phone that
 * pushed the whole booking panel off the right edge of the screen.
 */
.booking__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
@media (min-width: 1024px) { .booking__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3rem; } }
.booking__grid > *, .booking__panel, .booking__step { min-width: 0; }
.booking__aside { display: flex; flex-direction: column; }
@media (min-width: 1024px) { .booking__aside { grid-column: span 4 / span 4; } }
.booking__steps { margin-top: 2.5rem; }
.step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--hairline);
  color: var(--bone);
  transition: color 0.3s ease;
}
.step__no {
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.75rem;
  flex: none;
  transition: all 0.3s ease;
}
.step__label { font-family: "Cinzel", Georgia, serif; font-size: 0.875rem; letter-spacing: 0.1em; }
.step__value { margin-left: auto; font-size: 0.75rem; color: var(--silver); max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step.is-pending { color: var(--muted); }
.step.is-pending .step__no { border-color: rgba(148, 163, 184, 0.4); color: rgba(148, 163, 184, 0.4); }
.step.is-done .step__no { background: var(--gold); color: var(--ink); }

.booking__panel {
  position: relative;
  border: 1px solid var(--hairline);
  background: var(--ink-2);
  padding: 1.25rem;
  min-height: 520px;
}
@media (min-width: 640px) { .booking__panel { padding: 2rem; } }
@media (min-width: 768px) { .booking__panel { padding: 3rem; } }
@media (min-width: 1024px) { .booking__panel { grid-column: span 8 / span 8; } }
.booking__step { display: none; }
.booking__step.is-active { display: block; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.booking__q { font-family: "Cinzel", Georgia, serif; font-size: 1.5rem; }
@media (min-width: 640px) { .booking__q { font-size: 1.875rem; } }
.booking__hint { margin-top: 0.5rem; color: var(--silver); font-size: 0.875rem; }
.choice-grid { margin-top: 2rem; display: grid; gap: 1rem; }
@media (min-width: 640px) { .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.choice {
  position: relative;
  text-align: left;
  border: 1px solid rgba(226, 232, 240, 0.15);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.choice:hover { border-color: rgba(201, 206, 214, 0.5); }
.choice.is-selected { border-color: var(--gold); background: rgba(212, 175, 55, 0.06); }
.choice img { width: 5rem; height: 6rem; object-fit: cover; object-position: top; filter: grayscale(100%); flex: none; }
.choice.is-selected img { filter: none; }
.choice__name { display: block; font-family: "Cinzel", Georgia, serif; font-size: 1.5rem; }
.choice__role { font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }

.service-choice {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(226, 232, 240, 0.15);
  padding: 1.25rem;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.service-choice:hover { border-color: rgba(201, 206, 214, 0.5); }
.service-choice.is-selected { border-color: var(--gold); background: rgba(212, 175, 55, 0.06); }
.service-choice__name { font-family: "Cinzel", Georgia, serif; font-size: 1.25rem; }
.service-choice__price { font-family: "Cinzel", Georgia, serif; color: var(--gold); white-space: nowrap; }
.service-choice__dur { display: block; margin-top: 0.25rem; font-size: 0.75rem; color: var(--silver); }

/* ---------- Booking: day strip + slot grid (matches the reference UI) ---------- */
.day-picker {
  margin-top: 1.75rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(4.25rem, 1fr);
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.day-picker::-webkit-scrollbar { display: none; }
.day-picker { scrollbar-width: none; }
.day {
  position: relative;
  flex: none;
  border: 1px solid var(--hairline);
  padding: 0.875rem 0.5rem 0.75rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}
.day:hover { border-color: rgba(201, 206, 214, 0.45); transform: translateY(-2px); }
.day__dow {
  display: block;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: left;
}
.day__num {
  display: block;
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.75rem;
  line-height: 1.1;
  margin-top: 0.35rem;
  color: var(--bone);
}
.day__mon {
  display: block;
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.1rem;
}
.day.is-selected {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
}
.day.is-selected .day__num { color: var(--gold); }
.day.is-closed { opacity: 0.35; cursor: not-allowed; }
.day.is-closed:hover { transform: none; border-color: var(--hairline); }

.slot-loader { margin-top: 2rem; display: none; }
.slot-loader.is-on { display: block; }
.slot-loader span {
  display: block;
  width: 1.5rem; height: 1.5rem;
  border: 2px solid rgba(212, 175, 55, 0.25);
  border-top-color: var(--gold);
  border-radius: 9999px;
  animation: spin 0.7s linear infinite;
}

.slot-grid {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}
@media (min-width: 640px) { .slot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) { .slot-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.slot {
  border: 1px solid var(--hairline);
  padding: 0.9rem 0.35rem;
  text-align: center;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--silver-2);
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.slot:hover:not(:disabled) { border-color: rgba(201, 206, 214, 0.45); color: #fff; transform: translateY(-2px); }
.slot.is-selected {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.14);
  color: var(--gold);
  font-weight: 600;
}
.slot:disabled { opacity: 0.28; cursor: not-allowed; text-decoration: line-through; }
.slot-empty { grid-column: 1 / -1; color: var(--muted); font-size: 0.875rem; padding: 1rem 0; }

.form-grid { margin-top: 2rem; display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 0.5rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--silver); }
.field input, .field textarea, .field select {
  background: transparent;
  border: 1px solid rgba(226, 232, 240, 0.15);
  padding: 0.875rem 1rem;
  color: var(--bone);
  transition: border-color 0.3s ease;
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); outline: none; }
.field textarea { resize: vertical; min-height: 6rem; }
.field select option { background: var(--ink-2); color: var(--bone); }
.field--invalid input { border-color: #ef4444; }
.field__err { min-height: 0; font-size: 0.75rem; line-height: 1.4; color: #f87171; }
.field__err:empty { display: none; }
.form-error {
  grid-column: 1 / -1;
  color: #f87171;
  font-size: 0.8125rem;
  min-height: 0;
}
.form-error:empty { display: none; }

.booking__summary {
  margin-top: 1.5rem;
  border: 1px solid var(--hairline);
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: var(--silver);
  display: grid;
  gap: 0.5rem;
}
.booking__summary b { color: var(--bone); font-weight: 600; }
.booking__success { text-align: center; padding-block: 2rem; }
.booking__success .tick {
  width: 4rem; height: 4rem;
  margin: 0 auto 1.5rem;
  border: 1px solid var(--gold);
  border-radius: 9999px;
  display: grid; place-items: center;
  color: var(--gold);
}
.booking__success h3 { font-family: "Cinzel", Georgia, serif; font-size: 1.75rem; }
.booking__success p { margin-top: 0.75rem; color: var(--silver); }

.booking__nav { margin-top: 2.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.booking__back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--silver);
  transition: color 0.3s ease;
}
.booking__back:hover { color: var(--gold); }
.booking__back[disabled] { opacity: 0.3; pointer-events: none; }
.booking__back svg { width: 16px; height: 16px; }

/* ---------- Reviews ---------- */
.reviews { position: relative; overflow: hidden; }
.reviews__head { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .reviews__head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.reviews__rating { text-align: left; }
@media (min-width: 768px) { .reviews__rating { text-align: right; } }
.reviews__score { font-family: "Cinzel", Georgia, serif; font-size: 2.5rem; color: var(--gold); line-height: 1; }
.reviews__count { margin-top: 0.5rem; font-size: 0.8125rem; color: var(--silver); }
/*
 * The review rails.
 *
 * Two rows that drift continuously in opposite directions. The movement
 * itself lives in motion.css, because it is animation and it has to be
 * switched off for anyone who prefers reduced motion; what is here is the
 * layout that makes the drift possible.
 */
.reviews__rails {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  /* Fade the ends instead of cutting the cards off square. The mask is what
     makes a continuous loop read as intentional rather than as a bug. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.reviews__rail-wrap { overflow: hidden; }
.reviews__rail {
  display: flex;
  gap: 1rem;
  width: max-content;
  /* Hovering a card stops the row, so a quote can actually be read. */
  will-change: transform;
}
.reviews__rail:hover { animation-play-state: paused !important; }
.reviews__group { display: flex; gap: 1rem; }

.review {
  flex: none;
  width: min(84vw, 22rem);
  border: 1px solid var(--hairline);
  padding: 1.5rem;
  background: var(--ink-2);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .review { width: 22.5rem; } }

/* The big quotation mark, sitting behind the text like a watermark. */
.review__mark {
  position: absolute;
  top: -1.5rem; right: -0.5rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 7.5rem;
  line-height: 1;
  color: rgba(212, 175, 55, 0.1);
  pointer-events: none;
  user-select: none;
}
.review__top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.review__quote { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 1.0625rem; line-height: 1.6; color: var(--bone); }
.review__meta { margin-top: auto; display: flex; align-items: center; gap: 0.75rem; padding-top: 0.5rem; }
.review__avatar {
  width: 2.25rem; height: 2.25rem;
  border-radius: 9999px;
  display: grid; place-items: center;
  background: var(--ink);
  border: 1px solid var(--hairline);
  color: var(--bone);
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.8125rem;
  flex: none;
}
.review__who { display: flex; flex-direction: column; line-height: 1.3; }
.review__name { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone); }
.review__via { font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.review__when { font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.review__stars { color: var(--gold); letter-spacing: 0.12em; font-size: 0.75rem; }
.review__g { width: 1.125rem; height: 1.125rem; margin-left: auto; flex: none; }
.reviews__more { margin-top: 2rem; text-align: center; }
.reviews__more a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--silver); border-bottom: 1px solid var(--gold); padding-bottom: 0.35rem;
  transition: color 0.3s ease;
}
.reviews__more a:hover { color: var(--gold); }

/* ---------- Gallery / Works ---------- */
/*
 * Scroll-linked on every screen size: the section is tall, its inner box
 * sticks to the viewport, and scrolling down slides the photos sideways
 * (js/main.js → initWorks). Phones get it too, as asked.
 */
.works { position: relative; height: 360vh; }
@media (min-width: 768px) { .works { height: 320vh; } }
.works__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  padding-top: 4.5rem;
}
@media (min-width: 768px) { .works__sticky { padding-top: 5rem; } }
.works__head { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .works__head { flex-direction: row; align-items: flex-end; justify-content: space-between; margin-bottom: 3rem; } }
.works__head p { max-width: 20rem; }
@media (min-width: 768px) { .works__head p { text-align: right; } }
.works__track {
  display: flex;
  gap: 1rem;
  padding-inline: var(--pad);
  width: max-content;
  will-change: transform;
}
@media (min-width: 768px) { .works__track { gap: 1.5rem; } }
.works__track::-webkit-scrollbar { display: none; }
.works__track { scrollbar-width: none; }
.work {
  position: relative;
  flex: none;
  overflow: hidden;
  background: var(--ink-2);
  width: 72vw;
  max-height: 58svh;
}
@media (min-width: 640px) { .work { width: 60vw; } }
@media (min-width: 768px) { .work { width: auto; height: min(58vh, 560px); } }
.work--wide { aspect-ratio: 4 / 3; }
.work--tall { aspect-ratio: 3 / 4; }
.work img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(35%);
  transition: filter 0.6s ease, transform 0.9s ease;
}
.work:hover img { filter: grayscale(0%); transform: scale(1.06); }
.work__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--ink), rgba(11, 12, 14, 0.1), transparent);
  opacity: 0.8;
}
.work__ring {
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow 0.5s ease;
}
.work:hover .work__ring { box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.7); }
.work__no { position: absolute; top: 1rem; left: 1rem; font-family: "Cinzel", Georgia, serif; font-size: 0.75rem; letter-spacing: 0.3em; color: var(--gold); }
.work figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.25rem;
  transform: translateY(0.5rem);
  transition: transform 0.5s ease;
}
.work:hover figcaption { transform: none; }
.work__tag { font-size: 0.625rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.work__title { margin-top: 0.25rem; font-family: "Cinzel", Georgia, serif; font-size: 1.25rem; line-height: 1.25; color: var(--bone); }
@media (min-width: 768px) { .work__title { font-size: 1.5rem; } }

/* ---------- Contact ---------- */
.contact__grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .contact__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
.contact__info { display: flex; flex-direction: column; }
@media (min-width: 1024px) { .contact__info { grid-column: span 5 / span 5; } }
.contact__list { margin-top: 2.5rem; display: grid; gap: 1.25rem; color: var(--silver-2); }
.contact__row { display: flex; gap: 1rem; align-items: flex-start; }
.contact__row svg { width: 20px; height: 20px; color: var(--gold); flex: none; }
.contact__row .sub { color: var(--silver); font-size: 0.875rem; }
.contact__row a:hover { color: var(--gold); }

/* The two numbers.
   They used to be a line and a "sub" line, so one was large and one was
   small. A fixed name column makes them the same size and lines the
   numbers up under each other. */
.contact__phones { display: grid; gap: 0.15rem; }
.contact__phone {
  display: grid;
  grid-template-columns: 4.5rem auto;
  align-items: baseline;
  gap: 0.35rem;
}
.contact__phone-name { color: var(--silver); font-size: 0.9375rem; }
.contact__phone-name::after { content: ":"; }
.contact__phone a {
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  color: var(--bone);
  white-space: nowrap;
  transition: color 0.3s ease;
}
.contact__map { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--hairline); }
@media (min-width: 1024px) { .contact__map { grid-column: span 7 / span 7; aspect-ratio: auto; min-height: 480px; } }
.contact__map { background: var(--ink-2); }
/*
 * The map is left light.
 *
 * It used to be pushed through `grayscale(1) invert(0.92) contrast(0.9)`
 * to make it match the dark page — and the result was a black rectangle.
 * An inverted map is not a dark map: the roads, the water and the labels
 * all flip, so the thing stops being readable, and on a dark background
 * with a dark fallback panel over it the box looked empty.
 *
 * The reference site keeps Google's own palette, and it is the right call:
 * a map is a utility. A visitor looking for the shop needs to recognise
 * streets, not admire the colour scheme. A light panel on a dark page also
 * reads as a window rather than a hole.
 */
.contact__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.85) contrast(1.02);
}

/* The panel that fills the box until the map has painted.
   An iframe cannot be inspected from the page, so the only honest signal
   is its load event — until that fires, this is what the visitor sees. */
.contact__map-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  padding: 2rem;
  background:
    radial-gradient(circle at 50% 42%, rgba(212, 175, 55, 0.08), transparent 62%),
    repeating-linear-gradient(0deg, rgba(201, 206, 214, 0.05) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgba(201, 206, 214, 0.05) 0 1px, transparent 1px 46px),
    var(--ink-2);
  opacity: 1;
  transition: opacity 0.8s var(--ease-settle);
}
.contact__map.is-live .contact__map-fallback { opacity: 0; pointer-events: none; }
.contact__map-pin { width: 2rem; height: 2rem; color: var(--gold); }
.contact__map-fallback-title { font-family: "Cinzel", Georgia, serif; font-size: 1.125rem; color: var(--bone); }
.contact__map-fallback-sub { font-size: 0.8125rem; color: var(--silver); }
.contact__map-fallback-btn {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone);
  border: 1px solid var(--hairline);
  padding: 0.75rem 1.25rem;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.contact__map-fallback-btn:hover { border-color: var(--gold); color: var(--gold); }
.contact__map-card {
  position: absolute;
  left: 1rem; top: 1rem;
  z-index: 2;
  background: rgba(11, 12, 14, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--hairline);
  padding: 1rem 1.125rem;
  max-width: 18rem;
}
.contact__map-title { font-family: "Cinzel", Georgia, serif; font-size: 0.9375rem; color: var(--bone); }
.contact__map-sub { margin-top: 0.2rem; font-size: 0.75rem; color: var(--silver); line-height: 1.5; }
.contact__map-rating { margin-top: 0.5rem; display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.contact__map-score { font-size: 0.8125rem; color: var(--gold); font-weight: 700; }
.contact__map-stars { font-size: 0.6875rem; letter-spacing: 0.1em; color: var(--gold); }
.contact__map-count { font-size: 0.6875rem; color: var(--muted); }
.contact__map-actions { margin-top: 0.75rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.contact__map-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--bone);
  padding: 0.5rem 0.75rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.contact__map-btn:hover { background: var(--gold); color: var(--ink); }
.contact__map-btn--ghost { background: transparent; color: var(--bone); border: 1px solid var(--hairline); }
.contact__map-btn--ghost:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/*
 * Phones: the place card no longer floats over the map — on a small screen
 * it covered most of it. The map keeps its 4:3 box, and the card sits
 * underneath with full-width, thumb-sized buttons.
 */
@media (max-width: 767px) {
  .contact__map { aspect-ratio: auto; overflow: visible; }
  .contact__map iframe {
    position: relative;
    inset: auto;
    display: block;
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .contact__map-fallback { inset: 0 0 auto 0; height: auto; aspect-ratio: 4 / 3; }
  .contact__map-card {
    position: static;
    max-width: none;
    background: var(--ink-2);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 0;
    border-top: 1px solid var(--hairline);
    padding: 1.25rem;
  }
  .contact__map-title { font-size: 1.0625rem; }
  .contact__map-sub { font-size: 0.8125rem; }
  .contact__map-actions { margin-top: 1rem; gap: 0.625rem; }
  .contact__map-btn {
    flex: 1 1 0;
    justify-content: center;
    min-height: 2.875rem;
    font-size: 0.6875rem;
    padding: 0.75rem 0.875rem;
  }
}
.hours { margin-top: 2.5rem; border-top: 1px solid var(--hairline); }
.hours__row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 0.875rem;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.875rem;
}
.hours__row span:first-child { color: var(--silver); }
.hours__row strong { font-family: "Cinzel", Georgia, serif; font-weight: 400; letter-spacing: 0.05em; }
.hours__row.is-closed strong { color: var(--muted); }
.directions { margin-top: 1.5rem; }
.directions a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--bone); border: 1px solid var(--hairline); padding: 0.875rem 1.5rem;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.directions a:hover { border-color: var(--gold); color: var(--gold); }
.directions svg { width: 16px; height: 16px; color: var(--gold); }

/* ---------- Footer ---------- */
.footer { position: relative; border-top: 1px solid var(--hairline); padding-block: 5rem 2.5rem; overflow: hidden; }
.footer__top { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 768px) { .footer__top { grid-template-columns: 1fr auto; } }
.footer__brand { display: flex; align-items: center; gap: 0.75rem; }
.footer__brand svg { width: 2.25rem; height: 2.25rem; }
.footer__brand .name { font-family: "Cinzel", Georgia, serif; font-size: 1rem; letter-spacing: 0.2em; display: block; }
.footer__brand .sub { font-size: 0.625rem; letter-spacing: 0.3em; color: var(--silver); display: block; }
.footer__addr { margin-top: 1.25rem; color: var(--silver); font-size: 0.875rem; line-height: 1.8; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer__links a { font-size: 0.8125rem; color: var(--silver); transition: color 0.3s ease; }
.footer__links a:hover { color: var(--gold); }
.footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
}
.footer__bottom a:hover { color: var(--gold); }

/* ---------- Floating action button ---------- */
.fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 55;
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  transform: translateY(140%);
  transition: transform 0.5s var(--ease), background-color 0.3s ease;
}
.fab.is-visible { transform: none; }
.fab:hover { background: var(--gold-2); }
.fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  border-radius: inherit;
  animation: ping 2.4s ease-out infinite;
}
@media (min-width: 768px) { .fab { display: inline-flex; } }

/* ---------- Decorative motion ---------- */
.pulse-dot {
  position: relative;
  width: 0.5rem; height: 0.5rem;
  border-radius: 9999px;
  background: var(--gold);
  flex: none;
}
.pulse-dot::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: var(--gold);
  animation: ping 2.4s ease-out infinite;
}
.float-slow { animation: floatY 6s ease-in-out infinite; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 2rem;
  transform: translate(-50%, 150%);
  z-index: 90;
  background: var(--gold);
  color: var(--ink);
  padding: 0.875rem 1.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  font-weight: 600;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.45s var(--ease);
  max-width: calc(100vw - 2rem);
  text-align: center;
}
.toast.is-visible { transform: translate(-50%, 0); }

/* ---------- Utilities ---------- */
.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;
}
.stack > * + * { margin-top: 1rem; }
