/* Ace of Fades — layout & components. Tokens live in variables.css.
   Sections are full-bleed; content aligns to .container. */

* { box-sizing: border-box; }

/* safety net: nothing may ever scroll the page sideways. `clip` (not `hidden`)
   so the sticky header and fixed book bar keep working. */
html { overflow-x: clip; }
html.lightbox-open { overflow: hidden; }
body { overflow-x: clip; max-width: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* anchor targets clear the sticky header when CSS smooth-scroll lands on them */
main > section { scroll-margin-top: calc(var(--header-h) + var(--space-2)); }
.bpanel { scroll-margin-top: calc(var(--header-h) + var(--space-2)); }

body {
  margin: 0;
  background: var(--color-ink);
  color: var(--color-cream);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

a { color: var(--color-accent); }
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--color-led);
  outline-offset: 3px;
  border-radius: 2px;
}

.muted { color: var(--color-cream-dim); }

.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;
}

.brand-logo {
  position: relative;
  display: block;
  aspect-ratio: 1285.72983 / 376.315656;
}

.brand-logo::before,
.brand-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  -webkit-mask: url("../assets/brand/ace-of-fades-logo.svg") center / contain no-repeat;
  mask: url("../assets/brand/ace-of-fades-logo.svg") center / contain no-repeat;
}

.brand-logo::before {
  background: currentColor;
}

/* A brief warm reflection touches only FADES, then rests long enough to stay
   atmospheric rather than turning the lockup into a permanent light show. */
.brand-logo::after {
  background: linear-gradient(
    105deg,
    transparent 20%,
    color-mix(in srgb, var(--color-accent) 58%, var(--color-cream)) 48%,
    transparent 76%
  );
  clip-path: inset(34% 0 0 30%);
  opacity: 0;
  pointer-events: none;
}

.brand-logo::after,
.header-wordmark::after {
  background-size: 260% 100%;
  background-position: 130% 0;
}

@media (prefers-reduced-motion: no-preference) {
  .brand-logo::after,
  .header-wordmark::after {
    animation: brand-fades-glint 8s var(--ease-out) 2.5s infinite;
  }
}

@keyframes brand-fades-glint {
  0%, 68% { opacity: 0; background-position: 130% 0; }
  74% { opacity: 0.36; }
  84% { opacity: 0.18; background-position: -130% 0; }
  90%, 100% { opacity: 0; background-position: -130% 0; }
}

.spade { width: 20px; height: 20px; fill: var(--color-red); flex: none; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-h);
  background: color-mix(in srgb, var(--color-ink) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-width: 0; /* let children shrink instead of forcing page width */
}

.wordmark {
  display: inline-flex;
  align-items: center;
  color: var(--color-cream);
  text-decoration: none;
  min-height: 44px;
}

.header-brand-lockup {
  display: flex;
  align-items: center;
  height: var(--header-brand-height);
  color: var(--color-cream);
}

.header-wordmark {
  position: relative;
  display: block;
  color: inherit;
}

.header-wordmark {
  width: 100%;
  aspect-ratio: 935.72983 / 376.315656;
}

.header-wordmark::before,
.header-wordmark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  -webkit-mask-image: url("../assets/brand/ace-of-fades-logo.svg");
  mask-image: url("../assets/brand/ace-of-fades-logo.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.header-wordmark::before,
.header-wordmark::after {
  -webkit-mask-size: 137.4% 100%;
  mask-size: 137.4% 100%;
  -webkit-mask-position: right center;
  mask-position: right center;
}

.header-wordmark::after {
  background: linear-gradient(
    105deg,
    transparent 20%,
    color-mix(in srgb, var(--color-accent) 58%, var(--color-cream)) 48%,
    transparent 76%
  );
  clip-path: inset(34% 0 0 5%);
  background-size: 260% 100%;
  background-position: 130% 0;
  opacity: 0;
}

.header-brand-copy {
  display: grid;
  align-content: end;
  gap: var(--space-1);
  width: clamp(6.25rem, 10vw, 6.75rem);
  min-width: 0;
}

.header-lounge {
  margin: 0;
  color: var(--color-cream-dim);
  font-size: 0.5625rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.24em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-width: 0;
}

.site-header nav a {
  color: var(--color-cream);
  text-decoration: none;
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-header nav a:hover { color: var(--color-accent); }

/* animated underline on plain nav links */
.site-header nav a:not(.btn) { position: relative; }
.site-header nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
}
@media (prefers-reduced-motion: no-preference) {
  .site-header nav a:not(.btn)::after { transition: transform var(--dur) var(--ease-out); }
}
.site-header nav a:not(.btn):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

@media (prefers-reduced-motion: no-preference) {
  .header-brand-lockup { transition: color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
}
.wordmark:hover .header-brand-lockup { color: var(--color-accent); transform: scale(1.025); }

/* ---------- buttons ---------- */
a.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-height: 48px;
  padding: var(--space-3) var(--space-8);
  background: var(--color-accent);
  color: var(--color-cream);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
/* transform is owned by the GSAP magnetic effect on fine pointers;
   CSS only handles color + touch press feedback */
@media (prefers-reduced-motion: no-preference) {
  a.btn, button.btn { transition: background-color 150ms ease-out; }
}
a.btn:hover, button.btn:hover { background: var(--color-accent-deep); }
@media (pointer: coarse) {
  a.btn:active, button.btn:active { transform: scale(0.97); }
}

a.btn-ghost {
  background: transparent;
  color: var(--color-cream);
  box-shadow: inset 0 0 0 1px var(--color-line);
}
a.btn-ghost:hover { background: var(--color-surface); }

a.btn-small { min-height: 40px; padding: var(--space-2) var(--space-4); }

/* ---------- sections ---------- */
main > section { padding-block: var(--space-24); }

.services, .booking, .info, .work {
  position: relative;
  overflow: hidden;
}

/* giant outlined watermark behind each section (parallaxed by GSAP) */
.section-ghost {
  position: absolute;
  top: var(--space-4);
  right: -2%;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(7rem, 24vw, 22rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px var(--color-line);
  opacity: 0.6;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  will-change: transform;
}
.services .container, .booking .container, .info .container, .work .container {
  position: relative;
  z-index: 1;
}

/* ---------- gallery (masonry columns, parallax-drifted) ---------- */
.gallery {
  columns: 2;
  column-gap: var(--space-4);
}
@media (min-width: 900px) {
  .gallery { columns: 3; column-gap: var(--space-6); }
}

.shot {
  margin: 0 0 var(--space-4);
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  break-inside: avoid;
  will-change: transform;
}
.shot-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}
.shot-open:focus-visible {
  outline-offset: calc(var(--space-1) * -1);
  border-radius: var(--radius);
}
@media (min-width: 900px) {
  .shot { margin-bottom: var(--space-6); }
}
/* varied crops for rhythm */
.shot:nth-of-type(3n) { aspect-ratio: 1 / 1; }
.shot:nth-of-type(4n) { aspect-ratio: 4 / 5; }

.shot img {
  --face-x: 0%;
  --face-y: 0%;
  --face-scale: 1.3;
  --face-hover-scale: 1.36;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: grayscale(30%);
  transform: translate(var(--face-x), var(--face-y)) scale(var(--face-scale));
  transform-origin: center;
}
.shot-cut-01 img { --face-x: -7%; --face-y: -5%; }
.shot-cut-02 img { --face-x: 10%; --face-y: -10%; }
.shot-cut-03 img { --face-x: -11%; --face-y: -5%; }
.shot-cut-04 img { --face-x: 4%; --face-y: -8%; }
.shot-cut-05 img { --face-x: 3%; --face-y: -7%; }
.shot-cut-06 img { --face-x: 10%; --face-y: -8%; }
.shot-cut-07 img { --face-x: 8%; --face-y: -9%; }
.shot-cut-08 img { --face-x: -12%; --face-y: -10%; }
@media (prefers-reduced-motion: no-preference) {
  .shot img { transition: transform 600ms var(--ease-out), filter 600ms var(--ease); }
}
@media (hover: hover) {
  .shot:hover img { transform: translate(var(--face-x), var(--face-y)) scale(var(--face-hover-scale)); filter: grayscale(0%); }
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 400;
  margin: 0 0 var(--space-12);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-cream);
}
h2::after {
  content: "";
  display: block;
  width: var(--space-16);
  height: var(--space-1);
  margin-top: var(--space-4);
  background: var(--color-accent);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: max(560px, calc(100svh - var(--header-h) - 88px)); /* header + hero + marquee ≈ one viewport */
  display: grid;
  align-items: center;
  padding-block: var(--space-12);
}

/* faint LED halo — kept low so the black stays black */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 44%, color-mix(in srgb, var(--color-led) 10%, transparent), transparent 36%),
    radial-gradient(ellipse 48% 30% at 50% 72%, color-mix(in srgb, var(--color-accent) 10%, transparent), transparent 72%),
    radial-gradient(ellipse 62% 58% at 50% 28%, color-mix(in srgb, var(--color-led) 6%, transparent), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 48%;
  width: min(78vw, 58rem);
  aspect-ratio: 1;
  translate: -50% -50%;
  background:
    radial-gradient(circle, transparent 0 39%, color-mix(in srgb, var(--color-line) 75%, transparent) 39.2% 39.5%, transparent 39.8%),
    radial-gradient(circle, transparent 0 54%, color-mix(in srgb, var(--color-line) 52%, transparent) 54.2% 54.4%, transparent 54.8%);
  opacity: 0.75;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: var(--space-12);
  will-change: transform;
}

