/* Caroline Swart — author & musician */

:root {
  --bg: #e8e2d9;
  --bg-2: #ddd5c9;
  --panel: #fbf9f6;
  --panel-border: rgba(90, 75, 55, 0.12);
  --text: #1f1b2e;
  --body: #3d3852;
  --muted: #6a6480;
  --gold: #b97a12;
  --gold-btn: #f2b544;
  --gold-2: #ffd98a;
  --violet: #6b4fd8;
  --teal: #13857b;
  --radius: 18px;
  --shadow: 0 20px 44px -24px rgba(70, 55, 35, 0.32);
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  /* Warm stone / greige */
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 48px);
  background: rgba(251, 249, 246, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--panel-border);
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled { background: rgba(255, 255, 255, 0.97); box-shadow: 0 8px 30px -18px rgba(50, 40, 80, 0.35); }

.brand {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: var(--gold);
  background: rgba(242, 181, 68, 0.12);
  border: 1px solid rgba(185, 122, 18, 0.25);
  transition: transform 0.3s, background 0.3s, color 0.3s;
}
.brand:hover {
  color: var(--gold);
  background: rgba(242, 181, 68, 0.22);
  transform: translateY(-2px) rotate(-4deg);
}
.brand-icon { width: 26px; height: 26px; }

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  position: relative;
  display: block;
  padding: 8px 16px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover { color: var(--gold); background: rgba(185, 122, 18, 0.08); }
.nav-links a.active { color: #1a1206; background: var(--gold-btn); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--text);
  content: "";
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; right: 0; top: -7px; }
.nav-toggle span::after { left: 0; right: 0; top: 7px; }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    padding: 16px;
    background: rgba(251, 249, 246, 0.99);
    border-bottom: 1px solid var(--panel-border);
    transform: translateY(-120%);
    transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
    z-index: -1;
  }
  .nav.open .nav-links { transform: translateY(0); }
  .nav-links a { padding: 14px 16px; }
}

/* ---------- Layout ---------- */
main { padding-top: var(--nav-h); }

.container {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}

section { padding: clamp(36px, 5vw, 64px) 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.page-title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  /* charcoal to silver, echoing the black-and-white portrait */
  background: linear-gradient(120deg, #1e1e22 10%, #5a5a60 50%, #9a9aa0 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: shimmer 8s linear infinite;
}

@keyframes shimmer { to { background-position: 200% center; } }

.page-head {
  text-align: center;
  padding: 28px 0 0;
}
.page-head + section { padding-top: 28px; }
.page-head p { color: var(--muted); max-width: 620px; margin: 0 auto; }

.glass {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s;
  font-family: var(--font-body);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold-btn));
  color: #1a1206;
  box-shadow: 0 10px 30px -10px rgba(185, 122, 18, 0.55);
}
.btn-gold:hover { color: #1a1206; transform: translateY(-3px); box-shadow: 0 16px 40px -12px rgba(185, 122, 18, 0.7); }
.btn-ghost {
  border-color: rgba(31, 27, 46, 0.25);
  color: var(--text);
  background: rgba(255, 255, 255, 0.5);
}
.btn-ghost:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-3px); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px) rotateX(8deg);
  transform-origin: 50% 100%;
  transition: opacity 0.9s cubic-bezier(.2,.8,.2,1), transform 0.9s cubic-bezier(.2,.8,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: 0.12s; }
.reveal.delay-2 { transition-delay: 0.24s; }
.reveal.delay-3 { transition-delay: 0.36s; }

