/* ==========================================================================
   REBU — public site, v4
   One price in transit.

   Materials: white, REBU teal, near-black, and REBU's own marker — the map
   pin inside the "b" of the official wordmark. Teal means information REBU
   holds: an observation, a confirmed value, a path something travels.

   One family, three voices, set by Archivo's width axis:
     precio  condensed and heavy, like the numerals on a shelf tag
     señal   expanded, like the signage above the aisle
     nota    normal width, for reading, labels and metadata
   ========================================================================== */

@font-face {
  font-family: 'Archivo';
  src: url('/public-site/fonts/archivo-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2212, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  --white: #ffffff;
  --paper: #f3f5f4;
  --ink: #16191a;
  --ink-2: #4a5251;
  --ink-3: #646c6a;
  --ink-4: #aab1af;   /* decoration only: never text a reader needs */
  --hair: #e3e7e6;

  --teal: #087f8c;
  --teal-deep: #056570;
  --teal-soft: #d8eff1;
  --teal-glow: rgba(8, 127, 140, 0.16);
  --teal-lit: #19a4b3;   /* REBU teal as it reads on near-black */

  /* Change signals: a price that dropped, a price that rose. */
  --down: #13803f;
  --up: #c62828;

  --f: 'Archivo', ui-sans-serif, system-ui, sans-serif;
  --w-price: 76%;
  --w-sign: 114%;
  --w-note: 90%;

  --t-sign-xl: clamp(2.3rem, 1.05rem + 4.1vw, 4.6rem);
  --t-sign: clamp(1.75rem, 1.05rem + 2.3vw, 3.1rem);
  --t-display: clamp(2.5rem, 1rem + 5vw, 5.4rem);
  --t-h3: clamp(1.08rem, 1rem + 0.3vw, 1.26rem);
  --t-lead: clamp(1.06rem, 0.98rem + 0.34vw, 1.24rem);
  --t-body: 1rem;
  --t-ui: 0.9375rem;
  --t-note: 0.8125rem;
  --t-micro: 0.72rem;

  --gutter: clamp(1.25rem, 0.5rem + 2.6vw, 3.75rem);
  --rail-h: 4.75rem;   /* the floating header and the space under it */
  --bar-h: 3.5rem;

  /* One motion vocabulary, used everywhere. */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--rail-h) + 1.5rem); }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--f); font-size: var(--t-body); line-height: 1.55;
  font-synthesis: none; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
h1, h2, h3, h4, p, figure, ol, ul, dl, dd, figcaption { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: var(--teal); color: #fff; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: fixed; top: 0.6rem; left: 0.6rem; z-index: 300;
  transform: translateY(-160%); background: var(--ink); color: #fff;
  padding: 0.7rem 1.1rem; border-radius: 6px;
  font-size: var(--t-ui); font-weight: 600; text-decoration: none;
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus-visible { transform: none; }

/* --- the three voices --------------------------------------------------- */

.sign, .display, h1, h2 {
  font-stretch: var(--w-sign); font-weight: 600;
  letter-spacing: -0.034em; line-height: 1.0; text-wrap: balance;
}
.display { font-size: var(--t-display); line-height: 0.96; letter-spacing: -0.04em; }
h1 { font-size: var(--t-sign); }
h2 { font-size: var(--t-sign); }
h3 { font-size: var(--t-h3); font-weight: 600; font-stretch: 104%; letter-spacing: -0.012em; line-height: 1.25; }

.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--ink-2); max-width: 42ch; }
.prose { line-height: 1.62; color: var(--ink-2); max-width: 62ch; }
.prose p + p { margin-top: 1em; }
.prose a, .note a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

/* Metadata: what a receipt or a shelf tag would print in small type. */
.note {
  font-size: var(--t-note); font-stretch: var(--w-note); font-weight: 500;
  color: var(--ink-3); line-height: 1.45; letter-spacing: 0.005em;
  font-variant-numeric: tabular-nums;
}
.num { font-variant-numeric: tabular-nums; }

.wrap { width: min(100%, 86rem); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 2rem + 5vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 1.6rem + 3vw, 4.25rem); }
main > .section:first-child { padding-top: calc(var(--rail-h) + clamp(1.5rem, 3vw, 3.25rem)); }

/* --- links and the primary action ---------------------------------------
   Links underline by flowing a teal line in from the left. The primary
   action carries the pin: on hover the pin drops and lands, the way you
   place one on the map. */

.tlink {
  display: inline-block; color: var(--ink); text-decoration: none; font-weight: 500;
  padding-bottom: 2px;
  background:
    linear-gradient(var(--teal), var(--teal)) 0 100% / 0% 1.5px no-repeat,
    linear-gradient(var(--hair), var(--hair)) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.45s var(--ease-out), color 0.25s;
}
.tlink:hover, .tlink:focus-visible { background-size: 100% 1.5px, 100% 1px; color: var(--teal-deep); }

.go {
  display: inline-flex; align-items: center; gap: 0.55em;
  padding: 0.72em 1.15em 0.72em 0.95em;
  background: var(--teal); color: #fff;
  font-size: var(--t-ui); font-weight: 600; font-stretch: 104%; letter-spacing: -0.005em;
  text-decoration: none; border: 0; border-radius: 10px; cursor: pointer;
  transition: background 0.25s, transform 0.25s var(--ease-out);
}
.go .mark { width: 1.2em; height: 1.2em; flex: none; margin: -0.15em 0 -0.15em -0.1em; }
.go .mark__ring { stroke: #fff; stroke-width: 2.6; }
.go .mark__dot { fill: #fff; }
.go:hover { background: var(--teal-deep); }
/* Going in closes the ring: the same gesture as confirming an observation. */
.go:hover .mark__ring, .go:focus-visible .mark__ring { stroke-dasharray: 100 0; }
.go:active { transform: scale(0.97); }
.go--quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair); }
.go--quiet .mark__ring { stroke: var(--teal); }
.go--quiet .mark__dot { fill: var(--teal); }
.go--quiet:hover { background: var(--paper); }

/* --- the observation marker ------------------------------------------------
   A dot and an open ring. The notch at the top right means observed, not
   yet confirmed; confirmed observations close their ring. */

.mark { display: block; overflow: visible; }
.mark__ring {
  fill: none; stroke: var(--teal); stroke-width: 2.4; stroke-linecap: round;
  stroke-dasharray: 76 24; transition: stroke-dasharray 0.6s var(--ease-out);
}
.mark__dot { fill: var(--teal); transform-box: fill-box; transform-origin: center; transition: transform 0.35s var(--ease-out); }
.is-confirmed .mark__ring { stroke-dasharray: 100 0; }

/* --- header -------------------------------------------------------------
   The wordmark is the official REBU mark. Its pin-dot is also the page
   marker: on the home page the marker sits exactly on it; on other pages it
   rests under the current link, and the browser carries it across when you
   change page. Hovering another link sends it over, with a little inertia. */

/* The header is an object of its own: a near-black bar floating just
   below the top edge, so whatever passes under it (prices, footage, the
   map) never reads as part of it. The wordmark turns white; its teal dot,
   the page marker and the way in stay teal. */
