@import url('./tokens.css');
@import url('./fonts.css');
@import url('../lib/accordion-gallery.css');
@import url('../lib/ratio-row.css');
@import url('../lib/edge-light.css');
@import url('../lib/hex-grid.css');
@import url('../lib/ghost-word.css');
@import url('../lib/emboss-heading.css');
@import url('../lib/gradient-sweep-type.css');

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
img,svg,canvas{display:block;max-width:100%}
img{height:auto}
button,input,textarea,select{font:inherit;color:inherit}

body{background:var(--paper);color:var(--ink);
  font-family:var(--f-body);font-size:var(--t-body);line-height:var(--lh-body);
  font-weight:var(--fw-body);letter-spacing:var(--ls-body);word-spacing:var(--ws-body);
  overflow-x:clip;-webkit-font-smoothing:antialiased}

.wrap{width:min(100% - var(--gutter)*2,var(--max));margin-inline:auto}
.section{padding-block:var(--section-y)}
.measure{max-width:var(--measure)}

h1,h2,h3{font-family:var(--f-display);font-weight:600;letter-spacing:var(--tr-tight);
  text-wrap:balance;max-width:var(--measure-head);line-height:1.06}
h2{font-size:var(--t-h2)}
h3{font-size:1.3rem;line-height:1.2}
/* floor: more space above a heading than below it */
h2+p,h3+p{margin-top:.85em}
p+p{margin-top:.9em}
h1 em,h2 em{font-style:italic;color:var(--accent)}
.lede{font-size:1.14rem;color:var(--ink-2);max-width:52ch}
.dim{color:var(--ink-2)}

/* ─── Class C ─────────────────────────────────────────────────────── */
/* ─── buttons ───────────────────────────────────────────────────────
   The fault in the first version was not the colour — it was that a flat fill
   with one radius obeys NO light, on a page where every other surface does.
   These are lit from above: a bright top edge, a shaded underside, and a cast
   shadow tinted from the accent's own hue rather than grey, because a grey
   shadow under a warm object is a light source the page does not have. */
/* ⚠ THE BUTTON IS METAL — E-23 metal-surface, terracotta preset. The teardown
   bans this on affordances by default and Ivan overrode it, so the thing the
   ban is actually about got measured instead of assumed: the sheen crosses
   light and dark within a few pixels, and no fixed label colour survives that.
   This metal was derived light enough that its DARKEST stop still clears
   6.46:1 against black — so the label is black, not the old --on-accent, and
   it holds everywhere on the sheen rather than only on the bright arcs.
   The transparent border is the ring the cast shadow is painted into; that is
   what lets the whole control be one element with no pseudo. */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.6em;
  --btn-y:0px; --btn-s:1;
  /* 0 = sin anillo transparente y por tanto sin sombra proyectada */
  --metal-lift:0em;
  --metal-pad:1.05em 1.7em;
  color:#000;
  font-weight:700;font-size:1rem;letter-spacing:-0.005em;
  border:0;
  border-radius:var(--radius);
  text-decoration:none;cursor:pointer;
  transform:translateY(var(--btn-y)) scale(var(--btn-s));
  transition:transform 160ms ease-out, box-shadow 160ms ease-out, filter 160ms ease-out}
.btn,.btn:link,.btn:visited{color:#000}

/* ⚠ CARVED **AND** TEXTURED, WHICH CANNOT BOTH USE text-shadow. The texture is
   a background clipped to the glyphs, so the fill is transparent — and a
   text-shadow paints THROUGH a transparent glyph and shows up inside the
   letter as a ghost. `filter: drop-shadow()` works off the painted alpha
   instead, so it traces the glyph edges and the carve survives the clip.
   The engraving reads because the light catch sits BELOW the letter and the
   dark line ABOVE it: on a surface lit from above, the lower inner wall of a
   groove is the part that catches light. Invert those two and it embosses. */
.btn__t{
  /* machining marks, fine and low-contrast: the surface is metal, so a grain
     inside the engraving is true to the material rather than decoration */
  background-image:repeating-linear-gradient(74deg,
    #000 0 1.5px, #0e0e0e 1.5px 3px);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 1px 0 rgba(255,255,255,.55))
         drop-shadow(0 -1px 0 rgba(0,0,0,.42));}
@supports not (background-clip:text){
  /* without the clip the fill would be invisible, so fall back to solid ink */
  .btn__t{color:#000;background:none;filter:none}
}
@media (hover:hover) and (pointer:fine){
  /* hover instant on, 150ms off — emil-anim's rule; a fade IN on hover reads
     as lag because the pointer is already there */
  /* metal does not change colour on hover — it catches more light. Brightening
     the whole surface keeps the material honest where a background swap would
     have made it paint again. */
  /* the old hover look is now the DEFAULT, baked into the preset rather than
     applied as a permanent filter — a filter would cost a compositing layer and
     leave nowhere to go on hover. So hover keeps a smaller lift of its own. */
  .btn:hover{--btn-y:-1px;transition-duration:0ms;filter:brightness(1.05);
    box-shadow:
      inset 0 0 0 1px var(--metal-edge),
      inset 0  1px 2px rgba(255,255,255,.62),
      inset 0 -1px 2px rgba(0,0,0,.5)}
}
/* pressed: the object goes INTO the page, so the cast shadow collapses to
   contact. Scale alone reads as a shrinking sticker. */
.btn:active{--btn-y:1px;--btn-s:.985;transition-duration:60ms;
  box-shadow:
    inset 0 1px 0 oklch(from var(--accent) calc(l + .06) c h / .5),
    inset 0 2px 5px oklch(from var(--accent) .28 c h / .30),
    0 1px 1px oklch(from var(--accent) .30 c h / .22)}

/* ── the ghost. Its MATERIAL is chosen by what is behind it, which is the
   whole rule in techniques/glass-family: glass only works when there is
   something worth seeing through. On bone there is not — so on paper it is a
   hairline and a tint, and over the film it becomes reeded glass. Same shape,
   same weight, two materials. That is a system; glass everywhere is not. */
.btn--ghost{background:oklch(from var(--ink) l c h / .06);color:var(--ink);
  box-shadow:inset 0 0 0 1px oklch(from var(--ink) l c h / .22),
             0 1px 2px oklch(from var(--ink) l c h / .10)}
@media (hover:hover) and (pointer:fine){
  .btn--ghost:hover{background:oklch(from var(--ink) l c h / .11);
    box-shadow:inset 0 0 0 1px oklch(from var(--ink) l c h / .34),
               0 3px 8px -2px oklch(from var(--ink) l c h / .16)}}
.btn--ghost:active{box-shadow:inset 0 0 0 1px oklch(from var(--ink) l c h / .30),
  inset 0 2px 5px oklch(from var(--ink) l c h / .12)}
:where(a,button,input,textarea,select,summary):focus-visible{outline:2px solid var(--accent);outline-offset:3px}

/* ─── nav ─────────────────────────────────────────────────────────── */
/* ⚠ fixed, NOT sticky. A sticky nav sits IN the flow and reserves its own
   height, so the hero began 84px down and the film never reached the top of
   the viewport — the cream strip above it was the page ground showing through
   a nav that was already transparent. Fixed takes it out of flow; the hero is
   the first thing on the page and owns the full viewport. */
.nav{position:fixed;left:0;right:0;top:0;z-index:60;display:flex;align-items:center;gap:26px;
  padding:14px var(--gutter);
  background:oklch(from var(--paper) l c h / .86);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  border-bottom:1px solid var(--rule)}
.nav__brand{font-family:var(--f-display);font-weight:600;font-size:1.34rem;
  letter-spacing:-0.03em;text-decoration:none;color:inherit}
.nav__links{display:flex;gap:24px;margin-left:auto;align-items:center}
.nav__links a{color:var(--ink-2);text-decoration:none;font-size:.92rem;
  transition:color 150ms ease-out}
/* the nav link rule was winning over .btn and painting ink-2 on oxblood —
   measured at 1.93:1, effectively unreadable. The CTA keeps its own colour. */
.nav__links a.btn{color:var(--on-accent)}
@media (hover:hover) and (pointer:fine){.nav__links a:hover{color:var(--ink)}}
@media (max-width:860px){.nav__links a:not(.btn){display:none}}

/* ─── hero ────────────────────────────────────────────────────────── */
.hero{position:relative;min-height:92svh;display:grid;align-items:end;isolation:isolate;color:var(--ink)}
.hero__img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover}
.hero::before{content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(180deg,
    oklch(0.968 0.007 82 / .00) 0%,
    oklch(0.968 0.007 82 / .55) 44%,
    oklch(0.968 0.007 82 / .93) 74%,
    oklch(0.968 0.007 82 / 1) 100%)}
.hero__inner{padding-block:clamp(56px,9vw,120px)}
.hero h1{font-size:var(--t-hero);line-height:var(--lh-tight);max-width:15ch}
.hero .lede{margin-top:1.15em}
.hero__cta{margin-top:2.1em;display:flex;gap:13px;flex-wrap:wrap}

/* the authored moment — E-04 curve-mask, the hero's lower edge */
.curve-mask{position:absolute;left:0;right:0;bottom:-1px;height:clamp(56px,7vw,108px);
  z-index:1;pointer-events:none}
.curve-mask svg{width:100%;height:100%;display:block}
.curve-mask path{fill:var(--paper)}

/* ─── walkers · E-01 accordion-gallery ────────────────────────────── */
/* ⚠ EL RADIO ESTABA AQUÍ, NO EN LOS PANELES. Poner .panel a 0 no quitaba nada
   visible: el contenedor recorta con overflow:hidden, así que los 14px de la
   esquina los redondeaba él y los paneles de los extremos los heredaban por
   recorte. A canto vivo, como el resto de la galería a sangre. */
.gallery{border-radius:0;overflow:hidden;min-height:clamp(340px,46vw,470px)}
.panel{position:relative;background:var(--paper-2);color:var(--ink);text-decoration:none}
.panel__label{font-family:var(--f-display);font-weight:600;font-size:1.42rem;letter-spacing:-0.02em}
.panel__body{padding:22px}
.panel__cred{color:var(--accent);font-size:.9rem;font-weight:500;margin-top:.35em}
.panel__meta{color:var(--ink-2);font-size:.88rem;margin-top:.75em}
.panel__frame{position:absolute;inset:0;display:grid;place-items:center;
  background:var(--paper-3);color:var(--ink-3);font-size:.8rem;text-align:center;padding:20px}

/* ─── steps ───────────────────────────────────────────────────────── */
.steps{display:grid;gap:0;margin-top:2.4rem}
.step{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);gap:32px;
  padding:30px 0;border-top:1px solid var(--rule);align-items:start}
.step:last-child{border-bottom:1px solid var(--rule)}
.step h3{max-width:none}
@media (max-width:720px){.step{grid-template-columns:1fr;gap:10px}}

/* ─── ratio-row strip ─────────────────────────────────────────────── */
.strip{margin-top:clamp(40px,5vw,72px)}
.ratio-row__item{border-radius:var(--radius)}

/* ─── faq ─────────────────────────────────────────────────────────── */
.faq details{border-bottom:1px solid var(--rule)}
/* ⚠ LA PREGUNTA NO VA EN LA TIPOGRAFÍA DE DISPLAY. Bodoni tiene remates de
   pelo y muchísimo contraste de trazo: a 18.4px —que es donde estaba en un
   móvil— se deshace, y se lee como si fuera cursiva sin serlo. Es justo la
   cara que no quieres en una pregunta que tiene que leer alguien mayor.
   ⚠ Y era 1.05× la respuesta: mismo tamaño, distinta familia, así que no
   había forma de saber cuál era cuál. Manrope 700 la separa de la respuesta
   (Manrope 500) por peso y por cuerpo, y de paso la empareja con los
   titulares de paso, que son el mismo nivel en el resto de la página. */
.faq summary{padding:22px 0;cursor:pointer;font-family:var(--f-body);font-weight:700;
  font-size:clamp(1.42rem,1.75vw,1.6rem);line-height:1.34;
  /* un escalón por debajo del titular de sección: medido, la pregunta daba 240
     de trazo contra 232 del h2, o sea que lucía MÁS que su encabezado */
  color:oklch(from var(--bone) l c h / .90);
  font-size:1.14rem;list-style:none;display:flex;justify-content:space-between;gap:18px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"";width:11px;height:11px;flex:none;margin-top:.42em;
  border-right:1.5px solid var(--accent);border-bottom:1.5px solid var(--accent);
  transform:rotate(45deg);transition:transform 220ms ease-out}
.faq details[open] summary::after{transform:rotate(-135deg)}
.faq details>p{padding-bottom:22px;max-width:var(--measure);
  /* la respuesta, un escalón por debajo de la pregunta */
  color:oklch(from var(--bone) l c h / .78)}

/* ─── form ────────────────────────────────────────────────────────── */
.form{display:grid;gap:15px;max-width:560px;margin-top:2rem}
.form label{display:grid;gap:7px;font-size:.88rem;color:var(--ink-2)}
.form input,.form textarea{padding:.85em 1em;background:var(--paper-2);
  color:var(--ink);border:1px solid var(--rule);border-radius:10px;
  transition:border-color 150ms ease-out}
.form input::placeholder,.form textarea::placeholder{color:var(--ink-3)}
.form input:focus,.form textarea:focus{outline:0;border-color:var(--accent)}

.footer{padding-block:clamp(52px,7vw,92px);border-top:1px solid var(--rule);
  font-size:.9rem;color:var(--ink-2)}
.footer a{color:var(--ink-2)}
.footer .nav__brand{color:var(--ink)}

/* ─── arrival ──────────────────────────────────────────────────────
   The floor bans one identical entrance on every section, so this is
   used ONLY on the two blocks that benefit and nowhere else. */
[data-rise]{opacity:0;transform:translateY(12px);
  transition:opacity 380ms cubic-bezier(.16,1,.3,1),transform 380ms cubic-bezier(.16,1,.3,1)}
[data-rise].in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  [data-rise]{opacity:1;transform:none;transition:none}}

/* ─── dark hero on a light page ─────────────────────────────────────
   Scoped, not global: the page stays paper, the hero is a dark band it
   opens out of. Tokens are redeclared inside .hero so every child —
   buttons, rules, ghost borders — inverts with it instead of being
   patched one by one. */
.hero{
  --paper:    var(--tobacco);
  --paper-2:  var(--tobacco-2);
  --ink:      var(--bone);
  --ink-2:    oklch(from var(--ink) l c h / 0.76);
  --ink-3:    oklch(from var(--ink) l c h / 0.48);
  --rule:     oklch(from var(--ink) l c h / 0.22);
  background: var(--paper);
  color: var(--ink);
}
/* the photo needs less scrim now that the ground beneath it is dark */
.hero::before{
  background:linear-gradient(180deg,
    oklch(0.185 0.011 62 / .28) 0%,
    oklch(0.185 0.011 62 / .52) 50%,
    oklch(0.185 0.011 62 / .82) 82%,
    oklch(0.185 0.011 62 / 1) 100%) !important;
}
.hero .btn--ghost{background:oklch(from var(--ink) l c h / .10);color:var(--ink);
  box-shadow:none}

/* ─── the boundary ─────────────────────────────────────────────────
   Sits at the hero's foot and paints the PAPER colour, so what rises is
   the next section arriving rather than a shape being drawn. */

/* ─── the boundary: hero → page, carried by M-16 ───────────────────── */
/* ⚠ LA ALTURA ES EL TIEMPO. El barrido avanza con
   p = 1 - (top + alto) / (alto + innerHeight): cuanto más alto el límite, más
   scroll ocupa el efecto. En escritorio 26vw da 340px; en un móvil de 390 esos
   26vw son 101 y caía al suelo de 210, un tercio menos de recorrido — por eso
   se aplanaba enseguida y el arco casi no se veía. En móvil el suelo sube. */
.boundary{position:relative;height:clamp(300px,26vw,340px);overflow:hidden;isolation:isolate}
@media (max-width:760px){
  .boundary{height:min(46dvh,330px)}
  /* ⚠ LA PALABRA NO SE MUEVE — se probó y rompe el efecto. El canto de la
     máscara sube con `p`, así que el intercambio ocurre cuando ese canto
     cruza la palabra: centrada, cruza sobre p≈0.5, que cae dentro de la
     ventana en la que el límite se ve (p 0.28–0.72). Bajada al pie cruzaba
     sobre p≈0.2, antes de que el límite entre siquiera en pantalla, y sólo
     se llegaba a ver FILOSOFÍA — la transformación pasaba fuera de campo.
     El hueco se recupera abajo, no aquí. */
}
.boundary .wipe__from,.boundary .wipe__to{position:absolute;inset:0;
  display:grid;place-items:center}
.boundary .wipe__from{background:oklch(0.968 0.007 82)}
.boundary .wipe__to{background:oklch(0.185 0.011 62)}
.boundary__word{font-family:var(--f-display);font-weight:600;
  font-size:clamp(2.6rem,10vw,7rem);letter-spacing:-0.02em;line-height:1}
.boundary .wipe__from .boundary__word{color:oklch(0.245 0.016 62)}
.boundary .wipe__to   .boundary__word{color:oklch(0.955 0.011 78)}

/* ─── hero · the film ───────────────────────────────────────────────
   The section is TALLER than the stage inside it, and the stage is sticky.
   That height difference IS the scroll distance the 73 frames and the three
   copy beats are spread across. Shorten the section and everything speeds up
   together — there is only one clock. */
.hero{position:relative;min-height:0;height:300vh;padding:0;display:block;
  background:var(--tobacco);color:var(--bone);overflow:clip;isolation:isolate}
.hero__stage{position:sticky;top:0;height:100svh;overflow:hidden;
  /* ⭐ TOP, not bottom. The walk happens in the LOWER half of frame the whole
     way through — the pair stay on the pavement while they travel left to
     right — so a horizontal split is the only one that holds for the entire
     scrub. Copy in the architecture above, action clear below. */
  display:grid;align-items:start}
.hero__canvas{position:absolute;inset:0;width:100%;height:100%;display:block;
  /* same grade as the frames carried before they moved up here: the baked-in
     grain and sharpening do the anti-AI work, this only pulls the footage
     into the palette. Kept as a dial, not re-baked. */
  filter:saturate(.86) contrast(1.06) brightness(.96);
  /* the canvas paints one frame before the sequence is warm; fading it in
     stops that first frame from arriving as a flash */
  opacity:0;transition:opacity .5s ease-out}
