/* SECTION-SPECIFIC STYLES
 * Each section is theme-agnostic — reads semantic tokens from [data-theme]
 */

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: color-mix(in oklch, var(--bg), transparent 8%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
  /* Force compositor layer so backdrop-filter doesn't invalidate ancestors on scroll */
  transform: translateZ(0);
  contain: layout style;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
  gap: var(--space-6);
}

.nav-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  line-height: 1;
}
.nav-brand__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-xl);
  color: var(--text);
  letter-spacing: -0.005em;
  font-style: normal;
}
.nav-brand__name strong {
  color: var(--accent);
  font-weight: 500;
  font-style: italic;
}
.nav-brand__sub {
  font-family: var(--font-accent);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: oklch(0.78 0.13 78 / 0.7);
  font-weight: var(--fw-semibold);
}
@media (max-width: 768px) {
  .nav-brand__sub { display: none; }
}
/* Backwards-compat for any leftover code styling .nav-brand strong */
.nav-brand strong { color: var(--accent); }

[data-theme="razor"] .nav-brand__name {
  text-transform: uppercase;
  letter-spacing: var(--ls-tight);
}

/* Phone CTA in header — pill style, not button */
.nav-phone-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 22px;
  background: var(--accent);
  color: var(--accent-contrast);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0.10em;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.nav-phone-cta:hover {
  background: oklch(0.86 0.15 80);
  transform: translateY(-1px);
}

.nav-links {
  display: none;
  gap: var(--space-2);
  align-items: center;
}
@media (min-width: 1024px) {
  .nav-links { display: flex; }
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px var(--space-3);
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  text-decoration: none;
  border-radius: var(--radius-button);
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-link:hover { color: var(--text); }
.nav-link.is-primary {
  color: var(--accent);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  font-size: var(--text-xs);
}

.nav-ctas {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

/* Mobile burger */
.nav-burger {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--text);
}
@media (min-width: 1024px) { .nav-burger { display: none; } }

/* ============================================================
   MOBILE NAV — Fullscreen overlay
   ============================================================ */
.nav-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-nav) + 10);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-8);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--dur-base) var(--ease-out),
              visibility var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.nav-mobile-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-mobile-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border);
}
.nav-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--text);
}
.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  align-items: flex-start;
}
.nav-mobile-link {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  color: var(--text-muted);
  text-decoration: none;
  padding: var(--space-2) 0;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-mobile-link:hover,
.nav-mobile-link:active { color: var(--text); }
.nav-mobile-link.is-primary {
  color: var(--accent);
  font-size: var(--text-4xl);
}
.nav-mobile-footer {
  position: absolute;
  bottom: var(--space-12);
  left: var(--space-8);
  right: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.nav-mobile-phone {
  color: var(--accent);
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  text-decoration: none;
}
.nav-mobile-hours {
  color: var(--text-dim);
  font-size: var(--text-sm);
}

@media (min-width: 1024px) {
  .nav-mobile-overlay { display: none; }
}

/* Legacy (removed) */
.nav-mobile { display: none; }

/* ============================================================
   HERO
   ============================================================ */
/* HERO — Tonight, the chair is yours · Cinematic Variant A (subject left, text right) */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: var(--space-12) var(--space-16);
  overflow: hidden;
  background: oklch(0.10 0.005 60);
  isolation: isolate;
}

@media (max-width: 1024px) { .hero { padding: var(--space-12) var(--space-10); } }
@media (max-width: 768px) {
  .hero {
    padding: var(--space-12) var(--space-6) var(--space-16);
    justify-content: center;
    align-items: flex-end;
  }
}

/* Background layers (video / desktop-still / mobile-still). Toggled via [data-bg-mode]. */
.hero-video,
.hero-still,
.hero-still-mobile {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  filter: saturate(1.06) contrast(1.04);
  transition: opacity 600ms var(--ease-out);
}
.hero-video {
  object-fit: cover;
  object-position: center;
}
.hero-still,
.hero-still-mobile {
  background-size: cover;
  background-position: center;
}

/* Default: VIDEO mode visible, STILL hidden */
.hero[data-bg-mode="video"] .hero-still { opacity: 0; }
.hero[data-bg-mode="video"] .hero-video { opacity: 1; }
/* Toggle: STILL mode visible, VIDEO hidden */
.hero[data-bg-mode="still"] .hero-still { opacity: 1; }
.hero[data-bg-mode="still"] .hero-video { opacity: 0; }

/* Mobile-only fallback (always visible on mobile, regardless of mode) */
.hero-still-mobile {
  background-position: center 22%;
}

/* Reduced motion: hide video, force still */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none !important; }
  .hero-still { opacity: 1 !important; }
}

/* Veil for text legibility — gradient from text-side darker to subject-side transparent */
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    /* Right-side veil where text sits (Variant A) */
    linear-gradient(90deg,
      transparent 0%,
      transparent 38%,
      oklch(0.10 0.005 60 / 0.40) 60%,
      oklch(0.10 0.005 60 / 0.78) 80%,
      oklch(0.10 0.005 60 / 0.85) 100%),
    /* Subtle bottom fade for section continuity */
    linear-gradient(180deg, transparent 70%, oklch(0.13 0.006 60) 100%);
}

@media (max-width: 768px) {
  /* Mobile veil: subject TOP, text BOTTOM */
  .hero-veil {
    background:
      linear-gradient(180deg,
        transparent 0%,
        transparent 36%,
        oklch(0.10 0.005 60 / 0.55) 58%,
        oklch(0.10 0.005 60 / 0.92) 80%,
        oklch(0.13 0.006 60) 100%);
  }
}

/* Hero content — right-aligned on desktop, bottom-aligned on mobile */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  width: 100%;
}
@media (max-width: 768px) {
  .hero-content { max-width: none; }
}

.hero-eyebrow {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-6);
  font-weight: var(--fw-semibold);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(44px, 5.4vw, 86px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.018em;
  color: var(--text);
  margin: 0 0 var(--space-6);
  text-shadow: 0 2px 24px oklch(0.04 0 0 / 0.55);
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 var(--space-8);
  max-width: 480px;
  text-shadow: 0 1px 8px oklch(0.04 0 0 / 0.45);
}

/* Live slot indicator */
.hero-slot {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}
.hero-slot__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: oklch(0.78 0.18 145);
  box-shadow: 0 0 12px oklch(0.78 0.18 145 / 0.7);
  animation: hero-slot-pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
.hero-slot__label {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: var(--fw-semibold);
}
.hero-slot__time {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--text);
  font-weight: 500;
}
.hero-slot__time em { font-style: italic; color: var(--accent); }

@keyframes hero-slot-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.25); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slot__dot { animation: none; }
}

/* Hero CTA cluster */
.hero-ctas {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

/* Primary CTA — sans-uppercase + arrow, NOT glassy plate */
.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 18px 32px;
  background: var(--accent);
  color: var(--accent-contrast);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0.20em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-out),
              gap var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
  min-height: 56px;
}
.btn-cta-primary:hover {
  background: oklch(0.86 0.15 80);
  gap: var(--space-4);
  box-shadow: 0 12px 36px oklch(0.78 0.13 78 / 0.28);
}
.btn-cta-primary svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-out);
}
.btn-cta-primary:hover svg { transform: translateX(4px); }

/* Secondary CTA — text-link with subtle underline */
.btn-cta-secondary {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in oklch, var(--text-muted), transparent 60%);
  padding-bottom: 4px;
  transition: color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.btn-cta-secondary:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Video / Still toggle (desktop only — bottom-left of hero) */
.hero-bg-toggle {
  position: absolute;
  left: var(--space-6);
  bottom: var(--space-8);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 4px;
  background: oklch(0.10 0.005 60 / 0.7);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid oklch(1 0 0 / 0.08);
  border-radius: 999px;
}
.hero-bg-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 14px;
  font-family: var(--font-accent);
  font-size: 10px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
}
.hero-bg-toggle__btn.is-active {
  background: var(--accent);
  color: var(--accent-contrast);
}
.hero-bg-toggle__btn:hover:not(.is-active) {
  color: var(--text);
}
.hero-bg-toggle__btn svg { flex-shrink: 0; }

/* Scroll indicator — bottom-right */
.hero-scroll {
  position: absolute;
  right: var(--space-6);
  bottom: var(--space-8);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-dim);
  font-family: var(--font-accent);
  font-size: 10px;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  font-weight: var(--fw-semibold);
}
.hero-scroll svg {
  animation: hero-scroll-bounce 2s ease-in-out infinite;
}
@keyframes hero-scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll svg { animation: none; }
}
@media (max-width: 768px) {
  .hero-scroll { display: none; }
}

