/* ============================================================
   baldinimagic.com — redesign
   The Great Baldini · Rhode Island Magician
   Mobile-first, dependency-free, accessible.
   Palette: deep magical violet + warm gold accent.
   Two themes (default dark "night show", plus light "matinee").
   ============================================================ */

/* ---------- theme variables ---------- */
:root {
  color-scheme: dark;

  --bg: #0e0a1f;          /* deep violet-black */
  --bg-soft: #171033;     /* panel behind content */
  --bg-card: #1f1745;     /* card surfaces */
  --text: #f6efff;
  --text-soft: #cfc2ec;
  --text-mute: #9d8cc4;
  --line: #332761;
  --gold: #ffd166;
  --gold-soft: #ffb703;
  --violet: #b98cff;
  --violet-deep: #7c4dff;
  --danger: #ff6b6b;
  --grad-shine: linear-gradient(90deg, var(--gold-soft), var(--gold) 45%, #fff3c4 55%, var(--gold));

  --display: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-gold: 0 6px 24px rgba(255, 209, 102, 0.25);

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

[data-theme="light"] {
  color-scheme: light;

  --bg: #faf6ee;          /* warm parchment — never pure white */
  --bg-soft: #f0e9d8;
  --bg-card: #ffffff;
  --text: #231a3f;
  --text-soft: #45376e;
  --text-mute: #6f6396;
  --line: #ddd3c0;
  --gold: #b78a00;
  --gold-soft: #9a6f00;
  --violet: #6a3fd0;
  --violet-deep: #4c25a8;
  --danger: #c0392b;
  --grad-shine: linear-gradient(90deg, #9a6f00, #b78a00 45%, #d9b64a 55%, #9a6f00);
  --shadow: 0 10px 30px rgba(60, 40, 10, 0.12);
  --shadow-gold: 0 6px 24px rgba(184, 138, 0, 0.2);
}

/* ---------- reset + base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  transition: background-color 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--violet);
  text-decoration-color: rgba(185, 140, 255, 0.5);
  text-underline-offset: 3px;
}
[data-theme="light"] a {
  color: var(--violet-deep);
}
a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

ul {
  list-style: none;
}

/* ---------- layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 640px) {
  .container { padding: 0 32px; }
}
@media (min-width: 1024px) {
  .container { padding: 0 40px; }
}

.section {
  padding: 64px 0;
}
@media (min-width: 768px) {
  .section { padding: 96px 0; }
}

.section-head {
  max-width: 46rem;
  margin-bottom: 40px;
}
.section-head > .eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-soft);
  margin-bottom: 12px;
}
[data-theme="light"] .section-head > .eyebrow {
  color: var(--gold);
}
.section-head > h2 {
  font-family: var(--display);
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
}
.section-head > p {
  color: var(--text-soft);
  font-size: 18px;
}

.lead {
  font-size: 19px;
  color: var(--text-soft);
  max-width: 46rem;
}

/* ---------- top header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-badge {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold), var(--gold-soft) 60%, #805a00);
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #2a1a00;
  box-shadow: var(--shadow-gold);
}
.brand-text {
  line-height: 1.15;
}
.brand-text strong {
  display: block;
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: 0.02em;
  color: var(--text);
}
.brand-text span {
  display: block;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-mute);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 15.5px;
  padding: 10px 12px;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--bg-soft);
}
.nav-links a[aria-current="page"] {
  color: var(--gold-soft);
}
[data-theme="light"] .nav-links a[aria-current="page"] {
  color: var(--gold);
}

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

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.icon-btn:hover {
  transform: translateY(-2px);
  border-color: var(--violet);
}

/* hamburger only on mobile */
.nav-toggle {
  display: grid;
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-links { display: flex; }
}

/* mobile slide-down menu */
.mobile-menu {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 16px 20px 24px;
  display: none;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.open {
  display: flex;
  animation: menuIn 0.25s ease-out;
}
.mobile-menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  padding: 14px 12px;
  border-radius: 10px;
}
.mobile-menu a:hover {
  background: var(--bg-soft);
}
.mobile-menu a[aria-current="page"] {
  color: var(--gold-soft);
}
[data-theme="light"] .mobile-menu a[aria-current="page"] {
  color: var(--gold);
}
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (min-width: 900px) {
  .mobile-menu { display: none !important; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 24px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  min-height: 48px;
}
.btn:active {
  transform: translateY(1px);
}
.btn-gold {
  background: linear-gradient(120deg, var(--gold-soft), var(--gold));
  color: #2a1a00;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 209, 102, 0.45);
}
.btn-ghost {
  border-color: var(--violet);
  color: var(--violet);
  background: transparent;
}
[data-theme="light"] .btn-ghost {
  color: var(--violet-deep);
  border-color: var(--violet-deep);
}
.btn-ghost:hover {
  background: color-mix(in srgb, var(--violet) 14%, transparent);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 88svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 40px 20px 64px;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../img/baldinimagic_splash.jpg");
  background-size: contain;      /* full splash, frames intact — never crop */
  background-repeat: no-repeat;
  background-position: center;
  background-color: var(--bg);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(20, 10, 45, 0.55), rgba(10, 6, 26, 0.86) 78%);
}
[data-theme="light"] .hero::after {
  background: radial-gradient(ellipse at 50% 40%, rgba(40, 20, 70, 0.45), rgba(25, 12, 50, 0.82));
}
@media (min-width: 768px) {
  .hero { min-height: 84vh; }
}
[data-theme="light"] .hero .hero-content {
  color: #fff;
}
.hero-content {
  color: #fff;
  max-width: 46rem;
}
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.hero-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 9vw, 84px);
  line-height: 1.02;
  margin-bottom: 8px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.55);
}
.hero-title .magic {
  background: var(--grad-shine);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 8s linear infinite;
}
@keyframes shine {
  to { background-position: 220% center; }
}
.hero-sub {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(18px, 3vw, 26px);
  color: #efe6ff;
  margin-bottom: 26px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.hero-hint {
  margin-top: 22px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #cfc2ec;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

/* entrance animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease-out forwards;
}
.fade-in.d1 { animation-delay: 0.15s; }
.fade-in.d2 { animation-delay: 0.3s; }
.fade-in.d3 { animation-delay: 0.45s; }
.fade-in.d4 { animation-delay: 0.6s; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- floating sparkles layer ---------- */
.sparkles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 25;
  overflow: hidden;
}
.sparkles .sp {
  position: absolute;
  bottom: -12px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  animation: sparkleFloat linear infinite;
  will-change: transform, opacity;
}
.sparkles .sp:nth-child(4n) {
  background: var(--violet);
}
.sparkles .sp:nth-child(5n) {
  background: #fff;
}
@keyframes sparkleFloat {
  0%   { transform: translateY(0) translateX(0) scale(0.6); opacity: 0; }
  10%  { opacity: 0.9; }
  50%  { transform: translateY(-45vh) translateX(18px) scale(1); }
  90%  { opacity: 0.7; }
  100% { transform: translateY(-88vh) translateX(-14px) scale(0.4); opacity: 0; }
}

/* section-level sparkles */
.sparkles-inline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.sparkles-inline .sp {
  position: absolute;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  animation: sparkleFloat linear infinite;
  will-change: transform, opacity;
}

/* ---------- home body ---------- */
.welcome {
  position: relative;
}
.welcome .lead {
  background: var(--bg-soft);
  padding: 28px 28px;
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
}
@media (min-width: 768px) {
  .welcome .lead { padding: 36px 40px; font-size: 20px; }
}

/* "wherever you go" cards */
.venues {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 8px;
}
@media (min-width: 700px) {
  .venues { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}
.venue-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.venue-card:hover {
  transform: translateY(-6px);
  border-color: var(--violet);
  box-shadow: var(--shadow);
}
.venue-emoji {
  font-size: 38px;
  line-height: 1;
  margin-bottom: 16px;
}
.venue-card h3 {
  font-family: var(--display);
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--text);
}
.venue-card p {
  color: var(--text-soft);
  font-size: 16.5px;
}

/* two-column feature (portrait + copy) */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
}
.split.reverse {
  direction: rtl;
}
.split.reverse > * {
  direction: ltr;
}
.split-media {
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.split-media img {
  width: 100%;
  height: auto;          /* natural aspect ratio — keeps the painted frames intact */
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
  border-radius: var(--radius);
}
.split-copy h2 {
  font-family: var(--display);
  font-size: clamp(28px, 4.5vw, 40px);
  line-height: 1.12;
  margin-bottom: 16px;
}
.split-copy p {
  color: var(--text-soft);
  margin-bottom: 18px;
}
.split-copy p:last-child {
  margin-bottom: 0;
}

/* ---------- about page ---------- */
.quote {
  max-width: 52rem;
  margin: 24px auto;
  padding: 28px 24px;
  border-left: 4px solid var(--gold);
  background: var(--bg-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--display);
  font-size: clamp(20px, 3vw, 27px);
  font-style: italic;
  line-height: 1.45;
  color: var(--text);
}
.quote footer {
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 15px;
  font-style: normal;
  color: var(--text-mute);
  letter-spacing: 0.05em;
}

.creds {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 768px) {
  .creds { grid-template-columns: repeat(3, 1fr); }
}
.cred {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.cred h3 {
  font-family: var(--display);
  font-size: 22px;
  margin-bottom: 8px;
}
.cred p {
  color: var(--text-soft);
  font-size: 16px;
  margin-bottom: 8px;
}

/* ---------- clients ---------- */
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.client-chip {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-soft);
  font-size: 16.5px;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.client-chip::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}
.client-chip:hover {
  transform: translateY(-3px);
  border-color: var(--violet);
  background: var(--bg-soft);
}

/* ---------- videos ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.filter-btn {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
}
.filter-btn:hover {
  border-color: var(--violet);
  color: var(--text);
}
.filter-btn.active {
  background: var(--gold);
  color: #2a1a00;
  border-color: var(--gold);
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
}

.video-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.video-card:hover {
  transform: translateY(-6px);
  border-color: var(--violet);
  box-shadow: var(--shadow);
}
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  cursor: pointer;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.video-card:hover .video-thumb img {
  transform: scale(1.05);
  opacity: 1;
}
.video-thumb::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  transform: translate(-50%, -50%);
  background: rgba(14, 10, 31, 0.7);
  border: 2px solid var(--gold);
  border-radius: 50%;
}
.video-thumb::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: translate(-42%, -50%);
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--gold);
  z-index: 1;
}
.video-meta {
  padding: 16px 18px 18px;
}
.video-meta h3 {
  font-size: 16.5px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-meta .v-actions {
  display: flex;
  gap: 10px;
}
.v-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-soft);
  text-decoration: none;
}
[data-theme="light"] .v-link {
  color: var(--gold);
}
.v-link:hover {
  text-decoration: underline;
}

/* inline embed (click-to-play) */
.yt-embed {
  aspect-ratio: 16 / 9;
  width: 100%;
}
.yt-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.empty-note {
  display: none;
  text-align: center;
  color: var(--text-mute);
  padding: 40px 0;
  font-size: 17px;
}

/* wish-burst sparkles (summon page easter egg) */
.wish-spark {
  position: absolute;
  font-size: 22px;
  color: var(--gold);
  pointer-events: none;
  animation: wishRise 1.6s ease-out forwards;
}
@keyframes wishRise {
  0%   { opacity: 0; transform: translateY(8px) scale(0.6); }
  35%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-30px) scale(1.3); }
}
.video-grid.showing-none + .empty-note {
  display: block;
}

