/* =============================================================
   INSA — Indian Student's Association · ANU
   ============================================================= */

:root {
  --navy: #1a3a8f;
  --navy-dark: #102560;
  --navy-deep: #0a1530;
  --saffron: #e87b2c;
  --saffron-light: #f5a061;
  --saffron-glow: #ffb878;
  --green: #1f9d4f;
  --green-dark: #157a3c;
  --cream: #fdf6ec;
  --cream-2: #f7ecd6;
  --cream-3: #f1e3c4;
  --ink: #14152b;
  --muted: #6a6a83;
  --line: rgba(20, 21, 43, 0.08);

  --shadow-md: 0 18px 36px -18px rgba(16, 37, 96, 0.35);
  --shadow-lg: 0 36px 80px -28px rgba(16, 37, 96, 0.5);

  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 14px;

  --ease-out: cubic-bezier(.2, .9, .2, 1);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);

  /* consistent vertical rhythm across all sections */
  --space-y: clamp(3rem, 6vw, 5rem);
  --space-x: clamp(1rem, 4vw, 2.4rem);
}

/* ---------------- reset ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 {
  font-family: "Fraunces", "Playfair Display", Georgia, serif;
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1;
  margin: 0;
}
p { line-height: 1.7; margin: 0; }

::selection { background: var(--saffron); color: #fff; }

/* shared subtle paper texture so cream sections aren't flat */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(20,21,43,0.025) 1px, transparent 1px);
  background-size: 3px 3px;
  z-index: 0;
}

/* ---------------- nav ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.4rem);
  background:
    /* same mandala texture as the hero, kept subtle */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='170' height='170' viewBox='0 0 170 170'><g transform='translate(85,85)' fill='none' stroke='%23ffb878' stroke-width='0.9' stroke-linecap='round' opacity='0.18'><circle r='6'/><circle r='14'/><circle r='28'/><circle r='46'/><circle r='64'/><circle r='78'/><path d='M0 -76 C 8 -55 8 -38 0 -28 C -8 -38 -8 -55 0 -76 Z'/><path d='M0 -76 C 8 -55 8 -38 0 -28 C -8 -38 -8 -55 0 -76 Z' transform='rotate(30)'/><path d='M0 -76 C 8 -55 8 -38 0 -28 C -8 -38 -8 -55 0 -76 Z' transform='rotate(60)'/><path d='M0 -76 C 8 -55 8 -38 0 -28 C -8 -38 -8 -55 0 -76 Z' transform='rotate(90)'/><path d='M0 -76 C 8 -55 8 -38 0 -28 C -8 -38 -8 -55 0 -76 Z' transform='rotate(120)'/><path d='M0 -76 C 8 -55 8 -38 0 -28 C -8 -38 -8 -55 0 -76 Z' transform='rotate(150)'/><path d='M0 -76 C 8 -55 8 -38 0 -28 C -8 -38 -8 -55 0 -76 Z' transform='rotate(180)'/><path d='M0 -76 C 8 -55 8 -38 0 -28 C -8 -38 -8 -55 0 -76 Z' transform='rotate(210)'/><path d='M0 -76 C 8 -55 8 -38 0 -28 C -8 -38 -8 -55 0 -76 Z' transform='rotate(240)'/><path d='M0 -76 C 8 -55 8 -38 0 -28 C -8 -38 -8 -55 0 -76 Z' transform='rotate(270)'/><path d='M0 -76 C 8 -55 8 -38 0 -28 C -8 -38 -8 -55 0 -76 Z' transform='rotate(300)'/><path d='M0 -76 C 8 -55 8 -38 0 -28 C -8 -38 -8 -55 0 -76 Z' transform='rotate(330)'/><path d='M0 -42 L 8 -8 L 42 0 L 8 8 L 0 42 L -8 8 L -42 0 L -8 -8 Z'/></g></svg>"),
    linear-gradient(180deg, #14246a 0%, #0e1d52 100%);
  background-blend-mode: screen, normal;
  border-bottom: 1px solid rgba(245, 160, 97, 0.18);
  box-shadow: 0 8px 24px -16px rgba(0, 0, 0, 0.4);
}
.nav__brand { display: flex; align-items: center; gap: 0.7rem; margin-right: auto; }
.nav__brand-mark {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--cream);
  display: grid; place-items: center;
  box-shadow:
    0 0 0 1px rgba(245, 160, 97, 0.25),
    0 8px 18px -8px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.nav__brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.nav__brand-text { display: flex; flex-direction: column; line-height: 1; }
