/* Wö Kàpi — site-v1 "Semilla" (Route B)
   Type-led poster on the Bribri name. Erode (display) + Supreme (text), Fontshare.
   Sage-led monochromatic, caramel as germination accent, soft 10px corners.
   Foundation :root copied from knowledge/design-system/tokens.css. */

/* ---------- design-system foundation tokens ---------- */
:root {
  /* --- brand color ramps (50 light .. 900 dark) --- */
  --brand-50: #f2f4f2;
  --brand-100: #e6e8e5;
  --brand-200: #ccd1cb;
  --brand-300: #adb5aa;
  --brand-400: #879282;
  --brand-500: #61705b;
  --brand-600: #53604e;
  --brand-700: #465142;
  --brand-800: #363f33;
  --brand-900: #272d24;
  --accent-50: #f5f2ee;
  --accent-100: #ebe5de;
  --accent-200: #d7cbbd;
  --accent-300: #beaa93;
  --accent-400: #a08262;
  --accent-500: #825b30;
  --accent-600: #704e29;
  --accent-700: #5e4223;
  --accent-800: #49331b;
  --accent-900: #342413;

  /* --- semantic roles (WCAG-AA verified by tokens.py) --- */
  --color-bg: #fbfde5;
  --color-brand: #61705b;
  --color-accent: #825b30;
  --color-ink: #61705b;
  --color-on-brand: #ffffff;
  --color-on-accent: #ffffff;

  /* --- fluid type scale (clamp: 360px .. 1240px viewport) --- */
  --step-6: clamp(2.4rem, 1.664rem + 3.27vw, 4.2rem);
  --step-5: clamp(2rem, 1.509rem + 2.18vw, 3.2rem);
  --step-4: clamp(1.7rem, 1.414rem + 1.27vw, 2.4rem);
  --step-3: clamp(1.4rem, 1.236rem + 0.73vw, 1.8rem);
  --step-2: clamp(1.2rem, 1.098rem + 0.45vw, 1.45rem);
  --step-1: clamp(1.1rem, 1.059rem + 0.18vw, 1.2rem);
  --step-0: clamp(1rem, 0.98rem + 0.09vw, 1.05rem);
  --step--1: clamp(0.875rem, 0.865rem + 0.05vw, 0.9rem);
  --step--2: clamp(0.78rem, 0.772rem + 0.04vw, 0.8rem);
  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --measure: 66ch;

  /* --- spacing scale (rem) --- */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* --- corner language: soft (10px base) --- */
  --radius-0: 0;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* --- shadow scale --- */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.16);

  /* --- motion --- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 140ms;
  --dur-base: 260ms;
  --dur-slow: 520ms;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0ms;
    --dur-base: 0ms;
    --dur-slow: 0ms;
  }
}

/* ---------- route variables ---------- */
:root {
  --font-display: "Erode", Georgia, "Times New Roman", serif;
  --font-text: "Supreme", "Segoe UI", Arial, sans-serif;
  --cream: #fbfde5;
  --header-h: 64px;
}

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

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.no-scroll {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--color-brand);
  margin: 0 0 var(--space-md);
}

/* safety net: an unbreakable token (long name, pasted URL) wraps instead of
   stretching the page sideways */
h1,
h2,
h3,
p,
li,
dt,
dd,
figcaption,
cite {
  overflow-wrap: anywhere;
}

h2 {
  font-size: var(--step-5);
  letter-spacing: -0.01em;
}
h3 {
  font-size: var(--step-2);
}

p {
  margin: 0 0 var(--space-md);
  max-width: var(--measure);
}

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

.kicker {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--color-bg);
  color: var(--color-brand);
  padding: var(--space-xs) var(--space-sm);
}
.skip:focus {
  left: var(--space-sm);
}

.btn {
  display: inline-block;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: var(--step-0);
  text-decoration: none;
  padding: 0.85em 1.6em;
  border-radius: var(--radius-md);
  transition:
    background-color var(--dur-base) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}
