@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&display=swap');

:root {
  --bg: #1a1410;
  --bg2: #322C25;
  --cream: #f3ede0;
  --muted: #b5a590;
  --flare: #453128;
  --flare-light: #B28558;
  --gold: #B28558;
  --accent-deep: #2C0E11;
  --line: rgba(243, 237, 224, .14);
  --font-d: 'Fraunces', serif;
  --font-s: 'Yeseva One', serif;
  --font-b: 'Plus Jakarta Sans', sans-serif;
  --font-script: 'Fraunces', serif;
  --font-head: 'Bricolage Grotesque', 'Space Grotesk', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(178, 133, 88, 0.4) var(--bg);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(178, 133, 88, 0.38);
  border-radius: 99px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

::-webkit-scrollbar-corner {
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-b);
  overflow-x: hidden
}

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

a {
  color: inherit;
  text-decoration: none
}

.tape {
  display: none
}

/* loader */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .8s cubic-bezier(.76, 0, .24, 1)
}

#loader::before {
  content: "";
  position: absolute;
  width: 80vmax;
  height: 80vmax;
  background: radial-gradient(circle, rgba(69, 49, 40, .2), transparent 60%);
  pointer-events: none
}

#loader::after {
  display: none
}

body:not([data-loading="true"]) #loader {
  transform: translateY(-101%)
}

.loader-inner {
  text-align: center;
  width: min(420px, 80vw)
}

.loader-logo {
  font-family: var(--font-d);
  font-size: clamp(2rem, 6vw, 3.4rem);
  letter-spacing: .02em
}

.loader-logo span {
  color: var(--flare-light)
}

.loader-count {
  font-family: var(--font-d);
  font-size: 4rem;
  color: var(--gold)
}

.loader-bar {
  height: 2px;
  background: var(--line);
  margin: 14px 0
}

.loader-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--flare)
}

.loader-sub {
  font-size: .65rem;
  letter-spacing: .25em;
  color: var(--muted)
}

/* nav */
#nav {
  position: fixed;
  top: 10px;
  left: 0;
  right: 0;
  z-index: 300;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  mix-blend-mode: normal;
  transition: transform .35s ease, opacity .35s ease
}

#nav.nav-hidden {
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none
}

.brand {
  font-family: var(--font-d);
  font-size: 1.4rem;
  letter-spacing: .03em
}

.brand em {
  font-style: normal;
  color: var(--flare-light);
  font-size: .85rem;
  margin-left: 6px
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase
}

.nav-links a {
  opacity: .85
}

.nav-links a:hover {
  color: var(--gold)
}

.pill {
  border: 1px solid var(--cream);
  border-radius: 99px;
  padding: 8px 18px
}

.pill:hover {
  background: var(--cream);
  color: #000 !important
}

#menuBtn {
  display: none;
  background: none;
  border: 0;
  flex-direction: column;
  gap: 6px;
  cursor: pointer
}

#menuBtn span {
  display: block;
  width: 30px;
  height: 2px;
  background: var(--cream)
}

#menu {
  position: fixed;
  inset: 0;
  background: #1a1410;
  z-index: 290;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 8vw 30px;
  transform: translateY(-102%);
  transition: .6s cubic-bezier(.76, 0, .24, 1)
}

#menu.open {
  transform: none
}

#menu nav {
  display: flex;
  flex-direction: column;
  gap: 4px
}

#menu nav a {
  font-family: var(--font-d);
  font-size: clamp(2rem, 8vw, 4.5rem);
  line-height: 1;
  text-transform: uppercase
}

#menu nav a i {
  font-family: var(--font-b);
  font-size: .8rem;
  color: var(--flare-light);
  margin-right: 14px;
  font-style: normal
}

#menu nav a:hover {
  color: var(--gold)
}

.menu-bg-video {
  position: absolute;
  inset: 0;
  opacity: .22;
  z-index: -1
}

.menu-bg-video video {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.menu-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  color: var(--muted);
  font-size: .85rem
}

/* hero */
#hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 90px 28px 26px;
  overflow: hidden
}

.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1
}

.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05)
}

.hero-grade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 20, 16, .6), rgba(26, 20, 16, .25) 40%, rgba(26, 20, 16, .9) 90%), radial-gradient(60% 50% at 50% 20%, rgba(69, 49, 40, .3), transparent)
}

/* grand finale info — centered, no box, like previous years */
.hero-bottom {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.hero-ctas {
  justify-content: center;
}

.finale-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  background: none;
  border: 0;
  padding: 0;
  z-index: 10;
}

.finale-logo {
  height: 62px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  background: none;
  margin-bottom: 0;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.55));
}

.finale-title {
  font-family: var(--font-s);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.14em;
  color: var(--cream);
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.finale-date {
  font-family: var(--font-b);
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  letter-spacing: 0.2em;
  color: var(--cream);
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.finale-venue {
  font-family: var(--font-b);
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  letter-spacing: 0.08em;
  color: #d8cfbd;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.finale-role {
  font-family: var(--font-b);
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.finale-addr {
  font-family: var(--font-b);
  font-weight: 400;
  font-size: clamp(0.88rem, 1.8vw, 1.1rem);
  letter-spacing: 0.01em;
  color: #d8cfbd;
  max-width: 1050px;
  line-height: 1.7;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
  .finale-logo {
    height: 50px;
  }
  .finale-addr {
    max-width: 100%;
  }
}

.hero-top-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .68rem;
  letter-spacing: .2em;
  color: var(--cream);
  opacity: .9;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  margin-bottom: 12px;
  flex-wrap: wrap
}

.hero-title {
  font-family: var(--font-d);
  line-height: .88;
  text-transform: uppercase
}

.hero-title .line {
  display: block;
  font-size: clamp(3.4rem, 13vw, 11.5rem);
  letter-spacing: .01em
}

.hero-title .row2 {
  display: flex;
  align-items: baseline;
  gap: 3vw;
  flex-wrap: wrap
}

.script {
  font-family: var(--font-script);
  font-style: italic;
  text-transform: none;
  font-weight: 400;
  color: var(--gold)
}

.row2 .script {
  font-size: clamp(3rem, 10vw, 8.5rem);
  line-height: 1
}

.smallcaps {
  font-family: var(--font-b);
  font-size: clamp(.8rem, 2vw, 1.3rem);
  letter-spacing: .35em
}

.hero-title .custom-lockup {
  display: inline-block;
  position: relative;
  margin-top: 15px;
  margin-left: -10px;
  margin-bottom: 18px;
  /* Optically align the swoopy 'B' with FINFLARE */
}

/* hero: centered logo lockup like previous years — FinFlare | theme */
.hero-logos {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 20px 0 6px;
  z-index: 10;
}

.hero-logo-main {
  width: min(300px, 29vw);
  height: auto;
  margin-right: clamp(14px, 2vw, 26px);
  mix-blend-mode: screen;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.55));
}