.nav__brand-text strong {
  font-family: "Fraunces", serif;
  color: var(--cream);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.nav__brand-text em {
  font-style: normal;
  font-size: 0.7rem;
  color: rgba(253, 246, 236, 0.6);
  margin-top: 3px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav__links { display: flex; gap: 1.6rem; }
.nav__links a {
  position: relative;
  font-weight: 500;
  font-size: 0.96rem;
  color: rgba(253, 246, 236, 0.85);
  padding: 0.4rem 0;
  transition: color 0.2s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: linear-gradient(90deg, var(--saffron), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav__links a:hover { color: var(--cream); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: linear-gradient(135deg, var(--saffron), var(--saffron-light));
  color: #fff;
  padding: 0.6rem 1.1rem 0.6rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.25s var(--ease-pop), box-shadow 0.25s, background 0.25s;
  box-shadow: 0 10px 22px -10px rgba(232, 123, 44, 0.6);
}
.nav__cta svg { width: 14px; height: 14px; }
.nav__cta:hover {
  background: linear-gradient(135deg, var(--saffron-light), var(--saffron));
  transform: translateY(-2px);
  box-shadow: 0 16px 28px -10px rgba(232, 123, 44, 0.75);
}

.nav__burger {
  display: none;
  width: 42px; height: 42px;
  background: transparent; border: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav__burger span {
  width: 22px; height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav.open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- eyebrow chip ---------------- */
.eyebrow {
  display: inline-flex;
  align-items: center; gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--saffron);
  background: rgba(232, 123, 44, 0.1);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}
.eyebrow--light {
  color: var(--saffron-light);
  background: rgba(245, 160, 97, 0.15);
}
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(245, 160, 97, 0.2);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.4); }
}

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-pop), box-shadow 0.3s, background 0.3s, color 0.25s;
}
.btn svg { width: 16px; height: 16px; }
.btn--primary {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-light));
  color: #fff;
  box-shadow: 0 14px 28px -14px rgba(232,123,44,0.7), inset 0 0 0 1px rgba(255,255,255,0.12);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 38px -14px rgba(232,123,44,0.75), inset 0 0 0 1px rgba(255,255,255,0.18);
}
.btn--ghost-light {
  background: rgba(255,255,255,0.06);
  color: var(--cream);
  border: 1.5px solid rgba(255,255,255,0.18);
}
.btn--ghost-light:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-2px);
}

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(232,123,44,0.18) 0%, transparent 55%),
    radial-gradient(100% 80% at 0% 100%, rgba(31,157,79,0.15) 0%, transparent 55%),
    linear-gradient(160deg, #14246a 0%, #0a1530 60%, #050b1f 100%);
  color: var(--cream);
  padding: var(--space-y) var(--space-x);
}

