/* ============================================
   Shiv Nritya Kendra — Design Tokens
   Palette drawn from Kathak's own materials:
   maroon silk, marigold/ghungroo gold, ivory
   plaster walls, sindoor vermillion, deep ink.
   ============================================ */

:root {
  --maroon: #6b1e2a;
  --maroon-deep: #4a1119;
  --gold: #c69a3c;
  --gold-soft: #e3c584;
  --ivory: #faf4e6;
  --ivory-dim: #f1e8d4;
  --ink: #241a1a;
  --vermillion: #b8482f;
  --line: rgba(36, 26, 26, 0.14);

  --font-display: "Yeseva One", serif;
  --font-body: "Karla", sans-serif;
  --font-taal: "Cutive Mono", monospace;

  --max-width: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

/* Native cross-document page transitions (Chrome/Edge; ignored elsewhere) */
@view-transition {
  navigation: auto;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 0.4em;
  color: var(--maroon-deep);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: inherit; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Film grain overlay ---------- */

.grain-overlay {
  position: fixed;
  inset: -10%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  animation: grainShift 1.4s steps(4) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0,0); }
  25% { transform: translate(-2%,1%); }
  50% { transform: translate(1%,-2%); }
  75% { transform: translate(-1%,2%); }
  100% { transform: translate(0,0); }
}
@media (prefers-reduced-motion: reduce) {
  .grain-overlay { animation: none; opacity: 0.03; }
}

/* ---------- Ambient glow orbs behind the hero ---------- */

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}
.hero-orb-1 {
  width: 340px; height: 340px;
  background: radial-gradient(circle, var(--vermillion), transparent 70%);
  top: -80px; right: 8%;
}
.hero-orb-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--gold), transparent 70%);
  bottom: -100px; left: 2%;
}
.hero .wrap { position: relative; z-index: 1; }

/* ---------- Cursor particle trail canvas ---------- */

.particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 240;
  pointer-events: none;
}

/* ---------- 3D card tilt ---------- */

.grid-3, .pin-track {
  perspective: 1200px;
}
.card {
  transform-style: preserve-3d;
  will-change: transform;
}
body.tilt-active .card:hover {
  transform: none; /* JS owns transform when tilt is active */
  box-shadow: 0 20px 40px -18px rgba(74, 17, 25, 0.35);
}

/* ---------- Preloader ----------
   A counting percentage before the page reveals itself —
   the kind of entrance a production-value studio site opens with. */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--maroon-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  transition: transform 0.9s cubic-bezier(.76,0,.24,1), opacity 0.7s ease;
}

.preloader.done {
  transform: translateY(-100%);
}

.preloader-count {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 7rem);
  color: var(--gold-soft);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.preloader-count::after {
  content: "%";
  font-size: 0.4em;
  opacity: 0.7;
  margin-left: 4px;
}

.preloader-bar {
  width: 220px;
  max-width: 60vw;
  height: 2px;
  background: rgba(250,244,230,0.2);
  overflow: hidden;
}
.preloader-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--vermillion), var(--gold));
}

.preloader-label {
  font-family: var(--font-taal);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(250,244,230,0.6);
}

@media (prefers-reduced-motion: reduce) {
  .preloader { transition: opacity 0.3s ease; }
  .preloader.done { transform: none; opacity: 0; }
}

/* ---------- Custom cursor (pointer devices only) ---------- */

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 250;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--vermillion);
}
.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--maroon);
  opacity: 0.55;
  transition: width 0.25s ease, height 0.25s ease, opacity 0.25s ease, border-color 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cursor-ring.hover {
  width: 64px;
  height: 64px;
  opacity: 1;
  border-color: var(--vermillion);
  background: rgba(184,72,47,0.06);
}
.cursor-ring .cursor-label {
  font-family: var(--font-taal);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vermillion);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.cursor-ring.hover .cursor-label { opacity: 1; }

body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button {
  cursor: none;
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--vermillion), var(--gold));
  z-index: 100;
  transition: width 0.08s linear;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 6px 20px -12px rgba(36,26,26,0.25);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  transition: padding 0.3s ease;
}

.site-header.scrolled .wrap {
  padding-top: 10px;
  padding-bottom: 10px;
}

