@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Hind:wght@300;400;500;600;700&display=swap');

/* Prevent horizontal scrollbar — 100vw includes scrollbar width, so the
   hero full-bleed margin trick can push a few pixels past the viewport.
   overflow-x: clip (unlike hidden) does not create a scroll container,
   so position:sticky on the header keeps working correctly. */
html { overflow-x: clip; }

/* ==========================================================================
   SAGS — main.css  (v0.2.0)
   Rewrite: starfield removed (was too busy), hero now uses an Andromeda
   background image, footer is minimal, hamburger menu shows always.
   ========================================================================== */

/* ----- Calm backdrop, no twinkles ----------------------------------------- */
body {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(1100px 600px at 75% -8%, rgba(123, 92, 255, 0.08), transparent 60%),
    radial-gradient(800px 600px at 5% 105%, rgba(123, 92, 255, 0.06), transparent 60%),
    var(--sags-void);
}
.wp-site-blocks { position: relative; z-index: 1; }

/* ----- Site header -------------------------------------------------------- */
.sags-header {
  position: sticky;
  top: 0;
  z-index: 50;
}
/* backdrop-filter must live on a pseudo, not on the header itself — any
   non-`none` backdrop-filter establishes a containing block for fixed
   descendants, which traps the nav overlay menu inside the header bar. */
.sags-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(5, 7, 20, 0.7);
  border-bottom: 1px solid rgba(28, 33, 71, 0.45);
}
.sags-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
  padding-inline: clamp(1.25rem, 2.5vw, 2rem);
  box-sizing: border-box;
}
.sags-header__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--sags-text);
}
.sags-header__brand img,
.sags-header__brand svg {
  height: 32px;
  width: auto;
  display: block;
}
.sags-header__title {
  font-family: var(--wp--preset--font-family--display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sags-text);
  margin: 0;
}
.sags-header__title a { color: inherit; text-decoration: none; }
.sags-header__title a:hover { color: var(--sags-accent); }

/* Force hamburger overlay on all sizes */
.wp-block-navigation .wp-block-navigation__responsive-container-open {
  display: flex !important;
  background: transparent;
  color: var(--sags-text);
  padding: 0.5rem;
}
.wp-block-navigation .wp-block-navigation__responsive-container-open svg {
  fill: var(--sags-text);
  width: 28px;
  height: 28px;
}
/* Right-side panel with slide in/out animation. The panel is always rendered
   (translated off-screen when closed) so the close transition can play —
   `display: none` can't be transitioned. The descendant selector under
   `.wp-block-navigation` is needed to outweigh WP's `:not(.is-menu-open.is-menu-open)`
   rule that forces background-color: inherit when the menu isn't open. */
.wp-block-navigation .wp-block-navigation__responsive-container.hidden-by-default {
  display: flex !important;
  flex-direction: column;
  inset: 0 0 0 auto !important;
  width: min(440px, 90vw) !important;
  background: var(--sags-deep) !important;
  border-left: 1px solid var(--sags-border);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.5);
  padding: 2.5rem 2.75rem !important;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 380ms cubic-bezier(.2, .8, .2, 1),
              visibility 0s linear 380ms;
  animation: none !important; /* override WP's overlay-menu__fade-in */
}
.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 380ms cubic-bezier(.2, .8, .2, 1),
              visibility 0s linear 0s;
}
/* Dim over the page (always present, fades with the panel). The blur itself
   lives on the page chrome below — backdrop-filter here would be trapped
   inside the panel's z-index:100000 stacking context and have nothing to
   blur. */
.wp-block-navigation .wp-block-navigation__responsive-container.hidden-by-default::before {
  content: "";
  position: fixed;
  inset: 0;
  right: min(440px, 90vw);
  background: rgba(5, 7, 20, 0.55);
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 380ms ease-out;
}
/* Blur the page chrome (everything except the nav, which contains the panel)
   while the menu is open. WP toggles `has-modal-open` on <html> for us.
   Important: only set `filter` while the modal is open — a permanent
   `filter: blur(0)` baseline promotes these elements to compositor layers
   even at zero blur, which breaks the sibling sticky header in Chrome/Safari.
   Browsers interpolate `none ↔ blur(6px)` via an implicit `blur(0)` so the
   transition still animates smoothly. */
.sags-header__brand,
main,
footer {
  transition: filter 380ms ease-out;
}
html.has-modal-open .sags-header__brand,
html.has-modal-open main,
html.has-modal-open footer {
  filter: blur(6px);
}
.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open::before {
  opacity: 1;
}
/* WP locks <html> scroll when the menu opens — undo that so the page-behind
   stays scrollable. */
html.has-modal-open { overflow: visible !important; }

@media (prefers-reduced-motion: reduce) {
  .wp-block-navigation .wp-block-navigation__responsive-container.hidden-by-default,
  .wp-block-navigation .wp-block-navigation__responsive-container.hidden-by-default::before,
  .sags-header__brand, main, footer {
    transition-duration: 0s !important;
  }
}