.site-header {
  position: fixed; inset: 0.625rem 0 auto 0; z-index: 100;
  padding-inline: clamp(0.5rem, 1.6vw, 1.5rem); pointer-events: none;
  view-transition-name: chrome;
}
.site-header > .wrap {
  display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem);
  width: min(100%, 84rem); height: var(--bar-h); margin-inline: auto;
  padding: 0 0.5rem 0 clamp(1rem, 1.6vw, 1.35rem);
  background: color-mix(in srgb, var(--ink) 94%, transparent); color: #fff;
  backdrop-filter: blur(12px) saturate(1.2);
  border-radius: 14px; pointer-events: auto;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 12px 32px -16px rgba(22, 25, 26, 0.55);
  transition: box-shadow 0.35s;
}
.site-header[data-scrolled] > .wrap { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 16px 40px -14px rgba(22, 25, 26, 0.6); }

.brand { position: relative; display: inline-flex; margin-right: auto; color: var(--ink); }
.logo { height: 1.5rem; width: auto; }
.logo__ink { fill: var(--ink); }
.logo__dot { fill: var(--teal); }
.site-header .brand { color: #fff; }
.site-header .logo { height: 1.3rem; }
.site-header .logo__ink { fill: #fff; }
.site-header .logo__dot { fill: var(--teal-lit); }
.site-header .marker, .site-header .menu-btn__dots i:first-child { background: var(--teal-lit); }

.nav { position: relative; display: flex; gap: clamp(1rem, 2vw, 1.85rem); }
.nav a {
  position: relative; padding-block: 0.4rem;
  font-size: var(--t-ui); font-weight: 500; color: rgba(255, 255, 255, 0.66); text-decoration: none;
  transition: color 0.25s;
}
.nav a:hover, .nav a[aria-current='page'] { color: #fff; }
.site-header .header-go { padding: 0.6em 1em 0.6em 0.85em; border-radius: 9px; }
.site-header :focus-visible { outline-color: var(--teal-lit); }

.marker {
  position: absolute; z-index: 2; pointer-events: none;
  width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%;
  background: var(--teal);
  view-transition-name: marker;
}
.nav .marker { left: 50%; top: calc(100% + 1px); }
/* On the home page the marker is the logo's own dot. */
.brand .marker {
  left: var(--dot-x); top: var(--dot-y);
  width: var(--dot-d); height: var(--dot-d);
  margin: calc(var(--dot-d) / -2) 0 0 calc(var(--dot-d) / -2);
}

.menu-btn {
  display: none; align-items: center; gap: 0.55rem;
  background: none; border: 0; padding: 0.45rem 0.6rem; cursor: pointer; border-radius: 9px;
  font-size: var(--t-ui); font-weight: 600; color: #fff;
}
.menu-btn:hover { background: rgba(255, 255, 255, 0.08); }
.menu-btn__dots { display: grid; grid-template-columns: repeat(2, 5px); gap: 3px; }
.menu-btn__dots i { width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.menu-btn__dots i:first-child { background: var(--teal); }

@media (max-width: 62rem) {
  .nav, .header-go { display: none; }
  .menu-btn { display: inline-flex; }
}

/* --- menu sheet ---------------------------------------------------------- */

.menu {
  border: 0; padding: 0; margin: 0 0 0 auto;
  width: 100%; max-width: 30rem; max-height: 100dvh;
  position: fixed; inset: auto 0 0 auto;
  background: var(--white); color: var(--ink);
  border-top-left-radius: 18px;
  box-shadow: 0 -18px 60px -20px rgba(22, 25, 26, 0.35);
}
.menu::backdrop { background: rgba(22, 25, 26, 0.3); }
.menu-inner { padding: 1.4rem var(--gutter) calc(1.4rem + env(safe-area-inset-bottom)); }
.menu-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 0.6rem; }
.menu-close { background: none; border: 0; cursor: pointer; font-size: var(--t-ui); font-weight: 600; color: var(--ink-3); padding: 0.4rem 0.2rem; }
.menu nav { display: grid; }
.menu-foot { margin-top: 1.2rem; display: grid; gap: 0.8rem; }
.menu-foot .go { justify-content: center; }

/* --- receipt lines -------------------------------------------------------
   REBU lives in the supermarket, so its lists are set like the bottom of a
   receipt: a label, a dotted leader, a value. Hovering runs a teal line
   along the leader. Used for the footer, the menu and contact. */

.line {
  position: relative; display: flex; align-items: baseline; gap: 0.6rem;
  padding: 0.62rem 0; color: var(--ink); text-decoration: none;
}
.line__k { font-weight: 500; white-space: nowrap; }
.line__lead {
  position: relative; flex: 1; min-width: 1.5rem; height: 3px; align-self: center; transform: translateY(0.3em);
  background: radial-gradient(circle, var(--ink-4) 0.9px, transparent 1.2px) 0 50% / 7px 3px repeat-x;
}
.line__lead::after {
  content: ''; position: absolute; inset: 1px 0 auto; height: 1.5px; background: var(--teal);
  transform: scaleX(0); transform-origin: left; transition: transform 0.55s var(--ease-out);
}
.line__v { color: var(--ink-3); font-stretch: var(--w-note); font-size: var(--t-note); font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
a.line:hover .line__lead::after, a.line:focus-visible .line__lead::after { transform: scaleX(1); }
a.line:hover .line__v, a.line:focus-visible .line__v { color: var(--teal-deep); }
.line[aria-current='page'] .line__k::before {
  content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 0.5rem; border-radius: 50%;
  background: var(--teal); vertical-align: 0.15em;
}

/* --- footer -------------------------------------------------------------- */

.site-footer { position: relative; border-top: 1px solid var(--hair); padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) 1.5rem; }
/* The thread arrives from the far side and stops above the wordmark's dot. */
.foot__thread {
  position: absolute; top: -1px; left: var(--thread-w, 100%); right: 0; height: 1.5px; background: var(--teal);
  transform: scaleX(0); transform-origin: right; transition: transform 1.4s var(--ease-io);
}
.foot__thread::after {
  content: ''; position: absolute; left: -3.5px; top: -2.75px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal); opacity: 0; transition: opacity 0.3s 1.1s;
}
.site-footer[data-in] .foot__thread { transform: scaleX(1); }
.site-footer[data-in] .foot__thread::after { opacity: 1; }
.foot__brand { --logo-h: 2.1rem; position: relative; }
.foot__ring {
  position: absolute; left: var(--dot-x); top: var(--dot-y); width: var(--dot-d); height: var(--dot-d);
  margin: calc(var(--dot-d) / -2) 0 0 calc(var(--dot-d) / -2); border-radius: 50%; border: 1.5px solid var(--teal); opacity: 0;
}
.site-footer[data-in] .foot__ring { animation: answer 1.1s var(--ease-out) 1.3s both; }
@keyframes answer { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(3.2); } }
/* A quiet footer: the wordmark where the thread ends, one line of pages,
   the channels, and the fine print. */
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem clamp(2rem, 5vw, 4.5rem); }
.foot__brand .logo { height: 2.1rem; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 0.6rem clamp(1.1rem, 2.4vw, 2.2rem); margin-left: auto; }
.foot__nav a, .foot__social a { position: relative; color: var(--ink); text-decoration: none; font-weight: 500; font-size: var(--t-ui); }
.foot__social { display: flex; gap: 1.2rem; }
.foot__social a { color: var(--ink-3); }
.foot__nav a::after, .foot__social a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px; background: var(--teal);
  transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease-out);
}
.foot__nav a:hover::after, .foot__nav a:focus-visible::after, .foot__social a:hover::after, .foot__social a:focus-visible::after { transform: scaleX(1); }
.foot__base {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; align-items: center;
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem); padding-top: 1rem; border-top: 1px dashed var(--hair);
}
.foot__base nav { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-left: auto; }
.foot__base a { color: var(--ink-3); text-decoration: none; }
.foot__base a:hover { color: var(--ink); }
@media (max-width: 56rem) {
  .foot__nav { margin-left: 0; width: 100%; }
  .foot__base nav { margin-left: 0; }
}

