/*
  MARC Reading – modern Kerala theme
  Colours come from the MARC logo: backwater green, marigold, Kathakali red.
*/

/*---------------------------------------
  TOKENS
-----------------------------------------*/
:root {
  --bg: #FFFCF6;
  --surface: #FFFFFF;
  --tint: #EFF7F2;
  --ink: #10201A;
  --muted: #55625B;
  --green: #0B5D45;
  --green-deep: #06382A;
  --leaf: #19A974;
  --gold: #F2B33D;
  --gold-text: #8A5A00;
  --orange: #F0762B;
  --red: #C8262E;
  --line: rgba(16, 32, 26, .1);
  --grad: linear-gradient(100deg, #F2B33D, #F0762B 55%, #C8262E);

  --font-display: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ml: 'Anek Malayalam', var(--font-display);

  --radius: 24px;
  --radius-sm: 16px;
  --shadow: 0 24px 60px -30px rgba(6, 56, 42, .45);
  --shadow-sm: 0 10px 30px -18px rgba(6, 56, 42, .4);
  --gutter: 16px;
}

/*---------------------------------------
  BASE
-----------------------------------------*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
iframe,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 .5em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.025em;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
}

h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  letter-spacing: -.015em;
}

p {
  margin: 0 0 1em;
  color: var(--muted);
}

p strong,
li strong {
  color: var(--ink);
  font-weight: 700;
}

a {
  color: var(--green);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--red);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 20px;
}

.narrow {
  max-width: 860px;
}

.center {
  text-align: center;
}

.ml {
  font-family: var(--font-ml);
}

/*---------------------------------------
  LOADER + SCROLL PROGRESS
-----------------------------------------*/
.loader {
  display: none;
}

.js .loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--green-deep);
  transition: opacity .5s ease, visibility .5s ease;
}

.js.loaded .loader {
  opacity: 0;
  visibility: hidden;
}

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
}

/*---------------------------------------
  NAVIGATION (floating pill)
-----------------------------------------*/
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 10px var(--gutter);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1180px;
  margin-inline: auto;
  padding: 7px 8px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .84);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: var(--shadow-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 50px;
}

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .01em;
  color: var(--green-deep);
}

.brand-sub {
  display: block;
  margin-top: 4px;
  font-size: .68rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.nav-links a:hover {
  background: var(--tint);
  color: var(--green-deep);
}

.nav-links a.active {
  background: var(--green-deep);
  color: #fff;
}

.nav-links a.nav-cta {
  margin-left: 6px;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--green-deep);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 18px;
  }

  .nav-links a.nav-cta {
    margin: 6px 0 0;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .brand-sub {
    display: none;
  }
}

/*---------------------------------------
  BUTTONS + CHIPS
-----------------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--green-deep);
  color: #fff;
  font-family: var(--font-body);
  font-size: .94rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
  color: #fff;
  background: var(--green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-gold {
  background: var(--grad);
  color: #fff;
}

.btn-gold:hover {
  background: var(--grad);
  filter: brightness(1.06);
}

.btn-ghost {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .4);
  color: #fff;
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .22);
}

.btn-light {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.btn-light:hover {
  background: var(--tint);
  color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--green);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--green);
  font-size: .74rem;
  font-weight: 700;
}

.badge-past {
  background: #F1EEE8;
  color: #6A6257;
}

/*---------------------------------------
  HERO
-----------------------------------------*/
.hero {
  position: relative;
  isolation: isolate;
  margin: 0 var(--gutter);
  border-radius: 32px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(105deg, rgba(4, 32, 24, .94) 0%, rgba(4, 32, 24, .66) 48%, rgba(4, 32, 24, .2) 100%),
    var(--hero) center / cover no-repeat,
    var(--green-deep);
}

.hero-bg-home {
  --hero: url('../images/hero/home.jpg');
}

.hero-bg-badminton {
  --hero: url('../images/badminton-home.jpg');
}

.hero-bg-inspire {
  --hero: url('../images/hero/inspire.jpg');
}

