@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Raleway:wght@600;700;800&family=Roboto:wght@400;500;600&family=Roboto+Mono:wght@400;500&display=swap');

/* Showcase (showcase.js): no page scroll. A living map of the work fills
   the screen on a warm paper canvas with a fine dot grid: three
   disciplines as solid anchors, their skills as quiet pills, and every
   case study and piece as a clean picture card, joined by hairlines. The
   intro sits at the left, a dock at the bottom. */

:root {
  --bg: #f9e0d6;
  --ink: #301e18;
  --ink-dim: rgba(48, 30, 24, 0.68);
  --ink-faint: rgba(48, 30, 24, 0.45);
  --accent: #b8323d;
  --coral: #e8505b;
  --paper: #fdfbf8;
  --canvas: #f6f1ec;
  --line: rgba(48, 30, 24, 0.22);
  --hairline: rgba(48, 30, 24, 0.1);
  --glass: rgba(253, 251, 248, 0.72);
  --backdrop: rgba(46, 27, 21, 0.36);
  --shadow-node: 0 0 0 1px rgba(48, 30, 24, 0.06), 0 1px 2px rgba(48, 30, 24, 0.06), 0 12px 28px -14px rgba(48, 30, 24, 0.32);
  --shadow-node-lift: 0 0 0 1px rgba(48, 30, 24, 0.06), 0 2px 4px rgba(48, 30, 24, 0.06), 0 28px 48px -20px rgba(48, 30, 24, 0.42);
  --dock: rgba(34, 20, 15, 0.72);
  --dock-line: rgba(253, 251, 248, 0.12);
  --shadow-panel: -8px 0 48px rgba(48, 30, 24, 0.22);
  --ease-settle: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-lift: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font-hand: Caveat, 'Segoe Print', cursive;
  --font-mono: 'Roboto Mono', ui-monospace, Menlo, monospace;

  /* ==== Cards (pieces on the map) ==== */
  --card-bg: #fdfbf8;
  --card-pad: 0px;
  --card-radius: 10px;
  --card-focus: top;
  --card-device-radius: 8px;
}

* { box-sizing: border-box; }

html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }

body {
  margin: 0;
  background: var(--canvas);
  font-family: var(--font-family-body);
  color: var(--ink);
}

/* ---- Top bar ---- */
.showcase-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  pointer-events: none;
}

.showcase-title,
.showcase-close {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 8px rgba(48, 30, 24, 0.1);
  pointer-events: auto;
}

.showcase-title {
  padding: 10px 16px;
  border-radius: 100px;
  font-family: var(--font-breadcrumb-family);
  font-size: var(--font-breadcrumb-size);
  font-weight: var(--font-breadcrumb-weight);
  line-height: var(--font-breadcrumb-line-height);
  letter-spacing: var(--font-breadcrumb-tracking);
  text-transform: uppercase;
}

.showcase-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 100px;
  color: var(--ink);
  font-size: var(--font-size-800);
  line-height: var(--line-height-icon);
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.showcase-close:hover { background: var(--paper); }
.showcase-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }


/* ---- The map ----
   Fixed to the screen. The canvas draws the dot grid and the links in
   screen space; the layer holds the nodes and is moved and scaled by the
   script (transform). Nothing here scrolls, so touch-action is off and
   every drag is ours. */
.showcase-board {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.showcase-board.is-panning { cursor: grabbing; }
.graph-lines { position: absolute; inset: 0; pointer-events: none; }
.graph-layer { position: absolute; inset: 0; transform-origin: 0 0; pointer-events: none; }
.graph-layer > * { pointer-events: auto; }

/* Every node is a button centred on its point; the script sets its
   transform each frame (and its opacity while they fade in on first
   load), so hover uses the separate scale property. */
.g-node {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: opacity 0.4s var(--ease-settle), scale 0.35s var(--ease-lift), box-shadow 0.35s var(--ease-lift), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.g-node:focus { outline: none; }
.g-node:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.is-dragging .g-node { cursor: grabbing; }

/* Tracing a thread: what's on it stays, the rest steps back. */
.is-tracing .g-node:not(.is-lit) { opacity: 0.16; }

/* Work: the picture as a clean card. */
/* Each piece can override these with its own look (fit, focus, zoom,
   padding, color, corners), set in the site editor. */
.g-work {
  padding: var(--card-pad);
  border-radius: var(--card-radius);
  background: var(--card-bg);
  box-shadow: var(--shadow-node);
}
.g-frame {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: max(0px, calc(var(--card-radius) - var(--card-pad)));
  pointer-events: none;
}
.g-work img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--card-focus);
  transform-origin: var(--card-focus);
}
.g-work.is-source { scale: 1.04; box-shadow: var(--shadow-node-lift); }
/* Phone screenshots: shown whole, centred on the card - one, or two side
   by side. */
