/* =====================================================================
   Xurrería Laietana · home page, test build "home-v1"
   Loaded after style.css, on the home pages only (/ca/ /es/ /en/).
   Order: hero photo, chocolate pour into the chocolate section (a little
   of the story), menu, porra spiral, map, footer with the shopfront.
   Cream is the main background; chocolate is strongly present (the spiral
   band, the pour and the chocolate section, the footer); the logo's
   burgundy only for small accents. Georgia only.

   The moving pieces have their own files and load only near the screen
   (assets/js/home.js):
     porra spiral   assets/porra-spiral/
     chocolate pour assets/js/choc-pour.js
     map            assets/map/
   The shopfront drawing is two lazy images: assets/img/facade/
   Their stylesheets (from the labs) are copied in at the end of this file, so the
   page loads one stylesheet besides style.css.
   Without JavaScript, or with "reduce motion" on, every section is still
   complete and nothing moves.
   ===================================================================== */
.home {
  --choc: #1e1410;                        /* chocolate */
  --cream: #efe0cd;                       /* the logo's cream: the main background */
  --burgundy: #a4343a;                    /* the logo's burgundy: small accents only */
  --choc-soft: #5a463c;                   /* secondary text on cream (chocolate, lighter) */
  --cream-soft: #c9b8a3;                  /* secondary text on chocolate (cream, darker) */

  /* the older names in style.css, pointed at these colours */
  --brown: var(--choc);
  --paper: var(--cream);
  --crema: var(--cream);
  --red: var(--choc-soft);
  --brown-soft: var(--choc-soft);
  --red-tint: var(--cream-soft);
  --crema-soft: var(--cream-soft);
  --rule: rgba(30, 20, 16, .2);
  --rule-light: rgba(239, 224, 205, .22);
  background: var(--cream);
  color: var(--choc);
}
.home .label { color: var(--choc-soft); }
.home .label--hero { color: var(--cream); }   /* over the photo: cream (".home .label" would make it chocolate) */
.home .on-choc .label { color: var(--cream-soft); }
.home .on-choc :focus-visible, .home .site-footer :focus-visible { outline-color: var(--cream); }
.home .on-choc .cta, .home .on-choc .cta:hover { color: var(--cream); text-decoration-color: var(--cream-soft); }

/* Text still to be written by R/MJ: shown on purpose, so nobody mistakes it for final copy */
.draft { font-style: italic; color: var(--burgundy); }
.on-choc .draft, .choc-pour .draft, .site-footer .draft { color: var(--cream-soft); }

/* ---------- Film grain over the whole page (static, very faint; computers only) ---------- */
.home::after {
  content: ""; position: fixed; inset: 0; z-index: 20; pointer-events: none;
  background: url(../img/grain.svg) repeat; background-size: 220px 220px; opacity: .05;
}
/* Not on phones and tablets: a fixed full-screen layer drawn from an SVG filter, over everything,
   which iOS Safari composites again on every frame of a scroll; at 5% it is hardly seen on a small
   screen. ?nofix brings it back there, to compare */
@media (hover: none) and (pointer: coarse) {
  html:not(.nofix) .home::after { content: none; }
}
.no-grain .home::after { content: none; }   /* ?nograin (diagnostics) */

/* ?debug=1: the diagnostics box (assets/js/home.js, part 5) */
.dbg {
  position: fixed; left: 6px; top: 6px; z-index: 30; pointer-events: none;
  padding: 6px 8px; border-radius: 4px; background: rgba(0, 0, 0, .78); color: #fff;
  font: 11px/1.35 ui-monospace, Menlo, Consolas, monospace; white-space: pre;
}

/* ---------- Text blocks fade in as they reach the screen ---------- */
.motion .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease-out, transform .7s ease-out; }
.motion .reveal.in { opacity: 1; transform: none; }

/* ---------- Header: one row on phones too (no second line for the menu) ---------- */
.home .site-header .lang a { color: var(--cream); opacity: .8; }
.home .site-header .lang a[aria-current="page"] { opacity: 1; }
@media (max-width: 720px) {
  .home .header-row { flex-wrap: nowrap; gap: 0 .875rem; min-height: 4.25rem; padding-block: 0; }
  .home .mark { flex: none; }
  .home .mark img { width: 20px; }
  .home .nav { order: 2; flex: 1 1 auto; flex-basis: auto; margin: 0 0 0 auto; padding: 0; border: 0; }
  .home .nav ul { justify-content: flex-end; gap: .75rem; }
  .home .site-header .lang { order: 3; margin-left: 0; padding-left: .75rem; border-left: 1px solid var(--rule-light); }
  .home .site-header .lang ul { gap: .125rem; }
  .home .site-header .lang a { min-width: 1.75rem; text-align: center; }
  .home .nav a, .home .site-header .lang a { font-size: .6875rem; letter-spacing: .07em; white-space: nowrap; display: inline-block; padding-block: 1rem; }
}
/* narrower phones (under 380 px): the menu words get a touch smaller rather than wrapping */
@media (max-width: 379px) {
  .home .nav ul { gap: .5rem; }
  .home .nav a, .home .site-header .lang a { font-size: .625rem; letter-spacing: .04em; }
}
@media (max-width: 339px) {
  .home .header-row { gap: 0 .5rem; }
  .home .nav ul { gap: .375rem; }
  .home .site-header .lang { padding-left: .5rem; }
  .home .site-header .lang a { min-width: 1.5rem; }
}
/* Phone header legibility (2 Dec; everything but the desktop layout): over the bright street at the top of the photo,
   the deeper shade behind the bar (in the portrait hero above) does most of the work; the menu and languages keep
   their own light weight, with only a soft, wide glow that never reaches the letter edges; the other languages a
   little brighter (the current one keeps its underline); the symbol a touch bigger (24 px wide, 22 under 340 px),
   with a faint shadow so its thin lines hold against the street. (A first try, 48efc27: a tight halo and a 28 px
   symbol, read too bold and too big.) */
