/* =====================================================
   FERMATA WORKS MARCHING
   #F6F7F8 · #F4B400 · #1A7A8C · ink #161616
   Soft gradients · subtle film grain
   ===================================================== */

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

:root {
  --bg:          #F6F7F8;
  --bg-alt:      #EEEFF1;
  --surface:     #ffffff;
  --border:      #D8DBDF;
  --border-dark: #B4B8BE;
  --midnight:    #1A7A8C;
  --midnight-2:  #146576;
  --gold:        #F4B400;
  --gold-soft:   rgba(244,180,0,0.12);
  --gold-muted:  rgba(244,180,0,0.4);
  --navy:        #1A7A8C;
  --navy-2:      #146576;
  --navy-hover:  #178396;
  --ink:         #161616;
  --text:        #161616;
  --text-2:      #4A4F55;
  --text-3:      #8A9098;
  --blue:        #1A7A8C;
  --success:     #059669;
  --error:       #dc2626;

  --font: 'Inter', system-ui, sans-serif;

  --btn-radius:       0 10px 0 10px;
  --btn-radius-hover: 10px 0 10px 0;
  --card-radius:      0 var(--radius) 0 var(--radius);
  --card-radius-hover:var(--radius) 0 var(--radius) 0;

  --radius:    14px;
  --radius-sm:  8px;

  --shadow-sm:  0 1px 4px rgba(22,22,22,0.05), 0 1px 2px rgba(22,22,22,0.03);
  --shadow-md:  0 4px 20px rgba(22,22,22,0.07), 0 2px 6px rgba(22,22,22,0.04);
  --shadow-lg:  0 12px 40px rgba(22,22,22,0.09), 0 4px 14px rgba(22,22,22,0.05);

  --surface-grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");

  --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html { font-size: 16px; scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.75rem; position: relative; z-index: 1; }

/* ── Gradient backgrounds (soft film grain) ──────── */
.dither-bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.dither-bg > .container,
.dither-bg > .hero-inner,
.dither-bg > .craft-grid,
.dither-bg > .cta-inner { position: relative; z-index: 2; }
.browse-header.dither-bg > .container { position: relative; z-index: 2; }

.dither-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(127deg, rgba(26,122,140,0.05) 0%, transparent 52%),
    linear-gradient(312deg, rgba(244,180,0,0.10) 0%, transparent 48%),
    linear-gradient(43deg, rgba(22,22,22,0.03) 25%, transparent 68%);
  pointer-events: none;
}
.dither-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.03;
  background-image: var(--surface-grain);
  background-size: 280px 280px;
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.dither-bg--subtle::before {
  background:
    linear-gradient(145deg, rgba(26,122,140,0.03) 0%, transparent 55%),
    linear-gradient(320deg, rgba(244,180,0,0.06) 0%, transparent 50%);
}
.dither-bg--subtle::after {
  opacity: 0.022;
}
.dither-bg--gold::before {
  background:
    linear-gradient(95deg, rgba(244,180,0,0.12) 0%, transparent 45%),
    linear-gradient(270deg, rgba(26,122,140,0.04) 0%, transparent 55%);
}
.dither-bg--gold::after {
  opacity: 0.025;
}

/* ── Yardline field backgrounds ──────────────────── */
.yardlines {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  color: var(--midnight);
  opacity: 0.09;
  width: 180%;
  height: 180%;
  left: -40%;
  top: -40%;
  -webkit-mask-image:
    radial-gradient(ellipse 72% 68% at 50% 50%, #000 15%, transparent 72%);
  mask-image:
    radial-gradient(ellipse 72% 68% at 50% 50%, #000 15%, transparent 72%);
}
.yardlines-svg {
  display: block;
  width: 100%;
  height: 100%;
}
.yardlines--hero    { transform: rotate(-14deg); opacity: 0.10; }
.yardlines--section { transform: rotate(19deg);  opacity: 0.08; }
.yardlines--cta     { transform: rotate(-7deg);   opacity: 0.09; }
.yardlines--browse  { transform: rotate(11deg);  opacity: 0.10; }

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

/* ── Navbar ──────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(26,122,140,0.08);
  background: rgba(247,247,247,0.95);
  backdrop-filter: blur(16px);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 2rem;
  padding: 0.9rem 1.75rem;
}
.nav-brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.9375rem; font-weight: 800;
  color: #000; flex-shrink: 0; letter-spacing: -0.02em;
}
.nav-icon { max-width: 320px; max-height: 18px; object-fit: contain; }
.nav-brand-text strong { font-weight: 800; }

.nav-links { display: flex; align-items: center; gap: 0.25rem; flex: 1; }
.nav-link {
  padding: 0.35rem 0.7rem; border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 500; color: var(--text-2);
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { background: var(--bg-alt); color: var(--navy); }
.nav-link--admin { color: var(--gold) !important; font-weight: 700; }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.nav-cart {
  position: relative; display: flex; align-items: center;
  padding: 0.45rem; border-radius: 50%; color: var(--navy);
  transition: background 0.15s;
}
.nav-cart:hover { background: var(--bg-alt); }
.cart-badge {
  position: absolute; top: 0; right: 0;
  background: var(--gold); color: var(--midnight);
  font-size: 0.6rem; font-weight: 800;
  min-width: 15px; height: 15px; border-radius: 99px; padding: 0 3px;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}

.line-link {
  color: var(--blue);
  text-decoration: underline;
}

.nav-user-menu { position: relative; }
.nav-user-btn { background: none; border: none; cursor: pointer; padding: 0; }
.nav-avatar {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: var(--btn-radius);
  background: var(--navy); color: #fff;
  font-size: 0.8125rem; font-weight: 700;
}
.nav-dropdown {
  display: none; position: absolute; top: calc(100% + 0.6rem); right: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--card-radius); box-shadow: var(--shadow-lg);
  min-width: 200px; flex-direction: column; overflow: hidden;
}
.nav-dropdown.open { display: flex; }
.nav-dropdown-header {
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0.15rem;
}
.nav-dropdown-header strong { font-size: 0.875rem; }
.nd-email { font-size: 0.75rem; color: var(--text-3); }
.nav-dropdown a {
  padding: 0.6rem 1rem; font-size: 0.875rem; color: var(--text);
  transition: background 0.12s;
}
.nav-dropdown a:hover { background: var(--bg-alt); }
.nav-dropdown a.danger { color: var(--error); }

.btn-nav-login {
  padding: 0.38rem 0.9rem;
  border-radius: var(--btn-radius);
  font-size: 0.875rem; font-weight: 500; color: var(--navy);
  border: 1.5px solid var(--border-dark);
  transition: border-color 0.15s, background 0.15s, border-radius 0.22s var(--ease-out);
}
.btn-nav-login:hover { border-color: var(--navy); background: var(--bg-alt); border-radius: var(--btn-radius-hover); }

.btn-nav-register {
  padding: 0.38rem 0.9rem;
  border-radius: var(--btn-radius);
  font-size: 0.875rem; font-weight: 700;
  background: var(--midnight); color: #fff;
  border: none;
  transition: background 0.15s, border-radius 0.22s var(--ease-out);
}
.btn-nav-register:hover { background: var(--navy-hover); border-radius: var(--btn-radius-hover); }

.nav-hamburger {
  display: none; flex-direction: column; justify-content: space-between;
  width: 22px; height: 16px; background: none; border: none; cursor: pointer; padding: 0;
}
.nav-hamburger span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.2s; }

/* ── Mobile full-screen menu ─────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mobile-menu-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.mobile-menu-brand { pointer-events: auto; }
.mobile-menu-close {
  appearance: none;
  width: 44px;
  height: 44px;
  margin: -0.35rem -0.35rem -0.35rem 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--btn-radius);
  transition: background 0.15s;
}
.mobile-menu-close:hover { background: var(--bg-alt); }
.mobile-menu-nav {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 2rem 1.75rem 3rem;
}
.mobile-menu-nav > a {
  display: block;
  padding: 0.85rem 0.15rem;
  font-size: clamp(1.45rem, 6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1.15;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, opacity 0.15s;
}
.mobile-menu-nav > a:hover { color: var(--gold-dark, #9a7b1a); }
.mobile-menu-link--admin { color: var(--gold) !important; }
.mobile-menu-link--danger { color: var(--error) !important; font-size: clamp(1.1rem, 4.5vw, 1.35rem) !important; font-weight: 700 !important; margin-top: 0.75rem; }
.mobile-menu-auth {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.mobile-menu-auth .btn-nav-login,
.mobile-menu-auth .btn-nav-register {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.95rem 1.25rem;
  font-size: 1rem;
}
body.mobile-menu-open {
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .mobile-menu { transition: none; }
}
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
}

/* ── Flash ───────────────────────────────────────── */
.site-flash {
  position: fixed; top: 68px; left: 50%; transform: translateX(-50%);
  z-index: 300; display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 1.1rem; border-radius: var(--btn-radius);
  font-size: 0.875rem; font-weight: 500;
  box-shadow: var(--shadow-md); white-space: nowrap;
  animation: slideDown 0.3s var(--ease);
}
.site-flash button { background: none; border: none; cursor: pointer; font-size: 0.875rem; opacity: 0.6; padding: 0 0.2rem; }
.site-flash--error   { background: #fff1f0; color: var(--error); border: 1px solid #fcc; }
.site-flash--success { background: #ecfdf5; color: var(--success); border: 1px solid #a7f3d0; }
@keyframes slideDown { from { transform: translateX(-50%) translateY(-10px); opacity: 0; } }

main { min-height: 100vh; padding-top: 64px; }

/* ── Buttons ─────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  background: var(--midnight); color: #fff;
  padding: 0.72rem 1.7rem;
  border-radius: var(--btn-radius);
  font-family: var(--font); font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.005em;
  border: none; cursor: pointer; text-decoration: none;
  transition: background 0.18s, border-radius 0.24s var(--ease-out), transform 0.12s, box-shadow 0.18s;
  box-shadow: 0 3px 14px rgba(26,122,140,0.22);
}
.btn-primary:hover {
  background: var(--navy-hover); color: #fff;
  border-radius: var(--btn-radius-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary.btn-large { padding: 0.88rem 2.1rem; font-size: 1rem; }
.btn-primary.btn-full { width: 100%; }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--navy);
  padding: 0.72rem 1.7rem;
  border-radius: var(--btn-radius);
  font-family: var(--font); font-size: 0.9375rem; font-weight: 700;
  border: 2px solid var(--border-dark); cursor: pointer; text-decoration: none;
  transition: background 0.18s, color 0.18s, border-color 0.18s, border-radius 0.24s var(--ease-out), transform 0.12s;
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover {
  background: var(--gold-soft); color: var(--midnight);
  border-color: var(--gold);
  border-radius: var(--btn-radius-hover);
  transform: translateY(-2px);
}
.btn-outline.btn-large { padding: 0.88rem 2.1rem; }
.btn-outline.btn-full  { width: 100%; }

.btn-sm {
  padding: 0.32rem 0.75rem; border-radius: var(--btn-radius);
  font-size: 0.8125rem; font-weight: 600; font-family: var(--font);
  background: var(--midnight); color: #fff; border: none; cursor: pointer;
  transition: background 0.15s, border-radius 0.2s var(--ease-out);
}
.btn-sm:hover { background: var(--navy-hover); border-radius: var(--btn-radius-hover); }
.btn-sm--outline {
  background: transparent; color: var(--navy); border: 1.5px solid var(--navy);
}
.btn-sm--outline:hover { background: var(--navy); color: #fff; }

.btn-download {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.85rem; background: #ecfdf5; color: var(--success);
  border: 1.5px solid #a7f3d0; border-radius: var(--btn-radius);
  font-size: 0.8125rem; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: background 0.15s, border-radius 0.2s var(--ease-out);
}
.btn-download:hover { background: #d1fae5; border-radius: var(--btn-radius-hover); }

/* ── Hero ────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  min-height: clamp(420px, 68vh, 640px);
  display: flex;
  align-items: center;
}
.hero--photo {
  padding: 5.5rem 0 4rem;
  border-bottom: none;
  background: var(--midnight);
}
.hero-inner { position: relative; z-index: 2; width: 100%; }

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-content {
  text-align: left;
  max-width: 560px;
  padding: 0;
  color: var(--text);
}
.hero-content--on-photo {
  color: #fff;
  max-width: 560px;
  padding: 0;
}
.hero-content--on-photo .hero-sub { color: rgba(255,255,255,0.92); max-width: 460px; }

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0 0 1.15rem;
}
.hero-logo {
  display: block;
  width: clamp(210px, 48vw, 420px);
  height: auto;
  filter: brightness(0) invert(1) drop-shadow(0 2px 18px rgba(0,0,0,0.35));
}
.hero-brand-marching {
  display: block;
  font-size: clamp(1.85rem, 5.2vw, 3.15rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,0.4);
}

.hero-label { display: none; }

.hero-title {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800; line-height: 1.06;
  margin-bottom: 1rem;
  letter-spacing: -0.035em;
  color: var(--navy);
}

.hero-sub {
  font-size: 1rem; color: var(--text-2);
  margin-bottom: 1.75rem; line-height: 1.75;
  max-width: 460px;
}

.hero-actions {
  display: flex; gap: 0.85rem; justify-content: flex-start; flex-wrap: wrap;
}
.btn-outline--on-dark {
  border-color: rgba(255,255,255,0.55);
  color: #fff;
  background: transparent;
}
.btn-outline--on-dark:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
}

/* ── Site photography ────────────────────────────── */
.site-photo {
  margin: 0;
  display: block;
  overflow: hidden;
}
.site-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.site-photo--cover {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.site-photo--framed {
  border-radius: var(--card-radius);
  border: 1px solid var(--border);
  aspect-ratio: 3 / 2;
  box-shadow: var(--shadow-sm);
}
.site-photo--wide { aspect-ratio: 21 / 9; max-height: 320px; width: 100%; }
.site-photo--tall { aspect-ratio: 4 / 5; max-height: 520px; }
.site-photo--portrait { aspect-ratio: 4 / 5; max-height: 480px; }
.site-photo--portrait img { object-position: center 20%; }
.site-photo--band {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo-shade,
.about-hero-shade,
.commissions-hero-shade,
.browse-header-shade,
.cta-photo-shade,
.photo-band-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-photo-shade {
  background:
    linear-gradient(105deg, rgba(15,74,86,0.88) 0%, rgba(15,74,86,0.62) 42%, rgba(15,74,86,0.35) 72%, rgba(15,74,86,0.45) 100%),
    linear-gradient(0deg, rgba(15,74,86,0.55) 0%, transparent 55%);
}
.about-hero-shade {
  background:
    linear-gradient(110deg, rgba(15,74,86,0.82) 0%, rgba(15,74,86,0.45) 55%, rgba(15,74,86,0.55) 100%);
}
.commissions-hero-shade {
  background:
    linear-gradient(180deg, rgba(15,74,86,0.78) 0%, rgba(15,74,86,0.62) 100%);
}
.browse-header-shade {
  background:
    linear-gradient(100deg, rgba(246,247,248,0.92) 0%, rgba(238,239,241,0.78) 45%, rgba(238,239,241,0.55) 100%);
}
.cta-photo-shade {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,248,225,0.72));
}
.photo-band-shade {
  background:
    linear-gradient(100deg, rgba(15,74,86,0.78) 0%, rgba(15,74,86,0.42) 60%, rgba(15,74,86,0.55) 100%);
}

.photo-band {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.photo-band-inner {
  position: relative;
  z-index: 2;
  max-width: 36rem;
  padding: 3.5rem 0;
}
.photo-band-panel {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  padding: 1.75rem 1.85rem 1.85rem;
  border: 1px solid rgba(22, 22, 22, 0.08);
  box-shadow: var(--shadow-lg);
  border-radius: 0 var(--radius) 0 var(--radius);
}
.photo-band-panel h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 0.7rem;
  line-height: 1.15;
}
.photo-band-panel p {
  color: var(--text-2);
  margin-bottom: 1.25rem;
  line-height: 1.7;
  font-size: 0.98rem;
}
.photo-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.about-photo-strip,
.commissions-photo-aside {
  padding: 0 0 3rem;
}
.about-photo-strip .site-photo--wide,
.commissions-photo-aside .site-photo--wide {
  max-height: 360px;
}

.craft-media { min-width: 0; }
.craft-details--below {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.contact-page--split {
  max-width: 1100px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  gap: 2.5rem;
  align-items: start;
}
.contact-page--split .page-title { margin-top: 0; }
.contact-media {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 88px;
}
.contact-media .site-photo--tall,
.contact-media .site-photo--portrait { max-height: 420px; }
.contact-media .site-photo--framed:not(.site-photo--portrait) { aspect-ratio: 16 / 9; }

/* ── Section Titles ──────────────────────────────── */
.section-title {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  font-weight: 800; color: var(--ink);
  letter-spacing: -0.03em; line-height: 1.12;
}

/* ── Section Catalog ─────────────────────────────── */
.section-catalog { padding: 4.5rem 0; }
.section-catalog--tinted {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}
.section-catalog--tinted::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--surface-grain);
  background-size: 280px 280px;
  mix-blend-mode: soft-light;
  opacity: 0.028;
  pointer-events: none;
}
.section-catalog--tinted > .container { position: relative; z-index: 1; }
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 2.75rem; flex-wrap: wrap; gap: 1rem;
}
.section-header--center { justify-content: center; text-align: center; }
.link-all {
  font-size: 0.875rem; font-weight: 700; color: var(--navy);
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--border-dark);
  transition: text-decoration-color 0.15s, color 0.15s;
}
.link-all:hover { text-decoration-color: var(--gold); color: var(--midnight); }

/* ── Piece Cards ─────────────────────────────────── */
.pieces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}
.piece-card {
  background: var(--surface);
  overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s var(--ease-out), box-shadow 0.24s var(--ease-out), border-radius 0.24s var(--ease-out);
  border-radius: var(--card-radius);
  border: 1.5px solid var(--border);
}
.piece-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-radius: var(--card-radius-hover);
}
.piece-card-thumb {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--gold-soft);
}
.piece-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.piece-card:hover .piece-card-thumb img { transform: scale(1.06); }
.piece-card-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(26,122,140,0.18);
  background: linear-gradient(150deg, var(--gold-soft), var(--bg-alt));
}
.piece-duration {
  position: absolute; bottom: 0.6rem; right: 0.6rem;
  background: rgba(0,0,0,0.65); color: #fff;
  padding: 0.15rem 0.45rem; border-radius: 3px;
  font-size: 0.7rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.piece-card-info { padding: 1.35rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.35rem; }
.piece-card-meta-line { font-size: 0.8125rem; font-weight: 500; color: var(--text-3); }
.piece-card-title { font-size: 1.25rem; font-weight: 700; color: var(--ink); line-height: 1.3; letter-spacing: -0.02em; margin-top: 0.15rem; }
.piece-card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px solid var(--border); }
.piece-card-price { font-size: 1.15rem; font-weight: 800; color: var(--navy); }
.difficulty-label {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--navy);
  background: var(--gold-soft);
  border: 1px solid rgba(212, 168, 67, 0.35);
  border-radius: 999px;
  padding: 0.18rem 0.65rem;
  white-space: nowrap;
}
.difficulty-label--hero {
  font-size: 0.85rem;
  color: #fff;
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.28);
}
.difficulty-label--small {
  font-size: 0.72rem;
  padding: 0.12rem 0.5rem;
}
.diff-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-left: 0.5rem; vertical-align: middle; }

