/* ============================================================
   EMILIO'S BARBER SHOP · San Francisco
   Four-scene edition. One night on Mission St:
     1 · Neon arrival   2 · Split-flap board & departures
     3 · Pole stripes   4 · Clipper cut before/after
   Spine: night charcoal, bone, one red (lit as neon in the
   dark, painted brick elsewhere). Amber only on board readouts.
   Radius: panels & cells 10px, buttons 6px.
   ============================================================ */

:root {
  --ink: #0b0b0d;
  --night: #07080d;
  --panel: #141417;
  --panel-2: #101013;
  --cell: #1d1d21;
  --bone: #efe8d6;
  --dim: #8f897b;
  --line: rgba(239, 232, 214, 0.16);
  --line-soft: rgba(239, 232, 214, 0.08);
  --red: #c4432f;
  --red-bright: #d95a45;
  --teal: #3f9184;
  --teal-bright: #5cb3a2;
  --teal-deep: #2e6e66;
  --amber: #e8b34a;
  --neon: #38d6ba;
  --neon-core: #eafff9;
  --cool: #cfe6ff;
  --murk: #35322b;
  --murktext: #8a8271;
  --stripes: repeating-linear-gradient(
    45deg,
    #c4432f 0 26px,
    #efe8d6 26px 52px,
    #2e4159 52px 78px,
    #efe8d6 78px 104px
  );
  --head: "Oswald", sans-serif;
  --body: "Libre Caslon Text", serif;
  --script: "Pinyon Script", cursive;
  --pad: clamp(20px, 5vw, 72px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--teal); color: var(--bone); }

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

section[id] { scroll-margin-top: 76px; }

svg.defs { position: absolute; width: 0; height: 0; }

/* Lenis inertia scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-block;
  font-family: var(--head);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: #f2fbf7;
  background: var(--teal);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 16px 32px 15px;
  white-space: nowrap;
  transition: filter 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn:hover { filter: brightness(1.12); }
.btn:active { transform: scale(0.98); }

.btn-small { padding: 10px 18px 9px; font-size: 11px; }

/* ---------------- Topbar ---------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
  padding: 0 var(--pad);
  background: color-mix(in srgb, var(--ink) 95%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}

.wordmark {
  font-family: var(--head);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone);
  margin-right: auto;
  white-space: nowrap;
}

.wordmark span {
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--dim);
  margin-left: 10px;
}

.topnav { display: flex; gap: 26px; }

.topnav a {
  font-family: var(--head);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dim);
  transition: color 0.2s ease;
}

.topnav a:hover { color: var(--bone); }

/* Instagram icon — stays visible on mobile where nav + button hide */
.ig-link {
  display: inline-flex;
  align-items: center;
  color: var(--dim);
  transition: color 0.2s ease, transform 0.15s ease;
}
.ig-link:hover { color: var(--teal-bright); }
.ig-link:active { transform: scale(0.94); }
.ig-link svg { display: block; }

/* ============================================================
   SCENE 1 · NEON MIDNIGHT
   ============================================================ */

.neon {
  position: relative;
  min-height: calc(100dvh - 64px);
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  overflow: hidden;
  padding: 40px var(--pad) 72px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 8%, rgba(56, 214, 186, 0.05), transparent 65%),
    radial-gradient(ellipse 120% 90% at 50% -20%, #0d1120, transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night) 78%, var(--ink) 100%);
}

.fog {
  position: absolute;
  width: 130vw;
  height: 60vh;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.13;
  background: radial-gradient(ellipse, #9db4d6, transparent 65%);
  pointer-events: none;
}

.fog.a { top: -14vh; left: -32vw; animation: fog-drift 26s ease-in-out infinite alternate; }
.fog.b { bottom: -22vh; right: -42vw; animation: fog-drift 34s ease-in-out infinite alternate-reverse; }

/* hot-towel vapor ambience: bright steam on black, screen-blended
   so only the wisps show drifting through the night hero */
.hero-vapor {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
  opacity: 0.55;
  z-index: 1;
  pointer-events: none;
}

.neon .sign, .neon .cta-row, .neon .neon-loc { position: relative; z-index: 2; }
.neon .open { z-index: 3; }

/* the real storefront as the hero backdrop — its hand-painted "Emilio's"
   sitting right under the neon script above it */
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  z-index: 0;
  filter: saturate(0.92) brightness(0.46) contrast(1.04);
  pointer-events: none;
}
/* dark scrim over the photo so the neon sign, caps, and CTAs stay legible
   and the storefront reads as dusk/night rather than a bright daytime shot */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 58% at 50% 44%, rgba(5, 6, 10, 0.5), transparent 70%),
    linear-gradient(180deg, rgba(5, 6, 10, 0.72) 0%, rgba(5, 6, 10, 0.34) 30%, rgba(5, 6, 10, 0.44) 60%, rgba(5, 6, 10, 0.86) 100%);
}