/* Panel content: left-aligned column with `01`–`06` prefix counters. */
.wp-block-navigation__responsive-container.hidden-by-default .wp-block-navigation__responsive-container-content {
  align-items: flex-start !important;
  justify-content: flex-start !important;
  padding-top: 3.5rem !important;
}
.wp-block-navigation__responsive-container.hidden-by-default .wp-block-navigation__container {
  counter-reset: sags-nav;
  align-items: flex-start;
  gap: 1.25rem;
}
.wp-block-navigation__responsive-container.hidden-by-default .wp-block-navigation-item {
  counter-increment: sags-nav;
}
.wp-block-navigation__responsive-container.hidden-by-default .wp-block-navigation-item__content {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(1.4rem, 3vw, 1.85rem) !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  font-weight: 500;
  color: var(--sags-text) !important;
  display: inline-flex !important;
  align-items: baseline;
  gap: 1.4rem;
}
.wp-block-navigation__responsive-container.hidden-by-default .wp-block-navigation-item__content::before {
  content: counter(sags-nav, decimal-leading-zero);
  font-size: 0.5em;
  font-weight: 400;
  color: var(--sags-text-muted);
  letter-spacing: 0.14em;
  flex: 0 0 auto;
}
.wp-block-navigation__responsive-container.hidden-by-default .wp-block-navigation-item__content:hover {
  color: var(--sags-accent) !important;
}

/* ----- Hero with Andromeda backdrop --------------------------------------- */
.sags-hero {
  position: relative;
  min-height: clamp(620px, 96vh, 980px);
  display: grid;
  place-items: center;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
  margin: 0 calc(50% - 50vw);
  padding-block: clamp(5rem, 12vw, 9rem);
}
/* WP's `is-layout-flow > *` rule injects margin-block-start on the 2nd+ children
   of the section, which on the absolutely-positioned veil shifts its top edge
   down and exposes a strip of unmasked bg. Reset block margins on all hero
   children — bg/veil are abs-positioned and inner is grid-centered. */
.sags-hero > * { margin-block: 0; }
.sags-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url('../images/andromeda.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.9) saturate(1.05);
}
.sags-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 60% at 50% 55%, rgba(5, 7, 20, 0) 0%, rgba(5, 7, 20, 0.55) 60%, rgba(5, 7, 20, 0.95) 100%),
    linear-gradient(180deg, rgba(5, 7, 20, 0.45) 0%, rgba(5, 7, 20, 0) 30%, rgba(5, 7, 20, 0) 70%, rgba(5, 7, 20, 0.95) 100%);
  pointer-events: none;
}
.sags-hero__inner {
  position: relative;
  max-width: 880px;
  padding-inline: 1.5rem;
}
.sags-hero__logo {
  width: clamp(140px, 19vw, 220px);
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto 1.75rem;
  display: block;
  filter: drop-shadow(0 12px 36px rgba(123, 92, 255, 0.4))
          drop-shadow(0 0 60px rgba(123, 92, 255, 0.18));
  animation: sags-logo-in 1.2s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes sags-logo-in {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: none; }
}
.sags-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.95rem;
  border: 1px solid rgba(232, 234, 245, 0.25);
  border-radius: 999px;
  font-family: var(--wp--preset--font-family--display);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(232, 234, 245, 0.85);
  margin-bottom: 1.25rem;
  backdrop-filter: blur(6px);
  background: rgba(5, 7, 20, 0.4);
}
.sags-hero__eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sags-accent);
  box-shadow: 0 0 12px var(--sags-accent);
  animation: sags-pulse 2.4s ease-in-out infinite;
}
@keyframes sags-pulse { 50% { opacity: 0.35; transform: scale(0.85); } }
@media (prefers-reduced-motion: reduce) {
  .sags-hero__logo, .sags-hero__eyebrow::before { animation: none; }
}

.sags-hero__title {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 1.25rem;
  color: var(--sags-text);
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(5, 7, 20, 0.6);
}
.sags-hero__lede {
  max-width: 60ch;
  margin: 0 auto 2.25rem;
  color: rgba(232, 234, 245, 0.85);
  font-size: clamp(1rem, 1.05vw + 0.85rem, 1.2rem);
  line-height: 1.6;
  text-shadow: 0 1px 16px rgba(5, 7, 20, 0.65);
}
.sags-hero__fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2.5rem;
  padding: 0;
}
.sags-hero__fields li {
  list-style: none;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(232, 234, 245, 0.22);
  border-radius: 999px;
  font-family: var(--wp--preset--font-family--display);
  font-size: 0.8rem;
  color: rgba(232, 234, 245, 0.85);
  letter-spacing: 0.02em;
  background: rgba(5, 7, 20, 0.45);
  backdrop-filter: blur(6px);
}

