/* ===========================================================================
   LUCAS VOGEL — personal site
   Brutalist / post-internet. Raw rules, exposed grid, magenta accent.
   Display: Le Murmure (Velvetyne). Mono: Sligoil → Space Mono (Velvetyne/fallback).
   =========================================================================== */

:root {
  /* palette — light (default) */
  --bg:    #ffffff;
  --fg:    #0a0a0a;
  --fg-2:  #555049;
  --rule:  #0a0a0a;
  --accent:#ff1f8e;          /* magenta — tweakable */
  --on-accent:#0a0a0a;
  --hair:  #e3e1db;

  --font-display: 'Le Murmure', 'Arial Narrow', sans-serif;
  --font-mono: 'Sligoil', 'Space Mono', ui-monospace, 'Courier New', monospace;

  /* rhythm — density tweakable */
  --u: 22px;                  /* base spacing unit */
  --pad: clamp(18px, 4vw, 56px);
  --rule-w: 2px;
  --maxw: 1280px;

  --mo: 1;                    /* motion multiplier (0 / .55 / 1) */
}

[data-theme="dark"] {
  --bg:#0b0b0c; --fg:#f3f1ea; --fg-2:#9a958c; --rule:#f3f1ea; --hair:#262428;
}

[data-density="compact"] { --u: 15px; --pad: clamp(14px,3vw,36px); }
[data-density="roomy"]   { --u: 30px; --pad: clamp(24px,5vw,76px); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
/* [data-theme] gives this (0,1,1) specificity so it beats a starter-injected
   `html, body { background: transparent }` reset that would otherwise reveal
   html's light background in dark mode. */
html[data-theme], body[data-theme] { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: color .25s;
}

/* selection */
::selection { background: var(--accent); color: var(--on-accent); }

/* links */
a { color: inherit; text-decoration: none; }

/* ---- language visibility ----
   Only ever HIDE the inactive language (with !important so it beats any
   element-specific display rule like `.job ul li{display:grid}`). The active
   language keeps its natural display value. body always carries data-lang. */
[data-lang="en"] .es-only { display: none !important; }
[data-lang="es"] .en-only { display: none !important; }

/* ===========================================================================
   FRAME
   =========================================================================== */
.wrap { max-width: var(--maxw); margin: 0 auto; border-left: var(--rule-w) solid var(--rule);
        border-right: var(--rule-w) solid var(--rule); min-height: 100vh; }

/* ---- top bar ---- */
.bar {
  display: flex; align-items: stretch; justify-content: space-between;
  border-bottom: var(--rule-w) solid var(--rule);
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
}
.bar .mark {
  font-family: var(--font-mono); font-weight: 700; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 14px var(--pad); display: flex; align-items: center; gap: 12px;
  border-right: var(--rule-w) solid var(--rule);
}
.bar .mark .blip { width: 9px; height: 9px; background: var(--accent); display: inline-block; }
.bar nav { display: flex; align-items: stretch; }
.bar nav a, .bar nav button {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  background: none; border: 0; border-left: var(--rule-w) solid var(--rule); color: var(--fg);
  padding: 0 clamp(12px,2vw,22px); display: flex; align-items: center; gap: 7px; cursor: pointer;
  transition: background .12s, color .12s;
}
.bar nav a:hover, .bar nav button:hover { background: var(--fg); color: var(--bg); }
.bar nav a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
.bar nav .arrow { font-size: 11px; }
.langtog .on { font-weight: 700; }
.langtog .off { opacity: .4; }
.themetog { gap: 7px; font-size: 13px; line-height: 1; }
.themetog span { font-variant-emoji: text; }
.themetog .on { opacity: 1; color: var(--accent); }
.themetog .off { opacity: .35; }

/* ---- marquee band ---- */
.marquee {
  border-bottom: var(--rule-w) solid var(--rule);
  background: var(--accent); color: var(--on-accent);
  overflow: hidden; white-space: nowrap;
}
.marquee .track {
  display: inline-block; padding: 9px 0; will-change: transform;
  animation: scroll calc(26s / max(var(--mo), .25)) linear infinite;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700;
}
[data-anim="off"] .marquee .track { animation: none; padding-left: var(--pad); }
.marquee:hover .track { animation-play-state: paused; }
.marquee .track span { padding: 0 1.5em; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===========================================================================
   HERO
   =========================================================================== */
.hero { padding: clamp(34px,6vw,76px) var(--pad) clamp(28px,4vw,52px); border-bottom: var(--rule-w) solid var(--rule); }
.hero .eyebrow {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-2);
  display: flex; gap: 14px; align-items: center; margin-bottom: clamp(16px,2.4vw,28px); flex-wrap: wrap;
}
.hero .eyebrow .tick { color: var(--accent); }
.hero .lede { max-width: 60ch; font-size: clamp(15px,1.9vw,20px); line-height: 1.55; color: var(--fg); margin-top: clamp(20px,2.6vw,32px); }
.hero .lede b { color: var(--accent); font-weight: 400; }

/* ---- PAGE HERO TITLE (work.html / lab.html) — match the big-menu headers ---- */
.hero h1:has(.glitch) { margin: 0; }
.hero h1 .glitch {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(40px, 8.5vw, 104px);
  line-height: .84;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

/* ---- HOME hero: short statement + small framed photo + scroll cue ---- */
.home-intro {
  display: grid; grid-template-columns: 1fr clamp(150px, 19%, 210px);
  gap: clamp(20px,3vw,44px); align-items: stretch;
  margin-top: clamp(20px,2.6vw,32px);
}
.home-copy { display: flex; flex-direction: column; }
.home-copy .eyebrow {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-2);
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 clamp(10px,1.4vw,16px);
}
.home-copy .eyebrow .tick { color: var(--accent); }
.home-copy .eyebrow .sep { color: var(--fg-2); opacity: .5; }
.home-name {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(38px, 6vw, 80px); line-height: .92; letter-spacing: -.02em;
  text-transform: uppercase; margin: 0 0 clamp(16px,2.2vw,28px);
}
.home-lines { display: flex; flex-direction: column; gap: clamp(7px,1vw,12px); }
.home-copy .lede {
  margin-top: 0; max-width: none; white-space: nowrap;
  font-family: var(--font-mono); font-weight: 400;
  font-size: clamp(12px, 1.4vw, 18px); line-height: 1.45; letter-spacing: -.01em;
  color: var(--fg); display: block;
}
.home-copy .lede b { color: var(--accent); font-weight: 700; white-space: nowrap; }
.home-cue .smiley {
  height: 1.95em; width: auto; vertical-align: -0.62em; margin-left: 8px; image-rendering: auto;
}
.home-cue {
  margin-top: auto; padding-top: clamp(16px,2.4vw,28px);
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--font-mono); font-size: 30px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent);
}
.home-cue .arr { animation: cuebob calc(1.6s / max(var(--mo),.25)) ease-in-out infinite; }
@keyframes cuebob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
[data-anim="off"] .home-cue .arr { animation: none; }
.home-photo { border: var(--rule-w) solid var(--rule); align-self: start; }
.home-photo .ph {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 9px 12px; border-bottom: var(--rule-w) solid var(--rule);
  font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.home-photo .ph .pm { color: var(--accent); font-weight: 700; }
/* the slot ignores aspect-ratio set on itself, so a wrapper drives the box */
.home-photo-img { aspect-ratio: 4/5; position: relative; }
.home-photo-img image-slot { width: 100%; height: 100%; display: block; }
@media (max-width: 680px) {
  .home-intro { grid-template-columns: 1fr; justify-items: start; }
  .home-copy .lede { white-space: normal; }
  .home-photo { width: min(220px, 60%); }
}
}