@media not all and (orientation: landscape) and (min-width: 48em) {
  .home .site-header .nav a, .home .site-header .lang a { text-shadow: 0 0 8px rgba(20,12,10,.45), 0 0 14px rgba(20,12,10,.3); }
  .home .site-header .lang a { opacity: .9; }
  .home .site-header .lang a[aria-current="page"] { opacity: 1; }
  .home .mark img { width: 24px; filter: drop-shadow(0 0 3px rgba(20,12,10,.4)); }
}
@media (max-width: 339px) { .home .mark img { width: 22px; } }   /* 320 px phones: the Spanish menu just fits beside it */

/* ---------- Hero: the photo only (no sugar, no drift) ----------
   Richard's black and white shoot, _DSC3629 (the two churreros at the press): a tall crop on
   portrait screens, a wide one on landscape screens (<picture> in the page). Where the screen is
   wider or taller than the crop, these positions keep the subject in view. */
.home .hero { background: var(--choc); }
.home .hero-photo { object-fit: cover; object-position: 50% 45%; }
/* "Fets davant teu.": half as big again as the site's tagline (30 Nov), still under the name */
.home .hero .tagline { font-size: calc(var(--s2) * 1.5); line-height: 1.15; }
@media (orientation: landscape) {
  .home .hero-photo { object-position: 50% 30%; }   /* both churreros, the cap kept in on wide screens */
}
/* Portrait screens (Augusto, 28 Nov: "focus more on the left side, so we can actually see the churros and the
   fryer"): a square crop of _DSC3629 as a band at the top of the hero (hero-2-p: centred 48% across, from 2% down;
   the fryer area gently lifted; the passer-by's face blurred as before): the fryer with the dough falling into the
   oil and the churros, both men at the press; the young churrero's face whole, his ear at the edge. For comparison
   ?hero=1 (centred 44%: more fryer, his face cut at the cheek) and ?hero=3 (centred 52%: his ear in, less fryer).
   The band ends on a clean edge (a fade only in its last 6%), and the hero's dark shade is kept to the top, under
   the header, so nothing darkens the fryer. The text starts below the band, never over it; on short phones the
   hero grows; tablets keep the band under 62% of the screen's height. */