/* ----- Section primitive --------------------------------------------------- */
.sags-section {
  padding-block: clamp(4rem, 8vw, 7rem);
  position: relative;
}
.sags-section--alt {
  background: var(--sags-deep);
}
.sags-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--wp--preset--font-family--display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sags-accent);
  margin-bottom: 1.1rem;
}
.sags-section__eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
}
.sags-section__title {
  font-size: clamp(2.75rem, 5.4vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0 0 2.5rem;
  text-wrap: balance;
}

/* ----- About section ------------------------------------------------------- */
.sags-about__title {
  margin-bottom: 2rem;
}
.sags-about__visual {
  margin: 0;
  max-width: 380px;
  width: 100%;
  aspect-ratio: 1 / 1;
}
.sags-about__visual svg {
  width: 100%;
  height: 100%;
  display: block;
}
.sags-about__lede {
  margin: 0;
  font-size: clamp(1.1rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  letter-spacing: -0.005em;
  color: var(--sags-text);
}
.sags-about__sub {
  margin: 1.1rem 0 0;
  line-height: 1.7;
}
.sags-about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.75rem;
}
.sags-stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem 1.25rem;
  border-radius: 16px;
  background: #120921;
  border: 1px solid rgba(123, 92, 255, 0.18);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.sags-stat-card:hover {
  border-color: rgba(123, 92, 255, 0.45);
  background-color: #1a0d30;
}
.sags-stat-card__num {
  font-family: var(--wp--preset--font-family--display);
  font-weight: 600;
  font-size: clamp(2.25rem, 3.4vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--sags-text);
}
.sags-stat-card__plus {
  color: var(--sags-accent);
  margin-left: 0.04em;
}
.sags-stat-card__label {
  font-family: var(--wp--preset--font-family--display);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sags-text-muted);
  margin-top: 0.25rem;
}
@media (max-width: 781px) {
  .sags-about__stats { grid-template-columns: 1fr; }
  .sags-about__visual { max-width: 280px; margin-inline: auto; }
}

/* ----- Card primitive ------------------------------------------------------ */
.sags-card {
  background: #120921;
  border: 1px solid rgba(123, 92, 255, 0.18);
  border-radius: 24px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  max-width: 360px;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.sags-card:hover {
  transform: translateY(-4px);
  background-color: #1a0d30;
  border-color: rgba(123, 92, 255, 0.45);
  box-shadow: 0 16px 48px -12px rgba(123, 92, 255, 0.35);
}
.sags-card.is-highlighted {
  border-color: var(--sags-accent);
  box-shadow: 0 0 0 1px var(--sags-accent), 0 18px 40px -12px rgba(123, 92, 255, 0.45);
}
.sags-card__avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--sags-border);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(123, 92, 255, 0.25), rgba(123, 92, 255, 0.15));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sags-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.sags-card__name {
  font-family: var(--wp--preset--font-family--display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.25rem;
}
.sags-card__bio {
  color: var(--sags-text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 1.25rem;
}
.sags-card__link {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--wp--preset--font-family--display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--sags-text-muted);
  text-decoration: none;
  transition: color 0.25s ease;
}
.sags-card__link span { transition: transform 0.25s ease; display: inline-block; }
.sags-card__link:hover { color: var(--sags-accent); }
.sags-card__link:hover span { transform: translateX(3px); }
.sags-card__link:focus-visible {
  outline: 2px solid var(--sags-warm);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ----- Speakers section header -------------------------------------------- */
.sags-speakers__title { margin-bottom: 1.25rem; }
.sags-speakers__intro { margin: 0; }


/* ----- Members section + carousel ----------------------------------------- */
.sags-members__title {
  margin-bottom: 1.25rem;
}
.sags-members__intro {
  margin: 0;
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.6;
  color: var(--sags-text-muted);
}

/* Carousel shell — arrow + viewport + arrow on a single row */
.sags-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.75rem, 1.75vw, 1.5rem);
}
.sags-carousel__viewport {
  overflow: hidden;
  padding-block: 0.5rem; /* space for hover lift / active outline */
}
.sags-carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * var(--sags-carousel-gap, 1.25rem)) / 3);
  gap: var(--sags-carousel-gap, 1.25rem);
  transition: transform 0.55s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}
.sags-carousel__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 23, 58, 0.6);
  color: var(--sags-text);
  border: 1px solid var(--sags-border);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, opacity 0.25s, transform 0.25s;
  padding: 0;
}
.sags-carousel__arrow:hover:not(:disabled) {
  background: var(--sags-accent);
  color: var(--sags-void);
  border-color: var(--sags-accent);
  transform: scale(1.05);
}
.sags-carousel__arrow:focus-visible {
  outline: 2px solid var(--sags-warm);
  outline-offset: 3px;
}
.sags-carousel__arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.sags-carousel__arrow svg { display: block; }

/* Member card — non-clickable shell with two clickable elements inside. */
.sags-member-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: #120921;
  border: 1px solid rgba(123, 92, 255, 0.18);
  color: var(--sags-text);
  max-width: 320px;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.sags-member-card:has(.sags-member-card__media:hover),