/* Mobile floating CTA */
.hero-float-cta {
  position: fixed;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  z-index: calc(var(--z-nav) + 5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  background: var(--accent);
  color: var(--accent-contrast);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  text-decoration: none;
  border-radius: var(--radius-button);
  box-shadow: 0 8px 32px oklch(0 0 0 / 0.5), 0 0 24px var(--accent-muted);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.hero-float-cta:active { transform: scale(0.97); }
.hero-float-cta:hover { box-shadow: 0 8px 40px oklch(0 0 0 / 0.6), 0 0 32px var(--accent); }
@media (max-width: 480px) {
  .hero-float-cta {
    border-radius: var(--radius-card);
    font-size: var(--text-base);
  }
}
@media (min-width: 769px) {
  .hero-float-cta { display: none; }
}

/* Razor theme hero — brutalist */
[data-theme="razor"] .hero {
  background: var(--bg);
  min-height: auto;
}
[data-theme="razor"] .hero h1 {
  font-size: clamp(var(--text-6xl), 14vw, 12rem);
  line-height: 0.82;
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
  padding-block: var(--space-12);
  border-block: 1px solid var(--border);
  background: var(--bg-elevated);
}
.trust-strip-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-4) var(--space-8);
  align-items: center;
  text-align: center;
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.trust-item-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  color: var(--accent);
  line-height: var(--lh-none);
}
.trust-item-label {
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-deco);
  text-transform: uppercase;
}

[data-theme="razor"] .trust-item-value { color: var(--text); }

/* ============================================================
   SERVICES, Concept A: Portrait Background, whole card clickable
   ============================================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* The card IS the image. Whole card is clickable (<a>). Text overlays the
   bottom on a dark gradient veil so it's always readable. `contain: paint`
   isolates each card from page-wide repaints — fixes Safari scroll jank
   where images would flicker as they entered/left the viewport. */
.service-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-card);
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  contain: layout paint;
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 200ms var(--ease-out),
              box-shadow 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 16px 40px oklch(0.06 0 0 / 0.55);
}

.service-card:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent), transparent 70%);
}

[data-theme="razor"] .service-card {
  border-width: 2px;
  border-radius: 0;
}

/* Image: GPU-promoted compositing layer (translateZ + backface-hidden) so
   Safari does not repaint it during scroll. Filter kept but simplified
   (saturate only, dropped contrast which doubled the GPU work). Transition
   shortened from 1.2s to 600ms ease-out-expo for crisper hover response. */
.service-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: saturate(1.06);
  z-index: 0;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 700ms var(--ease-out), filter 700ms var(--ease-out);
}
/* Hover-scale only on real pointer devices. Matched to barber-card hover
   timing (700ms ease-out, scale 1.04 + saturate bump) so both grids breathe
   identically instead of one snapping (was 600ms expo, felt jittery). */
@media (hover: hover) and (pointer: fine) {
  .service-card:hover .service-card__img {
    transform: scale(1.04) translateZ(0);
    filter: saturate(1.1);
    will-change: transform;
  }
}

.service-card[data-svc="cadet"] .service-card__img       { object-position: center 18%; }
.service-card[data-svc="full-groom"] .service-card__img  { object-position: center 24%; }
.service-card[data-svc="executive"] .service-card__img   { object-position: center 26%; }

.service-card__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      transparent 0%,
      transparent 38%,
      oklch(0.13 0.006 60 / 0.55) 60%,
      oklch(0.13 0.006 60 / 0.92) 78%,
      oklch(0.13 0.006 60) 92%);
  z-index: 1;
  pointer-events: none;
}

/* Frosted price pill, top-right — price now reads big + gold (Murad ask) */
.service-card__meta {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  left: auto;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  max-width: calc(100% - 2 * var(--space-4));
  padding: 7px 14px 6px;
  font-family: var(--font-accent);
  font-size: var(--text-2xs, 0.72rem);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  font-weight: var(--fw-semibold);
  color: oklch(0.80 0.06 75 / 0.82);
  background: oklch(0.08 0.006 50 / 0.62);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border: 1px solid oklch(0.66 0.105 65 / 0.42);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 oklch(0.96 0.04 80 / 0.08), 0 4px 14px -6px oklch(0 0 0 / 0.5);
  z-index: 3;
  pointer-events: none;
}
[data-theme="razor"] .service-card__meta { border-radius: 3px; }
.service-card__meta-dot {
  color: oklch(0.66 0.105 65 / 0.5);
  font-size: 0.7em;
}
/* price = last span, made prominent (Murad: price was tiny/hidden before) */
.service-card__meta > span:last-child {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
  color: oklch(0.90 0.11 78);
  line-height: 1;
}

/* ============================================================
   FULL PRICE MENU
   ============================================================ */
.price-menu {
  margin-top: var(--space-10, 4rem);
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
[data-theme="razor"] .price-menu { border-radius: 0; border-width: 2px; }

.price-menu__head { text-align: center; margin-bottom: var(--space-8, 3rem); }
.price-menu__head h3 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  color: var(--text);
  margin: var(--space-2) 0 var(--space-2);
}
.price-menu__head h3 em { font-style: italic; color: var(--accent); }
.price-menu__head p { color: var(--text-muted); font-size: var(--text-base); margin: 0; }

.price-menu__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
}
@media (max-width: 720px) {
  .price-menu__cols { grid-template-columns: 1fr; gap: var(--space-6); }
}

.price-group__title {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--accent);
  font-weight: var(--fw-semibold);
  margin: 0 0 var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
}
.price-group__title--spaced { margin-top: var(--space-7, 2.5rem); }

.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  border-bottom: 1px dashed color-mix(in oklch, var(--border), transparent 35%);
}
.price-list li:last-child { border-bottom: none; }

.price-item__name {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text);
  flex: 0 1 auto;
}
.price-item__dots {
  flex: 1 1 auto;
  border-bottom: 1px dotted color-mix(in oklch, var(--text-dim), transparent 45%);
  transform: translateY(-0.25em);
  min-width: 1rem;
}
.price-item__meta {
  font-family: var(--font-accent);
  font-size: var(--text-2xs, 0.7rem);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-dim);
  flex: 0 0 auto;
  white-space: nowrap;
}
.price-item__amt {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--accent);
  flex: 0 0 auto;
  min-width: 3ch;
  text-align: right;
}

.price-menu__note {
  text-align: center;
  margin: var(--space-8, 3rem) 0 0;
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-dim);
}

.service-card__bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-5) var(--space-5) var(--space-6);
  z-index: 2;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  letter-spacing: -0.012em;
  color: var(--text);
  margin: 0 0 var(--space-2);
}
.service-card__title em { font-style: italic; color: var(--accent); }

.service-card__sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-base);
  line-height: var(--lh-snug);
  color: oklch(0.86 0.05 78 / 0.95);
  margin: 0 0 var(--space-2);
}

.service-card__desc {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: var(--lh-snug);
  margin: 0;
  hyphens: manual;
  -webkit-hyphens: manual;
  overflow-wrap: normal;
  word-break: normal;
}

/* FEATURED, Gatsby spans 2 cols, horizontal: text left on solid, image right blends in */
.service-card--featured {
  grid-column: span 2;
  aspect-ratio: 16 / 11;
}

.service-card--featured .service-card__img {
  object-position: 70% center;
}

.service-card--featured .service-card__veil {
  background:
    linear-gradient(90deg,
      oklch(0.13 0.006 60) 0%,
      oklch(0.13 0.006 60 / 0.95) 32%,
      oklch(0.13 0.006 60 / 0.55) 52%,
      transparent 78%);
}

.service-card--featured .service-card__meta {
  top: var(--space-6);
  right: var(--space-6);
  left: auto;
}

.service-card--featured .service-card__bottom {
  bottom: var(--space-6);
  left: 0;
  right: 50%;
  padding: var(--space-5) var(--space-7) var(--space-6);
}

.service-card--featured .service-card__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}

.service-card--featured .service-card__sub {
  font-size: var(--text-lg);
}

.service-card--featured .service-card__desc {
  font-size: var(--text-base);
  max-width: 95%;
}

/* PREMIUM, Full Groom = subtle gold border + glow */
.service-card--premium {
  border-color: var(--border-accent);
  box-shadow:
    0 0 0 1px color-mix(in oklch, var(--accent), transparent 80%) inset,
    0 12px 36px oklch(0.08 0 0 / 0.5),
    0 0 60px oklch(0.78 0.13 78 / 0.18);
}

.service-card--premium:hover {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px color-mix(in oklch, var(--accent), transparent 70%) inset,
    0 16px 48px oklch(0.08 0 0 / 0.55),
    0 0 80px oklch(0.78 0.13 78 / 0.32);
}

@media (max-width: 1100px) {
  .service-card--featured {
    grid-column: span 2;
    aspect-ratio: 5 / 3;
  }
  .service-card--featured .service-card__bottom {
    right: 40%;
  }
}

