/* ==========================================================================
   THE LAB v5 — GALLERY styles (ivory paper / deep ink / hot orange)
   ========================================================================== */
.lab { background:#F2ECDD; color:#1A1712; font-family:'TX-02','Courier New',monospace; }
.lab-mono { font-family:'Courier New',monospace; }

/* hero */
.lab-hero { position:relative; background:
  repeating-linear-gradient(0deg, transparent 0 39px, rgba(26,23,18,.05) 39px 40px),
  repeating-linear-gradient(90deg, transparent 0 39px, rgba(26,23,18,.05) 39px 40px),
  #F2ECDD; }
.lab-hero__content { max-width:1280px; margin:0 auto; padding:72px 32px 40px; }
.lab-kicker { font-size:11px; letter-spacing:.28em; text-transform:uppercase; opacity:.55; margin:0 0 10px; }
.lab-hero__title { font-size:clamp(56px,9vw,120px); line-height:.92; letter-spacing:-.01em; margin:8px 0 16px; font-weight:700; }
.lab-hero__sub { font-size:clamp(14px,1.5vw,18px); line-height:1.65; max-width:60ch; }

/* tabs */
.lab-tabs { position:sticky; top:0; z-index:30; display:flex; gap:2px; max-width:1280px;
  margin:0 auto; padding:0 32px; background:#F2ECDD; border-bottom:3px solid #1A1712; }
.lab-tab { appearance:none; border:2px solid #1A1712; border-bottom:none; background:transparent;
  font-family:'Courier New',monospace; font-size:12px; letter-spacing:.14em; text-transform:uppercase;
  padding:12px 20px 10px; cursor:pointer; opacity:.55; transform:translateY(3px); }
.lab-tab.is-on { background:#1A1712; color:#F2ECDD; opacity:1; transform:translateY(0); }

/* body shell */
.lab-body { max-width:1280px; margin:0 auto; padding:24px 32px 90px; }
.lab-ranknote { font-size:10.5px; letter-spacing:.08em; text-transform:uppercase; opacity:.6;
  margin:14px 0 22px; line-height:1.7; }
.lab-empty { padding:60px 0; opacity:.6; }

/* group chips */
.lab-rankbar { display:flex; flex-wrap:wrap; gap:8px; padding-top:8px; }
.lab-chip { appearance:none; cursor:pointer; border:1.5px solid #1A1712; background:transparent;
  font-family:'Courier New',monospace; font-size:11px; letter-spacing:.1em; padding:7px 13px;
  display:inline-flex; align-items:center; gap:7px; }
.lab-chip i { font-style:normal; font-size:9.5px; opacity:.55; }
.lab-chip.is-on { background:#D9531E; border-color:#D9531E; color:#F2ECDD; }

/* toolbar (save / export / clear) */
.lab-ranktools { display:flex; justify-content:space-between; align-items:center; gap:14px;
  flex-wrap:wrap; margin-top:16px; border-top:1px dashed rgba(26,23,18,.3); padding-top:12px; }
.lab-draghint { font-size:10.5px; letter-spacing:.08em; text-transform:uppercase; opacity:.65; }
.lab-rankbtns { display:flex; gap:8px; flex-wrap:wrap; }
.lab-btn { appearance:none; cursor:pointer; font-family:'Courier New',monospace; font-size:11px;
  letter-spacing:.12em; text-transform:uppercase; padding:8px 16px; border:2px solid #1A1712;
  background:#D9531E; color:#F2ECDD; transition:opacity .15s; }
.lab-btn:disabled { background:transparent; color:rgba(26,23,18,.4); border-color:rgba(26,23,18,.3);
  cursor:default; }
.lab-btn--ghost { background:transparent; color:#1A1712; }
.lab-btn--ghost:hover { background:#1A1712; color:#F2ECDD; }
.lab-btn--danger { background:transparent; color:#B03024; border-color:#B03024; }
.lab-btn--danger:hover { background:#B03024; color:#F2ECDD; }
.lab-unsaved { font-size:10.5px; color:#B03024; letter-spacing:.08em; text-transform:uppercase; margin:8px 0 0; }
.lab-flash { position:fixed; bottom:28px; right:28px; z-index:300; background:#1A1712; color:#F2ECDD;
  padding:12px 20px; font-size:12px; letter-spacing:.12em; text-transform:uppercase;
  box-shadow:6px 6px 0 rgba(217,83,30,.9); animation:labflash .25s ease; }
.lab-flash.out { opacity:0; transform:translateY(8px); transition:all .45s ease; }
@keyframes labflash { from { transform:translateY(10px); opacity:0; } to { transform:none; opacity:1; } }

/* ---------- THE GALLERY ---------- */
.lab-gallery { columns:280px 3; column-gap:18px; margin-top:20px; }
.lab-gcard { break-inside:avoid; display:inline-block; width:100%; margin:0 0 18px; position:relative;
  border:2px solid #1A1712; background:#FFFDF6; cursor:grab; overflow:hidden; }
.lab-gcard:active { cursor:grabbing; }
.lab-gcard img { width:100%; display:block; }
.lab-gcard:hover img { opacity:.12; }
.lab-ginfo { position:absolute; inset:auto 0 0 0; max-height:100%; overflow:hidden auto; padding:14px;
  background:linear-gradient(transparent, rgba(26,23,18,.96) 26%); color:#F2ECDD;
  opacity:0; transition:opacity .18s ease; pointer-events:none; display:flex; flex-direction:column; gap:7px; }
.lab-gcard:hover .lab-ginfo { opacity:1; }
.lab-ginfo b { font-size:13px; letter-spacing:.05em; text-transform:uppercase; }
.lab-ginfo .lab-mono { font-size:10px; letter-spacing:.06em; opacity:.75; }
.lab-gprompt { font-size:11px; line-height:1.55; color:rgba(242,236,221,.92); display:block; }
.lab-gsrc { font-size:9.5px !important; opacity:.5 !important; word-break:break-all; }

/* rank badges + drag states */
.lab-grank { position:absolute; top:10px; left:10px; z-index:3; background:#F2ECDD; color:#1A1712;
  border:1.5px solid #1A1712; font-size:10px; letter-spacing:.05em; padding:2px 8px; }
.is-top10 .lab-grank { background:#B03024; color:#F2ECDD; border-color:#B03024; font-weight:700; }
.lab-gpos { position:absolute; top:10px; right:10px; z-index:3; background:#F2ECDD; color:#1A1712;
  border:1.5px solid #1A1712; font-size:10px; padding:2px 8px; opacity:.85; }
.lab-gcard.is-top10 { border-color:#B03024; box-shadow:4px 4px 0 rgba(176,48,36,.35); }
.lab-gcard.is-dragging { opacity:.35; outline:2px dashed #D9531E; }
.lab-gcard.drop-before { outline:3px dashed #D9531E; outline-offset:-3px; }

/* ideas */
.lab-ideas-head { display:flex; justify-content:space-between; align-items:center; gap:14px;
  font-size:11px; letter-spacing:.1em; text-transform:uppercase; opacity:.85; margin-bottom:18px; }
.lab-proj { margin-bottom:34px; border-top:2px solid #1A1712; }
.lab-proj__head { display:flex; justify-content:space-between; align-items:baseline; padding:14px 0 10px; }
.lab-proj__head h3 { margin:0; font-size:17px; letter-spacing:.12em; text-transform:uppercase; }
.lab-proj__head a { color:inherit; text-decoration:none; border-bottom:2px solid #D9531E; }
.lab-proj__head .lab-mono { font-size:11px; opacity:.6; letter-spacing:.1em; }
.lab-idea { display:flex; gap:14px; padding:13px 0; border-top:1px dashed rgba(26,23,18,.25); }
.lab-check { position:relative; min-width:22px; height:22px; cursor:pointer; margin-top:2px; }
.lab-check input { position:absolute; inset:0; opacity:0; cursor:pointer; margin:0; }
.lab-check span { position:absolute; inset:0; border:2px solid #1A1712; background:#FFFDF6; display:block; }
.lab-check input:checked + span { background:#1A1712; }
.lab-check input:checked + span::after { content:''; position:absolute; left:6px; top:1px; width:5px; height:11px;
  border:solid #F2ECDD; border-width:0 2.5px 2.5px 0; transform:rotate(45deg); }
.lab-idea h4 { margin:0 0 4px; font-size:13.5px; letter-spacing:.04em; }
.lab-idea p { margin:0 0 7px; font-size:12px; line-height:1.6; color:rgba(26,23,18,.78); max-width:78ch; }
.lab-idea.is-done h4 { text-decoration:line-through; opacity:.45; }
.lab-idea.is-done p { opacity:.35; }
.lab-sources { display:flex; flex-wrap:wrap; gap:7px; }
.lab-src { font-size:10px; letter-spacing:.06em; text-transform:uppercase; border:1px solid rgba(26,23,18,.4);
  padding:3px 8px; color:inherit; text-decoration:none; }
a.lab-src:hover { background:#1A1712; color:#F2ECDD; border-color:#1A1712; }
.lab-src--int { border-style:dashed; opacity:.65; }

/* research */
.lab-research { display:flex; flex-direction:column; }
.lab-res { display:flex; gap:18px; padding:17px 4px; border-top:1px dashed rgba(26,23,18,.3);
  color:inherit; text-decoration:none; align-items:flex-start; }
.lab-res:first-child { border-top:none; }
.lab-res:hover { background:rgba(217,83,30,.07); }
.lab-res__rank { font-size:15px; font-weight:700; color:#D9531E; min-width:34px; padding-top:2px; }
.lab-res__main { display:block; }
.lab-res__main b { font-size:14.5px; letter-spacing:.06em; text-transform:uppercase; display:inline-block; }
.lab-res__main i { font-style:normal; font-size:10px; opacity:.55; margin-left:10px; letter-spacing:.05em; }
.lab-res__main p { font-size:11.5px; line-height:1.6; color:rgba(26,23,18,.78); max-width:86ch; margin:5px 0 8px; }
.lab-res__borrow { font-size:11px; line-height:1.55; color:#B03024; display:block; max-width:86ch; }
.lab-res__borrow b { font-size:10px; letter-spacing:.14em; text-transform:uppercase; }

/* lightbox */
.lab-lightbox { position:fixed; inset:0; z-index:200; background:rgba(20,18,15,.94);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; cursor:zoom-out; padding:30px; }
.lab-lightbox[hidden] { display:none; }
.lab-lightbox img { max-width:min(1600px,94vw); max-height:82vh; border:3px solid #F2ECDD;
  box-shadow:0 24px 80px rgba(0,0,0,.6); }
.lab-lightbox figcaption { color:#F2ECDD; font-size:12px; letter-spacing:.1em; text-transform:uppercase; opacity:.85; }
.lab-lightbox p { color:#F2ECDD; font-size:10px; letter-spacing:.2em; text-transform:uppercase; opacity:.5; margin:0; }

/* responsive */
@media (max-width:900px) {
  .lab-gallery { columns:220px 2; column-gap:12px; }
  .lab-body { padding:20px 18px 70px; }
  .lab-tabs { padding:0 18px; overflow-x:auto; }
}
@media (max-width:560px) {
  .lab-gallery { columns:1; }
}

/* ---------- EXP — EFFECT EXPERIMENTS ---------- */
.fx-list { margin-top:6px; }
.fx-row { display:flex; gap:16px; align-items:flex-start; padding:14px 4px;
  border-top:1px dashed rgba(26,23,18,.3); }
.fx-row__num { font-size:15px; font-weight:700; color:#D9531E; min-width:30px; padding-top:2px; }
.fx-row__main { flex:1; min-width:0; }
.fx-row__main h4 { margin:0 0 4px; font-size:13.5px; letter-spacing:.04em; text-transform:uppercase; }
.fx-row__main p { margin:0; font-size:12px; line-height:1.6; color:rgba(26,23,18,.78); max-width:86ch; }
.fx-row__side { display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.fx-row.is-live { background:rgba(217,83,30,.06); box-shadow:inset 3px 0 0 #D9531E; }
.fx-chip { font-size:9.5px; letter-spacing:.14em; border:1.5px solid rgba(26,23,18,.4); padding:3px 8px; }
.fx-row.is-live .fx-chip { background:#1A1712; color:#F2ECDD; border-color:#1A1712; }

/* EXP run window — modal with its OWN scroller: progress starts at 0 inside,
   both directions live; page scroll parked while open */
.fx-modal { position:fixed; inset:0; z-index:300; background:rgba(10,9,7,.97);
  display:flex; flex-direction:column; }
.fx-modal__bar { display:flex; justify-content:space-between; align-items:center; gap:14px;
  padding:12px 20px; border-bottom:2px solid #D9531E; color:#F2ECDD;
  font-size:10.5px; letter-spacing:.2em; text-transform:uppercase; }
.fx-modal__hint { opacity:.55; }
.fx-modal__bar .lab-btn { flex-shrink:0; }
.fx-modal__scroller { position:relative; flex:1; overflow-y:auto; overflow-x:hidden;
  overscroll-behavior:contain; }
.fx-modal__track { position:relative; height:360vh; }
.fx-modal__scroller .fx1__viewport { position:sticky; top:0; overflow:hidden; background:#000; }
.fx1__canvas { position:absolute; inset:0; width:100%; height:100%; display:block; z-index:1; }

/* the projected composition (rasterized by the engine; canvas sits above it) *//* sheet dossier layout (copy + sensor plate placeholder) */
.fx1-sheet__grid { display:grid; grid-template-columns:1.25fr 1fr; gap:44px; align-items:start; margin:auto 0; }
.fx1-sheet__title-line { font-size:clamp(18px,2.2vw,30px); letter-spacing:.34em;
  color:#D9531E; margin:14px 0 20px; text-transform:uppercase; font-weight:700; }
.fx1-sheet__body { max-width:52ch; font-size:13.5px; line-height:1.7; color:rgba(242,236,221,.8); margin:18px 0 22px; }
.fx1-sheet__stamprow { display:flex; align-items:center; gap:10px; margin-top:20px; }
.fx1-sheet__stamp { width:46px; height:10px; display:inline-block; }
.fx1-sheet__stamp--red { background:#D9531E; }
.fx1-sheet__stamp--navy { background:#27406B; }
.fx1-sheet__stamp--sage { background:#3E7C6B; }
.fx1-sheet__stamp--ink { background:#1A1712; }
.fx1-sheet__stampidx { font-size:10px; letter-spacing:.22em; color:rgba(242,236,221,.6); margin-left:8px; }
.fx1-sheet__plate { margin:0; }
.fx1-sheet__plate-frame { position:relative; aspect-ratio:16/10; border:2px solid rgba(242,236,221,.5); background:
  repeating-linear-gradient(0deg, transparent 0 27px, rgba(242,236,221,.07) 27px 28px),
  repeating-linear-gradient(90deg, transparent 0 27px, rgba(242,236,221,.07) 27px 28px),
  rgba(242,236,221,.03); }
.fx1-sheet__plate-cross-h { position:absolute; left:8%; right:8%; top:50%; height:1px; background:rgba(242,236,221,.4); }
.fx1-sheet__plate-cross-v { position:absolute; top:10%; bottom:10%; left:50%; width:1px; background:rgba(242,236,221,.4); }
.fx1-sheet__plate-tag { position:absolute; top:10px; left:12px; font-size:9.5px; letter-spacing:.22em; color:rgba(242,236,221,.75); }
.fx1-sheet__plate-status { position:absolute; top:10px; right:12px; font-size:9.5px; letter-spacing:.22em; color:#D9531E; }
.fx1-sheet__plate-coords { position:absolute; bottom:10px; left:12px; font-size:9px; letter-spacing:.18em; color:#7FA0D0; }
.fx1-sheet__plate figcaption { margin-top:10px; font-size:9.5px; letter-spacing:.2em; color:rgba(242,236,221,.6); }


.fx1-sheet { position:absolute; inset:0; z-index:0; background:#000; padding:0; }
.fx1-sheet.is-rastered { opacity:0; }
.fx1-sentence { position:absolute; left:50%; top:50%; width:46%;
  transform:translate(-50%,-50%); margin:0; padding:0; text-align:center; pointer-events:none; }
.fx1-sentence h1 { margin:0; padding:0; color:#ffffff; font-family:Georgia,'Times New Roman',Times,serif;
  font-weight:700; font-size:clamp(32px, 4.6vw, 72px); line-height:1.82; letter-spacing:.02em;
  text-transform:uppercase; font-style:normal; width:100%; text-align:center; }
.fx1-apos { display:inline; color:inherit; }
.fx1-sheet__top { display:flex; justify-content:space-between; font-size:11px;
  letter-spacing:.28em; opacity:.85; border-bottom:2px solid #D9531E; padding-bottom:14px; }
.fx1-sheet__giant { font-size:clamp(64px,10vw,150px); line-height:.9; letter-spacing:-.01em;
  margin:0 0 10px; font-weight:700; }
.fx1-sheet__giant-em { color:#D9531E; }
.fx1-sheet__specs { list-style:none; margin:0; padding:0; display:flex; gap:28px; flex-wrap:wrap; }
.fx1-sheet__specs li { border-left:2px solid #D9531E; padding-left:12px;
  font-size:11px; letter-spacing:.12em; }
.fx1-sheet__specs li:nth-of-type(2) { border-color:#27406B; }
.fx1-sheet__specs li:nth-of-type(3) { border-color:#3E7C6B; }
.fx1-sheet__specs li:nth-of-type(4) { border-color:#1A1712; }
.fx1-sheet__specs b { display:block; opacity:.6; font-size:9.5px; letter-spacing:.2em;
  margin-bottom:3px; font-weight:400; }
.fx1-sheet__foot { display:flex; justify-content:space-between; font-size:10px;
  letter-spacing:.22em; opacity:.75; border-top:2px solid #1A1712; padding-top:14px; }

/* HUD overlay */
.fx1-hud { position:absolute; inset:0; z-index:2; pointer-events:none; }
.fx1-hud__corner { position:absolute; width:26px; height:26px; border:2px solid rgba(242,236,221,.5); }
.fx1-hud__corner--tl { top:14px; left:14px; border-right:none; border-bottom:none; }
.fx1-hud__corner--tr { top:14px; right:14px; border-left:none; border-bottom:none; }
.fx1-hud__corner--bl { bottom:14px; left:14px; border-right:none; border-top:none; }
.fx1-hud__corner--br { bottom:14px; right:14px; border-left:none; border-top:none; }
.fx1-hud__tag { position:absolute; top:20px; left:52px; font-size:10px; letter-spacing:.24em;
  color:rgba(242,236,221,.75); }
.fx1-hud__stat { position:absolute; top:20px; right:52px; font-size:10px; letter-spacing:.24em;
  color:#D9531E; }
.fx1-hud__readout { position:absolute; bottom:20px; left:52px; display:flex; gap:18px;
  font-size:10px; letter-spacing:.18em; color:rgba(242,236,221,.8); }
.fx1-hud__readout i { font-style:normal; }
.fx1-hud__track { position:absolute; bottom:24px; right:52px; width:220px; height:3px;
  background:rgba(242,236,221,.2); }
.fx1-hud__bar { display:block; height:100%; width:0; background:#D9531E; transition:width .1s linear; }

@media (max-width:900px) {
  .fx1-sheet { padding:0; }
  .fx1-sentence h1 { font-size:clamp(28px, 7.5vw, 64px); }
  .fx1-sheet__grid { grid-template-columns:1fr; gap:26px; }
  .fx1-hud__tag { left:18px; }
  .fx1-hud__stat { right:18px; }
  .fx1-hud__readout { left:18px; }
  .fx1-hud__track { right:18px; width:130px; }
}

/* ---- EXP-02 relight run window ---- */
.fx-modal__stage { position:relative; flex:1; overflow:hidden; background:#000; }

/* EXP-08 v12 — run-window control bar (invert toggle + effect sliders) */
.fx-modal__ctrl { display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px;
  padding:10px 20px; border-top:1px solid rgba(242,236,221,.5); color:#F2ECDD;
  font-size:10px; letter-spacing:.18em; text-transform:uppercase; }
.fx-modal__ctrl .lab-btn { padding:5px 10px; }
.fx8-slider { display:inline-flex; align-items:center; gap:7px; white-space:nowrap; }
.fx8-slider input[type=range] { width:90px; accent-color:#D9531E; height:14px; cursor:pointer; }
.fx8-slider i { font-style:normal; min-width:38px; text-align:right; opacity:.8; }
.fx2__canvas { position:absolute; inset:0; width:100%; height:100%; display:block; cursor:crosshair; }

/* ---- EXP-02 slider control panel ---- */
.fx2-ctl { position:absolute; left:14px; bottom:46px; z-index:3; display:flex; flex-direction:column; gap:5px; padding:10px 12px; background:rgba(10,9,7,.85); border:1px solid rgba(242,236,221,.25); font-size:10px; letter-spacing:.08em; color:rgba(242,236,221,.85); }
.fx2-ctl label { display:flex; align-items:center; gap:10px; justify-content:space-between; cursor:pointer; }
.fx2-ctl input[type=range] { width:130px; accent-color:#D9531E; background:transparent; }
.fx2-ctl__t { color:#D9531E; font-size:9px; letter-spacing:.2em; margin-top:3px; }
.fx2-ctl__val { opacity:.55; font-size:9px; letter-spacing:.12em; }

/* ---- EXP-04: MORPHING EFFECT CANVAS 2D (codrops Luma port) ---- */
.fx4__canvas { position:absolute; inset:0; width:100%; height:100%; display:block; background:#0a0907; }
.fx4-chips { position:absolute; left:50%; bottom:18px; transform:translateX(-50%); z-index:3;
  display:flex; gap:8px; padding:10px 12px; background:rgba(10,9,7,.88); border:1px solid rgba(242,236,221,.25); }
.fx4-chip { appearance:none; background:transparent; border:1px solid rgba(242,236,221,.35); color:#F2ECDD;
  cursor:pointer; padding:5px 7px 6px; display:flex; flex-direction:column; align-items:center; gap:5px;
  font-family:'Courier New',monospace; }
.fx4-chip img { width:52px; height:30px; display:block; object-fit:cover; opacity:.82; }
.fx4-chip__nm { font-size:8.5px; letter-spacing:.14em; color:rgba(242,236,221,.75); }
.fx4-chip.is-on { border-color:#D9531E; }
.fx4-chip.is-on img { opacity:1; }
.fx4-chip.is-on .fx4-chip__nm { color:#D9531E; }
.fx4-ctl { position:absolute; right:14px; bottom:18px; z-index:3; display:flex; align-items:center; gap:8px;
  padding:8px 10px; background:rgba(10,9,7,.88); border:1px solid rgba(242,236,221,.25); }
.fx4-ctl .lab-btn { border-color:rgba(242,236,221,.45); color:#F2ECDD; }
.fx4-ctl .lab-btn:hover { background:#D9531E; border-color:#D9531E; color:#F2ECDD; }
@media (max-width:900px) {
  .fx4-chips { gap:4px; bottom:10px; padding:6px 8px; }
  .fx4-chip img { width:36px; height:21px; }
  .fx4-ctl { right:10px; bottom:10px; }
}

/* ---- EXP-05: DEVICE SHOWCASE (constrained iPhone, C50 app stills) ---- */
.fx05__canvas { position:absolute; inset:0; width:100%; height:100%; display:block; background:#F2ECDD; cursor:grab; }
.fx05__canvas.is-drag { cursor:grabbing; }
.fx05-plt.is-on { background:#D9531E; border-color:#D9531E; color:#F2ECDD; }
.fx-modal--fx05 .fx-modal__stage { background:#F2ECDD; }
.fx-modal--fx05 .fx1-hud__corner { border-color:rgba(26,23,18,.32); }
.fx-modal--fx05 .fx1-hud__tag { color:rgba(26,23,18,.7); }
.fx-modal--fx05 .fx1-hud__stat { color:#D9531E; }
.fx-modal--fx05 .fx1-hud__readout { color:rgba(26,23,18,.72); }
.fx-modal--fx05 .fx1-hud__track { background:rgba(26,23,18,.18); }
.fx-modal--fx05 .fx-modal__ctrl { color:#1A1712; border-top-color:rgba(26,23,18,.18); }

/* ---- EXP-08: TOXIC GRADIENT BONE (EXO outsole, VFX-JS grain gradient) ---- */
.fx8__canvas { position:absolute; inset:0; width:100%; height:100%; display:block; background:#000; }

/* ---- EXP-15: BAROPODOMETRY (EXO gait pressure, abstract-realism print) ---- */
.fx15__canvas { position:absolute; inset:0; width:100%; height:100%; display:block; background:#000; cursor:crosshair; }
.fx15-view.is-on, .fx15-mode.is-on, .fx15-look.is-on, .fx15-sten.is-on { background:#D9531E; border-color:#D9531E; color:#F2ECDD; }
.fx-modal--fx15 .fx8-slider input[type=range] { width:96px; }
.fx-modal--fx15 #fx15-cad { width:130px; }
.fx-modal--fx15 .fx15-look { letter-spacing:.12em; padding:5px 8px; }
.fx15-call {
  position:absolute; left:18px; bottom:20px; z-index:4;
  color:rgba(242,236,221,.62); font-size:10px; letter-spacing:.14em;
  pointer-events:none; text-transform:uppercase;
}
.fx15-split {
  position:absolute; left:0; right:0; top:48%; z-index:4;
  display:flex; justify-content:space-around;
  pointer-events:none; color:rgba(242,236,221,.7);
  font-size:11px; letter-spacing:.22em;
}
.fx-modal--fx15.is-paper .fx1-hud__tag,
.fx-modal--fx15.is-paper .fx1-hud__stat,
.fx-modal--fx15.is-paper .fx1-hud__readout,
.fx-modal--fx15.is-paper .fx1-hud__readout i,
.fx-modal--fx15.is-paper .fx15-call,
.fx-modal--fx15.is-paper .fx15-split { color:rgba(26,23,18,.72); }
.fx-modal--fx15.is-paper .fx1-hud__corner { border-color:rgba(26,23,18,.35); }
.fx-modal--fx15.is-paper .fx1-hud__track { background:rgba(26,23,18,.16); }
.fx-modal--fx15.is-paper .fx1-hud__bar { background:#1A1712; }
.fx15-split[hidden] { display:none !important; }
.fx15-scale {
  position:absolute; right:16px; top:58px; bottom:58px; z-index:4;
  width:28px; display:flex; flex-direction:column; align-items:center;
  gap:6px; pointer-events:none; color:rgba(242,236,221,.55); font-size:9px;
  letter-spacing:.08em;
}
.fx15-scale__bar {
  flex:1; width:8px;
  background:linear-gradient(to top,#080403 0%,#470d05 16%,#9e280a 32%,#e66b14 50%,#2ec7e0 68%,#8cf3ff 84%,#fff 100%);
  box-shadow:0 0 12px rgba(46,199,224,.18);
}

/* ---- EXP-12: THERMAL HATCH DEPTH (TED print scan) ---- */
.fx12__canvas { position:absolute; inset:0; width:100%; height:100%; display:block; background:#000; }
.fx12-plt.is-on { background:#D9531E; border-color:#D9531E; color:#F2ECDD; }

/* ---- EXP-13: NEEDLEWORK SAMPLER (Anna Lucia 33 million grammar) ---- */
.fx13__canvas { position:absolute; inset:0; width:100%; height:100%; display:block; background:#F1E3DA; }
.fx13-plt.is-on { background:#D9531E; border-color:#D9531E; color:#F2ECDD; }
#fx13-save.is-saved { background:#D9531E; border-color:#D9531E; color:#F2ECDD; }
.fx-modal--fx13 .fx-modal__stage { background:#E8DCCE; }
.fx-modal--fx13 .fx1-hud__corner { border-color:rgba(26,23,18,.32); }
.fx-modal--fx13 .fx1-hud__tag { color:rgba(26,23,18,.7); }
.fx-modal--fx13 .fx1-hud__stat { color:#D9531E; }
.fx-modal--fx13 .fx8-slider input[type=range] { width:72px; }
.fx-modal--fx13 #fx13-cell { width:110px; }
.fx-modal--fx13 #fx13-band { width:110px; }

/* ---- EXP-14: FALSE-COLOR SPLAT (Hornet, 留白 void + ink gaussians) ---- */
.fx14__canvas { position:absolute; inset:0; width:100%; height:100%; display:block; background:#000; }
.fx14-plt.is-on, .fx14-pal.is-on { background:#D9531E; border-color:#D9531E; color:#F2ECDD; }
#fx14-save.is-saved { background:#D9531E; border-color:#D9531E; color:#F2ECDD; }
.fx-modal--fx14 .fx8-slider input[type=range] { width:72px; }

/* ---- EXP-16: INTERLACED GLITCH BANDS (EXO CRT registers) ---- */
.fx16__canvas { position:absolute; inset:0; width:100%; height:100%; display:block; background:#000; }
.fx16-plt.is-on, .fx16-sten.is-on, .fx16-io.is-on { background:#D9531E; border-color:#D9531E; color:#F2ECDD; }
#fx16-save.is-saved { background:#D9531E; border-color:#D9531E; color:#F2ECDD; }
.fx-modal--fx16 .fx8-slider input[type=range] { width:168px; }

/* ---- EXP-17: P5 BRUSHES (score / schematic / balloon) ---- */
.fx-modal--fx17 .fx-modal__stage { background:#fff; }
.fx17__frame { position:absolute; inset:0; width:100%; height:100%; border:0; display:block; background:#fff; z-index:1; }
.fx-modal--fx17 .fx1-hud { z-index:2; }
.fx-modal--fx17 .fx1-hud__corner { border-color:rgba(26,23,18,.28); }
.fx-modal--fx17 .fx1-hud__tag { color:rgba(26,23,18,.55); }
.fx-modal--fx17 .fx1-hud__stat { color:#D9531E; }
.fx-modal--fx17 .fx1-hud__readout { color:rgba(26,23,18,.55); }
.fx17-brush.is-on, .fx17-col.is-on, .fx17-sty.is-on, #fx17-mirror.is-on, #fx17-erase.is-on, #fx17-keys.is-on {
  background:#D9531E; border-color:#D9531E; color:#F2ECDD; }
#fx17-save.is-saved { background:#D9531E; border-color:#D9531E; color:#F2ECDD; }

/* ---- EXP-18: FROSTED PANE (EXO capsules + sharp outsole) ---- */
.fx18__canvas { position:absolute; inset:0; width:100%; height:100%; display:block; background:#d9ddd6; touch-action:none; }
.fx-modal--fx18 .fx-modal__stage { background:#d9ddd6; }
body:has(.fx-modal--fx18) .cursor-cross,
body:has(.fx-modal--fx18) .cursor-ring { display:none !important; }
.fx-modal--fx18,
.fx-modal--fx18 * { cursor: auto !important; }
.fx-modal--fx18 .fx18__canvas { cursor: grab !important; }
.fx-modal--fx18.is-grabbing .fx18__canvas { cursor: grabbing !important; }
.fx-modal--fx18 .lab-btn,
.fx-modal--fx18 button,
.fx-modal--fx18 input[type=range] { cursor: pointer !important; }
.fx-modal--fx18 .fx1-hud__corner { border-color:rgba(26,23,18,.28); }
.fx-modal--fx18 .fx1-hud__tag { color:rgba(26,23,18,.55); }
.fx-modal--fx18 .fx1-hud__stat { color:#D9531E; }
.fx-modal--fx18 .fx1-hud__readout { color:rgba(26,23,18,.55); }
.fx18-body.is-on, #fx18-hair.is-on, #fx18-orig.is-on {
  background:#D9531E; border-color:#D9531E; color:#F2ECDD; }
#fx18-save.is-saved { background:#D9531E; border-color:#D9531E; color:#F2ECDD; }
.fx-modal--fx18 .fx8-slider input[type=range] { width:110px; }
.fx-modal--fx18.is-sole .fx18-only-pill { display:none; }
.fx-modal--fx18.is-pill .fx18-only-sole { display:none; }

/* ---- EXP-19: MODULAR PRINT PRIMITIVES (cream paper kit) ---- */
.fx19__canvas { position:absolute; inset:0; width:100%; height:100%; display:block; background:#F2ECDD; }
.fx-modal--fx19 .fx-modal__stage { background:#F2ECDD; }
.fx-modal--fx19 .fx1-hud__corner { border-color:rgba(26,23,18,.28); }
.fx-modal--fx19 .fx1-hud__tag { color:rgba(26,23,18,.55); }
.fx-modal--fx19 .fx1-hud__stat { color:#D9531E; }
.fx-modal--fx19 .fx1-hud__readout { color:rgba(26,23,18,.55); }
.fx19-sten.is-on, .fx19-io.is-on { background:#D9531E; border-color:#D9531E; color:#F2ECDD; }
#fx19-save.is-saved { background:#D9531E; border-color:#D9531E; color:#F2ECDD; }
.fx-modal--fx19 .fx8-slider input[type=range] { width:120px; }

/* ---- EXP-20: PIXEL-MASK HEATMAP (EXO occupancy, cream paper) ---- */
.fx20__video { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; opacity:0; pointer-events:none; z-index:0; }
.fx20__canvas { position:absolute; inset:0; width:100%; height:100%; display:block; background:#FAFAFA; z-index:1; }
.fx-modal--fx20 .fx-modal__stage { background:#FAFAFA; }
.fx-modal--fx20 .fx1-hud__corner { border-color:rgba(20,20,20,.22); }
.fx-modal--fx20 .fx1-hud__tag { color:rgba(20,20,20,.45); }
.fx-modal--fx20 .fx1-hud__stat { color:#D9531E; }
.fx-modal--fx20 .fx1-hud__readout { color:rgba(20,20,20,.45); }
.fx20-sten.is-on, .fx20-io.is-on, .fx20-look.is-on, .fx20-pal.is-on { background:#D9531E; border-color:#D9531E; color:#F2ECDD; }
#fx20-save.is-saved { background:#D9531E; border-color:#D9531E; color:#F2ECDD; }
.fx-modal--fx20 .fx8-slider input[type=range] { width:110px; }

/* ---- EXP-03: GRID -> FULL PREVIEW (codrops GridToFullPreview port) ---- */
.fx3-stage { height:100%; width:100%; }
.fx3-products { --page-padding:1.5rem; position:relative; width:100%; height:100%; padding:var(--page-padding); display:flex; align-items:center; justify-content:center; }
.fx3-products__grid, .fx3-products__preview {
  height:100%; width:100%; display:grid; padding:48px;
  grid-template-columns:repeat(4,1fr); grid-template-rows:repeat(var(--fx3-rows,2),1fr);
  row-gap:5vw; column-gap:5vw;
}
.fx3-products__grid { position:relative; }
.fx3-products__preview {
  position:absolute; inset:var(--page-padding);
  height:calc(100% - var(--page-padding) * 2); width:calc(100% - var(--page-padding) * 2);
  pointer-events:none; z-index:2;
}
.fx3-product { position:relative; display:block; width:100%; height:100%; contain:size; cursor:pointer; }
.fx3-product:hover .fx3-product__cta { opacity:1; }
.fx3-product__cta {
  opacity:0; transition:all .1s ease-out;
  position:absolute; top:50%; left:0; right:0; z-index:5; padding:10px 0;
  background:rgba(0,0,0,.8); color:rgba(242,236,221,.95); text-align:center;
  transform:translateY(-50%); pointer-events:none;
  font-size:11px; letter-spacing:.14em; text-transform:uppercase;
}
.fx3-products img { position:relative; object-fit:cover; width:100%; height:100%; display:block; }
.fx3-preview { height:100%; width:100%; position:relative; grid-column:auto/span 2; grid-row:1/span 2; opacity:0; }
.fx3-preview__inside { position:absolute; top:0; right:0; bottom:0; left:0; height:100%; width:100%; background:#0a0907; }
.fx3-preview__images { display:grid; grid-template-columns:auto; grid-template-rows:auto; width:100%; height:100%; overflow:hidden; }
.fx3-preview__images > img { grid-column:1; grid-row:1; width:100%; height:100%; object-fit:cover; opacity:0; }
.fx3-preview__details {
  z-index:3; position:absolute; top:calc(100% + 8px); left:0; width:100%;
  display:flex; justify-content:space-between; gap:2rem;
  color:rgba(242,236,221,.9); font-size:12px; letter-spacing:.08em; text-transform:uppercase;
}
.fx3-preview__lead { flex:1; min-width:0; }
.fx3-preview__client { color:rgba(242,236,221,.55); font-size:10px; letter-spacing:.14em; }
.fx3-preview__copy { color:rgba(242,236,221,.75); font-size:11px; line-height:1.5; letter-spacing:.01em; text-transform:none; margin-top:6px; max-width:54ch; }
.fx3-preview__aside { text-align:right; white-space:nowrap; }
.fx3-preview__kind { color:rgba(242,236,221,.55); font-size:9.5px; letter-spacing:.14em; margin-top:8px; }
.fx3-preview__kind span { border:1px solid rgba(242,236,221,.25); padding:3px 6px; }
.fx3-preview__kind em { font-style:normal; margin-left:8px; }
.fx3-disclaimer { display:none; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); color:rgba(242,236,221,.5); }
@media (max-width: 899px) {
  .fx3-products__grid, .fx3-products__preview { display:none; }
  .fx3-disclaimer { display:block; }
}

/* ---- EXP-07: TELESCOPE ZOOM (Codrops layered dive, TED cockpit) ---- */
.fx-modal--fx07 .fx-modal__track { height: 240vh; }
.fx-modal--fx07 .fx7-viewport { position:sticky; top:0; overflow:hidden; background:#000; }
.fx7-section { position:relative; width:100%; height:100%; display:flex; align-items:center;
  justify-content:center; overflow:hidden; --progress:0; isolation:isolate; }
.fx7-section.is-loading .fx7-title,
.fx7-section.is-loading .fx7-floats { opacity:0; }
.fx7-media { position:absolute; inset:0; z-index:1; transform:scale(var(--progress));
  transform-origin:50% 50%; will-change:transform; }
.fx7-back, .fx7-front { position:absolute; inset:0; transform-origin:50% 50%; }
.fx7-front { filter:blur(2px); will-change:transform, filter; pointer-events:none; }
.fx7-front--1 { transform:scale(1); z-index:2; }
.fx7-front--2 { transform:scale(0.85); z-index:3; }
.fx7-front--3 { transform:scale(0.6); z-index:4; }
.fx7-front--4 { transform:scale(0.45); z-index:5; }
.fx7-front--5 { transform:scale(0.3); z-index:6; }
.fx7-front--6 { transform:scale(0.15); z-index:7; }
.fx7-media img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  object-position:50% 50%; display:block; }
.fx7-front img { mix-blend-mode:multiply; }
.fx7-title { position:relative; z-index:6; display:flex; margin:0; padding:0;
  font-size:clamp(22px, 3.2vw, 52px); font-weight:600; letter-spacing:.08em;
  text-transform:uppercase; color:#F2ECDD; transform:translateY(-15%);
  pointer-events:none; text-shadow:0 2px 28px rgba(0,0,0,.55); }
.fx7-title span { display:inline-block; }
.fx7-title .left { transform:translate3d(calc(var(--progress) * (-66vw + 100%) - 0.5vw), 0, 0); }
.fx7-title .right { transform:translate3d(calc(var(--progress) * (66vw - 100%)), 0, 0); }
.fx7-floats { position:absolute; inset:0; z-index:2; perspective:100vh; pointer-events:none; }
.fx7-floats img { position:absolute; width:10vw; height:13vw; object-fit:cover; display:block;
  box-shadow:0 12px 40px rgba(0,0,0,.35); }
.fx7-floats img:nth-of-type(1) { top:15vw; left:-3vw; }
.fx7-floats img:nth-of-type(2) { top:5vw; left:20vw; }
.fx7-floats img:nth-of-type(3) { top:8vw; left:26.5vw; }
.fx7-floats img:nth-of-type(4) { top:18vw; right:18vw; }
.fx7-floats img:nth-of-type(5) { top:5vw; right:10vw; }
.fx7-floats img:nth-of-type(6) { bottom:5vw; left:10vw; }
.fx7-floats img:nth-of-type(7) { bottom:8vw; left:22.5vw; }
.fx7-floats img:nth-of-type(8) { bottom:3vw; left:45vw; }
.fx7-floats img:nth-of-type(9) { bottom:5vw; right:15vw; }
.fx7-floats img:nth-of-type(10) { bottom:9vw; right:7vw; }
@media (max-width:768px) {
  .fx7-title { font-size:8vw; }
  .fx7-title .left { transform:translate3d(calc(var(--progress) * (-100vw + 100%) - 0.5vw), 0, 0); }
  .fx7-title .right { transform:translate3d(calc(var(--progress) * (100vw - 100%)), 0, 0); }
  .fx7-floats img { width:20vw; height:26vw; }
  .fx7-floats img:nth-of-type(3) { top:30vw; left:30vw; }
  .fx7-floats img:nth-of-type(4) { right:15vw; top:30vw; }
  .fx7-floats img:nth-of-type(5) { top:10vw; right:5vw; }
  .fx7-floats img:nth-of-type(6) { left:5vw; }
  .fx7-floats img:nth-of-type(7) { left:10vw; bottom:27.5vw; }
  .fx7-floats img:nth-of-type(8) { bottom:10vw; left:35vw; }
  .fx7-floats img:nth-of-type(10) { right:3vw; bottom:22vw; }
}