.hero-logo-theme {
  width: min(320px, 31vw);
  height: auto;
  border-left: 2px solid rgba(243, 237, 224, 0.85);
  padding-left: clamp(14px, 2vw, 26px);
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.6));
}

.hero-dates {
  text-align: center;
  font-family: var(--font-b);
  font-size: clamp(0.72rem, 1.2vw, 0.88rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(243, 237, 224, 0.92);
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
  margin: 10px 0 0;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.hero-dates::before,
.hero-dates::after {
  content: "";
  display: inline-block;
  width: clamp(20px, 3vw, 36px);
  height: 1px;
  background: var(--gold);
  opacity: 0.75;
}

.finale-date {
  font-family: var(--font-b);
  font-size: clamp(0.72rem, 1.2vw, 0.88rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  margin: 0;
}

@media (max-width: 768px) {
  .hero-logos {
    flex-direction: column;
    gap: 0;
    margin: 10px 0;
  }
  .hero-logo-main {
    width: min(200px, 48vw);
    margin-right: 0;
    margin-bottom: 12px;
  }
  .hero-logo-theme {
    width: min(220px, 52vw);
    border-left: 0;
    border-top: 1.5px solid rgba(243, 237, 224, 0.7);
    padding-left: 0;
    padding-top: 12px;
  }
  .hero-dates {
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    gap: 10px;
  }
  .hero-dates::before,
  .hero-dates::after {
    width: 16px;
  }
  .finale-date {
    font-size: 0.65rem;
    letter-spacing: 0.16em;
  }
}

.custom-lockup .people {
  font-family: var(--font-s);
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--cream);
  position: absolute;
  top: -5%;
  right: 0;
  z-index: 2;
  letter-spacing: 0;
  text-transform: none;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.custom-lockup .script {
  font-size: clamp(5.5rem, 15vw, 12rem);
  line-height: 0.85;
  color: var(--gold);
  display: block;
  padding-right: 10px;
}

.hero-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
  margin-top: 18px
}

.hero-desc {
  font-family: var(--font-b);
  font-size: clamp(1rem, 2vw, 1.3rem);
  max-width: 420px
}

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 99px;
  font-family: var(--font-b);
  font-weight: 700;
  letter-spacing: .12em;
  font-size: .75rem;
  text-transform: uppercase;
  border: 1px solid var(--cream);
  transition: .25s
}

.btn.solid {
  background: var(--flare);
  border-color: var(--flare);
  color: var(--cream)
}

.btn.solid:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1410;
  transform: translateY(-2px)
}

.btn.ghost:hover {
  background: var(--cream);
  color: #000
}

.btn.light {
  background: var(--cream);
  color: #000;
  border-color: var(--cream)
}

button,
.btn,
.mini,
.filters button,
#legacySound,
.acc button,
#menuBtn {
  font-family: var(--font-b);
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.panel-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
  justify-content: center;
  width: 100%;
}

.panel-stats div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.panel-stats b {
  font-family: var(--font-d);
  font-size: 2.5rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}

.panel-stats span {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-hint {
  position: absolute;
  right: 20px;
  top: 45%;
  writing-mode: vertical-rl;
  letter-spacing: .4em;
  font-size: .65rem;
  color: var(--muted);
  animation: bob 1.6s infinite alternate
}

@keyframes bob {
  to {
    transform: translateY(12px)
  }
}

/* marquee */
.marquee {
  background: var(--flare);
  color: var(--cream);
  overflow: hidden;
  white-space: nowrap;
  border-top: 2px solid #000;
  border-bottom: 2px solid #000
}

.marquee-track {
  display: inline-flex;
  animation: mq 22s linear infinite;
  font-family: var(--font-d);
  font-size: 1.1rem;
  padding: 10px 0;
  letter-spacing: .06em
}

@keyframes mq {
  to {
    transform: translateX(-50%)
  }
}

/* panels */
.panel {
  padding: 90px 28px;
  max-width: 1360px;
  margin: 0 auto
}

.kicker {
  font-size: .72rem;
  letter-spacing: .3em;
  color: var(--muted);
  margin-bottom: 18px;
  display: flex;
  gap: 10px;
  align-items: center
}

.kicker span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--flare);
  display: inline-block
}

.kicker.light {
  color: var(--gold)
}

.statement {
  font-family: var(--font-s);
  font-weight: 400;
  font-size: clamp(1.4rem, 3.6vw, 2.6rem);
  line-height: 1.15;
  max-width: 1100px
}

.statement em {
  color: var(--flare-light);
  font-style: normal
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 30px;
  margin-top: 36px
}

.about-copy p {
  color: #d8cfbd;
  margin-bottom: 16px;
  line-height: 1.7
}

.text-link {
  border-bottom: 1px solid var(--flare-light);
  padding-bottom: 2px;
  font-weight: 700
}

.about-cards {
  display: grid;
  gap: 12px
}

.mini-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, .03)
}

.mini-card b {
  display: block;
  font-family: var(--font-d);
  letter-spacing: .04em;
  margin-bottom: 6px;
  color: var(--gold)
}

.mini-card span {
  color: var(--muted);
  font-size: .92rem
}

.legacy {
  margin-top: 44px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: #221c17
}

.legacy-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line)
}

.legacy-head h3 {
  font-family: var(--font-d);
  letter-spacing: .04em
}

.legacy-head span {
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .2em
}

.legacy-media {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px
}

.legacy-video {
  padding: 12px 12px 0;
  position: relative
}

.legacy-video video {
  width: 100%;
  height: min(58vh, 480px);
  object-fit: cover;
  border-radius: 12px;
  background: #000;
  display: block
}

#legacySound {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: #000a;
  color: var(--cream);
  border: 1px solid var(--line);
  padding: 9px 18px;
  border-radius: 99px;
  font-size: .66rem;
  letter-spacing: .22em;
  cursor: pointer;
  backdrop-filter: blur(4px)
}