/* ── Craft Section ───────────────────────────────── */
.craft-section {
  padding: 5rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.craft-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start;
  position: relative; z-index: 1;
}
.craft-copy .section-eyebrow { display: none; }
.craft-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800; line-height: 1.1; margin: 0.75rem 0 1.4rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.craft-title em { color: var(--gold); font-style: normal; }
.craft-copy p {
  color: var(--text-2); line-height: 1.82; font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}
.craft-details { display: flex; flex-direction: column; gap: 1rem; }
.craft-item {
  padding: 1.35rem 1.4rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  transition: border-radius 0.22s var(--ease-out), box-shadow 0.2s, transform 0.2s;
}
.craft-item:hover {
  border-radius: var(--card-radius-hover);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.craft-item h3 {
  font-size: 0.9375rem; font-weight: 700; margin-bottom: 0.4rem;
  color: var(--ink);
}
.craft-item p { font-size: 0.875rem; color: var(--text-2); line-height: 1.7; }

/* ── Ensembles ───────────────────────────────────── */
.ensembles-section {
  padding: 5.5rem 0 4.5rem;
  background: var(--bg-alt);
  overflow: hidden;
}
.ensembles-carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.75rem;
  outline: none;
}
.ensembles-carousel-viewport {
  overflow: hidden;
  width: 100%;
  padding: 0.35rem 0.15rem 0.75rem;
}
.ensembles-carousel-track {
  display: flex;
  gap: 1.35rem;
  transition: transform 0.55s var(--ease-out);
  will-change: transform;
}
.ensemble-card {
  flex: 0 0 calc((100% - 2.7rem) / 3);
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 2.1rem 1.6rem 1.85rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s, border-radius 0.24s var(--ease-out);
}
.ensemble-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-radius: var(--card-radius-hover);
}
.ensemble-logo {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 4 / 3;
  height: auto;
  border-radius: calc(var(--card-radius) + 2px);
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ensemble-logo img { width: 100%; height: 100%; object-fit: cover; }
.ensemble-logo-placeholder { font-size: 3rem; font-weight: 800; color: var(--ink); }
.ensemble-info { display: flex; flex-direction: column; gap: 0.35rem; width: 100%; }
.ensemble-name {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.ensemble-location { font-size: 0.95rem; color: var(--text-3); }
.ensemble-show { font-size: 0.95rem; color: var(--gold); font-weight: 700; }

.ensembles-carousel-nav {
  appearance: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  flex-shrink: 0;
}
.ensembles-carousel-nav:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.ensembles-carousel-nav:active { transform: scale(0.96); }

.ensembles-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.35rem;
}
.ensembles-carousel-dot {
  appearance: none;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(26, 39, 68, 0.22);
  cursor: pointer;
  transition: width 0.2s, background 0.2s;
}
.ensembles-carousel-dot.is-active {
  width: 1.35rem;
  background: var(--navy);
}

@media (prefers-reduced-motion: reduce) {
  .ensembles-carousel-track { transition: none; }
}

/* ── CTA ─────────────────────────────────────────── */
.cta-section {
  padding: 4.5rem 0;
  position: relative;
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.cta-section--photo {
  min-height: 340px;
  display: flex;
  align-items: center;
  border-top: none;
}
.cta-section--photo > .container { position: relative; z-index: 2; width: 100%; }
.cta-inner {
  text-align: center; color: var(--navy);
  position: relative; z-index: 1;
  max-width: 560px; margin: 0 auto;
  padding: 2.5rem 2rem;
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  backdrop-filter: blur(8px);
}
.cta-inner h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800; margin-bottom: 0.75rem; letter-spacing: -0.03em;
  color: var(--ink);
}
.cta-inner p { color: var(--text-2); margin-bottom: 2rem; font-size: 1rem; }

/* ── Contact CTA band ────────────────────────────── */
.contact-cta-band {
  padding: 2.75rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(26, 39, 68, 0.04), rgba(201, 162, 39, 0.08)),
    var(--bg-alt, #f7f6f3);
}
.contact-cta-band--compact { padding: 1.75rem 0; }
.contact-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.contact-cta-copy { flex: 1; min-width: 240px; max-width: 40rem; }
.contact-cta-copy h2 {
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}
.contact-cta-copy p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.95rem;
}
.contact-cta-note {
  margin-top: 0.55rem !important;
  font-size: 0.875rem !important;
  color: var(--text-3) !important;
}
.contact-quote-attached {
  background: #ecfdf5;
  border: 1.5px solid #a7f3d0;
  border-radius: var(--card-radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
}
.contact-quote-attached strong {
  display: block;
  color: var(--success);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}
.contact-quote-attached p {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.5;
}
.contact-quote-attached a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Contact form ────────────────────────────────── */
.contact-page { max-width: 640px; }
.contact-page--split { max-width: 1100px; }
.contact-form {
  margin-top: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 1.75rem;
}
.contact-form .form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact-form .fg {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.contact-form .fg label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-2);
}
.contact-form .fg input,
.contact-form .fg select,
.contact-form .fg textarea {
  padding: 0.65rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm, 6px);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
}
.contact-form .fg input:focus,
.contact-form .fg select:focus,
.contact-form .fg textarea:focus {
  border-color: var(--navy);
  background: #fff;
}
.contact-form .fg textarea { resize: vertical; min-height: 140px; }

