/* ============================================================================
   Design Delivery Hub — Styles
   Premium enterprise SaaS internal tool. Neutral, calm, strong cards.
   ========================================================================== */

/* ============================================================================
   FROSTED GLASS (visionOS)  —  design tokens
   Translucent panels with backdrop blur, floating over a living colour
   gradient (Three.js). Soft shadows, generous radii, violet+teal+pink accents.
   Real brand-logo colours sit inside frosted chips.
   ========================================================================== */
:root {
  /* Light base — warm cream (matches the soft-mesh reference) */
  --color-bg: #f6f3ec;

  /* Glass surfaces */
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.74);
  --glass-edge: rgba(255, 255, 255, 0.85);
  --color-surface: rgba(255, 255, 255, 0.55);
  --color-surface-tint: rgba(255, 255, 255, 0.40);
  --color-border: rgba(27, 32, 48, 0.10);
  --color-border-strong: rgba(27, 32, 48, 0.16);

  /* Slate text */
  --color-text: #1b2030;
  --color-text-soft: #46506b;
  --color-text-muted: #6a7287;

  /* Header mesh — soft desaturated pastels (sky / peach / lavender / aqua) */
  --blob-1: #b9dcf2;   /* soft sky blue */
  --blob-2: #f6cdb2;   /* soft peach */
  --blob-3: #e3c8ef;   /* soft lavender */
  --blob-4: #c4e6e6;   /* soft aqua */

  /* Lepide brand blue accent */
  --color-brand-primary: #1c4599;
  --lepide-blue: #1c4599;
  --color-primary: #1c4599;
  --color-primary-hover: #15356f;
  --color-primary-soft: rgba(28, 69, 153, 0.12);
  --color-primary-ring: rgba(28, 69, 153, 0.30);

  /* Real brand-logo colours (used as accents on tiles/links) */
  --brand-figma: #f24e1e;
  --brand-storybook: #ff4785;
  --brand-jira: #2684ff;
  --brand-aha: #e34a3f;

  /* Status hues — translucent on glass */
  --status-active-bg: rgba(31,158,116,0.14);  --status-active-fg: #1f8f68;
  --status-new-bg: rgba(28,69,153,0.14);       --status-new-fg: #1c4599;
  --status-beta-bg: rgba(230,160,40,0.18);     --status-beta-fg: #b3761a;

  --proj-discovery-bg:rgba(120,128,150,.14); --proj-discovery-fg:#5b6479;
  --proj-design-bg:rgba(38,132,255,.14);     --proj-design-fg:#2a6fd0;
  --proj-dev-bg:rgba(230,160,40,.16);        --proj-dev-fg:#b3761a;
  --proj-qa-bg:rgba(168,85,247,.16);         --proj-qa-fg:#8b3fd1;
  --proj-released-bg:rgba(31,158,116,.14);   --proj-released-fg:#1f8f68;
  --proj-deprecated-bg:rgba(225,75,74,.14);  --proj-deprecated-fg:#c0392b;

  /* Message type accents */
  --msg-error:#d4453c;   --msg-warning:#b3761a;  --msg-info:#2a6fd0;
  --msg-success:#1f8f68; --msg-empty:#6a7287;    --msg-default:#5b6479;

  /* Radii — soft, visionOS-round */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Spacing scale */
  --spacing-xs: 6px;
  --spacing-sm: 10px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 40px;

  /* Shadows — soft, lifted glass */
  --shadow-sm: 0 2px 8px rgba(27,32,48,.06);
  --shadow-md: 0 12px 32px rgba(27,32,48,.12);
  --shadow-lg: 0 24px 60px rgba(27,32,48,.18);

  /* Plus Jakarta Sans — friendly geometric sans for the glass world */
  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --header-h: 68px;
  --maxw: 1180px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; font-weight: 650; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--color-primary); color: #fff;
  padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Focus visibility ---------- */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 10px 16px; font-size: 14px; font-weight: 600;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .05s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-secondary {
  background: var(--color-surface); color: var(--color-text);
  border-color: var(--color-border-strong);
}
.btn-secondary:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-soft); }
.btn-ghost { background: transparent; color: var(--color-text-soft); border-color: transparent; }
.btn-ghost:hover { background: var(--color-surface-tint); color: var(--color-text); }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text-soft);
  transition: border-color .15s, color .15s, background .15s;
}
.icon-btn:hover { color: var(--color-primary); border-color: var(--color-primary); background: var(--color-primary-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark {
  display: grid; place-items: center; width: 32px; height: 32px;
  background: transparent; color: var(--lepide-blue); flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 700; font-size: 19px; letter-spacing: -0.02em; color: var(--lepide-blue); }
.brand-sub { font-size: 11px; color: var(--color-text-muted); }

.site-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-list a {
  display: inline-block; padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--color-text-soft);
  transition: background .15s, color .15s;
}
.nav-list a:hover { background: var(--color-surface-tint); color: var(--color-text); }
.nav-list a.is-current { color: var(--color-primary); background: var(--color-primary-soft); }
.nav-toggle { display: none; background: none; border: none; color: var(--color-text); padding: 6px; }

.header-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(48px, 7vw, 84px) 0 56px;
  background:
    radial-gradient(1200px 400px at 50% -120px, rgba(79,86,224,.08), transparent 70%),
    var(--color-bg);
  text-align: center;
}
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--color-primary);
  background: var(--color-primary-soft); padding: 5px 12px; border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(34px, 5.2vw, 54px); font-weight: 720; }
.hero-tagline {
  font-size: clamp(17px, 2.4vw, 21px); color: var(--color-text); font-weight: 550;
  margin: 16px auto 8px; max-width: 720px;
}
.hero-sub { color: var(--color-text-muted); max-width: 640px; margin: 0 auto 28px; }

.search-wrap {
  position: relative; display: flex; align-items: center;
  max-width: 640px; margin: 0 auto;
  background: var(--color-surface); border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  transition: border-color .15s, box-shadow .15s;
}
.search-wrap:focus-within { border-color: var(--color-primary); box-shadow: 0 0 0 4px var(--color-primary-ring); }
.search-icon { display: grid; place-items: center; padding-left: 16px; color: var(--color-text-muted); }
.search-input {
  flex: 1; border: none; background: transparent; outline: none;
  padding: 15px 14px; font-size: 15px; color: var(--color-text);
}
.search-input::placeholder { color: var(--color-text-muted); }
.search-clear { background: none; border: none; color: var(--color-text-muted); padding: 0 14px; display: grid; place-items: center; }
.search-clear:hover { color: var(--color-text); }
.search-kbd {
  font-family: var(--font-mono); font-size: 12px; line-height: 1; color: var(--color-text-muted);
  background: var(--color-surface-tint); border: 1px solid var(--color-border-strong);
  border-bottom-width: 2px; border-radius: 6px; padding: 5px 8px; margin-right: 12px; flex-shrink: 0;
}
@media (max-width: 560px) { .search-kbd { display: none; } }
.search-wrap-sm { box-shadow: var(--shadow-sm); margin: 0; max-width: 380px; flex: 1; }
.search-wrap-sm .search-input { padding: 11px 12px; font-size: 14px; }