/* hero decoration: floating mandalas + orbs */
.hero__deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.deco-mandala {
  position: absolute;
  color: rgba(255,255,255,0.09);
  transform-origin: center;
  will-change: transform;
}
/* Rotation + drift composed via separate properties so they don't fight */
.deco-mandala--a {
  top: -90px; left: -80px;
  width: 380px; height: 380px;
  animation: drift-a 28s ease-in-out infinite;
}
.deco-mandala--b {
  bottom: -110px; right: 5%;
  width: 320px; height: 320px;
  color: rgba(232,123,44,0.18);
  animation: drift-b 34s ease-in-out infinite;
}
.deco-mandala--c {
  top: 40%; left: 38%;
  width: 200px; height: 200px;
  color: rgba(31,157,79,0.12);
  animation: drift-c 24s ease-in-out infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes spin-cw  { to { rotate: 360deg; } }
@keyframes spin-ccw { to { rotate: -360deg; } }
@keyframes drift-a {
  0%, 100% { translate: 0 0; }
  33%      { translate: 36px 22px; }
  66%      { translate: -18px 30px; }
}
@keyframes drift-b {
  0%, 100% { translate: 0 0; }
  40%      { translate: -42px -28px; }
  75%      { translate: 22px -12px; }
}
@keyframes drift-c {
  0%, 100% { translate: 0 0; }
  35%      { translate: 28px -36px; }
  70%      { translate: -34px 18px; }
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  will-change: transform, opacity;
}
.orb--saffron {
  width: 320px; height: 320px;
  background: radial-gradient(circle, var(--saffron) 0%, rgba(232,123,44,0.6) 55%, transparent 75%);
  top: 14%; right: 10%;
  opacity: 0.7;
  animation: orb-a 26s ease-in-out infinite;
}
.orb--green {
  width: 260px; height: 260px;
  background: radial-gradient(circle, var(--green) 0%, rgba(31,157,79,0.55) 55%, transparent 75%);
  bottom: 6%; left: 20%;
  opacity: 0.6;
  animation: orb-b 32s ease-in-out infinite;
}
.orb--cream {
  width: 240px; height: 240px;
  background: radial-gradient(circle, var(--cream) 0%, rgba(253,246,236,0.5) 55%, transparent 75%);
  top: 58%; right: 36%;
  opacity: 0.28;
  animation: orb-c 38s ease-in-out infinite;
}
@keyframes orb-a {
  0%   { transform: translate3d(  0px,   0px, 0) scale(1);    opacity: 0.55; }
  18%  { transform: translate3d(-110px,  60px, 0) scale(1.25); opacity: 0.80; }
  36%  { transform: translate3d(-160px, 140px, 0) scale(1.05); opacity: 0.60; }
  54%  { transform: translate3d( -40px, 190px, 0) scale(1.35); opacity: 0.85; }
  72%  { transform: translate3d(  90px, 110px, 0) scale(0.9);  opacity: 0.50; }
  88%  { transform: translate3d(  60px,  20px, 0) scale(1.15); opacity: 0.75; }
  100% { transform: translate3d(  0px,   0px, 0) scale(1);    opacity: 0.55; }
}
@keyframes orb-b {
  0%   { transform: translate3d(  0px,   0px, 0) scale(1);    opacity: 0.45; }
  20%  { transform: translate3d( 120px, -80px, 0) scale(1.3);  opacity: 0.75; }
  40%  { transform: translate3d(  60px,-180px, 0) scale(1.0);  opacity: 0.50; }
  58%  { transform: translate3d( -70px,-150px, 0) scale(1.4);  opacity: 0.85; }
  76%  { transform: translate3d(-130px, -40px, 0) scale(0.85); opacity: 0.40; }
  92%  { transform: translate3d( -30px,  40px, 0) scale(1.15); opacity: 0.65; }
  100% { transform: translate3d(  0px,   0px, 0) scale(1);    opacity: 0.45; }
}
@keyframes orb-c {
  0%   { transform: translate3d(  0px,   0px, 0) scale(1);    opacity: 0.18; }
  22%  { transform: translate3d(-80px, -110px, 0) scale(1.4);  opacity: 0.35; }
  44%  { transform: translate3d( 70px, -160px, 0) scale(1.1);  opacity: 0.22; }
  62%  { transform: translate3d( 150px, -60px, 0) scale(1.45); opacity: 0.40; }
  80%  { transform: translate3d(  90px,  60px, 0) scale(0.85); opacity: 0.14; }
  100% { transform: translate3d(  0px,   0px, 0) scale(1);    opacity: 0.18; }
}


.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__copy { max-width: 640px; }

.hero__title {
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: clamp(2.6rem, 6.5vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 1.4rem 0 1.6rem;
  color: var(--cream);
}
.hero__title-row { display: flex; align-items: center; gap: 0.55em; }
.hero__title-word { display: inline-block; }
.hero__title-word--accent {
  background: linear-gradient(95deg, var(--saffron-glow) 0%, #ffd9bd 50%, var(--saffron) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  font-weight: 500;
}
.hero__title-mark {
  display: inline-grid; place-items: center;
  width: 0.95em; height: 0.95em;
  color: var(--saffron);
  flex-shrink: 0;
  animation: rotate 30s linear infinite;
}
.hero__title-mark svg { width: 100%; height: 100%; }

.hero__intro {
  font-size: 1.08rem;
  max-width: 56ch;
  color: rgba(253, 246, 236, 0.78);
  margin-bottom: 2rem;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.6rem;
}

.hero__stats {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.6rem;
  max-width: 480px;
}
.hero__stats li {
  display: flex; flex-direction: column;
}
.hero__stats strong {
  font-family: "Fraunces", serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--cream);
  letter-spacing: -0.02em;
}
.hero__stats span {
  font-size: 0.78rem;
  color: rgba(253, 246, 236, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 4px;
}

/* hero logo with concentric mandala rings */
.hero__logo-wrap {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
  justify-self: end;
  display: grid;
  place-items: center;
}
.hero__logo-rings { position: absolute; inset: 0; }
.ring { position: absolute; inset: 0; color: rgba(255, 255, 255, 0.18); }
.ring--out { animation: rotate 60s linear infinite; }
.ring--in {
  inset: 16%;
  color: rgba(245, 160, 97, 0.35);
  animation: rotate 38s linear infinite reverse;
}
.ring svg { width: 100%; height: 100%; }
.hero__logo-glow {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--saffron) 0deg,
    var(--cream) 90deg,
    var(--green) 180deg,
    var(--navy) 270deg,
    var(--saffron) 360deg
  );
  filter: blur(38px);
  opacity: 0.55;
  animation: rotate 22s linear infinite;
}
.hero__logo {
  position: relative;
  width: 62%;
  border-radius: 50%;
  background: var(--cream);
  padding: 22px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.15);
  animation: floaty 6s ease-in-out infinite;
  z-index: 1;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ---------------- FESTIVAL MARQUEE ---------------- */
.marquee {
  position: relative;
  background: var(--navy-deep);
  color: var(--cream);
  padding: 1.2rem 0;
  border-top: 1px solid rgba(245, 160, 97, 0.18);
  border-bottom: 1px solid rgba(245, 160, 97, 0.18);
  overflow: hidden;
}
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  pointer-events: none;
  z-index: 2;
}
.marquee::before { left: 0;  background: linear-gradient(90deg, var(--navy-deep), transparent); }
.marquee::after  { right: 0; background: linear-gradient(-90deg, var(--navy-deep), transparent); }