#legacySound:hover {
  background: var(--flare);
  color: var(--cream);
  border-color: var(--flare)
}

.proof-note {
  padding: 2px 22px 26px;
  color: #d8cfbd;
  line-height: 1.85;
  font-family: var(--font-b);
  font-size: 1.06rem;
  max-width: 1000px
}

.legacy-media img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  filter: sepia(.2) contrast(1.05)
}

.legacy-copy {
  padding: 18px 22px 24px;
  color: #d8cfbd
}

/* theme */
.dark-contrast {
  background: var(--bg2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: none
}

.dark-contrast>.kicker,
.dark-contrast>h2,
.theme-grid,
.perks-grid,
.awards {
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto
}

#theme h2,
#perks h2 {
  font-family: var(--font-d);
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: .95
}

.script.big {
  font-size: clamp(3rem, 8vw, 6rem)
}

.script.inline {
  font-size: .9em
}

.theme-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 40px;
  margin-top: 26px
}

.theme-title p {
  color: #d8cfbd;
  margin: 14px 0 20px
}

/* integrated "People of the Bazaar" lockup */
.theme-title-lockup {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: end;
  line-height: 1;
  margin-bottom: 30px;
}

.lockup-bazaar-top {
  grid-row: 1 / 3;
  grid-column: 1;
  font-size: clamp(6rem, 16vw, 12rem);
  line-height: .78;
  align-self: start;
}

.lockup-serif {
  grid-row: 1;
  grid-column: 2;
  font-family: var(--font-s);
  font-size: clamp(1.3rem, 3.5vw, 2.4rem);
  color: var(--cream);
  align-self: end;
  text-transform: none;
  font-weight: 400;
  letter-spacing: .01em;
  position: relative;
  z-index: 2;
  margin-bottom: -5px; /* Pull it slightly closer to azaar */
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.lockup-bazaar-bottom {
  grid-row: 2;
  grid-column: 2;
  font-size: clamp(3.8rem, 10vw, 7.5rem);
  line-height: .85;
}

.theme-video {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line)
}

.theme-video video {
  width: 100%;
  height: 300px;
  object-fit: cover
}

.theme-video span {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: #000a;
  padding: 6px 12px;
  border-radius: 99px;
  font-size: .68rem;
  letter-spacing: .2em
}

.theme-copy .lead {
  font-family: var(--font-b);
  font-size: 1.35rem;
  line-height: 1.5;
  margin-bottom: 22px
}

.folk-list {
  display: grid;
  gap: 12px;
  margin-bottom: 20px
}

.folk {
  display: flex;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, .03)
}

.folk img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 12px
}

.folk b {
  display: block
}

.folk span {
  color: var(--muted);
  font-size: .85rem
}

/* events */
.events-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 8px
}

.events-head h2 {
  font-family: var(--font-d);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: .95
}

.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--cream)
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.filters button {
  background: none;
  border: 1px solid var(--line);
  color: var(--cream);
  border-radius: 99px;
  padding: 9px 16px;
  font-size: .7rem;
  letter-spacing: .15em;
  cursor: pointer
}

.filters button.active,
.filters button:hover {
  background: var(--cream);
  color: #111
}

#eventList {
  border-top: 1px solid var(--line);
  margin-top: 16px
}

.event-row {
  display: grid;
  grid-template-columns: 64px 1fr auto auto;
  gap: 18px;
  align-items: center;
  padding: 20px 8px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: .2s
}

.event-row:hover {
  background: rgba(69, 49, 40, .12);
  padding-left: 16px
}

.event-row .num {
  font-family: var(--font-d);
  color: var(--muted)
}

.event-row h3 {
  font-family: var(--font-d);
  font-size: clamp(1.4rem, 3.4vw, 2.4rem);
  letter-spacing: .02em;
  line-height: 1
}

.event-row h3 small {
  display: block;
  font-family: var(--font-b);
  font-size: .68rem;
  letter-spacing: .25em;
  color: var(--flare-light);
  margin-top: 6px
}

.event-row .meta {
  font-size: .72rem;
  letter-spacing: .15em;
  color: var(--muted);
  text-align: right
}

.event-row .arrow {
  font-size: 1.4rem;
  background: var(--cream);
  color: #000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center
}

.hint {
  color: var(--muted);
  font-size: .75rem;
  letter-spacing: .2em;
  margin-top: 14px
}

/* break */
#break {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden
}

#break video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.break-overlay {
  position: relative;
  background: rgba(26, 20, 16, .6);
  padding: 40px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
  border: 1px solid var(--line)
}

.break-overlay h2 {
  font-family: var(--font-d);
  font-size: clamp(2rem, 6vw, 4.2rem);
  margin: 6px 0 18px
}

.break-overlay .script {
  font-size: clamp(2rem, 5vw, 3.4rem)
}

/* format */
#format h2,
#rules h2,
.gallery-head h2 {
  font-family: var(--font-d);
  font-size: clamp(2.2rem, 5.5vw, 4rem)
}

#format h2 em,
#rules h2 em,
.gallery-head em {
  color: var(--flare-light);
  font-style: normal
}

.format-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 26px 0
}

.format-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  background: #221c17
}

