/* The home page (piece 1b): the walk-in's door, its still version and the philosophy's quote
   (spec WI1, WI2, WI5, WI8, WI9, RM1, RM2, DS1; plan task 2.3), ported from
   docs/design/home-sections/home.html:17-75 and hero-common.css:106-129, then the sections below
   (plan tasks 3.1 to 3.4, from sections.css), each in its end state without JavaScript. The mode is on <html>:
   data-door="walk", which static/js/door-head.js sets before the first paint, shows the walk's
   look (the hint, no button at the door, the cards faded); no data-door or data-door="still" is
   the still version, which is also the page without JavaScript. The walk itself (the track, the
   film, the zoom, the cards' fade) is static/js/door.js's (task 2.4). The mockup's color-mix() is
   not ported (spec PF1). */

/* the page's parts run the full width, each with its own gutters */
.page { max-width: none; padding: 0; display: block; }

/* the door: a dark ground under the start picture, so the cream text stays readable when the
   picture does not load (spec section 6); the stage is the visible height and nothing more, in
   every state, so nothing above the reader changes height when the walk starts or falls back to
   still (review T16; the mockup's min-height: 600px cut "Ver servicios" under the bar) */
.door { position: relative; background: #2a2018; }
.door-track { position: relative; }
.door-stage { position: relative; height: 100svh; overflow: hidden; }

/* The start picture covers the stage at the mockup's camera at e = 0 (home.html:479-503): scaled
   to cover, the door's centre in the middle of the stage (66 % across in a wide window from
   700 px) as far as the picture's edges allow. Written as clamped object-position lengths per
   shape and fit; the numbers come from src/views/door.rs, whose test door_rest_matches_scene
   reads each marked rule. The tall rules and the wide rules exclude each other: an exactly
   square window is tall, as the <picture> source says (review delta D16). */
.door-start { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
/* door-rest: tall, the width fits */
@media (max-aspect-ratio: 1/1) and (min-aspect-ratio: 1080/1920) { .door-start { object-position: 0px clamp(100svh - 177.78vw, 50svh - 81.39vw, 0px); } }
/* door-rest: tall, the height fits */
@media (max-aspect-ratio: 1080/1920) { .door-start { object-position: clamp(100vw - 56.25svh, 50vw - 27.99svh, 0px) 0px; } }
/* door-rest: wide, the width fits */
@media (min-aspect-ratio: 1920/1080) { .door-start { object-position: 0px clamp(100svh - 56.25vw, 50svh - 27.78vw, 0px); } }
/* door-rest: wide, the height fits */
@media (min-aspect-ratio: 1001/1000) and (max-aspect-ratio: 1920/1080) { .door-start { object-position: clamp(100vw - 177.78svh, 50vw - 115.51svh, 0px) 0px; } }
/* door-rest: wide, the height fits, from 700px */
@media (min-aspect-ratio: 1001/1000) and (max-aspect-ratio: 1920/1080) and (min-width: 700px) { .door-start { object-position: clamp(100vw - 177.78svh, 66vw - 115.51svh, 0px) 0px; } }

/* Save-Data's one quiet moment (home.html:550): the picture settles from slightly closer, about
   the door's centre; reduced motion stops it (site.css) */
/* door-settle: wide */
[data-settle] .door-start { transform-origin: 64.97% 49.38%; animation: door-settle 2.2s ease-out; }
/* door-settle: tall */
@media (max-aspect-ratio: 1/1) { [data-settle] .door-start { transform-origin: 49.77% 45.78%; } }
@keyframes door-settle { from { transform: scale(1.06); } to { transform: scale(1); } }

/* the shade under the words, and the film's canvas over the picture (drawn by door.js) */
.door-veil { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(to top, rgba(20, 16, 11, .82) 0%, rgba(20, 16, 11, .45) 30%, rgba(20, 16, 11, 0) 52%),
  linear-gradient(to bottom, rgba(20, 16, 11, .35), rgba(20, 16, 11, 0) 16%); }
.door-walk { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; pointer-events: none; }

/* the salon's inside, closed until the walk opens it; the room's ground colour stands in for the
   interior picture until it has arrived (spec WI3): door.js shows the picture (class on) once it
   has loaded, so neither its alt text nor a broken picture is ever painted on the ground */
.door-inside { position: absolute; inset: 0; overflow: hidden; clip-path: inset(100% 0 0 0); opacity: 0; background: #E3CFB6; }
.door-room-wrap { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.door-room { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; visibility: hidden; }
.door-room.on { visibility: visible; }
/* the water film laid over the picture's water curtain, its edges feathered; Chrome before 120
   reads only the -webkit- mask (spec PF1, floor.md); it fades in once it plays (class on, set by
   door.js on its playing event), so a film that does not play is never seen (spec WI4) */
.door-water { position: absolute; display: block; object-fit: fill; opacity: 0; transition: opacity .6s; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
  mask-composite: intersect; }
.door-water.on { opacity: 1; }

/* the door's words over the picture, above the booking bar */
.door-intro {
  position: absolute; left: var(--gutter); right: var(--gutter-r); bottom: calc(var(--bar-h) + var(--safe-b) + 26px);
  display: grid; gap: 14px; align-content: end; color: var(--cream);
}
.door-tagline { font-size: 14.5px; opacity: .9; }
.door-intro h1 { font: 500 clamp(31px, 8.4vw, 68px)/1.12 var(--display); letter-spacing: 0; max-width: 15em; text-wrap: balance; text-shadow: 0 1px 18px rgba(0, 0, 0, .25); }
.door-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-ghost { color: currentColor; border-color: currentColor; background: transparent; }

/* the scroll hint: a line that draws itself, then the word */
.door-hint { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; opacity: .75; }
.door-hint i { display: block; width: 1px; height: 34px; background: currentColor; transform-origin: top; animation: door-hint 2.4s ease-in-out infinite; }
@keyframes door-hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* The two cards: frosted glass behind the words only, so the room and the water stay clear.
   Faded by opacity alone, never visibility or display, so screen readers keep them (spec WI8);
   a faded card takes no tap (pointer-events is inherited from .door-over). */
.door-over {
  position: absolute; left: var(--gutter); right: var(--gutter-r); bottom: calc(var(--bar-h) + var(--safe-b) + 22px);
  display: grid; color: var(--ink); pointer-events: none;
}
.door-over > * {
  grid-area: 1 / 1; align-self: end; opacity: 0; margin: 0; padding: 18px 20px; border-radius: 20px;
  background: rgba(251, 252, 247, .74); -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15);
}
.door-card-1 { font: 500 clamp(19px, 4.9vw, 30px)/1.42 var(--display); max-width: 27em; text-wrap: pretty; }
.door-card-2 { display: grid; gap: 20px; }
.door-card-2 p { font: 500 clamp(28px, 7.4vw, 60px)/1.14 var(--display); max-width: 15em; text-wrap: balance; }
/* card 2 shows while its link has the focus, also when door.js never runs (end review T3);
   door.js's inline opacity wins once it runs */
.door-over > .door-card-2:focus-within { opacity: 1; pointer-events: auto; }

/* the AI notes: honest but quiet, plain text under the header at the labels' 14 px (spec SZ1) */
.door-ai-note, .door-room-note {
  position: absolute; right: var(--gutter-r); top: calc(var(--header-h) + var(--safe-t) + 6px);
  margin: 0; font-size: 14px; letter-spacing: .02em; pointer-events: none;
}
.door-ai-note { color: rgba(246, 243, 230, .6); }
.door-room-note { color: rgba(30, 43, 34, .5); opacity: 0; }
/* while the walk runs, the door's words, the cards and the notes lie over the inside, which comes
   after them in the markup so a screen reader reads them first (end review D3); before the walk
   the inside is closed, so the still door keeps its layers as they were */
.door-walking .door-intro, .door-walking .door-over, .door-walking .door-ai-note, .door-walking .door-room-note { z-index: 1; }

/* the side-by-side layout of a wide window (home.html:68): the words on the left */
@media (min-aspect-ratio: 1/1) and (min-width: 700px) {
  .door-intro { left: max(var(--gutter), 5vw); right: auto; width: min(36vw, 560px); top: 0; bottom: 0; align-content: center; padding-top: var(--header-h); }
  .door-intro h1 { font-size: clamp(34px, 3.9vw, 62px); }
  .door-veil { background: linear-gradient(to right, rgba(20, 16, 11, .78) 0%, rgba(20, 16, 11, .5) 30%, rgba(20, 16, 11, 0) 50%); }
  .door-over { left: max(var(--gutter), 5vw); right: auto; width: min(31vw, 470px); top: var(--header-h); bottom: 0; align-content: center; }
  .door-over > * { align-self: center; padding: 26px 28px; }
  /* 18 px at its smallest, where the mockup's is 17 px (spec difference 12) */
  .door-card-1 { font-size: clamp(18px, 1.4vw, 23px); }
  .door-card-2 p { font-size: clamp(28px, 2.7vw, 44px); }
  /* the room's AI note lies on the dark bark here: the door note's light text, so it can be read
     (spec difference 26, Uwe at G2); its size, place and box stay */
  .door-room-note { color: rgba(246, 243, 230, .6); }
}
/* below the header switch the booking bar shows in the side-by-side layout too (site.css), so
   the words are centred between the header and the bar */
@media (min-aspect-ratio: 1/1) and (min-width: 700px) and (max-width: 1159px) {
  .door-intro, .door-over { bottom: calc(var(--bar-h) + var(--safe-b)); }
}

/* the walk's look: the hint and no button at the door, which rides on card 2 */
[data-door="walk"] .door-intro .door-ctas { display: none; }

/* The walk itself, once static/js/door.js has started (class door-walking, one change, plan task
   2.4): the tall track the stage stays pinned in while the visitor walks through the door, and
   the quote hidden, since the walk tells it (home.html:18-20, sections.css:9-11). The start
   picture moves from its corner, as door.js's camera does (home.html:22). The mockup's
   will-change hints are left out: a layer of its own repaints the start picture with other
   pixels the moment the script starts, and the first screen must stay as it was (spec WI9). */
.door-walking .door-track { height: 310svh; }
.door-walking .door-stage { position: sticky; top: 0; }
.door-walking + .phil-wrap { display: none; }
.door-walking .door-start { transform-origin: 0 0; }

/* The still version (spec RM1, NJ1, DS1): the door's button, no hint, no cards, no film, no
   inside. */
html:not([data-door="walk"]) .door-hint,
html:not([data-door="walk"]) .door-walk,
html:not([data-door="walk"]) .door-inside,
html:not([data-door="walk"]) .door-room-note,
html:not([data-door="walk"]) .door-over { display: none; }
/* Its headline (spec difference 24, Uwe at G2, plan task 2.7) is the mockup's size wherever the
   door's words fit at that size between the header and the booking bar, and lowered only where
   they would not, never under 20 px; on the shortest screens the tagline goes first.
   CSS cannot measure a fit, so the rule computes it: the headline gets the height left between
   the header and the words' bottom edge (--still-room) after the tagline, the gaps and the button
   (--still-rest), shared by the lines it takes at the mockup's size (--still-lines), each 1.12
   of the font size. Where that share holds the mockup's size, min() keeps the mockup's; where it
   does not, the headline takes the share, and since a smaller headline never takes more lines,
   the words still fit. --still-lines is the headline's line count at the mockup's size, measured
   in Chromium at every width from 280 px in both languages (plan task 2.7); where it changes by
   single pixels of width the larger count is taken, so the words always fit. Measure it again
   after a change to the headline's words, the door's type, the header or the bar, as the head
   script's thresholds (plan task 2.5). */
html:not([data-door="walk"]) .door-intro h1 {
  --still-mockup: clamp(31px, 8.4vw, 68px);
  /* the words end 26 px above the booking bar */
  --still-room: calc(100svh - var(--header-h) - var(--safe-t) - var(--bar-h) - var(--safe-b) - 26px);
  /* the tagline's line (14.5 px at 1.6), the two 14 px gaps, the 52 px button and 1 px to spare */
  --still-rest: calc(14.5px * 1.6 + 2 * 14px + 52px + 1px);
  --still-lines: 5;
  font-size: min(var(--still-mockup), max(20px, calc((var(--still-room) - var(--still-rest)) / (1.12 * var(--still-lines)))));
}
@media (max-width: 338px) { html:not([data-door="walk"]):lang(es) .door-intro h1 { --still-lines: 6; } }
@media (max-width: 313px) { html:not([data-door="walk"]):lang(es) .door-intro h1 { --still-lines: 7; } }
@media (max-width: 309px) { html:not([data-door="walk"]):lang(en) .door-intro h1 { --still-lines: 6; } }
@media (min-width: 469px) { html:not([data-door="walk"]):lang(en) .door-intro h1 { --still-lines: 4; } }
/* On the shortest screens the tagline goes, and the headline runs the intro's whole width, so it
   takes fewer lines: at 568 x 320 the Spanish one needs four lines under the mockup's 15em cap
   and would run under the header even at 20 px (the lead's provisional ruling (a) of 2026-12-02,
   OKed by Uwe at G2) */
@media (max-height: 480px) {
  html:not([data-door="walk"]) .door-tagline { display: none; }
  html:not([data-door="walk"]) .door-intro h1 { max-width: none; --still-rest: calc(14px + 52px + 1px); }
}
/* the side-by-side layout: the words centred between the header and the bar, so the room loses
   the top safe area and the bar's 1 px border on both sides */
@media (min-aspect-ratio: 1/1) and (min-width: 700px) {
  html:not([data-door="walk"]) .door-intro h1 {
    --still-mockup: clamp(34px, 3.9vw, 62px);
    --still-room: calc(100svh - var(--header-h) - 2 * var(--safe-t) - var(--bar-h) - var(--safe-b) - 2px);
    --still-lines: 6;
  }
  html:not([data-door="walk"]):lang(en) .door-intro h1 { --still-lines: 5; }
}
@media (min-aspect-ratio: 1/1) and (min-width: 700px) and (max-width: 838px) { html:not([data-door="walk"]):lang(es) .door-intro h1 { --still-lines: 7; } }
@media (min-aspect-ratio: 1/1) and (min-width: 700px) and (max-width: 827px) { html:not([data-door="walk"]):lang(en) .door-intro h1 { --still-lines: 6; } }
/* from the header switch on there is no bar: the words are centred between the header and the
   window's bottom */
@media (min-aspect-ratio: 1/1) and (min-width: 1160px) {
  html:not([data-door="walk"]) .door-intro h1 { --still-room: calc(100svh - var(--header-h) - 2 * var(--safe-t)); }
}

/* the philosophy's quote right after the door, in the still flow (spec RM2; sections.css:9-11,
   hero-common.css:106-111); hidden during the walk (door-walking above) */
.phil-wrap { padding: 96px var(--gutter-r) 24px var(--gutter); background: var(--paper); }
.phil-inner { max-width: 1120px; margin: 0 auto; }
.phil { display: grid; gap: 20px; max-width: 46rem; margin: 0; }
.phil-title { font: 600 16px/1.4 var(--body); color: var(--muted); }
.phil blockquote { margin: 0; font: 500 clamp(25px, 2.91vw, 34px)/1.45 var(--display); text-wrap: pretty; }
/* 18 px, where the mockup's is 16 px (spec difference 12) */
.phil figcaption { font-size: 18px; color: var(--muted); }

/* ---------- the sections below the quote (spec HS1 to HS8; plan tasks 3.1 to 3.4) ---------- */

/* the eyebrow over a section's heading (sections.css:6), a label of SZ1, and the heading */
.eyebrow { margin: 0; font: 700 15px/1.3 var(--body); letter-spacing: .01em; color: var(--moss); }
.sec-title { margin: 0; font-family: var(--display); font-weight: 500; line-height: 1.08; text-wrap: balance; }

/* "Del campo a su pelo" (spec HS1, RM3, NJ1; differences 8, 11, 12; plan task 3.1), from
   sections.css:13-111. The page serves the flowing version, three cards each with its finished
   drawing, which is the version without JavaScript and under reduced motion; static/js/home.js
   either keeps it (class field-flowing) or pins the story (class field-pinned): one drawing
   between the tabs and the cards that grows through the steps while the stage stays on screen.
   The drawing's strokes and the cards move by opacity, transform and stroke only (spec HS8). */
.field { position: relative; background: var(--linen); }
.field-track { position: relative; }
.field-stage { position: relative; }
.field-head { display: grid; gap: 8px; }
.field-head h2 { font-size: clamp(32px, 8.6vw, 60px); }
.field-steps { list-style: none; margin: 0; padding: 0; display: grid; }
.field-step {
  display: grid; gap: 6px; padding: 18px 20px 20px; border-radius: 20px; background: rgba(251, 252, 247, .8);
  -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 12px 34px rgba(30, 43, 34, .1);
}
.field-step h3 { margin: 0; font: 500 clamp(25px, 6.6vw, 34px)/1.12 var(--display); }
.field-step p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 34em; }
/* the step's name over its heading, a label of SZ1 at the mockup's 15 px */
.field-step .field-step-name { font: 700 15px/1.3 var(--body); letter-spacing: .01em; color: var(--moss); }
.field .art { width: 100%; height: 100%; display: block; overflow: visible; }

/* the tabs (sections.css:23-29), buttons that show the progress and jump to their step: the
   mockup's 36 px row, each tab a 48 px tap target through 16/18 px padding and -6 px margins
   (the round 2 worker's retuned form, plan task 3.1; spec difference 12); the tab names are
   labels of SZ1 at the mockup's 14 px. The site's two-tone focus ring draws round them. */
.field-tab {
  -webkit-appearance: none; appearance: none; position: relative; flex: 1; max-width: 120px; min-height: 48px;
  margin: -6px 0; padding: 16px 2px 18px; border: 0; border-radius: 0; background: none; cursor: pointer;
  font: 600 14px/1 var(--body); color: var(--muted); text-align: left;
}
.field-tab::before, .field-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 2px; border-radius: 2px; background: var(--line); }
.field-tab::after { background: var(--moss); transform-origin: left; transform: scaleX(var(--f, 0)); }
.field-tab[aria-current="step"] { color: var(--ink); }

/* flowing (sections.css:102-109): the steps one under the other, each with its own drawing */
.field:not(.field-pinned) .field-stage { padding: 96px var(--gutter-r) 72px var(--gutter); display: grid; gap: 28px; }
.field:not(.field-pinned) .field-tabs, .field:not(.field-pinned) .field-art { display: none; }
.field:not(.field-pinned) .field-steps { gap: 44px; }
.field:not(.field-pinned) .step-art { width: min(240px, 66vw); aspect-ratio: 1; margin-bottom: 8px; }

/* pinned (sections.css:14-60): the stage stays on screen while the visitor scrolls the track; the
   head at the top, the drawing below it (sized by home.js outside the desktop layout), the cards
   stacked above the booking bar, one shown at a time */
.field-pinned .field-track { height: 350svh; }
.field-pinned .field-stage { position: sticky; top: 0; height: 100svh; min-height: 620px; overflow: hidden; }
.field-pinned .field-head { position: absolute; left: var(--gutter); right: var(--gutter-r); top: calc(var(--header-h) + var(--safe-t) + 10px); z-index: 2; }
.field-pinned .field-tabs { display: flex; gap: 6px; margin: 6px 0 0; }
.field-pinned .field-art {
  --art: min(78vw, 41svh, 470px); position: absolute; left: 50%; top: calc(var(--header-h) + var(--safe-t) + 150px);
  width: var(--art); height: var(--art); transform: translateX(-50%); z-index: 1;
}
.field-pinned .field-steps { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter-r); bottom: calc(var(--bar-h) + var(--safe-b) + 14px); }
.field-pinned .field-step { grid-area: 1 / 1; align-self: end; }
.field-pinned .step-art { display: none; }

