/* ═══════════════════════════════════════
   ETCHED IN STONE — Tamil Computing Club
   Design Tokens & Base Styles
   ═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Arima:wght@400;500;600;700;800;900&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Stone palette */
  --stone-base:   #1c1712;
  --stone-panel:  #241d16;
  --stone-light:  #2e251c;

  /* Accent colors */
  --gold:         #c9a24b;
  --gold-bright:  #e6c878;
  --gold-dim:     #8a6d2f;
  --vermilion:    #a8391f;
  --vermilion-bright: #c94f2f;
  --teal:         #1c6e68;
  --teal-bright:  #3fd9c7;

  /* Text */
  --text-primary: #e8dfce;
  --text-muted:   #a89e8c;
  --text-dim:     #6b6153;

  /* Fonts */
  --font-tamil:   'Arima', 'Noto Sans Tamil', sans-serif;
  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'Inter', sans-serif;

  /* Spacing */
  --section-pad-y: clamp(4rem, 10vw, 8rem);
  --section-pad-x: clamp(1.25rem, 5vw, 6rem);
  --container-max: 1200px;

  /* Transition */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}


/* ═══════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--stone-base);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--stone-base);
  overflow-x: hidden;
}

/* WebGL Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
}

body.webgl-active #bg-canvas {
  opacity: 1;
}

/* Hide fallback backgrounds when WebGL is active */
body.webgl-active {
  background-color: transparent; /* Let canvas show through */
}

/* Hide grain */
body.webgl-active::before {
  display: none;
}

/* Hide veining and glows */
body.webgl-active .section::after,
body.webgl-active #about::before,
body.webgl-active #projects::before,
body.webgl-active #events::before,
body.webgl-active #team::before,
body.webgl-active .hero::before,
body.webgl-active .join::before {
  display: none;
}

/* Dampen WebGL contrast behind busy card grids by making them translucent overlays */
body.webgl-active .project-card,
body.webgl-active .event-card,
body.webgl-active .team-card {
  background-color: rgba(36, 29, 22, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Subtle grain texture overlay on entire page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

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

ul, ol { list-style: none; }

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

::selection {
  background: var(--gold);
  color: var(--stone-base);
}

/* ═══════════════════════════════════════
   CUSTOM SCROLLBAR — slim stone rail
   ═══════════════════════════════════════ */

html {
  scrollbar-color: var(--gold-dim) var(--stone-panel);
}

@media (pointer: fine) {
  html {
    scrollbar-width: thin;
  }
}

::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--gold-dim);
  border: 3px solid var(--stone-panel);
  border-radius: 7px;
}

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

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


/* ═══════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--section-pad-x);
  padding-right: var(--section-pad-x);
  position: relative;
  z-index: 1;
}

.section {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
  position: relative;
  overflow: hidden;
}

.section::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cpath d='M-50 150 Q 150 50 450 200 M 100 -50 Q 200 200 50 450 M 350 -50 Q 250 200 400 450' fill='none' stroke='%23e8dfce' stroke-width='1.2' stroke-dasharray='15 8 50 8' opacity='0.2'/%3E%3Cpath d='M-50 300 Q 150 400 450 250 M 200 -50 Q 300 150 250 450' fill='none' stroke='%231c1712' stroke-width='2.5' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 600px 600px;
}

/* Per-Section Glows */
#about::before,
#projects::before,
#events::before,
#team::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

#about::before {
  background: radial-gradient(ellipse 70% 80% at 100% 0%, rgba(168, 57, 31, 0.07) 0%, transparent 60%);
}

#projects::before {
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(201, 162, 75, 0.06) 0%, transparent 70%);
}

#events::before {
  background: radial-gradient(ellipse 80% 60% at 0% 0%, rgba(168, 57, 31, 0.05) 0%, transparent 60%);
}

#team::before {
  background: radial-gradient(ellipse 60% 80% at 100% 90%, rgba(28, 110, 104, 0.07) 0%, transparent 65%);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}


/* ═══════════════════════════════════════
   TYPOGRAPHY — CARVED HEADINGS
   ═══════════════════════════════════════ */

.heading-carved {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
  /* Bevel: light highlight above, dark shadow below — pressed INTO stone */
  text-shadow:
    0 -1px 2px rgba(232, 223, 206, 0.3),
    0  2px 5px rgba(0, 0, 0, 0.9),
    0  1px 1px rgba(0, 0, 0, 0.8);
  line-height: 1.2;
}