/* hexagon LED field behind the copy — the shop's ceiling lights */
.hero-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Hero lights stay clipped to the outer ceiling edges. The centered brand and
   copy keep a clear reading zone at every breakpoint. */
.hero-hex {
  position: absolute;
  width: var(--size);
}
/* Phone: one fixture peeks in from above and outside the logo lockup. */
.hero-hex:nth-of-type(1) {
  top: var(--hero-hex-mobile-top);
  right: var(--hero-hex-mobile-right);
  left: auto;
  --size: var(--hero-hex-mobile-size);
}
.hero-hex:nth-of-type(2),
.hero-hex:nth-of-type(3) { display: none; }
/* The matching left fixture is mirrored so both inner edges cradle the spade. */
.hero-hex:nth-of-type(2) {
  display: block;
  top: var(--hero-hex-mobile-top);
  left: var(--hero-hex-mobile-right);
  right: auto;
  width: var(--hero-hex-mobile-size);
  transform: scaleX(-1);
}
/* Tablet and desktop: two edge fixtures frame the content without crossing it. */
@media (min-width: 768px) {
  .hero-hex:nth-of-type(1) {
    top: var(--hero-hex-main-top);
    right: var(--hero-hex-main-right);
    --size: var(--hero-hex-main-size);
  }
  .hero-hex:nth-of-type(2) {
    display: block;
    top: var(--hero-hex-side-top);
    left: var(--hero-hex-side-left);
    --size: var(--hero-hex-side-size);
    width: var(--size);
  }
}

/* -- hex LED tubes (shared: hero field + section corners) -- */
.hexlights { display: block; width: 100%; height: auto; overflow: visible; }
.hexlights polygon {
  fill: none;
  stroke: var(--color-line);
  stroke-width: 4;
  stroke-linejoin: round;
  opacity: 0.55;
}
/* glow lives on the ONE svg element, not per polygon — SVG filters are
   expensive and stacking them per tube tanked scroll performance */
.hexlights.lit {
  filter: drop-shadow(0 0 5px var(--color-glow)) drop-shadow(0 0 14px var(--color-glow));
}
.hexlights.lit polygon {
  stroke: var(--color-led);
  opacity: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .hexlights.lit polygon { animation: hex-on 900ms var(--ease) both; animation-delay: var(--d, 0ms); }
  .hero-hex .hexlights.lit { animation: hero-hex-breathe var(--hero-hex-breathe-cycle) var(--ease) 1.4s infinite; }
}
@keyframes hero-hex-breathe {
  0%, 100% { opacity: 0.86; }
  50% { opacity: 1; }
}
@keyframes hex-on {
  /* fluorescent-tube startup flicker — stroke/opacity only, never filter */
  0%   { stroke: var(--color-line); opacity: 0.55; }
  25%  { stroke: var(--color-led);  opacity: 0.9; }
  40%  { stroke: var(--color-line); opacity: 0.6; }
  55%  { stroke: var(--color-led);  opacity: 1; }
  70%  { opacity: 0.75; }
  100% { stroke: var(--color-led);  opacity: 1; }
}

/* section lights: one fixture per room, hanging half-clipped from the section's
   top edge above the heading — same ceiling rule as the hero, every breakpoint.
   screen-blend = pure light, never darkens copy; the ghost text keeps top-right. */
.section-hex {
  display: none; /* phones get the hero fixture only */
  position: absolute;
  top: calc(-1 * var(--space-12));
  left: 4%;
  z-index: 2;
  width: min(11vw, 130px);
  mix-blend-mode: screen;
  pointer-events: none;
}
@media (min-width: 768px) {
  .section-hex { display: block; }
}

.hero-kicker {
  margin: var(--space-4) 0;
  color: var(--color-accent);
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
}

.hero-logo-title {
  width: 100%;
  margin: 0;
}

.hero-lockup {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(100%, 54rem);
}

.hero-spade-mark,
.hero-wordmark {
  position: relative;
  display: block;
  color: var(--color-cream);
  filter: drop-shadow(0 0 var(--space-4) color-mix(in srgb, var(--color-glow) 42%, transparent));
}

.hero-spade-mark {
  z-index: 0;
  width: clamp(5.5rem, 11vw, 8rem);
  aspect-ratio: 330 / 376.315656;
}

.hero-logo-title {
  position: relative;
  z-index: 1;
}

.hero-wordmark {
  width: min(100%, 48rem);
  aspect-ratio: 935.72983 / 376.315656;
}