.hero.is-lit .hero__canvas{opacity:1}

/* multiply, so the footage is tinted rather than dimmed flat */
.hero__grade{position:absolute;inset:0;pointer-events:none;
  background:var(--tobacco);mix-blend-mode:multiply;opacity:.18}

/* ⭐ THE HANDOFF. The copy needs a dark bottom to sit on AND the wipe below
   opens on solid tobacco — so both are one gradient rather than a scrim plus
   a separate fade. The last 7% is opaque: at that point the hero and the top
   of the wipe are literally the same colour and the seam has nowhere to be. */
.hero__scrim{position:absolute;inset:0;pointer-events:none;
  /* ⭐ THE VIGNETTE IS ASYMMETRIC ON PURPOSE. A centred one would darken the
     van and the dog — the two things the film exists to show — while doing
     nothing for legibility, because the copy is bottom-LEFT, not centred.
     So the horizontal pass weights the side the type is on and lets the right
     third keep its light. Listed first, so it composites over the vertical. */
  background:linear-gradient(to right,
    oklch(from var(--tobacco) l c h / .50) 0%,
    oklch(from var(--tobacco) l c h / .34) 26%,
    oklch(from var(--tobacco) l c h / .12) 52%,
    transparent 72%),
  linear-gradient(to top,
    var(--tobacco) 0%,
    var(--tobacco) 7%,
    oklch(from var(--tobacco) l c h / .86) 17%,
    oklch(from var(--tobacco) l c h / .58) 34%,
    oklch(from var(--tobacco) l c h / .30) 58%,
    oklch(from var(--tobacco) l c h / .20) 100%)}

/* the beats stack in one grid cell and cross-fade; the tallest sets the height
   so shorter beats do not make the block jump as they swap */
.hero__beats{position:relative;z-index:2;display:grid;
  /* clears the fixed nav (84px) plus breathing room */
  padding-top:clamp(120px,14vw,190px)}
/* ⚠ NOT ch. `ch` resolves against THIS element's font — the body face at
   1rem — so 30ch is ~292px and the 80px h1 inside it wraps to five lines.
   The measure that matters here belongs to the display face, so the cap is
   absolute and the h1 keeps its own 15ch. */
.hero__beat{grid-area:1/1;align-self:start;max-width:min(46rem,66%);
  will-change:opacity,transform}
/* ⚠ THE TYPE CARRIES ITS OWN GROUND. The hero scrim is a single gradient
   serving the whole stage, so it cannot know what the photograph is doing
   where a given line lands — measured 3.90:1 on the headline at 1440 and
   3.41:1 on the lede at 390, on the same page, from the same scrim. Blurred
   shadows do locally what a panel would do, without adding a panel. */
/* ⚠ .carved MUST be in the selector. The carved-headings block later in this
   file targets `h1.carved` — same specificity as `.hero__beat h1`, and it
   wins on order, so the shadow silently computed to `none`. Measured, not
   guessed: getComputedStyle said text-shadow:none while the rule looked fine
   in source. */
.hero__beat h1.carved,.hero__line.carved,.hero__beat h1,.hero__line{
  text-shadow:0 2px 6px rgba(0,0,0,.72),0 0 26px rgba(0,0,0,.62),0 0 64px rgba(0,0,0,.45)}
.hero__beat h1{font-size:var(--t-hero);line-height:var(--lh-tight);
  /* wide enough to hold "Siempre la misma persona" so the hand-placed break
     decides the line, not the column */
  max-width:min(34ch,100%);color:var(--bone)}
.hero__line{font-family:var(--f-display);font-weight:600;
  font-size:clamp(2rem,4.4vw,3.5rem);line-height:1.08;color:var(--bone);max-width:20ch}
.hero .lede{margin-top:1.05em;color:oklch(from var(--bone) l c h / .82)}
.hero .btn--ghost{background:oklch(from var(--bone) l c h / .13);color:var(--bone);
  border-color:oklch(from var(--bone) l c h / .34)}
@media (hover:hover) and (pointer:fine){
  .hero .btn--ghost:hover{background:oklch(from var(--bone) l c h / .22)}}

/* the nav is a light frosted bar built for a paper page. Over the film it
   would be a bright slab across the top of the shot, so it goes transparent
   until the hero is behind you. */
.nav{transition:background .3s ease-out,border-color .3s ease-out}
body.at-hero .nav{background:transparent;border-color:transparent;
  -webkit-backdrop-filter:none;backdrop-filter:none}
/* ⚠ the opening is LIGHT at the top now. Bone here was invisible. */
body.at-hero .nav__brand,body.at-hero .nav__links a:not(.btn){color:var(--tobacco)}

@media (max-width:760px){
  .hero{height:250vh}
  .hero__beat{max-width:none}
  /* The film is a full-width strip here, not a full-bleed cover, so it has a
     hard top edge and a hard bottom edge against the tobacco ground. Both
     have to dissolve or the strip reads as a pasted-in video window. The mask
     lives on the canvas; the scrim then only has to carry the copy. */
  /* the stops come from the measured band — see publishBand() in frame-scrub */
  .hero__canvas{-webkit-mask-image:linear-gradient(180deg,
      transparent var(--band-a,0%), #000 var(--band-b,10%),
      #000 var(--band-c,60%), transparent var(--band-d,80%));
    mask-image:linear-gradient(180deg,
      transparent var(--band-a,0%), #000 var(--band-b,10%),
      #000 var(--band-c,60%), transparent var(--band-d,80%))}
  .hero__grade{opacity:.20}
  .hero__scrim{background:linear-gradient(to top,
    var(--tobacco) 0%, var(--tobacco) 14%,
    oklch(from var(--tobacco) l c h / .86) 30%,
    oklch(from var(--tobacco) l c h / .40) 52%,
    oklch(from var(--tobacco) l c h / .20) 100%)}
}
@media (prefers-reduced-motion:reduce){
  /* No scrub and no cross-fade, so the three beats cannot share one cell —
     they stack UNDER the film instead of over it, and the film becomes a
     fixed band rather than a full-bleed cover it would have to be scrolled
     to escape. (max-width in rem, not ch: ch resolves against the body face
     and squeezes the display type — the same trap as the desktop beat.) */
  .hero{height:auto}
  .hero__stage{position:relative;height:auto;display:block;overflow:visible}
  .hero__canvas{position:relative;height:min(58svh,52vw);opacity:1;
    -webkit-mask-image:none;mask-image:none}
  .hero__grade,.hero__scrim{height:min(58svh,52vw);bottom:auto}
  .hero__scrim{background:linear-gradient(to top,
    var(--tobacco) 0%, oklch(from var(--tobacco) l c h / .55) 26%,
    oklch(from var(--tobacco) l c h / .22) 100%)}
  .hero__beats{display:block;
    padding-top:clamp(40px,6vw,76px);padding-bottom:clamp(56px,8vw,112px)}
  .hero__beat{opacity:1 !important;transform:none !important;max-width:min(42rem,88%)}
  .hero__beat + .hero__beat{margin-top:clamp(30px,4vw,54px)}
}

/* ─── the ghost word, moved off the hero and onto the team section ───
   E-12's default is 4% of the ink, which was tuned against a DARK ground —
   bone at 4% on tobacco is a visible ghost. Ink at 4% on bone is nothing:
   a light ground absorbs a dark tint far faster than a dark ground emits a
   light one, so the same number is not the same effect. */
.is-ghosted{position:relative;overflow:clip;isolation:isolate;
  /* the padding sets the OVERLAP, not the inset does: the word is anchored to
     the section's bottom edge, so pushing that edge further below the hexagons
     is what pulls the word clear of them. At 7vw the word rode 232px up into
     the grid and swallowed the "Go"; 20vw leaves ~45px tucked behind the row's
     bottom points, where a hexagon is narrow enough not to occlude. */
  padding-bottom:clamp(180px,20vw,300px)}
.is-ghosted > .wrap{position:relative;z-index:1}
.is-ghosted > .ghost{
  /* ⭐ EMBOSSED, NOT TINTED. At 9% ink the word was a flat grey shape and a
     bevel on it would read as nothing. Dropping the body almost to the paper
     colour and letting the FILTER describe it is what emboss actually is —
     type made of the same material as the surface, visible only because it
     catches the light. It also gives the page one light source obeyed in two
     directions: the ghost rises, the headings are cut in. */
  filter:url(#raised-lg);
  /* ⚠ OPAQUE, and this is the whole reason the relief was invisible. The
     filter ends with feComposite operator="in" against SourceAlpha, so its
     output is MULTIPLIED BY THE GLYPH'S ALPHA. Drawn at 4% alpha, the bevel
     came out at 4% strength — no offset or blur could have fixed that.
     The body must be solid and merely CLOSE to the paper; that is what emboss
     is (type of the same material as the surface), and transparency is not a
     substitute for it. */
  color:color-mix(in srgb, var(--paper) 94%, var(--ink));
  /* E-12's default hangs the word off the bottom edge, which is right when it
     is the only thing in the section. Here it has hexagons to tuck behind, so
     it sits INSIDE the edge — the crop was severing the letterforms instead of
     letting them run out of frame, which is the difference E-12 depends on. */
  inset-block-end:0;
  font-size:clamp(11rem,21vw,23rem)}


/* ─── the dark ground continues past the hero ───────────────────────
   The ghost word is deliberately cropped by its section's bottom edge. If a
   hard dark band starts exactly there, the crop reads as the word being
   severed rather than running out of frame — so the premise keeps the same
   ground and the boundary happens below IT instead. */
/*unused*/.onthedark{
  --paper:oklch(0.185 0.011 62); --paper-2:oklch(0.232 0.013 62);
  --ink:oklch(0.955 0.011 78);
  --ink-2:oklch(from var(--ink) l c h / .74); --ink-3:oklch(from var(--ink) l c h / .46);
  --rule:oklch(from var(--ink) l c h / .20);
  background:var(--paper); color:var(--ink);
}

/* the plain statement of what this is — the client asked for it and a cold
   visitor could not tell from the promise alone */
.hero__what{font-family:var(--f-body);font-weight:500;
  /* ⚠ THIS LINE IS THE ONLY PLACE THE PAGE SAYS WHAT THE BUSINESS DOES, and at
     1rem beneath an 80px headline it read as a caption — a cold visitor met
     "siempre la misma persona" with no idea what the service was. Sized as a
     standfirst, and set on the bone rather than the muted ink because it sits
     over a photograph, not over paper. */
  font-size:clamp(1.05rem,1.4vw,1.28rem);
  letter-spacing:.012em;line-height:1.45;color:var(--bone);
  /* its own local scrim. The hero scrim is one gradient serving the whole
     stage; this line needs ground under ITSELF, and blurred shadows do that
     without adding a panel. */
  text-shadow:0 1px 3px rgba(0,0,0,.85),0 0 14px rgba(0,0,0,.7),0 0 34px rgba(0,0,0,.5);
  max-width:38ch;margin-top:1.05em;margin-bottom:0;text-wrap:balance}

/* the secondary action is not a second button. Two buttons of near-equal
   weight means neither is primary, and in the hero that reads as indecision. */
.link-quiet{display:inline-flex;align-items:center;gap:.5em;color:var(--ink);
  font-family:var(--f-body);font-weight:500;font-size:1rem;text-decoration:none;
  padding:.5em 0;border-bottom:1px solid var(--rule);
  transition:border-color .2s ease,gap .2s ease}
.link-quiet::after{content:'→'}
.link-quiet:hover{border-bottom-color:var(--ink);gap:.75em}

/* desktop-only hand-placed break. ⚠ the SPACE BEFORE it is load-bearing:
   display:none removes the element and leaves no whitespace between the two
   text nodes, so the words glue together on a phone. */
.br-lg{display:none}
@media (min-width:1024px){.br-lg{display:inline}}
/* ⚠ EL INVERSO DE br-lg: un salto que SÓLO existe en móvil. Los dos titulares
   de tesis van a una fila en escritorio y no caben en 350px, así que el salto
   tiene que sobrevivir abajo y desaparecer arriba. El corte va a 1080 y no a
   1024 a propósito: es el mismo ancho en que la tesis pasa a composición
   centrada, y un salto que cambia en un ancho distinto al de la composición
   deja una franja donde el titular no es ni una cosa ni la otra.
   ⚠ `splitLetters` reconstruye los <br>: conserva la clase desde 2026-09-20,
   antes la tiraba y esta utilidad no habría hecho nada. */
.br-sm{display:inline}
@media (min-width:920px){.br-sm{display:none}}
/* olive as the SECOND ground, so the page alternates instead of repeating */
/* the same token swap as .onolive, on tobacco. A section declares its ground
   by class and everything inside reads --paper/--ink, so nothing downstream
   needs to know which surface it landed on. */
.ondark{--paper:var(--tobacco);--paper-2:oklch(from var(--tobacco) calc(l + .04) c h);
  --ink:var(--bone);--ink-2:oklch(from var(--ink) l c h / .78);
  --ink-3:oklch(from var(--ink) l c h / .50);
  --rule:oklch(from var(--ink) l c h / .20);background:var(--paper);color:var(--ink)}
.onolive{--paper:var(--olive);--paper-2:var(--olive-2);--ink:var(--bone);
  --ink-2:oklch(from var(--ink) l c h / .76);--ink-3:oklch(from var(--ink) l c h / .48);
  --rule:oklch(from var(--ink) l c h / .22);background:var(--paper);color:var(--ink)}
/* ⚠ THE WIPE BRINGS IN THE NEXT SURFACE, and the direction is the reverse of
   the original: the opening is paper and filosofía is tobacco, so it wipes
   LIGHT to DARK. CONÓCENOS and FILOSOFÍA are both nine letters, which the
   two-state wipe requires — mismatched lengths show the top of one word and
   the bottom of the other mid-wipe. */
.boundary .wipe__from{background:var(--paper)}
.boundary .wipe__to{background:var(--tobacco)}
/* ⚠ EL VELO CLARO ES LA CAPA DE ABAJO. .boundary no tiene fondo propio, y
   .wipe__from es PAPEL a tamaño completo; encima va .wipe__to en noche pero
   ENMASCARADO. Donde la máscara no cubra del todo — y su borde difuminado mide
   150px sobre un límite de 210 en móvil — lo que asoma es el papel. De ahí una
   línea clara justo encima de filosofía.
   Dos seguros que no dependen de cómo pinte las máscaras cada motor: el propio
   límite es noche, y la sección de abajo sube un píxel para tapar la costura. */
/* ⚠ NO PONER FONDO AL PROPIO .boundary. Se lo puse para tapar una línea CLARA
   que asomaba arriba, y lo único que hizo fue cambiarle el color: la misma
   costura de 1px pasó a verse NEGRA justo debajo del héroe, encima del
   fantasma. La costura hay que taparla por abajo, que es donde el suelo
   cambia, no pintando el elemento entero. */
.boundary::after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:4px;
  background:var(--night);z-index:4;pointer-events:none}
#filosofia{margin-top:-1px}
.boundary .wipe__from .boundary__word{color:var(--ink)}
.boundary .wipe__to   .boundary__word{color:var(--bone)}

/* ─── duotone · T-duotone-rail ──────────────────────────────────────
   Three steps: brand gradient underneath → image stripped to greyscale →
   multiply. The greyscale darkens the gradient in proportion to its own
   luminance, so the photograph arrives in the brand's hues with no
   per-image work.

   ⚠ contrast/brightness BEFORE the multiply is load-bearing, not polish:
   multiply only ever darkens, so an unlifted image goes muddy. Pre-lifting
   buys back the range the blend spends.

   The teardown's rule for choosing: DERIVE the palette from one strong
   signature image; IMPOSE it on a mixed set that must look like one family.
   CanGo is the second case — stock now, the client's phone photos later. */
.duo{position:relative;overflow:hidden;isolation:isolate;
  background:linear-gradient(to top left,var(--accent),var(--tobacco))}
.duo__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  filter:grayscale(100%) contrast(110%) brightness(110%);
  mix-blend-mode:multiply}
/* faces keep their detail: `color` imposes one hue but spends no luminance.
   A full multiply turns a person into a silhouette, and the walkers have to
   stay recognisable. */
/* ⚠ `mix-blend-mode: color` takes HUE+SATURATION from the top layer and
   LUMINANCE from below. With the photo on top it donates its own hues to the
   gradient — the subject came out neon blue on orange. The blend only tints a
   photo when the COLOUR is the top layer, not the image.
   For portraits the honest answer needs no blend at all: warm the photograph
   itself. The walkers stay recognisable, which is the entire point of the
   section, and it still sits in the palette. */
.duo--face{background:none}
.duo--face .duo__img{mix-blend-mode:normal;
  filter:saturate(.55) sepia(.28) contrast(1.04) brightness(1.02)}

/* composition 1 · full-bleed band, copy over it */
.duo-band{min-height:clamp(420px,52vw,620px);display:grid;align-items:center}
.duo-band .wrap{position:relative;z-index:1}
.duo-band::after{content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,oklch(0.22 0.035 62 / .88) 0%,
                                   oklch(0.22 0.035 62 / .55) 52%,
                                   oklch(0.22 0.035 62 / .15) 100%)}
.duo-band .wrap{z-index:2}
.duo-band, .duo-band h2, .duo-band p{color:var(--bone)}
.duo-band h2 em{color:var(--accent)}


/* ─── split row · duotone image beside copy ─────────────────────────
   Not a rail — a rail has to run continuously down the page to read as
   one line, and two stripes with paper between them read as debris.
   This is the honest version: a generous image column, a body that
   actually fills the rest. */
.splitrow{display:grid;grid-template-columns:minmax(280px,38%) 1fr;align-items:stretch;
  min-height:clamp(400px,46vw,580px)}
.splitrow__media{position:relative;overflow:hidden}
.splitrow__body{display:grid;align-content:center;
  padding:clamp(36px,5vw,80px) clamp(28px,5vw,88px)}
.splitrow__body .measure{max-width:56ch}
/* ⚠ THE FIRST PARAGRAPH IS THE THESIS and was set identically to the two that
   support it, so the block read as one undifferentiated slab. Giving it its own
   size is what makes the section scannable — the contrast lands before anyone
   decides whether to read on.
   text-wrap:pretty on the body stops the last line falling to a two-word
   orphan, which was most of the "chopped" feeling. */
.splitrow__body .standfirst{font-size:clamp(1.22rem,1.7vw,1.5rem);line-height:1.45;
  color:var(--ink);margin-bottom:1.15em;text-wrap:balance;max-width:30ch}
.splitrow__body .measure p{text-wrap:pretty}
.splitrow__body .measure p + p{margin-top:.85em}
@media (max-width:760px){
  .splitrow{grid-template-columns:1fr}
  .splitrow__media{min-height:260px}
}

/* portraits in the team panels: `color` blend, never `multiply`.
   Multiply turns a person into a brand-coloured silhouette — fine for an
   atmospheric band, fatal for the one section whose entire job is that these
   are recognisable people. `color` imposes the hue and spends no luminance. */
/* ⚠ .duo sets position:relative and lands AFTER .panel__frame in the cascade,
   which overrode the frame's position:absolute and collapsed it from filling
   the panel to its 40px content height — the portrait became a strip.
   Re-assert it; the frame must stay absolute to fill the panel. */
.panel__frame.duo{position:absolute;inset:0;
  background:linear-gradient(to top left,var(--accent),var(--tobacco))}
.panel__frame .duo__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}