@media (orientation: portrait) {
  .home .hero { --band: min(100vw, 62svh); }
  .home .hero-photo { bottom: auto; height: var(--band); object-position: 50% 30%;
    -webkit-mask-image: linear-gradient(180deg, #000 94%, transparent 100%); mask-image: linear-gradient(180deg, #000 94%, transparent 100%); }
  .home .hero-content { padding-top: calc(var(--band) + 1.5rem); }
  /* .hero for weight: the general shade below would win. Deeper behind the header bar (2 Dec, phone header
     legibility), then gone well before the faces, in soft steps so there is no band */
  .home .hero .hero-shade { background: linear-gradient(180deg, rgba(30, 20, 16, .8) 0, rgba(30, 20, 16, .66) 2.75rem, rgba(30, 20, 16, .32) 4.5rem, rgba(30, 20, 16, .1) 6rem, rgba(30, 20, 16, 0) 7.5rem); }
}
/* Landscape screens from 768 px: the older churrero's hands (on the lever and with the scissors)
   start 32.6% across the wide photo, from about half-way down (and, with the hero capped at 56rem,
   reach 88% down on 1920 px screens). So the text is a column on the left that ends 1.5rem before
   them, over the press and the oil, with the title sized to the column. Where the screen is less wide
   than 16:10 the crop trims both sides and the hands move left (29% across at 4:3):
     hands' left edge = 50vw - 0.174 x (the photo's drawn width), drawn width = max(100vw, hero height x 1.6)
   The hero and its header line up with the screen edge rather than the centred page column, so the
   column keeps its room on wide screens. The street name stays in "Com arribar" and the footer. */
@media (orientation: landscape) and (min-width: 48em) {
  .home .site-header .wrap, .home .hero .wrap { max-width: none; }
  .home .hero {   /* on the hero, so its shade (the scrim below) knows the column too */
    --col: clamp(13rem, calc(50vw - .174 * max(100vw, min(100svh, 56rem) * 1.6) - 1.5rem - var(--gutter)), 30rem);
  }
  .home .hero-content > * { max-width: var(--col); }
  .home .hero-logo img { width: var(--col); }
  .home .hero .tagline { font-size: clamp(1.725rem, .825rem + 1.5vw, 2.4rem); }
  .home .label--hero .hide-phone { display: none; }
}
/* Very wide screens (from 1600 px): the 56rem height cap left a band across the middle of a
   16:10 photo drawn wider than the screen is tall, and the young churrero's cap was cut at the top
   (from about 1920 px). There the hero may grow to half the screen's width (still no taller than
   the screen) and the photo hangs from its top edge: the cap is whole, the hands still in. The
   photo is still drawn at the screen's width, so the text column above keeps its width. */
@media (orientation: landscape) and (min-width: 100em) {
  .home .hero { min-height: min(100svh, max(56rem, 50vw)); }
  .home .hero-photo { object-position: 50% 0; }
}
/* Desktop hero legibility (2 Dec, Augusto: "desde" unclear, the name and the symbol too light). Large layout only;
   the phone hero is untouched.
   - A soft chocolate scrim behind the text column (an ellipse from the left edge, no edge of its own), so the small
     line reads over the bright chrome of the press; the faces, to the right, stay as they are.
   - "Des de 1962": 18 px instead of 15, a touch less tracking, and a soft dark halo hugging the letters (with a
     second, tighter band of the scrim at its height), so it reads even where it crosses the press's bright arm.
   - The name (2 Dec: "bigger, not bolder ... just big enough"): the original logo, its own letter weight, 29 % wider
     than the column (500 px at 1440 x 900, 440 at 1280, never over 34rem: 544 at 1920), with only a very soft, wide
     shadow under it (it never thickens the letters). That wide, it reaches across
     the older churrero's fist on the lever, so the text no longer sits on the hero's bottom edge: it hangs from a
     top padding worked out from the photo, with the name's lower edge just above the fist (the knuckles are at
     half the photo's height) and only the lever arm, under the halo, behind it. Where the photo is drawn:
       --heroH the hero's height, --drawW the photo's drawn width (it covers), --photoH its drawn height,
       --photoY its top (object-position 50% 30%, 0 on very wide screens)
   - The symbol in the header: half as big again (36 px wide). */
@media (orientation: landscape) and (min-width: 48em) {
  .home .hero {
    --heroH: min(100svh, 56rem);
    --drawW: max(100vw, var(--heroH) * 1.6); --photoH: calc(var(--drawW) / 1.6);
    --photoY: calc((var(--heroH) - var(--photoH)) * .3);
    --logoW: min(var(--col) * 1.29, 34rem);
    /* the top of the text: the fist's top, less a small gap, the name's height and the label above it (53 px) */
    --textTop: max(7rem, calc(var(--photoY) + var(--photoH) * .5 - 1rem - var(--logoW) / 6.95 - 53px));
    align-items: flex-start;
  }
  .home .hero-content { padding-top: var(--textTop); }
  .home .hero-shade::after {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0;   /* the whole height: the ellipses never meet an edge */
    width: calc(var(--gutter) + var(--col) * 1.7 + 6rem);
    background:
      radial-gradient(ellipse calc(var(--gutter) + var(--logoW) * 1.25) 9rem at 0 calc(var(--textTop) + 56px), rgba(30,20,16,.62) 0%, rgba(30,20,16,.38) 50%, rgba(30,20,16,0) 100%),
      radial-gradient(ellipse 100% 30rem at 0 calc(var(--textTop) + 12rem), rgba(30,20,16,.6) 0%, rgba(30,20,16,.42) 42%, rgba(30,20,16,.14) 74%, rgba(30,20,16,0) 100%);
  }
  .home .label--hero { font-size: 1.125rem; letter-spacing: .2em;
    text-shadow: 0 0 3px rgba(20,12,10,.85), 0 0 8px rgba(20,12,10,.7), 0 0 18px rgba(20,12,10,.5); }
  .home .hero-content > .hero-logo { max-width: none; }
  .home .hero-logo img { width: var(--logoW); filter: drop-shadow(0 1px 10px rgba(20,12,10,.3)); }
  .home .mark img { width: 36px; }
  /* the menu and languages (2 Dec, "the sections text"): the same tight halo, a soft shade from the top right
     corner behind them (it fades out above the young churrero's face; the hairline stays as it is), and the other
     languages a little brighter (the current one keeps its underline) */
  .home .hero-shade::before {
    content: ""; position: absolute; right: 0; top: 0; width: min(66vw, 62rem); height: 13rem;
    background: radial-gradient(ellipse 72% 100% at 62% 0%, rgba(30,20,16,.6) 0%, rgba(30,20,16,.38) 50%, rgba(30,20,16,0) 100%);
  }
  .home .site-header .nav a, .home .site-header .lang a { text-shadow: 0 0 3px rgba(20,12,10,.85), 0 0 8px rgba(20,12,10,.65), 0 0 16px rgba(20,12,10,.45); }
  .home .site-header .lang a { opacity: .9; }
}
/* (very wide screens: the hero's taller height, and the photo hanging from its top, as above) */
@media (orientation: landscape) and (min-width: 100em) {
  .home .hero { --heroH: min(100svh, max(56rem, 50vw)); --photoY: 0px; }
}
/* the shade: dark under the header, light over the middle of the photo, then deep from just above
   the "Des de 1962" line down, so the small letter-spaced text reads over the bright parts of the photos */
.home .hero-shade { background: linear-gradient(180deg, rgba(30,20,16,.6) 0%, rgba(30,20,16,.12) 24%, rgba(30,20,16,.16) 40%, rgba(30,20,16,.6) 57%, rgba(30,20,16,.82) 72%, rgba(30,20,16,.93) 100%); }
/* Squarer landscape screens (4:3, 5:4): the text column is narrow, so the hero text (with its intro, 28 Nov)
   climbs over the bright press. A soft chocolate shade from the left sits behind the column only; the faces, to
   the right of it, stay as they are */
@media (orientation: landscape) and (min-width: 48em) and (max-aspect-ratio: 3/2) {
  .home .hero-shade { background:
    linear-gradient(90deg, rgba(30,20,16,.62) 0%, rgba(30,20,16,.5) 28%, rgba(30,20,16,0) 46%),
    linear-gradient(180deg, rgba(30,20,16,.6) 0%, rgba(30,20,16,.12) 24%, rgba(30,20,16,.16) 40%, rgba(30,20,16,.6) 57%, rgba(30,20,16,.82) 72%, rgba(30,20,16,.93) 100%); }
}

/* ---------- Shared section heads ---------- */
.home h2 { font-size: clamp(2.6rem, 1.4rem + 5vw, 6rem); margin-bottom: 0; }
.sec-intro { margin-top: var(--sp2); max-width: var(--measure); }

/* =====================================================================
   Porra spiral (chocolate band, cream dots). It draws as the section scrolls
   past at normal speed (no pin): assets/porra-spiral/porra-spiral.js.
   ===================================================================== */
.spiral-band { background: var(--choc); color: var(--cream); padding-block: 4rem 5rem; }
.spiral-band .porra-spiral { margin: 0 0 2.5rem; color: var(--cream); }
.spiral-band blockquote { margin: 0; }
.spiral-band blockquote p { font-style: italic; font-size: 2.15rem; line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; margin: 0 0 var(--sp2); }
@media (min-width: 760px) {
  .spiral-band { padding-block: 7rem; }
  .spiral-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 6rem); align-items: center; }
  .spiral-band .porra-spiral { margin: 0; max-width: 600px; justify-self: end; width: 100%; }
  .spiral-band blockquote p { font-size: clamp(2.2rem, 1rem + 2.4vw, 3.4rem); }
}

/* =====================================================================
   Carta: one photo under the heading, the three products as type (name large,
   one italic line), then one line with the rest and a small one. No prices.
   ===================================================================== */