.site-header.scrolled .brand-mark {
  font-size: 1.25rem;
}
.brand-mark { transition: font-size 0.3s ease; }

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--maroon);
}

.brand-sub {
  font-family: var(--font-taal);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vermillion);
}

nav.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

nav.main-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}

nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--vermillion);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

nav.main-nav a:hover::after,
nav.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

nav.main-nav a[aria-current="page"] {
  color: var(--maroon);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 1.1rem;
  cursor: pointer;
}

.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--maroon);
  color: var(--ivory) !important;
  padding: 9px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, transform 0.2s ease;
}

.call-btn:hover { background: var(--vermillion); transform: translateY(-1px); }

@media (max-width: 760px) {
  nav.main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ivory);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  nav.main-nav.open { max-height: 320px; }
  nav.main-nav a { width: 100%; padding: 14px 24px; border-top: 1px solid var(--line); }
  nav.main-nav a::after { display: none; }
  .nav-toggle { display: block; }
  .site-header .wrap { position: relative; flex-wrap: wrap; }
  .call-btn { display: none; }
}

/* ---------- Taal rhythm divider (signature element) ----------
   A recurring strip of Kathak bols (spoken rhythm syllables),
   spaced like a taal cycle. Doubles as section dividers. */

.taal-strip {
  font-family: var(--font-taal);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.taal-strip .marquee-track {
  display: flex;
  gap: 18px;
  flex-shrink: 0;
  animation: marquee 22s linear infinite;
}
.taal-strip:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .taal-strip .marquee-track { animation: none; }
  .taal-strip { overflow-x: auto; }
}

.taal-strip span:not(.beat) { opacity: 0.55; }
.taal-strip .beat {
  color: var(--maroon);
  font-weight: 700;
  opacity: 1;
  display: inline-block;
  animation: beatPulse 2.4s ease-in-out infinite;
}
.taal-strip span:nth-child(4n+1) { animation-delay: 0s; }
.taal-strip span:nth-child(4n+2) { animation-delay: 0.15s; }
.taal-strip span:nth-child(4n+3) { animation-delay: 0.3s; }
.taal-strip span:nth-child(4n+4) { animation-delay: 0.45s; }

@keyframes beatPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  .taal-strip .beat { animation: none; }
}

.taal-strip.dark {
  color: var(--gold-soft);
  border-color: rgba(250, 244, 230, 0.16);
}
.taal-strip.dark .beat { color: var(--ivory); }

/* ---------- Hero ---------- */