/* ─── scroll-scrubbed video ─────────────────────────────────────────
   The section is TALLER than the viewport and the stage inside it is
   sticky: that height difference is the scroll distance the frames are
   spread across. Shorten the section and the video plays faster. */
.scrub{--paper:var(--tobacco);--ink:var(--bone);
  background:var(--paper);color:var(--ink);
  height:280vh;padding:0;position:relative}
.scrub__stage{position:sticky;top:0;height:100vh;height:100svh;overflow:hidden;
  display:grid;place-items:end start}
.scrub__canvas{position:absolute;inset:0;width:100%;height:100%;display:block;
  /* the footage is generated, and generated footage is too clean and too
     saturated to pass as a photograph. Grain, sharpening and the vignette are
     baked into the frames (they have to differ per frame or they read as a
     filter sitting still over moving picture). What is left for CSS is the
     GRADE, kept here so it stays a dial rather than a re-bake. */
  filter:saturate(.86) contrast(1.06) brightness(.96)}

/* A tobacco veil, not a duotone. A true duotone would map the van's white
   livery onto the ramp and take the logo with it — and it does nothing about
   the AI tell anyway, which is cleanliness, not colour. This just pulls the
   footage into the page's palette. */
.scrub__stage::after{content:'';position:absolute;inset:0;pointer-events:none;
  background:var(--tobacco);mix-blend-mode:multiply;opacity:.22}
/* the copy sits bottom-left, so the darkening it needs is bottom-weighted */
.scrub__stage::before{content:'';position:absolute;inset:0;pointer-events:none;z-index:1;
  background:linear-gradient(to top,
    oklch(0.185 0.011 62 / .72) 0%,
    oklch(0.185 0.011 62 / .28) 34%,
    transparent 62%)}
.scrub__copy{position:relative;z-index:1;padding-bottom:clamp(40px,8vw,96px)}
.scrub__copy h2{color:var(--bone);
  text-shadow:0 2px 40px oklch(0.185 0.011 62 / .55)}
@media (max-width:760px){ .scrub{height:220vh} }
@media (prefers-reduced-motion:reduce){
  .scrub{height:100vh}
  .scrub__stage{position:relative}
}


/* ═══ SECTION COMPOSITION ═══════════════════════════════════════════════
   The fault these fix was not any single section — it was that six of them
   had the SAME shape: left h2, body under it, on bone, same scale, same
   padding, one after another. A page with one composition repeated six times
   reads as undesigned however well each block is styled. So each of the three
   remaining prose sections gets a different structure AND a different ground.
   ─────────────────────────────────────────────────────────────────────── */

/* ── Cómo es un paseo · the procession ─────────────────────────────────
   A sequence should be read as a sequence, so the heading STAYS while the
   steps pass it. That also kills the dead gutter the old two-column had: the
   left column is now a persistent anchor rather than a short label sitting
   beside a long paragraph. */
.procession{--paper:var(--tobacco)}
.procession__grid{display:grid;gap:clamp(36px,6vw,104px);align-items:start;
  grid-template-columns:minmax(0,.68fr) minmax(0,1fr)}
.procession__head{position:sticky;top:clamp(120px,16vh,190px)}
.procession__head .dim{margin-top:1.1em;max-width:26ch}
.procession__list{list-style:none;display:grid;gap:clamp(52px,6.5vw,96px);
  margin:0;padding:0}
.procession__item h3{font-family:var(--f-display);font-weight:600;
  font-size:clamp(1.35rem,2.1vw,1.72rem);line-height:1.18}
.procession__item p{margin-top:.7em;max-width:52ch}
/* the hairline belongs to the ITEM, not across the whole width — a full-bleed
   rule under a short line is what was drawing attention to the emptiness */
.procession__item + .procession__item{border-top:1px solid var(--rule);
  padding-top:clamp(34px,4vw,52px)}
@media (max-width:860px){
  .procession__grid{grid-template-columns:1fr}
  .procession__head{position:static}
  .procession__head .dim{max-width:none}
}

/* ── Preguntas · full width, on the olive ──────────────────────────────
   The old FAQ was `.measure` inside a full-width section, which left the
   right 55% dead. Widening the questions instead of narrowing the section is
   what fills it — and at this width the question can carry display type. */
.faq--wide{margin-top:clamp(30px,4vw,54px)}
/* ⚠ ESTA es la regla que manda en «Preguntas» (la sección usa .faq--wide) y
   llega después, así que subir el cuerpo en `.faq summary` no hacía nada. */
.faq--wide summary{font-size:clamp(1.44rem,1.9vw,1.62rem);padding:clamp(22px,2.4vw,30px) 0}
.faq--wide details>p{max-width:64ch;padding-bottom:clamp(22px,2.4vw,30px)}
.faq--wide details:first-child{border-top:1px solid var(--rule)}

/* ── Pedir un paseo · the ask ──────────────────────────────────────────
   The form was a 560px stack alone in a 1200px field. Pairing it with the
   copy gives the width something to hold. */
/* ⚠ EL ATERRIZAJE, no la decoración (2026-11-02). `.nav` es `position:fixed` y
   mide 86px en TODOS los anchos (medido a 390, 1440 y 1920), así que un salto
   a #solicitar metía el titular DEBAJO de la barra: a 390 «Primero hablamos»
   aparecía cortado por arriba. Los dos botones del héroe llevan aquí, o sea
   que ése era el aterrizaje de la acción principal de la página.
   `scroll-margin-top` sólo afecta al destino de un salto de ancla; no mueve
   nada en el flujo ni toca el sticky de `.ask__copy`.
   ⚠ Y LO MISMO LOS CUATRO ENLACES DEL MENÚ, aprobado el 2026-11-02: cuatro de
   los cinco aterrizaban cortados. Captura de «La misma persona, siempre.» a 390
   con el titular partido por la barra. #momento va en la lista aunque no esté
   en el menú — el día que alguien enlace a él, el fallo ya no estará. */
#filosofia,#momento,#paseadores,#paseo,#preguntas,
#solicitar{scroll-margin-top:calc(86px + 1.5rem)}
.ask__grid{display:grid;gap:clamp(36px,6vw,88px);align-items:start;
  grid-template-columns:minmax(0,.8fr) minmax(0,1fr)}
.ask__copy{position:sticky;top:clamp(120px,16vh,190px)}
.ask .form{margin-top:0;max-width:none}
@media (max-width:860px){
  .ask__grid{grid-template-columns:1fr}
  .ask__copy{position:static}
}

/* ── heading reveal · lines, not blocks ────────────────────────────────
   [data-rise] gives every block the identical fade, which the craft floor
   names as a fault on its own ("not one identical entrance on every
   section"). Split headings rise line by line instead — same idea GSAP's
   SplitText sells, hand-rolled because the plugin needs 72K of gsap core to
   run and this site carries no libraries at all. */
/* ⚠ THE CLIP EATS DESCENDERS. overflow:hidden is what hides the line before
   it rises, but the line box ends at the baseline-ish edge, so the tail of a
   g, p, q or j is cut off permanently — visible on "Preguntas". Padding
   extends the clip box below the descender and a matching negative margin
   takes the space back, so nothing moves. */
[data-split] .ln{display:block;overflow:hidden;
  padding-bottom:.24em;margin-bottom:-.24em}
/* and the hidden state has to clear the taller box, or a sliver shows */
/* ⚠ 780ms era una entrada, no un movimiento: por encima de ~600 el ojo deja
   de leerlo como "aparece" y empieza a leerlo como "va lento". Con el escalón
   entre filas sumado, la segunda fila terminaba a los 850ms. */
/* ── variante LETRAS ──────────────────────────────────────────────────────
   ⚠ `.pal` con `white-space:nowrap` NO es cosmético: cada letra es un
   `inline-block` y por tanto un punto de corte válido, así que sin la palabra
   envuelta el navegador parte «paseo» por la mitad en cuanto se estrecha la
   columna. El escalón lo pone el JS, que lo reparte según cuántas letras haya.
   El relleno de abajo es el mismo truco que en `.ln`: la caja que enmascara
   tiene que ser más alta que la letra o los descendentes se cortan. */
[data-split="letras"] .pal{display:inline-block;white-space:nowrap}
/* ⚠ .2em NO BASTABA: medido, la «g» de «Preguntas» se salía 1px de su caja y
   la «p» de «Pedir un paseo» 5px, y la caja recorta. El descendente de Bodoni
   pasa de lo que da la altura de línea del titular, que además es apretada
   (1.06), así que el relleno tiene que sacarlo explícitamente.
   ⚠ Y ARRIBA IGUAL DE GENEROSO. Con .18em el titular del héroe perdía el
   serifo superior de la «I» de «Informes»: a `line-height:1.06` la caja de
   línea es MÁS BAJA que el ascendente de la Bodoni, así que el recorte se come
   la parte de arriba de las mayúsculas. Los h2 no lo enseñaban porque llevan
   interlineado más suelto — de ahí que el fallo pareciera arreglado.
   Se encontró comparando píxeles con y sin `overflow`, no leyendo cajas: el
   rectángulo de un rango incluye la caja de línea entera y no dice dónde está
   la tinta. Vale también para las mayúsculas acentuadas —Á, Ó, Í—, que en
   español llegan antes o después; misma familia que los diacríticos de Anton.
   El margen negativo devuelve el espacio, de modo que el relleno agranda la
   caja que enmascara sin mover ni un píxel de la maquetación. */
[data-split="letras"] .lt{display:inline-block;vertical-align:top;
  /* ⚠ `overflow:clip` + `overflow-clip-margin`, NO `overflow:hidden` con
     relleno. `hidden` recorta justo en el canto de la caja, así que la única
     manera de que no se coma la tinta era agrandar la caja con relleno y
     devolver el hueco con margen negativo — y eso es ADIVINAR cuánto sobresale
     la Bodoni en cada cuerpo, en cada densidad de pantalla y en cada motor.
     Cuatro intentos, cuatro cifras, y la «g» seguía cortada.
     `overflow-clip-margin` mueve la ZONA DE RECORTE sin tocar la caja: la
     maquetación no cambia, el escondite sigue funcionando (la letra viaja
     1,65× su alto, más lejos que el margen de recorte) y la tinta que se sale
     0,15em ya no se corta porque el recorte está a 0,45em. Deja de ser un
     ajuste y pasa a ser una garantía.
     `overflow:hidden` va delante como respaldo para motores sin la propiedad;
     ahí se comporta como antes, no peor. */
  overflow:hidden;overflow:clip;overflow-clip-margin:.45em}
/* ⚠ y el desplazamiento inicial sube al 150%: es relativo a la altura del
   SPAN, no a la de la caja, así que al crecer la caja un 118% dejaba asomar
   una tira de letra por abajo antes de empezar. */
[data-split="letras"] .lt > span{display:inline-block;transform:translateY(165%);
  transition:transform .5s cubic-bezier(.16,1,.3,1)}
[data-split="letras"].in .lt > span{transform:none}
/* el remate en cursiva sube más despacio que el resto de la frase; el compás
   de espera que lo precede lo pone el JS, junto al escalón por letra */
[data-remate] em .lt > span,
[data-remate] .lento > span{transition-duration:.8s}
@media (prefers-reduced-motion:reduce){
  [data-split="letras"] .lt{overflow:visible}
  [data-split="letras"] .lt > span{transform:none;transition:none}
}

[data-split] .ln > span{display:block;transform:translateY(118%);
  transition:transform .42s cubic-bezier(.16,1,.3,1)}
[data-split].in .ln > span{transform:none}
[data-split] .ln:nth-child(2) > span{transition-delay:48ms}
[data-split] .ln:nth-child(3) > span{transition-delay:96ms}
[data-split] .ln:nth-child(4) > span{transition-delay:144ms}
@media (prefers-reduced-motion:reduce){
  [data-split] .ln{overflow:visible}
  [data-split] .ln > span{transform:none;transition:none}
}


/* ═══ the split band — the footer horizon ═══════════════════════════════
   T-image-fill-type Method 3, after CodePen pharaohleap/KwaxPWR.
   ─────────────────────────────────────────────────────────────────────── */

/* ⭐ NO background-attachment:fixed. The source needs it because its band and
   its image are different elements, so only pinning both to the viewport
   makes the pixels line up. Here the photograph is the FOOTER's own
   background and the band sits inside it — the fill and the exposed image are
   the same background by construction. Continuity is free, and the technique's
   one real caveat (fixed is dead on iOS Safari) does not apply. */
/* ⚠ overflow:hidden is REQUIRED, not tidy-up. The parallax layer is inset
   -12% so it has room to travel; without a clip that overhang paints OUTSIDE
   the footer, over the section above it — a band of photograph appearing
   above the logo where the page should still be bone. */
/* ⚠ EL CANTO SUPERIOR, EN PAPEL HASTA EL FONDO DE LA PILA. Fallo reproducible
   y sólo con densidades FRACCIONARIAS (1.25, 1.5, 1.75, 2.25, 2.5, 2.75 — un
   portátil al 125% o al 150%): el canto del footer cae a mitad de un píxel de
   dispositivo y esa fila sale MEZCLADA, no descubierta. La banda lleva
   `mix-blend-mode`, así que su fila de canto tiene alfa parcial y se compone
   con lo que haya debajo; y debajo estaba la foto, y debajo de la foto el
   fondo oscuro del footer. Da igual cuántas tapas opacas se pongan encima:
   cada una tiene su propio canto fraccionario y la cadena acaba siempre en
   algo oscuro. Medido: R≈100 sin nada, 174 con una tapa interior, 204 con un
   borde — y limpio en 1x, 2x y 3x, por eso no salía en las pruebas.
   La única forma de que la mezcla sea papel con papel es que TODA la pila sea
   papel en esa franja: el fondo propio del footer lo es en los primeros 10px,
   y la foto empieza por debajo de ellos. */
.fband{position:relative;isolation:isolate;overflow:hidden;
  /* SIN DUOTONO. Se probó y salía chocolate: la calle es una foto oscura y
     multiply sólo oscurece, así que para recuperar el tinte había que aclarar
     tanto la foto que dejaba de ser una calle. Un velo oscuro y ya. */
  /* ⚠ EL FONDO PROPIO DEL FOOTER ES PAPEL, y el oscuro lo pone .fband__bg.
     Aislado por ablación: poniendo esto en --paper la fila del canto pasa de
     192 a 248 y desaparece la raya; con cualquier otra combinación —sin blend,
     sin foto, sin máscara, sin isolation— seguía ahí. El suavizado del canto
     fraccionario del footer se compone contra el background-color del propio
     elemento, así que un degradado de papel encima no lo tapa: tiene que serlo
     el color. El oscuro se lo pasamos a .fband__bg, que arranca 10px dentro y
     nunca toca la junta. */
  background-color:var(--paper);
  /* ⚠ the photograph MUST be dark here. lighten makes the letters show the
     backdrop, so a bright backdrop inside letters on a white block is an
     invisible logo. street-footer.webp is street.webp put through the same
     optics as the hero frames — cloud-modulated defocus, vignette, grain — and
     the baked vignette now carries most of the darkening, so the flat scrim
     drops .55 → .40 rather than stacking on top of it. */
  color:var(--bone)}

/* ⭐ ONE SEAM, and it is the whole point. The first build put a strip of the
   photograph ABOVE the band as well as below it, which gave the footer three
   horizons — and the note on this technique is explicit that a page with two
   horizons has none. The light half now runs straight out of the page's own
   bone ground, so the only line drawn is where the photograph starts. */
