/*
 * Susz portfolio, "Toxic Bone" theme (palette P2).
 * Ported from the approved mockup design/d2. Class names follow the mockup verbatim;
 * the extra hooks (menu overlay, hero poster, work-item/work-toggle/work-panel/work-tray,
 * venom-slot/venom-frame/btn-goo) are the contract with render.js.
 * Every colour lives in :root. Breakpoints: 1080, 900, 560.
 */
@property --dot { syntax: '<length>'; inherits: false; initial-value: 9px; }

:root {
  /* palette P2 */
  --void: #000000;
  --page: #0A0B08;
  --surface: #12140E;
  --surface2: #1C1F15;
  --line: #2E3323;
  --line-strong: #6F7756;
  --text: #EAE4D3;
  --muted: #BCB8A5;
  --dim: #A39F8C;
  --acid: #C6FF3D;
  --toxic: #7CFF3A;
  --bile: #E6FF7A;
  --bone: #EAE4D3;
  --bone-dim: #D2CBB6;
  --ink: #0A0B08;
  --ink-muted: #59573F;

  /* derived values (gradients, glows, scrims) */
  --goo-hi: #2A2D22;
  --goo-lo: #050504;
  --goo-lo-94: rgba(5, 5, 4, .94);
  --goo-lo-0: rgba(5, 5, 4, 0);
  --glow: #1A1F10;
  --moss: #33400F;
  --cover-glow: #1D2313;
  --page-94: rgba(10, 11, 8, .94);
  --page-72: rgba(10, 11, 8, .72);
  --page-0: rgba(10, 11, 8, 0);
  --void-94: rgba(0, 0, 0, .94);
  --void-85: rgba(0, 0, 0, .85);
  --void-80: rgba(0, 0, 0, .8);
  --void-0: rgba(0, 0, 0, 0);
  --acid-09: rgba(198, 255, 61, .09);
  --acid-18: rgba(198, 255, 61, .18);
  --shine: rgba(255, 255, 255, .34);
  --ink-18: rgba(10, 11, 8, .18);
  --mask-on: #000000;
  --mask-off: transparent;

  --f-head: 'Special Gothic Condensed One', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --f-body: 'Special Gothic', 'Helvetica Neue', Arial, sans-serif;
  --f-black: 'Manufacturing Consent', Georgia, serif;
  --f-dot: 'Doto', 'Courier New', monospace;

  --gutter: clamp(20px, 5vw, 64px);
  --notch: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --squish: cubic-bezier(.3, 1.6, .5, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 400 18px/1.55 var(--f-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: var(--acid); color: var(--ink); }

/* focus: lime on dark surfaces, ink on bone surfaces (lime on bone fails contrast) */
:focus-visible { outline: 3px solid var(--acid); outline-offset: 3px; }
.on-bone :focus-visible,
.band :focus-visible,
.tray :focus-visible,
.room :focus-visible { outline-color: var(--ink); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--acid); color: var(--ink);
  padding: 10px 16px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 12px; }
.skip:focus-visible { outline-color: var(--bone); }

.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- type ---------- */
.h {
  font-family: var(--f-head);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.005em;
  text-wrap: balance;
}
.h em {
  font-family: var(--f-black);
  font-style: normal;
  font-size: 1.17em;
  line-height: .7;
  color: var(--acid);
  letter-spacing: 0;
  padding-inline: .03em;
}
.on-bone .h em {
  color: var(--ink);
  background: linear-gradient(var(--acid), var(--acid)) 0 78% / 100% .34em no-repeat;
}
.dot {
  font-family: var(--f-dot);
  font-weight: 900;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: .04em;
}
/* specimen label: a bone tag with ink dot-matrix text */
.tag {
  display: inline-block;
  font: 900 15px/1 var(--f-dot);
  letter-spacing: .04em;
  color: var(--ink);
  background: var(--bone);
  padding: 7px 12px 7px 10px;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
}
.on-bone .tag { background: var(--ink); color: var(--bone); }

/* ---------- buttons: a little goo in a bone dish ---------- */
.btn {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--bone);
  text-decoration: none;
  cursor: pointer;
  border: 0;
}
.btn > span {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  background: radial-gradient(120% 90% at 30% 0%, var(--goo-hi) 0%, var(--goo-lo) 46%);
  color: var(--bone);
  font: 600 17px/1 var(--f-body);
  white-space: nowrap;
  box-shadow: inset 0 1.5px 0 var(--shine), inset 0 -8px 12px var(--acid-09);
  transition: border-radius .35s var(--squish), color .2s, transform .35s var(--squish);
}
.btn:hover > span, .btn:focus-visible > span {
  border-radius: 46% 54% 50% 50% / 62% 44% 56% 38%;
  color: var(--acid);
  transform: scale(1.03, .97);
}
.btn.small > span { min-height: 40px; padding: 0 20px; font-size: 16px; }
.btn.ghost { background: none; padding: 0; }
.btn.ghost > span {
  background: none; box-shadow: inset 0 0 0 1.5px var(--line-strong);
  color: var(--text); min-height: 56px;
}
.btn.ghost:hover > span, .btn.ghost:focus-visible > span { box-shadow: inset 0 0 0 1.5px var(--acid); }
.on-bone .btn { background: none; padding: 0; }
.on-bone .btn > span { min-height: 56px; }
.on-bone .btn.ghost > span { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.on-bone .btn.ghost:hover > span, .on-bone .btn.ghost:focus-visible > span { color: var(--ink); background: var(--acid); }

/* ---------- goo drips (static, one SVG filter) ---------- */
.drips {
  position: absolute; left: 0; right: 0; top: -1px; height: 170px;
  pointer-events: none;
  filter: url(#goo);
}
.drips i {
  position: absolute; top: 0; display: block;
  background: var(--page);
  border-radius: 0 0 999px 999px;
}
.drips i.bar { left: -20px; right: -20px; height: 16px; border-radius: 0; }
.drips i.bead { border-radius: 50%; }

/* ---------- nav ---------- */
.nav-wrap {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: linear-gradient(var(--page-94), var(--page-72) 70%, var(--page-0));
}
.nav { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo {
  font: 400 44px/1 var(--f-black);
  color: var(--bone);
  text-decoration: none;
  display: inline-flex; align-items: baseline; gap: 5px;
  margin-right: auto;
  padding-bottom: 6px;
}
.logo i {
  width: 11px; height: 14px; background: var(--acid);
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  transform: rotate(180deg);
}
.links { display: flex; gap: 28px; }
.links a {
  font: 500 16px/1 var(--f-body); color: var(--muted); text-decoration: none;
  padding: 12px 2px;
}
.links a:hover, .links a:focus-visible { color: var(--acid); }

/* phone menu button: two bars that cross when open */
.menu-btn {
  display: none; flex: none;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); background: var(--surface);
  cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.menu-btn span {
  display: block; width: 18px; height: 1.8px; border-radius: 2px;
  background: var(--text);
  transition: transform .3s var(--ease), background .2s;
}
.menu-btn:hover span { background: var(--acid); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.9px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.9px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 940px);
  display: grid; align-items: end;
  background:
    radial-gradient(60% 70% at 78% 44%, var(--glow) 0%, var(--page-0) 70%),
    var(--void);
}
.hero-stage { position: absolute; inset: 0; z-index: -2; }
.hero-stage canvas { display: block; }
.hero-stage .fallback2d { position: absolute; inset: 0; width: 100%; height: 100%; }
/* poster: shown until the box portrait has mounted */
.hero-poster {
  position: absolute; top: 10%; right: 6%; bottom: 0;
  height: 90%; width: min(56%, 680px); max-width: none;
  object-fit: contain; object-position: right bottom;
  pointer-events: none; user-select: none;
}
.hero-stage[data-matrix-hero="ready"] .hero-poster { display: none; }
/* shown only when neither the module nor the atlas can be used */
.hero-stage .fallback-css {
  position: absolute; right: 8%; top: 12%; bottom: 0; width: min(38vw, 520px);
  display: none;
  background: linear-gradient(170deg, var(--bone) 0%, var(--acid) 38%, var(--moss) 70%, var(--mask-off) 100%);
  border-radius: 50% 50% 0 0 / 34% 34% 0 0;
  -webkit-mask: radial-gradient(circle, var(--mask-on) 3.4px, var(--mask-off) 4px) 0 0 / 11px 11px;
          mask: radial-gradient(circle, var(--mask-on) 3.4px, var(--mask-off) 4px) 0 0 / 11px 11px;
}
.hero-stage.is-css .fallback-css { display: block; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--void-94) 0%, var(--void-80) 34%, var(--void-0) 60%),
    linear-gradient(0deg, var(--void-85) 0%, var(--void-0) 22%);
}
.hero-inner { padding-top: 130px; padding-bottom: 96px; position: relative; }
.hero-copy { max-width: min(660px, 48vw); }
.avail { display: flex; align-items: center; gap: 10px; color: var(--acid); margin-bottom: 26px; }
.avail::before {
  content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--acid); flex: none;
  box-shadow: 0 0 0 4px var(--acid-18);
}
.hero h1 { font-size: clamp(64px, 9.4vw, 148px); }
.hero h1 span { display: block; }
.hero .intro { margin-top: 28px; max-width: 30em; font-size: 20px; line-height: 1.5; color: var(--text); }
.hero .cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero .btn.primary > span { min-height: 56px; padding: 0 32px; font-size: 18px; }