.hero {
  padding: 84px 0 60px;
  position: relative;
  overflow: hidden;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow,
.hero h1,
.hero .lede,
.hero .cta-row,
.hero .hero-stats,
.hero-visual {
  animation: fadeUp 0.7s cubic-bezier(.2,.7,.3,1) both;
}
.hero .hero-eyebrow { animation-delay: 0.02s; }
.hero h1 { animation-delay: 0.08s; }
.hero .lede { animation-delay: 0.16s; }
.hero .cta-row { animation-delay: 0.24s; }
.hero .hero-stats { animation-delay: 0.3s; }
.hero-visual { animation-delay: 0.18s; }

.page-hero .hero-eyebrow,
.page-hero h1,
.page-hero .lede {
  animation: fadeUp 0.7s cubic-bezier(.2,.7,.3,1) both;
}
.page-hero .hero-eyebrow { animation-delay: 0.02s; }
.page-hero h1 { animation-delay: 0.08s; }
.page-hero .lede { animation-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero h1, .hero .lede, .hero .cta-row, .hero .hero-stats,
  .hero-visual, .page-hero .hero-eyebrow, .page-hero h1, .page-hero .lede {
    animation: none;
  }
}

/* When GSAP drives the hero entrance, let it own opacity/transform —
   drop the CSS keyframe version so the two don't fight. */
body.gsap-active .hero-eyebrow,
body.gsap-active .hero h1,
body.gsap-active .hero .lede,
body.gsap-active .hero .cta-row,
body.gsap-active .hero .hero-stats,
body.gsap-active .page-hero .hero-eyebrow,
body.gsap-active .page-hero h1,
body.gsap-active .page-hero .lede {
  animation: none !important;
}
body.gsap-active .hero-visual {
  animation: driftGlow 9s ease-in-out infinite 0s !important;
}

/* Word-split kinetic heading (built by animations.js) */
.word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.word {
  display: inline-block;
  will-change: transform;
}

.hero-eyebrow {
  font-family: var(--font-taal);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--vermillion);
  margin-bottom: 18px;
  display: block;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

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

.hero p.lede {
  font-size: 1.15rem;
  max-width: 46ch;
  color: #3a2c2c;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--maroon);
}
.hero-stat span {
  font-size: 0.82rem;
  color: #5c4b4b;
}

.hero-visual {
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(circle at 30% 20%, rgba(198,154,60,0.35), transparent 55%),
    linear-gradient(155deg, var(--maroon) 0%, var(--maroon-deep) 65%, #34090f 100%);
  background-size: 140% 140%;
  border-radius: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 32px;
  box-shadow: 0 24px 60px -20px rgba(74, 17, 25, 0.55);
  animation: fadeUp 0.7s cubic-bezier(.2,.7,.3,1) both 0.18s, driftGlow 9s ease-in-out infinite 0.9s;
}

@keyframes driftGlow {
  0%, 100% { background-position: 0% 0%, 0% 0%; }
  50% { background-position: 12% 8%, 0% 0%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual { animation: none; }
}

.hero-visual .caption {
  position: relative;
  color: var(--ivory);
  font-family: var(--font-taal);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
  text-align: center;
}

/* ---------- Line-art dancer silhouette (signature hero graphic) ----------
   A continuous-line figure in a Kathak pose. The figure sways gently
   on its own; the flared skirt additionally responds to cursor
   position (see animations.js) so it reads as fabric in motion. */

.dancer-svg {
  width: 78%;
  max-width: 270px;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.45));
}

.dancer-figure {
  transform-box: view-box;
  transform-origin: 150px 150px;
}

.dancer-skirt {
  transform-box: view-box;
  transform-origin: 150px 150px;
  will-change: transform;
}

.dancer-svg {
  animation: dancerSway 6s ease-in-out infinite;
}
@keyframes dancerSway {
  0%, 100% { transform: rotate(-1.2deg); }
  50% { transform: rotate(1.2deg); }
}

@media (prefers-reduced-motion: reduce) {
  .dancer-svg { animation: none; }
}

.cta-row {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--vermillion);
  color: var(--ivory);
}
.btn-primary:hover { background: var(--maroon); transform: translateY(-2px); box-shadow: 0 10px 22px -8px rgba(184,72,47,0.55); }

.btn-ghost {
  background: transparent;
  color: var(--maroon);
  border: 1.5px solid var(--maroon);
}
.btn-ghost:hover { background: var(--maroon); color: var(--ivory); }

/* ---------- Sections ---------- */

section { padding: 68px 0; }

.section-head {
  max-width: 60ch;
  margin-bottom: 42px;
}

.section-head .hero-eyebrow { margin-bottom: 10px; }

.dark-section {
  background: var(--maroon-deep);
  color: var(--ivory-dim);
}
.dark-section h2, .dark-section h3 { color: var(--ivory); }

/* Cards */

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

.card {
  background: var(--ivory-dim);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  transition: transform 0.35s cubic-bezier(.2,.7,.3,1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -18px rgba(74, 17, 25, 0.35);
  border-color: var(--gold);
}

.card .num {
  transition: transform 0.35s ease, color 0.35s ease;
}
.card:hover .num {
  color: var(--maroon);
  transform: translateX(3px);
}

.card .num {
  font-family: var(--font-taal);
  color: var(--vermillion);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  display: block;
  margin-bottom: 12px;
}

/* Achievements list */

.achieve-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.achieve-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 16px 20px;
  background: rgba(250,244,230,0.06);
  border: 1px solid rgba(250,244,230,0.14);
  border-radius: 10px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.achieve-list li:hover {
  transform: translateX(6px);
  border-color: var(--gold);
}

.dark-section .achieve-list li { background: rgba(250,244,230,0.06); }
section:not(.dark-section) .achieve-list li { background: var(--ivory-dim); border-color: var(--line); }

.achieve-list .tag {
  font-family: var(--font-taal);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

/* ---------- Student showcase (homepage) ----------
   A bento-style grid: one wide feature, one tall portrait, and
   three supporting shots, collapsing to a simple stack on mobile. */

.students-showcase { padding-top: 20px; }

.showcase-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 16px;
  grid-template-areas:
    "feature feature a portrait"
    "b       c       a portrait";
}
@media (max-width: 900px) {
  .showcase-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px 200px;
    grid-template-areas:
      "feature feature"
      "portrait portrait"
      "a b";
  }
}
@media (max-width: 560px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 220px);
    grid-template-areas:
      "feature"
      "portrait"
      "a"
      "b"
      "c";
  }
}

