@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&family=DM+Serif+Display:ital@0;1&display=swap');

/* ── Variables ── */
:root {
  --black:   #0e0a14;
  --dark:    #150f1f;
  --dark2:   #1e1630;
  --gray:    #2e2440;
  --mid:     #6b5888;
  --white:   #fafafa;
  --accent:  #9080b4;
  --accent-h:#7a6898;
  --gold:    #b09ec2;
  --r:       4px;
  --r-lg:    14px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* ── Typography ── */
.sec-label {
  font-family: 'Oswald', sans-serif;
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.sec-label.light { color: rgba(255,255,255,.4); }

.sec-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .01em;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.sec-title em {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  padding: .85rem 2rem;
  border-radius: var(--r);
  font-family: 'Oswald', sans-serif;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease, color .22s ease;
  white-space: nowrap;
}
.btn-light {
  background: var(--white);
  color: var(--black);
}
.btn-light:hover {
  background: var(--gold);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(144,128,180,.35);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.35);
}
.btn-ghost:hover {
  border-color: white;
  background: rgba(255,255,255,.07);
  transform: translateY(-2px);
}
.btn-accent {
  background: var(--accent);
  color: white;
}
.btn-accent:hover {
  background: var(--accent-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(144,128,180,.4);
}
.btn-dark-inv {
  background: var(--black);
  color: white;
  border: 1px solid rgba(255,255,255,.25);
}
.btn-dark-inv:hover {
  background: var(--dark);
  border-color: white;
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 2.5rem;
  transition: background .35s, padding .3s, backdrop-filter .35s;
}
.navbar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-bottom: 1px solid transparent;
  transition: border-color .35s;
  pointer-events: none;
}
.navbar.scrolled {
  background: rgba(14,8,28,.94);
  backdrop-filter: blur(20px);
  padding: .9rem 2.5rem;
}
.navbar.scrolled::after { border-color: rgba(255,255,255,.07); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
}
.nav-logo img {
  height: 30px;
  width: 30px;
  border-radius: 50%;
}
.nav-logo span {
  font-family: 'Oswald', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .22em;
  color: white;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-family: 'Oswald', sans-serif;
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: white; }

.nav-ig {
  color: rgba(255,255,255,.5);
  transition: color .2s;
  text-decoration: none;
  line-height: 0;
}
.nav-ig:hover { color: white; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 7px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 1.5px;
  background: white;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
  transform-origin: center;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { transform: translateY(-8.5px) rotate(-45deg); }

/* ══════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('bg_sds.png') center / cover no-repeat;
  transform: scale(1.04);
  animation: heroScale 8s ease forwards;
}
@keyframes heroScale {
  to { transform: scale(1); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(14, 8, 28, .95) 0%,
    rgba(50, 30, 80, .72) 55%,
    rgba(90, 60, 120, .30) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 9rem 2.5rem 5rem;
  max-width: 1000px;
}
.hero-eyebrow {
  font-family: 'Oswald', sans-serif;
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
  animation: fadeUp .8s ease both;
}
.hero-title {
  display: flex;
  flex-direction: column;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(5.5rem, 15vw, 13rem);
  line-height: .88;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.ht {
  display: block;
  animation: fadeUp .9s cubic-bezier(.22,1,.36,1) both;
}
.ht:nth-child(2) { animation-delay: .1s; }
.ht:nth-child(3) { animation-delay: .2s; }
.ht.gold { color: var(--gold); }

.hero-sub {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: clamp(1rem, 2.2vw, 1.45rem);
  color: rgba(255,255,255,.58);
  margin-bottom: 2.5rem;
  animation: fadeUp .9s ease .32s both;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp .9s ease .42s both;
}

.hero-bottom {
  position: absolute;
  bottom: 2rem;
  left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 2.5rem;
  z-index: 1;
  animation: fadeUp .9s ease .6s both;
}
.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
}
.scroll-word {
  font-family: 'Oswald', sans-serif;
  font-size: .6rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,.4) 0%, transparent 100%);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
.hero-handle {
  font-family: 'Oswald', sans-serif;
  font-size: .7rem;
  letter-spacing: .18em;
  color: rgba(255,255,255,.3);
  text-decoration: none;
  transition: color .2s;
}
.hero-handle:hover { color: white; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: .28; }
  50%       { opacity: .85; }
}

/* ══════════════════════════════════════════════════
   MARQUEE
══════════════════════════════════════════════════ */
.marquee {
  background: var(--accent);
  overflow: hidden;
  white-space: nowrap;
  padding: .9rem 0;
}
.marquee-track {
  display: inline-flex;
  gap: 1.8rem;
  animation: marquee 20s linear infinite;
}
.marquee-track span {
  font-family: 'Oswald', sans-serif;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.95);
}
.marquee-track .sep {
  color: rgba(255,255,255,.35);
  letter-spacing: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════════ */
.about {
  padding: 8rem 0;
  background: var(--dark);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-img-wrap { position: relative; }
.about-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--r-lg);
}
.about-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--gold);
  color: white;
  padding: 1.3rem 1.7rem;
  border-radius: var(--r-lg);
  text-align: center;
}
.badge-n {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}
.badge-t {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.45;
}

