/* ==========================================================================
   Rebu — shared public-page styles

   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/pharmacies-6658325a6415560d/fonts/archivo-var-latin.woff2?v=12bbf8439e76e3bfc16b') 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;
}

/* ==========================================================================
   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; }
}

/* 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); }

/* 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, .legal { grid-template-columns: 1fr; }
  .legal-index { position: static; }
}

/* --- 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; }

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