/* ---------- CSS 3D book ---------- */
.book3d {
  --w: 200px;
  --h: calc(var(--w) * 1.446);
  --d: calc(var(--w) * 0.16);
  width: var(--w);
  height: var(--h);
  perspective: 1400px;
  flex-shrink: 0;
}
.book {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateY(-28deg) rotateX(4deg);
  transition: transform 0.7s cubic-bezier(.2,.8,.2,1);
}
.book > * {
  position: absolute;
  top: 0; left: 0;
  backface-visibility: hidden;
}
.book .front {
  width: var(--w);
  height: var(--h);
  transform: translateZ(calc(var(--d) / 2));
  border-radius: 2px 6px 6px 2px;
  overflow: hidden;
  box-shadow: inset 4px 0 10px rgba(0, 0, 0, 0.35);
}
.book .front img { width: 100%; height: 100%; object-fit: cover; }
.book .front::after {
  /* glossy sheen that slides on hover */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.28) 48%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 1s ease;
}
.book .front::before {
  /* spine crease */
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 6px;
  width: 3px;
  background: linear-gradient(90deg, rgba(0,0,0,0.35), rgba(255,255,255,0.15));
  z-index: 1;
}
.book .back {
  width: var(--w);
  height: var(--h);
  transform: rotateY(180deg) translateZ(calc(var(--d) / 2));
  background: linear-gradient(135deg, #2b2540, #15121f);
  border-radius: 6px 2px 2px 6px;
}
.book .pages {
  width: var(--d);
  height: calc(var(--h) - 6px);
  top: 3px;
  left: calc((var(--w) - var(--d)) / 2);
  transform: rotateY(90deg) translateZ(calc(var(--w) / 2 - 3px));
  background: repeating-linear-gradient(90deg, #f3ecdc 0 2px, #d9cfb8 2px 3px);
}
.book .spine {
  width: var(--d);
  height: var(--h);
  left: calc((var(--w) - var(--d)) / 2);
  transform: rotateY(-90deg) translateZ(calc(var(--w) / 2));
  background: linear-gradient(90deg, #0b0a12, #2a2440 50%, #0b0a12);
}
.book .top {
  width: calc(var(--w) - 3px);
  height: var(--d);
  top: calc((var(--h) - var(--d)) / 2);
  transform: rotateX(90deg) translateZ(calc(var(--h) / 2 - 3px));
  background: repeating-linear-gradient(0deg, #f3ecdc 0 2px, #d9cfb8 2px 3px);
}
.book-shadow {
  position: absolute;
  left: 10%; right: -10%;
  bottom: -28px;
  height: 30px;
  background: radial-gradient(ellipse at center, rgba(40,30,70,0.35), transparent 70%);
  filter: blur(4px);
  transform: translateZ(-60px);
}
.book3d:hover .book .front::after { transform: translateX(120%); }

/* ---------- Home hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding-top: 44px;
  padding-bottom: 24px;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
  margin-bottom: 28px;
}
.hero-emblem {
  height: clamp(190px, 19vw, 260px);
  width: auto;
  transform-origin: 50% 4%;
  animation: sway 7s ease-in-out infinite;
}
.hero-logo {
  width: min(380px, 64%);
  /* the script logo has a faint pale backing; multiply hides it */
  mix-blend-mode: multiply;
}
@keyframes sway {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}
.hero h1 {
  font-size: clamp(1.2rem, 2.3vw, 1.8rem);
  letter-spacing: 0.28em;
  color: var(--gold);
  margin-bottom: 22px;
}
.hero h1 span { color: var(--muted); padding: 0 0.3em; }
.hero p.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  color: var(--muted);
  max-width: 580px;
  margin: 0 0 34px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .hero-cta .btn { padding: 16px 32px; font-size: 0.88rem; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Cover-flow showcase of books */
.showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.coverflow {
  --cf-w: 240px;
  position: relative;
  width: 100%;
  height: calc(var(--cf-w) * 1.446 + 80px);
  perspective: 1200px;
  overflow: hidden;
  /* outer books fade away instead of being cut off at the edges */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.cf-item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--cf-w);
  margin-left: calc(var(--cf-w) / -2);
  margin-top: calc(var(--cf-w) * -0.723);
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(.2,.8,.2,1), opacity 0.9s ease, filter 0.9s ease;
}
.cf-item .book3d { --w: var(--cf-w); perspective: none; transform-style: preserve-3d; }
.cf-item .book { transform: none; }
.cf-item::after {
  /* floor shadow */
  content: "";
  position: absolute;
  left: 8%; right: 8%;
  bottom: -26px;
  height: 22px;
  background: radial-gradient(ellipse at center, rgba(40, 30, 70, 0.32), transparent 70%);
  filter: blur(3px);
  transform: rotateX(80deg);
}
.cf-item:not(.is-active) { filter: saturate(0.75) brightness(0.92); }
.cf-item.is-active .book { animation: cfFloat 5s ease-in-out infinite; }
.cf-item.is-active .book .front::after { transform: translateX(120%); transition-delay: 0.35s; }
@keyframes cfFloat {
  0%, 100% { transform: rotateY(-10deg) translateY(0); }
  50% { transform: rotateY(-22deg) translateY(-12px); }
}
.showcase-glow {
  position: absolute;
  left: 50%; top: 58%;
  width: min(460px, 100%); height: 160px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(242, 196, 109, 0.35), transparent 70%);
  filter: blur(24px);
  pointer-events: none;
}
.cf-caption {
  text-align: center;
  min-height: 64px;
  margin-top: 6px;
}
.cf-caption.swap { animation: captionIn 0.6s ease; }
@keyframes captionIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.cf-series {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
}
.cf-title { font-size: 1.65rem; margin: 6px 0 0; }
.cf-controls { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.cf-arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.25s, border-color 0.25s, color 0.25s;
}
.cf-arrow:hover { transform: scale(1.1); border-color: var(--gold); color: var(--gold); }
.cf-dots { display: flex; gap: 8px; }
.cf-dots button {
  width: 9px; height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(60, 50, 90, 0.2);
  cursor: pointer;
  transition: width 0.4s, background 0.4s;
}
.cf-dots button.on { width: 26px; background: var(--gold-btn); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .brand-lockup { justify-content: center; }
  .hero p.lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
}
@media (max-width: 520px) {
  .coverflow { --cf-w: 140px; }
  .brand-lockup { flex-direction: column; gap: 8px; }
  .hero-logo { width: min(260px, 80%); }
}

/* ---------- Series grid on home ---------- */
.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 22px;
}
.series-card {
  display: block;
  color: var(--text);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.4s ease, border-color 0.4s;
}
.series-card:hover { border-color: rgba(185, 122, 18, 0.45); }
.series-card .genre {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
}
.series-card h3 { font-size: 1.3rem; margin: 8px 0 14px; }
.series-card ul { list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 0.95rem; }
.series-card li { padding: 4px 0; }
.series-card li em { color: var(--gold); font-style: normal; font-size: 0.8rem; }
.badge {
  position: absolute;
  top: 18px; right: 18px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--gold-btn);
  color: #1a1206;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242, 181, 68, 0.6); }
  50% { box-shadow: 0 0 0 10px rgba(242, 181, 68, 0); }
}

