/* ==========================================================================
   tokens.css — Design system
   Casa Del Pueblo Meat Market · Carnicería & Mariscos · Houston 77086
   VS Web Studio preview v2 · 2026
   Palette: bold neighborhood butcher & seafood market —
   deep butcher red + warm charcoal + warm cream, bone/parchment accent.
   LIGHT-committed; manual [data-theme="dark"] toggle still works.
   ========================================================================== */

:root {
  color-scheme: light;

  /* --- Raw palette --- */
  --ink-900: oklch(24% 0.012 40);    /* warm charcoal, near-black */
  --ink-800: oklch(30% 0.014 40);
  --ink-700: oklch(38% 0.014 42);
  --ink-500: oklch(49% 0.013 45);    /* secondary text */
  --ink-300: oklch(72% 0.012 55);
  --paper:   oklch(96.2% 0.014 74);  /* warm cream */
  --paper-2: oklch(93% 0.02 68);     /* deeper cream (sunken) */
  --bone:    oklch(90% 0.024 72);    /* bone / parchment */
  --white:   oklch(100% 0 0);

  /* Primary — deep butcher red */
  --butcher-800: oklch(33% 0.115 27);  /* ~ #661812 */
  --butcher-700: oklch(40% 0.14 27);   /* ~ #7a1f18 deep butcher red */
  --butcher-600: oklch(48% 0.162 27);
  --butcher-500: oklch(56% 0.172 28);
  --butcher-100: oklch(92% 0.04 28);

  /* Accent — warm parchment / bone */
  --amber-500: oklch(80% 0.10 74);
  --amber-300: oklch(88% 0.055 76);

  /* States */
  --good: oklch(60% 0.13 150);
  --warn: oklch(80% 0.15 80);
  --bad:  oklch(55% 0.20 26);

  /* --- Semantic tokens (LIGHT default) --- */
  --bg:            var(--paper);
  --bg-elevated:   var(--white);
  --bg-sunken:     var(--paper-2);
  --bg-inverse:    var(--ink-900);

  --text:          var(--ink-900);
  --text-muted:    var(--ink-500);
  --text-inverse:  var(--paper);

  --border:        oklch(86% 0.014 62);
  --border-strong: oklch(77% 0.022 55);

  --primary:           var(--butcher-700);
  --primary-strong:    var(--butcher-800);
  --primary-contrast:  var(--white);
  --primary-tint:      var(--butcher-100);

  --accent:     var(--amber-500);
  --focus-ring: var(--butcher-600);

  /* --- Typography --- */
  --font-display: "Bricolage Grotesque", "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-brand:   "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: clamp(0.83rem, 0.80rem + 0.15vw, 0.92rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.13rem);
  --step-1:  clamp(1.20rem, 1.12rem + 0.40vw, 1.50rem);
  --step-2:  clamp(1.44rem, 1.30rem + 0.70vw, 2.00rem);
  --step-3:  clamp(1.73rem, 1.50rem + 1.15vw, 2.67rem);
  --step-4:  clamp(2.07rem, 1.70rem + 1.85vw, 3.35rem);
  --step-5:  clamp(2.40rem, 1.85rem + 2.7vw, 4.4rem);

  --leading-tight: 1.03;
  --leading-snug:  1.22;
  --leading-body:  1.6;

  --tracking-tight: -0.02em;
  --tracking-wide:  0.16em;

  /* --- Space (4px scale) --- */
  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6.5rem;

  /* --- Layout --- */
  --container:       76rem;
  --container-wide:  86rem;
  --container-prose: 42rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);

  /* --- Radii --- */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* --- Shadows (warm) --- */
  --shadow-sm: 0 1px 2px oklch(30% 0.02 40 / 0.07), 0 1px 1px oklch(30% 0.02 40 / 0.05);
  --shadow:    0 6px 20px oklch(30% 0.03 30 / 0.10), 0 2px 6px oklch(30% 0.02 40 / 0.07);
  --shadow-lg: 0 26px 60px oklch(26% 0.04 28 / 0.20), 0 6px 16px oklch(26% 0.03 30 / 0.12);

  /* --- Motion --- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 140ms;
  --dur:      280ms;
  --dur-slow: 560ms;

  --header-h: 4.75rem;
}

[data-theme="dark"] {
  --bg:            oklch(18% 0.014 32);
  --bg-elevated:   oklch(23% 0.016 32);
  --bg-sunken:     oklch(14% 0.012 32);
  --bg-inverse:    var(--paper);

  --text:          oklch(95% 0.008 76);
  --text-muted:    var(--ink-300);
  --text-inverse:  var(--ink-900);

  --border:        oklch(31% 0.016 40);
  --border-strong: oklch(41% 0.02 40);

  --primary:           var(--butcher-500);
  --primary-strong:    var(--butcher-600);
  --primary-contrast:  var(--white);
  --primary-tint:      oklch(28% 0.08 26);

  --shadow-sm: 0 1px 2px oklch(0% 0 0 / 0.4);
  --shadow:    0 8px 24px oklch(0% 0 0 / 0.45);
  --shadow-lg: 0 28px 64px oklch(0% 0 0 / 0.55);
}
/* ==========================================================================
   base.css — Reset moderno + tipografía base + accesibilidad
   ========================================================================== */