.fband__band{
  /* ⚠ SIN background-color. Estaba en #fff y pintaba DEBAJO del degradado, así
     que el fundido a transparente del borde inferior no se veía nunca: medido,
     el suelo daba 218.8 justo encima del canto y 73.3 justo debajo. El color
     plano era de cuando la banda entera era blanca; ahora el degradado hace
     las dos cosas —blanco arriba, nada abajo— y el color de respaldo sólo
     puede estorbar. */
  background-color:transparent;
  /* ⭐ THE BAND CLIPS THE LOGO, and that is what makes the join seamless.
     The logo's letterforms show .fband__bg through the lighten blend; below
     the seam the visible surface IS .fband__bg. Same layer, same position —
     so if the logo is cut exactly at the band's edge, the photograph inside
     the paws and the photograph below the seam are continuous pixels and the
     cut is invisible. It also clips the carve's highlight, which is what was
     drawing white slivers onto the street. */
  overflow:hidden;
  /* no backdrop-filter. It was the single most expensive thing on the page —
     a full-width blurred panel repainted on every parallax frame — and the
     plate underneath is already defocused, so it bought almost nothing. */
  /* ⚠ flow-root, and it is load-bearing. With padding-bottom:0 the logo's
     negative bottom margin COLLAPSES THROUGH and becomes the band's own
     margin — the band keeps its full height and the dip silently does
     nothing. flow-root establishes a BFC, so the margin shrinks the band and
     the artwork actually overhangs the seam. */
  display:flow-root;
  /* the page's ground and the band must be pure white for lighten to work, so
     their meeting was a visible line — a second horizon, in the one technique
     that says a page gets one. Fading the page's own ground into white over
     the top of the band leaves only the photo seam.
     ⚠ --paper, NOT --bone. The fade was written against bone and the section
     above the footer is paper: L 0.968 vs 0.958. One hundredth of lightness,
     and it drew a line across the full width — measured as a step of 4.33 in
     mean luminance exactly 1px above the footer, on the live page as well as
     in the lab. A near-miss token is worse than no fade, because it looks
     deliberate. Still safe for the blend: paper is LIGHTER than bone, so it
     beats the scrimmed photograph per channel just as #fff does. */
  /* ⚠ EL BLOQUE SE DISUELVE, NO SE CORTA. `lighten` es un máximo por canal, así
     que la banda nunca necesitó ser BLANCA — sólo más clara que la foto velada.
     Bajando a transparente en su borde inferior, ahí gana la foto y el canto
     duro (232 niveles de salto, medido) deja de existir: el perro queda de pie
     EN la calle en vez de pegado sobre una tarjeta. Las patas, que además
     sobresalen justo por ese canto, se disuelven con él.
     Arriba sigue el fundido a --paper, que es lo que cose la banda con la
     sección de encima. */
  /* ⚠ UNA LÍNEA EN UN DEGRADADO ES UN CAMBIO DE PENDIENTE, no un escalón. Con
     `#fff 58%, transparent 100%` el valor es continuo pero la DERIVADA salta —
     plano y de golpe en bajada — y el ojo dibuja ahí una banda de Mach.
     Medido: curvatura 0.72 al 58% y 1.08 al 99%, las dos líneas que se veían.
     Los tramos siguen una ese: arrancan casi planos, aceleran y vuelven a
     aplanar, así que no hay ningún punto donde la pendiente salte. */
  /* ⚠ COLOR PLANO + MÁSCARA, no un degradado de color.
     `lighten` es un máximo por canal, así que la banda sólo tiene que ser más
     clara que la foto velada (70-120): --paper, con 248, le gana de sobra y el
     logotipo se recorta igual.
     Pero pintar la meseta con un DEGRADADO —aunque sea del mismo color de
     principio a fin— no da lo mismo que pintarla con un color: el navegador
     TRAMA los degradados, así que la banda salía alternando 247/248 mientras
     la sección de encima, que es color plano, daba 248 exacto en cada píxel.
     Mismo color nominal, textura distinta, y la junta entre un campo tramado y
     uno liso se lee como una raya fina. En una media no aparece (medía 0.5) y
     en una pantalla buena sí.
     Así que el color va plano y quien se encarga del desvanecido es la
     MÁSCARA, que actúa sobre el pintado del elemento —logotipo incluido, que
     es justo lo que hace que el perro se disuelva en la calle.
     ⚠ Los topes de la máscara no pueden cruzarse: `min(px, %)` ata la cola al
     alto real de la banda. Con `clamp(150px,20vw,300px)` la cola arrancaba en
     73px sobre una banda móvil de 223 y chocaba con la meseta. */
  --cola:min(300px, 62%);
  background-color:var(--paper);
  --fundido:linear-gradient(to bottom,
    #000 0%,
    #000 calc(100% - var(--cola)),
    rgba(0,0,0,.98) calc(100% - var(--cola) * .88),
    rgba(0,0,0,.93) calc(100% - var(--cola) * .76),
    rgba(0,0,0,.85) calc(100% - var(--cola) * .64),
    rgba(0,0,0,.73) calc(100% - var(--cola) * .52),
    rgba(0,0,0,.58) calc(100% - var(--cola) * .41),
    rgba(0,0,0,.41) calc(100% - var(--cola) * .31),
    rgba(0,0,0,.25) calc(100% - var(--cola) * .22),
    rgba(0,0,0,.13) calc(100% - var(--cola) * .14),
    rgba(0,0,0,.05) calc(100% - var(--cola) * .08),
    rgba(0,0,0,.01) calc(100% - var(--cola) * .03),
    transparent 100%);
  -webkit-mask-image:var(--fundido);
          mask-image:var(--fundido);
  mix-blend-mode:lighten;
  padding:clamp(18px,2.6vw,38px) var(--gutter) 0}

.fband__eyebrow{font-family:var(--f-body);font-weight:500;
  font-size:clamp(.68rem,1.1vw,.8rem);letter-spacing:.30em;text-transform:uppercase;
  color:oklch(from var(--bone) l c h / .70);margin-bottom:clamp(24px,3.4vw,46px)}
/* No negative margin. The artwork used to carry whitespace under the paws, so
   the seam landed ~75px clear of them and a magic negative number only made it
   touch at one viewport. The SVG's viewBox is now cropped to the path's own
   bounding box, so the image edge IS the ink edge — the dog stands on the
   horizon at every width, with the street running out beneath. */
/* The dip is derived from the ARTWORK, not chosen. The ground-shadow tapers:
   it is 754px wide at row 536 of 547 and only 139px by row 546, so an image
   box that ends at 547 leaves ~11px of white under the dog across almost the
   whole width. Seating the seam at the shadow's widest row removes it. That is
   1.9% of the logo's width, so it is expressed against the width and holds at
   every breakpoint instead of being a px value tuned at one. */
/* ⭐ CARVED, via the emboss part's one inversion: the light-facing side takes
   the SHADOW and the away side takes the highlight. Under `lighten` those two
   read correctly for free — a black bevel loses the blend and shows the dark
   street, a white bevel wins it and stays white. Dark top-left, light
   bottom-right: the logo is cut INTO the glass rather than laid on it. */
.fband__logo{--logo-w:min(56%,540px);
  display:block;margin-inline:auto;width:var(--logo-w);height:auto;
  /* ⭐ INNER, not outer. The drop-shadow version drew its bevel OUTSIDE the
     artwork, so below the seam — where the logo overhangs the photograph —
     it had nothing to sit on and smeared a bright line across the street.
     An inner shadow cannot leave the shape, so the overhang is clean by
     construction and the logo reads as pressed into the glass. */
  /* SIN TALLADO. El bisel interior describía el logo como cortado en cristal;
     sobre un duotono terracota esa lectura ya no aplica —no hay cristal— y el
     filtro sólo ensuciaba los cantos del recorte. */
  /* NO bottom fade. Fading the artwork out turns its last rows into the white
     of the band — the one thing the join must not be. The paws stay solid and
     the band's overflow:hidden does the cutting instead. */
  /* the footer copy CROPS THE GROUND SHADOW out of the viewBox. It is ~19
     units of a 465-unit artwork, so any inner shadow deep enough to carve the
     body fills it completely and draws a bright line along the seam. And a
     shape carved INTO a surface does not cast a shadow onto the ground in
     front of it — keeping it described two contradictory lights at once. */
  /* the footer copy has the GROUND-SHADOW CONTOUR REMOVED. It is ~14px tall,
     so any inner shadow deep enough to carve the body fills the ellipse
     completely and draws a bright line along the seam. And a shape carved INTO
     a surface does not cast a shadow onto the ground in front of it — keeping
     it was describing two contradictory light situations at once. */
  margin-bottom:calc(var(--logo-w) * -0.024)}

/* the dark half: the same photograph, carrying the closing content */
.fband__below{padding:clamp(30px,3.6vw,52px) var(--gutter) clamp(26px,2.8vw,38px);
  max-width:var(--wrap);margin-inline:auto}
.fband__cols{display:grid;gap:clamp(28px,4vw,64px);
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}
.fband__claim{font-family:var(--f-display);font-weight:600;
  font-size:clamp(1.4rem,2.6vw,2.15rem);line-height:1.16;color:var(--bone)}
.fband__meta{color:oklch(from var(--bone) l c h / .74);display:grid;gap:1.1em;
  font-size:.94rem}
.fband__meta a{color:var(--bone)}
.fband__fine{margin-top:clamp(30px,4vw,56px);font-size:.8rem;line-height:1.65;
  color:oklch(from var(--bone) l c h / .58)}
.fband__fine a{color:oklch(from var(--bone) l c h / .82)}

@media (max-width:760px){
  .fband__cols{grid-template-columns:1fr}
  .fband__logo{--logo-w:88%}
}
/* fails gracefully: without blend support this is a black logo on a white
   block. Flat, but readable — unlike background-clip, which fails invisible. */


/* ═══ CARVED HEADINGS · filter #carved, defined in index.html ═══════════
   The emboss part was the wrong tool: its bevel is a text-shadow, which is
   drawn OUTSIDE the glyph, so at any believable strength it reads as an object
   sitting on the surface rather than a groove cut into it. The SVG filter puts
   both the shadow and the highlight INSIDE the letterform. */
/* ⚠ NOT h2.carved. Scoping it to h2 is why the hero h1 and the two wipe words
   carried the class and showed nothing at all — they are an h1 and a span. */
.carved{filter:url(#carved)}
/* the groove needs a stroke to sit in — a hairline has no interior and the
   inner shadow simply fills it. Bodoni's 600 gives the mass. */
h1.carved,h2.carved{font-weight:600}
/* filter offsets are CSS px, not em, so the big type needs its own size —
   at 2.2px a 90px word gets a groove it cannot show. */
h1.carved,.boundary__word.carved,.sweep-type.carved{filter:url(#carved-md)}

/* The emphasised word keeps the heading's own colour and its own carve — it
   inherits the parent's filter like every other glyph in the line, so the
   groove is one continuous depth across the whole heading. The emphasis is
   the italic alone. A second, deeper filter on the <em> made it read as a
   different surface set into the first. */
.carved em{color:inherit}
/* ═══ M-08 gradient-sweep-type · ONE heading, and not rainbow ════════════
   The part derives every stop from --brand-hue, but its DEFAULT spread is
   +40 / 0 / -60 / -80 — 120° of hue, which is where the rainbow comes from.
   Compressed to 34° here, entirely inside the warm end, so the sweep reads as
   a light moving through the letters rather than as a colour show. */
.sweep-type{
  --brand-hue:76; --brand-chroma:0.038;
  --sweep-core: oklch(0.95 0.075 88);
  --sweep-mid:  oklch(0.84 0.150 76);
  /* The part's defaults end at L 0.26 with alpha 0 — right on near-black,
     risky on tobacco. Measured across six scroll positions, stroke interiors
     run 4.2–10.0:1, so the default would have passed; but the tail is kept
     OPAQUE anyway, because "passes at the six positions I sampled" is not the
     same as "cannot drop out", and a heading is not the place to find out. */
  --sweep-deep: oklch(0.62 0.100 66);
  --sweep-out:  oklch(0.54 0.060 62);
  /* the part ships a 30px drop-shadow glow. On a flat tobacco ground it does
     not read as bloom, it reads as a rectangle of lighter colour around the
     heading — the box the filter region occupies. Off. */
  filter:none;
}

/* ═══ frosted glass — ONLY where there is something worth seeing through ══
   techniques/glass-family's shared rule, verbatim: "glass only works when
   there is something worth seeing through it. Frosted panels over flat colour
   is just a lighter rectangle with extra GPU cost." Over the film there is;
   on bone there is not, so the paper ghost keeps its hairline. */
.hero .btn--ghost,body.at-hero .nav .btn--ghost{
  background:color-mix(in oklab, var(--tobacco) 42%, transparent);
  -webkit-backdrop-filter:blur(14px) saturate(1.25);
          backdrop-filter:blur(14px) saturate(1.25);
  color:var(--bone);
  box-shadow:inset 0 0 0 1px oklch(from var(--bone) l c h / .26),
             inset 0 1px 0 oklch(from var(--bone) l c h / .30),
             0 6px 18px -8px oklch(0.15 0.01 62 / .55)}
@media (hover:hover) and (pointer:fine){
  .hero .btn--ghost:hover{background:color-mix(in oklab, var(--tobacco) 30%, transparent);
    box-shadow:inset 0 0 0 1px oklch(from var(--bone) l c h / .40),
               inset 0 1px 0 oklch(from var(--bone) l c h / .38),
               0 10px 24px -8px oklch(0.15 0.01 62 / .6)}}
/* the saturate is what separates frosted glass from grey mush; without
   backdrop-filter the panel must still be opaque enough to read on */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .hero .btn--ghost{background:color-mix(in oklab, var(--tobacco) 82%, transparent)}}


/* ═══ footer parallax ═══════════════════════════════════════════════════
   Not background-attachment:fixed — that is dead on iOS Safari and pins the
   image to the viewport rather than moving it at a different rate, which is a
   different effect. The offset is written to a custom property from a
   rAF-throttled scroll listener; the background reads it. */
/* ⭐ THE PARALLAX MOVES A LAYER, NOT A BACKGROUND-POSITION. Animating
   background-position repaints the whole 1760px plate every frame on the main
   thread; translating a child is composited on the GPU and costs nothing.
   That, plus dropping the backdrop-filter, is the lag. */
/* ⚠ SE MUEVE LA IMAGEN, NO LA CAJA. Dos exigencias que parecían
   incompatibles: la foto tiene que tapar el logotipo en TODO el recorrido —si
   no, la cabeza del perro se queda sin nada detrás y, como el logotipo se ve
   por `lighten`, sale en papel, cortada por arriba— y su canto superior NO
   puede caer en la junta con la sección de arriba, porque con densidades
   fraccionarias ese canto se suaviza y dibuja una raya (medido R=62).
   Desplazando la caja no hay forma: el recorrido necesario es mayor que el
   hueco disponible. Desplazando el `background-position` sí, porque la caja se
   queda quieta 8px dentro del footer —lejos de la junta y por encima del
   logotipo, que empieza en 18— y la deriva ocurre dentro de ella. */
.fband__bg{position:absolute;inset:8px 0 0 0;z-index:-1;
  /* el oscuro vive aquí: así el pie sigue siendo legible aunque la fotografía
     no llegue a cargar, sin que el color toque el canto superior */
  background-color:oklch(0.185 0.011 62);
  /* ⚠ EL VELO VA AQUÍ, EN LA MISMA CAPA QUE LA FOTO, y esto es la costura.
     Lo puse un momento sólo sobre .fband__below y salió una línea dura en el
     canto de la banda: el truco entero del pie es que la foto que se ve DENTRO
     de las letras y la que se ve DEBAJO del canto son los mismos píxeles de la
     misma capa. Velar un lado y el otro no los separa, y la línea aparece.
     Cualquier ajuste de oscuridad va sobre .fband__bg o no va. */
  /* el velo se inclina: más ligero arriba, donde sólo hay foto y logo, y más
     denso abajo, donde va el texto. Al ir en ESTA capa el degradado cruza el
     canto sin interrupción, así que no puede volver a dibujar una línea. */
  background-image:linear-gradient(oklch(0.16 0.012 58 / .40) 0%,
    oklch(0.16 0.012 58 / .50) 46%, oklch(0.14 0.012 58 / .78) 100%),
    url('../assets/img/street-footer.webp');
  background-size:cover;
  background-position:50% calc(62% + var(--para, 0px));
  will-change:background-position}
@media (prefers-reduced-motion:reduce){ .fband__bg{background-position:50% 62%} }


/* ⚠ .measure caps the READING measure — 65-75ch, so a paragraph does not run
   too wide to track from line-end to line-start. A heading has no such
   problem: it is scanned, not read in sequence. Leaving it capped forced
   "La misma persona, siempre." (604px at 48px) into a 547px box and broke it
   across three lines. The paragraphs keep the cap; the heading takes the
   column, which is 892px. */
.splitrow__body > h2{max-width:none;margin-bottom:.55em}
/* the reveal was on .measure, which no longer wraps the heading */
.splitrow__body > h2{position:relative}

/* ── E-18 · el equipo, accordion panels ────────────────────────────────────
   The library part owns the widening, the greyscale and the label rotation.
   Everything here is the CanGo-specific content INSIDE a panel.
   ⚠ Nothing essential lives in a collapsed panel except the name and the
   titulación — that is the part's own rule, and it is the right one: a
   credential nobody can read is not proof of anything. */
.gallery-wrap{margin-top:clamp(28px,3.5vw,52px)}
/* ⚠ container-type + --img-w SON EL ARREGLO DEL TIRÓN AL FINAL DE LA APERTURA,
   no una optimización. Con la foto a `width:100%`, `object-fit:cover` se
   resuelve de nuevo en cada fotograma: se escala por ALTURA mientras el panel
   es estrecho y por ANCHURA cuando deja de serlo. Medido aquí: imagen 720×900,
   panel de 560px de alto → escala 0,622 → la foto cubre 448px de ancho, y el
   panel abierto llega a 452. O sea que cruza el umbral en los ÚLTIMOS CUATRO
   PÍXELES, cuando el easing ya ha frenado casi del todo. No es un zoom, es un
   codo en la curva, y por eso se ve como un salto.
   Fijando el ancho de la foto al que tendrá el panel ABIERTO, cover se resuelve
   UNA vez: el panel se convierte en una ventana que se abre sobre una foto
   quieta. --pan y --grow tienen que seguir a la maquetación real. */
/* ⚠ A SANGRE, FUERA DE .wrap. Cinco retratos metidos en la columna de texto
   se leen como una ilustración del párrafo; a ancho completo son la sección.
   `calc(50% - 50vw)` saca el bloque del contenedor centrado sin tocar el
   marcado. 100vw cuenta la barra de scroll clásica, así que el clip de <html>
   es el seguro — `clip` y no `hidden`, que crearía contenedor de scroll y
   rompería cualquier position:sticky de la página. */
html{overflow-x:clip}
.gallery-wrap{width:100vw;max-width:100vw;margin-inline:calc(50% - 50vw)}
#equipo-gallery{height:clamp(380px,44vw,560px);gap:0;
  --gallery-pad:clamp(14px,1.4vw,22px);
  container-type:inline-size;
  /* ⚠ --gap ENTRA EN EL CÁLCULO DE --img-w, no es sólo el hueco visual: si se
     pone el gap a 0 y no se actualiza aquí, la foto del panel abierto se
     dimensiona para una fila que ya no existe y queda descuadrada. */
  --pan:5;--grow:2.5;--gap:0px;
  --img-w:calc((100cqw - (var(--pan) - 1) * var(--gap)) * var(--grow)
                / (var(--grow) + var(--pan) - 1))}
/* sin radio: cinco paneles pegados con las esquinas redondeadas se leen como
   cinco objetos apoyados unos en otros; a canto vivo son una sola tira */
#equipo-gallery .panel{border-radius:0;text-decoration:none;color:var(--bone);
  background:var(--tobacco-2,#221c15)}
/* centrada, no anclada a la izquierda: el panel cerrado enseña el centro del
   retrato y al abrirse descubre foto por los dos lados. max() protege el caso
   en que el panel sea más ancho que --img-w (la columna del móvil). */
#equipo-gallery .panel img{position:absolute;left:50%;
  /* ⚠ +2px OF OVERHANG, NOT max(100%, --img-w) ON THE NOSE. Fully open, the
     photo's width equals the panel's to three decimals — margin exactly 0 on
     both sides. Any fractional device pixel ratio (display scaling, browser
     zoom) then rounds one edge the other way and the panel's own dark
     background shows as a 1px seam. Two pixels of slack cost nothing and there
     is no rounding it can lose to. */
  transform:translateX(-50%);width:calc(max(100%,var(--img-w)) + 2px);
  /* ⚠ overhang on BOTH axes, and the height must stay EXPLICIT. `top:-1px;
     bottom:-1px; height:auto` looks equivalent and is not: for an absolutely
     positioned REPLACED element, height:auto resolves to the INTRINSIC height
     and `bottom` is dropped. The portraits are not all the same shape — a 16:9
     one rendered 254px tall inside a 560px panel and left 306px of black panel
     background showing. calc(100% + 2px) is explicit, so it cannot fall back. */
  top:-1px;height:calc(100% + 2px);
  /* ⚠ max-width:none ES OBLIGATORIO. El reset global lleva img{max-width:100%},
     que recorta la foto al ancho del PANEL — con él puesto, fijar el ancho no
     hace absolutamente nada y cover sigue resolviéndose cada fotograma. */
  max-width:none;object-fit:cover;object-position:50% 30%}
/* the scrim is what makes white type survive an unknown photograph — the
   portraits are not shot yet, so the ground cannot be assumed */
#equipo-gallery .panel__scrim{position:absolute;inset:0;
  background:linear-gradient(0deg,rgba(16,12,8,.92) 0%,rgba(16,12,8,.55) 34%,
             rgba(16,12,8,.08) 62%,rgba(16,12,8,0) 100%)}
#equipo-gallery .panel__label{z-index:2;display:flex;flex-direction:column;gap:.18em;
  font-family:var(--f-body);font-weight:500;line-height:1.2}