.format-card.gold {
  background: linear-gradient(160deg, #3a2f24, #221c17);
  border-color: rgba(178, 133, 88, .45)
}

.format-card .tag {
  font-size: .68rem;
  letter-spacing: .25em;
  color: var(--gold)
}

.format-card h3 {
  font-family: var(--font-d);
  font-size: 2.6rem;
  margin: 10px 0
}

.format-card h3 small {
  font-size: .9rem;
  font-family: var(--font-b);
  color: var(--muted)
}

.format-card p {
  color: #d8cfbd;
  margin-bottom: 12px
}

.format-card ul {
  margin-left: 18px;
  color: var(--muted);
  line-height: 1.8;
  font-size: .92rem
}

/* ---- register: plain info (no boxes) ---- */
.format-plain {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin: 26px 0 10px;
}

.format-plain-item {
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 24px 0 0;
}

.format-plain-item .tag {
  font-size: .68rem;
  letter-spacing: .25em;
  color: var(--gold);
}

.format-plain-item h3 {
  font-family: var(--font-d);
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  margin: 6px 0 10px;
}

.format-plain-item h3 small {
  font-size: .82rem;
  font-family: var(--font-b);
  color: var(--muted);
}

.format-plain-item p {
  color: #d8cfbd;
  margin-bottom: 12px;
  font-family: var(--font-b);
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  line-height: 1.7;
  font-weight: 400;
  text-align: justify;
}

.format-plain-item ul {
  margin-left: 18px;
  color: #d8cfbd;
  line-height: 1.7;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  margin-bottom: 18px;
  font-family: var(--font-b);
  font-weight: 400;
  text-align: justify;
}

.map-link {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.map-link:hover {
  color: var(--cream);
  text-decoration-color: var(--cream);
}

.contact-hero-emails {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-family: var(--font-b);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: #d8cfbd;
  margin-top: -6px;
  margin-bottom: 24px;
}

.contact-hero-emails a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 500;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.contact-hero-emails a:hover {
  color: var(--cream);
  text-decoration-color: var(--cream);
}

.countdown {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border: 1px dashed rgba(178, 133, 88, .5);
  border-radius: 16px;
  padding: 20px 22px
}

.countdown span {
  font-size: .68rem;
  letter-spacing: .25em;
  color: var(--muted)
}

.countdown b {
  font-family: var(--font-d);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  color: var(--gold);
  display: block;
  margin-top: 6px
}

/* ---- register: query contacts (screenshot format, serif) ---- */
.query-contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 54px;
  border-top: 1px solid var(--line);
  padding-top: 36px;
  font-family: var(--font-b);
}

.query-left {
  padding-right: 48px;
}

.query-right {
  border-left: 1px solid var(--line);
  padding-left: 48px;
}

.query-label {
  display: block;
  font-size: .78rem;
  letter-spacing: .12em;
  color: var(--muted);
  margin: 26px 0 10px;
}

.query-label:first-child {
  margin-top: 0;
}

.query-left p,
.query-person {
  color: var(--cream);
  font-size: 1.15rem;
  line-height: 1.7;
}

.query-left a,
.query-person a {
  color: var(--cream);
  border-bottom: 1px solid transparent;
}

.query-left a:hover,
.query-person a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.query-person {
  margin-bottom: 26px;
}

.query-person em {
  display: block;
  font-style: normal;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2px;
}

.query-person b {
  display: block;
  font-weight: 600;
}

.query-person span {
  color: #d8cfbd;
}

.query-social {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 14px;
}

.query-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: transform 0.25s ease, color 0.25s ease, filter 0.25s ease;
  line-height: 1;
}

.query-social a svg {
  width: 38px;
  height: 38px;
  display: block;
}

.query-social a:hover {
  color: var(--cream);
  transform: translateY(-3px) scale(1.1);
  filter: drop-shadow(0 4px 14px rgba(178, 133, 88, 0.45));
}

@media(max-width:900px) {
  .query-contacts {
    grid-template-columns: 1fr;
  }
  .query-right {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 30px;
  margin-top: auto;
  margin-bottom: 40px;
  }
  .query-left {
    padding-right: 0;
  }
}

/* perks */
#perks h2 {
  margin-bottom: 22px
}

.perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px
}

.perk {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  background: rgba(255, 255, 255, .03)
}

.perk i {
  font-style: normal;
  color: var(--flare-light);
  font-size: .75rem;
  letter-spacing: .2em
}

.perk b {
  display: block;
  margin: 8px 0 6px;
  font-size: 1.02rem
}

.perk span {
  color: var(--muted);
  font-size: .88rem
}

.awards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px
}

.awards div {
  border-radius: 16px;
  padding: 20px;
  background: var(--flare);
  color: var(--cream)
}

.awards div:nth-child(2) {
  background: var(--gold);
  color: #1a1410
}

.awards div:nth-child(3) {
  background: var(--cream);
  color: #1a1410
}

.awards b {
  display: block;
  font-family: var(--font-d);
  margin-bottom: 6px
}

/* rules */
.accordion {
  margin-top: 24px;
  border-top: 1px solid var(--line)
}

.acc {
  border-bottom: 1px solid var(--line)
}

.acc button {
  width: 100%;
  background: none;
  border: 0;
  color: var(--cream);
  display: flex;
  justify-content: space-between;
  padding: 22px 6px;
  font-family: var(--font-d);
  font-size: clamp(1.1rem, 2.6vw, 1.7rem);
  cursor: pointer;
  letter-spacing: .03em
}

.acc button span {
  color: var(--flare-light)
}

.acc-body {
  display: none;
  padding: 0 6px 24px;
  color: #d8cfbd;
  line-height: 1.8
}

.acc.open .acc-body {
  display: block
}

.acc-body ul {
  margin-left: 18px
}

/* gallery */
.gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px
}

.strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  cursor: grab;
  scrollbar-width: none
}

.strip::-webkit-scrollbar {
  display: none
}

.strip img {
  height: min(52vh, 420px);
  width: auto;
  border-radius: 16px;
  flex: 0 0 auto;
  user-select: none;
  pointer-events: none;
  filter: saturate(1.05)
}

/* contact */
#contact {
  background: #151110;
  border-top: 1px solid var(--line);
  padding: 90px 28px 20px;
  max-width: none
}

#contact>.kicker,
#contact>.mega,
.contact-grid {
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto
}

.mega {
  font-family: var(--font-d);
  font-size: clamp(3.4rem, 12vw, 10rem);
  line-height: .9
}

.mega .script {
  font-size: .75em
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 26px;
  margin: 36px auto 30px
}

.contact-grid b {
  display: block;
  font-size: .7rem;
  letter-spacing: .3em;
  color: var(--muted);
  margin-bottom: 12px
}

.register-contacts b,
.register-contacts .dim,
.register-contacts .big-link {
  font-family: var(--font-s);
}

.register-contacts .dim {
  font-size: 1rem;
  margin-top: 14px;
  display: block;
}

.big-link {
  display: block;
  font-family: var(--font-s);
  font-size: 1.4rem;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px
}

.big-link:hover {
  color: var(--gold)
}

.contact-grid a {
  display: block;
  margin-bottom: 8px
}

.contact-grid a[aria-label] {
  display: inline-flex;
  margin-right: 12px;
  margin-bottom: 0
}

.contact-grid p {
  color: var(--muted);
  font-size: .85rem;
  margin-top: 14px;
  line-height: 1.7
}

