/* Inserloft · Dédalo design system — dedalo.css (generated by build.py; edit static/css/*.css) */
@font-face{font-family:'Tinos';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/tinos-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Tinos';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/tinos-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Tinos';font-style:italic;font-weight:400;font-display:swap;src:url(../fonts/tinos-latin-400-italic.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Tinos';font-style:italic;font-weight:400;font-display:swap;src:url(../fonts/tinos-latin-ext-400-italic.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Tinos';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/tinos-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Tinos';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/tinos-latin-ext-700-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Tinos';font-style:italic;font-weight:700;font-display:swap;src:url(../fonts/tinos-latin-700-italic.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Tinos';font-style:italic;font-weight:700;font-display:swap;src:url(../fonts/tinos-latin-ext-700-italic.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/inter-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/inter-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/inter-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/inter-latin-ext-500-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/inter-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/inter-latin-ext-600-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/inter-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/inter-latin-ext-700-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Inter';font-style:italic;font-weight:400;font-display:swap;src:url(../fonts/inter-latin-400-italic.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:italic;font-weight:400;font-display:swap;src:url(../fonts/inter-latin-ext-400-italic.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/jetbrains-mono-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/jetbrains-mono-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Bodoni Moda';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/bodoni-moda-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Bodoni Moda';font-style:italic;font-weight:400;font-display:swap;src:url(../fonts/bodoni-moda-latin-400-italic.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{--azzurra:#D6E3EF;--rosata:#F3D7CC;--giallina:#F3E7C4;--papel:#EEF3F8;--salvia:#D5E5D8;--lilla:#E3DBF0;--noche:#171A33;--noche-superficie:#252944;--tinta:#121A26;--hilo:#C4391F;--hilo-oscuro:#A8311A;--hilo-noche:#FF6B4A;--bg:#D6E3EF;--ink:#121A26;--sec:#46566A;--th:#C4391F;--lk:#A8311A;--srf:#EEF3F8}
:root{--code:#171A33;--code-ink:#D3DAEC;--code-sec:#B4B8D0;--code-srf:#252944;--hilo-linea:#C4391F}
.paper-azzurra{--bg:#D6E3EF;--ink:#121A26;--sec:#46566A;--th:#C4391F;--lk:#A8311A;--srf:#EEF3F8;--rule:1px solid #121A26;background-color:var(--bg);color:var(--ink)}
.paper-rosata{--bg:#F3D7CC;--ink:#121A26;--sec:#5A463F;--th:#C4391F;--lk:#A8311A;--srf:#F8E6DE;--rule:1px solid #121A26;background-color:var(--bg);color:var(--ink)}
.paper-giallina{--bg:#F3E7C4;--ink:#121A26;--sec:#4F4B35;--th:#C4391F;--lk:#A8311A;--srf:#F8F0D9;--rule:1px solid #121A26;background-color:var(--bg);color:var(--ink)}
.paper-papel{--bg:#EEF3F8;--ink:#121A26;--sec:#46566A;--th:#C4391F;--lk:#A8311A;--srf:#F7F9FC;--rule:1px solid #121A26;background-color:var(--bg);color:var(--ink)}
.paper-salvia{--bg:#D5E5D8;--ink:#121A26;--sec:#3F5446;--th:#C4391F;--lk:#A8311A;--srf:#E6F0E8;--rule:1px solid #121A26;background-color:var(--bg);color:var(--ink)}
.paper-lilla{--bg:#E3DBF0;--ink:#121A26;--sec:#4D4766;--th:#C4391F;--lk:#A8311A;--srf:#EEE9F6;--rule:1px solid #121A26;background-color:var(--bg);color:var(--ink)}
.paper-noche{--bg:#171A33;--ink:#D3DAEC;--sec:#B4B8D0;--th:#FF6B4A;--lk:#FF8A6E;--srf:#252944;--rule:1px solid #D3DAEC;--code:#252944;--code-srf:#171A33;background-color:var(--bg);color:var(--ink)}
/* ==========================================================================
   Inserloft · Dédalo — components
   Papers (paper-*) and @font-face are generated above this block by build.py.
   One rule of the system: each section is one sheet of paper, divided from
   the next by a 1px line of ink. Colour lives in the paper, not in the type.
   ========================================================================== */

:root {
  --serif: "Tinos", "Times New Roman", Times, serif;   /* alt: "Bodoni Moda", serif */
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --g: clamp(16px, 2.78vw, 40px);          /* page gutter: 40px at 1440 */
  --sy: clamp(56px, 6.67vw, 96px);         /* section padding: 96px at 1440 */
  --gap: clamp(16px, 1.67vw, 24px);
  --maxw: 1600px;
  --radius: 4px;
  --rule: 1px solid var(--ink);
  --header-h: 79px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-color: var(--bg);
  color: var(--ink);
  position: relative;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
p { margin: 0; color: var(--sec); }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--th); color: #fff; }
:focus-visible { outline: 2px solid var(--th); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--g); top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 10px; }

/* ---------- type ---------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.03;
  color: var(--ink);
  text-wrap: balance;
  overflow-wrap: break-word;
  font-size: clamp(36px, 1.4rem + 3.9vw, 76px);
}
.display--xl { font-size: clamp(40px, 1.6rem + 3.9vw, 80px); }
.display--l  { font-size: clamp(40px, 1.5rem + 4.6vw, 90px); }
.display--s  { font-size: clamp(32px, 1.2rem + 2.9vw, 60px); }
.display--fit { font-size: clamp(34px, 1rem + 3.1vw, 64px); }  /* long words in half columns */
.nowrap { white-space: nowrap; }
.title {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
  text-wrap: balance;
  font-size: clamp(24px, 1rem + 1.1vw, 32px);
}
.title--xl { font-size: clamp(30px, 1.2rem + 1.9vw, 46px); }
.title--l  { font-size: clamp(26px, 1rem + 1.4vw, 36px); }
.title--s  { font-size: clamp(21px, .9rem + .75vw, 27px); }
.title--xs { font-size: 21px; }
.fig {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.35;
  color: var(--sec);
}
.fig--ink { color: var(--ink); }
.fig--lg { font-size: clamp(17px, .9rem + .4vw, 21px); }
.lead { font-size: clamp(17px, 1rem + .25vw, 19px); line-height: 1.6; max-width: 36em; }
.small { font-size: 14px; }
.mono { font-family: var(--mono); font-size: 14px; }
.ink { color: var(--ink); }
.sec { color: var(--sec); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--g); }
.section { border-top: var(--rule); padding-block: var(--sy); position: relative; }
main > .section:first-child, main > .hero:first-child { border-top: 0; }
.section--tight { padding-block: clamp(40px, 4.5vw, 64px); }
.section--flush { padding-block: 0; }
.stack > * + * { margin-top: var(--s, 16px); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.split {
  display: grid; gap: var(--gap);
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: end;
}
.split--half { display: grid; gap: var(--gap); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.split--even { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(24px, 3vw, 44px); }
.split--intro { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--gap); flex-wrap: wrap; }
.split--intro > p { max-width: 420px; }
.g2, .g3, .g4 { display: grid; gap: var(--gap); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mt-s { margin-top: 12px; } .mt { margin-top: 24px; } .mt-l { margin-top: clamp(28px, 3vw, 44px); } .mt-xl { margin-top: clamp(40px, 4.5vw, 64px); }
@media (max-width: 1080px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .split, .split--half, .split--even { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .g3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .g2, .g4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- header ---------- */
.site-header { position: relative; z-index: 30; border-bottom: var(--rule); background: var(--bg); }
.site-header__in {
  max-width: var(--maxw); margin-inline: auto; padding: 20px var(--g);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand .sym { height: 30px; width: auto; }
.brand .wm { height: 21px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(20px, 2.2vw, 32px); font-weight: 500; font-size: 15px; }
.nav a { text-decoration: none; padding-block: 4px; }
.nav a:hover { text-decoration: underline; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--th); text-decoration-thickness: 2px; }
.nav .btn { margin-left: 4px; }
.menu-btn {
  display: none; background: none; border: 0; padding: 8px 0 8px 12px; cursor: pointer;
  font-weight: 600; font-size: 16px; color: var(--ink);
}
@media (max-width: 860px) {
  .brand .sym { display: none; }
  .brand .wm { height: 24px; }
  .site-header__in { flex-wrap: wrap; }
  .nav { gap: 6px 18px; flex-wrap: wrap; width: 100%; }
  .js .menu-btn { display: inline-block; }
  .js .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; width: auto;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: var(--rule); padding: 8px var(--g) 24px;
  }
  .js .site-header.is-open .nav { display: flex; }
  .js .nav a { font-family: var(--serif); font-size: 30px; font-weight: 400; padding: 10px 0; border-top: var(--rule); }
  .js .nav a:first-child { border-top: 0; }
  .js .nav .btn { font-family: var(--sans); font-size: 16px; font-weight: 600; justify-content: center; margin: 16px 0 0; padding: 14px; border-top: 1px solid var(--ink); }
}
.subnav { border-bottom: var(--rule); }
.subnav__in { max-width: var(--maxw); margin-inline: auto; padding: 12px var(--g); display: flex; gap: 8px 24px; flex-wrap: wrap; align-items: center; font-size: 14px; }
.subnav a { text-decoration: none; color: var(--sec); }
.subnav a:hover, .subnav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
.subnav .fig { margin-right: auto; }
@media (max-width: 760px) { .subnav__sep { display: none; } .subnav .fig { width: 100%; } }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  border: 1px solid var(--ink); border-radius: var(--radius);
  padding: 15px 32px; min-height: 48px;
  font: 600 16px/1.2 var(--sans); color: var(--ink); background: transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn--sm { padding: 9px 18px; min-height: 38px; font-size: 14px; }
.btn--warm { background: var(--rosata); border-color: var(--hilo-oscuro); color: var(--tinta); }
.btn--warm:hover { background: var(--tinta); border-color: var(--tinta); color: var(--rosata); }
.btn--block { width: 100%; }
.ext { display: inline-block; width: .72em; height: .72em; flex: none; vertical-align: .02em; margin-left: .2em; }
.btn .ext, .link .ext { margin-left: 0; }
.link { color: var(--lk); text-decoration: underline; font-weight: 500; display: inline-flex; align-items: center; gap: .4em; }
.link:hover { color: var(--ink); }
.more { display: inline-flex; gap: .45em; align-items: center; font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.more:hover { color: var(--lk); }
.tag {
  display: inline-block; font-size: 13px; font-weight: 500; line-height: 1;
  border: 1px solid var(--ink); border-radius: 999px; padding: 6px 11px; white-space: nowrap;
}
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--th); }
.status--quiet::before { background: transparent; border: 1px solid var(--ink); }

/* ---------- plates, boxes, cards ---------- */
.plate { border: var(--rule); overflow: hidden; position: relative; background: var(--bg); }
.plate > img { width: 100%; height: 100%; object-fit: cover; }
.plate--contain > img { object-fit: contain; }
.art { width: 100%; height: auto; }
.box { border: var(--rule); background: var(--bg); color: var(--ink); position: relative; }
.pad { padding: clamp(20px, 2.1vw, 30px); }
.pad-s { padding: clamp(18px, 1.7vw, 24px) clamp(18px, 1.8vw, 26px); }
a.box { text-decoration: none; display: block; transition: background-color .16s ease; }
a.box:hover .title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.card-media { border-bottom: var(--rule); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- data ---------- */
.stats { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); border-block: var(--rule); }
.stats > div { padding: 14px 14px 12px; border-right: var(--rule); min-width: 0; }
.stats > div:last-child { border-right: 0; }
.stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 1.2rem + 1.5vw, 42px); line-height: 1.12; color: var(--ink); overflow-wrap: break-word; }
.stats--plain b { font-size: clamp(24px, .9rem + 1vw, 36px); }
.stats span { font-size: 14px; color: var(--sec); }
.stats--plain { border-block: 0; }
.stats--plain > div { border-right: 0; padding: 0 22px 0 0; }
@media (max-width: 700px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div:nth-child(2n) { border-right: 0; }
  .stats > div:nth-child(-n+2):not(:nth-last-child(-n+1)) { border-bottom: var(--rule); }
  .stats--plain > div { border-bottom: 0 !important; padding-bottom: 12px; }
}
.rows > * {
  display: grid; grid-template-columns: minmax(110px, var(--rw, 160px)) minmax(0, 1fr) auto;
  gap: 6px 16px; align-items: baseline; border-top: var(--rule); padding: 13px 0; text-decoration: none;
}
.rows > *:last-child { border-bottom: var(--rule); }
.rows--open > *:last-child { border-bottom: 0; }
.rows b, .rows .title { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, .9rem + .8vw, 28px); line-height: 1.15; color: var(--ink); }
.rows p { font-size: 15px; }
.rows .end { font-size: 13px; font-weight: 500; color: var(--ink); white-space: nowrap; }
a.rows-link:hover b, .rows > a:hover b { text-decoration: underline; text-decoration-thickness: 1px; }
@media (max-width: 600px) { .rows > * { grid-template-columns: minmax(0, 1fr) auto; } .rows > * > p { grid-column: 1 / -1; } }
.kv { width: 100%; border-collapse: collapse; font-size: 15px; }
.kv th, .kv td { text-align: left; padding: 11px 0; border-top: var(--rule); vertical-align: baseline; }
.kv tr:last-child th, .kv tr:last-child td { border-bottom: var(--rule); }
.kv th { font-weight: 400; color: var(--sec); padding-right: 16px; width: 42%; }
.kv td { font-weight: 600; color: var(--ink); text-align: right; }
.kv--left td { text-align: left; font-weight: 500; }
.table-wrap { overflow-x: auto; border-top: var(--rule); -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.table th, .table td { text-align: left; padding: 11px 14px 11px 0; border-bottom: var(--rule); vertical-align: top; }
.table thead th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.table td { color: var(--sec); }
.table td:first-child { color: var(--ink); font-weight: 500; }
.table .n { text-align: right; font-variant-numeric: tabular-nums; }
.table tr.is-ours td { color: var(--ink); font-weight: 600; }

/* ---------- code & terminal (Ponto) ---------- */
.code {
  background: var(--code); color: var(--code-ink); border-radius: var(--radius);
  font: 14px/1.7 var(--mono); padding: 18px 20px; overflow-x: auto; position: relative; margin: 0;
  tab-size: 4; -webkit-overflow-scrolling: touch;
}
.code code { font: inherit; background: none; padding: 0; color: inherit; white-space: pre; }
.code .c { color: var(--code-sec); }
.code .k { color: #FF8A6E; }
.code .s { color: #F3E7C4; }
.code-block { position: relative; }
.code-block .code { padding-right: 76px; }
.code-block .copy {
  position: absolute; top: 10px; right: 10px; z-index: 1;
  font: 500 12px/1 var(--sans); color: var(--code-ink); background: var(--code-srf); border: 1px solid var(--code-sec);
  border-radius: 3px; padding: 7px 10px; cursor: pointer;
}
.code-block .copy:hover { background: var(--code-ink); color: var(--code); }
.code-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--sec); margin-bottom: 8px; }
.terminal { background: var(--code); color: var(--code-ink); border-radius: var(--radius); font: 14px/1.85 var(--mono); padding: 20px 22px; overflow-x: auto; }
.terminal .ok { color: #FF8A6E; }
.terminal .dim { color: var(--code-sec); }

/* ---------- sequences (only for real sequences) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); border: var(--rule); }
.steps > * { padding: 16px 16px 18px; border-right: var(--rule); min-width: 0; background: var(--bg); }
.steps > *:last-child { border-right: 0; }
.steps .n { font-family: var(--serif); font-style: italic; color: var(--sec); font-size: 15px; display: block; margin-bottom: 6px; }
.steps b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(22px, .9rem + .8vw, 28px); line-height: 1.15; color: var(--ink); }
.steps p { font-size: 14px; margin-top: 6px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps > *:nth-child(2n) { border-right: 0; }
  .steps > *:not(:nth-last-child(-n+2)) { border-bottom: var(--rule); }
  .steps[style*="--n:3"] > *:nth-child(3), .steps[style*="--n: 3"] > *:nth-child(3) { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps > * { border-right: 0 !important; border-bottom: var(--rule); }
  .steps > *:last-child { border-bottom: 0; }
}
.loop-line { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-family: var(--serif); font-size: clamp(18px, .8rem + .6vw, 22px); color: var(--ink); }
.loop-line i { font-style: normal; color: var(--th); }
.timeline { border-top: var(--rule); }
.timeline > li { list-style: none; display: grid; grid-template-columns: minmax(120px, 220px) minmax(0, 1fr); gap: 8px var(--gap); padding: 22px 0; border-bottom: var(--rule); }
.timeline time { font-family: var(--serif); font-size: clamp(22px, .9rem + .8vw, 28px); color: var(--ink); }
@media (max-width: 600px) { .timeline > li { grid-template-columns: minmax(0, 1fr); } }
.log > li { list-style: none; display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 6px 18px; align-items: baseline; padding: 14px 0; border-top: var(--rule); }
.log > li:last-child { border-bottom: var(--rule); }
.log time { font: 14px/1.4 var(--mono); color: var(--sec); }
.log a { text-decoration: none; font-family: var(--serif); font-size: clamp(19px, .8rem + .5vw, 23px); line-height: 1.25; color: var(--ink); }
.log a:hover { text-decoration: underline; }
.log .end { font-size: 13px; font-weight: 500; white-space: nowrap; color: var(--sec); }
@media (max-width: 640px) { .log > li { grid-template-columns: minmax(0, 1fr); } }

/* ---------- home: hero labyrinth ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 20px; align-items: center; padding-block: 30px; min-height: min(830px, calc(100svh - var(--header-h))); }
.hero__text { padding-block: 24px; }
.hero__text .lead { margin-top: 24px; max-width: 560px; }
.hero__text .row { margin-top: 28px; }
.hero__lab { position: relative; max-width: 680px; margin-left: auto; width: 100%; }
.hero__lab img { width: 100%; }
.hero__lab figcaption { margin-top: -4px; max-width: 200px; }
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: 0 48px; gap: 0; }
  .hero__lab { order: -1; width: auto; max-width: none; margin-inline: calc(var(--g) * -1); border-bottom: var(--rule); overflow: hidden; aspect-ratio: 1 / .9; }
  .hero__lab img { max-width: none; width: 118%; margin: -9% 0 0 -9%; }
  .hero__lab figcaption { display: none; }
  .hero__text { padding-top: 28px; }
  .hero__text .row .btn { flex: 1 1 auto; }
}

/* ---------- page heads ---------- */
.page-head { padding-block: clamp(40px, 5vw, 72px) clamp(40px, 4.5vw, 64px); }
.page-head .fig { margin-bottom: clamp(10px, 1vw, 16px); }
.page-head .lead { margin-top: 20px; }
.page-head--plate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); padding: 0; }
.page-head--plate > :first-child { padding: clamp(40px, 6vw, 96px) var(--g); display: flex; flex-direction: column; justify-content: flex-end; }
.page-head--plate > figure { border-left: var(--rule); min-height: 100%; overflow: hidden; }
.page-head--plate > figure img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .page-head--plate { grid-template-columns: minmax(0, 1fr); }
  .page-head--plate > figure { order: -1; border-left: 0; border-bottom: var(--rule); max-height: 62vw; }
}
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 10px; font-family: var(--serif); font-style: italic; color: var(--sec); font-size: 16px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .6; }
.back { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14px; text-decoration: none; }
.back:hover { text-decoration: underline; }

/* ---------- articles / prose (also styles WordPress post content) ---------- */
.article-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 620px); border-bottom: var(--rule); }
.article-head > div { padding: clamp(40px, 5vw, 64px) var(--g); display: flex; flex-direction: column; justify-content: flex-end; }
.article-head h1 { font-size: clamp(40px, 1.4rem + 4vw, 84px); }
.article-head .deck { font-size: clamp(18px, 1rem + .4vw, 21px); margin-top: 18px; max-width: 660px; color: var(--sec); }
.article-head .meta { margin-top: 22px; font-size: 14px; color: var(--sec); display: flex; gap: 6px 18px; flex-wrap: wrap; }
.article-head > figure { border-left: var(--rule); overflow: hidden; }
.article-head > figure img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 960px) { .article-head { grid-template-columns: minmax(0, 1fr); } .article-head > figure { order: -1; border-left: 0; border-bottom: var(--rule); max-height: 70vw; } }
.article-body { display: grid; grid-template-columns: minmax(180px, 280px) minmax(0, 700px) minmax(0, 1fr); gap: clamp(24px, 2.8vw, 40px); padding-block: clamp(40px, 4.4vw, 64px) clamp(56px, 5vw, 80px); }
.article-body > aside { font-size: 15px; }
.toc { position: sticky; top: 24px; border-top: var(--rule); padding-top: 10px; }
.toc ol { list-style: none; margin-top: 10px; }
.toc li { margin: 0 0 7px; line-height: 1.35; }
.toc a { text-decoration: none; color: var(--sec); }
.toc a:hover, .toc a.is-active { color: var(--ink); text-decoration: underline; }
.side-note { border-top: var(--rule); padding-top: 8px; }
@media (max-width: 1120px) { .article-body { grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); } .article-body > .side-r { display: none; } }
@media (max-width: 820px) { .article-body { grid-template-columns: minmax(0, 1fr); } .toc { position: static; } }

.prose, .single .entry-content, .single .wp-block-post-content { font-size: 18px; line-height: 1.72; color: var(--ink); }
.prose > * + *, .single .entry-content > * + * { margin-top: 1.05em; }
.prose p, .single .entry-content p { color: #2A3442; max-width: 68ch; }
.paper-noche .prose p { color: var(--sec); }
.prose h2, .single .entry-content h2 { font-family: var(--serif); font-size: clamp(28px, 1.1rem + 1.3vw, 38px); line-height: 1.14; margin-top: 2.1em; scroll-margin-top: 24px; }
.prose h3, .single .entry-content h3 { font-family: var(--serif); font-size: clamp(22px, 1rem + .5vw, 26px); line-height: 1.2; margin-top: 1.7em; scroll-margin-top: 24px; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose ul, .prose ol, .single .entry-content ul, .single .entry-content ol { padding-left: 1.25em; max-width: 66ch; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--th); }
.prose a, .single .entry-content a { color: var(--lk); }
.prose a:hover { color: var(--ink); }
.prose strong { font-weight: 600; }
.prose blockquote, .single .entry-content blockquote, .wp-block-quote, .wp-block-pullquote {
  margin: 1.6em 0; padding: 0 0 0 22px; border-left: 3px solid var(--th);
  font-family: var(--serif); font-size: clamp(24px, 1rem + 1.3vw, 36px); line-height: 1.24; color: var(--ink);
}
.prose blockquote p, .wp-block-quote p { color: var(--ink); max-width: none; }
.prose blockquote cite, .wp-block-quote cite { display: block; margin-top: 10px; font-size: 16px; font-style: italic; color: var(--sec); }
.prose code, .single .entry-content :not(pre) > code { font-family: var(--mono); font-size: .86em; background: rgba(18, 26, 38, .07); padding: .12em .36em; border-radius: 3px; }
.prose pre, .single .entry-content pre, .wp-block-code { background: var(--code); color: var(--code-ink); border-radius: var(--radius); font: 14px/1.7 var(--mono); padding: 18px 20px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
.prose table, .single .entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th, .prose td, .single .entry-content th, .single .entry-content td { text-align: left; padding: 10px 14px 10px 0; border-bottom: var(--rule); vertical-align: top; }
.prose thead th { font-weight: 600; border-bottom: var(--rule); }
.prose td { color: #2A3442; }
.prose figure, .single .entry-content figure { margin: 2em 0; }
.prose figcaption, .single .entry-content figcaption { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--sec); margin-top: 10px; }
.prose hr, .wp-block-separator { border: 0; border-top: var(--rule); margin: 2.4em 0; }
.prose .eq { font-family: var(--serif); font-size: 21px; text-align: center; padding: 14px 0; border-block: var(--rule); color: var(--ink); overflow-x: auto; }
.prose .lede { font-family: var(--serif); font-size: clamp(22px, 1rem + .9vw, 29px); line-height: 1.38; color: var(--ink); }
.prose .lede::first-letter { float: left; font-size: 3.85em; line-height: .86; padding: 6px 10px 0 0; }
.prose .callout { border: var(--rule); background: var(--srf, rgba(255, 255, 255, .4)); padding: 20px 22px; font-size: 16px; }
.prose .callout > * + * { margin-top: .6em; }
.prose .diagram { background: var(--srf); border: var(--rule); font: 14px/1.7 var(--mono); padding: 18px 20px; white-space: pre; overflow-x: auto; color: var(--ink); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.refs { font-size: 15px; }
.refs li { margin-top: .5em; }

/* ---------- forms (sign in, chat composer) ---------- */
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.input {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--ink); border-radius: var(--radius);
  background: rgba(255, 255, 255, .55); color: var(--tinta); font-size: 16px;
}
.input::placeholder { color: #64768B; }
.input:focus { outline: 2px solid var(--th); outline-offset: 1px; }
.help { font-size: 13px; color: var(--sec); }

/* ---------- footer ---------- */
.site-footer { border-top: var(--rule); }
.site-footer__in { max-width: var(--maxw); margin-inline: auto; padding: clamp(44px, 4.2vw, 60px) var(--g) 26px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--gap); }
.site-footer__about p { font-size: 17px; max-width: 300px; }
.site-footer h2 { font: 600 13px/1.2 var(--sans); color: var(--ink); margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer li a { font-size: 15px; color: var(--sec); text-decoration: none; }
.site-footer li a:hover { color: var(--ink); text-decoration: underline; }
.social { display: flex; gap: 14px; margin-top: 22px; }
.social a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: var(--rule); border-radius: 50%; color: var(--ink); }
.social a:hover { background: var(--ink); color: var(--bg); }
.social svg { width: 15px; height: 15px; fill: currentColor; }
.footer-mark { margin-top: clamp(32px, 3vw, 44px); }
.footer-mark img { width: 100%; }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; margin-top: 20px; font-size: 13px; color: var(--sec); }
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; }
.footer-legal a { color: var(--sec); text-decoration: none; }
.footer-legal a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 860px) {
  .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__about { grid-column: 1 / -1; margin-bottom: 8px; }
}
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- the thread ---------- */
.thread { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; z-index: 6; overflow: visible; }
.thread path { fill: none; stroke: var(--hilo-linea, var(--hilo)); stroke-width: 2.2; stroke-linejoin: miter; stroke-linecap: square; }
@media (max-width: 860px) { .thread path { stroke-width: 1.6; } }
@media print { .thread { display: none; } }

/* ---------- misc ---------- */
.note { font-size: 14px; color: var(--sec); border-top: var(--rule); padding-top: 10px; }
.note--plain { border-top: 0; padding-top: 0; }
.hr { border: 0; border-top: var(--rule); margin: 0; }
.center { text-align: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: var(--rule); border-radius: 999px; padding: 8px 14px; font-size: 14px; background: transparent; cursor: pointer; text-decoration: none; color: var(--ink); }
.chip:hover { background: var(--ink); color: var(--bg); }
.dot-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.ratio-1 { aspect-ratio: 1 / 1; }
.ratio-43 { aspect-ratio: 4 / 3; }
.ratio-wide { aspect-ratio: 16 / 9; }
@media print {
  .site-header, .site-footer .social, .menu-btn, .copy { display: none !important; }
  .section { break-inside: avoid; }
}

/* ==========================================================================
   Page compositions (built from the components above)
   ========================================================================== */

/* stretched links: a whole card is clickable through its title link */
.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.stretch { text-decoration: none; }
.stretch:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em; }
.stretch:focus-visible { outline: none; }
.stretch:focus-visible::after { outline: 2px solid var(--th); outline-offset: 2px; }
.research-card, .journal__card, .card-link { position: relative; }
h3 > a, h2 > a { text-decoration: none; }
h3 > a:hover, h2 > a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em; }

/* home · journal */
.journal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto; gap: var(--gap); }
.journal__feature { grid-column: span 2; grid-row: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; padding: clamp(20px, 2.1vw, 30px); }
.journal__text { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.journal__text p { font-size: 16px; }
.journal__art { display: flex; align-items: center; }
.journal__art img { width: 100%; }
@media (max-width: 1080px) {
  .journal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journal__feature { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 640px) {
  .journal { grid-template-columns: minmax(0, 1fr); }
  .journal__feature { grid-template-columns: minmax(0, 1fr); }
  .journal__art { order: -1; max-width: 360px; margin-inline: auto; }
}

/* home · parrot */
.parrot { gap: clamp(28px, 3vw, 44px); align-items: stretch; }
.parrot__plate { min-height: 300px; }
@media (max-width: 900px) { .parrot__plate { height: 62vw; max-height: 340px; min-height: 0; } }
.display.nowrap-lg { white-space: nowrap; }
@media (max-width: 520px) { .display.nowrap-lg { white-space: normal; } }

/* home · philosophy */
.phil { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 30px; align-items: center; }
.phil figcaption { margin-top: 4px; max-width: 560px; }
.values { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.values li { font-size: clamp(18px, .9rem + .4vw, 20px); border-top: var(--rule); padding-top: 10px; }
@media (max-width: 1000px) { .phil { grid-template-columns: minmax(0, 1fr); } .phil figure { max-width: 640px; } }
@media (max-width: 560px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* shared page parts */
.mb-s { margin-bottom: 10px; }
.cols-ruled > * { border-top: var(--rule); padding-top: 14px; }
.grid-ruled { list-style: none; gap: 0; border-top: var(--rule); border-left: var(--rule); }
.grid-ruled > li { border-right: var(--rule); border-bottom: var(--rule); padding: clamp(18px, 1.8vw, 26px); }
.letter { display: block; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--sec); margin-bottom: 8px; }
.quote { border-left: 3px solid var(--th); padding-left: 20px; margin: 0; }
.quote p { font-family: var(--serif); font-size: clamp(22px, 1rem + 1vw, 30px); line-height: 1.25; color: var(--ink); }
.principle { max-width: 30em; }
.kv--narrow { max-width: 760px; }
.areas { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--rule); }
.areas li { padding: 22px 16px 22px 0; border-bottom: var(--rule); }
@media (max-width: 900px) { .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .areas { grid-template-columns: minmax(0, 1fr); } }

/* research */
.research-hero { padding-bottom: 0; }
.research-hero__plate { margin-top: clamp(24px, 3vw, 40px); height: clamp(280px, 36vw, 520px); overflow: hidden; border-top: var(--rule); }
.research-hero__plate img { width: 100%; height: 100%; object-fit: cover; }
.project-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.project-card__art { border-left: var(--rule); overflow: hidden; min-height: 320px; }
.project-card__art img { width: 100%; height: 100%; object-fit: cover; }
.project-card .loop-line { list-style: none; }
.project-card__text { display: flex; flex-direction: column; }
.project-card__text .more { margin-top: auto; align-self: flex-start; }
.project-card__text .loop-line { margin-bottom: 28px; }
@media (max-width: 860px) { .project-card { grid-template-columns: minmax(0, 1fr); } .project-card__art { order: -1; border-left: 0; border-bottom: var(--rule); height: 56vw; min-height: 0; } }
.model-split { align-items: start; }
.follow-plate, .why-plate, .cnb-plate { max-width: 560px; margin-left: auto; width: 100%; }
@media (max-width: 900px) { .follow-plate, .why-plate, .cnb-plate { margin: 0 auto; max-width: 420px; } }

/* model band (model cards) */
.model-band__plate { height: clamp(200px, 25vw, 360px); overflow: hidden; }
.model-band__plate img { width: 100%; height: 100%; object-fit: cover; }
.table--bench td.ours, .table--bench td.n.ours { color: var(--ink); font-weight: 700; background: rgba(255, 255, 255, .35); }

/* structure viewer */
.viewer { border: var(--rule); background: var(--srf); }
.viewer__stage { position: relative; height: clamp(380px, 52vw, 640px); }
.viewer__stage canvas { border-radius: 0; }
.viewer__msg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--sec); font-family: var(--serif); font-style: italic; font-size: 18px; text-align: center; padding: 24px; }
.viewer__bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px; border-top: var(--rule); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.viewer:fullscreen { background: var(--bg); }
.viewer:fullscreen .viewer__stage { height: calc(100vh - 70px); }
.split--wide { grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr); }
@media (max-width: 900px) { .split--wide { grid-template-columns: minmax(0, 1fr); } }

/* models */
.gens { list-style: none; margin-top: 18px; border-top: var(--rule); }
.gens li { display: grid; grid-template-columns: minmax(90px, 160px) minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline; padding: 12px 0; border-bottom: var(--rule); }
.gens .title a { text-decoration: none; }
.gens .title a:hover { text-decoration: underline; }
.gens p { font-size: 15px; }
@media (max-width: 560px) { .gens li { grid-template-columns: minmax(0, 1fr) auto; } .gens li p { grid-column: 1 / -1; order: 3; } }
.bento { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); }
.tile { display: flex; flex-direction: column; overflow: hidden; }
.tile .pad { flex: 1; }
.tile__art { border-bottom: var(--rule); overflow: hidden; height: clamp(180px, 17vw, 250px); }
.tile__art img { width: 100%; height: 100%; object-fit: cover; }
.tile__art--s { height: clamp(150px, 13vw, 190px); }
.tile__art--s img { object-fit: contain; padding: 12px; }
.tile--cnb { grid-row: span 2; }
.tile--cnb .tile__art { height: clamp(240px, 26vw, 380px); }
.tile--kyro { grid-column: span 2; flex-direction: row; }
.tile--kyro .pad { flex: 1.2; }
.tile--kyro .tile__art { flex: 1; height: auto; border-bottom: 0; border-left: var(--rule); }
.tile--wide { grid-column: 1 / -1; flex-direction: row; align-items: stretch; position: relative; }
.tile--wide .pad { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.tile--wide .tile__art { flex: 1.6; height: clamp(160px, 14vw, 220px); border-bottom: 0; border-left: var(--rule); }
.tile--wide .tile__art img { object-fit: contain; padding: 10px 20px; }
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--cnb { grid-row: auto; grid-column: 1 / -1; }
  .tile--kyro { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile--kyro, .tile--wide { flex-direction: column; }
  .tile--kyro .tile__art, .tile--wide .tile__art { order: -1; border-left: 0; border-bottom: var(--rule); height: 52vw; flex: none; }
}
.release { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.release__art { border-right: var(--rule); display: flex; align-items: center; padding: 20px; }
@media (max-width: 860px) { .release { grid-template-columns: minmax(0, 1fr); } .release__art { border-right: 0; border-bottom: var(--rule); } }
.tile .gens li { grid-template-columns: minmax(0, 1fr) auto; }
.tile .gens li p { grid-column: 1 / -1; order: 3; font-size: 14px; }
.tile .gens .title { font-size: clamp(21px, .9rem + .6vw, 25px); }

/* products */
.product { display: flex; flex-direction: column; overflow: hidden; }
.product__art { height: clamp(220px, 20vw, 300px); border-bottom: var(--rule); overflow: hidden; }
.product__art img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.product__text { flex: 1; display: flex; flex-direction: column; }
.product__text > div:last-child { margin-top: auto; padding-top: 18px; }
.layers { list-style: none; border-top: var(--rule); }
.layers li { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 6px 16px; align-items: baseline; padding: 20px 0; border-bottom: var(--rule); }
.layers a { text-decoration: none; }
.layers a:hover { text-decoration: underline; }
.layers .end { font-size: 14px; color: var(--sec); }
@media (max-width: 560px) { .layers li { grid-template-columns: minmax(0, 1fr); } }

/* app pages (Cleo, sign in) */
body.is-app { min-height: 100vh; }
.link--btn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 500; }
.input--sm { min-height: 38px; padding: 6px 10px; font-size: 14px; width: auto; }
.cleo { display: grid; grid-template-columns: 260px minmax(0, 1fr) 300px; min-height: 100vh; }
.cleo__side { border-right: var(--rule); padding: 22px 18px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100vh; }
.cleo__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.cleo__mark { width: 30px; height: 30px; border: var(--rule); border-radius: 50%; display: grid; place-items: center; }
.cleo__mark svg { width: 17px; }
.cleo__name { font-family: var(--serif); text-transform: uppercase; letter-spacing: .06em; font-size: 26px; }
.cleo__threads { list-style: none; font-size: 14px; }
.cleo__empty { color: var(--sec); }
.cleo__home { margin-top: auto; color: var(--ink); display: inline-flex; }
.cleo__home svg { height: 18px; width: auto; }
.cleo__main { display: flex; flex-direction: column; min-height: 100vh; }
.cleo__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px clamp(18px, 2.5vw, 36px); border-bottom: var(--rule); }
.cleo__thread { flex: 1; padding: clamp(24px, 3vw, 44px) clamp(18px, 2.5vw, 36px); }
.cleo__start { max-width: 640px; }
.cleo__ovillo { width: 140px; margin-bottom: 18px; }
.cleo__start .lead { margin-top: 14px; }
.cleo__turns { list-style: none; max-width: 720px; border-left: 2px solid var(--th); margin-left: 6px; }
.cleo__turns:empty { display: none; }
.cleo__turn { position: relative; padding: 0 0 26px 26px; }
.cleo__turn::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--th); background: var(--bg); }
.cleo__turn--cleo::before { background: var(--th); }
.cleo__turn p:not(.fig) { color: var(--ink); margin-top: 4px; }
.cleo__note { color: var(--sec) !important; font-style: italic; }
.cleo__composer { position: sticky; bottom: 0; margin: 0 clamp(18px, 2.5vw, 36px) 22px; display: flex; gap: 10px; align-items: flex-end; border: var(--rule); border-radius: var(--radius); background: rgba(255, 255, 255, .55); padding: 8px; }
.cleo__composer textarea { border: 0; background: transparent; resize: none; min-height: 44px; }
.cleo__composer textarea:focus { outline: none; }
.cleo__composer:focus-within { outline: 2px solid var(--th); outline-offset: 2px; }
.cleo__send { background: var(--tinta); color: var(--rosata); border-color: var(--tinta); }
.cleo__send:hover { background: transparent; color: var(--tinta); }
.cleo__plate { border-left: var(--rule); padding: 22px 20px; position: sticky; top: 0; height: 100vh; }
.cleo__plate .plate { aspect-ratio: 1; }
.cleo__plate .plate img { object-fit: contain; padding: 10px; }
.cleo__meta { display: grid; gap: 8px; border-top: var(--rule); padding-top: 10px; font-size: 14px; }
.cleo__meta div { display: flex; justify-content: space-between; }
.cleo__meta dt { color: var(--sec); } .cleo__meta dd { margin: 0; font-weight: 600; }
@media (max-width: 1100px) { .cleo { grid-template-columns: 230px minmax(0, 1fr); } .cleo__plate { display: none; } }
@media (max-width: 760px) {
  .cleo { grid-template-columns: minmax(0, 1fr); }
  .cleo__side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; border-right: 0; border-bottom: var(--rule); padding: 14px 16px; }
  .cleo__side > .fig, .cleo__threads, .cleo__home { display: none; }
  .cleo__new { width: auto; margin-left: auto; }
}
.quma { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; }
.quma .wrap { width: 100%; }
.quma__name { font-size: clamp(64px, 2rem + 9vw, 180px); line-height: .92; }
.signin { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; overflow: hidden; }
.signin__art { position: relative; padding: 26px var(--g); display: flex; flex-direction: column; overflow: hidden; }
.signin__brand { display: inline-flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; }
.signin__brand .sym { height: 26px; width: auto; } .signin__brand .wm { height: 19px; width: auto; }
.signin__plate { flex: 1; display: flex; align-items: center; justify-content: center; }
.signin__plate img { width: 100%; max-width: 720px; }
.signin__form { display: flex; align-items: center; padding: 40px var(--g); border-left: var(--rule); }
.signin__box { width: 100%; max-width: 420px; }
.signin__go { position: relative; background: var(--tinta); color: #fff; border-color: var(--tinta); }
.signin__go:hover { background: transparent; color: var(--tinta); }
.signin__go::before { content: ""; position: absolute; right: calc(100% + 1px); top: 50%; width: 100vw; border-top: 2px solid var(--hilo); pointer-events: none; }
@media (max-width: 860px) {
  .signin { grid-template-columns: minmax(0, 1fr); }
  .signin__art { min-height: 0; }
  .signin__plate { max-height: 46vw; overflow: hidden; }
  .signin__form { border-left: 0; border-top: var(--rule); }
  .signin__go::before { display: none; }
}

/* developers */
.subnav__sep { flex: 1; }
.dev-card { display: flex; flex-direction: column; }
.dev-card__meta { margin-top: auto; padding-top: 14px; font-size: 13px; font-weight: 500; color: var(--ink); display: flex; align-items: center; gap: 4px; }
.soon { min-height: calc(100vh - var(--header-h) - 1px); display: flex; align-items: center; }
.soon .wrap { width: 100%; }

/* documentation (inserloft.dev) */
.docs-top { border-bottom: var(--rule); position: sticky; top: 0; z-index: 20; }
.docs-top__in { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px var(--g); flex-wrap: wrap; }
.docs-top__tag { margin-left: 6px; font-size: 18px; color: var(--ink); }
.docs-top__nav { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 500; flex-wrap: wrap; }
.docs-top__nav a:not(.btn) { text-decoration: none; }
.docs-top__nav a:not(.btn):hover { text-decoration: underline; }
.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr) 230px; min-height: 100vh; }
.docs__side { border-right: var(--rule); padding: 26px 20px 40px var(--g); font-size: 14px; }
.docs__side nav { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; padding-right: 6px; }
.docs__side .fig { margin: 18px 0 6px; color: var(--ink); }
.docs__side .fig:first-child { margin-top: 0; }
.docs__side ul { list-style: none; }
.docs__side li { margin: 4px 0; }
.docs__side a { text-decoration: none; color: var(--sec); }
.docs__side a:hover { color: var(--ink); text-decoration: underline; }
.docs__main { padding: clamp(28px, 3.5vw, 52px) clamp(20px, 3.5vw, 56px) 60px; max-width: 900px; width: 100%; }
.docs__head .display { font-size: clamp(40px, 1.4rem + 3.4vw, 72px); }
.docs__sec { padding-top: 6px; }
.docs__sec h2 { padding-top: 18px; border-top: var(--rule); }
.docs__main .kv { max-width: 560px; }
.docs__main .row .btn { color: var(--ink); text-decoration: none; }
.docs__main .chip { color: var(--ink); text-decoration: none; }
.docs__toc { border-left: var(--rule); padding: 26px var(--g) 40px 20px; font-size: 14px; }
.docs__toc .toc { position: sticky; top: 84px; }
.docs__plate { position: sticky; top: 420px; margin-top: 30px; max-width: 150px; }
.docs__foot { margin-top: 56px; border-top: var(--rule); padding-top: 12px; }
@media (max-width: 1100px) { .docs { grid-template-columns: 230px minmax(0, 1fr); } .docs__toc { display: none; } }
@media (max-width: 760px) {
  .docs { grid-template-columns: minmax(0, 1fr); }
  .docs__side { border-right: 0; border-bottom: var(--rule); padding: 16px var(--g); }
  .docs__side nav { position: static; max-height: none; columns: 2; }
  .docs-top { position: static; }
}
/* code on a night paper uses that night's surface (set per paper as --code) */

