/* ═══════════════════════════════════════
   WoGL — World of GL
   wogl.io | worldofgl.com | mundogl.com
   hello@wogl.io | hola@mundogl.com

   Proprietary. All rights reserved.
   ═══════════════════════════════════════ */

/* the house's page styles come first, in their own layer, so the Atlas's own rules always win over them */
@layer base, casa;
@import url("../wogl-site/home.css") layer(casa);

/* ATLAS (atlas.js): a library, then a book. The first page lists every shader as the Toolkit lists its works; each
   family, its name in glass, its story, and its shaders as sections, the picture beside the words. */
:root { --ink: #000; --cream: #f4ece1; --muted: rgba(244, 236, 225, .74); --quiet: rgba(244, 236, 225, .5); --gold: #e8c89a;
  --sans: 'Outfit', system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace; --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 40px); --bottom: env(safe-area-inset-bottom, 0px); color-scheme: dark; }
html { background: #050407; }
body { margin: 0; background: #050407; color: var(--cream); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.wrap { width: min(1160px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
/* the landing's lava under everything, cinnabar at the top of a page and blue at its end (atlas.js · WOGL_JOURNEY) */
#lava { position: fixed; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; z-index: 0; opacity: .62; }
.doc { position: relative; z-index: 1; }
/* the plain elements sit under the house bar's styles (layer order in atlas.html), so the bar keeps its own look */
@layer base {
  * { box-sizing: border-box; }
  button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  a { color: inherit; text-decoration: none; }
  svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
}

/* glass: light through it, a lit top edge, no outline */
.glass { background: rgba(255, 250, 242, .09); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -1px 0 rgba(255, 255, 255, .04), 0 10px 30px rgba(0, 0, 0, .28); transition: background .3s, transform .3s var(--ease); }
.glass:hover { background: rgba(255, 250, 242, .15); }
.glass:active { transform: scale(.95); }
.glass:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

/* ── The house bar (wnav.js, its look from home.css): what the Atlas changes in the page styles it brings ── */
html { scroll-behavior: auto; }
body { font-weight: 400; font-size: 16px; line-height: normal; }
canvas { background: transparent; }
.pill { border: 0; letter-spacing: normal; text-transform: none; }
/* the bar's buttons without their outline, as on wogl.io (the border stays transparent so nothing moves) */
.nav .nav-end .wgl-lang__trigger, .nav .nav-end .wp-btn, .nav .nav-end .acct, .nav .nav-end .menu-btn { border-color: transparent; }
/* inside the Atlas its word in the bar is a plain word like the houses', in gold as the page you are on: no pill, no glow */
.nav-atlas { height: auto; padding: 0 6px; border-radius: 0; font: 400 12px/1 var(--mono); letter-spacing: .14em; background: none; color: var(--gold); -webkit-text-fill-color: currentColor; }
.nav-atlas::before { content: none; }
.nav-atlas::after { inset: -16px -6px; }
.mx-word[href^="/atlas"] > span > span { color: var(--gold); }

/* ── The giant words (ATLAS, each family's name): solid gold, as wogl.io's home names the Atlas, its letters rising ── */
.palabra { display: block; width: max-content; margin: 0 auto; font: 800 100px/.78 var(--sans); letter-spacing: -.005em; text-transform: uppercase; white-space: nowrap; overflow: hidden; padding: .02em .12em .04em; }
.palabra span { display: inline-block; padding: 0 .12em; margin: 0 -.12em; color: var(--gold); transform: translateY(108%); transition: transform .8s var(--ease); transition-delay: calc(var(--n) * 22ms); }
.palabra.in span { transform: none; }

/* ── The intro and each family ── */
/* a block that comes up as it arrives (atlas.js · revealAll); cards along a row a beat apart */
.aparece { opacity: 0; translate: 0 22px; transition: opacity .8s var(--ease), translate .8s var(--ease); transition-delay: calc(var(--k, 0) * 70ms); }
.aparece.visto { opacity: 1; translate: none; }
/* every call is a solid key with small corners, as wogl.io's: the main one gold with a 68° gradient that glows underneath
   on hover, the others dark with a thin edge */
.lente, .pill { position: relative; display: inline-flex; align-items: center; border: 0; border-radius: 4px; color: var(--cream); text-shadow: none;
  transition: box-shadow .3s ease, background-color .3s ease, transform .2s var(--ease); }
.lente, .pill.gold { color: #170f07; background: linear-gradient(68deg, #c99a63 -7%, #f3dcb6 131%); }
.lente:hover, .pill.gold:hover { box-shadow: 0 0 0 1px rgba(243, 220, 182, .3), 0 10px 30px -6px rgba(232, 200, 154, .6); }
.lente:focus-visible, .pill:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
.lente { height: 46px; padding: 0 24px; pointer-events: auto; font: 500 15px/1 var(--sans); letter-spacing: -.005em; }
.familia { padding-top: clamp(104px, 17vh, 200px); }
/* urbano: one heavy word from edge to edge of the column (atlas.js · fit) */
.gigante { margin: 0; }
.gigante .palabra { margin: 0 0 0 -.12em; }
/* each letter reaches above the capitals, so an accent (GEOLOGÍA) is not cut */
.gigante .palabra span { padding-top: .22em; }
.fam-title { max-width: 30em; margin: clamp(14px, 2vh, 22px) 0 0; font: 300 clamp(20px, 2.2vw, 28px)/1.25 var(--sans); letter-spacing: -.015em; color: var(--cream); text-wrap: balance; }
.fam-story { max-width: 40em; margin-top: clamp(22px, 4vh, 36px); }
.fam-story p { margin: 0 0 1em; font: 300 clamp(17px, 1.45vw, 20px)/1.62 var(--sans); color: var(--muted); text-wrap: pretty; }
.fam-story p:first-child { color: var(--cream); }

/* ── The library: as the Toolkit's, ATLAS in gold glass as each family's name, a bar that stays (the search, the order, a shader at random, the families
   with their count) over flat panels in three columns, each with its picture framed, its name, its law and, at its
   foot, its family and its year; under Featured the question of the day comes first ── */
.lib { padding: clamp(112px, 12vw, 148px) var(--gutter) clamp(64px, 8vw, 110px); max-width: calc(1200px + 2 * var(--gutter)); margin: 0 auto; }
.lib-bar { position: sticky; top: 80px; z-index: 20; margin-top: 28px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(13, 10, 8, .94);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35); display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; }
.lib-search { position: relative; display: flex; align-items: center; height: 48px; padding: 0 8px 0 44px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); transition: border-color .25s; }
.lib-search:focus-within { border-color: var(--gold); }
.lib-search > svg { position: absolute; left: 16px; width: 17px; height: 17px; color: var(--muted); }
.lib-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: 400 15px/1 var(--sans); color: var(--cream); }
.lib-search input::placeholder { color: var(--quiet); }
.lib-search input::-webkit-search-cancel-button { display: none; }
.lib-search kbd { flex: none; padding: 4px 8px; border-radius: 5px; border: 1px solid var(--line); font: 500 11px/1 var(--mono); color: var(--quiet); }
.busca-x { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 6px; color: var(--muted); }
.busca-x:hover { color: var(--cream); background: rgba(255, 250, 242, .08); }
.busca-x svg { width: 16px; height: 16px; }
.busca-x[hidden] { display: none; }
.lib-sort { min-width: 0; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 6px 0 14px; border-radius: 8px; border: 1px solid var(--line); font: 400 13px/1 var(--sans); color: var(--quiet); }
.lib-sort select { flex: 1; min-width: 0; height: 100%; padding: 0 22px 0 0; border: 0; outline: 0; font: 500 13px/1 var(--sans); color: var(--cream); cursor: pointer; appearance: none; -webkit-appearance: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23e8c89a' stroke-width='1.4'/%3E%3C/svg%3E") right 6px center / 10px no-repeat; }
.lib-sort select option { background: #110d0a; color: var(--cream); }
.lib-sort:focus-within { border-color: var(--gold); }
.lib-bar .pill { height: 48px; }
.lib-fams { grid-column: 1 / -1; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px;
  mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.lib-fams::-webkit-scrollbar { display: none; }
.lib-fam { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02);
  font: 400 14px/1 var(--sans); color: var(--muted); transition: border-color .25s, color .25s, background .25s; }
.lib-fam small { font: 500 10px/1 var(--mono); letter-spacing: .06em; color: var(--quiet); }
.lib-fam:hover { color: var(--cream); border-color: var(--line-2); }
.lib-fam[aria-pressed="true"] { color: var(--gold); border-color: rgba(232, 200, 154, .7); background: rgba(232, 200, 154, .08); }
.lib-fam[aria-pressed="true"] small { color: var(--gold); }
/* soft chips with no edge, as Practice's: the one chosen in cream with ink letters */
.lib-fam { border-color: transparent; border-radius: 999px; background: rgba(255, 255, 255, .05); }
.lib-fam:hover { border-color: transparent; background: rgba(255, 255, 255, .09); }
.lib-fam[aria-pressed="true"] { border-color: transparent; background: #f4ece1; color: #120d09; }
.lib-fam[aria-pressed="true"] small { color: rgba(18, 13, 9, .6); }
.lib-count { display: flex; align-items: baseline; gap: 12px; margin: 48px 0 16px; }
.lib-count h2, .lib-count span { margin: 0; font: 400 22px/1.2 var(--sans); color: var(--cream); }
.lib-count span { color: var(--quiet); }
.lib-empty { margin: 0 0 16px; font: 400 14px/1.4 var(--sans); color: var(--quiet); }
.lib-empty:empty { display: none; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.lcard { display: flex; flex-direction: column; padding: 8px; border-radius: 12px; border: 1px solid rgba(232, 200, 154, .07); background: #110e0d; color: inherit; text-decoration: none;
  transition: border-color .35s; }
/* no dark shadow under it: over the lava it read as a black edge */
.lcard:hover, .lcard:focus-visible { border-color: rgba(232, 200, 154, .22); outline: none; }
/* the card under the pointer: a thin spark runs round its edge, the one of Academy PRO's active step (home.css · .pd-steps), quieter */
@property --chispa { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.lcard { position: relative; }
.lcard::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: conic-gradient(from var(--chispa), transparent 0 34%, rgba(232, 200, 154, .3) 42%, rgba(255, 243, 223, .85) 50%, rgba(232, 200, 154, .4) 56%, transparent 64%);
  filter: drop-shadow(0 0 3px rgba(255, 220, 170, .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: chispa 2.4s linear infinite paused; }
.lcard:hover::after, .lcard:focus-visible::after { opacity: 1; animation-play-state: running; }
@keyframes chispa { to { --chispa: 360deg; } }
@media (prefers-reduced-motion: reduce) { .lcard::after { animation: none; } }
.lcard-art { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 7px; overflow: hidden; background: #0b0a0d; }
.lcard-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); -webkit-user-drag: none; }
/* the card under the pointer runs its shader over its poster (atlas.js · libWake) */
.lcard-art .live { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lcard-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px 8px 6px; }
.lcard-name { font: 500 17px/1.2 var(--sans); color: var(--cream); }
.lcard-tag { font: 400 13.5px/1.45 var(--sans); color: var(--muted); }
/* the placard, as in a chapter (.hijo-meta): who, one per line, then the year */
.lcard-placa { display: grid; gap: 2px; margin-top: 12px; }
.lcard-placa .quien { font: 500 13.5px/1.3 var(--sans); color: var(--cream); }
.lcard-placa .anio { margin-top: 3px; font: 500 11px/1.3 var(--mono); letter-spacing: .08em; color: var(--gold); }
.lcard-placa .hecho { font: 500 11px/1.3 var(--mono); letter-spacing: .08em; color: var(--gold); }
.lcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.lcard-fam { font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.lcard-id { font: 500 10px/1 var(--mono); letter-spacing: .08em; color: var(--quiet); }
@media (max-width: 1000px) { .lib-bar { grid-template-columns: minmax(0, 1fr) auto; } .lib-bar .pill { display: none; } }
@media (max-width: 760px) {
  .lib-bar { position: static; }
  .lib-search { grid-column: 1 / -1; }
  .lib-search kbd { display: none; }
  .lib-bar .pill { display: inline-flex; }
}
@media (max-width: 620px) { .lib-grid { grid-template-columns: 1fr; } }
.fam-nav-a b { display: block; min-width: 0; font: 800 clamp(24px, 2.6vw, 36px)/.9 var(--sans); letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; }
.fam-nav-a, .fam-nav-a img { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
/* the end of a family's page: the family before and after, and the way back to the index */
.fam-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); padding-top: clamp(72px, 12vh, 140px); }
.fam-nav-a { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; color: var(--cream); isolation: isolate; }
.fam-nav-a img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .4s, transform .6s var(--ease); }
.fam-nav-a:hover img { opacity: .8; transform: scale(1.04); }
.fam-nav-a::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 4, 7, .85), rgba(5, 4, 7, .1) 70%); }
.fam-nav-a span { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; display: grid; gap: 6px; }
.fam-nav-a.next span { text-align: right; }
.fam-nav-a small { font: 500 12px/1 var(--mono); letter-spacing: .14em; color: var(--gold); }
.fam-nav-a b { font-size: clamp(20px, 2.4vw, 32px); }
.fam-nav-a i { font: 300 13px/1.3 var(--sans); font-style: normal; color: var(--muted); }
@media (max-width: 560px) { .fam-nav-a i { display: none; } }
.fam-back { padding-top: clamp(24px, 4vh, 40px); text-align: center; }
@media (max-width: 560px) { .fam-nav-a { aspect-ratio: 4 / 3; } .fam-nav-a b { font-size: 15px; } }
/* a family's page starts under the bars */
.familia:first-child { padding-top: calc(122px + clamp(40px, 8vh, 90px)); }
/* under the house bar, as Academy's tabs: the way back to wogl.io, the families (the one in view in gold), and every
   shader in a sheet */
.chips { position: fixed; z-index: 50; left: 0; right: 0; top: 68px; display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 var(--gutter);
  background: rgba(5, 4, 3, .86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(232, 200, 154, .13);
  opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.chips.on { opacity: 1; transform: none; pointer-events: auto; }
.chips-back { position: relative; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(232, 200, 154, .3); color: var(--gold); transition: border-color .3s; }
.chips-back:hover { border-color: var(--gold); }
.chips-back svg { width: 16px; height: 16px; }
.chips-in { flex: 1; min-width: 0; display: flex; gap: 4px; height: 100%; align-items: center; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 22px), transparent); }
.chips-in::-webkit-scrollbar { display: none; }
.chips-in a { position: relative; flex: none; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 999px; font: 400 14px/1 var(--sans); color: var(--muted); white-space: nowrap; transition: background .3s, color .3s; }
.chips-in a:hover { color: var(--cream); }
.chips-in a::after, .chips-back::after, .chips-all::after { content: ''; position: absolute; inset: -5px 0; }
.chips-back::after, .chips-all::after { inset: -4px; border-radius: 999px; }
.chips-in a[aria-current] { color: #1a1208; background: linear-gradient(160deg, #f6dfb3, #e8c89a 55%, #cfa56e); }
.chips-all { position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(232, 200, 154, .3);
  font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); transition: border-color .3s; }
.chips-all:hover { border-color: var(--gold); }
.chips-all svg { width: 12px; height: 12px; stroke-width: 1.4; }
html { scroll-padding-top: 130px; }
.hijo { scroll-margin-top: 130px; }
@media (max-width: 640px) { .chips { top: 60px; padding: 0 12px; } html { scroll-padding-top: 122px; } .hijo { scroll-margin-top: 122px; } .chips-all span { display: none; } .chips-all { padding: 0 11px; } }
.indice a:focus, .chips a:focus, .fam-nav a:focus { outline: none; }
.indice a:focus-visible, .chips a:focus-visible, .chips button:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; border-radius: 999px; }

