/* Blacksmith & Witches — Strict House Palette
   Background: #FFFFFF
   House Blue: #005BBB
   House Gold: #FFD500
   Ink:        #111827
*/

:root {
  --bg: #ffffff;
  --blue: #005bbb;
  --blue-dark: #004794;
  --yellow: #ffd500;
  --yellow-dark: #e6bf00;
  --ink: #111827;
  --muted: #4b5563;
  --border: #e5e7eb;
  --radius: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Sticky Ecosystem Bar */
.ecosystem-bar {
  background-color: var(--blue);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 50;
}

.ecosystem-inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 15px;
}

.brand-badge {
  background-color: var(--yellow);
  color: var(--ink);
  font-weight: 900;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
}

.ecosystem-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  font-weight: 700;
}

.ecosystem-nav a:hover {
  color: var(--yellow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background-color: var(--blue);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--blue-dark);
}

.btn-accent {
  background-color: var(--yellow);
  color: var(--ink);
}

.btn-accent:hover {
  background-color: var(--yellow-dark);
}

.btn-outline {
  background-color: #ffffff;
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* Pills & Kickers */
.eyebrow,
.section-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 10px;
}

.pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}

.pill-blue {
  background-color: var(--blue);
  color: #ffffff;
}

.pill-yellow {
  background-color: var(--yellow);
  color: var(--ink);
}

/* Hero */
.hero {
  padding: 64px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 28px;
  font-size: 17px;
  color: var(--muted);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Quick-Jump Directory Card */
.hero-card {
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  padding: 22px;
  background-color: #ffffff;
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cad-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.directory-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.directory-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.directory-list li a:hover {
  border-color: var(--blue);
  background-color: #f8fafc;
}

.directory-list strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.directory-list span {
  font-size: 12px;
  color: var(--muted);
}

.directory-list .arrow {
  font-weight: 900;
  color: var(--blue);
  font-size: 16px;
}

/* Sections */
.section {
  padding: 56px 0;
}

.border-top {
  border-top: 1px solid var(--border);
}

.section-header {
  max-width: 640px;
  margin-bottom: 32px;
}

.section-header h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.015em;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Cards */
.cards-grid {
  display: grid;
  gap: 20px;
}

.four-col {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
}

.card-highlight {
  border: 2px solid var(--blue);
}

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  align-items: flex-start;
}

.card-body h3 {
  margin: 2px 0 0;
  font-size: 19px;
  font-weight: 800;
}

.card-body p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  flex: 1;
}

.card-link {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--blue);
}

.card-link:hover {
  text-decoration: underline;
}

/* Creator Banner */
.creator-banner {
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.creator-banner-copy {
  max-width: 600px;
}

.creator-banner-copy h2 {
  margin: 10px 0 8px;
  font-size: 24px;
  font-weight: 900;
}

.creator-banner-copy p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.creator-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 36px;
  align-items: start;
}

.about-grid h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
}

.about-copy p {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  font-size: 13px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 700;
  color: var(--ink);
}

.footer-links a:hover {
  color: var(--blue);
}

/* #books Section */
.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.three-col {
  grid-template-columns: repeat(3, 1fr);
}

.books-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.compact-header {
  margin-bottom: 0;
}

.books-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  flex-wrap: wrap;
}

.meta-note {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.card-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.card-link-muted {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.card-link-muted:hover {
  color: var(--blue);
}

.books-creator-strip {
  margin-top: 20px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background-color: #ffffff;
}

.books-creator-strip p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.books-creator-strip strong {
  color: var(--ink);
}

@media (max-width: 900px) {
  .two-col,
  .three-col {
    grid-template-columns: 1fr;
  }

  .books-topbar {
    align-items: flex-start;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .four-col,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 40px 0;
  }
}

/* #classics Section */
.classics-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.classics-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.card-forthcoming {
  border: 1.5px dashed var(--blue);
  background-color: #ffffff;
}

.card-status-badge {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
}

@media (max-width: 960px) {
  .four-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .four-col {
    grid-template-columns: 1fr;
  }

  .classics-topbar {
    align-items: flex-start;
  }
}

/* Card cover pictures */
.card {
  overflow: hidden;
}

.card-cover {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.card-cover-fallback {
  background-color: var(--blue);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: 0.06em;
  border-bottom: 3px solid var(--yellow);
}

/* Reading Room Page (reading-room.html) */
.brand-sub {
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
  margin-left: 6px;
}

.rr-hero {
  padding: 52px 0 44px;
}

.rr-hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 32px;
  align-items: start;
}

.rr-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.rr-index-card {
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  padding: 20px;
  background-color: var(--bg);
}

.rr-index-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.rr-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.rr-index-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
}

.rr-index-list li a:hover {
  border-color: var(--blue);
}

.rr-index-list .arrow {
  color: var(--blue);
  font-weight: 900;
}

@media (max-width: 900px) {
  .rr-hero-grid {
    grid-template-columns: 1fr;
  }
}

/* Reading Room legacy shelf skin (existing markup, new design) */
.line-block {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 20px;
  border-top: 1px solid var(--border);
}

.line-block .series {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin: 0 0 10px;
}

.line-block h2 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.015em;
}

