/* jordimoca.com — comic edition. Values mirror the Figma file «Web completa» (1440 and 390 frames). */

:root {
  --ink: #141018;
  --paper: #ffffff;
  --pink: #ff5cbf;
  --pink-dot: #ff8ed6;
  --cyan: #86e3f2;
  --moca: #1110ca;
  --grey: #ededed;
  --rule: #a0a0a0;
  --rule-soft: #d6d6d6;
  --caption: #545454;
  --f-display: 'Dela Gothic One', 'Arial Black', sans-serif;
  --f-ui: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --f-hand: 'Shantell Sans', 'Comic Sans MS', cursive;
  --stroke: 3px;
  --wrap: min(1200px, 100% - 64px);

  --t-finos: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7'%3E%3Cg fill='%23141018'%3E%3Ccircle cx='1.75' cy='1.75' r='1.15'/%3E%3Ccircle cx='5.25' cy='5.25' r='1.15'/%3E%3C/g%3E%3C/svg%3E");
  --t-gruesos: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cg fill='%23141018'%3E%3Ccircle cx='3.5' cy='3.5' r='3.1'/%3E%3Ccircle cx='10.5' cy='10.5' r='3.1'/%3E%3C/g%3E%3C/svg%3E");
  --t-blancos: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='2.5' cy='2.5' r='1.4'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.4'/%3E%3C/g%3E%3C/svg%3E");
  --t-rosa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11'%3E%3Ccircle cx='5.5' cy='5.5' r='1.9' fill='%23ff8ed6'/%3E%3C/svg%3E");
  --t-rayado: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Cpath d='M-1 1l2-2M0 10L10 0M9 11l2-2' stroke='%23141018' stroke-width='1.2'/%3E%3C/svg%3E");
  --t-cruzado: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Cpath d='M-1 1l2-2M0 10L10 0M9 11l2-2M0 0l10 10M-1 9l2 2M9-1l2 2' stroke='%23141018' stroke-width='1.05'/%3E%3C/svg%3E");
  --t-lineas: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7'%3E%3Cpath d='M0 3.5H7' stroke='%23141018'/%3E%3C/svg%3E");
  --t-puntos-cenefa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='12'%3E%3Ccircle cx='7' cy='6' r='2.5' fill='%23141018'/%3E%3C/svg%3E");
  --t-damero: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M0 0h6v6H0zM6 6h6v6H6z' fill='%23141018'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/26px var(--f-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, ul, ol, figure, figcaption { margin: 0; }
ul, ol { padding: 0; }
img { display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .1em; text-decoration-skip-ink: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--moca); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; background: var(--ink); color: #fff; padding: 10px 14px; font: 800 14px/14px var(--f-ui); text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: var(--wrap); margin-inline: auto; }

/* ---------- Type ---------- */
.h1 { font: 400 56px/59px var(--f-display); }
.h2 { font: 400 32px/34px var(--f-display); }
.meta { font: 600 13px/20px var(--f-ui); }
.etiqueta {
  display: inline-block; background: var(--ink); color: #fff;
  padding: 5px 7px; font: 800 12px/12px var(--f-ui); letter-spacing: .06em; text-transform: uppercase;
}
.cartela {
  background: #fff; border: 2px solid var(--ink); padding: 6px 10px;
  font: 400 15px/21px var(--f-hand); text-transform: uppercase;
}
.cartela b { font-weight: 600; font-size: var(--fs); line-height: var(--lh); }
.rotulo { display: inline-block; background: #fff; padding: 4px 8px; font: 400 32px/34px var(--f-display); }
.paso {
  display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: #fff; font: 400 22px/22px var(--f-display);
}
.sello { display: block; width: fit-content; background: #fff; border: 3px solid var(--ink); padding: 3px; transform: rotate(-3deg); transform-origin: 0 0; }
.sello span { display: block; box-shadow: inset 0 0 0 1.5px var(--ink); padding: 8.5px 13.5px; font: 800 15px/15px var(--f-ui); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.enlace { display: inline-block; background: #fff; padding: 3px 6px; font: 800 14px/14px var(--f-ui); text-decoration: underline; }
.ciudad { display: inline-block; background: #fff; border: 2px solid var(--ink); padding: 5px 8px; font: 800 12px/12px var(--f-ui); letter-spacing: .06em; text-transform: uppercase; }

/* Text with an outside stroke and a hard shadow (cover title, STOP!) */
.stroked { position: relative; z-index: 0; }
.stroked::before {
  content: attr(data-t); content: attr(data-t) / ""; position: absolute; inset: 0; z-index: -1; color: inherit;
  -webkit-text-stroke: var(--sw) var(--sc);
  filter: drop-shadow(4px 4px 0 var(--sh));
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; width: fit-content;
  padding: 14px 22px; font: 800 14px/14px var(--f-ui); text-decoration: none; white-space: nowrap;
}
.btn--tinta { background: var(--ink); color: #fff; }
.btn--sm { padding: 9px 14px; }
.btn--moca, .btn--papel { padding: 16.5px 24.5px; box-shadow: inset 0 0 0 2.5px var(--ink), 4px 4px 0 var(--ink); }
.btn--moca { background: var(--moca); color: #fff; }
.btn--papel { background: #fff; color: var(--ink); }
.btn--moca:active, .btn--papel:active { transform: translate(2px, 2px); box-shadow: inset 0 0 0 2.5px var(--ink), 2px 2px 0 var(--ink); }
.link { font: 800 14px/14px var(--f-ui); text-decoration: underline; }

/* ---------- Navigation ---------- */
.nav { position: relative; z-index: 4; height: 76px; }
.nav--interior { background: #fff; border-bottom: 3px solid var(--ink); }
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.avatar { position: relative; flex: none; width: 31px; height: 35px; }
.avatar svg { position: absolute; left: -7px; top: -3px; width: 44px; height: 43px; }
.logo-t { font: 800 14px/14px var(--f-ui); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-a { font: 800 14px/14px var(--f-ui); text-decoration: none; }
.nav-a[aria-current="page"], .nav-a.is-active { text-decoration: underline; }

/* ---------- Ornaments ---------- */
.cenefa { width: 100%; flex: none; }
.cenefa--doble { height: 9px; border-top: 4px solid var(--ink); border-bottom: 2px solid var(--ink); }
.cenefa--damero {
  height: 20px;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 19px / 100% 1px no-repeat,
    var(--t-damero) 0 4px / 12px 12px repeat-x;
}
.cenefa--puntos { height: 12px; background: var(--t-puntos-cenefa) 0 0 / 14px 12px repeat-x; }
.folio { display: flex; justify-content: center; padding-top: 12px; height: 26px; }
.folio span { display: flex; align-items: center; gap: 10px; font: 400 14px/14px var(--f-hand); }
.folio span::before, .folio span::after { content: ""; width: 28px; height: 2px; background: var(--ink); }

/* ---------- Tramas (screen tones) ---------- */
.trama {
  position: absolute; inset: 0; pointer-events: none; opacity: var(--o, 1);
  background-image: var(--tile); background-size: var(--ts); background-position: var(--tp);
}
.trama.fade {
  background-image: linear-gradient(var(--f0, #fff) var(--g0, 5%), var(--f1, rgba(255, 255, 255, 0)) var(--g1, 95%)), var(--tile);
  background-size: 100% 100%, var(--ts);
  background-position: 0 0, var(--tp);
  background-repeat: no-repeat, repeat;
}
.t-finos { --tile: var(--t-finos); --ts: 7px 7px; --tp: -1.75px -1.75px; }
.t-gruesos { --tile: var(--t-gruesos); --ts: 14px 14px; --tp: -3.5px -3.5px; }
.t-blancos { --tile: var(--t-blancos); --ts: 10px 10px; --tp: -2.5px -2.5px; }
.t-rosa { --tile: var(--t-rosa); --ts: 11px 11px; --tp: -5.5px -5.5px; }
.t-rayado { --tile: var(--t-rayado); --ts: 10px 10px; --tp: 0 0; }
.t-cruzado { --tile: var(--t-cruzado); --ts: 10px 10px; --tp: 0 0; }
.t-lineas { --tile: var(--t-lineas); --ts: 7px 7px; --tp: 0 0; }

/* ---------- Comic panels ---------- */
.row { display: flex; gap: 20px; align-items: flex-start; }
.row--end { align-items: flex-end; }
.row > * { flex: var(--fw) 1 0px; min-width: 0; }
.col { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.col > .panel { width: 100%; }
/* columns that read across: panels in reading order, each placed back in its column */
.row--grid { display: grid; grid-template-columns: var(--cols); gap: 20px; align-items: start; }
.row--grid > * { grid-column: var(--gc); grid-row: var(--gr); width: 100%; margin-top: var(--gm, 0); }

.panel { position: relative; overflow: hidden; background: #fff; aspect-ratio: var(--ar); }
.panel::after { content: ""; position: absolute; inset: 0; border: var(--stroke) solid var(--ink); pointer-events: none; z-index: 3; }
.panel--pause { background: var(--ink); display: flex; align-items: center; justify-content: center; }
.panel--pause p { width: var(--tw); padding: 12px 0; font: 400 15px/21px var(--f-hand); text-transform: uppercase; color: #fff; text-align: center; }
.panel--tex { display: flex; flex-direction: column; align-items: flex-start; }
.panel--tex > .fo { position: relative; z-index: 1; flex: none; margin: var(--t, 0) 0 var(--mb, 0) var(--l, 0); width: var(--w, auto); max-width: calc(100% - var(--l, 0px)); }
.panel--tex > .fo.paso, .ov.paso { width: 48px; max-width: none; }

.ph { position: absolute; left: var(--cl, 0); top: var(--ct, 0); width: var(--cw, 100%); height: var(--ch, 100%); overflow: hidden; }
.ph img { position: absolute; left: var(--il); top: var(--it); width: var(--iw); height: var(--ih); max-width: none; }
.lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.lines--m { display: none; }

.ov { position: absolute; z-index: 1; left: var(--l, auto); right: var(--r, auto); top: var(--t, auto); bottom: var(--b, auto); width: var(--w, auto); }

/* Speech balloon */
.globo { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: var(--gp); }
.globo > svg { position: absolute; left: 0; top: 0; width: var(--bw); height: var(--bh); overflow: visible; }
.globo > svg.m { display: none; }
.globo > p { position: relative; width: 100%; font: 600 15px/19px var(--f-hand); text-transform: uppercase; text-align: center; }

/* Thought balloon */
.piensa { padding: var(--pp, 14px 26px); }
.piensa::before { content: ""; position: absolute; inset: 0; background: #fff; border: 2.5px solid var(--ink); border-radius: 50%; }
.piensa > p { position: relative; font: italic 400 15px/19px var(--f-hand); text-transform: uppercase; text-align: center; }
.piensa > i { position: absolute; background: #fff; border: 2.5px solid var(--ink); border-radius: 50%; }
.piensa > i:nth-of-type(1) { left: 12.08%; top: calc(100% + 4px); width: 5.83%; height: 14px; }
.piensa > i:nth-of-type(2) { left: 4.17%; top: calc(100% + 20px); width: 3.33%; height: 8px; }

/* Sound effect */
.ov.ono { width: 193px; height: 84px; }
.ono .stroked {
  position: absolute; left: 8px; top: 32px; transform: rotate(-8deg); transform-origin: 0 0; white-space: nowrap;
  font: 400 44px/44px var(--f-display); --sw: 5px; --sh: var(--ink);
}
.ono--moca .stroked { color: var(--moca); --sc: #fff; }
.ono--papel .stroked { color: #fff; --sc: var(--ink); }

/* ---------- Sections ---------- */
.cover { position: relative; padding-top: 76px; background: var(--pink); overflow: hidden; }
.nav--cover { position: absolute; left: 0; right: 0; top: 0; }
.cover > .trama { z-index: 0; }
/* Figma's cover is a 1200x744 stage under the nav. Name, pitch and scene keep their places on it. */
.cover-body { position: relative; height: 744px; }
.cover-top, .cover-intro { position: absolute; left: 0; width: 640px; display: flex; flex-direction: column; gap: 28px; align-items: flex-start; transform-origin: 0 0; }
.cover-top { top: 174px; }
.cover-intro { top: 410px; }
.cover-name { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.cover-name .n { font: 400 44px/44px var(--f-display); }
.cover-name .r { font: 400 54px/50px var(--f-display); letter-spacing: -.01em; color: var(--moca); --sw: 8px; --sc: #fff; --sh: #fff; }
.cover-kicker { font: 400 32px/34px var(--f-display); color: #fff; }
.cover-sub { width: 444px; background: #fff; border: 2px solid var(--ink); padding: 6px 10px; font: 600 15px/20px var(--f-hand); }
.scene { position: absolute; right: 0; top: 39px; width: 774px; height: 682px; transform-origin: 100% 0; }
.scene > * { position: absolute; }
.scene .globo { z-index: 1; left: 0; top: 0; width: 49.1%; height: 27.13%; --gp: 14px 30px 29px; --bw: 104.21%; --bh: 88.11%; }
.scene .globo--m { display: none; }
.scene-panel { left: 43.15%; top: 27.13%; width: 56.85%; height: 69.5%; background: var(--cyan); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.scene-art { left: 44.44%; top: .73%; width: 54.26%; height: 95.89%; }
.scene-art img { width: 100%; height: 100%; }
.credit { left: 43.15%; top: 98.24%; font: 800 12px/12px var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: #fff; white-space: nowrap; }
/* The cover always fills the window: the stage scales down to fit (never below 80%, so the pitch stays
   readable) and sits centred in whatever height is left under the nav. */
@supports (height: 1svh) and (width: 1cqw) and (scale: tan(atan2(1px, 1px))) {
  .cover { height: max(100svh, 672px); container-type: inline-size; }
  .cover-body {
    height: 100%;
    --k: clamp(.8, min(tan(atan2(min(1200px, 100cqw - 64px), 1200px)), tan(atan2(100svh - 76px, 744px))), 1);
    --y: calc((100% - 744px * var(--k)) / 2);
  }
  .cover-top { top: calc(var(--y) + 174px * var(--k)); transform: scale(var(--k)); }
  .cover-intro { top: calc(var(--y) + 410px * var(--k)); transform: scale(var(--k)); }
  .scene { top: calc(var(--y) + 39px * var(--k)); transform: scale(var(--k)); }
}

.stack { display: flex; flex-direction: column; gap: 20px; }
.chapter { padding: 96px 0 56px; }
.ch-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.ch-title { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; max-width: 900px; }
.ch-head .meta { white-space: nowrap; }
.author { padding: 40px 0 96px; }
.page { padding: 56px 0 24px; }
.page .h2[id] { scroll-margin-top: 56px; }
.back { padding: 40px 0 96px; }
.back .wrap { display: flex; }
.back--text { padding-top: 32px; }

/* Final */
.final { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.final .wrap { position: relative; min-height: 560px; padding-top: 96px; }
.final-text { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; width: 389px; }
.tbc { font: italic 400 26px/29px var(--f-hand); }
.final-h { font: 400 56px/59px var(--f-display); }
.final-links { display: flex; gap: 24px; }
.final-links a { font: 800 14px/14px var(--f-ui); text-decoration: underline; color: #fff; }
.final-panel { position: absolute; right: 0; top: 92px; width: 38.33%; aspect-ratio: 460 / 300; }
.final-panel::after { content: ""; position: absolute; inset: 0; border: 3px solid #fff; pointer-events: none; }
.final-panel .ph { background: #fff; }
.copy { position: absolute; left: 0; top: 508px; font: 800 15px/15px var(--f-ui); letter-spacing: .08em; text-transform: uppercase; }

/* Case studies */
.cases { padding: 80px 0 120px; gap: 28px; }
.cases .cartela { width: 560px; max-width: 100%; }
.entry { display: flex; gap: 48px; align-items: center; }
.entry .panel { --stroke: 3px; flex: 0 0 46.67%; background: var(--grey); }
.entry-text { flex: 1 1 0; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.entry-text p { max-width: 560px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips li { box-shadow: inset 0 0 0 1.5px var(--ink); padding: 8.5px 11.5px; font: 700 12px/18px var(--f-ui); }
.actions { display: flex; align-items: center; gap: 22px; }

/* Chapter header (comic and text) */
.chead { padding: 72px 0 40px; gap: 18px; align-items: flex-start; }
.chead .h1 { max-width: 980px; }
.chead .meta { max-width: 980px; }
.chead > .row, .chead > .cenefa { align-self: stretch; }
.tabs { display: inline-flex; padding: 2.5px; background: #fff; box-shadow: inset 0 0 0 2.5px var(--ink); }
.tabs a { padding: 10px 22px; font: 800 14px/14px var(--f-ui); text-decoration: none; }
.tabs a[aria-current="page"] { background: var(--ink); color: #fff; }

/* Text version */
.article-wrap { padding: 24px 0 40px; }
.columns { display: flex; gap: 100px; align-items: flex-start; }
.article { flex: 0 1 760px; min-width: 0; display: flex; flex-direction: column; gap: 56px; }
.article section { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 24px; }
/* Chrome measures one line of the dashboard paragraph 0.05px wider than Figma does at 390; a quarter pixel of
   slack keeps Figma's line breaks. No other text block changes its breaks below +0.5px at 1440 or 390. */
.article section > p { margin-right: -.25px; }
.tldr { background: var(--grey); border: 3px solid var(--ink); padding: 24px 22px 24px 28px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.bullets { list-style: none; }
.bullets li { position: relative; padding-left: 25px; }
.bullets li::before { content: "•"; position: absolute; left: 9px; top: 0; font-weight: 700; }
.bullets b { font-weight: 700; }
.table { width: 100%; border-collapse: collapse; table-layout: fixed; font: 400 15px/24px var(--f-ui); }
.table th, .table td { text-align: left; vertical-align: top; padding: 12px 20px 12px 0; }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table th { font-weight: 700; }
.table thead th { border-bottom: 2px solid var(--ink); }
.table tbody th, .table tbody td { border-bottom: 1px solid var(--rule); }
.table col.c1 { width: 31.05%; } .table col.c2 { width: 37.63%; } .table col.c3 { width: 31.32%; }
.figure { display: flex; flex-direction: column; gap: 10px; }
.figure img { width: 100%; height: auto; object-fit: cover; }
.figure figcaption { font: 400 15px/24px var(--f-ui); color: var(--caption); }
.toc { position: sticky; top: 24px; flex: 0 0 340px; background: #fff; border: 3px solid var(--ink); padding: 22px 16px 22px 22px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.toc ol { padding-left: 23px; font: 400 15px/24px var(--f-ui); }
.toc ol a { text-decoration: none; }
.toc ol a:hover { text-decoration: underline; }

/* About */
.about-head { padding: 72px 0 40px; gap: 20px; align-items: flex-start; }
.about-head > .cenefa, .about-head > .ficha { align-self: stretch; }
.about-name { font: 400 54px/50px var(--f-display); letter-spacing: -.01em; }
.about-head .cartela { width: 560px; max-width: 100%; }
.ficha { display: flex; background: #fff; border: 3px solid var(--ink); overflow: hidden; }
.ficha-img { position: relative; flex: 0 0 33.5%; overflow: hidden; }
.ficha-img img { position: absolute; left: -5.627%; top: -22.161%; width: 139.28%; height: auto; max-width: none; }
.datos { flex: 1 0 0px; margin-right: -6px; padding: 32px; }
.dato { display: flex; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--rule-soft); }
.dato dt { flex: 0 0 170px; font: 600 13px/20px var(--f-ui); }
.dato dd { margin: 0; flex: 1 1 0; }
.datos dl { margin: 0; }
.datos .btn { margin-top: 24px; }
.spacer { height: 100px; }

/* ---------- Mobile (Figma 390 frame) ---------- */
@media (max-width: 1023.98px) {
  :root { --stroke: 2.5px; --wrap: min(600px, 100% - 32px); }
  .h1 { font-size: 34px; line-height: 36px; }
  .h2 { font-size: 24px; line-height: 25px; }
  .rotulo { font-size: 24px; line-height: 25px; }

  .nav { height: 60px; }
  .logo-t { display: none; }
  .nav-links { gap: 11px; }
  .btn--sm { padding: 9px 10px; }

  .stack, .rows { gap: 14px; }
  .row, .col { display: contents; }
  .row > * { flex: none; }
  .row--grid > * { margin-top: 0; }
  .panel { aspect-ratio: var(--AR); width: 100%; }
  .panel--pause p { width: var(--TW); }
  .panel--tex > .fo { margin: var(--T, 0) 0 var(--MB, 0) var(--L, 0); width: var(--W, auto); max-width: calc(100% - var(--L, 0px)); }
  .cartela b { font-size: var(--FS, var(--fs)); line-height: var(--LH, var(--lh)); }
  .ph { left: var(--CL, 0); top: var(--CT, 0); width: var(--CW, 100%); height: var(--CH, 100%); }
  .ph img { left: var(--IL); top: var(--IT); width: var(--IW); height: var(--IH); }
  .lines--d { display: none; }
  .lines--m { display: block; }
  .ov { left: var(--L, auto); right: var(--R, auto); top: var(--T, auto); bottom: var(--B, auto); width: var(--W, auto); }
  .trama { opacity: var(--O, var(--o, 1)); }
  .trama.fade { background-image: linear-gradient(var(--f0, #fff) var(--G0, 5%), var(--f1, rgba(255, 255, 255, 0)) var(--G1, 95%)), var(--tile); }
  .globo { padding: var(--GP); }
  .piensa { padding: var(--PP, 14px 26px); }
  .globo > svg { width: var(--BW); height: var(--BH); }
  .globo > svg.d { display: none; }
  .globo > svg.m { display: block; }
  .ov.ono { left: var(--L, auto); right: var(--R, auto); }

  .cover { height: auto; padding-top: 60px; container-type: normal; }
  .cover-body { height: auto; padding: 24px 0 25px; }
  .cover-top, .cover-intro { position: static; width: 100%; gap: 18px; transform: none; }
  .cover-intro { margin-top: 31px; }
  .cover-name .n { font-size: 34px; line-height: 36px; }
  .cover-name .r { font-size: 34px; line-height: 36px; letter-spacing: 0; }
  .cover-sub { width: 100%; }
  /* Figma 390: the scene bleeds off both edges (balloon left, panel right) */
  .scene { position: relative; top: auto; right: auto; width: 100%; height: auto; aspect-ratio: 358 / 565; margin-top: 16px; transform: none; }
  .scene .globo--d { display: none; }
  .scene .globo--m { display: flex; left: max(-11.453%, -41px); top: 0; width: 92.179%; height: 22.478%; --GP: 14px 30px 31px; --BW: 100%; --BH: 96.85%; }
  .scene-panel { left: 9.497%; top: 39.292%; width: 100%; height: 56.637%; border-width: 2.5px; box-shadow: 4px 4px 0 var(--ink); }
  .scene-art { left: 23.464%; top: 12.743%; width: 84.358%; height: 83.186%; }
  .credit { left: 9.497%; top: 97.876%; }

  .chapter { padding: 48px 0 40px; }
  .chapter .stack { align-items: center; }
  .chapter .stack > * { align-self: stretch; }
  .chapter .stack > .btn { align-self: center; }
  .ch-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .author { padding: 24px 0 56px; }
  .page { padding: 36px 0 16px; }
  .page .h2[id] { scroll-margin-top: 36px; }
  .back { padding: 28px 0 56px; }
  .back--text { padding-top: 24px; }

  .final .wrap { min-height: 0; padding: 48px 0 45px; }
  .final-text { width: auto; gap: 18px; }
  .final-h { font-size: 34px; line-height: 36px; }
  .final-panel { position: relative; top: auto; right: auto; width: 100%; aspect-ratio: 358 / 260; margin-top: 40px; }
  .copy { position: static; margin-top: 40px; }

  .cases { padding: 40px 0 64px; gap: 20px; }
  .cases .cartela { width: 100%; }
  .entry { flex-direction: column; align-items: stretch; gap: 18px; }
  .entry .panel { flex: none; }
  .entry-text p { max-width: none; }

  .chead { padding: 40px 0 28px; gap: 14px; }

  .article-wrap { padding: 8px 0 24px; }
  .columns { flex-direction: column-reverse; gap: 28px; align-items: stretch; }
  .article { flex: none; gap: 40px; }
  .tldr { padding: 18px 12px 18px 18px; }
  .table { font-size: 13px; line-height: 21px; }
  .table th, .table td { padding: 10px 10px 10px 0; }
  .table col.c1 { width: 31.01%; } .table col.c2 { width: 37.71%; } .table col.c3 { width: 31.28%; }
  .figure figcaption { font-size: 14px; line-height: 22px; }
  .toc { position: static; flex: none; padding: 18px 12px 18px 18px; }

  .about-head { padding: 40px 0 28px; gap: 14px; }
  .about-name { font-size: 44px; line-height: 44px; letter-spacing: 0; }
  .about-head .cartela { width: 100%; }
  .ficha { flex-direction: column; border-width: 2.5px; }
  .ficha-img { flex: none; margin: .5px -5.5px 0 .5px; aspect-ratio: 358 / 320; }
  .ficha-img img { left: .14%; top: -32.81%; width: 98.88%; }
  .datos { margin: 0 -5.5px 0 .5px; padding: 18px; }
  .dato { flex-direction: column; gap: 4px; }
  .dato dt { flex: none; }
}

/* 404 */
.notfound { padding: 72px 0 96px; gap: 20px; align-items: flex-start; }
.notfound .cartela { width: 560px; max-width: 100%; }
@media (max-width: 1023.98px) { .notfound { padding: 40px 0 56px; gap: 14px; } }