.about-body {
  font-size: .975rem;
  line-height: 1.82;
  color: rgba(255,255,255,.58);
  margin-bottom: 2.5rem;
}

.pillars {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.pillar {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}
.pillar-icon {
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: .15rem;
}
.pillar strong {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: white;
  margin-bottom: .28rem;
  letter-spacing: .01em;
}
.pillar p {
  font-size: .83rem;
  color: rgba(255,255,255,.45);
  line-height: 1.65;
  margin: 0;
}

/* ══════════════════════════════════════════════════
   CLASSES
══════════════════════════════════════════════════ */
.classes {
  padding: 8rem 0;
  background: var(--black);
}
.classes-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 2rem;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(176,158,194,.12);
}
.classes-btn-top { display: none; }

.classes-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 3.5rem;
}

.class-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2rem 1rem;
  border-bottom: 1px solid rgba(176,158,194,.1);
  transition: background .25s, padding-left .25s;
  border-radius: var(--r);
}
.class-item:first-child { border-top: 1px solid rgba(176,158,194,.1); }
.class-item:hover {
  background: rgba(144,120,176,.07);
  padding-left: 1.5rem;
}
.class-item:hover .ci-body h3 { color: var(--gold); }

.ci-n {
  font-family: 'Oswald', sans-serif;
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .22em;
  color: rgba(255,255,255,.18);
  align-self: start;
  padding-top: .3rem;
}
.ci-body h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: .015em;
  margin-bottom: .38rem;
  transition: color .25s;
}
.ci-body p {
  font-size: .855rem;
  color: rgba(255,255,255,.42);
  line-height: 1.65;
  max-width: 500px;
}
.ci-level {
  font-family: 'Oswald', sans-serif;
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.22);
  white-space: nowrap;
}

.classes-footer { text-align: center; }

/* ══════════════════════════════════════════════════
   SEASON
══════════════════════════════════════════════════ */
.season {
  padding: 8rem 0;
  background: var(--dark2);
}
.season-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.season-desc {
  font-size: .975rem;
  line-height: 1.82;
  color: rgba(255,255,255,.55);
  margin-bottom: 2rem;
}
.season-feats {
  list-style: none;
  margin-bottom: 2.5rem;
}
.season-feats li {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  padding: .7rem 0;
  border-bottom: 1px solid rgba(176,158,194,.1);
  display: flex;
  gap: .8rem;
  align-items: center;
}
.season-feats li::before {
  content: '—';
  color: var(--accent);
  flex-shrink: 0;
  font-family: 'Oswald', sans-serif;
}