/* about */
.keep { text-transform: none; font-size: clamp(32px, 1.2rem + 2.6vw, 58px); line-height: 1.12; letter-spacing: 0; }
.keep-plate { max-width: 300px; margin-left: auto; }
@media (max-width: 900px) { .keep-plate { margin: 0 auto; max-width: 200px; } }
.person { display: grid; grid-template-columns: 200px minmax(0, 1fr); }
.person__art { border-right: var(--rule); display: grid; place-items: center; padding: 18px; }
.person__art img { max-height: 180px; width: auto; }
@media (max-width: 560px) { .person { grid-template-columns: minmax(0, 1fr); } .person__art { border-right: 0; border-bottom: var(--rule); } }

/* legal */
.legal-wrap { border-top: var(--rule); }
.legal__body > section + section { margin-top: 2em; }
.legal__body h2 { margin-top: 0; font-size: clamp(24px, 1rem + .9vw, 30px); }
.legal__body h2 .n { font-style: italic; color: var(--sec); font-size: .7em; margin-right: .4em; }
.legal__body .callout { background: var(--papel); }

/* 404 */
.nf { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; }
.nf .wrap { width: 100%; }
.nf__lab { max-width: 560px; margin-left: auto; }
@media (max-width: 900px) { .nf__lab { margin: 0 auto; max-width: 320px; order: -1; } }

