/* main.css - mara's lab, round 2: gold quiet line */
/* live's header, screenshot gold, v3.1 bones. */
/* THEME: everything below reads from :root. a few toggles re-theme the
   entire site — no hardcoded colors outside this block. */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #e8c874;
  --gold-bright: #ffe9a8;
  --gold-dim: #6b5a2e;
  --void: #000000;
  --ink: #0a0906;
  --white: #f5f2ff;
  --dim: #6a6a7a;
  --green: #4ade80;
  --red: #ff5c5c;
  /* material 3 tonal roles, mapped onto the gold */
  --primary: var(--gold);
  --on-primary: var(--void);
  --primary-container: var(--gold-dim);
  --on-primary-container: var(--gold-bright);
  --surface: var(--void);
  --surface-container: var(--ink);
  --on-surface: var(--white);
  --on-surface-variant: var(--dim);
  --outline: var(--gold-dim);
  --display: "Unbounded", sans-serif;
  --wordmark: "Cormorant Garamond", Georgia, serif;
  --mono: "JetBrains Mono", "Courier New", monospace;
  /* motion craft system v1 — the house tokens.
     name them, never bare ease/linear again. */
  --ease-snap: cubic-bezier(0.34, 1.4, 0.64, 1);   /* signature springy overshoot: entrances, pops, fidgets */
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);     /* fades, hovers, reveals — the calm one */
  --ease-swift: cubic-bezier(0.3, 0.7, 0.3, 1);    /* quick ui state changes, toggles */
  --dur-tap: 120ms;       /* press feedback, the fidget tick */
  --dur-quick: 250ms;     /* hovers, small reveals */
  --dur-standard: 500ms;  /* window open/close, section transitions */
  --dur-slow: 800ms;      /* hero moments, first-load choreography */
  /* radius scale — one set of corners for everything.
     xs: fine detail, sm: small controls, md: inputs and buttons,
     lg: windows, cards and menus, pill: badges and chips, round: dots. */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --radius-round: 50%;
  /* spacing scale — every step follows the rules (nava steal).
     component padding, gaps and section rhythm come from here,
     not from per-component vibes. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  /* liquid glass — one material for every floating surface (nava steal).
     three layers, always: backdrop blur+saturate, a gold tint gradient,
     and the inset edge shine. a surface missing a layer isn't glass,
     it's a smudge. --glass-fill is the dark underlayer that keeps text
     honest over the blur; the tint darkens toward the bottom of each
     surface on purpose. strong fill = dense small text (terminal,
     menus, the command bar); plain fill = bigger type (cards). */
  --glass-blur: blur(14px) saturate(1.4);
  --glass-fill: color-mix(in srgb, var(--ink) 55%, transparent);
  --glass-fill-strong: color-mix(in srgb, var(--ink) 82%, transparent);
  --glass-tint: linear-gradient(160deg,
    color-mix(in srgb, var(--gold) 10%, transparent),
    color-mix(in srgb, var(--gold) 3%, transparent) 55%,
    rgba(0, 0, 0, 0.28));
  --glass-shine: inset 0 1px 0 rgba(255, 235, 180, 0.18),
                 inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}
/* small screens: glass goes flatter and denser — backdrop blur over a
   fixed canvas is an iOS jank recipe, same call the nav already makes. */
@media (max-width: 640px) {
  :root {
    --glass-blur: blur(8px) saturate(1.2);
    --glass-fill: color-mix(in srgb, var(--ink) 78%, transparent);
    --glass-fill-strong: color-mix(in srgb, var(--ink) 92%, transparent);
  }
}

html { scroll-behavior: smooth; }

html, body {
  overflow-x: clip;
}
body {
  background: var(--void);
  color: var(--white);
  font-family: var(--mono);
  min-height: 100vh;
  line-height: 1.6;
}

/* focus is always visible — keyboard users get a real ring */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* ambient particle backdrop — drawn by bg.js, never the main character */
#bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: 0.55;
}

.wrap {
  position: relative; z-index: 1;
  max-width: 760px; margin: 0 auto;
  padding: 0 20px;
}