.legal-page { max-width: 46rem; }
.legal-body {
  color: var(--text-2);
  font-size: 0.98rem;
  line-height: 1.7;
}
.legal-body h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.15rem;
  color: var(--navy);
}
.legal-body p { margin: 0 0 0.9rem; }
.legal-body ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}
.legal-body li { margin: 0.35rem 0; }
.legal-body a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }

.captcha-field { margin: 1rem 0 0.25rem; }
.captcha-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 0.4rem;
}
.captcha-field input[type="number"] {
  width: min(180px, 100%);
  padding: 0.65rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
}
.captcha-honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 700px) {
  .contact-form .form-row-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .contact-form .form-row-2 { grid-template-columns: 1fr; }
  .contact-cta-inner { flex-direction: column; align-items: flex-start; }
}

/* ── Browse Page ─────────────────────────────────── */
.browse-page { padding-bottom: 5rem; }

.browse-header {
  padding: 2.5rem 0 2rem;
  position: relative;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  min-height: 180px;
  display: flex;
  align-items: flex-end;
}
.browse-header--photo {
  padding: 3rem 0 2.25rem;
  min-height: 220px;
}
.browse-header > .container { position: relative; z-index: 2; width: 100%; }
.browse-header--photo .browse-title { color: var(--ink); }
.browse-header--photo .browse-sub { color: var(--text-2); }
.browse-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800; letter-spacing: -0.03em;
  color: var(--ink); margin: 0.5rem 0 0.5rem;
  line-height: 1.08;
}
.browse-sub { color: var(--text-2); font-size: 0.975rem; }

.browse-filters {
  display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap;
  margin: 2rem 0;
  padding: 1.25rem 1.5rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
}
.filter-search {
  display: flex; align-items: center; gap: 0.5rem;
  border: 1.5px solid var(--border-dark); border-radius: var(--radius-sm);
  padding: 0 0.85rem; flex: 1; min-width: 200px;
  background: var(--bg-alt);
  transition: border-color 0.15s;
}
.filter-search:focus-within { border-color: var(--navy); }
.filter-search input { background: none; border: none; outline: none; padding: 0.6rem 0; font-family: var(--font); font-size: 0.9rem; color: var(--text); flex: 1; }
.filter-search svg { color: var(--text-3); flex-shrink: 0; }
.filter-group { display: flex; flex-direction: column; gap: 0.35rem; min-width: 130px; }
.filter-group label { font-size: 0.68rem; font-weight: 800; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; }
.filter-group select {
  padding: 0.6rem 0.8rem; border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-sm); background: var(--bg-alt);
  font-family: var(--font); font-size: 0.875rem; color: var(--text);
  cursor: pointer; outline: none;
  transition: border-color 0.15s;
}
.filter-group select:focus { border-color: var(--navy); }
.filter-actions { display: flex; align-items: center; gap: 0.5rem; }
.btn-filter {
  padding: 0.6rem 1.4rem; background: var(--midnight); color: #fff;
  border: none; border-radius: var(--btn-radius);
  font-family: var(--font); font-size: 0.875rem; font-weight: 700; cursor: pointer;
  transition: background 0.15s, border-radius 0.22s var(--ease-out);
  white-space: nowrap;
}
.btn-filter:hover { background: var(--navy-hover); border-radius: var(--btn-radius-hover); }
.btn-source-music {
  padding: 0.6rem 1.1rem;
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  border-radius: var(--btn-radius);
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-radius 0.22s var(--ease-out);
}
.btn-source-music:hover {
  background: var(--navy);
  color: #fff;
  border-radius: var(--btn-radius-hover);
}
.btn-clear {
  padding: 0.6rem 0.75rem; color: var(--text-3); font-size: 0.8125rem;
  text-decoration: none; cursor: pointer; background: none; border: 1.5px solid var(--border);
  border-radius: var(--btn-radius); font-family: var(--font); font-weight: 600;
  transition: color 0.15s, border-color 0.15s, border-radius 0.22s var(--ease-out);
  white-space: nowrap;
}
.btn-clear:hover { color: var(--navy); border-color: var(--navy); border-radius: var(--btn-radius-hover); }

/* ── Source music browser ───────────────────────── */
.source-music-back {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.source-music-back a {
  color: var(--text-2);
  text-decoration: none;
}
.source-music-back a:hover { color: var(--navy); }

.source-music-no-matches[hidden] {
  display: none !important;
}
.source-artists-grid[hidden] {
  display: none !important;
}
.source-artists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
  margin-top: 0.5rem;
}
.source-artist-card[hidden],
.source-artist-card.is-search-hidden {
  display: none !important;
}
.source-artist-card {
  appearance: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: #1A7A8C;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  font: inherit;
  color: inherit;
  aspect-ratio: 1 / 1;
  width: 100%;
  position: relative;
  z-index: 0;
}
.source-artist-card:hover,
.source-artist-card.is-active {
  z-index: 1;
  outline: 2px solid #F4B400;
  outline-offset: -2px;
}
.source-artist-media {
  position: absolute;
  inset: 0;
  display: block;
  background: #1A7A8C;
  overflow: hidden;
}
.source-artist-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.source-artist-card:hover .source-artist-media img,
.source-artist-card.is-active .source-artist-media img {
  transform: scale(1.12);
}
.source-artist-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.55);
  background: linear-gradient(160deg, #146576, #1A7A8C);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.source-artist-card:hover .source-artist-placeholder,
.source-artist-card.is-active .source-artist-placeholder {
  transform: scale(1.08);
}

.source-type-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin: 0 0 1.25rem;
}
.source-type-filters-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.source-type-filters-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.source-type-btn {
  appearance: none;
  border: 1.5px solid var(--border-dark);
  background: var(--surface);
  color: var(--navy);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.5rem 0.95rem;
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, border-radius 0.22s var(--ease-out);
}
.source-type-btn:hover {
  border-color: var(--navy);
  border-radius: var(--btn-radius-hover);
}
.source-type-btn.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.section-recent-source .source-type-filters {
  margin-top: 0.35rem;
  margin-bottom: 0;
}
.source-track-row[hidden],
.source-track-pieces li[hidden] {
  display: none !important;
}

.source-artist-shade {
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: linear-gradient(to top, rgba(8, 18, 32, 0.92) 0%, rgba(8, 18, 32, 0.5) 48%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
.source-artist-name {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.9rem;
  z-index: 2;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.source-artist-sub {
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.9;
  letter-spacing: 0;
}

.source-artists-grid--one-row {
  grid-template-columns: repeat(var(--source-cols, 5), minmax(0, 1fr));
}
@media (max-width: 900px) {
  .source-artists-grid--one-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.section-recent-source {
  padding-left: 0;
  padding-right: 0;
}
.section-recent-source > .container {
  margin-bottom: 1.25rem;
}
.section-recent-source .source-artists-grid {
  max-width: none;
}

.source-artist-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: 0fr;
  border: 0;
  border-radius: 0;
  background: var(--surface);
  overflow: hidden;
  transition: grid-template-rows 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.source-artist-panel.is-open {
  grid-template-rows: 1fr;
}
.source-artist-panel[hidden] {
  display: none !important;
}
.source-artist-panel-collapse {
  min-height: 0;
  overflow: hidden;
}
.source-artist-panel-inner {
  position: relative;
  padding: 1.35rem 1.5rem 1.6rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.source-artist-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--border);
  border-radius: 0;
  background: var(--bg);
  color: var(--navy);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  z-index: 2;
}
.source-artist-close:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.source-artist-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin: 0 2.75rem 1.15rem 0;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.source-artist-panel-head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.source-artist-panel-head p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-3);
  font-weight: 600;
}

.source-track-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.source-track-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr);
  gap: 1rem 1.25rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.source-track-player iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 12px;
}
.source-track-fallback {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  min-height: 88px;
}
.source-track-fallback img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
}
.source-track-fallback strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
}
.source-track-fallback span,
.source-track-fallback a {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.875rem;
  color: var(--text-2);
}
.source-track-fallback a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.source-track-pieces h3 {
  margin: 0 0 0.55rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.source-track-pieces ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.source-track-pieces a,
.source-piece-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.65rem 0.5rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.source-track-pieces a:hover,
.source-piece-link:hover {
  border-color: var(--navy);
  background: #fff;
}
.source-piece-thumb {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
}
.source-piece-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.source-piece-thumb-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--text-3);
  background: linear-gradient(160deg, #EEEFF1, #E2E4E8);
}
.source-piece-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.source-piece-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
}
.source-piece-type {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-3);
}

@media (max-width: 800px) {
  .source-track-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .source-artists-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .source-artist-name { font-size: 0.95rem; left: 0.65rem; right: 0.65rem; bottom: 0.65rem; }
}

.results-count {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 1.5rem;
}

