html {
  color-scheme: dark;
}

body.theme-main,
body.theme-edgy,
body.theme-paws {
  --ink: var(--console-text);
  --muted: var(--console-muted);
  --panel: var(--console-panel);
  --line: var(--console-line);
  --oak: var(--console-accent);
  --blue: var(--console-accent);
  --copper: var(--console-warm);
  background:
    linear-gradient(135deg, var(--console-wash-a), transparent 42%),
    linear-gradient(215deg, var(--console-wash-b), transparent 46%),
    linear-gradient(180deg, var(--console-bg-top) 0%, var(--console-bg) 52%, var(--console-bg-low) 100%);
  color: var(--console-text);
}

body.theme-main {
  --console-bg-top: #0b1512;
  --console-bg: #07110f;
  --console-bg-low: #040706;
  --console-panel: rgba(9, 21, 18, 0.76);
  --console-panel-strong: rgba(12, 29, 24, 0.9);
  --console-line: rgba(125, 255, 179, 0.22);
  --console-text: #effaf2;
  --console-muted: #b4c8ba;
  --console-accent: #7dffb3;
  --console-accent-strong: #355f3f;
  --console-warm: #ffb347;
  --console-wash-a: rgba(125, 255, 179, 0.14);
  --console-wash-b: rgba(255, 179, 71, 0.1);
  --console-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

body.theme-edgy {
  --console-bg-top: #07111d;
  --console-bg: #040a14;
  --console-bg-low: #02050a;
  --console-panel: rgba(3, 10, 20, 0.72);
  --console-panel-strong: rgba(5, 15, 30, 0.92);
  --console-line: rgba(90, 220, 255, 0.34);
  --console-text: #eefaff;
  --console-muted: #a9bfcb;
  --console-accent: #19d7ff;
  --console-accent-strong: #3f62ff;
  --console-warm: #7dffb3;
  --console-wash-a: rgba(25, 215, 255, 0.16);
  --console-wash-b: rgba(63, 98, 255, 0.13);
  --console-shadow: 0 22px 80px rgba(0, 8, 18, 0.46);
}

body.theme-paws {
  --console-bg-top: #18130d;
  --console-bg: #0f0d09;
  --console-bg-low: #070604;
  --console-panel: rgba(31, 24, 16, 0.74);
  --console-panel-strong: rgba(38, 29, 18, 0.92);
  --console-line: rgba(255, 179, 71, 0.3);
  --console-text: #fff9ed;
  --console-muted: #d9cbb4;
  --console-accent: #ffb347;
  --console-accent-strong: #b66f3b;
  --console-warm: #7dffb3;
  --console-wash-a: rgba(255, 179, 71, 0.15);
  --console-wash-b: rgba(125, 255, 179, 0.08);
  --console-shadow: 0 22px 76px rgba(0, 0, 0, 0.4);
}

body.theme-main::before,
body.theme-edgy::before,
body.theme-paws::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.78), transparent 82%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.78), transparent 82%);
}

body.theme-main .site-shell,
body.theme-edgy .shell,
body.theme-paws .shell {
  position: relative;
  z-index: 1;
}

body.theme-main .site-header,
body.theme-edgy header,
body.theme-paws header {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--console-line);
  border-radius: 8px;
  background: var(--console-panel);
  box-shadow: var(--console-shadow);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

body.theme-main .brand,
body.theme-edgy .brand,
body.theme-paws .brand {
  color: var(--console-text);
  text-shadow: 0 0 18px var(--console-wash-a);
}

body.theme-main .brand-mark {
  border-color: var(--console-line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--console-accent);
  box-shadow: 0 0 28px var(--console-wash-a);
}

body.theme-main .nav a,
body.theme-edgy nav a,
body.theme-paws nav a {
  color: var(--console-muted);
}

body.theme-main .nav a:hover,
body.theme-main .nav a:focus-visible,
body.theme-edgy nav a:hover,
body.theme-edgy nav a:focus-visible,
body.theme-paws nav a:hover,
body.theme-paws nav a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--console-text);
  box-shadow: inset 0 0 0 1px var(--console-line);
}

body.theme-main .hero,
body.theme-edgy main,
body.theme-paws main {
  padding-top: clamp(34px, 6vw, 72px);
}