#regForm {
  display: flex;
  flex-direction: column;
  gap: 10px
}

#regForm input {
  background: #221c17;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  color: var(--cream)
}

#formMsg {
  font-size: .8rem;
  color: var(--gold);
  min-height: 1.2em
}

.foot-base {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--muted);
  font-family: var(--font-b);
  font-size: .72rem;
  letter-spacing: .2em;
  max-width: 1360px;
  margin: 0 auto
}

/* modal */
#modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(8px);
  z-index: 450;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px
}

#modal.open {
  display: flex
}

.modal-card {
  background: #221c17;
  border: 1px solid rgba(178, 133, 88, .35);
  border-radius: 20px;
  max-width: 980px;
  width: 100%;
  max-height: 90vh;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(178, 133, 88, 0.45) #221c17;
  display: grid;
  grid-template-columns: 340px 1fr;
  position: relative;
}

.modal-card::-webkit-scrollbar {
  width: 8px;
}

.modal-card::-webkit-scrollbar-track {
  background: #221c17;
  border-radius: 0 19px 19px 0;
  margin: 6px 0;
}

.modal-card::-webkit-scrollbar-thumb {
  background: rgba(178, 133, 88, 0.45);
  border-radius: 99px;
  border: 2px solid #221c17;
}

.modal-card::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

.modal-header-bar {
  grid-column: 1 / -1;
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(34, 28, 23, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(178, 133, 88, 0.25);
  border-radius: 19px 19px 0 0;
}

.modal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(178, 133, 88, 0.14);
  color: var(--cream);
  border: 1px solid rgba(178, 133, 88, 0.45);
  border-radius: 99px;
  padding: 8px 18px;
  font-family: var(--font-b);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
  line-height: 1;
}

.modal-back-btn:hover {
  background: var(--gold);
  color: #1a1410;
  border-color: var(--gold);
  transform: translateX(-3px);
}

.modal-back-btn svg {
  transition: transform 0.22s ease;
}

.modal-back-btn:hover svg {
  transform: translateX(-2px);
}

.modal-close-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(178, 133, 88, 0.35);
  color: var(--cream);
  cursor: pointer;
  transition: all 0.22s ease;
}

.modal-close-x:hover {
  background: var(--gold);
  color: #1a1410;
  border-color: var(--gold);
  transform: scale(1.08);
}

.modal-foot-actions {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.modal-media {
  position: relative;
  min-height: 300px
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 300px
}

.modal-media span {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: #000c;
  color: #fff;
  padding: 6px 12px;
  border-radius: 99px;
  font-size: .68rem;
  letter-spacing: .2em
}

.modal-body {
  padding: 30px 28px
}

.modal-logo {
  max-width: 100%;
  max-height: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 8px;
  display: block;
}

.modal-body .script {
  font-size: 2.2rem
}

.modal-body h3 {
  font-family: var(--font-d);
  font-size: 2rem;
  margin: 4px 0 10px;
  letter-spacing: .02em
}

.modal-body p {
  color: #d8cfbd;
  line-height: 1.7;
  margin-bottom: 16px;
  font-family: var(--font-b);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.m-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px
}

.m-meta div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px
}

.m-meta b {
  display: block;
  font-family: var(--font-s);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--cream);
  margin-bottom: 8px;
  text-transform: none
}

.m-meta span {
  font-family: var(--font-b);
  font-size: 0.95rem;
  color: #d8cfbd;
  line-height: 1.6;
}

.m-h {
  display: block;
  font-family: var(--font-s);
  font-weight: 700;
  letter-spacing: 0;
  font-size: 1.2rem;
  color: var(--cream);
  margin: 18px 0 8px;
  text-transform: none
}

.modal-body ul {
  margin-left: 18px;
  color: #d8cfbd;
  line-height: 1.75;
  font-family: var(--font-b);
  font-size: clamp(1rem, 2vw, 1.15rem);
  margin-bottom: 10px
}

#mCta {
  margin-top: 14px
}

/* reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: .7s ease
}

.reveal.in {
  opacity: 1;
  transform: none
}

@media(max-width:900px) {
  .nav-links {
    display: none
  }

  #menuBtn {
    display: flex
  }

  .about-grid,
  .theme-grid,
  .format-grid,
  .format-plain,
  .contact-grid {
    grid-template-columns: 1fr
  }

  .perks-grid,
  .awards {
    grid-template-columns: 1fr 1fr
  }

  .event-row {
    grid-template-columns: 44px 1fr auto
  }

  .event-row .meta {
    display: none
  }

  .modal-card {
    grid-template-columns: 1fr;
    max-height: 92vh;
  }

  .modal-logo {
    max-height: 140px;
  }

  .modal-body {
    padding: 24px 18px;
  }

  .legacy-media {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:560px) {

  .perks-grid,
  .awards {
    grid-template-columns: 1fr
  }

  .legacy-media {
    grid-template-columns: 1fr
  }

  .panel-stats {
    gap: 20px;
  margin-bottom: 60px;
    padding-bottom: 20px;
    justify-content: flex-start;
  }
}

/* ---- multipage additions: teacher-simple ---- */
.nav-links a.active {
  color: var(--gold)
}

.page-hero {
  padding: 130px 28px 20px;
  max-width: 1360px;
  margin: 0 auto
}

/* ---- events: list format (no boxes) ---- */
.ev-list {
  display: flex;
  flex-direction: column;
  margin: 18px 0 38px;
}

.ev-row {
  display: grid;
  grid-template-columns: 240px 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-s);
}

.ev-row:first-child {
  border-top: 1px solid var(--line);
}

.ev-row .ev-logo {
  width: 230px;
  max-width: 100%;
  max-height: 110px;
  height: auto;
  object-fit: contain;
  mix-blend-mode: screen;
  transition: transform 0.3s ease;
}

.ev-row:hover .ev-logo {
  transform: scale(1.05);
}

.ev-logo-placeholder {
  width: 220px;
  height: 90px;
  border: 1px dashed rgba(178, 133, 88, .4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-b);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.3;
}

.ev-row .ev-info h3 {
  display: none;
}