/* ==========================================================================
   PRIMITIVES
   ========================================================================== */

/* A price is a physical object: condensed numerals like a shelf tag, the
   peso sign raised and small the way tags print it, and each digit in its
   own column so a value can change without the object being replaced. */
.price {
  position: relative; display: inline-flex; align-items: flex-start;
  font-size: var(--price-size, 2.5rem); font-stretch: var(--pw, var(--w-price));
  font-weight: 800; letter-spacing: -0.01em; line-height: 1;
  color: var(--ink); white-space: nowrap; font-variant-numeric: proportional-nums;
}
.price__sym { font-size: 0.42em; font-weight: 700; line-height: 1; margin: 0.1em 0.05em 0 0; }
.price__digits { display: inline-flex; }
.digit { position: relative; display: block; overflow-x: visible; overflow-y: clip; height: 1em; width: var(--digit-w, 0.55em); }
.digit__g { position: absolute; inset: 0 0 auto; height: 1em; display: flex; justify-content: center; line-height: 1; will-change: transform; }
/* The stated difference sits at the price's shoulder. */
.price__delta {
  position: absolute; left: 100%; top: 0.02em; margin-left: 0.28em; opacity: 0; pointer-events: none;
  font-size: clamp(0.72rem, 0.26em, 1.35rem); font-stretch: var(--w-note); font-weight: 700; letter-spacing: 0;
  color: var(--up); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.price__delta--down { color: var(--down); }
/* For a moment after it changes, the price wears the change's colour. */
.price { transition: color 0.45s ease; }
.price.is-down, .fp[data-plane] .price.is-down { color: var(--down); transition-duration: 0.12s; }
.price.is-up, .fp[data-plane] .price.is-up { color: var(--up); transition-duration: 0.12s; }
/* The ticker's arrow: up for a rise, down for a drop. */
.price__delta::before {
  content: ''; display: inline-block; width: 0; height: 0; margin-right: 0.28em; vertical-align: 0.12em;
  border-left: 0.3em solid transparent; border-right: 0.3em solid transparent; border-bottom: 0.42em solid currentColor;
}
.price__delta--down::before { border-bottom: 0; border-top: 0.42em solid currentColor; }
.sep { display: block; width: 0.22em; line-height: 1; text-align: center; }
.price--live { color: var(--teal-deep); transition: color 0.6s; }

/* The capture frame: four corners that move independently, so a frame can
   form out of nothing, grow, tilt and detach onto something else. */
.corner {
  position: absolute; top: 0; left: 0; width: 22px; height: 22px;
  border: 3px solid var(--teal); pointer-events: none; will-change: transform;
}
.corner--tl { border-right: 0; border-bottom: 0; border-top-left-radius: 5px; }
.corner--tr { border-left: 0; border-bottom: 0; border-top-right-radius: 5px; }
.corner--bl { border-right: 0; border-top: 0; border-bottom-left-radius: 5px; }
.corner--br { border-left: 0; border-top: 0; border-bottom-right-radius: 5px; }

.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px var(--teal-glow); }
.ring { position: absolute; inset: -1px; border-radius: 50%; border: 1.5px solid var(--teal); opacity: 0; }

.chip {
  display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.25em 0.6em; border-radius: 6px;
  background: var(--white); box-shadow: inset 0 0 0 1px var(--hair);
  font-size: var(--t-micro); font-stretch: var(--w-note); font-weight: 600; color: var(--ink-2);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.fresh { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

/* ==========================================================================
   THE STAGE
   One pinned surface. Objects are created once and moved only with
   transforms; nothing in the choreography causes layout.
   ========================================================================== */

.act { position: relative; height: 1000svh; }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--white); }
.layer { position: absolute; inset: 0; pointer-events: none; }
.obj { position: absolute; top: 0; left: 0; will-change: transform; }
.layer--svg { overflow: visible; }
.layer--svg path, .layer--svg line { fill: none; vector-effect: non-scaling-stroke; }

/* The field: prices on three depth planes. Far ones are decoration and read
   as texture; the near ones are cropped by the frame, which is what gives
   the opening its depth. */
