/* ============================================================
   JunkDNA.AI — Site CSS
   Shared design system. Imported by every root-directory page.
   Mobile-first, fluid typography, accessible focus states.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Color palette — cream paper, navy ink, JunkDNA blue, electric accent, coral pop */
  --paper: #fbfaf6;
  --paper-soft: #f5f2e9;
  --paper-dim: #ebe6d8;
  --ink: #0c1424;
  --ink-soft: #2a3344;
  --ink-mute: #5a6478;
  --rule: #d9d3c2;
  --rule-soft: #ebe6d8;
  --brand: #1e3fb8;
  --brand-deep: #142a82;
  --brand-soft: #e6ebfa;
  --electric: #2952ff;
  --coral: #f97052;
  --gold: #d4a93a;
  --green: #2e7d4f;

  /* Typography */
  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-body: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  /* Layout */
  --container: 1200px;
  --container-tight: 920px;
  --container-prose: 720px;
  --gutter: clamp(1rem, 4vw, 2rem);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0.05, 0.36, 1);

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(12, 20, 36, 0.06), 0 1px 3px rgba(12, 20, 36, 0.04);
  --shadow-md: 0 4px 12px rgba(12, 20, 36, 0.08), 0 2px 4px rgba(12, 20, 36, 0.04);
  --shadow-lg: 0 12px 32px rgba(12, 20, 36, 0.12), 0 4px 8px rgba(12, 20, 36, 0.06);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  /* Subtle film grain — matches proteushanna texture */
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
  mix-blend-mode: multiply;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
a { color: var(--brand); text-decoration: none; transition: color 0.2s var(--ease-out); }
a:hover { color: var(--brand-deep); }
:focus-visible {
  outline: 2px solid var(--electric);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Typography ---------- */
.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variation-settings: 'SOFT' 30, 'WONK' 0, 'opsz' 48;
}
h1 { font-size: clamp(2rem, 5.5vw, 3.75rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.625rem, 4vw, 2.5rem); margin: 0 0 0.5em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); margin: 0 0 0.5em; font-weight: 600; }
em, .italic-display {
  font-style: italic;
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 48;
}

p { margin: 0 0 1em; }
.lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--ink-soft); line-height: 1.55; }

.eyebrow, .label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
}
.label-muted { color: var(--ink-mute); }

/* ---------- Layout primitives ---------- */
.wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-tight { max-width: var(--container-tight); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-prose { max-width: var(--container-prose); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(3rem, 8vw, 6rem); position: relative; }
.section-tight { padding-block: clamp(2rem, 5vw, 3.5rem); position: relative; }
.section-divider { border-top: 1px solid var(--rule-soft); }
.section-paper-soft { background: var(--paper-soft); }

main { position: relative; z-index: 2; }

.grid { display: grid; gap: clamp(1rem, 3vw, 2rem); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; } .gap-4 { gap: 2rem; }
.center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 246, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule-soft);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--container);
  margin-inline: auto;
  padding: 0.875rem var(--gutter);
  gap: 1.5rem;
}
.brand {
  display: flex; align-items: center; gap: 0.625rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-mark {
  width: 36px; height: 36px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}
.nav-primary { display: none; gap: 1.75rem; align-items: center; }
.nav-primary a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.9375rem;
  position: relative;
}
.nav-primary a:hover { color: var(--ink); }
.nav-primary a.active { color: var(--brand); }
.nav-cta { display: none; align-items: center; gap: 0.75rem; }
@media (min-width: 900px) {
  .nav-primary { display: flex; }
  .nav-cta { display: flex; }
}

/* Mobile hamburger (pure CSS checkbox toggle) */
.menu-toggle { display: block; position: relative; width: 32px; height: 32px; }
.menu-toggle input {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2;
}
.menu-toggle .bars { position: absolute; inset: 0; display: grid; place-items: center; }
.menu-toggle .bars span {
  display: block; width: 22px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.25s var(--ease-out), opacity 0.25s var(--ease-out);
}
.menu-toggle .bars span::before,
.menu-toggle .bars span::after {
  content: ''; position: absolute; left: 0; width: 22px; height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease-out), top 0.25s var(--ease-out);
}
.menu-toggle .bars span::before { top: -7px; }
.menu-toggle .bars span::after { top: 7px; }
.menu-toggle input:checked ~ .bars span { background: transparent; }
.menu-toggle input:checked ~ .bars span::before { top: 0; transform: rotate(45deg); }
.menu-toggle input:checked ~ .bars span::after { top: 0; transform: rotate(-45deg); }