.quick-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; }
.quick-filters-label { font-size: 13px; color: var(--color-text-muted); margin-right: 2px; }
.chip {
  border: 1px solid var(--color-border-strong); background: var(--color-surface);
  color: var(--color-text-soft); padding: 7px 14px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 500; transition: all .15s;
}
.chip:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-soft); }
.chip.is-active { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-soft); }
.search-status { margin-top: 16px; font-size: 13px; color: var(--color-text-muted); min-height: 18px; }

/* Hero stat strip — proof the hub is populated */
.hero-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; margin-top: 14px; }
.hero-stat {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-size: 13px; color: var(--color-text-muted);
  background: var(--color-surface); border: 1px solid var(--color-border);
  padding: 7px 14px; border-radius: var(--radius-pill); box-shadow: var(--shadow-sm);
}
.hero-stat b { font-size: 15px; font-weight: 700; color: var(--color-text); }

/* ---------- Sections ---------- */
.section { padding: clamp(40px, 6vw, 64px) 0; }
.section-tint { background: var(--color-surface-tint); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(22px, 3vw, 28px); }
.section-desc { color: var(--color-text-muted); margin-top: 6px; max-width: 560px; }
.title-row { display: flex; align-items: center; gap: 10px; }
.section-count {
  font-size: 12.5px; font-weight: 600; color: var(--color-text-soft);
  background: var(--color-surface-tint); border: 1px solid var(--color-border);
  padding: 3px 10px; border-radius: var(--radius-pill); line-height: 1.4;
}
.section-count.is-filtered { color: var(--color-primary); background: var(--color-primary-soft); border-color: transparent; }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 940px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- Cards (shared) ---------- */
.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm); transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}

/* ---------- Resource tiles ---------- */
.resource-card { display: flex; flex-direction: column; }
.resource-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--color-border-strong); }
.resource-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.resource-icon {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: var(--radius-md); background: var(--color-primary-soft); color: var(--color-primary);
}
.resource-card h3 { font-size: 17px; margin-bottom: 6px; }
.resource-card .card-desc { color: var(--color-text-soft); font-size: 14px; flex: 1; }
.resource-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.resource-actions .btn { flex: 1; min-width: 0; }
.card-meta {
  display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--color-border); font-size: 12.5px; color: var(--color-text-muted);
}
.card-meta b { font-weight: 600; color: var(--color-text-soft); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--radius-pill);
  white-space: nowrap; line-height: 1;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.badge-active { background: var(--status-active-bg); color: var(--status-active-fg); }
.badge-new    { background: var(--status-new-bg);    color: var(--status-new-fg); }
.badge-beta   { background: var(--status-beta-bg);   color: var(--status-beta-fg); }

.badge-status[data-status="Discovery"]      { background: var(--proj-discovery-bg); color: var(--proj-discovery-fg); }
.badge-status[data-status="Design Ready"]   { background: var(--proj-design-bg);    color: var(--proj-design-fg); }
.badge-status[data-status="In Development"] { background: var(--proj-dev-bg);        color: var(--proj-dev-fg); }
.badge-status[data-status="Ready for QA"]   { background: var(--proj-qa-bg);         color: var(--proj-qa-fg); }
.badge-status[data-status="Released"]       { background: var(--proj-released-bg);   color: var(--proj-released-fg); }
.badge-status[data-status="Deprecated"]     { background: var(--proj-deprecated-bg); color: var(--proj-deprecated-fg); }
/* Design statuses (designer-owned) */
.badge-status[data-status="In progress"]       { background: var(--proj-dev-bg);      color: var(--proj-dev-fg); }
.badge-status[data-status="Ready for handoff"] { background: var(--proj-design-bg);   color: var(--proj-design-fg); }
.badge-status[data-status="Handed off to dev"] { background: var(--proj-released-bg); color: var(--proj-released-fg); }
.badge-status[data-status="Updated"]           { background: var(--proj-qa-bg);       color: var(--proj-qa-fg); }
.badge-status[data-status="On hold"]           { background: var(--proj-discovery-bg); color: var(--proj-discovery-fg); }
.badge-status[title] { cursor: help; }

/* ---------- Updates list ---------- */
.updates-list { display: grid; gap: 12px; }
.update-item {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.update-type {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  color: var(--color-primary); background: var(--color-primary-soft);
  padding: 4px 9px; border-radius: var(--radius-pill); white-space: nowrap;
}
.update-body h4 { font-size: 14.5px; }
.update-body p { font-size: 13px; color: var(--color-text-muted); margin-top: 2px; }
.update-meta { text-align: right; font-size: 12.5px; color: var(--color-text-muted); white-space: nowrap; }
.update-meta b { display: block; color: var(--color-text-soft); font-weight: 600; }
@media (max-width: 640px) {
  .update-item { grid-template-columns: 1fr; gap: 8px; }
  .update-meta { text-align: left; }
}

/* ---------- Filter bar ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter-tab {
  border: 1px solid var(--color-border-strong); background: var(--color-surface);
  color: var(--color-text-soft); padding: 8px 14px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 500; transition: all .15s;
}
.filter-tab:hover { border-color: var(--color-primary); color: var(--color-primary); }
.filter-tab.is-active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.filter-tab.is-active .ps-tabcount { opacity: .75; }

/* ---------- Project cards ---------- */
.project-card { display: flex; flex-direction: column; }
.project-card:hover { box-shadow: var(--shadow-md); }
.project-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.project-card h3 { font-size: 18px; }
.project-card .card-desc { color: var(--color-text-soft); font-size: 14px; margin-top: 6px; }
.project-sub { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 14px; font-size: 12.5px; color: var(--color-text-muted); }
.project-sub b { color: var(--color-text-soft); font-weight: 600; }

.link-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.link-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 500; color: var(--color-text-soft);
  background: var(--color-surface-tint); border: 1px solid var(--color-border);
  padding: 6px 11px; border-radius: var(--radius-pill); transition: all .15s;
}
.link-pill:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-soft); }
.link-pill[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.link-pill svg { width: 13px; height: 13px; }

.project-foot { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--color-border); }
.btn-details {
  background: transparent; border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm); padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--color-text-soft);
  display: inline-flex; align-items: center; gap: 6px; transition: all .15s;
}
.btn-details:hover { color: var(--color-primary); border-color: var(--color-primary); }
.btn-details svg { transition: transform .2s; width: 14px; height: 14px; }
.btn-details[aria-expanded="true"] svg { transform: rotate(180deg); }