/* Reset acotado y predecible */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Compensa el header fijo al saltar a anclas */
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: var(--leading-body);
  font-synthesis: none;
  /* Reserva ascendente para evitar CLS al cargar la fuente */
  overflow-x: clip;
}

img, picture, svg, video, canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.16em; }

/* Titulares — equilibrio de líneas (evita huérfanas) */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}
p { text-wrap: pretty; }

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

strong { font-weight: 650; }

::selection {
  background: var(--primary);
  color: var(--primary-contrast);
}

/* Foco visible y consistente para teclado (a11y) */
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
:focus:not(:focus-visible) { outline: none; }

/* Saltar al contenido (a11y) */
.skip-link {
  position: absolute;
  left: var(--space-md);
  top: -100%;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--bg-inverse);
  color: var(--text-inverse);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus-visible { top: var(--space-md); }

/* Sólo lectores de pantalla */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Respeta usuarios que reducen movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Viewport fit — el hero llena la pantalla sin recortar; secciones por contenido.
   Ver references/viewport-fit-system.md. "Caber" nunca significa clipear.
   ========================================================================== */

/* HERO: llena EXACTAMENTE una pantalla bajo el header sticky. El header es position:sticky
   (ocupa --header-h EN EL FLUJO), por eso se RESTA --header-h — NO se suma como padding. Sumarlo
   hace el hero = header + 100svh y se pasa de una pantalla (bug real). Contenido centrado, compacto
   y escalable con la altura. NUNCA height:100vh; NUNCA max-height que recorte el TEXTO. El hero se
   diseña para CABER; si el copy fuera excesivo, el salvavidas JS baja la escala (no crece, no clipea). */
.hero {
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-content: center;
  gap: clamp(0.8rem, 2svh, 1.75rem);
  padding-block: clamp(1rem, 2.4svh, 2.25rem);
  padding-inline: var(--gutter);
}
/* Tope del titular DELIBERADAMENTE bajo (<=3.6rem): en monitores anchos evita el titular gigante
   que se parte en 4 líneas y empuja los CTA fuera de pantalla. Mezcla ancho (vw) + alto (svh). */