/* ============ STICKY GLASS NAV ============ */
.topnav {
  position: sticky; top: 0; z-index: 100;
  display: flex; flex-direction: column;
  transition: transform 0.3s ease;
}
/* scroll-aware: transparent at top, glass once scrolled, hides on scroll down */
.topnav-row {
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.topnav.scrolled .topnav-row {
  background: color-mix(in srgb, var(--void) 62%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  box-shadow: 0 1px 24px color-mix(in srgb, var(--gold) 12%, transparent);
}
.topnav.hidden { transform: translateY(-100%); }
/* the honeypot IS the menu */
.honey-drop { position: relative; }
.honey-drop .drop-menu { border-radius: var(--radius-lg); left: 0; right: auto; }
.dropdown.open .drop-menu { animation: honey-drip 0.32s ease; }
@keyframes honey-drip {
  0% { opacity: 0; transform: translateY(-10px) scaleY(0.85); }
  60% { opacity: 1; transform: translateY(3px) scaleY(1.02); }
  100% { opacity: 1; transform: translateY(0) scaleY(1); }
}
/* mobile: backdrop-filter over a fixed canvas is an iOS jank recipe —
   flat fill instead. the glass stays on desktop where she sees it. */
@media (max-width: 640px) {
  .topnav.scrolled .topnav-row {
    background: color-mix(in srgb, var(--void) 95%, transparent);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
.topnav-right {
  display: flex; align-items: center; gap: 10px;
  margin-left: auto;
}
/* honeypot mark — the whole brand now. gentle bob, soft glow. */
.tmark {
  background: none; border: none; cursor: pointer;
  position: relative;
  font-size: 1.6rem;
  line-height: 1;
  padding: 6px 8px;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--gold) 55%, transparent));
  animation: honey-bob 4s ease-in-out infinite;
  transition: transform 0.2s ease;
}
.tmark:hover { transform: scale(1.15); }
.tmark:active { transform: scale(0.92); }
@keyframes honey-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
/* button press feel — handled by JS spring physics */
/* the face — soft gradient ascii */
.face-text {
  background: none; border: none; cursor: pointer;
  font-size: 1.6rem; line-height: 1;
  padding: 6px 8px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 60%, var(--gold-dim));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--gold) 40%, transparent));
  transition: transform 0.2s ease, filter 0.2s ease;
  font-family: var(--mono);
  letter-spacing: -1px;
}
.term-face .face-text:hover {
  transform: translate(-50%, -50%) scale(1.1);
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--gold) 60%, transparent));
}
.term-face .face-text:active { transform: translate(-50%, -50%) scale(0.95); }
/* honeypot logo extras: drip + glow pulse */
.honey-drip {
  position: absolute;
  left: 50%; top: 100%;
  width: 4px; height: 0;
  background: linear-gradient(to bottom, var(--gold), transparent);
  border-radius: 0 0 var(--radius-xs) var(--radius-xs);
  transform: translateX(-50%);
  pointer-events: none;
  animation: drip-fall 1.2s ease-in forwards;
}
@keyframes drip-fall {
  0% { height: 0; opacity: 1; }
  30% { height: 14px; opacity: 1; }
  100% { height: 22px; opacity: 0; transform: translateX(-50%) translateY(8px); }
}
.tmark.glowing {
  filter: drop-shadow(0 0 18px var(--gold)) drop-shadow(0 0 6px var(--gold-bright));
}
/* dropdown */
.dropdown { position: relative; }
.drop-menu {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 280px;
  /* liquid glass — the menu (and the control center inside it) floats,
     so it gets the full recipe */
  background-color: var(--glass-fill-strong);
  background-image: var(--glass-tint);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  display: none;
  box-shadow: var(--glass-shine),
              0 12px 48px rgba(0, 0, 0, 0.6),
              0 0 24px color-mix(in srgb, var(--gold) 15%, transparent);
}
.dropdown.open .drop-menu { display: block; }
.drop-card {
  display: block; width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  font-family: var(--mono); color: var(--white);
  padding: var(--space-3); border-radius: var(--radius-md); text-decoration: none;
  transition: background 0.15s ease;
}
.drop-card:hover { background: color-mix(in srgb, var(--gold) 12%, transparent); }
.drop-card b { display: block; color: var(--gold); font-size: 0.9rem; margin-bottom: var(--space-1); }
.drop-card span { display: block; color: var(--dim); font-size: 0.78rem; margin-top: 0; line-height: 1.55; text-wrap: balance; }

/* ============ HERO — the terminal is the hero ============ */
.hero {
  position: relative;
  min-height: calc(100svh - 56px);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  gap: var(--space-5);
  padding: var(--space-7) 0 var(--space-8);
  text-align: center;
}
/* hero aura — big breathing gold bloom behind everything. khaslana. */
.hero::before {
  content: "";
  position: absolute; inset: -20% -10%;
  background: radial-gradient(ellipse 60% 55% at 50% 42%,
    color-mix(in srgb, var(--gold) 16%, transparent),
    color-mix(in srgb, var(--gold-dim) 7%, transparent) 55%,
    transparent 75%);
  pointer-events: none;
  animation: aura-breathe 8s ease-in-out infinite;
}
@keyframes aura-breathe {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
.hero > * { position: relative; }

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--space-7); padding: var(--space-3) var(--space-6);
  font-family: var(--mono); font-size: 0.95rem; font-weight: 700;
  color: var(--on-primary); background: var(--primary);
  border: 1px solid var(--primary); border-radius: var(--radius-md);
  text-decoration: none; cursor: pointer;
  box-shadow: 0 0 24px color-mix(in srgb, var(--gold) 45%, transparent);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
/* sheen sweep on hover */
.btn::after {
  content: "";
  position: absolute; top: 0; left: -80%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent,
    color-mix(in srgb, var(--gold-bright) 45%, transparent), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.btn:hover::after { left: 130%; }
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px color-mix(in srgb, var(--gold) 65%, transparent);
}
.btn.ghost {
  background: transparent; color: var(--gold);
  border-color: color-mix(in srgb, var(--gold) 50%, transparent);
  box-shadow: none;
}
.btn.ghost:hover {
  box-shadow: 0 0 24px color-mix(in srgb, var(--gold) 30%, transparent);
  border-color: var(--gold);
}
.btn:active { transform: scale(0.97); }

/* ============ SECTIONS ============ */
.act { padding: var(--space-7) 0; }