/* When the site is switched to Tamil, carved headings return to the Tamil face */
.heading-carved:lang(ta) {
  font-family: var(--font-tamil);
}

.heading-carved--tamil {
  font-family: var(--font-tamil);
}

h1.heading-carved {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
}

h2.heading-carved {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  margin-bottom: 1.5rem;
}

h3.heading-carved {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
}

/* Carve-reveal clip mask — initial state hidden (clip to 0 width) */
.carve-reveal {
  clip-path: inset(0 100% 0 0);
  position: relative;
}

/* Container for the heading + chip particles */
.carve-wrap {
  position: relative;
  display: inline-block;
}

/* Stone chip particle */
.stone-chip {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

/* Chisel Glow (attached to wipe edge) */
.chisel-glow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8px;
  background: var(--gold-bright);
  filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transform: translateX(-50%);
}

/* Section-wide scroll engraving */
.section-reveal {
  position: relative;
  clip-path: none;
}

html.js-enabled:not(.no-gsap) .section-reveal {
  clip-path: inset(0 100% 0 0);
}

#team .section-reveal {
  clip-path: none;
}
#projects .section-reveal {
  clip-path: none;
}

.section-reveal::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--erase-x, 0%);
  width: 12px;
  background: linear-gradient(90deg, rgba(201, 162, 75, 0.7), rgba(201, 162, 75, 0.15) 60%, transparent);
  filter: blur(3px);
  pointer-events: none;
  z-index: 2;
  transform: translateX(-50%);
  opacity: 0;
}

.section-reveal.revealing::before {
  opacity: 1;
}

.section-reveal.revealed {
  clip-path: inset(0 0% 0 0);
}

.section-reveal.revealed::before {
  opacity: 0;
}

.section-chip {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}

/* Subtitle style */
.subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  line-height: 1.5;
}

/* Body text — flat, legible, inlaid look */
.body-text {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 60ch;
}

.body-text--muted {
  color: var(--text-muted);
}

.section-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.75rem;
}


/* ═══════════════════════════════════════
   BUTTONS & LINKS
   ═══════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  /* transform animates fast for the press/"settle", color/shadow ease normally */
  transition:
    transform 0.12s var(--ease-out),
    background-color 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out),
    color 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

/* Press settle: quick chisel-tap scale-down, springs back on release */
.btn:active {
  transform: scale(0.96);
}

.btn--primary {
  background: var(--gold);
  color: var(--stone-base);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--gold-bright);
  box-shadow: 0 0 24px rgba(201, 162, 75, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: rgba(201, 162, 75, 0.08);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.btn--vermilion {
  background: var(--vermilion);
  color: var(--text-primary);
}

.btn--vermilion:hover,
.btn--vermilion:focus-visible {
  background: var(--vermilion-bright);
  box-shadow: 0 0 24px rgba(168, 57, 31, 0.35);
}

/* Engraved-line hover effect for text links */
.link-engrave {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--gold);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s var(--ease-out);
}

.link-engrave::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold-bright);
  transition: width 0.4s var(--ease-out);
}

.link-engrave:hover::after,
.link-engrave:focus-visible::after {
  width: 100%;
}

.link-engrave:hover,
.link-engrave:focus-visible {
  color: var(--gold-bright);
}

/* Focus visible styles */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}


/* ═══════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════ */

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2000;
  padding: 0.65rem 1rem;
  background: var(--gold);
  color: var(--stone-deep);
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 var(--section-pad-x);
  transition: background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.nav--scrolled {
  background: rgba(28, 23, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(201, 162, 75, 0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  height: 72px;
}

.nav__wordmark {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
}

.nav__wordmark-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav__wordmark-tamil {
  font-family: var(--font-tamil);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gold);
}

.nav__wordmark-en {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  position: relative;
  transition: color 0.3s var(--ease-out);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.35s var(--ease-out);
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--text-primary);
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
  width: 100%;
}

.nav__cta {
  font-size: 0.8rem;
  padding: 0.55rem 1.4rem;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  cursor: pointer;
  z-index: 1001;
}

.nav__hamburger-line {
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}

.nav__hamburger.active .nav__hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.active .nav__hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.active .nav__hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav__hamburger {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100dvh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(28, 23, 18, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    border-left: 1px solid rgba(201, 162, 75, 0.1);
  }

  .nav__links.open {
    transform: translateX(0);
  }

  .nav__link {
    font-size: 1.1rem;
  }
}


/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */

.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
  background: transparent;
}