.season-card {
  background: linear-gradient(135deg, var(--accent) 0%, #3d2858 100%);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.sc-wrap { padding: 3rem; }
.sc-year {
  font-family: 'Oswald', sans-serif;
  font-size: 5.5rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(255,255,255,.12);
  letter-spacing: -.02em;
  margin-bottom: -.5rem;
}
.sc-eyebrow {
  font-family: 'Oswald', sans-serif;
  font-size: .7rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: .3rem;
}
.sc-big {
  font-family: 'Oswald', sans-serif;
  font-size: 3.8rem;
  font-weight: 700;
  color: white;
  letter-spacing: .02em;
  line-height: 1;
}
.sc-rule {
  width: 2.5rem;
  height: 2px;
  background: rgba(255,255,255,.35);
  margin: 1.5rem 0;
}
.sc-rows { display: flex; flex-direction: column; gap: 0; }
.sc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .65rem 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.sc-row:last-child { border-bottom: none; }
.sc-row span {
  font-size: .73rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.sc-row strong {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: white;
}

/* ══════════════════════════════════════════════════
   AUDITIONS
══════════════════════════════════════════════════ */
.auditions {
  padding: 8rem 0;
  background: var(--accent);
}
.aud-inner { max-width: 720px; }
.aud-eyebrow {
  font-family: 'Oswald', sans-serif;
  font-size: .7rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 1rem;
}
.aud-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(3.8rem, 11vw, 8.5rem);
  font-weight: 700;
  line-height: .88;
  text-transform: uppercase;
  color: white;
  margin-bottom: 1.5rem;
}
.aud-title em {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}
.aud-desc {
  font-size: .975rem;
  line-height: 1.8;
  color: rgba(255,255,255,.72);
  max-width: 520px;
  margin-bottom: 2.5rem;
}

/* ══════════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════════ */
.contact {
  padding: 8rem 0;
  background: var(--dark);
}
.contact-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.contact-logo {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  opacity: .75;
}
.contact-inner p {
  font-size: .975rem;
  color: rgba(255,255,255,.5);
  line-height: 1.78;
}
.contact-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter {
  width: 100%;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(176,158,194,.12);
}
.nl-label {
  font-family: 'Oswald', sans-serif;
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 1.2rem;
}
.nl-form {
  display: flex;
  gap: .75rem;
  width: 100%;
}
.nl-input {
  flex: 1;
  padding: .85rem 1.3rem;
  background: rgba(144,120,176,.07);
  border: 1px solid rgba(176,158,194,.15);
  border-radius: var(--r);
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: .875rem;
  outline: none;
  transition: border-color .22s;
}
.nl-input::placeholder { color: rgba(255,255,255,.28); }
.nl-input:focus { border-color: var(--accent); }

/* ══════════════════════════════════════════════════
   FACULTY
══════════════════════════════════════════════════ */
.faculty {
  padding: 8rem 0;
  background: var(--dark2);
}
.faculty-head {
  margin-bottom: 3.5rem;
}
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}
.faculty-card {
  background: rgba(144,120,176,.05);
  border: 1px solid rgba(176,158,194,.1);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .25s, transform .25s, background .25s;
}
.faculty-card:hover {
  border-color: rgba(176,158,194,.28);
  background: rgba(144,120,176,.09);
  transform: translateY(-5px);
}
.fc-img-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--gray);
}
.fc-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255,255,255,.12);
  background: linear-gradient(145deg, var(--gray) 0%, var(--dark) 100%);
}
.fc-img-wrap img,
.fc-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .4s ease;
}
.faculty-card:hover .fc-img-wrap img,
.faculty-card:hover .fc-photo { transform: scale(1.05); }

.fc-info {
  padding: 1.4rem;
}
.fc-info h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: white;
  margin-bottom: .35rem;
}
.fc-role {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .85rem;
}
.fc-info p {
  font-size: .82rem;
  line-height: 1.65;
  color: rgba(255,255,255,.42);
}

.faculty-cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(176,158,194,.1);
}
.faculty-cta p {
  font-size: .875rem;
  color: rgba(255,255,255,.4);
  letter-spacing: .02em;
}

@media (max-width: 1024px) {
  .faculty-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .faculty-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
.footer {
  background: var(--black);
  border-top: 1px solid rgba(176,158,194,.1);
  padding: 2.5rem 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 2rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: .8rem;
}
.footer-logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  opacity: .5;
}
.footer-brand span {
  font-family: 'Oswald', sans-serif;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
}
.footer-nav { display: flex; gap: 2rem; }
.footer-nav a {
  font-family: 'Oswald', sans-serif;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  text-decoration: none;
  transition: color .2s;
}
.footer-nav a:hover { color: white; }
.footer-social { display: flex; gap: 1.5rem; }
.footer-social a {
  font-size: .78rem;
  color: rgba(255,255,255,.35);
  text-decoration: none;
  transition: color .2s;
}
.footer-social a:hover { color: white; }
.footer-copy {
  font-size: .7rem;
  color: rgba(255,255,255,.18);
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .about-grid { gap: 4rem; }
  .season-grid { gap: 3rem; }
}