.hero__title {
  font-size: clamp(1.9rem, 1.2rem + 2vw + 1.4svh, 3.6rem);
  line-height: 1.05;
  text-wrap: balance;
}
.hero__subtitle { font-size: clamp(1rem, 1.4svh + 0.4vw, 1.3rem); max-width: 46ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Salvavidas opcional: si el contenido excede el alto, encoge la escala (no recorta, no crece). */
[data-hero-fit] > * { font-size: calc(1em * var(--hero-scale, 1)); }

/* Media del hero: en móvil (apilada bajo el texto) se limita para que TEXTO+IMAGEN quepan;
   en escritorio (2 col) se limita para no exceder el alto. object-fit:cover evita deformar. */
/* MÓVIL/TABLET: hero de ALTURA DEFINIDA; el texto va compacto y la 2ª columna apilada (imagen)
   toma SOLO el hueco restante bajo el texto (flex-fill). Así el hero nunca se pasa de una pantalla,
   sin importar el largo del copy — si el texto fuera enorme, la imagen se encoge (no desborda). */
@media (max-width: 59.99rem) {
  /* '.hero .hero-grid' (0,2,0) para GANARLE a layout.css '.hero-grid{display:grid}' (0,1,0), que se
     concatena después; si no, el grid seguiría activo y la imagen no tomaría el hueco restante. */
  .hero { display: flex; height: calc(100svh - var(--header-h)); min-height: 0; align-items: stretch; }
  .hero > .container { display: flex; flex-direction: column; min-height: 0; }
  .hero .hero-grid { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; gap: clamp(0.7rem, 2svh, 1.2rem); align-items: stretch; }
  .hero .hero-grid > :first-child { flex: 0 0 auto; }                                   /* texto: alto natural */
  .hero .hero-grid > :last-child:not(:first-child) { flex: 1 1 auto; min-height: 0; overflow: hidden; aspect-ratio: auto; } /* media: el resto */
  /* !important vence cualquier aspect-ratio/height en línea del autor: la imagen SIEMPRE llena el hueco
     restante y recorta con object-fit (centrado), garantizando que el hero quepa en una pantalla. */
  .hero .hero-grid > :last-child:not(:first-child) img { height: 100% !important; width: 100%; max-height: none !important; object-fit: cover; aspect-ratio: auto !important; }
  .hero__title { font-size: clamp(1.65rem, 5.5vw + 0.4rem, 2.5rem); }
  .hero__lead { font-size: 1rem; line-height: 1.45; }
}
/* ESCRITORIO: 2 columnas; la imagen se limita para no exceder el alto de la pantalla. */
@media (min-width: 60rem) {
  .hero-grid img, .hero-grid > figure, .hero-grid > .hero__media { max-height: calc(100svh - var(--header-h) - 4rem); object-fit: cover; }
}

/* Pantallas de POCA ALTURA: compactar por tramos para caber en laptops cortas / ventanas con
   muchas barras. El desborde real ocurrió a 1920x900 (ancha pero baja), no solo en móvil horizontal. */
@media (max-height: 820px) {
  .hero { padding-block: clamp(0.85rem, 1.8svh, 1.4rem); }
  .hero__title { font-size: clamp(1.7rem, 1.05rem + 1.7vw + 1svh, 2.9rem); }
}
@media (max-height: 660px) {
  .hero__title { font-size: clamp(1.5rem, 1rem + 1.5vw, 2.35rem); line-height: 1.06; }
  .hero__subtitle { font-size: 0.98rem; }
}
@media (max-height: 560px) {
  .hero { min-height: auto; align-content: start; padding-block: clamp(0.75rem, 1.5svh, 1.1rem); }
  .hero__title { font-size: clamp(1.5rem, 6.5vw, 2.2rem); }
}

/* SECCIONES: altura por contenido, NUNCA fija. Padding proporcional. */
.section { padding-block: clamp(3rem, 8vw, 6rem); padding-inline: var(--gutter); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }

/* Sección full-screen SOLO para storytelling deliberado (no de contenido). */
.section--fullscreen {
  min-height: 100svh;      /* NO height:100vh */
  display: grid;
  align-content: center;
}
@media (max-height: 560px) { .section--fullscreen { min-height: auto; } }
/* ==========================================================================
   home.css — Casa Del Pueblo Meat Market (bespoke home, v2)
   Bold neighborhood butcher & seafood market. Depends on tokens.css + base.css.
   ========================================================================== */

.cdp { background: var(--bg); }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3 { font-family: var(--font-display); }

/* ---- Buttons ------------------------------------------------------------- */
.btn-primary, .btn-ghost, .btn-cream {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55ch;
  font-family: var(--font-brand); font-weight: 700; letter-spacing: 0.01em;
  font-size: var(--step-0); line-height: 1; text-decoration: none; white-space: nowrap;
  padding: 0.9rem 1.4rem; min-height: 3rem; border-radius: var(--radius-pill);
  border: 2px solid transparent; position: relative; overflow: hidden;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur) var(--ease-out), background var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.btn-lg { padding: 1.05rem 1.7rem; min-height: 3.4rem; font-size: var(--step-1); }
.btn-primary { background: var(--primary); color: var(--primary-contrast); box-shadow: 0 6px 18px oklch(40% 0.14 27 / 0.28); }
.btn-primary:hover { background: var(--primary-strong); transform: translateY(-2px); box-shadow: 0 12px 26px oklch(40% 0.14 27 / 0.34); }
.btn-ghost { background: transparent; color: #fff; border-color: color-mix(in oklch, #fff 62%, transparent); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-cream { background: var(--paper); color: var(--primary-strong); box-shadow: var(--shadow); }
.btn-cream:hover { background: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-primary svg, .btn-cream svg, .btn-ghost svg { flex: none; }
/* sheen */
.btn-primary::after, .btn-cream::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform var(--dur-slow) var(--ease-out);
}
.btn-primary:hover::after, .btn-cream:hover::after { transform: translateX(120%); }

/* ---- Section heads ------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-brand); font-size: var(--step--1); font-weight: 700;
  letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--primary);
}
.eyebrow--light { color: color-mix(in oklch, var(--amber-300) 88%, #fff); }
.sec-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.sec-head h2 { font-size: var(--step-4); margin-top: 0.5rem; letter-spacing: var(--tracking-tight); }
.sec-head__lead { margin-top: 0.9rem; color: var(--text-muted); font-size: var(--step-1); line-height: 1.5; }

/* ==========================================================================
   CUSTOM MARKET HEADER
   ========================================================================== */
.mkt-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklch, var(--paper) 90%, transparent);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.mkt-header[data-scrolled="true"] { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.mkt-header__bar {
  width: 100%; max-width: var(--container-wide); margin-inline: auto; padding-inline: var(--gutter);
  min-height: var(--header-h); display: flex; align-items: center; gap: 1.25rem;
}
.mkt-brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.mkt-brand__logo { height: 2.15rem; width: auto; }
.mkt-nav { display: flex; align-items: center; gap: 1.6rem; margin-inline: auto; }
.mkt-nav a {
  font-family: var(--font-brand); font-weight: 600; font-size: 0.98rem; letter-spacing: 0.01em;
  color: var(--text); text-decoration: none; padding: 0.4rem 0; position: relative;
}
.mkt-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--primary); transition: right var(--dur) var(--ease-out);
}
.mkt-nav a:hover::after { right: 0; }
.mkt-header__actions { display: flex; align-items: center; gap: 0.9rem; flex: none; }