/* Warm directional gradient — vermilion-to-gold glow from bottom-left */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 90%, rgba(168, 57, 31, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 25% 80%, rgba(201, 162, 75, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 80% 80% at 80% 20%, rgba(28, 23, 18, 0.5) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Optional large decorative Tamil letters — very low opacity */
.hero__bg-glyph {
  position: absolute;
  font-family: var(--font-tamil);
  font-weight: 900;
  color: var(--text-primary);
  opacity: 0.025;
  pointer-events: auto;
  user-select: none;
  line-height: 1;
  transition: opacity 0.4s ease, text-shadow 0.4s ease;
  z-index: 2;
}

.hero__bg-glyph:hover {
  opacity: 0.1;
  text-shadow: 0 0 30px rgba(201, 162, 75, 0.6);
}

.hero__bg-glyph.revealed {
  opacity: 0.5 !important;
  text-shadow: 0 0 60px rgba(201, 162, 75, 1);
  transition: opacity 0.3s ease, text-shadow 0.3s ease;
}

@keyframes float-1 {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-12px) rotate(-3deg); }
}

@keyframes float-2 {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(-2deg); }
}

@keyframes float-3 {
  0%, 100% { transform: translate(-50%, -50%) translateY(0) rotate(2deg); }
  50% { transform: translate(-50%, -50%) translateY(-12px) rotate(2deg); }
}

.hero__bg-glyph--1 {
  font-size: clamp(8rem, 18vw, 16rem);
  top: 5%;
  right: 3%;
  transform: rotate(-3deg);
  animation: float-1 8s ease-in-out infinite;
}

.hero__bg-glyph--2 {
  font-size: clamp(8rem, 18vw, 16rem);
  bottom: 5%;
  left: 2%;
  transform: rotate(-2deg);
  animation: float-2 10s ease-in-out infinite 1s;
}

.hero__bg-glyph--3 {
  font-size: clamp(8rem, 18vw, 16rem);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(2deg);
  animation: float-3 9s ease-in-out infinite 2s;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero__title {
  margin-bottom: 0.6rem;
}

.hero__subtitle {
  margin-bottom: 1.5rem;
}

.hero__mission {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 52ch;
}


/* ═══════════════════════════════════════
   IDENTITY / MISSION STRIP
   ═══════════════════════════════════════ */

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.pillar {
  text-align: center;
  padding: 1.5rem 1rem;
}

.pillar__icon {
  width: 38px;
  height: 38px;
  margin: 0 auto 0.75rem;
  display: block;
  color: var(--gold);
  transition: color 0.3s var(--ease-out);
}

.pillar__title {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  transition: color 0.3s var(--ease-out);
}

.pillar:hover .pillar__icon,
.pillar:hover .pillar__title {
  color: var(--gold-bright);
}

.pillar__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

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

@media (max-width: 480px) {
  .pillars {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}


/* ═══════════════════════════════════════
   PROJECTS / INITIATIVES
   ═══════════════════════════════════════ */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.project-card {
  background: var(--stone-panel);
  border: 1px solid rgba(201, 162, 75, 0.08);
  border-radius: 8px;
  padding: 2rem 1.75rem;
  transition:
    border-color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    transform 0.35s var(--ease-out);
  opacity: 1;
  transform: none;
}

.project-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.project-card.revealed:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(28, 110, 104, 0.1);
}

.project-card__icon {
  width: 30px;
  height: 30px;
  margin-bottom: 1rem;
  display: block;
  color: var(--gold);
  transition: color 0.3s var(--ease-out);
}

.project-card:hover .project-card__icon {
  color: var(--gold-bright);
}

.project-card__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.project-card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}


/* ═══════════════════════════════════════
   EVENTS
   ═══════════════════════════════════════ */

.events-layout {
  margin-top: 2rem;
}

/* Past events: horizontal scroll strip instead of a wrapping grid, so
   the count never creates an uneven gap (a 3-column grid would strand a
   4th card in its own row). Cards flex to fill the row evenly; extras
   scroll off to the right. */
.events-layout__past {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  margin-top: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dim) transparent;
}

.events-layout__past::-webkit-scrollbar {
  height: 6px;
}

.events-layout__past::-webkit-scrollbar-track {
  background: transparent;
}

.events-layout__past::-webkit-scrollbar-thumb {
  background: var(--gold-dim);
  border: none;
  border-radius: 3px;
}

.events-layout__past .event-card {
  flex: 1 1 0;
  min-width: 240px;
}