.hero-spade-mark::before,
.hero-wordmark::before,
.hero-fades-fill,
.hero-fades-outline {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  -webkit-mask-image: url("../assets/brand/ace-of-fades-logo.svg");
  mask-image: url("../assets/brand/ace-of-fades-logo.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.hero-spade-mark::before {
  -webkit-mask-size: 389.7% 100%;
  mask-size: 389.7% 100%;
  -webkit-mask-position: left center;
  mask-position: left center;
}

.hero-wordmark::before,
.hero-fades-fill,
.hero-fades-outline {
  -webkit-mask-size: 137.4% 100%;
  mask-size: 137.4% 100%;
  -webkit-mask-position: right center;
  mask-position: right center;
}

.hero-wordmark::before {
  clip-path: inset(0 0 66% 0);
}

@property --hero-fade-x {
  syntax: "<percentage>";
  inherits: false;
  initial-value: -80%;
}

.hero-fades-fill {
  --hero-fade-x: -80%;
  -webkit-mask-image:
    url("../assets/brand/ace-of-fades-logo.svg"),
    linear-gradient(
      45deg,
      black 0%,
      black calc(var(--hero-fade-x) - 10%),
      transparent var(--hero-fade-x),
      black calc(var(--hero-fade-x) + 10%),
      black 100%
    );
  mask-image:
    url("../assets/brand/ace-of-fades-logo.svg"),
    linear-gradient(
      45deg,
      black 0%,
      black calc(var(--hero-fade-x) - 10%),
      transparent var(--hero-fade-x),
      black calc(var(--hero-fade-x) + 10%),
      black 100%
    );
  -webkit-mask-size: 137.4% 100%, 100% 100%;
  mask-size: 137.4% 100%, 100% 100%;
  -webkit-mask-position: right center, center;
  mask-position: right center, center;
  -webkit-mask-repeat: no-repeat, no-repeat;
  mask-repeat: no-repeat, no-repeat;
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-fades-fill {
    animation: hero-fades-sweep var(--hero-fades-sweep-cycle) var(--ease) infinite;
  }
  .hero-fades-outline::before {
    animation: hero-fades-pixel-sweep var(--hero-fades-sweep-cycle) var(--ease) infinite;
  }
}

@keyframes hero-fades-sweep {
  0%, 28% { --hero-fade-x: -80%; }
  94%, 100% { --hero-fade-x: 180%; }
}

@keyframes hero-fades-pixel-sweep {
  0%, 28% {
    clip-path: polygon(-44% 100%, -8% 100%, 20% 0, -16% 0);
    opacity: 0;
    background-position: 0 0;
  }
  34% { opacity: 0.92; }
  60% { background-position: var(--space-2) calc(-1 * var(--space-1)); }
  94% {
    clip-path: polygon(108% 100%, 144% 100%, 172% 0, 136% 0);
    opacity: 0.92;
    background-position: calc(-1 * var(--space-2)) var(--space-1);
  }
  98%, 100% { opacity: 0; }
}

.hero-fades-fill,
.hero-fades-outline {
  clip-path: inset(34% 0 0 5%);
}

.hero-fades-outline {
  z-index: 1;
  background: transparent;
  -webkit-mask-image: url("../assets/brand/ace-of-fades-logo.svg");
  mask-image: url("../assets/brand/ace-of-fades-logo.svg");
  -webkit-mask-size: 137.4% 100%;
  mask-size: 137.4% 100%;
  -webkit-mask-position: right center;
  mask-position: right center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  opacity: 1;
}

.hero-fades-outline::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-conic-gradient(
      from 45deg,
      var(--color-cream) 0 12%,
      transparent 12% 25%,
      color-mix(in srgb, var(--color-led) 82%, transparent) 25% 37%,
      transparent 37% 50%
    ) 0 0 / var(--hero-fades-pixel-size) var(--hero-fades-pixel-size);
  opacity: 0;
  filter:
    drop-shadow(0 0 var(--space-1) color-mix(in srgb, var(--color-led) 68%, transparent))
    drop-shadow(0 0 var(--space-3) color-mix(in srgb, var(--color-led) 38%, transparent));
}

.hero-lounge {
  margin: var(--space-2) 0 0;
  color: var(--color-cream-dim);
  font-size: clamp(0.875rem, 1.4vw, 1.125rem);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero-sub {
  margin: 0 0 var(--space-8);
  max-width: var(--measure);
  font-size: 1.1875rem;
  text-align: center;
  color: var(--color-cream-dim);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

/* mobile: the card peeks in from the top-right, behind the copy */
.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* type-led hero: single column, the ceiling lights carry the visual weight */

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--color-line);
  background: var(--color-surface);
  padding-block: var(--space-4);
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee-half {
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
  padding-right: var(--space-6);
}

.marquee-item {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 2.25rem;
  letter-spacing: 0.03em;
  color: var(--color-cream);
  white-space: nowrap;
}
/* every other word flips to the italic serif — barbershop poster rhythm */
.marquee-item:nth-of-type(even) {
  font-family: var(--font-accent);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-cream-dim);
}

.marquee .spade { width: 20px; height: 20px; }

@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee-scroll 22s linear infinite; }
}

@keyframes marquee-scroll {
  to { transform: translateX(-50%); }
}

/* ---------- services ---------- */
.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-line);
}

@media (min-width: 820px) {
  .price-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--space-16);
  }
}

.price-list li {
  border-bottom: 1px solid var(--color-line);
  border-radius: var(--radius);
}
.menu-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-4);
  min-height: 100%;
  border-radius: var(--radius);
  color: var(--color-cream);
  text-decoration: none;
}
@media (prefers-reduced-motion: no-preference) {
  .menu-row { transition: background-color var(--dur-fast) var(--ease); }
}
@media (hover: hover) {
  .menu-row:hover { background: var(--color-surface); }
  .menu-row:hover .service-name { transform: translateX(var(--space-2)); }
  .menu-row:hover .price { transform: scale(1.08); }
}
@media (prefers-reduced-motion: no-preference) {
  .service-name, .price { transition: transform var(--dur) var(--ease-out); }
}

/* featured signature cut — spans both menu columns */
.price-list li.feature {
  grid-column: 1 / -1;
  background: var(--color-surface);
  border: 1px solid color-mix(in srgb, var(--color-accent) 40%, var(--color-line));
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
}
.price-list li.feature .menu-row { flex-wrap: wrap; padding: var(--space-8); }
.feature-tag {
  flex-basis: 100%;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}
.price-list li.feature .service-name { font-size: 1.5rem; }
.price-list li.feature .price { font-size: 2.5rem; }
@media (hover: hover) {
  .price-list li.feature .menu-row:hover { background: var(--color-surface-raised); }
}

.service-name {
  font-weight: 700;
  font-size: 1.125rem;
}
.service-name small {
  display: block;
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--color-cream-dim);
  margin-top: var(--space-1);
}

.leader {
  flex: 1;
  min-width: var(--space-6);
}

.price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.02em;
  color: var(--color-accent);
}

.services-note {
  margin: var(--space-8) 0 0;
  color: var(--color-cream-dim);
  max-width: var(--measure);
}

/* ---------- booking (full-bleed surface band) ---------- */
.booking {
  background: var(--color-surface);
  border-block: 1px solid var(--color-line);
}

.booking-sub {
  margin: 0 0 var(--space-12);
  max-width: var(--measure);
  font-size: 1.1875rem;
  color: var(--color-cream-dim);
}

.booking h2 {
  margin-bottom: var(--space-4);
  font-size: clamp(3.25rem, 8vw, 6rem);
}

.booking-widget {
  background: var(--color-ink);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  min-height: 600px;
  overflow: hidden;
  scroll-margin-top: calc(var(--header-h) + var(--space-2));
}

/* -- step indicator -- */
.booking-steps {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin: 0;
  padding: var(--space-6) var(--space-6) 0;
}

.bstep {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-cream-dim);
}
.bstep-num {
  display: grid;
  place-items: center;
  width: var(--space-8);
  height: var(--space-8);
  clip-path: polygon(25% 7%, 75% 7%, 100% 50%, 75% 93%, 25% 93%, 0 50%);
  background: var(--color-line);
  box-shadow: none;
  font-family: var(--font-display);
  font-size: 0.9375rem;
}
@media (prefers-reduced-motion: no-preference) {
  .bstep, .bstep-num { transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
}
.bstep.is-active { color: var(--color-cream); }
.bstep.is-active .bstep-num { background: var(--color-accent); color: var(--color-cream); }
.bstep.is-done .bstep-num { background: color-mix(in srgb, var(--color-accent) 24%, var(--color-surface)); color: var(--color-accent); }

/* -- panels -- */
.bpanel[hidden] { display: none; } /* outranks per-panel display: flex */
@media (prefers-reduced-motion: no-preference) {
  .bpanel.is-active { animation: bpanel-in 450ms var(--ease-out); }
}
@keyframes bpanel-in {
  from { opacity: 0; translate: 0 16px; }
}

/* -- step 1: service picker (compact list, one tappable row per cut) -- */
.service-grid {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-4) var(--space-2);
}
@media (min-width: 760px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--space-4);
    padding: var(--space-6) var(--space-6) var(--space-4);
  }
}