.marquee__track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 45s linear infinite;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: clamp(1.4rem, 3.2vw, 2.4rem);
  font-weight: 500;
  color: var(--cream);
  white-space: nowrap;
}
.marquee__item { display: inline-flex; align-items: center; gap: 2.5rem; }
.marquee__item svg { width: 18px; height: 18px; color: var(--saffron); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------------- SECTIONS shared ---------------- */
.section {
  position: relative;
  padding: var(--space-y) var(--space-x);
  max-width: 1240px;
  margin: 0 auto;
  z-index: 1;
}
.section__head {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  gap: 0.95rem;
  margin-bottom: clamp(2.4rem, 4.5vw, 3.4rem);
}
.section__head h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  color: var(--navy-deep);
  max-width: 16ch;
}
.section__head .section__sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 52ch;
}
.section__paisley {
  width: 110px; height: 28px;
  color: var(--saffron);
  opacity: 0.65;
  margin-top: 0.4rem;
}

/* ---------------- ABOUT ---------------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about__copy p {
  font-size: 1.08rem;
  color: #2c2c40;
  margin-bottom: 1.2rem;
}
.about__copy p:first-of-type::first-letter {
  font-family: "Fraunces", serif;
  font-size: 3.6em;
  float: left;
  line-height: 0.85;
  padding: 0.3rem 0.65rem 0 0;
  color: var(--saffron);
  font-weight: 900;
}
.highlights {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.highlights li {
  position: relative;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
  overflow: hidden;
}
.highlights li::after {
  /* tiny mandala in the corner that grows in on hover */
  content: "";
  position: absolute;
  right: -40px; bottom: -40px;
  width: 120px; height: 120px;
  background-image: radial-gradient(circle, rgba(232,123,44,0.10), transparent 70%);
  border-radius: 50%;
  transition: transform 0.5s var(--ease-out);
}
.highlights li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232, 123, 44, 0.4);
}
.highlights li:hover::after { transform: scale(1.4); }
.highlights__icon {
  width: 40px; height: 40px;
  color: var(--saffron);
  background: rgba(232, 123, 44, 0.12);
  border-radius: 12px;
  padding: 9px;
  margin-bottom: 0.8rem;
}
.highlights h3 {
  font-family: "Inter", sans-serif;
  font-weight: 700; font-size: 1.04rem;
  color: var(--navy-deep);
  margin-bottom: 0.3rem;
  letter-spacing: -0.005em;
}
.highlights p { font-size: 0.94rem; color: var(--muted); }