.event-card {
  background: var(--stone-panel);
  border: 1px solid rgba(201, 162, 75, 0.08);
  border-radius: 8px;
  padding: 2rem;
  transition:
    border-color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    transform 0.35s var(--ease-out);
  opacity: 1;
  transform: none;
}

.event-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.event-card--featured {
  border-color: var(--vermilion);
  background: linear-gradient(135deg, var(--stone-panel) 0%, rgba(168, 57, 31, 0.06) 100%);
}

.event-card:hover {
  border-color: var(--gold-dim);
}

.event-card.revealed:hover {
  transform: translateY(-3px);
}

.event-card__date {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vermilion-bright);
  margin-bottom: 0.6rem;
}

.event-card__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.event-card--featured .event-card__title {
  font-size: 1.35rem;
}

.event-card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.event-card__tag {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 3px;
  background: rgba(168, 57, 31, 0.15);
  color: var(--vermilion-bright);
}

@media (max-width: 768px) {
  .events-layout__past {
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .events-layout__past .event-card {
    flex: 0 0 100%;
    min-width: 0;
  }
}


/* ═══════════════════════════════════════
   TEAM
   ═══════════════════════════════════════ */

/* Horizontal filmstrip. Each team group scrolls as one unit, so the
   section grows sideways instead of pushing the whole page down. */
/* One domain per slide: every group is at least a full track wide, so the
   track is eight screens and each snap point lands on a clean group
   boundary instead of straddling two of them. */
.team-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 2rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  /* The track has no visible scrollbar — the dot indicator below it is the
     only position cue, so the sliding thumb is redundant. */
  scrollbar-width: none;
  padding: 0 0 0.5rem;
}

/* WebKit/Blink have no scrollbar-width, so hide it there explicitly. */
.team-grid::-webkit-scrollbar {
  display: none;
}

/* min-width (not flex-basis) is deliberate: a group is one screen wide on
   desktop, but grows past it when its cards need more room, so a wide group
   never overflows its own slide or clips a member. */
.team-group {
  flex: 0 0 auto;
  min-width: 100%;
  padding: 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  scroll-snap-align: start;
}

/* Members sit side by side, making each group a wide horizontal run.
   align-items makes the co-lead card match the lead's height instead of
   leaving a ragged step; justify-content centres the run in its slide. */
.team-group__members {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: 1.25rem;
}

/* The track is focusable (tabindex="0" in the markup) so keyboard users
   can scroll it; make that focus visible. */
.team-grid:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 0.35rem;
}

.team-group-header {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dim);
  border-bottom: 1px solid rgba(201, 162, 75, 0.12);
  padding-bottom: 0.5rem;
}

.team-card {
  flex: 0 0 210px;
  text-align: center;
  padding: 2rem 1.25rem;
  background: var(--stone-panel);
  border: 1px solid rgba(201, 162, 75, 0.06);
  border-radius: 8px;
  transition:
    border-color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    transform 0.35s var(--ease-out);
  opacity: 1;
  transform: none;
}

.team-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.team-card--lead {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(201, 162, 75, 0.08);
}

.team-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-3px);
}

.team-card.revealed:hover {
  transform: translateY(-3px);
}

.team-card__avatar {
  position: relative;
  overflow: hidden;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: var(--stone-light);
  border: 2px solid rgba(201, 162, 75, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--gold-dim);
}

.team-card--lead .team-card__avatar {
  border-color: var(--gold);
  color: var(--gold);
  width: 80px;
  height: 80px;
}

.team-card__name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.team-card__role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.team-card--lead .team-card__role {
  color: var(--gold);
}

/* Narrow screens: shrink the cards so a two-card group still fits inside
   one slide, and drop mandatory snapping so Executive's three-card run —
   which is wider than a phone screen — can be scrolled past freely instead
   of fighting the snap point. */
@media (max-width: 768px) {
  .team-grid {
    scroll-snap-type: x proximity;
  }

  .team-card {
    flex: 0 0 150px;
    padding: 1.5rem 0.75rem;
  }

  .team-group__members {
    gap: 0.75rem;
  }
}

/* Slide indicator for the horizontal team track: one dot per domain, with
   the active one stretched into a pill. Doubles as a jump control, so the
   track is reachable without dragging. */
.team-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* The global button reset strips border/background, so both are restated
   here for the dots to read as controls. */
.team-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid rgba(201, 162, 75, 0.35);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition:
    width 0.3s var(--ease-out),
    background-color 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out);
}