.service-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 68px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  cursor: pointer;
}
@media (prefers-reduced-motion: no-preference) {
  .service-row { transition: background-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
}
@media (hover: hover) {
  .service-row:hover { background: var(--color-surface); }
}
.service-row:active { background: var(--color-surface-raised); }

.service-row input { position: absolute; opacity: 0; pointer-events: none; }
.service-row:has(input:focus-visible) {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.service-row.is-selected {
  background: var(--color-surface-raised);
  box-shadow: inset 0 0 0 1px var(--color-accent);
}

/* leading indicator — empty ring until picked, then a filled spade */
.sr-dot {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: var(--radius-pill);
  box-shadow: inset 0 0 0 1.5px var(--color-line);
}
/* hexagon, echoing the shop's ceiling tubes — empty ring until picked */
.sr-hex { width: 12px; height: 12px; fill: var(--color-cream); opacity: 0; scale: 0.4; }
@media (prefers-reduced-motion: no-preference) {
  .sr-dot { transition: background-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
  .sr-hex { transition: opacity var(--dur-fast) var(--ease), scale var(--dur) var(--ease-spring); }
}
.service-row.is-selected .sr-dot {
  background: var(--color-accent);
  box-shadow: none;
}
.service-row.is-selected .sr-hex { opacity: 1; scale: 1; }

/* strictly one line per row — every row is the same height, always */
.sr-main {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: var(--space-2);
  min-width: 0;
  flex: 1;
}
.sr-name { font-size: 1.0625rem; font-weight: 700; white-space: nowrap; }
/* phones get name + price only; the full descriptions live in The Menu above */
.sr-desc { display: none; }
@media (min-width: 560px) {
  .sr-desc {
    display: block;
    font-size: 0.9375rem;
    color: var(--color-cream-dim);
    min-width: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
.sr-tag {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--color-accent);
  white-space: nowrap;
  flex: none;
}
.sr-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--color-accent);
  flex: none;
}
.service-row.is-featured .sr-name { color: var(--color-cream); }

/* -- summary bar -- */
.booking-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-4);
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-line);
  background: var(--color-surface);
}
/* same rule as the picker bar — wrap whole, never collapse into a column */
.booking-summary { margin: 0; font-weight: 700; flex: 1 1 16rem; min-width: 0; }
.booking-summary span {
  display: block;
  color: var(--color-cream-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.booking-summary .summary-swap { color: var(--color-cream); }
.booking-bar .btn { flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .summary-swap { animation: summary-in 300ms var(--ease-out); }
}
@keyframes summary-in {
  from { opacity: 0; translate: 0 12px; }
}

button.btn:disabled {
  background: var(--color-surface-raised);
  color: var(--color-cream-dim);
  cursor: not-allowed;
}
@media (prefers-reduced-motion: no-preference) {
  .btn-armed { animation: btn-pop 400ms var(--ease-spring); }
}
@keyframes btn-pop {
  50% { scale: 1.06; }
}

/* -- step 2: times -- */
.times-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-6);
  border-bottom: 1px solid var(--color-line);
}
.link-back {
  background: none;
  border: none;
  padding: var(--space-2) 0;
  min-height: 44px;
  font: inherit;
  font-weight: 700;
  color: var(--color-accent);
  cursor: pointer;
}
.link-back:hover { color: var(--color-cream); }
.times-label {
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.cal-mount { position: relative; min-height: 480px; }

/* clipper loading state — buzzes while the calendar boots */
.cal-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
}
.cal-clipper-wrap { position: relative; }
.cal-clipper { display: block; width: 40px; height: 92px; color: var(--color-cream); }
.cal-loading p { margin: 0; font-family: var(--font-accent); font-style: italic; font-size: 1.125rem; color: var(--color-cream-dim); }
.clip-hair {
  position: absolute;
  top: 70%;
  width: 2px;
  height: 9px;
  border-radius: var(--radius-pill);
  background: var(--color-cream-dim);
  opacity: 0;
}
.clip-hair:nth-of-type(1) { left: 30%; }
.clip-hair:nth-of-type(2) { left: 55%; }
.clip-hair:nth-of-type(3) { left: 75%; }
@media (prefers-reduced-motion: no-preference) {
  .cal-clipper { animation: clipper-buzz 140ms linear infinite; }
  .clip-hair:nth-of-type(1) { animation: hair-fall 1.3s var(--ease) 0.1s infinite; }
  .clip-hair:nth-of-type(2) { animation: hair-fall 1.5s var(--ease) 0.6s infinite; }
  .clip-hair:nth-of-type(3) { animation: hair-fall 1.2s var(--ease) 0.9s infinite; }
}
@keyframes clipper-buzz {
  0%, 100% { translate: 0 0; }
  25% { translate: -1px 0.5px; }
  50% { translate: 1px -0.5px; }
  75% { translate: -0.5px -1px; }
}
@keyframes hair-fall {
  0%   { opacity: 0; translate: 0 0; rotate: 0deg; }
  15%  { opacity: 0.8; }
  100% { opacity: 0; translate: 5px 48px; rotate: 70deg; }
}

/* -- date + time picker -- */
.picker-preview {
  margin: 0;
  padding: var(--space-3) var(--space-6);
  border-bottom: 1px solid color-mix(in srgb, var(--color-accent) 42%, var(--color-line));
  background: color-mix(in srgb, var(--color-accent) 10%, var(--color-surface));
  color: var(--color-cream);
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
}
.picker {
  display: grid;
  gap: var(--space-6);
  padding: var(--space-4);
}
@media (min-width: 760px) {
  .picker {
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: var(--space-8);
    padding: var(--space-6);
    align-items: start;
  }
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.cal-month {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.cal-nav {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  box-shadow: inset 0 0 0 1px var(--color-line);
  color: var(--color-cream);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.cal-nav:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--color-accent); color: var(--color-accent); }
.cal-nav:disabled { opacity: 0.35; cursor: not-allowed; }

.cal-dow, .cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-1);
}
.cal-dow {
  margin-bottom: var(--space-2);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--color-cream-dim);
}

.day {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-height: 40px;
  border: none;
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-cream);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
}
@media (prefers-reduced-motion: no-preference) {
  .day { transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
}
.day.is-blank { background: none; pointer-events: none; }
.day:hover:not(:disabled):not(.is-selected) { background: var(--color-surface-raised); }
.day.is-off {
  background: none;
  color: var(--color-cream-dim);
  opacity: 0.35;
  cursor: not-allowed;
}
.day.is-today { box-shadow: inset 0 0 0 1px var(--color-line); }
.day.is-selected {
  background: var(--color-accent);
  color: var(--color-cream);
  font-weight: 700;
  clip-path: polygon(25% 7%, 75% 7%, 100% 50%, 75% 93%, 25% 93%, 0 50%);
  filter: drop-shadow(0 0 var(--space-2) color-mix(in srgb, var(--color-accent) 65%, transparent));
}

.cal-note {
  margin: var(--space-3) 0 0;
  font-size: 0.8125rem;
  color: var(--color-cream-dim);
}

.slots-head {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-cream);
}
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(94px, 1fr));
  gap: var(--space-2);
}
.slot {
  min-height: 44px;
  padding: var(--space-2);
  border: none;
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: inset 0 0 0 1px var(--color-line);
  color: var(--color-cream);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}
