/* ==========================================================================
   TTE Galaxy — Treasures of Talented Entrepreneurs
   Brand purple #85206b and the Poltawski Nowy serif come from the old site's theme settings.
   Light, warm surfaces; a quiet "orbit" motif nods to the Galaxy name.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --brand: #85206b;          /* buttons, links, headings accents (7.9:1 on white) */
  --brand-dark: #5e1650;
  --brand-tint: #f6ecf3;     /* soft lilac surfaces */
  --accent: #e0a526;         /* warm gold star */
  --bg: #fbf8fa;             /* page */
  --surface: #ffffff;        /* cards, forms */
  --ink: #2b1029;            /* headings */
  --text: #3a2c38;           /* body */
  --muted: #6d5f6b;          /* secondary text (5.6:1 on white) */
  --line: #eadde6;
  --deep: #2a0d27;           /* footer, dark sections */
  --ok: #1f7a4d;
  --err: #b42318;

  --font-display: "Poltawski Nowy", Georgia, "Times New Roman", serif;
  --font-heading: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;

  --fs-xs: .78rem;
  --fs-sm: .9rem;
  --fs-base: clamp(1rem, .97rem + .15vw, 1.0625rem);
  --fs-lg: clamp(1.1rem, 1.02rem + .4vw, 1.3rem);
  --fs-h3: clamp(1.25rem, 1.1rem + .6vw, 1.6rem);
  --fs-h2: clamp(1.9rem, 1.4rem + 2vw, 3rem);
  --fs-h1: clamp(2.2rem, 1.5rem + 3vw, 3.8rem);

  --s-1: .5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2rem; --s-5: 3rem; --s-6: 4rem; --s-7: 6rem;
  --section: clamp(3.5rem, 2.4rem + 4.5vw, 6.5rem);
  --gutter: clamp(1rem, .5rem + 2.5vw, 2.5rem);
  --container: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(43, 16, 41, .04), 0 8px 24px rgba(43, 16, 41, .06);
  --shadow-lg: 0 18px 50px rgba(94, 22, 80, .14);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-fast: 150ms; --t-base: 250ms; --t-slow: 500ms;

  --header-h: 84px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: var(--fs-base); line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 200; padding: .7rem 1rem; background: var(--brand); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
main { display: block; padding-top: var(--header-h); }