.section-title { text-align: center; }
.section-title h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }

/* Feature banner */
.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
  padding: clamp(28px, 5vw, 60px);
}
.feature .book3d { --w: 230px; }
.feature h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.feature p { color: var(--muted); }
@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .feature .book3d { --w: 190px; }
}

/* ---------- Books page ---------- */
.book-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(20px, 2.6vw, 30px) clamp(22px, 3vw, 40px);
  margin-bottom: 18px;
}
.book-row:nth-child(even) { grid-template-columns: 1fr 220px; }
.book-row:nth-child(even) .book-visual { order: 2; }
.book-visual { display: flex; justify-content: center; padding: 4px 0 14px; }
.book-visual .book3d { --w: 170px; }
.book-info .series { color: var(--teal); font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; }
.book-info h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 4px 0 10px; }
.book-info p { color: var(--body); margin: 0; }
.book-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

@media (max-width: 760px) {
  .book-row,
  .book-row:nth-child(even) { grid-template-columns: 1fr; text-align: center; }
  .book-row:nth-child(even) .book-visual { order: 0; }
  .book-links { justify-content: center; }
}

.coming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.coming-card { padding: 24px 26px; }
/* pull "On the horizon" up close to the last book */
body[data-page="books"] main > section:has(+ #coming-soon) { padding-bottom: 0; }
#coming-soon { padding-top: 14px; }
.coming-card .series { color: var(--teal); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; }
.coming-card h3 { font-size: 1.35rem; margin: 8px 0 12px; color: var(--gold); }
.coming-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- About page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.portrait {
  position: relative;
  perspective: 1200px;
}
.portrait-inner {
  position: relative;
  border-radius: 28px;
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
}
.portrait-inner img {
  border-radius: 28px;
  box-shadow: var(--shadow);
  transform: translateZ(30px);
}
.portrait-inner::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 34px;
  background: conic-gradient(from 0deg, var(--gold-btn), #a8641a, var(--gold-2), var(--gold-btn));
  filter: blur(18px);
  opacity: 0.5;
  transform: translateZ(-20px);
}
.portrait-frame {
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(242, 181, 68, 0.5);
  border-radius: 34px;
  transform: translateZ(60px);
  pointer-events: none;
}
@keyframes spinGlow { to { filter: blur(18px) hue-rotate(360deg); } }

.about-text p {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--body);
  line-height: 1.75;
  margin: 0 0 14px;
}
.about-text p:last-child { margin-bottom: 0; }