.btn:active {
  transform: translateY(1px);
}
.btn-accent {
  background: var(--color-accent);
  color: var(--color-on-accent);
}
.btn-accent:hover {
  background: var(--accent-600);
}
.btn-big {
  font-size: var(--step-1);
  padding: 0.95em 2em;
}

.link-quiet {
  color: var(--color-brand);
  font-weight: 500;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  background: var(--brand-900);
  border-bottom: 1px solid rgba(251, 253, 229, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.brand-logo {
  border-radius: 50%;
  width: 40px;
  height: 40px;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--cream);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-left: auto;
}
.site-nav a {
  color: var(--brand-200);
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color var(--dur-fast) var(--ease-out);
}
.site-nav a:hover {
  color: var(--cream);
}

.nav-cta {
  color: var(--cream);
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 700;
  border: 1.5px solid var(--brand-300);
  border-radius: var(--radius-md);
  padding: 0.55em 1.1em;
  white-space: nowrap;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out);
}
.nav-cta:hover {
  border-color: var(--cream);
  background: rgba(251, 253, 229, 0.08);
}

.burger {
  display: none;
  background: none;
  border: 0;
  color: var(--cream);
  padding: 0.5rem;
  cursor: pointer;
}

/* drawer */
.drawer {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: var(--brand-900);
  padding: var(--space-xl) clamp(1.5rem, 6vw, 3rem);
  transform: translateX(100%);
  visibility: hidden;
  transition:
    transform var(--dur-base) var(--ease-out),
    visibility 0s linear var(--dur-base);
}
.drawer.is-open {
  transform: none;
  visibility: visible;
  transition-delay: 0s;
}
.drawer nav {
  display: grid;
  gap: var(--space-md);
}
.drawer a {
  font-family: var(--font-display);
  font-size: var(--step-3);
  color: var(--cream);
  text-decoration: none;
}
.drawer .drawer-cta {
  font-family: var(--font-text);
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--cream);
  border: 1.5px solid var(--brand-300);
  border-radius: var(--radius-md);
  padding: 0.6em 1.2em;
  justify-self: start;
  margin-top: var(--space-sm);
}

@media (max-width: 760px) {
  .site-nav,
  .nav-cta {
    display: none;
  }
  .burger {
    display: inline-flex;
    margin-left: auto;
  }
}

/* ---------- hero: type-led color field, set like a lexicon entry ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(
      120% 90% at 78% 112%,
      rgba(130, 91, 48, 0.27),
      transparent 62%
    ),
    var(--brand-900);
  padding: calc(var(--header-h) + var(--space-2xl)) clamp(1rem, 5vw, 3rem)
    var(--space-3xl);
}

.hero-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  text-align: left;
}

.hero-word {
  font-size: clamp(4.2rem, 16.5vw, 13rem);
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0 0 var(--space-md);
  border-bottom: 1px solid var(--accent-400);
  padding-bottom: 0.1em;
}
.hero-word .w {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}
.hero-word .ch {
  display: inline-block;
}
.hero-word .ch i {
  display: inline-block;
  font-style: normal;
}
/* hidden initial state only when JS is running (progressive enhancement) */
html.js .hero-word .ch i {
  transform: translateY(118%);
  transition: transform 760ms var(--ease-out);
}
html.js .hero-word.is-in .ch i,
html.js.no-motion .hero-word .ch i {
  transform: none;
  transition-duration: var(--dur-slow);
}
.hero-word.is-in .ch:nth-child(1) i {
  transition-delay: 60ms;
}
.hero-word.is-in .ch:nth-child(2) i {
  transition-delay: 140ms;
}
.hero-word.is-in .ch:nth-child(3) i {
  transition-delay: 220ms;
}
.hero-word.is-in .ch:nth-child(4) i {
  transition-delay: 300ms;
}
.hero-word.is-in .w:nth-child(2) .ch:nth-child(1) i {
  transition-delay: 240ms;
}
.hero-word.is-in .w:nth-child(2) .ch:nth-child(2) i {
  transition-delay: 320ms;
}
.hero-word.is-in .w:nth-child(2) .ch:nth-child(3) i {
  transition-delay: 400ms;
}
.hero-word.is-in .w:nth-child(2) .ch:nth-child(4) i {
  transition-delay: 480ms;
}