/* ---------- summon / contact ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 28px;
}
@media (min-width: 700px) {
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.contact-card:hover {
  transform: translateY(-5px);
  border-color: var(--violet);
}
.contact-card .c-ico {
  font-size: 34px;
  margin-bottom: 12px;
}
.contact-card .c-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-mute);
  margin-bottom: 8px;
}
.contact-card a.phone-link,
.contact-card .c-value {
  font-family: var(--display);
  font-size: 24px;
  color: var(--text);
  text-decoration: none;
}
.contact-card a.phone-link:hover {
  color: var(--gold-soft);
}
[data-theme="light"] .contact-card a.phone-link:hover {
  color: var(--gold);
}

/* mailto form */
.summon-form {
  max-width: 42rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
@media (min-width: 640px) {
  .summon-form { padding: 36px; }
}
.form-row {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}
.form-row label {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-soft);
}
.form-row input:not([type]),
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row textarea,
.form-row select {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--violet) 25%, transparent);
}
.form-row textarea {
  resize: vertical;
  min-height: 120px;
}
.form-note {
  font-size: 14px;
  color: var(--text-mute);
  margin-top: 14px;
}

/* ---------- feature strip (YouTube CTA) ---------- */
.cta-band {
  text-align: center;
  padding: 56px 20px;
  background: radial-gradient(ellipse at 50% 20%, color-mix(in srgb, var(--violet) 26%, transparent), transparent 70%);
}
[data-theme="light"] .cta-band {
  background: radial-gradient(ellipse at 50% 20%, color-mix(in srgb, var(--violet) 14%, transparent), transparent 70%);
}
.cta-band h2 {
  font-family: var(--display);
  font-size: clamp(26px, 4.5vw, 40px);
  margin-bottom: 14px;
}
.cta-band p {
  color: var(--text-soft);
  max-width: 38rem;
  margin: 0 auto 24px;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
  padding: 36px 20px 32px;
}
@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer-brand {
  font-family: var(--display);
  font-size: 18px;
  color: var(--text);
}
.footer-brand small {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-mute);
  margin-top: 4px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.footer-social a:hover {
  transform: translateY(-3px);
  color: var(--gold-soft);
  border-color: var(--gold);
}
[data-theme="light"] .footer-social a:hover {
  color: var(--gold);
}
.footer-note {
  width: 100%;
  text-align: center;
  font-size: 13px;
  color: var(--text-mute);
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 200;
  background: var(--gold);
  color: #2a1a00;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
}
.skip-link:focus {
  left: 8px;
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }
  .fade-in,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .sparkles,
  .sparkles-inline {
    display: none !important;
  }
}
/* ============================================================
   New layout + "Do a Trick!" effects (added in redesign pass)
   All effects are GPU-friendly and disabled under reduced motion.
   ============================================================ */