.pillars-section { padding-top: 0; }

/* ---------- About page (laid out like the home page) ---------- */
body[data-page="about"] .hero h1 { font-size: clamp(1.1rem, 1.9vw, 1.5rem); letter-spacing: 0.2em; }
.about-portrait { display: flex; justify-content: center; }
.about-portrait .portrait { width: min(400px, 100%); }
.story {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
  padding: clamp(28px, 5vw, 56px);
}
.story-mark {
  font-family: var(--font-display);
  font-size: clamp(6rem, 12vw, 9rem);
  line-height: 0.8;
  color: var(--gold-btn);
  opacity: 0.85;
}
.story h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.story p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.passion-icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 14px;
  color: var(--gold);
  background: rgba(242, 181, 68, 0.12);
  border: 1px solid rgba(185, 122, 18, 0.25);
}
.passion-icon svg { width: 26px; height: 26px; }
.passions .series-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }
@media (max-width: 600px) {
  .story { grid-template-columns: 1fr; }
  .story-mark { font-size: 5rem; height: 3rem; }
}
.about-text p:first-of-type {
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  color: var(--text);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.pillar {
  padding: 24px 22px;
  text-align: center;
  transform-style: preserve-3d;
  transition: transform 0.4s ease, border-color 0.4s;
}
.pillar:hover { border-color: rgba(185, 122, 18, 0.45); }
.pillar .icon {
  width: 60px; height: 60px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, #f4f4f5, #d9d9dc);
  border: 1px solid var(--panel-border);
  transform: translateZ(40px);
  animation: floatY 5s ease-in-out infinite;
}
.pillar:nth-child(2) .icon { animation-delay: -1.6s; }
.pillar:nth-child(3) .icon { animation-delay: -3.2s; }
.pillar .icon svg { width: 34px; height: 34px; stroke: #3a3a40; }
.pillar h3 { font-size: 1.15rem; transform: translateZ(25px); }
.pillar p { color: var(--muted); font-size: 0.95rem; margin: 0; transform: translateZ(15px); }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 340px; margin: 0 auto; }
}

/* ---------- Music page ---------- */
.music-hero {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}
.music-hero .portrait-inner img { aspect-ratio: 712 / 947; object-fit: cover; }
.music-hero p { color: var(--muted); }
@media (max-width: 860px) {
  .music-hero { grid-template-columns: 1fr; text-align: center; }
  .music-hero .portrait { max-width: 300px; margin: 0 auto; }
}

.equalizer { display: inline-flex; gap: 4px; align-items: flex-end; height: 26px; margin-bottom: 14px; }
.equalizer i {
  width: 5px;
  background: linear-gradient(var(--gold-2), var(--violet));
  border-radius: 3px;
  animation: eq 1.1s ease-in-out infinite;
}
.equalizer i:nth-child(2) { animation-delay: -0.3s; }
.equalizer i:nth-child(3) { animation-delay: -0.6s; }
.equalizer i:nth-child(4) { animation-delay: -0.15s; }
.equalizer i:nth-child(5) { animation-delay: -0.75s; }
@keyframes eq {
  0%, 100% { height: 6px; }
  50% { height: 26px; }
}