/* pinned outside the desktop layout, the round 2 worker's retuned form (plan task 3.1; spec
   difference 11): a one-line 28 px heading, no eyebrow and no step names, the tabs' row as tight
   as their 48 px tap targets allow, the cards 12 px from the edges, step text 18 px */
@media not all and (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .field-pinned .field-head { top: calc(var(--header-h) + var(--safe-t) + 4px); gap: 2px; }
  .field-pinned .field-head .eyebrow, .field-pinned .field-step-name { display: none; }
  .field-pinned .field-head h2 { font-size: 28px; line-height: 1.1; }
  .field-pinned .field-tabs { margin: 0; gap: 8px; }
  .field-pinned .field-steps { left: 12px; right: 12px; bottom: calc(var(--bar-h) + var(--safe-b) + 10px); }
  .field-pinned .field-step { padding: 12px 16px 14px; gap: 2px; border-radius: 18px; }
  .field-pinned .field-step h3 { font-size: 24px; }
  .field-pinned .field-step p { line-height: 1.42; }
}

/* the desktop layout (sections.css:111-119): pinned, the words on the left and the drawing on the
   right; flowing, the three cards side by side */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .field-head h2 { font-size: clamp(40px, 3.9vw, 62px); }
  .field-pinned .field-head { left: max(var(--gutter), 6vw); right: auto; width: min(42vw, 600px); top: calc(var(--header-h) + 11vh); }
  .field-pinned .field-steps { left: max(var(--gutter), 6vw); right: auto; width: min(36vw, 500px); bottom: auto; top: calc(var(--header-h) + 11vh + 190px); }
  .field-pinned .field-step { align-self: start; padding: 24px 26px 26px; }
  .field-pinned .field-art { --art: min(74vh, 44vw, 660px); left: auto; right: max(var(--gutter), 7vw); top: calc(50% + var(--header-h) / 2); transform: translateY(-50%); }
  .field:not(.field-pinned) .field-stage { max-width: 1200px; margin: 0 auto; }
  /* the columns may be narrower than the 240 px drawing, which then takes the card's width, so
     the three cards fit from 900 px on (the mockup's 1fr columns run 48 px past a 900 px window) */
  .field:not(.field-pinned) .field-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .field:not(.field-pinned) .step-art { max-width: 100%; }
}