#equipo-gallery .panel__label strong{font-size:clamp(1rem,1.15vw,1.2rem);font-weight:600;
  letter-spacing:.005em}
#equipo-gallery .panel__label em{font-style:normal;font-size:.82em;font-weight:400;
  color:oklch(from var(--bone) l c h / .72)}

/* revealed only when the panel is the chosen one */
#equipo-gallery .panel__detail{position:absolute;z-index:2;
  left:var(--gallery-pad);right:var(--gallery-pad);
  bottom:calc(var(--gallery-pad) + 3.6em);
  opacity:0;transform:translateY(10px);pointer-events:none;
  /* ⚠ the delay has to hold the copy back until the panel is nearly open. At
     .16s the specialism and the CTA were legible while the panel was still a
     stripe, so they ran across the label that was still rotating. .34s + .42s
     lands at .76s, which is where the widening ends. */
  transition:opacity .42s var(--ease,cubic-bezier(.22,1,.36,1)) .34s,
             transform .42s var(--ease,cubic-bezier(.22,1,.36,1)) .34s}
/* ⚠ EN MODO HOVER NADIE PONE .is-open. accordionGallery sólo llama a openPanel
   cuando NO está en hover, así que en escritorio el panel se ensanchaba pero la
   especialidad, la cita y el enlace no llegaban a aparecer nunca — medido:
   opacity 0 durante toda la apertura. Cada regla de .is-open necesita su gemela
   de :hover / :focus-visible. */
#equipo-gallery .panel.is-open .panel__detail,
.gallery--hover #equipo-gallery .panel:hover .panel__detail,
#equipo-gallery.gallery--hover .panel:hover .panel__detail,
#equipo-gallery.gallery--hover .panel:focus-visible .panel__detail{opacity:1;transform:none}
#equipo-gallery .panel__spec{font-family:var(--f-body);font-size:.78rem;
  letter-spacing:.14em;text-transform:uppercase;
  color:oklch(from var(--bone) l c h / .62);margin:0 0 .5em}
#equipo-gallery .panel__spec span{color:var(--saffron,#f0b429)}
#equipo-gallery .panel__quote{margin:0 0 .7em;font-size:clamp(.95rem,1.05vw,1.08rem);
  line-height:1.45;color:var(--bone);text-wrap:pretty;max-width:30ch}
/* ⚠ THE CHIP IS QUIET ON PURPOSE. The whole panel is already the link to
   #solicitar, so this is an affordance, not a second control — a filled
   saffron pill here would be the loudest thing in the section and read as a
   sticker. A hairline circle and an arrow says "this goes somewhere" without
   competing with the walker's name.
   aria-hidden: the link's accessible name comes from the panel's own heading,
   and announcing "Pedir un paseo" as a separate item would double it. */
#equipo-gallery .panel__go{position:absolute;z-index:3;
  right:var(--gallery-pad);bottom:var(--gallery-pad);
  display:inline-flex;align-items:center;gap:.55em;
  font-family:var(--f-body);font-size:.78rem;font-weight:500;letter-spacing:.02em;
  color:oklch(from var(--bone) l c h / .92);
  white-space:nowrap;
  opacity:0;transform:translateY(6px);pointer-events:none;
  transition:opacity .34s var(--ease,cubic-bezier(.22,1,.36,1)) .30s,
             transform .34s var(--ease,cubic-bezier(.22,1,.36,1)) .30s}
#equipo-gallery .panel__go::after{content:'→';display:grid;place-items:center;
  width:1.85em;height:1.85em;border-radius:50%;
  border:1px solid oklch(from var(--bone) l c h / .42);
  font-size:.92em;line-height:1;
  transition:background .18s ease-out,border-color .18s ease-out}
#equipo-gallery .panel.is-open .panel__go,
#equipo-gallery.gallery--hover .panel:hover .panel__go,
#equipo-gallery.gallery--hover .panel:focus-visible .panel__go{opacity:1;transform:none}
@media (hover:hover) and (pointer:fine){
  #equipo-gallery .panel:hover .panel__go::after{
    background:oklch(from var(--bone) l c h / .14);
    border-color:oklch(from var(--bone) l c h / .8)}
}
@media (max-width:760px){
  /* stacked cards are wide and short, so the chip has room to sit on the same
     line as the name rather than under it */
  #equipo-gallery .panel__go{font-size:.8rem}
}
@media (prefers-reduced-motion:reduce){
  #equipo-gallery .panel__go{transition:none}
}

@media (prefers-reduced-motion:reduce){
  #equipo-gallery .panel__detail{transition:none}
}
/* one column on a phone: five panels side by side at 390px is 78px each, which
   is a stripe, not a person. Stacked, each keeps a readable portrait. */
@media (max-width:760px){
  /* en columna cada panel ocupa el ancho entero, así que la foto vuelve a ser
     simplemente el panel — --img-w se calculó para cinco en fila */
  #equipo-gallery .panel img{left:0;transform:none;width:100%}
  /* ⚠ PEGADAS. Los 8px de hueco dejaban ver el papel de la sección entre
     tarjeta y tarjeta: cinco franjas blancas que parten la galería en cinco
     objetos sueltos en lugar de una sola tira. Sin hueco y sin radio las
     tarjetas leen como un solo bloque, que es lo que son. */
  #equipo-gallery{flex-direction:column;height:auto;gap:0}
  #equipo-gallery .panel{border-radius:0}
  /* ⚠ EN COLUMNA EL PANEL CAMBIA DE height, NO DE flex — y la transición del
     componente sólo cubre flex y filter, así que en móvil la tarjeta se abría
     de golpe mientras en escritorio se desliza. Misma duración y misma curva
     que el ensanchado para que las dos plataformas se sientan iguales. */
  #equipo-gallery .panel{flex:0 0 auto;height:180px;
    transition:height var(--gallery-speed,.75s) var(--ease,cubic-bezier(.22,1,.36,1)),
               filter var(--gallery-speed,.75s) var(--ease,cubic-bezier(.22,1,.36,1))}
  #equipo-gallery .panel.is-open{flex:0 0 auto;height:340px}
  #equipo-gallery .panel__label{transform:none}
}
/* ⚠ THE OPEN PANEL NEEDS A DEEPER SCRIM THAN THE COLLAPSED ONES. A collapsed
   panel carries two short lines; the open one carries a specialism, a quote and
   a link, over an unknown photograph. Measured: the copy sat on 20%+ ground and
   the uppercase specialism line failed first. */
/* ⚠ IT HAS TO BE A CROSS-FADE, NOT A BACKGROUND SWAP. The two gradients have
   different stop counts, so they cannot interpolate — `background` would jump
   between them, and with no transition on the property at all it darkened the
   whole panel in one frame while the widening had barely begun. Measured at
   40ms: panel fully dark, 12px wider. That instant darkening was most of what
   read as "jumpy". A second layer fading in over the same duration as the
   widening makes the two one motion. */
#equipo-gallery .panel__scrim::after{content:'';position:absolute;inset:0;opacity:0;
  background:linear-gradient(0deg,rgba(14,11,7,.96) 0%,rgba(14,11,7,.9) 30%,
             rgba(14,11,7,.66) 50%,rgba(14,11,7,.2) 72%,rgba(14,11,7,0) 92%);
  transition:opacity var(--gallery-speed,.75s) var(--ease,cubic-bezier(.22,1,.36,1))}
#equipo-gallery .panel.is-open .panel__scrim::after,
#equipo-gallery.gallery--hover .panel:hover .panel__scrim::after,
#equipo-gallery.gallery--hover .panel:focus-visible .panel__scrim::after{opacity:1}
@media (prefers-reduced-motion:reduce){
  #equipo-gallery .panel__scrim::after{transition:none}
}

/* ══ CARVED HEADINGS — CRISPNESS FIX ═════════════════════════════════════════
   ⚠ AN SVG FILTER ON HTML TEXT RASTERISES THE TEXT. The browser renders the
   glyphs into an offscreen buffer and filters the PIXELS, and that buffer is
   not reliably allocated at devicePixelRatio — so the curves came back
   resampled: soft, with visible stair-stepping on the bowls. Confirmed at 5x
   magnification on "La misma persona".

   ivan-es runs the same carve recipe and does NOT have this, because there it
   is applied to SVG <text> inside an <svg>, which never leaves the vector
   pipeline. The recipe was never the problem; the substrate was.

   The fix keeps the type in the text pipeline: text-shadow is composited
   against live glyph rendering at device resolution, so it is crisp at any DPR.
   The trade is real and worth naming — text-shadow cannot put a groove INSIDE
   the letterform, so this reads as letterpress (pressed into the paper) rather
   than as an inner carve. On paper stock that is arguably the truer register,
   and a crisp letterpress beats a blurred intaglio at any size.

   The #carved / #carved-md filters are left in the document on purpose: if the
   headings are ever moved into SVG <text>, they work as-is. */
.carved{filter:none;
  /* ⚠ OFFSETS IN em, NOT px. The old SVG filter had the same bug and its own
     comment said so — a 2px groove on a 90px word is invisible. In em the carve
     scales with the type, so an h2 and the hero h1 read as the same surface.
     Purely vertical: any horizontal component reads as a drop shadow, and the
     word-level inline-block spans from splitLines make a sideways offset show
     up as a seam between words. */
  text-shadow:0 -0.020em 0.014em oklch(from var(--ink) l c h / .46),
              0  0.022em 0       oklch(from var(--paper) l c h / .96)}
h1.carved,.boundary__word.carved,.sweep-type.carved{filter:none}
/* On a dark ground the light/dark pair inverts, and over a photograph the
   shadow is doing legibility work as well as depth. */
.hero h1.carved,.onolive .carved,.ondark .carved,.boundary__word.carved{
  text-shadow:0  0.016em 0.012em rgba(0,0,0,.5),
              0 -0.018em 0       oklch(from var(--bone) l c h / .34),
              0  0.028em 0.22em  rgba(0,0,0,.34)}
/* the sweep-type heading paints its own colour through background-clip:text —
   a text-shadow would sit UNDER a transparent fill and show through as a ghost */
.sweep-type.carved{text-shadow:none}

/* ══ THE CARVE ITSELF — an inner gradient, not a shadow ══════════════════════
   ⚠ text-shadow can only ever give a LIP. The groove has to be INSIDE the
   letterform, and the only way to paint inside live glyphs without rasterising
   them is background-clip:text — a paint operation, so it stays crisp at every
   DPR, which is exactly what the SVG filter could not do.

   The gradient is the physics: the top wall of an incised stroke is in shadow,
   the bottom bevel catches the light. Dark at the top, lighter at the bottom,
   on paper. On a dark ground it inverts.

   ⚠ NO text-shadow ON THESE. With a transparent fill a shadow shows straight
   THROUGH the glyph instead of behind it. The lip is bought back with a second
   gradient stop rather than a shadow. */
@supports (background-clip:text) or (-webkit-background-clip:text){
  .carved{
    /* ⚠ AQUÍ ES DONDE SE CORTABA LA «g». Con `background-clip:text` la letra
       visible ES EL FONDO del elemento recortado a los glifos, y un fondo
       termina en la caja de relleno: la tinta que sobresale de esa caja
       —descendentes de g, p, q, y; ascendentes de f y l— sencillamente no se
       pinta. No es un recorte que se pueda arreglar con `overflow`, porque no
       hay nada recortado: hay tinta sin pintar.
       El relleno agranda la caja del FONDO y el margen negativo devuelve el
       hueco, así que la maquetación no se mueve. Medido con métricas de canvas:
       a 57,6px la tinta de la Bodoni baja 5,5px (0,10em) por debajo de la caja
       de línea; 0,24em cubre eso con holgura a cualquier cuerpo.
       (En los `span` —los rótulos del barrido— `margin-block` no aplica, pero
       el relleno sí agranda el fondo, que es lo que hace falta.) */
    padding-block:.14em .26em;margin-block:-.14em -.26em;
    color:transparent;
    background-image:linear-gradient(177deg,
      oklch(from var(--ink) calc(l * 0.62) c h) 0%,
      var(--ink) 46%,
      oklch(from var(--ink) calc(l * 1.42 + 0.06) c h) 88%,
      oklch(from var(--ink) calc(l * 1.62 + 0.10) c h) 100%);
    -webkit-background-clip:text; background-clip:text;
    text-shadow:none;
  }
  .hero h1.carved,.onolive .carved,.ondark .carved,.boundary__word.carved{
    background-image:linear-gradient(177deg,
      oklch(from var(--bone) calc(l * 1.02) c h) 0%,
      oklch(from var(--bone) calc(l * 0.94) c h) 52%,
      oklch(from var(--bone) calc(l * 0.66) c h) 100%);
    /* over a photograph the glyph still needs to detach from what is behind it,
       and with a transparent fill that job falls to a drop-shadow on the box —
       which does NOT rasterise the text, unlike filter:url() */
    filter:drop-shadow(0 2px 14px rgba(0,0,0,.42));
    text-shadow:none;
  }
  /* it paints its own fill already */
  .sweep-type.carved{background-image:none;color:inherit}
}

/* ══ THE OPENING ═══════════════════════════════════════════════════════════
   ⚠ ONE GROUND. This was a white band over a tobacco one, and a hard
   horizontal seam across the viewport reads as two stacked sections rather
   than one composition. Paper wins because the mark is black nylon: on tobacco
   the leash would disappear into the ground. The frames carry real alpha, so
   the ground is our choice rather than one the footage imposed.
   ⚠ dvh, never vh: vh counts the retracted browser chrome, so the copy gets
   pushed under the fold on a real phone while passing in the simulator. */
/* ⚠ auto auto, NUNCA `auto 1fr`. Con una fila 1fr la segunda se estira hasta
   llenar la pantalla y el hueco entre la marca y el titular crece con el alto
   del móvil: 193px en un 844. El bloque se centra entero y el aire queda
   fuera, arriba y abajo, en vez de abrirse por dentro. */
.opening{position:relative;min-height:100dvh;display:grid;grid-template-rows:auto auto;
  align-content:center;row-gap:clamp(14px,3dvh,44px);
  background:var(--paper);color:var(--ink);isolation:isolate}

.opening__mark{display:grid;place-items:center;
  padding:clamp(52px,6.5vh,76px) var(--gutter) clamp(4px,1vh,14px)}

/* a LOGOTYPE, not a backdrop. It is the brand mark writing itself, and marks
   are small — at hero scale it stopped being a signature and became wallpaper.
   aspect-ratio from the frames (920x294) so the canvas has a laid-out box
   before a single frame has loaded and nothing jumps when the first arrives. */
.opening__canvas{display:block;width:min(430px,66vw);aspect-ratio:960/308;height:auto}

.opening__say{display:flex;align-items:center;padding-block:clamp(30px,5vh,72px)}
/* wide enough to hold "Siempre la misma persona" so the hand-placed break
   decides the line rather than the column */
/* ⚠ LA FILA LARGA MANDA. «Informes semanales» son 18 caracteres frente a los
   14 de «Paseos caninos», y a --t-hero (43.2px en un móvil de 390) mide ~369px
   dentro de una columna de 350: se partía en tres filas. El tope lo fija la
   línea más larga medida, no el gusto. Y `text-wrap:balance` fuera: hay un
   <br> duro, así que el reparto automático sólo puede estropear las dos filas
   que ya están decididas. */
.opening h1{font-size:clamp(1.85rem,9.2vw,5rem);line-height:var(--lh-tight);
  letter-spacing:-.03em;max-width:100%;color:var(--ink)}
.opening h1 em{font-style:italic;color:inherit}
.opening__what{margin-top:1.05em;font-family:var(--f-body);font-weight:500;
  font-size:clamp(1.02rem,1.25vw,1.22rem);line-height:1.5;letter-spacing:.01em;
  color:var(--ink-2);max-width:44ch;text-wrap:pretty}
.opening__cta{margin-top:clamp(22px,3.2vh,40px);display:flex;gap:clamp(16px,2vw,28px);
  align-items:center;flex-wrap:wrap}