.fp { color: var(--ink); }
.fp[data-plane='far'] .price { color: var(--ink-4); }
.fp[data-plane='mid'] .price { color: var(--ink-3); }
.fp[data-plane='front'] .price { color: var(--ink-2); }
.fp[data-plane='near'] .price { color: #dfe4e2; }
.fp .note { margin-top: 0.35rem; }

/* The viewfinder: the footage, clipped to the frame, tilted about the tag. */
.vf { position: absolute; inset: 0; clip-path: inset(var(--ct, 50%) var(--cr, 50%) var(--cb, 50%) var(--cl, 50%) round var(--crad, 8px)); will-change: clip-path, transform; background: #0d100f; }
/* The film is laid out at one fixed size whatever file is loaded; the
   stage's camera maps tag coordinates on that box. */
.vf video { position: absolute; top: 0; left: 0; width: 1024px; height: 576px; max-width: none; transform-origin: 0 0; will-change: transform; }
/* The words sit clear of the falling prices: those passing behind them fade. */
.stage[data-veil] [data-objects] {
  -webkit-mask-image: radial-gradient(ellipse 36% 32% at 12% 84%, transparent 40%, #000 100%);
  mask-image: radial-gradient(ellipse 36% 32% at 12% 84%, transparent 40%, #000 100%);
}
@media (max-width: 52rem), (max-width: 64rem) and (max-aspect-ratio: 10/11) {
  .stage[data-veil] [data-objects] {
    -webkit-mask-image: linear-gradient(to bottom, #000 52%, transparent 72%);
    mask-image: linear-gradient(to bottom, #000 52%, transparent 72%);
  }
}
/* The chosen price before it is read: a cloud of dots, drawn on a canvas. */
.cloud { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; }
.no-js .cloud, .act[data-still] .cloud { display: none; }
/* Speed lines for the rush out of the field. */
.warp { height: 2px; border-radius: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ink-3) 70%, transparent)); transform-origin: right center; }
/* A price at speed leaves a trail behind it. */
.fp .price {
  --trail: 0;
  text-shadow:
    calc(var(--trail) * -0.35em) 0 0 color-mix(in srgb, currentColor 32%, transparent),
    calc(var(--trail) * -0.75em) 0 0 color-mix(in srgb, currentColor 16%, transparent),
    calc(var(--trail) * -1.2em) 0 0 color-mix(in srgb, currentColor 7%, transparent);
}
.read-plate { border-radius: 6px; background: #fff; box-shadow: 0 10px 24px -8px rgba(22, 25, 26, 0.35); opacity: 0; }
.vf__flash { position: absolute; inset: 0; background: #fff; opacity: 0; }

/* The observation: the photo it came with, and what it knows about itself. */
.thumb-shadow { position: absolute; top: 0; left: 0; border-radius: 12px; box-shadow: 0 30px 60px -30px rgba(22, 25, 26, 0.45); opacity: 0; pointer-events: none; }
.obs-meta { display: grid; gap: 0.3rem; min-width: 12rem; }
.obs-meta__product { font-weight: 600; font-stretch: 104%; }
.obs-meta__row { display: flex; align-items: center; gap: 0.5rem; }
.obs-state { display: flex; align-items: center; gap: 0.45rem; margin-top: 0.35rem; font-size: var(--t-note); font-weight: 600; color: var(--teal-deep); font-stretch: var(--w-note); }

.roll { display: inline-block; height: 1.3em; overflow-y: clip; vertical-align: -0.3em; }
.roll__strip { display: block; will-change: transform; }
.roll__strip > span { display: block; height: 1.3em; line-height: 1.3em; }
.meta-digit { display: inline-flex; }
/* A number inside running text: aligned on the text, rolling in its column. */
.inline-num { display: inline-flex; align-items: center; gap: 0.32em; }
.inline-num .price--mini { vertical-align: 0; }

/* The price scale: values set out along a line, with a dimension span
   between the cheapest and the dearest, like a measured drawing. */
.axis-line { stroke: var(--ink); stroke-width: 1.25; }
.axis-tick { stroke: var(--ink); stroke-width: 1.25; }
.span-line { stroke: var(--teal); stroke-width: 1.5; }
.trend { stroke: var(--teal); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.flow { stroke: var(--teal); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 2 6; }
.street { stroke: #f0f3f2; stroke-width: 11; stroke-linecap: round; }
.street--main { stroke: #ebefee; stroke-width: 15; }
.trend-area { fill: var(--teal); fill-opacity: 0.06; stroke: none; }

.gap-badge {
  display: inline-flex; align-items: flex-start; gap: 0.15em;
  padding: 0.3em 0.6em 0.25em; border-radius: 7px;
  background: var(--teal); color: #fff;
}
.gap-badge .price { color: #fff; }
.gap-badge__sign { font-weight: 800; font-stretch: var(--w-price); line-height: 1; }

.store { font-size: var(--t-note); font-stretch: var(--w-note); font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.axis-cap, .graph-cap { font-size: var(--t-micro); font-stretch: var(--w-note); font-weight: 500; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Graph points and people are the same element: a marker whose ring is not
   drawn yet. On the map, the ring draws around the point. */
.node { width: 40px; height: 40px; margin: 0; pointer-events: none; }
.node .mark { position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; }
.node .mark__ring { stroke-dasharray: 0 100; opacity: 0; transition: none; }
.node .mark__dot { transition: transform 0.35s var(--ease-spring), opacity 0.35s; }
.node[data-on='true'] .mark__dot { transform: scale(1.55); }
.stage[data-graph] .node[data-dim] .mark__dot { opacity: 0.35; }
.node__label { position: absolute; left: 50%; top: 50%; opacity: 0; white-space: nowrap; }
.stage[data-graph] .node { pointer-events: auto; cursor: pointer; }

/* Reading a point, drawn into the graph: the price on the value axis, the
   time on the time axis, guides to both, and the observation beside it. */
.guide { stroke: var(--teal); stroke-width: 1; stroke-dasharray: 2 4; }
.trend-hi { stroke: var(--teal); stroke-width: 3.25; stroke-linecap: round; stroke-linejoin: round; }
.trend { transition: stroke-opacity 0.3s; }
.stage[data-focus] .trend { stroke-opacity: 0.42; }
.axis-tag { padding: 0.28em 0.5em 0.24em; border-radius: 6px; background: var(--teal); opacity: 0; }
.axis-tag .price { color: #fff; }
.time-tag {
  padding: 0.15em 0.45em; border-radius: 5px; background: var(--white); opacity: 0;
  font-size: var(--t-micro); font-stretch: var(--w-note); font-weight: 700; color: var(--teal-deep); white-space: nowrap;
}
.point-note { display: flex; align-items: center; gap: 0.6rem; opacity: 0; }
.point-note__ph {
  flex: none; width: 40px; height: 51px; border-radius: 5px; overflow: hidden; background: var(--paper);
  box-shadow: 0 0 0 2px var(--white), 0 10px 18px -10px rgba(22, 25, 26, 0.55);
}
.point-note__ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.point-note__t { display: grid; gap: 0.05rem; line-height: 1.25; white-space: nowrap; }
.point-note__store { font-size: var(--t-note); font-weight: 700; font-stretch: 104%; }
.point-note__conf { font-size: var(--t-micro); font-stretch: var(--w-note); font-weight: 600; color: var(--ink-3); }

/* The data thread: our observation's marker, the same object all the way. */
.thread { width: 26px; height: 26px; pointer-events: none; opacity: 0; }
.thread .mark { width: 100%; height: 100%; filter: drop-shadow(0 0 5px rgba(8, 127, 140, 0.28)); }
.thread .ring { inset: 3px; }
/* On the graph and the map, our node's own marker is the thread. */
.stage .node--ours .mark { opacity: 0; }

/* Photos the other observations arrive with. */
.evidence {
  border-radius: 7px; overflow: hidden; background: var(--paper); opacity: 0;
  box-shadow: 0 0 0 3px var(--white), 0 22px 34px -20px rgba(22, 25, 26, 0.6);
}
.evidence picture, .evidence img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* The community: a soft map, markers with a halo, and the word "punto"
   tied to our observation by a line. */
.net { stroke: var(--teal); stroke-width: 1.25; stroke-opacity: 0.42; }
.scene-copy .hl { color: var(--teal); }
.punto-line, .leader { stroke: var(--teal); stroke-width: 1.5; fill: none; stroke-linecap: round; }
.leader { stroke-width: 1.25; }
.punto-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 5px rgba(8, 127, 140, 0.12); opacity: 0;
}
.map-block { fill: #f5f7f6; }
.halo {
  position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%;
  background: radial-gradient(circle, rgba(8, 127, 140, 0.13) 0 42%, rgba(8, 127, 140, 0) 70%); opacity: 0; pointer-events: none;
}
.node--old .mark { opacity: 0.5; }
.thread .halo { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.stage[data-current='people'] .thread .halo { opacity: 1; transition: opacity 0.8s; }
.callout {
  display: grid; gap: 0.15rem; padding: 0.7rem 0.95rem 0.72rem; border-radius: 12px; background: var(--white); opacity: 0;
  box-shadow: 0 16px 34px -16px rgba(22, 25, 26, 0.22), 0 0 0 1px rgba(22, 25, 26, 0.05); white-space: nowrap;
}
.callout__t { font-weight: 700; font-stretch: 104%; font-size: var(--t-ui); color: var(--ink); }
.callout__m { font-size: var(--t-note); font-stretch: var(--w-note); color: var(--ink-3); font-weight: 500; }
.callout__m b { font-weight: 700; color: var(--ink-2); }
.callout__m i { font-style: normal; color: var(--ink-4); margin: 0 0.35em; }

/* The real map the story ends inside. */
.app-screen {
  --shadow: 0;
  border-radius: 26px; opacity: 0;
  box-shadow: 0 44px 80px -44px rgba(22, 25, 26, calc(0.5 * var(--shadow))), 0 0 0 1px rgba(22, 25, 26, calc(0.08 * var(--shadow)));
}
.app-screen picture { display: block; width: 100%; height: 100%; border-radius: 26px; overflow: hidden; }
.app-screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* --- scene copy ----------------------------------------------------------
   Each scene places its words where the composition leaves room for them,
   rather than stamping the same block in the same corner every time. */

.layer--copy { z-index: 8; }
.scene-copy { position: absolute; opacity: 0; max-width: min(27rem, 84vw); }
.scene-copy h1 { font-size: var(--t-sign-xl); }
.scene-copy h2 { font-size: var(--t-sign); }
.scene-copy p { margin-top: 0.85rem; font-size: var(--t-ui); color: var(--ink-2); max-width: 34ch; }
.scene-copy[data-pos='bl'] { left: var(--gutter); bottom: clamp(2rem, 8svh, 4.75rem); }
.scene-copy[data-pos='tl'] { left: var(--gutter); top: calc(var(--rail-h) + clamp(1rem, 5svh, 3.25rem)); }
.scene-copy[data-pos='ml'] { left: var(--gutter); top: 50%; transform: translateY(-50%); }
.scene-copy[data-pos='bl'] h1 { max-width: 12ch; }
/* SplitText's per-character masks are sized to the line box; open them up
   so accents and descenders are not cut, without moving the layout. */
.scene-copy h1 > div > div, .scene-copy h2 > div > div { padding: 0.16em 0.05em 0.2em; margin: -0.16em -0.05em -0.2em; }
.scene-cta-wrap { margin-top: 1.5rem; }

.stage-note { position: absolute; right: var(--gutter); bottom: clamp(1rem, 3svh, 1.75rem); z-index: 9; }
.film-toggle {
  position: absolute; z-index: 9; pointer-events: auto; opacity: 0; visibility: hidden;
  right: var(--gutter); bottom: calc(clamp(1rem, 3svh, 1.75rem) + 2rem);
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: rgba(22, 25, 26, 0.72); backdrop-filter: blur(6px); color: #fff;
  border: 0; border-radius: 999px; padding: 0.42rem 0.8rem;
  font-size: var(--t-micro); font-weight: 600; cursor: pointer;
}
.film-toggle svg { width: 0.62rem; height: 0.62rem; fill: currentColor; }
.film-toggle .i-pause { display: none; }
.film-toggle[data-playing='true'] .i-play { display: none; }
.film-toggle[data-playing='true'] .i-pause { display: block; }

/* --- nodes, pins, the observation --------------------------------------- */

.node { position: absolute; }
.node .ring { inset: auto; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; }
.node__label { flex-direction: column; align-items: center; gap: 0; line-height: 1.25; padding: 0.3em 0.55em; }
.node__when { font-weight: 500; color: var(--ink-3); }
.node--ours .node__label { background: var(--teal-soft); box-shadow: none; color: var(--teal-deep); }
.node--ours .node__label .node__when { color: var(--teal-deep); }
.node--traveller .mark__dot { transform: scale(1.3); }
.node--traveller .mark { filter: drop-shadow(0 0 6px var(--teal-glow)); }

/* Where our observation's marker comes to rest in the notes. */
.obs-mark { position: relative; display: inline-block; flex: none; width: 22px; height: 22px; margin: -3px 0; }
.price--mini { display: inline-flex; font-size: 1em; font-weight: inherit; color: inherit; letter-spacing: 0; vertical-align: -0.16em; }
.price--mini .digit { overflow-y: clip; }

/* --- the scene rail -------------------------------------------------------- */

.scene-rail {
  --stop: clamp(1.35rem, 3.4svh, 2rem);
  position: absolute; z-index: 9; pointer-events: auto;
  right: clamp(0.5rem, 1.4vw, 1.4rem); top: 50%; transform: translateY(-50%);
  display: grid; grid-auto-rows: var(--stop);
}
.scene-rail__rule { position: absolute; right: 10px; top: calc(var(--stop) / 2); bottom: calc(var(--stop) / 2); width: 1px; background: var(--hair); }
.scene-rail__fill { position: absolute; inset: 0; background: var(--teal); transform-origin: top; transform: scaleY(var(--story, 0)); }
.scene-rail__marker {
  position: absolute; right: 7px; top: calc(var(--stop) / 2 - 3.5px); width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 4px var(--teal-glow);
  transform: translateY(calc(var(--at, 0) * var(--stop)));
  transition: transform 0.7s var(--ease-spring);
}
.scene-rail__stop { position: relative; width: 21px; background: none; border: 0; padding: 0; cursor: pointer; }
.scene-rail__stop::before {
  content: ''; position: absolute; right: 8px; top: 50%; width: 5px; height: 1px; background: var(--ink-4);
}
.scene-rail__label {
  position: absolute; right: 28px; top: 50%; transform: translate(6px, -50%);
  font-size: var(--t-micro); font-stretch: var(--w-note); font-weight: 600; color: var(--ink-3);
  white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.4s var(--ease-out);
}
.scene-rail__stop[aria-current] .scene-rail__label, .scene-rail__stop:hover .scene-rail__label,
.scene-rail__stop:focus-visible .scene-rail__label { opacity: 1; transform: translate(0, -50%); }
.scene-rail__stop[aria-current] .scene-rail__label { color: var(--teal-deep); }

/* --- still: reduced motion and no script ---------------------------------
   Not the choreography frozen mid-move: one composed column where the
   footage is shown once and every beat is an ordinary paragraph. */

.no-js .act, .act[data-still] { height: auto; }
.no-js .act .stage, .act[data-still] .stage {
  position: static; height: auto; overflow: visible; padding: calc(var(--rail-h) + 2rem) var(--gutter) 3rem;
  display: flex; flex-direction: column;
}
.no-js .act .layer:not(.layer--copy), .act[data-still] .layer:not(.layer--copy),
.no-js .act .scene-rail, .act[data-still] .scene-rail { display: none; }
.no-js .act .vf, .act[data-still] .vf {
  position: relative; inset: auto; clip-path: none; transform: none;
  order: 0; width: min(100%, 60rem); aspect-ratio: 16 / 9; margin: 0 auto 1rem; border-radius: 14px; overflow: hidden;
}
.no-js .act .vf video, .act[data-still] .vf video { position: static; width: 100%; height: 100%; object-fit: cover; transform: none !important; }
.no-js .act .layer--copy, .act[data-still] .layer--copy { order: 2; position: static; display: grid; gap: 3rem; width: min(100%, 60rem); margin: 2rem auto 0; }
.no-js .act .scene-copy, .act[data-still] .scene-copy { position: static; opacity: 1; transform: none; max-width: 40rem; }
.act[data-still] .film-toggle { order: 1; position: static; opacity: 1; visibility: visible; margin: 0 auto; display: flex; width: fit-content; }
.no-js .film-toggle { display: none; }
.no-js .act .stage-note, .act[data-still] .stage-note { order: 3; position: static; text-align: center; margin-top: 2rem; }

/* ==========================================================================
   SIDE PAGES
   The same materials at reading pace: heads in the sign voice that end on
   REBU's teal dot, receipt lines, pins and brackets, and the price voice
   wherever a numeral is the point.
   ========================================================================== */

.page-head .display { max-width: 15ch; }
.page-head .lead { margin-top: clamp(1.1rem, 2vw, 1.6rem); }
.stop { color: var(--teal); }
.head-note { margin-top: 1.5rem; }
.section--flush { padding-block: 0; }
@media (prefers-reduced-motion: no-preference) {
  .page-head .wrap > * { animation: rise 0.9s var(--ease-out) both; }
  .page-head .wrap > :nth-child(2) { animation-delay: 0.07s; }
  .page-head .wrap > :nth-child(n + 3) { animation-delay: 0.14s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* Editorial rows: title beside text, hairlines between. */
.rows { display: grid; }
.row {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0.9rem clamp(2rem, 6vw, 6rem);
  padding-block: clamp(1.6rem, 3vw, 2.6rem); border-top: 1px solid var(--hair);
}
.row:last-child { border-bottom: 1px solid var(--hair); }
.row__t { font-size: clamp(1.35rem, 1rem + 1.2vw, 2rem); letter-spacing: -0.028em; line-height: 1.08; max-width: 18ch; }
.row__b { font-size: var(--t-lead); max-width: 52ch; }
.rows-next { margin-top: 2rem; }

/* Información: the comparison. REBU's column is run down with a highlighter;
   each answer is a mark that fills, half fills, or stays open. */
.matrix-head { display: grid; gap: 0.7rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.matrix-head h2 { max-width: 16ch; }
.matrix { position: relative; z-index: 0; width: 100%; border-collapse: collapse; }
.matrix th, .matrix td { position: relative; padding: 1.2rem 1rem; text-align: left; vertical-align: top; border-top: 1px solid var(--hair); }
.matrix thead th { border-top: 0; padding-block: 0 0.9rem; font-size: var(--t-note); font-stretch: var(--w-note); font-weight: 600; color: var(--ink-3); }
.matrix thead th.m-rebu { color: var(--teal-deep); }
.matrix tbody th { width: 40%; padding-left: 0; font-weight: 400; }
.matrix__t { display: block; font-weight: 600; font-stretch: 104%; font-size: var(--t-h3); letter-spacing: -0.01em; }
.matrix__d { display: block; margin-top: 0.25rem; font-size: var(--t-note); font-stretch: var(--w-note); color: var(--ink-3); }
.matrix .m-rebu::before {
  content: ''; position: absolute; inset: 0 0.3rem; z-index: -1; background: var(--teal-soft);
  transform-origin: top; transition: transform 0.9s var(--ease-io) calc(var(--r, -1) * 90ms + 90ms);
}
.matrix thead .m-rebu::before { border-radius: 8px 8px 0 0; }
.matrix tbody tr:last-child .m-rebu::before { border-radius: 0 0 8px 8px; }
.v { display: inline-flex; align-items: center; gap: 0.55rem; font-size: var(--t-note); font-stretch: var(--w-note); font-weight: 600; color: var(--ink-2); }
.m-rebu .v { color: var(--teal-deep); }
.v__m { position: relative; flex: none; width: 15px; height: 15px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-4); overflow: hidden; }
.v__m::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--teal);
  transition: transform 0.6s var(--ease-spring) calc(var(--r, 0) * 110ms + var(--c, 0) * 80ms + 260ms);
}
.v--yes .v__m { box-shadow: inset 0 0 0 1.5px var(--teal); }
.v--some .v__m { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.v--some .v__m::after { background: var(--ink-3); border-radius: 0; clip-path: inset(0 50% 0 0); transform-origin: left; }
.v--no .v__m::after { display: none; }
.matrix[data-arm]:not([data-in]) .m-rebu::before { transform: scaleY(0); }
.matrix[data-arm]:not([data-in]) .v__m::after { transform: scale(0); }
.matrix tbody tr { transition: background 0.3s; }
.matrix tbody tr:hover .matrix__t { color: var(--teal-deep); }
@media (max-width: 40rem) {
  .matrix thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .matrix tbody, .matrix tr, .matrix th, .matrix td { display: block; }
  .matrix tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: 1.1rem; border-top: 1px solid var(--hair); }
  .matrix tbody th { grid-column: 1 / -1; width: auto; border: 0; padding: 0 0 0.9rem; }
  .matrix td { border: 0; padding: 0.55rem 0.6rem; }
  .matrix td::after { content: attr(data-src); display: block; margin-top: 0.3rem; font-size: var(--t-micro); font-stretch: var(--w-note); color: var(--ink-3); }
  .matrix .m-rebu::before { inset: 0; border-radius: 8px !important; }
}

/* Cómo funciona: the board beside the words. */
.steps-sec { padding-bottom: clamp(3rem, 6vw, 6rem); }
.steps { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(2rem, 6vw, 6.5rem); align-items: start; }
.steps__aside { position: sticky; top: calc(var(--rail-h) + 1.1rem); display: grid; gap: 0.85rem; }
.board {
  position: relative; height: min(calc(100svh - var(--rail-h) - 6.5rem), 46rem);
  border-radius: 18px; overflow: hidden; background: var(--paper); isolation: isolate;
}
.board .vf { z-index: 1; }
.board .thumb-shadow { z-index: 0; }
.board .layer--svg { z-index: 2; }
.board [data-objs] { z-index: 3; }
.board-meta { min-width: 0; }
.board-chip { transition: background 0.45s, box-shadow 0.45s; }
.board-chip .price { color: var(--ink); transition: color 0.45s; }
.board-chip--best { background: var(--teal); box-shadow: 0 8px 18px -8px rgba(8, 127, 140, 0.6); }
.board-chip--best .price { color: #fff; }
.board-state {
  padding: 0.25em 0.6em; border-radius: 6px; background: var(--white); box-shadow: inset 0 0 0 1px var(--hair);
  font-size: var(--t-note); font-stretch: var(--w-note); font-weight: 600; color: var(--teal-deep); white-space: nowrap;
}
.board-courier { width: 11px; height: 11px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px var(--teal-glow); }
.board__foot { display: flex; align-items: center; gap: 0.6rem 1rem; flex-wrap: wrap; min-height: 2.25rem; }
.board__foot .note { margin-left: auto; }
.board__marks { display: flex; gap: 0.25rem; }
.board__marks button {
  width: 2.1rem; height: 2.1rem; border: 0; border-radius: 50%; background: none; cursor: pointer;
  font-size: 1rem; font-weight: 800; font-stretch: var(--w-price); color: var(--ink-3);
  transition: color 0.3s, background 0.35s var(--ease-out);
}
.board__marks button:hover { color: var(--ink); background: var(--paper); }
.board__marks button[aria-current] { background: var(--teal); color: #fff; }
.film-toggle--board { position: static; background: var(--ink); }
[data-steps][data-live] .film-toggle--board { opacity: 1; visibility: visible; }
.step { min-height: 76svh; display: flex; flex-direction: column; justify-content: center; padding-block: 2rem; }
.step:first-child { min-height: calc(100svh - var(--rail-h) - 6.5rem); justify-content: flex-start; padding-top: 0.5rem; }
.step__n {
  font-size: clamp(3.4rem, 2rem + 4vw, 5.8rem); font-weight: 800; font-stretch: var(--w-price);
  line-height: 0.86; letter-spacing: -0.02em; color: var(--hair); transition: color 0.5s;
}
.step h2 { margin-top: 1rem; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.5rem); max-width: 14ch; transition: color 0.4s; }
.step .prose { margin-top: 0.9rem; font-size: var(--t-lead); transition: color 0.4s; }
.step__go { margin-top: 1.6rem; }
[data-steps][data-armed] .step[data-on] .step__n { color: var(--teal); }
[data-steps][data-armed] .step:not([data-on]) h2,
[data-steps][data-armed] .step:not([data-on]) .prose { color: var(--ink-3); }
.page-close { display: grid; gap: 1rem; max-width: 46rem; }
.page-close h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); }
.no-js .board .vf, [data-steps][data-still] .board .vf { clip-path: none; }
.no-js .board video, [data-steps][data-still] .board video { width: 100%; height: 100%; object-fit: cover; transform: none !important; }
@media (max-width: 52rem) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps__aside {
    top: var(--rail-h); z-index: 5; margin-inline: calc(var(--gutter) * -1);
    padding: 0.25rem var(--gutter) 0.6rem; background: var(--white);
  }
  .board { height: 44svh; border-radius: 14px; }
  .board__marks { display: none; }
  .board__foot { min-height: 0; }
  .step, .step:first-child { min-height: 58svh; justify-content: flex-start; padding-top: 1.75rem; }
}

/* Sobre Rebu: a drawn neighbourhood, each pin someone who noticed. */
.barrio { position: relative; height: clamp(12rem, 24vw, 21rem); border-radius: 18px; background: var(--paper); overflow: hidden; }
.barrio__streets { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.barrio__streets path { fill: none; stroke: #dfe4e2; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.barrio__streets .barrio__main { stroke: #d2d9d7; stroke-width: 5; }
.bmark {
  --lift: 0;
  position: absolute; left: calc(var(--x) * 100%); top: calc(var(--y) * 100% + 10px);
  width: calc(26px * var(--k)); height: calc(26px * var(--k)); margin: calc(-13px * var(--k)) 0 0 calc(-13px * var(--k));
  transform: translateY(calc(var(--lift) * -6px)) scale(calc(1 + var(--lift) * 0.28));
  transition: transform 0.45s var(--ease-spring), opacity 0.3s;
}
.bmark .mark { width: 100%; height: 100%; }
.barrio[data-arm] .bmark { opacity: 0; transform: scale(0.2); }
.barrio[data-in] .bmark { opacity: 1; transform: translateY(calc(var(--lift) * -6px)) scale(calc(1 + var(--lift) * 0.28)); }
.barrio[data-in]:not([data-settled]) .bmark { transition: transform 0.75s var(--ease-spring) calc(var(--i) * 65ms), opacity 0.3s calc(var(--i) * 65ms); }

/* Contacto: a receipt at the scale of a sign. */
.lines { display: grid; margin-top: clamp(2rem, 4vw, 3.25rem); max-width: 58rem; }
.lines--lg .line { padding-block: clamp(0.9rem, 1.6vw, 1.35rem); border-bottom: 1px solid var(--hair); gap: 1rem; }
.lines--lg .line:first-child { border-top: 1px solid var(--hair); }
.lines--lg .line__k { font-size: clamp(1.45rem, 1rem + 1.7vw, 2.5rem); font-stretch: var(--w-sign); font-weight: 600; letter-spacing: -0.032em; line-height: 1.1; }
.lines--lg .line__v { font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.15rem); color: var(--ink-2); }
.lines--lg a.line:hover .line__k { color: var(--teal-deep); }

/* Ayuda: what is pending says so, in the observation's own language — an
   open ring is something not yet confirmed. */
.pending {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem 1.25rem; align-items: center;
  margin-top: clamp(2rem, 4vw, 3rem); padding-block: 1.3rem; max-width: 62rem;
  border-block: 1px dashed var(--ink-4);
}
.pending__m { position: relative; width: 26px; height: 26px; }
.pending__m .mark { width: 100%; height: 100%; }
.pending__m .ring { inset: 4px; }
@media (prefers-reduced-motion: no-preference) { .pending__m .ring { animation: wait 2.6s var(--ease-out) infinite 1s; } }
@keyframes wait { 0% { opacity: 0.8; transform: scale(1); } 60%, 100% { opacity: 0; transform: scale(2.6); } }
.pending__t { font-size: var(--t-h3); font-stretch: 104%; letter-spacing: -0.012em; line-height: 1.3; }
.pending__s {
  display: inline-block; margin-left: 0.35rem; padding: 0.15em 0.5em; border-radius: 5px; vertical-align: 0.12em;
  background: var(--teal-soft); color: var(--teal-deep);
  font-size: var(--t-micro); font-weight: 600; font-stretch: var(--w-note); letter-spacing: 0.02em;
}
.pending .note { margin-top: 0.3rem; }
.faq { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.faq__group { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 1rem clamp(2rem, 6vw, 6rem); }
.faq__h { position: sticky; top: calc(var(--rail-h) + 1.5rem); align-self: start; font-size: clamp(1.3rem, 1rem + 0.9vw, 1.75rem); letter-spacing: -0.026em; }
.qa { border-top: 1px solid var(--hair); }
.qa:last-child { border-bottom: 1px solid var(--hair); }
.qa summary {
  display: flex; align-items: center; gap: 1rem; padding-block: 1.15rem; cursor: pointer; list-style: none;
  font-size: var(--t-h3); font-weight: 600; font-stretch: 104%; letter-spacing: -0.01em; line-height: 1.3;
}
.qa summary::-webkit-details-marker { display: none; }
.qa__q { flex: 1; transition: color 0.25s; }
.qa summary:hover .qa__q { color: var(--teal-deep); }
.qa__x { position: relative; flex: none; width: 14px; height: 14px; }
.qa__x::before, .qa__x::after {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 1px;
  background: var(--ink); transition: transform 0.45s var(--ease-spring), background 0.25s;
}
.qa__x::after { transform: rotate(90deg); }
.qa[open] .qa__x::after { transform: rotate(0deg); }
.qa[open] .qa__x::before, .qa[open] .qa__x::after { background: var(--teal); }
.qa__a { padding: 0 2.5rem 1.4rem 0; }
.qa__more { margin-top: 0.8rem; }
@supports (interpolate-size: allow-keywords) {
  .qa { interpolate-size: allow-keywords; }
  .qa::details-content { height: 0; overflow: clip; transition: height 0.45s var(--ease-out), content-visibility 0.45s allow-discrete; }
  .qa[open]::details-content { height: auto; }
}

/* Entra: two ways in, set as receipt lines at the scale of a sign. */
.doors { display: grid; margin-top: clamp(2rem, 4vw, 3.25rem); max-width: 62rem; }
.door {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(0.9rem, 2vw, 1.5rem);
  padding-block: clamp(1.2rem, 2.4vw, 1.9rem); border-bottom: 1px solid var(--hair); color: var(--ink); text-decoration: none;
}
.door:first-child { border-top: 1px solid var(--hair); }
.door__mark { grid-row: span 2; width: clamp(1.5rem, 1rem + 1.1vw, 2.2rem); padding-top: 0.25rem; }
.door__mark .mark { width: 100%; height: auto; }
.door__row { display: flex; align-items: baseline; gap: 1rem; }
.door__t { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.9rem); letter-spacing: -0.034em; transition: color 0.25s; }
.door__lead {
  position: relative; flex: 1; min-width: 1.5rem; height: 3px; align-self: center; transform: translateY(0.3em);
  background: radial-gradient(circle, var(--ink-4) 1px, transparent 1.3px) 0 50% / 8px 3px repeat-x;
}
.door__lead::after {
  content: ''; position: absolute; inset: 0.5px 0 auto; height: 2px; background: var(--teal);
  transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease-out);
}
.door__go { flex: none; font-size: var(--t-ui); font-weight: 600; color: var(--teal-deep); white-space: nowrap; }
.door--primary .door__go { padding: 0.5em 0.95em; border-radius: 9px; background: var(--teal); color: #fff; transition: background 0.25s; }
.door__d { grid-column: 2; margin-top: 0.45rem; max-width: 46ch; color: var(--ink-2); }
.door:hover .door__lead::after, .door:focus-visible .door__lead::after { transform: scaleX(1); }
.door:hover .door__t { color: var(--teal-deep); }
.door--primary:hover .door__go { background: var(--teal-deep); }
.door:hover .mark__ring, .door:focus-visible .mark__ring { stroke-dasharray: 100 0; }

/* Entra: the choices beside the product they lead into. */
.entry__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.entry__main .doors { max-width: none; }
.entry__phone { margin: 0; justify-self: center; width: min(100%, 21rem); }
.entry__phone img { display: block; width: 100%; height: auto; filter: drop-shadow(0 34px 38px rgba(22, 25, 26, 0.16)); }
@media (max-width: 52rem) {
  .entry__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .entry__phone { width: min(80%, 20rem); }
}

/* Legal: typographic. Numbered in the price voice; the index's teal dot
   follows the section being read. */
.legal { display: grid; grid-template-columns: minmax(0, 3.3fr) minmax(0, 8.7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.legal-index { position: sticky; top: calc(var(--rail-h) + 1.5rem); display: grid; gap: 1rem; justify-items: start; }
.legal-index nav { position: relative; display: grid; border-left: 1px solid var(--hair); }
.legal-index nav a {
  display: grid; grid-template-columns: 1.9rem minmax(0, 1fr); padding: 0.42rem 0 0.42rem 1rem;
  font-size: var(--t-note); line-height: 1.35; color: var(--ink-3); text-decoration: none; transition: color 0.25s;
}
.legal-index nav a:hover, .legal-index nav a[aria-current] { color: var(--ink); }
.legal-dot {
  position: absolute; left: -4px; top: 0; width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 4px var(--teal-glow); transition: transform 0.6s var(--ease-spring);
}
.legal-n { font-weight: 800; font-stretch: var(--w-price); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.legal-doc { max-width: 46rem; }
.legal-doc h1 { font-size: clamp(2.2rem, 1.2rem + 3.4vw, 4rem); }
.legal-date { margin-top: 1rem; }
.legal-intro { margin-top: 1.6rem; font-size: var(--t-lead); line-height: 1.55; color: var(--ink-2); }
.legal-doc section { margin-top: clamp(2.4rem, 4vw, 3.4rem); padding-top: 1.4rem; border-top: 1px solid var(--hair); }
.legal-doc h2 { display: flex; align-items: baseline; gap: 0.85rem; font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); letter-spacing: -0.025em; line-height: 1.15; }
.legal-doc h2 .legal-n { color: var(--teal); }
.legal-doc section p { margin-top: 0.9rem; max-width: 64ch; line-height: 1.68; color: var(--ink-2); white-space: pre-line; }
.legal-related { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px dashed var(--ink-4); }
.read { max-width: 46rem; }
.read h2 { margin-top: clamp(2.2rem, 4vw, 3rem); font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); letter-spacing: -0.025em; }
.read .prose { margin-top: 0.8rem; }
.read-go { margin-top: 1.4rem; }

@media (max-width: 56rem) {
  .row, .faq__group, .legal { grid-template-columns: 1fr; }
  .faq__h, .legal-index { position: static; }
  .pending { grid-template-columns: auto minmax(0, 1fr); }
  .pending .go { grid-column: 1 / -1; justify-self: start; }
  .door__lead { display: none; }
  .door__row { justify-content: space-between; }
}

/* --- between pages ---------------------------------------------------------
   The next page grows out of the point you touched, behind a thin teal ring:
   an observation spreading. The header and the page marker are carried
   across, so the marker glides from the old page's link to the new one's. */

@view-transition { navigation: auto; }
@property --vt-p { syntax: '<number>'; inherits: false; initial-value: 0; }
@keyframes vt-spread { from { --vt-p: 0; } to { --vt-p: 1; } }
html[data-vt='spread'] { --vt-band: clamp(10px, 1.1vmax, 18px); }
html[data-vt='spread']::view-transition-group(root) { background: var(--teal); animation-duration: 0.72s; }
html[data-vt='spread']::view-transition-old(root),
html[data-vt='spread']::view-transition-new(root) { mix-blend-mode: normal; animation: vt-spread 0.72s cubic-bezier(0.7, 0, 0.22, 1) both; }
html[data-vt='spread']::view-transition-old(root) {
  -webkit-mask-image: radial-gradient(circle at var(--vt-x) var(--vt-y), transparent calc(var(--vt-p) * var(--vt-r)), #000 calc(var(--vt-p) * var(--vt-r) + 1px));
  mask-image: radial-gradient(circle at var(--vt-x) var(--vt-y), transparent calc(var(--vt-p) * var(--vt-r)), #000 calc(var(--vt-p) * var(--vt-r) + 1px));
}
html[data-vt='spread']::view-transition-new(root) {
  clip-path: circle(max(0px, calc(var(--vt-p) * var(--vt-r) - var(--vt-band))) at var(--vt-x) var(--vt-y));
}
::view-transition-old(root) { animation: page-out 0.24s var(--ease-io) both; }
::view-transition-new(root) { animation: page-in 0.42s var(--ease-out) both; }
@keyframes page-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(14px); } }
::view-transition-group(marker) { animation-duration: 0.62s; animation-timing-function: var(--ease-spring); }
::view-transition-group(chrome) { animation-duration: 0.3s; }

/* --- responsive stage ----------------------------------------------------- */

@media (max-width: 52rem), (max-width: 64rem) and (max-aspect-ratio: 10/11) {
  .scene-copy[data-pos] { left: var(--gutter); right: var(--gutter); top: auto; bottom: clamp(1.25rem, 5svh, 2.5rem); transform: none; }
  .stage-note { bottom: auto; top: calc(var(--rail-h) + 0.1rem); }
  .film-toggle { bottom: auto; top: calc(var(--rail-h) + 1.9rem); }
  .node__label { font-size: 0.625rem; }
  .obs-meta { min-width: 0; white-space: nowrap; }
  .scene-rail { right: 0.2rem; }
  .scene-rail__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  @view-transition { navigation: none; }
}
