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

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

/* WoGL page styles: black and gold, Outfit for text, JetBrains Mono for code and labels. Sections after the hero are
   opaque, so the hero canvas can rest once covered (viral.js). */
:root {
  --ink: #050403; --ink-2: #0b0806; --panel: rgba(16, 12, 9, .78);
  --line: rgba(232, 200, 154, .13); --line-2: rgba(232, 200, 154, .3);
  --gold: #e8c89a; --gold-2: #d4a574; --cream: #f4ece1;
  --text: #efe6d8; --muted: rgba(239, 230, 216, .64); --quiet: rgba(239, 230, 216, .42);
  --sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif; --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  /* Spacing: one 4 px scale and the named spaces every box uses. Sizes follow the viewport width, never its height,
     so every phone keeps the same rhythm. */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --wrap: 1200px;                          /* the column */
  --gutter: clamp(16px, 3.2vw, 48px);      /* the page's one side margin: bar, tabs, sections, lesson, footer */
  --section-y: clamp(64px, 8.4vw, 120px);  /* above and below a section: twice that between two */
  --head-gap: var(--s4);                   /* a label → its title */
  --lead-gap: var(--s5);                   /* a title → its lead */
  --content-gap: clamp(32px, 4vw, 56px);   /* a section's head → what it shows */
  --card-pad: clamp(16px, 1.8vw, 24px);    /* inside a card or a panel */
  --grid-gap: clamp(12px, 1.2vw, 16px);    /* between cards */
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: #000; color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { background: #000; color: var(--text); font: 300 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
/* the house's cursor: a gem arrow, cream and champagne facets outlined in ink; over what can be pressed its facets brighten */
:root { --cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='21' viewBox='0 0 16 21'%3E%3Cpath d='M1.5 1.5L1.5 18.57L6.16 14.17z' fill='%23f8f1e6'/%3E%3Cpath d='M1.5 1.5L6.16 14.17L13.56 13.86z' fill='%23dec7b1'/%3E%3Cpath d='M1.5 1.5L6.16 14.17' stroke='%230b0a0d' stroke-opacity='.45' stroke-width='0.53'/%3E%3Cpath d='M1.5 1.5L1.5 18.57L6.16 14.17L13.56 13.86z' fill='none' stroke='%230b0a0d' stroke-width='1.61' stroke-linejoin='round'/%3E%3C/svg%3E") 1.5 1.5, auto; --cursor-toca: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='21' viewBox='0 0 16 21'%3E%3Cpath d='M1.5 1.5L1.5 18.57L6.16 14.17z' fill='%23fff8ec'/%3E%3Cpath d='M1.5 1.5L6.16 14.17L13.56 13.86z' fill='%23f0dcc6'/%3E%3Cpath d='M1.5 1.5L6.16 14.17' stroke='%230b0a0d' stroke-opacity='.45' stroke-width='0.53'/%3E%3Cpath d='M1.5 1.5L1.5 18.57L6.16 14.17L13.56 13.86z' fill='none' stroke='%230b0a0d' stroke-width='1.61' stroke-linejoin='round'/%3E%3C/svg%3E") 1.5 1.5, pointer; }
html { cursor: var(--cursor); }
:is(a[href], button, summary, label[for], select, [role="button"], [role="tab"], [role="menuitem"], [role="option"], input:is([type="range"], [type="checkbox"], [type="radio"], [type="file"], [type="color"], [type="button"], [type="submit"])):not(:disabled) { cursor: var(--cursor-toca) !important; }
input:not([type="range"], [type="checkbox"], [type="radio"], [type="file"], [type="color"], [type="button"], [type="submit"]), textarea, [contenteditable="true"] { cursor: text; }
em { font-style: normal; color: var(--gold); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), calc(100% - 2 * var(--gutter))); margin: 0 auto; }

/* Viral shows in the hero and fades out over the 220 px past its end (lava.js sets --hb); below it the lava runs
   behind the page, dimmed so the text stays clear. */
#lava { position: fixed; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; z-index: 0; opacity: .62; }
html.sin-gl #lava { background: radial-gradient(62% 52% at 28% 34%, rgba(158, 18, 10, .92), transparent 72%), radial-gradient(52% 46% at 76% 66%, rgba(128, 14, 8, .82), transparent 72%),
  radial-gradient(42% 36% at 58% 12%, rgba(96, 10, 6, .7), transparent 72%), radial-gradient(48% 40% at 18% 88%, rgba(110, 12, 8, .6), transparent 72%), #0a0203; }
html.sin-gl #gl { display: none; }
#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 var(--hb, 100vh), transparent calc(var(--hb, 100vh) + 220px));
  mask-image: linear-gradient(to bottom, #000 var(--hb, 100vh), transparent calc(var(--hb, 100vh) + 220px)); }
#veil { position: fixed; inset: 0; background: #000; z-index: 100; pointer-events: none; transition: opacity 1.4s cubic-bezier(.22, 1, .36, 1); }
#veil.lifted { opacity: 0; }
main, .foot { position: relative; z-index: 1; }

/* ── Logo (its sway never stops, including with reduced motion) ── */
@keyframes vaiven-left { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-1.23px); } }
@keyframes vaiven-right { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(1.23px); } }
.mark { font-family: var(--sans); font-weight: 300; letter-spacing: .18em; line-height: 1; color: var(--gold); display: inline-flex;
  text-shadow: 0 0 60px rgba(232, 200, 154, .45), 0 0 120px rgba(212, 165, 116, .25), 0 2px 40px rgba(0, 0, 0, .55); }
.mark span { display: inline-block; }
.mark span:nth-child(odd) { animation: vaiven-left 5s ease-in-out infinite; }
.mark span:nth-child(even) { animation: vaiven-right 5s ease-in-out infinite; }
.mark { font-size: 19px; text-shadow: 0 0 24px rgba(232, 200, 154, .4), 0 1px 12px rgba(0, 0, 0, .6); }

/* ── Buttons, labels ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 26px; border-radius: 999px;
  font: 500 14px/1 var(--sans); letter-spacing: .02em; white-space: nowrap; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s, border-color .35s, color .35s; }
/* The calls are solid keys with small corners: gold with a 68° gradient that glows underneath on hover, and dark with
   a thin edge. A call that opens the first lesson carries a play mark. */