/* ── Empty State ─────────────────────────────────── */
.empty-state {
  text-align: center; padding: 5rem 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.empty-state svg { color: var(--text-3); }
.empty-state h3 { font-size: 1.25rem; font-weight: 700; }
.empty-state p { color: var(--text-2); }
.empty-state a { text-decoration: underline; }

/* ── Piece Detail ─────────────────────────────────── */
.piece-hero {
  min-height: 420px; position: relative;
  background: var(--navy) center/cover no-repeat;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.piece-hero--carousel { background: var(--navy); }
.piece-hero-carousel {
  position: absolute; inset: 0; z-index: 0;
}
.piece-hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
  pointer-events: none;
}
.piece-hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.piece-hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.piece-hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 4;
  width: 44px; height: 44px;
  border: none;
  border-radius: var(--btn-radius);
  background: rgba(255,255,255,0.92);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background 0.15s, border-radius 0.2s var(--ease-out), transform 0.15s;
}
.piece-hero-nav:hover {
  background: #fff;
  border-radius: var(--btn-radius-hover);
  transform: translateY(-50%) scale(1.04);
}
.piece-hero-nav--prev { left: 1rem; }
.piece-hero-nav--next { right: 1rem; }
.piece-hero-dots {
  position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%);
  z-index: 4;
  display: flex; gap: 0.45rem;
}
.piece-hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transition: background 0.2s, transform 0.2s;
}
.piece-hero-dot.is-active {
  background: var(--gold);
  transform: scale(1.15);
}
.piece-hero-overlay {
  position: absolute; inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(8,8,24,0.9) 0%, rgba(8,8,24,0.45) 55%, rgba(8,8,24,0.2) 100%);
  display: flex; align-items: flex-end;
  pointer-events: none;
}
.piece-hero-content { padding: 2.5rem 0; color: #fff; position: relative; z-index: 1; pointer-events: auto; }
.piece-hero-meta-line { font-size: 0.8125rem; font-weight: 500; color: rgba(255,255,255,0.65); margin-bottom: 0.65rem; }
.piece-hero-label { display: none; }
.piece-hero-title { font-size: clamp(1.75rem, 4vw, 3.25rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 1rem; }
.piece-hero-meta { display: flex; align-items: center; gap: 1.5rem; }
.hero-duration { font-size: 0.875rem; color: rgba(255,255,255,0.6); }

.piece-body {
  display: grid; grid-template-columns: 1fr 320px;
  gap: 3rem; padding: 3rem 0; align-items: start;
}
.piece-main { display: flex; flex-direction: column; gap: 2.75rem; }
.piece-sidebar {
  min-width: 0;
}
.piece-sidebar--sticky {
  position: sticky;
  top: 78px;
}
.purchase-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--card-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 1rem;
}
.piece-section h2 {
  font-size: 1.2rem; font-weight: 800;
  margin-bottom: 1rem; padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--border);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.piece-desc { color: var(--text-2); line-height: 1.88; font-size: 0.9375rem; }
.markdown-body h1, .markdown-body h2, .markdown-body h3 {
  color: var(--ink); font-weight: 800; margin: 1.25rem 0 0.5rem; line-height: 1.25;
}
.markdown-body h1 { font-size: 1.35rem; }
.markdown-body h2 { font-size: 1.15rem; }
.markdown-body h3 { font-size: 1rem; }
.markdown-body p { margin-bottom: 0.85rem; }
.markdown-body p:last-child { margin-bottom: 0; }
.markdown-body ul, .markdown-body ol { margin: 0.5rem 0 0.85rem 1.25rem; }
.markdown-body li { margin-bottom: 0.35rem; }
.markdown-body a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.markdown-body a:hover { color: var(--gold); }
.markdown-body strong { color: var(--navy); font-weight: 700; }
.markdown-body blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 1rem; margin: 0.75rem 0;
  color: var(--text-2); font-style: italic;
}
.markdown-body code {
  background: var(--bg-alt); padding: 0.1rem 0.35rem; border-radius: 3px;
  font-size: 0.875em;
}
.btn-add-entire-show { margin-top: 0.75rem; }
.section-buy-total { margin-bottom: 0; }
.piece-preview-cta-section { margin-top: 0.25rem; }
.piece-preview-cta {
  width: 100%;
  max-width: 28rem;
  font-size: 1.05rem;
  padding: 1rem 1.75rem;
  letter-spacing: 0.01em;
}
.audio-player audio { width: 100%; border-radius: var(--radius-sm); }
.yt-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--card-radius); }
.yt-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.score-preview { background: var(--bg-alt); border-radius: var(--card-radius); padding: 1rem; border: 1px solid var(--border); }
.pdf-container canvas { width: 100% !important; height: auto !important; border-radius: var(--radius-sm); }
.score-preview-note { font-size: 0.7875rem; color: var(--text-3); text-align: center; margin-top: 0.75rem; }
.score-preview-note a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.score-preview-note a:hover { color: var(--gold); }

/* Score sample viewer (new tab) */
.score-sample-body {
  margin: 0;
  background: #EEEFF1;
  min-height: 100vh;
}
.score-sample-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.score-sample-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.score-sample-kicker {
  margin: 0 0 0.15rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.score-sample-bar h1 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.score-sample-viewer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.score-sample-loading {
  text-align: center;
  color: var(--text-3);
  padding: 3rem 1rem;
}
.score-sample-page {
  position: relative;
  margin: 0 auto;
  background: #fff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  width: fit-content;
  max-width: 100%;
}
.score-sample-page canvas {
  display: block;
  max-width: 100%;
  height: auto;
}
.score-sample-stamp {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 2;
}
.score-sample-stamp span {
  display: inline-block;
  padding: 0.65rem 1.6rem;
  border: 6px solid rgba(220, 38, 38, 0.5);
  color: rgba(220, 38, 38, 0.5);
  font-size: clamp(3.25rem, 11vw, 6.5rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1;
  transform: rotate(-45deg);
  text-transform: uppercase;
  user-select: none;
  white-space: nowrap;
}

.sections-accordion { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: var(--card-radius); overflow: hidden; }
.section-item { border-bottom: 1px solid var(--border); }
.section-item:last-child { border-bottom: none; }
.section-toggle {
  width: 100%; background: var(--surface); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; font-family: var(--font); font-size: 0.9375rem; font-weight: 600;
  color: var(--navy); text-align: left; transition: background 0.12s;
}
.section-toggle:hover { background: var(--bg-alt); }
.section-toggle-right { display: flex; align-items: center; gap: 1rem; }
.section-price { font-size: 0.9rem; font-weight: 700; }
.section-name-label { }
.chevron { transition: transform 0.2s; }
.section-body {
  padding: 1.25rem; border-top: 1px solid var(--border);
  background: var(--bg); display: none;
}
.section-body.open { display: block; }
.section-diff-notes { font-size: 0.875rem; color: var(--text-2); margin-bottom: 0.75rem; line-height: 1.6; }
.section-instruments strong { display: block; font-size: 0.8125rem; font-weight: 700; color: var(--text-2); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.06em; }
.instr-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.instr-list li { background: var(--surface); border: 1px solid var(--border); padding: 0.2rem 0.6rem; border-radius: 3px; font-size: 0.8125rem; }
.instr-qty { font-weight: 700; margin-right: 0.25rem; }

.credits-list,
.copyright-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.credits-list li,
.copyright-list li {
  font-size: 0.9375rem;
  color: var(--text-2);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.credits-list li:last-child,
.copyright-list li:last-child { border-bottom: none; }
.credit-type,
.copyright-work { font-weight: 700; color: var(--navy); }
.credit-name,
.copyright-artist { font-weight: 600; color: var(--text); }
.copyright-notice {
  background: var(--gold-soft);
  border: 1px solid rgba(244,180,0,0.35);
  border-radius: var(--card-radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
}
.copyright-notice p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.7;
  margin: 0;
}
.copyright-notice a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.copyright-notice a:hover { color: var(--gold); }

.copyright-album { margin: 0.2rem 0 0; font-size: 0.875rem; color: var(--text-2); font-weight: 500; }
.copyright-spotify-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.copyright-spotify-card {
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 1rem;
  background: var(--surface);
}
.copyright-spotify-info {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 0.85rem;
}
.copyright-spotify-art {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.copyright-spotify-embed iframe {
  display: block;
  border-radius: 12px;
  border: 0;
}
.copyright-spotify-link {
  display: inline-block;
  font-weight: 700;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.piece-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.piece-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--bg);
}
.piece-tags-section { margin-top: -0.35rem; }
.piece-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.55rem;
}
.piece-card-tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
}

.purchase-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.15rem; }
.purchase-info { display: flex; flex-direction: column; gap: 0.2rem; }
.purchase-label { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.purchase-price { font-size: 2.25rem; font-weight: 800; color: var(--navy); letter-spacing: -0.04em; }
.owned-badge { background: #ecfdf5; color: var(--success); border: 1.5px solid #a7f3d0; padding: 0.6rem 1rem; border-radius: var(--btn-radius); text-align: center; font-weight: 700; font-size: 0.875rem; }
.section-buy-row { display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 0; border-bottom: 1px solid var(--border); gap: 0.75rem; }
.section-buy-row:last-of-type { border-bottom: none; }
.section-buy-row.owned { opacity: 0.5; }
.section-buy-info { display: flex; flex-direction: column; gap: 0.1rem; }
.section-buy-info strong { font-size: 0.875rem; font-weight: 700; }
.section-buy-price { font-size: 0.8125rem; color: var(--text-3); }
.owned-check { font-size: 0.8rem; color: var(--success); font-weight: 600; white-space: nowrap; }
.section-buy-total { text-align: right; font-size: 0.8125rem; color: var(--text-3); padding-top: 0.5rem; }
.cart-link { font-size: 0.875rem; color: var(--navy); text-align: center; text-decoration: underline; text-underline-offset: 2px; }

/* ── Cart ─────────────────────────────────────────── */
.page-section { padding: 3rem 0; }
.page-title { font-size: 2rem; margin-bottom: 2rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: start; }
.cart-items { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--card-radius); overflow: hidden; }
.cart-item {
  display: grid; grid-template-columns: 72px 1fr auto auto;
  align-items: center; gap: 1rem; padding: 1rem 1.25rem;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-thumb { width: 72px; height: 72px; border-radius: var(--btn-radius); overflow: hidden; }
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--bg-alt); border-radius: var(--btn-radius); font-size: 0.75rem; color: var(--text-3); }
.cart-item-info { display: flex; flex-direction: column; gap: 0.2rem; }
.cart-item-title { font-weight: 700; color: var(--navy); font-size: 0.9375rem; }
.cart-item-type { font-size: 0.8rem; color: var(--text-3); }
.cart-item-price { font-weight: 700; font-size: 1rem; white-space: nowrap; }
.cart-remove button { background: none; border: none; cursor: pointer; color: var(--text-3); font-size: 0.875rem; padding: 0.25rem; transition: color 0.15s; }
.cart-remove button:hover { color: var(--error); }
.cart-summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--card-radius); padding: 1.5rem; position: sticky; top: 78px; display: flex; flex-direction: column; gap: 1rem; }
.cart-summary h3 { font-size: 1rem; font-weight: 700; }
.summary-row { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--text-2); }
.summary-total { font-weight: 700; color: var(--navy); font-size: 1rem; padding-top: 0.75rem; border-top: 1.5px solid var(--border); }
.btn-checkout { width: 100%; }
.continue-shopping { text-align: center; font-size: 0.875rem; color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.secure-note { font-size: 0.75rem; color: var(--text-3); text-align: center; }

/* ── Checkout ─────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 3rem; align-items: start; }
.checkout-summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--card-radius); padding: 1.5rem; }
.checkout-summary-title { font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; padding-bottom: 0.75rem; border-bottom: 1.5px solid var(--border); }
.checkout-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 0.85rem; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.checkout-item:last-of-type { border-bottom: none; }
.checkout-item-thumb { width: 52px; height: 52px; border-radius: var(--btn-radius); overflow: hidden; background: var(--bg-alt); }
.checkout-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.checkout-item-info { display: flex; flex-direction: column; gap: 0.15rem; }
.checkout-item-title { font-weight: 600; font-size: 0.875rem; }
.checkout-item-sub { font-size: 0.775rem; color: var(--text-3); }
.checkout-item-price { font-weight: 700; font-size: 0.875rem; white-space: nowrap; }
.checkout-total-row { display: flex; justify-content: space-between; padding: 0.85rem 0 0.5rem; font-size: 0.9rem; }
.checkout-total-row strong { font-size: 1.1rem; }
.checkout-back-link { font-size: 0.8125rem; color: var(--navy); text-decoration: underline; display: inline-block; }
.checkout-payment { background: var(--surface); border: 1px solid var(--border); border-radius: var(--card-radius); padding: 1.5rem; position: sticky; top: 78px; }

.pay-method-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.pay-method-tab {
  appearance: none;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--navy);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.75rem 0.6rem;
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, border-radius 0.2s;
}
.pay-method-tab:hover { border-color: var(--navy); border-radius: var(--btn-radius-hover); }
.pay-method-tab.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.pay-method-panel { margin-top: 0.25rem; }
.pay-po-quote-steps {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.pay-po-quote-download {
  text-align: center;
}
.pay-po-lead {
  font-size: 0.9rem;
  color: var(--text-2);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.pay-po-quote-steps .pay-po-lead {
  margin-bottom: 0;
}
.pay-po-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
  margin-bottom: 1rem;
}
.pay-po-grid .fg { margin-bottom: 0; }
.pay-po-grid .fg-span-2 { grid-column: 1 / -1; }
.pay-po-grid textarea,
.pay-po-grid input[type="text"],
.pay-po-grid input[type="email"],
.pay-po-grid input[type="tel"],
.pay-po-grid input[type="file"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9rem;
  background: var(--bg);
  color: var(--text);
}
.pay-po-grid textarea:focus,
.pay-po-grid input:focus {
  outline: none;
  border-color: var(--navy);
  background: #fff;
}

.po-success-card { max-width: 820px; text-align: left; }
.po-success-card .success-icon,
.po-success-card h1,
.po-success-card .success-sub { text-align: center; }
.po-confirm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin: 1.75rem 0 1.5rem;
  text-align: left;
}
.po-confirm-grid h2 { font-size: 0.95rem; margin-bottom: 0.75rem; color: var(--navy); }
.po-confirm-dl { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1rem; font-size: 0.9rem; }
.po-confirm-dl dt { color: var(--text-3); font-weight: 600; }
.po-confirm-dl dd { margin: 0; color: var(--text); }
.po-remit {
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-2);
  padding: 1rem 1.1rem;
  background: #EAF4F6;
  border: 1px solid var(--border);
  border-radius: 0 12px 0 12px;
}

@media (max-width: 720px) {
  .pay-po-grid,
  .po-confirm-grid { grid-template-columns: 1fr; }
  .pay-method-tabs { grid-template-columns: 1fr; }
}
.stripe-element-container { margin-bottom: 1.25rem; min-height: 60px; }
.payment-message { background: #fff1f0; border: 1px solid #fcc; color: var(--error); padding: 0.75rem 1rem; border-radius: var(--btn-radius); font-size: 0.875rem; margin-bottom: 1rem; }
.btn-full { width: 100%; }
.checkout-no-stripe { color: var(--text-2); font-size: 0.875rem; line-height: 1.7; }
.checkout-no-stripe code { background: var(--bg-alt); padding: 0.1rem 0.4rem; border-radius: 3px; font-size: 0.8125rem; }
.checkout-no-stripe a { margin-top: 1rem; display: inline-block; }

/* ── Commissions ──────────────────────────────────── */
.commissions-hero {
  padding: 5rem 0 3.5rem;
  background: var(--navy);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.commissions-hero--photo {
  background: var(--midnight);
}
.commissions-hero-inner { max-width: 720px; position: relative; z-index: 2; margin: 0 auto; }
.commissions-hero-title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin-bottom: 1rem; }
.commissions-hero-blurb { font-size: 1.125rem; line-height: 1.7; opacity: 0.92; margin-bottom: 2rem; }
.commissions-signin-note { margin-top: 1rem; font-size: 0.875rem; opacity: 0.75; }
.commissions-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, #fff 0%, #fff8e1 100%);
  border: 2px solid var(--gold);
  border-radius: var(--card-radius);
  box-shadow: 0 12px 40px rgba(244, 180, 0, 0.22);
  text-align: left;
}
.commissions-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.commissions-cta-grid--single {
  grid-template-columns: 1fr;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.commissions-cta-grid .commissions-cta-card {
  margin-top: 0;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
}
.commissions-cta-grid .btn-hero-cta {
  width: 100%;
  text-align: center;
}
.commissions-cta-copy h2 {
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.commissions-cta-copy p {
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 520px;
}
.btn-hero-cta {
  flex-shrink: 0;
  font-size: 1.05rem;
  padding: 1rem 1.75rem;
  box-shadow: 0 8px 24px rgba(244, 180, 0, 0.35);
}
.section-heading { font-size: 1.25rem; color: var(--navy); margin-bottom: 1rem; }
.commissions-drafts-list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
.commissions-draft-card {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.commissions-draft-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.commissions-draft-main {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  flex: 1; min-width: 0; text-decoration: none; color: inherit;
}
.commissions-draft-card .muted { display: block; font-size: 0.8rem; margin-top: 0.2rem; }
.commissions-draft-meta { text-align: right; font-weight: 700; color: var(--navy); }
.commissions-draft-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 640px) {
  .commissions-draft-card {
    flex-direction: column;
    align-items: stretch;
  }
  .commissions-draft-actions {
    justify-content: stretch;
  }
  .commissions-draft-actions .btn-primary,
  .commissions-draft-actions .btn-outline,
  .commissions-draft-actions .commissions-draft-delete-btn {
    flex: 1;
    text-align: center;
  }
}
.commissions-draft-delete { margin: 0; flex-shrink: 0; }
.commissions-draft-delete-btn {
  background: var(--error) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  border-radius: var(--btn-radius);
}
.commissions-draft-delete-btn:hover {
  background: #b91c1c !important;
  color: #fff !important;
}

.site-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.site-modal[hidden] { display: none !important; }
.site-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26,122,140, 0.72);
}
.site-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--border);
  padding: 1.35rem 1.4rem 1.25rem;
  box-shadow: var(--shadow-lg);
}
.site-modal-dialog h3 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
  color: var(--navy);
}
.site-modal-dialog p {
  margin: 0 0 1.25rem;
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.55;
}
.site-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  align-items: center;
}
.site-modal-actions--split {
  justify-content: stretch;
  flex-wrap: wrap;
}
.site-modal-actions--split > .btn-primary,
.site-modal-actions--split > .btn-outline {
  flex: 1 1 140px;
  text-align: center;
  justify-content: center;
}
.site-modal-actions form { margin: 0; }
.site-modal-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.15rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-2);
}
.site-modal-field input {
  padding: 0.65rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--bg);
  color: var(--text);
}
.commissions-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.commissions-info-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--card-radius); padding: 1.5rem;
}
.commissions-info-card h3 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--navy); }
.commissions-info-card p { font-size: 0.875rem; color: var(--text-2); line-height: 1.6; }