/* brand badge image (replaces the old circle) */
.brand-badge-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: radial-gradient(circle at 35% 30%, var(--gold), var(--gold-soft) 60%, #805a00);
  box-shadow: var(--shadow-gold);
  flex: none;
}

/* welcome section two-column */
.welcome-split {
  align-items: center;
}
.welcome-lead {
  border-left: 4px solid var(--gold);
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-soft);
}
@media (min-width: 768px) {
  .welcome-lead { padding: 36px 40px; font-size: 20px; }
}

/* clients intro image — sits a bit higher, above the client boxes,
   with clear breathing room before the client list */
.clients-split .split-media {
  margin-top: 8px;
}
.clients-split + .client-grid {
  margin-top: 44px;
}

/* summon form + trick image side by side */
.summon-split {
  align-items: flex-start;
}
.summon-media img {
  border-radius: var(--radius);
}

/* poster figure on the about page */
.poster {
  max-width: 480px;
  margin: 8px auto 0;
  text-align: center;
}
.poster img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.poster figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-mute);
  font-style: italic;
}

/* ---------- "Do a Trick!" overlay + effects ----------
   Every effect fills the viewport and is dramatic and noticeable.
   GPU-friendly: transform / opacity / background only, no layout thrash.
   All disabled under prefers-reduced-motion.                         */