.project-details { margin-top: 6px; display: grid; gap: 18px; }
.detail-block h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--color-text-muted); margin-bottom: 8px; font-weight: 600;
}
.detail-block ul { display: grid; gap: 6px; }
.detail-block li { font-size: 13.5px; color: var(--color-text-soft); padding-left: 18px; position: relative; }
.detail-block li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--color-border-strong); }
.detail-block.risk li::before { background: var(--msg-warning); }
.detail-block .readiness { font-size: 13.5px; color: var(--color-text-soft); }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-family: var(--font-mono); font-size: 12px; color: var(--color-text-soft);
  background: var(--color-surface-tint); border: 1px solid var(--color-border);
  padding: 3px 8px; border-radius: 6px;
}

/* ---------- Message cards ---------- */
.message-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 22px; }
.message-controls .filter-bar { margin-bottom: 0; }
.message-card { display: flex; flex-direction: column; padding: 20px; }
.message-card:hover { box-shadow: var(--shadow-md); }
.message-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.msg-type {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--radius-pill);
  background: var(--color-surface-tint); color: var(--msg-default);
}
.msg-type::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: currentColor; }
.msg-type[data-type="Error"] { color: var(--msg-error); }
.msg-type[data-type="Warning"] { color: var(--msg-warning); }
.msg-type[data-type="Info"], .msg-type[data-type="Network"], .msg-type[data-type="License"] { color: var(--msg-info); }
.msg-type[data-type="Success"] { color: var(--msg-success); }
.msg-type[data-type="Empty State"], .msg-type[data-type="Data Unavailable"] { color: var(--msg-empty); }
.msg-placement { font-size: 12px; color: var(--color-text-muted); }
.message-card .scenario { font-size: 12.5px; color: var(--color-text-muted); margin-bottom: 12px; }
.message-card .scenario b { color: var(--color-text-soft); font-weight: 600; }
.msg-title { font-size: 15.5px; font-weight: 650; margin-bottom: 4px; }
.msg-body { font-size: 14px; color: var(--color-text-soft); margin-bottom: 10px; }
.msg-cta-line { font-size: 13px; color: var(--color-text-muted); margin-bottom: 12px; }
.msg-cta-line .cta-chip {
  display: inline-block; font-weight: 600; color: var(--color-primary);
  background: var(--color-primary-soft); padding: 2px 9px; border-radius: var(--radius-pill); font-size: 12.5px;
}
.msg-meta { display: grid; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--color-border); }
.msg-meta-row { font-size: 12.5px; color: var(--color-text-soft); }
.msg-meta-row b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--color-text-muted); margin-bottom: 1px; font-weight: 600; }
.msg-meta-row code { font-family: var(--font-mono); font-size: 12px; background: var(--color-surface-tint); padding: 2px 6px; border-radius: 5px; color: var(--color-text); }
.copy-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: var(--color-text-soft);
  background: var(--color-surface-tint); border: 1px solid var(--color-border);
  padding: 6px 10px; border-radius: var(--radius-sm); transition: all .15s;
}
.copy-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.copy-btn svg { width: 13px; height: 13px; }

/* ---------- Generator ---------- */
.generator { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 880px) { .generator { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-size: 13px; font-weight: 600; color: var(--color-text-soft); }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 14px; color: var(--color-text);
  background: var(--color-surface); border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm); padding: 10px 12px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 76px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-ring);
}
.form-actions { display: flex; gap: 10px; margin-top: 6px; }

.generator-output { min-height: 100%; }
.output-empty { display: grid; place-items: center; text-align: center; gap: 6px; padding: 40px 12px; color: var(--color-text-muted); }
.output-empty-icon { color: var(--color-primary); opacity: .8; }
.output-empty-title { font-weight: 600; color: var(--color-text-soft); }
.output-empty-sub { font-size: 13px; }

.result-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.result-head h3 { font-size: 16px; }
.result-field { margin-bottom: 14px; }
.result-field .label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--color-text-muted); font-weight: 600; margin-bottom: 3px; }
.result-field .value { font-size: 14.5px; color: var(--color-text); }
.result-field .value.title { font-size: 17px; font-weight: 650; }
.result-field code { font-family: var(--font-mono); font-size: 13px; background: var(--color-surface-tint); padding: 2px 7px; border-radius: 6px; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--color-border); }
@media (max-width: 480px) { .result-grid { grid-template-columns: 1fr; } }
.result-alert {
  background: #fdf2f2; border: 1px solid #f5c6c6; color: #a02d24;
  font-size: 12.5px; padding: 8px 12px; border-radius: var(--radius-sm); margin-bottom: 14px;
}

/* ---------- Component cards ---------- */
.component-card { display: flex; flex-direction: column; padding: 20px; }
.component-card:hover { box-shadow: var(--shadow-md); }
.component-card h3 { font-size: 16.5px; margin-bottom: 10px; }
.component-refs { display: grid; gap: 4px; margin-bottom: 12px; }
.ref-line { font-size: 12.5px; color: var(--color-text-muted); }
.ref-line b { color: var(--color-text-soft); font-weight: 600; }
.ref-line code { font-family: var(--font-mono); font-size: 12px; color: var(--color-text); }
.component-card .usage { font-size: 13.5px; color: var(--color-text-soft); margin-bottom: 12px; }
.mini-head { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--color-text-muted); font-weight: 600; margin: 10px 0 6px; }
.state-list { display: flex; flex-wrap: wrap; gap: 5px; }
.state-pill { font-size: 11.5px; color: var(--color-text-soft); background: var(--color-surface-tint); border: 1px solid var(--color-border); padding: 3px 9px; border-radius: var(--radius-pill); }
.component-checklist { display: grid; gap: 5px; margin-top: 4px; }
.component-checklist li { font-size: 12.5px; color: var(--color-text-soft); padding-left: 20px; position: relative; }
.component-checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 13px; height: 13px;
  border-radius: 4px; background: var(--status-active-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%231a7f4b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.component-foot { display: flex; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--color-border); }
.component-foot .btn { flex: 1; }

