/* ============================================
   Create Bastrop — Community Arts Initiative
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Colors from logo */
  --cream: #FFF9F0;
  --brown-dark: #5C3317;
  --brown-mid: #7B4B2A;
  --brown-light: #A0714F;
  --red: #E63228;
  --orange: #F28A1F;
  --yellow: #F7E034;
  --green: #5BBD2B;
  --cyan: #29ABE2;
  --blue: #2D3A8C;
  --pink: #D94F8A;
  --white: #FFFFFF;

  /* CTA-only shades: darkened so white text meets WCAG AA (>=4.5:1) */
  --red-cta: #C42017;
  --red-cta-hover: #A81C14;

  /* Sticky nav height — drives anchor scroll offset */
  --nav-h: 72px;

  /* Refined accents */
  --gold: #C8A45A;
  --warm-black: #1C1410;
  --cream-dark: #F5EDE0;

  /* Semantic */
  --bg: var(--cream);
  --text: var(--brown-dark);
  --text-light: var(--brown-mid);
  --card-bg: var(--white);
  --card-shadow: 0 2px 12px rgba(92, 51, 23, 0.06), 0 1px 3px rgba(92, 51, 23, 0.04);
  --card-shadow-hover: 0 20px 40px rgba(92, 51, 23, 0.12), 0 8px 16px rgba(92, 51, 23, 0.08);
  --card-shadow-active: 0 30px 60px rgba(92, 51, 23, 0.15), 0 12px 24px rgba(92, 51, 23, 0.1);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-pad: clamp(3rem, 8vw, 7rem);
  --container-max: 1240px;
  --gap: 1.5rem;

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Skip-to-content link — visible only on keyboard focus */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 500;
  background: var(--brown-dark);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 1rem;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  -webkit-font-smoothing: antialiased;
  animation: pageEnter 0.6s ease both;
}

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

body.modal-open {
  overflow: hidden;
}

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

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--orange);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid rgba(41, 171, 226, 0.45);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--brown-dark);
  line-height: 1.2;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 249, 240, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(92, 51, 23, 0.1);
  padding: 0.75rem 0;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--brown-dark);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--orange);
}

.nav .btn-cta {
  padding: 0.5rem 1rem;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--red-cta);
  color: var(--white) !important;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn-cta:hover {
  background: var(--red-cta-hover);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(226, 50, 40, 0.35), 0 0 0 1px rgba(226, 50, 40, 0.1);
}

.btn-cta:hover::before {
  opacity: 1;
}

.btn-cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(226, 50, 40, 0.2);
}

.btn-cta:focus-visible,
.btn-secondary:focus-visible,
.btn-cta-light:focus-visible {
  box-shadow: 0 0 0 4px rgba(41, 171, 226, 0.2);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--brown-dark);
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 360px;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    background: var(--cream);
    padding: 6rem 1.5rem 2rem;
    gap: 0.75rem;
    box-shadow: none;
    transition: right var(--transition);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 52px;
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    font-size: 1.05rem;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(242, 138, 31, 0.12);
    color: var(--orange);
  }

  .nav .btn-cta {
    justify-content: center;
    padding: 0.95rem 1.25rem;
    margin-top: 0.5rem;
  }

  .nav-links.open {
    right: 0;
  }

  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
  }

  .mobile-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }
}