@media (max-width: 900px) {
  .about-grid,
  .season-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .about-img { aspect-ratio: 4/3; }
  .about-badge { right: 1rem; bottom: 1rem; }
  .classes-top { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .classes-btn-top { display: inline-flex; }
  .classes-footer { display: none; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 1.2rem; }
  .footer-brand, .footer-nav, .footer-social { justify-content: center; }
}

@media (max-width: 768px) {
  .navbar { padding: 1.2rem 1.5rem; }
  .navbar.scrolled { padding: .85rem 1.5rem; }
  .nav-ig { display: none; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(14,8,28,.98);
    backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    display: none;
    z-index: 250;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.5rem; color: white !important; }

  .hero-content { padding: 8rem 1.5rem 5rem; }
  .hero-bottom { padding: 0 1.5rem; }
  .hero-title { font-size: clamp(4.5rem, 22vw, 7.5rem); }

  .class-item { grid-template-columns: 50px 1fr; }
  .ci-level { display: none; }

  .about, .classes, .season, .auditions, .contact { padding: 5rem 0; }

  .nl-form { flex-direction: column; }
}

/* ══════════════════════════════════════════════════
   UPLOAD TRIGGER & MODAL
══════════════════════════════════════════════════ */
.upload-trigger {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,.25);
  padding: .25rem;
  line-height: 0;
  transition: color .2s;
  margin-left: auto;
}
.upload-trigger:hover { color: var(--gold); }

/* Modal overlay */
.upload-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.upload-modal.open { display: flex; }

.um-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14,8,28,.82);
  backdrop-filter: blur(4px);
}

/* Panel */
.um-panel {
  position: relative;
  background: var(--dark);
  border: 1px solid rgba(176,158,194,.1);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  width: min(480px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  z-index: 1;
}

.um-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: rgba(255,255,255,.4);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: color .2s;
}
.um-close:hover { color: white; }

.um-icon {
  color: var(--gold);
  display: flex;
  justify-content: center;
}

.um-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  text-align: center;
  margin: 0;
}

.um-sub {
  font-size: .875rem;
  color: rgba(255,255,255,.45);
  text-align: center;
  margin: 0;
}
.um-sub code {
  background: rgba(255,255,255,.08);
  padding: .1em .4em;
  border-radius: 4px;
  font-size: .8rem;
  color: var(--gold);
}

/* Form */
.um-form { display: flex; flex-direction: column; gap: 1rem; }

.um-field { display: flex; flex-direction: column; gap: .4rem; }
.um-field label {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.um-field input {
  background: rgba(144,120,176,.08);
  border: 1px solid rgba(176,158,194,.15);
  border-radius: 6px;
  padding: .65rem .9rem;
  color: white;
  font-size: .95rem;
  outline: none;
  transition: border-color .2s;
}
.um-field input:focus { border-color: var(--gold); }

.um-submit { width: 100%; }

.um-error {
  font-size: .85rem;
  color: #ff6b6b;
  text-align: center;
  min-height: 1.2em;
}

/* Drop zone */
.um-drop-zone {
  border: 2px dashed rgba(255,255,255,.18);
  border-radius: 10px;
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: border-color .2s, background .2s;
}
.um-drop-zone:hover,
.um-drop-zone.drag-over {
  border-color: var(--gold);
  background: rgba(144,120,176,.08);
}
.um-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.um-drop-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.45);
  pointer-events: none;
}
.um-drop-label svg { color: rgba(255,255,255,.3); }
.um-drop-label span { font-size: .9rem; }
.um-drop-label strong { color: var(--gold); }
.um-drop-label small { font-size: .75rem; color: rgba(255,255,255,.28); }

/* Preview grid */
.um-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: .5rem;
}
.um-thumb {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 1;
  background: rgba(144,120,176,.08);
}
.um-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.um-thumb span {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  font-size: .6rem;
  background: rgba(0,0,0,.7);
  color: rgba(255,255,255,.7);
  padding: .2rem .3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.um-thumb button {
  position: absolute;
  top: .25rem; right: .25rem;
  background: rgba(0,0,0,.65);
  border: none;
  color: white;
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: .85rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.um-thumb button:hover { background: #c00; }

/* Actions */
.um-actions { display: flex; gap: .75rem; justify-content: flex-end; }

/* Result */
.um-result { font-size: .875rem; }
.um-success { color: #6fcf97; }
.um-result ul { margin: .5rem 0 0 1.2rem; color: #ff6b6b; font-size: .8rem; }

/* Step toggle */
.hidden { display: none !important; }