/* ---------------- TEAM (the wow section) ---------------- */
.team {
  max-width: none;
  background:
    radial-gradient(70% 60% at 10% 0%, rgba(232,123,44,0.08), transparent 60%),
    radial-gradient(60% 50% at 100% 100%, rgba(31,157,79,0.08), transparent 60%);
  padding-left: var(--space-x);
  padding-right: var(--space-x);
}
.team .section__head, .team__grid { max-width: 1240px; margin-left: auto; margin-right: auto; }

.team__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(0.9rem, 1.6vw, 1.4rem);
  perspective: 1200px;
}
@media (max-width: 1100px) { .team__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width:  720px) {
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  /* 5th card alone on the third row — center it */
  .team__grid .member:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - clamp(0.45rem, 0.8vw, 0.7rem));
  }
}

.member {
  --accent: var(--saffron);
  --accent-soft: rgba(232, 123, 44, 0.2);
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--cream);
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s;
  box-shadow: 0 18px 36px -22px rgba(16, 37, 96, 0.28);
}
.member[data-accent="green"]    { --accent: var(--green);   --accent-soft: rgba(31, 157, 79, 0.22); }
.member[data-accent="navy"]     { --accent: var(--navy);    --accent-soft: rgba(26, 58, 143, 0.22); }
.member[data-accent="saffron"]  { --accent: var(--saffron); --accent-soft: rgba(232, 123, 44, 0.22); }

/* layered background gradient that fades in on hover */
.member__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, var(--accent-soft), transparent 65%),
    linear-gradient(180deg, #1a2960 0%, var(--navy-deep) 100%);
  opacity: 0;
  transition: opacity 0.55s var(--ease-out);
}

/* the mandala that explodes in */
.member__mandala {
  position: absolute;
  inset: -10%;
  z-index: 1;
  color: var(--accent);
  opacity: 0;
  transform: scale(0.4) rotate(-90deg);
  transform-origin: center;
  transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out);
  pointer-events: none;
  mix-blend-mode: screen;
}
.member__mandala svg { width: 100%; height: 100%; }

.member__photo {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  z-index: 2;
  background: linear-gradient(180deg, var(--cream-2), var(--cream-3));
}
.member__photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition:
    transform 0.9s var(--ease-out),
    filter 0.5s var(--ease-out),
    clip-path 0.6s var(--ease-out);
}
/* warm color wash on hover */
.member__photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 21, 48, 0.85) 100%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  z-index: 1;
}