.g-frame--mobile,
.g-frame--pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6%;
  padding: 7% 8%;
}
.g-frame--mobile img,
.g-frame--pair img {
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--card-device-radius);
  box-shadow: 0 6px 16px -8px rgba(48, 30, 24, 0.45);
}
.g-frame--pair img { max-width: 47%; }

/* The label under a piece: always under a case study; under the rest on
   its thread, on focus, and once you zoom in close. */
.g-label {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: max(100%, 150px);
  text-align: left;
  opacity: 0;
  translate: 0 -4px;
  pointer-events: none;
  transition: opacity 0.25s ease, translate 0.3s var(--ease-settle);
}
.g-tag {
  font-family: var(--font-breadcrumb-small-family);
  font-size: var(--font-breadcrumb-small-size);
  font-weight: var(--font-breadcrumb-small-weight);
  line-height: var(--font-breadcrumb-small-line-height);
  letter-spacing: var(--font-breadcrumb-small-tracking);
  text-transform: uppercase;
  color: var(--ink-faint);
}
.g-title {
  font-family: var(--font-label-strong-family);
  font-size: var(--font-label-strong-size);
  font-weight: var(--font-label-strong-weight);
  line-height: var(--font-label-strong-line-height);
}
.g-work--study .g-tag { color: var(--accent); }
.g-work--study .g-label,
.is-near .g-label,
.g-work.is-lit .g-label,
.g-work:focus-visible .g-label { opacity: 1; translate: 0 0; }