/* eyebrow — quiet brand, the text doesn't shout anymore */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  color: color-mix(in srgb, var(--gold) 65%, transparent);
  text-shadow: 0 0 18px color-mix(in srgb, var(--gold) 40%, transparent);
  transition: opacity 0.6s ease;
  min-height: 1.2em;
  user-select: none;
  -webkit-user-select: none;
}
.eyebrow.fading { opacity: 0; }
/* hero terminal — bigger, deeper, the main event */
.hero-term {
  width: 100%;
  max-width: 720px;
}
.hero-term .term-body {
  min-height: 300px;
}
.term-caret {
  color: var(--gold);
  animation: caret-blink 1.1s steps(1) infinite;
}
@keyframes caret-blink {
  50% { opacity: 0; }
}
/* ============ TERMINAL — the one real interaction ============ */
.terminal {
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  border-radius: var(--radius-lg);
  /* apex shade, ported from main: pure-void 82% fill, no gold tint,
     no backdrop blur (the blur pulled the bright starfield in and
     lifted the whole box). the edge-shine shadows below stay; the
     glass recipe still applies to cards, menus and the command bar. */
  background: color-mix(in srgb, var(--void) 82%, transparent);
  background-image: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: var(--glass-shine),
              0 0 40px color-mix(in srgb, var(--gold) 12%, transparent),
              0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.terminal *, .terminal button, .terminal a, .terminal input {
  cursor: auto;
}
.term-header {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: color-mix(in srgb, var(--gold) 8%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 20%, transparent);
  font-size: 0.78rem; color: var(--dim);
  position: relative;
}
.term-face .face-text {
  transform: translate(-50%, -50%);
}
.term-face {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.dots { display: flex; gap: var(--space-2); }
.dot {
  width: 12px; height: 12px; border-radius: var(--radius-round);
  background: var(--gold-dim); border: none; padding: 0; cursor: pointer;
  position: relative;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.dot::after { content: ""; position: absolute; inset: -9px; } /* fat tap target, same look */
.dot:hover { transform: scale(1.25); filter: brightness(1.4); }
.dot-close { background: color-mix(in srgb, var(--red) 75%, transparent); }
.dot-min { background: var(--gold-dim); }
.dot-max { background: var(--gold); }
/* tab strip — scrapped, hidden via display:none below */
.term-tab {
  display: flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid color-mix(in srgb, var(--gold) 22%, transparent);
  border-radius: var(--radius-sm); color: var(--dim);
  font-family: var(--mono); font-size: 0.72rem;
  padding: 3px 10px; cursor: pointer; white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.term-tab:hover { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.term-tab.active { color: var(--gold); border-color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, transparent); }
.term-tab-x { font-style: normal; opacity: 0.6; }
.term-tab-x:hover { opacity: 1; color: var(--red); }
.term-title { margin-left: auto; color: var(--dim); font-size: 0.78rem; }
/* theater mode — breaks out of .wrap, bigger and centered. slow springy bounce. */
.terminal { transition: max-width var(--dur-standard) var(--ease-snap), opacity var(--dur-standard) var(--ease-soft), transform var(--dur-standard) var(--ease-soft), translate var(--dur-standard) var(--ease-soft), width var(--dur-standard) var(--ease-snap); }
.term-body { transition: max-height var(--dur-standard) var(--ease-snap); }
/* minimized: title bar only, body tucked away */
.terminal.minimized .term-body { display: none; }
.terminal.theater.theater {
  position: fixed; z-index: 150;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(1060px, 94vw);
  max-width: none;
  margin: 0;
}
.terminal.theater .term-body { max-height: 80vh; min-height: 60vh; }
.terminal.minimized .term-body { display: none; }
/* ============ HEADER CONTROLS — compact cluster, right side ============ */
.topnav-controls {
  margin-left: auto;
  display: flex; align-items: center; gap: var(--space-2);
}
.topnav-controls button {
  width: 36px; height: 36px; border-radius: var(--radius-round);
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
  color: var(--gold);
  font-family: var(--mono); font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.3s ease, transform 0.3s ease;
  position: relative;
}
.topnav-controls button:hover {
  border-color: var(--gold);
  box-shadow: 0 0 16px color-mix(in srgb, var(--gold) 35%, transparent);
}
#term-reopen[hidden] { display: none; }
/* scroll fab in header: hidden at top, no longer floating */
#scroll-fab { transition: opacity 0.3s ease, transform 0.3s ease; }
#scroll-fab svg { transition: transform 0.3s ease; display: block; }
/* ============ CONTROL CENTER — every site switch, one panel ============ */
/* lives at the bottom of the honey drop-menu: links above, switches
   below. the scattered widgets retired in here (round 5): the hover
   volume slider and the drone's nav-cluster button are gone. their
   state didn't move — motion is still localStorage "mara-motion", the
   synth volume is still window._synthVol, the drone keeps its own
   station — only the front doors consolidated. */
.cc {
  border-top: 1px solid color-mix(in srgb, var(--gold) 18%, transparent);
  margin-top: var(--space-2);
  padding-top: var(--space-2);
}
.cc-label {
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim);
  padding: 0 var(--space-3) var(--space-1);
}
.cc-row {
  display: flex; align-items: center; gap: var(--space-3);
  width: 100%; text-align: left;
  background: none; border: none; border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  font-family: var(--mono); color: var(--white);
  cursor: pointer; position: relative;
  transition: background var(--dur-tap) var(--ease-swift);
}
.cc-row:hover { background: color-mix(in srgb, var(--gold) 10%, transparent); }
.cc-name { font-size: 0.85rem; color: var(--gold); flex: none; }
.cc-state { margin-left: auto; font-size: 0.75rem; color: var(--dim); white-space: nowrap; }
/* the switch — a pill with a knob, house tokens only */
.cc-switch {
  flex: none; width: 34px; height: 20px;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  position: relative;
  transition: background var(--dur-tap) var(--ease-swift), border-color var(--dur-tap) var(--ease-swift);
}
.cc-knob {
  position: absolute; top: 2px; left: 2px;
  width: 14px; height: 14px; border-radius: var(--radius-round);
  background: var(--gold-dim);
  transition: transform var(--dur-quick) var(--ease-snap), background var(--dur-tap) var(--ease-swift);
}
.cc-row[aria-checked="true"] .cc-switch {
  background: color-mix(in srgb, var(--gold) 25%, transparent);
  border-color: var(--gold);
}
.cc-row[aria-checked="true"] .cc-knob { transform: translateX(14px); background: var(--gold); }
/* volume row — not a switch, a slider with a readout */
.cc-volume { cursor: default; }
.cc-volume:hover { background: none; }
.cc-volume input[type="range"] {
  flex: 1; min-width: 0; accent-color: var(--gold); cursor: pointer;
}
.cc-foot {
  font-size: 0.68rem; color: var(--dim);
  padding: var(--space-1) var(--space-3) 0;
}
/* the drone button lives here now. ambient.js still owns its behavior
   (icon, station dots, playing class) — this is just its new chair. */
#ambient-btn .ab-icon { font-size: 1.05rem; line-height: 1; color: var(--gold); }
#ambient-btn.playing { background: color-mix(in srgb, var(--gold) 10%, transparent); }
#ambient-btn.playing .ab-icon { text-shadow: 0 0 8px var(--gold); }
#ambient-btn.playing .cc-state { color: var(--gold); }
/* command bar affordance — a pill in the round nav cluster */
#cmdk-btn {
  width: auto; padding: 0 var(--space-3);
  border-radius: var(--radius-pill);
  font-size: 0.72rem; letter-spacing: 0.04em;
  /* the honeypot flourish, same as the pot: gold glow, gentle bob.
     press feel is the spring system's (drag.js), not css. */
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--gold) 55%, transparent));
  animation: honey-bob 4s ease-in-out infinite;
}