.lang-toggle { display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--font-brand); font-weight: 700; font-size: 0.85rem; }
.lang-toggle__opt { color: var(--text-muted); text-decoration: none; padding: 0.2rem 0.35rem; border-radius: 6px; letter-spacing: 0.04em; }
.lang-toggle__opt.is-on { color: var(--primary-contrast); background: var(--primary); }
.lang-toggle__opt:not(.is-on):hover { color: var(--text); background: var(--bg-sunken); }
.lang-toggle__sep { color: var(--border-strong); }

.mkt-call {
  display: inline-flex; align-items: center; gap: 0.5ch; font-family: var(--font-brand); font-weight: 700;
  color: var(--primary-strong); text-decoration: none; font-size: 0.98rem;
  padding: 0.55rem 1rem; border: 2px solid var(--primary); border-radius: var(--radius-pill);
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.mkt-call:hover { background: var(--primary); color: var(--primary-contrast); }
.mkt-call svg { flex: none; }

.mkt-burger { display: none; padding: 0.5rem; margin: -0.5rem; color: var(--text); border-radius: 8px; }

.mkt-mobile { display: none; }
@media (max-width: 62rem) {
  .mkt-nav { display: none; }
  .mkt-call span { display: none; }
  .mkt-call { padding: 0.55rem 0.7rem; }
  .mkt-burger { display: inline-grid; place-items: center; }
  .mkt-header__actions { margin-inline-start: auto; }
  .mkt-mobile {
    display: grid; gap: 0.25rem; padding: 0 var(--gutter);
    max-height: 0; overflow: hidden; opacity: 0;
    border-top: 1px solid transparent;
    transition: max-height var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out), padding var(--dur) var(--ease-out);
  }
  .mkt-mobile[data-open="true"] { max-height: 24rem; opacity: 1; padding: 0.75rem var(--gutter) 1.1rem; border-top-color: var(--border); }
  .mkt-mobile a { font-family: var(--font-brand); font-weight: 600; color: var(--text); text-decoration: none; padding: 0.7rem 0.25rem; border-bottom: 1px solid var(--border); }
  .mkt-mobile__call { display: inline-flex; align-items: center; gap: 0.5ch; color: var(--primary-strong) !important; border-bottom: none !important; margin-top: 0.35rem; }
}

/* ==========================================================================
   HERO — one screen
   ========================================================================== */