@media (max-width:760px){
  /* ⚠ LA MARCA SE QUEDA DONDE ESTABA; lo que sube es lo demás. Centrar el
     bloque entero cerraba el hueco pero bajaba la correa, y la correa arriba
     era lo único del héroe móvil que ya funcionaba. Anclado arriba, y el aire
     sobrante se va abajo, donde lo ocupa el fantasma. */
  /* ⚠ EL AIRE SE REPARTE, NO SE ACUMULA. El bloque medía 407 de 844 y los
     otros 437px caían de golpe debajo de los botones. Ni centrarlo servía:
     eso sólo mueve el montón de blanco de un sitio a otro y encima baja la
     correa. La correa se queda donde estaba (padding-top intacto) y el
     fantasma también (va en absolute), así que la fila 1fr coge SÓLO el
     sobrante y `space-evenly` lo divide en huecos iguales entre titular y
     botones. El padding inferior reserva la banda del fantasma para que los
     botones no se le echen encima.
     La regla de arriba prohíbe `auto 1fr` cuando el bloque se centra —
     entonces la fila elástica hincha el hueco. Aquí es al revés: el estirón
     ES el mecanismo, porque lo que reparte el espacio va dentro de la fila. */
  /* ⚠ EL RELLENO INFERIOR AHORA RESERVA LA FOTO, no el fantasma. Reservaba la
     franja del fantasma, que en móvil ya no se pinta, así que el contenido se
     repartía por encima de la foto y los botones caían dentro de ella (medido:
     la foto arrancaba en y=506 y las ctas acababan en 593). Igualado al alto de
     la foto, `space-evenly` reparte correa, titular y botones en lo que queda
     y la foto se queda sola en su banda. */
  .opening{align-content:stretch;grid-template-rows:auto 1fr;row-gap:0;
    padding-bottom:clamp(84px,12.5dvh,124px)}
  .opening__mark{padding-top:clamp(44px,7dvh,68px);padding-bottom:0}
  .opening__say{padding-block:0;align-items:stretch}
  /* una sola vertical: la correa ya estaba centrada y el titular no, de modo
     que el héroe tenía dos ejes compitiendo. En móvil manda el centro. */
  .opening__say .wrap{display:flex;flex-direction:column;justify-content:space-evenly;
    min-height:100%;text-align:center}
  .opening h1{margin-inline:auto}
  /* el margen propio de los botones se suma al hueco que ya reparte
     space-evenly y rompe la simetría */
  .opening__cta{justify-content:center;margin-top:0}
  /* el .wrap nuevo mete gutter también en móvil; aquí la marca quiere
     todo el ancho disponible, así que se anula */
  .opening__mark .wrap{width:100%}
  .opening__canvas{width:min(330px,86vw);margin-inline:auto}
  .opening__say{padding-block:0}
}

/* ══ M-14 light-shafts on the two tobacco sections ═════════════════════════
   The light is TERRACOTTA, not white — the same hue as the metal on the
   buttons, so the one warm colour on the page has a single source rather than
   appearing twice by coincidence. `--shaft-rgb` is the colour of the LIGHT,
   which is why it is a raw triplet and not a brand token.
   ⚠ The part needs a positioned parent and content lifted above it: `.shafts`
   is inset:0 z-index:0, so anything at auto would sit under the light. */
#filosofia{position:relative;isolation:isolate;overflow:clip}
#filosofia > .wrap{position:relative;z-index:1}
#filosofia > .shafts,.nightband > .shafts{--shaft-rgb:229 146 103}

/* la banda pinta el suelo y la luz; las secciones de dentro van transparentes
   para no taparla, y su contenido sube por encima */
.nightband{position:relative;isolation:isolate;overflow:clip;background:var(--night)}
.nightband > .section{background:transparent}
.nightband > .section > .wrap{position:relative;z-index:1}

/* ══ the thesis section — type only ════════════════════════════════════════
   Heading and body share one grid so the body's left edge lines up with the
   heading's, and the heading is free to run wider than the reading measure —
   display type wants a longer line than prose does. */
/* ⚠ LA SECCIÓN OCUPA LA PANTALLA. Es la tesis: si entra a media altura
   compite con lo que tiene encima y debajo en el mismo golpe de vista. Con
   min-height + align-content:center el aire se reparte solo, sin fijar
   paddings que luego pelean con el alto real del móvil. `.shafts` va con
   inset:0, fuera de flujo, así que la rejilla no lo toca. */
.thesis{min-height:100dvh;display:grid;align-content:center;
  padding-block:clamp(84px,13vh,168px)}
.thesis__grid{display:grid;gap:clamp(26px,4vh,54px)}
/* ⚠ ESTE TITULAR NO ES UN h2 CUALQUIERA. --t-h2 es la escala de "El equipo" o
   "Preguntas", rótulos que sólo nombran la sección. Éste ES el argumento de
   la página, y a 29.6px en un móvil se leía como un rótulo más dentro de una
   sección de pantalla completa: el tamaño contradecía la jerarquía. Escala
   propia, y el `br` duro obliga a que la fila más larga —"La misma persona,"—
   quepa entera, así que el techo sale de medirla, no de elegirlo. */
.thesis h2{font-size:clamp(2rem,9.7vw,4rem);line-height:1.08;
  max-width:none;text-wrap:balance}
/* ⚠ 53ch, and the number is not a typo. Craft floor asks for 65–75 CHARACTERS;
   `ch` is the width of a ZERO, and prose averages narrower than that, so 66ch
   measured 82 characters at 1440 and 95 at 1024. Measured back: 53ch lands the
   body in the 60s and 70s where it belongs. Set the measure by measuring, not
   by copying the number out of the rule. */
.thesis__body{max-width:53ch}
/* ⚠ UNA SOLA MEDIDA PARA TODA LA PROSA. Antes la entradilla iba a 18.9px y los
   párrafos a 16px: dos tamaños en un bloque corto es jerarquía sin trabajo que
   hacer. La estructura sale de acortar y separar, no de escalar el tipo. Lo
   único que distingue a la primera frase es el peso y el color pleno. */
/* ⚠ EL CUERPO SUBE Y RESPIRA. A 16px con interlínea de párrafo corrido los
   tres párrafos se leían como un muro: el problema no era la cantidad de
   texto sino que no había aire DENTRO. Sube el cuerpo, sube la interlínea y
   se abre el espacio entre párrafos; la medida sigue en ch, así que los
   caracteres por línea no se mueven cuando crece la fuente. */
/* ⚠ EL ALTO LO PONE EL CUERPO, NO EL TITULAR. Medido con una sonda
   inline-block: "La misma persona," son 17 caracteres y a 360px de pantalla
   la columna da 320px, o sea un techo de 37.7px — el titular ya estaba a
   36.8. No hay sitio ahí, así que el relleno de la sección sale de subir la
   prosa; el `clamp` va en vw para que el techo lo marque la columna y no un
   suelo en rem que en un móvil estrecho revienta el `br` a tres filas. */
.thesis__body{font-size:clamp(1.24rem,1.15vw + .95rem,1.42rem);line-height:1.68;
  letter-spacing:.004em}
.thesis__body .standfirst{font-weight:500;color:var(--ink);text-wrap:pretty;
  margin-bottom:1.5em}
.thesis__body p{text-wrap:pretty}
/* ⚠ 1.75em, no 1.25. La estructura de estos bloques sale del hueco entre
   párrafos, no de la escala del tipo —todo va al mismo cuerpo a propósito—,
   así que si el hueco no se distingue del interlineado (1.68) los tres
   párrafos se leen como un muro. A 1.75em el salto es claramente mayor que
   una línea y cada párrafo se lee como una idea aparte. */
.thesis__body p + p{margin-top:1.75em}

/* ⚠ 920px, MEDIDO, no elegido. «La misma persona, siempre.» en una fila mide
   807px a 64px; el wrap da 846 a 920 de pantalla y 810 a 880. 880 dejaba 3px de
   holgura, que es ninguna. Por debajo de aquí el titular vuelve a dos filas con
   `br-sm`, y por eso las dos reglas comparten el número: un salto que cambia en
   un ancho distinto al de la composición deja una franja donde el titular no es
   ni una cosa ni la otra. */
@media (min-width:920px){
  /* two columns once there is room: the heading holds the left, the prose the
     right. Below this the measure alone is enough structure and a second
     column would squeeze the body under 45ch.
     ⚠ align-items:center, y el titular YA NO es sticky. Pegado arriba se movía
     respecto a su propio párrafo mientras el resto de la página no se movía,
     que es justo lo que hace que una composición de dos columnas se lea como
     dos cosas y no como una. */
  /* ⚠ LA COLUMNA LA FIJA LA FILA MÁS LARGA DEL TITULAR, no el gusto. Con
     .82fr la columna medía 508px y "La misma persona," a 64px mide 508px
     exactos: el `br` seguía ahí pero la primera fila se partía igual y salían
     tres. Se ensancha hasta que la fila entra con holgura. */
  /* ⚠ AL CENTRO, y se probó lo contrario. Alineado arriba, el titular —dos
     filas— se quedaba flotando en lo alto de una columna vacía frente a un
     bloque de prosa mucho más alto: la izquierda parecía un sitio donde faltaba
     algo. Centrado hace de contrapeso de esa masa de texto y las dos mitades se
     equilibran. Con un titular LARGO la conclusión sería la contraria; aquí
     manda la diferencia de altura entre las dos columnas. */
  /* ⚠ COMPOSICIÓN CENTRADA, 2026-09-20 (Ivan): «la estructura de filosofía en
     escritorio parece desorganizada». Y lo parecía. Las dos columnas dejaban el
     titular flotando en mitad de una columna vacía —164px de texto en una fila
     de 461— con el cuadrante inferior izquierdo hueco y sin nada que lo
     explicara. Centrado y a UNA fila, el titular es un dintel: la sección tiene
     un eje, y el hueco que queda pasa a ser margen simétrico en vez de un
     agujero en una esquina.
     ⚠ LA PROSA NO SE CENTRA, sólo su caja. Un párrafo centrado es ilegible: el
     ojo pierde el punto de retorno en cada línea. Centrado el bloque,
     alineado el texto. */
  /* ⚠ EL AIRE ENTRE TITULAR Y PROSA ES LO QUE SEPARA UNA COMPOSICIÓN DE UN
     MURO. Con 46px, un titular de 64px y un bloque de prosa casi del mismo
     ancho quedaban pegados y la sección se leía como una sola masa. El hueco
     tiene que ser mayor que la altura de una línea del titular para que se lea
     como un salto de rango y no como interlineado. */
  .thesis__grid{grid-template-columns:minmax(0,1fr);justify-items:center;
    gap:clamp(44px,5.5vw,88px)}
  .thesis h2{position:static;text-align:center}
  .thesis__body{margin-inline:auto}
  /* la prosa sube de cuerpo: 16px junto a un titular de 47px se leía como pie
     de página. La medida es en ch, así que sube con la fuente y el número de
     caracteres por línea no se mueve. El clamp de arriba ya llega a 1.28rem
     en escritorio; aquí sólo se garantiza el suelo. */
  .thesis__body{font-size:max(1.32rem,clamp(1.24rem,1.15vw + .95rem,1.42rem))}
}
@media (max-width:760px){
  /* ⚠ EL AIRE MUERTO ESTABA ARRIBA. Con la sección a 100dvh y el contenido
     centrado quedaban ~190px de negro entre la palabra FILOSOFÍA del límite y
     el titular — y el límite móvil ya mide 330px, así que el hueco se leía
     como una pantalla vacía. Baja el padding y sube el contenido: el sobrante
     que quede se va abajo, detrás del texto, no delante de él. */
  /* ⚠ 100dvh EN MÓVIL DEJABA 142px MUERTOS ARRIBA Y ABAJO: el contenido mide
     560px en un 844 y no hay forma de que llene la pantalla sin un cuerpo tan
     grande que la línea baje de 35 caracteres. 82dvh es el alto que el texto
     casi llena solo, así que sigue leyéndose como pantalla completa —el
     límite de arriba ya ocupa otros 330— y el sobrante cae a ~30px por lado.
     En pantallas cortas (360, 320) el contenido ya pasa de 82dvh y esto no
     hace nada. */
  /* ⚠ EL MARGEN NEGATIVO NO ACORTA EL BARRIDO. El paso del barrido se calcula
     con el rect del PROPIO límite, así que solapar la sección siguiente le
     roba el negro muerto del pie sin tocar ni un frame del efecto. Y ese pie
     ya es noche cuando se ve: el borde inferior del límite entra en pantalla
     en p = h/(h+vh) ≈ 0.28, y para entonces la máscara lo ha cubierto. */
  .thesis{min-height:82dvh;padding-block:clamp(28px,4vh,44px)}
  /* ⚠ CON EL ID, no con la clase: `#filosofia{margin-top:-1px}` —el sello de
     la junta— es (0,1,0,0) y se comía este margen entero sin avisar. Mismo
     fallo de especificidad que ya nos costó `.opening__markrow`. El valor
     absorbe también aquel -1px. */
  #filosofia.thesis{margin-top:calc(-1 * clamp(64px,11dvh,96px))}
  .thesis__grid{gap:clamp(20px,2.8vh,32px)}
  .thesis__body{max-width:none}
}

/* ══ the nav reveals itself ════════════════════════════════════════════════ */
/* ⚠ OCULTA POR DEFECTO, no "oculta cuando el JS lo dice". Antes la regla sólo
   escondía la barra al aparecer data-state="off", así que entre el primer
   pintado y la ejecución del módulo se veía asomar y desaparecer en cada
   recarga. El estado inicial tiene que estar en el CSS, no en el JS. */
.nav{transition:transform .3s cubic-bezier(.22,1,.36,1),opacity .3s ease-out,
     background .3s ease-out,border-color .3s ease-out;will-change:transform;
     transform:translateY(-101%);opacity:0;pointer-events:none}
.nav[data-state="on"]{transform:none;opacity:1;pointer-events:auto}
@media (prefers-reduced-motion:reduce){
  /* no slide, but it still comes and goes — the point is that it is out of the
     way, and that is not a motion preference */
  .nav{transition:opacity .01ms}
  .nav{transform:none;visibility:hidden}
  .nav[data-state="on"]{visibility:visible}
}

/* ══ opción A — un solo eje, la marca sobre el titular ═════════════════════
   Medido antes: la marca iba centrada en x=720 y el titular empezaba en x=120,
   dos ejes a 600px uno del otro, con 190px de vacío entre ellos y 181px más
   bajo el CTA — el 41% de la primera pantalla vacía. Metiendo la marca en el
   MISMO .wrap que el titular comparten borde izquierdo, y centrando el bloque
   entero en vertical los dos huecos desaparecen a la vez.
   Sólo escritorio: en móvil todo es ya una columna, así que el conflicto de
   ejes no existe y la marca centrada arriba funciona. */
@media (min-width:1080px){
  /* ⚠ grid-template-rows tiene que dejar de ser `auto 1fr`. Con una fila 1fr
     la segunda se estira hasta llenar el alto y align-content no puede hacer
     nada — el hueco de 190px seguía intacto aunque el bloque dijera "centrar". */
  .opening{row-gap:clamp(26px,3.6vh,48px)}
  .opening__mark{padding:0;place-items:stretch}
  .opening__canvas{width:min(640px,46vw)}
  .opening__say{padding-block:0}
}
/* el subtexto era 4.4× más pequeño que el titular y por eso nadie lo leía;
   a 3.4× vuelve a formar parte del bloque en vez de leerse como un pie */
.opening__what{font-size:clamp(1.06rem,1.45vw,1.34rem);color:var(--ink)}

/* ══ MADRID — el sello de ciudad, que llega después de la marca ═════════════ */
.opening__markrow{display:grid;justify-items:center;gap:clamp(10px,1.6vh,18px)}
/* ⚠ CONTRAPESO, NO PIE DE FOTO. A 13px junto a un objeto de 640px la relación
   era de 1:50 y se leía como una miga en un hueco. Aquí abajo y con cuerpo,
   hace de zócalo del logotipo: la marca descansa sobre la ciudad. */
.opening__place{font-family:var(--f-body);font-weight:600;
  font-size:clamp(1.02rem,2vw,1.9rem);letter-spacing:.42em;text-transform:uppercase;
  color:var(--ink-2);margin:0;line-height:1;
  opacity:0;transform:translateY(8px);
  transition:opacity .55s cubic-bezier(.22,1,.36,1),transform .55s cubic-bezier(.22,1,.36,1)}
/* llega a mitad del trazo, no al final */
.opening__mark.is-past .opening__place{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  .opening__place{transition:none}
}
@media (min-width:1080px){
  /* a la derecha de la correa, alineado con su línea de base óptica, no con
     el borde de la caja: el trazo acaba muy por encima del fondo del lienzo */
  /* debajo también en escritorio, y alineado al mismo eje que la correa y el
     titular — una sola columna en toda la apertura */
  .opening__mark .opening__markrow{display:grid;justify-items:start;
    gap:clamp(14px,1.8vh,26px)}
  .opening__place{padding-left:.42em}   /* compensa el tracking del último hueco */
}

/* ══ el fantasma en el héroe ═══════════════════════════════════════════════
   ⚠ El 4% del componente está probado sobre un fondo casi negro, donde pálido
   sobre oscuro se lee como suelo. Sobre papel hace falta más tinta para que
   se vea siquiera, y muy poca más para que compita con la correa: el margen
   entre "no está" y "estorba" es estrecho, así que el valor sale de mirarlo,
   no de copiar el del componente. */
.opening{position:relative;overflow:clip}
.opening > .ghost{
  /* tallado en el papel: el relleno es una sombra en la superficie y el labio
     de luz va DEBAJO, que es donde da la luz en un hueco. Sin filtro SVG —a
     este cuerpo rasteriza y se ve el pixelado— así que se queda vectorial. */
  /* la tinta vuelve al 11% de --ink: con el labio de luz puesto, el relleno
     antiguo se leía más claro de lo que era y el fantasma perdía presencia.
     Sólo este; los numerales de los pasos van sobre suelo oscuro y ahí la
     misma tinta los apagaría. */
  color:color-mix(in srgb, var(--ink) 5.5%, transparent);
  /* ⚠ EL TALLADO LO HACE EL LABIO, no el relleno. Al oscurecer el cuerpo bajé
     también la luz de abajo y las dos cosas se anularon: más oscuro, sí, pero
     sin hueco. Un surco de verdad tiene TRES valores — sombra en el canto de
     arriba, cuerpo hundido, y luz en el labio de abajo, que es donde da la luz
     dentro de una talla. El labio va casi a blanco puro: a 1px sobre un glifo
     de este cuerpo es un filo, no un aclarado, así que refuerza el hueco sin
     levantar el cuerpo. */
  /* ⚠ EL LABIO, UN PÍXEL. Con un segundo brillo a 2px de desplazamiento los
     filetes de la Bodoni —2 o 3px— quedaban cubiertos enteros de blanco y el
     glifo se leía en relieve, más claro que el papel, en vez de hundido. Un
     solo píxel abajo es un filo: talla los astiles gruesos y deja los finos
     con su propio color. La sombra difusa de arriba es la del fondo del
     surco, que es lo que da la profundidad sin tocar el filo. */
  text-shadow:
    0 1px 0 rgb(255 255 255 / .55),
    0 -1px 0 rgb(0 0 0 / .085),
    0 -3px 5px rgb(0 0 0 / .034);
  font-size:clamp(9rem,20vw,22rem);
  inset-block-end:-0.18em;
  /* ⚠ ARRANCA INVISIBLE. Bodoni va con `font-display:swap`, así que hasta que
     llega el fichero el navegador pinta la palabra en Didot/Georgia y luego la
     cambia — a 9-22rem ese cambio es un salto de un tercio del ancho, imposible
     de no ver. El fantasma espera a que la tipografía esté cargada y entra en
     fundido; el resto de la página puede permitirse el swap porque a tamaño de
     texto la sustitución no se lee como un salto. */
  opacity:0;
  z-index:-1}