/* ── A shader: its picture beside its words ── */
.hijos { display: grid; gap: clamp(64px, 11vh, 128px); margin-top: clamp(48px, 8vh, 96px); }
.hijo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: center; }
.art { position: relative; isolation: isolate; margin: 0; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: #0b0a0d; box-shadow: 0 34px 80px -34px rgba(0, 0, 0, .9); }
.art .ej { position: absolute; inset: 0; overflow: hidden; }
.art, .lab-view { touch-action: pan-y; }
.hand-hint { position: absolute; z-index: 2; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 12px; border-radius: 999px;
  font: 400 12px/1 var(--mono); letter-spacing: .04em; color: rgba(244, 236, 225, .9); background: rgba(8, 6, 10, .7); pointer-events: none; transition: opacity .4s; }
.hand-hint svg { width: 14px; height: 14px; color: var(--gold); }
.art:hover .hand-hint { opacity: 0; }
/* the finger held on a picture lights its champagne edge: from then on it plays the law and the page stays */
.art::after, .lab-view::after, .lec-hero::after, .lcard-art::after { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 2px rgba(232, 200, 154, .9), inset 0 0 32px rgba(232, 200, 154, .2); opacity: 0; transition: opacity .2s ease; }
.agarrada::after { opacity: 1; }
.agarrada .hand-hint { opacity: 0; }
.ej > * { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.poster { object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.poster.lista { opacity: 1; }
.still { opacity: 0; }
.still.on { opacity: 1; }
.live { opacity: 0; }
.live.on { opacity: 1; transition: opacity .9s cubic-bezier(.4, 0, .2, 1); }
/* the placard over a shader's name, as a museum's: who discovered it, one per line, then the year.
   Everything keeps one edge, and the shader's note opens under a hairline */
.hijo-meta { display: grid; gap: 3px; margin: 0 0 18px; }
.hijo-meta .quien { font: 500 14px/1.3 var(--sans); color: var(--cream); }
.hijo-meta .anio { margin-top: 4px; font: 500 12px/1.3 var(--mono); letter-spacing: .08em; color: var(--gold); }
.hijo-meta .hecho { font: 500 12px/1.3 var(--mono); letter-spacing: .08em; color: var(--gold); }
.hijo-meta[hidden] { display: none; }
.hijo-name { margin: 0; padding-top: .06em; font: 800 clamp(30px, 3.6vw, 48px)/.94 var(--sans); letter-spacing: -.02em; text-transform: uppercase; color: var(--cream); overflow-wrap: break-word; text-wrap: balance; }
.hijo-law { margin: 14px 0 0; font: 300 clamp(18px, 1.55vw, 21px)/1.4 var(--sans); color: rgba(244, 236, 225, .95); text-wrap: pretty; }
.hijo-story { margin: 16px 0 0; font: 300 16px/1.65 var(--sans); color: rgba(244, 236, 225, .82); text-wrap: pretty; }
.hijo-shader { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid rgba(232, 200, 154, .26); font: 300 15px/1.62 var(--sans); color: rgba(244, 236, 225, .66); text-wrap: pretty; }
.hijo-shader .lbl { display: block; margin-bottom: 6px; font: 500 13px/1.3 var(--sans); color: var(--gold); }
.hijo-do { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; }
/* on the phone the picture runs edge to edge and melts into the page; the name rides on it, and the actions sit in
   one row for the thumb: the first takes the room, the others are icons */
@media (max-width: 899px) {
  .hijo .art { margin-inline: calc(-1 * var(--gutter)); aspect-ratio: 1 / 1; border-radius: 0; box-shadow: none;
    -webkit-mask-image: linear-gradient(180deg, #000 52%, rgba(0, 0, 0, .55) 74%, transparent 100%); mask-image: linear-gradient(180deg, #000 52%, rgba(0, 0, 0, .55) 74%, transparent 100%); }
  .hijo .hand-hint { top: 12px; bottom: auto; left: var(--gutter); }
  .hijo-text { position: relative; z-index: 1; display: flex; flex-direction: column; max-width: 620px; margin-top: -96px; }
  .hijo-name { order: -1; font-size: clamp(34px, 10.4vw, 46px); text-shadow: 0 2px 24px rgba(0, 0, 0, .55); }
  .hijo-meta { margin-top: 18px; margin-bottom: 16px; }
  .hijo-law { margin-top: 0; }
  .hijo-meta[hidden] ~ .hijo-law { margin-top: 16px; }
  .hijo-do { flex-wrap: nowrap; }
  .hijo-do .pill { height: 48px; font-size: 15px; }
  .hijo-do .pill.gold { flex: 1; justify-content: center; }
  .hijo-do .pill:not(.gold) { flex: none; width: 48px; padding: 0; justify-content: center; }
  .hijo-do .pill:not(.gold) svg { width: 19px; height: 19px; }
  .hijo-do .pill:not(.gold) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 899px) and (orientation: landscape) { .hijo .art { aspect-ratio: auto; height: 78svh; } }
@media (min-width: 900px) {
  .hijo { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(36px, 4.6vw, 76px); }
  .hijo:nth-child(even) .art { order: 2; }
}

/* ── The long read: a chapter under the shader's words; its picture stays in view while it is read ── */
/* the chapter opens under the shader, across both columns, as a column of reading; nothing moves while it is read
   except the law in its own panel */
/* the lesson: its own page over the Atlas, the shader's picture at its head and an X that stays at hand */
/* with a mouse the page under the lesson is locked; on a touch screen the lesson's own scroll holds it */
@media (pointer: fine) { html.leyendo:not(.soltando) { overflow: hidden; } }
html.leyendo .doc { z-index: 90; }
.capitulo { position: fixed; inset: 0; z-index: 1; overflow-y: auto; overscroll-behavior: contain; background: rgba(7, 5, 7, .12); }
/* while reading, only the lesson and the lava under it */
html.leyendo-fondo .doc, html.leyendo-fondo .nav, html.leyendo-fondo .chips { visibility: hidden; }
html.leyendo-fondo .capitulo:not([hidden]) { visibility: visible; }
html.leyendo-fondo .nav *, html.leyendo-fondo .chips * { animation-play-state: paused; }
.lec-x { position: fixed; z-index: 3; top: max(14px, env(safe-area-inset-top)); right: max(14px, var(--gutter)); width: 44px; height: 44px; color: var(--cream); }
.lec-x svg { width: 18px; height: 18px; }
.lec-in { width: min(1080px, 100%); margin: 0 auto; padding: 76px var(--gutter) calc(96px + var(--bottom)); }
.lec-hero { position: relative; isolation: isolate; width: 100%; aspect-ratio: 16 / 9; max-height: 64vh; margin: 0; border-radius: 22px; overflow: hidden; background: #0b0a0d;
  box-shadow: 0 34px 80px -34px rgba(0, 0, 0, .9); touch-action: pan-y; }
.lec-hero .ej { position: absolute; inset: 0; overflow: hidden; }
.lec-head { max-width: 560px; margin: clamp(28px, 4vh, 44px) auto 0; }
.lec-name { margin: 0; padding-top: .06em; font: 800 clamp(34px, 5vw, 64px)/.94 var(--sans); letter-spacing: -.02em; text-transform: uppercase; color: var(--cream); overflow-wrap: break-word; text-wrap: balance; }
.lec-law { margin: 14px 0 0; font: 300 clamp(18px, 1.6vw, 22px)/1.4 var(--sans); color: rgba(244, 236, 225, .95); text-wrap: pretty; }
.lec-premisa { max-width: 560px; margin: clamp(28px, 4vh, 40px) auto 0; font: 400 clamp(19px, 1.6vw, 22px)/1.5 var(--sans); color: var(--cream); text-wrap: pretty; }
.lec-premisa .q { color: #f3dcb6; }
.vuela { position: fixed; z-index: 100; display: block; object-fit: cover; pointer-events: none; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); }
@media (max-width: 760px) { .lec-in { padding-top: 68px; } .lec-hero { aspect-ratio: 4 / 3; border-radius: 18px; } }
.lec-in > .cap-sec > *, .lec-in > .cap-end { max-width: 560px; margin-inline: auto; }
.lec-in > .cap-sec > .lab { max-width: 1080px; }
@media (min-width: 900px) { .capitulo .pase pre { margin-inline: -80px; } }
.cap-sec { margin-top: clamp(34px, 5vh, 48px); }
.cap-sec h4 { margin: 0 0 10px; font: 500 13px/1.3 var(--sans); color: var(--gold); }
.cap-sec p { margin-top: 0; margin-bottom: 1em; font: 300 16px/1.7 var(--sans); color: rgba(244, 236, 225, .86); text-wrap: pretty; }
.cap-sec p:first-of-type { color: rgba(244, 236, 225, .94); }
@media (min-width: 900px) { .cap-sec p { font-size: 17px; } }
.cap-note { font-size: 14px !important; color: rgba(244, 236, 225, .66) !important; }
.formula { display: grid; gap: 10px; margin: 18px 0; padding: 18px 20px; border-radius: 14px; overflow-x: auto; font: 400 clamp(14px, 1.3vw, 16px)/1.5 var(--mono); color: var(--cream); white-space: nowrap; background: rgba(255, 250, 242, .045); }
.terminos { display: grid; gap: 16px; margin: 22px 0; }
.terminos div { display: grid; gap: 6px; }
.terminos dt code { font: 500 13px/1.4 var(--mono); color: var(--gold); }
.terminos dd { margin: 0; font: 300 15.5px/1.62 var(--sans); color: var(--muted); }
.pase { margin-top: 26px; }
.pase h5 { margin: 0 0 8px; font: 500 12px/1 var(--mono); letter-spacing: .06em; color: var(--cream); }
.glsl { margin: 10px 0 0; padding: 16px 18px; border-radius: 14px; overflow-x: auto; font: 12.5px/1.66 var(--mono); color: rgba(244, 236, 225, .84); background: rgba(0, 0, 0, .42); tab-size: 2; white-space: pre; }
.glsl i { font-style: normal; }
.glsl .k { color: #c89be8; }
.glsl .t { color: #8be8c0; }
.glsl .n { color: #e8c89a; }
.glsl .b { color: #9cc4ff; }
.glsl .p { color: #ffb08a; font-weight: 500; }
.glsl .c { color: rgba(244, 236, 225, .38); }
.lab { margin: 22px 0 8px; border-radius: 22px; border: 1px solid rgba(232, 200, 154, .13); background: rgba(16, 12, 9, .78); overflow: hidden; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .7); }
.lab-head { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 18px; border-bottom: 1px solid rgba(232, 200, 154, .13); font: 400 12px/1 var(--mono); color: rgba(244, 236, 225, .66); }
.lab-head > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lab-dots { display: inline-flex; gap: 6px; flex: none; }
.lab-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(232, 200, 154, .22); }
.lab-live { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; flex: none; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cream); }
.lab-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: late 1.6s ease-in-out infinite; }
@keyframes late { 50% { opacity: .35; } }
.lab:has(.lab-view.fuera) .lab-live i { animation-play-state: paused; }
.lab-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.lab-side { min-width: 0; }
.lab-view { position: relative; min-height: 360px; overflow: hidden; background: #0b0a0d; border-left: 1px solid rgba(232, 200, 154, .13); }
.lab-view .ej { position: absolute; inset: 0; }
.lab-view .ej > * { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lab-law { display: grid; gap: 12px; padding: 20px; overflow-x: auto; font: 400 clamp(13.5px, 1.25vw, 15.5px)/1.6 var(--mono); color: var(--cream); white-space: nowrap; }
.vp { padding: 1px 4px; border-radius: 4px; font-weight: 500; color: #ffe2b4; background: rgba(232, 200, 154, .16); box-shadow: 0 0 0 2px rgba(232, 200, 154, .16); }
.vp.hot { animation: hot .6s var(--ease); }
@keyframes hot { 0% { background: rgba(255, 226, 180, .6); color: #1b130c; } 100% { background: rgba(232, 200, 154, .16); } }
.lab-ctl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 20px; border-top: 1px solid rgba(232, 200, 154, .13); }
.ctl { display: grid; gap: 12px; align-content: start; }
/* the knob's name as written (β stays β), like every other label; its value in mono */
.ctl > span { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font: 500 13px/1.3 var(--sans); letter-spacing: normal; text-transform: none; color: var(--cream); }
.ctl b { font: 500 12px/1.3 var(--mono); letter-spacing: .02em; color: var(--gold); }
.ctl input { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: -12px 0; background: transparent; cursor: pointer; }
.ctl input::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--gold) calc(var(--f, .5) * 100%), rgba(232, 200, 154, .16) 0); }
.ctl input::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--gold) calc(var(--f, .5) * 100%), rgba(232, 200, 154, .16) 0); }
.ctl input::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: var(--cream); box-shadow: 0 0 0 4px rgba(232, 200, 154, .25), 0 4px 12px rgba(0, 0, 0, .5); }
.ctl input::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--cream); box-shadow: 0 0 0 4px rgba(232, 200, 154, .25); }
.ctl input:focus-visible { outline: 1px solid var(--gold); outline-offset: -8px; border-radius: 12px; }
.ctl small { font: 300 14px/1.55 var(--sans); color: var(--muted); }
.lab-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px 20px; }
.lab-foot p { margin: 0 !important; font-size: 13.5px !important; color: var(--quiet) !important; }
.lab-side .lab-ctl { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 899px) {
  .lab-body { grid-template-columns: minmax(0, 1fr); }
  .lab-view { order: -1; min-height: 0; aspect-ratio: 4 / 3; border-left: 0; border-bottom: 1px solid rgba(232, 200, 154, .13); }
  .lab-law { font-size: 12.5px; padding: 16px; overflow-x: visible; white-space: normal; }
}
.capas { display: grid; gap: 6px; margin: 0; }
.capas div { display: grid; grid-template-columns: minmax(84px, 120px) minmax(0, 1fr); gap: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 250, 242, .03); }
.capas dt { font: 500 13px/1.45 var(--sans); color: var(--gold); }
.capas dd { margin: 0; font: 300 14.5px/1.55 var(--sans); color: var(--muted); }
.cap-sec a[href^="#/"] { color: var(--gold); text-decoration: underline; text-decoration-color: rgba(232, 200, 154, .4); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.cap-sec a[href^="#/"]:hover { text-decoration-color: var(--gold); }
.cap-end { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(30px, 5vh, 44px); }

/* ── Words and pictures arrive as they come into view (tied to the scroll, on the compositor) ── */
@supports (animation-timeline: view()) {
  .fam-head > *, .hijo-text { animation: atl-sube linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  .hijo .art { animation: atl-acerca linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
}
@keyframes atl-sube { from { opacity: 0; transform: translate3d(0, 36px, 0); } }
@keyframes atl-acerca { from { opacity: .25; transform: scale(.94); } }

/* ── The foot: wogl.io's own ── */
.foot { margin-top: clamp(96px, 16vh, 180px); padding: 64px 0 calc(32px + var(--bottom)); background: rgba(5, 4, 3, .55); border-top: 1px solid rgba(232, 200, 154, .13); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-mark { display: inline-flex; align-self: start; font: 300 19px/1 var(--sans); letter-spacing: .18em; color: var(--gold); text-shadow: 0 0 24px rgba(232, 200, 154, .4), 0 1px 12px rgba(0, 0, 0, .6); }
.foot-col { display: grid; gap: 10px; align-content: start; }
.foot-col b { margin-bottom: 4px; font: 500 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.foot-col a { font-size: 14.5px; color: var(--muted); transition: color .3s; }
.foot-col a:hover { color: var(--cream); }
@media (pointer: coarse) { .foot-col { gap: 0; } .foot-col a, .foot-mark { display: flex; align-items: center; min-height: 44px; } }
.foot-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 48px; font-size: 12px; color: var(--quiet); }
@media (max-width: 980px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── Sheets: the index and the code ── */
.sheet { width: 100%; max-width: 980px; max-height: min(88dvh, 900px); margin: auto auto 0; padding: 0; border: 0; border-radius: 26px 26px 0 0; color: var(--cream);
  background: rgba(14, 11, 16, .86); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 -20px 60px rgba(0, 0, 0, .5); overflow: hidden; }
.sheet::backdrop { background: rgba(0, 0, 0, .45); }
.sheet[open] { display: flex; animation: sheet-in .45s var(--ease); }
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } }
.sheet-in { display: flex; flex-direction: column; width: 100%; max-height: inherit; padding: 0 0 var(--bottom); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px var(--gutter) 12px; }
.sheet-head h2 { margin: 0; font: 400 clamp(24px, 4vw, 34px)/1.05 var(--sans); letter-spacing: -.02em; }
.sheet-head h2 span { margin-left: 10px; font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--quiet); vertical-align: middle; }
.sheet-head h2 small { display: block; margin-bottom: 8px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.round { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; }
.round svg { width: 18px; height: 18px; }
.idx { overflow-y: auto; padding: 0 var(--gutter) 28px; overscroll-behavior: contain; }
.idx h3 { display: flex; gap: 12px; align-items: baseline; margin: 22px 0 12px; font: 500 12px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.idx h3 b { font-weight: 500; color: var(--gold); }
.idx ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 44%), 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.idx li a { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; text-align: left; background: #111; }
.idx li img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.idx li a:hover img { transform: scale(1.05); }
.idx li span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 9px; font: 400 13px/1.15 var(--sans); color: var(--cream); background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .78)); }
.idx li a[aria-current="true"] { box-shadow: 0 0 0 2px var(--gold); }
.code-note { margin: 0; padding: 0 var(--gutter) 12px; font: 300 14px/1.45 var(--sans); color: var(--muted); }
.code { flex: 1 1 auto; min-height: 0; margin: 0 var(--gutter); padding: 16px; overflow: auto; border-radius: 14px; background: rgba(0, 0, 0, .5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  font: 12px/1.6 var(--mono); color: var(--cream); white-space: pre; tab-size: 2; }
.code-do { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px var(--gutter) 18px; }
.pill { gap: 8px; height: 44px; padding: 0 20px; font: 500 14px/1 var(--sans); }
.pill:not(.gold) { background: rgba(9, 7, 6, .74); box-shadow: inset 0 0 0 1px rgba(244, 236, 225, .1); }
.pill:not(.gold):hover { background: rgba(20, 16, 13, .84); box-shadow: inset 0 0 0 1px rgba(244, 236, 225, .24); }
.pill:active, .lente:active { transform: scale(.96); }
.pill svg { width: 16px; height: 16px; }


.atlas-note { position: fixed; left: 0; right: 0; bottom: 30px; text-align: center; color: var(--muted); }

@media (min-width: 761px) { .sheet { margin: auto; border-radius: 26px; } }
@media (prefers-reduced-motion: reduce) {
  .palabra span { transform: none; transition: none; }
  .sheet[open] { animation: none; }
  .aparece { opacity: 1; translate: none; filter: none; transition: none; }
  .live.on, .poster { transition: none; }
  .lab-live i, .vp.hot { animation: none; }
  .fam-head > *, .hijo-text, .hijo .art { animation: none; }
}