/* --- Hero --- */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(230, 50, 40, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(41, 171, 226, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 80%, rgba(242, 138, 31, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 70% 60%, rgba(91, 189, 43, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 30% 70%, rgba(217, 79, 138, 0.06) 0%, transparent 60%);
  animation: meshFloat 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes meshFloat {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: 1; }
  25% { transform: scale(1.05) translate(2%, -1%); opacity: 0.9; }
  50% { transform: scale(1.02) translate(-1%, 2%); opacity: 1; }
  75% { transform: scale(1.04) translate(1%, 1%); opacity: 0.95; }
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-logo {
  width: clamp(180px, 30vw, 320px);
  margin-bottom: 2rem;
  filter: drop-shadow(0 8px 30px rgba(92, 51, 23, 0.12));
  position: relative;
  z-index: 2;
  animation: heroFadeUp 1s var(--transition) both;
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  margin-bottom: 1rem;
  color: var(--brown-dark);
  position: relative;
  z-index: 2;
  letter-spacing: -0.02em;
  animation: heroFadeUp 1s var(--transition) 0.15s both;
}

.hero p {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: var(--brown-mid);
  max-width: 620px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  position: relative;
  z-index: 2;
  animation: heroFadeUp 1s var(--transition) 0.3s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 2;
  animation: heroFadeUp 1s var(--transition) 0.45s both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal system */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--brown-dark);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid var(--brown-mid);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-secondary:hover {
  background: var(--brown-dark);
  color: var(--white);
  border-color: var(--brown-dark);
}

/* --- Spray Paint Banner --- */
.spray-banner {
  background: #1a1a1a;
  padding: 0;
  overflow: hidden;
  position: relative;
}

.spray-banner-inner {
  position: relative;
  padding: clamp(1rem, 2.5vw, 1.5rem) 1.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
  overflow: hidden;
}

.spray-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(230, 50, 40, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(41, 171, 226, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(242, 138, 31, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Speckle noise overlay */
.spray-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  background-size: 150px 150px;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.spray-by {
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
  font-weight: 600;
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
}

.spray-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.spray-word {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.1rem, 3vw, 2rem);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-shadow:
    0 0 20px rgba(255, 255, 255, 0.3),
    0 0 40px rgba(255, 255, 255, 0.1),
    2px 2px 0px rgba(0, 0, 0, 0.8),
    -1px -1px 0px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(242, 138, 31, 0.2);
  filter: url('#spray-filter');
  position: relative;
}

.spray-word::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 5%;
  right: 5%;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  filter: blur(1px);
}

.spray-x {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(0.85rem, 2vw, 1.4rem);
  color: var(--orange);
  text-shadow:
    0 0 30px rgba(242, 138, 31, 0.6),
    0 0 60px rgba(242, 138, 31, 0.3),
    2px 2px 0px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.1em;
  transform: rotate(-5deg);
  display: inline-block;
}

/* Paint drips */
.spray-drips {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  z-index: 1;
  pointer-events: none;
}

.drip {
  position: absolute;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.05));
  border-radius: 0 0 2px 2px;
}

.drip-1 { left: 15%; height: 18px; }
.drip-2 { left: 35%; height: 12px; opacity: 0.7; }
.drip-3 { left: 52%; height: 22px; background: linear-gradient(to bottom, rgba(242, 138, 31, 0.4), rgba(242, 138, 31, 0.05)); }
.drip-4 { left: 70%; height: 14px; }
.drip-5 { left: 88%; height: 10px; opacity: 0.5; }

@media (max-width: 640px) {
  .spray-text {
    flex-direction: column;
    gap: 0.25rem;
  }

  .spray-x {
    transform: rotate(0deg);
  }
}

/* --- Inquiry Button --- */
.btn-inquire {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  background: var(--orange);
  color: var(--white) !important;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.btn-inquire:hover {
  background: var(--red);
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(242, 138, 31, 0.4);
}

/* --- Section Common --- */
.section {
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-count {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 50px;
  vertical-align: middle;
  margin-left: 0.5rem;
}

/* Alternating section backgrounds */
.section-alt {
  background: var(--white);
}

.loading-state,
.error-state {
  text-align: center;
  padding: 2rem 1rem;
}

.loading-state {
  color: var(--text-light);
}

.loading-spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  border: 3px solid rgba(92, 51, 23, 0.12);
  border-top-color: var(--orange);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Filter Bar --- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-pill {
  padding: 0.4rem 1rem;
  border-radius: 50px;
  border: 2px solid var(--brown-light);
  background: transparent;
  color: var(--brown-dark);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.filter-pill:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.filter-pill:focus-visible,
.event-tab:focus-visible {
  border-color: var(--cyan);
}

.filter-pill.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

/* Discipline-colored pills when active */
.filter-pill[data-color="red"].active { background: var(--red); border-color: var(--red); }
.filter-pill[data-color="orange"].active { background: var(--orange); border-color: var(--orange); }
.filter-pill[data-color="yellow"].active { background: #D4B800; border-color: #D4B800; }
.filter-pill[data-color="green"].active { background: var(--green); border-color: var(--green); }
.filter-pill[data-color="cyan"].active { background: var(--cyan); border-color: var(--cyan); }
.filter-pill[data-color="pink"].active { background: var(--pink); border-color: var(--pink); }
.filter-pill[data-color="blue"].active { background: var(--blue); border-color: var(--blue); }

/* --- Search Input --- */
.search-wrap {
  max-width: 400px;
  margin: 0 auto 2rem;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border: 2px solid rgba(92, 51, 23, 0.15);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--cyan);
}

.search-input::placeholder {
  color: var(--brown-mid);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brown-mid);
  pointer-events: none;
}

/* --- Artist Cards --- */
.artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
}

.artist-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-bounce);
  cursor: pointer;
  position: relative;
}

.artist-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition);
  background: linear-gradient(135deg, rgba(242, 138, 31, 0.04), rgba(230, 50, 40, 0.02));
  pointer-events: none;
}