.trick-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 500;
  overflow: hidden;
}

/* 1 — full-screen star burst: golden flash from center + sparkles everywhere */
.trick-starburst {
  background:
    radial-gradient(circle at center, rgba(255,209,102,0.95), rgba(255,183,3,0.55) 45%, transparent 78%);
  animation: trickFade 1.1s ease-out forwards;
}
.trick-spark {
  position: absolute;
  color: var(--gold);
  text-shadow: 0 0 26px var(--gold), 0 0 60px var(--gold);
  animation: trickPop 0.9s ease-out forwards;
}

/* 2 — full-screen dramatic shake of the whole page */
.trick-wobble { animation: trickWobble 0.7s ease-in-out; }
@keyframes trickWobble {
  0%,100% { transform: translateX(0) rotate(0); }
  10% { transform: translateX(-26px) rotate(-1.1deg); }
  25% { transform: translateX(24px) rotate(1.1deg); }
  40% { transform: translateX(-18px) rotate(-0.8deg); }
  55% { transform: translateX(16px) rotate(0.8deg); }
  70% { transform: translateX(-9px) rotate(-0.4deg); }
  85% { transform: translateX(8px) rotate(0.4deg); }
}

/* 3 — full-screen confetti rain across the whole viewport */
.trick-confetti { animation: trickFade 1.15s ease-out forwards; }
.trick-confetti-bit {
  position: absolute;
  border-radius: 2px;
  animation: trickRain 1.1s linear forwards;
}