@media (max-width: 700px) {
  .service-card--featured {
    grid-column: span 1;
    aspect-ratio: 3 / 4;
  }
  .service-card--featured .service-card__veil {
    background:
      linear-gradient(180deg,
        transparent 0%,
        transparent 38%,
        oklch(0.13 0.006 60 / 0.55) 60%,
        oklch(0.13 0.006 60 / 0.92) 78%,
        oklch(0.13 0.006 60) 92%);
  }
  .service-card--featured .service-card__img {
    object-position: center 22%;
  }
  .service-card--featured .service-card__bottom {
    right: 0;
  }
  .service-card--featured .service-card__title {
    font-size: var(--text-2xl);
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-card,
  .service-card:hover,
  .service-card__img,
  .service-card:hover .service-card__img {
    transform: none !important;
    transition: none !important;
  }
}

/* RIBBONS (Signature, Recommended) — frosted dark pill with brass text
   and hairline brass rim. Matches the price meta aesthetic; the old
   solid-gold prism read as a full-width bar and competed for attention
   with the price chip on the opposite corner (Артур 2026-05-17). */
.featured-ribbon {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  right: auto;
  display: inline-flex;
  align-items: center;
  padding: 5px 11px 4px;
  width: auto;
  max-width: max-content;
  background: oklch(0.08 0.006 50 / 0.7);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  color: oklch(0.86 0.10 75);
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid oklch(0.66 0.105 65 / 0.45);
  border-radius: 999px;
  text-shadow: 0 1px 4px oklch(0.04 0.005 50 / 0.5);
  box-shadow:
    inset 0 1px 0 oklch(0.96 0.04 80 / 0.08),
    0 4px 14px -6px oklch(0 0 0 / 0.5);
  z-index: 3;
  pointer-events: none;
}

.featured-ribbon.ribbon-recommended {
  /* Same frosted treatment — just a different label, no different color. */
}

[data-theme="razor"] .featured-ribbon { border-radius: 0; }

/* Services CTA — featured spa-hour booking duo */
.services-cta {
  margin-top: var(--space-12);
  text-align: center;
}

.services-cta-lede {
  margin: 0 auto var(--space-6);
  max-width: 540px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(var(--text-base), 1.5vw, var(--text-xl));
  line-height: var(--lh-relaxed);
  color: var(--text);
}

.services-cta-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .services-cta { padding-bottom: var(--space-6); }
  .services-cta-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }
  .services-cta-buttons .btn {
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
  }
}

/* (.service-desc consolidated into single rule above) */

/* Barber attribution — break em-dash convention into separate quote+cite spans */
.barber-quote {
  display: inline;
  font-style: italic;
  color: var(--text);
}

.barber-cite {
  display: inline;
  font-style: normal;
  color: var(--text-dim);
  font-size: 0.92em;
}
.barber-cite::before { content: "— "; }

/* ============================================================
   BARBERS
   ============================================================ */
.barbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}

.barber-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}

[data-theme="razor"] .barber-card { border-radius: 0; border-width: 2px; }

.barber-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.barber-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--bg-card-alt);
  background-size: cover;
  background-position: center top;
  position: relative;
  overflow: hidden;
  transition: transform 700ms var(--ease-out), filter 700ms var(--ease-out);
}

.barber-card:hover .barber-photo {
  transform: scale(1.04);
  filter: saturate(1.1);
}

.barber-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, oklch(0 0 0 / 0.65) 100%);
}

[data-theme="razor"] .barber-photo {
  filter: grayscale(0.85) contrast(1.1);
}
[data-theme="razor"] .barber-card:hover .barber-photo {
  filter: grayscale(0) contrast(1);
}

[data-theme="linen"] .barber-photo,
[data-theme="editorial"] .barber-photo {
  filter: saturate(0.95);
}

.barber-photo-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: color-mix(in oklch, var(--accent), transparent 42%);
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 5.5rem);
  letter-spacing: var(--ls-tight);
  font-weight: var(--fw-black);
  text-shadow: 0 2px 24px color-mix(in oklch, var(--accent), transparent 72%);
  background:
    radial-gradient(115% 85% at 50% 18%,
      color-mix(in oklch, var(--accent), transparent 84%),
      transparent 62%),
    var(--bg-card-alt);
}

.barber-info {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.barber-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--text);
  margin: 0;
}

.barber-role {
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-deco);
  text-transform: uppercase;
}

.barber-specialty { color: var(--text-muted); font-size: var(--text-sm); line-height: var(--lh-relaxed); }

.barber-social {
  margin-top: var(--space-3);
  display: flex;
  gap: var(--space-3);
}
.barber-social a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 8px;
  margin: -11px -8px;
  color: var(--text-muted);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.barber-social a:hover { color: var(--accent); }

/* ============================================================
   FOUNDER — Murad's letter from the chair
   2-col desktop (portrait + story), 1-col mobile
   ============================================================ */
.founder {
  position: relative;
  background:
    linear-gradient(180deg, transparent 0%, var(--bg-elevated) 50%, transparent 100%),
    var(--bg);
}

.founder-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: var(--space-12);
  align-items: center;
}

@media (max-width: 768px) {
  .founder-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.founder-portrait {
  position: relative;
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

[data-theme="razor"] .founder-portrait {
  border-radius: 0;
  border-width: 2px;
}

.founder-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  filter: saturate(1.05) contrast(1.05);
}

.founder-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, oklch(0 0 0 / 0.55) 100%);
  pointer-events: none;
}

.founder-portrait-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-5) var(--space-6);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  color: var(--text);
}

.founder-portrait-caption .eyebrow {
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-deco);
  text-transform: uppercase;
}

.founder-portrait-caption span:last-child {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-style: italic;
  color: var(--text);
}

.founder-story {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.founder-story h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--text);
}

.founder-story h2 em {
  color: var(--accent);
  font-style: italic;
}

.founder-story p {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(var(--text-base), 1.25vw, var(--text-lg));
  line-height: var(--lh-relaxed);
}

.founder-story p.founder-lede {
  color: var(--text);
  font-size: clamp(var(--text-lg), 1.5vw, var(--text-xl));
  font-family: var(--font-display);
  font-style: italic;
}

.founder-story p.founder-coda {
  color: var(--text);
  font-weight: var(--fw-medium);
}

.founder-signature {
  margin-top: var(--space-3);
  font-family: 'Caveat', 'Kalam', var(--font-display), cursive;
  font-size: clamp(var(--text-3xl), 3vw, var(--text-4xl));
  color: var(--accent);
  letter-spacing: 0.02em;
  align-self: flex-start;
}

/* ============================================================
   HERITAGE — small, dignified bridge between FOUNDER and RITUALS
   ============================================================ */
.heritage {
  padding-block: var(--space-12);
}

.heritage-card {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  padding: var(--space-8) var(--space-6) var(--space-10);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
}

[data-theme="razor"] .heritage-card { border-radius: 0; border-width: 2px; }

.heritage-rule {
  width: 48px;
  height: 1px;
  margin: 0 auto var(--space-5);
  border: 0;
  background: var(--accent);
}

.heritage-card .eyebrow {
  display: block;
  margin-bottom: var(--space-3);
  color: var(--accent);
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-deco);
  text-transform: uppercase;
}

.heritage-card p {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(var(--text-base), 1.5vw, var(--text-xl));
  line-height: var(--lh-relaxed);
  color: var(--text);
}

.heritage-card p strong {
  font-style: normal;
  font-weight: var(--fw-semibold);
  color: var(--accent);
}

.heritage-card p em {
  color: var(--text-muted);
}

/* ============================================================
   DISPATCH — quarterly newsletter signup
   Editorial framing, not promo blast
   ============================================================ */
.dispatch {
  padding-block: var(--space-12) var(--space-16);
}

.dispatch-card {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  padding: var(--space-10) var(--space-6);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
}

[data-theme="razor"] .dispatch-card { border-radius: 0; border-width: 2px; }

.dispatch-rule {
  width: 48px;
  height: 1px;
  margin: 0 auto var(--space-5);
  border: 0;
  background: var(--accent);
}

.dispatch-card .eyebrow {
  display: block;
  margin-bottom: var(--space-3);
  color: var(--accent);
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-deco);
  text-transform: uppercase;
}

.dispatch-card h2 {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--text);
}

.dispatch-card h2 em {
  color: var(--accent);
  font-style: italic;
}

.dispatch-lede {
  margin: 0 auto var(--space-8);
  max-width: 540px;
  color: var(--text-muted);
  font-size: clamp(var(--text-sm), 1.1vw, var(--text-base));
  line-height: var(--lh-relaxed);
}

.dispatch-form {
  display: flex;
  gap: var(--space-3);
  max-width: 520px;
  margin: 0 auto var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}