.commission-form-page .page-subtitle { color: var(--text-2); margin: -0.5rem 0 2rem; }
.commission-form { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; }
.commission-form-main { display: flex; flex-direction: column; gap: 1.25rem; }
.commission-form .form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--card-radius); padding: 1.5rem;
}
.commission-form .form-card-title {
  font-size: 1.0625rem; font-weight: 700; margin-bottom: 1rem;
  padding-bottom: 0.65rem; border-bottom: 1.5px solid var(--border); color: var(--ink);
}
.commission-form .fg { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.commission-form .fg label { font-size: 0.8125rem; font-weight: 600; color: var(--text-2); }
.commission-form .fg input,
.commission-form .fg select,
.commission-form .fg textarea {
  padding: 0.65rem 0.85rem; border: 1.5px solid var(--border);
  border-radius: var(--btn-radius); font: inherit; background: var(--bg);
}
.commission-form .form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.commission-form .form-hint { font-size: 0.8rem; color: var(--text-3); line-height: 1.5; margin: 0 0 0.75rem; }
.commission-form .check-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; cursor: pointer; }
.commission-section-toggles { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.25rem; }
.commission-section-panel { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.commission-section-panel h3 { font-size: 0.95rem; margin-bottom: 0.35rem; color: var(--navy); }
.commission-section-panel[hidden] { display: none; }
.commission-subhead {
  margin: 1rem 0 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
}
.bundle-savings-banner {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.45rem 0.75rem;
  background: rgba(244, 180, 0, 0.18);
  border: 1px solid var(--gold);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 800;
}
.commission-difficulty {
  margin: 1.1rem 0 0.85rem;
  padding: 0.9rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--btn-radius);
}
.commission-difficulty > label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.65rem;
}
.difficulty-slider-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.65rem;
}
.difficulty-slider-row input[type="range"] {
  width: 100%;
  accent-color: var(--navy);
}
.difficulty-end { font-size: 0.72rem; color: var(--text-3); white-space: nowrap; }
.difficulty-value {
  min-width: 1.5rem;
  text-align: center;
  font-size: 1rem;
  color: var(--navy);
}
@media (max-width: 640px) {
  .difficulty-slider-row {
    grid-template-columns: 1fr auto;
    gap: 0.45rem 0.65rem;
  }
  .difficulty-end:first-child { grid-column: 1; }
  .difficulty-slider-row input[type="range"] { grid-column: 1 / -1; order: 3; }
  .difficulty-end:nth-child(3) { grid-column: 1; }
  .difficulty-value { grid-column: 2; grid-row: 1; }
}