@keyframes fog-drift { to { transform: translateX(18vw); } }

.open {
  position: absolute;
  top: 26px;
  right: 30px;
  font-family: var(--head);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  text-transform: uppercase;
  color: #d6ffe8;
  border: 1px solid rgba(90, 255, 170, 0.55);
  border-radius: 3px;
  padding: 10px 13px 8px;
  text-shadow: 0 0 8px #37e58c, 0 0 24px rgba(55, 229, 140, 0.7);
  box-shadow: 0 0 16px rgba(55, 229, 140, 0.25), inset 0 0 12px rgba(55, 229, 140, 0.1);
  animation: open-buzz 7s linear infinite;
}

@keyframes open-buzz {
  0%, 41%, 44%, 100% { opacity: 1; }
  42%, 43.2% { opacity: 0.35; }
}

/* unlit tube when the shop is closed (set by script.js from SF time) */
.open.off {
  color: rgba(239, 232, 214, 0.38);
  border-color: rgba(239, 232, 214, 0.2);
  text-shadow: none;
  box-shadow: none;
  animation: none;
}

.sign {
  padding-bottom: 30px;
  -webkit-box-reflect: below 18px linear-gradient(transparent 62%, rgba(255, 255, 255, 0.06));
  transition: transform 0.18s ease-out;
  will-change: transform;
}

.neon-script {
  font-family: "Mr Dafoe", cursive;
  font-weight: 400;
  font-size: clamp(80px, 15vw, 210px);
  line-height: 1;
  white-space: nowrap;
  color: var(--neon-core);
}

.neon-script span {
  text-shadow:
    0 0 calc(4px + 8px * var(--boost, 0)) rgba(255, 255, 255, 0.25),
    0 0 7px var(--neon),
    0 0 18px var(--neon),
    0 0 calc(42px + 50px * var(--boost, 0)) rgba(56, 214, 186, 0.8),
    0 0 90px rgba(56, 214, 186, 0.45);
}

.neon-caps {
  margin-top: 3vh;
  font-family: var(--head);
  font-weight: 400;
  font-size: clamp(14px, 2.2vw, 24px);
  letter-spacing: 0.85em;
  text-indent: 0.85em;
  text-transform: uppercase;
  color: var(--cool);
}

.neon-caps span {
  text-shadow:
    0 0 calc(3px + 6px * var(--boost, 0)) rgba(255, 255, 255, 0.33),
    0 0 10px #7fb4ff,
    0 0 calc(26px + 34px * var(--boost, 0)) rgba(127, 180, 255, 0.75);
}

html.js .neon-script span { animation: ignite 2.1s steps(1) both; }
html.js .neon-caps span { animation: ignite 1.6s steps(1) both; animation-delay: 1.1s; }

@keyframes ignite {
  0%, 4%, 9%, 13%, 30%, 33% { opacity: 0.08; text-shadow: none; }
  2%, 6%, 11%, 24%, 38%, 100% { opacity: 1; }
}

.dip { opacity: 0.28 !important; text-shadow: 0 0 6px rgba(56, 214, 186, 0.35) !important; transition: none; }

.neon .cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.btn-neon {
  display: inline-block;
  font-family: var(--head);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--neon-core);
  border: 1px solid rgba(56, 214, 186, 0.7);
  border-radius: 6px;
  padding: 15px 32px 13px;
  text-shadow: 0 0 8px var(--neon), 0 0 22px rgba(56, 214, 186, 0.55);
  box-shadow: 0 0 18px rgba(56, 214, 186, 0.22), inset 0 0 14px rgba(56, 214, 186, 0.1);
  transition: box-shadow 0.25s ease, text-shadow 0.25s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn-neon:hover {
  box-shadow: 0 0 34px rgba(56, 214, 186, 0.5), inset 0 0 20px rgba(56, 214, 186, 0.2);
  text-shadow: 0 0 10px var(--neon), 0 0 40px var(--neon);
}

.btn-neon:active { transform: scale(0.98); }