/* ---------- 3. Layout primitives ---------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .6); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem; margin-bottom: .8rem;
  font-family: var(--font-heading); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brand);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.display-heading { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h2); line-height: 1.12; color: var(--ink); letter-spacing: -.01em; text-wrap: balance; }
.section-head { margin-bottom: var(--s-4); max-width: 60ch; }
.rule { display: block; width: 56px; height: 3px; margin: var(--s-2) 0 var(--s-3); border-radius: 3px; background: linear-gradient(90deg, var(--brand), var(--accent)); transform-origin: left; }
.rule--center { margin-inline: auto; transform-origin: center; }
.lead { font-size: var(--fs-lg); color: var(--muted); }

/* Rich text */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); line-height: 1.18; color: var(--ink); margin-top: 1.3em; }
.prose h3 { font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-h3); line-height: 1.3; color: var(--ink); margin-top: 1.3em; }
.prose h4 { font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-lg); color: var(--ink); }
.prose > :first-child { margin-top: 0; }
.prose a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--brand-dark); }
.prose h2 a, .prose h3 a { text-decoration: none; color: var(--ink); }
.prose h2 a:hover, .prose h3 a:hover { color: var(--brand); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose ul { display: grid; gap: .45rem; }
.prose ul li { position: relative; padding-left: 1.6rem; }
.prose ul li::before { content: ""; position: absolute; left: .2rem; top: .62em; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--brand); }
.prose ol { list-style: decimal; padding-left: 1.4rem; display: grid; gap: .4rem; }
.prose blockquote { padding: 1rem 1.3rem; border-left: 3px solid var(--brand); background: var(--brand-tint); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose img { border-radius: var(--radius-sm); }
/* A bold link on its own line is a call to action */
.prose p > a:only-child > strong:only-child { display: inline-flex; align-items: center; min-height: 46px; padding: .6rem 1.3rem; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 600; transition: background-color var(--t-base); }
.prose p > a:only-child:has(> strong:only-child) { text-decoration: none; }
.prose p > a:only-child > strong:only-child:hover { background: var(--brand-dark); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .7rem 1.5rem;
  border-radius: 999px; background: var(--brand); color: #fff; border: 2px solid var(--brand);
  font-family: var(--font-heading); font-weight: 600; font-size: .95rem; line-height: 1.2; text-align: center;
  transition: background-color var(--t-base) var(--ease-out), border-color var(--t-base), color var(--t-base), transform var(--t-base) var(--ease-out), box-shadow var(--t-base);
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(133, 32, 107, .25); }
.btn .icon { width: 18px; height: 18px; transition: transform var(--t-base) var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }
.btn:disabled { opacity: .7; cursor: progress; transform: none; }
.btn:disabled .icon { transform: none; }
.btn--ghost { background: transparent; color: var(--brand); }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.btn--sm { min-height: 40px; padding: .45rem 1.1rem; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: var(--s-3); }

/* ---------- 5. Header & navigation ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: height var(--t-slow) var(--ease-out), box-shadow var(--t-slow);
}
.site-header.is-scrolled { --header-h: 70px; box-shadow: 0 6px 24px rgba(43, 16, 41, .07); }
.site-header__inner { height: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: var(--s-3); }
.brand { flex: none; margin-right: auto; }
.brand img { height: calc(var(--header-h) - 22px); width: auto; transition: height var(--t-slow) var(--ease-out); }

.nav__list { display: flex; align-items: center; gap: .2rem; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .8rem; border-radius: 999px;
  font-family: var(--font-heading); font-size: .93rem; font-weight: 600; color: var(--ink);
  transition: color var(--t-base), background-color var(--t-base);
}
.nav__item:hover > .nav__link, .nav__link:focus-visible, .nav__item.is-active > .nav__link { color: var(--brand); background: var(--brand-tint); }
.nav__chev { width: .95em; height: .95em; transition: transform var(--t-base) var(--ease-out); }
.nav__item:hover .nav__chev, .nav__item:focus-within .nav__chev { transform: rotate(180deg); }
.nav__sub {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; padding: .5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out), visibility var(--t-base);
}
.nav__sub::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }   /* hover bridge */
.nav__item:hover .nav__sub, .nav__item:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: block; padding: .6rem .9rem; border-radius: 10px; font-size: .92rem; font-weight: 500; color: var(--text); transition: background-color var(--t-fast), color var(--t-fast); }
.nav__sub a:hover, .nav__sub a:focus-visible, .nav__sub a[aria-current] { background: var(--brand-tint); color: var(--brand); }
.header-login { flex: none; }

.menu-toggle { display: none; width: 46px; height: 46px; place-items: center; border-radius: 12px; color: var(--ink); background: var(--brand-tint); }
.menu-toggle .icon { width: 26px; height: 26px; }

.social { display: flex; flex-wrap: wrap; gap: .5rem; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: var(--brand); background: var(--surface); transition: background-color var(--t-base), color var(--t-base), transform var(--t-base) var(--ease-out); }
.social a:hover, .social a:focus-visible { background: var(--brand); color: #fff; transform: translateY(-2px); }
.social .icon { width: 17px; height: 17px; }

.mobile-menu { position: fixed; inset: 0; z-index: 150; overflow-y: auto; background: var(--surface); padding: 5.5rem var(--gutter) 3rem; display: flex; flex-direction: column; gap: var(--s-4); }
.mobile-menu[hidden] { display: none; }
.mobile-menu__close { position: absolute; top: 1.1rem; right: var(--gutter); width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-tint); color: var(--ink); }
.mobile-menu__close .icon { width: 26px; height: 26px; }
.mobile-menu__list { display: grid; gap: .2rem; }
.mobile-menu__list > li > a, .mobile-menu__group { display: block; padding: .55rem 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 6vw, 2rem); line-height: 1.2; color: var(--ink); }
.mobile-menu__group { color: var(--muted); font-size: var(--fs-xs); font-family: var(--font-heading); letter-spacing: .16em; text-transform: uppercase; padding-top: 1rem; }
.mobile-menu__list > li > a:hover { color: var(--brand); }
.mobile-menu__list ul { display: grid; gap: .1rem; padding: 0 0 .6rem; }
.mobile-menu__list ul a { display: block; padding: .45rem 0; font-size: 1.05rem; font-weight: 600; color: var(--brand); }