.hero-entry {
  display: flex;
  justify-content: flex-start;
  gap: var(--space-md);
  flex-wrap: wrap;
  font-size: var(--step-0);
  color: var(--brand-300);
  letter-spacing: 0.08em;
  margin: 0 0 var(--space-2xs);
}
.entry-ipa {
  font-style: italic;
}
.entry-pos {
  text-transform: uppercase;
  font-size: var(--step--1);
  letter-spacing: 0.2em;
  align-self: center;
}

.hero-meaning {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--step-4);
  color: var(--accent-300);
  margin: 0 0 var(--space-lg);
}
.def-no {
  font-family: var(--font-text);
  font-style: normal;
  font-weight: 500;
  font-size: 0.5em;
  color: var(--brand-300);
  vertical-align: 0.35em;
  margin-right: 0.35em;
}

.hero-line {
  font-size: var(--step-1);
  color: var(--brand-100);
  margin: 0;
}

.hero-cue {
  position: absolute;
  left: 50%;
  bottom: var(--space-lg);
  transform: translateX(-50%);
  color: var(--brand-300);
  transition:
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-base) var(--ease-out);
}
.hero-cue:hover {
  color: var(--cream);
  transform: translateX(-50%) translateY(3px);
}

/* ---------- la semilla (story) ---------- */
.semilla {
  padding: var(--space-2xl) clamp(1rem, 5vw, 3rem);
}

.semilla-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(200px, 2fr) 3fr;
  gap: clamp(2rem, 6vw, 5rem);
}

.semilla-media {
  position: relative;
}
.seedling {
  position: sticky;
  top: calc(var(--header-h) + 5vh);
  /* shorter than the copy column on purpose: it must fit fully on a normal
     laptop viewport (so the whole germination can be watched) AND leave the
     sticky pin real slack, so the plant holds still while it draws itself */
  width: min(100%, 300px);
  margin: 0 auto;
  display: block;
}
.seedling path {
  fill: none;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 480ms var(--ease-out);
}
.p-seed,
.p-crease {
  stroke: var(--accent-500);
}
.p-stem {
  stroke: var(--brand-600);
}
.p-leaf {
  stroke: var(--brand-500);
}
.p-rib {
  stroke: var(--brand-400);
  stroke-width: 2.2;
}
/* while germinating, an undrawn or in-progress stroke stays pale sage and
   greens into its full color the moment it completes (JS toggles .undrawn) */
.seedling .undrawn {
  stroke: var(--brand-200);
}

.semilla-copy h2 {
  max-width: 16ch;
}
.semilla-copy p {
  color: var(--color-ink);
}

/* ---------- manifiesto band ----------
   NEW treatment: a type-led conviction statement (sprout + eyebrow + large
   Erode line with a hand-drawn caramel underline that draws itself on scroll,
   echoing the concept's "la semilla germina" motion signature).
   To REVERT: comment this whole block out and uncomment the
   "MANIFIESTO ORIGINAL" block below it (and swap the HTML block in index.html). */
.manifiesto {
  background: var(--brand-900);
  padding: clamp(4rem, 10vw, 7rem) clamp(1rem, 5vw, 3rem);
  text-align: center;
}
.manifiesto-inner {
  max-width: 44ch;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.manifiesto-sprout {
  width: 38px;
  height: auto;
  color: var(--accent-400);
  margin-bottom: var(--space-md);
}
.manifiesto-eyebrow {
  font-family: var(--font-text);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-300);
  margin: 0 0 var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.manifiesto-eyebrow::before,
.manifiesto-eyebrow::after {
  content: "";
  width: clamp(22px, 6vw, 46px);
  height: 1px;
  background: var(--accent-400);
  opacity: 0.65;
}
.manifiesto-line {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-5);
  line-height: 1.26;
  color: var(--cream);
  max-width: 22ch;
  margin: 0;
}
.manifiesto-em {
  position: relative;
  display: inline-block;
  font-style: italic;
  color: var(--accent-300);
  white-space: nowrap;
}
.manifiesto-underline {
  position: absolute;
  left: 0;
  bottom: -0.2em;
  width: 100%;
  height: 0.4em;
  color: var(--accent-400);
  overflow: visible;
}
/* default (no JS): the underline rests fully drawn — content is complete. */
html.js .manifiesto-underline path {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  transition: stroke-dashoffset var(--dur-slow) var(--ease-out) 220ms;
}
html.js .manifiesto-line.is-in .manifiesto-underline path {
  stroke-dashoffset: 0;
}
html.js.no-motion .manifiesto-underline path {
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .manifiesto-underline path {
    transition: none;
  }
}