.btn-night {
  display: inline-block;
  font-family: var(--head);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 15px 30px 13px;
  transition: border-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn-night:hover { border-color: var(--bone); }
.btn-night:active { transform: scale(0.98); }

.neon-loc {
  margin-top: 30px;
  font-family: var(--head);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(239, 232, 214, 0.45);
}

/* ============================================================
   Sections shared
   ============================================================ */

section { padding: clamp(84px, 11vw, 150px) var(--pad); }

h2 {
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.06;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-wrap: balance;
  /* sign-painter double-coat: flat offset shadow, no blur */
  text-shadow: 0.05em 0.05em 0 rgba(63, 145, 132, 0.5);
}

.section-head { text-align: center; margin-bottom: clamp(40px, 5vw, 60px); }

.section-sub { margin-top: 14px; font-style: italic; color: var(--dim); }

/* ============================================================
   Horizontal barber pole — a turning-stripe divider between the
   hero and the shop. Same diagonal stripes as the "Walk-ins" type,
   run as a solid band, shaded like a round pole and slid endlessly.
   ============================================================ */

.polebar {
  position: relative;
  z-index: 5;
  height: clamp(54px, 6vw, 84px);
  overflow: hidden;
  background-image: var(--stripes);
  /* tile is exactly one horizontal period so every repeat aligns — without
     this the tile is container-sized and its seam sweeps the left edge */
  background-size: 147.08px 100%;
  animation: pole-slide 2.6s linear infinite;
  box-shadow:
    inset 0 8px 12px -5px rgba(0, 0, 0, 0.55),
    inset 0 -10px 14px -5px rgba(0, 0, 0, 0.6),
    0 18px 40px rgba(0, 0, 0, 0.5);
}

/* one full diagonal period = 104px * sqrt(2) ~= 147.08px → seamless loop */
@keyframes pole-slide {
  from { background-position: 0 0; }
  to { background-position: 147.08px 0; }
}

/* cylindrical shading + a glass sheen so the flat band reads as a round pole */
.polebar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.14) 9%,
    rgba(255, 255, 255, 0) 30%,
    rgba(0, 0, 0, 0.1) 60%,
    rgba(0, 0, 0, 0.32) 88%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

/* ============================================================
   SCENE 2 · THE BOARD & DEPARTURES
   ============================================================ */