/* ===========================================================================
   SECTION SCAFFOLD
   =========================================================================== */
.sec { border-bottom: var(--rule-w) solid var(--rule); }
/* separation gutter — a quiet tinted band before every section header so the
   boundary between one section and the next reads instantly on fast scroll,
   in both light and dark themes. Applies to work.html + lab.html alike. */
.sec::before {
  content: ""; display: block;
  height: clamp(26px, 3.4vw, 48px);
  background: color-mix(in srgb, var(--accent) 6%, var(--bg));
  border-top: var(--rule-w) solid var(--rule);
}
[data-theme="dark"] .sec::before { background: color-mix(in srgb, var(--accent) 10%, var(--bg)); }
.sec-head {
  display: flex; align-items: baseline; gap: clamp(14px,2vw,26px);
  padding: clamp(22px,3vw,40px) var(--pad) clamp(18px,2.4vw,28px);
  border-top: 4px solid var(--accent);
  border-bottom: var(--rule-w) solid var(--rule);
  background: color-mix(in srgb, var(--accent) 12%, var(--bg));
  position: relative;
}
[data-theme="dark"] .sec-head { background: color-mix(in srgb, var(--accent) 22%, var(--bg)); }
.sec-head .no {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--accent); font-weight: 700;
}
.sec-head h2 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(26px,4.5vw,54px); line-height: .95; letter-spacing: -.01em;
}
.sec-head .meta { margin-left: auto; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); }
.sec-body { padding: clamp(22px,3vw,44px) var(--pad); }

/* small label */
.lbl { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-2); }

/* ===========================================================================
   STATS STRIP
   =========================================================================== */
.stats { display: grid; grid-template-columns: repeat(6, 1fr); }
.stats .s { padding: clamp(18px,2.4vw,30px) var(--pad); border-right: var(--rule-w) solid var(--rule);
  border-bottom: var(--rule-w) solid var(--rule); }
.stats .s:nth-child(6n) { border-right: 0; }
.stats .s .n { font-family: var(--font-display); font-size: clamp(34px,5vw,64px); line-height: .9; }
.stats .s .k { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); margin-top: 10px; }
.stats .s:hover { background: var(--accent); color: var(--on-accent); }
.stats .s:hover .k, .stats .s:hover .n { color: var(--on-accent); }

/* ===========================================================================
   EXPERIENCE LIST
   =========================================================================== */
.jobs { display: flex; flex-direction: column; }
.job {
  display: grid; grid-template-columns: 64px 1fr; gap: clamp(16px,3vw,46px);
  padding: clamp(22px,3vw,40px) var(--pad);
  border-bottom: var(--rule-w) solid var(--rule);
  transition: background .15s;
}
.jobs .job:last-child { border-bottom: 0; }
.job:hover .j-co a { color: var(--accent); }
.job .j-idx { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--accent); }
.job:hover .j-idx { color: var(--accent); }
.job .j-co { font-family: var(--font-display); font-size: clamp(26px,3.4vw,42px); line-height: .98; text-transform: uppercase; }
.job .j-co .ext { font-size: .4em; vertical-align: super; color: var(--accent); }
.job .j-role { font-size: 14px; letter-spacing: .03em; color: var(--accent); margin-top: 6px; }
.job .j-dates { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); margin-top: 10px; }
.job .j-desc { font-size: 15px; line-height: 1.62; max-width: 64ch; margin-top: 16px; color: inherit; }
.job ul { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 9px; max-width: 72ch; }
.job ul li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 14px; line-height: 1.5; }
.job ul li .b { color: var(--accent); }
.job ul li b { font-weight: 700; }
.job .j-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.job .j-tags .tg { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; border: 1.5px solid var(--rule); padding: 5px 9px; color: var(--fg-2); }