.commission-instr-picker .instr-selected-wrap {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--btn-radius); padding: 0.85rem; min-height: 60px; margin-bottom: 0.75rem;
}
.commission-instr-picker .instr-selected { display: flex; flex-direction: column; gap: 0.45rem; }
.commission-instr-picker .instr-empty-hint { font-size: 0.8rem; color: var(--text-3); }
.commission-instr-picker .instr-selected-row {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  padding: 0.45rem 0.55rem;
  border-radius: var(--btn-radius);
}
.commission-instr-picker .instr-selected-row.is-alt {
  background: rgba(26,122,140, 0.06);
}
.commission-instr-picker .instr-selected-name { flex: 1; font-size: 0.875rem; font-weight: 600; }
.commission-instr-picker .instr-selected-controls { display: flex; align-items: center; gap: 0.35rem; }
.commission-instr-picker .instr-qty-btn {
  width: 28px; height: 28px; border: 1px solid var(--border); border-radius: var(--btn-radius);
  background: var(--surface); cursor: pointer;
}
.commission-instr-picker .instr-qty-val { min-width: 1.25rem; text-align: center; font-weight: 700; font-size: 0.875rem; }
.commission-instr-picker .instr-remove-btn {
  border: none; background: none; color: var(--text-3); font-size: 0.8rem; cursor: pointer; text-decoration: underline;
}
.commission-instr-picker .instr-pool-btns { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.commission-instr-picker .instr-pool-btn {
  padding: 0.35rem 0.7rem; border: 1.5px solid var(--border); border-radius: var(--btn-radius);
  background: var(--bg); font-size: 0.8rem; cursor: pointer;
}
.commission-instr-picker .instr-pool-btn:hover { border-color: var(--navy); }
.commission-instr-picker .instr-pool-btn[hidden] { display: none; }
.commission-custom-add { display: flex; gap: 0.5rem; }
.commission-custom-input { flex: 1; padding: 0.5rem 0.75rem; border: 1.5px solid var(--border); border-radius: var(--btn-radius); }
.mainstage-panel {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.mainstage-panel h4 {
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.mainstage-panel[hidden] { display: none; }

.commission-quote-sidebar {
  align-self: start;
  position: relative;
  min-height: 1px;
}
.commission-quote-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--card-radius); padding: 1.25rem;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  width: 100%;
  box-sizing: border-box;
}
.commission-quote-card.is-fixed {
  position: fixed;
  z-index: 40;
}
.commission-quote-card.is-pinned-bottom {
  position: absolute;
  bottom: 0;
  top: auto !important;
  left: 0;
  width: 100%;
}
.commission-dropzone {
  border: 2px dashed var(--border); border-radius: var(--card-radius);
  padding: 2rem; text-align: center; color: var(--text-2); cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.commission-dropzone.dragover { border-color: var(--gold); background: rgba(244,180,0,0.06); }
.commission-dropzone input[type="file"] { display: none; }
.commission-file-list { margin-top: 0.75rem; font-size: 0.85rem; color: var(--text-2); }
.commission-file-list li { padding: 0.25rem 0; }
.link-btn { border: none; background: none; color: var(--navy); text-decoration: underline; cursor: pointer; font: inherit; }

.commission-quote-card h2 { font-size: 1rem; margin-bottom: 1rem; }
.commission-quote-lines { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; font-size: 0.8rem; }
.commission-quote-lines .quote-row,
.commission-quote-totals .quote-row { display: flex; justify-content: space-between; gap: 1rem; }
.commission-quote-totals { border-top: 1px solid var(--border); padding-top: 0.75rem; margin-bottom: 1rem; font-size: 0.85rem; }
.quote-row--total { font-size: 1rem; margin-top: 0.5rem; }
.quote-row--deposit { color: var(--navy); margin-top: 0.35rem; }
.commission-quote-actions { display: flex; flex-direction: column; gap: 0.65rem; }

.commission-contract-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
.commission-contract-doc {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--card-radius); padding: 1.75rem; line-height: 1.7;
}
.commission-contract-doc h2, .commission-contract-doc h3 { color: var(--navy); margin: 1.25rem 0 0.75rem; }
.commission-contract-doc h2:first-child { margin-top: 0; }
.contract-list { margin: 0.75rem 0 1rem 1.25rem; }
.contract-summary { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1.5rem; font-size: 0.9rem; }
.contract-summary dt { color: var(--text-3); font-weight: 600; }
.commission-contract-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--card-radius); padding: 1.5rem; position: sticky; top: 78px;
}
.contract-accept { display: flex; gap: 0.65rem; font-size: 0.875rem; line-height: 1.6; margin-bottom: 1.25rem; cursor: pointer; }
.contract-signature-field {
  display: flex; flex-direction: column; gap: 0.4rem;
  font-size: 0.8125rem; font-weight: 600; color: var(--text-2); margin-bottom: 1.25rem;
}
.contract-signature-field input {
  font-family: "Segoe Script", "Bradley Hand", "Comic Sans MS", cursive;
  font-size: 1.15rem; font-weight: 500; padding: 0.65rem 0.75rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  color: var(--navy); background: var(--bg);
}
.contract-signature-field input:focus { outline: none; border-color: var(--navy); background: #fff; }
.contract-music-notice {
  margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border);
  font-size: 0.95rem; line-height: 1.55;
}
.contract-status-banner {
  background: #F3F8F9; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.75rem 1rem; margin-bottom: 1.25rem; font-size: 0.9rem;
}
.contract-status-banner--signed { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }

.account-page-header { margin-bottom: 1.25rem; }
.account-page-header .page-title { margin-bottom: 0.35rem; }
.account-page-header .page-subtitle { margin: 0; }

.account-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1.75rem;
  padding: 0.35rem;
  background: var(--bg-alt, #f3f1ec);
  border: 1px solid var(--border);
  border-radius: calc(var(--card-radius) + 2px);
}
.account-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--btn-radius);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.account-nav-btn:hover {
  background: rgba(255,255,255,0.7);
  border-color: var(--border);
}
.account-nav-btn.is-active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.account-contracts-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--card-radius); padding: 1.25rem 1.5rem; margin-bottom: 2rem;
}
.account-contracts-heading { font-size: 1.05rem; color: var(--navy); margin: 0 0 0.85rem; }
.account-contracts-card .account-commission-row {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.65rem 0; border-top: 1px solid var(--border);
}
.account-contracts-card .account-commission-row:first-of-type { border-top: none; padding-top: 0; }
.account-contracts-card .account-commission-row > div { display: flex; flex-direction: column; gap: 0.15rem; }
.quote-doc h2 { margin-top: 0; color: var(--navy); }
.quote-doc .quote-notes { margin-top: 1rem; color: var(--text-2); font-size: 0.9rem; }

.account-balance-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--card-radius); padding: 1.25rem 1.5rem; margin-bottom: 2rem;
}
.account-balance-row { display: flex; justify-content: space-between; align-items: center; font-size: 1rem; margin-bottom: 1rem; }
.account-balance-row strong { font-size: 1.25rem; color: var(--navy); }
.account-balance-card > .btn-primary { margin-bottom: 0.25rem; }
.account-commission-amounts { text-align: right; display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.9rem; }
.account-commission-amounts strong { color: var(--navy); }
.account-commissions-mini { margin-top: 1.25rem; }
.account-commissions-mini h3 { font-size: 0.9rem; margin-bottom: 0.75rem; color: var(--navy); }

/* ── Make a Payment page ──────────────────────────── */
.pay-page {
  position: relative;
  min-height: calc(100vh - var(--nav-h, 72px));
  padding: 2.5rem 0 4.5rem;
  overflow: hidden;
}
.pay-page-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 12% 0%, rgba(244,180,0,0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 20%, rgba(26,122,140,0.12), transparent 50%),
    linear-gradient(165deg, #eef2f6 0%, #f7f7f7 45%, #f3efe6 100%);
  pointer-events: none;
}
.pay-page-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: var(--surface-grain);
  background-size: 280px;
  mix-blend-mode: multiply;
}
.pay-page-inner { position: relative; z-index: 1; max-width: 560px; }
.pay-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 1.5rem;
  transition: color 0.15s var(--ease);
}
.pay-back:hover { color: var(--navy); }

.pay-shell {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(216,221,227,0.9);
  border-radius: 0 22px 0 22px;
  box-shadow: var(--shadow-lg);
  padding: 2.25rem 2rem 2rem;
  backdrop-filter: blur(8px);
  animation: pay-rise 0.55s var(--ease-out) both;
}
.pay-shell--checkout { padding-bottom: 1.75rem; }
@keyframes pay-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.pay-hero { text-align: center; margin-bottom: 1.75rem; }
.pay-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.5rem;
}
.pay-title {
  font-size: clamp(1.75rem, 4vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 1.35rem;
}
.pay-balance-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 0.2rem;
}
.pay-balance {
  font-size: clamp(2.4rem, 6vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--navy);
  line-height: 1;
  background: linear-gradient(120deg, var(--navy) 0%, #146576 55%, #8a6a10 160%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pay-form { display: flex; flex-direction: column; gap: 1rem; }
.pay-amount-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-2);
}
.pay-amount-field {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: #EAF4F6;
  border: 1.5px solid var(--border);
  border-radius: 0 14px 0 14px;
  padding: 0.85rem 1.1rem;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.pay-amount-field:focus-within {
  border-color: var(--navy);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(26,122,140,0.08);
}
.pay-amount-currency {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-3);
  line-height: 1;
}
.pay-amount-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  width: 100%;
  min-width: 0;
  line-height: 1.1;
}
.pay-amount-input::-webkit-outer-spin-button,
.pay-amount-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pay-amount-input[type=number] { -moz-appearance: textfield; appearance: textfield; }

.pay-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}
.pay-preset {
  appearance: none;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--navy);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.7rem 0.5rem;
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, border-radius 0.2s, transform 0.15s;
}
.pay-preset:hover {
  border-color: var(--navy);
  border-radius: var(--btn-radius-hover);
}
.pay-preset.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: 0 6px 16px rgba(26,122,140,0.18);
}
.pay-preset.is-active:hover { background: var(--navy-hover); }

.pay-apply {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.25rem;
}
.pay-apply label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-2);
}
.pay-apply select {
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text);
  background: #fff;
  outline: none;
}
.pay-apply select:focus { border-color: var(--navy); }

.pay-submit { margin-top: 0.5rem; }

.pay-checkout { display: flex; flex-direction: column; gap: 1rem; }
.pay-checkout-summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, rgba(244,180,0,0.16), rgba(244,180,0,0.05));
  border: 1px solid rgba(244,180,0,0.35);
  border-radius: 0 12px 0 12px;
  font-size: 0.95rem;
  color: var(--text-2);
}
.pay-checkout-summary strong {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.pay-stripe { margin: 0.25rem 0; }
.pay-change-amount {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-2);
  padding: 0.35rem;
}
.pay-change-amount:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 560px) {
  .pay-shell { padding: 1.75rem 1.25rem 1.5rem; border-radius: 0 16px 0 16px; }
  .pay-amount-input { font-size: 1.65rem; }
  .pay-amount-currency { font-size: 1.4rem; }
}
.account-commission-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 0; border-top: 1px solid var(--border); font-size: 0.875rem;
}
.account-commission-row .muted { display: block; font-size: 0.75rem; }