/* ---------- Guidelines ---------- */
.guideline-card { padding: 24px; }
.guideline-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.guideline-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--color-primary-soft); color: var(--color-primary); }
.guideline-head h3 { font-size: 16px; }
.guideline-list { display: grid; gap: 9px; }
.guideline-list li { font-size: 14px; color: var(--color-text-soft); padding-left: 26px; position: relative; }
.guideline-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 17px; height: 17px;
  border-radius: 5px; background: var(--status-active-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231a7f4b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* ---------- Request update ---------- */
.request-card {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  background: linear-gradient(180deg, #1e2230, #14171f); color: #fff;
  border-radius: var(--radius-lg); padding: 36px 40px;
}
.request-copy h2 { color: #fff; font-size: 24px; }
.request-copy p { color: rgba(255,255,255,.72); margin-top: 8px; max-width: 460px; }
.request-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.request-actions .btn-secondary { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); color: #fff; }
.request-actions .btn-secondary:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-surface); border-top: 1px solid var(--color-border); padding: 40px 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
.footer-brand .brand-name { font-size: 15px; }
.footer-brand p { color: var(--color-text-muted); font-size: 13.5px; margin-top: 8px; max-width: 420px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-nav a { font-size: 13.5px; color: var(--color-text-soft); }
.footer-nav a:hover { color: var(--color-primary); }
.footer-meta { grid-column: 1 / -1; font-size: 12.5px; color: var(--color-text-muted); padding-top: 18px; border-top: 1px solid var(--color-border); }
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- Environments board ---------- */
.env-legend { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--color-text-muted); }
.env-legend .env-status { margin-left: 8px; }
.env-board {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden;
}
.env-row {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 16px;
  padding: 16px 20px; border-bottom: 1px solid var(--color-border);
}
.env-row:last-child { border-bottom: none; }
.env-row:hover { background: var(--color-surface-tint); }
.env-status { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.env-status.is-live { background: var(--status-active-fg); box-shadow: 0 0 0 3px var(--status-active-bg); }
.env-status.is-pending { background: var(--color-border-strong); box-shadow: 0 0 0 3px var(--color-surface-tint); }
.env-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.env-name { font-weight: 600; font-size: 14.5px; }
.env-badge {
  font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: var(--radius-pill);
  background: var(--color-surface-tint); color: var(--color-text-soft); white-space: nowrap;
}
.env-badge[data-env="Reference"] { background: var(--proj-design-bg); color: var(--proj-design-fg); }
.env-badge[data-env="Staging"] { background: var(--proj-dev-bg); color: var(--proj-dev-fg); }
.env-badge[data-env="Production"] { background: var(--proj-released-bg); color: var(--proj-released-fg); }
.env-owner { font-size: 12.5px; color: var(--color-text-muted); white-space: nowrap; }
.env-owner b { font-weight: 600; color: var(--color-text-soft); margin-right: 4px; }
.env-pending { font-size: 12.5px; color: var(--color-text-muted); font-style: italic; }
.env-row .btn svg { width: 12px; height: 12px; }
@media (max-width: 680px) {
  .env-row { grid-template-columns: auto 1fr; row-gap: 8px; }
  .env-owner { grid-column: 2; }
  .env-row .btn, .env-pending { grid-column: 2; justify-self: start; }
}

/* ---------- Design Sources tiles ---------- */
.ds-tile { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.ds-tile:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--color-border-strong); }
.ds-tile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ds-tile-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--color-primary-soft); color: var(--color-primary); }
.ds-tile h3 { font-size: 17px; margin-bottom: 6px; }
.ds-tile-desc { font-size: 14px; color: var(--color-text-soft); flex: 1; }
.ds-tile-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--color-border); font-size: 13px; }
.ds-linkcount { display: inline-flex; align-items: center; gap: 6px; color: var(--color-text-muted); }
.ds-linkcount svg { width: 13px; height: 13px; }
.ds-open { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--color-primary); }
.ds-open svg { width: 14px; height: 14px; transition: transform .15s; }
.ds-tile:hover .ds-open svg { transform: translateX(3px); }

/* ---------- Project screen (full overlay) ---------- */
body.screen-open { overflow: hidden; }
.project-screen { position: fixed; inset: 0; z-index: 70; background: var(--color-bg); overflow-y: auto; }
.project-screen[hidden] { display: none; }
.ps-bar { position: sticky; top: 0; z-index: 1; background: var(--color-bg); border-bottom: 1px solid var(--color-border); }
.ps-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.ps-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--color-text-soft); }
.ps-back:hover { color: var(--color-primary); }
.ps-back svg { width: 16px; height: 16px; }
.ps-bar-actions { display: flex; align-items: center; gap: 12px; }
.ps-bar-actions .btn svg { width: 13px; height: 13px; }
.ps-body { max-width: 820px; padding: 40px 24px 90px; }
.ps-page { padding: 40px 24px 90px; }
.ps-page .ps-summary { margin-top: 8px; margin-bottom: 4px; }
.ps-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 26px 0 20px; }
.ps-controls .filter-bar { margin-bottom: 0; }
.ps-tabcount { opacity: .55; font-weight: 600; }
.ps-projects { margin-top: 4px; }
.ps-title { font-size: clamp(26px, 4vw, 36px); }
.ps-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 13.5px; color: var(--color-text-muted); }
.ps-meta b { color: var(--color-text-soft); font-weight: 600; }
.ps-summary { margin-top: 16px; color: var(--color-text-soft); font-size: 15px; max-width: 680px; }
.ps-block { margin-top: 34px; }
.ps-block > h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--color-text-muted); margin-bottom: 14px; }
.ps-list { display: grid; gap: 8px; }
.ps-list li { font-size: 14px; color: var(--color-text-soft); padding-left: 18px; position: relative; }
.ps-list li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--color-border-strong); }
.ps-block.qa .ps-list li::before { background: var(--proj-qa-fg); }
.ps-tip { margin-top: 14px; font-size: 12.5px; color: var(--color-text-muted); display: flex; align-items: center; gap: 7px; }
.ps-tip svg { width: 13px; height: 13px; flex-shrink: 0; }

/* "What's inside" — the file's pages */
.ps-subcount {
  font-size: 11px; font-weight: 600; color: var(--color-text-muted);
  background: var(--color-surface-tint); border: 1px solid var(--color-border);
  padding: 2px 8px; border-radius: var(--radius-pill);
  margin-left: 8px; text-transform: none; letter-spacing: 0;
}
.contents-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.content-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 11px 14px; background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 500; color: var(--color-text-soft);
  text-decoration: none;
}
a.content-item:hover { border-color: var(--color-primary); color: var(--color-primary); }
.content-item svg { width: 11px; height: 11px; opacity: .7; flex-shrink: 0; }