/* ===========================================================================
   GENERIC GRID OF BORDERED CELLS
   =========================================================================== */
.cells { display: grid; gap: 0; border-top: var(--rule-w) solid var(--rule); }
.cells.c2 { grid-template-columns: 1fr 1fr; }
.cells.c3 { grid-template-columns: repeat(3, 1fr); }
.cell {
  padding: clamp(18px,2.4vw,28px) var(--pad);
  border-bottom: var(--rule-w) solid var(--rule); border-right: var(--rule-w) solid var(--rule);
  transition: background .15s;
}
.cells.c2 .cell:nth-child(2n) { border-right: 0; }
.cells.c3 .cell:nth-child(3n) { border-right: 0; }
.cell.link:hover { background: var(--accent); color: var(--on-accent); cursor: pointer; }
.cell .ct { font-family: var(--font-display); font-size: clamp(20px,2.4vw,30px); text-transform: uppercase; line-height: .98; }
.cell .cmeta { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); margin-top: 8px; }
.cell.link:hover .cmeta { color: var(--on-accent); }
.cell .cd { font-size: 14px; line-height: 1.55; margin-top: 14px; max-width: 60ch; }
.cell .ctag { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; display: inline-block; }
.cell.link:hover .ctag { color: var(--on-accent); }

/* ===========================================================================
   EMBEDS
   =========================================================================== */
.embeds { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: var(--rule-w) solid var(--rule); }
.embed { border-bottom: var(--rule-w) solid var(--rule); border-right: var(--rule-w) solid var(--rule); }
.embeds .embed:nth-child(2n) { border-right: 0; }
.embed.full { grid-column: 1 / -1; border-right: 0; }
.embed .ehead { display: flex; justify-content: space-between; align-items: center; padding: 12px var(--pad);
  border-bottom: var(--rule-w) solid var(--rule); }
.embed .ehead .et { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.embed .ehead .en2 { font-size: 11px; color: var(--accent); letter-spacing: .1em; }
.embed .frame { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; }
.embed .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* ---- YouTube click-to-play facade ---- */
.yt {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; padding: 0; margin: 0; border: 0;
  background: #0b0b0c; cursor: pointer; overflow: hidden;
}
.yt .yt-thumb {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: saturate(.92) contrast(1.02); transition: transform .45s ease, filter .2s;
}
.yt:hover .yt-thumb, .yt:focus-visible .yt-thumb { transform: scale(1.035); filter: none; }
.yt .yt-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 64px; height: 64px; background: var(--accent);
  display: grid; place-items: center;
  box-shadow: 0 8px 30px -8px rgba(0,0,0,.6);
  transition: transform .15s ease, background .15s;
}
.yt:hover .yt-play, .yt:focus-visible .yt-play { transform: translate(-50%,-50%) scale(1.09); }
.yt .yt-play > span {
  width: 0; height: 0; margin-left: 5px;
  border-left: 20px solid var(--on-accent);
  border-top: 12px solid transparent; border-bottom: 12px solid transparent;
}
.yt.yt-noimg::before {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, #161318 0 13px, #121016 13px 26px);
  opacity: .9;
}
.yt:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.yt .yt-mount, .yt .yt-mount iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* graceful fallback card ("Watch on YouTube") when the embed is blocked */
.yt .yt-fallback {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  text-decoration: none; background: #0b0b0c;
  background-image: repeating-linear-gradient(45deg, #161318 0 13px, #121016 13px 26px);
}
.yt .yt-fallback .yt-play { position: static; transform: none; box-shadow: 0 8px 30px -8px rgba(0,0,0,.6); }
.yt .yt-fallback:hover .yt-play { transform: scale(1.09); }
.yt .yt-fb-txt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #f3f1ea; }

/* ===========================================================================
   INDEX / LISTING (terse rows)
   =========================================================================== */
.index { border-top: var(--rule-w) solid var(--rule); }
.index .row {
  display: grid; grid-template-columns: 52px 1fr auto; gap: clamp(12px,2vw,26px); align-items: baseline;
  padding: 13px var(--pad); border-bottom: var(--rule-w) solid var(--rule);
  font-size: 13.5px; transition: background .12s, color .12s, padding-left .15s;
}
.index .row:last-child { border-bottom: 0; }
.index .row:hover { background: var(--fg); color: var(--bg); padding-left: calc(var(--pad) + 10px); }
.index .row .ri { font-size: 11.5px; color: var(--accent); font-weight: 700; letter-spacing: .06em; }
.index .row:hover .ri { color: var(--accent); }
.index .row .rn { letter-spacing: .02em; }
.index .row .rt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); text-align: right; }
.index .row:hover .rt { color: var(--bg); }

/* wrapped tag list (experiments / skills) */
.taglist { display: flex; flex-wrap: wrap; gap: 9px; }
.taglist .t {
  font-size: 12.5px; letter-spacing: .04em; border: 1.5px solid var(--rule); padding: 7px 12px;
  transition: background .12s, color .12s; text-transform: uppercase;
}
.taglist .t:hover { background: var(--accent); color: var(--on-accent); }