body.theme-main .hero-title-image,
body.theme-edgy .hero-title-image,
body.theme-paws .hero-title-image {
  border: 1px solid var(--console-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 22px 70px rgba(0, 0, 0, 0.38),
    0 0 44px var(--console-wash-a);
}

body.theme-edgy .hero-title-image,
body.theme-paws .hero-title-image {
  width: min(100%, 820px);
}

body.theme-main .hero-copy,
body.theme-edgy .lead,
body.theme-paws .lead,
body.theme-main .section-header p,
body.theme-main .about-copy,
body.theme-main .mini-card p,
body.theme-main .branch-card p,
body.theme-edgy .panel ul,
body.theme-paws .panel ul {
  color: var(--console-muted);
}

body.theme-main .eyebrow,
body.theme-edgy .eyebrow,
body.theme-paws .eyebrow {
  color: var(--console-accent);
  letter-spacing: 0;
  text-shadow: 0 0 16px var(--console-wash-a);
}

body.theme-main h1,
body.theme-edgy h1,
body.theme-paws h1,
body.theme-main h2,
body.theme-edgy h2,
body.theme-paws h2,
body.theme-main h3,
body.theme-edgy h3,
body.theme-paws h3,
body.theme-main .button,
body.theme-edgy .button,
body.theme-paws .button {
  letter-spacing: 0;
}

body.theme-main .hero-copy,
body.theme-edgy .lead,
body.theme-paws .lead {
  font-size: 1.18rem;
}

body.theme-main .section-header h2 {
  font-size: 3rem;
}

body.theme-main .branch-card h3 {
  font-size: 2.08rem;
}

body.theme-main .about-layout h2,
body.theme-main .contact-panel h2 {
  font-size: 2.35rem;
}

body.theme-main .button,
body.theme-edgy .button,
body.theme-paws .button {
  border: 1px solid var(--console-line);
  color: var(--console-text);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

body.theme-main .button-primary,
body.theme-edgy .button-primary,
body.theme-paws .button-primary {
  background:
    linear-gradient(135deg, var(--console-accent-strong), var(--console-accent));
  color: #03100d;
}

body.theme-edgy .button-primary {
  color: #00131a;
}

body.theme-paws .button-primary {
  color: #1a0f04;
}

body.theme-main .button-secondary,
body.theme-edgy .button-secondary,
body.theme-paws .button-secondary {
  background: rgba(255, 255, 255, 0.07);
}

body.theme-main .button:hover,
body.theme-main .button:focus-visible,
body.theme-edgy .button:hover,
body.theme-edgy .button:focus-visible,
body.theme-paws .button:hover,
body.theme-paws .button:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.34),
    0 0 28px var(--console-wash-a);
}

body.theme-edgy .actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  max-width: 720px;
}

body.theme-edgy .actions .button {
  width: 100%;
}

body.theme-main .mini-card,
body.theme-main .branch-card,
body.theme-edgy .panel,
body.theme-paws .panel {
  border-color: var(--console-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent),
    var(--console-panel);
  color: var(--console-text);
  box-shadow: var(--console-shadow);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

body.theme-main .branch-preview::before {
  inset: 36px 12px 18px 28px;
  border-color: var(--console-line);
  border-radius: 8px;
  transform: none;
  background:
    linear-gradient(135deg, var(--console-wash-a), transparent 54%),
    var(--console-panel);
  box-shadow: 0 0 44px var(--console-wash-a);
}

body.theme-main .mini-icon.paws,
body.theme-main .mini-icon.lab {
  background: linear-gradient(135deg, var(--console-accent-strong), var(--console-accent));
  color: #05100d;
}

body.theme-main .mini-icon.lab {
  background: linear-gradient(135deg, #245c7d, #19d7ff);
  color: #00131a;
}

body.theme-main .branch-card::before {
  background: linear-gradient(90deg, var(--accent), transparent);
}

body.theme-main .paws-card {
  --accent: var(--console-warm);
}

body.theme-main .ai-card {
  --accent: #19d7ff;
}

body.theme-main .branch-card li::before,
body.theme-main .panel li::before,
body.theme-edgy .panel li::before,
body.theme-paws .panel li::before {
  box-shadow: 0 0 14px currentColor;
}

body.theme-paws .section {
  margin-top: 72px;
}

body.theme-paws .section-header {
  max-width: 760px;
  margin-bottom: 22px;
}

body.theme-paws .section-header h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

body.theme-paws .section-header p {
  margin: 14px 0 0;
  color: var(--console-muted);
  line-height: 1.62;
}

body.theme-paws .video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

body.theme-paws .video-card {
  padding: 0;
  overflow: hidden;
}

body.theme-paws .video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0d1211;
}

body.theme-paws .video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

body.theme-paws .video-card-body {
  padding: 16px 18px 18px;
}

body.theme-paws .video-card-body h3 {
  font-size: 1.2rem;
  line-height: 1.2;
}

body.theme-paws .video-card-body p {
  margin: 10px 0 0;
  color: var(--console-muted);
}

body.theme-paws .video-fallback {
  display: none;
}

body.theme-paws.local-preview .video-embed {
  display: none;
}

body.theme-paws.local-preview .video-fallback {
  display: block;
  margin: 0 0 10px;
  padding: 12px 14px;
  border: 1px solid var(--console-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--console-muted);
}

body.theme-paws .video-card-body a {
  color: var(--console-accent);
}

body.theme-main .about-band {
  border-color: var(--console-line);
  background: rgba(255, 255, 255, 0.035);
}

body.theme-main .contact-panel {
  border-color: var(--console-line);
  background:
    linear-gradient(135deg, var(--console-panel-strong), rgba(5, 15, 12, 0.86)),
    var(--console-panel);
  box-shadow: var(--console-shadow);
}

body.theme-main .contact-panel .button {
  background: var(--console-text);
  color: #07110f;
}

body.theme-main .site-footer,
body.theme-edgy footer,
body.theme-paws footer {
  border-color: var(--console-line);
  color: var(--console-muted);
}

@media (max-width: 760px) {
  body.theme-main .site-header,
  body.theme-edgy header,
  body.theme-paws header {
    margin-top: 12px;
  }

  body.theme-edgy .actions {
    grid-template-columns: 1fr;
  }

  body.theme-main .hero-copy,
  body.theme-edgy .lead,
  body.theme-paws .lead {
    font-size: 1.06rem;
  }

  body.theme-main .section-header h2 {
    font-size: 2.2rem;
  }

  body.theme-paws .video-grid {
    grid-template-columns: 1fr;
  }

  body.theme-main .branch-card h3 {
    font-size: 1.75rem;
  }

  body.theme-main .about-layout h2,
  body.theme-main .contact-panel h2 {
    font-size: 1.9rem;
  }
}