/* ---------- 6. Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 2rem + 5vw, 6rem); background: radial-gradient(80% 90% at 85% 10%, var(--brand-tint), transparent 70%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); position: relative; }
.hero__title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h1); line-height: 1.06; color: var(--ink); letter-spacing: -.015em; text-wrap: balance; }
.hero__title em { font-style: italic; color: var(--brand); }
.hero__lead { margin-top: var(--s-3); max-width: 52ch; font-size: var(--fs-lg); color: var(--muted); }
.hero__media { display: block; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); }
.hero__media img { width: 100%; }
.hero__orbit { position: absolute; right: -12vw; top: -18vw; width: 60vw; aspect-ratio: 1; pointer-events: none; }
.hero__orbit span { position: absolute; inset: 0; border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent); border-radius: 50%; }
.hero__orbit span:nth-child(2) { inset: 12%; }
.hero__orbit span:nth-child(3) { inset: 24%; }

/* ---------- 7. Banner / poster ---------- */
.banner { padding-block: clamp(1rem, .5rem + 1.5vw, 2rem); }
.banner--full { padding: 0; }
.banner__frame { display: block; margin-inline: auto; overflow: hidden; }
.banner--full .banner__frame img { width: 100%; }
.banner--contained .banner__frame { max-width: calc(var(--container)); width: calc(100% - 2 * var(--gutter)); border-radius: var(--radius); box-shadow: var(--shadow); }
.banner--narrow .banner__frame { max-width: 760px; width: calc(100% - 2 * var(--gutter)); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.banner__frame img { width: 100%; }
a.banner__frame { transition: transform var(--t-slow) var(--ease-out), box-shadow var(--t-slow); }
a.banner__frame:hover { transform: translateY(-3px); }

/* ---------- 8. Page title ---------- */
.page-title { position: relative; overflow: hidden; padding-block: clamp(2.6rem, 2rem + 3vw, 4.5rem); background:
  radial-gradient(60% 120% at 100% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%),
  radial-gradient(40% 100% at 0% 100%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%), var(--brand-tint); }
.page-title::after { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; aspect-ratio: 1; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent); box-shadow: 0 0 0 60px color-mix(in srgb, var(--brand) 3%, transparent); pointer-events: none; }
.page-title__media { position: absolute; inset: 0; }
.page-title__media img { width: 100%; height: 100%; object-fit: cover; }
.page-title__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(42,13,39,.85), rgba(42,13,39,.4)); }
.page-title__media + .page-title__inner .page-title__heading, .page-title__media + .page-title__inner .lead { color: #fff; }
.page-title__inner { position: relative; z-index: 1; text-align: center; }
.page-title__heading { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h1); line-height: 1.1; color: var(--ink); text-wrap: balance; max-width: 22ch; margin-inline: auto; }
.page-title .rule { margin-bottom: 0; }
.page-title .lead { margin-top: var(--s-2); }
.grain { display: none; }