/* Figma link rows inside the project screen */
.pl-list { display: grid; gap: 10px; }
.pl-row { display: flex; align-items: center; gap: 14px; padding: 15px 16px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.pl-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--color-primary-soft); color: var(--color-primary); flex-shrink: 0; }
.pl-main { flex: 1; min-width: 0; }
.pl-label { display: block; font-weight: 600; font-size: 14.5px; }
.pl-note { display: block; font-size: 12.5px; color: var(--color-text-muted); margin-top: 2px; }
.pl-actions { display: flex; gap: 8px; flex-shrink: 0; }
.pl-actions svg { width: 12px; height: 12px; }
.pl-pending { font-size: 12.5px; color: var(--color-text-muted); font-style: italic; }
@media (max-width: 600px) {
  .pl-row { flex-wrap: wrap; }
  .pl-actions { width: 100%; }
  .pl-actions .btn { flex: 1; }
  .ps-bar-actions [data-copy-pagelink] { display: none; }
}

/* ---------- QA checklists ---------- */
.checklist-card { display: flex; flex-direction: column; padding: 22px; }
.checklist-card.is-complete { border-color: var(--status-active-fg); }
.checklist-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.checklist-card h3 { font-size: 16.5px; }
.checklist-desc { font-size: 13px; color: var(--color-text-muted); margin-top: 4px; }
.qa-progress {
  font-size: 12.5px; font-weight: 700; padding: 4px 11px; border-radius: var(--radius-pill);
  background: var(--color-surface-tint); color: var(--color-text-soft); white-space: nowrap;
}
.qa-progress.is-complete { background: var(--status-active-bg); color: var(--status-active-fg); }
.qa-list { display: grid; gap: 4px; }
.qa-item { display: flex; align-items: flex-start; gap: 11px; padding: 8px 10px; border-radius: var(--radius-sm); transition: background .12s; }
.qa-item:hover { background: var(--color-surface-tint); }
.qa-item input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; margin: 2px 0 0; flex-shrink: 0;
  width: 18px; height: 18px; border: 1.5px solid var(--color-border-strong);
  border-radius: 5px; background: var(--color-surface); cursor: pointer; transition: all .12s;
}
.qa-item input[type="checkbox"]:hover { border-color: var(--color-primary); }
.qa-item input[type="checkbox"]:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.qa-item input[type="checkbox"]:checked {
  background: var(--color-primary); border-color: var(--color-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.qa-item label { font-size: 14px; color: var(--color-text-soft); cursor: pointer; line-height: 1.5; }
.qa-item input:checked + label { color: var(--color-text-muted); text-decoration: line-through; text-decoration-color: var(--color-border-strong); }
.checklist-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--color-border); }

/* ---------- Empty note ---------- */
.empty-note { text-align: center; color: var(--color-text-muted); padding: 32px; font-size: 14px; }

/* ---------- Visibility (search + filter share this single class) ---------- */
.is-hidden { display: none !important; }
/* Make the `hidden` attribute authoritative even on elements with an
   explicit display (e.g. .btn). Lets us hide sections/links with `hidden`. */
[hidden] { display: none !important; }

/* ---------- Toast region ---------- */
.toast-region { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 80; display: grid; gap: 8px; width: max-content; max-width: 90vw; }
.toast {
  display: flex; align-items: center; gap: 9px;
  background: var(--color-text); color: #fff;
  padding: 11px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  font-size: 13.5px; font-weight: 500;
  animation: toast-in .2s ease;
}
.toast svg { width: 16px; height: 16px; color: #6ee7a8; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Mobile nav ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { margin-left: auto; }
  .nav-list {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--color-surface); border-bottom: 1px solid var(--color-border);
    padding: 12px; box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-list.is-open { display: flex; }
  .nav-list a { padding: 12px 14px; }
}
@media (max-width: 560px) {
  .brand-sub { display: none; }
  .header-actions .btn-primary { display: none; }
  .request-card { padding: 28px 22px; }
}