.sags-member-card:has(.sags-member-card__cta:hover) {
  border-color: rgba(123, 92, 255, 0.45);
  background-color: #1a0d30;
}
.sags-member-card.is-highlighted {
  border-color: var(--sags-accent);
  box-shadow: 0 0 0 1px var(--sags-accent), 0 18px 40px -12px rgba(123, 92, 255, 0.45);
}

/* Avatar sphere — clickable */
.sags-member-card__media {
  display: block;
  aspect-ratio: 1 / 1;
  background: linear-gradient(165deg, rgba(123, 92, 255, 0.2), rgba(123, 92, 255, 0.08));
  border-bottom: 1px solid var(--sags-border);
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.3s ease;
}
.sags-member-card__media svg,
.sags-member-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
}
.sags-member-card__media:hover {
  filter: brightness(1.15);
}
.sags-member-card__media:hover svg,
.sags-member-card__media:hover img {
  transform: scale(1.04);
}
.sags-member-card__media:focus-visible {
  outline: 2px solid var(--sags-warm);
  outline-offset: -2px;
}

.sags-member-card__body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.sags-member-card__name {
  display: block;
  margin: 0;
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--sags-text);
}
.sags-member-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.sags-member-card__role {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  font-weight: 500;
  color: var(--sags-accent);
}

/* "View profile →" — clickable */
.sags-member-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  font-family: var(--wp--preset--font-family--display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--sags-text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.25s ease;
}
.sags-member-card__cta span {
  transition: transform 0.25s ease;
}
.sags-member-card__cta:hover {
  color: var(--sags-accent);
}
.sags-member-card__cta:hover span {
  transform: translateX(3px);
}
.sags-member-card__cta:focus-visible {
  outline: 2px solid var(--sags-warm);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Mobile: arrows hidden, viewport scrolls horizontally. */
@media (max-width: 781px) {
  .sags-carousel { grid-template-columns: minmax(0, 1fr); }
  .sags-carousel__arrow { display: none; }
  .sags-carousel__viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .sags-carousel__viewport::-webkit-scrollbar { display: none; }
  .sags-carousel__track {
    transform: none !important;
    grid-auto-columns: 72%;
    transition: none;
  }
  .sags-carousel__track > * { scroll-snap-align: center; }
}

/* ----- Event card (feature) ------------------------------------------------ */
.sags-event {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--sags-border);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(17, 23, 58, 0.7), rgba(10, 14, 36, 0.5));
}
@media (max-width: 860px) { .sags-event { grid-template-columns: 1fr; } }
.sags-event__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  z-index: 0;
}
.sags-event__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(10, 14, 36, 0.92) 0%,
    rgba(10, 14, 36, 0.75) 40%,
    rgba(10, 14, 36, 0.35) 100%);
}
.sags-event__body { position: relative; z-index: 1; padding: clamp(1.5rem, 3vw, 2.5rem); }
.sags-event__date {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 0.65rem 1rem;
  border: 1px solid var(--sags-border);
  border-radius: 12px;
  background: var(--sags-void);
  margin-bottom: 1rem;
  font-family: var(--wp--preset--font-family--display);
}
.sags-event__date strong { font-size: 1.6rem; font-weight: 600; line-height: 1; color: var(--sags-text); }
.sags-event__date span   { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sags-text-muted); margin-top: 0.2rem; }
.sags-event__title {
  font-size: var(--wp--preset--font-size--x-large);
  font-weight: 600;
  margin: 0 0 0.6rem;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.sags-event__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  color: var(--sags-text-muted);
  font-size: 0.92rem;
  margin: 0 0 1rem;
}
.sags-event__meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.sags-event__map iframe {
  width: 100%; height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
}
.sags-event__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.sags-event__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--sags-border);
  background: transparent;
  color: var(--sags-text);
  font-family: var(--wp--preset--font-family--display);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.sags-event__btn svg { transition: transform 0.25s ease; }
.sags-event__btn:hover {
  border-color: var(--sags-accent);
  color: var(--sags-accent);
}
.sags-event__btn:hover svg { transform: translateX(3px); }
.sags-event__btn:focus-visible {
  outline: 2px solid var(--sags-warm);
  outline-offset: 3px;
}

/* ----- Outline button hover ---------------------------------------------- */
/* Applies to every wp:button with is-style-outline (Speakers, Gallery,
   Past events, Hero, etc.). Smooth accent fill + subtle lift; the inner
   .wp-block-button__link is the visible pill. Specificity beats core's
   .has-text-color rule, so no !important needed. */