.team-dot:hover {
  border-color: var(--gold);
  background: rgba(201, 162, 75, 0.3);
}

.team-dot--active {
  width: 24px;
  background: var(--gold);
  border-color: var(--gold);
}

.team-dot:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}


/* ═══════════════════════════════════════
   JOIN US / CONTACT (closing section)
   ═══════════════════════════════════════ */

.join {
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Warm glow background for the join section */
.join::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(168, 57, 31, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 80%, rgba(201, 162, 75, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.join__content {
  position: relative;
  z-index: 1;
}

.join__desc {
  margin: 0 auto 2.5rem;
  max-width: 48ch;
}

.join__contact {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.join__contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.3s var(--ease-out);
}

.join__contact-item:hover {
  color: var(--text-primary);
}

.join__contact-icon {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
  transition: color 0.3s var(--ease-out);
}

.join__contact-item:hover .join__contact-icon {
  color: var(--gold-bright);
}


/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */

.footer {
  padding: 3rem var(--section-pad-x) 2rem;
  border-top: 1px solid rgba(201, 162, 75, 0.08);
}

.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer__wordmark {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
}

.footer__wordmark-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.footer__wordmark-tamil {
  font-family: var(--font-tamil);
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold);
}

.footer__wordmark-en {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.15rem;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__link {
  font-size: 0.8rem;
  color: var(--text-dim);
  position: relative;
  transition: color 0.3s var(--ease-out);
}

.footer__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.35s var(--ease-out);
}

.footer__link:hover,
.footer__link:focus-visible {
  color: var(--text-primary);
}

.footer__link:hover::after,
.footer__link:focus-visible::after {
  width: 100%;
}

.footer__socials {
  display: flex;
  gap: 1rem;
}

.footer__social {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 75, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: all 0.3s var(--ease-out);
}

.footer__social:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer__copy {
  width: 100%;
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201, 162, 75, 0.05);
  font-size: 0.7rem;
  color: var(--text-dim);
}


/* ═══════════════════════════════════════
   SECTION DIVIDER — subtle vermilion line
   ═══════════════════════════════════════ */

.section-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--vermilion), var(--gold-dim));
  border: none;
  margin: 0 0 2rem 0;
  opacity: 0.6;
}

.section-divider--center {
  margin-left: auto;
  margin-right: auto;
}


/* ═══════════════════════════════════════
/* ═══════════════════════════════════════
   CUSTOM CURSOR — gold ring/dot (fine pointers only)
   ═══════════════════════════════════════ */

.custom-cursor {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  pointer-events: none;
  will-change: transform;
}

.custom-cursor__dot {
  position: absolute;
  left: -2px;
  top: -2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.12s var(--ease-out);
}

.custom-cursor__ring {
  position: absolute;
  left: -11px;
  top: -11px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  opacity: 0;
  transition:
    opacity 0.12s var(--ease-out),
    width 0.18s var(--ease-out),
    height 0.18s var(--ease-out),
    left 0.18s var(--ease-out),
    top 0.18s var(--ease-out),
    border-color 0.18s var(--ease-out);
}

html.cursor-enabled .custom-cursor {
  display: block;
}

html.cursor-enabled .custom-cursor--on .custom-cursor__dot {
  opacity: 1;
}

html.cursor-enabled .custom-cursor--on .custom-cursor__ring {
  opacity: 0.9;
}

html.cursor-enabled .custom-cursor--hover .custom-cursor__dot {
  background: var(--gold-bright);
}

html.cursor-enabled .custom-cursor--hover .custom-cursor__ring {
  width: 30px;
  height: 30px;
  left: -15px;
  top: -15px;
  border-color: var(--gold-bright);
  opacity: 1;
}

/* Hide the native cursor ONLY on clearly interactive elements (never on text inputs) */

/* Hide the native cursor ONLY on clearly interactive elements (never on text inputs) */
@media (pointer: fine) {
  html.cursor-enabled a,
  html.cursor-enabled button,
  html.cursor-enabled .footer__social,
  html.cursor-enabled [role="button"] {
    cursor: none;
  }
}


/* ═══════════════════════════════════════
   LOADING / ENTRY MOMENT — branded carve-reveal
   ═══════════════════════════════════════ */

#loader {
  display: none;
}

#loader.loader--active {
  display: flex;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 4000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.35rem;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(201, 162, 75, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(168, 57, 31, 0.12) 0%, transparent 70%),
    var(--stone-base);
}

.loader__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto;
  align-items: center;
}