/* artifacts */
.artifacts-plate { max-width: 300px; margin-left: auto; }
.section--flush-top { border-top: 0; padding-top: 0; }
.artifact-card { overflow: hidden; }
.artifact-card__art { border-bottom: var(--rule); background: rgba(255, 255, 255, .35); padding: 12px; }
.artifact-card__art img { width: 100%; }
.mono-in { font-family: var(--mono); font-size: 14px; line-height: 1.6; }
textarea.input { resize: vertical; }
.tool2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.tool3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); }
@media (max-width: 860px) { .tool2, .tool3 { grid-template-columns: minmax(0, 1fr); } }
.tool-out { white-space: pre-wrap; word-break: break-all; min-height: 180px; margin-top: 10px; }
.tool-tabs { margin-top: 26px; }
.tree { border: var(--rule); background: var(--srf); padding: 16px 18px; font-size: 15px; min-height: 260px; overflow-x: auto; }
.tree ul { list-style: none; padding-left: 20px; border-left: 1px solid var(--ink); margin: 4px 0 4px 6px; }
.tree li { margin: 4px 0; }
.tree summary { cursor: pointer; } .tree b { font-weight: 600; }
.tree__t { color: var(--sec); font-family: var(--mono); font-size: 13px; }
.tree code { font-family: var(--mono); font-size: 13px; } .tree__string { color: var(--hilo-oscuro); } .tree__number, .tree__boolean { color: var(--tinta); font-weight: 600; }
.svg-stage { border: var(--rule); background: #fff; min-height: 320px; display: grid; place-items: center; padding: 16px; margin-top: 26px; }
.svg-stage img { max-width: 100%; max-height: 420px; }
.diff-out .dl { display: block; } .diff-out .dl--del { color: #FF8A6E; } .diff-out .dl--add { color: #A5E0B2; }
.dna-out { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); }
.dna-out pre { white-space: pre-wrap; word-break: break-all; min-height: 80px; margin-top: 6px; }
.dna-out mark { background: var(--hilo-noche); color: var(--noche); padding: 0 2px; }
@media (max-width: 760px) { .dna-out { grid-template-columns: minmax(0, 1fr); } }
.lorenz { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--gap); align-items: start; }
.lorenz__stage { border: var(--rule); position: relative; background: var(--srf); }
.lorenz__stage canvas { width: 100%; height: clamp(360px, 46vw, 620px); cursor: grab; touch-action: none; }
.lorenz__read { position: absolute; left: 14px; bottom: 10px; right: 14px; display: flex; justify-content: space-between; font: 13px/1 var(--mono); color: var(--sec); pointer-events: none; }
.lorenz__panel { display: grid; gap: 18px; }
.lorenz__panel .lbl { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }
.lorenz__panel output { font-family: var(--mono); font-weight: 500; }
input[type=range] { width: 100%; accent-color: var(--hilo); }
@media (max-width: 900px) { .lorenz { grid-template-columns: minmax(0, 1fr); } }