@media (prefers-reduced-motion: no-preference) {
  .slot { transition: background-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
}
.slot:hover:not(:disabled):not(.is-selected) { box-shadow: inset 0 0 0 1px var(--color-accent); }
.slot:disabled {
  color: var(--color-cream-dim);
  opacity: 0.35;
  box-shadow: none;
  text-decoration: line-through;
  cursor: not-allowed;
}
.slot.is-selected {
  background: var(--color-accent);
  box-shadow: none;
  color: var(--color-cream);
}

.picker-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-4);
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-line);
  background: var(--color-surface);
}
/* 1 1 16rem: sits beside the button when there's room, drops to its own full
   line when there isn't — never squeezed into a word-per-line column */
.picker-summary { margin: 0; font-weight: 700; flex: 1 1 16rem; min-width: 0; }
.picker-summary span {
  display: block;
  color: var(--color-cream-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.picker-summary .is-set { color: var(--color-cream); }
.picker-bar .btn { flex: none; }

/* -- step 3: customer details -- */
.details-layout {
  display: grid;
  gap: var(--space-8);
  padding: var(--space-8) var(--space-6);
}
@media (min-width: 760px) {
  .details-layout {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: var(--space-12);
    align-items: start;
  }
}
.details-heading h3 {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.details-heading p { margin: 0; color: var(--color-cream-dim); }
.details-heading .details-kicker {
  margin-bottom: var(--space-2);
  color: var(--color-accent);
  font-family: var(--font-accent);
  font-size: 1.125rem;
  font-style: italic;
}
.booking-form { display: grid; gap: var(--space-6); }
.field-grid { display: grid; gap: var(--space-4); }
.form-field {
  display: grid;
  gap: var(--space-2);
  color: var(--color-cream);
  font-size: 0.9375rem;
  font-weight: 700;
}
.form-field input {
  width: 100%;
  min-height: var(--space-12);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-cream);
  font: inherit;
}
.form-field input:hover { border-color: var(--color-cream-dim); }
.form-field input:focus-visible { border-color: var(--color-led); }
.form-field input[aria-invalid="true"] { border-color: var(--color-accent); }
.field-hint, .field-error { font-size: 0.8125rem; font-weight: 500; }
.field-hint { color: var(--color-cream-dim); }
.field-error { color: var(--color-accent); }
.booking-review {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-4);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
}
.booking-review span:first-child { font-weight: 700; color: var(--color-cream); }
.booking-review span:last-child { color: var(--color-cream-dim); font-size: 0.9375rem; }
.booking-form .btn { justify-self: start; }

/* -- booked confirmation -- */
.bpanel-success {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-4);
  padding: var(--space-8);
}
.success-spade {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-accent) 12%, transparent);
  box-shadow: inset 0 0 0 1px var(--color-accent);
}
.success-spade-svg { width: 30px; height: 30px; fill: var(--color-accent); }
@media (prefers-reduced-motion: no-preference) {
  .bpanel-success.is-active .success-spade { animation: success-pop 600ms var(--ease-spring); }
}
@keyframes success-pop {
  from { scale: 0.4; opacity: 0; }
}
.bpanel-success h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.bpanel-success p { margin: 0; max-width: var(--measure); color: var(--color-cream-dim); }

/* fallback panel shown until Cal.com link is configured */
.booking-fallback {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-4);
  padding: var(--space-8);
}
.booking-fallback .spade { width: 32px; height: 32px; }
.booking-fallback h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.booking-fallback p {
  margin: 0;
  max-width: var(--measure);
  color: var(--color-cream-dim);
}
.booking-fallback-text { padding: var(--space-8); }

/* ---------- info ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
}

.info-block {
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-line);
}

.info-block h3 {
  margin: 0 0 var(--space-2);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.info-block p { margin: 0; }
.hours-list { display: grid; gap: var(--space-3); margin: 0; }
.hours-list div { display: grid; gap: var(--space-1); }
.hours-list dt { font-weight: 700; color: var(--color-cream); }
.hours-list dd { margin: 0; color: var(--color-cream-dim); }
.hours-note { margin-top: var(--space-4); color: var(--color-cream-dim); }
.contact-list {
  display: grid;
  justify-items: start;
  gap: var(--space-2);
}
.contact-phone {
  color: var(--color-cream);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration-color: var(--color-accent);
}

.map-card {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.55fr);
  min-height: 22rem;
  margin-top: var(--space-12);
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  color: var(--color-cream);
  text-decoration: none;
}

.map-embed {
  position: relative;
  min-height: 18rem;
  overflow: hidden;
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
}

.map-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: var(--space-12);
  border-left: 1px solid var(--color-line);
}
.map-label {
  margin-bottom: var(--space-4);
  color: var(--color-accent);
  font-family: var(--font-accent);
  font-size: 1.25rem;
  font-style: italic;
}
.map-copy strong {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw, 1.75rem);
  font-weight: 400;
  text-transform: uppercase;
  white-space: nowrap;
}
.map-copy > span:not(.map-label, .map-link) { color: var(--color-cream-dim); }
.map-link { margin-top: var(--space-8); font-weight: 700; color: var(--color-cream); }
@media (prefers-reduced-motion: no-preference) {
  .map-link { transition: color var(--dur) var(--ease); }
}
/* ---------- social icons ---------- */
.social-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.social-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  box-shadow: inset 0 0 0 1px var(--color-line);
  color: var(--color-cream);
}
.social-btn svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: no-preference) {
  .social-btn { transition: color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease-out); }
}
.social-btn:hover {
  color: var(--color-accent);
  box-shadow: inset 0 0 0 1px var(--color-accent);
  transform: translateY(-2px);
}
.social-btn:active { transform: translateY(0) scale(0.92); }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-8) var(--space-6);
  border-top: 1px solid var(--color-line);
  color: var(--color-cream-dim);
  font-size: 0.9375rem;
}
/* giant outline wordmark closing the page */
.footer-word {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px var(--color-line);
  white-space: nowrap;
  user-select: none;
  max-width: 100%;
  overflow: hidden;
}
.footer-word::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 8% 18%;
  clip-path: polygon(25% 7%, 75% 7%, 100% 50%, 75% 93%, 25% 93%, 0 50%);
  background: color-mix(in srgb, var(--color-led) 5%, transparent);
  filter: blur(var(--space-8));
}

/* ---------- gallery lightbox ---------- */
.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: var(--space-4);
  border: 0;
  background: color-mix(in srgb, var(--color-ink) 96%, transparent);
  color: var(--color-cream);
}
.lightbox::backdrop { background: color-mix(in srgb, var(--color-ink) 88%, transparent); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox-shell {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  width: min(100%, var(--container-max));
  height: 100%;
}
.lightbox-figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: var(--space-3);
  width: 100%;
  height: min(88svh, 56rem);
  margin: 0;
  min-width: 0;
}
.lightbox-figure img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  border-radius: var(--radius-lg);
}
.lightbox-figure figcaption {
  text-align: center;
  color: var(--color-cream-dim);
}
.lightbox-close,
.lightbox-nav {
  display: grid;
  place-items: center;
  width: var(--space-12);
  height: var(--space-12);
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-surface-raised);
  box-shadow: inset 0 0 0 1px var(--color-line);
  color: var(--color-cream);
  font: inherit;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
}
@media (hover: hover) {
  .lightbox-close:hover,
  .lightbox-nav:hover { color: var(--color-accent); box-shadow: inset 0 0 0 1px var(--color-accent); }
}
@media (max-width: 700px) {
  .lightbox { padding: var(--space-3); }
  .lightbox-shell { grid-template-columns: 1fr 1fr; align-content: center; }
  .lightbox-figure { grid-column: 1 / -1; grid-row: 1; height: 78svh; }
  .lightbox-prev { grid-column: 1; justify-self: start; }
  .lightbox-next { grid-column: 2; justify-self: end; }
  .lightbox-close { top: var(--space-2); right: var(--space-2); }
}
.site-footer .spade { width: 14px; height: 14px; vertical-align: -2px; }
.site-footer p { margin: 0; display: inline-flex; align-items: center; gap: var(--space-2); }