/* MANIFIESTO ORIGINAL — kept for easy revert (see note above):
.manifiesto {
  background: var(--brand-800);
  padding: var(--space-3xl) clamp(1rem, 5vw, 3rem);
  text-align: center;
}
.manifiesto p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--step-4);
  line-height: var(--leading-snug);
  color: var(--cream);
  max-width: 26ch;
  margin: 0 auto;
}
*/

/* ---------- MANIFIESTO -- VIDEO TRIPTYCH (added 2026-07-06) ----------
   Additive layer on top of the type-led manifiesto rules above. When the band
   carries the .manifiesto--video modifier it widens and lines up three
   croissant-craft clips (local / organico / consciente) horizontally, with the
   conviction line kept below as a quiet caption. Reverting the HTML (swap back
   to the type-led <section>) makes every rule here inert, so this block can be
   left in place or deleted. To REMOVE the treatment entirely: delete this whole
   block and swap the HTML section back (see index.html "MANIFIESTO TYPE-LED"). */
.manifiesto--video .manifiesto-inner {
  max-width: 1300px;
}
.craft-triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.5rem, 1.4vw, 1rem);
  margin: var(--space-xl) 0 var(--space-lg);
}
.craft-clip {
  position: relative;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--brand-800);
  box-shadow: var(--shadow-md);
}
.craft-clip video {
  display: block;
  width: 100%;
  aspect-ratio: 720 / 388;
  object-fit: cover;
  background: var(--brand-800);
}
.craft-caption {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-1);
  line-height: 1.4;
  color: var(--cream);
  opacity: 0.92;
  max-width: 42ch;
  margin: 0 auto;
}
@media (max-width: 560px) {
  .craft-triptych {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    max-width: 22rem;
    margin-inline: auto;
  }
}

/* ---------- la carta ---------- */
.carta {
  padding: var(--space-3xl) clamp(1rem, 5vw, 3rem);
}

.carta-head {
  max-width: 1120px;
  margin: 0 auto var(--space-xl);
}
.carta-head h2 {
  max-width: 18ch;
}
.carta-note {
  font-size: var(--step-0);
  color: var(--brand-500);
  border-left: 3px solid var(--accent-300);
  padding-left: var(--space-sm);
}

.gallery {
  max-width: 1120px;
  margin: 0 auto var(--space-2xl);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: minmax(200px, 21vw) minmax(200px, 21vw) minmax(
      200px,
      23vw
    );
  grid-template-areas:
    "pesto pesto chila chila"
    "pesto pesto meda  meda"
    "latte tacos almz  almz";
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
  /* the lit stage: a sage-tinted panel with a warm bleed, so the carta's
     duotone-to-color bloom lands on its own backdrop (Ceremony pattern) */
  background:
    radial-gradient(
      90% 70% at 50% 26%,
      rgba(130, 91, 48, 0.08),
      transparent 72%
    ),
    var(--brand-50);
  border-radius: var(--radius-lg);
  padding: clamp(0.9rem, 2.2vw, 1.75rem);
}

.t-pesto {
  grid-area: pesto;
}
.t-chila {
  grid-area: chila;
}
.t-meda {
  grid-area: meda;
}
.t-latte {
  grid-area: latte;
}
.t-tacos {
  grid-area: tacos;
}
.t-almz {
  grid-area: almz;
}