.showcase-feature { grid-area: feature; }
.showcase-portrait { grid-area: portrait; }
.showcase-a { grid-area: a; }
.showcase-b { grid-area: b; }
.showcase-c { grid-area: c; }
@media (max-width: 900px) {
  .showcase-c { display: none; } /* keep the tablet grid tidy; still shown on mobile stack and desktop */
}
@media (max-width: 560px) {
  .showcase-c { display: block; }
}

.showcase-item {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px -28px rgba(74, 17, 25, 0.4);
  height: 100%;
}
.showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  cursor: zoom-in;
  transition: transform 0.5s cubic-bezier(.2,.7,.3,1);
}
.showcase-item img:hover {
  transform: scale(1.05);
}

/* ---------- Press / photo showcase ---------- */

.press-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .press-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .press-grid { grid-template-columns: 1fr; } }

.press-figure {
  margin: 0;
  background: var(--ivory-dim);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.press-figure img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.5s cubic-bezier(.2,.7,.3,1);
}
.press-figure img:hover {
  transform: scale(1.05);
}
.press-figure:nth-child(2) img,
.press-figure:nth-child(3) img {
  object-position: top;
}

/* Keeps the DD Punjabi logo (top-right of that screenshot) inside the crop */
.keep-top-right {
  object-position: top right !important;
}
.press-figure figcaption {
  padding: 14px 18px;
  font-size: 0.88rem;
  color: #5c4b4b;
}

/* ---------- Press image lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(36, 26, 26, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox img {
  max-width: min(90vw, 900px);
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
  filter: none;
  transform: scale(0.96);
  transition: transform 0.3s ease;
}
.lightbox.open img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(250,244,230,0.12);
  border: 1px solid rgba(250,244,230,0.3);
  color: var(--ivory);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover { background: rgba(250,244,230,0.22); }

/* ---------- Diploma benefit list (systematic, numbered) ---------- */

.benefit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.benefit-list li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 22px 24px;
  background: rgba(250,244,230,0.06);
  border: 1px solid rgba(250,244,230,0.14);
  border-radius: 12px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.benefit-list li:hover {
  transform: translateX(6px);
  border-color: var(--gold);
}
.benefit-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold-soft);
  line-height: 1;
  flex-shrink: 0;
  min-width: 2.2ch;
}
.benefit-list h3 {
  color: var(--ivory);
  font-size: 1.2rem;
  margin: 0 0 6px;
}
.benefit-list p {
  color: var(--ivory-dim);
  opacity: 0.85;
  margin: 0;
  font-size: 0.95rem;
}

/* Contact page */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-item {
  margin-bottom: 24px;
}
.contact-item .label {
  font-family: var(--font-taal);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vermillion);
  display: block;
  margin-bottom: 6px;
}
.contact-item a { color: var(--maroon); text-decoration: none; font-weight: 700; }
.contact-item a:hover { text-decoration: underline; }

.map-frame {
  width: 100%;
  height: 340px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* Reveal on scroll: fade in, rise 40px, and sharpen from a soft blur —
   each section arrives like it's coming into focus. */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(8px);
  transition: opacity 0.8s cubic-bezier(.2,.65,.3,1),
              transform 0.8s cubic-bezier(.2,.65,.3,1),
              filter 0.8s cubic-bezier(.2,.65,.3,1);
  will-change: opacity, transform, filter;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0px);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { filter: none; }
}

/* ---------- Kinetic type band (scroll-scrubbed, GSAP) ---------- */

.kinetic-band {
  overflow: hidden;
  padding: 26px 0;
  background: var(--ivory-dim);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.kinetic-track {
  display: flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  width: max-content;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--maroon);
  text-stroke: 1.5px var(--maroon);
  letter-spacing: 0.01em;
}
.kinetic-track span:nth-child(even) {
  -webkit-text-stroke: 0;
  text-stroke: 0;
  color: var(--gold);
  font-size: 0.5em;
}