/* Skills: a quiet pill with a count of the work behind it. */
.g-skill,
.g-disc {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 100px;
  white-space: nowrap;
}
.g-skill {
  padding: 6px 8px 6px 12px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  box-shadow: 0 1px 2px rgba(48, 30, 24, 0.05);
}
.g-skill .g-name {
  font-family: var(--font-label-family);
  font-size: var(--font-label-size);
  font-weight: var(--font-label-weight);
  line-height: var(--font-label-line-height);
}
.g-count {
  font-family: var(--font-annotation-family);
  font-size: var(--font-annotation-size);
  font-weight: var(--font-annotation-weight);
  line-height: var(--font-annotation-line-height);
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.g-skill .g-count { min-width: 18px; padding: 2px 5px; border-radius: 100px; background: var(--canvas); text-align: center; }
.g-skill.is-lit { border-color: rgba(48, 30, 24, 0.3); }
.g-skill.is-source,
.g-skill.is-pinned { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.g-skill.is-source .g-count,
.g-skill.is-pinned .g-count { background: rgba(253, 251, 248, 0.14); color: rgba(253, 251, 248, 0.7); }

/* Disciplines: the anchors, solid ink. */
.g-disc {
  padding: 11px 18px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 0 0 6px rgba(48, 30, 24, 0.06), 0 10px 24px -10px rgba(48, 30, 24, 0.5);
}
.g-disc .g-name {
  font-family: var(--font-heading-xsmall-family);
  font-size: var(--font-heading-xsmall-size);
  font-weight: var(--font-heading-xsmall-weight);
  line-height: var(--font-heading-xsmall-line-height);
  letter-spacing: var(--font-heading-xsmall-tracking);
}
.g-disc .g-count { color: rgba(253, 251, 248, 0.6); }
.g-disc.is-source,
.g-disc.is-pinned { box-shadow: 0 0 0 6px rgba(184, 50, 61, 0.16), 0 10px 24px -10px rgba(48, 30, 24, 0.5); }

@media (hover: hover) {
  .g-work:hover { scale: 1.04; box-shadow: var(--shadow-node-lift); }
  .g-skill:hover { border-color: rgba(48, 30, 24, 0.3); }
}

/* ---- Intro ----
   Plain type at the left on wide screens, with the disciplines as an
   index you can pick from; a frosted strip under the top bar on smaller
   ones. */
.graph-intro {
  position: fixed;
  top: 96px;
  left: 32px;
  z-index: 15;
  width: 272px;
}
.graph-eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-breadcrumb-small-family);
  font-size: var(--font-breadcrumb-small-size);
  font-weight: var(--font-breadcrumb-small-weight);
  line-height: var(--font-breadcrumb-small-line-height);
  letter-spacing: var(--font-breadcrumb-small-tracking);
  text-transform: uppercase;
  color: var(--accent);
}
.graph-intro h1 {
  margin: 0 0 10px;
  font-family: var(--font-heading-xxlarge-family);
  font-size: var(--font-heading-xxlarge-size);
  font-weight: var(--font-heading-xxlarge-weight);
  line-height: var(--font-heading-xxlarge-line-height);
  letter-spacing: var(--font-heading-xxlarge-tracking);
}
.graph-lede {
  margin: 0 0 22px;
  font-family: var(--font-body-small-family);
  font-size: var(--font-body-small-size);
  font-weight: var(--font-body-small-weight);
  line-height: var(--font-body-small-line-height);
  color: var(--ink-dim);
}
.graph-filters { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hairline); }
.graph-filters li { border-bottom: 1px solid var(--hairline); }
.graph-filters button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 2px;
  border: 0;
  background: none;
  color: var(--ink-dim);
  font-family: var(--font-label-family);
  font-size: var(--font-label-size);
  font-weight: var(--font-label-weight);
  line-height: var(--font-label-line-height);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease, padding 0.3s var(--ease-settle);
}
.graph-filters button span {
  font-family: var(--font-annotation-family);
  font-size: var(--font-annotation-size);
  font-weight: var(--font-annotation-weight);
  line-height: var(--font-annotation-line-height);
  color: var(--ink-faint);
}
.graph-filters button:hover { color: var(--ink); padding-left: 6px; }
.graph-filters button[aria-pressed="true"] { color: var(--ink); font-weight: var(--font-label-strong-weight); padding-left: 6px; }
.graph-filters button[aria-pressed="true"]::before { content: ''; width: 6px; height: 6px; margin-right: -4px; border-radius: 50%; background: var(--accent); }
.graph-filters button[aria-pressed="true"] { justify-content: flex-start; }
.graph-filters button[aria-pressed="true"] span { margin-left: auto; }
.graph-filters button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* A discipline's skills, a quieter list under it. */
.graph-skills { margin: -4px 0 10px; padding: 0; list-style: none; }
.graph-filters .graph-skills li { border: 0; }
.graph-filters .graph-skills button { padding: 3px 2px 3px 12px; font-size: var(--font-annotation-size); line-height: var(--font-annotation-line-height); }
.graph-filters .graph-skills button:hover,
.graph-filters .graph-skills button[aria-pressed="true"] { padding-left: 18px; }

/* ---- Dock ----
   Frosted, at the bottom: show everything, zoom and hold still. Above it, a "Drag to explore" hint until you first move the map. */
.showcase-dock {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  translate: -50% 0;
  border-radius: 18px;
  background: var(--dock);
  border: 1px solid var(--dock-line);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 30px -8px rgba(30, 16, 10, 0.5);
}
.showcase-dock button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: rgba(253, 251, 248, 0.78);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-settle);
}
.showcase-dock button svg { width: 17px; height: 17px; }
.showcase-dock button:hover { background: rgba(253, 251, 248, 0.1); color: var(--paper); }
.showcase-dock button:active { transform: scale(0.92); }
.showcase-dock button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.showcase-dock button:disabled { opacity: 0.4; cursor: default; }
.showcase-dock button:focus-visible { outline: 2px solid var(--coral); outline-offset: 1px; }
/* The label, shown above a button on hover or focus. */
.dock-tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  padding: 5px 9px;
  translate: -50% 4px;
  border-radius: 8px;
  background: var(--dock);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--paper);
  font-family: var(--font-label-strong-family);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, translate 0.2s var(--ease-settle);
}
.showcase-dock button:hover .dock-tip,
.showcase-dock button:focus-visible .dock-tip { opacity: 1; translate: -50% 0; }
.dock-divider { width: 1px; height: 22px; margin: 0 6px; background: var(--dock-line); }
.dock-seen {
  padding: 0 10px 0 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(253, 251, 248, 0.62);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.board-hint {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 29;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 7px 13px 7px 11px;
  translate: -50% 0;
  border-radius: 100px;
  background: var(--dock);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--paper);
  font-family: var(--font-label-strong-family);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.5s ease, translate 0.5s var(--ease-settle);
  animation: hint-in 0.6s var(--ease-settle) 1.2s backwards;
}
.board-hint svg { width: 14px; height: 14px; }
.has-moved .board-hint { opacity: 0; translate: -50% 8px; }
@keyframes hint-in { from { opacity: 0; translate: -50% 8px; } }