.ev-row .ev-info .ev-cls {
  font-family: var(--font-b);
  font-style: italic;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.ev-row .ev-info p {
  font-family: var(--font-b);
  color: #d8cfbd;
  font-size: 1.05rem;
  line-height: 1.65;
}

.ev-row .ev-more {
  background: none;
  color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 10px 24px;
  font-family: var(--font-b);
  font-size: 0.9rem;
  cursor: pointer;
  transition: .25s;
  white-space: nowrap;
}

.ev-more-logo {
  height: 50px;
  width: auto;
  display: block;
}

.ev-row .ev-more:hover {
  background: var(--cream);
  color: #111;
}

@media(max-width:768px) {
  .ev-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ev-row .ev-logo {
    width: 200px;
    max-height: 90px;
    justify-self: start;
  }

  .ev-row .ev-more {
    justify-self: start;
  }
}

.page-hero h1 {
  font-family: var(--font-d);
  font-size: clamp(2.1rem, 6vw, 4.5rem);
  line-height: .95;
  text-transform: uppercase
}

.page-hero .page-sub {
  font-family: var(--font-b);
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  color: #d8cfbd;
  max-width: 640px;
  margin: 14px 0 20px
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 26px
}

.step {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  background: rgba(255, 255, 255, .03)
}

.step i {
  font-style: normal;
  font-family: var(--font-d);
  color: var(--flare-light);
  font-size: 1.4rem
}

.step b {
  display: block;
  font-size: 1.15rem;
  margin: 8px 0 6px
}

.step span {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6
}

.cta-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 26px
}

.arena-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px
}

.arena {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  background: rgba(255, 255, 255, .03);
  display: block;
  transition: .2s
}

.arena:hover {
  border-color: var(--flare);
  transform: translateY(-3px)
}

.arena b {
  font-family: var(--font-d);
  font-size: 1.6rem;
  letter-spacing: .02em;
  display: block
}

.arena span {
  display: block;
  color: var(--gold);
  margin: 8px 0 6px;
  font-size: .9rem
}

.arena em {
  font-style: normal;
  color: var(--muted);
  font-size: .85rem
}

.group-label {
  font-family: var(--font-d);
  letter-spacing: .06em;
  color: var(--gold);
  margin: 30px 0 4px;
  font-size: 1.05rem
}

.note-box {
  border: 1px dashed rgba(178, 133, 88, .5);
  border-radius: 14px;
  padding: 18px 20px;
  color: #d8cfbd;
  margin-top: 22px;
  background: rgba(178, 133, 88, .06);
  font-family: var(--font-b);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
}

.reg-split {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  margin-top: 26px
}

.reg-form {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  background: #221c17;
  display: flex;
  flex-direction: column;
  gap: 12px
}

.reg-form b {
  font-size: .7rem;
  letter-spacing: .3em;
  color: var(--muted)
}

.reg-form .two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px
}

.reg-form input,
.reg-form select {
  background: #1a1410;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  color: var(--cream);
  width: 100%;
  font-family: inherit
}

.reg-side {
  border-radius: 20px;
  padding: 26px;
  background: var(--flare);
  color: var(--cream)
}

.reg-side b {
  font-family: var(--font-d);
  letter-spacing: .04em
}

.reg-side ol {
  margin: 12px 0 12px 20px;
  line-height: 2
}

.reg-side .note-box {
  border-color: rgba(0, 0, 0, .3);
  background: rgba(255, 255, 255, .15);
  color: var(--cream);
  margin-top: 10px
}

.dim {
  color: var(--muted);
  font-size: .85rem
}

.dim a {
  border-bottom: 1px solid var(--flare-light)
}

/* ---- simple bazaar strip ---- */
.rail-sub {
  color: var(--muted);
  max-width: 640px;
  margin: 12px 0 20px;
  line-height: 1.7
}

.photorail {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y
}

.photorail.dragging {
  cursor: grabbing
}

.photorail::-webkit-scrollbar {
  display: none
}

.photorail-track {
  display: flex;
  gap: 12px;
  width: max-content
}

.photorail figure {
  width: 220px;
  margin: 0;
  flex-shrink: 0;
  user-select: none
}

.photorail img {
  pointer-events: none
}

.photorail img {
  width: 220px;
  height: 280px;
  object-fit: cover;
  border-radius: 14px
}

.photorail figcaption {
  font-size: .75rem;
  letter-spacing: .08em;
  color: var(--muted);
  margin-top: 8px
}

/* ---- finale checkout (simple) ---- */
.wizard-steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px
}

.wizard-steps span {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 8px 16px;
  font-size: .72rem;
  letter-spacing: .15em;
  color: var(--muted)
}

.wizard-steps span.on {
  background: var(--cream);
  color: #111;
  border-color: var(--cream)
}

.fee-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px dashed rgba(178, 133, 88, .5);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 14px
}

.fee-bar b {
  font-family: var(--font-d);
  font-size: 1.8rem;
  color: var(--gold)
}

.frow {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr auto;
  gap: 8px;
  margin-bottom: 8px
}

.frow input,
.frow select,
.pay-box input {
  background: #1a1410;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px;
  color: var(--cream);
  width: 100%;
  font-family: inherit
}

.mini {
  background: none;
  border: 1px solid var(--line);
  color: var(--cream);
  border-radius: 99px;
  padding: 8px 14px;
  font-size: .7rem;
  letter-spacing: .1em;
  cursor: pointer
}

.mini.danger {
  border-color: rgba(69, 49, 40, .6);
  color: var(--flare-light)
}

.pay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

.pay-box {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  background: #221c17;
  display: flex;
  flex-direction: column;
  gap: 12px
}

.pay-box b {
  font-size: .68rem;
  letter-spacing: .3em;
  color: var(--muted)
}

.pay-box h3 {
  font-family: var(--font-d);
  font-size: 2.6rem;
  color: var(--gold)
}

.pay-box p {
  color: var(--muted);
  font-size: .9rem
}

.upi-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  background: #00000055;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px
}

.upi-row span {
  color: var(--muted);
  font-size: .8rem
}

.file {
  color: var(--muted);
  font-size: .85rem;
  display: flex;
  flex-direction: column;
  gap: 8px
}

#shotPrev {
  max-width: 180px;
  border-radius: 12px;
  border: 1px solid var(--line)
}

#payMsg {
  color: var(--flare-light);
  font-size: .85rem;
  min-height: 1.2em
}