/* ---------- motion (GSAP owns entrances/reveals; CSS keeps the rest) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* section headings rise in, then the LED underline sweeps through */
  .js-anim h2.reveal {
    opacity: 0;
    translate: 0 28px;
    transition: opacity var(--dur-slow) var(--ease), translate var(--dur-slow) var(--ease-out);
  }
  .js-anim h2.reveal::after {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 700ms var(--ease-out) 350ms;
  }
  .js-anim h2.reveal.is-revealed { opacity: 1; translate: 0 0; }
  .js-anim h2.reveal.is-revealed::after { transform: scaleX(1); }
}

/* GSAP drives the marquee when available (velocity-reactive) */
.marquee-track.gsap-driven { animation: none; }

/* scroll hint pinned to the hero's bottom edge */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: var(--space-6);
  translate: -50% 0;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-cream-dim);
  z-index: 2;
}
.hero-scroll .spade { width: 12px; height: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-scroll .spade { animation: scroll-nudge 1.6s var(--ease) infinite alternate; }
}
@keyframes scroll-nudge {
  from { translate: 0 0; }
  to   { translate: 0 5px; }
}

/* film grain so the black reads as texture, not emptiness */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.05;
  transform: translateZ(0); /* own compositor layer — never repaints on scroll */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- svg defs + first-visit stinger ---------- */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.stinger {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: var(--color-ink);
  cursor: pointer;
}
.stinger[hidden] { display: none; }
.stinger-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-led);
  box-shadow: 0 0 8px var(--color-glow), 0 0 28px var(--color-glow);
  transform: scaleX(0);
  transform-origin: left;
}
.stinger-clipper {
  position: absolute;
  top: 50%;
  left: 0;
  width: clamp(64px, 9vw, 96px);
  height: clamp(147px, 20.7vw, 221px);
  margin-top: calc(clamp(147px, 20.7vw, 221px) / -2);
  color: var(--color-cream);
  rotate: 90deg;
  filter: drop-shadow(0 0 18px var(--color-glow));
}
@media (prefers-reduced-motion: no-preference) {
  .stinger-clipper { animation: clipper-buzz 120ms linear infinite; }
}

/* ---------- booking success: one finishing pass under the headline ---------- */
.success-sweep {
  position: relative;
  width: min(260px, 70%);
  height: var(--space-8);
}
.success-line {
  position: absolute;
  inset-inline: 0;
  top: 50%;
  height: 2px;
  background: var(--color-led);
  box-shadow: 0 0 8px var(--color-glow);
  transform: scaleX(0);
  transform-origin: left;
}
.success-clipper {
  position: absolute;
  top: 50%;
  left: 0;
  width: 15px;
  height: 34px;
  margin-top: -17px;
  color: var(--color-cream-dim);
  rotate: 90deg;
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .bpanel-success.is-active .success-line { animation: sweep-line 900ms var(--ease) 400ms both; }
  .bpanel-success.is-active .success-clipper { animation: sweep-clipper 900ms var(--ease) 400ms both; }
}
@keyframes sweep-line {
  to { transform: scaleX(1); }
}
@keyframes sweep-clipper {
  0%   { opacity: 0; left: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { opacity: 0; left: calc(100% - 15px); }
}

/* ---------- craft (kinetic type sequence, no duplicate gallery images) ---------- */
.craft {
  position: relative;
  padding-block: 0;
  background: var(--color-surface);
  overflow: clip;
}
.craft-stage {
  position: relative;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--space-24) var(--space-6);
}
.craft-header { position: relative; z-index: 3; }
.craft-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  perspective: var(--craft-prism-large);
  pointer-events: none;
}
.craft-wash {
  position: absolute;
  inset: -15%;
  filter: blur(var(--craft-wash-blur));
  transform: translateZ(0);
}
.craft-wash-a {
  background: radial-gradient(circle at 22% 58%, color-mix(in srgb, var(--color-led) 20%, transparent), transparent 48%);
}
.craft-wash-b {
  background: radial-gradient(circle at 72% 42%, color-mix(in srgb, var(--color-accent) 56%, transparent), transparent 50%);
}
.craft-wash-c {
  background:
    radial-gradient(circle at 28% 70%, color-mix(in srgb, var(--color-accent-deep) 44%, transparent), transparent 42%),
    radial-gradient(circle at 80% 30%, color-mix(in srgb, var(--color-led) 24%, transparent), transparent 38%);
}
.craft-defs { position: absolute; width: 0; height: 0; }
.craft-prism {
  position: absolute;
  width: var(--craft-prism-small);
  aspect-ratio: 1;
  transform-style: preserve-3d;
  will-change: transform;
}
.craft-prism-a { top: 12%; right: 5%; width: var(--craft-prism-large); }
.craft-prism-b { top: 48%; left: 7%; }
.craft-prism-c { right: 14%; bottom: 5%; }
.craft-face {
  position: absolute;
  inset: 0;
  overflow: visible;
  fill: color-mix(in srgb, var(--color-surface-raised) 28%, transparent);
  stroke: var(--color-led);
  stroke-width: var(--craft-prism-stroke);
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 var(--space-3) var(--color-glow));
}
.craft-face-back { translate: 0 0 calc(var(--craft-depth-near) * -1); opacity: 0.22; }
.craft-face-mid { translate: 0 0 var(--craft-depth-mid); opacity: 0.5; }
.craft-face-front { translate: 0 0 var(--craft-depth-near); }
.craft-kicker {
  margin: 0;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: var(--craft-kicker-size);
  color: var(--color-accent);
}
.craft-header h2 {
  max-width: var(--measure);
  margin: var(--space-2) 0 0;
  font-family: var(--font-display);
  font-size: var(--craft-title-size);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}
.craft-step {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  min-height: var(--craft-step-height);
  border-top: var(--craft-word-stroke) solid var(--color-line);
}
.craft-word {
  position: relative;
  width: min-content;
  font-family: var(--font-display);
  font-size: var(--craft-word-size);
  line-height: 0.84;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}