.dispatch-input {
  flex: 1 1 240px;
  min-width: 0;
  padding: var(--space-3) var(--space-4);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-button);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: border-color var(--dur-fast) var(--ease-out);
}

.dispatch-input::placeholder { color: var(--text-dim); }

.dispatch-input:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-color: var(--accent);
}

.dispatch-submit {
  flex: 0 0 auto;
}

.dispatch-fineprint {
  margin: 0;
  color: var(--text-dim);
  font-size: var(--text-xs);
  letter-spacing: 0.02em;
}

.dispatch-fineprint a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dispatch-fineprint a:hover { color: var(--accent); }

/* Accessibility utility — visually hidden but readable by screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   LEGAL PAGES — Privacy, Terms, AI Disclosure
   Long-form prose. Single column. Generous reading rhythm.
   ============================================================ */
.legal-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: color-mix(in oklch, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding-block: var(--space-4);
}

.legal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.legal-back {
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  letter-spacing: 0.02em;
  transition: color var(--dur-fast) var(--ease-out);
}

.legal-back:hover { color: var(--accent); }

.legal-page {
  padding-block: var(--space-16) var(--space-20);
  max-width: 760px;
  margin-inline: auto;
}

.legal-page .container { max-width: 760px; }

.legal-page .eyebrow {
  display: block;
  margin-bottom: var(--space-3);
  color: var(--accent);
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-deco);
  text-transform: uppercase;
}

.legal-page h1 {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--text);
}

.legal-updated {
  margin: 0 0 var(--space-10);
  color: var(--text-dim);
  font-size: var(--text-sm);
  font-style: italic;
}

.legal-lede {
  margin: 0 0 var(--space-10);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(var(--text-base), 1.5vw, var(--text-xl));
  line-height: var(--lh-relaxed);
  color: var(--text);
  padding: var(--space-5) var(--space-6);
  background: color-mix(in oklch, var(--accent), transparent 92%);
  border-radius: var(--radius-card);
}

.legal-page h2 {
  margin: var(--space-12) 0 var(--space-4);
  font-family: var(--font-display);
  font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl));
  line-height: var(--lh-tight);
  color: var(--text);
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
  font-size: var(--text-base);
  line-height: var(--lh-relaxed);
}

.legal-page p { margin: 0 0 var(--space-4); }

.legal-page strong { color: var(--text); font-weight: var(--fw-semibold); }
.legal-page em     { color: var(--text); font-style: italic; }

.legal-page ul,
.legal-page ol {
  margin: 0 0 var(--space-6);
  padding-left: var(--space-6);
}

.legal-page li { margin-bottom: var(--space-2); }
.legal-page li::marker { color: var(--accent); }

.legal-page a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease-out);
}

.legal-page a:hover { color: var(--accent-hover); }

.legal-page code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  padding: 2px 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-button);
  color: var(--text);
}

/* Compact footer used on legal pages */
.footer-compact { padding-block: var(--space-8); }
.footer-compact .footer-bottom { border-top: 0; padding-top: 0; }



/* ============================================================
   RITUALS
   ============================================================ */
.rituals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.ritual-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-10);
  text-align: center;
  transition: all var(--dur-base) var(--ease-out);
}
[data-theme="razor"] .ritual-card { border-width: 2px; border-radius: 0; }

.ritual-card:hover { border-color: var(--border-accent); }

.ritual-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-6);
  border-radius: var(--radius-full);
  background: color-mix(in oklch, var(--accent), transparent 85%);
  border: 1px solid var(--border-accent);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: var(--text-2xl);
}
[data-theme="razor"] .ritual-icon { border-radius: 0; border-width: 2px; }

.ritual-title { font-size: var(--text-xl); color: var(--text); margin-bottom: var(--space-3); }
.ritual-desc { color: var(--text-muted); font-size: var(--text-base); line-height: var(--lh-relaxed); }

/* ============================================================
   TRY-ON TEASER
   ============================================================ */
.tryon-section {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
  overflow: hidden;
}

.tryon-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}
@media (min-width: 1024px) {
  .tryon-inner { grid-template-columns: 1fr 1fr; gap: var(--space-20); }
}

/* Try-On stack — 3 sample preview frames, slightly offset rotations.
   Sits in the right column at desktop ≥1024, stacks above CTA on mobile. */
.tryon-stack {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: minmax(160px, auto);
  gap: var(--space-3);
  max-width: 540px;
  margin: 0 auto;
  padding: var(--space-4);
  perspective: 1200px;
}

@media (min-width: 1024px) {
  .tryon-stack {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    gap: var(--space-4);
    max-width: none;
    padding: var(--space-6);
  }
  /* First frame spans both cols, last 2 frames sit beside each other */
  .tryon-stack .tryon-frame:first-child {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
  }
}

.tryon-frame {
  position: relative;
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px oklch(0.08 0 0 / 0.5);
  transform: rotate(var(--rot, 0deg));
  transition: transform 600ms var(--ease-out), box-shadow 600ms var(--ease-out);
  aspect-ratio: 1 / 1;
}

[data-theme="razor"] .tryon-frame { border-radius: 0; border-width: 2px; }

.tryon-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.tryon-frame figcaption {
  position: absolute;
  inset: auto var(--space-3) var(--space-3) var(--space-3);
  padding: var(--space-1) var(--space-3);
  background: color-mix(in oklch, var(--bg), transparent 25%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid color-mix(in oklch, var(--accent), transparent 70%);
  border-radius: var(--radius-full);
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-deco);
  text-transform: uppercase;
  width: max-content;
}

.tryon-stack:hover .tryon-frame {
  transform: rotate(0deg);
  box-shadow: 0 16px 48px oklch(0.08 0 0 / 0.6);
}

@media (prefers-reduced-motion: reduce) {
  .tryon-frame { transform: none; transition: none; }
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
}

.gallery-item {
  aspect-ratio: 1;
  background: var(--bg-card-alt);
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  transition: transform 500ms var(--ease-out), filter 500ms var(--ease-out);
  background-size: cover;
  background-position: center;
  position: relative;
}
[data-theme="razor"] .gallery-item {
  border-radius: 0;
  filter: grayscale(0.85) contrast(1.05);
}
[data-theme="razor"] .gallery-item:hover { filter: grayscale(0) contrast(1); }

.gallery-item:hover { transform: scale(1.03); }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, oklch(0 0 0 / 0.55) 100%);
  opacity: 0.4;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.gallery-item:hover::after { opacity: 0.8; }

[data-theme="linen"] .gallery-item::after,
[data-theme="editorial"] .gallery-item::after { opacity: 0; }
[data-theme="linen"] .gallery-item:hover::after,
[data-theme="editorial"] .gallery-item:hover::after { opacity: 0.15; }

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
[data-theme="razor"] .review-card { border-radius: 0; border-width: 2px; }

.review-stars { color: var(--accent); font-size: var(--text-lg); letter-spacing: 0.1em; }
.review-text {
  color: var(--text);
  font-size: var(--text-base);
  line-height: var(--lh-relaxed);
  font-style: italic;
}

[data-theme="noir"] .review-text,
[data-theme="speakeasy"] .review-text,
[data-theme="linen"] .review-text,
[data-theme="editorial"] .review-text {
  font-family: var(--font-display);
  font-style: italic;
}

.review-author {
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--text-sm);
}
.review-author-name { color: var(--text); font-weight: var(--fw-semibold); }
.review-author-source { color: var(--text-muted); }

.reviews-aggregate {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin-bottom: var(--space-12);
  text-align: center;
}
.aggregate-score {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: var(--fw-black);
  color: var(--accent);
  line-height: var(--lh-none);
}
.aggregate-score-max {
  font-size: 0.4em;
  color: var(--text-dim);
  font-weight: var(--fw-medium);
  margin-left: 0.1em;
}
.aggregate-detail { display: flex; flex-direction: column; gap: var(--space-1); text-align: left; }
.aggregate-stars {
  position: relative;
  display: inline-block;
  font-size: var(--text-xl);
  letter-spacing: 0.1em;
  line-height: 1;
}
.aggregate-stars-bg {
  color: color-mix(in oklch, var(--accent), transparent 75%);
}
.aggregate-stars-fill {
  position: absolute;
  inset: 0;
  width: var(--rating, 100%);
  overflow: hidden;
  white-space: nowrap;
  color: var(--accent);
}
.aggregate-count { color: var(--text-muted); font-size: var(--text-sm); }

/* ============================================================
   LOCATION
   ============================================================ */
.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}
@media (min-width: 1024px) {
  .location-grid { grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: start; }
}

.location-map {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}
[data-theme="razor"] .location-map { border-radius: 0; border-width: 2px; }

.location-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.2) contrast(1.1);
}

[data-theme="noir"] .location-map iframe,
[data-theme="speakeasy"] .location-map iframe {
  filter: grayscale(0.6) contrast(1.3) invert(0.92) hue-rotate(180deg);
}