/* containment-file readout */
.readout {
  position: absolute; right: var(--gutter); bottom: 96px;
  display: grid; grid-template-columns: auto auto; gap: 4px 18px;
  color: var(--muted);
  padding: 14px 16px;
  background: var(--page-72);
  border: 1px solid var(--line);
}
.readout dt { color: var(--dim); }
.readout dd { margin: 0; color: var(--bone); text-align: right; }
.readout dd.ok { color: var(--acid); }
.crop { position: absolute; width: 22px; height: 22px; border: 0 solid var(--line-strong); pointer-events: none; }
.crop.tl { left: var(--gutter); top: 100px; border-width: 1.5px 0 0 1.5px; }
.crop.tr { right: var(--gutter); top: 100px; border-width: 1.5px 1.5px 0 0; }
.filemark { position: absolute; right: calc(var(--gutter) + 34px); top: 102px; color: var(--dim); }

/* ---------- skills band: the first bone surface ---------- */
.band {
  position: relative; background: var(--bone); color: var(--ink);
  padding: 74px 0 40px;
  overflow-x: clip;
}
.band::after { /* thorn edge biting into the next section */
  content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 13px; background: var(--bone);
  -webkit-mask: conic-gradient(from 152deg at 50% 100%, var(--mask-on) 0 56deg, var(--mask-off) 0) 50% 0 / 20px 13px repeat-x;
          mask: conic-gradient(from 152deg at 50% 100%, var(--mask-on) 0 56deg, var(--mask-off) 0) 50% 0 / 20px 13px repeat-x;
  z-index: 2;
}
.band .track { display: flex; width: max-content; animation: slide 46s linear infinite; }
.band.is-paused .track { animation-play-state: paused; }
.band ul { display: flex; align-items: center; flex: none; }
.band li {
  font: 400 clamp(34px, 4.6vw, 62px)/1 var(--f-head);
  display: flex; align-items: center; white-space: nowrap;
}
.band li::after {
  content: ''; width: .34em; height: .34em; margin: 0 .6em;
  background: var(--ink); border-radius: 0 100%; transform: rotate(45deg);
}
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.sec { padding: clamp(84px, 11vw, 150px) 0; position: relative; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head .h { font-size: clamp(48px, 6.6vw, 104px); margin-top: 18px; max-width: 12em; }

/* ---------- selected work: sticky tray (desktop), inline accordion (<=900) ---------- */
.work { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.js-work .work { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.work-title { font: inherit; }
.work-list { border-top: 1px solid var(--line-strong); }
.work-list > li, .work-item { border-bottom: 1px solid var(--line-strong); }
.entry, .work-toggle {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  display: grid; grid-template-columns: 64px 1fr 28px; align-items: center; gap: 4px 12px;
  padding: 26px 8px 26px 0;
  position: relative; isolation: isolate;
}
.entry .no, .work-toggle .no { font: 900 22px/1 var(--f-dot); color: var(--dim); }
.entry .ttl, .work-toggle .ttl { font: 400 clamp(32px, 3.6vw, 52px)/1 var(--f-head); color: var(--text); display: block; }
.entry .cat, .work-toggle .cat { display: block; margin-top: 8px; font-size: 16px; color: var(--muted); }
.entry .pin, .work-toggle .pin {
  width: 16px; height: 16px; justify-self: end;
  border: 1.5px solid var(--line-strong); border-radius: 0 100%; transform: rotate(45deg);
  transition: background .2s, border-color .2s;
}
.entry::before, .work-toggle::before { /* goo wipe behind the active row */
  content: ''; position: absolute; inset: 6px -14px 6px -18px; z-index: -1;
  background: var(--surface2);
  border-radius: 14px 40px 22px 34px / 30px 18px 36px 16px;
  opacity: 0; transition: opacity .2s;
}
.entry:hover::before, .entry.is-active::before,
.work-toggle:hover::before, .work-toggle.is-active::before { opacity: 1; }
.entry.is-active .no, .work-toggle.is-active .no { color: var(--acid); }
.entry.is-active .ttl, .work-toggle.is-active .ttl { color: var(--bone); }
.entry[aria-expanded="true"] .pin, .work-toggle[aria-expanded="true"] .pin { background: var(--acid); border-color: var(--acid); }
/* without JS every preview shows inline and there is no tray */
.work-panel { padding: 4px 0 26px; max-width: 640px; }
.stage-col { display: none; }
/* with JS (app.js adds .js-work): desktop uses the sticky tray */
.entry-panel, .js-work .work-panel { display: none; }
.js-work .stage-col { display: block; position: sticky; top: 104px; }
.pin-note { margin-top: 14px; color: var(--dim); }

/* specimen tray + generated cover */
.tray {
  background: var(--bone); color: var(--ink);
  padding: 14px;
  clip-path: polygon(var(--notch) 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%, 0 var(--notch));
}
.tray-rim { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 2px 6px 12px 16px; }
.tray-rim .dot { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tray-rim .dot:first-child { flex: none; }
.cover {
  position: relative; aspect-ratio: 16 / 10.5; overflow: hidden;
  background: radial-gradient(90% 90% at 70% 20%, var(--cover-glow) 0%, var(--goo-lo) 70%);
}
.cover svg, .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover .c-no {
  position: absolute; top: 14px; right: 18px;
  font: 900 clamp(48px, 6vw, 84px)/.9 var(--f-dot); color: var(--tone, var(--acid));
}
.cover .c-ttl {
  position: absolute; left: 20px; bottom: 16px; right: 20px;
  font: 400 clamp(40px, 5vw, 76px)/.9 var(--f-head); color: var(--bone);
}
.cover::after { content: ''; position: absolute; inset: 45% 0 0 0; background: linear-gradient(0deg, var(--goo-lo-94) 18%, var(--goo-lo-0)); }
.cover .c-ttl, .cover .c-no { z-index: 1; }
.cover.has-img .c-no { display: none; }
.tray-foot { display: flex; gap: 18px; align-items: start; justify-content: space-between; padding: 16px 6px 6px 6px; }
.tray-foot p { font-size: 19px; line-height: 1.4; font-weight: 500; max-width: 26em; }
.tray-foot .dot { color: var(--ink-muted); white-space: nowrap; padding-top: 4px; }
.tray-link { color: var(--ink); text-underline-offset: 4px; text-decoration-thickness: 1.5px; padding: 4px 0; }
.tray-link:hover { text-decoration-color: var(--ink-muted); }
.tray.resolve .cover svg, .tray.resolve .cover img {
  -webkit-mask: radial-gradient(circle, var(--mask-on) var(--dot), var(--mask-off) calc(var(--dot) + .5px)) 0 0 / 12px 12px;
          mask: radial-gradient(circle, var(--mask-on) var(--dot), var(--mask-off) calc(var(--dot) + .5px)) 0 0 / 12px 12px;
  animation: resolve .42s steps(4, end);
}
@keyframes resolve { from { --dot: 1.5px; } to { --dot: 9px; } }

/* ---------- services slice ---------- */
.services { background: var(--surface); border-block: 1px solid var(--line); }
.jars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.jar {
  position: relative;
  background: var(--page);
  border: 1px solid var(--line-strong);
  padding: 30px 28px 30px;
  border-radius: 0 0 26px 26px;
}
.jar .tag { position: absolute; top: -15px; left: 22px; }
.jar svg.sigil { width: 84px; height: 84px; display: block; margin: 14px 0 26px; }
.jar h3 { font: 400 44px/1 var(--f-head); }
.jar p { margin-top: 12px; color: var(--text); font-size: 18px; }
.jar ul { margin-top: 22px; border-top: 1px solid var(--line); }
.jar li { padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--muted); display: flex; gap: 12px; align-items: baseline; font-size: 17px; }
.jar li::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--acid); transform: translateY(-2px); }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.step { position: relative; border-top: 1px solid var(--line-strong); padding-top: 22px; }
.step::before { /* an acid tick grows along the rule as the step reveals */
  content: ''; position: absolute; left: 0; top: -2px; height: 3px; width: 0;
  background: var(--acid); transition: width 1.1s var(--ease);
}
.step.in::before, html:not(.js) .step::before { width: 48px; }
.step .no { display: block; font-size: 22px; color: var(--acid); }
.step h3 { font: 400 40px/1 var(--f-head); margin: 18px 0 10px; }
.step p { color: var(--muted); max-width: 18em; }

/* ---------- course ---------- */
.course { background: var(--surface); border-block: 1px solid var(--line); }
.course-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.course-copy .h { font-size: clamp(48px, 6vw, 92px); margin-top: 18px; }
.course-desc { margin-top: 24px; font-size: 20px; max-width: 32em; }
.course-outcomes { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.jar.outcome { padding: 30px 20px 22px; }
.jar.outcome p { margin-top: 0; font: 400 28px/1.05 var(--f-head); color: var(--text); }
.course-cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.course-note { color: var(--muted); }
.course-tray { padding: 14px 14px 18px; }
.course-tray .tray-rim { flex-wrap: wrap; }
.course-tray .tray-rim h3 { color: var(--ink); }
.course-tray .tray-rim span { color: var(--ink-muted); }
.lessons { margin: 0 6px; border-top: 1.5px solid var(--ink); }
.lessons li { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--bone-dim); font-weight: 500; font-size: 18px; color: var(--ink); }
.lessons li:last-child { border-bottom: 0; }
.lessons .no { flex: none; width: 2ch; color: var(--ink-muted); }
.lessons .more { color: var(--ink-muted); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.about-photo { aspect-ratio: 480 / 560; position: relative; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo.empty { display: grid; place-items: center; background: var(--bone); }
.about-photo .mono { font: 400 clamp(180px, 22vw, 300px)/1 var(--f-black); color: var(--ink); transform: translateY(-.06em); }
.about-copy .h { font-size: clamp(48px, 6.6vw, 104px); margin-top: 18px; }
.bio { margin-top: 24px; font-size: 20px; max-width: 32em; }
.jar.mission { margin: 44px 0 30px; max-width: 36em; }
.jar.mission p { margin-top: 6px; font-size: 19px; font-weight: 500; }
.tools { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- contact: the light room ---------- */
.contact { padding: clamp(70px, 9vw, 120px) 0 0; }
.room {
  position: relative; background: var(--bone); color: var(--ink);
  text-align: center;
  overflow-x: clip;
}
.room-head { padding: 190px var(--gutter) 0; position: relative; }
.room-head .h { font-size: clamp(52px, 7.6vw, 120px); margin: 20px auto 0; max-width: 11em; }
.room-head p { margin: 22px auto 0; font-size: 21px; font-weight: 500; color: var(--ink); max-width: 30em; }

/* the venom button room: the iframe is inserted by JS; until then the CSS goo link is the button */
.venom-slot {
  position: relative; height: 640px;
  display: grid; place-items: center;
}
.venom-frame {
  position: absolute; inset: 0;
  display: block; width: 100%; height: 100%; border: 0;
  background: var(--bone);
}
.venom-slot.is-live .btn-goo {
  position: absolute; width: 1px; height: 1px; min-width: 0; min-height: 0; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.btn-goo, .goo-fallback a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 250px; min-height: 84px; padding: 0 44px;
  background: radial-gradient(120% 90% at 30% 0%, var(--goo-hi) 0%, var(--goo-lo) 46%);
  color: var(--bone); text-decoration: none;
  font: 600 22px/1 var(--f-body);
  border-radius: 42% 58% 52% 48% / 58% 46% 54% 42%;
  box-shadow: inset 0 2px 0 var(--shine), 0 18px 0 -8px var(--ink-18);
  transition: border-radius .4s var(--squish), transform .4s var(--squish), color .2s;
}
.btn-goo:hover, .btn-goo:focus-visible, .goo-fallback a:hover {
  border-radius: 56% 44% 46% 54% / 44% 58% 42% 56%;
  transform: scale(1.04, .96);
  color: var(--acid);
}
/* the mockup's own names for the same room, kept for parity */
.goo-frame { display: block; width: 100%; height: 640px; border: 0; background: var(--bone); }
.goo-fallback { display: none; height: 320px; place-items: center; }
.room.no-frame .goo-frame { display: none; }
.room.no-frame .goo-fallback { display: grid; }

.room-foot { padding: 0 var(--gutter) 64px; display: grid; justify-items: center; gap: 16px; }
.room-foot .dot { color: var(--ink-muted); }
.rule { display: flex; justify-content: space-between; gap: 16px; padding: 14px var(--gutter); border-top: 1.5px solid var(--ink); color: var(--ink); }

/* ---------- footer ---------- */
.foot { position: relative; overflow: hidden; padding: 64px 0 0; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: start; }
.foot .socials { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot .socials a { color: var(--text); font-weight: 500; padding: 8px 0; text-underline-offset: 5px; text-decoration-color: var(--line-strong); }
.foot .socials a:hover { color: var(--acid); text-decoration-color: var(--acid); }
.foot .colophon { color: var(--dim); max-width: 30em; }
.foot .note { color: var(--muted); font-size: 16px; margin-top: 6px; }
.bigmark {
  font: 400 clamp(200px, 40vw, 600px)/1 var(--f-black);
  color: var(--surface2);
  text-align: center; user-select: none;
  height: .44em; margin-top: 48px; overflow: hidden;
  white-space: nowrap;
}
.bigmark span { display: block; transform: translateY(-.26em); }

/* ---------- reveal on scroll (app.js adds .js on <html> and .in on entry) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- 1080 ---------- */
@media (max-width: 1080px) {
  .readout { display: none; }
  .jars { grid-template-columns: 1fr 1fr; }
  .jar:last-child { grid-column: 1 / -1; }
  .venom-slot { height: 560px; }
  .goo-frame { height: 560px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-grid { grid-template-columns: minmax(0, 1fr); }
  .course-tray { max-width: 560px; }
}

/* ---------- 900: phone menu, inline accordion ---------- */
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .nav { gap: 14px; }
  /* full-screen overlay list, sits under the logo and menu button */
  .links, #nav-links {
    position: fixed; inset: 0; z-index: -1;
    display: flex; flex-direction: column; justify-content: center; gap: 0;
    padding: 96px var(--gutter) 48px;
    background: var(--page);
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden;
    transition: opacity .25s, visibility .25s;
  }
  .links a, #nav-links a {
    font: 400 clamp(48px, 13vw, 88px)/1 var(--f-head);
    color: var(--text);
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .links a:hover, .links a:focus-visible, #nav-links a:hover, #nav-links a:focus-visible { color: var(--acid); }
  #nav-links.open, .nav-wrap.open .links { opacity: 1; visibility: visible; }
  body:has(#nav-links.open) { overflow: hidden; }

  .js-work .work { grid-template-columns: minmax(0, 1fr); }
  .js-work .stage-col { display: none; }
  .entry, .work-toggle { grid-template-columns: 46px 1fr 24px; padding: 20px 4px 20px 0; }
  .entry::before, .work-toggle::before { inset: 4px -10px; }
  .entry[aria-expanded="true"] + .entry-panel,
  .js-work .work-title:has(> [aria-expanded="true"]) + .work-panel,
  .js-work .work-toggle[aria-expanded="true"] ~ .work-panel { display: block; }
  .work-panel[hidden] { display: none !important; }
  .course-outcomes { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-photo { max-width: 420px; }
  .jars { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .jar:last-child { grid-column: auto; }
  .tray { padding: 10px; --notch: 14px; }
  .tray-foot { flex-direction: column; gap: 8px; }
}

/* ---------- 560 ---------- */
@media (max-width: 560px) {
  body { font-size: 17px; }
  .nav { height: 64px; gap: 10px; }
  .logo { font-size: 38px; }
  .nav .btn.small > span { padding: 0 16px; }
  .hero { min-height: 0; background: var(--void); }
  .hero-stage { inset: 58px 0 auto 0; height: 316px; }
  .hero-poster { inset: 0; width: 100%; height: 100%; object-position: center bottom; }
  .hero-copy { max-width: none; }
  .hero-scrim { background: linear-gradient(180deg, var(--void-0) 72%, var(--void) 100%); height: 374px; inset: 0 0 auto 0; }
  .hero-inner { padding-top: 338px; padding-bottom: 84px; }
  .hero h1 { font-size: clamp(54px, 15.6vw, 66px); }
  .hero .intro { font-size: 17px; margin-top: 18px; }
  .hero .cta { margin-top: 22px; gap: 10px; }
  .hero .cta .btn { flex: 1 1 100%; }
  .hero .cta .btn > span { width: 100%; }
  .avail { margin-bottom: 14px; align-items: start; }
  .avail::before { margin-top: 4px; }
  .crop, .filemark { display: none; }
  .band { padding: 62px 0 30px; }
  .drips { height: 120px; }
  .room-head { padding-top: 140px; }
  .room-head p { font-size: 18px; }
  .venom-slot { height: 320px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .course-desc, .bio { font-size: 18px; }
  .lessons li { font-size: 17px; }
  .goo-frame { height: 300px; }
  .btn-goo, .goo-fallback a { min-width: 0; width: min(250px, 100%); }
  .rule span:last-child { display: none; }
  .bigmark { margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .band .track { animation: none; width: auto; flex-wrap: wrap; }
  .band ul { flex-wrap: wrap; padding-inline: var(--gutter); gap: 10px 0; }
  .band ul[aria-hidden] { display: none; }
  .btn:hover > span, .btn:focus-visible > span,
  .btn-goo:hover, .btn-goo:focus-visible { transform: none; }
  .tray.resolve .cover svg, .tray.resolve .cover img { animation: none; -webkit-mask: none; mask: none; }
  .js .reveal { opacity: 1; transform: none; }
  .step::before { width: 48px; }
}