.g-tile {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.g-tile .g-zoom {
  flex: 1;
  min-height: 0;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.g-tile .g-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.g-tile .g-zoom:hover .g-img {
  transform: scale(1.03);
}

/* the pesto source is a landscape plate with empty grass below it; in the tall
   feature tile that grass shows and pushes the plate high, so scale into the
   upper frame to sit the plated pasta centered (desktop mosaic only — on mobile
   this tile is landscape and already crops clean) */
@media (min-width: 921px) {
  .t-pesto .g-img {
    transform: scale(1.24);
    transform-origin: 50% 27%;
  }
  .t-pesto .g-zoom:hover .g-img {
    transform: scale(1.28);
    transform-origin: 50% 27%;
  }
}
.g-tile figcaption {
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--brand-500);
  padding-top: var(--space-2xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- carta actions (menu links) ---------- */
.carta-actions {
  max-width: 1120px;
  margin: var(--space-2xl) auto 0;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

/* ---------- proof: one oversized pull-quote ---------- */
.proof {
  background: var(--brand-900);
  padding: clamp(5rem, 12vw, 9rem) clamp(1rem, 5vw, 3rem);
  text-align: center;
}
.proof blockquote {
  margin: 0 auto;
  max-width: 1000px;
}
.proof p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 4.6rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin: 0 0 var(--space-lg);
}
.proof cite {
  font-style: normal;
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-300);
}

/* ---------- el espacio ---------- */
.espacio {
  padding: var(--space-3xl) clamp(1rem, 5vw, 3rem);
}

.espacio-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.espacio-copy h2 {
  max-width: 14ch;
}

.espacio-media {
  display: grid;
  gap: var(--space-md);
}
.espacio-photo {
  margin: 0;
}
.espacio-photo .g-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.espacio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.espacio-photo.big .g-zoom {
  aspect-ratio: 16 / 11;
}
.espacio-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.espacio-pair .g-zoom {
  aspect-ratio: 1 / 1;
}
.espacio-photo figcaption {
  font-size: var(--step--1);
  color: var(--brand-500);
  padding-top: var(--space-2xs);
}

/* ---------- el espacio: depth + contrast pass (added 2026-07-06) ----------
   Breaks the flat all-sage column: a deep near-ink headline with a hand-drawn
   caramel underline (revives the concept's underline motif), the owner line as a
   caramel-ruled display pull-quote, a caramel amenity accent, and the photos
   lifted off the cream with soft shadows. Reversible: delete this whole block and
   drop the espacio-em / espacio-lead / espacio-quote / espacio-note classes in
   index.html (the section then renders in its previous flat sage). */
.espacio-copy h2 {
  color: var(--brand-900);
}
.espacio-em {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.espacio-underline {
  position: absolute;
  left: 0;
  bottom: -0.14em;
  width: 100%;
  height: 0.32em;
  color: var(--color-accent);
  overflow: visible;
}
/* default (no JS): the underline rests fully drawn — content is complete. */
html.js .espacio-underline path {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  transition: stroke-dashoffset var(--dur-slow) var(--ease-out) 200ms;
}
html.js .espacio-copy h2.is-in .espacio-underline path {
  stroke-dashoffset: 0;
}
html.js.no-motion .espacio-underline path {
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .espacio-underline path {
    transition: none;
  }
}
.espacio-lead {
  font-size: var(--step-1);
  color: var(--brand-700);
}
.espacio-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-3);
  line-height: var(--leading-snug);
  color: var(--brand-800);
  max-width: 28ch;
  margin: var(--space-lg) 0;
  padding-left: var(--space-md);
  border-left: 3px solid var(--color-accent);
}
.espacio-note {
  color: var(--brand-500);
}
.espacio-note .hl {
  color: var(--color-accent);
  font-weight: 600;
}
/* lift the photos off the cream for depth */
.espacio-photo .g-zoom {
  box-shadow: var(--shadow-md);
}
.espacio-photo.big .g-zoom {
  box-shadow: var(--shadow-lg);
}
.espacio-photo figcaption {
  color: var(--brand-600);
}

/* ---------- cierre: compact closing footer, one dark block ----------
   A short "sign" (invitation kicker + headline + location line) on the left, and
   a contained "visit card" (hours, address, phone, delivery, CTA, rating) on the
   right, both on the same dark wall, continuous into the footer strip below. */
.cierre {
  background: var(--brand-900);
  padding: var(--space-2xl) clamp(1rem, 5vw, 3rem) var(--space-lg);
}
.cierre-inner {
  max-width: 1120px;
  margin: 0 auto;
}
.cierre-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

/* left — the sign */
.cierre-sign {
  min-width: 0;
}
.cierre-kicker {
  color: var(--accent-300);
  margin-bottom: var(--space-sm);
}
.cierre-head {
  color: var(--cream);
  font-size: var(--step-5);
  max-width: 15ch;
  margin: 0 0 var(--space-md);
}
.cierre-move {
  color: var(--brand-300);
  max-width: 40ch;
  margin: 0;
}

/* right — the visit card */
.cierre-panel {
  background: var(--brand-800);
  border: 1px solid rgba(251, 253, 229, 0.1);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.visita-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg) var(--space-md);
  margin: 0 0 var(--space-lg);
  text-align: left;
}
.visita-facts dt {
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-300);
  margin-bottom: var(--space-3xs);
}
.visita-facts dd {
  margin: 0;
  font-size: var(--step-0);
  color: var(--brand-100);
}
.visita-facts a {
  color: var(--brand-100);
  text-decoration: underline;
  text-decoration-color: rgba(251, 253, 229, 0.32);
}
.visita-facts a:hover {
  text-decoration-color: var(--cream);
}
.cierre-cta {
  display: block;
  width: 100%;
  text-align: center;
}
.seal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-size: var(--step--1);
  color: var(--brand-300);
  margin: var(--space-md) 0 0;
}
.seal svg {
  color: var(--accent-300);
  flex: none;
}