.cdp-hero.hero {
  position: relative; isolation: isolate; overflow: clip;
  display: grid; align-content: center; justify-items: start;
  color: #fff; text-align: left;
}
.cdp-hero__media { position: absolute; inset: 0; z-index: -2; }
.cdp-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.cdp-hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, oklch(20% 0.03 28 / 0.86) 0%, oklch(20% 0.03 28 / 0.55) 46%, oklch(20% 0.03 28 / 0.18) 100%),
    linear-gradient(0deg, oklch(16% 0.03 28 / 0.72) 0%, transparent 46%);
}
.cdp-hero__inner { width: 100%; max-width: var(--container); margin-inline: auto; display: grid; gap: clamp(0.7rem, 1.8svh, 1.2rem); }
.cdp-hero__kicker {
  display: inline-flex; align-items: center; gap: 0.5ch; font-family: var(--font-brand); font-weight: 700;
  font-size: var(--step--1); letter-spacing: 0.06em; text-transform: uppercase;
  color: color-mix(in oklch, var(--amber-300) 80%, #fff);
}
.cdp-hero__kicker svg { color: var(--amber-500); }
.cdp-hero__title { max-width: 18ch; text-shadow: 0 2px 24px oklch(15% 0.02 28 / 0.4); letter-spacing: var(--tracking-tight); }
.cdp-hero__lead { max-width: 44ch; font-size: clamp(1rem, 1.3svh + 0.35vw, 1.22rem); line-height: 1.5; color: rgba(255,255,255,0.92); }
.cdp-hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.25rem; }
.cdp-hero__strip {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; list-style: none; padding: 0; margin-top: 0.4rem;
  font-family: var(--font-brand); font-weight: 600; font-size: 0.92rem;
}
.cdp-hero__strip li { display: inline-flex; align-items: center; gap: 0.5ch; color: rgba(255,255,255,0.9); }
.cdp-hero__strip svg { color: var(--amber-500); flex: none; }

@media (max-width: 59.99rem) {
  /* neutralize base flex hero rules; keep one-screen contract */
  .cdp-hero.hero { display: grid; height: auto; min-height: calc(100svh - var(--header-h)); align-items: center; }
  .cdp-hero__title { max-width: 16ch; }
}

/* ==========================================================================
   THE COUNTERS
   ========================================================================== */
.cdp-counters { background: var(--bg); }
.counter-grid { display: grid; gap: clamp(1rem, 2.5vw, 1.6rem); grid-template-columns: repeat(3, 1fr); }
@media (max-width: 60rem) { .counter-grid { grid-template-columns: 1fr; max-width: 34rem; margin-inline: auto; } }

.counter-card {
  display: flex; flex-direction: column; background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.counter-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.counter-card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.counter-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.counter-card:hover .counter-card__media img { transform: scale(1.06); }
.counter-card__pattern {
  aspect-ratio: 4 / 3; display: grid; place-items: center; color: var(--primary-contrast);
  background:
    radial-gradient(circle at 30% 25%, oklch(56% 0.17 28 / 0.55), transparent 55%),
    repeating-linear-gradient(45deg, var(--butcher-700) 0 14px, var(--butcher-800) 14px 28px);
}
.counter-card__body { padding: 1.3rem 1.4rem 1.5rem; display: grid; gap: 0.5rem; }
.counter-card__kicker { display: inline-flex; align-items: center; gap: 0.5ch; font-family: var(--font-brand); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); }
.counter-card__name { font-size: var(--step-2); letter-spacing: var(--tracking-tight); }
.counter-card__body p { color: var(--text-muted); line-height: 1.55; }

/* ==========================================================================
   STAR TOOL — At the counter today
   ========================================================================== */