.done-box {
  border: 1px solid rgba(178, 133, 88, .4);
  border-radius: 20px;
  padding: 34px;
  background: linear-gradient(160deg, #3a2f24, #221c17)
}

.done-box .script {
  font-size: 2.6rem
}

.done-box h2 {
  font-family: var(--font-d);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  margin: 6px 0 10px
}

.done-box h2 span {
  color: var(--gold)
}

.done-box ul {
  margin: 12px 0 6px 18px;
  line-height: 2;
  color: #d8cfbd
}

@media(max-width:900px) {
  .pay-grid {
    grid-template-columns: 1fr
  }

  .frow {
    grid-template-columns: 1fr 1fr
  }

  .frow input {
    grid-column: 1/-1
  }
}

/* ---- logo: nav + glance loader ---- */
.brand {
  display: inline-flex;
  align-items: center
}

.brand img {
  height: 46px;
  width: auto
}

.loader-inner.glance {
  width: min(340px, 72vw);
  text-align: center;
  position: relative
}

.loader-inner.glance img {
  width: 100%;
  height: auto;
  animation: glance 1.05s ease both
}

.loader-inner.glance.loader-lockup {
  width: min(560px, 84vw);
  display: flex;
  align-items: center;
  justify-content: center
}

.loader-inner.glance.loader-lockup img {
  width: auto;
  animation: glance 1.05s ease both
}

.loader-logo-main {
  width: min(230px, 36vw);
  height: auto;
  margin-right: clamp(12px, 2vw, 20px)
}

.loader-logo-theme {
  width: min(120px, 20vw);
  height: auto;
  border-left: 2px solid rgba(243, 237, 224, .85);
  padding-left: clamp(12px, 2vw, 20px)
}

@keyframes glance {
  0% {
    opacity: 0;
    transform: scale(.92)
  }

  25% {
    opacity: 1;
    transform: scale(1)
  }

  75% {
    opacity: 1;
    transform: scale(1)
  }

  100% {
    opacity: 1;
    transform: scale(1.04)
  }
}

@media(max-width:900px) {
  .brand img {
    height: 38px
  }
}

@media(max-width:900px) {

  .steps-grid,
  .arena-grid,
  .reg-split {
    grid-template-columns: 1fr
  }

  .reg-form .two {
    grid-template-columns: 1fr
  }
}

/* ---- home intro: what is finflare ---- */
.intro-panel {
  padding-top: 40px;
  padding-bottom: 40px;
}

.intro-block {
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.intro-block .kicker {
  justify-content: flex-start;
}

.intro-block .statement {
  margin: 0;
}

.intro-block .ethos-quote {
  font-family: var(--font-s);
  font-style: normal;
  font-weight: 400;
  line-height: 1.28;
  color: var(--cream);
  max-width: 800px;
  font-size: clamp(1.7rem, 3.8vw, 2.8rem);
  letter-spacing: 0.01em;
}

.intro-copy {
  color: #d8cfbd;
  font-family: var(--font-b);
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  line-height: 1.7;
  margin-top: 38px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-align: justify;
  max-width: 1050px;
}

.read-more {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-b);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
  transition: 0.25s;
}

.read-more:hover {
  color: var(--cream);
  border-color: var(--cream);
}

/* ---- events: perks & recognition section ---- */
.perks-section {
  margin-top: 60px;
  padding-top: 50px;
  border-top: 1px solid var(--line);
  max-width: 1100px;
}

.perks-section h2 {
  font-family: var(--font-s);
  font-weight: 600;
  font-size: clamp(1.35rem, 3vw, 2rem);
  color: var(--cream);
  margin-bottom: 22px;
  line-height: 1.2;
}

.perks-section h3 {
  font-family: var(--font-s);
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--cream);
  margin-top: 30px;
  margin-bottom: 8px;
}

.perks-section p {
  font-family: var(--font-b);
  color: #d8cfbd;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  margin-bottom: 10px;
}

.perks-section ul {
  font-family: var(--font-b);
  color: #d8cfbd;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.8;
  margin-left: 22px;
  margin-bottom: 12px;
}

.perks-section li {
  margin-bottom: 6px;
}

/* ---- global type rule: headings Caacupe One, body Plus Jakarta Sans ---- */
h1, h2, h3 {
  font-family: var(--font-s);
  letter-spacing: normal;
}

/* ============================================
   MOBILE RESPONSIVE — all pages
   ============================================ */

/* --- About page: intro grid stacks on mobile --- */
@media (max-width: 768px) {
  .about-intro-section {
    padding: 100px 20px 0 !important;
  }
  .about-intro-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .about-heading {
    font-size: clamp(1.8rem, 7vw, 2.4rem) !important;
    margin-bottom: 16px !important;
  }
  .about-intro-grid .page-sub {
    font-size: 1rem !important;
    line-height: 1.75 !important;
    gap: 1.2rem !important;
  }
  .about-intro-grid img {
    max-width: 100% !important;
    border-radius: 12px !important;
  }
}

/* --- All pages: reduce top padding on page-hero --- */
@media (max-width: 768px) {
  .page-hero {
    padding: 100px 20px 16px !important;
  }
  .page-hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.6rem) !important;
  }
}

/* --- All pages: panel padding on mobile --- */
@media (max-width: 768px) {
  .panel {
    padding: 50px 20px;
  }
}

/* --- Footer: contact-grid stacks on narrow screens --- */
@media (max-width: 600px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 30px;
  }
  #contact {
    padding: 50px 20px 20px;
  }
  .foot-base {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* --- Register: prevent long email overflow --- */
@media (max-width: 480px) {
  .query-person span {
    word-break: break-all;
  }
  .query-person {
    font-size: 1rem;
  }
}

/* --- Events: event rows on mobile --- */
@media (max-width: 560px) {
  .ev-row .ev-logo {
    width: 170px;
    max-height: 80px;
  }
  .ev-row .ev-info p {
    font-size: 0.95rem;
  }
  .format-plain-item h3 {
    font-size: clamp(1.3rem, 6vw, 1.6rem);
  }
}

/* --- Legacy section on mobile --- */
@media (max-width: 768px) {
  .legacy-video video {
    height: min(40vh, 280px);
  }
  .legacy-media img {
    height: 160px;
  }
  .legacy-head {
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
  }
  .legacy-head h3 {
    font-size: 0.9rem;
  }
  .legacy-head span {
    font-size: 0.65rem;
  }
}

/* ---- Changemakers: Coming Soon page ---- */
.coming-soon-hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 28px 80px;
  position: relative;
  overflow: hidden;
}