.location-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.location-block { display: flex; flex-direction: column; gap: var(--space-2); }
.location-label { color: var(--accent); font-size: var(--text-xs); font-weight: var(--fw-semibold); letter-spacing: var(--ls-deco); text-transform: uppercase; }
.location-value { color: var(--text); font-size: var(--text-lg); }
.location-value a { color: var(--text); }
.location-value a:hover { color: var(--accent); }

.hours-table {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2) var(--space-6);
  padding: var(--space-6);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
[data-theme="razor"] .hours-table { border-radius: 0; border-width: 2px; }
.hours-day { color: var(--text-muted); font-size: var(--text-sm); font-weight: var(--fw-medium); }
.hours-time { color: var(--text); font-size: var(--text-sm); text-align: right; font-variant-numeric: tabular-nums; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: var(--space-2); }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease-out);
}
[data-theme="razor"] .faq-item { border-radius: 0; border-width: 2px; }

.faq-item:hover { border-color: var(--border-strong); }

.faq-item[open] { border-color: var(--border-accent); }

.faq-question {
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: "+";
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--accent);
  transition: transform var(--dur-base) var(--ease-out);
}
.faq-item[open] .faq-question::after { transform: rotate(45deg); }

.faq-answer {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--text-muted);
  font-size: var(--text-base);
  line-height: var(--lh-relaxed);
}

/* ============================================================
   ALTEGIO BOOKING EMBED
   ============================================================ */
.booking-section {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.booking-lang {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto var(--space-4);
  padding: 8px 12px;
  font-family: var(--font-accent);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.booking-lang__label {
  color: var(--text-dim);
  margin-right: var(--space-2);
}
.booking-lang__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 36px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.booking-lang__btn:hover { color: var(--text); border-color: var(--border-strong); }
.booking-lang__btn.is-active {
  color: var(--accent-contrast);
  background: var(--accent);
  border-color: var(--accent);
}

.booking-frame-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg-card);
  overflow: hidden;
}
[data-theme="razor"] .booking-frame-wrap { border-radius: 0; border-width: 2px; }

.booking-frame {
  width: 100%;
  min-height: 640px;
  border: 0;
  display: block;
}
@media (max-width: 768px) {
  .booking-frame { min-height: 820px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding-block: var(--space-16) var(--space-8);
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
}

.footer-brand {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  color: var(--text);
  margin-bottom: var(--space-3);
}
.footer-brand strong { color: var(--accent); }
.footer-tagline { color: var(--text-muted); font-size: var(--text-sm); max-width: 320px; }

.footer-heading {
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-deco);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.footer-list { display: flex; flex-direction: column; gap: 0; }
.footer-list a, .footer-list li { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 0; color: var(--text-muted); font-size: var(--text-sm); text-decoration: none; }
.footer-list a:hover { color: var(--text); }
.footer-list li { color: var(--text-muted); }

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  color: var(--text-dim);
  font-size: var(--text-xs);
  letter-spacing: var(--ls-wide);
}

/* ============================================================
   THEME BAR — floating bottom
   ============================================================ */
.theme-bar {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-elevated);
  padding: var(--space-2) var(--space-4);
  background: color-mix(in oklch, var(--bg-elevated), transparent 15%);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

[data-theme="razor"] .theme-bar {
  border-radius: 0;
  border-width: 2px;
  box-shadow: 4px 4px 0 var(--text);
}

@media (max-width: 640px) {
  .theme-bar {
    bottom: var(--space-4);
  }
}

/* ============================================================
   TRY-ON MODAL
   ============================================================ */
.tryon-modal { max-width: 820px; }
.tryon-step { display: none; }
.tryon-step.is-active { display: block; }

.tryon-upload-area {
  border: 2px dashed var(--border-accent);
  border-radius: var(--radius-card);
  padding: var(--space-16) var(--space-8);
  text-align: center;
  background: var(--bg-card);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
[data-theme="razor"] .tryon-upload-area { border-radius: 0; }

.tryon-upload-area:hover {
  background: color-mix(in oklch, var(--accent), transparent 92%);
  border-color: var(--accent);
}

.tryon-upload-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  color: var(--accent);
  font-size: var(--text-5xl);
}

.tryon-styles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.tryon-style {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  cursor: pointer;
  text-align: center;
  transition: all var(--dur-fast) var(--ease-out);
}
[data-theme="razor"] .tryon-style { border-radius: 0; }

.tryon-style:hover { border-color: var(--accent); }
.tryon-style.is-selected { border-color: var(--accent); background: color-mix(in oklch, var(--accent), transparent 92%); }

.tryon-style-thumb {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-3);
  border-radius: var(--radius-full);
  background: var(--bg-card-alt);
  background-size: cover;
  background-position: center;
}
[data-theme="razor"] .tryon-style-thumb { border-radius: 0; }

.tryon-style-name { color: var(--text); font-size: var(--text-sm); font-weight: var(--fw-semibold); }

.tryon-preview-result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-block: var(--space-6);
}
.tryon-preview-result img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
[data-theme="razor"] .tryon-preview-result img { border-radius: 0; border-width: 2px; }

.tryon-preview-label {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  margin-top: var(--space-2);
}

.tryon-disclaimer {
  padding: var(--space-4);
  background: color-mix(in oklch, var(--warning), transparent 92%);
  border: 1px solid color-mix(in oklch, var(--warning), transparent 75%);
  border-radius: var(--radius-card);
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: var(--lh-relaxed);
  margin-top: var(--space-4);
}
[data-theme="razor"] .tryon-disclaimer { border-radius: 0; }

.tryon-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-16);
  gap: var(--space-4);
}
.tryon-spinner .ring {
  width: 64px;
  height: 64px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   MOBILE POLISH
   ============================================================ */
@media (max-width: 767px) {
  .hero {
    padding-block: var(--space-16) var(--space-12);
    min-height: auto;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-ctas .btn {
    justify-content: center;
  }
  .hero-meta {
    gap: var(--space-4);
  }
  .trust-strip-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6) var(--space-4);
  }
  .trust-item-value {
    font-size: var(--text-2xl);
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .review-card {
    padding: var(--space-6);
  }
  .location-grid {
    gap: var(--space-6);
  }
  .booking-section .container {
    padding-inline: var(--space-4);
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: clamp(var(--text-3xl), 10vw, var(--text-5xl));
  }
  .hero-sub {
    font-size: var(--text-base);
  }
  .trust-strip-inner {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .theme-bar {
    bottom: calc(64px + var(--space-2));
    padding: var(--space-1) var(--space-3);
  }
  .theme-switcher-label {
    display: none;
  }
}

/* ============================================================
   ESPRESSO HERO — mobile-first photo loop + B1·10 composition
   New default for public build (May 2026 redesign)
   ============================================================ */

/* Espresso nav — slim editorial bar.
   Top of page: transparent over hero, brand only (centered illusion via empty link slot).
   After scroll past hero: opaque scrim, jump links + Book CTA appear.
   JS toggles `.is-scrolled` on the header. */
.nav-espresso {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  pointer-events: none;
  background: transparent;
  transition: background 280ms cubic-bezier(.4,0,.2,1),
              box-shadow 280ms cubic-bezier(.4,0,.2,1),
              border-color 280ms cubic-bezier(.4,0,.2,1);
  border-bottom: 1px solid transparent;
}
.nav-espresso.is-scrolled {
  background: oklch(0.06 0.008 50 / 0.86);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: oklch(0.94 0.025 85 / 0.06);
  box-shadow: 0 8px 24px -10px oklch(0 0 0 / 0.6);
}

.nav-espresso__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
  pointer-events: auto;
}

.nav-espresso__brand {
  grid-column: 1;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}
.nav-espresso__name {
  font-family: 'Lora', 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.012em;
  text-shadow: 0 2px 14px oklch(0 0 0 / 0.6);
  transition: text-shadow 280ms cubic-bezier(.4,0,.2,1);
}
.nav-espresso.is-scrolled .nav-espresso__name {
  text-shadow: none;
}
.nav-espresso__name em {
  font-style: italic;
  color: var(--highlight);
  font-weight: 500;
}

/* Center jump links — desktop only */
.nav-espresso__links {
  grid-column: 2;
  justify-self: center;
  display: none;
  align-items: center;
  gap: 28px;
}
.nav-espresso__links a {
  font-family: 'Lora', 'Playfair Display', Georgia, serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.005em;
  color: oklch(0.94 0.025 85 / 0.72);
  text-decoration: none;
  text-shadow: 0 1px 8px oklch(0 0 0 / 0.55);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}
.nav-espresso__links a:hover {
  color: var(--text);
  border-bottom-color: oklch(0.66 0.082 60 / 0.55);
}
.nav-espresso.is-scrolled .nav-espresso__links a {
  text-shadow: none;
}
@media (min-width: 880px) {
  .nav-espresso__links { display: flex; }
}

/* Right cluster — phone icon + Book pill */
.nav-espresso__cta {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav-espresso__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: oklch(0.94 0.025 85 / 0.85);
  border: 1px solid oklch(0.94 0.025 85 / 0.18);
  border-radius: 999px;
  background: transparent;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}
.nav-espresso__phone:hover {
  border-color: var(--accent);
  color: var(--text);
  background: oklch(0.66 0.082 60 / 0.08);
}
.nav-espresso__phone:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
@media (max-width: 540px) {
  .nav-espresso__phone { display: none; }
}

/* Nav Book — compact brass pill, same surface as "Reserve a chair" so the
   nav CTA feels like a smaller sibling of the hero CTA. 4-stop gradient,
   hairline brass rim, brass halo. Was flat --accent fill which felt
   unfinished next to the rich hero button. */
.nav-espresso__book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 20px;
  font-family: 'Lora', 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: oklch(0.12 0.012 50);
  background: linear-gradient(180deg,
    oklch(0.78 0.105 75) 0%,
    oklch(0.66 0.105 65) 38%,
    oklch(0.50 0.090 58) 75%,
    oklch(0.38 0.075 55) 100%);
  border: 1px solid oklch(0.30 0.060 55);
  border-radius: 999px;
  text-decoration: none;
  text-shadow: 0 1px 0 oklch(0.95 0.04 80 / 0.45);
  box-shadow:
    inset 0 1.5px 0 oklch(0.96 0.04 80 / 0.55),
    inset 0 -1.5px 0 oklch(0.20 0.03 50 / 0.45),
    inset 0 0 0 1px oklch(0.85 0.10 75 / 0.30),
    0 8px 18px -6px oklch(0.55 0.10 60 / 0.55),
    0 2px 6px -1px oklch(0 0 0 / 0.4);
  transition:
    filter 200ms cubic-bezier(.4,0,.2,1),
    box-shadow 200ms cubic-bezier(.4,0,.2,1),
    transform 200ms cubic-bezier(.4,0,.2,1);
}
.nav-espresso__book:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
}
.nav-espresso__book:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }

/* Hide legacy mobile-cta sticky bar on espresso — slim Book pill in nav handles it */
[data-theme="espresso"] .mobile-cta { display: none !important; }

/* Hide old top scroll progress rail on espresso (visual noise above hero) */
[data-theme="espresso"] .progress-rail { display: none; }

/* Hide global grain overlay on espresso (photo loop already textured) */
[data-theme="espresso"] .grain { display: none; }

/* Hero container — 100dvh, GPU-promoted for scroll perf */
.hero-espresso {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  /* photo loop fallback fill when frames haven't loaded yet — never empty/black */
  background-image: url('/assets/images/hero-loop/01-wide-chair.webp?v=21');
  background-size: cover;
  background-position: center 30%;
  overflow: hidden;
  /* scroll-snap removed — was creating inner-box feel on iOS Safari */
  /* GPU layer hint — prevents repaint when nav scrolls past on iOS Safari */
  transform: translateZ(0);
  will-change: transform;
  contain: layout paint;
}

/* Video layer — desktop only by default, mobile hidden (no bandwidth waste). */
.hero-espresso__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 1;
  display: none;
  background-color: oklch(0.05 0.006 50);
  filter: saturate(1.04) contrast(1.04);
  opacity: 0;
  transition: opacity 600ms cubic-bezier(.4,0,.2,1);
}

@media (min-width: 1024px) {
  /* Desktop default: video shown unless user toggled to photo */
  .hero-espresso:not([data-bg-mode="photo"]) .hero-espresso__video {
    display: block;
    opacity: 1;
  }
  .hero-espresso:not([data-bg-mode="photo"]) .hero-espresso__frames {
    opacity: 0;
    pointer-events: none;
    transition: opacity 600ms cubic-bezier(.4,0,.2,1);
  }
  .hero-espresso[data-bg-mode="photo"] .hero-espresso__frames {
    opacity: 1;
    transition: opacity 600ms cubic-bezier(.4,0,.2,1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-espresso__video { display: none !important; }
}

/* Toggle pill — desktop only, bottom-left, phone-icon style (low-key) */
.hero-espresso__toggle { display: none; }
@media (min-width: 1024px) {
  .hero-espresso__toggle {
    position: absolute;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    left: 24px;
    z-index: 10;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: oklch(0.94 0.025 85 / 0.65);
    background: oklch(0.05 0.005 50 / 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid oklch(0.94 0.025 85 / 0.18);
    border-radius: 999px;
    cursor: pointer;
    transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
  }
  .hero-espresso__toggle:hover {
    color: var(--text);
    border-color: var(--accent);
    background: oklch(0.66 0.082 60 / 0.08);
  }
  .hero-espresso__toggle:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
  /* Icon swap — show "switch-to-X" icon for current state.
     Default (=video active): show photo icon meaning "tap to see photos". */
  .hero-espresso__toggle-video { display: none; }
  .hero-espresso__toggle-photo { display: block; }
  .hero-espresso[data-bg-mode="photo"] .hero-espresso__toggle-photo { display: none; }
  .hero-espresso[data-bg-mode="photo"] .hero-espresso__toggle-video { display: block; }
}

/* Photo loop frames — opacity-only crossfade. GPU-composited to avoid blank flashes on iOS. */
.hero-espresso__frames {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-espresso__frames .frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  /* GPU layer — opacity only, no transform, no repaint */
  will-change: opacity;
  transform: translateZ(0);
}
/* Frame 0 shows instantly on mount — no fade-in on first paint */
.hero-espresso__frames .frame.is-active { opacity: 1; }
/* Crossfade only enables AFTER the loop is ready (set by JS post-paint) */
.hero-espresso__frames.is-ready .frame {
  transition: opacity 2000ms cubic-bezier(.4, 0, .2, 1);
}
.hero-espresso__frames .frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* Top scrim — fade-in for header zone */
.hero-espresso__scrim-top {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 32%;
  z-index: 2;
  pointer-events: none;
  background: var(--scrim-top);
}

/* Bottom scrim — fade-out for content zone */
.hero-espresso__scrim-bot {
  position: absolute;
  left: 0;
  right: 0;
  top: 38%;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
  background: var(--scrim-bot);
}

/* Hero content — pinned bottom, B1·10 composition */
.hero-espresso__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  z-index: 9;
  padding: 0 24px;
  text-align: center;
}

.hero-espresso__eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: oklch(0.85 0.08 75 / 0.95);
  margin: 0 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid oklch(0.66 0.105 65 / 0.35);
  border-radius: 999px;
  background: oklch(0.05 0.005 50 / 0.4);
  backdrop-filter: blur(8px) saturate(1.15);
  -webkit-backdrop-filter: blur(8px) saturate(1.15);
  text-shadow: 0 1px 6px oklch(0 0 0 / 0.6);
}
.hero-espresso__eyebrow::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: oklch(0.66 0.13 130);
  box-shadow: 0 0 0 0 oklch(0.66 0.13 130);
  animation: hero-eyebrow-pulse 1.8s ease-out infinite;
}
@keyframes hero-eyebrow-pulse {
  0%   { box-shadow: 0 0 0 0 oklch(0.66 0.13 130 / 0.7); }
  70%  { box-shadow: 0 0 0 8px oklch(0.66 0.13 130 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(0.66 0.13 130 / 0); }
}

.hero-espresso__h1 {
  font-family: 'Lora', 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-size: clamp(28px, 8vw, 40px);
  line-height: 1.0;
  letter-spacing: -0.005em;
  color: var(--text);
  text-shadow: 0 4px 28px oklch(0 0 0 / 0.65);
  margin: 0 0 6px;
  transition: opacity 240ms ease-out;
}
.hero-espresso__h1[data-loading="true"] { opacity: 0; }
.hero-espresso__time,
.hero-espresso__when {
  display: block;
  font-style: normal;
  font-weight: 500;
}
.hero-espresso__when {
  letter-spacing: 0.04em;
  font-size: clamp(30px, 9vw, 44px);
}

.hero-espresso__divider {
  margin: 14px auto;
  width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  opacity: 0.7;
}
.hero-espresso__divider svg { display: block; }

.hero-espresso__subtitle {
  font-family: 'Lora', 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 14px;
  line-height: 1.45;
  color: oklch(0.94 0.025 85 / 0.85);
  margin: 0 0 22px;
  padding: 0 8px;
  text-shadow: 0 2px 12px oklch(0 0 0 / 0.6);
}
.hero-espresso__barber {
  color: oklch(0.86 0.10 75);
  font-style: italic;
  font-weight: 600;
  text-shadow: 0 1px 8px oklch(0 0 0 / 0.65);
}

/* THE ANTIQUE BRASS BUTTON — rounded pill, monolithic «Reserve a chair».
   Brighter + more pop than v1 — Артур: «тёмная, неприметная, не хочется нажимать». */
.hero-espresso__btn {
  display: flex;  /* was inline-flex — caused button + timer to share a row on tablet */
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  padding: 17px 32px;
  min-height: 58px;
  font-family: 'Lora', 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.015em;
  color: oklch(0.12 0.012 50);  /* deep espresso text on brass — high contrast */
  /* Brighter brass — luminous top, warmer mid, less crushed shadow */
  background: linear-gradient(180deg,
    oklch(0.78 0.105 75) 0%,    /* warm champagne top */
    oklch(0.66 0.105 65) 38%,   /* signature brass */
    oklch(0.50 0.090 58) 75%,   /* deep cognac body */
    oklch(0.38 0.075 55) 100%); /* shadow base */
  border: 1px solid oklch(0.30 0.060 55);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  text-shadow: 0 1px 0 oklch(0.95 0.04 80 / 0.45);
  box-shadow:
    inset 0 1.5px 0 oklch(0.96 0.04 80 / 0.6),      /* polished top edge */
    inset 0 -1.5px 0 oklch(0.20 0.03 50 / 0.5),     /* bottom shadow line */
    inset 0 0 0 1px oklch(0.85 0.10 75 / 0.35),     /* hairline brass rim */
    0 0 0 2px oklch(0.66 0.105 65 / 0.18),          /* subtle halo */
    0 18px 40px -8px oklch(0.55 0.10 60 / 0.68),    /* warm drop */
    0 4px 14px -2px oklch(0 0 0 / 0.55);            /* depth */
  transition: transform 220ms cubic-bezier(.4,0,.2,1),
              filter 220ms ease,
              box-shadow 220ms ease;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  /* GPU layer — prevents repaint on scroll */
  transform: translateZ(0);
  will-change: transform;
}

/* Subtle idle breathing — invites the tap, but slow enough not to be distracting */
@keyframes hero-btn-breathe {
  0%, 100% { box-shadow: inset 0 1.5px 0 oklch(0.96 0.04 80 / 0.55), inset 0 -1.5px 0 oklch(0.20 0.03 50 / 0.5), 0 0 0 2px oklch(0.66 0.105 65 / 0.15), 0 18px 40px -8px oklch(0.55 0.10 60 / 0.65), 0 4px 14px -2px oklch(0 0 0 / 0.55); }
  50%       { box-shadow: inset 0 1.5px 0 oklch(0.96 0.04 80 / 0.65), inset 0 -1.5px 0 oklch(0.20 0.03 50 / 0.5), 0 0 0 4px oklch(0.66 0.105 65 / 0.22), 0 22px 50px -8px oklch(0.55 0.10 60 / 0.78), 0 4px 14px -2px oklch(0 0 0 / 0.55); }
}
.hero-espresso__btn { animation: hero-btn-breathe 4.5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .hero-espresso__btn { animation: none; }
}

.hero-espresso__btn:hover,
.hero-espresso__btn:focus-visible {
  transform: translateY(-1px) translateZ(0);
  filter: brightness(1.06) saturate(1.08);
  animation: none;
  box-shadow:
    inset 0 1.5px 0 oklch(0.96 0.04 80 / 0.65),
    inset 0 -1.5px 0 oklch(0.20 0.03 50 / 0.5),
    0 0 0 4px oklch(0.66 0.105 65 / 0.22),
    0 24px 56px -8px oklch(0.55 0.10 60 / 0.85),
    0 4px 14px -2px oklch(0 0 0 / 0.55);
}
.hero-espresso__btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 5px;
}
.hero-espresso__btn:active {
  transform: translateY(0) translateZ(0);
  filter: brightness(0.94);
  animation: none;
}