.carta { background: var(--cream); color: var(--choc); padding-block: 4rem 2.5rem; font-size: 1.0625rem; line-height: 1.5; }
.carta .wrap { max-width: calc(72rem + 2 * var(--gutter)); }
.carta p, .carta h3, .carta ul { margin: 0; }
.kicker {
  font-size: .75rem; line-height: 1.4; letter-spacing: .2em; text-transform: uppercase;
  color: var(--burgundy); font-weight: normal; font-variant-numeric: lining-nums;
}
.carta-head { margin-bottom: var(--sp3); }
.home .carta-title { margin-top: var(--sp1); font-size: 2.75rem; line-height: 1.05; font-style: italic; letter-spacing: 0; }
/* the photo: about 4:5 on phones, 3:2 from 768 px, cropped so the churros and the hand stay in */
.carta-photo { display: block; margin-bottom: var(--sp6); }
.carta-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 45% 55%; background: var(--cream-soft); }
.carta-items { list-style: none; padding: 0; display: grid; gap: var(--sp6); }
.carta-name { font-weight: normal; font-size: 1.8em; line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
.carta-desc { margin-top: .5rem; font-style: italic; color: var(--choc-soft); text-wrap: pretty; max-width: 24em; }
@media (min-width: 48em) {
  .carta { padding-block: 7rem 8rem; font-size: 1.125rem; }
  .home .carta-title { font-size: 3.5rem; }
  .carta-photo img { aspect-ratio: 3 / 2; }
  .carta-items { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--sp6); }
}

/* =====================================================================
   Chocolate pour (round 7, polished: assets/js/choc-pour.js) and the
   chocolate section it pours into. The module's own rules are at the end
   of this file; here only the text on the stage.
   ===================================================================== */
.choc-pour { background: var(--cream); }
/* The stage is sticky with margin-bottom: -100lvh, so the browser lets it stay stuck up to a screen past the
   section's end, where the full chocolate canvas covered the start of the menu (seen 28 Nov, phone and desktop).
   Clipping the section to its own box ends it with the section; overflow: clip (unlike hidden) keeps sticky working */
.choc-pour { overflow: clip; }
@supports not (overflow: clip) { .choc-pour { clip-path: inset(0); } }
/* Before the pour's script has started (or with no JavaScript) the text block gets its chocolate behind it,
   so it is always readable, and contrast checks see the real background; once the canvas runs (is-gl), the
   chocolate is drawn there, and the stills (is-still) bring their own */
.choc-pour:not(.is-gl):not(.is-still) .choc-pour__text { background: var(--choc); }
.pour-intro { color: var(--choc); padding-block: clamp(3.5rem, 2rem + 6vw, 7rem) clamp(1.5rem, 1rem + 2vw, 3rem); }

/* "Els clàssics" rides on the chocolate, over the canvas (assets/js/choc-pour.js moves it
   with the surface, from the same fill the pour uses). Left, on the page grid; the title the porra quote's size and
   style, the paragraph the hero intro's size, both full cream, with a soft dark shadow for when the stream or the
   window's glow passes behind. Its layer (ridebox) is a screen tall at the end of the section, held to the bottom of
   the screen: it stays with the canvas while the pour plays, then scrolls away with the section like the page.
   Before the script runs (or without it) the text sits on the fallback's chocolate */
.choc-pour__ridebox { position: sticky; bottom: 0; z-index: 1; height: 100vh; margin-top: auto; overflow: clip; }
@supports (height: 100lvh) { .choc-pour__ridebox { height: 100lvh; } }
@supports not (overflow: clip) { .choc-pour__ridebox { overflow: hidden; } }
.choc-pour__ride { position: absolute; left: 0; right: 0; top: 52%; color: var(--cream);
  text-shadow: 0 1px 12px rgba(20, 12, 9, .6), 0 0 2px rgba(20, 12, 9, .4); }
.choc-pour.is-gl .choc-pour__ride { top: 0; opacity: 0; will-change: transform, opacity; }
.home .classics-title { font-style: italic; font-size: 2.15rem; line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; max-width: 14em; margin: 0 0 var(--sp3); color: var(--cream); }
.classics-text { font-size: clamp(1rem, .92rem + .25vw, 1.2rem); line-height: 1.6; max-width: min(85vw, 32em); margin: 0; color: var(--cream); text-wrap: pretty; }
@media (min-width: 760px) {
  .home .classics-title { font-size: clamp(2.2rem, 1rem + 2.4vw, 3.4rem); }
}
/* the stills (reduced motion, no WebGL, an error, a device too slow): with the module's rules, at the end */

.choc-sec { position: relative; z-index: 1; background: var(--choc); color: var(--cream); padding-block: 2rem 7rem; margin-top: -1px; }
.choc-sec p:not(.label) { max-width: var(--measure); font-size: var(--s1); line-height: 1.45; }
.choc-sec .story-line { font-style: italic; font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; margin-bottom: var(--sp2); }
.story-sec { padding-top: 3rem; }
.story-sec p:not(.label):not(.story-line) { text-wrap: pretty; }

/* =====================================================================
   Map (round 6, flat, from the sugar-map lab). Its own rules are in
   assets/map/sugar-map.css; here only how it sits on the page.
   ===================================================================== */
.home .visit { background: var(--cream); color: var(--choc); }
.home .visit-title { font-size: 2.25rem; letter-spacing: -.005em; }
.visit-line { margin: var(--sp2) 0 0; max-width: 30em; }
.visit-breakfast { margin: var(--sp3) 0 0; max-width: 30em; }
.visit-breakfast p { margin: 0; }
.visit-breakfast .kicker { margin-bottom: .25rem; }
.visit-breakfast p:not(.kicker) { color: var(--choc-soft); text-wrap: pretty; }
@media (min-width: 720px) { .home .visit-title { font-size: 3.157rem; } }

/* =====================================================================
   Footer: the shopfront drawing (facade lab, round 8, 553597b) as a small sign-off, with the
   address, the hours and "open now". Kept small on purpose (Augusto, 27 Nov: "a lot smaller", then
   "even smaller"): on phones the drawing is a 120 px mark above the address; from 760 px, 160 px beside it.
   The SVG has its own small-size versions (it drops the finest lines under 220 px wide).
   ===================================================================== */