/* ---------- Dark theme — deep indigo glass (gradient glows behind) ---------- */
[data-theme="dark"] {
  --color-bg: #000000;                          /* pure black page */
  --glass: rgba(255, 255, 255, 0.085);          /* ~#161616 dark gray cards */
  --glass-strong: rgba(255, 255, 255, 0.12);    /* ~#1f1f1f panels */
  --glass-edge: rgba(255, 255, 255, 0.14);
  --color-surface: rgba(255, 255, 255, 0.085);
  --color-surface-tint: rgba(255, 255, 255, 0.05);
  --color-border: rgba(255, 255, 255, 0.12);
  --color-border-strong: rgba(255, 255, 255, 0.20);
  --color-text: #f4f4f5;
  --color-text-soft: #bdbdc2;
  --color-text-muted: #8a8a90;
  --blob-1: #4a6fc0;   /* muted blue */
  --blob-2: #c08a6a;   /* muted peach */
  --blob-3: #8a6fc0;   /* muted violet */
  --blob-4: #4a9fb0;   /* muted aqua */
  --color-brand-primary: #4f86e8;
  --lepide-blue: #9bbcff;
  --color-primary: #5b8def;
  --color-primary-hover: #6f9bf5;
  --color-primary-soft: rgba(91, 141, 239, 0.18);
  --color-primary-ring: rgba(91, 141, 239, 0.40);
  --brand-figma: #ff6a3d;
  --brand-storybook: #ff6aa0;
  --brand-jira: #4c9aff;
  --brand-aha: #f06a5f;
  --status-active-bg:rgba(75,227,167,0.16); --status-active-fg:#6fe3b0;
  --status-new-bg:rgba(91,141,239,0.22);    --status-new-fg:#9bbcff;
  --status-beta-bg:rgba(230,180,90,0.18);   --status-beta-fg:#e3c77a;
  --proj-discovery-bg:rgba(255,255,255,.08);--proj-discovery-fg:#b9bdd9;
  --proj-design-bg:rgba(61,139,255,.20);    --proj-design-fg:#8fb8ff;
  --proj-dev-bg:rgba(230,180,90,.18);       --proj-dev-fg:#e3c77a;
  --proj-qa-bg:rgba(184,134,247,.20);       --proj-qa-fg:#c9a8f7;
  --proj-released-bg:rgba(75,227,167,.16);  --proj-released-fg:#6fe3b0;
  --proj-deprecated-bg:rgba(240,106,95,.18);--proj-deprecated-fg:#f0948a;
  --msg-error:#f0948a;   --msg-warning:#e3c77a;  --msg-info:#8fb8ff;
  --msg-success:#6fe3b0; --msg-empty:#8b8fb0;    --msg-default:#b9bdd9;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.4);
  --shadow-md: 0 14px 36px rgba(0,0,0,.5);
  --shadow-lg: 0 28px 64px rgba(0,0,0,.6);
}
[data-theme="dark"] .toast { background:#23211b; color:var(--color-text); border:1px solid var(--color-border-strong); }
[data-theme="dark"] .result-alert { background:#2a1816; border-color:#4a2620; color:#f0a89c; }

/* ---------- Command palette ---------- */
.cmdk {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 12vh 20px 20px;
}
.cmdk[hidden] { display: none; }
.cmdk-backdrop { position: absolute; inset: 0; background: rgba(10,12,16,.5); backdrop-filter: blur(2px); }
.cmdk-panel {
  position: relative; width: 100%; max-width: 560px;
  background: var(--color-surface); border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
  animation: cmdk-in .14s ease;
}
@keyframes cmdk-in { from { opacity: 0; transform: translateY(-8px) scale(.99); } to { opacity: 1; transform: none; } }
.cmdk-input-wrap { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--color-border); color: var(--color-text-muted); }
.cmdk-input-wrap input { flex: 1; border: none; outline: none; background: transparent; font-family: inherit; font-size: 16px; color: var(--color-text); }
.cmdk-input-wrap input::placeholder { color: var(--color-text-muted); }
.cmdk-esc { font-family: var(--font-mono); font-size: 11px; color: var(--color-text-muted); background: var(--color-surface-tint); border: 1px solid var(--color-border); border-radius: 6px; padding: 4px 7px; }
.cmdk-list { max-height: 56vh; overflow-y: auto; padding: 8px; }
.cmdk-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px;
  border-radius: var(--radius-sm); cursor: pointer; scroll-margin: 8px;
}
.cmdk-item[aria-selected="true"] { background: var(--color-primary-soft); }
.cmdk-item-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--color-surface-tint); color: var(--color-primary); flex-shrink: 0; }
.cmdk-item[aria-selected="true"] .cmdk-item-icon { background: var(--color-primary); color: #fff; }
.cmdk-item-body { min-width: 0; flex: 1; }
.cmdk-item-label { font-size: 14px; font-weight: 600; color: var(--color-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-item-hint { font-size: 12px; color: var(--color-text-muted); }
.cmdk-item-kind { font-size: 11px; font-weight: 600; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .04em; flex-shrink: 0; }
.cmdk-empty { text-align: center; color: var(--color-text-muted); padding: 28px; font-size: 14px; }
@media (max-width: 480px) { .cmdk { padding-top: 8vh; } }

/* ============================================================================
   Motion & polish pass
   ========================================================================== */

/* Themed scrollbar + text selection */
::selection { background: rgba(109, 116, 240, .28); }
* { scrollbar-width: thin; scrollbar-color: var(--color-border-strong) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-border-strong); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-muted); }

/* Entrance animations (reduced-motion safe; `backwards` so hover transforms still work) */
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes screen-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .resource-card, .ds-tile { animation: fade-up .5s cubic-bezier(.2, .7, .2, 1) backwards; }
  .grid > *:nth-child(1) { animation-delay: .03s; }
  .grid > *:nth-child(2) { animation-delay: .07s; }
  .grid > *:nth-child(3) { animation-delay: .11s; }
  .grid > *:nth-child(4) { animation-delay: .15s; }
  .grid > *:nth-child(5) { animation-delay: .19s; }
  .grid > *:nth-child(6) { animation-delay: .23s; }
  .grid > *:nth-child(7) { animation-delay: .27s; }
  .grid > *:nth-child(8) { animation-delay: .31s; }
  .grid > *:nth-child(9) { animation-delay: .35s; }
  .grid > *:nth-child(n+10) { animation-delay: .39s; }
  .project-screen:not([hidden]) { animation: screen-in .3s cubic-bezier(.2, .7, .2, 1); }
}

/* Icon fills with accent on card hover — a small premium micro-interaction */
.resource-icon, .ds-tile-icon { transition: background .2s ease, color .2s ease, transform .2s ease; }
.resource-card:hover .resource-icon,
.ds-tile:hover .ds-tile-icon { background: var(--color-primary); color: #fff; transform: scale(1.04); }
.ds-tile:hover { border-color: var(--color-primary); }

/* Inline "Copied ✓" feedback on copy buttons */
.btn.is-copied { background: var(--status-active-bg); border-color: var(--status-active-fg); color: var(--status-active-fg); }
.btn.is-copied svg { color: var(--status-active-fg); }

/* Hero call-to-action */
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 26px; }
.btn-lg { padding: 13px 22px; font-size: 15px; border-radius: var(--radius-md); }
.hero-cta-count { background: rgba(255, 255, 255, .22); padding: 1px 9px; border-radius: 999px; font-size: 13px; font-weight: 700; margin-left: 2px; }
.hero-cta .btn-ghost { color: var(--color-text-muted); }
.hero-cta .btn-ghost:hover { color: var(--color-text); }
.hero-cta kbd { font-family: var(--font-mono); font-size: 12px; background: var(--color-surface-tint); border: 1px solid var(--color-border-strong); border-radius: 6px; padding: 2px 7px; margin: 0 3px; }
.hero-cta .btn svg { width: 16px; height: 16px; transition: transform .15s; }
.hero-cta .btn-primary:hover svg { transform: translateX(3px); }

/* Hero search results dropdown (reuses .cmdk-item rows) */
.hero-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 40;
  background: var(--color-surface); border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  max-height: 56vh; overflow-y: auto; padding: 8px; text-align: left;
}
.hero-results[hidden] { display: none; }

/* ---------- Password gate ---------- */
body.gated { overflow: hidden; }
.gate {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 24px;
  background: var(--color-bg);
}
.gate[hidden] { display: none; }
.gate-card {
  width: 100%; max-width: 380px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 36px 32px 30px;
}
.gate-mark { color: var(--lepide-blue); margin-bottom: 8px; }
.gate-title { font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--lepide-blue); }
.gate-title span { color: var(--color-text); font-weight: 650; }
.gate-sub { font-size: 13.5px; color: var(--color-text-muted); margin: 4px 0 18px; line-height: 1.5; }
.gate-input {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--color-text);
  background: var(--color-surface); border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm); padding: 12px 14px; text-align: center; letter-spacing: .04em;
  transition: border-color .15s, box-shadow .15s;
}
.gate-input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-ring); }
.gate-btn { width: 100%; margin-top: 12px; justify-content: center; }
.gate-error { font-size: 13px; color: var(--msg-error); margin-top: 12px; }