.petals {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero>.container {
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 40px;
  padding-block: clamp(52px, 8vw, 104px) clamp(32px, 4vw, 48px);
}

.hero h1 {
  color: #fff;
  margin-bottom: .3em;
}

.hero-home h1 {
  font-size: clamp(3rem, 7.6vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.04em;
}

.hero p {
  max-width: 54ch;
  color: rgba(255, 255, 255, .88);
  font-size: 1.08rem;
}

.hero .chip,
.hero .eyebrow {
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .26);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero .chip .ml {
  color: var(--gold);
  font-size: 1.05rem;
}

.hero .chip:hover {
  background: rgba(255, 255, 255, .22);
}

.rotator {
  display: block;
  min-height: 1.1em;
  padding-bottom: .12em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: opacity .4s ease, transform .4s ease;
}

.rotator.out {
  opacity: 0;
  transform: translateY(14px);
}

.hero .btn-row {
  margin-top: 28px;
}

.hero-sub .hero-inner {
  grid-template-columns: 1fr;
  padding-block: clamp(48px, 7vw, 88px);
}

.hero-sub .hero-inner>div {
  max-width: 820px;
}

.hero-meta {
  font-weight: 600;
}

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

/* logo inside a turning pookalam */
.medallion {
  position: relative;
  width: min(380px, 74vw);
  aspect-ratio: 1;
  margin-inline: auto;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .45));
}

.medallion .pookalam {
  position: absolute;
  inset: 0;
}

.medallion-disc {
  position: absolute;
  inset: 20%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .35);
}

/* the square logo must sit wholly inside the round disc, so nothing is cut off */
.medallion-disc img {
  width: 100%;
  height: 100%;
  padding: 13%;
  object-fit: contain;
}

.pookalam svg {
  width: 100%;
  height: 100%;
  animation: spin 160s linear infinite;
}

.pookalam .ring {
  animation: bloom .9s cubic-bezier(.2, .9, .3, 1.2) both;
  animation-delay: calc(var(--i) * 90ms + 200ms);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes bloom {
  from {
    opacity: 0;
    transform: scale(.2) rotate(-30deg);
  }
}

/* stats as glass cards in the hero */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-block: 0;
  padding-bottom: clamp(20px, 3vw, 32px);
}