.video-group { margin-top: 60px; }
.video-group h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 24px; }
.video-group h2:has(+ .video-note) { margin-bottom: 6px; }
.video-note { margin: 0 0 22px; font-size: 0.9rem; font-style: italic; color: var(--muted); }
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}
.video-card {
  display: block;
  overflow: hidden;
  color: var(--text);
  transform-style: preserve-3d;
  transition: transform 0.4s ease, border-color 0.3s;
}
.video-card:hover { color: var(--text); border-color: rgba(185, 122, 18, 0.45); }
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.video-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s;
  filter: saturate(0.85) brightness(0.85);
}
.video-card:hover .video-thumb img { transform: scale(1.08); filter: none; }
.play {
  position: absolute;
  top: 50%; left: 50%;
  width: 54px; height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  background: rgba(242, 181, 68, 0.92);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 0 rgba(242, 181, 68, 0.6);
  transition: transform 0.3s;
}
.play::after {
  content: "";
  border-left: 16px solid #1a1206;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}
.video-card:hover .play { transform: scale(1.15); animation: pulse 1.6s infinite; }
.video-card .label { padding: 14px 18px 18px; font-size: 0.93rem; font-weight: 500; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: start;
}
.contact-side {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.contact-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-card { padding: 26px 28px; }
.contact-card h3 { font-size: 1.15rem; margin: 0 0 14px; }
.contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--panel-border);
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  word-break: break-all;
  transition: border-color 0.25s, color 0.25s;
}
.contact-line:hover { color: var(--gold); border-color: var(--gold); }
.contact-line svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--gold); }

/* Thank-you note with the dreamcatcher emblem and signature */
.note {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: clamp(18px, 3vw, 32px);
  align-items: center;
  padding: clamp(22px, 3vw, 32px) clamp(22px, 3vw, 40px);
}
.note-emblem {
  height: 180px;
  width: auto;
  justify-self: center;
  transform-origin: 50% 4%;
  animation: sway 7s ease-in-out infinite;
}
.note h2 { font-size: 1.5rem; margin: 0 0 10px; }
.note p { color: var(--body); margin: 0; }
.note-signature { width: 170px; margin-top: 14px; mix-blend-mode: multiply; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn:disabled { opacity: 0.7; cursor: wait; transform: none; }
.form-status { display: none; margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; font-size: 0.95rem; }
.form-status.ok { display: block; background: #e6f2ec; color: #1f6b4a; border: 1px solid #b9dcc9; }
.form-status.error { display: block; background: #fbeaea; color: #9b2c2c; border: 1px solid #efc4c4; }
.socials { display: flex; gap: 12px; margin-top: 14px; }
.socials a {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--panel-border);
  background: rgba(255,255,255,0.7);
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.socials a:hover { transform: translateY(-4px) rotateX(15deg); border-color: var(--gold); background: rgba(242,181,68,0.18); }
.socials svg { width: 22px; height: 22px; fill: var(--text); }

.form { padding: 34px; }
.form h2 { font-size: 1.6rem; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(60, 40, 90, 0.18);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(242,181,68,0.15);
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-side { max-width: 420px; width: 100%; margin: 0 auto; }
}
@media (max-width: 600px) {
  .note { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .note-emblem { width: 120px; }
  .note-signature { margin-inline: auto; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--panel-border);
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer img {
  height: 40px;
  margin: 0 auto 14px;
  opacity: 0.85;
}

.on-bg-note { color: var(--muted); }
.footer { margin-top: 0; background: var(--bg-2); }

.hero-band { padding: 0; }
body:is([data-page="home"], [data-page="about"]) main > section:not(.hero-band) { padding: 20px 0; }
body:is([data-page="home"], [data-page="about"]) main > section:last-child { padding-bottom: 44px; }

/* ---------- Tilt helper ---------- */
[data-tilt] { will-change: transform; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