/* prose block (process write-up, interests) */
.prose { max-width: 70ch; }
.prose p { font-size: 14.5px; line-height: 1.62; margin-bottom: 1em; color: var(--fg); }
.prose p b, .prose p strong { color: var(--accent); font-weight: 400; }
.prose .kicker { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 14px; }

/* two-up split */
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split > div { padding: clamp(20px,2.6vw,34px) var(--pad); border-right: var(--rule-w) solid var(--rule); }
.split > div:last-child { border-right: 0; }
.split h3 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 18px; }

/* ===========================================================================
   BIG CROSS-LINK (work <-> lab)
   =========================================================================== */
.jump {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: clamp(34px,6vw,80px) var(--pad);
  background: var(--accent); color: var(--on-accent);
  transition: filter .15s;
}
.jump:hover { filter: invert(1); }
.jump .jt { font-family: var(--font-display); font-size: clamp(38px,8vw,108px); line-height: .85; text-transform: uppercase; }
.jump .jr { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; max-width: 36ch; }
.jump .jbig { font-size: clamp(40px,8vw,90px); line-height: .8; }

/* ===========================================================================
   FOOTER
   =========================================================================== */
.foot { padding: clamp(28px,4vw,56px) var(--pad); display: flex; flex-direction: column; gap: 22px; }
.foot .frow { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: baseline; }
.foot a.flink { border-bottom: 2px solid var(--accent); padding-bottom: 2px; transition: background .12s, color .12s; }
.foot a.flink:hover { background: var(--accent); color: var(--on-accent); }
.foot .fmeta { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); }
.foot .fbig { font-family: var(--font-display); font-size: clamp(30px,5vw,60px); text-transform: uppercase; line-height: .9; }

/* ===========================================================================
   MOTION — reveal
   =========================================================================== */
[data-anim="on"] .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
[data-anim="on"] .reveal.in { opacity: 1; transform: none; }

/* name glitch on hover (full motion only) */
[data-anim="on"] .hero h1 .glitch:hover { animation: glitch calc(.4s) steps(2) 2; }
@keyframes glitch {
  0% { transform: translate(0,0); } 25% { transform: translate(-3px,1px); }
  50% { transform: translate(2px,-2px); } 75% { transform: translate(-1px,2px); } 100% { transform: translate(0,0); }
}

/* ===========================================================================
   RESPONSIVE
   =========================================================================== */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats .s:nth-child(6n) { border-right: var(--rule-w) solid var(--rule); }
  .stats .s:nth-child(3n) { border-right: 0; }
  .cells.c3 { grid-template-columns: 1fr 1fr; }
  .cells.c3 .cell:nth-child(3n) { border-right: var(--rule-w) solid var(--rule); }
  .cells.c3 .cell:nth-child(2n) { border-right: 0; }
  .embeds { grid-template-columns: 1fr; }
  .embed { border-right: 0; }
}
@media (max-width: 620px) {
  body { font-size: 14px; }
  .wrap { border-left: 0; border-right: 0; }
  .bar { flex-direction: column; }
  .bar .mark { border-right: 0; border-bottom: var(--rule-w) solid var(--rule); justify-content: space-between; }
  .bar nav { border-bottom: 0; }
  .bar nav a:first-child, .bar nav button:first-child { border-left: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .s:nth-child(3n) { border-right: var(--rule-w) solid var(--rule); }
  .stats .s:nth-child(2n) { border-right: 0; }
  .cells.c2, .cells.c3, .split { grid-template-columns: 1fr; }
  .cells.c2 .cell, .cells.c3 .cell, .split > div { border-right: 0; }
  .job { grid-template-columns: 1fr; }
  .index .row { grid-template-columns: 40px 1fr; }
  .index .row .rt { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee .track { animation: none; padding-left: var(--pad); }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero h1 .glitch:hover { animation: none; }
}

/* print: simple, legible, magenta→black */
@media print {
  .bar, .marquee, .jump, .langtog, #tweaks-root, .exp-tabs { display: none !important; }
  .wrap { border: 0; max-width: 100%; }
  body { --accent:#000; font-size: 10.5px; }
  .sec, .job, .cell, .index .row, .stats .s { break-inside: avoid; }
  .exp-panel { display: block !important; }
  a { text-decoration: none; }
}

/* ===========================================================================
   LANDING (index.html)
   =========================================================================== */
.statement { padding: clamp(48px,9vw,130px) var(--pad) clamp(30px,5vw,64px); }
.statement .lede {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(34px,6.4vw,92px); line-height: .92; letter-spacing: -.005em;
  max-width: 18ch;
}
.statement .lede .accent { color: var(--accent); }
.statement .sig { margin-top: clamp(22px,3vw,38px); max-width: 56ch; font-size: clamp(14px,1.7vw,17px);
  line-height: 1.6; color: var(--fg-2); }

.bigmenu { border-top: var(--rule-w) solid var(--rule); }
.bigmenu a {
  display: grid; grid-template-columns: clamp(40px,6vw,78px) 1fr auto; align-items: center;
  gap: clamp(10px,2vw,26px);
  padding: clamp(22px,3.6vw,44px) var(--pad);
  border-bottom: var(--rule-w) solid var(--rule);
  transition: background .14s, color .14s, padding-left .16s;
}
.bigmenu a:hover { background: var(--fg); color: var(--bg); padding-left: calc(var(--pad) + 12px); }
.bigmenu .bm-no { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--accent); align-self: start; padding-top: .55em; }
.bigmenu .bm-t { display: block; font-family: var(--font-display); font-size: clamp(40px,8.5vw,104px); text-transform: uppercase; line-height: .84; }
.bigmenu .bm-d { display: block; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); margin-top: 16px; }
.bigmenu a:hover .bm-d { color: var(--bg); }
.bigmenu .bm-a { font-family: var(--font-display); font-size: clamp(34px,6vw,72px); line-height: .8; }

/* ===========================================================================
   EXPERIENCE — TABS
   =========================================================================== */
.exp-tabs { display: flex; border-bottom: var(--rule-w) solid var(--rule); }
.exp-tab {
  flex: 1 1 0; min-width: 0; text-align: left; cursor: pointer;
  background: none; color: var(--fg);
  border: 0; border-right: var(--rule-w) solid var(--rule);
  padding: clamp(16px,2.2vw,26px) clamp(14px,2.4vw,30px);
  font-family: var(--font-mono);
  transition: background .14s, color .14s;
}
.exp-tab:last-child { border-right: 0; }
.exp-tab .et-no { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--accent); display: block; margin-bottom: 12px; }
.exp-tab .et-co { font-family: var(--font-display); font-size: clamp(20px,2.7vw,36px); text-transform: uppercase; line-height: .92; display: block; }
.exp-tab .et-meta { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); margin-top: 10px; display: block; }
.exp-tab:hover[aria-selected="false"] { background: var(--fg); color: var(--bg); }
.exp-tab:hover[aria-selected="false"] .et-meta { color: var(--bg); }
.exp-tab[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.exp-tab[aria-selected="true"] .et-no, .exp-tab[aria-selected="true"] .et-meta { color: var(--on-accent); }

/* "current role" live indicator on the Skillcap tab */
.et-now { display: inline-flex; align-items: center; gap: 7px; font-size: 9.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 11px; font-weight: 700; }
.et-now .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  animation: nowpulse calc(1.8s / max(var(--mo),.25)) ease-in-out infinite; }
.exp-tab[aria-selected="true"] .et-now { color: var(--on-accent); }
.exp-tab[aria-selected="true"] .et-now .dot { background: var(--on-accent); }
[data-anim="off"] .et-now .dot { animation: none; }
@keyframes nowpulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.6); } }

