/* css/v12.css — industriapolo.com v12 (prototipo)
   Dirección de la Page 3 de Figma: grotesca con contraste de pesos + mono como voz de sistema,
   verde para estado y acción, lavanda para metadatos, degradado solo en superficies de marca.
   Retícula: 112 px de margen a 1440, columna de etiquetas de 200 + 48, contenido de 968. */

/* Fuentes locales (OFL, de @fontsource/chivo y @fontsource/chivo-mono 5.3.0, subconjunto latin): solo los pesos que se usan.
   Chivo 300–700 y 400 cursiva (<em>); Chivo Mono 300–500 (500 solo en el «?» del icono de Bizétika). */
@font-face { font-family: 'Chivo'; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/chivo-latin-300-normal.woff2) format('woff2'); }
@font-face { font-family: 'Chivo'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/chivo-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Chivo'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/chivo-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Chivo'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/chivo-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Chivo'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/chivo-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Chivo'; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/chivo-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Chivo Mono'; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/chivo-mono-latin-300-normal.woff2) format('woff2'); }
@font-face { font-family: 'Chivo Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/chivo-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Chivo Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/chivo-mono-latin-500-normal.woff2) format('woff2'); }

:root {
  --bg: #1d1a1a;
  --panel: #242020;
  --tile: #2e2a2a;
  --ink: #ffffff;
  --text: #d9d9d9;
  --muted: #9a9a9a;
  --line: #414659;
  --green: #4ec48f;
  --lav: #8e94e8;
  --lav-soft: #979de9;
  --shadow: #35384c;
  --grad: linear-gradient(90deg, var(--green), var(--lav));
  --grad-v: linear-gradient(180deg, var(--green), var(--lav));
  --grad-v-r: linear-gradient(180deg, var(--lav), var(--green));
  --sans: 'Chivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Chivo Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --gutter: clamp(20px, 4.4vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --edge: max(0px, calc((100vw - 1440px) / 2));   /* lo que sobra a cada lado por encima de 1440 (el kicker vertical viaja con el contenido; las franjas van pegadas al borde) */
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--line) var(--bg); scrollbar-width: thin; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-weight: 400; font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
::selection { background: var(--green); color: var(--bg); }
p { margin: 0; }
p + p { margin-top: 1.1em; }
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
a { color: var(--ink); text-decoration-color: var(--green); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color .2s; }
a:hover { color: var(--green); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
strong, b { font-weight: 600; color: var(--ink); }

main { overflow-x: clip; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 10; padding: 10px 16px; background: var(--bg); color: var(--ink); font-size: 14px; text-decoration: none; outline: 2px solid var(--green); }
.skip:focus { top: 16px; }
.wrap { max-width: calc(1216px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; }
.mono { font-family: var(--mono); }

/* ---------- cabecera ---------- */
.site-head { position: relative; z-index: 2; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-size: 17px; }
.brand .logo { position: relative; display: block; width: 36px; height: 36px; flex: none; }
.brand:hover { color: var(--ink); }
/* Logo: al pasar el ratón desaparece, un trazo blanco dibuja el glifo (barra, cuadrado inferior, brazo, cuadrado superior),
   el cuadrado se llena de blanco con el glifo en color fondo, aparece debajo una sombra con el degradado y,
   mientras se va, el cuadrado recupera el degradado. Fases sobre --lg-t: 0–10 %, 10–50 %, 50–62 %, 56–80 %, 78–100 %.
   La sombra es un elemento HTML con filter: blur(); el desenfoque SVG dejaba un cuadrado negro en Chrome. */
.logo { --lg-t: 1600ms; }
.logo .lg { position: relative; display: block; width: 100%; height: 100%; overflow: visible; }
.lg-glyph { fill: var(--bg); }
.lg-white { fill: #fff; opacity: 0; transform-box: fill-box; transform-origin: center; }
.lg-line { fill: none; stroke: #fff; stroke-width: 4.3333; stroke-linecap: square; stroke-linejoin: miter; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.lg-glow { position: absolute; left: 9.5%; top: 28.6%; width: 81%; height: 81%; background: linear-gradient(to bottom right, var(--green), var(--lav)); filter: blur(4.3px); opacity: 0; pointer-events: none; }
.logo.play .lg-grad  { animation: lg-grad  var(--lg-t) linear both; }
.logo.play .lg-glyph { animation: lg-glyph var(--lg-t) linear both; }
.logo.play .lg-line  { animation: lg-line  var(--lg-t) linear both; }
.logo.play .lg-white { animation: lg-white var(--lg-t) linear both; }
.logo.play .lg-glow  { animation: lg-glow  var(--lg-t) linear both; }
@keyframes lg-grad {
  0%   { opacity: 1; animation-timing-function: cubic-bezier(.4, 0, 1, 1); }
  10%  { opacity: 0; }
  78%  { opacity: 0; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
  100% { opacity: 1; }
}
@keyframes lg-glyph {
  0%   { opacity: 1; animation-timing-function: cubic-bezier(.4, 0, 1, 1); }
  10%  { opacity: 0; }
  52%  { opacity: 0; animation-timing-function: var(--ease); }
  62%  { opacity: 1; }
  100% { opacity: 1; }
}
@keyframes lg-line {
  0%    { opacity: 0; stroke-dashoffset: 1; }
  10%   { stroke-dashoffset: 1; animation-timing-function: cubic-bezier(.45, 0, .3, 1); }
  10.4% { opacity: 0; }
  10.5% { opacity: 1; }
  50%   { stroke-dashoffset: 0; }
  64%   { opacity: 1; }
  66%   { opacity: 0; }
  100%  { opacity: 0; stroke-dashoffset: 0; }
}
@keyframes lg-white {
  0%   { opacity: 0; transform: scale(.8); }
  50%  { opacity: 0; transform: scale(.8); animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
  62%  { opacity: 1; transform: scale(1); }
  99%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}
@keyframes lg-glow {
  0%   { opacity: 0; transform: scale(.7); }
  56%  { opacity: 0; transform: scale(.7); animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
  74%  { opacity: 1; transform: scale(1); }
  80%  { opacity: 1; transform: scale(1); animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  100% { opacity: 0; transform: scale(1.06); }
}
.site-head nav { display: flex; align-items: center; gap: 22px; }
.site-head nav a { font-size: 14px; letter-spacing: .4px; text-decoration: none; color: var(--text); padding: 12px 0; }
.site-head nav .lang { color: var(--muted); }
.site-head nav a:hover { color: var(--green); }

/* ---------- display (titulares con contraste de pesos) ---------- */
.display { font-family: var(--sans); font-weight: 300; line-height: .98; letter-spacing: -.02em; color: var(--ink); }
.display b { font-weight: 600; }
.cursor { font-weight: 300; }

/* ---------- botón: degradado + sombra desplazada ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px;
  background: var(--grad); color: var(--bg); text-decoration: none;
  font: 500 14px/1.2 var(--sans); letter-spacing: .4px;
  box-shadow: -12px 12px 0 var(--shadow);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { color: var(--bg); transform: translate(-4px, 4px); box-shadow: -8px 8px 0 var(--shadow); }
.btn:active { transform: translate(-12px, 12px); box-shadow: 0 0 0 var(--shadow); }

/* ---------- franjas de degradado (decoración de la Page 3) ---------- */
.bar { position: absolute; z-index: 0; width: clamp(12px, 3.6vw, 52px); background: var(--grad-v); pointer-events: none; }
.bar.rev { background: var(--grad-v-r); }
.blob { position: absolute; z-index: 0; width: 384px; height: 381px; background: var(--grad); filter: blur(53px); transform: rotate(-165deg); opacity: .9; pointer-events: none; }

/* ---------- hero de la home ---------- */
.hero { position: relative; min-height: calc(100svh - 84px); padding-bottom: clamp(64px, 8vw, 120px); }
.hero .bar { left: 0; top: 200px; bottom: 0; }
.v-kicker {
  position: absolute; right: max(clamp(8px, 2.6vw, 38px), calc(var(--edge) + 38px)); top: 16px; margin: 0; z-index: 1;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font: 300 14px/1 var(--mono); letter-spacing: 2.4px; text-transform: uppercase; color: var(--green);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 1px 260px; column-gap: 56px; align-items: start; min-height: 560px; }
.hero h1 { font-size: clamp(64px, 8.3vw, 120px); margin-top: 100px; text-wrap: wrap; }
.vline { background: var(--line); align-self: stretch; width: 1px; }
.hero-side { margin-top: 300px; display: grid; gap: 40px; justify-items: start; }
.hero-side .lede { font-size: 20px; line-height: 1.55; font-weight: 300; color: var(--ink); }
.hero-side .lede strong { font-weight: 500; }

/* ---------- secciones con etiqueta ---------- */
section.block { position: relative; padding-block: clamp(72px, 10vw, 160px); }
.grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 48px; }
.label { font: 400 17px/1.7 var(--mono); color: var(--green); margin: 0; }
.label .n { display: block; font-size: 12px; line-height: 1.6; color: var(--lav); }
/* etiquetas numeradas (casos y archivo): el título va como frase, en Chivo y una sola tinta; el número (y la parte o
   el acto, «02 · Part I») en mono gris pequeño. El verde queda solo para la sección en curso, en el índice lateral.
   Las etiquetas sin número (_work, _project…) siguen en mono verde con su guion bajo. */
.label:has(> .n) { font: 600 18px/1.4 var(--sans); color: var(--ink); text-wrap: balance; }
.label:has(> .n) .n { font: 400 12px/1.6 var(--mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }

/* _now */
.now-grid { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); column-gap: 48px; }
.now-main .lead { font-size: 20px; line-height: 1.7; font-weight: 300; color: var(--ink); }
.now-main .lead strong { font-weight: 500; }
.now-main p + p { margin-top: 18px; }
.coda { align-self: center; justify-self: center; max-width: 250px; font: 300 20px/1.35 var(--mono); color: var(--lav-soft); }

/* _work */
.work { list-style: none; margin: 0; padding: 0; }
.work-item { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); column-gap: 48px; align-items: stretch; position: relative; isolation: isolate; transition: transform .52s var(--ease); }
/* tarjeta: al pasar por encima la entrada sube y por su borde izquierdo asoma un halo lavanda→verde.
   Es una franja en degradado desenfocada, recortada en el borde de la tarjeta (--cx), así que solo se ve a la izquierda. */
.work-item { --cx: 32px; --cy: 32px; }
.work-item::before {
  content: ""; position: absolute; z-index: -1; top: 24px; bottom: 6px; left: calc(-1 * var(--cx) - 30px); width: 60px;
  background: var(--grad-v-r); filter: blur(22px); clip-path: inset(-80px 30px -80px -80px);
  opacity: 0; transition: opacity .52s var(--ease); pointer-events: none;
}
.work-item:hover, .work-item:focus-within { transform: translateY(-3px); }
.work-item:hover::before, .work-item:focus-within::before { opacity: .74; }
.work-item + .work-item { margin-top: 160px; }
.work-item:not(:last-child)::after {
  content: ""; position: absolute; left: 0; bottom: -80px; width: 171px; height: 1px; background: var(--line);
  transform-origin: left; transition: transform 1s var(--ease);
}
.work-item h3 { font-size: 28px; line-height: 1.1; font-weight: 700; }
.work-item h3 a { color: var(--ink); text-decoration: none; display: inline-block; transition: color .2s; }
/* toda la tarjeta es el enlace: el área del título se extiende por encima de la entrada entera */
.work-item h3 a::after { content: ""; position: absolute; inset: calc(-1 * var(--cy)) calc(-1 * var(--cx)); z-index: 1; }
.work-item h3 a:focus-visible { outline: none; }
.work-item:has(h3 a:focus-visible) { outline: 2px solid var(--green); outline-offset: 28px; }
/* el guion bajo del título es la señal de enlace (en táctil no hay hover): fijo y gris en reposo;
   verde y parpadeando, como el del h1, al pasar por la tarjeta o con el foco. El título no cambia de color. */
:is(.work-item, .arch-card) h3 .cursor { color: var(--text); transition: color .2s; }
:is(.work-item, .arch-card):is(:hover, :focus-within) h3 .cursor { color: var(--green); }
.meta { font: 400 14px/1.4 var(--mono); color: var(--lav); margin: 14px 0 16px; }
.thumb { display: grid; place-items: center; min-height: 240px; }
.thumb svg { width: clamp(220px, 20vw, 280px); height: clamp(220px, 20vw, 280px); --px: 260; }

/* _lab */
.lab-grid { display: grid; grid-template-columns: minmax(0, 274px) 1px minmax(0, 546px); column-gap: 74px; }
.lab-intro { font-size: 20px; line-height: 1.7; font-weight: 500; color: var(--ink); }
.lab { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.lab .where { color: var(--ink); }
.lab a.where { font-weight: 700; text-decoration: underline; text-decoration-color: var(--ink); text-underline-offset: 3px; }
.lab a.where:hover { color: var(--green); text-decoration-color: var(--green); }

/* _principles */
.principles-wrap { max-width: 468px; }
.principles-wrap h3 { font-size: 28px; line-height: 1.1; font-weight: 700; margin-bottom: 20px; }
.principles { list-style: none; margin: 0; padding: 0; }
.principles li { padding: 14px 0; text-wrap: pretty; }
.principles li + li { border-top: 1px solid var(--line); }

/* _background: la franja es la línea de tiempo (hoy arriba); cada entrada es un hito unido a la franja
   por una línea fina; al pasar el ratón se marca su periodo sobre la franja */
.tl { position: relative; --bw: 52px; --gap: 56px; }
.tl-bar { position: absolute; left: 0; top: 0; bottom: 0; width: var(--bw); background: var(--grad-v); }
.tl-list { list-style: none; margin: 0; padding: 22px 0 6px; display: grid; gap: 22px; }
.tl-text { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr); column-gap: 24px; margin-left: calc(var(--bw) + var(--gap)); }
.tl-text::before { content: ""; position: absolute; left: calc(-1 * var(--gap)); width: calc(var(--gap) - 12px); top: 14px; height: 1px; background: var(--line); transition: background 240ms var(--ease); }
.tl .when { font-size: 14px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; white-space: nowrap; }
.tl .where { font-weight: 700; color: var(--text); transition: color 240ms var(--ease); }
.tl-span { position: absolute; left: calc(var(--bw) - 3px); top: var(--s0, 0px); height: var(--s1, 0px); width: 3px; background: var(--ink); opacity: 0; transition: opacity 240ms var(--ease); pointer-events: none; }
.tl-item:hover .tl-span { opacity: 1; }
.tl-item:hover .where { color: var(--ink); }
.tl-item:hover .tl-text::before { background: var(--muted); }
.motion .tl-bar { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s cubic-bezier(.45, .05, .4, 1); }
.motion .tl.in .tl-bar { clip-path: inset(0 0 0 0); }
.motion .tl-text { opacity: 0; transition: opacity .5s var(--ease) calc(var(--i) * .16s + .15s); }
.motion .tl.in .tl-text { opacity: 1; }
.langs { margin-top: 24px; font-size: 17px; font-weight: 500; color: var(--ink); }

/* _contact */
.contact .display { font-size: clamp(52px, 8.3vw, 120px); max-width: 6.2em; margin-bottom: 48px; text-wrap: balance; }
.contact .note { margin-top: 32px; font-size: 14px; color: var(--muted); }

/* pie */
.site-foot { background: var(--grad); color: var(--bg); position: relative; z-index: 1; }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 22px; padding-block: 28px; font-size: 14px; }
.site-foot a { color: var(--bg); text-decoration: none; padding-block: 6px; }   /* área táctil de 24 px; el pie alinea por línea base para que el copyright no quede 6 px por encima */
.site-foot a:hover { text-decoration: underline; color: var(--bg); }

/* ================= página de caso ================= */
.case-hero { position: relative; padding-bottom: clamp(64px, 9vw, 140px); }
.case-hero .bar { left: 0; top: 160px; height: 820px; }
.case-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 1px 260px; column-gap: 56px; align-items: start; }
.ch-main { padding-top: 72px; display: grid; justify-items: start; }
.back { font: 400 14px/1.4 var(--mono); color: var(--muted); text-decoration: none; }
.back:hover { color: var(--green); }
.kicker { margin-top: 48px; font: 300 14px/1.4 var(--mono); letter-spacing: 2.4px; text-transform: uppercase; color: var(--green); }
.case-hero h1 { margin-top: 24px; font-size: clamp(52px, 8.3vw, 120px); }
.case-hero .lede { margin-top: 40px; max-width: 620px; font-size: 20px; line-height: 1.55; font-weight: 300; color: var(--ink); }
.case-hero .tags { margin-top: 24px; font: 400 14px/1.6 var(--mono); color: var(--lav); }
.ch-side { padding-top: 72px; display: grid; gap: 32px; }
.ch-side .panel { width: 260px; height: 260px; background: transparent; display: grid; place-items: center start; }
.ch-side .panel svg { width: 220px; height: 220px; }
.facts { margin: 0; display: grid; gap: 14px; }
.facts dt { font: 400 12px/1.4 var(--mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--lav); }
.facts dd { margin: 2px 0 0; font-size: 14px; line-height: 1.5; color: var(--text); }

.case { padding-bottom: clamp(64px, 9vw, 120px); }
.sec { padding-top: clamp(120px, 12vw, 176px); }
.sec-body { min-width: 0; }
.sec-body > :first-child { margin-top: 0; }
.sec-body > :last-child { margin-bottom: 0; }   /* el espacio entre secciones lo marca solo .sec */
.sec-body > p, .sec-body > ul, .sec-body > ol, .sec-body > h3, .sec-body > blockquote { max-width: 640px; }
.sec-body h3 { font-size: 20px; line-height: 1.3; font-weight: 700; margin: 56px 0 14px; }
.sec-body p + h3, .sec-body ul + h3, .sec-body ol + h3 { margin-top: 56px; }
.sec-body ul, .sec-body ol { list-style: none; margin: 1.1em 0; padding: 0; display: grid; gap: 10px; }
.sec-body ul li { position: relative; padding-left: 22px; }
.sec-body ul li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 5px; height: 5px; background: var(--lav); }
.sec-body ol { counter-reset: n; }
.sec-body ol li { counter-increment: n; position: relative; padding-left: 36px; }
.sec-body ol li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: .25em; font: 400 12px/1.6 var(--mono); color: var(--lav); }
.sec-body figure { margin: 56px 0; }
.sec-body figure.narrow { max-width: 744px; }
.sec-body figure img, .sec-body figure svg { display: block; width: 100%; height: auto; }
.sec-body figcaption { margin-top: 14px; max-width: 640px; font: 300 14px/1.6 var(--mono); color: var(--lav); }
.pull { margin: 56px 0; max-width: 620px; }
.pull p { font: 300 20px/1.45 var(--sans); color: var(--text); }   /* la cita en Chivo: el mono lavanda queda para la frase del esquema */
.pull cite { display: block; margin-top: 12px; font: 400 14px/1.4 var(--mono); font-style: normal; color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 32px 0 40px; max-width: 744px; }
.sec-body table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.5; }
.sec-body th, .sec-body td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); }
.sec-body th { font: 400 12px/1.4 var(--mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--lav); font-weight: 400; }
.tldr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.tldr-grid > div { padding-top: 18px; border-top: 1px solid var(--line); }
.tldr-grid > div.key { border-top: 2px solid var(--green); padding-top: 17px; }
.tldr-grid > div > * + * { margin-top: 10px; }
.tldr-grid ul { margin: 10px 0 0; gap: 8px; font-size: 17px; line-height: 1.65; color: var(--ink); }
.sec-body .sec-kicker { font: 400 14px/1.4 var(--mono); color: var(--lav); margin-bottom: 18px; }
.sec-body .decision { border-left: 2px solid var(--green); padding-left: 22px; margin-block: 32px; }
.sec-body .decision > strong:first-child { color: var(--green); font-weight: 500; }
.sec-body code { font: 400 .9em/1 var(--mono); color: var(--lav-soft); }
.tldr-grid h3 { margin: 0 0 10px; font: 400 12px/1.4 var(--mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--lav); }
.tldr-grid p { font-size: 17px; line-height: 1.65; color: var(--ink); }

.case-end { padding-top: clamp(96px, 12vw, 180px); }
.case-end .display { font-size: clamp(40px, 4.4vw, 64px); max-width: 7em; margin-bottom: 44px; text-wrap: balance; }   /* el 120 queda solo para la home */
.case-foot { margin-top: 72px; font: 400 14px/1.5 var(--mono); color: var(--muted); }
.next { margin-top: 24px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px 32px; }
.next .back { font-size: 14px; }
.next p { margin: 0; display: flex; align-items: baseline; gap: 14px; }
.next .lbl { font: 400 14px/1.4 var(--mono); color: var(--lav); }
.next p a { font-size: 28px; line-height: 1.1; font-weight: 700; color: var(--ink); text-decoration: none; display: inline-block; }
.next p a span { color: var(--green); }
.next p a:hover { color: var(--green); }

/* ampliar */
/* imágenes y esquemas del caso: el mismo hover que las tarjetas de _work (sube y asoma el halo solo por la izquierda) */
.zoomable { cursor: zoom-in; }
.zoomable:focus-visible { outline: none; }
.fx { display: block; position: relative; isolation: isolate; transition: transform .52s var(--ease); --cx: 20px; }
.fx::before {
  content: ""; position: absolute; z-index: -1; top: 24px; bottom: 6px; left: calc(-1 * var(--cx) - 30px); width: 60px;
  background: var(--grad-v-r); filter: blur(22px); clip-path: inset(-80px 30px -80px -80px);
  opacity: 0; transition: opacity .52s var(--ease); pointer-events: none;
}
.fx:has(> .zoomable):hover, .fx:has(> .zoomable:focus-visible) { transform: translateY(-3px); }
.fx:has(> .zoomable):hover::before, .fx:has(> .zoomable:focus-visible)::before { opacity: .74; }
dialog.zoom { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; cursor: zoom-out; }
dialog.zoom::backdrop { background: rgba(16, 14, 14, .94); }
dialog.zoom .zoom-body > img, dialog.zoom .zoom-body > svg { display: block; max-width: 96vw; max-height: 94vh; width: auto; height: auto; box-shadow: -30px 40px 120px -50px rgba(78, 196, 143, .6), 30px 40px 120px -50px rgba(142, 148, 232, .6); }
dialog.zoom .zoom-body > svg { width: min(96vw, 1400px); background: var(--bg); }
dialog.zoom .zoom-close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--ink); font: 400 22px/1 var(--sans); cursor: pointer; }
dialog.zoom .zoom-close:hover { border-color: var(--green); color: var(--green); }