.coming-soon-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(178, 133, 88, 0.08), transparent 70%),
    radial-gradient(ellipse 40% 60% at 30% 70%, rgba(69, 49, 40, 0.12), transparent 60%);
  pointer-events: none;
}

.coming-soon-content {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.coming-soon-kicker {
  display: block;
  font-family: var(--font-b);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  margin-bottom: 20px;
}

.coming-soon-hero h1 {
  font-family: var(--font-s);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1.05;
  text-transform: none;
  color: var(--cream);
  margin-bottom: 24px;
}

.coming-soon-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 28px auto;
}

.coming-soon-text {
  font-family: var(--font-b);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: #d8cfbd;
  line-height: 1.75;
  margin-bottom: 36px;
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-b);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  border: 1px solid rgba(178, 133, 88, 0.35);
  border-radius: 99px;
  padding: 12px 28px;
  background: rgba(178, 133, 88, 0.06);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

@media (max-width: 768px) {
  .coming-soon-hero {
    padding: 100px 20px 60px;
  }
  .coming-soon-hero h1 {
    font-size: clamp(2.4rem, 10vw, 3.5rem);
  }
}

/* ---- About: People of the Bazaar Post Showcase ---- */
.bazaar-post-showcase {
  padding: clamp(50px, 6vw, 84px) 24px;
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  box-sizing: border-box;
}

.bazaar-post-showcase::before {
  content: "";
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(ellipse 65% 55% at 50% 50%, rgba(178, 133, 88, 0.09), transparent 70%);
  pointer-events: none;
}

.bazaar-post-kicker {
  display: block;
  text-align: center;
  font-family: var(--font-s);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  color: var(--cream);
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: clamp(20px, 2.5vw, 32px);
  position: relative;
  z-index: 1;
}

.bazaar-post-img {
  width: 100%;
  max-width: min(960px, 92vw);
  height: auto;
  display: block;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 20px 48px rgba(0, 0, 0, 0.65)) drop-shadow(0 4px 18px rgba(178, 133, 88, 0.12));
  transition: transform 0.4s ease, filter 0.4s ease;
}

.bazaar-post-img:hover {
  transform: translateY(-4px);
  filter: drop-shadow(0 28px 60px rgba(0, 0, 0, 0.75)) drop-shadow(0 6px 24px rgba(178, 133, 88, 0.18));
}

@media (max-width: 768px) {
  .bazaar-post-showcase {
    padding: clamp(32px, 5vw, 48px) 16px;
  }
  .bazaar-post-kicker {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
    margin-bottom: 16px;
  }
  .bazaar-post-img {
    max-width: 100%;
  }
}

/* map link in edition II */
.map-link {
  text-decoration: none !important;
  color: var(--gold);
  font-weight: 600;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.map-link:hover {
  text-decoration: none !important;
  color: var(--cream);
  opacity: 0.85;
}

/* ===================================================
   Changemakers: Directorate Leadership Grid
   =================================================== */

.changemakers-hero {
  padding-top: 130px;
  padding-bottom: 20px;
  text-align: center;
}

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

.changemakers-title {
  font-family: var(--font-s);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.1;
  color: var(--cream);
  text-transform: none;
  margin-bottom: 18px;
}

.changemakers-subtitle {
  font-family: var(--font-b);
  color: #d8cfbd;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.65;
  max-width: 680px;
  margin: 0 auto;
}

.directorate-section {
  max-width: 1160px;
  margin: 0 auto;
}

.directorate-header {
  text-align: center;
  margin-bottom: clamp(36px, 4vw, 54px);
  position: relative;
}

.directorate-header::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 18px auto 0;
  opacity: 0.7;
}

.directorate-tag {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
}

.directorate-title {
  font-family: var(--font-h);
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 700;
  color: var(--cream);
  text-transform: none;
  letter-spacing: -0.01em;
  margin: 0;
}

.directorate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 5vw, 64px);
  max-width: 1060px;
  margin: 0 auto;
  align-items: start;
}

.director-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.director-avatar-wrap {
  width: clamp(160px, 16vw, 210px);
  height: clamp(160px, 16vw, 210px);
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto clamp(16px, 2vw, 22px);
  background: #140f0c;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  flex-shrink: 0;
}

.director-item:hover .director-avatar-wrap {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 25px rgba(212, 175, 55, 0.2);
}

.director-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.director-item:hover .director-avatar {
  transform: scale(1.05);
}

.director-name {
  font-family: var(--font-s);
  font-size: clamp(1.1rem, 1.45vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--cream);
  margin: 0 0 8px 0;
  letter-spacing: 0.01em;
  text-transform: none;
  white-space: nowrap;
}

.director-role {
  font-family: var(--font-b);
  font-size: clamp(0.85rem, 1.05vw, 0.96rem);
  color: #cfc5b2;
  line-height: 1.45;
  margin: 0;
  max-width: 260px;
}

.executive-section {
  max-width: 1200px;
  margin: 0 auto;
}

.executive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(44px, 5.5vw, 68px) clamp(16px, 2.5vw, 36px);
  max-width: 1140px;
  margin: 0 auto;
  align-items: start;
}

.executive-grid .director-avatar-wrap {
  width: clamp(150px, 14vw, 200px);
  height: clamp(150px, 14vw, 200px);
}

.executive-grid .director-name {
  font-size: clamp(0.98rem, 1.22vw, 1.35rem);
  white-space: nowrap;
}

@media (max-width: 960px) {
  .executive-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 580px;
    gap: 36px 24px;
  }
  .executive-grid .director-avatar-wrap {
    width: clamp(150px, 18vw, 190px);
    height: clamp(150px, 18vw, 190px);
  }
}

@media (max-width: 860px) {
  .directorate-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .directorate-grid .director-avatar-wrap {
    width: 140px;
    height: 140px;
  }
  .director-name {
    font-size: 1.15rem;
  }
  .director-role {
    font-size: 0.8rem;
  }
}

@media (max-width: 640px) {
  .directorate-grid,
  .executive-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 320px;
  }
  .director-avatar-wrap,
  .executive-grid .director-avatar-wrap {
    width: 180px;
    height: 180px;
  }
  .director-name {
    font-size: 1.35rem;
  }
  .director-role {
    font-size: 0.9rem;
  }
}