/* Fallback: if JS/GSAP doesn't run, drift it with plain CSS so it's never static */
.kinetic-track {
  animation: marquee 30s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .kinetic-track { animation: none; }
}

/* ---------- Horizontal pinned gallery (GSAP ScrollTrigger) ---------- */

.pin-section { padding-bottom: 68px; }

.pin-wrap {
  position: relative;
}

.pin-stage {
  position: relative;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 24px 20px;
  margin: 0 -24px;
  -webkit-overflow-scrolling: touch;
}

.pin-track {
  display: flex;
  gap: 24px;
  width: max-content;
}

.pin-card {
  flex: 0 0 auto;
  width: min(78vw, 340px);
  background: rgba(250,244,230,0.06);
  border: 1px solid rgba(250,244,230,0.16);
  border-radius: 14px;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-snap-align: start;
}
.pin-card h3 { color: var(--ivory); font-size: 1.7rem; }
.pin-card p { color: var(--ivory-dim); opacity: 0.85; margin: 0; }

.pin-card-photo {
  padding: 0 0 26px;
  overflow: hidden;
}
.pin-card-photo img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  margin-bottom: 18px;
}
.pin-card-photo .tag,
.pin-card-photo h3,
.pin-card-photo p {
  margin-left: 28px;
  margin-right: 28px;
}
.pin-card-photo h3 { margin-top: 0; }
.pin-card .tag {
  font-family: var(--font-taal);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.pin-card-cta {
  background: linear-gradient(155deg, var(--vermillion), #8a3320);
  border-color: transparent;
}
.pin-card-cta .btn { margin-top: 6px; align-self: flex-start; }

.grid-3 .card.reveal:nth-child(1) { transition-delay: 0.05s; }
.grid-3 .card.reveal:nth-child(2) { transition-delay: 0.16s; }
.grid-3 .card.reveal:nth-child(3) { transition-delay: 0.27s; }

.achieve-list.reveal.in li:nth-child(1) { transition: opacity 0.5s ease 0.05s, transform 0.5s ease 0.05s, border-color 0.3s ease; }
.achieve-list.reveal.in li:nth-child(2) { transition: opacity 0.5s ease 0.15s, transform 0.5s ease 0.15s, border-color 0.3s ease; }
.achieve-list.reveal.in li:nth-child(3) { transition: opacity 0.5s ease 0.25s, transform 0.5s ease 0.25s, border-color 0.3s ease; }
.achieve-list.reveal.in li:nth-child(4) { transition: opacity 0.5s ease 0.35s, transform 0.5s ease 0.35s, border-color 0.3s ease; }
.achieve-list li {
  opacity: 0;
  transform: translateY(12px);
}
.achieve-list.reveal.in li {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */

footer {
  background: var(--ink);
  color: var(--ivory-dim);
  padding: 40px 0 28px;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer .brand-mark { color: var(--gold-soft); }
footer small { color: rgba(250,244,230,0.5); font-size: 0.8rem; }
footer nav { display: flex; gap: 18px; }
footer nav a { text-decoration: none; font-size: 0.88rem; color: var(--ivory-dim); }
footer nav a:hover { color: var(--gold-soft); }

/* Sticky mobile call bar */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  background: var(--maroon);
  padding: 12px 20px;
  text-align: center;
}
.mobile-call-bar a {
  color: var(--ivory);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
@media (max-width: 760px) {
  .mobile-call-bar { display: block; }
  body { padding-bottom: 54px; }
}

/* Page hero (interior pages) */
.page-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}
.page-hero p.lede { max-width: 60ch; }

/* About page hero: real portrait photo, right of the intro text */
.about-hero .hero-grid {
  align-items: center;
}
.about-photo-frame {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(74, 17, 25, 0.4);
  aspect-ratio: 4 / 5;
  animation: fadeUp 0.8s cubic-bezier(.2,.7,.3,1) both 0.2s;
}
@media (prefers-reduced-motion: reduce) {
  .about-photo-frame { animation: none; }
}
.about-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
@media (max-width: 860px) {
  .about-photo-frame { max-width: 360px; margin: 0 auto; }
}