/* ══ la entrada del héroe ═══════════════════════════════════════════════════
   Orden por importancia, no por posición: manda la correa, que es el único
   momento de autor de la página; detrás el titular, que es lo que hay que
   leer; luego la fotografía, que es contexto; después los botones, que es lo
   que hay que hacer; y al final el fantasma, que es una marca de agua y llega
   sin prisa. Nada se mueve más de 10px ni dura más de 700ms: es una entrada,
   no una coreografía.
   El interruptor lo pone el JS (`listo`) cuando las tipografías están; sin él
   nada de esto arranca, que es justo lo que evita fundir un hueco vacío. */
@keyframes entra{from{opacity:0;translate:0 10px}to{opacity:1;translate:0 0}}

.opening__canvas{opacity:0}
.opening.listo .opening__canvas{animation:entra 620ms cubic-bezier(.22,1,.36,1) both}

/* el titular reutiliza el mecanismo de la casa —cajas enmascaradas que
   suben—, sólo que aquí lo dispara `listo` en vez del scroll. El escalón entre
   letras lo reparte el JS; estas dos reglas sólo mueven el arranque del
   conjunto para que la correa vaya delante. */
.opening.listo h1[data-split] .ln > span,
.opening.listo h1[data-split] .lt > span{transform:none}
/* ⚠ el retardo de arranque va en la CAJA, no en el span: el JS ya escribe un
   `transition-delay` por letra y ponerlo aquí también lo pisaría entero. Se
   suma con `transition` en el contenedor mediante un retardo de animación… no:
   se resuelve dando al titular del héroe su propio retardo base por letra
   desde el JS. Aquí sólo queda el de la variante de líneas. */
.opening h1[data-split="lineas"] .ln:nth-child(1) > span{transition-delay:250ms}
.opening h1[data-split="lineas"] .ln:nth-child(2) > span{transition-delay:298ms}

.opening__cta{opacity:0}
.opening.listo .opening__cta{animation:entra 520ms cubic-bezier(.22,1,.36,1) 560ms both}

.opening.listo > .ghost{animation:fantasma 1600ms cubic-bezier(.4,0,.3,1) 700ms both}
@keyframes fantasma{from{opacity:0}to{opacity:1}}

@media (prefers-reduced-motion:reduce){
  .opening.listo .opening__canvas,
  .opening.listo .opening__cta,
  .opening.listo > .ghost{animation-duration:1ms;animation-delay:0ms}
}
.opening__mark,.opening__say{position:relative;z-index:1}

@property --abre{syntax:'<number>';inherits:false;initial-value:1}
@keyframes parpadeo{
  from{--abre:0}
  to{--abre:1}
}
@keyframes respira{
  from{--abre:0}
  to{--abre:1}
}
@media (prefers-reduced-motion:reduce){
  .opening__foto{animation:none}
}

/* ── la fotografía del héroe ───────────────────────────────────────────────
   DOS papeles según el eje que sobre. En escritorio el hueco es horizontal, así
   que sale del flujo y ocupa la derecha DE ARRIBA ABAJO — a media altura era un
   recorte en la esquina, no una columna. En móvil no sobra ancho —el bloque ya
   usa el 90%—, así que se queda EN EL FLUJO como una banda a sangre entre el
   titular y los botones.

   ⚠ LA CAJA ENMASCARA Y RECORTA; EL <img> SE MUEVE DENTRO. La máscara viaja en
   el sistema de coordenadas del propio elemento, así que desplazar el elemento
   enmascarado arrastra también el degradado y el fundido deja de estar donde
   toca. Es la misma separación caja-quieta / imagen-móvil que ya hubo que
   hacer en el pie, y por el mismo motivo.

   ⚠ TODAS las máscaras van con pendiente cero en los dos extremos. Un fundido
   de alfa lineal es continuo en valor y salta en la derivada justo donde
   acaba; ahí el ojo dibuja una banda de Mach y el fundido se lee como un
   canto. La rampa es 3t²−2t³ en once topes: arranca y termina plana. */
/* ⚠ en PAUSA hasta que el director da la salida. Si la foto se abriera antes
   que el titular, la secuencia empezaría por el contexto y no por el mensaje.
   La regla de `running` va por especificidad (0,3,0 contra 0,1,0), no por
   orden: las declaraciones de `paused` viven más abajo, dentro de las dos
   consultas de medios. */
.opening__foto{overflow:hidden;pointer-events:none}
.opening.listo .opening__foto{animation-play-state:running}
.opening__foto img{position:absolute;left:0;width:100%;max-width:none;
  /* el desbordamiento por arriba y por abajo ES el recorrido del paralaje:
     sin él, derivar la imagen destaparía la caja por un canto */
  top:calc(-1 * var(--des));height:calc(100% + var(--des) * 2);
  object-fit:cover;object-position:50% var(--enc,50%);
  translate:0 var(--para,0px)}
@media (prefers-reduced-motion:reduce){.opening__foto img{translate:none}}