.services {
  background: var(--panel-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.board {
  width: min(880px, 100%);
  margin: 0 auto;
  background: linear-gradient(180deg, #17171a, var(--panel-2));
  border: 1px solid #26262b;
  border-radius: 10px;
  padding: clamp(18px, 3vw, 36px) clamp(14px, 2.4vw, 32px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.board-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--head);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 18px;
}

.lamp {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 8px rgba(92, 179, 162, 0.9);
  margin-right: 10px;
  vertical-align: 1px;
  animation: lamp-pulse 2.4s ease-in-out infinite;
}

@keyframes lamp-pulse {
  50% { opacity: 0.4; box-shadow: 0 0 3px rgba(92, 179, 162, 0.4); }
}

.board-row { display: flex; justify-content: center; gap: clamp(3px, 0.55vw, 6px); }

.board-ticket {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-top: clamp(12px, 1.6vw, 18px);
}

.fcell {
  position: relative;
  width: clamp(27px, 6.2vw, 68px);
  height: clamp(41px, 9.2vw, 100px);
  perspective: 400px;
  border-radius: 5px;
  background: var(--cell);
  box-shadow: inset 0 0 0 1px #000, 0 2px 0 rgba(0, 0, 0, 0.5);
  font-family: var(--head);
  font-weight: 500;
  font-size: clamp(25px, 5.8vw, 64px);
  color: var(--bone);
}

.board-ticket .fcell {
  width: clamp(20px, 3vw, 32px);
  height: clamp(30px, 4.4vw, 47px);
  font-size: clamp(18px, 2.8vw, 30px);
  color: var(--amber);
}

.fhalf, .fflap {
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  backface-visibility: hidden;
  background: linear-gradient(180deg, #232328, #1a1a1e);
}

.fhalf.top, .fflap.top { top: 0; border-radius: 5px 5px 0 0; align-items: flex-start; }
.fhalf.bot, .fflap.bot { bottom: 0; border-radius: 0 0 5px 5px; align-items: flex-end; background: linear-gradient(180deg, #1f1f24, #17171b); }

.fhalf span, .fflap span { display: flex; height: 200%; line-height: 0; align-items: center; }

.fcell::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  transform: translateY(-1px);
  background: rgba(0, 0, 0, 0.75);
  z-index: 6;
  pointer-events: none;
}

.fflap { z-index: 4; transition: transform 90ms cubic-bezier(0.45, 0, 0.7, 0.5); }
.fflap.top { transform-origin: bottom center; }
.fflap.top.go { transform: rotateX(-89deg); }
.fflap.bot { transform-origin: top center; transform: rotateX(89deg); transition-timing-function: cubic-bezier(0.3, 0.6, 0.55, 1); }
.fflap.bot.go { transform: rotateX(0deg); }

.board-note {
  text-align: center;
  font-style: italic;
  color: var(--dim);
  margin: 26px 0 clamp(56px, 7vw, 84px);
}

/* Pole World poster menu: stripes pour into the name on hover */

.menu { max-width: 1180px; margin: 0 auto; }

.menu-label {
  font-family: var(--head);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--teal-bright);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.menu-label + .menu-label, .menurow + .menu-label { margin-top: 64px; }

.menurow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 26px;
  text-decoration: none;
  padding: clamp(10px, 1.4vw, 16px) 6px;
}

.menurow + .menurow { border-top: 1px solid var(--line-soft); }

.menurow .nm { display: flex; align-items: baseline; gap: 18px; min-width: 0; }

.menurow .name {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(26px, 3.6vw, 52px);
  line-height: 1.08;
  color: var(--bone);
  transition: color 0.15s ease;
}

.menurow .dur {
  font-family: var(--head);
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}

.menurow .price {
  font-family: "Anton", sans-serif;
  font-size: clamp(20px, 2.4vw, 36px);
  color: var(--teal-bright);
  white-space: nowrap;
}

.menurow:hover .name {
  background: var(--stripes);
  background-size: 100% 147.08px;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: pole-turn 6s linear infinite;
}

/* full-bleed cream band capping the menu */

.cta-band {
  display: block;
  text-align: center;
  text-decoration: none;
  font-family: "Anton", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(30px, 6vw, 80px);
  color: var(--ink);
  background: var(--bone);
  padding: clamp(26px, 4vw, 48px) 20px;
  transition: background 0.2s ease, color 0.2s ease;
}

.cta-band:hover { background: var(--teal); color: var(--bone); }

.services-note {
  text-align: center;
  font-style: italic;
  color: var(--dim);
  margin-top: clamp(40px, 5vw, 60px);
}

/* ============================================================
   SCENE 3 · POLE WORLD interlude
   ============================================================ */

.poleband {
  position: relative;
  overflow: hidden;
  min-height: 72vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: clamp(90px, 12vw, 160px) var(--pad);
}

/* the real shop in action, darkened behind the turning-stripe headline */
.poleband-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  z-index: 0;
  filter: saturate(0.9) brightness(0.4) contrast(1.04);
  pointer-events: none;
}
.poleband::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 78% 66% at 50% 46%, rgba(5, 6, 10, 0.5), transparent 72%),
    linear-gradient(180deg, rgba(5, 6, 10, 0.7) 0%, rgba(5, 6, 10, 0.34) 34%, rgba(5, 6, 10, 0.42) 62%, rgba(5, 6, 10, 0.72) 100%);
}
.poleband .stripe-type,
.poleband .poleband-sub { position: relative; z-index: 2; }

@keyframes pole-turn { to { background-position: 0 147.08px; } }

.stripe-type {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: max(56px, min(13vw, 21vh));
  line-height: 0.94;
  letter-spacing: 0.01em;
  background: var(--stripes);
  background-size: 100% 147.08px;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: pole-turn 9s linear infinite;
}

.poleband-sub {
  margin-top: 30px;
  font-style: italic;
  font-size: clamp(16px, 1.9vw, 20px);
  color: var(--dim);
}

/* ============================================================
   THE SHOP
   ============================================================ */

.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.about-photo img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  border-radius: 10px;
  border: 1px solid #26262b;
}

.about-copy h2 { margin-bottom: 16px; }

.about-copy .lead {
  font-style: italic;
  font-size: 20px;
  color: var(--bone);
  margin-bottom: 22px;
}

.about-copy p + p { margin-top: 16px; }
.about-copy p:not(.lead):not(.sig):not(.sig-role) { color: var(--dim); max-width: 52ch; }

.sig-block { margin-top: 38px; }