/* The outline sits in the middle track -> perfectly centered on the page */
.loader__map {
  grid-column: 2;
}

/* Tamil Nadu outline etched above the wordmark, stroke-drawn on load */
.loader__map {
  height: clamp(180px, 34vh, 360px);
  width: auto;
  overflow: visible;
  filter: drop-shadow(0 0 14px rgba(201, 162, 75, 0.18));
}

.loader__map-path {
  fill: rgba(201, 162, 75, 0.045);
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  /* initial hidden dash state is applied by main.js before painting */
}

.loader__map-word {
  font-family: var(--font-tamil);
  font-size: 18px;
  fill: var(--gold);
  text-shadow:
    0 -1px 2px rgba(232, 223, 206, 0.25),
    0 2px 6px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  user-select: none;
}

.loader__glyph {
  font-size: clamp(2.4rem, 9vw, 5.5rem);
  color: var(--gold);
  text-shadow:
    0 -1px 2px rgba(232, 223, 206, 0.25),
    0 2px 6px rgba(0, 0, 0, 0.9);
}

.loader .heading-carved {
  font-weight: 700;
}


/* ═══════════════════════════════════════
   THIRUKKURAL VERSE DIVIDERS
   Thin recurring pause-bands between sections —
   a verified couplet in Tamil with a prose
   rendering, revealed on scroll (see main.js)
   ═══════════════════════════════════════ */

.verse-divider {
  position: relative;
  background:
    radial-gradient(ellipse 90% 120% at 50% 50%, rgba(201, 162, 75, 0.05) 0%, transparent 70%),
    var(--stone-panel);
  border-top: 1px solid rgba(201, 162, 75, 0.12);
  border-bottom: 1px solid rgba(201, 162, 75, 0.12);
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.9s var(--ease-out);
}

.verse-divider.revealed {
  opacity: 1;
  transform: none;
}

/* Engraved diamond caps on either side of the band */
.verse-divider::before,
.verse-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 4px;
  height: 4px;
  transform: translateY(-50%) rotate(45deg);
  border: 1px solid rgba(201, 162, 75, 0.3);
}

.verse-divider::before {
  left: 1rem;
}

.verse-divider::after {
  right: 1rem;
}

.verse-divider__inner {
  max-width: 760px;
  text-align: center;
  padding-top: 2.2rem;
  padding-bottom: 2.2rem;
}

.verse-divider__tamil {
  font-family: var(--font-tamil);
  font-weight: 600;
  /* Content-independent size: viewport-responsive only, identical across all dividers */
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  line-height: 1.8;
  color: var(--gold-bright);
  /* A Thirukkural couplet is always exactly two lines (a 4-word first line
     and a 3-word second line). The \n in the data marks the true poetic
     midpoint, so never let CSS soft-wrap dictate the line count. */
  white-space: pre;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  max-width: 760px;
  margin: 0 auto 0.55rem;
  /* Anchor every couplet to a 3-line measure (1.8em line-height × 3),
     so 2-line couplets keep the same block height + gap below as 3-line ones */
  min-height: 5.4em;
}

/* On tiny screens the standard clamp binds to its minimum (1.05rem) which
   makes the longest couplet line (Kural 392, line 1) wider than the column;
   shrink the font so the two-line structure is never clipped or wrapped. */
@media (max-width: 400px) {
  .verse-divider__tamil {
    font-size: 0.85rem;
  }
}

.verse-divider__english {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 0.6rem;
}

.verse-divider__source {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.85;
}


/* ═══════════════════════════════════════
   OPT-IN SOUND TOGGLE — fixed corner button
   Muted on load; Web Audio only after a click
   ═══════════════════════════════════════ */

/* ═══════════════════════════════════════
   LIVE GITHUB STATS ON PROJECT CARDS
   Filled only on success — absent by default
   ═══════════════════════════════════════ */

.project-card__stats {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(201, 162, 75, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.25rem;
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.project-card__stat {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.project-card__stat svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--gold);
}

.project-card__stat b {
  color: var(--text-primary);
  font-weight: 600;
}


/* ═══════════════════════════════════════
   PREFERS REDUCED MOTION
   ═══════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  /* Skip the parked loading moment entirely — show the hero directly */
  #loader {
    display: none !important;
  }

  /* Show all headings immediately — no clip-path wipe */
  .carve-reveal {
    clip-path: none !important;
  }

  /* No press-settle on buttons */
  .btn:active {
    transform: none;
  }

  /* Disable stone chip particles */
  .stone-chip {
    display: none !important;
  }

  /* Team slide dots appear without stretching */
  .team-dot {
    transition: none;
  }

  /* Cards appear instantly */
  .project-card,
  .event-card,
  .team-card,
  .verse-divider {
    opacity: 1;
    transform: none;
  }

  /* Disable hover motion (lifts — settle already handled above) */
  .project-card.revealed:hover,
  .event-card.revealed:hover,
  .team-card:hover,
  .team-card.revealed:hover {
    transform: none;
  }

  /* Remove transitions */
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}