/* "current role" badge inside the panel */
.now-badge { display: inline-flex; align-items: center; gap: 8px; vertical-align: middle; white-space: nowrap;
  padding: 5px 11px; margin-right: 14px; border: 1.5px solid var(--accent); color: var(--accent);
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.now-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  animation: nowpulse calc(1.8s / max(var(--mo),.25)) ease-in-out infinite; }
[data-anim="off"] .now-badge .dot { animation: none; }

/* Exhibits / Encuadrado — content sub-headers (mono, medium; clear but not huge) */
.fair-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; padding: clamp(22px,2.8vw,32px) var(--pad) 0; }

/* ---- compact tab bar (Lab — many threads) ---- */
.exp-tabs.compact { flex-wrap: wrap; }
.exp-tabs.compact .exp-tab { flex: 1 1 150px; padding: clamp(14px,1.9vw,20px) clamp(14px,2vw,22px); }
.exp-tabs.compact .et-co { font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(13px,1.4vw,15.5px); letter-spacing: .06em; text-transform: uppercase; line-height: 1.15; }
.exp-tabs.compact .et-meta { margin-top: 8px; }

/* ---- accordion (tutorials, micro-cuentos) ---- */
.acc-list { border-top: var(--rule-w) solid var(--rule); }
.acc { border-bottom: var(--rule-w) solid var(--rule); }
.acc-head { width: 100%; display: grid; grid-template-columns: 46px 1fr auto 26px;
  gap: clamp(10px,1.8vw,22px); align-items: center; text-align: left; background: none; border: 0;
  color: var(--fg); font-family: var(--font-mono); padding: 16px var(--pad); cursor: pointer;
  transition: background .12s, color .12s; }
.acc-head:hover { background: var(--fg); color: var(--bg); }
.acc-head .acc-no { font-size: 11.5px; font-weight: 700; color: var(--accent); letter-spacing: .06em; }
.acc-head .acc-title { font-size: 15px; letter-spacing: .01em; }
.acc-head .acc-meta { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); text-align: right; }
.acc-head:hover .acc-meta { color: var(--bg); }
.acc-head .acc-x { justify-self: center; width: 17px; height: 17px; position: relative; }
.acc-head .acc-x::before, .acc-head .acc-x::after { content: ""; position: absolute; background: var(--accent); }
.acc-head .acc-x::before { left: 0; right: 0; top: 7.5px; height: 2px; }
.acc-head .acc-x::after { top: 0; bottom: 0; left: 7.5px; width: 2px; transition: opacity .15s; }
.acc-head:hover .acc-x::before, .acc-head:hover .acc-x::after { background: var(--bg); }
.acc-head[aria-expanded="true"] .acc-x::after { opacity: 0; }
.acc-head[aria-expanded="true"] + .acc-body { display: block; }
.acc-body { display: none; }
.acc-inner { padding: clamp(8px,1.4vw,16px) var(--pad) clamp(24px,2.8vw,34px); display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: clamp(18px,3vw,40px); align-items: start; }
.acc-inner.solo { grid-template-columns: 1fr; }
.acc-inner .acc-copy p { font-size: 14.5px; line-height: 1.62; color: var(--fg-2); }
.acc-inner .acc-copy p b { color: var(--fg); }
.acc-watch { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg);
  border: 1.5px solid var(--rule); padding: 9px 14px; transition: background .12s, color .12s; }