.member__body {
  position: relative;
  padding: 1.2rem 1.3rem 1.4rem;
  background: #fff;
  border-top: 1px solid var(--line);
  z-index: 3;
  transition: background 0.5s var(--ease-out), border-color 0.5s;
}
.member__role-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
  transition: color 0.4s;
}
.member__role-tag::before {
  content: ""; display: inline-block;
  width: 18px; height: 1.5px;
  background: currentColor;
}
.member__name {
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-deep);
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  transition: color 0.4s;
}
.member__socials {
  list-style: none; margin: 0; padding: 0;
  display: flex;
  gap: 0.45rem;
}
.member__socials li {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.member__socials li:nth-child(1) { transition-delay: 0.05s; }
.member__socials li:nth-child(2) { transition-delay: 0.12s; }
.member__socials li:nth-child(3) { transition-delay: 0.18s; }
.member__socials li:nth-child(4) { transition-delay: 0.24s; }
.member__socials a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(26,58,143,0.08);
  color: var(--navy);
  transition: background 0.25s, color 0.25s, transform 0.25s var(--ease-pop);
}
.member__socials svg { width: 16px; height: 16px; }
.member__socials a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-3px) scale(1.08) rotate(-6deg);
}

/* show socials on the default state too, but more vividly on hover */
.member__socials li {
  opacity: 1; transform: translateY(0);
}

/* === THE HOVER REVEAL === */
.member:hover {
  transform: translateY(-10px) scale(1.015);
  box-shadow:
    0 40px 70px -30px rgba(10, 21, 48, 0.55),
    0 0 0 1px rgba(232, 123, 44, 0.25);
}
.member:hover .member__bg { opacity: 1; }
.member:hover .member__mandala {
  opacity: 0.55;
  transform: scale(1) rotate(0);
}
.member:hover .member__photo img {
  transform: scale(1.08);
}
.member:hover .member__photo::after { opacity: 0.55; }
.member:hover .member__body {
  background: rgba(10, 21, 48, 0.92);
  border-top-color: rgba(245, 160, 97, 0.35);
  color: var(--cream);
}
.member:hover .member__name { color: var(--cream); }
.member:hover .member__role-tag { color: var(--saffron-light); }
.member:hover .member__socials a {
  background: rgba(255,255,255,0.12);
  color: var(--cream);
}
.member:hover .member__socials a:hover {
  background: var(--accent);
  color: #fff;
}

/* ---------------- EVENTS ---------------- */
.events__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
@media (max-width: 820px) { .events__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .events__grid { grid-template-columns: 1fr; } }
.event {
  --tone: var(--saffron);
  position: relative;
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}
.event[data-tone="green"]   { --tone: var(--green); }
.event[data-tone="navy"]    { --tone: var(--navy); }
.event[data-tone="saffron"] { --tone: var(--saffron); }

.event::before {
  /* top stripe */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--tone);
  transition: height 0.4s var(--ease-out);
}
.event::after {
  /* mandala that drifts in from the corner */
  content: "";
  position: absolute;
  right: -60px; bottom: -60px;
  width: 220px; height: 220px;
  background-image: radial-gradient(circle, var(--tone), transparent 60%);
  opacity: 0.07;
  border-radius: 50%;
  transition: transform 0.6s var(--ease-out), opacity 0.4s;
}
.event__mandala {
  position: absolute;
  right: -50px; bottom: -50px;
  width: 200px; height: 200px;
  color: var(--tone);
  opacity: 0.08;
  transition: transform 0.7s var(--ease-out), opacity 0.4s;
  pointer-events: none;
}
.event h3 {
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin: 0.4rem 0 0.5rem;
  letter-spacing: -0.015em;
  transition: color 0.4s;
}
.event p {
  color: var(--muted);
  font-size: 0.96rem;
  transition: color 0.4s;
}
.event:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--tone);
}
.event:hover::before { height: 9px; }
.event:hover::after { transform: scale(1.4); opacity: 0.15; }
.event:hover .event__mandala { transform: rotate(35deg) scale(1.15); opacity: 0.22; }