.cdp-today { background: var(--bg-sunken); }
.counter-tool {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.counter-tool__tabs {
  display: flex; gap: 0.35rem; padding: 0.55rem; background: var(--bg-sunken);
  border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none;
}
.counter-tool__tabs::-webkit-scrollbar { display: none; }
.counter-tool__tab {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 0.55ch;
  font-family: var(--font-brand); font-weight: 700; font-size: 0.98rem; white-space: nowrap;
  padding: 0.75rem 1rem; min-height: 2.9rem; border-radius: var(--radius-pill); color: var(--text-muted);
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.counter-tool__tab svg { flex: none; }
.counter-tool__tab:hover { color: var(--text); }
.counter-tool__tab.is-active { background: var(--primary); color: var(--primary-contrast); box-shadow: 0 4px 12px oklch(40% 0.14 27 / 0.3); }

.counter-tool__panel { padding: clamp(1rem, 2.5vw, 1.6rem); }
.counter-tool__panel[hidden] { display: none; }
.today-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.85rem; }
.today-item {
  display: flex; gap: 0.9rem; align-items: center; padding: 0.7rem; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.today-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.today-item__thumb { flex: none; width: 4.6rem; height: 4.6rem; border-radius: 10px; overflow: hidden; }
.today-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.today-item__thumb--icon {
  display: grid; place-items: center; color: var(--primary-contrast);
  background: linear-gradient(150deg, var(--butcher-600), var(--butcher-800));
}
.today-item__name { font-family: var(--font-brand); font-weight: 700; font-size: 1.02rem; letter-spacing: 0; }
.today-item__desc { color: var(--text-muted); font-size: 0.9rem; line-height: 1.4; margin-top: 0.15rem; }

.counter-tool__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem clamp(1rem, 2.5vw, 1.6rem) 1.3rem; border-top: 1px solid var(--border); background: var(--bg-sunken);
}
.counter-tool__note { color: var(--text-muted); font-size: 0.9rem; line-height: 1.45; max-width: 40rem; }

/* reveal stagger for tool items when panel becomes active */
.counter-tool__panel.is-active .today-item {
  animation: itemIn var(--dur) var(--ease-out) both; animation-delay: var(--d, 0ms);
}
@keyframes itemIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   FRESH / FAMILY BAND
   ========================================================================== */
.cdp-fresh { background: var(--primary-strong); color: var(--paper); }
.cdp-fresh__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 60rem) { .cdp-fresh__grid { grid-template-columns: 1fr; } }
.cdp-fresh__copy h2 { color: var(--paper); font-size: var(--step-4); margin-top: 0.5rem; letter-spacing: var(--tracking-tight); }
.cdp-fresh__lead { margin-top: 1rem; color: color-mix(in oklch, var(--paper) 88%, transparent); font-size: var(--step-1); line-height: 1.55; }
.cdp-fresh__list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 0.7rem; }
.cdp-fresh__list li { display: flex; align-items: center; gap: 0.7ch; font-family: var(--font-brand); font-weight: 600; }
.cdp-fresh__list svg { flex: none; color: var(--amber-500); }
.cdp-fresh__figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 3px solid color-mix(in oklch, var(--amber-500) 40%, transparent); }
.cdp-fresh__figure img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }

/* ==========================================================================
   VISIT — location / hours + map facade
   ========================================================================== */
.cdp-visit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: stretch; }
@media (max-width: 60rem) { .cdp-visit__grid { grid-template-columns: 1fr; } }
.cdp-visit__info h2 { font-size: var(--step-3); margin: 0.5rem 0 1.5rem; letter-spacing: var(--tracking-tight); }
.visit-row { display: flex; gap: 0.9rem; padding: 0.9rem 0; border-bottom: 1px solid var(--border); }
.visit-row__ic { flex: none; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 10px; background: var(--primary-tint); color: var(--primary-strong); }
.visit-row__label { font-family: var(--font-brand); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.visit-row__val { margin-top: 0.15rem; line-height: 1.45; }
.visit-row__tel { color: var(--primary-strong); font-weight: 700; text-decoration: none; }
.visit-row__tel:hover { text-decoration: underline; }
.cdp-visit__info .btn-primary { margin-top: 1.5rem; }

.cdp-map {
  position: relative; display: block; min-height: 20rem; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow); text-decoration: none;
  background: linear-gradient(135deg, oklch(92% 0.02 150), oklch(88% 0.03 200));
  transition: box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.cdp-map:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.cdp-map__grid { position: absolute; inset: 0; background-image: linear-gradient(oklch(60% 0.02 200 / 0.18) 1px, transparent 1px), linear-gradient(90deg, oklch(60% 0.02 200 / 0.18) 1px, transparent 1px); background-size: 2.2rem 2.2rem; }
.cdp-map__road { position: absolute; background: var(--paper); box-shadow: 0 0 0 1px oklch(70% 0.02 80 / 0.4); }
.cdp-map__road--1 { top: 42%; left: -5%; width: 110%; height: 1.5rem; transform: rotate(-7deg); }
.cdp-map__road--2 { top: -10%; left: 58%; width: 1.1rem; height: 120%; transform: rotate(6deg); background: var(--bone); }
.cdp-map__pin { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -100%); color: var(--primary); filter: drop-shadow(0 4px 6px oklch(30% 0.05 28 / 0.4)); }
.cdp-map__pin svg { animation: pinBob 2.6s var(--ease-out) infinite; }
@keyframes pinBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.cdp-map__card {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem; display: grid; gap: 0.15rem;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.85rem 1rem; box-shadow: var(--shadow);
}
.cdp-map__name { font-family: var(--font-display); font-weight: 800; color: var(--text); font-size: 1.05rem; }
.cdp-map__addr { color: var(--text-muted); font-size: 0.88rem; }
.cdp-map__go { display: inline-flex; align-items: center; gap: 0.4ch; margin-top: 0.25rem; font-family: var(--font-brand); font-weight: 700; color: var(--primary-strong); font-size: 0.92rem; }
.cdp-map__go svg { flex: none; }