/* ============ COMMAND BAR — the summoned interface (⌘k) ============ */
/* appears when called, vanishes when dismissed. never uninvited. */
.cmdk { position: fixed; inset: 0; z-index: 400; }
.cmdk[hidden] { display: none; }
.cmdk-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); }
.cmdk-panel {
  position: relative;
  width: min(620px, calc(100vw - var(--space-6)));
  margin: 12vh auto 0;
  /* liquid glass, strong fill — small text over a dimmed page */
  background-color: var(--glass-fill-strong);
  background-image: var(--glass-tint);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shine), 0 24px 80px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}
.cmdk.open .cmdk-panel { animation: cmdk-in var(--dur-quick) var(--ease-snap); }
.cmdk.open .cmdk-backdrop { animation: cmdk-fade var(--dur-quick) var(--ease-soft); }
/* motion off: the bar still comes when called — it just fades, no spring */
.cmdk.no-motion .cmdk-panel { animation: cmdk-fade var(--dur-quick) var(--ease-soft); }
@keyframes cmdk-in {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes cmdk-fade { from { opacity: 0; } to { opacity: 1; } }
#cmdk-input {
  width: 100%;
  background: transparent; border: none; outline: none;
  color: var(--white); font-family: var(--mono); font-size: 1rem;
  padding: var(--space-4);
  caret-color: var(--gold);
}
#cmdk-input:focus-visible { outline: none; }
.cmdk-list { max-height: 46vh; overflow-y: auto; padding: 0 var(--space-2) var(--space-2); }
.cmdk-group {
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim);
  padding: var(--space-3) var(--space-3) var(--space-1);
}
.cmdk-item {
  display: flex; align-items: baseline; gap: var(--space-3);
  width: 100%; text-align: left;
  background: none; border: none; border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  font-family: var(--mono); color: var(--white); font-size: 0.88rem;
  cursor: pointer;
}
.cmdk-item[data-kind="do"] .cmdk-item-label { color: var(--gold); }
.cmdk-item-hint {
  margin-left: auto; flex: none;
  font-size: 0.72rem; color: var(--dim);
  white-space: nowrap;
}
.cmdk-item.active { background: color-mix(in srgb, var(--gold) 14%, transparent); }
.cmdk-item.active .cmdk-item-hint { color: var(--gold); }
/* service state dots in the bar — same three states as the
   ecosystem drawer and the launcher tiles, one probe source */
.cmdk-dot {
  align-self: center; flex: none;
  width: 8px; height: 8px; border-radius: var(--radius-round);
  background: var(--dim);
}
.cmdk-dot.up { background: var(--green); }
.cmdk-dot.down { background: var(--red); }
.cmdk-dot.disabled { background: transparent; border: 1px solid var(--dim); }
.cmdk-empty { padding: var(--space-4) var(--space-3); color: var(--dim); font-size: 0.85rem; }
.cmdk-foot {
  border-top: 1px solid color-mix(in srgb, var(--gold) 15%, transparent);
  padding: var(--space-2) var(--space-4);
  font-size: 0.68rem; color: var(--dim);
}
@media (max-width: 640px) {
  .cmdk-panel { margin-top: 6vh; }
  .cmdk-item-hint { display: none; }
}
.card, .drop-card { position: relative; }
.drop-card .term-body {
  padding: var(--space-4);
  min-height: 280px; max-height: 420px;
  overflow-y: auto;
  font-size: 0.92rem; line-height: 1.7;
}
.term-line { word-break: break-word; }
/* block-render output: tables align by construction (no nbsp),
   galleries sit in a wrapping row, pre keeps its whitespace */
.term-table { border-collapse: collapse; }
.term-table td, .term-table th { padding: 0 1.2em 0 0; text-align: left; vertical-align: top; font-weight: inherit; }
.term-gallery { display: flex; flex-wrap: wrap; gap: 6px; }
.term-gallery img { max-width: 160px; max-height: 120px; }
.term-line pre { margin: 0; font: inherit; white-space: pre-wrap; }
/* clickable command chips in help output */
.t-cmd {
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  border-radius: var(--radius-pill);
  color: var(--gold);
  font-family: var(--mono); font-size: 0.85em;
  padding: 2px 10px; margin: 1px 2px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.t-cmd:hover {
  background: color-mix(in srgb, var(--gold) 25%, transparent);
  transform: translateY(-1px);
}
.t-cmd:active { transform: scale(0.96); }
.term-input-line { display: flex; align-items: center; margin-top: var(--space-2); }
.term-prompt { color: var(--gold); margin-right: var(--space-2); font-weight: 700; }
/* the prompt arrow, away from home: a faint outline holds its slot in the
   input line so the line never collapses while it's out causing problems */
.term-prompt-ghost {
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-dim);
  opacity: 0.6;
  pointer-events: none;
  user-select: none;
}
/* loose on the page: gentle pulse + a little glow, so it reads as
   "click me home" from across the room */