.wp-block-button.is-style-outline .wp-block-button__link {
  transition:
    background-color 0.3s ease,
    color            0.3s ease,
    border-color     0.3s ease,
    box-shadow       0.3s ease;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background-color: var(--sags-accent);
  color: var(--sags-void);
  border-color: var(--sags-accent);
  box-shadow: 0 14px 34px -14px rgba(123, 92, 255, 0.55);
}
.wp-block-button.is-style-outline .wp-block-button__link:focus-visible {
  outline: 2px solid var(--sags-warm);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .wp-block-button.is-style-outline .wp-block-button__link {
    transition-duration: 0s;
  }
}

/* ----- Map primitive ------------------------------------------------------- */
.sags-map iframe {
  width: 100%;
  border: 1px solid var(--sags-border);
  border-radius: 12px;
  display: block;
  aspect-ratio: 16 / 10;
  filter: invert(0.92) hue-rotate(180deg) saturate(0.7) brightness(0.95);
}

/* ----- Footer (minimal — nav lives in the hamburger) ---------------------- */
.sags-footer {
  border-top: 1px solid var(--sags-border);
  padding-block: 2.5rem;
  color: var(--sags-text-muted);
  font-size: 0.85rem;
}
/* The group block adds `is-layout-flex` which gives `display: flex` at higher
   specificity than a single class, so we qualify with the parent to win. */
.sags-footer .sags-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.25rem;
  padding-inline: clamp(1.25rem, 2.5vw, 2rem);
  box-sizing: border-box;
  width: 100%;
}
.sags-footer .sags-footer__brand { justify-self: start; }
.sags-footer .sags-footer__inner > p { margin: 0; grid-column: 2; }
.sags-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--sags-text);
  font-family: var(--wp--preset--font-family--display);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.sags-footer__brand img { height: 28px; width: auto; }

/* ----- Smooth anchor scrolling -------------------------------------------- */
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ----- Reveal on scroll --------------------------------------------------- */
.sags-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1);
}
.sags-reveal.is-visible { opacity: 1; transform: none; }

/* ----- WPForms theming ---------------------------------------------------- */
.wpforms-form input[type="text"],
.wpforms-form input[type="email"],
.wpforms-form input[type="tel"],
.wpforms-form input[type="url"],
.wpforms-form textarea,
.wpforms-form select {
  background: rgba(17, 23, 58, 0.6) !important;
  border: 1px solid rgba(123, 92, 255, 0.35) !important;
  color: var(--sags-text) !important;
  border-radius: 10px !important;
  padding: 0.85rem 1rem !important;
  font-family: var(--wp--preset--font-family--body) !important;
}
.wpforms-form input:focus, .wpforms-form textarea:focus, .wpforms-form select:focus {
  outline: none !important;
  border-color: var(--sags-accent) !important;
  box-shadow: 0 0 0 3px rgba(123, 92, 255, 0.18) !important;
}
.wpforms-form label { color: var(--sags-text-muted) !important; font-size: 0.85rem !important; }
.wpforms-form .wpforms-field-label,
.wpforms-form .wpforms-field-sublabel {
  color: var(--sags-text) !important;
}
.wpforms-form .wpforms-field-medium {
  max-width: 100% !important;
  width: 100% !important;
}
div.wpforms-container-full .wpforms-form .wpforms-field-name {
  width: 100% !important;
}
div.wpforms-container-full .wpforms-form .wpforms-field-name fieldset {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  min-inline-size: 0 !important;
}
.wpforms-form input::placeholder,
.wpforms-form textarea::placeholder {
  color: var(--sags-text-muted) !important;
  opacity: 1 !important;
}
div.wpforms-container-full .wpforms-form .wpforms-field-name .wpforms-field-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 0.75rem !important;
}
div.wpforms-container-full .wpforms-form .wpforms-field-name .wpforms-field-row-block {
  flex: 1 1 0 !important;
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
div.wpforms-container-full .wpforms-form .wpforms-field-name input {
  width: 100% !important;
}
.wpforms-form button[type="submit"] {
  background: var(--sags-accent) !important;
  border: 0 !important;
  color: var(--sags-void) !important;
  font-family: var(--wp--preset--font-family--display) !important;
  font-weight: 500 !important;
  border-radius: 999px !important;
  padding: 0.85rem 2rem !important;
  width: 100% !important;
  display: block !important;
}
.wpforms-form button[type="submit"]:hover { background: var(--sags-text) !important; }

/* ----- Responsive niceties ------------------------------------------------- */
@media (max-width: 640px) {
  .sags-hero { min-height: 78vh; }
  .sags-hero__title { font-size: clamp(2.25rem, 9vw, 3.25rem); }
}

/* ----- Album card (analogue-film thumbnail) ------------------------------- */
/* Used on the homepage gallery carousel. Outer link is the whole card; the
   "frame" emulates a 35 mm film cell — sprocket-hole strips top + bottom,
   photo placeholder in between, eyebrow + title sit below the frame. */
.sags-album-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  max-width: 360px;
  width: 100%;
  justify-self: center;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
}
.sags-album-card:hover { transform: translateY(-4px); }
.sags-album-card:focus-visible {
  outline: 2px solid var(--sags-warm);
  outline-offset: 6px;
  border-radius: 6px;
}
.sags-album-card__frame {
  display: block;
  position: relative;
  background: #15182a;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(232, 234, 245, 0.06);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.6);
  transition: box-shadow 0.4s, border-color 0.4s;
}
.sags-album-card:hover .sags-album-card__frame {
  border-color: rgba(123, 92, 255, 0.35);
  box-shadow: 0 26px 50px -14px rgba(123, 92, 255, 0.3);
}
.sags-album-card__sprockets {
  display: block;
  height: 18px;
  background-color: #0c0e1c;
  background-image: radial-gradient(circle at 11px center, var(--sags-void) 0 4px, transparent 4.5px);
  background-size: 22px 18px;
  background-repeat: repeat-x;
  background-position: center;
}
.sags-album-card__photo {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0a0e24;
}
.sags-album-card__photo svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}
.sags-album-card:hover .sags-album-card__photo svg { transform: scale(1.04); }
.sags-album-card__photo::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 50%, transparent 50%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
  z-index: 1;
}
.sags-album-card__grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.25;
  mix-blend-mode: overlay;
  background-image:
    repeating-radial-gradient(circle at 0 0, rgba(255,255,255,0.06) 0 1px, transparent 1px 3px),
    repeating-radial-gradient(circle at 50% 50%, rgba(0,0,0,0.06) 0 1px, transparent 1px 2px);
  z-index: 2;
}
.sags-album-card__meta {
  display: block;
  padding: 1rem 0.25rem 0;
}
.sags-album-card__eyebrow {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sags-accent);
  margin: 0 0 0.25rem;
}
.sags-album-card__title {
  display: block;
  font-family: var(--wp--preset--font-family--display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--sags-text);
  margin: 0;
  line-height: 1.35;
}