.craft-word-outline {
  color: transparent;
  -webkit-text-stroke: var(--craft-word-stroke) var(--color-line);
}
.craft-word-fade .craft-word-outline {
  -webkit-text-stroke-color: color-mix(in srgb, var(--color-led) 28%, var(--color-line));
}
.craft-word-fill {
  position: absolute;
  inset: 0;
  color: var(--color-led);
}
.craft-fade-bands,
.craft-line-cutter,
.craft-finish-letters,
.craft-finish-sheen { display: none; }
.js-craft-effects .craft-word-fade .craft-word-fill,
.js-craft-effects .craft-word-finish .craft-word-fill { opacity: 0; }
.js-craft-effects .craft-fade-bands,
.js-craft-effects .craft-finish-letters,
.js-craft-effects .craft-finish-sheen {
  display: block;
  position: absolute;
  inset: 0;
}
.craft-fade-band {
  position: absolute;
  inset: 0;
  color: var(--color-led);
  will-change: transform, opacity, filter;
}
.craft-fade-band:nth-child(1) { clip-path: inset(0 0 83.333% 0); }
.craft-fade-band:nth-child(2) { clip-path: inset(16.667% 0 66.666% 0); }
.craft-fade-band:nth-child(3) { clip-path: inset(33.333% 0 50% 0); }
.craft-fade-band:nth-child(4) { clip-path: inset(50% 0 33.333% 0); }
.craft-fade-band:nth-child(5) { clip-path: inset(66.666% 0 16.667% 0); }
.craft-fade-band:nth-child(6) { clip-path: inset(83.333% 0 0 0); }
.js-craft-effects .craft-line-cutter {
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: var(--craft-rail-size);
  background: var(--color-accent);
  box-shadow: 0 0 var(--space-4) var(--color-accent);
}
.craft-finish-letters {
  color: var(--color-led);
  white-space: nowrap;
  perspective: var(--craft-prism-small);
}
.craft-finish-letters > span {
  display: inline-block;
  will-change: transform, opacity;
}
.craft-finish-sheen {
  color: transparent;
  background: linear-gradient(100deg, transparent 30%, var(--color-led) 50%, transparent 70%);
  background-size: 240% 100%;
  background-position: 120% 0;
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 0 var(--space-3) var(--color-glow));
  pointer-events: none;
}
.craft-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: var(--space-8);
  margin-top: var(--space-8);
}
.craft-count {
  margin: 0;
  font-size: var(--craft-count-size);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--color-accent);
}
.craft-copy h3 {
  margin: var(--space-2) 0 var(--space-3);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--craft-copy-size);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-cream);
}
.craft-detail {
  position: relative;
  will-change: transform, opacity, filter, clip-path;
}
.craft-detail-final,
.craft-detail-line-fill { display: block; }
.craft-detail-fade-bands,
.craft-detail-line-outline,
.craft-detail-line-cutter,
.craft-detail-finish-ghosts,
.craft-detail-finish-sheen { display: none; }
.js-craft-effects .craft-detail-fade-bands,
.js-craft-effects .craft-detail-line-outline,
.js-craft-effects .craft-detail-line-cutter,
.js-craft-effects .craft-detail-finish-ghosts,
.js-craft-effects .craft-detail-finish-sheen {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.craft-detail-fade-bands > span,
.craft-detail-finish-ghosts > span {
  position: absolute;
  inset: 0;
  will-change: transform, opacity, filter;
}
.craft-detail-fade-bands > span:nth-child(1) { clip-path: inset(0 0 66.666% 0); }
.craft-detail-fade-bands > span:nth-child(2) { clip-path: inset(33.333% 0 33.333% 0); }
.craft-detail-fade-bands > span:nth-child(3) { clip-path: inset(66.666% 0 0 0); }
.craft-detail-line-outline {
  color: transparent;
  -webkit-text-stroke: var(--craft-word-stroke) var(--color-accent);
}
.js-craft-effects .craft-detail-line-cutter {
  right: auto;
  width: var(--craft-rail-size);
  background: var(--color-accent);
  box-shadow: 0 0 var(--space-4) var(--color-accent);
}
.craft-detail-finish-ghosts > span:first-child { color: var(--color-accent); }
.craft-detail-finish-ghosts > span:last-child { color: var(--color-cream-dim); }
.craft-detail-finish-sheen {
  color: transparent;
  background: linear-gradient(100deg, transparent 25%, var(--color-led) 50%, transparent 75%);
  background-size: 240% 100%;
  background-position: 120% 0;
  background-clip: text;
  -webkit-background-clip: text;
}
.craft-copy p:last-child {
  margin: 0;
  max-width: var(--measure);
  color: var(--color-cream-dim);
  font-size: var(--craft-kicker-size);
}
.craft-rail { display: none; }

/* scrub mode: the words trade places while the clipper tracks the cut */
.js-scrub .craft { height: var(--craft-scroll-length); }
.js-scrub .craft-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  max-width: none;
  overflow: hidden;
  padding-inline: max(var(--space-6), calc((100vw - var(--container-max)) / 2 + var(--space-6)));
}
.js-scrub .craft-atmosphere { position: absolute; }
.js-scrub .craft-sequence { position: absolute; inset: 0; }
.js-scrub .craft-step {
  position: absolute;
  inset: 0;
  min-height: 0;
  padding: var(--space-24) max(var(--space-6), calc((100vw - var(--container-max)) / 2 + var(--space-6)));
  border: 0;
}
.js-scrub .craft-word { width: 100%; }
.js-scrub .craft-rail {
  display: block;
  position: absolute;
  right: max(var(--space-12), calc((100vw - var(--container-max)) / 2 + var(--space-6)));
  top: var(--space-24);
  bottom: var(--space-16);
  width: var(--craft-rail-size);
  background: color-mix(in srgb, var(--color-accent) 24%, var(--color-line));
  z-index: 4;
}
.craft-progress {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(var(--color-accent-deep), var(--color-accent));
  transform-origin: top;
}
.js-scrub .craft-runner {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--craft-clipper-width);
  translate: -50% 0;
  z-index: 2;
  pointer-events: none;
}
.js-scrub .craft-runner::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: calc(-1 * var(--space-3));
  bottom: calc(-1 * var(--space-3));
  left: 50%;
  width: var(--craft-rail-cutout-width);
  transform: translateX(-50%);
  background: linear-gradient(
    to right,
    transparent,
    color-mix(in srgb, var(--color-surface) 88%, transparent) 28%,
    var(--color-surface) 44% 56%,
    color-mix(in srgb, var(--color-surface) 88%, transparent) 72%,
    transparent
  );
  filter: blur(var(--space-1));
  mask-image: linear-gradient(to bottom, transparent, black var(--space-4), black calc(100% - var(--space-4)), transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black var(--space-4), black calc(100% - var(--space-4)), transparent);
}
.js-scrub .craft-clipper {
  display: block;
  position: relative;
  z-index: 3;
  width: 100%;
  aspect-ratio: 488 / 1124;
  color: var(--color-cream);
  transform: translateX(var(--craft-clipper-optical-shift));
  filter: drop-shadow(0 0 var(--space-4) color-mix(in srgb, var(--color-led) 24%, transparent));
}

/* Desktop reads as one deliberate left-aligned story. Keep the kinetic word,
   phase number, headline, and description in the same visual column. */
@media (min-width: 960px) {
  .js-scrub .craft-step {
    align-content: center;
    justify-items: start;
    padding-top: var(--craft-desktop-step-top);
    padding-bottom: var(--space-16);
  }
  .js-scrub .craft-word {
    width: min-content;
    max-width: var(--craft-desktop-content);
  }
  .js-scrub .craft-copy {
    width: min(100%, var(--craft-desktop-content));
    grid-template-columns: 1fr;
    align-items: start;
    gap: var(--space-3);
    margin-top: var(--space-8);
    text-align: left;
  }
  .js-scrub .craft-copy h3 {
    margin-top: 0;
  }
  .js-scrub .craft-prism-b {
    left: var(--craft-desktop-visual-start);
  }
}

/* ---------- sticky book bar (mobile only) ---------- */
.book-bar { display: none; }
@media (max-width: 700px) {
  .book-bar {
    position: fixed;
    left: var(--space-4);
    right: var(--space-4);
    bottom: var(--space-4);
    z-index: var(--z-fab);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: var(--space-3) var(--space-6);
    background: var(--color-accent);
    color: var(--color-cream);
    border-radius: var(--radius-pill);
    box-shadow: 0 12px 32px color-mix(in srgb, var(--color-ink) 65%, transparent);
    font-weight: 700;
    font-size: 0.9375rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    translate: 0 calc(100% + var(--space-6));
  }
  .book-bar.is-visible { translate: 0 0; }
}
@media (max-width: 700px) and (prefers-reduced-motion: no-preference) {
  .book-bar { transition: translate 400ms var(--ease-out); }
}