.home .site-footer { background: var(--choc); color: var(--cream); padding: 2.25rem 0 1.5rem; }
.home .footer-in { display: block; }
.facade-link { display: block; width: 7.5rem; margin: 0 auto; color: inherit; border-radius: 2px; }
.facade-link:focus-visible { outline: 1px solid var(--cream); outline-offset: 8px; }
.foot-visit { font-style: normal; text-align: center; margin: 1.25rem auto 0; max-width: 24rem; }
.foot-addr { font-size: 1.2rem; line-height: 1.3; margin: 0 0 .75rem; letter-spacing: -.005em; }
.home .site-footer .hours { margin: 0; display: grid; gap: .5rem; }
.home .site-footer .hours div { display: grid; gap: .1rem; padding: 0; border: 0; }
.home .site-footer .hours dt { font-style: normal; font-size: .75rem; text-transform: uppercase; letter-spacing: .2em; color: var(--cream-soft); font-variant-numeric: lining-nums; }
.home .site-footer .hours dd { margin: 0; font-size: 1.05rem; font-variant-numeric: lining-nums tabular-nums; }
.open-now { display: flex; align-items: center; justify-content: center; gap: .6em; margin: 0 0 .75rem; font-style: italic; color: var(--cream-soft); }
.open-now::before { content: ""; width: .5em; height: .5em; border-radius: 50%; border: 1px solid var(--cream-soft); }
.open-now.is-open { color: var(--cream); }
/* the dot: green while open, red while closed (muted, to sit with the brand colours; both show on the chocolate) */
.open-now::before { background: #c24a43; border-color: #c24a43; }
.open-now.is-open::before { background: #4c9a5f; border-color: #4c9a5f; }
.foot-phone { margin: .75rem 0 0; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .75rem 2rem; margin-top: 1.75rem; }
.home .insta { margin: 0; }
.home .lang--footer { margin: 0; padding: 0; border: 0; }
.home .lang--footer a { color: var(--cream-soft); }
.home .lang--footer a[aria-current="page"] { color: var(--cream); text-decoration-color: var(--cream-soft); }
/* Tap targets (pre-launch audit, 28 Nov): the small standalone links get an invisible hit area of about 44 px
   tall around them, so nothing on the page moves (WCAG 2.5.8 asks for 24 px); the footer languages at least 24 px wide */
.home .hero-link .link, .home .foot-phone a, .home .insta a, .home .sm-credit a { position: relative; }
.home .hero-link .link::after, .home .foot-phone a::after, .home .insta a::after { content: ""; position: absolute; inset: -.75rem -.25rem; }
.home .sm-credit a::after { content: ""; position: absolute; inset: -.5rem 0; }
.home .lang--footer a { display: inline-block; min-width: 1.5rem; text-align: center; padding-block: .375rem; margin-block: -.375rem; }
.home .site-footer .small { margin: 1.25rem 0 0; padding-top: 1rem; }
/* from 760 px: the drawing on the left, the address and the hours beside it, bottoms aligned */
@media (min-width: 760px) {
  .home .site-footer { padding-top: 3rem; }
  .home .footer-in { display: grid; grid-template-columns: 10rem minmax(0, 1fr); column-gap: 2.5rem; align-items: end; }
  .facade-link { width: 100%; margin: 0; }
  .foot-visit { text-align: left; max-width: none; margin: 0; }
  .open-now { justify-content: flex-start; }
  .home .site-footer .hours { grid-template-columns: auto auto; justify-content: start; gap: 2.5rem; }
  .foot-row, .home .site-footer .small, .foot-legal { grid-column: 1 / -1; }
  .foot-row { margin-top: 2.25rem; }
}
/* Legal notice and privacy: one quiet line under the copyright, in the same small type and cream */
.foot-legal { margin: .5rem 0 0; font-size: var(--s-1); color: var(--cream-soft); }
.foot-legal a { color: inherit; text-decoration: underline 1px; text-decoration-color: var(--rule-light); text-underline-offset: .22em; display: inline-block; padding-block: .375rem; margin-block: -.375rem; }
.foot-legal a:hover, .foot-legal a[aria-current="page"] { color: var(--cream); }

/* =====================================================================
   Subpages (legal notice, privacy): the home page's header on a chocolate band,
   its footer, and a plain text column
   ===================================================================== */
.subpage .site-header { position: relative; background: var(--choc); }

/* the legal notice and the privacy policy: on cream, one reading column */
.page-text { background: var(--cream); color: var(--choc); padding-block: 2.5rem 4.5rem; font-size: 1.0625rem; line-height: 1.55; }
.page-text__in { max-width: var(--measure); }
.page-text h1 { font-size: clamp(2.25rem, 1.7rem + 2.5vw, var(--s4)); font-style: italic; line-height: 1.1; margin: 0 0 var(--sp6); }
.page-text h2 { font-size: var(--s1); line-height: 1.3; letter-spacing: -.01em; margin: var(--sp6) 0 var(--sp1); }
.page-text p { margin: 0 0 var(--sp2); text-wrap: pretty; }
.page-text .link:hover { color: var(--choc-soft); }
.legal-data { margin: var(--sp3) 0; border-top: 1px solid var(--rule); }
.legal-data div { padding-block: .625rem; border-bottom: 1px solid var(--rule); }
.legal-data dt { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--choc-soft); font-variant-numeric: lining-nums; }
.legal-data dd { margin: .125rem 0 0; overflow-wrap: anywhere; }
@media (min-width: 48em) {
  .page-text { padding-block: 4.5rem 6.5rem; font-size: 1.125rem; }
  .legal-data div { display: grid; grid-template-columns: 12rem minmax(0, 1fr); column-gap: var(--sp3); align-items: baseline; }
  .legal-data dd { margin: 0; }
}

/* ---------- Reduce motion: nothing moves. Text and pictures fade in where they would have moved
   (opacity only, as iOS itself does with Reduce Motion on), so the page still feels alive ---------- */
@media (prefers-reduced-motion: reduce) {
  .motion .reveal { opacity: 1; transform: none; }
  .calm .reveal { opacity: 0; transition: opacity .9s ease-out !important; }
  .calm .reveal.in { opacity: 1; }
}


/* #####################################################################
   Module stylesheets from the labs, as they are (one file loads faster than four)
   ##################################################################### */

/* Porra spiral · stipple, drawn by scroll. Pairs with porra-spiral.js.
   The dots are painted in the figure's `color`: cream on the chocolate band.
   :where() keeps these at zero specificity, so the page's own rules
   (margins, colour) always win. */
:where(.porra-spiral) {
  margin: 0;
  color: #efe0cd;                 /* the logo's cream */
}
:where(.porra-spiral) canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 356 / 308;        /* phone artwork; the script sets the exact ratio, so nothing shifts */
}