/* 4 — full-screen shockwave: three golden rings expanding to fill the screen */
.trick-ring { animation: trickFade 1.2s ease-out forwards; }
.trick-ring-bit {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 20px; height: 20px;
  margin: -10px 0 0 -10px;
  border: 5px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 34px var(--gold);
  animation: trickRing 1.1s ease-out forwards;
}
@keyframes trickRing {
  from { transform: scale(0.15); opacity: 1; }
  to   { transform: scale(9); opacity: 0; }
}

/* 5 — dramatic badge spin with a full-screen golden flash behind it */
.trick-spin-flash {
  background:
    radial-gradient(circle at center, rgba(255,209,102,0.9), transparent 75%);
  animation: trickFade 0.85s ease-out forwards;
}
.trick-spin { animation: trickSpin 0.9s ease-in-out; }
@keyframes trickSpin {
  0% { transform: rotate(0) scale(1); }
  50% { transform: rotate(360deg) scale(1.5); }
  100% { transform: rotate(720deg) scale(1); }
}

/* 6 — full-screen magic smoke billowing up from the bottom */
.trick-smoke {
  background:
    radial-gradient(ellipse at 50% 108%, rgba(120,90,200,0.5), transparent 62%);
  animation: trickFade 1.2s ease-out forwards;
}
.trick-smoke-puff {
  content: "";
  position: absolute;
  bottom: -8%;
  width: 42vw;
  height: 42vw;
  margin-left: -21vw;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(150,110,220,0.55), transparent 70%);
  animation: trickSmoke 1.15s ease-out forwards;
}
@keyframes trickSmoke {
  from { opacity: 0; transform: translateY(0) scale(0.4); }
  35% { opacity: 0.95; transform: translateY(-16vh) scale(1.1); }
  to { opacity: 0; transform: translateY(-58vh) scale(1.9); }
}

/* 7 — full-screen twinkling starfield across the whole viewport */
.trick-twinkle { animation: trickFade 1.15s ease-out forwards; }
.trick-twinkle-star {
  position: absolute;
  color: var(--gold);
  text-shadow: 0 0 14px var(--gold), 0 0 34px var(--gold);
  animation: trickTwinkle 1.0s ease-out forwards;
}
@keyframes trickTwinkle {
  0%   { opacity: 0; transform: scale(0.2); }
  40%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.5); }
}

/* 8 — full-screen shooting stars streaking across the whole screen */
.trick-shoot { animation: trickFade 1.2s ease-out forwards; }
.trick-shoot-star {
  content: "✦";
  position: absolute;
  left: -6%;
  font-size: 34px;
  color: var(--gold);
  text-shadow: 0 0 22px var(--gold), 0 0 46px var(--gold);
  animation: trickShoot 1.0s ease-in forwards;
}
@keyframes trickShoot {
  from { transform: translate(0, 0) rotate(0); opacity: 1; }
  to   { transform: translate(118vw, 14vh) rotate(32deg); opacity: 0; }
}

/* 9 — DRAMATIC hero-title color change: the title flashes hot magenta */
.trick-magenta.magic {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: #ff2fd6;
  text-shadow: 0 0 22px #ff2fd6, 0 0 60px #ff5cf0;
  animation: trickMagenta 1.5s ease-in-out;
}
@keyframes trickMagenta {
  0%,100% { filter: brightness(1) saturate(1); }
  12% { filter: brightness(1.7) saturate(1.4) hue-rotate(-40deg); }
  30% { filter: brightness(1.15) saturate(1.8) hue-rotate(-58deg); }
  45% { filter: brightness(1.9) saturate(1.6) hue-rotate(-70deg); }
  62% { filter: brightness(1.2) saturate(1.9) hue-rotate(-46deg); }
  78% { filter: brightness(1.8) saturate(1.5) hue-rotate(-62deg); }
}

/* 10 — full-screen golden energy pulse that floods the viewport */
.trick-flash {
  animation: trickPulse 1.1s ease-out forwards;
}
@keyframes trickPulse {
  0%   { opacity: 0; transform: scale(0.7); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: scale(1.25); }
}

@keyframes trickFade {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* effects never run under reduced motion */
@media (prefers-reduced-motion: reduce) {
  .trick-overlay { display: none; }
  .trick-wobble, .trick-spin, .trick-magenta, .trick-magenta .magic { animation: none !important; }
}