/* the drawing's parts (sections.css:66-100; the round frame and the ring are not ported) */
.a-sun { fill: var(--amber); opacity: .85; }
.a-hill1 { fill: #CCDABF; } .a-hill2 { fill: #A3BC94; } .a-soil { fill: #668A6C; }
.a-row { fill: none; stroke: #668A6C; stroke-width: 2; stroke-linecap: round; opacity: .55; }
.a-furrow { fill: none; stroke: #2D4F3A; stroke-opacity: .28; stroke-width: 1.5; }
.a-root { fill: none; stroke: #F6F3E6; stroke-opacity: .75; stroke-width: 1.6; stroke-linecap: round; }
.a-stem { fill: none; stroke: var(--moss); stroke-width: 3.2; stroke-linecap: round; }
.a-stem.thin { stroke-width: 2.2; }
.a-leaf { fill: var(--moss); } .a-leaf2 { fill: #4F7759; }
.a-bottle { fill: rgba(251, 252, 247, .6); stroke: var(--moss); stroke-width: 2.4; stroke-linejoin: round; }
.a-line { fill: none; stroke: var(--moss); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.a-cap { fill: var(--moss); }
.a-oil { fill: var(--amber); opacity: .32; }
.a-glint { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; opacity: .7; }
.a-wl { fill: var(--moss); stroke: var(--moss); stroke-width: 1.3; stroke-linejoin: round; }
.a-wl.empty { fill: none; stroke-dasharray: 2.5 2.5; }
.a-branch { fill: none; stroke: var(--moss); stroke-width: 1.8; stroke-linecap: round; }
.a-strand { fill: none; stroke-width: 2.8; stroke-linecap: round; }
.a-tie { fill: var(--moss); }
.a-shadow { fill: #2D4F3A; opacity: .14; }
.a-bowl { fill: #FBFCF7; stroke: var(--moss); stroke-width: 2.6; stroke-linejoin: round; }
.a-rimfill { fill: #EEF2E7; }
.a-rim { fill: none; stroke: var(--moss); stroke-width: 2.6; }
.a-paint { fill: #A8663D; }
.a-swirl { fill: none; stroke: #D39A6C; stroke-width: 2.4; stroke-linecap: round; }
.a-ripple { fill: none; stroke: #F6E3B8; stroke-width: .6; }
.a-drop { fill: var(--amber); }
.a-tube { fill: #FBFCF7; stroke: var(--moss); stroke-width: 2.4; stroke-linejoin: round; }
.a-tubeend { fill: var(--moss); }
.a-tubelab { fill: #A8663D; }
.a-ribbon { fill: none; stroke: #A8663D; stroke-width: 7; stroke-linecap: round; }
.a-handle { fill: var(--moss); }
.a-ferrule { fill: #C9CFC2; stroke: var(--moss); stroke-width: 1.2; }
.a-bristle { fill: #3A3027; }
.a-bristletip { fill: #A8663D; }

/* The products band (spec HS2; differences 12, 15; plan task 3.2), from sections.css:376-394:
   the packshots on a soft glow without a frame, the words beside them from 900 px, and a big
   link for the 50+. No permission badge; the focus ring is the site's two-tone one (difference
   22), not the mockup's amber outline. */
.band { background: var(--linen); }
.band-inner { max-width: 1160px; margin: 0 auto; padding: 72px var(--gutter-r) 72px var(--gutter); display: grid; gap: 26px; }
.band-art { position: relative; display: grid; place-items: end center; padding: 18px 0 0;
  background: radial-gradient(closest-side, #DCE7D0, rgba(220, 231, 208, 0)); }
.band-art img { width: 100%; max-width: 620px; height: auto; }
.band-txt { display: grid; gap: 12px; max-width: 34rem; }
.band-txt h2 { font-size: clamp(34px, 8.4vw, 56px); }
.band-lead { margin: 0; font-size: 19px; line-height: 1.6; color: #3F4D42; }
/* 18 px, where the mockup's is 17 px (spec difference 12) */
.band-lines { margin: 0; font-size: 18px; font-weight: 700; color: var(--moss); }
/* the mockup's pill and 56 px height, its text at the button size of 17 px where the mockup's is
   19 px (decisions.md:32, spec SZ1; the lead's ruling on task 3.2) */
.band-cta { justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; margin-top: 6px; padding: 0 26px; border-radius: 28px;
  border: 2px solid var(--moss); color: var(--moss); font: 700 17px/1 var(--body); text-decoration: none; transition: background-color .2s, color .2s; }
.band-cta svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.band-cta:hover { background: var(--moss); color: #fff; }
@media (min-width: 900px) {
  .band-inner { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; column-gap: 56px; padding: 96px var(--gutter-r) 96px var(--gutter); }
  .band-art { order: 2; }
  .band-txt h2 { font-size: clamp(40px, 3.8vw, 56px); }
}

/* "Por qué un salón orgánico", four windows on a vine (spec HS3, HS8, RM3; difference 12; plan
   task 3.2), from sections.css:119-181. The page serves the windows open with their icons, which
   is the version without JavaScript and under reduced motion. static/js/home.js sets home-live on
   <html>, builds the vine and opens each window (class on) as the vine reaches it; every start
   state that hides something is written under .home-live, so a home.js that never arrives leaves
   them open (review T22). Motion by opacity, transform and stroke only (spec HS8). */
.why { background: var(--paper); }
.why-inner { max-width: 1160px; margin: 0 auto; padding: 104px var(--gutter-r) 40px var(--gutter); display: grid; gap: 52px; }
.why-head { display: grid; gap: 10px; max-width: 40rem; }
.why-head h2 { font-size: clamp(32px, 8vw, 58px); }
/* 18 px, where the mockup's is 16.5 px (spec difference 12) */
.why-sub { margin: 0; color: var(--muted); font-size: 18px; }

.why-list { position: relative; display: grid; gap: 52px; }
.vine { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; z-index: 0; }
.v-stem { fill: none; stroke: #668A6C; stroke-width: 1.7; stroke-linecap: round; }
.v-leaf { fill: #668A6C; opacity: .9; }
.v-leaf.b { fill: #A3BC94; }

.why-item { position: relative; z-index: 1; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px; align-items: center; }
.why-item.alt { grid-template-columns: minmax(0, 1fr) 112px; }
.why-item.alt .why-orb { order: 2; }
/* no round window (Uwe 2026-11-27): the drawing sits on the page with a soft glow that has no edge */
.why-orb { width: 112px; aspect-ratio: 1; max-width: 100%; display: grid; place-items: center;
  background: radial-gradient(closest-side, #E3ECD8, rgba(227, 236, 216, 0)); transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1); }
.why-orb svg { width: 80%; height: 80%; overflow: visible; }
.why-txt { display: grid; gap: 6px; transition: opacity .8s ease .25s, transform .8s ease .25s; }
.why-txt h3 { margin: 0; font: 500 clamp(24px, 6.2vw, 30px)/1.15 var(--display); text-wrap: balance; }
.why-txt p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--muted); }

/* the icons: line drawings that draw themselves when the vine reaches them */
.ico .d { fill: none; stroke: var(--moss); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ico .t { stroke-width: 1.5; }
.ico .f { fill: var(--paper); stroke: none; }
.ico .am { fill: var(--amber); stroke: none; opacity: .75; }
.ico .dot { fill: var(--moss); stroke: none; }
.ico .dash { stroke-dasharray: 3 4; }
.home-live .why-item .ico .d:not(.dash) { stroke-dasharray: 1 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.5s cubic-bezier(.4, 0, .2, 1) .2s; }
.home-live .why-item .ico .am, .home-live .why-item .ico .dot, .home-live .why-item .ico .dash { transition: opacity .6s ease 1s; }
.home-live .why-item:not(.on) .ico .d:not(.dash) { stroke-dashoffset: 1; }
.home-live .why-item:not(.on) .ico .am, .home-live .why-item:not(.on) .ico .dot, .home-live .why-item:not(.on) .ico .dash { opacity: 0; }
.home-live .why-item:not(.on) .why-orb { opacity: 0; transform: scale(.85); }
.home-live .why-item:not(.on) .why-txt { opacity: 0; transform: translateY(14px); }
/* quiet idle motion once open; reduced motion stops it (site.css) */
.ico .spin, .ico .tilt, .ico .sway, .ico .bl1, .ico .bl2 { transform-box: view-box; }
.ico .spin { transform-origin: 82px 82px; } .why-item.on .ico .spin { animation: why-spin 16s linear infinite; }
.ico .tilt { transform-origin: 70px 62px; } .why-item.on .ico .tilt { animation: why-tilt 4.5s ease-in-out infinite alternate; }
.ico .sway { transform-origin: 52px 80px; } .why-item.on .ico .sway { animation: why-sway 5s ease-in-out infinite alternate; }
.ico .bl1, .ico .bl2 { transform-origin: 60px 60px; }
.why-item.on .ico .bl1 { animation: why-snip1 3.2s ease-in-out infinite; } .why-item.on .ico .bl2 { animation: why-snip2 3.2s ease-in-out infinite; }
@keyframes why-spin { to { transform: rotate(360deg); } }
@keyframes why-tilt { from { transform: rotate(-7deg); } to { transform: rotate(5deg); } }
@keyframes why-sway { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
@keyframes why-snip1 { 0%, 60%, 100% { transform: rotate(0); } 75% { transform: rotate(-9deg); } }
@keyframes why-snip2 { 0%, 60%, 100% { transform: rotate(0); } 75% { transform: rotate(9deg); } }

@media (min-width: 600px) and (max-width: 899px) {
  .why-list { max-width: 640px; }
  .why-item, .why-item.alt { grid-template-columns: 132px minmax(0, 1fr); }
  .why-item.alt { grid-template-columns: minmax(0, 1fr) 132px; }
  .why-orb { width: 132px; }
}
@media (min-width: 900px) {
  .why-inner { padding-top: 128px; gap: 64px; }
  .why-head h2 { font-size: clamp(40px, 3.8vw, 58px); }
  .why-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; }
  .why-item, .why-item.alt { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; align-items: start; gap: 22px; }
  .why-item.alt .why-orb { order: 0; }
  .why-orb { width: min(176px, 100%); }
  .why-txt { justify-items: center; }
  .why-txt h3 { font-size: clamp(24px, 2vw, 30px); }
}

/* A text link with its arrow (sections.css:191-193), the letter's "Su camino hacia el salón
   orgánico": the mockup's look, at 17 px with a 48 px tap area where the mockup's is 15 px and
   44 px (spec differences 12, 13). */
.all-link { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 48px;
  color: var(--moss); font-weight: 700; font-size: 17px; text-decoration: none; }
.all-link::after { content: "→"; transition: transform .25s; }
.all-link:hover::after { transform: translateX(3px); }

/* "Sobre Antonio", the letter (spec HS4, RM3; differences 12 to 14; plan task 3.3), from
   sections.css:273-343 in the mockup's handwritten version (?letter=a, its default): the portrait
   runs to the page edge and fades into it; the letter lies on a warm sheet with a fine grain, a
   hint of tilt and a pressed sprig, all in Patrick Hand in pen blue, the signature in Allura.
   The page serves the letter written, which is the version without JavaScript and under reduced
   motion; static/js/home.js sets home-live and lets the letter appear (class on) as it comes into
   view, the signature writing itself, so every start state that hides something is written under
   .home-live (review T22). Motion by opacity, transform, clip-path and stroke only (spec HS8).
   The sheet's grain is static/img/paper-grain.svg: the mockup's inline data address as a file of
   its own, since the content-security policy allows images from the site only. */
.about { background: var(--paper); overflow: hidden; overflow: clip; }
/* The speed try of plan task 2.5 (2): the browser lays the section out only as it nears the
   screen, so the letter's faces (Patrick Hand, Allura) and the sheet's grain are not asked for
   beside the start picture. The kept size is about the section's own (1,110 to 1,790 px measured
   at 320 to 1,920 px wide), and `auto` keeps the real one once it has been laid out, so the page
   below does not jump. An extra without replacement on older phones (floor.md), which lay the
   section out at once. */
.about { content-visibility: auto; contain-intrinsic-size: auto 1500px; }
@media (min-width: 900px) { .about { contain-intrinsic-size: auto 1200px; } }
/* not a scroll anchor: content-visibility's stand-in height would move a jump target below it */
.about { overflow-anchor: none; }
.about-inner { max-width: 1600px; margin: 0 auto; padding: 0 var(--gutter-r) 72px var(--gutter); display: grid; justify-items: start; }
.about-door { position: relative; width: calc(100% + var(--gutter) + var(--gutter-r)); margin: 0 calc(-1 * var(--gutter-r)) 0 calc(-1 * var(--gutter)); }
.about-photo { position: relative; width: 100%; aspect-ratio: 1; max-height: 64svh; background: var(--paper);
  -webkit-mask-image: linear-gradient(transparent, #000 8%, #000 62%, transparent); mask-image: linear-gradient(transparent, #000 8%, #000 62%, transparent); }
.about-photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 0;
  -webkit-mask-image: linear-gradient(#000 58%, transparent 96%); mask-image: linear-gradient(#000 58%, transparent 96%); }
/* the crop fitted to the built-in AI portrait, at both widths; another photo stays centred at the
   top, so a face is not cut off-centre (administration spec R4) */
.about-photo img.is-ai-portrait { object-position: 56% 0; }
/* the portrait's note: plain text in the walk-in notes' style at the labels' 14 px (spec
   difference 14), where the mockup's badge sat */
.about-note { position: absolute; left: var(--gutter); bottom: 30%; margin: 0; font-size: 14px; letter-spacing: .02em; color: rgba(30, 43, 34, .5); pointer-events: none; }
.letter { position: relative; margin-top: 72px; width: 100%; max-width: 40rem; display: grid; gap: 16px;
  padding: 30px 24px; border-radius: 3px; border: 1px solid #E8DFC4;
  background: url(../img/paper-grain.svg), radial-gradient(ellipse at 15% 0%, #FFFEF8, #FAF3DF 85%);
  box-shadow: 0 1px 1px rgba(60, 50, 20, .08), 0 3px 8px -2px rgba(60, 50, 20, .1), 0 28px 50px -24px rgba(30, 43, 34, .3);
  --pen: #23405A; --hand: "Patrick Hand", "Segoe Print", var(--body); }
.about-door + .letter { margin-top: -12svh; }
.letter p, .letter .letter-hi { margin: 0; font: 400 24px/1.45 var(--hand); color: var(--pen); }
.letter .letter-hi { font-size: clamp(42px, 11vw, 56px); line-height: 1.05; margin-bottom: 4px; }
.letter .letter-place { justify-self: end; margin: -8px -4px -4px 0; opacity: .85; }
.letter .letter-bye { margin-top: 6px; }
.letter .letter-sig { margin-top: -4px; font: 400 clamp(54px, 14vw, 72px)/1 "Allura", var(--display); }
.letter-sig span { display: inline-block; padding: 0 .25em .05em 0; }
.letter .letter-ps { padding-right: 64px; }
.sig-line { display: block; width: 2.4em; height: auto; margin: -.16em 0 0 .1em; opacity: .6; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.letter-sprig { position: absolute; right: 14px; bottom: 18px; width: 58px; height: auto; color: #7E9A80; opacity: .55; transform: rotate(14deg); pointer-events: none;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* the link under the letter: its paragraph at the body's 18 px, the link at 17 px; positioned,
   so its focus ring is painted over the sheet's shadow rather than under it */
.about-more { position: relative; margin: 22px 0 0; font-size: 18px; }
/* the signature writes itself once the letter is in view, the rest of the letter rising in; the
   transitions sit on the way in only, so the start state is taken at once, also while the
   section is not laid out yet */
.home-live .letter .sig-line path { stroke-dasharray: 240; stroke-dashoffset: 0; }
.home-live .letter.on .sig-line path { transition: stroke-dashoffset 1s ease 1.6s; }
.home-live .letter:not(.on) .sig-line path { stroke-dashoffset: 240; }
.home-live .letter-sig span { clip-path: inset(0 0 0 0); }
.home-live .letter.on .letter-sig span { transition: clip-path 1.6s cubic-bezier(.55, .1, .35, 1) .3s; }
.home-live .letter:not(.on) .letter-sig span { clip-path: inset(0 100% 0 0); }
.home-live .letter.on > :not(.letter-sig) { transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.home-live .letter:not(.on) > :not(.letter-sig) { opacity: 0; transform: translateY(14px); }
/* the sprig keeps its own turn while it rises in */
.home-live .letter:not(.on) > .letter-sprig { transform: translateY(14px) rotate(14deg); }
@media (min-width: 900px) {
  .about-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); padding: 0 var(--gutter-r) 0 0; align-items: start; }
  .about-door { grid-column: 1; grid-row: 1 / span 2; align-self: stretch; justify-self: stretch; width: auto; margin: 0; }
  .about-photo { height: 100%; aspect-ratio: auto; max-height: none; min-height: 760px;
    -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent), linear-gradient(transparent, #000 6%, #000 80%, transparent); -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, #000 60%, transparent), linear-gradient(transparent, #000 6%, #000 80%, transparent); mask-composite: intersect; }
  .about-photo img.is-ai-portrait { object-position: 60% 0; }
  .about-note { bottom: 14%; }
  .letter, .about-door + .letter { grid-column: 2; grid-row: 1; margin: 128px 0 0 -12%; max-width: 42rem; padding: 52px 60px 46px; transform: rotate(-.6deg); }
  .letter p { font-size: 26px; }
  .letter-sprig { width: 74px; right: 28px; bottom: 30px; }
  .about-more { grid-column: 2; grid-row: 2; margin: 22px 0 96px calc(-12% + 56px); }
  /* without a portrait the letter stands alone in the middle */
  .about-solo .about-inner { grid-template-columns: minmax(0, 1fr); padding-left: var(--gutter); justify-items: center; }
  .about-solo .letter, .about-solo .about-more { grid-column: 1; margin-left: 0; }
}

/* Services at a glance (spec HS5, HS8, RM3; differences 12, 13, 17; plan task 3.4), from
   sections.css:183-233 and :347-349: one card per category with step 1's tab drawing, the price and
   time chips (the labels .svc-chip, at the mockup's 16 px), and the services with their own time
   and price. Every other text at 18 px, where the mockup's are 15.5 to 17.5 px (difference 12);
   a service's name keeps a 48 px tap area through padding. The page serves the cards whole, which
   is the version without JavaScript and under reduced motion; static/js/home.js sets home-live,
   gives each card its --i and each line its --k from their data-* attributes, and lets each card
   rise in (class on) as it comes into view, its drawing drawing itself, so every start state that
   hides something is written under .home-live (review T22). Motion by opacity, transform and
   stroke only (spec HS8). */
.svc { background: var(--paper); }
.svc-inner { max-width: 1160px; margin: 0 auto; padding: 88px var(--gutter-r) 40px var(--gutter); display: grid; gap: 26px; }
.svc-head { display: grid; gap: 10px; max-width: 40rem; }
.svc-head h2 { font-size: clamp(32px, 8vw, 58px); }
.svc-sub { margin: 0; color: var(--muted); }
.svc-more { margin: 0; }
.svc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px 6px 9px; border-radius: 999px; background: var(--linen); border: 1px solid var(--line);
  font: 700 16px/1.1 var(--body); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.svc-chip svg { width: 15px; height: 15px; fill: none; stroke: var(--moss); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.svc-chip.strong { background: var(--moss); border-color: var(--moss); color: #fff; }
.svc-chip.strong svg { stroke: #fff; }
.cb-grid { display: grid; gap: 18px; }
.cb-card { display: grid; grid-template-rows: auto 1fr; border-radius: 26px; background: var(--linen); border: 1px solid var(--line); overflow: hidden; }
.cb-art { position: relative; height: 122px; display: grid; place-items: end center; padding-top: 16px; }
.cb-art::before { content: ""; position: absolute; left: 50%; bottom: -30px; width: min(90%, 340px); height: 150px; transform: translateX(-50%);
  background: radial-gradient(closest-side, #DCE7D0, rgba(220, 231, 208, 0)); }
.cb-art svg { position: relative; width: 138px; height: 104px; }
.cb-card .ico .d { stroke-width: 2.6; }
.cb-card .ico .t { stroke-width: 1.7; }
.cb-card .ico .am { opacity: .7; }
.cb-body { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px 14px; background: var(--paper); border-top: 1px solid var(--line); }
.cb-body > .all-link { margin-top: auto; align-self: flex-start; }
.cb-body h3 { margin: 0; font: 500 30px/1.1 var(--display); }
.cb-desc { margin: -4px 0 0; color: var(--muted); font-size: 18px; }
.cb-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cb-list { list-style: none; margin: 2px 0 0; padding: 0; display: grid; }
.cb-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 11px 0; border-top: 1px dashed var(--line); font-size: 18px; }
.cb-list .n { display: grid; gap: 2px; font-weight: 700; }
.cb-list .n .tm { font-weight: 400; color: var(--muted); }
.cb-list .n .dsc { font-weight: 400; line-height: 1.45; color: #3F4D42; }
.cb-list .p { font: 700 18px/1.2 var(--body); white-space: nowrap; font-variant-numeric: tabular-nums; }
/* the service's name opens its page; padding gives it a 48 px tap area without moving the lines */
.cb-list .nm { display: block; padding: 12px 0; margin: -12px 0; line-height: 1.35; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.cb-list .nm:hover { text-decoration-color: var(--moss); }
/* the reveal: the transitions sit on the way in only, so a card the reader already sees when
   home.js arrives is marked at once and nothing moves */
.home-live .cb-card .ico .d { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.home-live .cb-card.on { transition: opacity .8s ease calc(var(--i, 0) * 120ms), transform .8s cubic-bezier(.2, .7, .2, 1) calc(var(--i, 0) * 120ms); }
.home-live .cb-card.on .cb-art::before { transition: opacity 1.2s ease calc(var(--i, 0) * 120ms); }
.home-live .cb-card.on .ico .d { transition: stroke-dashoffset 1.6s cubic-bezier(.4, 0, .2, 1) calc(var(--i, 0) * 120ms + .2s); }
.home-live .cb-card.on .ico .am { transition: opacity .6s ease 1.2s; }
.home-live .cb-card.on .cb-list li { transition: opacity .6s ease calc(var(--i, 0) * 120ms + var(--k, 0) * 90ms + .45s); }
/* a card reached by Tab (class at-once, home.js) shows with its lines at once (end review T4) */
.home-live .cb-card.at-once, .home-live .cb-card.at-once .cb-list li { transition: none; }
.home-live .cb-card:not(.on) { opacity: 0; transform: translateY(26px); }
.home-live .cb-card:not(.on) .cb-art::before { opacity: 0; }
.home-live .cb-card:not(.on) .ico .d { stroke-dashoffset: 1; }
.home-live .cb-card:not(.on) .ico .am { opacity: 0; }
.home-live .cb-card:not(.on) .cb-list li { opacity: 0; }
@media (min-width: 900px) {
  .svc-inner { padding-top: 120px; }
  .svc-head h2 { font-size: clamp(40px, 3.8vw, 58px); }
  .cb-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
  .cb-art { height: 150px; }
  .cb-art::before { height: 180px; width: min(96%, 380px); }
  .cb-art svg { width: 170px; height: 128px; }
}

/* Antes y después (spec HS6; plan task 3.4), from sections.css:351-374: the pairs side by side,
   no slider, soft corners only; the tags are the labels .ba-tag at the mockup's 15 px. No motion,
   as the mockup. The service link keeps a 48 px tap area through padding. */
.ba { background: var(--linen); }
.ba-inner { max-width: 1160px; margin: 0 auto; padding: 96px var(--gutter-r) 56px var(--gutter); display: grid; gap: 28px; }
.ba-head { display: grid; gap: 10px; max-width: 40rem; }
.ba-head h2 { font-size: clamp(32px, 8vw, 58px); }
.ba-sub { margin: 0; color: var(--muted); font-size: 18px; }
.ba-grid { display: grid; gap: 36px; }
.ba-pair { margin: 0; display: grid; gap: 12px; }
.ba-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ba-img { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #E9EEE2, #D5DFCB 70%); }
.ba-img.ba-a { background: radial-gradient(120% 90% at 50% 0%, #F3EBD9, #E2D3B4 70%); }
.ba-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ba-tag { position: absolute; left: 10px; bottom: 10px; padding: 5px 12px; border-radius: 999px; background: rgba(251, 252, 247, .92); color: var(--ink); font: 700 15px/1.2 var(--body); }
/* a caption's long word breaks rather than widening the page (spec R2, review T4) */
.ba-pair figcaption { font-size: 18px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.ba-pair figcaption a { display: inline-block; padding: 12px 0; margin: -12px 0; color: var(--moss); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.ba-pair figcaption a::after { content: " →"; }
@media (min-width: 900px) {
  .ba-inner { padding: 120px var(--gutter-r) 80px var(--gutter); }
  .ba-head h2 { font-size: clamp(40px, 3.8vw, 58px); }
  .ba-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
}

/* The texts Antonio edits in "Textos" (administration plan 3.1): a long word or address breaks
   rather than widening the page or being cut off by the letter's sheet (administration spec R2,
   home review T12), overflow-wrap: anywhere being on the floor (floor.md) */
.field-step h3, .field-step p, .band-lead, .band-lines, .why-txt h3, .why-txt p, .svc-sub, .ba-sub,
.letter p, .letter .letter-hi { overflow-wrap: anywhere; }