.artist-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--card-shadow-hover);
}

.artist-card:hover::after {
  opacity: 1;
}

.artist-card:focus-visible {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--card-shadow-hover);
}

.artist-card.featured {
  border: 2px solid var(--yellow);
}

.artist-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--cream);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.artist-photo-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
}

.artist-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.artist-card .location {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.discipline-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--white);
}

.badge-painting { background: var(--red); }
.badge-sculpture { background: var(--orange); }
.badge-photography { background: var(--cyan); }
.badge-music { background: var(--blue); }
.badge-poetry { background: var(--pink); }
.badge-dance { background: var(--pink); }
.badge-theater { background: var(--red); }
.badge-crafts { background: var(--orange); }
.badge-murals { background: var(--green); }
.badge-digital { background: var(--cyan); }
.badge-mixed-media { background: var(--brown-mid); }
.badge-film { background: var(--blue); }
.badge-ceramics { background: var(--orange); }
.badge-textile { background: var(--pink); }
.badge-design { background: var(--cyan); }

.artist-bio {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.artist-links {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.artist-links a {
  color: var(--brown-light);
  font-size: 1.1rem;
  transition: color var(--transition);
}

.artist-links a:hover {
  color: var(--orange);
}

.artist-links a:focus-visible {
  color: var(--orange);
}

/* --- Artist Detail Modal --- */
.artist-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.artist-modal {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 550px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  text-align: center;
}

.artist-modal-photo {
  width: 120px;
  height: 120px;
}

.artist-modal-placeholder {
  font-size: 3rem;
}

.artist-modal-title {
  margin-top: 1rem;
  font-size: 1.4rem;
}

.artist-modal-badges {
  margin-top: 0.75rem;
}

.artist-modal-bio {
  margin-top: 1rem;
  line-height: 1.7;
  color: var(--brown-mid);
}

.artist-modal-links {
  margin-top: 1.25rem;
  font-size: 1.3rem;
}

.artist-modal-work {
  margin-top: 1.5rem;
  text-align: left;
}

.artist-modal-work h4 {
  margin-bottom: 0.75rem;
}

.artist-modal-work-item {
  padding: 0.65rem 0;
  border-top: 1px solid rgba(92, 51, 23, 0.12);
}

.artist-modal-work-meta {
  color: var(--brown-mid);
  font-size: 0.85rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--brown-light);
  transition: color var(--transition);
}

.modal-close:hover {
  color: var(--red);
}

/* --- Gallery --- */
.gallery-grid {
  columns: 3 280px;
  column-gap: var(--gap);
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: var(--gap);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all var(--transition-bounce);
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 40px rgba(92, 51, 23, 0.18);
}

.gallery-item:focus-visible {
  transform: scale(1.03);
  box-shadow: 0 16px 40px rgba(92, 51, 23, 0.18);
}

.gallery-item img {
  width: 100%;
  display: block;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(92, 51, 23, 0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:focus-visible .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.gallery-overlay p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
}

.gallery-inquire-tag {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(242, 138, 31, 0.9);
  color: var(--white);
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
}

/* Gallery placeholder (when no images) */
.gallery-placeholder {
  background: linear-gradient(135deg, var(--cream), var(--white));
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.gallery-placeholder.landscape {
  aspect-ratio: 4/3;
}

.gallery-placeholder.square {
  aspect-ratio: 1;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-content {
  max-width: 900px;
  width: 100%;
  text-align: center;
}

.lightbox-content img {
  max-height: 70vh;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 8px;
}

.lightbox-placeholder {
  max-width: 500px;
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  font-size: 5rem;
}

.lightbox-info {
  color: var(--white);
  margin-top: 1.5rem;
}

.lightbox-info h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.lightbox-info p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.lightbox-description {
  margin-top: 0.5rem;
}

.lightbox-info .artist-link {
  color: var(--cyan);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem;
  border-radius: 50%;
  opacity: 0.7;
  transition: all var(--transition);
}

.lightbox-nav:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
  left: 1.5rem;
}

.lightbox-next {
  right: 1.5rem;
}

/* --- Local Studios --- */
.studios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--gap);
}

.studio-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all var(--transition);
}