/* ── Account / Library ────────────────────────────── */
.library-grid { display: flex; flex-direction: column; gap: 1rem; }
.library-item {
  display: grid; grid-template-columns: 72px 1fr auto;
  align-items: center; gap: 1.25rem; padding: 1rem 1.25rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
  transition: border-radius 0.24s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.library-item:hover { border-radius: var(--card-radius-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.library-thumb { width: 72px; height: 72px; border-radius: var(--btn-radius); overflow: hidden; }
.library-thumb img { width: 100%; height: 100%; object-fit: cover; }
.library-info { display: flex; flex-direction: column; gap: 0.3rem; }
.library-title { font-weight: 700; font-size: 0.9375rem; color: var(--navy); }
.library-type { font-size: 0.8rem; color: var(--text-3); }
.library-date { font-size: 0.75rem; color: var(--text-3); }

/* ── Success ─────────────────────────────────────── */
.success-card {
  text-align: center; max-width: 480px; margin: 4rem auto;
  padding: 3rem 2.5rem; background: var(--surface);
  border-radius: var(--card-radius);
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.success-icon { width: 56px; height: 56px; background: #ecfdf5; border-radius: var(--btn-radius); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 1.5rem; color: var(--success); font-weight: 700; }
.success-card h1 { font-size: 2rem; font-weight: 800; margin-bottom: 0.75rem; letter-spacing: -0.03em; }
.success-sub { color: var(--text-2); margin-bottom: 2.5rem; line-height: 1.7; }
.success-actions { display: flex; flex-direction: column; gap: 0.75rem; align-items: center; }

/* ── Downloads ───────────────────────────────────── */
.back-link { font-size: 0.875rem; color: var(--navy); text-decoration: underline; text-underline-offset: 2px; display: inline-block; margin-bottom: 1.25rem; }
.downloads-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
}
.downloads-header .page-title { margin-bottom: 0.35rem; }
.downloads-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}
.downloads-zip-btn,
.downloads-selection-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}
.downloads-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.downloads-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
}
.downloads-search {
  display: block;
}
.downloads-search-field {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: min(300px, 100%);
  min-height: 2.5rem;
  padding: 0 0.55rem 0 0.85rem;
  background: #fff;
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.downloads-search-field:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26, 122, 140, 0.14);
}
.downloads-search-icon {
  flex: 0 0 auto;
  color: var(--text-3);
}
.downloads-search-field:focus-within .downloads-search-icon {
  color: var(--navy);
}
.downloads-search-field input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
.downloads-search-field input[type="search"]::placeholder {
  color: var(--text-3);
}
.downloads-search-field input[type="search"]::-webkit-search-decoration,
.downloads-search-field input[type="search"]::-webkit-search-cancel-button,
.downloads-search-field input[type="search"]::-webkit-search-results-button,
.downloads-search-field input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
.downloads-search-clear {
  appearance: none;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
}
.downloads-search-clear:hover {
  background: var(--bg-alt, #f3f4f6);
  color: var(--ink);
}
.downloads-search-status {
  margin: -0.35rem 0 1rem;
  font-size: 0.875rem;
  color: var(--text-2);
}
.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;
}
.downloads-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  min-width: 0;
}
.downloads-breadcrumb .bc-sep { color: var(--text-3); }
.downloads-crumb {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}
.downloads-crumb:hover { text-decoration: underline; }
.downloads-crumb.is-current {
  color: var(--text);
  font-weight: 700;
  pointer-events: none;
}
.downloads-up-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.85rem;
  user-select: none;
}
.downloads-tile {
  appearance: none;
  font: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 1rem 0.75rem 0.85rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s, background 0.15s, transform 0.12s, box-shadow 0.15s;
  min-height: 148px;
}
.downloads-tile:hover {
  border-color: var(--teal, #1a7a8c);
  background: rgba(26, 122, 140, 0.05);
  transform: translateY(-1px);
}
.downloads-tile.is-selected {
  border-color: var(--teal, #1a7a8c);
  background: rgba(26, 122, 140, 0.12);
  box-shadow: inset 0 0 0 1px var(--teal, #1a7a8c);
}
.downloads-tile-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--navy);
}
.downloads-tile-icon--pdf { color: #b91c1c; }
.downloads-tile-icon--audio { color: #0369a1; }
.downloads-tile-icon--image { color: #047857; }
.downloads-tile-name {
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.downloads-tile-meta {
  font-size: 0.72rem;
  color: var(--text-3);
}
.empty-folder { color: var(--text-3); font-size: 0.875rem; padding: 1rem 0; }

.downloads-preview-modal .downloads-preview-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: min(90vh, 900px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.downloads-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}
.downloads-preview-title {
  margin: 0;
  font-size: 1rem;
  color: var(--navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}
.downloads-preview-top-actions {
  display: flex;
  gap: 0.45rem;
  flex-shrink: 0;
}
.downloads-preview-body {
  flex: 1;
  min-height: 280px;
  max-height: calc(90vh - 70px);
  overflow: auto;
  background: #f8fafc;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.downloads-preview-image {
  max-width: 100%;
  max-height: calc(90vh - 110px);
  object-fit: contain;
}
.downloads-preview-frame {
  width: 100%;
  height: min(75vh, 760px);
  border: 0;
  background: #fff;
}
.downloads-preview-audio { width: min(420px, 100%); }
.downloads-preview-fallback {
  text-align: center;
  color: var(--text-2);
  padding: 2rem 1rem;
}

.downloads-context-menu {
  position: fixed;
  z-index: 1400;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 0.3rem;
}
.downloads-context-menu[hidden] { display: none !important; }
.downloads-context-menu button {
  appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.downloads-context-menu button:hover {
  background: rgba(26, 122, 140, 0.08);
}

@media (max-width: 600px) {
  .downloads-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 0.65rem; }
  .downloads-tile { min-height: 132px; padding: 0.85rem 0.55rem; }
  .downloads-header-actions,
  .downloads-zip-btn,
  .downloads-selection-btn { width: 100%; justify-content: center; }
  .downloads-toolbar-actions,
  .downloads-search,
  .downloads-search-field { width: 100%; }
  .downloads-preview-top { flex-wrap: wrap; }
}

/* ── Error ───────────────────────────────────────── */
.error-page { text-align: center; padding: 6rem 1.5rem; }
.error-page h1 { font-size: 3rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.04em; }
.error-page p { color: var(--text-2); margin-bottom: 2rem; }

/* ── Toast ───────────────────────────────────────── */
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 500;
  background: var(--navy); color: #fff;
  padding: 0.75rem 1.25rem; border-radius: var(--btn-radius);
  font-size: 0.875rem; font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ── Footer ──────────────────────────────────────── */
.site-footer {
  background: var(--surface);
  color: var(--text-2);
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.75rem; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 0.85rem; }
.footer-icon { width: 28px; height: 28px; object-fit: contain; opacity: 0.85; }
.footer-brand-text { display: flex; flex-direction: column; align-items: flex-start; }
.footer-brand-text strong { color: var(--ink); font-size: 0.9375rem; font-weight: 800; }
.footer-brand-text span { font-size: 0.8rem; color: var(--text-3); }
.footer-nav { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.footer-nav a { color: var(--text-2); font-size: 0.875rem; transition: color 0.15s; text-decoration: none; }
.footer-nav a:hover { color: var(--gold); }
.footer-copy { font-size: 0.775rem; color: var(--text-3); }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 960px) {
  .piece-body, .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .piece-sidebar, .cart-summary, .checkout-payment { position: static; }
  .commission-form, .commission-contract-layout { grid-template-columns: 1fr; }
  .commission-quote-sidebar {
    order: -1;
    position: static;
    top: auto;
  }
  .commission-quote-card,
  .commission-quote-card.is-fixed,
  .commission-quote-card.is-pinned-bottom {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    max-height: none;
  }
  .commission-contract-form { position: static; }
  .commissions-info-grid { grid-template-columns: 1fr; }
  .commissions-cta-grid { grid-template-columns: 1fr; }
  .commissions-cta-card { flex-direction: column; text-align: center; }
  .commissions-cta-copy p { max-width: none; }
  .btn-hero-cta { width: 100%; }
  .commission-form .form-row-2 { grid-template-columns: 1fr; }
  .craft-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .yardlines--hero { opacity: 0.07; }
}
@media (max-width: 768px) {
  .piece-hero { min-height: 320px; }
  .piece-hero-nav { width: 38px; height: 38px; }
  .piece-hero-nav--prev { left: 0.6rem; }
  .piece-hero-nav--next { right: 0.6rem; }
  .piece-hero-dots { bottom: 0.85rem; }
  .nav-inner { padding: 0.85rem 1.25rem; gap: 1rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .btn-nav-login, .btn-nav-register { display: none; }
  .nav-user-menu { display: none; }
  .hero { padding: 4rem 0 2.25rem; }
  .hero-content { text-align: center; max-width: none; }
  .hero-brand { align-items: center; }
  .hero-logo { width: clamp(190px, 72vw, 320px); }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .yardlines--hero,
  .yardlines--section,
  .yardlines--cta,
  .yardlines--browse { opacity: 0.06; }
  .dither-bg::after,
  .section-catalog--tinted::after { opacity: 0.022; }
  .section-catalog { padding: 3.5rem 0; }
  .craft-section { padding: 3.5rem 0; }
  .craft-grid { grid-template-columns: 1fr; gap: 2rem; }
  .craft-details--below { grid-template-columns: 1fr; }
  .contact-page--split { grid-template-columns: 1fr; }
  .contact-media { position: static; }
  .photo-band { min-height: 280px; }
  .cta-section { padding: 3rem 0; }
  .cta-inner { padding: 2rem 1.5rem; }
  .pieces-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.35rem; }
  .browse-header { padding: 2rem 0 1.5rem; }
  .browse-filters { margin: 1.5rem 0; padding: 1rem; }
}
@media (max-width: 480px) {
  .container { padding: 0 1.1rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline { width: 100%; }
  .browse-filters { flex-direction: column; align-items: stretch; }
  .filter-search, .filter-group { width: 100%; min-width: 0; }
  .filter-actions { width: 100%; }
  .btn-filter, .btn-clear { flex: 1; text-align: center; }
  .btn-source-music { flex: 1 1 100%; text-align: center; }
  .cart-item { grid-template-columns: 60px 1fr; gap: 0.75rem; }
  .cart-item-price { grid-column: 2; }
  .cart-remove { grid-column: 2; }
}

@media (max-width: 979px) {
  .ensemble-card { flex-basis: calc((100% - 1.35rem) / 2); padding: 1.85rem 1.35rem; }
  .ensemble-logo { max-width: 200px; }
}

@media (max-width: 639px) {
  .ensembles-carousel { gap: 0.35rem; }
  .ensembles-carousel-nav { width: 40px; height: 40px; }
  .ensemble-card { flex-basis: 100%; padding: 1.85rem 1.35rem; }
  .ensemble-logo { max-width: 260px; }
}

/* ── About & staff ───────────────────────────────── */
.eyebrow {
  display: block; margin-bottom: 0.55rem; color: var(--gold); font-size: 0.75rem;
  font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}
.about-hero { padding: 5.5rem 0; background-color: var(--midnight); color: #fff; position: relative; overflow: hidden; min-height: 420px; display: flex; align-items: center; }
.about-hero--photo { background: var(--midnight); }
.about-hero-inner { max-width: 820px; position: relative; z-index: 2; }
.about-hero h1 { font-size: clamp(2.3rem, 5vw, 4.4rem); line-height: 1.04; letter-spacing: -0.045em; }
.about-hero p { max-width: 650px; margin-top: 1.35rem; color: rgba(255,255,255,0.75); font-size: 1.1rem; }
.about-story { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.about-story h2 { margin-bottom: 0.75rem; font-size: 1.35rem; }
.about-story p { color: var(--text-2); }
.staff-section { padding: 1rem 0 6rem; }
.staff-list { display: flex; flex-direction: column; }
.staff-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  padding: 1.75rem 0;
}
.staff-row--reverse { grid-template-columns: minmax(0, 1fr) 220px; }
.staff-row--reverse .staff-row-photo { order: 2; }
.staff-row--reverse .staff-row-copy { order: 1; }
.staff-row-photo {
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.staff-photo-btn {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: zoom-in;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  transition: transform 0.25s var(--ease-out);
}
.staff-photo-btn:hover,
.staff-photo-btn:focus-visible {
  transform: scale(1.03);
  outline: none;
}
.staff-photo-btn:focus-visible .staff-photo-circle {
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 6px var(--navy),
    0 14px 32px rgba(26,122,140, 0.28),
    0 4px 10px rgba(26,122,140, 0.14);
}
.staff-photo-btn--profile {
  width: 132px;
  height: 132px;
}
.staff-photo-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 4px solid #fff;
  box-shadow:
    0 0 0 1px rgba(26,122,140, 0.1),
    0 14px 32px rgba(26,122,140, 0.28),
    0 4px 10px rgba(26,122,140, 0.14);
  background: var(--midnight);
}
.staff-avatar {
  width: 64px; height: 64px; flex: 0 0 auto; display: grid; place-items: center;
  border-radius: 50%; background: var(--midnight); color: var(--gold); font-weight: 800; letter-spacing: 0.04em;
}
.staff-avatar--row {
  width: 100%; height: 100%; font-size: 2.4rem;
}
.staff-row-copy { min-width: 0; }
.staff-row-name {
  display: inline-block;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.staff-row-name:hover { color: var(--gold); }
.staff-row-title { margin: 0.4rem 0 0.85rem; color: var(--text-2); font-size: 0.95rem; }
.staff-row-excerpt {
  max-height: 4.8em; overflow: hidden; margin-bottom: 1rem;
  color: var(--text-2); font-size: 0.92rem; line-height: 1.6;
}
.staff-row-excerpt * { margin: 0; font-size: inherit; font-weight: 400; }
.staff-row-divider { border: 0; border-top: 1px solid var(--border); margin: 0; }
.staff-profile-hero { padding: 3.5rem 0; background-color: var(--midnight); color: #fff; position: relative; overflow: hidden; }
.staff-profile-hero--cover { min-height: 320px; display: flex; align-items: flex-end; }
.staff-cover-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.staff-cover-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,122,140,0.25) 0%, rgba(26,122,140,0.82) 100%);
}
.staff-profile-heading { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1.5rem; position: relative; z-index: 1; }
.staff-profile-heading .back-link { grid-column: 1 / -1; width: max-content; color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.staff-profile-photo { width: 100%; height: 100%; }
.staff-avatar--large {
  width: 120px; height: 120px; font-size: 1.6rem;
  background: var(--gold); color: var(--midnight);
}
.staff-profile-heading h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.05; }
.staff-profile-heading p { color: rgba(255,255,255,0.72); }
.staff-profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 4rem; align-items: start; }
.staff-bio { font-size: 1rem; line-height: 1.85; }
.staff-contact { padding: 1.4rem; border: 1px solid var(--border); border-radius: var(--card-radius); background: var(--surface); }
.staff-contact h2 { margin-bottom: 0.75rem; font-size: 1rem; }
.staff-contact a { display: block; color: var(--navy); text-decoration: underline; overflow-wrap: anywhere; }

.staff-photo-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}
.staff-photo-modal[hidden] { display: none !important; }
.staff-photo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 28, 45, 0.78);
  backdrop-filter: blur(4px);
}
.staff-photo-modal-dialog {
  position: relative;
  z-index: 1;
  max-width: min(560px, 92vw);
  max-height: 88vh;
  animation: staff-photo-pop 0.28s var(--ease-out) both;
}
@keyframes staff-photo-pop {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.staff-photo-modal-img {
  display: block;
  width: min(480px, 82vw);
  height: min(480px, 82vw);
  max-height: 78vh;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow:
    0 0 0 1px rgba(26,122,140, 0.12),
    0 22px 50px rgba(0, 0, 0, 0.4),
    0 8px 18px rgba(0, 0, 0, 0.25);
  background: #fff;
}
.staff-photo-modal-close {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  z-index: 2;
  width: 2.35rem;
  height: 2.35rem;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(26,122,140, 0.25);
}
.staff-photo-modal-close:hover { background: var(--gold); }

.rich-bio h2, .rich-bio h3 { margin: 1.2rem 0 0.5rem; line-height: 1.25; }
.rich-bio p, .rich-bio div { margin-bottom: 0.85rem; }
.rich-bio ul, .rich-bio ol { margin: 0.5rem 0 0.85rem 1.4rem; }
.rich-bio blockquote { border-left: 3px solid var(--gold); margin: 1rem 0; padding-left: 1rem; color: var(--text-2); }
.rich-bio a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }

/* ── One-view staff bio editor ───────────────────── */
.staff-editor-card {
  margin: 2rem 0 3rem; padding: 1.75rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--card-radius); box-shadow: var(--shadow-sm);
}
.staff-editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.staff-editor-heading h2 { font-size: 1.35rem; }
.btn-small { padding: 0.55rem 0.85rem; font-size: 0.8rem; }
.staff-photo-fields { display: grid; grid-template-columns: 180px 1fr; gap: 1.25rem; margin-bottom: 1.5rem; }
.staff-photo-upload { display: flex; flex-direction: column; gap: 0.65rem; align-items: flex-start; }
.staff-photo-label { font-size: 0.8rem; font-weight: 700; color: var(--text-2); }
.staff-photo-preview { width: 140px; height: 140px; object-fit: cover; background: var(--bg-alt); border: 1px solid var(--border); }
.staff-photo-preview--cover { width: 100%; max-width: 420px; height: 140px; }
.staff-photo-empty {
  width: 140px; height: 140px; display: grid; place-items: center;
  background: var(--bg-alt); border: 1px dashed var(--border); color: var(--text-3); font-size: 0.75rem; text-align: center; padding: 0.5rem;
}
.staff-photo-upload--cover .staff-photo-empty { width: 100%; max-width: 420px; }
.staff-photo-pick { cursor: pointer; }
.profile-form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
.profile-form-grid label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.8rem; font-weight: 700; }
.profile-form-grid input[type="text"], .profile-form-grid input[type="email"], .profile-form-grid input[type="tel"] {
  width: 100%; padding: 0.65rem 0.75rem; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font: inherit;
}
.profile-form-grid .privacy-toggle { display: flex; flex-direction: row; align-items: center; gap: 0.4rem; color: var(--text-2); font-weight: 500; }
.bio-editor-label { display: block; margin-bottom: 0.4rem; font-size: 0.8rem; font-weight: 700; }
.bio-editor { border: 1px solid var(--border-dark); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.bio-toolbar { display: flex; align-items: center; gap: 0.3rem; padding: 0.5rem; border-bottom: 1px solid var(--border); background: var(--bg-alt); flex-wrap: wrap; }
.bio-toolbar button, .bio-toolbar select {
  min-height: 32px; padding: 0.3rem 0.55rem; border: 1px solid var(--border);
  border-radius: 5px; background: #fff; color: var(--text); font: inherit; font-size: 0.78rem; cursor: pointer;
}
.bio-toolbar button:hover, .bio-toolbar select:hover { border-color: var(--navy); }
.bio-toolbar button.is-active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.bio-toolbar button.is-active strong,
.bio-toolbar button.is-active em,
.bio-toolbar button.is-active u { color: #fff; }
.bio-editable { min-height: 260px; padding: 1rem; outline: none; line-height: 1.75; }
.bio-editable:focus { box-shadow: inset 0 0 0 2px rgba(26,122,140,0.12); }
.bio-editable:empty::before { content: attr(data-placeholder); color: var(--text-3); pointer-events: none; }
.editor-help { margin: 0.5rem 0 1rem; color: var(--text-3); font-size: 0.78rem; }

.photo-crop-modal {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(26,122,140,0.72);
  display: grid; place-items: center; padding: 1rem;
}
.photo-crop-modal[hidden] { display: none !important; }
.photo-crop-dialog {
  width: min(720px, 100%);
  background: #fff;
  border: 1px solid var(--border);
  padding: 1rem 1.1rem 1.2rem;
}
.photo-crop-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.photo-crop-close { border: none; background: none; font-size: 1.1rem; cursor: pointer; color: var(--text-2); }
.photo-crop-stage {
  position: relative; background: #111; min-height: 320px;
  display: grid; place-items: center; overflow: hidden; user-select: none;
}
.photo-crop-stage img { max-width: 100%; max-height: 60vh; display: block; }
.photo-crop-box {
  position: absolute; border: 2px solid #fff;
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.45); cursor: move;
}
.photo-crop-handle {
  position: absolute; width: 12px; height: 12px; background: var(--gold); border: 1px solid #fff;
}
.photo-crop-handle[data-handle="nw"] { left: -6px; top: -6px; cursor: nwse-resize; }
.photo-crop-handle[data-handle="ne"] { right: -6px; top: -6px; cursor: nesw-resize; }
.photo-crop-handle[data-handle="sw"] { left: -6px; bottom: -6px; cursor: nesw-resize; }
.photo-crop-handle[data-handle="se"] { right: -6px; bottom: -6px; cursor: nwse-resize; }
.photo-crop-hint { margin: 0.75rem 0; color: var(--text-3); font-size: 0.8rem; }
.photo-crop-actions { display: flex; justify-content: flex-end; gap: 0.65rem; }

@media (max-width: 800px) {
  .about-story, .staff-profile-layout, .profile-form-grid, .staff-photo-fields { grid-template-columns: 1fr; }
  .about-story, .staff-profile-layout { gap: 2rem; }
  .staff-row,
  .staff-row--reverse { grid-template-columns: 1fr; }
  .staff-row--reverse .staff-row-photo,
  .staff-row--reverse .staff-row-copy { order: initial; }
  .staff-row-photo { width: 160px; height: 160px; }
}
@media (max-width: 520px) {
  .about-hero { padding: 4rem 0; }
  .staff-profile-heading { grid-template-columns: 1fr; }
  .staff-editor-card { padding: 1.1rem; }
  .staff-editor-heading { align-items: flex-start; flex-direction: column; }
}

/* ── Site-wide audio preview player ─────────────────────────────────────── */
body.has-audio-player {
  --site-audio-player-height: 5.75rem;
  padding-bottom: calc(var(--site-audio-player-height) + 1.5rem);
}
body.has-audio-player .site-footer {
  margin-bottom: var(--site-audio-player-height);
}

.site-audio-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1400;
  background: #0f1720;
  color: #f4f6f8;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.28);
  transform: translateY(110%);
  transition: transform 0.28s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
  padding: 0.65rem 1rem 0.75rem;
}
.site-audio-player.is-open,
.site-audio-player:not([hidden]) {
  transform: translateY(0);
}
.site-audio-player[hidden] {
  display: block !important;
  pointer-events: none;
  transform: translateY(110%);
}
.site-audio-player.is-open {
  pointer-events: auto;
}

.site-audio-close {
  position: absolute;
  top: 0.35rem;
  right: 0.45rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  cursor: pointer;
}
.site-audio-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.site-audio-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: center;
  gap: 1rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-right: 1.75rem;
}