/* ---------------- CONTACT ---------------- */
/* contact uses the shared section padding — no extra bottom needed */
.contact__card {
  position: relative;
  background: linear-gradient(135deg, var(--navy-deep) 0%, #14246a 60%, var(--navy-deep) 100%);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
  isolation: isolate;
}
.contact__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.contact__mandala { position: absolute; color: rgba(255,255,255,0.05); }
.contact__mandala--a {
  top: -80px; right: -60px;
  width: 360px; height: 360px;
  animation: rotate 90s linear infinite;
}
.contact__mandala--b {
  bottom: -110px; left: -40px;
  width: 260px; height: 260px;
  color: rgba(232, 123, 44, 0.10);
  animation: rotate 70s linear infinite reverse;
}
.contact__body { position: relative; z-index: 1; max-width: 720px; }
.contact__card h2 { color: var(--cream); font-size: clamp(2rem, 4vw, 3rem); margin: 0.8rem 0 0.6rem; }
.contact__card p { color: rgba(253, 246, 236, 0.78); max-width: 56ch; }
.contact__actions {
  margin-top: 1.8rem;
  display: flex; flex-wrap: wrap; gap: 0.85rem;
}
#contactEmail span { font-weight: 500; }

.socials {
  list-style: none; margin: 2rem 0 0; padding: 1.5rem 0 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; gap: 0.7rem; flex-wrap: wrap;
}
.socials a {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--cream);
  transition: background 0.25s, color 0.25s, transform 0.3s var(--ease-pop);
}
.socials a:hover {
  background: var(--saffron);
  color: #fff;
  transform: translateY(-3px) rotate(-8deg) scale(1.1);
}
.socials svg { width: 20px; height: 20px; }

/* ---------------- FOOTER ---------------- */
.footer { position: relative; background: var(--navy-deep); color: rgba(253,246,236,0.7); }
.footer__wave {
  position: absolute;
  top: -1px;
  left: 0; right: 0;
  width: 100%;
  height: 50px;
  transform: scaleY(-1);
}
.footer__inner {
  position: relative;
  z-index: 1;
  padding: 3rem clamp(1rem, 4vw, 2.4rem) 2rem;
  max-width: 1240px;
  margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.footer__brand { display: flex; align-items: center; gap: 0.85rem; }
.footer__brand img {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--cream);
  padding: 5px;
}
.footer__brand strong { display: block; color: var(--cream); margin-bottom: 2px; }
.footer__brand span { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; }
.footer__meta { font-size: 0.84rem; opacity: 0.7; }

/* ---------------- reveal-on-scroll ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- responsive ---------------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { margin: 0 auto; }
  .hero__title-row { justify-content: center; }
  .hero__intro { margin-left: auto; margin-right: auto; }
  .hero__ctas { justify-content: center; }
  .hero__stats { margin-left: auto; margin-right: auto; }
  .hero__logo-wrap { justify-self: center; max-width: 320px; margin-top: 1rem; }

  .about__grid { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .nav__links {
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 1rem 1.6rem;
    gap: 0;
    border-bottom: 1px solid var(--line);
    transform: translateY(-150%);
    transition: transform 0.4s var(--ease-out);
    z-index: 99;
  }
  .nav__links a {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--navy-deep);
  }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__links a:hover { color: var(--saffron); }
  .nav.open .nav__links { transform: translateY(0); }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
}
@media (max-width: 640px) {
  .highlights { grid-template-columns: 1fr; }
  .hero__title-mark { display: none; }
  .hero__title-row { gap: 0; }
}
@media (max-width: 480px) {
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .hero__stats li:last-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