.stat {
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 20px;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.stat dt {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.stat dd {
  margin: 6px 0 0;
  font-size: .84rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .82);
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-home .medallion {
    order: -1;
    width: min(230px, 58vw);
    margin-inline: 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/*---------------------------------------
  SECTIONS
-----------------------------------------*/
.section {
  position: relative;
  padding-block: clamp(64px, 9vw, 116px);
}

.section-tight {
  padding-block: clamp(32px, 5vw, 56px);
}

.section-alt {
  background: var(--tint);
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(32px, 4.5vw, 56px);
  text-align: center;
}

.section-head h2 {
  margin-bottom: .35em;
}

.section-head p {
  margin: 0;
  font-size: 1.06rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.split.stretch {
  align-items: stretch;
  gap: 24px;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* photo with a soft colour block behind it */
.frame {
  position: relative;
}

.frame::before {
  content: "";
  position: absolute;
  inset: 8% -4% -6% 10%;
  border-radius: 32px;
  background: var(--grad);
  opacity: .9;
  transform: rotate(3deg);
}

.frame img {
  position: relative;
  width: 100%;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

/* large pookalam used as a background pattern; JS turns it on scroll */
.deco {
  position: absolute;
  z-index: 0;
  width: 380px;
  aspect-ratio: 1;
  opacity: .14;
  pointer-events: none;
}

.deco-tr {
  top: -110px;
  right: -140px;
}

.deco-bl {
  bottom: -130px;
  left: -150px;
}

.clip {
  overflow: hidden;
}

.section>.container {
  position: relative;
  z-index: 1;
}

/*---------------------------------------
  WHAT WE DO (dark bento block)
-----------------------------------------*/
.section-dark {
  margin-inline: var(--gutter);
  border-radius: 40px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(rgba(255, 255, 255, .07) 1.5px, transparent 1.6px) 0 0 / 26px 26px,
    radial-gradient(60% 70% at 100% 0%, rgba(240, 118, 43, .34), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(25, 169, 116, .3), transparent 70%),
    var(--green-deep);
}

.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.section-dark p {
  color: rgba(255, 255, 255, .82);
}

.section-dark p strong {
  color: var(--gold);
}

.section-dark .eyebrow {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.video {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9);
  outline: 1px solid rgba(255, 255, 255, .18);
}

.video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.activities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: clamp(32px, 5vw, 56px) 0 0;
  padding: 0;
  list-style: none;
}

.activities li {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 172px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 22px;
  background:
    radial-gradient(220px circle at var(--mx, 50%) var(--my, -40%), rgba(242, 179, 61, .22), transparent 70%),
    rgba(255, 255, 255, .06);
  transition: transform .25s ease, border-color .25s ease;
}

.activities li:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 179, 61, .6);
}

.activities li:first-child {
  grid-column: span 2;
  border: 0;
  background: var(--grad);
}

.activities i {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: auto;
  border-radius: 14px;
  background: rgba(255, 255, 255, .14);
  color: var(--gold);
  font-size: 1.25rem;
}

.activities li:first-child i {
  background: rgba(255, 255, 255, .24);
  color: #fff;
}

.activities strong {
  display: block;
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.activities span {
  font-size: .92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, .8);
}

.activities li:first-child span {
  color: rgba(255, 255, 255, .95);
}

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

@media (max-width: 520px) {
  .activities {
    grid-template-columns: 1fr;
  }

  .activities li:first-child {
    grid-column: auto;
  }

  .activities li {
    min-height: 0;
  }

  .activities i {
    margin-bottom: 0;
  }
}

/*---------------------------------------
  VALUES (M · A · R · C)
-----------------------------------------*/
.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0 0 clamp(36px, 5vw, 64px);
  padding: 0;
  list-style: none;
}

.values li {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease;
}

.values li:hover {
  transform: translateY(-4px);
}

.values .letter {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.values strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.values span:not(.letter) {
  font-size: .94rem;
  color: var(--muted);
}

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

@media (max-width: 440px) {
  .values {
    grid-template-columns: 1fr;
  }
}

/*---------------------------------------
  SPONSORS
-----------------------------------------*/
.sponsors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.sponsor {
  display: grid;
  place-items: center;
  height: 150px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}

.sponsor:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.sponsor img {
  max-height: 96px;
  object-fit: contain;
}

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

/*---------------------------------------
  EVENTS
-----------------------------------------*/
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: 600 .92rem var(--font-body);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.filter:hover {
  background: var(--tint);
}

.filter[aria-pressed="true"] {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: #fff;
}

.filter .count {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(16, 32, 26, .08);
  font-size: .76rem;
  text-align: center;
}

.filter[aria-pressed="true"] .count {
  background: rgba(255, 255, 255, .2);
}

.event-list {
  display: grid;
  gap: 20px;
}

.event {
  display: grid;
  grid-template-columns: 340px 1fr;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.event:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.event-img {
  position: relative;
  display: block;
  min-height: 240px;
  overflow: hidden;
}

.event-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.event:hover .event-img img {
  transform: scale(1.05);
}

.event[data-status="past"] .event-img img {
  filter: saturate(.75);
}

.event-date {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 10px 14px;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  text-align: center;
  line-height: 1.1;
  box-shadow: var(--shadow-sm);
}

.event-date .day {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
}

.event-date .month {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--red);
}

.event-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 30px;
}

.event-body .badge {
  margin-bottom: 12px;
}

.event-body h3 a {
  color: inherit;
  text-decoration: none;
}

.event-body h3 a:hover {
  color: var(--green);
}

.event-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-top: auto;
  padding-top: 18px;
}

.meta {
  margin: 0;
  font-size: .92rem;
}

.meta div {
  display: flex;
  gap: 8px;
}

.meta dt {
  flex: none;
  font-weight: 700;
  color: var(--muted);
}

.meta dd {
  margin: 0;
  color: var(--ink);
}

@media (max-width: 820px) {
  .event {
    grid-template-columns: 1fr;
  }

  .event-img {
    min-height: 210px;
  }
}

.empty {
  padding: 48px 24px;
  border: 2px dashed var(--line);
  border-radius: 28px;
  text-align: center;
}

.empty i {
  font-size: 2rem;
  color: var(--orange);
}

.empty h3 {
  margin-top: 10px;
}

.empty p {
  max-width: 46ch;
  margin-inline: auto;
}

/* home page teaser card */
.teaser {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 32px;
  padding: clamp(26px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.teaser-pics {
  position: relative;
  height: 280px;
}

.teaser-pics a {
  position: absolute;
  width: 62%;
  aspect-ratio: 4 / 3;
  border: 6px solid #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s ease;
}

.teaser-pics a:first-child {
  top: 0;
  left: 0;
  transform: rotate(-5deg);
}

.teaser-pics a:last-child {
  right: 0;
  bottom: 0;
  transform: rotate(4deg);
}

.teaser-pics a:hover {
  z-index: 1;
  transform: rotate(0) scale(1.04);
}

.teaser-pics img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 860px) {
  .teaser {
    grid-template-columns: 1fr;
  }

  .teaser-pics {
    height: 230px;
  }
}

/* event detail pages: swap booking buttons for a "past event" badge */
.past-only {
  display: none;
}

.event-past .past-only {
  display: inline-flex;
}

.event-past .upcoming-only {
  display: none;
}

/*---------------------------------------
  PANELS, INFO GRIDS, CONTACT
-----------------------------------------*/
.panel {
  padding: clamp(24px, 3.5vw, 40px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.panel+.panel,
.prose+.panel {
  margin-top: 20px;
}

.split>.panel+.panel {
  margin-top: 0;
}

.prose {
  margin-bottom: 28px;
}

.prose p {
  font-size: 1.04rem;
}

.panel ul,
.prose ul {
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.panel li,
.prose li {
  position: relative;
  margin-bottom: .55em;
  padding-left: 30px;
}

.panel li::before,
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--grad);
  -webkit-mask: radial-gradient(circle, transparent 3.5px, #000 4px);
  mask: radial-gradient(circle, transparent 3.5px, #000 4px);
}

.info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin: 0 0 24px;
}

.info>div {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--tint);
}

.info dt {
  font-size: .76rem;
  font-weight: 700;
  color: var(--green);
}

.info dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-weight: 600;
}

.info .wide {
  grid-column: 1 / -1;
}

.banner {
  width: 100%;
  margin-bottom: 32px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(26px, 4vw, 44px);
  border-radius: 28px;
  background:
    radial-gradient(70% 80% at 100% 0%, rgba(240, 118, 43, .32), transparent 70%),
    var(--green-deep);
  color: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.contact-card>* {
  position: relative;
  z-index: 1;
}

.contact-card .card-deco {
  position: absolute;
  z-index: 0;
  right: -90px;
  bottom: -90px;
  width: 300px;
  aspect-ratio: 1;
  opacity: .5;
}

.contact-card h2,
.contact-card h3 {
  color: #fff;
}

.contact-card p {
  color: rgba(255, 255, 255, .84);
}

.contact-card strong {
  color: #fff;
}

.contact-card .ml {
  margin-bottom: 4px;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gold);
}

.contact-card a:not(.btn) {
  color: #fff;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-list {
  width: 100%;
  margin: 8px 0 26px;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
}

.contact-list i {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .12);
  color: var(--gold);
}

.contact-card .btn {
  margin-top: auto;
}

/* call-to-action band */
.cta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 5vw, 60px);
  border-radius: 32px;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(240, 118, 43, .4), transparent 70%),
    var(--green-deep);
  color: #fff;
  overflow: hidden;
}