/* ═══════════════════════════════════════
   BRAND MARK — custom monogram (த + < >)
   Source: images/brand-mark.svg — same paths reused
   inline via <symbol id="tcc-mark">.
   ═══════════════════════════════════════ */

.brand-mark {
  display: block;
  flex: none;
}


/* ═══════════════════════════════════════
   CORNER ORNAMENTS — rare carved accents.
   Applied to the featured event card and the
   lead team card ONLY (decorative, aria-hidden).
   ═══════════════════════════════════════ */

.event-card--featured,
.team-card--lead {
  position: relative;
}

.corner-ornament {
  position: absolute;
  width: 30px;
  height: 30px;
  color: var(--gold);
  opacity: 0.75;
  pointer-events: none;
  z-index: 1;
}

.corner-ornament--tl {
  top: 10px;
  left: 10px;
}

.corner-ornament--br {
  bottom: 10px;
  right: 10px;
  transform: rotate(180deg);
}


/* ═══════════════════════════════════════
   SCROLL PROGRESS BAR
   ═══════════════════════════════════════ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold), var(--gold-bright));
  z-index: 10001;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(201, 162, 75, 0.5);
}


/* ═══════════════════════════════════════
   BACK TO TOP BUTTON
   ═══════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--stone-panel);
  border: 1.5px solid var(--gold-dim);
  color: var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, border-color 0.2s ease;
  z-index: 1000;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--stone-light);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(201, 162, 75, 0.3);
}

.back-to-top:active {
  transform: translateY(0) scale(0.95);
}


/* ═══════════════════════════════════════
   THEME TOGGLE (DARK / LIGHT STONE MODE)
   ═══════════════════════════════════════ */
/* Removed light mode */




/* ═══════════════════════════════════════
   INTERACTIVE BRAND MARK
   ═══════════════════════════════════════ */
.brand-mark {
  transition: filter 0.3s ease, transform 0.3s ease;
}

.brand-mark--nav:hover,
.nav__wordmark:hover .brand-mark {
  filter: drop-shadow(0 0 8px rgba(201, 162, 75, 0.7)) drop-shadow(0 0 16px rgba(201, 162, 75, 0.4));
  transform: scale(1.05);
}

.brand-mark--footer:hover,
.footer__wordmark:hover .brand-mark {
  filter: drop-shadow(0 0 8px rgba(201, 162, 75, 0.7)) drop-shadow(0 0 16px rgba(201, 162, 75, 0.4));
  transform: scale(1.05);
}

@keyframes brandPulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(201, 162, 75, 0.3)); }
  50% { filter: drop-shadow(0 0 12px rgba(201, 162, 75, 0.7)) drop-shadow(0 0 24px rgba(201, 162, 75, 0.3)); }
}

.brand-mark--nav:active,
.nav__wordmark:active .brand-mark {
  animation: brandPulse 0.6s ease-in-out;
}


/* ═══════════════════════════════════════
   PROJECT CARD EXPAND
   ═══════════════════════════════════════ */
.project-card {
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(201, 162, 75, 0);
  transition: box-shadow 0.3s ease;
  pointer-events: none;
}

.project-card:hover::after {
  box-shadow: 0 0 30px rgba(201, 162, 75, 0.15);
}

.project-card__expand-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.3rem 0.6rem;
  background: transparent;
  border: 1px solid var(--gold-dim);
  border-radius: 4px;
  color: var(--gold);
  font-size: 0.75rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.project-card__expand-btn:hover {
  background: rgba(201, 162, 75, 0.1);
  border-color: var(--gold);
}

.project-card__expand-icon {
  width: 12px;
  height: 12px;
  transition: transform 0.3s ease;
}

.project-card.expanded .project-card__expand-icon {
  transform: rotate(180deg);
}

.project-card__details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

.project-card.expanded .project-card__details {
  max-height: 200px;
  opacity: 1;
}