/* ---------- small screens ---------- */
@media (max-width: 600px) {
  main > section { padding-block: var(--space-16); }
  /* backdrop blur re-blurs on every scroll frame — too costly on phones */
  .site-header { backdrop-filter: none; background: color-mix(in srgb, var(--color-ink) 97%, transparent); }
  .container { padding-inline: var(--space-4); }
  .site-header nav { gap: var(--space-3); }
  .header-brand-lockup { height: var(--header-brand-height-mobile); }
  .header-brand-copy { width: 5.75rem; }
  .header-lounge { font-size: 0.4375rem; letter-spacing: 0.16em; }
  /* keep the header to what matters on a phone: brand + book */
  .site-header nav a[href="#info"],
  .site-header nav a[href="#work"] { display: none; }
  .hero { min-height: calc(92svh - var(--header-h)); }
  .hero-lockup { width: 100%; }
  .hero-spade-mark { width: clamp(4.75rem, 23vw, 6.25rem); }
  .hero-wordmark { width: 100%; }
  .hero-lounge { margin-top: var(--space-1); letter-spacing: 0.22em; }
  .hero-kicker { font-size: 1.25rem; }
  .hero-sub { font-size: 1.0625rem; }
  .hero-actions .btn { flex: 1; }
  .hero-hex:nth-of-type(3) { display: none; }
  .marquee-item { font-size: 1.5rem; }
  .price-list li { flex-wrap: wrap; }
  .leader { display: none; }
  .price { margin-left: auto; }
  .price-list li.feature .menu-row { padding: var(--space-6); }
  .section-ghost { top: var(--space-2); opacity: 0.45; }
  .craft-stage { padding: var(--space-16) var(--space-4) var(--space-8); }
  .craft-header { margin-bottom: var(--space-8); }
  .craft-step {
    min-height: var(--craft-step-height);
    padding-block: var(--space-8);
  }
  .craft-word { font-size: clamp(4.25rem, 22vw, 6rem); }
  .craft-prism-a { top: 15%; right: -24%; }
  .craft-prism-b { top: 46%; left: auto; right: -26%; }
  .craft-prism-c { right: -22%; bottom: 5%; }
  .craft-copy { grid-template-columns: 1fr; gap: var(--space-2); }
  .booking-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    display: grid;
    padding: var(--space-4) var(--space-4) 0;
    gap: var(--space-2);
  }
  .bstep {
    flex-direction: column;
    justify-content: center;
    gap: var(--space-1);
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
    text-align: center;
  }
  .bstep-num { width: var(--space-6); height: var(--space-6); }
  /* stack summary over a full-width button — side by side crushes the text */
  .booking-bar, .picker-bar {
    flex-wrap: wrap;
    gap: var(--space-3);
    padding: var(--space-4);
  }
  /* flex: 1 0 100% — basis alone still lets it shrink beside the button */
  .booking-summary, .picker-summary { flex: 1 0 100%; }
  .booking-bar .btn, .picker-bar .btn { flex: 1; }
  .details-layout { padding: var(--space-6) var(--space-4); }
  .booking-form .btn { width: 100%; }
  .slot-grid { grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); }
  .times-head { flex-wrap: wrap; padding-inline: var(--space-4); }
  .map-card { grid-template-columns: 1fr; }
  .map-copy { padding: var(--space-8); border-left: 0; border-top: 1px solid var(--color-line); }
  .map-embed { min-height: 15rem; }
  .info-grid { grid-template-columns: 1fr; }
}

/* Tablet type scales before the shared pinned stage overrides its positioning. */
@media (min-width: 601px) and (max-width: 959px) {
  .craft-stage { padding-block: var(--space-16); }
  .craft-header { margin-bottom: var(--space-8); }
  .craft-step {
    min-height: var(--craft-tablet-step-height);
    padding-block: var(--space-8);
  }
  .craft-word { font-size: clamp(5.5rem, 17vw, 8rem); }
  .craft-copy {
    grid-template-columns: 1fr;
    gap: var(--space-2);
    max-width: var(--measure);
  }
}

/* Phones and tablets use the same single scrub stage as desktop. The stage
   clears the fixed header and keeps the moving clipper in its own right rail. */
@media (max-width: 959px) {
  .js-scrub .craft-stage {
    top: var(--header-h);
    height: calc(100svh - var(--header-h));
    padding: var(--space-8) calc(var(--space-12) + var(--craft-clipper-width)) var(--space-8) var(--space-4);
  }
  .js-scrub .craft-header { margin-bottom: 0; }
  .js-scrub .craft-header h2 { font-size: clamp(2.5rem, 11vw, var(--craft-title-size)); }
  .js-scrub .craft-step {
    min-height: 0;
    padding: var(--craft-mobile-step-top) calc(var(--space-12) + var(--craft-clipper-width)) var(--space-8) var(--space-4);
  }
  .js-scrub .craft-word { font-size: clamp(4.25rem, 21vw, 7.5rem); }
  .js-scrub .craft-copy {
    grid-template-columns: 1fr;
    gap: var(--space-2);
    margin-top: var(--space-6);
    max-width: var(--measure);
  }
  .js-scrub .craft-rail {
    right: var(--space-12);
    top: var(--space-12);
    bottom: var(--space-8);
  }
  .js-scrub .craft-prism-a { top: 10%; right: -24%; }
  .js-scrub .craft-prism-b { top: 48%; left: auto; right: -26%; }
  .js-scrub .craft-prism-c { right: -22%; bottom: 4%; }
  .js-scrub .craft-prism { opacity: 0.58; }
}

@media (max-width: 600px) {
  .js-scrub .craft-prism-a {
    top: var(--craft-prism-mobile-a-top);
    right: calc(var(--craft-prism-mobile-a-right) - var(--space-8));
  }
  .js-scrub .craft-prism-b {
    top: var(--craft-prism-mobile-b-top);
    right: var(--craft-prism-mobile-b-right);
    width: var(--craft-prism-mobile-small);
  }
  .js-scrub .craft-prism-c {
    right: calc(var(--craft-prism-mobile-c-right) * -1);
    bottom: calc(var(--craft-prism-mobile-c-bottom) - var(--space-12));
    width: var(--craft-prism-mobile-small);
  }
}

@media (max-width: 360px) {
  .js-scrub .craft-header h2 { font-size: clamp(1.75rem, 9vw, 2rem); }
  .js-scrub .craft-step {
    align-content: end;
    padding-bottom: var(--space-8);
  }
  .js-scrub .craft-word { font-size: clamp(3.5rem, 19vw, 4rem); }
  .js-scrub .craft-copy { margin-top: var(--space-4); }
  .js-scrub .craft-prism-c {
    right: var(--craft-prism-narrow-c-right);
    bottom: var(--craft-prism-narrow-c-bottom);
  }
}

/* very narrow phones (SE and friends): brand + book button only, or the nav
   forces the page wider than the screen */
@media (max-width: 420px) {
  .site-header nav a:not(.btn) { display: none; }
  .site-header a.btn-small { padding-inline: var(--space-3); font-size: 0.875rem; }
}

/* Galaxy Fold cover screen and similar (280px) */
@media (max-width: 340px) {
  .site-header .container { padding-inline: var(--space-3); }
  .header-brand-lockup { height: var(--header-brand-height-narrow); }
  .header-brand-copy { width: 5.25rem; }
}