.gate-request { font-size: 13px; color: var(--color-text-muted); margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--color-border); width: 100%; }
.gate-request a { color: var(--color-primary); font-weight: 600; }
.gate-request a:hover { text-decoration: underline; }

/* ============================================================================
   ◇◇◇  FROSTED GLASS (visionOS)  —  visual override layer  ◇◇◇
   Loaded last so it wins the cascade. Translucent panels with backdrop blur,
   floating over a living Three.js colour gradient. Soft, round, luminous.
   ========================================================================== */

/* ---- Living colour backdrop: static blob fallback + Three.js gradient ---- */
/* Minimal: clean base on <html>, <body> transparent. One soft colour wash
   confined to the top (header + hero) that fades to nothing below the fold. */
html { background: var(--color-bg); }
body { background: transparent; position: relative; }

/* Soft pastel mesh (blurred) confined to the header/top — absolute, so it
   scrolls away and the rest of the page stays clean cream. */
body::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 560px;
  z-index: -3; pointer-events: none;
  background:
    radial-gradient(44% 64% at 24% 34%, var(--blob-1), transparent 62%),
    radial-gradient(42% 60% at 76% 24%, var(--blob-2), transparent 62%),
    radial-gradient(48% 66% at 62% 76%, var(--blob-3), transparent 64%),
    radial-gradient(40% 58% at 40% 66%, var(--blob-4), transparent 64%);
  filter: blur(40px) saturate(112%);
  opacity: .5;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 30%, transparent 95%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 30%, transparent 95%);
}
[data-theme="dark"] body::before { display: none; }   /* no gradient in dark */

/* Dot grid overlay (crisp) — the subtle texture from the reference */
body::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 560px;
  z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, rgba(30,35,55,.08) 1px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 36%, transparent 92%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 36%, transparent 92%);
}
[data-theme="dark"] body::after { display: none; }   /* no dot grid in dark */

/* Three.js shader — slow-drifting pastel mesh under the dot grid. */
#plotter {
  position: absolute; top: 0; left: 0; right: 0; width: 100%; height: 520px; margin: 0;
  z-index: -2; pointer-events: none; opacity: .45;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 96%);
          mask-image: linear-gradient(to bottom, #000 0%, transparent 96%);
}
[data-theme="dark"] #plotter { display: none; }   /* no animated mesh in dark */
::selection { background: rgba(28,69,153,.22); color: var(--color-text); }
* { scrollbar-color: var(--color-border-strong) transparent; }

/* ---- Typography ---- */
h1, h2, h3, .hero h1, .gate-title, .ps-title, .section-head h2,
.resource-card h3, .ds-tile h3, .project-card h3, .cmdk-item-label, .pl-label,
.msg-title, .result-field .value.title, .brand-name, .footer-brand .brand-name {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em;
}
.hero h1, .ps-title { font-weight: 800; letter-spacing: -0.035em; }

/* ---- Header (frosted) ---- */
.site-header {
  background: color-mix(in srgb, var(--color-bg) 52%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  border-bottom: 1px solid var(--color-border);
}
.brand-mark { color: var(--color-primary); }
.brand-sub { color: var(--color-text-muted); }
.nav-list a { border-radius: 999px; font-weight: 600; }
.nav-list a:hover { background: var(--glass); color: var(--color-text); }
.nav-list a.is-current { color: var(--color-primary); background: var(--color-primary-soft); }
.icon-btn {
  border-radius: 999px; background: var(--glass); border-color: var(--glass-edge);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--color-text-soft);
}
.icon-btn:hover { background: var(--color-primary-soft); border-color: var(--color-primary); color: var(--color-primary); }

/* ---- Buttons (pill + gradient) ---- */
.btn { border-radius: 999px; font-weight: 700; letter-spacing: -0.01em; transition: transform .18s ease, box-shadow .18s, filter .18s, background .18s, color .18s, border-color .18s; }
.btn-primary { background: linear-gradient(135deg, var(--color-primary), #3f72d6); color: #fff; border: none; box-shadow: 0 8px 22px var(--color-primary-ring); }
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 14px 30px var(--color-primary-ring); }
.btn-secondary {
  background: var(--glass); color: var(--color-text); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn-secondary:hover { background: var(--glass-strong); border-color: var(--color-primary); color: var(--color-primary); }
.btn-ghost:hover { background: var(--glass); color: var(--color-text); }
.btn-lg { border-radius: 999px; }
.hero-cta-count { background: rgba(255,255,255,.28); }

/* ---- Hero (airy, centre-aligned) ---- */
.hero { text-align: center; background: transparent; padding: clamp(52px, 8vw, 104px) 0 64px; overflow: visible; }
.hero .container { position: relative; z-index: 2; }
.hero-rule { display: none; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  background: var(--glass-strong); border: 1px solid var(--glass-edge); color: var(--color-primary);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 999px; padding: 7px 15px; text-transform: none; letter-spacing: 0;
  font-weight: 600; font-size: 13px; box-shadow: var(--shadow-sm);
}
/* Lepide brand mark in a soft glass app-tile (replaces the eyebrow pill) */
.hero-mark {
  display: grid; place-items: center; width: 72px; height: 72px; padding: 0;
  margin: 0 auto 22px; border-radius: 22px; color: var(--color-primary);
  background: var(--glass-strong); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.5);
}
[data-theme="dark"] .hero-mark { box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.10); }
.hero-mark svg { width: 40px; height: 40px; }
.hero-ai {
  margin: 0 auto 14px; font-family: var(--font-mono); font-weight: 500;
  font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--color-primary);
}

.hero h1 { font-size: clamp(46px, 8vw, 94px); line-height: .98; max-width: 16ch; margin: 0 auto 10px; }
.hero-tagline { font-weight: 500; max-width: 600px; margin: 16px auto 8px; }
.hero-sub { max-width: 560px; margin: 0 auto 28px; }
.hero-cta { justify-content: center; }
.hero-meta {
  margin: 26px auto 0; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .01em; color: var(--color-text-muted); line-height: 1.7;
}
.hero-meta b { color: var(--color-text-soft); font-weight: 600; }
.hero-meta .dot {
  display: inline-block; width: 3px; height: 3px; border-radius: 50%;
  background: currentColor; vertical-align: middle; margin: 0 11px; opacity: .55;
}