.hero-espresso__timer {
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: fit-content;
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: oklch(0.82 0.07 75 / 0.85);
  text-shadow: 0 1px 6px oklch(0 0 0 / 0.65);
}
.hero-espresso__timer svg {
  flex-shrink: 0;
  opacity: 0.85;
  color: oklch(0.78 0.105 75);
}

/* Mobile fine-tunes */
@media (max-width: 380px) {
  .hero-espresso__content { bottom: calc(22px + env(safe-area-inset-bottom, 0px)); padding: 0 18px; }
  .hero-espresso__btn { padding: 15px 26px; font-size: 15.5px; min-height: 52px; }
  .hero-espresso__subtitle { font-size: 13px; margin-bottom: 18px; }
}

/* Respect reduce-motion: disable photo loop crossfade animation */
@media (prefers-reduced-motion: reduce) {
  .hero-espresso__frames .frame { transition: none; }
}

/* Tablet+ — keep mobile-first feel; hero stays 100dvh, content centered */
@media (min-width: 1024px) {
  .hero-espresso__h1 { font-size: 56px; }
  .hero-espresso__when { font-size: 60px; }
  .hero-espresso__subtitle { font-size: 16px; }
  .hero-espresso__btn { font-size: 17px; padding: 18px 36px; }
  .hero-espresso__content { max-width: 600px; left: 50%; right: auto; transform: translateX(-50%); padding: 0 24px; }
}

/* ============================================================
   JOURNAL — pSEO editorial section. One lead card (span 2) +
   secondary cards. Editorial vibe: serif title, narrow lede,
   muted hairline ↑ image. Not a "blog feed" card grid.
   ============================================================ */
.journal {
  padding-block: var(--space-16) var(--space-16);
  background:
    radial-gradient(120% 60% at 50% 0%, oklch(0.22 0.014 250) 0%, transparent 70%),
    var(--bg);
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-8);
  max-width: 1080px;
  margin-inline: auto;
}

.journal-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 700ms var(--ease-out),
              border-color 700ms var(--ease-out),
              box-shadow 700ms var(--ease-out);
}
/* Hover-scale gated to real pointer devices — same pattern as service-card.
   Touch screens fire :hover on first tap, which made the image "jump" on
   scroll-past. Desktop only now. 700ms matches barber/service rhythm. */
@media (hover: hover) and (pointer: fine) {
  .journal-card:hover {
    transform: translateY(-4px) translateZ(0);
    border-color: var(--border-strong);
    box-shadow: 0 18px 44px oklch(0.06 0 0 / 0.55);
  }
  .journal-card:hover .journal-card__media img {
    transform: scale(1.04) translateZ(0);
    will-change: transform;
  }
}
.journal-card:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent), transparent 70%);
}

.journal-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-elevated);
}
.journal-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(1.05) contrast(1.04);
  transition: transform 900ms var(--ease-out);
}
.journal-card__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 50%,
    oklch(0.13 0.006 60 / 0.45) 90%,
    oklch(0.13 0.006 60 / 0.65) 100%
  );
  pointer-events: none;
}

.journal-card__body {
  padding: var(--space-6) var(--space-6) var(--space-7);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.journal-card__eyebrow {
  font-family: var(--font-mono, ui-monospace, "SF Mono", Menlo, monospace);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.journal-card__eyebrow time {
  color: var(--text);
  opacity: 0.85;
}

.journal-card__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.18;
  letter-spacing: -0.014em;
  font-weight: var(--fw-semibold);
  color: var(--text);
  margin: 0;
}
.journal-card__title em {
  font-style: italic;
  color: var(--accent);
}

.journal-card__lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.5;
  color: oklch(0.84 0.025 70 / 0.94);
  margin: 0;
}

.journal-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
  font-family: var(--font-mono, ui-monospace, "SF Mono", Menlo, monospace);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: var(--fw-semibold);
  color: var(--accent);
}
.journal-card:hover .journal-card__cta svg {
  transform: translateX(3px);
}
.journal-card__cta svg {
  transition: transform 220ms var(--ease-out);
}

/* Lead card spans both columns — bigger image, headline, lede. */
.journal-card--lead {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 5fr 4fr;
  align-items: stretch;
}
.journal-card--lead .journal-card__media {
  aspect-ratio: auto;
  height: 100%;
  min-height: 320px;
}
.journal-card--lead .journal-card__body {
  padding: var(--space-8) var(--space-8) var(--space-8);
  justify-content: center;
}
.journal-card--lead .journal-card__title {
  font-size: clamp(28px, 3.4vw, 38px);
}
.journal-card--lead .journal-card__lede {
  font-size: 17px;
  max-width: 46ch;
}