/* ================= archivo y fichas antiguas ================= */
.nw { white-space: nowrap; }
.arch-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px 48px; }
.arch-card { position: relative; isolation: isolate; transition: transform .52s var(--ease); --cx: 20px; --cy: 20px; }
.arch-card img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--tile); filter: saturate(.85); }
.arch-card h3 { margin-top: 24px; font-size: 20px; line-height: 1.3; font-weight: 700; }
.arch-card h3 a { color: var(--ink); text-decoration: none; }
.arch-card h3 a::after { content: ""; position: absolute; inset: calc(-1 * var(--cy)) calc(-1 * var(--cx)); z-index: 1; }
.arch-card .meta { margin: 8px 0 10px; }
.arch-card::before {
  content: ""; position: absolute; z-index: -1; top: 24px; bottom: 6px; left: calc(-1 * var(--cx) - 30px); width: 60px;
  background: var(--grad-v-r); filter: blur(22px); clip-path: inset(-80px 30px -80px -80px);
  opacity: 0; transition: opacity .52s var(--ease); pointer-events: none;
}
.arch-card:hover, .arch-card:focus-within { transform: translateY(-3px); }
.arch-card:hover::before, .arch-card:focus-within::before { opacity: .74; }
.arch-card:has(h3 a:focus-visible) { outline: 2px solid var(--green); outline-offset: 16px; }
.arch-card h3 a:focus-visible { outline: none; }
.more { margin: 0; }
a.ext { font: 400 14px/1.4 var(--mono); color: var(--ink); text-underline-offset: 5px; padding-block: 6px; }
a.ext:hover { color: var(--green); }
.ext-links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.ch-side .panel .thumb-img { display: block; width: 220px; height: 220px; object-fit: cover; background: var(--tile); }
.sec-body .figs { display: grid; gap: 32px; margin: 48px 0; }
.sec-body .figs:first-child { margin-top: 0; }
.sec-body .figs:last-child { margin-bottom: 0; }
.sec-body .figs-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.sec-body .figs-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sec-body .figs-2, .sec-body .figs-3 { align-items: start; }
.sec-body figure.half { max-width: calc((100% - 24px) / 2); }   /* un pantallazo suelto: el ancho de una columna de .figs-2 */
.sec-body .figs figure { margin: 0; }
/* captura suelta entre dos secciones (analyst mode, debajo de 00_summary): en la columna del contenido, fuera del índice */
.shot { padding-top: clamp(56px, 6vw, 88px); }
.shot > .sec-body { grid-column: 2; }