.btn-gold, .btn-ghost { height: 42px; padding: 0 20px; border: 0; border-radius: 4px; font-size: 15px; font-weight: 500; letter-spacing: -.005em; text-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; transition: box-shadow .3s ease, background-color .3s ease, color .3s ease; }
.btn-gold, .btn-gold:hover { background: linear-gradient(68deg, #c99a63 -7%, #f3dcb6 131%); color: #170f07; box-shadow: none; transform: none; }
.btn-gold:hover { box-shadow: 0 0 0 1px rgba(243, 220, 182, .3), 0 10px 30px -6px rgba(232, 200, 154, .6); }
.btn-ghost, .btn-ghost:hover { background: rgba(9, 7, 6, .74); box-shadow: inset 0 0 0 1px rgba(244, 236, 225, .1); color: var(--cream, #f4ece1); transform: none; }
.btn-ghost:hover { background: rgba(20, 16, 13, .84); box-shadow: inset 0 0 0 1px rgba(244, 236, 225, .24); }
.btn-gold:focus-visible, .btn-ghost:focus-visible { outline: 1px solid var(--gold, #e8c89a); outline-offset: 3px; }
.btn-gold[data-href="first"] { gap: 8px; padding-left: 16px; }
.btn-gold[data-href="first"]::before { content: ''; flex: none; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 3.4v9.2a.7.7 0 0 0 1.05.6l7.3-4.6a.7.7 0 0 0 0-1.2L6.05 2.8A.7.7 0 0 0 5 3.4z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 3.4v9.2a.7.7 0 0 0 1.05.6l7.3-4.6a.7.7 0 0 0 0-1.2L6.05 2.8A.7.7 0 0 0 5 3.4z'/%3E%3C/svg%3E") center / contain no-repeat; }
.btn-sm { height: 38px; padding: 0 18px; font-size: 13px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn-gold.btn-lg[data-href="first"] { gap: 10px; padding-left: 22px; }
.kicker { font: 500 11px/1.4 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
/* The brand keeps its case inside uppercase labels: WoGL, never WOGL. */
.kicker .brand { text-transform: none; }
.link { color: var(--gold); border-bottom: 1px solid rgba(232, 200, 154, .35); padding-bottom: 2px; transition: border-color .3s; }
.link:hover { border-color: var(--gold); }

/* ── Nav: solid black with a gold hairline, also over the hero ── */
.nav { position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: 68px; display: flex; align-items: center; gap: 28px; padding: 0 var(--gutter);
  background: rgba(5, 4, 3, .995); border-bottom: 1px solid var(--line); }
/* the bar is a hair short of opaque: without a GPU, Chrome skips painting the lava under an opaque bar and drops that
   strip from the bottom of the screen instead of the top */
.nav-links { display: flex; gap: 26px; margin-right: auto; }
.nav-links a { font: 400 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.nav-links a:hover { color: var(--gold); }

/* ── Nav houses (wnav.js): each with its menu, the current one in gold. Named nav-house because .house is the home's
   house grid. The bar content aligns with the 1200 px column. ── */
.nav { padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2)); gap: 34px; }
.houses { gap: 2px; height: 100%; align-items: stretch; }
.nav-house { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 100%; padding: 0 14px; margin: 0; white-space: nowrap;
  font: 400 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.nav-house::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--gold);
  box-shadow: 0 0 12px rgba(232, 200, 154, .7); transform: scaleX(0); transition: transform .35s var(--ease); }
.nav-house .chev { flex: none; width: 9px; height: 9px; fill: none; stroke: currentColor; stroke-width: 1.5; opacity: .7; transition: transform .35s var(--ease), opacity .3s; }
.nav-house:hover, .nav-house[aria-expanded="true"] { color: var(--cream); }
.nav-house:hover .chev, .nav-house[aria-expanded="true"] .chev { opacity: 1; }
.nav-house[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-house[aria-current="page"] { color: var(--gold); }
.nav-house[aria-current="page"]::after { transform: scaleX(1); }
.mega { position: fixed; z-index: 59; top: 76px; width: max-content; min-width: 250px; max-width: min(640px, calc(100vw - 24px)); max-height: min(76vh, 640px); overflow: auto;
  padding: 16px 10px 12px; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(7, 5, 4, .92);
  backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2); box-shadow: 0 40px 80px rgba(0, 0, 0, .55);
  opacity: 0; transform: translateY(-8px); transition: opacity .22s var(--ease), transform .22s var(--ease); }
.mega.on { opacity: 1; transform: none; }
/* House panel: its links and, beside them, the live piece of the hovered link (wnav.js). */
.pop-wide { display: grid; grid-template-columns: minmax(230px, 1fr) 260px; gap: 12px; }
.pop-k { padding: 4px 12px 10px; font: 500 10px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.pop-k:not(:first-child) { margin-top: 10px; }
.pop-list { list-style: none; display: grid; gap: 1px; }
.pop-list a { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 10px; font-size: 14.5px; color: var(--cream); white-space: nowrap; transition: background .2s, color .2s; }
.pop-list a:not(:has(span)) { grid-template-columns: 1fr; }
.pop-list a span { font: 500 10.5px/1 var(--mono); color: var(--quiet); }
.pop-list a:hover, .pop-list a:focus-visible { background: rgba(232, 200, 154, .09); color: var(--gold); }
.pop-list a:hover span, .pop-list a:focus-visible span { color: var(--gold); }
.pop-foot + .pop-foot { margin-top: 0; border-top: 0; }
.pop-foot { display: block; margin: 8px 4px 2px; padding: 10px 8px 4px; border-top: 1px solid var(--line); font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.pop-prev { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #000; min-height: 220px; }
.pop-prev canvas { position: absolute; inset: 0; }
/* The museum panel: what one login opens, beside its links (the museum's sign-in card says the same), and its door. */
.pop-museum { grid-template-columns: minmax(190px, 1fr) 330px; }
.pop-gains { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(232, 200, 154, .035); }
.pop-gains .pop-k { padding: 0; }
.pop-gains-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.pop-gains-list li { position: relative; display: grid; gap: 2px; min-width: 0; padding-left: 17px; }
.pop-gains-list li::before { content: ""; position: absolute; top: 5px; left: 2px; width: 8px; height: 4px; border-bottom: 1.5px solid var(--gold); border-left: 1.5px solid var(--gold); transform: rotate(-45deg); }
.pop-gains-list b { font-weight: 500; font-size: 13.5px; line-height: 1.25; color: var(--cream); white-space: nowrap; }
.pop-gains-list span { font-size: 12px; line-height: 1.3; color: var(--quiet); white-space: nowrap; }
.pop-soon { display: inline-block; margin-right: 2px; padding: 2px 4px 1px; border: 1px solid rgba(232, 200, 154, .4); border-radius: 999px; font: 500 8.5px/1 var(--mono); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); vertical-align: 1px; }
.pop-go { align-self: flex-start; margin-top: 2px; padding: 11px 16px; border-radius: 12px; background: var(--cream); color: #15110d; font-size: 14px; font-weight: 500; line-height: 1; transition: background .2s; }
.pop-go:hover, .pop-go:focus-visible { background: #fff; }
.pop-prev img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s var(--ease); }
.pop-prev img.on { opacity: 1; }
/* A cover keeps its own proportion (543 × 640), so the whole piece shows; the list beside it may run longer. */
.pop-cover { align-self: start; aspect-ratio: 543 / 640; min-height: 0; }
/* The phone sheet's lists. */
.mg-go { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13.5px; color: var(--cream); transition: border-color .3s, color .3s; }
.mg-go b { font-weight: 400; color: var(--gold); margin: 0 4px; }
.mg-go:hover { border-color: var(--gold); }
.mg-lessons { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
.mg-lessons a { display: grid; grid-template-columns: 30px 1fr; align-items: center; padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--cream); transition: background .25s, color .25s; }
.mg-lessons span { font: 500 11px/1 var(--mono); color: var(--quiet); }
.mg-lessons a:hover { background: rgba(232, 200, 154, .08); color: var(--gold); }
.mg-k { font: 500 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }

/* Account: an icon until signed in, then the avatar and the name. */
#account { position: relative; display: inline-flex; }
.acct { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--gold); transition: border-color .3s, background .3s; }
.acct svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.acct:hover { border-color: var(--gold); background: rgba(232, 200, 154, .08); }
.acct.in { width: auto; display: inline-flex; gap: 9px; padding: 0 14px 0 4px; border-radius: 999px; font-size: 13px; color: var(--cream); }
/* the traveler signed in at the museum: ship and name (wnav.js · traveler) */
.acct-ship { flex: none; width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .3) inset; }
.acct-name { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av { flex: none; display: inline-grid; place-items: center; border-radius: 50%; font: 500 13px/1 var(--sans); color: #160f0a;
  background: radial-gradient(circle at 32% 28%, hsl(var(--h, 38) 70% 82%), hsl(var(--h, 38) 55% 52%) 55%, hsl(var(--h, 38) 60% 22%)); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.av-sm { width: 26px; height: 26px; font-size: 12px; }
.menu-btn { display: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); place-items: center; align-content: center; gap: 5px; }
.menu-btn i { display: block; width: 16px; height: 1.5px; background: var(--gold); border-radius: 2px; }
/* a finger needs 44 px: the bar's small marks keep their look and gain an invisible margin to be touched */
.nav-logo, .acct, .menu-btn { position: relative; }
.nav-logo::after, .acct::after, .menu-btn::after, .nav-atlas::after { content: ''; position: absolute; inset: -4px; border-radius: 999px; }
.nav-logo::after { inset: -12px -8px; }
.nav-atlas::after { inset: -6px 0; }

/* Houses on phones: the whole screen in dark glass, each house a big word in Outfit 800 like the pages' giant words.
   The words rise one after another as it opens; a word opens its links under it and closes the one that was open. */
.msheet { margin: 0; width: 100%; max-width: none; height: 100%; max-height: none; padding: 0; border: 0; border-radius: 0; background: rgba(6, 5, 4, .95);
  -webkit-backdrop-filter: blur(28px) saturate(1.2); backdrop-filter: blur(28px) saturate(1.2); color: var(--text); overflow: auto; overscroll-behavior: contain; }
.msheet::backdrop { background: transparent; }
.msheet[open] { animation: mx-in .3s var(--ease); }
@keyframes mx-in { from { opacity: 0; } }
/* the classroom's drawer (clase.css) rises with this one */
@keyframes drawer { from { transform: translateY(40px); opacity: 0; } }
.mx { min-height: 100%; display: flex; flex-direction: column; padding: 0 var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px)); }
.mx:focus { outline: none; }
.mx-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; height: 60px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); background: #060504; }
.mx-head::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 24px; background: linear-gradient(#060504, rgba(6, 5, 4, 0)); pointer-events: none; }
.mx-close { display: grid; place-items: center; width: 40px; height: 40px; margin-right: -8px; color: var(--gold); }
.mx-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.mx-list { margin: 8px 0 28px; }
.mx-item { border-bottom: 1px solid var(--line); }
.mx-word { display: flex; align-items: center; gap: 12px; width: 100%; padding: 18px 0 16px; text-align: left; color: var(--cream); }
.mx-word small { flex: none; align-self: flex-start; width: 20px; padding-top: 4px; font: 500 11px/1 var(--mono); letter-spacing: .04em; color: var(--gold); }
.mx-word > span { flex: 1; min-width: 0; overflow: hidden; padding-top: .14em; font: 800 clamp(40px, 12.4vw, 68px)/.86 var(--sans); letter-spacing: -.025em; text-transform: uppercase; }
.mx-word > span > span { display: inline-block; padding-right: .06em; }
.msheet[open] .mx-word > span > span { animation: mx-sube .8s var(--ease) both; animation-delay: calc(60ms + var(--k, 0) * 55ms); }
@keyframes mx-sube { from { transform: translateY(110%); } }
.mx-item.abierto .mx-word > span > span { color: transparent; -webkit-text-fill-color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(100deg, #d9b47e 0%, #f3dcb6 40%, #fff7e8 52%, #f3dcb6 64%, #d9b47e 100%); }
.mx-word i { position: relative; flex: none; width: 22px; height: 22px; transition: transform .45s var(--ease); }
.mx-word i::before, .mx-word i::after { content: ''; position: absolute; left: 3px; right: 3px; top: 50%; height: 1.5px; margin-top: -.75px; border-radius: 2px; background: var(--gold); }
.mx-word i::after { transform: rotate(90deg); }
.mx-item.abierto .mx-word i { transform: rotate(135deg); }
.mx-word i.mx-go::before { left: 2px; right: 2px; }
.mx-word i.mx-go::after { left: auto; right: 3px; width: 9px; height: 9px; margin-top: -5px; border-radius: 0; background: none; border-top: 1.5px solid var(--gold); border-right: 1.5px solid var(--gold); transform: rotate(45deg); }
.mx-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.mx-item.abierto .mx-panel { grid-template-rows: 1fr; }
.mx-panel-in { min-height: 0; overflow: hidden; padding-left: 32px; }
.mx-panel-in > :last-child { margin-bottom: 24px; }
/* a link: its name, its number (or an arrow) to the right, a hairline under it */
.mx-line { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 13px 0 12px; border-bottom: 1px solid rgba(232, 200, 154, .1); }
.mx-line b { font: 500 21px/1.18 var(--sans); letter-spacing: -.015em; color: var(--cream); transition: color .25s; }
.mx-line small { flex: none; font: 500 11px/1 var(--mono); letter-spacing: .04em; color: var(--gold); opacity: .8; }
.mx-line:hover b, .mx-line:active b { color: var(--gold); }
.mx-line small.go { font: 400 18px/1 var(--sans); letter-spacing: 0; opacity: 1; }
.mx-nota { padding-top: 14px; font: 300 13px/1.55 var(--sans); color: var(--muted); }
/* the rooms as a row of their covers that slides sideways, out to the screen's edge */
.mx-reel { display: flex; gap: 10px; margin: 14px calc(-1 * var(--gutter)) 0 0; padding-right: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.mx-reel::-webkit-scrollbar { display: none; }
.mx-card { position: relative; isolation: isolate; flex: 0 0 min(58vw, 240px); aspect-ratio: 543 / 640; border-radius: 14px; overflow: hidden; scroll-snap-align: start; background: #0b0908; transition: transform .2s; }
.mx-card img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.mx-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(5, 4, 3, .92), rgba(5, 4, 3, .12) 55%, rgba(5, 4, 3, 0)); }
.mx-card span { position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; gap: 6px; }
.mx-card b { font: 800 22px/.95 var(--sans); letter-spacing: -.02em; text-transform: uppercase; color: var(--cream); }
.mx-card i { font: 300 12.5px/1.3 var(--sans); font-style: normal; color: var(--muted); }
.mx-card:active { transform: scale(.97); }
/* what opens comes in line by line */
.mx-item.abierto :is(.mx-line, .mx-card, .mx-nota) { animation: mx-pieza .55s var(--ease) both; animation-delay: calc(100ms + var(--i, 0) * 35ms); }
@keyframes mx-pieza { from { opacity: 0; transform: translateY(12px); } }
.mx-cta { display: flex; align-items: center; justify-content: center; height: 52px; margin-top: auto; border-radius: 999px; font: 500 15px/1 var(--sans); color: #1a1208;
  background: linear-gradient(160deg, #f6dfb3, #e8c89a 55%, #cfa56e); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 12px 32px rgba(232, 200, 154, .2); }
@media (prefers-reduced-motion: reduce) { .msheet[open], .msheet[open] .mx-word > span > span, .mx-item.abierto :is(.mx-line, .mx-card, .mx-nota) { animation: none; } .mx-panel, .mx-word i { transition: none; } }
.nav-end { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-atlas { position: relative; display: inline-flex; align-items: center; height: 34px; padding: 0 6px; font: 400 12px/1 var(--mono); letter-spacing: .14em; white-space: nowrap; color: var(--gold); }
@media (min-width: 981px) { .nav-atlas { display: none; } }
.lang { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-2);
  font: 400 11px/1 var(--mono); letter-spacing: .08em; color: var(--quiet); transition: border-color .3s; }
.lang:hover { border-color: var(--gold); }
.lang b { color: var(--gold); font-weight: 500; }
.lang svg { width: 15px; height: 15px; fill: none; stroke: var(--gold); stroke-width: 1.3; }

/* ── Hero: one screen. Viral runs behind; a soft veil keeps the text legible. The title reveals word by word and its
   gold line carries a light sweep every 9 s. ── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: var(--s9) 0 var(--s10); overflow: hidden; }
/* The veil fades toward the hero's end, so no edge shows where the hero meets the page. */
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 4, 3, .78) 0%, rgba(5, 4, 3, .5) 38%, rgba(5, 4, 3, .08) 70%, rgba(5, 4, 3, 0));
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 96%); mask-image: linear-gradient(to bottom, #000 50%, transparent 96%); }
.hero-in { position: relative; z-index: 2; display: grid; }
/* The hero's two faces share one place; the one on shows, the other waits in a blur. */
.slide { grid-area: 1 / 1; opacity: 0; filter: blur(14px); transform: translateY(16px); pointer-events: none;
  transition: opacity .9s var(--ease), filter .9s var(--ease), transform .9s var(--ease); }
.slide.on { opacity: 1; filter: none; transform: none; pointer-events: auto; }
/* Hero label in Outfit with the logo's letter spacing. */
.hero-kicker { text-transform: none; font: 400 16px/1.4 var(--sans); letter-spacing: .18em; opacity: 0; animation: rise .9s var(--ease) .1s forwards; }
.hero-line { margin-top: var(--s5); font: 400 clamp(44px, 6.6vw, 104px)/.98 var(--sans); letter-spacing: -.035em; color: var(--cream);
  text-shadow: 0 2px 40px rgba(0, 0, 0, .45); }
.hero-line em { color: var(--gold);
  background: linear-gradient(100deg, var(--gold) 0 40%, #fff4e2 50%, var(--gold) 60% 100%) 100% 0 / 300% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: hero-sweep 9s 2.4s infinite cubic-bezier(.45, 0, .55, 1); }
/* The swapping word, in gold: the words share one place; the visible one shows, the others wait blurred (fx.js · makeSwap). */
.hero-line .swap { position: relative; display: inline-grid; transition: width .6s var(--ease); }
/* On a phone the word takes its own line, so a long word never pushes the line into a new break. */
/* The word already ends its own line there, so the break written after it would leave an empty line. */
@media (max-width: 640px) { .hero-line .swap { display: grid; width: auto !important; } .hero-line .after-swap { display: none; } }
.hero-line .sw { grid-area: 1 / 1; white-space: nowrap; color: var(--gold); opacity: 0; filter: blur(10px); transform: translateY(.18em);
  transition: opacity .7s var(--ease), filter .7s var(--ease), transform .7s var(--ease); }
.hero-line .sw.on { opacity: 1; filter: none; transform: none; }
/* The museum section title swaps its word the same way (museum-showcase.js). */
#adH .swap { position: relative; display: inline-grid; vertical-align: top; transition: width .6s var(--ease); }
#adH .sw { grid-area: 1 / 1; white-space: nowrap; opacity: 0; filter: blur(10px); transform: translateY(.18em);
  transition: opacity .7s var(--ease), filter .7s var(--ease), transform .7s var(--ease); }
#adH .sw.on { opacity: 1; filter: none; transform: none; }
@keyframes hero-sweep { 0% { background-position: 100% 0; } 28%, 100% { background-position: 0 0; } }
.hero-cta { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s7); opacity: 0; animation: rise 1s var(--ease) .9s forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.placard { position: absolute; z-index: 3; bottom: 33px; left: 33px; pointer-events: none; opacity: 0; animation: rise .8s ease-out .4s forwards; }
.placard-title { font: 300 11px/1 var(--sans); letter-spacing: .11em; color: rgba(248, 222, 176, 1);
  text-shadow: 0 0 10px rgba(232, 200, 154, .9), 0 0 24px rgba(232, 200, 154, .45), 0 1px 3px rgba(0, 0, 0, .99); }
/* Placard: category above, name below. */
.placard-section { font: 400 9px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: rgba(232, 200, 154, .7); margin-bottom: 10px; }
.scroll-cue { position: absolute; z-index: 3; right: 33px; bottom: 30px; width: 22px; height: 54px; display: grid; justify-items: center; }
.scroll-cue::after { content: ''; position: absolute; inset: -6px -11px; }
.scroll-cue::before { content: ''; width: 1px; height: 100%; background: linear-gradient(var(--line-2), transparent); }
.scroll-cue i { position: absolute; top: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(48px); opacity: 0; } }

/* ── Sections ── */
.section { padding: var(--section-y) 0; }
.section h2, .show-h2 { font: 300 clamp(40px, 5.2vw, 76px)/1.02 var(--sans); letter-spacing: -.025em; color: var(--cream); margin-top: var(--head-gap); }
.lead { max-width: 640px; margin-top: var(--lead-gap); font-size: 18px; line-height: 1.6; color: var(--muted); }

/* Words come in one by one; blocks come up out of a blur. */
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js [data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease) calc(var(--i) * 55ms); }
.js [data-split].in .w > span { transform: none; }
.js .rv { opacity: 0; transform: translateY(20px); filter: blur(8px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
.js .rv.in { opacity: 1; transform: none; filter: none; }

/* The gold beam running a panel's edge. */
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.beam { position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--a), transparent 0 64%, rgba(232, 200, 154, .0) 66%, rgba(232, 200, 154, .95) 76%, rgba(255, 238, 210, 1) 78%, transparent 88%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 7s linear infinite; }
@keyframes spin { to { --a: 360deg; } }

/* A card's edge lights up where the pointer is. */
.glow { position: relative; }
.glow::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(232, 200, 154, .11), transparent 62%); }
.glow:hover::after { opacity: 1; }

/* ── Academy, live: the stage stays while the page scrolls through four steps ── */
.show { position: relative; height: calc(100svh + 4 * 72svh); }
/* The pinned frame starts right under the nav with a section's usual spacing, not centred in the viewport. */
.show-pin { --air: clamp(28px, 5vh, 56px); position: sticky; top: 0; height: 100svh; display: flex; align-items: flex-start; overflow: hidden; }
.show-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding-top: calc(68px + var(--air)); }
.show-h2 { font-size: clamp(30px, 3.2vw, 46px); margin-top: 14px; }
.steps { position: relative; min-height: 300px; margin-top: 40px; }
.step { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(14px); filter: blur(8px); pointer-events: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease); }
.step.on { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.step-t { font: 300 clamp(30px, 3.1vw, 48px)/1.06 var(--sans); letter-spacing: -.02em; color: var(--cream); }
/* The museum section keeps one heading per level: the section title, then each step's title; the first step is one
   line and its ships. */
#adentro .step-t { font-size: clamp(26px, 2.3vw, 34px); line-height: 1.1; }
.step-lead { margin-top: var(--s4); max-width: 30em; font-size: 17px; line-height: 1.55; color: var(--muted); }
.step ul { list-style: none; margin-top: var(--s5); display: grid; gap: var(--s3); }
.step li { display: flex; align-items: center; gap: 12px; font-size: 17px; color: var(--muted); }
.step li i { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(232, 200, 154, .5); background: rgba(232, 200, 154, .12); position: relative; }
.step li i::after { content: ''; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px; border: solid var(--gold); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.step-cta { margin-top: var(--s5); }
.ticks { display: flex; gap: 10px; margin-top: 8px; }
.ticks button { width: 44px; height: 24px; display: grid; align-items: center; }
.ticks i { display: block; height: 2px; border-radius: 2px; background: var(--line-2); transition: background .4s, transform .4s; transform-origin: left; }
.ticks button.on i { background: var(--gold); box-shadow: 0 0 12px rgba(232, 200, 154, .6); }
.stage { position: relative; height: min(calc(100svh - 68px - 2 * var(--air)), 700px); }
.dev-slot { position: absolute; inset: 0; perspective: 1800px; opacity: 0; filter: blur(14px); transform: scale(.965); pointer-events: none;
  transition: opacity .8s var(--ease), filter .8s var(--ease), transform .8s var(--ease); }
/* Only the device in front takes the pointer: its holders let it through, since a device turned in 3D sits partly
   behind their flat plane and would lose the click there. */
.dev-slot.on { opacity: 1; filter: none; transform: none; }
.dev-slot.on .dev { pointer-events: auto; }
.dev-fit { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(var(--s, 1)); transform-style: preserve-3d; }
.dev { position: relative; transform: rotateY(-8deg) rotateX(3deg); transform-style: preserve-3d; transition: transform .25s linear; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(239, 230, 216, .16); }
.pill { font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; }
.live-tag { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px;
  background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cream); }
.live-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
canvas { display: block; width: 100%; height: 100%; background: #000; }

/* The laptop: the lesson, its code beside its light. */
.dev-laptop .lid { position: relative; width: 880px; height: 534px; padding: 14px; border-radius: 20px; background: linear-gradient(160deg, #1a1511, #0b0907);
  border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 70px 140px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 0, 0, .6); }
.dev-laptop .deck { width: 1000px; height: 26px; margin: 0 0 0 -60px; border-radius: 4px 4px 22px 22px; background: linear-gradient(#2a221b, #120e0b 70%);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .6); position: relative; }
.dev-laptop .deck::after { content: ''; position: absolute; left: 50%; top: 0; width: 140px; height: 8px; transform: translateX(-50%); border-radius: 0 0 10px 10px; background: rgba(0, 0, 0, .45); }
.scr { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 9px; background: #070605; }
.lui { display: grid; grid-template-rows: 44px 1fr; height: 100%; }
.lui-bar { display: flex; align-items: center; gap: 16px; padding: 0 16px; border-bottom: 1px solid var(--line); background: #0b0907; }
.crumb { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--quiet); margin-right: auto; }
.crumb b { color: var(--cream); font-weight: 400; } .crumb i { font-style: normal; color: var(--gold); }
.lui-body { display: grid; grid-template-columns: 1.32fr 1fr; min-height: 0; }
.lui-view { position: relative; border-left: 1px solid var(--line); }
.code { font: 400 11px/1.75 var(--mono); color: #c7b8a5; padding: 18px 18px; white-space: pre; overflow: hidden; tab-size: 2; }
.code .kw { font-style: normal; color: var(--gold); } .code .fn { font-style: normal; color: var(--cream); } .code .bi { font-style: normal; color: #a99780; }
.code .num { font-weight: 500; color: #ffe2b4; background: rgba(232, 200, 154, .14); border-radius: 3px; padding: 0 3px; position: relative; }
.code .num.hot { animation: hot .6s var(--ease); }
@keyframes hot { 0% { background: rgba(255, 226, 180, .6); color: #1b130c; } 100% { background: rgba(232, 200, 154, .14); } }
.code .num.caret::after { content: ''; position: absolute; right: -3px; top: 2px; bottom: 2px; width: 1.5px; background: var(--gold); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* The phone: the light on top, its sliders under the finger. */
.phone-body { position: relative; width: 330px; height: 680px; padding: 12px; border-radius: 54px; background: linear-gradient(160deg, #221b15, #0b0907);
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 60px 120px rgba(0, 0, 0, .7), inset 0 0 0 2px rgba(0, 0, 0, .5); }
.phone-body .scr { border-radius: 42px; }
.island { position: absolute; z-index: 3; left: 50%; top: 12px; width: 98px; height: 28px; transform: translateX(-50%); border-radius: 20px; background: #000; }
.pui { position: relative; padding: 54px 18px 20px; height: 100%; }
.pui-view { position: relative; height: 300px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); }
.pui-crumb { margin-top: 18px; font: 500 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.pui-title { margin-top: 8px; font: 300 26px/1.1 var(--sans); color: var(--cream); }
.pui-sliders { margin-top: 18px; display: grid; gap: 18px; }
.ps-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.ps-top b { font: 500 12px/1.4 var(--mono); color: var(--gold); }
.ps-track { position: relative; height: 4px; margin-top: 10px; border-radius: 4px; background: rgba(232, 200, 154, .16); }
.ps-track i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--f) * 100%); border-radius: inherit; background: var(--gold); }
.ps-thumb { position: absolute; top: 50%; left: calc(var(--f) * 100%); width: 20px; height: 20px; margin: -10px 0 0 -10px; 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); }
.finger { position: absolute; left: 0; top: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, .42), rgba(255, 255, 255, .08) 70%); border: 1px solid rgba(255, 255, 255, .55); transition: opacity .2s; }

/* The browser: the real lesson, framed and scaled into the window. */
.win { width: 820px; height: 540px; border-radius: 16px; overflow: hidden; background: #0a0807; border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 70px 140px rgba(0, 0, 0, .7); display: grid; grid-template-rows: 42px 1fr; }
.win-bar { display: flex; align-items: center; gap: 18px; padding: 0 16px; background: #120e0b; border-bottom: 1px solid var(--line); }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 8px; background: rgba(232, 200, 154, .08); font-size: 12px; color: var(--cream); }
.tab i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.bui-h { font: 500 10px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.bui-frame { position: relative; overflow: hidden; background: var(--ink); }
.bui-frame iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 778px; border: 0; transform: scale(.640625); transform-origin: 0 0; pointer-events: none; }
/* wogl.io's browser: a lesson drawn by the page itself, the wave on top and its code below. */
.bui-lesson { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; background: var(--ink); }
.bui-view { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.bui-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bui-code { margin: 0; padding: 16px 22px 18px; font-size: 12px; line-height: 1.6; }

/* The tablet: four pieces from the sections, running. */
.tab-body { width: 720px; height: 520px; padding: 14px; border-radius: 32px; background: linear-gradient(160deg, #1d1712, #0b0907);
  border: 1px solid rgba(255, 255, 255, .09); box-shadow: 0 70px 140px rgba(0, 0, 0, .7); }
.tab-body .scr { border-radius: 20px; }
.tui { padding: 20px; height: 100%; display: grid; grid-template-rows: auto 1fr; }
.tui-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; min-height: 0; }
/* Each piece opens its lesson: its name below, its button on top that lights up under the pointer. */
.piece { position: relative; display: block; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); transition: border-color .4s, box-shadow .4s; }
.piece:hover { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(232, 200, 154, .35), 0 18px 50px rgba(0, 0, 0, .5); }
.piece-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 14px; display: flex; gap: 10px; align-items: baseline;
  font-size: 15px; color: var(--cream); background: linear-gradient(transparent, rgba(0, 0, 0, .78)); }
.piece-cap b { font: 500 12px/1 var(--mono); color: var(--gold); }
.piece-cta { position: absolute; top: 12px; right: 12px; padding: 8px 13px; border-radius: 999px; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--cream); background: rgba(0, 0, 0, .5); border: 1px solid var(--line-2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .35s, color .35s, border-color .35s; }
.piece:hover .piece-cta { background: linear-gradient(180deg, #f3dcb6, #d7ad78); color: #1b130c; border-color: transparent; }

/* ── Try it ── */
.try { position: relative; margin-top: var(--content-gap); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); border-radius: 24px;
  border: 1px solid var(--line); background: var(--panel); overflow: hidden; box-shadow: 0 50px 120px rgba(0, 0, 0, .5); }
.try-code { border-right: 1px solid var(--line); min-width: 0; }
.code-head { display: flex; align-items: center; gap: var(--s4); height: 44px; padding: 0 var(--card-pad); border-bottom: 1px solid var(--line); font: 400 11px/1 var(--mono); color: var(--quiet); }
.try .code { font-size: 13.5px; padding: var(--card-pad); overflow-x: auto; }
.try-view { position: relative; min-height: 440px; }
.try-view canvas { position: absolute; inset: 0; }
.try-controls { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: var(--s6); align-items: end; padding: var(--card-pad); border-top: 1px solid var(--line); }
.ctl { display: grid; gap: 12px; }
.ctl > span { display: flex; justify-content: space-between; font: 400 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ctl b { color: var(--gold); font-weight: 500; letter-spacing: .02em; }
.ctl input { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; cursor: pointer;
  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; 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); }
.try-more { margin-top: var(--s5); font-size: 15px; }

/* ── Sections ── */
.cat { margin-top: var(--content-gap); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); }
.sec { display: grid; grid-template-rows: auto 1fr auto; text-align: left; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); overflow: hidden;
  transition: border-color .4s, transform .5s var(--ease), opacity .9s var(--ease), filter .9s var(--ease); }
.sec:hover { border-color: var(--line-2); transform: translateY(-3px); }
.js .sec:not(.in) { opacity: 0; transform: translateY(24px); filter: blur(8px); }
.js .sec.in { transition-delay: calc(var(--i) * 90ms); }
.sec-art { aspect-ratio: 16 / 10; display: block; border-bottom: 1px solid var(--line); background: #000; }
/* The last section, when it sits alone in its row of three (the Solar System, the tenth), closes the grid across its
   whole width: its piece on the left, its words on the right. Two columns wide (tablet) it is one more card. */
.cat .sec:last-child:nth-child(3n+1) { grid-column: 1 / -1; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: 1fr auto; }
.cat .sec:last-child:nth-child(3n+1) .sec-art { grid-row: 1 / 3; aspect-ratio: auto; min-height: 260px; border-bottom: 0; border-right: 1px solid var(--line); }
.cat .sec:last-child:nth-child(3n+1) .sec-txt { align-content: center; padding: var(--s6) var(--s6) var(--s1); }
.sec-txt { display: grid; gap: var(--s2); padding: var(--card-pad) var(--card-pad) var(--s1); }
.sec-txt small { font: 500 11px/1 var(--mono); letter-spacing: .14em; color: var(--gold); }
.sec-txt b { font: 400 21px/1.2 var(--sans); color: var(--cream); }
.sec-txt span { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.sec-open { display: flex; justify-content: space-between; padding: var(--s3) var(--card-pad) var(--card-pad); font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.sec-open i { font-style: normal; transition: transform .4s var(--ease); }
.sec:hover .sec-open i { transform: translateX(5px); }

/* A section's lessons, in a sheet over the page. */
.sheet { margin: auto; width: min(1000px, calc(100% - 2 * var(--gutter))); max-height: min(88svh, 760px); padding: 0; border-radius: 26px; border: 1px solid var(--line-2);
  background: #0a0807; color: var(--text); overflow: hidden; box-shadow: 0 60px 160px rgba(0, 0, 0, .8); }
.sheet[open] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); animation: sheet .55s var(--ease); }
.sheet::backdrop { background: rgba(0, 0, 0, .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@keyframes sheet { from { opacity: 0; transform: translateY(18px) scale(.985); filter: blur(6px); } }
.sheet-art { position: relative; min-height: 320px; border-right: 1px solid var(--line); }
.sheet-art canvas { position: absolute; inset: 0; }
.sheet-body { padding: var(--s7) var(--s7) var(--s6); overflow: auto; }
.sheet-body h3 { margin-top: 12px; font: 300 clamp(28px, 3vw, 40px)/1.05 var(--sans); letter-spacing: -.02em; color: var(--cream); }
.sheet-entry { margin-top: 12px; color: var(--muted); font-size: 15.5px; }
.sheet-list { list-style: none; margin: 24px 0 28px; border-top: 1px solid var(--line); }
.sheet-list a { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--cream); transition: color .3s, padding .3s var(--ease); }
.sheet-list a:hover { color: var(--gold); padding-left: 8px; }
.sheet-list .n { font: 500 11px/1 var(--mono); color: var(--gold); }
.sheet-list i { font-style: normal; color: var(--gold); opacity: 0; transition: opacity .3s; }
.sheet-list a:hover i { opacity: 1; }
.sheet-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(0, 0, 0, .45); }
.sheet-close svg { width: 16px; height: 16px; fill: none; stroke: var(--cream); stroke-width: 1.5; }

/* ── The house ── */
.house { margin-top: var(--content-gap); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: var(--grid-gap); }
.hcard { display: flex; flex-direction: column; gap: var(--s3); min-height: 240px; padding: var(--card-pad); border-radius: 20px; border: 1px solid var(--line); background: var(--panel);
  transition: border-color .4s, transform .5s var(--ease), opacity .9s var(--ease), filter .9s var(--ease); }
.hcard:hover { border-color: var(--line-2); transform: translateY(-3px); }
.js .hcard:not(.in) { opacity: 0; transform: translateY(24px); filter: blur(8px); }
.js .hcard.in { transition-delay: calc(var(--i) * 90ms); }
.hcard small { font: 500 11px/1 var(--mono); color: var(--gold); letter-spacing: .14em; }
.hcard b { margin-top: auto; font: 300 30px/1.05 var(--sans); color: var(--cream); }
.hcard span { color: var(--muted); font-size: 15px; }
.hcard i { font: 400 11px/1 var(--mono); font-style: normal; letter-spacing: .06em; color: var(--gold); }

/* ── Questions ── */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(var(--s6), 6vw, var(--s9)); align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s5); padding: var(--s5) 0; cursor: pointer; font-size: 19px; color: var(--cream); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; position: relative; width: 14px; height: 14px; }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--gold); transition: transform .4s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq details p { padding: 0 0 var(--s5); color: var(--muted); font-size: 16.5px; max-width: 560px; }

/* ── The first lesson ── */
.closing { text-align: center; }
.end-h2 { font-size: clamp(46px, 6.4vw, 96px) !important; }
.closing .btn { margin-top: var(--content-gap); }

/* ── Footer ── */
.foot { background: rgba(5, 4, 3, .55); border-top: 1px solid var(--line); padding: var(--s8) 0 var(--s6); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: var(--s6); }
.foot-col { display: grid; gap: 10px; align-content: start; }
.foot-col b { font: 500 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.foot-col a, #footHouse a { display: block; min-height: 24px; font-size: 14.5px; color: var(--muted); transition: color .3s; }
#footHouse { display: grid; gap: 10px; }
.foot-col a:hover { color: var(--cream); }
@media (pointer: coarse) { .foot-col { gap: 0; } .foot-col a, #footHouse a { display: flex; align-items: center; min-height: 44px; } }
.foot-line { display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-top: var(--s7); font-size: 12px; color: var(--muted); }

/* ── Narrower ── */
@media (max-width: 1080px) {
  .house { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* an odd last card (Academy's three: Academy, Museum, 3D Studio) takes the whole row instead of half of it */
  .house .hcard:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .cat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat .sec:last-child:nth-child(3n+1) { grid-column: auto; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; }
  .cat .sec:last-child:nth-child(3n+1) .sec-art { grid-row: auto; aspect-ratio: 16 / 10; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .cat .sec:last-child:nth-child(3n+1) .sec-txt { padding: var(--card-pad) var(--card-pad) var(--s1); }
}
/* five houses on a medium screen: a little less room around each, so the bar keeps its right side */
@media (max-width: 1120px) { .nav-house { padding: 0 10px; } .nav-house::after { left: 10px; right: 10px; } }
@media (max-width: 980px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-grid; }
  .acct.in .acct-name { display: none; }
  .acct.in { padding: 0 5px; }
  .show-pin { align-items: stretch; }
  .show-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 8px; padding: 76px 0 24px; height: 100%; }
  .stage { order: -1; height: 100%; min-height: 0; }
  .show-copy .kicker, .show-h2 { display: none; }
  .steps { min-height: 210px; margin-top: 0; }
  .step-t { font-size: clamp(28px, 6.6vw, 38px); }
  .step ul { margin-top: 14px; gap: 8px; }
  .step li { font-size: 15px; }
  /* the phone already says "Your ship": the swatches drop their label and sit closer to the text */
  .skin-pick { margin-top: 0; }
  .try { grid-template-columns: minmax(0, 1fr); }
  /* On phones the sliders sit right under the canvas they move and the code comes after, so the preview stays in view
     while a finger moves them. */
  .try-view { order: -1; min-height: 300px; border-bottom: 1px solid var(--line); }
  .try-controls { order: 0; grid-template-columns: minmax(0, 1fr); gap: var(--s5); border-top: 0; border-bottom: 1px solid var(--line); }
  .try-code { order: 1; border-right: 0; }
  .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .sheet[open] { grid-template-columns: minmax(0, 1fr); grid-template-rows: 200px minmax(0, 1fr); }
  .sheet-art { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .sheet-body { padding: var(--s6) var(--s5) var(--s5); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .nav { gap: 10px; height: 60px; }
  .nav-end { gap: 8px; }
  .nav-end .btn-sm { padding: 0 14px; font-size: 12px; height: 34px; }
  .lang { padding: 0 9px; }
  .lang #langLabel { display: none; }
  .cat, .house { grid-template-columns: minmax(0, 1fr); }
  /* On phones the sections read as a list: a small live piece on the left, the text beside it. Each card takes a sixth
     of the screen, leaving room to scroll past the catalogue. */
  .cat .sec, .cat .sec:last-child:nth-child(3n+1) { grid-column: auto; grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: 1fr auto; border-radius: 18px; }
  .cat .sec .sec-art, .cat .sec:last-child:nth-child(3n+1) .sec-art { position: relative; grid-row: 1 / 3; aspect-ratio: auto; min-height: 0; border-bottom: 0; border-right: 1px solid var(--line); }
  .cat .sec-art canvas { position: absolute; inset: 0; }
  .cat .sec .sec-txt, .cat .sec:last-child:nth-child(3n+1) .sec-txt { align-content: start; gap: var(--s1); padding: var(--s3) var(--s4) 0; }
  .sec-txt b { font-size: 17px; }
  .sec-txt span { font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .sec-open { padding: var(--s2) var(--s4) var(--s3); font-size: 10px; }
  .placard { display: none; }
  .scroll-cue { right: var(--gutter); }
  .hero-cta .btn { flex: 1 1 100%; }
  .btn-gold:not(.btn-sm, .btn-lg), .btn-ghost:not(.btn-sm, .btn-lg) { height: 46px; }
  .try .code { font-size: 11px; }
  .lead { font-size: 16.5px; }
  .hcard { min-height: 0; }
}
@media (max-height: 700px) and (max-width: 980px) { .step ul, .step-lead { display: none; } .steps { min-height: 120px; } }
@media (max-height: 700px) { .hero { padding: 84px 0 56px; } .hero-cta { margin-top: 32px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-split] .w > span, .js .rv, .js .sec, .js .hcard { transform: none !important; filter: none !important; opacity: 1 !important; transition: none !important; }
  .step, .dev-slot { transition: none; filter: none; transform: none; }
  .beam, .scroll-cue i, .live-tag i { animation: none; }
  .placard, .hero-kicker, .hero-cta { animation: none; opacity: 1; }
  .hero-line em { animation: none; }
}
.ms-hint { width: 100%; text-align: left; }
/* The door is not modal: it sits over the blurred page, under the bar and its menus. */
.acct-sheet[data-mode="door"] { position: fixed; inset: 0; z-index: 50; height: fit-content; max-height: calc(100svh - 96px); margin: auto; margin-top: max(84px, calc(50svh - 300px)); overflow: auto; }

/* ── WoGL PRO: what the account includes, and the error demo (home.js · proDemo) ── */
.pro-home { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.pro-items { list-style: none; margin-top: 28px; display: grid; gap: 12px; }
.pro-items li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.45; color: var(--text); }
.pro-items li i { flex: none; position: relative; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; border: 1px solid rgba(232, 200, 154, .5); background: rgba(232, 200, 154, .12); }
.pro-items li i::after { content: ''; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px; border: solid var(--gold); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.pro-cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.pro-fine { margin-top: 16px; font: 400 12px/1.5 var(--mono); color: var(--quiet); }

.pdemo { position: relative; }
.pd-win { position: relative; height: 540px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); background: #0a0807; box-shadow: 0 60px 140px rgba(0, 0, 0, .6); display: grid; grid-template-rows: 44px 1fr; }
.pd-bar { display: flex; align-items: center; gap: 16px; padding: 0 16px; border-bottom: 1px solid var(--line); background: #110d0a; font: 400 11px/1 var(--mono); color: var(--quiet); }
.pd-status { margin-left: auto; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(140, 220, 160, .35); color: #9fe0b0; font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; transition: color .3s, border-color .3s, background .3s; }
.pd-status.bad { color: #ffb3a3; border-color: rgba(255, 120, 100, .5); background: rgba(120, 30, 20, .3); }
/* zoom toward the error and the explanation, anchored bottom left; text keeps a right margin to fit when scaled */
.pd-clip { position: relative; overflow: hidden; min-height: 0; }
.pd-zoom { position: absolute; inset: 0; display: flex; flex-direction: column; transform-origin: 0 100%; transition: transform 1.2s var(--ease); }
.pdemo.zoom .pd-zoom { transform: scale(1.2); }
.pd-body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.pd-code { margin: 0; padding: 18px 20px; overflow: hidden; font: 400 11.5px/1.7 var(--mono); color: #c7b8a5; white-space: pre; tab-size: 2; border-right: 1px solid var(--line); }
.pd-code .kw { font-style: normal; color: var(--gold); } .pd-code .fn { font-style: normal; color: var(--cream); } .pd-code .bi { font-style: normal; color: #a99780; }
.pd-code .nu { font-style: normal; color: #e9b98a; } .pd-code .cm { font-style: italic; color: rgba(239, 230, 216, .35); }
.pd-semi { position: relative; font-weight: 500; color: #c7b8a5; }
.pd-semi.gone { display: inline-block; width: 0; overflow: visible; color: transparent; }
.pdemo.caret .pd-semi { color: #1b130c; background: var(--gold); border-radius: 2px; }
.pdemo.caret .pd-semi.gone { background: none; }
/* marks the removed semicolon while the error shows */
.pdemo.err .pd-semi.gone::before { content: ''; position: absolute; left: 1px; top: 2px; bottom: 2px; width: 7px; border-radius: 2px; background: rgba(255, 110, 90, .55); box-shadow: 0 0 10px rgba(255, 110, 90, .7); }
.pdemo.caret .pd-semi::after { content: ''; position: absolute; right: -2px; top: 1px; bottom: 1px; width: 1.5px; background: var(--cream); animation: blink 1s steps(1) infinite; }
.pd-view { position: relative; background: #000; }
.pd-view canvas { position: absolute; inset: 0; }
.pd-err { margin: 0; max-height: 0; padding: 0 20px; overflow: hidden; border-top: 1px solid transparent; background: rgba(120, 30, 20, .3); color: #ffb3a3; font: 400 11.5px/1.6 var(--mono); white-space: pre-wrap;
  transition: max-height .5s var(--ease), padding .5s var(--ease), border-color .5s; }
.pdemo.err .pd-err { max-height: 60px; padding: 12px 22% 12px 20px; border-top-color: rgba(255, 120, 100, .4); }
.pd-why { max-height: 0; overflow: hidden; padding: 0 20px; background: linear-gradient(180deg, rgba(232, 200, 154, .1), rgba(232, 200, 154, .03)); border-top: 1px solid transparent;
  transition: max-height .7s var(--ease), padding .7s var(--ease), border-color .7s; }
.pdemo.why .pd-why { max-height: 220px; padding: 14px 22% 16px 20px; border-top-color: rgba(232, 200, 154, .3); }
.pd-why .why-k { display: block; font: 500 10.5px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.pd-why p { margin-top: 8px; font-size: 13px; line-height: 1.55; color: var(--text); }
.pd-why p code { font: 400 11.5px/1 var(--mono); color: #ffe2b4; background: rgba(232, 200, 154, .14); padding: 1px 5px; border-radius: 4px; }
.pd-why .why-hint { color: var(--muted); }
.pd-steps { list-style: none; margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pd-steps li { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); font-size: 13.5px; color: var(--quiet); transition: color .4s, border-color .4s, background .4s; }
.pd-steps li b { font: 500 10px/1 var(--mono); letter-spacing: .14em; color: var(--quiet); }
.pd-steps li { position: relative; }
.pd-steps li.on { color: var(--cream); border-color: rgba(232, 200, 154, .3); background: rgba(232, 200, 154, .1); box-shadow: 0 0 40px rgba(232, 200, 154, .22); transform: translateY(-2px); }
.pd-steps li { transition: color .4s, border-color .4s, background .4s, box-shadow .4s, transform .5s var(--ease); }
.pd-steps li.on b { color: var(--gold); }
/* active step: animated gold outline */
.pd-steps li::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none; opacity: 0; transition: opacity .4s;
  padding: 2px; background: conic-gradient(from var(--a), transparent 0 30%, rgba(232, 200, 154, .6) 40%, #fff3df 50%, rgba(232, 200, 154, .95) 58%, transparent 70%);
  filter: drop-shadow(0 0 6px rgba(255, 220, 170, .7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 2.4s linear infinite; }
.pd-steps li.on::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .pd-steps li::after { animation: none; } }
@media (max-width: 980px) { .pro-home { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .pd-win { height: 600px; }
  .pd-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: 140px 1fr; }
  .pd-view { order: -1; border-bottom: 1px solid var(--line); }
  .pd-code { border-right: 0; font-size: 10px; padding: 12px 14px; }
  .pdemo.zoom .pd-zoom { transform: scale(1.06); }
  .pdemo.err .pd-err, .pdemo.why .pd-why { padding-right: 10%; }
  .pd-why p { font-size: 12.5px; }
  .pd-steps { gap: 6px; } .pd-steps li { padding: 9px 10px; font-size: 11.5px; line-height: 1.3; }
}
@media (prefers-reduced-motion: reduce) { .pd-zoom, .pd-err, .pd-why { transition: none; } }

/* Devices that carry photographs (museum-showcase.js · the museum, on wogl.io's home). */
.dev .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
/* The museum section's phone: the selected ship (traveler-skins.js). Its lava fills the screen; the text sits low,
   above the ship's name and two tones. */
.skin-scr { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.skin-lava { position: absolute; inset: 0; width: 100%; height: 100%; }
.skin-in { position: relative; display: grid; gap: var(--s5); padding: var(--s9) var(--s5) var(--s7);
  background: linear-gradient(transparent, rgba(0, 0, 0, .55) 40%); }
.skin-k { font: 500 10px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--skin-accent); transition: color .6s var(--ease); }
.skin-k .brand { text-transform: none; }
.skin-ship { margin-top: var(--s2); padding-top: var(--s4); border-top: 1px solid rgba(255, 255, 255, .14); font: 500 9px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.skin-name { display: flex; align-items: center; gap: var(--s3); margin-top: calc(-1 * var(--s3)); }
.skin-name b { font: 300 34px/1.05 var(--sans); letter-spacing: -.02em; color: var(--skin-accent); transition: color .6s var(--ease); }
/* (--skin-deep / --skin-hot: --a is a registered angle used by the edge animation) */
.skin-chip, .skin-pick button { background: linear-gradient(135deg, var(--skin-deep) 0 50%, var(--skin-hot) 50% 100%) content-box; }
.skin-chip { flex: none; width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .3) inset; transition: background .6s; }
/* Swatches at real size in the step text: a 36 px circle in a 44 px target. */
.skin-picker { margin-top: 0; }
.skin-pick-k { margin-bottom: var(--s3); font: 500 11px/1.4 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }   /* "Pick your ship", the first step's eyebrow */
.skin-pick { display: flex; flex-wrap: wrap; gap: 2px; margin: 0 0 0 -4px; }
.skin-pick button { position: relative; width: 44px; height: 44px; padding: 4px; border-radius: 50%; cursor: pointer; transition: transform .3s var(--ease); }
.skin-pick button::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .22) inset; transition: box-shadow .3s; }
.skin-pick button:hover { transform: scale(1.06); }
.skin-pick button[aria-checked="true"]::after { box-shadow: 0 0 0 2px var(--ink), 0 0 0 3.5px var(--skin-accent); }
/* Upcoming museum rooms (museum-showcase.js · museum-pieces.js): the step's "coming soon" tag and, on each device, the room
   running under the museum bar with its placard. */
.step-tag { display: inline-flex; margin-bottom: var(--s3); padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); font: 500 10px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.mus-scr { position: absolute; inset: 0; overflow: hidden; background: #000; }
.mus-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.mus-bar { position: absolute; z-index: 1; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: var(--s2); padding: var(--s4) var(--s5);
  background: linear-gradient(rgba(0, 0, 0, .7), transparent); font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.mus-bar .brand { letter-spacing: .18em; color: var(--gold); text-transform: none; }
.mus-bar b { font-weight: 500; color: var(--cream); }
.mus-soon { margin-left: auto; padding: 5px 9px; border-radius: 999px; border: 1px solid rgba(232, 200, 154, .45); background: rgba(0, 0, 0, .45); font: 500 9px/1 var(--mono); font-style: normal; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.bui-frame .mus-soon { position: absolute; z-index: 1; top: var(--s4); right: var(--s4); }
.mus-placard { position: absolute; z-index: 1; left: var(--s5); bottom: var(--s5); display: grid; gap: 4px; padding: var(--s3) var(--s4); border-left: 1px solid var(--gold);
  background: rgba(0, 0, 0, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.mus-placard b { font: 400 18px/1.1 var(--sans); color: var(--cream); }
.mus-placard span { font: 500 9px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.om { position: absolute; inset: 0; display: grid; grid-template-rows: auto auto 1fr; background: #070605; }
.om .mus-bar { position: static; background: none; }
.om-tabs { display: flex; gap: 6px; padding: 0 var(--s5) var(--s4); }
.om-tabs span { padding: 7px 12px; border-radius: 999px; font: 400 12px/1 var(--sans); color: rgba(255, 255, 255, .55); }
.om-tabs .on { color: #1b130c; background: linear-gradient(180deg, #f3dcb6, #d7ad78); }
.om-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); padding: 0 var(--s5) var(--s5); min-height: 0; }
.om-card { display: grid; grid-template-rows: minmax(0, 1fr) auto; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.om-art { position: relative; display: block; min-height: 0; background: #000; border-bottom: 1px solid var(--line); }
.om-art canvas { position: absolute; inset: 0; }
.om-meta { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); padding: 8px 12px; }
.om-meta b { font: 400 13px/1.2 var(--sans); color: var(--cream); }
.om-meta small { font: 500 9px/1 var(--mono); letter-spacing: .08em; color: rgba(255, 255, 255, .5); }
.dev-phone .scr, .dev-laptop .scr { position: relative; }
.dev-browser .bui-frame { position: relative; }
.tgrid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: 100%; padding: 14px; }
.tcell { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: #000; }
.tcell b { position: absolute; z-index: 1; left: 10px; bottom: 9px; font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cream); text-shadow: 0 1px 6px #000; }
.tcell .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