.studio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.studio-carousel {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--cream);
}

.studio-carousel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.studio-carousel-img.active {
  opacity: 1;
}

.studio-carousel-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
}

.studio-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.studio-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  transition: background var(--transition);
}

.studio-dot.active::after {
  background: var(--white);
}

.studio-info {
  padding: 1.5rem;
}

.studio-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.studio-description {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.studio-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.studio-social {
  font-size: 0.85rem;
  color: var(--brown-mid);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.studio-social:hover {
  color: var(--orange);
}

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

/* --- Events --- */
.event-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.event-tab {
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  border: 2px solid var(--brown-light);
  background: transparent;
  color: var(--brown-dark);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.event-tab.active {
  background: var(--brown-dark);
  border-color: var(--brown-dark);
  color: var(--white);
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  max-width: 800px;
  margin: 0 auto;
}

.event-card {
  display: flex;
  gap: 1.5rem;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: all var(--transition);
}

.event-card:hover {
  box-shadow: var(--card-shadow-hover);
}

.event-date-chip {
  flex-shrink: 0;
  width: 70px;
  text-align: center;
  background: var(--red);
  color: var(--white);
  border-radius: 12px;
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.event-date-chip .month {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-date-chip .day {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}

.event-details h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.event-meta {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.event-meta span {
  margin-right: 1rem;
}

.event-details p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.event-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 0.85rem;
}

.event-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  background: var(--cyan);
  color: var(--white);
  margin-bottom: 0.5rem;
}

.event-category-workshop { background: var(--green); }
.event-category-exhibition { background: var(--orange); }
.event-category-performance { background: var(--pink); }
.event-category-meetup { background: var(--cyan); }
.event-category-open-mic { background: var(--red); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-light);
}

.empty-state .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--gap);
  margin-top: 2rem;
}

.about-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-bounce);
  border: 1px solid transparent;
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(242, 138, 31, 0.15);
}

.about-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.about-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.about-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.about-card-actions {
  margin-top: 1.25rem;
}

.mission-text {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
}

.mission-text p + p {
  margin-top: 1rem;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--warm-black) 0%, var(--brown-dark) 50%, var(--brown-mid) 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 2rem;
  border-radius: var(--radius-xl);
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(242, 138, 31, 0.15), transparent 60%);
  pointer-events: none;
}

.cta-banner h3 {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  position: relative;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

.btn-cta-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  color: var(--brown-dark) !important;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-cta-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* --- Footer --- */
.footer {
  background: var(--warm-black);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 2.5rem;
  text-align: center;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 138, 31, 0.4), rgba(230, 50, 40, 0.3), rgba(41, 171, 226, 0.3), transparent);
}