/* Homepage gallery: stack heading top, carousel beneath, button beneath. */
.sags-gallery__head { gap: 0.4rem; }
.sags-gallery__subtitle {
  color: var(--sags-text-muted);
  font-size: 0.95rem;
  margin-top: -0.5rem;
  margin-bottom: 2rem;
}

/* ----- Album show (single-album view: grid + carousel toggle) ------------- */
.sags-album-show {
  padding-block: clamp(3rem, 6vw, 5rem);
}
.sags-album-show__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.5rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.sags-album-show__back {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--wp--preset--font-family--display);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--sags-text-muted);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.25s;
}
.sags-album-show__back:hover { color: var(--sags-accent); }
.sags-album-show__title {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  text-wrap: balance;
}
.sags-album-show__count {
  margin: 0.6rem 0 0;
  color: var(--sags-text-muted);
  font-size: 0.9rem;
}
.sags-album-show__toggle {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  background: rgba(17, 23, 58, 0.55);
  border: 1px solid var(--sags-border);
  border-radius: 999px;
  gap: 2px;
}
.sags-album-show__toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border: 0;
  background: transparent;
  color: var(--sags-text-muted);
  font-family: var(--wp--preset--font-family--display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.sags-album-show__toggle-btn svg { width: 14px; height: 14px; }
.sags-album-show__toggle-btn:hover { color: var(--sags-text); }
.sags-album-show__toggle-btn.is-active {
  background: var(--sags-accent);
  color: var(--sags-void);
}
.sags-album-show__toggle-btn:focus-visible {
  outline: 2px solid var(--sags-warm);
  outline-offset: 2px;
}

/* Pane crossfade — both panes mounted, one display:none'd by [hidden]. */
.sags-album-show__pane[hidden] { display: none; }

/* Grid pane */
.sags-album-show__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.sags-album-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: #0a0e24;
  border: 1px solid var(--sags-border);
  cursor: pointer;
  transition: border-color 0.3s, transform 0.4s cubic-bezier(.2,.8,.2,1);
}
.sags-album-photo:hover {
  border-color: rgba(123, 92, 255, 0.45);
  transform: translateY(-3px);
}
.sags-album-photo__inner {
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 60% at 30% 20%, rgba(123, 92, 255, 0.4), transparent 60%),
    radial-gradient(70% 60% at 80% 80%, rgba(123, 92, 255, 0.3), transparent 65%),
    linear-gradient(160deg, #11173A, #0A0E24);
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}
.sags-album-photo:hover .sags-album-photo__inner { transform: scale(1.05); }
.sags-album-photo__num {
  position: absolute;
  bottom: 8px; left: 10px;
  font-family: var(--wp--preset--font-family--display);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: rgba(232, 234, 245, 0.85);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Album grid: real images crop-to-fill, centered. The button is the cell. */
.sags-album-show__grid .sags-album-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Carousel slides: img fills the slide, centered crop. */
.sags-album-show__pane--carousel .sags-album-photo img,
.sags-gallery--peek .sags-album-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Carousel pane — reuse .sags-carousel structure with a featured center photo.
   Also applied to the homepage gallery section (.sags-gallery--peek). */
.sags-album-show__pane--carousel,
.sags-gallery--peek { padding-block: 0.25rem; }
.sags-album-show__pane--carousel .sags-carousel__track,
.sags-gallery--peek .sags-carousel__track {
  /* show ~1 large + 2 partial neighbours; on mobile defaults take over */
  grid-auto-columns: calc((100% - 2 * var(--sags-carousel-gap, 1.25rem)) / 2);
}
.sags-album-show__pane--carousel .sags-album-photo,
.sags-gallery--peek .sags-album-photo {
  aspect-ratio: 3 / 2;
  border-radius: 14px;
  cursor: default;
  opacity: 0.5;
  transform: scale(0.7);
  filter: blur(4px);
  transition: opacity 0.4s, transform 0.4s cubic-bezier(.2,.8,.2,1), filter 0.4s, border-color 0.3s;
}
.sags-album-show__pane--carousel .sags-album-photo.is-current,
.sags-gallery--peek .sags-album-photo.is-current {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  border-color: rgba(123, 92, 255, 0.45);
  box-shadow: 0 22px 60px -20px rgba(123, 92, 255, 0.4);
}
.sags-album-show__pane--carousel .sags-album-photo__num,
.sags-gallery--peek .sags-album-photo__num {
  font-size: 0.78rem;
}

@media (max-width: 781px) {
  .sags-album-show__head {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .sags-album-show__toggle { justify-self: start; }
  .sags-album-show__grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* ============================================================
 * Album archive grid: 4-col responsive layout for /gallery/ page.
 * ============================================================ */
.sags-albums-archive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1024px) {
  .sags-albums-archive-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .sags-albums-archive-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .sags-albums-archive-grid { grid-template-columns: 1fr; }
}

/* When a card has a real featured image, render it inside the __photo slot.
   Mirrors the existing svg sizing strategy (width/height 100% inside the
   aspect-ratio container, no position:absolute). The ::before vignette
   (z-index 1) and __grain (z-index 2) stay layered above. */
.sags-album-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}
.sags-album-card:hover .sags-album-card__photo img {
  transform: scale(1.04);
}

/* ----- Past events row ---------------------------------------------------- */
.sags-past-events {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.sags-past-events__viewall {
  margin: 1.5rem 0 0;
  text-align: left;
  font-size: 0.85rem;
}
.sags-past-events__viewall a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--sags-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.sags-past-events__viewall a:hover,
.sags-past-events__viewall a:focus {
  color: var(--sags-text);
}
.sags-past-event {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #120921;
  border: 1px solid rgba(123, 92, 255, 0.18);
  border-radius: 16px;
  text-decoration: none;
  color: var(--sags-text);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.sags-past-event:hover {
  transform: translateY(-2px);
  background-color: #1a0d30;
  border-color: rgba(123, 92, 255, 0.45);
  box-shadow: 0 12px 36px -10px rgba(123, 92, 255, 0.25);
}
.sags-past-event__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 56px;
  padding: 0.45rem 0.5rem;
  border-radius: 10px;
  background: var(--sags-void);
  border: 1px solid var(--sags-border);
  font-family: var(--wp--preset--font-family--display);
  flex-shrink: 0;
}
.sags-past-event__date strong { font-size: 1.15rem; font-weight: 600; line-height: 1; color: var(--sags-text); }
.sags-past-event__date span   { font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sags-text-muted); margin-top: 0.2rem; white-space: nowrap; }
.sags-past-event__body { min-width: 0; }
.sags-past-event__title {
  font-family: var(--wp--preset--font-family--display);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
  letter-spacing: -0.005em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sags-past-event__venue {
  font-size: 0.78rem;
  color: var(--sags-text-muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sags-past-event__arrow {
  color: var(--sags-text-muted);
  font-size: 1.1rem;
  transition: transform 0.25s, color 0.25s;
}
.sags-past-event:hover .sags-past-event__arrow {
  color: var(--sags-accent);
  transform: translateX(3px);
}

/* ============================================================
   Speaker single page — left-aligned avatar with content on right
   ============================================================ */
.sags-speaker-single {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 3rem;
    align-items: start;
}
@media (max-width: 720px) {
    .sags-speaker-single {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
.sags-speaker-single__avatar {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--sags-border);
    display: block;
}
.sags-speaker-single__avatar--placeholder {
    background: linear-gradient(135deg, rgba(123, 92, 255, 0.3), rgba(123, 92, 255, 0.18));
}
.sags-speaker-single__body { min-width: 0; }
.sags-speaker-single__field {
    display: block;
    font-family: var(--wp--preset--font-family--body);
    font-size: 1rem;
    color: var(--sags-accent);
    margin: 0 0 1.5rem;
    font-weight: 400;
    line-height: 1.4;
}

.sags-speaker-single__affil {
    font-family: var(--wp--preset--font-family--body);
    font-size: 1rem;
    color: var(--sags-text-muted);
    margin: 0 0 1.5rem;
    font-weight: 400;
    line-height: 1.4;
}
.sags-speaker-single__name {
    font-family: var(--wp--preset--font-family--display);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.025em;
    margin: 0 0 1.75rem;
    color: var(--sags-text);
}
.sags-speaker-single__bio {
    color: var(--sags-text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 60ch;
}
.sags-speaker-single__bio p { margin: 0 0 1rem; }
.sags-speaker-single__bio p:last-child { margin-bottom: 0; }

.sags-speaker-single__links {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.sags-speaker-single__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    background: rgba(123, 92, 255, 0.1);
    border: 1px solid rgba(123, 92, 255, 0.35);
    border-radius: 999px;
    color: var(--sags-accent);
    font-family: var(--wp--preset--font-family--display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: background 0.25s, border-color 0.25s, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sags-speaker-single__link:hover {
    background: rgba(123, 92, 255, 0.2);
    border-color: var(--sags-accent);
    transform: translateY(-1px);
}
.sags-speaker-single__link svg { transition: transform 0.3s; }
.sags-speaker-single__link:hover svg { transform: translate(2px, -2px); }

/* Speaker grid layout (wraps the cards) */
.sags-speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.sags-speakers-grid .sags-card { max-width: none; }

/* ============================================================
   Council grid (homepage Members section)
   ============================================================ */
.sags-council-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.sags-council-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.75rem;
    background: #120921;
    border: 1px solid rgba(123, 92, 255, 0.18);
    border-radius: 24px;
    transition: transform 0.4s cubic-bezier(.2,.8,.2,1), border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    height: 100%;
}
.sags-council-card:hover {
    transform: translateY(-4px);
    background-color: #1a0d30;
    border-color: rgba(123, 92, 255, 0.45);
    box-shadow: 0 16px 48px -12px rgba(123, 92, 255, 0.35);
}

.sags-council-card__avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--sags-border);
    display: block;
}
.sags-council-card__avatar--placeholder {
    background: linear-gradient(135deg, rgba(123, 92, 255, 0.3), rgba(123, 92, 255, 0.15));
}

.sags-council-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
}
.sags-council-card__role {
    font-family: var(--wp--preset--font-family--display);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sags-accent);
    margin: 0;
}
.sags-council-card__name {
    font-family: var(--wp--preset--font-family--display);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--sags-text);
    margin: 0;
}
.sags-council-card__affil {
    font-size: 0.85rem;
    color: var(--sags-text-muted);
    line-height: 1.4;
    margin: 0;
}
.sags-council-card__link {
    margin-top: 0.5rem;
    font-family: var(--wp--preset--font-family--display);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--sags-accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s;
    padding-bottom: 2px;
}
.sags-council-card__link:hover {
    border-color: var(--sags-accent);
}

/* ================================================================
   Proportional Reset — ui-ux-pro-max OLED dark system pass
   Problem: 4.5rem headings + 115px section padding = empty-feeling
   ================================================================ */

/* 1. Section rhythm — halve the vertical breathing room */
.sags-section {
  padding-block: clamp(3rem, 5.5vw, 5rem);
}

/* 2. Section titles — 4.5rem crushed narrow columns, use modular scale */
.sags-section__title {
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  line-height: 1.05;
  margin: 0 0 1.75rem;
}

/* 3. Hero — slightly tighter, content closer to top third */
.sags-hero {
  min-height: clamp(560px, 92vh, 900px);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.sags-hero__logo {
  width: clamp(100px, 14vw, 160px);
  margin-bottom: 1.25rem;
}

/* 4. About — enforce the two-column flex, undo WP's wrapping
      and give the 42/58 split room to breathe */
.sags-about__cols {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: flex-start;
  gap: clamp(2rem, 4vw, 4rem);
}
.sags-about__cols > .wp-block-column {
  min-width: 0;
  flex-shrink: 1;
}

/* 5. About heading — smaller inside the 42% column */
.sags-about__title {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem) !important;
  line-height: 1.08;
  margin-bottom: 1.5rem;
}

/* 6. Hide SVG visual — too small at this scale to add signal */
.sags-about__visual { display: none; }

/* 7. Stats — compact, proportional */
.sags-about__stats {
  margin-top: 1.75rem;
  gap: 0.75rem;
}
.sags-stat-card {
  padding: 1.25rem 1rem;
}
.sags-stat-card__num {
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
}

/* 8. Members / speakers section headings */
.sags-members__title,
.sags-speakers__title {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

/* 9. Collapse empty speaker / gallery placeholder paragraphs
      so they don't burn a full section's worth of padding */
.sags-speakers-grid:not(:has(.sags-card)) + p,
.sags-speakers-grid:empty {
  display: none;
}

/* 10. Stack about cols on tablet */
@media (max-width: 860px) {
  .sags-about__cols {
    flex-wrap: wrap !important;
  }
  .sags-about__cols > .wp-block-column {
    flex-basis: 100% !important;
  }
}