/* ==========================================================================
   CLOSING CTA
   ========================================================================== */
.cdp-cta { background: var(--bg-inverse); color: var(--paper); padding-block: clamp(3rem, 8vw, 5.5rem); padding-inline: var(--gutter); text-align: center; }
.cdp-cta__inner { display: grid; justify-items: center; gap: 1.25rem; }
.cdp-cta__title { color: var(--paper); font-size: var(--step-4); max-width: 22ch; letter-spacing: var(--tracking-tight); }

/* ==========================================================================
   CUSTOM MARKET FOOTER
   ========================================================================== */
.mkt-footer { background: var(--bg-inverse); color: color-mix(in oklch, var(--paper) 82%, transparent); }
.mkt-footer__cta { background: var(--primary-strong); }
.mkt-footer__cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; }
.mkt-footer__cta-inner p { font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); color: var(--paper); }

.mkt-footer__cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); padding-block: clamp(2.5rem, 6vw, 4rem); }
@media (max-width: 62rem) { .mkt-footer__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 34rem) { .mkt-footer__cols { grid-template-columns: 1fr; } }
.mkt-footer__logo { height: 2.4rem; width: auto; filter: brightness(0) invert(1); }
.mkt-footer__tag { margin-top: 0.9rem; max-width: 34ch; line-height: 1.55; font-size: 0.95rem; }
.mkt-footer__col h3 { font-family: var(--font-brand); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper); margin-bottom: 0.9rem; }
.mkt-footer__col a, .mkt-footer__col p { display: block; color: color-mix(in oklch, var(--paper) 80%, transparent); text-decoration: none; font-size: 0.95rem; line-height: 1.5; padding: 0.2rem 0; }
.mkt-footer__col a:hover { color: var(--paper); }
.mkt-footer__phone, .mkt-footer__maplink { display: inline-flex !important; align-items: center; gap: 0.5ch; color: var(--amber-300) !important; font-weight: 600; }
.mkt-footer__phone svg, .mkt-footer__maplink svg { flex: none; }

.mkt-footer__base { border-top: 1px solid color-mix(in oklch, var(--paper) 16%, transparent); }
.mkt-footer__base-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; padding-block: 1.4rem; font-size: 0.85rem; }
.studio-credit { color: color-mix(in oklch, var(--paper) 64%, transparent); }
.studio-credit__link { color: var(--amber-300); text-decoration: none; font-weight: 600; }
.studio-credit__link:hover { text-decoration: underline; }

/* ==========================================================================
   STICKY MOBILE CALL
   ========================================================================== */
.sticky-call {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90;
  display: none; align-items: center; gap: 0.55ch;
  background: var(--primary); color: var(--primary-contrast); text-decoration: none;
  font-family: var(--font-brand); font-weight: 700; padding: 0.9rem 1.25rem; border-radius: var(--radius-pill);
  box-shadow: 0 10px 26px oklch(40% 0.14 27 / 0.4);
}
.sticky-call svg { flex: none; }
@media (max-width: 62rem) { .sticky-call { display: inline-flex; } }
@media (max-width: 62rem) and (max-height: 520px) { .sticky-call { display: none; } }

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .counter-tool__panel.is-active .today-item { animation: none !important; }
  .cdp-map__pin svg { animation: none !important; }
  .btn-primary::after, .btn-cream::after { display: none; }
}