.project-card__details-inner {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(201, 162, 75, 0.2);
  margin-top: 0.75rem;
}

.project-card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.project-card__tech-tag {
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  background: rgba(201, 162, 75, 0.1);
  color: var(--gold);
  border: 1px solid rgba(201, 162, 75, 0.25);
  font-family: var(--font-body);
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--teal-bright);
  text-decoration: none;
  transition: color 0.2s ease;
}

.project-card__link:hover {
  color: var(--teal);
  text-decoration: underline;
}


/* ═══════════════════════════════════════
   LANGUAGE TOGGLE ANIMATION
   ═══════════════════════════════════════ */
#lang-toggle {
  perspective: 600px;
  transition: background 0.2s ease, color 0.2s ease;
}

@keyframes langFlip {
  0% { transform: rotateX(0deg); }
  50% { transform: rotateX(-90deg); opacity: 0.5; }
  100% { transform: rotateX(0deg); opacity: 1; }
}

#lang-toggle.flipping {
  animation: langFlip 0.4s ease-in-out;
}


/* ═══════════════════════════════════════
   EVENTS TIMELINE
   ═══════════════════════════════════════ */
.events-timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: 2rem;
}

.events-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--gold-dim) 50%, transparent);
}

.events-timeline__item {
  display: block;
  width: 100%;
  position: relative;
  padding-bottom: 2.5rem;
  padding-left: 1.5rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.events-timeline__item:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 0.4rem;
  border-radius: 3px;
}

.events-timeline__item:hover {
  transform: translateX(4px);
}

.events-timeline__item::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 0.3rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--stone-base);
  border: 2px solid var(--gold);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.events-timeline__item:hover::before,
.events-timeline__item.active::before {
  background: var(--gold);
  box-shadow: 0 0 12px rgba(201, 162, 75, 0.5);
}

.events-timeline__item.active::before {
  background: var(--gold-bright);
}

.events-timeline__dot-gem {
  position: absolute;
  left: -2.75rem;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.events-timeline__item:hover .events-timeline__dot-gem,
.events-timeline__item.active .events-timeline__dot-gem {
  opacity: 1;
}

.events-timeline__content {
  border-left: 1px solid rgba(201, 162, 75, 0.15);
  padding-left: 1rem;
  transition: border-color 0.2s ease;
}

.events-timeline__item:hover .events-timeline__content {
  border-color: rgba(201, 162, 75, 0.4);
}

.events-timeline__date {
  font-size: 0.7rem;
  color: var(--gold-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.events-timeline__title {
  font-size: 1rem;
  font-family: var(--font-display);
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.events-timeline__desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.events-timeline__item.active .events-timeline__desc {
  max-height: 320px;
}

.events-timeline__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.events-timeline__link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--gold);
  border-radius: 3px;
  color: var(--gold-bright);
  font-size: 0.7rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.events-timeline__link:hover,
.events-timeline__link:focus-visible {
  background: var(--gold);
  color: var(--stone-deep);
}

.events-timeline__link--secondary {
  border-color: var(--teal);
  color: var(--teal-bright);
}

.events-timeline__tag {
  display: inline-block;
  font-size: 0.65rem;
  padding: 0.1rem 0.5rem;
  border-radius: 3px;
  background: rgba(201, 162, 75, 0.12);
  color: var(--gold);
  border: 1px solid rgba(201, 162, 75, 0.3);
  margin-top: 0.4rem;
}

/* Past event — no CTA, so the tag and marker drop the
   "open for registration" gold and the gem stops pulsing. */
.events-timeline__item.is-past .events-timeline__tag {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border-color: rgba(255, 255, 255, 0.12);
}

.events-timeline__item.is-past::before,
.events-timeline__item.is-past:hover::before,
.events-timeline__item.is-past.active::before {
  background: var(--stone-base);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: none;
}

.events-timeline__item.is-past .events-timeline__dot-gem {
  opacity: 0.25;
}

.events-timeline__note {
  margin-top: 0.75rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: italic;
}


/* ═══════════════════════════════════════
   PARTICLE CANVAS
   ═══════════════════════════════════════ */
#particle-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

/* ═══════════════════════════════════════
   FLOATING TAMIL RIVER CANVAS
   ═══════════════════════════════════════ */
#river-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}


/* ═══════════════════════════════════════
   CURSOR TRAIL
   ═══════════════════════════════════════ */
.cursor-trail-dot {
  position: fixed;
  border-radius: 50%;
  background: var(--gold-bright);
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.1s ease;
}