.sig {
  font-family: var(--script);
  font-size: 44px;
  line-height: 1.15;
  color: var(--bone);
  padding-bottom: 4px;
}

.sig-role {
  font-family: var(--head);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 6px;
}

/* ============================================================
   GALLERY
   ============================================================ */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.6vw, 20px);
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 0;
}

.gallery figure {
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #26262b;
  transition: transform 0.22s ease-out, box-shadow 0.3s ease;
  will-change: transform;
}

.gallery figure:hover { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-position: 50% 40%;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery figure:hover img { transform: scale(1.035); }

.gallery .low { object-position: 50% 86%; }

.gallery video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 40%;
  display: block;
}

.gallery figure.live img { display: none; }

@media (prefers-reduced-motion: reduce) {
  .gallery figure.live video { display: none; }
  .gallery figure.live img { display: block; }
}

/* ============================================================
   EDITORIAL SPLASH · flat teal field, giant type, cutout collage
   ============================================================ */

.splash {
  position: relative;
  min-height: clamp(620px, 96vh, 880px);
  background: #46a191;
  overflow: hidden;
  padding: 0;
  isolation: isolate;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.32)),
    linear-gradient(rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.32)),
    linear-gradient(rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.32));
  background-size: 1px 100%;
  background-position: 25% 0, 50% 0, 75% 0;
  background-repeat: no-repeat;
}

.splash-title {
  position: absolute;
  top: -0.04em;
  left: 0;
  right: 0;
  z-index: 1;
  font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  font-size: clamp(90px, 19.5vw, 300px);
  line-height: 0.84;
  letter-spacing: -0.015em;
  text-align: center;
  text-transform: none;
  color: #fff;
}

.splash-cut {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: min(91%, 720px);
  width: auto;
  max-width: none;
  z-index: 2;
  filter: contrast(1.06) saturate(1.05) drop-shadow(0 30px 60px rgba(0, 0, 0, 0.3));
}

.splash-chip {
  position: absolute;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: #0b0b0d;
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.splash-card {
  position: absolute;
  left: 0;
  top: 30%;
  width: min(300px, 26vw);
  background: #fff;
  color: #101013;
  text-decoration: none;
  z-index: 3;
}

.splash-card-label {
  font-family: var(--head);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #767676;
  padding: 12px 18px 10px;
}

.splash-card img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  display: block;
}

.splash-card-copy {
  font-family: var(--head);
  font-weight: 400;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  line-height: 1.6;
  color: #1a1a1a;
  padding: 15px 18px 20px;
}

.splash-card .splash-chip { right: -56px; bottom: 34px; }

.splash-brackets {
  position: absolute;
  right: 4%;
  top: 26%;
  z-index: 1;
  text-align: right;
  color: #fff;
  font-family: var(--head);
}

.bracket-big {
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.bracket-lines {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  line-height: 2;
  opacity: 0.92;
}

.bracket-small {
  margin-top: 18px;
  font-size: 13px;
  letter-spacing: 0.14em;
}

.splash-product {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(300px, 30vw);
  background: #fff;
  color: #101013;
  text-decoration: none;
  z-index: 3;
  padding: 18px 18px 20px;
}

.sp-name { font-family: var(--head); font-weight: 500; font-size: 18px; letter-spacing: 0.01em; }

.sp-sub {
  font-family: var(--head);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #8a8a8a;
  margin-top: 3px;
}

.splash-product img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  margin: 14px 0 12px;
}