.line-intro {
  font-size: 15px;
  color: var(--muted);
  max-width: 78ch;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.room-card,
.trio-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 18px;
}

.room-card img,
.trio-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: top center;
  display: block;
  margin-bottom: 14px;
}

.room-card h3,
.trio-item h3 {
  margin: 0 18px 8px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.room-card p,
.trio-item p {
  margin: 0 18px 10px;
  font-size: 13.5px;
  color: var(--muted);
}

.room-card p:last-child,
.trio-item p:last-child {
  margin-bottom: 0;
}

@media (max-width: 960px) {
  .room-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .room-grid {
    grid-template-columns: 1fr;
  }
}

/* Kit page legacy skin additions */
.kit-list {
  margin: 0 0 20px;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  font-size: 14.5px;
  color: var(--muted);
}

.kit-list strong {
  color: var(--ink);
}

.kit-contents {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
}

.kit-contents strong {
  color: var(--ink);
}

.line-block .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.line-block .btn:not(.btn-primary):not(.btn-accent) {
  border: 1px solid var(--border);
  background-color: #ffffff;
}

.line-block .status {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--muted);
}

.line-block .status a,
.line-block p a {
  color: var(--blue);
  font-weight: 700;
}

/* Board page skin (Kepler's Board) */
:root {
  --ink-dim: #4b5563;
  --line: #e5e7eb;
  --bg-panel: #eef4fb;
  --bg-panel-2: #f6f9fd;
  --accent-soft: #004794;
}

.board-h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.thread-list {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.thread {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  background-color: #ffffff;
}

.thread .thread-room {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--blue);
}

.thread h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
}

.thread p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.thread .thread-meta {
  margin-bottom: 6px;
}

.board-stats {
  color: var(--muted);
}

.board-stats strong {
  color: var(--ink);
}

/* Reading pages (excerpt articles) */
.reading-head {
  max-width: 46rem;
  margin: 0 auto;
  padding: 44px 20px 0;
  text-align: center;
}

.reading-head .series {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin: 0 0 10px;
}

.reading-head h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4.5vw, 38px);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.reading-head .lede {
  margin: 0 auto;
  font-size: 16px;
  color: var(--muted);
  max-width: 56ch;
}

.reading {
  max-width: 44em;
  margin: 0 auto;
  padding: 48px 20px 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17.5px;
  line-height: 1.8;
}

.reading p {
  margin-bottom: 1.05em;
  text-align: justify;
}

.reading .chapter-title {
  font-size: 27px;
  font-weight: 600;
  text-align: center;
  color: var(--ink);
  margin: 0.6em 0 1.1em;
  border-bottom: 3px solid var(--yellow);
  padding-bottom: 0.35em;
}

.reading .read-note {
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  margin-bottom: 2em;
}

.reading .section-num {
  text-align: center;
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
  margin: 1.6em 0 1em;
}

.read-end {
  max-width: 44em;
  margin: 0 auto 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: #ffffff;
  padding: 24px 28px;
  width: calc(100% - 40px);
}

.read-end h3 {
  font-size: 21px;
  font-weight: 800;
  margin: 0 0 8px;
}

.read-end p {
  margin: 0 0 12px;
  font-size: 14.5px;
  color: var(--muted);
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.btn:not(.btn-primary):not(.btn-accent):not(.btn-outline) {
  border: 1px solid var(--border);
  background-color: #ffffff;
}

/* Language-edition legacy skin */
.lang-switch {
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 700;
}

.lang-switch a:hover {
  color: var(--blue);
}

.lang-switch .current {
  color: var(--blue);
  text-decoration: underline;
}

.lang-switch .sep {
  color: var(--muted);
}

.site-footer .lang-switch {
  justify-content: flex-start;
  margin-top: 0;
}

.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

@media (max-width: 960px) {
  .trio {
    grid-template-columns: 1fr;
  }
}

.stage-banner {
  margin-top: 24px;
}

.stage-banner img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}

.stage-caption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

.test-banner {
  border: 2px solid var(--yellow);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 14px;
  margin-top: 24px;
}

.card-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 14px;
  background-color: #ffffff;
}