.footer-logo {
  height: 60px;
  margin: 0 auto 1.5rem;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  transition: opacity var(--transition);
}

.footer-logo:hover {
  opacity: 1;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

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

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin-top: 1rem;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
  transition: color var(--transition);
}

.back-to-top:hover {
  color: var(--white);
}

.back-to-top:focus-visible {
  color: var(--white);
}

/* --- Utilities --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Transition helpers for Alpine */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.3s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

/* Card appear animation */
@keyframes cardAppear {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-animate {
  animation: cardAppear 0.3s ease forwards;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .hero {
    min-height: 80vh;
  }

  .hero-logo {
    width: clamp(220px, 60vw, 280px);
  }

  .mission-text {
    text-align: left;
  }

  .event-card {
    flex-direction: column;
  }

  .event-date-chip {
    width: 100%;
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
  }

  .event-date-chip .day {
    font-size: 1.2rem;
  }

  .gallery-grid {
    columns: 2 150px;
  }

  .gallery-overlay {
    opacity: 1;
    min-height: 40%;
    background: linear-gradient(to top, rgba(92, 51, 23, 0.88) 0%, rgba(92, 51, 23, 0.18) 100%);
  }

  .lightbox-nav {
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
  }

  .lightbox {
    padding: 1rem;
  }

  .lightbox-content {
    width: 100%;
  }

  .btn-inquire {
    font-size: 0.8rem;
    padding: 0.5rem 1.2rem;
  }

  .artist-modal {
    padding: 1.5rem;
    border-radius: 16px;
    max-height: 90vh;
  }

  .artist-modal-photo {
    width: 90px;
    height: 90px;
  }

  .cta-banner {
    padding: 2rem 1rem;
    border-radius: 14px;
  }

  .cta-banner h3 {
    font-size: 1.2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    columns: 1;
  }

  .artist-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    padding: 0 1rem;
  }

  .hero-buttons .btn-cta,
  .hero-buttons .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .lightbox-info h3 {
    font-size: 1.1rem;
  }

  .lightbox-info p {
    font-size: 0.85rem;
  }
}


/* --- Teaser Landing Page --- */
.teaser-nav {
  justify-content: space-between;
}
.teaser-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}
/* --- Premium Finishes --- */

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: rgba(92, 51, 23, 0.2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(92, 51, 23, 0.35); }



.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  animation: shapeFloat 15s ease-in-out infinite;
  pointer-events: none;
}
.hero-shape:nth-child(1) { width: 300px; height: 300px; background: var(--red); top: 10%; left: -5%; }
.hero-shape:nth-child(2) { width: 200px; height: 200px; background: var(--cyan); top: 50%; right: -3%; animation-delay: -5s; }
.hero-shape:nth-child(3) { width: 250px; height: 250px; background: var(--orange); bottom: 5%; left: 20%; animation-delay: -10s; }

@keyframes shapeFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.05); }
  50% { transform: translate(-15px, 25px) scale(0.95); }
  75% { transform: translate(20px, 15px) scale(1.02); }
}

.section-divider {
  height: 1px;
  border: none;
  background: linear-gradient(90deg, transparent 0%, rgba(92, 51, 23, 0.12) 20%, rgba(242, 138, 31, 0.2) 50%, rgba(92, 51, 23, 0.12) 80%, transparent 100%);
  margin: 0;
}

.teaser-hero { min-height: 60vh; }

/* --- Empty State Improvements --- */
.empty-state .icon-wrap {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(242, 138, 31, 0.08);
  border-radius: 50%;
  margin: 0 auto 1rem;
  font-size: 2rem;
}

.empty-state .btn-secondary {
  margin-top: 1rem;
}

/* --- Minimum tap-target sizing for icon-only controls (WCAG 2.5.8) --- */
.modal-close,
.lightbox-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.artist-links a,
.studio-dot {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* studio-dot keeps its small visual dot but a larger hit area via padding */
.studio-dot {
  min-width: 24px;
  min-height: 24px;
  padding: 10px;
  background-clip: content-box;
}