.site-audio-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.site-audio-art-wrap {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
}
.site-audio-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.site-audio-art-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a7a8c, #0f1720);
}
.site-audio-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.site-audio-title {
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-audio-type {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-audio-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.site-audio-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.site-audio-btn {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
}
.site-audio-btn:hover { background: rgba(255, 255, 255, 0.1); }
.site-audio-btn--play {
  width: 2.6rem;
  height: 2.6rem;
  background: #1a7a8c;
}
.site-audio-btn--play:hover { background: #156677; }
.site-audio-btn--play .site-audio-icon-pause { display: none; }
.site-audio-btn--play.is-playing .site-audio-icon-play { display: none; }
.site-audio-btn--play.is-playing .site-audio-icon-pause { display: block; }

.site-audio-progress-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
}
.site-audio-time {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
  min-width: 2.1rem;
}
.site-audio-progress-wrap {
  position: relative;
  flex: 1;
  height: 1.1rem;
  display: flex;
  align-items: center;
}
.site-audio-progress-fill {
  position: absolute;
  left: 0;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  width: 0%;
  background: #1a7a8c;
  border-radius: 999px;
  pointer-events: none;
  z-index: 1;
}
.site-audio-progress-wrap::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}
.site-audio-progress {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0;
  appearance: none;
  background: transparent;
  height: 1.1rem;
  cursor: pointer;
}
.site-audio-progress::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}
.site-audio-progress::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  margin-top: -4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.site-audio-progress::-moz-range-track {
  height: 4px;
  background: transparent;
  border: none;
}
.site-audio-progress::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: #fff;
}

.site-audio-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  min-width: 0;
}
.site-audio-volume {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.75);
  min-width: 0;
}
.site-audio-volume input[type="range"] {
  width: 5.5rem;
  max-width: 22vw;
  accent-color: #1a7a8c;
  cursor: pointer;
}
.site-audio-download {
  flex-shrink: 0;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #fff !important;
  background: transparent !important;
}
.site-audio-download:hover {
  border-color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}
.site-audio-download.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

@media (max-width: 900px) {
  body.has-audio-player {
    --site-audio-player-height: 7.5rem;
  }
  .site-audio-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "meta right"
      "center center";
    gap: 0.45rem 0.75rem;
  }
  .site-audio-meta { grid-area: meta; }
  .site-audio-center { grid-area: center; }
  .site-audio-right { grid-area: right; }
  .site-audio-volume input[type="range"] { width: 4rem; }
}

@media (max-width: 560px) {
  body.has-audio-player {
    --site-audio-player-height: 8.75rem;
  }
  .site-audio-player { padding: 0.7rem 0.75rem 0.85rem; }
  .site-audio-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "meta"
      "center"
      "right";
    padding-right: 1.5rem;
  }
  .site-audio-right {
    justify-content: space-between;
  }
  .site-audio-art-wrap {
    width: 2.75rem;
    height: 2.75rem;
  }
}