.acc-watch:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.acc-file { justify-self: start; }
.acc-vid { position: relative; width: 100%; aspect-ratio: 16/9; border: var(--rule-w) solid var(--rule); }
.acc-vid .yt { border: 0; }

/* ---- story prose (micro-cuentos) ---- */
.story { max-width: 72ch; }
.story p { font-size: 14.5px; line-height: 1.74; margin-bottom: 1.05em; color: var(--fg); }
.story p:last-child { margin-bottom: 0; }
.story .em { color: var(--fg-2); font-style: italic; }

/* ---- trio/duo: result media + video, same size (tutorials, Pastel Sea) ---- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); border: var(--rule-w) solid var(--rule); margin-top: 16px; }
.trio.duo { grid-template-columns: repeat(2, 1fr); }
.trio .tcell { position: relative; aspect-ratio: 16/9; border-right: var(--rule-w) solid var(--rule); }
/* image cells stay overflow:visible so the slot's hover Replace/Remove controls
   (which sit just below the frame) and its reframe spill aren't clipped. The
   image crop itself is clipped inside the component, so nothing bleeds. */
.trio .tcell:has(image-slot) { overflow: visible; }
.trio .tcell:has(.yt) { overflow: hidden; }
.trio .tcell:last-child { border-right: 0; }
.trio image-slot { width: 100%; height: 100%; display: block; }
/* tutorial GIFs are real files (too heavy for the sidecar) — fill the cell */
.trio .tcell:has(.td-gif) { overflow: hidden; }
.trio .td-gif { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; background: var(--hair); }
/* file not present yet → show a quiet placeholder instead of a broken icon */
.trio .td-gif.missing { object-fit: none; font-size: 0; }
.trio .tcell:has(.td-gif.missing)::after {
  content: "GIF PENDING"; position: absolute; inset: 0; z-index: 1;
  display: grid; place-items: center; font-size: 9px; letter-spacing: .14em;
  color: var(--fg-2); background: repeating-linear-gradient(45deg,
    var(--hair) 0 8px, transparent 8px 16px);
}
.trio .yt { position: absolute; inset: 0; border: 0; }
.trio .tlabel { position: absolute; left: 0; top: 0; z-index: 2; font-size: 9px; letter-spacing: .12em;
  text-transform: uppercase; background: var(--bg); color: var(--fg-2); padding: 5px 8px;
  border-right: var(--rule-w) solid var(--rule); border-bottom: var(--rule-w) solid var(--rule); }

/* education cells — smaller titles so the big section header out-ranks them */
.cells.tight .ct { font-size: clamp(15px,1.6vw,19px); }
.cells.tight .cd { font-size: 13px; }
.cells.tight .ctag { font-size: 10px; }

@media (max-width: 760px) {
  .acc-inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .trio { grid-template-columns: 1fr; }
  .trio .tcell { border-right: 0; border-bottom: var(--rule-w) solid var(--rule); }
  .trio .tcell:last-child { border-bottom: 0; }
}
@media (max-width: 560px) {
  .acc-head { grid-template-columns: 34px 1fr 22px; }
  .acc-head .acc-meta { display: none; }
}
.fair-title { font-family: var(--font-mono); font-weight: 700; text-transform: uppercase;
  font-size: clamp(14px,1.5vw,17px); letter-spacing: .08em; line-height: 1.25; }
.fair-title .fair-link { color: inherit; border-bottom: 2px solid var(--accent); padding-bottom: 2px; transition: color .12s; }
.fair-title .fair-link:hover { color: var(--accent); }

/* tweet-card header on the post slots */
.mw-post .ph .tw-id { display: inline-flex; align-items: center; gap: 8px; }
.mw-post .ph .tw-id .tw-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.mw-post .ph .tw-open { color: var(--fg-2); border-bottom: 2px solid var(--accent); padding-bottom: 1px; transition: color .12s; }
.mw-post .ph .tw-open:hover { color: var(--accent); }

.exp-panel { display: none; }
.exp-panel.active { display: block; }
.exp-panel.active { animation: panelin calc(.4s / max(var(--mo),.4)) ease both; }
[data-anim="off"] .exp-panel.active { animation: none; }
@keyframes panelin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.pbody { padding: clamp(24px,3.2vw,46px) var(--pad) clamp(8px,1.5vw,16px); }
.pbody .p-role { font-size: 15px; letter-spacing: .02em; color: var(--accent); }
.pbody .p-dates { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); margin-top: 8px; }
.pbody .p-desc { font-size: 15px; line-height: 1.62; max-width: 64ch; margin-top: 18px; }
.pbody .p-desc strong { color: var(--accent); font-weight: 400; }
.pbody ul { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 10px; max-width: 70ch; }
.pbody ul li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; font-size: 14.5px; line-height: 1.55; }
.pbody ul li .b { color: var(--accent); }
.pbody ul li b { font-weight: 700; }

/* contextual numbers inside a panel */
.numrow { display: flex; flex-wrap: wrap; border-top: var(--rule-w) solid var(--rule); }
.numrow .nn { flex: 1 1 130px; padding: clamp(16px,2vw,26px) clamp(16px,2.4vw,30px);
  border-right: var(--rule-w) solid var(--rule); border-bottom: var(--rule-w) solid var(--rule); }