.term-prompt-loose {
  filter: drop-shadow(0 0 7px color-mix(in srgb, var(--gold) 65%, transparent));
  animation: prompt-pulse 1.6s var(--ease-soft) infinite;
}
@keyframes prompt-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
/* impact shake — written to the standalone `rotate` property, never
   `transform`/`translate`, so it can never fight the window's position */
@keyframes term-shake-k {
  0% { rotate: 0deg; } 25% { rotate: 0.35deg; }
  60% { rotate: -0.3deg; } 100% { rotate: 0deg; }
}
@keyframes term-shake-big-k {
  0% { rotate: 0deg; } 20% { rotate: 0.7deg; } 45% { rotate: -0.6deg; }
  70% { rotate: 0.4deg; } 100% { rotate: 0deg; }
}
.terminal.term-shake { animation: term-shake-k 0.18s var(--ease-swift); }
.terminal.term-shake-big { animation: term-shake-big-k 0.3s var(--ease-swift); }
/* the arrow's own fx canvas — sparks and rings live here, above the
   window, below nothing that matters. never eats a click. */
#arrow-fx {
  position: fixed; inset: 0; z-index: 315;
  width: 100%; height: 100%;
  pointer-events: none;
}
#term-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--white); font-family: var(--mono);
  font-size: 16px; /* ≥16px: no iOS focus zoom */
  caret-color: var(--gold);
}
#term-input:focus-visible { outline: none; }
.t-pink { color: var(--gold-bright); }
.t-green { color: var(--green); }
.t-dim { color: var(--dim); }
.t-gold { color: var(--gold); }
.t-red { color: var(--red); }

/* ============ PROJECT CARDS ============ */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
.card {
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; text-align: left;
  /* liquid glass — cards float over the hex field, so: blur, tint,
     shine. the hexes ghost through; the tint's dark bottom keeps the
     description readable. */
  background-color: var(--glass-fill);
  background-image: var(--glass-tint);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid color-mix(in srgb, var(--gold) 25%, transparent);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--glass-shine);
  font-family: var(--mono); color: var(--on-surface);
  text-decoration: none; cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  min-height: 44px;
}
/* card spotlight — light follows the cursor inside each card */
.card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%),
    color-mix(in srgb, var(--gold) 14%, transparent),
    transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
/* sheen sweep on hover */
.card::after {
  content: "";
  position: absolute; top: 0; left: -80%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent,
    color-mix(in srgb, var(--gold) 22%, transparent), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
  pointer-events: none;
}
.card:hover::after { left: 130%; }
/* micro-glitch on hover: the title jitters with rgb split */
.card:hover b {
  animation: card-glitch 0.32s steps(2) 1;
}
@keyframes card-glitch {
  0% { transform: translate(0, 0); text-shadow: none; }
  25% { transform: translate(-1px, 0.5px); text-shadow: -0.5px 0 rgba(255, 92, 92, 0.7), 0.5px 0 rgba(92, 225, 255, 0.7); }
  50% { transform: translate(1px, -0.5px); text-shadow: 0.5px 0 rgba(255, 92, 92, 0.7), -0.5px 0 rgba(92, 225, 255, 0.7); }
  100% { transform: translate(0, 0); text-shadow: none; }
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: var(--glass-shine),
              0 12px 32px color-mix(in srgb, var(--gold) 18%, transparent);
}
.card b { display: block; color: var(--gold); font-size: 1rem; margin-bottom: var(--space-1); }
.card span { color: var(--dim); font-size: 0.82rem; line-height: 1.55; text-wrap: balance; }
/* the projects row reads as one set: same floor height on every card,
   whatever the description length does */
.cards .card { min-height: 120px; }
/* the /visuals entry card: same card, slimmer — a doorway, not a room.
   title, badge, subtext stack in flow (the badge is NOT the absolute
   corner pill here) so nothing can overlap at any width. */
.visuals-entry { padding: var(--space-4) var(--space-5); gap: var(--space-2); }
.visuals-entry b { margin-bottom: 0; }
.visuals-entry /* ============ FOOTER ============ */
footer {
  padding: var(--space-7) 0 var(--space-8);
  text-align: center;
  color: var(--dim); font-size: 0.82rem;
  display: flex; flex-direction: column; gap: var(--space-2);
}
/* the vitals line is one flex row: text and the jar share a center line,
   so nothing rides high or low against the type */
footer .vitals {
  color: var(--dim);
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: var(--space-1) var(--space-2); line-height: 1.5;
}
footer .spite { color: var(--gold); }
footer .gh-link { color: var(--dim); display: inline-block; line-height: 0; margin-left: 8px; vertical-align: -3px; }
.card .wip { position: absolute; top: 10px; right: 12px; font-style: normal; font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); border-radius: 99px; padding: 2px 7px; }
footer .gh-link:hover { color: var(--gold); }

/* (floating fabs retired — controls live in the header now) */
/* ============ REVEALS — subtle, once ============ */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* cursor glow — a soft gold flashlight following the pointer */
#cursor-glow {
  position: fixed; top: 0; left: 0; z-index: 60;
  width: 340px; height: 340px;
  margin: -170px 0 0 -170px;
  border-radius: var(--radius-round);
  background: radial-gradient(circle,
    color-mix(in srgb, var(--gold) 13%, transparent),
    color-mix(in srgb, var(--gold) 5%, transparent) 45%,
    transparent 70%);
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}
#cursor-glow.on { opacity: 1; }
/* fx canvas — tap bursts live ABOVE the content so they're always visible */
#fx {
  position: fixed; inset: 0; z-index: 70;
  width: 100%; height: 100%;
  pointer-events: none;
}