/* ---- Detail panel (a bottom sheet on phones) ---- */
.showcase-backdrop {
  position: fixed;
  inset: 0;
  z-index: 43;
  background: var(--backdrop);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.showcase-backdrop.is-open { opacity: 1; pointer-events: auto; }

.showcase-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 44;
  display: flex;
  flex-direction: column;
  width: min(480px, 92vw);
  background: var(--paper);
  border-left: 1px solid var(--hairline);
  box-shadow: var(--shadow-panel);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s 0.4s;
}
.showcase-panel.is-open { transform: translateX(0); visibility: visible; transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1); }

.showcase-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 24px 28px 0; }
.showcase-panel-grabber { display: none; }
.showcase-panel-tag {
  font-family: var(--font-breadcrumb-family);
  font-size: var(--font-breadcrumb-size);
  font-weight: var(--font-breadcrumb-weight);
  line-height: var(--font-breadcrumb-line-height);
  letter-spacing: var(--font-breadcrumb-tracking);
  text-transform: uppercase;
  color: var(--accent);
}
.showcase-panel-close,
.showcase-panel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 100px;
  background: transparent;
  color: var(--ink);
  font-size: var(--font-size-600);
  line-height: var(--line-height-icon);
  cursor: pointer;
}
.showcase-panel-close:hover,
.showcase-panel-nav:hover { background: var(--canvas); }
.showcase-panel-close:focus-visible,
.showcase-panel-nav:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.showcase-panel-body { flex: 1; overflow-y: auto; padding: 14px 28px 28px; }
.showcase-panel-body h2 {
  margin: 0 0 18px;
  font-family: var(--font-heading-large-family);
  font-size: var(--font-heading-large-size);
  font-weight: var(--font-heading-large-weight);
  line-height: var(--font-heading-large-line-height);
  letter-spacing: var(--font-heading-large-tracking);
}
.showcase-panel-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-height: 58vh;
  overflow: hidden;
  padding: 14px;
  border-radius: 10px;
  background: var(--canvas);
}
.showcase-panel-image img { display: block; max-width: 100%; max-height: 54vh; object-fit: contain; border-radius: 3px; }
.showcase-panel-image img[hidden] { display: none; }
.showcase-panel-image.is-pair { gap: 14px; }
.showcase-panel-image.is-pair img { max-width: calc(50% - 7px); }
.showcase-panel-desc {
  margin: 18px 0 0;
  font-family: var(--font-body-small-family);
  font-size: var(--font-body-small-size);
  font-weight: var(--font-body-small-weight);
  line-height: var(--font-body-small-line-height);
  color: var(--ink-dim);
}
.showcase-panel-made { margin-top: 20px; }
.showcase-panel-made[hidden] { display: none; }
.showcase-panel-made p {
  margin: 0 0 8px;
  font-family: var(--font-breadcrumb-small-family);
  font-size: var(--font-breadcrumb-small-size);
  font-weight: var(--font-breadcrumb-small-weight);
  line-height: var(--font-breadcrumb-small-line-height);
  letter-spacing: var(--font-breadcrumb-small-tracking);
  text-transform: uppercase;
  color: var(--ink-faint);
}
.showcase-panel-made ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.showcase-panel-made button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px 6px 12px;
  border: 1px solid var(--hairline);
  border-radius: 100px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-label-family);
  font-size: var(--font-label-size);
  font-weight: var(--font-label-weight);
  line-height: var(--font-label-line-height);
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.showcase-panel-made button span {
  min-width: 18px;
  padding: 1px 5px;
  border-radius: 100px;
  background: var(--canvas);
  font-family: var(--font-annotation-family);
  font-size: var(--font-annotation-size);
  font-weight: var(--font-annotation-weight);
  line-height: var(--font-annotation-line-height);
  text-align: center;
}
.showcase-panel-made button:hover { background: var(--canvas); }
.showcase-panel-made button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.showcase-panel-link {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 100px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-label-strong-family);
  font-size: var(--font-label-strong-size);
  font-weight: var(--font-label-strong-weight);
  line-height: var(--font-label-strong-line-height);
  text-decoration: none;
}
.showcase-panel-link:hover { background: var(--accent); }
.showcase-panel-link[hidden] { display: none; }
.showcase-panel-foot { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; border-top: 1px solid var(--hairline); }
.showcase-panel-counter {
  font-family: var(--font-breadcrumb-family);
  font-size: var(--font-breadcrumb-size);
  font-weight: var(--font-breadcrumb-weight);
  letter-spacing: var(--font-breadcrumb-tracking);
  color: var(--ink-faint);
}