/* ---- Search (glass) ---- */
.search-wrap {
  border-radius: 18px; border: 1px solid var(--glass-edge); background: var(--glass-strong);
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.5); max-width: 640px; margin: 0 auto;
}
[data-theme="dark"] .search-wrap { box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.10); }
/* The small (project-screen) variant is a left-aligned flex item, not centered */
.search-wrap-sm { margin: 0; max-width: 380px; flex: 1; }
.search-wrap:focus-within { border-color: var(--color-primary); box-shadow: 0 0 0 4px var(--color-primary-ring), var(--shadow-md); }
.search-kbd {
  background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 8px;
  color: var(--color-text-muted); width: auto; padding: 4px 10px; margin-right: 8px;
  align-self: center; font-family: var(--font-mono); font-size: 12px;
}

/* ---- Cards (frosted glass, soft lift) ---- */
.card {
  border-radius: var(--radius-lg); border: 1px solid var(--glass-edge); background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.5);
  transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s, border-color .28s;
}
[data-theme="dark"] .card { box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.10); }
.resource-card:hover, .ds-tile:hover, .project-card:hover, .message-card:hover,
.component-card:hover, .checklist-card:hover {
  transform: translateY(-6px); border-color: var(--glass-edge);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.6);
}

/* ---- Brand-logo chips (frosted, never invert) ---- */
.resource-icon, .ds-tile-icon, .pl-icon, .cmdk-item-icon, .guideline-icon {
  border-radius: 14px !important; background: var(--glass-strong) !important;
  border: 1px solid var(--glass-edge); color: var(--color-text) !important;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
  transition: transform .25s ease;
}
.resource-card:hover .resource-icon, .ds-tile:hover .ds-tile-icon { background: var(--glass-strong) !important; color: var(--color-text) !important; transform: scale(1.08) rotate(-2deg); }
.bm-aha { font-family: var(--font-display); font-weight: 800; color: var(--brand-aha); letter-spacing: -.03em; line-height: 1; }
.card-desc, .ds-tile-desc { font-family: var(--font-body); }
.ds-open { color: var(--color-primary); font-weight: 700; }

/* ---- Badges & chips (soft pills) ---- */
.badge { border-radius: 999px; font-family: var(--font-body); font-weight: 700; font-size: 11px; text-transform: none; letter-spacing: 0; padding: 5px 11px; border: none; }
.badge-active { background: var(--status-active-bg); color: var(--status-active-fg); }
.badge-new { background: var(--status-new-bg); color: var(--status-new-fg); }
.badge-beta { background: var(--status-beta-bg); color: var(--status-beta-fg); }
.badge-status { border-radius: 999px; border: none; font-family: var(--font-body); font-weight: 700; text-transform: none; letter-spacing: 0; }
.tag, .chip { border-radius: 999px; font-family: var(--font-body); text-transform: none; letter-spacing: 0; }
.section-count { border-radius: 999px; }

/* ---- Section heads ---- */
.section-tint { background: transparent; border: none; }

/* ---- Project screen ---- */
.project-screen { background: var(--color-bg); }
.ps-bar {
  background: color-mix(in srgb, var(--color-bg) 58%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--color-border);
}
.pl-row {
  border-radius: var(--radius-md); border: 1px solid var(--glass-edge); background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.pl-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pl-label { font-family: var(--font-display); font-weight: 700; }
.link-pill { border-radius: 999px; border-color: var(--glass-edge); background: var(--glass); }
.link-pill:hover { background: var(--color-primary-soft); border-color: var(--color-primary); color: var(--color-primary); }
.content-item { border-radius: 10px; background: var(--glass); border: 1px solid var(--glass-edge); }
.mcp-frame { width: 100%; height: calc(100vh - 60px); border: 0; display: block; background: #fff; }

/* ---- Form fields ---- */
.field input, .field select, .field textarea {
  border-radius: 12px; border: 1px solid var(--glass-edge); background: var(--glass-strong);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-family: var(--font-body);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-ring); }
.field label { font-family: var(--font-body); font-weight: 600; }

/* ---- Footer ---- */
.site-footer { background: transparent; border-top: 1px solid var(--color-border); }

/* ---- Gate ---- */
.gate { background: var(--color-bg); }
.gate-card {
  border-radius: var(--radius-lg); background: var(--glass-strong); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(26px) saturate(170%); backdrop-filter: blur(26px) saturate(170%);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.6);
}
.gate-title { font-family: var(--font-display); }
.gate-input { border-radius: 12px; background: var(--glass); border: 1px solid var(--glass-edge); transition: border-color .18s, box-shadow .18s; }
.gate-input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px var(--color-primary-ring); }
#gate { overflow: hidden; }
#gate-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .6; }
[data-theme="dark"] #gate-bg { display: none; }   /* pure black gate bg in dark */
.gate-card { position: relative; z-index: 1; transform-style: preserve-3d; }
.gate-mark {
  width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px;
  background: var(--glass-strong); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--color-primary); box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.5); margin-bottom: 14px;
}
.gate-mark svg { width: 36px; height: 36px; }

/* ---- Command palette + toasts ---- */
.cmdk-panel {
  border-radius: var(--radius-lg); background: var(--glass-strong); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(28px) saturate(170%); backdrop-filter: blur(28px) saturate(170%);
  box-shadow: var(--shadow-lg);
}
.cmdk-item { border-radius: 12px; }
.cmdk-item[aria-selected="true"] { background: var(--color-primary-soft); }
.cmdk-item-icon { border-radius: 10px; }
.cmdk-item[aria-selected="true"] .cmdk-item-icon { background: var(--color-primary); color: #fff; }
.cmdk-esc { border-radius: 8px; }
.hero-results {
  border-radius: var(--radius-md); background: var(--glass-strong); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  box-shadow: var(--shadow-lg);
}
.toast {
  border-radius: 999px; background: var(--glass-strong); color: var(--color-text); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font-family: var(--font-body);
}

/* ---- GSAP reveal states + Barba gradient curtain ---- */
[data-reveal] { will-change: transform, opacity; }
#curtain {
  position: fixed; inset: 0; z-index: 150; pointer-events: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #1c4599 0%, #2f5fd0 52%, #5b8de8 100%);
  clip-path: circle(0px at 50% 50%); will-change: clip-path;
}
[data-theme="dark"] #curtain { background: linear-gradient(135deg, #0a1838 0%, #11295c 52%, #1c4599 100%); }
#curtain::after {  /* fine grain so the surface is never dead-flat */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
#curtain[data-on="1"] { pointer-events: all; }
.curtain-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 16px; opacity: 0; }
.curtain-mark { font-family: var(--font-display); font-weight: 800; letter-spacing: -.01em; font-size: 22px; color: #fff; }
.curtain-bar { width: 120px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.22); overflow: hidden; }
.curtain-bar i { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  #plotter, body::before { animation: none; }
  #curtain { display: none; }
}