/* ---------- 9. Columns block ---------- */
.cols { display: grid; gap: clamp(1.5rem, 1rem + 2.5vw, 3.5rem); align-items: start; }
.cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cols--2.cols--wide-left { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.cols--2.cols--wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.cols--1 .col { max-width: 900px; }
.cols--1 .col:has(.col__media:only-child) { max-width: none; }
.col { display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; }
.col > .btn-row { margin-top: 0; }
.cols--boxed .col, .cols--2 .col:has(.tform), .cols--3 .col, .cols--4 .col { padding: clamp(1.2rem, 1rem + 1vw, 2rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.col__media { display: block; overflow: hidden; border-radius: var(--radius); }
.col__media img { width: 100%; transition: transform 1.2s var(--ease-out); }
a.col__media:hover img { transform: scale(1.03); }
.cols-block .prose { max-width: none; }

.embed { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--deep); box-shadow: var(--shadow); }
.embed--video { aspect-ratio: 16 / 9; }
.embed--map { aspect-ratio: 4 / 3; background: var(--brand-tint); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed--file video { width: 100%; max-height: 80vh; background: #000; }

/* ---------- 10. Stats ---------- */
.stats { background: var(--deep); color: #fff; overflow: hidden; }
.stats .eyebrow { color: #f3d58e; }
.stats .display-heading { color: #fff; margin-bottom: var(--s-4); }
.stats__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--s-3); }
.stats__item { padding: var(--s-3); border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); text-align: center; }
.stats__value { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); line-height: 1; color: var(--accent); }
.stats__label { display: block; margin-top: .6rem; font-size: var(--fs-sm); color: rgba(255,255,255,.85); }

/* ---------- 11. Accordion (FAQ) and tabs ---------- */
.faq__inner { max-width: 900px; }
.accordion { margin-top: .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: box-shadow var(--t-base), border-color var(--t-base); }
.accordion[open] { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); box-shadow: var(--shadow); }
.accordion summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; padding: .9rem 1.3rem; cursor: pointer; list-style: none; font-family: var(--font-heading); font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .icon { flex: none; width: 22px; height: 22px; color: var(--brand); transition: transform var(--t-base) var(--ease-out); }
.accordion[open] summary .icon { transform: rotate(180deg); }
.faq__body { padding: 0 1.3rem 1.3rem; }

.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--s-4); }
.tabs__tab { min-height: 44px; padding: .55rem 1.2rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-family: var(--font-heading); font-weight: 600; color: var(--text); transition: background-color var(--t-base), color var(--t-base), border-color var(--t-base); }
.tabs__tab:hover { border-color: var(--brand); color: var(--brand); }
.tabs__tab[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.content-tabs__panel { max-width: 80ch; }

/* ---------- 12. Logos (supporters), cards ---------- */
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s-2); }
.logo-wall__item { display: grid; place-items: center; height: 100%; min-height: 110px; padding: 1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base); }
.logo-wall__item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.logo-wall img { max-height: 84px; width: auto; object-fit: contain; }
.logo-wall__name { font-weight: 600; text-align: center; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 320px)); justify-content: center; gap: var(--s-3); }
.info-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base); }
a.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
/* Show the whole photo at its own shape (team portraits are 4:5), never cropped */
.info-card__img { display: block; overflow: hidden; background: var(--brand-tint); }
.info-card__img img { display: block; width: 100%; height: auto; }
.info-card__body { display: grid; gap: .3rem; padding: 1.1rem 1.2rem 1.3rem; text-align: center; }
.info-card__title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); color: var(--ink); }
.info-card__text { color: var(--brand); font-size: var(--fs-sm); font-weight: 600; }