.card-row .card-cover {
  width: 84px;
  height: auto;
  border-radius: 8px;
}

.card-row .card-text {
  font-size: 14px;
  color: var(--muted);
}

.section-mark {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
}

/* Brand magic — a light sparkle on the top lockup (all pages) */
.brand-lockup {
  position: relative;
}

.brand-badge {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 rgba(255, 213, 0, 0);
  animation: badge-glow 3.4s ease-in-out infinite;
}

.brand-badge::after {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: -30%;
  width: 36%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  transform: rotate(8deg);
  animation: badge-shine 3.4s ease-in-out infinite;
}

.brand-title {
  background-image: linear-gradient(100deg, #ffffff 42%, #ffe970 50%, #ffffff 58%);
  background-size: 220% 100%;
  background-position: 120% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: title-shimmer 5.2s ease-in-out infinite;
}

.brand-title .brand-sub {
  -webkit-text-fill-color: rgba(255, 255, 255, 0.92);
  color: rgba(255, 255, 255, 0.92);
}

.brand-lockup::before,
.brand-lockup::after {
  content: "";
  position: absolute;
  background: var(--yellow);
  clip-path: polygon(50% 0, 63% 37%, 100% 50%, 63% 63%, 50% 100%, 37% 63%, 0 50%, 37% 37%);
  pointer-events: none;
}

.brand-lockup::before {
  width: 13px;
  height: 13px;
  top: -7px;
  left: 34px;
  animation: spark-twinkle 2.6s ease-in-out infinite;
}

.brand-lockup::after {
  width: 9px;
  height: 9px;
  top: 22px;
  left: -4px;
  animation: spark-twinkle 3.3s ease-in-out 0.9s infinite;
}

@keyframes badge-shine {
  0%, 55% { left: -30%; }
  85%, 100% { left: 115%; }
}

@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 213, 0, 0); }
  50% { box-shadow: 0 0 14px rgba(255, 213, 0, 0.55); }
}

@keyframes title-shimmer {
  0%, 58% { background-position: 120% 0; }
  88%, 100% { background-position: -120% 0; }
}

@keyframes spark-twinkle {
  0%, 100% { transform: scale(0.45) rotate(0deg); opacity: 0.35; }
  50% { transform: scale(1) rotate(24deg); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-badge,
  .brand-badge::after,
  .brand-title,
  .brand-lockup::before,
  .brand-lockup::after {
    animation: none;
  }
}

/* Brand magic — turned up (Dmitri's y, Nov 19) */
.brand-title {
  position: relative;
  animation-duration: 4.4s;
}

.brand-title::before {
  content: "";
  position: absolute;
  right: -17px;
  top: -5px;
  width: 8px;
  height: 8px;
  background: var(--yellow);
  -webkit-text-fill-color: var(--yellow);
  clip-path: polygon(50% 0, 63% 37%, 100% 50%, 63% 63%, 50% 100%, 37% 63%, 0 50%, 37% 37%);
  animation: spark-twinkle 2.2s ease-in-out 1.5s infinite;
}

.ecosystem-bar::before {
  content: "";
  position: absolute;
  left: min(318px, 72vw);
  top: 7px;
  width: 8px;
  height: 8px;
  background: var(--yellow);
  clip-path: polygon(50% 0, 63% 37%, 100% 50%, 63% 63%, 50% 100%, 37% 63%, 0 50%, 37% 37%);
  animation: spark-twinkle 2.9s ease-in-out 0.4s infinite;
  pointer-events: none;
}

.ecosystem-bar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(255, 213, 0, 0) 0%, #ffd500 25%, #fff6c9 50%, #ffd500 75%, rgba(255, 213, 0, 0) 100%);
  background-size: 220% 100%;
  box-shadow: 0 1px 10px rgba(255, 213, 0, 0.45);
  animation: glitter-wave 3.8s linear infinite;
  pointer-events: none;
}

@keyframes glitter-wave {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-title::before,
  .ecosystem-bar::before,
  .ecosystem-bar::after {
    animation: none;
  }
}

/* Button state hardening — Nov 19, 2026 (Dmitri: blue buttons washed out to off-white on click/hover, text unreadable) */
.btn-primary,
.btn-primary:visited {
  background-color: var(--blue);
  color: #ffffff;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--blue-dark);
  color: #ffffff;
}
.btn-accent,
.btn-accent:visited {
  background-color: var(--yellow);
  color: var(--ink);
}
.btn-accent:hover,
.btn-accent:focus,
.btn-accent:active {
  background-color: var(--yellow-dark);
  color: var(--ink);
}
.btn:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}
a {
  -webkit-tap-highlight-color: transparent;
}