.mobile-drawer {
  position: fixed; inset: 0;
  background: var(--paper);
  display: none;
  flex-direction: column;
  padding: 5rem var(--gutter) 2rem;
  z-index: 40;
}
body.menu-open .mobile-drawer { display: flex; }
body.menu-open { overflow: hidden; }
.mobile-drawer a {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 5vw, 2rem);
  color: var(--ink);
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--rule-soft);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
}
.mobile-drawer .nav-cta-row {
  display: flex; flex-direction: column; gap: 0.75rem;
  margin-top: 2rem;
}

@media (min-width: 900px) {
  .menu-toggle { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-out), color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--brand); color: white; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-brand { background: var(--brand); color: white; }
.btn-brand:hover { background: var(--brand-deep); color: white; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-coral { background: var(--coral); color: white; }
.btn-coral:hover { background: #e85d3e; color: white; transform: translateY(-1px); }
.btn-sm { padding: 0.625rem 1.125rem; font-size: 0.8125rem; }
.btn-lg { padding: 1rem 1.75rem; font-size: 1rem; }

/* ---------- Cards ---------- */
.card {
  background: white;
  border: 1px solid var(--rule-soft);
  border-radius: 18px;
  padding: clamp(1.25rem, 3vw, 2rem);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--rule); }
.card-tight { padding: 1.25rem; }
.card-flat { background: var(--paper-soft); border: 1px solid var(--rule-soft); border-radius: 14px; padding: 1.5rem; }
.card-icon {
  width: 48px; height: 48px;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 1rem;
}

/* ---------- Hero patterns ---------- */
.hero {
  padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 6vw, 5rem);
  position: relative;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(30, 63, 184, 0.2);
}

/* ---------- Smart video ---------- */
.video-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}
.video-frame video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.video-frame .video-overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(12, 20, 36, 0.45);
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.3s var(--ease-out);
}
.video-frame[data-playing="true"] .video-overlay { opacity: 0; pointer-events: none; }
.video-frame .play-button {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: grid; place-items: center;
  transition: transform 0.25s var(--ease-out), background 0.25s var(--ease-out);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.video-frame .play-button:hover { transform: scale(1.08); background: white; }
.video-frame .play-button svg { width: 28px; height: 28px; fill: var(--brand); margin-left: 4px; }
.video-frame .video-loading {
  position: absolute; inset: 0;
  display: none; place-items: center;
  background: var(--ink);
  color: var(--paper);
}
.video-frame[data-loading="true"] .video-loading { display: grid; }
.video-frame .spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.video-caption {
  display: block;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 0.875rem;
}

/* ---------- Tags / pills ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: var(--paper-soft);
  border: 1px solid var(--rule-soft);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.tag-brand { background: var(--brand-soft); border-color: rgba(30, 63, 184, 0.15); color: var(--brand); }
.tag-coral { background: rgba(249, 112, 82, 0.12); border-color: rgba(249, 112, 82, 0.25); color: var(--coral); }
.tag-green { background: rgba(46, 125, 79, 0.10); border-color: rgba(46, 125, 79, 0.25); color: var(--green); }

/* ---------- Prose (for blog posts, legal docs) ---------- */
.prose { font-size: 1.0625rem; line-height: 1.75; color: var(--ink-soft); }
.prose h2 { font-size: 1.875rem; margin-top: 2.5em; margin-bottom: 0.6em; color: var(--ink); }
.prose h3 { font-size: 1.375rem; margin-top: 2em; margin-bottom: 0.5em; color: var(--ink); font-weight: 600; }
.prose p { margin-bottom: 1.4em; }
.prose ul, .prose ol { margin: 0 0 1.5em 1.25em; padding: 0; }
.prose li { margin-bottom: 0.5em; }
.prose a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--brand-deep); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote {
  border-left: 3px solid var(--brand);
  background: var(--paper-soft);
  padding: 1.25rem 1.5rem;
  margin: 2em 0;
  border-radius: 0 12px 12px 0;
  font-style: italic;
}
.prose code {
  background: var(--paper-soft);
  padding: 0.125em 0.4em;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.875em;
  color: var(--brand-deep);
}
.prose hr { border: 0; border-top: 1px solid var(--rule-soft); margin: 3em 0; }
.prose img { border-radius: 12px; margin: 2em 0; box-shadow: var(--shadow-md); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(251, 250, 246, 0.7);
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem;
  position: relative;
  z-index: 2;
  margin-top: 4rem;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 640px) { .site-footer .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .site-footer .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(251, 250, 246, 0.5);
  margin: 0 0 1rem;
  font-weight: 500;
}
.site-footer .footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 0.75rem;
  display: block;
}
.site-footer .footer-tag {
  font-size: 0.875rem;
  line-height: 1.55;
  max-width: 320px;
  margin-bottom: 1.5rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 0.625rem; }
