/*
 * 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 typed line + thought bubbles, work-item/work-toggle/
 * work-panel/work-tray, venom-slot/venom-frame/btn-goo, the contact dialog) 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);
  --shadow: rgba(0, 0, 0, .55);
  --acid-30: rgba(198, 255, 61, .3);
  --void-72: rgba(0, 0, 0, .72);
  --goo-hover: #34382A;
  --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);
}

*, *::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 ----------
   Hover / focus: a 2 px lift, a soft shadow and the label turning acid. No squish, no
   scale, nothing that changes the box size; reduced motion drops the lift. */
.btn {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--bone);
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.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%);
  background-color: var(--goo-lo);
  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: color .2s, box-shadow .2s;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 24px -12px var(--shadow); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:hover > span, .btn:focus-visible > span {
  color: var(--acid);
  box-shadow: inset 0 1.5px 0 var(--shine), inset 0 -10px 16px var(--acid-18);
}
.btn[aria-disabled="true"] { cursor: progress; transform: none; box-shadow: none; }
.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); color: var(--acid); }
.on-bone .btn { background: none; padding: 0; }
.on-bone .btn > span { min-height: 56px; }
.on-bone .btn:hover, .on-bone .btn:focus-visible { box-shadow: 0 12px 22px -12px var(--ink-18); }
.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: headline + typed line (left), head with thought bubbles (right) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 940px);
  display: flex; align-items: center;
  background:
    radial-gradient(42% 56% at 74% 52%, var(--glow) 0%, var(--page-0) 72%),
    var(--void);
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: center; gap: clamp(24px, 3vw, 48px);
  padding-top: 112px; padding-bottom: 72px;
}
.avail { display: flex; align-items: center; gap: 10px; color: var(--acid); margin-bottom: 24px; }
.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(56px, 6.3vw, 108px); }
.hero h1 span { display: block; }

/* typed line: every line sits in one grid cell, the ghosts reserve the tallest one */
.typed {
  display: grid; margin-top: 22px;
  font: 400 clamp(30px, 3.3vw, 50px)/1.05 var(--f-head);
  color: var(--bone);
}
.typed > span { grid-area: 1 / 1; }
.typed-ghost { visibility: hidden; padding-right: .3em; }
.typed-live { white-space: pre-wrap; }
.caret {
  display: inline-block; width: .09em; min-width: 3px; height: .86em;
  margin-left: .08em; vertical-align: -.06em;
  background: var(--acid);
  animation: blink 1.05s steps(1, end) infinite;
}
.typed.is-busy .caret { animation: none; }
@keyframes blink { 50% { opacity: 0; } }
html:not(.js) .caret { display: none; }

.hero .intro { margin-top: 24px; 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; }

/* the head and its thoughts */
.hero-visual { position: relative; aspect-ratio: 100 / 92; width: 100%; }
.hero-visual::before { /* acid halo behind the head */
  content: ''; position: absolute; left: 26%; right: 26%; top: 30%; bottom: 12%; z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--acid-18), var(--page-0));
}
.hero-orbit { /* the path the thoughts drift along */
  position: absolute; left: 4%; right: 4%; top: 6%; bottom: 8%; z-index: -1;
  border: 1.5px dashed var(--line); border-radius: 50%;
  pointer-events: none;
}
.hero-head { position: absolute; left: 16%; width: 68%; bottom: 0; }
.hero-head img { width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }

.thoughts { position: absolute; inset: 0; z-index: 2; }
.thought { position: absolute; top: var(--y); will-change: transform; }
.thought.side-l { right: calc(100% - var(--x)); max-width: calc(var(--x) - 1%); display: flex; justify-content: flex-end; }
.thought.side-r { left: var(--x); max-width: calc(99% - var(--x)); }
.thought.is-open, .thought:hover, .thought:focus-within { z-index: 3; }
.thought-bubble {
  position: relative; display: grid;
  max-width: 100%;
  padding: 10px 16px 11px;
  border-radius: 22px 26px 24px 20px / 20px 24px 22px 26px;
  background: var(--t-bg); color: var(--t-fg);
  box-shadow: inset 0 0 0 1.5px var(--t-line), 0 10px 24px -14px var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.t-bone { --t-bg: var(--bone); --t-fg: var(--ink); --t-line: var(--bone); }
.t-acid { --t-bg: var(--acid); --t-fg: var(--ink); --t-line: var(--acid); }
.t-dark { --t-bg: var(--surface2); --t-fg: var(--bone); --t-line: var(--line-strong); }
/* trailing dots toward the head */
.thought-bubble::before, .thought-bubble::after {
  content: ''; position: absolute; border-radius: 50%;
  background: var(--t-bg); box-shadow: inset 0 0 0 1.5px var(--t-line);
}
.thought-bubble::before { width: 11px; height: 11px; bottom: -9px; }
.thought-bubble::after { width: 6px; height: 6px; bottom: -19px; }
.side-l .thought-bubble::before { right: 6px; }
.side-l .thought-bubble::after { right: -4px; }
.side-r .thought-bubble::before { left: 6px; }
.side-r .thought-bubble::after { left: -4px; }
.thought-btn {
  display: flex; align-items: center; gap: 10px;
  background: none; border: 0; padding: 0; margin: 0;
  color: inherit; text-align: left; cursor: pointer;
  font: 600 16px/1.2 var(--f-body);
  min-height: 24px;
}
.thought-btn::after { content: ''; position: absolute; inset: 0; border-radius: inherit; } /* whole bubble is the target */
.thought-btn:focus-visible { outline: 0; }
.thought-bubble:has(.thought-btn:focus-visible) { outline: 3px solid var(--acid); outline-offset: 3px; }
.t-acid .thought-bubble:has(.thought-btn:focus-visible) { outline-color: var(--bone); }
.thought-plus { position: relative; flex: none; width: 10px; height: 10px; }
.thought-plus::before, .thought-plus::after {
  content: ''; position: absolute; left: 0; right: 0; top: 4px; height: 2px; border-radius: 1px; background: currentColor;
  transition: transform .25s var(--ease);
}
.thought-plus::after { transform: rotate(90deg); }
.thought-note {
  display: grid; grid-template-rows: 0fr;
  contain: inline-size;            /* the note never widens the closed bubble */
  font-size: 15px; line-height: 1.35; font-weight: 500;
  opacity: 0;
  transition: grid-template-rows .3s var(--ease), opacity .2s;
}
.thought-note > span { overflow: hidden; }
.thought:hover .thought-bubble, .thought:focus-within .thought-bubble, .thought.is-open .thought-bubble {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1.5px var(--t-line), 0 18px 30px -16px var(--shadow);
  width: 15em;
}
.thought:hover .thought-note, .thought:focus-within .thought-note, .thought.is-open .thought-note {
  grid-template-rows: 1fr; opacity: 1; margin-top: 6px;
}
.thought.is-open .thought-plus::after { transform: rotate(0deg); }

/* ---------- 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: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 8px; font-size: 16px; color: var(--muted); }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font: 900 13px/1 var(--f-dot); letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 9px 5px 8px; border-radius: 999px;
  color: var(--bone); box-shadow: inset 0 0 0 1.5px var(--line-strong);
  white-space: nowrap;
}
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge[data-status="live"] { color: var(--ink); background: var(--acid); box-shadow: none; }
.badge[data-status="live"]::before { background: var(--ink); }
.cover .c-badge { position: absolute; top: 16px; left: 18px; z-index: 1; }
.cover .c-badge .badge { background: var(--page-72); }
.cover .c-badge .badge[data-status="live"] { background: var(--acid); }
.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, .cover.has-img .c-ttl, .cover.has-img::after { display: none; }
.cover.has-img img { object-position: center top; }
.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 {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  color: var(--ink); text-decoration: none;
  font: 600 16px/1 var(--f-body);
  box-shadow: inset 0 0 0 1.5px var(--ink);
  transition: background-color .2s, transform .2s var(--ease);
}
.tray-link:hover, .tray-link:focus-visible { background: var(--acid); transform: translateY(-2px); }
.tray-link .arrow { width: 9px; height: 9px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg) translate(-1px, 1px); }
.tray-link .arrow::before { content: none; }
.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: transform .2s var(--ease), color .2s;
}
.btn-goo:hover, .btn-goo:focus-visible, .goo-fallback a:hover {
  transform: translateY(-2px);
  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; font-size: 19px; font-weight: 500; color: var(--ink); }
.room-mail { color: var(--ink); font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 1.5px; overflow-wrap: anywhere; }
.room-mail:hover { text-decoration-color: var(--acid); background: var(--acid); }
.rule { display: flex; justify-content: space-between; gap: 16px; padding: 14px var(--gutter); border-top: 1.5px solid var(--ink); color: var(--ink); }

/* ---------- contact dialog ---------- */
.ask {
  padding: 0; border: 0; margin: auto;
  width: min(520px, calc(100% - 32px)); max-height: calc(100% - 32px);
  background: var(--bone); color: var(--ink);
  border-radius: 28px 28px 34px 34px;
  box-shadow: 0 30px 80px -20px var(--shadow);
}
.ask::backdrop { background: var(--void-72); backdrop-filter: blur(4px); }
.ask-body { position: relative; padding: 34px clamp(20px, 5vw, 36px) 32px; }
.ask .h { font-size: clamp(40px, 8vw, 56px); padding-right: 48px; }
.ask-intro { margin-top: 12px; font-size: 17px; font-weight: 500; color: var(--ink); }
.ask-close {
  position: absolute; top: 18px; right: 18px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--ink); background: none; cursor: pointer;
  display: grid; place-items: center;
  transition: background-color .2s;
}
.ask-close:hover { background: var(--acid); }
.ask-close i, .ask-close i::after { display: block; width: 16px; height: 2px; border-radius: 1px; background: var(--ink); transform: rotate(45deg); }
.ask-close i::after { content: ''; transform: rotate(90deg); }
.ask-form { margin-top: 22px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 16px; }
.field input, .field textarea {
  width: 100%; font: 500 17px/1.4 var(--f-body); color: var(--ink);
  background: var(--bone-dim); border: 1.5px solid var(--ink-muted); border-radius: 14px;
  padding: 12px 14px; min-height: 48px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.field .hint { font-size: 14px; color: var(--ink-muted); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ask-status:empty { display: none; }
.ask-status { font-size: 16px; font-weight: 500; padding: 12px 14px; border-radius: 14px; background: var(--bone-dim); }
.ask-status.is-error { box-shadow: inset 0 0 0 1.5px var(--ink); }
.ask-status.is-error::before { content: '! '; font-weight: 700; }
.ask-status a { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.ask-actions { display: flex; justify-content: flex-start; }
.ask-done { margin-top: 24px; }
.ask-done-msg { font: 400 clamp(28px, 6vw, 36px)/1.05 var(--f-head); padding: 18px 20px; background: var(--acid); border-radius: 18px; }
.ask-done-msg:focus { outline: 0; }

/* ---------- 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) {
  .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; }
  .hero { min-height: 0; background: radial-gradient(60% 34% at 50% 24%, var(--glow) 0%, var(--page-0) 72%), var(--void); }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 88px; }
  .hero-visual { order: -1; width: min(100%, 560px); margin-inline: auto; }
  /* 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-inner { padding-top: 66px; padding-bottom: 64px; gap: 4px; }
  .hero-visual { aspect-ratio: 100 / 84; }
  .hero-head { left: 14%; width: 72%; }
  .hero-orbit { top: 4%; bottom: 4%; left: 2%; right: 2%; }
  .thought:nth-child(n+5) { display: none; }
  .thought:nth-child(1) { --y: 2% !important; }
  .thought:nth-child(2) { --y: 8% !important; }
  .thought:nth-child(3) { --y: 42% !important; --x: 33% !important; }
  .thought:nth-child(4) { --y: 48% !important; --x: 68% !important; }
  .thought-bubble { padding: 7px 11px 8px; }
  .thought-btn { font-size: 14px; gap: 7px; }
  .thought-plus { width: 8px; height: 8px; }
  .thought-plus::before, .thought-plus::after { top: 3px; }
  .thought-note { font-size: 13px; line-height: 1.3; }
  .thought:hover .thought-bubble, .thought:focus-within .thought-bubble, .thought.is-open .thought-bubble { width: 11.5em; }
  .hero h1 { font-size: clamp(48px, 14.4vw, 62px); }
  .typed { font-size: clamp(26px, 7.6vw, 32px); margin-top: 14px; }
  .hero .intro { font-size: 17px; margin-top: 16px; }
  .hero .cta { margin-top: 22px; }
  .hero .cta .btn { flex: 1 1 100%; }
  .hero .cta .btn > span { width: 100%; }
  .avail { margin-bottom: 12px; align-items: start; font-size: 13px; }
  .avail::before { margin-top: 2px; }
  .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, .btn:focus-visible, .btn-goo:hover, .btn-goo:focus-visible,
  .tray-link:hover, .tray-link:focus-visible { transform: none; }
  .caret { animation: none; }
  .thought { transform: none !important; }
  .thought:hover .thought-bubble, .thought:focus-within .thought-bubble, .thought.is-open .thought-bubble { 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; }
}