/* ---------- footer strip (continuous with the cierre block above) ---------- */
.site-footer {
  background: var(--brand-900);
  padding: 0 clamp(1rem, 5vw, 3rem) var(--space-lg);
  overflow: hidden;
}
.footer-row {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  justify-content: space-between;
  border-top: 1px solid rgba(251, 253, 229, 0.12);
  padding-top: var(--space-lg);
}
.footer-meta {
  margin: 0;
  font-size: var(--step--1);
  color: var(--brand-300);
}
.footer-meta a {
  color: var(--brand-200);
}
.footer-social {
  display: flex;
  gap: var(--space-sm);
}
.footer-social a {
  color: var(--brand-300);
  display: inline-flex;
  padding: 0.4rem;
  transition: color var(--dur-fast) var(--ease-out);
}
.footer-social a:hover {
  color: var(--cream);
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(39, 45, 36, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.is-open {
  display: flex;
}
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius-sm);
}
.lb-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: 0;
  color: var(--cream);
  cursor: pointer;
  padding: 0.5rem;
}

/* ---------- reveals ----------
   Hidden initial states apply ONLY under html.js, so with JS off the page
   renders complete in its resting state (progressive enhancement). */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}
html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
html.js.no-motion [data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html.js .hero-word .ch i {
    transform: none;
    transition: none;
  }
  .g-tile .g-img {
    transition: none;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .semilla-grid {
    grid-template-columns: 1fr;
  }
  .seedling {
    position: relative;
    top: 0;
    width: min(52vw, 240px);
  }
  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "pesto pesto"
      "chila meda"
      "latte tacos"
      "almz  almz";
  }
  .g-tile .g-zoom {
    aspect-ratio: 4 / 3;
    flex: none;
  }
  .t-pesto .g-zoom {
    aspect-ratio: 16 / 11;
  }
  .t-chila .g-zoom,
  .t-latte .g-zoom,
  .t-tacos .g-zoom {
    aspect-ratio: 1 / 1;
  }
  .espacio-grid {
    grid-template-columns: 1fr;
  }
  .cierre-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

@media (max-width: 560px) {
  .gallery {
    grid-template-columns: 1fr;
    grid-template-areas:
      "pesto"
      "chila"
      "meda"
      "latte"
      "tacos"
      "almz";
  }
  .visita-facts {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ================================================================
   BEAN FIELD — scattered coffee beans drift slowly behind the hero
   quote. Replaces the old review "chorus". Reversible: delete this
   whole block (and the matching HTML defs/.bean-field, GSAP tag, and
   main.js block — all marked "BEAN FIELD").
   ================================================================ */
.proof {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* radial scrim keeps the hero quote crisp over the drifting beans */
.proof::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    60% 64% at 50% 50%,
    rgba(39, 45, 36, 0.92) 0%,
    rgba(39, 45, 36, 0.55) 48%,
    rgba(39, 45, 36, 0) 100%
  );
  pointer-events: none;
}
.proof blockquote {
  position: relative;
  z-index: 2;
}
/* off-DOM defs holder: never takes layout space */
.bean-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.bean-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  /* clear the middle for the headline, let beans breathe at the edges */
  -webkit-mask-image: radial-gradient(
    120% 96% at 50% 50%,
    transparent 20%,
    rgba(0, 0, 0, 0.55) 46%,
    #000 82%
  );
  mask-image: radial-gradient(
    120% 96% at 50% 50%,
    transparent 20%,
    rgba(0, 0, 0, 0.55) 46%,
    #000 82%
  );
}
.bean {
  position: absolute;
  width: 60px;
  aspect-ratio: 90 / 120;
  color: var(--accent-300); /* warm caramel — the roasted-bean tone */
  will-change: transform;
}
/* placement: beans ring the band; the mask keeps the centre clear */
.b1 {
  left: 6%;
  top: 12%;
  width: 56px;
  rotate: -26deg;
  opacity: 0.52;
}
.b2 {
  left: 19%;
  top: 6%;
  width: 44px;
  rotate: 18deg;
  opacity: 0.4;
}
.b3 {
  left: 34%;
  top: 15%;
  width: 66px;
  rotate: -12deg;
  opacity: 0.5;
}
.b4 {
  left: 60%;
  top: 8%;
  width: 50px;
  rotate: 34deg;
  opacity: 0.46;
}
.b5 {
  left: 74%;
  top: 14%;
  width: 70px;
  rotate: -20deg;
  opacity: 0.54;
}
.b6 {
  left: 89%;
  top: 7%;
  width: 46px;
  rotate: 22deg;
  opacity: 0.42;
}
.b7 {
  left: 8%;
  top: 84%;
  width: 60px;
  rotate: 28deg;
  opacity: 0.5;
}
.b8 {
  left: 26%;
  top: 90%;
  width: 44px;
  rotate: -16deg;
  opacity: 0.4;
}
.b9 {
  left: 45%;
  top: 85%;
  width: 54px;
  rotate: 12deg;
  opacity: 0.46;
}
.b10 {
  left: 63%;
  top: 89%;
  width: 68px;
  rotate: -30deg;
  opacity: 0.54;
}
.b11 {
  left: 80%;
  top: 82%;
  width: 48px;
  rotate: 20deg;
  opacity: 0.44;
}
.b12 {
  left: 92%;
  top: 90%;
  width: 42px;
  rotate: -10deg;
  opacity: 0.38;
}
.b13 {
  left: 4%;
  top: 46%;
  width: 52px;
  rotate: -40deg;
  opacity: 0.46;
}
.b14 {
  left: 93%;
  top: 52%;
  width: 58px;
  rotate: 44deg;
  opacity: 0.48;
}
.b15 {
  left: 12%;
  top: 66%;
  width: 40px;
  rotate: 8deg;
  opacity: 0.36;
}
.b16 {
  left: 87%;
  top: 33%;
  width: 46px;
  rotate: -18deg;
  opacity: 0.42;
}
@media (max-width: 560px) {
  /* thin the field on small screens so it stays a whisper, not a clutter */
  .b3,
  .b4,
  .b6,
  .b8,
  .b11,
  .b16 {
    display: none;
  }
}
/* ===== BEAN FIELD — END ===== */