.numrow .nn b { font-family: var(--font-display); font-size: clamp(28px,3.4vw,46px); display: block; line-height: .88; }
.numrow .nn span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); margin-top: 10px; display: block; }
.numrow .nn:hover { background: var(--accent); color: var(--on-accent); }
.numrow .nn:hover span { color: var(--on-accent); }

/* portfolio label inside panel */
.p-lbl { padding: clamp(18px,2.4vw,26px) var(--pad) 0; }
.p-lbl .lbl { display: flex; align-items: center; gap: 12px; }
.p-lbl .lbl::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.p-lbl .lbl .lbl-link { color: inherit; border-bottom: 2px solid var(--accent); padding-bottom: 2px; transition: color .12s; }
.p-lbl .lbl .lbl-link:hover { color: var(--accent); }

/* posts grid (image-slot screenshots) */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: var(--rule-w) solid var(--rule); }
.posts .post { border-right: var(--rule-w) solid var(--rule); border-bottom: var(--rule-w) solid var(--rule); display: flex; flex-direction: column; }
.posts .post:nth-child(3n) { border-right: 0; }
.posts .post .ph { display: flex; justify-content: space-between; align-items: center; padding: 11px clamp(14px,2vw,18px);
  border-bottom: var(--rule-w) solid var(--rule); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.posts .post .ph .pm { color: var(--accent); font-weight: 700; }
.posts .post image-slot { width: 100%; aspect-ratio: 4/3; display: block; }

/* ---- channels / social links inside a panel ---- */
.p-lbl.with-links { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.p-lbl.with-links .lbl { flex: 1 1 auto; }
.chan { display: flex; gap: 9px; flex-wrap: wrap; }
.chan a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  border: 1.5px solid var(--rule); padding: 8px 12px;
  transition: background .12s, color .12s;
}
.chan a:hover { background: var(--accent); color: var(--on-accent); }
.chan a .cdot { width: 8px; height: 8px; background: var(--accent); }
.chan a:hover .cdot { background: var(--on-accent); }

/* ---- scrolling numbers band ---- */
.numscroll { overflow: hidden; border-top: var(--rule-w) solid var(--rule); }
.numscroll .ntrack {
  display: inline-flex; white-space: nowrap; will-change: transform;
  animation: scroll calc(34s / max(var(--mo), .25)) linear infinite;
}
.numscroll:hover .ntrack { animation-play-state: paused; }
.numscroll .nn2 {
  display: inline-flex; align-items: baseline; gap: 12px;
  padding: clamp(15px,1.9vw,23px) clamp(22px,3vw,40px);
  border-right: var(--rule-w) solid var(--rule);
}
.numscroll .nn2 b { font-family: var(--font-display); font-size: clamp(26px,3vw,42px); line-height: .88; }
.numscroll .nn2 span { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); }
[data-anim="off"] .numscroll { overflow-x: auto; }
[data-anim="off"] .numscroll .ntrack { animation: none; }

/* ---- media wall: trailer + stacked posts ---- */
.mediawall { display: grid; grid-template-columns: 1.7fr 1fr;
  gap: clamp(10px, 1.4vw, 16px); margin-top: clamp(14px, 1.8vw, 20px); }
.mediawall .mw-trailer {
  grid-row: 1 / span 2; position: relative; aspect-ratio: 16/9; background: #000;
  border: var(--rule-w) solid var(--rule);
}
.mediawall .mw-trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.mediawall .mw-post { display: flex; flex-direction: column; min-height: 0;
  border: var(--rule-w) solid var(--rule); }