/* ---------- nav morph (nm): «Navigation before and after» de analyst mode ----------
   Los mismos ítems en un solo escenario: V3 (menú horizontal, por función) → V4 (barra lateral, por recorrido).
   Los que existen en los dos estados viajan de (bx,by) a (ax,ay). El JS pone .is-after (v12.js, 6e).
   No lleva .dg: no entra en el dibujado armed/play. */
.nm { display: block; width: 100%; height: auto; }
.nm text { font-family: var(--sans); font-size: 19px; fill: var(--ink); }
.nm .cap { font-size: 13px; font-weight: 600; letter-spacing: 2px; fill: #8a8a88; }
.nm .hd tspan { fill: #8a8a88; }
.nm .mv { transform: translate(calc(var(--bx) * 1px), calc(var(--by) * 1px));
          transition: transform 760ms var(--ease) 0ms, fill 400ms linear 0ms; }
.nm.is-after .mv { transform: translate(calc(var(--ax) * 1px), calc(var(--ay) * 1px));
          transition-delay: calc(var(--i) * 70ms + 250ms); }
.nm.is-after .ta { fill: var(--green); transition-delay: calc(var(--i) * 70ms + 250ms), 1000ms; }
/* solo V3: se va rápido hacia delante y vuelve tarde hacia atrás */
.nm .b { opacity: 1; transition: opacity 350ms linear 520ms; }
.nm.is-after .b { opacity: 0; transition: opacity 260ms linear 0ms; }
/* solo V4: entra tarde hacia delante y se va rápido hacia atrás */
.nm .a { opacity: 0; transition: opacity 220ms linear 0ms; }
.nm.is-after .a { opacity: 1; transition: opacity 460ms linear calc(var(--i, 0) * 60ms + 880ms); }
.nm .ao { fill-opacity: 0; transition: fill-opacity 220ms linear 0ms; }
.nm.is-after .ao { fill-opacity: 1; transition: fill-opacity 400ms linear 1500ms; }
/* llaves de los recorridos: se dibujan */
.nm .l { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 220ms linear 0ms; }
.nm.is-after .l { stroke-dashoffset: 0; transition: stroke-dashoffset 720ms var(--ease) calc(var(--i, 0) * 160ms + 1150ms); }
@media (prefers-reduced-motion: reduce) { .nm * { transition: none !important; } }
/* selector V3/V4, debajo del pie: la figura le cede su margen inferior */
.sec-body figure.nm-fig { margin-bottom: 0; }
.nm-toggle { display: flex; width: fit-content; margin: 18px 0 56px; border: 1px solid #4a4545; border-radius: 4px; overflow: hidden; }
.nm-toggle button { all: unset; cursor: pointer; padding: 7px 14px; font: 400 12px/1 var(--mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.nm-toggle button[aria-pressed="true"] { background: var(--tile); color: var(--ink); }
.nm-toggle button:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.case-end.plain { padding-top: clamp(72px, 9vw, 128px); }
.case-end.plain .case-foot { margin-top: 0; }
.lang-note { color: var(--muted); font-weight: 400; font-size: .6em; }

/* ================= movimiento ================= */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: 520ms; animation-timing-function: var(--ease); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 280ms; }
@media (prefers-reduced-motion: no-preference) {
  .cursor { animation: blink 1.1s steps(1) infinite; }
  :is(.work-item, .arch-card) h3 .cursor { animation: none; }
  :is(.work-item, .arch-card):is(:hover, :focus-within) h3 .cursor { animation: blink 1.1s steps(1) infinite; }
  .is-current .caret, .rail li.cur .caret { animation: blink 1.1s steps(1) infinite; }
}
@keyframes blink { 50% { opacity: 0; } }
/* _game (js/v12.js §6c): con el puntero cerca, el _ del titular deja de parpadear; la cabeza de Jorge la dibuja game.js */
.hero h1 .cursor.peek { animation: none; cursor: pointer; }
/* el final del juego: el botón de LinkedIn de la home en verde (el resultado lo dice Jorge desde el _; el pie no cambia) */
.game-complete .contact .btn { background: var(--green); }
/* Jorge paseando sobre el borde de arriba del pie (js/foot-jorge.js): fuera del flujo, no cambia ni la altura ni el layout.
   Solo el sprite recibe el puntero, y solo donde hay juego (.go). Su bocadillo es el del juego */
.foot-jorge { position: absolute; top: -48px; left: 0; width: 48px; height: 48px; pointer-events: none; image-rendering: pixelated; }
.foot-jorge.go { pointer-events: auto; cursor: pointer; }
.foot-say { position: absolute; bottom: calc(100% + 60px); left: 0; margin: 0; padding: 8px 10px; background: #fff; color: #1d1a1a; font: 400 14px/18px var(--mono);
  white-space: pre; box-shadow: 3px 3px 0 #35384c; pointer-events: none; }
.foot-say::after { content: ""; position: absolute; top: 100%; left: var(--beak, 12px); width: 3px; height: 3px; background: #fff;
  box-shadow: 3px 0 #fff, 0 3px #fff, 3px 3px #35384c, 6px 3px #35384c, 3px 6px #35384c; }
/* al hacerle clic en la home: el _ del titular parpadea al doble 2 s */
.hero h1 .cursor.call { animation: blink .55s steps(1) infinite; }

/* entrada (la decide el script del <head>; nunca con movimiento reducido):
   A = el logo se construye en el centro, viaja a la cabecera y el hero entra por orden (marca → idea → quién → acción);
   B = lo mismo en corto, con el logo en su sitio; C = cabecera de caso escalonada.
   En A y B el CSS espera a .intro-run (lo pone el script cuando arranca el logo) para ir sincronizado. */
.hero h1 .w { display: inline-block; }
[data-intro="a"] { --i-name: 1590ms; --i-bar: 1240ms; --i-w: 1390ms; --i-ws: 45ms; --i-line: 1540ms; --i-lede: 1690ms; --i-kick: 1740ms; --i-btn: 1890ms; --i-nav: 1840ms; }
[data-intro="b"] { --i-name: 0ms; --i-bar: 0ms; --i-w: 150ms; --i-ws: 45ms; --i-line: 250ms; --i-lede: 450ms; --i-kick: 500ms; --i-btn: 650ms; --i-nav: 300ms; }
:is([data-intro="a"], [data-intro="b"]):not(.intro-run) .brand .logo { visibility: hidden; }
/* en la entrada el logo parte de vacío: la animación arranca en el 10 %, ya sin el logo en reposo */
:is([data-intro="a"], [data-intro="b"]) .logo.play :is(.lg-glow, .lg-white, .lg-grad, .lg-line, .lg-glyph) { animation-delay: calc(var(--lg-t) * -.1); }
:is([data-intro="a"], [data-intro="b"]) .site-head nav,
:is([data-intro="a"], [data-intro="b"]) .hero h1 .w,
:is([data-intro="a"], [data-intro="b"]) .hero-side .lede,
:is([data-intro="a"], [data-intro="b"]) .hero-side .btn,
:is([data-intro="a"], [data-intro="b"]) .v-kicker,
:is([data-intro="a"], [data-intro="b"]) main > section:not(.hero),
[data-intro="a"] .brand > span:not(.logo) { opacity: 0; }
:is([data-intro="a"], [data-intro="b"]) .hero .bar { transform: scaleY(0); transform-origin: bottom; }
:is([data-intro="a"], [data-intro="b"]) .hero .vline { transform: scaleY(0); transform-origin: top; }
:is([data-intro="a"], [data-intro="b"]) .hero h1 .cursor { visibility: hidden; }
.intro-run .site-head nav, .intro-run main > section:not(.hero) { animation: i-fade .45s var(--ease) var(--i-nav) both; }
.intro-run[data-intro="a"] .brand > span:not(.logo) { animation: i-fade .35s var(--ease) var(--i-name) both; }
.intro-run .hero .bar { animation: i-grow .7s cubic-bezier(.3, .7, .2, 1) var(--i-bar) both; }
.intro-run .hero h1 .w { animation: i-word .5s var(--ease) calc(var(--i-w) + var(--k) * var(--i-ws)) both; }
.intro-run .hero .vline { animation: i-grow .5s var(--ease) var(--i-line) both; }
.intro-run .hero-side .lede { animation: i-rise .5s var(--ease) var(--i-lede) both; }
.intro-run .v-kicker { animation: i-fade .6s var(--ease) var(--i-kick) both; }
.intro-run .hero-side .btn { animation: i-land .45s var(--ease) var(--i-btn) both; }
[data-intro="c"] .case-hero .ch-main > * { animation: i-rise .5s var(--ease) both; }
[data-intro="c"] .case-hero .ch-main > :nth-child(2) { animation-delay: 60ms; }
[data-intro="c"] .case-hero .ch-main > :nth-child(3) { animation-delay: 120ms; }
[data-intro="c"] .case-hero .ch-main > :nth-child(4) { animation-delay: 260ms; }
[data-intro="c"] .case-hero .ch-main > :nth-child(5) { animation-delay: 340ms; }
[data-intro="c"] .case-hero .bar { transform-origin: bottom; animation: i-grow .7s cubic-bezier(.3, .7, .2, 1) both; }
[data-intro="c"] .case-hero .vline { transform-origin: top; animation: i-grow .5s var(--ease) .15s both; }
[data-intro="c"] .ch-side .panel { animation: i-fade .5s var(--ease) .25s both; }
[data-intro="c"] .ch-side .facts { animation: i-rise .5s var(--ease) .4s both; }
@keyframes i-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes i-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes i-word { from { opacity: 0; transform: translateY(.2em); } to { opacity: 1; transform: none; } }
@keyframes i-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes i-land { from { opacity: 0; transform: translate(-12px, 12px); box-shadow: 0 0 0 var(--shadow); } 35% { opacity: 1; } to { opacity: 1; transform: none; box-shadow: -12px 12px 0 var(--shadow); } }
.caret { display: inline-block; }
.motion .work-item:not(:last-child)::after { transform: scaleX(0); }
.motion .work-item.in-view::after { transform: none; }

/* índice lateral (ordenador) */
.rail { display: none; }
section[tabindex="-1"]:focus { outline: none; }
@media (min-width: 901px) {
  .rail { display: block; position: fixed; top: 112px; left: 0; right: 0; z-index: 5; pointer-events: none; visibility: hidden; transition: visibility 0s 240ms; }
  .rail.on { visibility: visible; transition: none; }
  .rail-in { position: relative; width: 200px; }
  .rail ol { list-style: none; margin: 0; padding: 0; }
  .rail li { position: relative; height: 28px; opacity: 0; transition: opacity 160ms var(--ease); }
  .rail.on li { opacity: 1; transition: opacity 420ms var(--ease) calc(var(--i) * 70ms); }
  .rail li:first-child { transition: none; }
  .rail li::before { content: ""; position: absolute; left: -25px; top: 11px; width: 5px; height: 5px; background: var(--line); transition: background 280ms var(--ease); }
  .rail li.done::before, .rail li.cur::before { background: var(--green); }
  .rail a { pointer-events: auto; display: inline-block; white-space: nowrap; font: 400 14px/28px var(--mono); color: var(--muted); text-decoration: none; transition: color 280ms var(--ease); }
  .rail li.done a { color: var(--text); }
  .rail li.cur a, .rail a:hover { color: var(--green); }
  .rail-line { position: absolute; left: -23px; top: 13px; width: 1px; height: calc(var(--n) * 28px); background: var(--line); transform: scaleY(0); transform-origin: top; transition: transform 160ms var(--ease); }
  .rail.on .rail-line { transform: none; transition: transform 900ms var(--ease); }
  .rail-line i { position: absolute; inset: 0; background: var(--grad-v); transform-origin: top; transform: scaleY(0); }
  section.block > .wrap > .label { transition: opacity 240ms var(--ease); }
  .rail-docked section.block > .wrap > .label { opacity: 0; visibility: hidden; transition: none; }
  section.block > .wrap > .label.rail-dock { transition: none; }
  .rail.fade li:first-child { transition: opacity 160ms var(--ease); }
  .rail.fade.on li:first-child { transition: opacity 420ms var(--ease); }
  .rail .rn { display: inline-block; min-width: 26px; font-size: 12px; color: var(--lav); vertical-align: 1px; }
  /* índice de los casos (y fichas con índice): en grises; la sección actual en verde */
  .rail.mono li::before { background: var(--line); }
  .rail.mono li.done::before { background: var(--muted); }
  .rail.mono li.cur::before { background: var(--green); }
  .rail.mono li.done a { color: var(--text); }
  .rail.mono a:hover { color: var(--ink); }
  .rail.mono li.cur a { color: var(--green); }
  .rail.mono .rn { min-width: 24px; color: var(--muted); vertical-align: 0; }
  .rail.mono .rail-line i { background: var(--text); }
  .rail.mono .caret { display: none; }   /* índice de etiquetas numeradas: sin guion bajo, como ellas */
  section.sec > .label { transition: opacity 200ms var(--ease); }
  section.sec > .label.under-rail { opacity: 0; visibility: hidden; transition: opacity 200ms var(--ease), visibility 0s 200ms; }
  /* logo fijo: va con el índice, 40 px por encima, centrado en la columna de puntos (sin salirse de la pantalla en anchos justos);
     aparece cuando el índice topa con su sitio arriba (.docked) y se va cuando el índice vuelve a bajar */
  .rail .rail-logo { position: absolute; left: max(-40.5px, calc(12px - var(--gutter))); top: -76px; display: block; width: 36px; height: 36px; opacity: 0; visibility: hidden; transition: opacity 160ms var(--ease), visibility 0s 160ms; }
  .rail.on.docked .rail-logo { opacity: 1; visibility: visible; transition: opacity 420ms var(--ease); }
}

/* iconos animados (mismo patrón que los esquemas: sin clases = fotograma final) */
.anim { display: block; overflow: visible; }
.anim .st { fill: none; stroke-width: calc(240 / var(--px, 240)); }
.anim .st4 { fill: none; stroke-width: calc(60 / var(--px, 240)); }
.f-ink { fill: var(--ink); } .f-text { fill: var(--text); } .f-muted { fill: var(--muted); }
.f-tile { fill: var(--tile); } .f-green { fill: var(--green); } .f-bg { fill: var(--bg); }
.s-ink { stroke: var(--ink); } .s-text { stroke: var(--text); } .s-muted { stroke: var(--muted); }
.s-line { stroke: var(--line); } .s-green { stroke: var(--green); }
.tb { transform-box: fill-box; transform-origin: center; }
.anim .draw { stroke-dasharray: 1; }
.anim.armed .draw { stroke-dashoffset: 1; }
.anim.play .draw { animation: a-draw var(--t, 520ms) var(--ease) var(--d, 0ms) both; }
@keyframes a-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.anim .undraw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.anim.armed .undraw { stroke-dashoffset: 0; }
.anim.play .undraw { animation: a-undraw var(--t, 520ms) var(--ease) var(--d, 0ms) both; }
@keyframes a-undraw { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 1; } }
.anim.armed .fin { opacity: 0; }
.anim.play .fin { animation: a-fin var(--t, 360ms) var(--ease) var(--d, 0ms) both; }
@keyframes a-fin { from { opacity: 0; } to { opacity: 1; } }
.anim .fout { opacity: 0; }
.anim.armed .fout { opacity: 1; }
.anim.play .fout { animation: a-fout var(--t, 300ms) var(--ease) var(--d, 0ms) both; }
@keyframes a-fout { from { opacity: 1; } to { opacity: 0; } }
.anim.armed .mv { transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(var(--s, 1)); }
.anim.play .mv { animation: a-mv var(--t, 700ms) var(--ease) var(--d, 0ms) both; }
@keyframes a-mv { from { transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(var(--s, 1)); } to { transform: translate(0px, 0px) scale(1); } }
.anim.armed .grow { transform: scale(0); }
.anim.play .grow { animation: a-grow var(--t, 600ms) var(--ease) var(--d, 0ms) both; }
@keyframes a-grow { from { transform: scale(0); } to { transform: scale(1); } }
.anim .cf { fill: var(--c1); }
.anim.armed .cf { fill: var(--c0); }
.anim.play .cf { animation: a-cf var(--t, 400ms) var(--ease) var(--d, 0ms) both; }
@keyframes a-cf { from { fill: var(--c0); } to { fill: var(--c1); } }
.anim .cs { stroke: var(--c1); }
.anim.armed .cs { stroke: var(--c0); }
.anim.play .cs { animation: a-cs var(--t, 400ms) var(--ease) var(--d, 0ms) both; }
@keyframes a-cs { from { stroke: var(--c0); } to { stroke: var(--c1); } }
.anim .pulse { opacity: 0; }
.anim.play .pulse { animation: a-pulse var(--t, 600ms) var(--ease) var(--d, 0ms) both; }
@keyframes a-pulse { 0% { opacity: 0; transform: translate(0px, 0px); } 15%, 85% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--tx), var(--ty)); } }

/* ================= móvil ================= */
@media (max-width: 900px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .hero { min-height: 0; }
  .hero-grid, .case-hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .vline { display: none; }
  .hero h1 { margin-top: 20px; font-size: clamp(40px, 11.6vw, 72px); }
  .contact .display { font-size: clamp(44px, 12.4vw, 80px); }
  /* franjas: en móvil solo la del hero de la home, fina; las demás quedaban pegadas al texto */
  .block > .bar, .case-hero .bar, .blob { display: none; }
  .hero .bar { width: 8px; }
  .hero-side { margin-top: 56px; padding-left: clamp(24px, 10vw, 64px); }
  .hero .bar { top: auto; bottom: 0; height: min(460px, 60%); }
  /* el kicker vertical pisaba la entradilla: en móvil va en horizontal, encima del titular */
  .v-kicker { position: static; writing-mode: horizontal-tb; transform: none; max-width: calc(1216px + 2 * var(--gutter)); margin: 44px auto 0; padding: 0 var(--gutter); font-size: 12px; line-height: 1.5; letter-spacing: 1.6px; }
  .now-grid { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .coda { justify-self: start; max-width: 320px; }
  .work-item { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  /* orden en móvil: título, meta, icono y párrafo (el texto se aplana en la rejilla de la tarjeta) */
  .work-item { row-gap: 0; }
  .wi-text { display: contents; }
  .work-item h3 { order: 1; }
  .work-item .meta { order: 2; margin-bottom: 0; }
  .work-item .thumb { order: 3; margin-top: 24px; }
  .wi-text > p:not(.meta) { order: 4; margin-top: 24px; }
  .thumb { min-height: 0; place-items: center start; }
  .thumb svg { width: 120px; height: 120px; --px: 120; }
  .work-item { --cx: 16px; --cy: 20px; }
  .work-item:has(h3 a:focus-visible) { outline-offset: 16px; }
  .lab-grid { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .lab-grid .vline { display: none; }
  .tl { --bw: 8px; --gap: 28px; }
  .tl-list { padding-top: 16px; }
  .tl-text { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
  .tl-text::before { top: 12px; width: calc(var(--gap) - 10px); }
  .tl-span { display: none; }
  .ch-side { padding-top: 40px; grid-template-columns: minmax(0, 1fr); }
  .ch-side .panel { width: 200px; height: 200px; }
  .ch-side .panel svg { width: 170px; height: 170px; }
  .tldr-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .arch-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .arch-card { --cx: 16px; }
  .sec-body .figs-2 { grid-template-columns: minmax(0, 1fr); }
  .sec-body .figs-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec-body figure.half { max-width: none; }
  .shot > .sec-body { grid-column: auto; }
  .ch-side .panel .thumb-img { width: 170px; height: 170px; }
  .blob { width: 220px; height: 220px; right: -120px !important; }
  /* ampliar: a pantalla completa y con scroll en los dos ejes; el esquema a 900 px como mínimo y las capturas a 1200
     (el JS lo abre centrado en la zona verde) */
  dialog.zoom { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; }
  dialog.zoom .zoom-body { display: flex; width: 100%; height: 100%; padding: 72px 16px 24px; overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  dialog.zoom .zoom-body > img, dialog.zoom .zoom-body > svg { flex: none; margin: auto; max-width: none; max-height: none; }
  dialog.zoom .zoom-body > svg { width: max(96vw, 900px); }
  dialog.zoom .zoom-body > img { width: max(96vw, min(1200px, var(--nw, 1200px))); }
}
@media (max-width: 600px) {
  .sec-body .figs-3 { grid-template-columns: minmax(0, 1fr); }
  /* nav morph: a 500 px el esquema va a la mitad de su tamaño y el texto bajaba de 10 px. Letra más grande
     (cabe en sus cajas) y el recuadro punteado de Text analysis, más ancho para que la siga rodeando */
  .nm text { font-size: 24px; }
  .nm .cap { font-size: 20px; }
  .nm rect[stroke-dasharray] { transform-box: fill-box; transform-origin: left; transform: scaleX(1.17); }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .btn, .fx, .fx::before, .work-item, .work-item::before { transition: none; }
  .work-item:hover, .work-item:focus-within { transform: none; }
}