.cta>* {
  position: relative;
  z-index: 1;
}

.cta .card-deco {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: -60px;
  width: 320px;
  aspect-ratio: 1;
  opacity: .28;
  translate: 0 -50%;
}

.cta h2 {
  margin-bottom: .25em;
  color: #fff;
}

.cta p {
  max-width: 52ch;
  margin: 0;
  color: rgba(255, 255, 255, .85);
}

/*---------------------------------------
  PEOPLE
-----------------------------------------*/
.people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.person {
  padding: 12px 12px 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}

.person:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.arch {
  position: relative;
  aspect-ratio: 1;
  margin-bottom: 16px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--tint);
}

.arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .5s ease;
}

.person:hover .arch img {
  transform: scale(1.05);
}

.role {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 6px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
  color: var(--green-deep);
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.35;
}

.person h3 {
  margin: 0 8px 6px;
  font-size: 1.2rem;
}

.person p {
  margin: 0 8px;
  font-size: .92rem;
  line-height: 1.55;
}

.soon {
  max-width: 620px;
  margin-inline: auto;
  padding: clamp(32px, 5vw, 56px);
  border: 2px dashed rgba(11, 93, 69, .3);
  border-radius: 32px;
  background: var(--surface);
  text-align: center;
}

.soon .pookalam {
  width: 96px;
  margin: 0 auto 18px;
}