.sp-price { font-family: var(--head); font-weight: 500; font-size: 24px; }
.sp-price span { display: block; font-size: 10px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: #8a8a8a; margin-bottom: 3px; }

.splash-product .splash-chip.dark { right: 0; bottom: 0; }

.splash-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  width: min(320px, 40vw);
  background: #0b0b0d;
  color: var(--bone);
  font-family: var(--head);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  text-align: center;
  padding: 24px 12px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.splash-bar:hover { background: var(--bone); color: #0b0b0d; }

@media (max-width: 860px) {
  .splash {
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
  }
  .splash-title { position: static; order: 1; padding-top: 24px; }
  .splash-cut {
    position: static;
    order: 2;
    transform: none;
    height: auto;
    max-width: 78%;
    margin: -6vw auto 0;
  }
  .splash-card { position: relative; order: 3; width: 100%; top: auto; }
  .splash-card .splash-chip { right: 0; bottom: 0; }
  .splash-brackets { position: static; order: 4; text-align: left; padding: 28px 20px; }
  .bracket-small { margin-top: 18px; }
  .splash-product { position: relative; order: 5; width: 100%; }
  .splash-bar { position: relative; order: 6; width: 100%; }
}

/* ============================================================
   REVIEWS
   ============================================================ */

.reviews {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.quote-lead p {
  font-style: italic;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.35;
  text-wrap: balance;
}

.quote-lead p::before {
  content: "\201C";
  display: block;
  font-family: var(--head);
  font-style: normal;
  font-weight: 600;
  font-size: clamp(60px, 7vw, 100px);
  line-height: 0.5;
  color: var(--teal-bright);
  margin-bottom: 20px;
}

.reviews cite {
  display: block;
  font-style: normal;
  font-family: var(--head);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 22px;
}

.quote-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  margin-top: clamp(52px, 7vw, 84px);
}

.quote-row blockquote { border-top: 1px solid var(--line); padding-top: 26px; }

.quote-row p { font-style: italic; color: var(--dim); font-size: 17px; }
.quote-row cite { margin-top: 14px; }

.trust-line {
  margin-top: clamp(52px, 7vw, 84px);
  font-family: var(--head);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--teal-bright);
}

.trust-line a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(92, 179, 162, 0.4);
  padding-bottom: 3px;
  transition: border-color 0.2s ease;
}

.trust-line a:hover { border-color: var(--teal-bright); }

/* ============================================================
   VISIT
   ============================================================ */

.visit {
  background: var(--panel-2);
  border-top: 1px solid var(--line-soft);
}

.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(48px, 7vw, 110px);
  max-width: 1180px;
  margin: 0 auto;
}

.visit-info h2 { margin-bottom: 30px; }

.visit address { font-style: normal; font-size: 19px; line-height: 1.7; }

.visit .muted { color: var(--dim); font-style: italic; font-size: 16px; }

.phone-display {
  display: inline-block;
  font-family: var(--head);
  font-weight: 500;
  font-size: clamp(30px, 3.4vw, 44px);
  letter-spacing: 0.04em;
  color: var(--bone);
  text-decoration: none;
  margin-top: 26px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.phone-display:hover { color: var(--teal-bright); border-color: var(--teal-bright); }

.visit-links { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 30px; }

.visit-links a {
  font-family: var(--head);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.visit-links a:hover { color: var(--bone); border-color: var(--bone); }

.mapbox {
  position: relative;
  margin-top: 30px;
  height: 300px;
  border-radius: 12px;
  border: 1px solid #2b2b30;
  background:
    radial-gradient(ellipse 80% 90% at 50% 40%, #191922, var(--panel-2) 75%);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(92, 179, 162, 0.05);
}

/* faux street-grid hint behind the placeholder — a diagonal Mission St
   through a faint block grid, all in low-opacity teal */
.map-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 43px, rgba(92, 179, 162, 0.07) 43px 44px),
    repeating-linear-gradient(90deg, transparent 0 43px, rgba(92, 179, 162, 0.07) 43px 44px),
    linear-gradient(58deg, transparent calc(50% - 2px), rgba(92, 179, 162, 0.22) calc(50% - 2px) calc(50% + 2px), transparent calc(50% + 2px));
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 50% 45%, #000 40%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 85% at 50% 45%, #000 40%, transparent 78%);
}

/* loaded state: dark-mode the Google embed so it matches the night site */
.mapbox iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: invert(1) hue-rotate(180deg) brightness(0.92) contrast(0.9) saturate(0.9);
}

/* subtle teal edge-glow + vignette over the loaded map (clicks pass through) */
.mapbox.loaded::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(92, 179, 162, 0.25), inset 0 0 60px rgba(11, 11, 13, 0.5);
}

.map-load {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.map-pin {
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 50% 0;
  background: var(--teal-bright);
  transform: rotate(-45deg);
  box-shadow: 0 0 0 6px rgba(92, 179, 162, 0.16), 0 0 22px rgba(92, 179, 162, 0.55);
  position: relative;
  transition: box-shadow 0.25s ease;
}

.map-pin::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--panel-2);
}