@media (min-width:1080px){
  /* el fantasma y la foto son las dos CAPAS DE FONDO del héroe, no contenido:
     a z-index -1 pintan sobre el papel de `.opening` (que aísla) y por debajo
     de todo lo que va en el flujo, así que el titular no necesita que su
     contenedor esté posicionado para ganarles. Y sin `position` en
     `.opening__say`, la foto resuelve contra `.opening` — que es la altura del
     héroe entero, no los 260px de la fila del titular. */
  .opening__say{position:static;z-index:auto}
  /* 46% y alto completo. El titular acaba en x=836 y la foto arranca en 778,
     de modo que las dos últimas letras entran EN el fundido — que ahí va por
     debajo del 3% de opacidad. Es lo que enlaza las dos mitades: con el canto
     por fuera del texto se leían como dos láminas pegadas. */
  .opening__foto{position:absolute;z-index:-1;inset:0 0 0 auto;width:46%;
    --des:26px;
    /* ⚠ EL CANTO DE ARRIBA A LA IZQUIERDA NO ES RECTO. Cuatro capas de máscara,
       compuestas de la última hacia la primera: dos lóbulos radiales que se
       SUMAN —su unión es una nube, y es su contorno el que curva el canto hacia
       dentro por arriba— y encima el fundido lateral y el de abajo, que
       INTERSECAN. Un borde vertical perfecto delataba la caja; una curva no
       tiene dónde delatarse.
       ⚠ NI FUNDIDO POR LA DERECHA NI POR ABAJO MÁS ALLÁ DEL 88%: por la derecha
       recorta la PANTALLA, y ese canto duro es el encuadre, no un descuido.
       ⚠ AL CARGAR, LA MÁSCARA SE CONTRAE Y SE SUELTA — no entra desde un canto.
       `--abre` hace tres cosas a la vez: mete los dos fundidos rectos hacia
       dentro (lateral y de abajo hasta el 62%), encoge los dos lóbulos al 62%
       de su tamaño, y —esto es lo que evita que se vean DOS bolas— los junta en
       un mismo centro (88% 52%), del que se separan hacia sus anclas al crecer.
       Con `--abre:1` los `calc` dan exactamente los valores de siempre, de modo
       que el reposo no cambia. Nada de `clip-path`: recortando, la forma
       tendría cantos duros mientras crece.
       Sin `feTurbulence`: a este tamaño rasteriza y se ve el grano, y además
       está en la lista de prohibidos del suelo de artesanía. */
    animation:respira 1550ms cubic-bezier(.24,.85,.3,1) 320ms backwards;animation-play-state:paused;
    -webkit-mask-image:linear-gradient(to right,transparent 0%,rgba(0,0,0,.028) calc(3% * (1 + 1.0667 * (1 - var(--abre,1)))),rgba(0,0,0,.104) calc(6% * (1 + 1.0667 * (1 - var(--abre,1)))),rgba(0,0,0,.216) calc(9% * (1 + 1.0667 * (1 - var(--abre,1)))),rgba(0,0,0,.352) calc(12% * (1 + 1.0667 * (1 - var(--abre,1)))),rgba(0,0,0,.500) calc(15% * (1 + 1.0667 * (1 - var(--abre,1)))),rgba(0,0,0,.648) calc(18% * (1 + 1.0667 * (1 - var(--abre,1)))),rgba(0,0,0,.784) calc(21% * (1 + 1.0667 * (1 - var(--abre,1)))),rgba(0,0,0,.896) calc(24% * (1 + 1.0667 * (1 - var(--abre,1)))),rgba(0,0,0,.972) calc(27% * (1 + 1.0667 * (1 - var(--abre,1)))),#000 calc(30% * (1 + 1.0667 * (1 - var(--abre,1))))),linear-gradient(to bottom,#000 calc(100% - 12% * (1 + 2.1667 * (1 - var(--abre,1)))),rgba(0,0,0,.972) calc(100% - 10.8% * (1 + 2.1667 * (1 - var(--abre,1)))),rgba(0,0,0,.896) calc(100% - 9.6% * (1 + 2.1667 * (1 - var(--abre,1)))),rgba(0,0,0,.784) calc(100% - 8.4% * (1 + 2.1667 * (1 - var(--abre,1)))),rgba(0,0,0,.648) calc(100% - 7.2% * (1 + 2.1667 * (1 - var(--abre,1)))),rgba(0,0,0,.500) calc(100% - 6% * (1 + 2.1667 * (1 - var(--abre,1)))),rgba(0,0,0,.352) calc(100% - 4.8% * (1 + 2.1667 * (1 - var(--abre,1)))),rgba(0,0,0,.216) calc(100% - 3.6% * (1 + 2.1667 * (1 - var(--abre,1)))),rgba(0,0,0,.104) calc(100% - 2.4% * (1 + 2.1667 * (1 - var(--abre,1)))),rgba(0,0,0,.028) calc(100% - 1.2% * (1 + 2.1667 * (1 - var(--abre,1)))),transparent 100%),radial-gradient(calc(86% * (.62 + .38 * var(--abre,1))) calc(64% * (.62 + .38 * var(--abre,1))) at calc(88% + (20% * var(--abre,1))) calc(52% + (-36% * var(--abre,1))),#000 36%,rgba(0,0,0,.972) 41.6%,rgba(0,0,0,.896) 47.2%,rgba(0,0,0,.784) 52.8%,rgba(0,0,0,.648) 58.4%,rgba(0,0,0,.500) 64%,rgba(0,0,0,.352) 69.6%,rgba(0,0,0,.216) 75.2%,rgba(0,0,0,.104) 80.8%,rgba(0,0,0,.028) 86.4%,transparent 92%),radial-gradient(calc(126% * (.62 + .38 * var(--abre,1))) calc(100% * (.62 + .38 * var(--abre,1))) at calc(88% + (-20% * var(--abre,1))) calc(52% + (36% * var(--abre,1))),#000 38%,rgba(0,0,0,.972) 43.6%,rgba(0,0,0,.896) 49.2%,rgba(0,0,0,.784) 54.8%,rgba(0,0,0,.648) 60.4%,rgba(0,0,0,.500) 66%,rgba(0,0,0,.352) 71.6%,rgba(0,0,0,.216) 77.2%,rgba(0,0,0,.104) 82.8%,rgba(0,0,0,.028) 88.4%,transparent 94%);
            mask-image:linear-gradient(to right,transparent 0%,rgba(0,0,0,.028) calc(3% * (1 + 1.0667 * (1 - var(--abre,1)))),rgba(0,0,0,.104) calc(6% * (1 + 1.0667 * (1 - var(--abre,1)))),rgba(0,0,0,.216) calc(9% * (1 + 1.0667 * (1 - var(--abre,1)))),rgba(0,0,0,.352) calc(12% * (1 + 1.0667 * (1 - var(--abre,1)))),rgba(0,0,0,.500) calc(15% * (1 + 1.0667 * (1 - var(--abre,1)))),rgba(0,0,0,.648) calc(18% * (1 + 1.0667 * (1 - var(--abre,1)))),rgba(0,0,0,.784) calc(21% * (1 + 1.0667 * (1 - var(--abre,1)))),rgba(0,0,0,.896) calc(24% * (1 + 1.0667 * (1 - var(--abre,1)))),rgba(0,0,0,.972) calc(27% * (1 + 1.0667 * (1 - var(--abre,1)))),#000 calc(30% * (1 + 1.0667 * (1 - var(--abre,1))))),linear-gradient(to bottom,#000 calc(100% - 12% * (1 + 2.1667 * (1 - var(--abre,1)))),rgba(0,0,0,.972) calc(100% - 10.8% * (1 + 2.1667 * (1 - var(--abre,1)))),rgba(0,0,0,.896) calc(100% - 9.6% * (1 + 2.1667 * (1 - var(--abre,1)))),rgba(0,0,0,.784) calc(100% - 8.4% * (1 + 2.1667 * (1 - var(--abre,1)))),rgba(0,0,0,.648) calc(100% - 7.2% * (1 + 2.1667 * (1 - var(--abre,1)))),rgba(0,0,0,.500) calc(100% - 6% * (1 + 2.1667 * (1 - var(--abre,1)))),rgba(0,0,0,.352) calc(100% - 4.8% * (1 + 2.1667 * (1 - var(--abre,1)))),rgba(0,0,0,.216) calc(100% - 3.6% * (1 + 2.1667 * (1 - var(--abre,1)))),rgba(0,0,0,.104) calc(100% - 2.4% * (1 + 2.1667 * (1 - var(--abre,1)))),rgba(0,0,0,.028) calc(100% - 1.2% * (1 + 2.1667 * (1 - var(--abre,1)))),transparent 100%),radial-gradient(calc(86% * (.62 + .38 * var(--abre,1))) calc(64% * (.62 + .38 * var(--abre,1))) at calc(88% + (20% * var(--abre,1))) calc(52% + (-36% * var(--abre,1))),#000 36%,rgba(0,0,0,.972) 41.6%,rgba(0,0,0,.896) 47.2%,rgba(0,0,0,.784) 52.8%,rgba(0,0,0,.648) 58.4%,rgba(0,0,0,.500) 64%,rgba(0,0,0,.352) 69.6%,rgba(0,0,0,.216) 75.2%,rgba(0,0,0,.104) 80.8%,rgba(0,0,0,.028) 86.4%,transparent 92%),radial-gradient(calc(126% * (.62 + .38 * var(--abre,1))) calc(100% * (.62 + .38 * var(--abre,1))) at calc(88% + (-20% * var(--abre,1))) calc(52% + (36% * var(--abre,1))),#000 38%,rgba(0,0,0,.972) 43.6%,rgba(0,0,0,.896) 49.2%,rgba(0,0,0,.784) 54.8%,rgba(0,0,0,.648) 60.4%,rgba(0,0,0,.500) 66%,rgba(0,0,0,.352) 71.6%,rgba(0,0,0,.216) 77.2%,rgba(0,0,0,.104) 82.8%,rgba(0,0,0,.028) 88.4%,transparent 94%);
    -webkit-mask-composite:source-in,source-in,source-over,source-over;
            mask-composite:intersect,intersect,add,add}
}

@media (max-width:1079px){
  /* banda en el flujo: `space-evenly` reparte correa · titular · foto ·
     botones, y el papel entra por los dos cantos horizontales.
     A SANGRE: los cantos verticales los pone la pantalla, no el gutter. Metida
     en el `.wrap`, los lados quedaban en línea recta contra el papel y se leía
     como una tarjeta pegada encima — el mismo defecto que la máscara evita
     arriba y abajo. */
  .opening__foto{position:relative;display:block;flex:none;
    width:100vw;max-width:none;margin-inline:calc(50% - 50vw);
    height:clamp(210px,34dvh,320px);--des:22px;--enc:100%;
    /* ⚠ RECTO, LARGO Y SIMÉTRICO — elegido, no heredado. Se probaron once
       tratamientos en un laboratorio (onda de cinta, de pulso, rizo, marea,
       duna, arco, óvalo, canto duro, foto de fondo, fundido recto) y en el
       móvil gana el recto. Dos razones: una curva pide alto por los dos
       cantos y en una banda de 210-320px ese alto sale del perro, que vive en
       el tercio bajo del encuadre; y cualquier onda mete un segundo asunto
       formal en un héroe cuyo único momento de autor es la correa. El
       laboratorio se cerró al decidir.
       ⚠ Pendiente CERO en los dos extremos (3t²−2t³ en once topes). Un alfa
       lineal es continuo en valor y salta en la derivada justo donde acaba;
       ahí el ojo dibuja una banda de Mach y el fundido se lee como un canto —
       el mismo mecanismo que la raya del pie. */
    /* ⚠ ABRE COMO UN PÁRPADO, Y LO QUE SE ANIMA ES LA MÁSCARA, no un
       `clip-path`. Recortando, la rendija tenía cantos duros arriba y abajo:
       el fundido seguía en su sitio, fuera del recorte, así que durante toda la
       apertura la línea era una tira de foto cortada a cuchillo. Aquí cada tope
       del degradado se coloca RELATIVO AL CENTRO y escalado por `--abre`, de
       modo que el fundido se encoge junto con la banda y la línea fina ya nace
       con su papel a los dos lados.
       `--abre` necesita `@property` para poder interpolar; donde no exista, el
       valor salta y la banda aparece hecha, que es una degradación aceptable.
       No toca el layout: la altura de la caja no cambia en ningún momento. */
    animation:parpadeo 1150ms cubic-bezier(.42,0,.2,1) 320ms backwards;animation-play-state:paused;
    -webkit-mask-image:linear-gradient(to bottom,transparent calc(50% + (-50% * var(--abre,1))),rgba(0,0,0,.028) calc(50% + (-46.6% * var(--abre,1))),rgba(0,0,0,.104) calc(50% + (-43.2% * var(--abre,1))),rgba(0,0,0,.216) calc(50% + (-39.8% * var(--abre,1))),rgba(0,0,0,.352) calc(50% + (-36.4% * var(--abre,1))),rgba(0,0,0,.500) calc(50% + (-33% * var(--abre,1))),rgba(0,0,0,.648) calc(50% + (-29.6% * var(--abre,1))),rgba(0,0,0,.784) calc(50% + (-26.2% * var(--abre,1))),rgba(0,0,0,.896) calc(50% + (-22.8% * var(--abre,1))),rgba(0,0,0,.972) calc(50% + (-19.4% * var(--abre,1))),#000 calc(50% + (-16% * var(--abre,1))),#000 calc(50% + (16% * var(--abre,1))),rgba(0,0,0,.972) calc(50% + (19.4% * var(--abre,1))),rgba(0,0,0,.896) calc(50% + (22.8% * var(--abre,1))),rgba(0,0,0,.784) calc(50% + (26.2% * var(--abre,1))),rgba(0,0,0,.648) calc(50% + (29.6% * var(--abre,1))),rgba(0,0,0,.500) calc(50% + (33% * var(--abre,1))),rgba(0,0,0,.352) calc(50% + (36.4% * var(--abre,1))),rgba(0,0,0,.216) calc(50% + (39.8% * var(--abre,1))),rgba(0,0,0,.104) calc(50% + (43.2% * var(--abre,1))),rgba(0,0,0,.028) calc(50% + (46.6% * var(--abre,1))),transparent calc(50% + (50% * var(--abre,1))));
            mask-image:linear-gradient(to bottom,transparent calc(50% + (-50% * var(--abre,1))),rgba(0,0,0,.028) calc(50% + (-46.6% * var(--abre,1))),rgba(0,0,0,.104) calc(50% + (-43.2% * var(--abre,1))),rgba(0,0,0,.216) calc(50% + (-39.8% * var(--abre,1))),rgba(0,0,0,.352) calc(50% + (-36.4% * var(--abre,1))),rgba(0,0,0,.500) calc(50% + (-33% * var(--abre,1))),rgba(0,0,0,.648) calc(50% + (-29.6% * var(--abre,1))),rgba(0,0,0,.784) calc(50% + (-26.2% * var(--abre,1))),rgba(0,0,0,.896) calc(50% + (-22.8% * var(--abre,1))),rgba(0,0,0,.972) calc(50% + (-19.4% * var(--abre,1))),#000 calc(50% + (-16% * var(--abre,1))),#000 calc(50% + (16% * var(--abre,1))),rgba(0,0,0,.972) calc(50% + (19.4% * var(--abre,1))),rgba(0,0,0,.896) calc(50% + (22.8% * var(--abre,1))),rgba(0,0,0,.784) calc(50% + (26.2% * var(--abre,1))),rgba(0,0,0,.648) calc(50% + (29.6% * var(--abre,1))),rgba(0,0,0,.500) calc(50% + (33% * var(--abre,1))),rgba(0,0,0,.352) calc(50% + (36.4% * var(--abre,1))),rgba(0,0,0,.216) calc(50% + (39.8% * var(--abre,1))),rgba(0,0,0,.104) calc(50% + (43.2% * var(--abre,1))),rgba(0,0,0,.028) calc(50% + (46.6% * var(--abre,1))),transparent calc(50% + (50% * var(--abre,1))))
}
}

@media (max-width:760px){
  /* la variante .is-center del propio componente: en escritorio el fantasma
     ancla a la izquierda porque hay columna que sostener, pero en móvil todo
     lo demás está centrado y un fantasma a la izquierda deja el héroe con dos
     ejes otra vez */
  .opening > .ghost{font-size:clamp(6rem,26vw,11rem);
    inset-inline-start:50%;translate:-50% 0}
}

/* ══ el momento del perro ══════════════════════════════════════════════════
   Hermana de la tesis, no continuación suya. La tesis va a DOS COLUMNAS con el
   titular a un lado y la prosa al otro; repetir esa retícula aquí, con más
   texto, dejaba una columna izquierda casi vacía frente a una derecha larga.
   Aquí el titular CRUZA las dos columnas y la prosa se reparte debajo: el
   ancho se llena, las dos columnas acaban a la misma altura, y de paso la
   sección no se lee como una repetición de la anterior.
   La tipografía se hereda de `.thesis__body` a propósito: es prosa del mismo
   rango y no hay motivo para inventarle una escala nueva. */
.momento{padding-block:clamp(64px,10vh,132px)}
.momento__grid{display:grid;gap:clamp(22px,3vh,38px)}
/* ⚠ LA MISMA ESCALA QUE LA TESIS. `--t-h2` es la escala de «El equipo» o
   «Preguntas», rótulos que sólo nombran la sección; ésta es prosa de tesis y
   llevaba 57.6px contra los 64 de su hermana. Un 11% de diferencia entre dos
   titulares del mismo rango no se lee como jerarquía, se lee como descuido. */
.momento h2{font-size:clamp(2rem,9.7vw,4rem);line-height:1.1;max-width:none;
  text-wrap:balance;margin:0}
/* la misma medida que `.thesis__body`: son prosa del mismo rango y dos
   anchos distintos en secciones hermanas es justo lo que se leía como desorden */
.momento__col{max-width:53ch}
/* ⚠ SE CAEN LAS DOS COLUMNAS (2026-09-20). No por composición sino por MEDIDA:
   daban 49 caracteres por línea a 1440, 41 a 1080 y 33 a 900 — el suelo de este
   propio fichero es «los 60 y 70, que es donde le toca». No llegaban a ninguna
   anchura, ni siquiera en un monitor grande, porque dos columnas de 56ch no
   caben en un wrap de 1200 por mucho que sobre pantalla. Apiladas y a la misma
   medida que la tesis dan 55 y suben con el cuerpo.
   Lo que se pierde —el reparto en dos temas— no se pierde: siguen siendo dos
   bloques, uno debajo del otro, separados por el row-gap. */
@media (min-width:920px){
  .momento__grid{grid-template-columns:minmax(0,1fr);justify-items:center;
    row-gap:clamp(44px,5.5vw,88px);align-items:start}
  /* ⚠ EL TOPE DE 16ch SE CAE, y con él las dos filas. Ese tope estaba medido
     contra «No es un paseo. / Es su momento.» (15 y 14 caracteres); el titular
     de hoy tiene 11 y 12, así que el tope ya no ataba nada y lo único que hacía
     era partir en dos una frase que cabe entera. A una fila y centrado, igual
     que la tesis: son secciones hermanas y tenían dos sistemas distintos, que
     es exactamente lo que se leía como desorden. */
  .momento h2{grid-column:1 / -1;margin-bottom:0;text-align:center;
    justify-self:center}
  /* ⚠ EL FILETE SE RETIRA con las columnas. Existía para que el cuadrante
     superior derecho —vacío al lado de un titular de 16ch— se leyera como
     margen y no como un agujero. Con el titular centrado cruzando la sección
     ese cuadrante ya no existe, y una línea que no separa nada es adorno. */
  .momento__col{max-width:53ch}
}

/* ══ EL ACTO DE NOCHE ═══════════════════════════════════════════════════════
 * Promovido desde lab-gradiente.html el 2026-09-07, elegido por Ivan.
 *
 * La idea: de filosofía a «Pedir un paseo» el suelo va de la noche a la luz, y
 * eso codifica algo que la alternancia actual no codifica — la página va de
 * aquello que te inquieta a lo que haces al respecto. La luz llega cuando
 * llega la decisión.
 *
 * ⚠ LA RAMPA NO CRUZA EL MEDIO. Un degradado lineal noche→papel tiene una
 * franja, del 42% al 60% del recorrido, donde NINGÚN color de texto llega a
 * 4.5:1 — en el punto medio el mejor de los dos da 3.66:1. No es un problema
 * de elegir mejor los colores: es aritmética de luminancia. Así que la rampa
 * entera vive en la mitad oscura (17.9:1 → 11.9:1 para el hueso) y el paso a
 * la luz lo hace de una vez el segundo barrido.
 */

/* ⚠ TODA SUPERFICIE DE NOCHE QUE TOQUE AL ACTO LLEVA EL MISMO TRAMADO. En
   cuanto el acto lo tuvo y el límite de encima no, apareció una línea recta a
   todo lo ancho: medido, el plato de noche del límite daba 7.67 de luminancia
   media y el acto tramado 9.2-10.8. El ruido no sólo rompe bandas, también
   LEVANTA el suelo ~3 niveles, así que una superficie tramada y otra sin
   tramar ya no son del mismo color aunque el token sea el mismo. */
.tramado{background-image:url(../assets/img/dither.png)}
.tramado,.nightact{background-repeat:repeat;background-position:top left;
  background-size:96px 96px}
.nightact{
  /* de negro-azul a un oscuro CÁLIDO y levantado: el mismo movimiento que hace
     la luz al acercarse a una fuente, sin salir nunca de lo legible */
  --act-0:#05070b; --act-1:#0d0d11; --act-2:#171319;
  --act-3:#241a17; --act-4:#32241d; --act-5:#3d2b21;
  position:relative;
  /* ⚠ EL RUIDO NO ES TEXTURA, ES TRAMADO. La rampa recorre unos 56 niveles de
     luminancia repartidos en 4.500px, así que cada escalón de 8 bits ocupa
     entre 80 y 350px de alto y se ve como una banda de Mach — medido: saltos
     de 1.33 a lo largo de todo el acto, y uno de ellos cayó a 1px del canto
     entre «Cómo es un paseo» y «Preguntas», donde se lee como si fuera una
     línea divisoria. No lo era: el suelo es UNO. 96px de ruido gris de 4 niveles al 2.7%
     desplaza cada píxel unos ±3 niveles y rompe los escalones sin que se
     perciba grano. Va DEBAJO del degradado en la pila de capas para que no
     ensucie el color, sólo lo desordene. */
  background:
    url(../assets/img/dither.png) repeat top left / 96px 96px,
    linear-gradient(to bottom,
      var(--act-0) 0%, var(--act-1) 20%, var(--act-2) 40%,
      var(--act-3) 60%, var(--act-4) 80%, var(--act-5) 100%);
}
/* las secciones de dentro dejan ver el acto; ya no pintan suelo propio */
/* el plato de noche del límite y su sello de junta, con el mismo ruido */
.boundary:not(.boundary--up) .wipe__to{
  background-image:url(../assets/img/dither.png);
  background-repeat:repeat;background-position:top left;background-size:96px 96px}
.boundary:not(.boundary--up)::after{
  background-image:url(../assets/img/dither.png);
  background-repeat:repeat;background-position:top left;background-size:96px 96px}

.nightact > .section,
.nightact > .nightband,
.nightact > .nightband > .section{background:transparent}
.nightact #filosofia{background:transparent;min-height:100dvh}

/* los haces: NO cambian de tono. La terracota es la única fuente cálida de la
   página y repetirla en varios tonos mete el concepto en la paleta, que es
   justo lo que el craft floor dice que no se haga. Lo que sí progresa es la
   INCLINACIÓN, la DENSIDAD y la FUERZA: la luz se endereza y aprieta según te
   acercas. Un solo canal, no dos. */
/* las capas por sección se apagan: eran la costura */
.nightact .section > .shafts,
.nightact .nightband > .shafts{display:none}
.nightact > .actshafts{--shaft-rgb:229 146 103;--shaft-angle:134deg;--shaft-zoom:118%;
  opacity:.8;z-index:0}
body.sin-shafts .shafts{display:none}

/* ── el equipo dentro del acto ─────────────────────────────────────────────
   Los cinco paneles llevan scrim propio, pensado para recortarse contra papel.
   Sobre suelo oscuro el scrim ya no separa nada, así que lo que separa pasa a
   ser el brillo de la propia foto: la tira se lee como algo iluminado dentro
   de la noche en vez de como un objeto oscuro sobre claro. */
.nightact #paseadores{color:var(--bone)}
.nightact #paseadores .lede{color:oklch(from var(--bone) l c h / .74)}
.nightact #paseadores .panel__scrim{
  background:linear-gradient(0deg,rgba(6,8,12,.88) 0%,rgba(6,8,12,.46) 34%,
             rgba(6,8,12,.06) 62%,rgba(6,8,12,0) 100%)}

/* ── el segundo barrido, invertido ─────────────────────────────────────────
   Mismo componente, capas al revés: debajo la noche del final del acto,
   encima el papel enmascarado que sube. */
.boundary--up .wipe__from{background:transparent}
.boundary--up .wipe__to{background:var(--paper)}
.boundary--up .wipe__from .boundary__word{color:var(--bone)}
.boundary--up .wipe__to   .boundary__word{color:var(--ink)}
/* el sello de junta del original va al revés aquí: lo que hay debajo es papel */
.boundary--up::after{background:var(--paper)}
#solicitar{margin-top:-1px}

/* ══ el cierre del pie ═════════════════════════════════════════════════════
   Eran tres filas del mismo tamaño y el mismo peso: navegación, contacto y
   letra pequeña pesando lo mismo. Lo que un pie tiene que hacer aquí es dar
   una forma de escribir, así que el contacto sube a escala de display y lo
   demás se aparta. La navegación pasa a la derecha, donde ocupa el ancho que
   sobraba en vez de alargar la página. */
.fend{display:grid;gap:clamp(30px,4vw,56px);
  padding-bottom:clamp(26px,3.2vw,42px);
  border-bottom:1px solid oklch(from var(--bone) l c h / .16)}
@media (min-width:820px){
  .fend{grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);
    align-items:start;gap:clamp(40px,5vw,90px)}
}
.fend__reach{display:grid;gap:.28em;justify-items:start}
.fend__line{font-family:var(--f-display);font-weight:600;letter-spacing:-.015em;
  font-size:clamp(1.5rem,3.1vw,2.35rem);line-height:1.16;color:var(--bone);
  text-decoration:none;
  /* subrayado real, no un border que engorda la caja de un enlace grande */
  background-image:linear-gradient(oklch(from var(--bone) l c h / .34),
    oklch(from var(--bone) l c h / .34));
  background-size:100% 1px;background-repeat:no-repeat;background-position:0 100%;
  transition:background-size .22s cubic-bezier(.22,1,.36,1)}
.fend__line:hover,.fend__line:focus-visible{background-size:100% 2px}
.fend__wa{margin-top:.5em;font-family:var(--f-body);font-weight:500;
  color:oklch(from var(--bone) l c h / .80);text-decoration:none;
  border-bottom:1px solid oklch(from var(--bone) l c h / .3);padding-bottom:.1em}
.fend__wa:hover,.fend__wa:focus-visible{color:var(--bone);border-bottom-color:var(--bone)}

/* DOS columnas ya en móvil: cinco enlaces en una sola columna es una lista
   larga y estrecha que se lee como un índice, no como una navegación. */
.fend__nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.72em 1.4em;justify-items:start;font-size:1.02rem}
.fend__nav a{color:oklch(from var(--bone) l c h / .84);text-decoration:none;
  border-bottom:1px solid transparent;padding-bottom:.1em;
  transition:color .18s ease-out,border-color .18s ease-out}
.fend__nav a:hover,.fend__nav a:focus-visible{color:var(--bone);
  border-bottom-color:oklch(from var(--bone) l c h / .55)}
@media (min-width:820px){
  /* TRES columnas, dos filas, alineadas a la izquierda: pegados a la derecha
     en una columna estrecha los cinco enlaces se leían como una nota al pie,
     no como la navegación de la página. Con tres columnas ocupan el ancho que
     tienen y el pie deja de estar vacío por el centro.
     ⚠ FLUJO POR FILAS, no por columnas. Con `column` el orden visual baja por
     la primera columna y luego salta a la segunda, mientras que el DOM y el
     foco van 1-2-3-4-5: quien lee por filas vería 1,3,5 / 2,4. El orden visual
     tiene que coincidir con el del teclado. */
  /* ⚠ ANCLADA ABAJO, no arriba. Las dos columnas del pie tienen alturas muy
     distintas —a la izquierda dos líneas de titular y una de apoyo; a la
     derecha dos filas de enlaces—, así que alineadas arriba la navegación
     quedaba flotando en lo alto con todo el hueco debajo. Pegada al fondo, su
     última fila se pone a la altura de «También por WhatsApp» y las dos
     columnas cierran por el mismo canto, que es lo que las ata. */
  .fend__nav{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-flow:row;
    justify-self:stretch;justify-items:start;text-align:left;align-self:end;
    gap:.8em 2.2em;font-size:1.08rem}
}

/* la fila de abajo: legales a un lado, autoría al otro. En móvil se apila y
   la autoría queda debajo, que es donde no compite con nada. */
.fend__pie{margin:clamp(20px,2.4vw,30px) 0 0;display:flex;flex-wrap:wrap;
  gap:.6em clamp(20px,3vw,44px);align-items:baseline;
  justify-content:space-between}
.fend__legal{margin:0;font-size:.86rem;
  color:oklch(from var(--bone) l c h / .62)}
.fend__credito{margin:0;font-size:.86rem;
  color:oklch(from var(--bone) l c h / .52)}
.fend__credito a{color:oklch(from var(--bone) l c h / .74);text-decoration:none;
  border-bottom:1px solid oklch(from var(--bone) l c h / .28);padding-bottom:.08em;
  transition:color .18s ease-out,border-color .18s ease-out}
.fend__credito a:hover,.fend__credito a:focus-visible{color:var(--bone);
  border-bottom-color:var(--bone)}
.fend__legal a{color:inherit}
.fend__legal a:hover,.fend__legal a:focus-visible{color:var(--bone)}

/* aviso de envío de formulario — lo inserta scripts/formularios.js */
.form-aviso{font-size:.93rem;margin-top:14px;padding:12px 15px;border-radius:10px;
  border:1px solid var(--rule);color:var(--ink-2)}
.form-aviso:empty{display:none}
.form-aviso[data-estado=error]{border-color:var(--accent);color:var(--ink)}
.form-aviso[data-estado=ok]{border-color:var(--accent);color:var(--ink);
  font-family:var(--f-display);font-size:1.05rem;padding:18px 20px}
/* mismo motivo que en trabaja-con-nosotros: [hidden] no gana a .form{display:grid} */
.form[hidden]{display:none}
.form-aviso{max-width:560px}

/* ⚠ RECORTADO, NO display:none. Un campo con display:none o type=hidden lo
   reconoce y lo salta cualquier autorrellenador decente; uno de 1px recortado
   sigue siendo un campo de texto real para quien sólo lee el DOM. Ver el
   comentario en los formularios. */
.trampa{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