.site-footer ul a {
  color: rgba(251, 250, 246, 0.7);
  font-size: 0.875rem;
  transition: color 0.2s var(--ease-out);
}
.site-footer ul a:hover { color: var(--paper); }
.site-footer .socials {
  display: flex; flex-wrap: wrap; gap: 0.625rem;
  margin-top: 0.5rem;
}
.site-footer .social-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(251, 250, 246, 0.15);
  display: grid; place-items: center;
  color: rgba(251, 250, 246, 0.65);
  transition: transform 0.25s var(--ease-out), background 0.25s var(--ease-out), border-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.site-footer .social-btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
  transform: translateY(-2px);
}
.site-footer .social-btn svg { width: 18px; height: 18px; fill: currentColor; }
.site-footer .footer-bottom {
  border-top: 1px solid rgba(251, 250, 246, 0.1);
  padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  color: rgba(251, 250, 246, 0.5);
}
.site-footer .footer-bottom .legal-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer .footer-bottom a { color: rgba(251, 250, 246, 0.6); }
.site-footer .footer-bottom a:hover { color: var(--paper); }

/* ---------- Utility ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -40px; left: 0; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 0.5rem 1rem;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Brand wordmark — single-string treatment with aggressive
   kerning and tight letter-spacing so "JunkDNA.AI" renders as
   one continuous word with no perceived gap between Junk and DNA.
   ============================================================ */
.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  gap: 2px;
}
.brand-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.04em;
  font-variation-settings: "wght" 700, "SOFT" 0, "WONK" 0, "opsz" 14;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  white-space: nowrap;
  color: var(--ink);
  line-height: 1;
}
.brand-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 0.7rem;
  font-variation-settings: "wght" 400, "SOFT" 100, "WONK" 1, "opsz" 14;
  letter-spacing: 0;
  color: var(--brand);
  line-height: 1.1;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .brand-tagline { display: none; }
}

/* ============================================================
   Share buttons — used on blog posts to share via X, LinkedIn,
   Facebook, or copy link to clipboard. Pure HTML/CSS/JS.
   Replaces the React-based ShareButton.js from the original site.
   ============================================================ */
.share-bar {
  background: var(--paper-soft);
  border: 1px solid var(--rule-soft);
  border-radius: 14px;
  padding: 1.5rem;
  margin: 2.5rem 0;
  text-align: center;
  position: relative;
}
.share-bar__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.share-bar__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  justify-content: center;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s var(--ease-out),
              color 0.2s var(--ease-out),
              border-color 0.2s var(--ease-out),
              transform 0.2s var(--ease-out);
  white-space: nowrap;
}
.share-btn svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
.share-btn--copy svg { fill: none; stroke: currentColor; }
.share-btn:hover {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
  transform: translateY(-1px);
}
.share-btn--x:hover { background: var(--ink); border-color: var(--ink); }
.share-btn--linkedin:hover { background: #0a66c2; border-color: #0a66c2; }
.share-btn--facebook:hover { background: #1877f2; border-color: #1877f2; }

.share-bar__toast {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--ink);
  color: var(--paper);
  padding: 0.625rem 1rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  white-space: nowrap;
  z-index: 5;
}
.share-bar__toast::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--ink);
}
.share-bar__toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   Contact-page socials grid — 9 channels in a flexible card grid.
   Hover state colors each card with the platform's brand color.
   ============================================================ */
.contact-socials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  max-width: 720px;
  margin: 0 auto;
}
@media (min-width: 480px) { .contact-socials { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) { .contact-socials { grid-template-columns: repeat(4, 1fr); } }
.contact-social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 0.75rem;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background 0.2s var(--ease-out),
              color 0.2s var(--ease-out),
              border-color 0.2s var(--ease-out),
              transform 0.2s var(--ease-out),
              box-shadow 0.2s var(--ease-out);
}
.contact-social-card svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  transition: fill 0.2s var(--ease-out);
}
.contact-social-card:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  color: var(--ink);
  background: var(--paper-soft);
  box-shadow: var(--shadow-md);
}