.soon p {
  margin: 0;
}

/*---------------------------------------
  GALLERY + LIGHTBOX
-----------------------------------------*/
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

@media (max-width: 520px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

.shot {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.shot:hover img {
  transform: scale(1.06);
}

.shot span {
  position: absolute;
  inset: auto 0 0 0;
  padding: 30px 16px 12px;
  background: linear-gradient(transparent, rgba(4, 32, 24, .9));
  color: #fff;
  font-size: .86rem;
  font-weight: 600;
}

.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(4, 20, 15, .95);
}

.lightbox::backdrop {
  background: rgba(4, 20, 15, .9);
}

.lightbox img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 56px 16px;
  object-fit: contain;
}

.lightbox button {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.lightbox .lb-close {
  top: 14px;
  right: 14px;
}

.lightbox .lb-prev {
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
}

.lightbox .lb-next {
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
}

/* poster + magazine */
.media {
  display: block;
  width: 100%;
  height: 640px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--tint);
}

img.media {
  object-fit: contain;
}

@media (max-width: 860px) {
  .media {
    height: 460px;
  }
}

/*---------------------------------------
  404
-----------------------------------------*/
.lost {
  display: grid;
  place-items: center;
  min-height: 62vh;
  text-align: center;
}

.lost-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .04em;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(6rem, 24vw, 13rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lost-code .pookalam {
  width: .8em;
  height: .8em;
}

.lost .ml {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--green);
}

.lost .btn-row {
  justify-content: center;
  margin-top: 24px;
}

/*---------------------------------------
  FOOTER (vallam on the backwaters)
-----------------------------------------*/
.footer-top {
  position: relative;
  line-height: 0;
}

.footer-top .waves {
  width: 100%;
  height: clamp(60px, 9vw, 120px);
}

.footer-top .waves-back {
  position: absolute;
  inset: auto 0 0 0;
}

.footer-top .waves-front {
  position: relative;
  z-index: 1;
}

.vallam {
  position: absolute;
  left: 50%;
  bottom: 22%;
  width: min(520px, 76vw);
  transform: translateX(-50%);
  animation: bob 6s ease-in-out infinite;
}

@keyframes bob {
  50% {
    transform: translateX(-50%) translateY(5px) rotate(-.6deg);
  }
}

.site-footer {
  background: var(--green-deep);
  color: rgba(255, 255, 255, .82);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  padding-block: 28px 36px;
}

.site-footer p {
  color: inherit;
  font-size: .94rem;
}

.site-footer a {
  color: #fff;
}

.site-footer .brand-name {
  color: #fff;
  font-size: 1.6rem;
}

.site-footer .brand-sub {
  display: block;
  color: var(--gold);
}

.footer-right {
  text-align: right;
}