/* ============ REDUCED MOTION — everything static ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .reveal.in { transition: none; }
  .btn, .card, #ambient-btn { transition: none; }
  .btn::after, .card::after { display: none; }
  .hero::before { animation: none; }
  .tmark { animation: none; }
  .dropdown.open .drop-menu { animation: none; }
  #cmdk-btn { animation: none; }
  .card:hover b { animation: none; }
  .term-caret { animation: none; }
  .term-prompt-loose { animation: none; }
  .terminal.term-shake, .terminal.term-shake-big { animation: none; }
  .cmdk.open .cmdk-panel, .cmdk.open .cmdk-backdrop { animation: none; }
  .cc-knob, .cc-switch { transition: none; }
}
/* after dark (12am-5am) — the site gets deeper, more honest */
body.after-dark #bg { opacity: 0.75; }
body.after-dark { --gold: #f0d080; }
body.after-dark .eyebrow { letter-spacing: 0.12em; text-indent: 0.12em; }

/* ambient button works on mobile too (needs tap to start audio) */

/* radio station dots on the sound button */
.st-dots { display: inline-flex; gap: 3px; margin-left: 6px; align-items: center; }
.st-dots i {
  width: 6px; height: 6px; border-radius: var(--radius-round);
  background: var(--gold); display: inline-block;
  transition: opacity 0.2s ease;
}
#ambient-btn .st-dots { display: none; }

/* custom cursor disabled — was laggy. normal cursor everywhere. */
@media (pointer: fine) {
  body { cursor: auto; }
  a, button, input, .term-input { cursor: pointer; }
  #cursor-dot {
    position: fixed; z-index: 9999; pointer-events: none;
    width: 8px; height: 8px; border-radius: var(--radius-round);
    background: #e8c874;
    box-shadow: 0 0 12px 2px rgba(232, 200, 116, 0.6), 0 0 24px 4px rgba(232, 200, 116, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.15s, height 0.15s;
  }
  #cursor-dot.hovering {
    width: 14px; height: 14px;
    box-shadow: 0 0 16px 4px rgba(232, 200, 116, 0.8), 0 0 32px 8px rgba(232, 200, 116, 0.3);
  }
}

/* tabs scrapped */
.term-add, .term-tabs { display: none !important; }

/* mobile: allow pull-to-refresh and touch scrolling */
html, body {
  touch-action: pan-x pan-y;
  overscroll-behavior-y: auto;
}
.terminal {
  touch-action: pan-x pan-y;
}
.term-header {
  touch-action: none; /* only header blocks scroll for drag */
}

/* hide tap FX on touch devices */
@media (pointer: coarse) {
  #fx { display: none !important; }
}

/* ---------- the honeycomb field (buds only now) ---------- */
/* the bubble sheet was retired; what remains is the ambient bud field in
   its own background layer. buds snap to the background hex grid and sing
   the pentatonic scale — see wall-comb.js. */