/* ---------- 13. Other content blocks ---------- */
.intro__grid, .feature__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.intro__media, .feature__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.intro__frame { display: none; }
.feature__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.richtext__inner { max-width: 900px; }
.quote__inner { max-width: 860px; text-align: center; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-style: italic; font-size: clamp(1.4rem, 1.1rem + 1.5vw, 2.2rem); line-height: 1.35; color: var(--ink); }
.quote blockquote::before { content: "“"; display: block; font-size: 2.6em; line-height: .6; color: var(--brand); }
.quote figcaption { margin-top: var(--s-3); font-weight: 700; color: var(--brand); }
.cta { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; text-align: center; }
.cta__inner { display: flex; flex-direction: column; align-items: center; gap: var(--s-2); }
.cta__heading { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h2); line-height: 1.12; color: #fff; }
.cta .btn { background: #fff; color: var(--brand); border-color: #fff; }
.cta .btn:hover { background: var(--accent); border-color: var(--accent); color: var(--deep); }
.spacer { display: grid; place-items: center; }
.spacer--sm { height: 2rem; } .spacer--md { height: 4rem; } .spacer--lg { height: 7rem; }
.custom-html iframe { max-width: 100%; }

/* Gallery & lightbox */
.masonry { columns: 4 240px; column-gap: 1rem; }
.masonry__item { break-inside: avoid; margin-bottom: 1rem; }
.masonry__item[hidden] { display: none; }
.masonry__item a { display: block; overflow: hidden; border-radius: 12px; }
.masonry__item img { width: 100%; transition: transform 1s var(--ease-out); }
.masonry__item a:hover img { transform: scale(1.04); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: var(--s-4); }
.chip { min-height: 44px; padding: .5rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 600; transition: background-color var(--t-base), color var(--t-base); }
.chip.is-active, .chip:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; grid-template-rows: 1fr auto; place-items: center; background: rgba(20, 6, 18, .94); padding: 4rem 4.5rem 1.5rem; }
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 9rem); object-fit: contain; border-radius: 8px; }
.lightbox__caption { padding-top: 1rem; font-size: var(--fs-sm); color: #f1e6ee; text-align: center; }
.lightbox__btn { position: absolute; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgba(255,255,255,.12); transition: background-color var(--t-base); }
.lightbox__btn:hover { background: var(--brand); }
.lightbox__btn .icon { width: 22px; height: 22px; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%) scaleX(-1); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; top: 1.6rem; left: 1.4rem; font-size: var(--fs-xs); letter-spacing: .2em; color: rgba(255,255,255,.7); }

/* Blog */
.post-title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h1); line-height: 1.1; color: var(--ink); max-width: 22ch; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: var(--s-4); }
.post-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base); }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-card__img { aspect-ratio: 16 / 10; overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { display: grid; gap: .5rem; padding: 1.3rem; }
.post-card__meta { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.post-card__title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); line-height: 1.2; color: var(--ink); }
.post-card__text { font-size: var(--fs-sm); color: var(--muted); }
.post-body { max-width: 72ch; margin-inline: auto; }
.post-tags { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: var(--s-5); }
.post-tags li { padding: .15rem .7rem; border-radius: 999px; background: var(--brand-tint); font-size: var(--fs-xs); color: var(--brand); }
.post-back { margin-top: var(--s-5); text-align: center; }
.blog-pager { display: flex; justify-content: center; gap: .6rem; margin-top: var(--s-5); }
.blog-empty { text-align: center; padding-block: var(--s-6); }

/* ---------- 13b. Events ---------- */
.ev-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
@media (max-width: 1000px) { .ev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .ev-grid { grid-template-columns: 1fr; } }
.ev-card[hidden] { display: none; }
.ev-card__link { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base); }
.ev-card__link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ev-card__media { position: relative; aspect-ratio: 2.8 / 1; overflow: hidden; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
/* Posters are wide banners of varying ratios: show each one whole, at its own shape. */
.ev-card__media--poster { aspect-ratio: auto; background: var(--brand-tint); border-bottom: 1px solid var(--line); }
.ev-card__poster { display: block; width: 100%; height: auto; transition: transform 1s var(--ease-out); }
.ev-card__link:hover .ev-card__poster { transform: scale(1.02); }
.ev-card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: rgba(255,255,255,.9); }
.ev-card__date { position: absolute; left: 12px; top: 12px; display: grid; justify-items: center; min-width: 56px; padding: .35rem .5rem; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); line-height: 1.1; }
.ev-card__date strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--brand); }
.ev-card__date span { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.ev-card__body { display: grid; gap: .35rem; padding: 1.1rem 1.2rem 1.3rem; flex: 1; align-content: start; }
.ev-card__meta { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.ev-card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; line-height: 1.25; color: var(--ink); }
.ev-card__when { display: flex; align-items: center; gap: .35rem; font-size: var(--fs-sm); color: var(--muted); }
.ev-card__when .icon { width: 15px; height: 15px; flex: none; color: var(--brand); }
.ev-card__cta { display: inline-flex; align-items: center; gap: .4rem; margin-top: .4rem; font-weight: 700; font-size: var(--fs-sm); color: var(--brand); }
.ev-card__cta .icon { width: 16px; height: 16px; }
.ev-card--past .ev-card__poster { filter: saturate(.55); }
.ev-past-title { margin: var(--s-5) 0 var(--s-3); font-family: var(--font-display); font-size: var(--fs-h3); color: var(--ink); }
.ev-empty { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--radius); background: var(--brand-tint); border: 1px dashed color-mix(in srgb, var(--brand) 35%, transparent); }
.ev-empty__title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); color: var(--ink); }