/* =====================================================================
   Neighbourhood map (from the sugar-map lab, round 6, flat style)
   Only the site's colours (sample 3): cream #efe0cd, chocolate #1e1410,
   burgundy #a4343a for the shop alone. Tints are chocolate over cream.
   ===================================================================== */

.sm {
  --panel: var(--cream);
  --ink: var(--choc);
  --ink-soft: var(--choc-soft);
  --ink-faint: rgba(30, 20, 16, .42);
  --credit: var(--choc-soft);       /* the OpenStreetMap credit: readable (4.5:1 or more) on cream */
  --rule: rgba(30, 20, 16, .14);
  --frame: rgba(30, 20, 16, .45);   /* a fine chocolate hairline around the map */
  --accent: var(--burgundy);
  --knock: 0 0 2px var(--cream), 0 0 3px var(--cream);   /* the paper showing through, never a dark halo */
  --on: var(--cream);
}

/* ---------- Section ---------- */
.visit { padding: 3.5rem 0 4rem; }
.visit-head { padding: 0 1.25rem 1.75rem; max-width: 1200px; margin: 0 auto; }
.visit-eyebrow {
  margin: 0 0 .4rem;
  font-size: .8125rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--choc-soft);
}
.visit-title { margin: 0; font-weight: normal; font-size: 2.25rem; line-height: 1.1; letter-spacing: -.005em; }
.visit-sub { margin: .5rem 0 0; font-style: italic; color: var(--choc-soft); font-size: 1rem; }

/* ---------- The panel ---------- */
.sm {
  margin: 0;
  background: var(--panel);
  color: var(--ink);
}
.sm-map { border-top: 1px solid var(--frame); border-bottom: 1px solid var(--frame); }
.sm-map {
  position: relative;
  width: 100%;
  aspect-ratio: 640 / 1000;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.sm[data-frame="desktop"] .sm-map { aspect-ratio: 1600 / 1000; }

.sm-stage { position: absolute; inset: 0; }
.sm-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sm-overlay { position: absolute; inset: 0; pointer-events: none; }

/* labels, markers and scale come in only once the powder has settled */
.sm-overlay, .sm-tags { opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 0s linear 1s; }
.sm.is-settled .sm-overlay, .sm.is-settled .sm-tags { opacity: 1; visibility: visible; transition: opacity 1s ease; }

/* the walk: a burgundy line drawn from the shop door */
.sm-route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sm-steps {
  fill: none;
  stroke: var(--burgundy);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sm-walker { fill: var(--burgundy); stroke: var(--cream); stroke-width: 1.5; opacity: 0; transition: opacity .6s ease; }
.sm-walker.is-on { opacity: 1; }
.sm-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }

/* ---------- Labels on the map: quiet, warm, real text ---------- */
.sm-label {
  position: absolute;
  left: 0; top: 0;
  margin: 0;
  white-space: nowrap;
  font-style: italic;
  font-size: .8125rem;
  line-height: 1;
  letter-spacing: .01em;
  color: var(--ink);
  text-shadow: var(--knock);
  transform: translate(-50%, -50%);
}
.sm-street { font-size: .875rem; letter-spacing: .08em; color: var(--ink-soft); text-shadow: none; }
.sm-metro { display: flex; align-items: center; gap: .32rem; font-size: .75rem; color: var(--ink-soft); }
.sm-metro::before {
  content: "M";
  display: inline-grid;
  place-items: center;
  width: 14px; height: 14px;
  border: 1px solid var(--ink-faint);
  border-radius: 50%;
  font-style: normal;
  font-size: 8px;
  letter-spacing: 0;
  background: var(--panel);
  text-shadow: none;
}
.sm-metro.is-left { flex-direction: row-reverse; }

/* the shop: its burgundy strip is drawn in the canvas; here the door marker and
   the name, in the brand's own wordmark (brand/long-red.svg) */
.sm-door {
  position: absolute; left: 0; top: 0;
  width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: var(--burgundy);
  box-shadow: 0 0 0 1.75px var(--cream);
}
/* the name, aligned on the door marker: same centre line, a small gap */
.sm-name { position: absolute; left: 0; top: 0; transform: translate(12px, -54%); line-height: 0; }
.sm-name img {
  display: block; height: 16px; width: auto;
  /* a fine paper-coloured edge: a route passing east of the shop goes cleanly under the name */
  filter: drop-shadow(0 0 1px var(--cream)) drop-shadow(0 0 1px var(--cream)) drop-shadow(0 0 1.5px var(--cream));
}
/* or, with ?link=leader: lifted up-right with a short hairline to the marker */
.sm-name.is-leader { transform: translate(20px, calc(-50% - 15px)); }
.sm-leader {
  position: absolute; left: 0; top: 0;
  width: 15px; height: 1px; margin-top: -.5px;
  background: var(--burgundy);
  transform-origin: 0 50%;
  transform: rotate(-42deg) translateX(7px);
}

/* numbered markers (phone): simple small circles */
.sm-num {
  position: absolute;
  left: 0; top: 0;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--ink-soft);
  font-size: .6875rem;
  font-variant-numeric: lining-nums;
  line-height: 1;
  color: var(--ink);
  transition: background-color .8s ease, color .8s ease;
}
.sm-num.is-on { background: var(--ink); color: var(--on); }

/* north + scale */
.sm-north {
  position: absolute; top: 12px; right: 14px; margin: 0;
  display: grid; justify-items: center; gap: 3px;
  font-style: italic; font-size: .75rem; line-height: 1; color: var(--ink-soft);
}
.sm-north::after { content: ""; width: 1px; height: 13px; background: var(--ink-faint); }
.sm-scale {
  position: absolute; left: 14px; bottom: 12px; margin: 0;
  font-style: italic; font-size: .75rem; line-height: 1; color: var(--ink-soft);
}
.sm-scale::before {
  content: "";
  display: block;
  width: var(--len);
  height: 4px;
  margin-bottom: 5px;
  border: 1px solid var(--ink-faint);
  border-top: 0;
}