.honeycomb-inline { position: relative; min-height: 260px; }
.hive-layer {
  position: absolute; inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.hive-layer .hive-bud { pointer-events: auto; }

/* ---------- the squiggle rule ---------- */
/* a vine strikethrough that GROWS across text. never just appears.
   svg wavy path, pathLength=1, dashoffset 1→0, ~650ms, gold, round caps. */
.squiggle-wrap { position: relative; display: inline-block; }
.squiggle-text { position: relative; z-index: 1; }
.squiggle-vine {
  position: absolute; left: 0; top: 50%;
  width: 100%; height: 0.6em;
  transform: translateY(-50%);
  overflow: visible; pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}
.squiggled .squiggle-vine { opacity: 1; }
.squiggle-vine path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.squiggled .squiggle-vine path {
  animation: squiggle-grow 650ms var(--ease-soft) forwards;
}
/* reduced motion: the done-state just reads, no performance */
.squiggle-still .squiggle-vine path {
  animation: none;
  stroke-dashoffset: 0;
}
@keyframes squiggle-grow { to { stroke-dashoffset: 0; } }

/* ---------- the jar (inline footer vital) ---------- */
.vital-jar { display: inline-flex; align-items: center; gap: 6px; }
.jar-mini {
  /* sized to the cap-height of the footer text it sits in — a glyph,
     not a billboard */
  display: inline-block; width: 9px; height: 12px; position: relative; overflow: hidden;
  border: 1.5px solid var(--gold-dim); border-radius: 2px 2px 4px 4px;
  background: rgba(232, 200, 116, 0.06);
}
.jar-mini .honey-fill {
  position: absolute; bottom: 0; left: 0; right: 0; height: 0%;
  background: linear-gradient(to top, var(--gold-dim), var(--gold));
  transition: height 1.2s cubic-bezier(0.34, 1.2, 0.64, 1);
}

/* ---------- stalk mode (PiP) — the terminal follows you ---------- */
.terminal.stalking {
  position: fixed; z-index: 300;
  bottom: var(--space-4); right: var(--space-4);
  width: 300px; max-width: calc(100vw - var(--space-6));
  margin: 0;
}
.terminal.stalking .term-body { max-height: 170px; min-height: 110px; }
.terminal.stalking .term-tabs { display: none; }
.terminal.stalking .term-title::after { content: " — stalking"; color: var(--gold-dim); }
@media (max-width: 640px) {
  .terminal.stalking { width: 250px; bottom: var(--space-3); right: var(--space-3); }
}

/* ---------- material: contained press ripples ---------- */
.m-ripple {
  position: absolute; border-radius: var(--radius-round); pointer-events: none; z-index: 5;
  background: radial-gradient(circle, rgba(255,233,168,0.5) 0%, rgba(232,200,116,0.22) 55%, transparent 72%);
  transform: scale(0); opacity: 1;
  animation: m-ripple 0.6s cubic-bezier(0.05, 0.7, 0.1, 1) forwards;
}
@keyframes m-ripple { to { transform: scale(1); opacity: 0; } }
/* cards clip their ripples; the shine sweep stays inside too (M3-correct) */
.card { overflow: hidden; }
/* dots need clipping for the ripple to stay round */
.dot { overflow: hidden; }

/* ---------- new sections ---------- */
.bio p { max-width: 620px; line-height: 1.7; margin: 0 0 var(--space-4); }
.notes-list { display: flex; flex-direction: column; gap: var(--space-2); max-width: 640px; }
.note-item { color: var(--white);
  background: transparent; border: 1px solid rgba(232, 200, 116, 0.22);
  border-radius: var(--radius-lg); padding: var(--space-3) var(--space-4); text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3);
  transition: border-color 0.15s ease, background 0.15s ease;
  font: inherit; width: 100%;
}
.note-item:hover { border-color: var(--gold); background: rgba(232, 200, 116, 0.05); }
.note-item b { color: var(--gold); font-weight: 600; }
.note-item span { color: var(--dim); font-size: 0.85rem; flex: none; }
.note-body { max-width: 640px; line-height: 1.7; border-left: 2px solid var(--gold-dim); padding-left: var(--space-4); margin-top: var(--space-1); }
.note-body p { margin: 0 0 var(--space-3); }
.now-list p { margin: 0 0 var(--space-2); max-width: 620px; }
.wall-wrap { max-width: 620px; display: flex; flex-direction: column; gap: var(--space-4); }
.wall-messages { display: flex; flex-direction: column; gap: var(--space-2); min-height: 40px; }
.wall-msg { border-left: 2px solid var(--gold-dim); padding-left: var(--space-4); line-height: 1.6; }
.wall-msg .w-name { color: var(--gold); font-weight: 600; }
.wall-msg .w-date { color: var(--dim); font-size: 0.8rem; }
.wall-msg .w-text { display: block; margin-top: 2px; }
.wall-form { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.wall-input {
  background: rgba(0,0,0,0.3); border: 1px solid rgba(232, 200, 116, 0.25); color: var(--white);
  border-radius: var(--radius-md); padding: var(--space-2) var(--space-3); font: inherit; font-size: 0.9rem;
}
.wall-input::placeholder { color: var(--dim); opacity: 1; }
.wall-input:focus { outline: none; border-color: var(--gold); }
#wall-name { width: 140px; flex: none; }
#wall-text { flex: 1; min-width: 200px; }
.wall-submit {
  background: transparent; border: 1px solid var(--gold); color: var(--gold);
  border-radius: var(--radius-pill); padding: var(--space-2) var(--space-5); cursor: pointer; font: inherit; font-size: 0.9rem;
  transition: background 0.15s ease;
}
.wall-submit:hover { background: rgba(232, 200, 116, 0.12); }
.wall-note { font-size: 0.85rem; margin: 0; }
.contact-list p { margin: 0 0 var(--space-2); }
.contact-list .t-link { text-decoration: none; border-bottom: 1px solid var(--gold-dim); }
.contact-list .t-link:hover { border-color: var(--gold); }
@media (max-width: 640px) {
  .wall-form { flex-direction: column; }
  #wall-name { width: 100%; }
}

.act .eyebrow { text-indent: 0; }

/* fidget: spotlight cards — warm lantern glow follows the cursor */
.card { position: relative; }
.card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
    rgba(232, 200, 116, 0.14), transparent 70%);
  opacity: 0; transition: opacity 0.25s ease; pointer-events: none;
}
.card:hover::before { opacity: 1; }

/* fidget: hold-to-confirm — wall submit fills like a honey jar rising */
.wall-submit { position: relative; overflow: hidden; --p: 0; }
.wall-submit.holding {
  background: linear-gradient(to top, rgba(232, 200, 116, 0.4) calc(var(--p) * 100%), transparent 0);
}

/* section divider — a whisper, not a fidget. hairline + one tiny hex,
   major act breaks only. (this used to be a row of poppable mini hexes;
   sleek beat fun here, per the owner.) */
.divider {
  display: flex; align-items: center; gap: var(--space-3);
  max-width: 380px; margin: 0 auto;
  opacity: 0.55;
}
/* the divider sits IN the open space between acts, centered in it —
   not stacked on top of two full section paddings. the acts hand back
   some of their padding around a divider, so the gap the hairline
   floats in is the actual gap. (round 4: the beekeeper divider had a
   whole void of stacked padding above it.) */
.act:has(+ .divider) { padding-bottom: var(--space-5); }
.divider + .act { padding-top: var(--space-5); }
.divider::before, .divider::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, color-mix(in srgb, var(--gold) 45%, transparent));
}
.divider::after {
  background: linear-gradient(to left, transparent, color-mix(in srgb, var(--gold) 45%, transparent));
}
.divider svg { width: 13px; height: 15px; flex: none; }
.divider svg path { fill: none; stroke: var(--gold); stroke-width: 1.6; }

/* scramble text — tap scrambles, hold charges the yeet (see scramble.js) */
.scramble-el { cursor: pointer; }
/* chips are inline by nature and need a box before they can transform.
   card titles are deliberately NOT in that rule: they're blocks, and
   forcing them inline-block is what ran card names straight into their
   descriptions (round 4). blocks transform fine on their own. */