/* Tablet — lead becomes single-column with image on top */
@media (max-width: 1024px) {
  .journal-card--lead {
    grid-template-columns: 1fr;
  }
  .journal-card--lead .journal-card__media {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
  .journal-card--lead .journal-card__body {
    padding: var(--space-7) var(--space-7) var(--space-7);
  }
}

/* Phone (<=900px) — single column stack, dense */
@media (max-width: 900px) {
  .journal {
    padding-block: var(--space-12);
  }
  .journal-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: var(--space-6);
  }
  .journal-card--lead {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
  .journal-card--lead .journal-card__media,
  .journal-card .journal-card__media {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
  .journal-card__body {
    padding: var(--space-5) var(--space-5) var(--space-6);
    gap: 8px;
  }
  .journal-card--lead .journal-card__body {
    padding: var(--space-5) var(--space-5) var(--space-6);
  }
  .journal-card__title {
    font-size: 20px;
  }
  .journal-card--lead .journal-card__title {
    font-size: 24px;
  }
  .journal-card__lede {
    font-size: 14px;
  }
  .journal-card--lead .journal-card__lede {
    font-size: 14.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .journal-card,
  .journal-card:hover,
  .journal-card__media img,
  .journal-card:hover .journal-card__media img {
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   SERVICES — Mobile menu-card redesign v2 (May 2026)
   Up to 900px (covers portrait phones, landscape iPhone Pro,
   small tablets): two-column grid, image-on-top + dedicated
   pricing strip below. Time + price are first-class menu
   typography on a solid leather-card bg — never small caps
   floating over a photo.
   Overrides the earlier "1fr single column" rule at line ~2204.
   ============================================================ */
@media (max-width: 900px) {
  #services .container-wide {
    padding-inline: 14px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Card flips from absolute-positioned overlay to flex column. */
  .service-card {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
  }
  .service-card:hover {
    transform: none;
    box-shadow: none;
  }
  .service-card:active {
    transform: scale(0.985);
    transition: transform 80ms var(--ease-out);
  }

  /* Image becomes a top-of-card 4:5 thumbnail — slightly taller than
     square so the haircut/style is the main subject. */
  .service-card__img {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-position: center 22%;
    flex-shrink: 0;
    transition: none;
  }
  .service-card:hover .service-card__img { transform: none; }

  /* Veil only fades the bottom edge of the image into the strip. */
  .service-card__veil {
    position: absolute;
    inset: 0 0 auto 0;
    aspect-ratio: 4 / 5;
    height: auto;
    background: linear-gradient(
      180deg,
      transparent 55%,
      oklch(0.13 0.006 60 / 0.55) 85%,
      var(--bg-card) 100%
    );
  }

  /* PRICING — moved to TOP-RIGHT of image (was bottom-left overlay that
     covered the title+sub copy). Frosted dark pill, brass text + thin
     brass rim. Sits in the upper corner where it doesn't compete with the
     reading order; the bottom block is now free for full-width copy. */
  .service-card__meta {
    position: absolute;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    bottom: auto !important;
    margin: 0;
    padding: 5px 11px 4px;
    width: auto;
    max-width: calc(100% - 20px);
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 7px;
    color: oklch(0.86 0.10 75) !important;
    text-shadow: 0 1px 4px oklch(0.04 0.005 50 / 0.5);
    background: oklch(0.08 0.006 50 / 0.7);
    backdrop-filter: blur(10px) saturate(1.2);
    -webkit-backdrop-filter: blur(10px) saturate(1.2);
    border: 1px solid oklch(0.66 0.105 65 / 0.45);
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: var(--fw-semibold);
    letter-spacing: -0.005em;
    text-transform: none;
    z-index: 3;
    box-shadow:
      inset 0 1px 0 oklch(0.96 0.04 80 / 0.08),
      0 4px 14px -6px oklch(0 0 0 / 0.5);
  }
  .service-card__meta > span:first-child {
    color: oklch(0.78 0.06 75 / 0.7) !important;
    font-size: 10px;
    font-weight: var(--fw-medium);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .service-card__meta-dot {
    color: oklch(0.66 0.105 65 / 0.45) !important;
    font-size: 10px;
  }
  .service-card__meta > span:last-child {
    font-size: 15px;
    font-weight: var(--fw-bold);
    letter-spacing: -0.01em;
    color: oklch(0.88 0.10 75) !important;
    line-height: 1;
  }

  /* Info strip — name + descriptor on solid card bg. */
  .service-card__bottom {
    position: static;
    inset: auto;
    padding: 8px 14px 14px;
    z-index: auto;
  }
  .service-card__title {
    font-size: 19px;
    line-height: 1.18;
    margin: 0 0 4px;
    letter-spacing: -0.012em;
  }
  .service-card__sub {
    font-size: 13px;
    line-height: 1.35;
    font-style: italic;
    color: oklch(0.82 0.025 70 / 0.92);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  /* Long descriptive paragraph is redundant with sub on phone. */
  .service-card__desc {
    display: none;
  }

  /* Featured (Gatsby) + Premium (Full Groom) span both columns,
     wider 16:9 thumbnail, larger pricing strip, desc visible — they
     earn the prominent real estate that justifies the upsell. */
  .service-card--featured,
  .service-card--premium {
    grid-column: span 2;
    aspect-ratio: auto;
  }
  .service-card--featured .service-card__img,
  .service-card--premium .service-card__img {
    aspect-ratio: 16 / 9;
    object-position: center 30%;
  }
  .service-card--featured .service-card__veil,
  .service-card--premium .service-card__veil {
    aspect-ratio: 16 / 9;
  }
  .service-card--featured .service-card__bottom,
  .service-card--premium .service-card__bottom {
    padding: 8px 18px 18px;
    right: 0;
  }
  /* Featured + Premium also move price to TOP-RIGHT of the 16:9 image so
     the layout is consistent across the grid (no "different position per
     card variant" inconsistency that read as broken). display:inline-flex +
     width:auto keep the pill from stretching full-width inside the static
     bottom block. */
  .service-card--featured .service-card__meta,
  .service-card--premium .service-card__meta {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    bottom: auto !important;
    margin: 0;
    padding: 6px 14px 5px;
    gap: 8px;
    font-size: 13px;
    width: auto;
    max-width: max-content;
    display: inline-flex;
  }
  .service-card--featured .service-card__title,
  .service-card--premium .service-card__title {
    font-size: 26px;
    margin-bottom: 6px;
  }
  .service-card--featured .service-card__sub,
  .service-card--premium .service-card__sub {
    font-size: 14.5px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    max-width: 100%;
  }
  .service-card--featured .service-card__meta > span:first-child,
  .service-card--premium .service-card__meta > span:first-child {
    font-size: 10.5px;
  }
  .service-card--featured .service-card__meta > span:last-child,
  .service-card--premium .service-card__meta > span:last-child {
    font-size: 17px;
  }
  /* Bring back the short desc on the two hero cards only. */
  .service-card--featured .service-card__desc,
  .service-card--premium .service-card__desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-muted);
    margin-top: 6px;
  }

  /* Premium gold ring — stronger on the strip pattern. */
  .service-card--premium {
    border-color: var(--border-accent);
    box-shadow:
      0 0 0 1px color-mix(in oklch, var(--accent), transparent 70%) inset,
      0 10px 32px oklch(0.78 0.13 78 / 0.18);
  }

  /* Ribbons sit on the image corner — tighter pill on mobile. */
  .featured-ribbon {
    top: 10px;
    left: 10px;
    right: auto;
    font-size: 9.5px;
    padding: 4px 10px 3px;
    letter-spacing: 0.18em;
  }

  /* Tighten the section header so the menu reads on first scroll. */
  #services .section-header {
    margin-bottom: 20px;
  }
  #services .section-header h2 {
    font-size: clamp(28px, 7vw, 36px);
  }
  #services .section-header p {
    font-size: 14px;
    max-width: 36ch;
  }
}

/* Landscape phone — viewport short + wide. Drop the 4:5 image to
   16:11 so the card doesn't tower past the fold on rotation. */
@media (max-width: 900px) and (max-height: 480px) and (orientation: landscape) {
  .service-card__img { aspect-ratio: 16 / 11; }
  .service-card__veil { aspect-ratio: 16 / 11; }
}

/* Sub-360px (iPhone SE, small Android): keep two columns, shrink the
   pricing badge + title a notch so the badge doesn't crowd the corner. */
@media (max-width: 360px) {
  .services-grid { gap: 10px; }
  .service-card__title { font-size: 17px; }
  .service-card__sub { font-size: 12px; }
  .service-card__meta { top: 8px !important; right: 8px !important; padding: 4px 9px 3px; gap: 5px; }
  .service-card__meta > span:first-child { font-size: 9.5px; }
  .service-card__meta > span:last-child { font-size: 13.5px; }
  .service-card--featured .service-card__title,
  .service-card--premium .service-card__title { font-size: 22px; }
  .service-card--featured .service-card__meta,
  .service-card--premium .service-card__meta { top: 10px !important; right: 10px !important; padding: 5px 12px 4px; }
  .service-card--featured .service-card__meta > span:last-child,
  .service-card--premium .service-card__meta > span:last-child { font-size: 16px; }
}