.map-pin-label {
  font-family: var(--head);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

.map-cta {
  font-family: var(--head);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  text-transform: uppercase;
  color: var(--bone);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 24px 10px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.map-load:hover .map-cta { border-color: var(--teal-bright); color: var(--teal-bright); }
.map-load:hover .map-pin { box-shadow: 0 0 0 8px rgba(92, 179, 162, 0.22), 0 0 30px rgba(92, 179, 162, 0.8); }

.visit-hours h3 {
  font-family: var(--head);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--teal-bright);
  padding-bottom: 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.visit-hours dl div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 15px 0;
}

.visit-hours dl div + div { border-top: 1px solid var(--line-soft); }

.visit-hours dt {
  font-family: var(--head);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
}

.visit-hours dd { font-size: 18px; font-variant-numeric: tabular-nums; }

.visit-hours .btn { margin-top: 34px; }

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  text-align: center;
  padding: clamp(64px, 8vw, 100px) var(--pad) 44px;
  border-top: 1px solid var(--line-soft);
}

.footer-mark {
  font-family: var(--head);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* enamel plaque, like the LOOK BETTER sign next to their pole */
.footer-hiring {
  display: inline-block;
  font-family: var(--head);
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  text-transform: uppercase;
  color: #b3402f;
  background: #f2ede0;
  border-radius: 8px;
  padding: 13px 24px 11px;
  box-shadow: inset 0 0 0 2px rgba(179, 64, 47, 0.7), inset 0 0 22px rgba(70, 45, 25, 0.14), 0 6px 24px rgba(0, 0, 0, 0.35);
  margin-bottom: 30px;
}

.footer-meta { font-size: 14px; color: var(--dim); }
.footer-meta a { color: var(--bone); text-decoration: none; border-bottom: 1px solid var(--line); }
.footer-meta a:hover { border-color: var(--bone); }

.footer-legal { margin-top: 34px; font-size: 12px; color: rgba(143, 137, 123, 0.7); }
.footer-legal a { color: inherit; }

/* ============================================================
   Scroll reveals
   ============================================================ */

html.js .rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

html.js .rv[data-rv="1"] { transition-delay: 0.08s; }
html.js .rv[data-rv="2"] { transition-delay: 0.16s; }
html.js .rv[data-rv="3"] { transition-delay: 0.24s; }
html.js .rv[data-rv="4"] { transition-delay: 0.32s; }

html.js .rv.in { opacity: 1; transform: none; }

/* ============================================================
   Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lamp, .fog, .open, .polebar { animation: none; }
  .hero-vapor { display: none; }
  html.js .neon-script span, html.js .neon-caps span { animation: none; }
  .stripe-type, .menurow:hover .name { animation: none; }
  .fflap { display: none; }
  html.js .rv { opacity: 1; transform: none; transition: none; }
  .gallery img { transition: none; }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 940px) {
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 480px; }
  .visit-grid { grid-template-columns: 1fr; }
}

.mobilebar { display: none; }

@media (max-width: 720px) {
  .topnav { display: none; }
  .topbar .btn { display: none; }
  .quote-row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery img, .gallery video { aspect-ratio: 3 / 2; }
  .sig { font-size: 38px; }
  .open { top: 18px; right: 18px; }

  .mobilebar {
    display: block;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 55;
    text-align: center;
    font-family: var(--head);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.26em;
    text-indent: 0.26em;
    text-transform: uppercase;
    text-decoration: none;
    color: #f2fbf7;
    background: var(--teal);
    border-radius: 8px;
    padding: 17px 20px 15px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  }

  .footer { padding-bottom: 120px; }
}

@media (max-width: 620px) {
  .menurow .dur { display: none; }
  .menurow { gap: 16px; }
  .neon-loc { letter-spacing: 0.16em; font-size: 11px; }
}

/* ============================================================
   PROOF SHEET · "Fresh Cuts"
   A 35mm contact sheet of the shop's work. JS pins the section
   and scrubs the film strip sideways as the page scrolls down
   (driven off Lenis / native scroll). With no JS or under
   reduced motion it stays a swipeable horizontal strip.
   ============================================================ */

.proof {
  position: relative;
  background:
    radial-gradient(130% 74% at 50% 0%, rgba(56, 214, 186, 0.05), transparent 60%),
    var(--night);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.proof-sticky {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
}

/* ---- header band ---- */
.proof-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: clamp(68px, 9vh, 100px) var(--pad) 0;
}
.proof-kicker {
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  font-size: 12px;
  color: var(--teal-bright);
}
.proof-kicker b { color: var(--dim); font-weight: 500; }
.proof-title {
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  line-height: 0.85;
  letter-spacing: 0.005em;
  font-size: clamp(42px, 7.6vw, 116px);
  color: var(--bone);
  margin-top: 6px;
}
.proof-title em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--teal);
  text-stroke: 1.5px var(--teal);
}
.proof-meta {
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  color: var(--dim);
  text-align: right;
  line-height: 1.75;
  padding-bottom: 10px;
}
.proof-meta .proof-count { color: var(--amber); font-variant-numeric: tabular-nums; }
.proof-meta .proof-total { color: var(--dim); }