/* ---- Smaller screens ---- */
@media (max-width: 960px) {
  /* The site nav floats at the bottom here; the dock sits above it. */
  .showcase-dock { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .board-hint { bottom: calc(136px + env(safe-area-inset-bottom)); }
  /* The intro becomes a frosted strip under the top bar, the disciplines
     a row of chips. */
  .graph-intro {
    top: 80px;
    right: 32px;
    width: auto;
    max-width: 560px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(253, 251, 248, 0.82);
    border: 1px solid var(--hairline);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .graph-eyebrow { margin-bottom: 4px; }
  .graph-lede { display: none; }
  .graph-intro h1 { margin-bottom: 10px; font-family: var(--font-heading-small-family); font-size: var(--font-heading-small-size); font-weight: var(--font-heading-small-weight); line-height: var(--font-heading-small-line-height); letter-spacing: var(--font-heading-small-tracking); }
  .graph-filters { display: flex; gap: 6px; overflow-x: auto; border: 0; scrollbar-width: none; }
  .graph-filters li { border: 0; flex: none; }
  .graph-skills { display: none; }
  .graph-filters button,
  .graph-filters button:hover,
  .graph-filters button[aria-pressed="true"] { gap: 6px; padding: 6px 10px; border: 1px solid var(--hairline); border-radius: 100px; background: var(--paper); }
  .graph-filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
  .graph-filters button[aria-pressed="true"]::before { display: none; }
  .graph-filters button[aria-pressed="true"] span { margin-left: 0; color: rgba(253, 251, 248, 0.7); }
}

@media (max-width: 640px) {
  .showcase-topbar { padding: 16px; }
  .dock-tip { display: none; }
  .graph-intro { top: 68px; left: 12px; right: 12px; max-width: none; }
  .graph-eyebrow { display: none; }

  /* The detail panel becomes a bottom sheet you can drag down to close. */
  .showcase-panel {
    top: auto;
    left: 0;
    width: 100%;
    max-height: 88dvh;
    border-left: 0;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -12px 40px rgba(48, 30, 24, 0.22);
    transform: translateY(100%);
  }
  .showcase-panel.is-open { transform: translateY(var(--drag, 0px)); }
  .showcase-panel.is-dragged { transition: none; }
  .showcase-panel-head { position: relative; padding: 22px 20px 0; touch-action: none; cursor: grab; }
  .showcase-panel-grabber { display: block; position: absolute; top: 8px; left: 50%; width: 40px; height: 5px; border-radius: 100px; background: rgba(48, 30, 24, 0.18); translate: -50% 0; }
  .showcase-panel-body, .showcase-panel-foot { padding-left: 20px; padding-right: 20px; }
  .showcase-panel-foot { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .g-node, .g-label, .graph-filters button, .showcase-panel, .showcase-backdrop, .board-hint { transition: none; }
  .board-hint { animation: none; }
}