.mediawall .mw-post .ph {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 11px clamp(12px,1.6vw,16px); border-bottom: var(--rule-w) solid var(--rule);
  font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.mediawall .mw-post .ph .tw-id { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mediawall .mw-post .ph .tw-open { flex: 0 0 auto; }
.mediawall .mw-post .ph .pm { color: var(--accent); font-weight: 700; }
.mediawall .mw-post image-slot { flex: 1 1 auto; width: 100%; height: 100%; min-height: 120px; display: block; }
.mediawall .mw-post .mw-vid { position: relative; flex: 1 1 auto; width: 100%; min-height: 140px; display: block; background: #000; }
.mediawall .mw-post .mw-vid .yt { position: absolute; inset: 0; }

/* ---- panel body with side media (Exhibits photo) ---- */
.pbody.with-media { display: grid; grid-template-columns: 1fr minmax(260px, 0.82fr); gap: clamp(20px,3vw,44px); align-items: start; }
.pbody.with-media .pm-photo { border: var(--rule-w) solid var(--rule); }
.pbody.with-media .pm-photo image-slot { width: 100%; aspect-ratio: 4/3; display: block; }
.pbody.with-media .pm-photo .ph {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-bottom: var(--rule-w) solid var(--rule);
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
}
.pbody.with-media .pm-photo .ph .pm { color: var(--accent); font-weight: 700; }

/* zone divider — sets utility sections apart on fast scroll (heavier than base) */
.sec.zone > .sec-head { border-top-width: 5px; }

/* compact section header — lighter weight (utility sections like Toolkit) */
.sec-head.compact { padding: clamp(13px,1.7vw,18px) var(--pad); align-items: center; }
.sec-head.compact h2 {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(13px,1.5vw,16px); letter-spacing: .16em; text-transform: uppercase; line-height: 1;
}

/* photo pair inside a panel (Exhibits fairs) */
.p-sum { padding: 0 var(--pad) clamp(14px,1.8vw,20px); max-width: 76ch; font-size: 13.5px; line-height: 1.55; color: var(--fg-2); }
.photogrid { display: grid; grid-template-columns: 1fr 1fr; border-top: var(--rule-w) solid var(--rule); }
.photogrid .photo {
  border-right: var(--rule-w) solid var(--rule); border-bottom: var(--rule-w) solid var(--rule);
}
.photogrid .photo:last-child { border-right: 0; }
.photogrid image-slot { width: 100%; aspect-ratio: 4/3; display: block; }
/* film stills (Cortos) — size the CELL to 16/9 and let the slot fill it,
   same pattern as the tutorial trio cells (the component ignores aspect-ratio
   set on itself, so the cell must drive the height) */
.photogrid.film .photo { aspect-ratio: 16/9; position: relative; }
.photogrid.film image-slot { width: 100%; height: 100%; aspect-ratio: auto; }

@media (max-width: 760px) {
  .mediawall { grid-template-columns: 1fr; }
  .mediawall .mw-trailer { grid-row: auto; border-right: 0; border-bottom: var(--rule-w) solid var(--rule); }
  .pbody.with-media { grid-template-columns: 1fr; }
  .photogrid { grid-template-columns: 1fr; }
  .photogrid .photo { border-right: 0; }
  .exp-tabs { flex-direction: column; }
  .exp-tab { border-right: 0; border-bottom: var(--rule-w) solid var(--rule); }
  .exp-tab:last-child { border-bottom: 0; }
  .posts { grid-template-columns: 1fr 1fr; }
  .posts .post:nth-child(3n) { border-right: var(--rule-w) solid var(--rule); }
  .posts .post:nth-child(2n) { border-right: 0; }
}
@media (max-width: 480px) {
  .posts { grid-template-columns: 1fr; }
  .posts .post { border-right: 0 !important; }
  .bigmenu a { grid-template-columns: 34px 1fr; }
  .bigmenu .bm-a { display: none; }
}

/* ===========================================================================
   PIECES GALLERY (Lab) — clickable tiles, each its own image + lightbox
   =========================================================================== */
.gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr));
  border-top: var(--rule-w) solid var(--rule);
}
.gtile {
  position: relative; display: flex; flex-direction: column; background: var(--bg);
  border-right: var(--rule-w) solid var(--rule); border-bottom: var(--rule-w) solid var(--rule);
}
.gtile image-slot { width: 100%; aspect-ratio: 1; display: block; }
.gcap {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding: 11px 13px; border-top: var(--rule-w) solid var(--rule);
}
.gname { font-family: var(--font-mono); font-weight: 700; font-size: 12.5px;
  text-transform: uppercase; letter-spacing: .04em; line-height: 1.25; }
.gtech { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); white-space: nowrap; }
a.gtech { color: var(--accent); border-bottom: 1.5px solid var(--accent); transition: opacity .12s; }
a.gtech:hover { opacity: .6; }
/* enlarge affordance — sits over the slot's top-right corner, light DOM (z above shadow) */
.gtile .expand {
  position: absolute; top: 0; right: 0; z-index: 3; width: 32px; height: 32px;
  display: grid; place-items: center; cursor: pointer; color: var(--fg);
  background: var(--bg); border: 0;
  border-left: var(--rule-w) solid var(--rule); border-bottom: var(--rule-w) solid var(--rule);
  opacity: 0; transition: opacity .12s, background .12s, color .12s;
}
.gtile:hover .expand, .gtile:focus-within .expand { opacity: 1; }
.gtile .expand:hover { background: var(--accent); color: var(--on-accent); }
.gtile:hover { z-index: 2; }
.gtile:hover .gname { color: var(--accent); }

/* lightbox overlay */
.lbox { position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: clamp(18px,5vw,72px);
  background: rgba(8,8,9,.86); }
.lbox.open { display: flex; }
.lbox .lbi { position: relative; width: 100%; max-width: 1040px; max-height: 100%;
  display: flex; flex-direction: column; background: var(--bg);
  border: var(--rule-w) solid var(--rule); box-shadow: 0 0 0 1px rgba(0,0,0,.4); }
.lbox .lbox-stage { flex: 1; min-height: 0; display: grid; place-items: center;
  background: var(--hair); overflow: hidden; }
.lbox .lbox-stage img { max-width: 100%; max-height: 72vh; display: block; }
.lbox .lbox-empty { display: none; flex-direction: column; align-items: center; gap: 10px;
  padding: clamp(40px,10vw,96px); text-align: center; color: var(--fg-2);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.lbox .lbox-empty svg { opacity: .4; }
.lbox .lbox-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 14px var(--pad); border-top: var(--rule-w) solid var(--rule); }
.lbox-title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(20px,3vw,32px); line-height: 1; letter-spacing: -.01em; }
.lbox-tech { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.lbox-close { position: absolute; top: 0; right: 0; width: 44px; height: 44px; z-index: 2;
  display: grid; place-items: center; cursor: pointer; color: var(--fg);
  background: var(--bg); border: 0; border-left: var(--rule-w) solid var(--rule);
  border-bottom: var(--rule-w) solid var(--rule); transition: background .12s, color .12s; }
.lbox-close:hover { background: var(--accent); color: var(--on-accent); }

@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
  .gallery { grid-template-columns: 1fr; }
  .gtile { border-right: 0; }
}

* {
    font-family: 'Space Mono', monospace !important;
}