.ev-hero { padding-block: clamp(2rem, 1.5rem + 3vw, 4rem); background: radial-gradient(70% 100% at 100% 0%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 70%), var(--brand-tint); }
.ev-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.ev-hero__grid:not(:has(.ev-hero__poster)) { grid-template-columns: minmax(0, 760px); }
.ev-hero__poster { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.ev-hero__poster img { width: 100%; }
.ev-hero__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); line-height: 1.1; color: var(--ink); text-wrap: balance; }
.crumbs { margin-bottom: .8rem; font-size: var(--fs-sm); color: var(--muted); }
.crumbs a { color: var(--brand); }
.ev-facts { display: grid; gap: .8rem; margin: var(--s-3) 0 0; }
.ev-facts div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.ev-facts dt { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); padding-top: .2rem; }
.ev-facts dd { margin: 0; font-weight: 600; color: var(--ink); }
.ev-facts .muted { font-weight: 400; color: var(--muted); font-size: var(--fs-sm); }
.ev-badge { display: inline-block; margin-top: var(--s-2); padding: .4rem .9rem; border-radius: 999px; font-size: var(--fs-sm); font-weight: 700; }
.ev-badge--past { background: #ece6ea; color: var(--muted); }
.ev-badge--closed { background: #fdf0ef; color: var(--err); }
.countdown { display: flex; gap: .6rem; margin-top: var(--s-2); }
.countdown[hidden] { display: none; }
.countdown span { display: grid; justify-items: center; min-width: 70px; padding: .5rem .6rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: var(--fs-xs); color: var(--muted); }
.countdown strong { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; color: var(--brand); }
.ev-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.ev-main { display: grid; gap: var(--s-4); }
.ev-about { padding-top: var(--s-4); border-top: 1px solid var(--line); }
.ev-side { display: grid; gap: var(--s-2); position: sticky; top: calc(var(--header-h) + 1rem); }
.ev-side a { color: var(--brand); text-decoration: underline; }
.small { font-size: var(--fs-sm); }
.ev-register__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.ev-register__grid--single { grid-template-columns: minmax(0, 760px); }
.ev-pay__fee { margin-bottom: var(--s-2); }
.ev-pay__alt { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.ev-pay__alt h3 { font-family: var(--font-heading); font-size: 1rem; color: var(--ink); margin-bottom: .4rem; }
.ev-pay__qr { width: 150px; text-align: center; font-size: var(--fs-xs); color: var(--muted); }
.ev-pay__qr img { border-radius: 10px; border: 1px solid var(--line); margin-bottom: .3rem; }

/* ---------- 14. Forms & contact ---------- */
.notice { padding: .9rem 1.1rem; margin-bottom: var(--s-3); border-radius: 12px; border: 1px solid var(--line); background: var(--brand-tint); font-size: var(--fs-sm); }
.notice--success { border-color: color-mix(in srgb, var(--ok) 35%, transparent); background: #ecf8f1; color: #14532d; }
.notice--error { border-color: color-mix(in srgb, var(--err) 35%, transparent); background: #fdf0ef; color: #7a1a12; }
.notice a { color: var(--brand); text-decoration: underline; }
.tform__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); color: var(--ink); margin-bottom: var(--s-3); }
.tform__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.1rem; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label, .field legend { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.field fieldset { border: 0; margin: 0; padding: 0; }
.field input:not([type="checkbox"]):not([type="radio"]), .field textarea, .field select {
  width: 100%; min-height: 48px; padding: .7rem .9rem; border-radius: 12px; border: 1px solid #d9c9d5; background: var(--surface);
  font: inherit; font-size: 1rem; color: var(--ink); resize: vertical; transition: border-color var(--t-base), box-shadow var(--t-base);
}
.field input[type="file"] { padding: .55rem; background: var(--bg); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--err); }
.field__error { font-size: var(--fs-sm); color: var(--err); }
.field__hint { font-size: var(--fs-xs); color: var(--muted); }
.req { color: var(--err); }
.check { display: flex; align-items: flex-start; gap: .6rem; font-size: var(--fs-sm); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--brand); }
.check a { color: var(--brand); text-decoration: underline; }
.choices { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: .3rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-block__inner { max-width: 760px; }
.form-block .tform { margin-top: var(--s-3); padding: clamp(1.2rem, 1rem + 1.5vw, 2.2rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-surface { padding: clamp(1.2rem, 1rem + 1.5vw, 2.4rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }

.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact__list { display: grid; gap: var(--s-3); margin: var(--s-4) 0; }
.contact__list dt { display: flex; align-items: center; gap: .55rem; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: .25rem; }
.contact__list dt .icon { width: 18px; height: 18px; }
.contact__list dd { margin: 0; font-size: var(--fs-lg); font-weight: 600; color: var(--ink); }
.contact__list address { font-style: normal; font-size: var(--fs-base); font-weight: 400; color: var(--text); }
.contact__list a:hover { color: var(--brand); }
.contact__media { margin-top: var(--s-4); border-radius: var(--radius); overflow: hidden; }

/* ---------- 15. Footer & floating actions ---------- */
.site-footer { margin-top: var(--section); background: var(--deep); color: rgba(255,255,255,.78); position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: -200px; bottom: -260px; width: 560px; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255,255,255,.07); box-shadow: 0 0 0 80px rgba(255,255,255,.02); pointer-events: none; }
.site-footer__top { position: relative; display: grid; grid-template-columns: 1.5fr 1fr 1.3fr; gap: var(--s-5); padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.site-footer__brand img { width: 150px; background: #fff; padding: .6rem .9rem; border-radius: 14px; }
.site-footer__tagline { margin: 1.1rem 0 1.4rem; max-width: 42ch; font-size: var(--fs-sm); line-height: 1.7; }
.site-footer__title { margin-bottom: 1.1rem; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: #fff; }
.site-footer__nav ul { display: grid; gap: .55rem; }
.site-footer a { color: rgba(255,255,255,.82); transition: color var(--t-fast); }
.site-footer a:hover { color: var(--accent); }
.site-footer__contact li { display: flex; align-items: flex-start; gap: .7rem; margin-bottom: .8rem; word-break: break-word; }
.site-footer__contact .icon { flex: none; width: 18px; height: 18px; margin-top: .3rem; color: var(--accent); }
.site-footer__contact strong { color: #fff; font-weight: 600; }
.site-footer .social a { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; }
.site-footer .social a:hover { background: var(--accent); border-color: var(--accent); color: var(--deep); }
.site-footer__bottom { position: relative; padding-block: 1.4rem; border-top: 1px solid rgba(255,255,255,.1); font-size: var(--fs-xs); color: rgba(255,255,255,.6); }

.float-actions { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; align-items: center; gap: .6rem; }
.float-actions__cta { box-shadow: var(--shadow-lg); }
.float-actions__wa { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 10px 24px rgba(37, 211, 102, .35); transition: transform var(--t-base) var(--ease-out); }
.float-actions__wa:hover { transform: scale(1.06); }
.float-actions__wa .icon { width: 28px; height: 28px; }
.preview-bar { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 400; padding: .6rem 1.2rem; border-radius: 999px; background: var(--ink); color: #fff; font-size: var(--fs-xs); font-weight: 700; box-shadow: var(--shadow-lg); }

/* ---------- 16. Per-block settings from the CMS ---------- */
.bs { position: relative; }
.bs-anchor { scroll-margin-top: calc(var(--header-h) + 1rem); }
.bs-bg-black { background: var(--deep); color: rgba(255,255,255,.85); }
.bs-bg-black .display-heading, .bs-bg-black .prose h2, .bs-bg-black .prose h3, .bs-bg-black .prose strong { color: #fff; }
.bs-bg-black .prose a { color: #f3d58e; }
.bs-bg-charcoal { background: var(--brand-tint); }
.bs-bg-gold { background: var(--surface); }
.bs-has-image { background-image: linear-gradient(rgba(42,13,39,.82), rgba(42,13,39,.82)), var(--bs-image); background-size: cover; background-position: center; color: rgba(255,255,255,.9); }
.bs-has-image .display-heading, .bs-has-image .prose h2, .bs-has-image .prose h3, .bs-has-image .prose strong { color: #fff; }
.bs-pt-none > .section, .bs-pt-none > .page-title { padding-top: 0; }
.bs-pb-none > .section, .bs-pb-none > .page-title { padding-bottom: 0; }
.bs-pt-sm > .section { padding-top: var(--s-3); }
.bs-pb-sm > .section { padding-bottom: var(--s-3); }
.bs-pt-lg > .section { padding-top: var(--s-7); }
.bs-pb-lg > .section { padding-bottom: var(--s-7); }
.bs-align-left > * { text-align: left; }
.bs-align-right > * { text-align: right; }
.bs-align-center > * { text-align: center; }
.bs-align-center .rule, .bs-align-center .prose, .bs-align-center .section-head, .bs-align-center .col { margin-inline: auto; }
.bs-align-center .btn-row, .bs-align-center .tabs { justify-content: center; }
.motion .bs-noanim [data-reveal] { opacity: 1; transform: none; }

/* ---------- 17. Motion (only when JS + motion are enabled) ---------- */
.motion [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }
.motion .rule--pending { transform: scaleX(0); transition: transform 1s var(--ease-in-out); }
.motion .rule--pending.is-in { transform: none; }
.motion .hero__text > * { animation: rise .9s var(--ease-out) both; }
.motion .hero__text > :nth-child(2) { animation-delay: .08s; }
.motion .hero__text > :nth-child(3) { animation-delay: .16s; }
.motion .hero__text > :nth-child(4) { animation-delay: .24s; }
.motion .hero__media { animation: rise 1.1s var(--ease-out) .15s both; }
.motion .hero__orbit { animation: spin 120s linear infinite; }
.motion .page-title__heading { animation: rise .9s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- 18. Responsive ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-toggle { display: grid; }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .hero__grid, .intro__grid, .feature__grid, .contact__grid { grid-template-columns: 1fr; }
  .cols--2, .cols--3, .cols--2.cols--wide-left, .cols--2.cols--wide-right { grid-template-columns: 1fr; }
  .ev-hero__grid, .ev-body, .ev-register__grid { grid-template-columns: 1fr; }
  .ev-side { position: static; }
  .ev-pay__alt { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .lightbox { padding: 4rem 1rem 1.5rem; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; }
}
@media (max-width: 600px) {
  .header-login { display: none; }
  .tform__grid { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr; }
  .float-actions__cta { padding-inline: 1rem; font-size: .85rem; min-height: 44px; }
  .banner--narrow .banner__frame, .banner--contained .banner__frame { width: calc(100% - 2rem); }
}