/* ---- moving viewport ---- */
.proof-viewport {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  overflow-x: auto;                 /* fallback: swipe */
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 20px 0;
}
.proof-viewport::-webkit-scrollbar { display: none; }

/* ---- the film strip ---- */
.proof-film {
  --rail: 30px;
  --frameH: clamp(196px, 40vh, 424px);
  position: relative;
  display: flex;
  align-items: stretch;
  padding: var(--rail) max(var(--pad), 7vw);
  background: #0c0c0f;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  will-change: transform;
}
/* sprocket rails: cream rounded-rect perforations tiled across the whole strip */
.proof-film::before,
.proof-film::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: var(--rail);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='30'%3E%3Crect x='7' y='8' width='12' height='14' rx='3' fill='%23efe8d6'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 24px 100%;
  background-position: left center;
  opacity: 0.9;
  z-index: 2;
  pointer-events: none;
}
.proof-film::before { top: 0; }
.proof-film::after { bottom: 0; }
/* film-edge print, runs along just under the top rail */
.proof-edge {
  position: absolute;
  top: calc(var(--rail) + 1px);
  left: 0;
  right: 0;                 /* span the strip without inflating scrollWidth */
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--head);
  font-size: 8px;
  letter-spacing: 0.42em;
  color: rgba(92, 179, 162, 0.5);
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

.frame {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  padding-inline: 9px;
}
.frame-win {
  position: relative;
  width: calc(var(--frameH) * 0.75);
  height: var(--frameH);
  overflow: hidden;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(239, 232, 214, 0.07);
}
.frame-win img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.03) saturate(1.03);
}
/* number + style name in the rebate below each frame */
.frame-cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 1px 0;
  font-family: var(--head);
  text-transform: uppercase;
}
.frame-no {
  color: var(--teal-bright);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.frame-name {
  color: var(--dim);
  font-weight: 500;
  letter-spacing: 0.14em;
  font-size: 9.5px;
  white-space: nowrap;
}

/* ---- the grease-pencil "keeper" mark ---- */
.frame.keeper .frame-win { overflow: visible; }
.grease {
  position: absolute;
  inset: -7% -11%;
  width: 122%;
  height: 114%;
  overflow: visible;
  pointer-events: none;
  z-index: 4;
  filter: url(#grease);
}
.grease path {
  fill: none;
  stroke: var(--amber);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.92;
}
.keep-scrawl {
  position: absolute;
  top: -7%;
  right: -9%;
  z-index: 5;
  font-family: "Pinyon Script", cursive;
  color: var(--amber);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1;
  transform: rotate(-9deg);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

/* ---- footer: progress + hint ---- */
.proof-foot {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 var(--pad) clamp(22px, 4vh, 36px);
}
.proof-bar {
  position: relative;
  flex: 1;
  height: 2px;
  background: var(--line-soft);
  overflow: hidden;
}
.proof-bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--p, 0) * 100%);
  background: linear-gradient(90deg, var(--teal-deep), var(--teal-bright));
}
.proof-hint {
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 11px;
  color: var(--dim);
  white-space: nowrap;
}
.proof-hint .ar { color: var(--teal-bright); }

/* mobile (<700px): the JS drops the pin and this becomes a native swipe strip */
.hint-swipe { display: none; }
.proof.is-swipe .hint-scroll { display: none; }
.proof.is-swipe .hint-swipe { display: inline; }
.proof.is-swipe .proof-viewport {
  scroll-snap-type: x proximity;
  scroll-padding-inline: max(var(--pad), 7vw);
}
.proof.is-swipe .frame { scroll-snap-align: center; }

/* ---- pinned mode (added by JS when motion is allowed) ---- */
.proof.is-pinned .proof-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
}
.proof.is-pinned .proof-viewport { overflow: visible; }

@media (prefers-reduced-motion: reduce) {
  .proof-film { will-change: auto; }
}

@media (max-width: 620px) {
  .proof-film { --rail: 24px; }
  .proof-head { padding-top: clamp(72px, 9vh, 92px); }
  .frame-name { display: none; }
}