.social {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  font-size: 1.1rem;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.social a:hover {
  background: var(--grad);
  color: #fff;
  transform: translateY(-3px);
}

.contact-card .social {
  justify-content: flex-start;
  margin-bottom: 26px;
}

.footer-thanks {
  font-family: var(--font-ml);
  font-size: 1.2rem;
  color: var(--gold) !important;
}

.copyright {
  margin: 0;
  padding-block: 16px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  text-align: center;
  font-size: .84rem;
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-right {
    text-align: left;
  }

  .social {
    justify-content: flex-start;
  }
}

/*---------------------------------------
  MOTION
-----------------------------------------*/
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--d, 0ms);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pookalam svg,
  .pookalam .ring,
  .vallam {
    animation: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .js .loader {
    display: none;
  }
}

/*---------------------------------------
  PHOTOS: hero banners + Kerala/Reading mosaic
-----------------------------------------*/
.hero-bg-about {
  --hero: url('../images/hero/about.jpg');
}

.hero-bg-events {
  --hero: url('../images/hero/events.jpg');
}

.hero-bg-contact {
  --hero: url('../images/hero/contact.jpg');
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: 14px;
}

.tile {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.tile-big {
  grid-column: span 2;
  grid-row: span 2;
}

.tile-wide {
  grid-column: span 2;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.tile:hover img {
  transform: scale(1.06);
}

.tile figcaption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 40px 16px 14px;
  background: linear-gradient(transparent, rgba(4, 32, 24, .88));
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
}

.tile .badge {
  background: rgba(255, 255, 255, .9);
  color: var(--green-deep);
}

@media (max-width: 860px) {
  .mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 170px;
  }
}

.people-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 860px) {
  .people-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .people-3 {
    grid-template-columns: 1fr;
  }
}

/* contact page card: actions first, social links pinned to the bottom */
.contact-card .follow {
  margin-top: auto;
  padding-top: 36px;
}

.contact-card .follow p {
  margin-bottom: 10px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-card .follow .social {
  margin: 0;
}

.contact-card .follow~.btn,
.contact-card .contact-list+.btn {
  margin-top: 0;
}

.split.stretch .contact-card .card-deco {
  width: 380px;
  opacity: .6;
}

/*---------------------------------------
  VIDEOS
-----------------------------------------*/
.hero-plain {
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(240, 118, 43, .45), transparent 70%),
    radial-gradient(50% 90% at 0% 100%, rgba(25, 169, 116, .35), transparent 70%),
    var(--green-deep);
}

.tube {
  max-width: 980px;
  margin-inline: auto;
}

.tube .video {
  outline: 0;
  box-shadow: var(--shadow);
}

.tube-bar {
  margin-top: 22px;
}

.tube-bar h2 {
  margin: 4px 0 0;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
}

.tube-bar .btn-row {
  margin-top: 16px;
}

.tube-pos {
  font-size: .84rem;
  font-weight: 700;
  color: var(--green);
}

.tube-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

.tube-item {
  display: block;
  width: 100%;
  padding: 8px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink);
  font: 600 .92rem/1.4 var(--font-body);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.tube-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.tube-item[aria-current="true"] {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px var(--orange);
}

.tube-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  margin-bottom: 10px;
  border-radius: 15px;
  overflow: hidden;
  background: var(--tint);
}

.tube-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tube-thumb::after {
  content: "\F4F4";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(4, 32, 24, .25);
  color: #fff;
  font-family: "bootstrap-icons";
  font-size: 2.2rem;
  opacity: 0;
  transition: opacity .25s ease;
}

.tube-item:hover .tube-thumb::after {
  opacity: 1;
}

.tube-item .tube-title {
  display: block;
  padding-inline: 6px;
}

.hero-bg-videos {
  --hero: url('../images/hero/videos.jpg');
}

/* the medallion is reused as the page loader and as the footer logo */
.loader .medallion {
  width: min(240px, 60vw);
}

.loader .pookalam svg {
  animation-duration: 9s;
}

.medallion-sm {
  flex: none;
  width: 112px;
  margin: 0;
  filter: none;
}

.medallion-sm .medallion-disc {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .35);
}

/* the loader is only on screen briefly, so show its petals at once (no bloom-in) */
.loader .pookalam .ring {
  animation: none;
}