/* ---------- Key (phone) ---------- */
.sm-foot { padding: 1.25rem 1.25rem 1.5rem; border-top: 1px solid var(--rule); }
.sm-key-title { margin: 0 0 .5rem; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.sm-key { list-style: none; margin: 0; padding: 0; }
.sm-key button {
  display: grid;
  grid-template-columns: 1.6rem 1fr auto;
  align-items: baseline;
  gap: .5rem;
  width: 100%;
  min-height: 44px;
  padding: .6rem 0;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sm-key li:last-child button { border-bottom: 0; }
.sm-key .k-n { font-style: italic; font-size: .875rem; color: var(--ink-soft); font-variant-numeric: lining-nums; }
.sm-key .k-min { font-style: italic; font-size: .875rem; color: var(--ink-soft); white-space: nowrap; }
.sm-key .k-name { transition: color .8s ease; }
.sm-key button[aria-pressed="true"] .k-name { color: var(--accent); }
.sm-key button[aria-pressed="true"] .k-n { color: var(--ink); }
.sm-key button:focus-visible { outline: 1px solid var(--ink-soft); outline-offset: 2px; }

.sm-go {
  display: inline-flex; align-items: center; gap: .4em;
  margin-top: 1rem;
  min-height: 44px;
  color: var(--ink);
  font-style: italic;
  font-size: 1.0625rem;
  text-decoration: underline;
  text-decoration-color: var(--ink-faint);
  text-underline-offset: .22em;
  text-decoration-thickness: 1px;
}
.sm-go:hover, .sm-go:focus-visible { text-decoration-color: var(--ink); }
.sm-credit { margin: .9rem 0 0; font-size: .6875rem; line-height: 1.3; letter-spacing: .01em; color: var(--credit); }
.sm-credit a { color: var(--credit); text-decoration: none; }
.sm-credit a:hover, .sm-credit a:focus-visible { color: var(--ink); text-decoration: underline; }

/* ---------- Tags beside footprints (desktop) ---------- */
.sm-tags { list-style: none; margin: 0; padding: 0; display: none; }
.sm-tag {
  position: absolute; left: 0; top: 0;
  padding: 4px 2px;
  border: 0; background: none;
  font: inherit; font-style: italic; font-size: .875rem; line-height: 1.2;
  color: var(--ink);
  text-shadow: var(--knock);
  white-space: nowrap;
  cursor: pointer;
  transition: color .8s ease;
}
.sm-tag small { font-size: .75rem; color: var(--ink-soft); margin-left: .4em; }
.sm-tag[aria-pressed="true"] { color: var(--accent); }
.sm-tag:hover { text-decoration: underline; text-decoration-color: var(--ink-faint); text-underline-offset: .2em; }
.sm-tag:focus-visible { outline: 1px solid var(--ink-soft); outline-offset: 2px; }

.sm[data-frame="desktop"] .sm-tags { display: block; }
.sm[data-frame="desktop"] .sm-num,
.sm[data-frame="desktop"] .sm-key,
.sm[data-frame="desktop"] .sm-key-title { display: none; }

/* ---------- Wider screens ---------- */
@media (min-width: 720px) {
  .visit { padding: 6rem 2rem 7rem; }
  .visit-head { padding: 0 0 2.25rem; }
  .visit-title { font-size: 3.157rem; }
  .sm { max-width: 1200px; margin: 0 auto; }
  .sm-map { border: 1px solid var(--frame); }
  .sm[data-frame="phone"] { max-width: 600px; }
  .sm[data-frame="desktop"] .sm-foot { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.5rem; }
  .sm[data-frame="desktop"] .sm-go { margin-top: 0; }
  .sm[data-frame="desktop"] .sm-credit { margin: 0; }
  .sm-north { top: 20px; right: 22px; }
  .sm-scale { left: 22px; bottom: 20px; }
  .sm-name img { height: 19px; }
  .sm-door { width: 12px; height: 12px; margin: -6px 0 0 -6px; }
}

@media (prefers-reduced-motion: reduce) {
  .sm-overlay, .sm-tags, .sm-num, .sm-tag, .sm-key .k-name, .sm-walker { transition: none !important; }
}

/* The shopfront drawing as the footer sign-off, for the site (works under the site CSP:
   two lazy images, no inline style or script).

   <figure class="facade-sign">
     <img class="facade-sign__closed" src="/assets/img/facade/facade.svg" width="760" height="972"
          loading="lazy" decoding="async" alt="...">
     <img class="facade-sign__open" src="/assets/img/facade/facade-open.svg" width="760" height="972"
          loading="lazy" decoding="async" alt="">
   </figure>

   Open: add the class is-open to .facade-sign (the same hours logic as "Obert ara").
   The lit image, with the churrero/a at the fryer, fades in over the closed one. */
.facade-sign { position: relative; margin: 0; }
.facade-sign img { display: block; width: 100%; height: auto; }
.facade-sign__open {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.8s cubic-bezier(.3, 0, .2, 1);
}
.facade-sign.is-open .facade-sign__open { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .facade-sign__open { transition: none; }
}

/* =====================================================================
   Chocolate pour · Xurrería Laietana · goes with assets/js/choc-pour.js
   No pin: the page scrolls through the section at normal speed. The
   section is about one screen of scroll longer than the screen; its stage
   is a layer as tall as the screen that stays on it while the section
   passes (sticky) and takes no room (negative margin). The canvas is drawn
   in the stage; the intro and the text scroll over it. The pool fills over
   that one screen of scroll, as the pinned version did.

   Markup:
     <section class="choc-pour" data-choc-pour aria-labelledby="...">
       <div class="choc-pour__stage"></div>            (the canvas goes here)
       <div class="choc-pour__intro"> label, title </div>   (on the cream)
       <div class="choc-pour__text"> ... blocks with data-choc-rise ... </div>
     </section>
   ===================================================================== */
.choc-pour {
  --choc-pour-cream: #efe0cd;
  --choc-pour-choc: #1e1410;
  position: relative;
  display: flex; flex-direction: column;
  min-height: 195vh;
}
.choc-pour__stage {
  position: sticky; top: 0; z-index: 0;
  height: 100vh; margin-bottom: -100vh;
  overflow: hidden; pointer-events: none;
}
/* the large viewport height: the stage reaches the bottom of the screen also when a phone's address bar hides */
@supports (height: 100lvh) { .choc-pour__stage { height: 100lvh; margin-bottom: -100lvh; } }

.choc-pour__canvas {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  display: block; pointer-events: none;
}
/* the intro sits on the cream (the stream falls behind it); the text comes up from below on the chocolate,
   about a third of the way into the pour, and scrolls on with the page */
.choc-pour__intro, .choc-pour__text { position: relative; z-index: 1; }
.choc-pour__intro { color: var(--choc-pour-choc); padding-top: clamp(3.5rem, 2rem + 6vw, 7rem); }
/* with the canvas the intro is empty: no band, the stream starts right under the menu (the stills keep their cream band) */
.choc-pour.is-gl .choc-pour__intro { padding-block: 0; }
.choc-pour__text { color: var(--choc-pour-cream); margin-top: auto; padding-bottom: 55vh; }

/* No WebGL yet (or no JavaScript): the same length, the finished pour behind the text */
.choc-pour:not(.is-gl) .choc-pour__stage {
  background:
    radial-gradient(60% 9% at 60% 47%, rgba(255, 226, 180, .22), transparent 70%),
    linear-gradient(to bottom, var(--choc-pour-cream) 0 38%, #5a3626 38%, #2e1d15 39.2%, #24170f 46%, var(--choc-pour-choc) 70%);
}
/* ...but while the pour is on its way (home.js loads it: is-loading), the cream it starts on, not the finished pour
   (whose chocolate would rise from the bottom of the screen and then vanish). If it fails, is-still brings the still */
.choc-pour.is-loading:not(.is-gl) .choc-pour__stage { background: none; }
.choc-pour.is-loading:not(.is-gl):not(.is-still) .choc-pour__ride { opacity: 0; }

/* The still (class is-still: reduced motion, no WebGL, an error, a device too slow for it): the pour finished.
   Short: the intro on its cream band, then the chocolate with the window melted into one soft glow, the text in
   place. Given up while on screen or above it (is-still-late), it keeps the full length so nothing moves. */
.choc-pour.is-still { min-height: 0; background: var(--choc-pour-choc); }
.choc-pour.is-still .choc-pour__stage { display: none; }
/* "Els clàssics" in the flow under the cream band, where it rests */
.choc-pour.is-still .choc-pour__ridebox { position: relative; height: auto; margin-top: 0; overflow: visible; z-index: 2; }
.choc-pour.is-still .choc-pour__ride { position: static; opacity: 1 !important; transform: none !important; padding-top: 10rem; padding-bottom: 12vh; }
.choc-pour.is-still .choc-pour__intro { padding-bottom: clamp(1.5rem, 1rem + 2vw, 3rem); }
/* the intro's cream band, the full width of the screen */
.choc-pour.is-still .choc-pour__intro::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--choc-pour-cream); box-shadow: 0 0 0 100vmax var(--choc-pour-cream); clip-path: inset(0 -100vmax);
}
/* the chocolate just under the cream: a little lighter at first, and the window's soft glow */
.choc-pour.is-still .choc-pour__intro::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 46vh; pointer-events: none;
  background:
    radial-gradient(46% 18% at 58% 22%, rgba(150, 121, 95, .62), rgba(150, 121, 95, 0)),
    linear-gradient(to bottom, #382a22, #2a1e18 30%, rgba(30, 20, 16, 0) 52%);
}
.choc-pour.is-still .choc-pour__text { margin-top: 0; padding-top: 10rem; padding-bottom: 12vh; }
.choc-pour.is-still [data-choc-rise] { opacity: 1 !important; transform: none !important; }
.choc-pour.is-still.is-still-late { min-height: 195vh; }
.choc-pour.is-still.is-still-late .choc-pour__text, .choc-pour.is-still.is-still-late .choc-pour__ridebox { margin-top: auto; }
.choc-pour.is-still.is-still-late .choc-pour__text { padding-top: 0; padding-bottom: 55vh; }
.choc-pour.is-still.is-still-late .choc-pour__ride { padding-top: 0; padding-bottom: 55vh; }
/* reduced motion without any script: the same still ([data-choc-pour] for weight, so it wins over the rules above) */
@media (prefers-reduced-motion: reduce) {
  .choc-pour[data-choc-pour] { min-height: 0; background: var(--choc-pour-choc); }
  .choc-pour[data-choc-pour] .choc-pour__stage { display: none; }
  .choc-pour[data-choc-pour] .choc-pour__ridebox { position: relative; height: auto; margin-top: 0; overflow: visible; z-index: 2; }
  .choc-pour[data-choc-pour] .choc-pour__ride { position: static; opacity: 1 !important; transform: none !important; padding-top: 10rem; padding-bottom: 12vh; }
  .choc-pour[data-choc-pour] .choc-pour__intro { padding-bottom: clamp(1.5rem, 1rem + 2vw, 3rem); }
  .choc-pour[data-choc-pour] .choc-pour__intro::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: var(--choc-pour-cream); box-shadow: 0 0 0 100vmax var(--choc-pour-cream); clip-path: inset(0 -100vmax);
  }
  .choc-pour[data-choc-pour] .choc-pour__intro::after {
    content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 46vh; pointer-events: none;
    background:
      radial-gradient(46% 18% at 58% 22%, rgba(150, 121, 95, .62), rgba(150, 121, 95, 0)),
      linear-gradient(to bottom, #382a22, #2a1e18 30%, rgba(30, 20, 16, 0) 52%);
  }
  .choc-pour[data-choc-pour] .choc-pour__text { margin-top: 0; padding-top: 10rem; padding-bottom: 12vh; }
  .choc-pour[data-choc-pour] [data-choc-rise] { opacity: 1 !important; transform: none !important; }
}

/* With WebGL the text rises into view as the chocolate reaches it (set by the script through the CSSOM) */
.choc-pour.is-gl [data-choc-rise] { opacity: 0; will-change: opacity, transform; }