.t-cmd.scramble-el { display: inline-block; }
.card b.scramble-el, .drop-card b.scramble-el { display: block; }
.scramble-el.yeet-armed {
  color: var(--gold-bright);
  transform: scale(1.05);
  transition: transform var(--dur-tap) var(--ease-snap), color var(--dur-tap) var(--ease-soft);
}

/* terminal: always allow text selection */
.term-body, .term-body * {
  user-select: text !important;
  -webkit-user-select: text !important;
}
.term-input-line input {
  user-select: text !important;
  -webkit-user-select: text !important;
}

/* (the nav-era synth pulse on #ambient-btn retired with the button's
   old placement — in the control center the drone row just tints gold
   while it plays. calmer. see the control center block above.) */

/* drag grip on nav buttons — small handle for yeeting */
#topnav-controls button { position: relative; }
.drag-grip {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 6px;
  border-radius: var(--radius-xs);
  background: color-mix(in srgb, var(--gold) 30%, transparent);
  cursor: grab;
  opacity: 0;
  transition: opacity 0.2s;
}
#topnav-controls button:hover .drag-grip { opacity: 1; }
.drag-grip:active { cursor: grabbing; }

/* honeycomb inline — woven in, not a card */
.honeycomb-inline {
  padding: var(--space-5) 0;
  text-align: center;
}
/* mobile: shorter terminal so keyboard doesn't hide everything */
@media (pointer: coarse) {
  .hero-term .term-body {
    min-height: 180px;
    max-height: 40vh;
  }
  .terminal {
    max-height: 60vh;
  }
}

/* hide the custom cursor dot entirely */
#cursor-dot, #cursor-ring { display: none !important; }

/* fidgets shouldn't select text — terminal is the exception */
.card, .eyebrow, h2, .bubble, .face-text, .tmark,
#topnav-controls button, .drag-grip {
  user-select: none;
  -webkit-user-select: none;
}
/* terminal keeps selection (explicitly allowed) */
.term-body, .term-body *, .term-input-line input {
  user-select: text !important;
  -webkit-user-select: text !important;
}

/* wall-spawn hexes — juicy */
/* a bud is EXACTLY one background hex: the body::before tile is 56x100
   and the hex drawn in it is 56 wide x 66 tall, its side corners at
   16/66 and 50/66 of the height. match those numbers and a bud's edges
   coincide with the background outline under it. (round 4: it used to
   be 56x62 with 25%/75% corners — close, but visibly its own shape.) */
.bubble.hive-bud {
  width: 56px;
  height: 66px;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  clip-path: polygon(50% 0%, 100% 24.242%, 100% 75.758%, 50% 100%, 0% 75.758%, 0% 24.242%);
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 25%, transparent), color-mix(in srgb, var(--gold) 8%, transparent));
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  transition: left var(--dur-slow) var(--ease-snap), top var(--dur-slow) var(--ease-snap), transform var(--dur-quick) var(--ease-swift), opacity var(--dur-quick) var(--ease-soft);
}
.bubble.hive-bud:hover {
  transform: scale(1.1);
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 40%, transparent), color-mix(in srgb, var(--gold) 15%, transparent));
  box-shadow: 0 0 20px color-mix(in srgb, var(--gold) 50%, transparent);
}
.bubble.hive-bud.popped {
  transform: scale(1.4);
  opacity: 0;
}

/* hive-y: subtle hex pattern on background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='56' height='100' viewBox='0 0 56 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23e8c874' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 100px;
}

/* cards get honeycomb corners */
.card {
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
}

/* hive palette — more than just gold */
:root {
  --amber: #f5a623;
  --honey: #ffc53d;
  --wax: #f9e7b2;
  --propolis: #8b5a2b;
  --comb-dark: #3a2e1a;
}

/* vary the accents */
.eyebrow { color: var(--amber); }
.t-gold { color: var(--honey); }
.card:nth-child(odd) { --gold: var(--amber); }
.bubble.hive-bud:nth-child(3n) {
  background: linear-gradient(135deg, color-mix(in srgb, var(--amber) 25%, transparent), color-mix(in srgb, var(--amber) 8%, transparent));
  border-color: color-mix(in srgb, var(--amber) 40%, transparent);
}
.bubble.hive-bud:nth-child(3n+1) {
  background: linear-gradient(135deg, color-mix(in srgb, var(--honey) 25%, transparent), color-mix(in srgb, var(--honey) 8%, transparent));
  border-color: color-mix(in srgb, var(--honey) 40%, transparent);
}
/* face clicks shouldn't select terminal text */
.term-face, .term-face *, .face-text {
  user-select: none !important;
  -webkit-user-select: none !important;
}

/* the honeypot sidebar — the honey menu grew up into a panel.
   slide-in from the left, same glass as the old drop-menu. */
#honeypot-panel {
  position: fixed; top: 0; left: 0; z-index: 300;
  width: min(280px, 84vw); height: 100dvh;
  transform: translateX(-106%);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0.24, 1);
  background-color: var(--glass-fill-strong);
  background-image: var(--glass-tint);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-right: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
  padding: 14px 10px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 8px;
}
#honeypot-panel.open { transform: none; }
#panel-backdrop {
  position: fixed; inset: 0; z-index: 290;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
#honeypot-panel.open ~ #panel-backdrop { opacity: 1; pointer-events: auto; }
#honeypot-panel .panel-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
#honeypot-panel .panel-title {
  font-family: var(--font-display, inherit); color: var(--gold);
  letter-spacing: 0.04em;
}
#panel-close {
  background: none; border: none; color: var(--dim);
  font-size: 1.3rem; cursor: pointer; line-height: 1; padding: 4px 8px;
}
#panel-close:hover { color: var(--gold); }
#honeypot-panel .drop-card { width: 100%; text-align: left; position: relative; }
#honeypot-panel .cc { margin-top: 10px; }
