/*
Theme Name: BGPSS Paathshala
Theme URI: https://bgpss.in
Author: Bharat Gaurav Public School
Author URI: https://bgpss.in
Description: The official website theme for Bharat Gaurav Public Sr. Sec. School, Sikandra · Dausa. A storybook-style design with a hand-illustrated Rajasthani aesthetic and an interactive campus explorer, built hand-crafted for BGPSS. Mascot: Moru the peacock.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary — BGPSS only
License URI: https://bgpss.in
Text Domain: bgpss
Tags: education, school, india, custom-theme
*/

/* ==========================================================================
   BGPSS Paathshala Theme — Design Tokens
   All values centralised here. Edit with care.
   ========================================================================== */

:root {
  /* Palette — Paathshala (the Jaipur storybook) */
  --cream:         #FDF6E3;
  --cream-2:       #F9EDCC;
  --cream-3:       #F5E6C8;
  --paper-edge:    #EADEB2;

  --teal:          #0E7C7B;
  --teal-deep:     #0A5E5D;
  --teal-ink:      #083C3B;

  --saffron:       #EA580C;
  --saffron-soft:  #F59E0B;
  --terracotta:    #C65D3E;

  --gold:          #D4A574;
  --gold-deep:     #B8860B;

  --royal-blue:    #1E40AF;

  --brown:         #6B4423;
  --brown-ink:     #4A2F1A;
  --ink:           #1C1917;

  --green-soft:    #86A97D;
  --rose:          #F4A896;

  /* Semantic */
  --bg:            var(--cream);
  --bg-2:          var(--cream-3);
  --text:          var(--brown-ink);
  --text-muted:    var(--brown);
  --accent:        var(--teal);
  --accent-2:      var(--saffron);
  --rule:          rgba(107, 68, 35, 0.18);
  --rule-strong:   rgba(107, 68, 35, 0.32);

  /* Typography */
  --font-display:  "Fraunces", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:     "Lora", Georgia, "Times New Roman", serif;
  --font-hindi:    "Tiro Devanagari Hindi", "Fraunces", Georgia, serif;
  --font-mono:     ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --fs-xs:    0.78125rem;  /* 12.5px */
  --fs-sm:    0.875rem;    /* 14px   */
  --fs-base:  1rem;        /* 16px   */
  --fs-md:    1.125rem;    /* 18px   */
  --fs-lg:    1.375rem;    /* 22px   */
  --fs-xl:    1.75rem;     /* 28px   */
  --fs-2xl:   2.25rem;     /* 36px   */
  --fs-3xl:   3rem;        /* 48px   */
  --fs-hero:  clamp(2.25rem, 5vw + 1rem, 4.5rem);

  /* Layout */
  --page-max:     1200px;
  --page-x:       clamp(1rem, 4vw, 2.5rem);
  --section-y:    clamp(3rem, 7vw, 6rem);

  --radius-sm:    4px;
  --radius:       8px;
  --radius-lg:    14px;
  --radius-xl:    22px;

  --shadow-soft:  0 1px 2px rgba(107, 68, 35, 0.06), 0 4px 18px rgba(107, 68, 35, 0.08);
  --shadow-lift:  0 2px 4px rgba(107, 68, 35, 0.08), 0 12px 32px rgba(107, 68, 35, 0.14);

  /* Motion */
  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft:    cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast:       180ms;
  --t-med:        320ms;
  --t-slow:       620ms;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

a { color: var(--teal); text-decoration-color: rgba(14, 124, 123, 0.35); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color var(--t-fast) var(--ease-out); }
a:hover { color: var(--saffron); text-decoration-color: currentColor; }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 500; color: var(--teal-ink); margin: 0 0 0.5em; line-height: 1.12; letter-spacing: -0.005em; font-variation-settings: "SOFT" 30, "opsz" 144; }

p { margin: 0 0 1em; }

.hindi { font-family: var(--font-hindi); font-weight: 400; }

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

:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; border-radius: var(--radius-sm); }

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

.container { width: 100%; max-width: var(--page-max); margin-inline: auto; padding-inline: var(--page-x); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.75em 1.4em;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1;
  border-radius: 100px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn--primary { background: var(--saffron); color: var(--cream); border-color: var(--saffron); }
.btn--primary:hover { background: var(--terracotta); border-color: var(--terracotta); color: var(--cream); box-shadow: var(--shadow-soft); }

.btn--secondary { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn--secondary:hover { background: var(--teal); color: var(--cream); }

.btn--ghost { background: transparent; color: var(--brown); border-color: var(--rule); font-size: var(--fs-xs); padding: 0.55em 1.1em; }
.btn--ghost:hover { color: var(--teal); border-color: var(--teal); }

.btn--small { font-size: var(--fs-xs); padding: 0.55em 1em; }
.btn--large { font-size: var(--fs-md); padding: 1em 1.8em; }

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.section { padding-block: var(--section-y); position: relative; }
.section--cream-2 { background: var(--cream-3); }
.section--teal { background: var(--teal); color: var(--cream); }
.section--teal h1, .section--teal h2, .section--teal h3 { color: var(--cream); }

.eyebrow { display: inline-block; font-family: var(--font-display); font-size: var(--fs-xs); font-style: italic; letter-spacing: 0.22em; text-transform: uppercase; color: var(--terracotta); margin: 0 0 0.75em; }

.section__heading { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
.section__heading.section__heading--left { text-align: left; margin-inline: 0; }
.section__heading h2 { font-size: clamp(var(--fs-xl), 4vw, var(--fs-2xl)); margin-bottom: 0.3em; }
.section__heading p { font-style: italic; color: var(--brown); font-size: var(--fs-md); margin: 0; }

.rule { height: 1px; border: 0; background-image: repeating-linear-gradient(to right, var(--rule) 0 6px, transparent 6px 14px); margin: 0; }

/* Torn paper edge divider */
.torn-edge { display: block; width: 100%; height: 18px; color: var(--cream); }
.torn-edge--up { transform: rotate(180deg); }

/* ==========================================================================
   Site header / navigation
   ========================================================================== */

.site-header { position: sticky; top: 0; z-index: 80; background: rgba(253, 246, 227, 0.92); backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px); border-bottom: 0.5px solid var(--rule); }

.nav { display: flex; align-items: center; gap: 1.5rem; padding-block: 0.9rem; }

.nav__brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; flex-shrink: 0; }
.nav__brand:hover { color: var(--teal); }
.nav__mark { width: 38px; height: 38px; border-radius: 8px; background: var(--teal); color: var(--cream-3); display: flex; align-items: center; justify-content: center; font-family: var(--font-hindi); font-size: 16px; font-weight: 500; flex-shrink: 0; position: relative; overflow: hidden; }
.nav__mark::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.2), transparent 60%); pointer-events: none; }
.nav__wordmark { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.nav__name { font-family: var(--font-display); font-size: 0.95rem; font-weight: 500; color: var(--teal-ink); letter-spacing: 0.01em; }
.nav__tag { font-size: 0.625rem; color: var(--brown); letter-spacing: 0.16em; text-transform: uppercase; font-family: var(--font-display); }

.nav__links { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.25rem; flex: 1; justify-content: center; }
.nav__links a { font-family: var(--font-display); font-size: var(--fs-sm); color: var(--brown-ink); text-decoration: none; position: relative; padding: 0.3em 0.2em; transition: color var(--t-fast) var(--ease-out); }
.nav__links a::after { content: ""; position: absolute; left: 0.2em; right: 0.2em; bottom: 0; height: 2px; background: var(--saffron); transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease-out); border-radius: 2px; }
.nav__links a:hover { color: var(--teal); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links .current-menu-item > a,
.nav__links [aria-current="page"] { color: var(--teal); }
.nav__links .current-menu-item > a::after,
.nav__links [aria-current="page"]::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 0.75rem; }
.nav__parent-link { font-family: var(--font-display); font-size: var(--fs-xs); color: var(--brown); text-decoration: none; padding: 0.3em 0.6em; border-radius: var(--radius); transition: color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out); }
.nav__parent-link:hover { color: var(--teal); background: var(--cream-3); }

.nav__toggle { display: none; background: transparent; border: 0; width: 44px; height: 44px; padding: 10px; border-radius: var(--radius); color: var(--brown-ink); }
.nav__toggle:hover { background: var(--cream-3); }
.nav__toggle svg { width: 100%; height: 100%; }
.nav__toggle .icon-close { display: none; }
.nav[data-open="true"] .nav__toggle .icon-open { display: none; }
.nav[data-open="true"] .nav__toggle .icon-close { display: block; }

/* Mobile nav */
@media (max-width: 960px) {
  .nav__links, .nav__actions .nav__parent-link { display: none; }
  .nav__toggle { display: flex; align-items: center; justify-content: center; margin-left: auto; }
  .nav__actions { order: 2; margin-left: auto; }
  .nav { gap: 0.5rem; }
  .nav[data-open="true"] .nav__links {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); border-bottom: 0.5px solid var(--rule); padding: 1rem var(--page-x) 1.5rem;
    gap: 0.5rem; box-shadow: var(--shadow-soft);
  }
  .nav[data-open="true"] .nav__links a { font-size: var(--fs-md); padding-block: 0.5em; border-bottom: 0.5px dashed var(--rule); }
  .nav[data-open="true"] .nav__links a::after { display: none; }
  .nav[data-open="true"] .nav__parent-link { display: inline-block; margin-top: 0.5rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { position: relative; overflow: hidden; background: var(--cream); isolation: isolate; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1fr; align-items: center; min-height: min(780px, 92vh); padding-block: clamp(3rem, 7vh, 5rem) clamp(4rem, 10vh, 7rem); }

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

.hero__content { position: relative; z-index: 2; max-width: 640px; }
.hero__chapter-label { display: inline-block; font-family: var(--font-display); font-size: var(--fs-xs); font-style: italic; letter-spacing: 0.22em; text-transform: uppercase; color: var(--terracotta); margin: 0 0 1.5rem; }
.hero__chapter-label::before { content: "· "; }
.hero__chapter-label::after { content: " ·"; }

.hero__headline { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-hero); line-height: 1.02; color: var(--teal-ink); margin: 0 0 1rem; letter-spacing: -0.015em; font-variation-settings: "SOFT" 40, "opsz" 144, "WONK" 1; }
.hero__headline em { font-style: italic; color: var(--terracotta); font-variation-settings: "SOFT" 60, "opsz" 144, "WONK" 1; }

.hero__sub { font-size: var(--fs-md); line-height: 1.55; color: var(--brown-ink); margin: 0 0 2rem; max-width: 42ch; }
.hero__sub .hindi { display: block; color: var(--teal); font-style: italic; margin-top: 0.4em; font-size: 1.02em; }

.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero__scroll { position: absolute; bottom: 1.5rem; left: var(--page-x); z-index: 3; font-family: var(--font-display); font-size: var(--fs-xs); font-style: italic; color: var(--brown); opacity: 0.65; letter-spacing: 0.05em; }
.hero__scroll::before { content: "↓ "; animation: bob 2.4s ease-in-out infinite; display: inline-block; }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* Kite + Sun animations injected via SVG classes */
.hero__scene .kite { transform-origin: center; transform-box: fill-box; animation: kite-drift 8s ease-in-out infinite; will-change: transform; }
.hero__scene .kite--2 { animation: kite-drift-2 11s ease-in-out infinite; }
.hero__scene .kite--3 { animation: kite-drift-3 9s ease-in-out infinite; }
.hero__scene .sun { transform-origin: center; transform-box: fill-box; animation: sun-pulse 6s ease-in-out infinite; }
.hero__scene .sun-halo { transform-origin: center; transform-box: fill-box; animation: sun-halo 6s ease-in-out infinite; }
.hero__scene .cloud { animation: cloud-drift 22s linear infinite; }
.hero__scene .cloud--2 { animation: cloud-drift 30s linear infinite; animation-delay: -8s; }
.hero__scene .moru-eye { transform-origin: center; transform-box: fill-box; animation: blink 5s infinite; }

@keyframes kite-drift { 0%, 100% { transform: translate(0,0) rotate(0deg); } 25% { transform: translate(-18px, -12px) rotate(-5deg); } 50% { transform: translate(-8px, 10px) rotate(4deg); } 75% { transform: translate(14px, -6px) rotate(-3deg); } }
@keyframes kite-drift-2 { 0%, 100% { transform: translate(0,0) rotate(-12deg); } 33% { transform: translate(12px, -16px) rotate(-8deg); } 66% { transform: translate(-8px, 8px) rotate(-16deg); } }
@keyframes kite-drift-3 { 0%, 100% { transform: translate(0,0) rotate(22deg); } 50% { transform: translate(-14px, 12px) rotate(28deg); } }
@keyframes sun-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes sun-halo { 0%, 100% { opacity: 0.18; transform: scale(1); } 50% { opacity: 0.28; transform: scale(1.08); } }
@keyframes cloud-drift { 0% { transform: translateX(0); } 100% { transform: translateX(60px); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 94%, 98% { transform: scaleY(0.1); } }

/* Moru hero corner sway */
.hero__moru { animation: moru-sway 4.2s ease-in-out infinite; transform-origin: bottom center; transform-box: fill-box; }
@keyframes moru-sway { 0%, 100% { transform: rotate(-0.8deg) translateY(0); } 50% { transform: rotate(0.8deg) translateY(-2px); } }

/* Responsive hero */
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
  .hero__content { padding-left: 0; }
}

/* ==========================================================================
   Stats strip
   ========================================================================== */

.stats { background: var(--cream-3); border-top: 0.5px solid var(--rule); border-bottom: 0.5px solid var(--rule); }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; padding-block: 1.5rem; }
@media (min-width: 720px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }
.stat { display: flex; flex-direction: column; gap: 0.35rem; text-align: left; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: -1rem; top: 10%; bottom: 10%; width: 0.5px; background: var(--rule); display: none; }
@media (min-width: 720px) { .stat + .stat::before { display: block; } }
.stat__num { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 500; color: var(--teal); line-height: 1; letter-spacing: -0.015em; }
.stat__label { font-family: var(--font-display); font-size: 0.625rem; color: var(--brown); letter-spacing: 0.22em; text-transform: uppercase; }

/* ==========================================================================
   Principal note (handwritten letter)
   ========================================================================== */

.principal-note { padding-block: var(--section-y); }
.principal-note__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .principal-note__grid { grid-template-columns: minmax(220px, 1fr) 2fr; gap: 3rem; } }

.principal-note__frame { position: relative; aspect-ratio: 3 / 4; max-width: 340px; margin: 0 auto; background: var(--cream-3); border: 8px solid var(--cream); box-shadow: var(--shadow-lift), 0 0 0 1px var(--rule); transform: rotate(-1.5deg); padding: 12px; }
.principal-note__frame::after { content: ""; position: absolute; top: -14px; left: 50%; transform: translateX(-50%) rotate(-4deg); width: 80px; height: 22px; background: rgba(234, 88, 12, 0.7); border-radius: 1px; box-shadow: 0 1px 2px rgba(0,0,0,0.12); }
.principal-note__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.principal-note__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-style: italic; color: var(--brown); font-size: var(--fs-sm); background: linear-gradient(135deg, rgba(14, 124, 123, 0.08), rgba(234, 88, 12, 0.08)); }

.principal-note__letter { font-family: var(--font-display); font-size: var(--fs-md); line-height: 1.7; color: var(--brown-ink); font-style: italic; font-variation-settings: "SOFT" 30, "opsz" 144; }
.principal-note__letter p { margin-bottom: 1em; }
.principal-note__letter .opener { color: var(--terracotta); font-size: var(--fs-lg); margin-bottom: 0.2em; font-style: normal; }
.principal-note__signature { margin-top: 1.25rem; font-family: "Brush Script MT", "Lucida Handwriting", var(--font-display); font-style: italic; font-size: var(--fs-lg); color: var(--teal); line-height: 1.1; }
.principal-note__signature small { display: block; font-family: var(--font-display); font-style: normal; font-size: var(--fs-xs); color: var(--brown); letter-spacing: 0.15em; text-transform: uppercase; margin-top: 0.25rem; }

/* ==========================================================================
   Campus explorer (the game part)
   ========================================================================== */

.campus { position: relative; }
.campus__frame { position: relative; margin-top: 2rem; background: var(--cream); border: 1px solid var(--rule-strong); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.campus__scene { position: relative; display: block; width: 100%; height: auto; max-height: 520px; }
.campus__scene svg { display: block; width: 100%; height: 100%; }

.campus__hotspot { cursor: pointer; outline: none; transition: transform var(--t-med) var(--ease-out); }
.campus__hotspot:hover, .campus__hotspot:focus-visible { transform: translateY(-3px); }
.campus__hotspot-pin { transform-origin: center; transform-box: fill-box; }
.campus__hotspot:hover .campus__hotspot-pin,
.campus__hotspot:focus-visible .campus__hotspot-pin { animation: pin-pop 0.5s var(--ease-out); }
.campus__hotspot-pin-halo { animation: pin-pulse 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }

@keyframes pin-pulse { 0%, 100% { opacity: 0.25; transform: scale(1); } 50% { opacity: 0.05; transform: scale(1.4); } }
@keyframes pin-pop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }

.campus__legend { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; padding: 0.9rem 1.25rem; background: rgba(14, 124, 123, 0.06); border-top: 0.5px dashed var(--rule-strong); font-family: var(--font-display); font-size: var(--fs-xs); color: var(--brown-ink); }
.campus__legend-item { display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.campus__legend-num { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--saffron); color: var(--cream); font-size: 10px; font-weight: 500; }
.campus__legend-item:hover .campus__legend-num { background: var(--terracotta); }

/* Campus modal (storybook page overlay) */
.campus-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 1rem; background: rgba(28, 25, 23, 0.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.campus-modal[data-open="true"] { display: flex; animation: modal-fade 260ms var(--ease-out); }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }

.campus-modal__page { position: relative; background: var(--cream); max-width: 620px; width: 100%; max-height: 90vh; overflow: auto; border-radius: var(--radius-lg); padding: 2rem clamp(1.25rem, 4vw, 2.5rem); box-shadow: var(--shadow-lift); animation: page-turn 380ms var(--ease-out); }
@keyframes page-turn { from { transform: rotateY(20deg) translateX(20px); opacity: 0; } to { transform: rotateY(0) translateX(0); opacity: 1; } }

.campus-modal__page::before { content: ""; position: absolute; top: 0; right: 0; width: 44px; height: 44px; background: linear-gradient(225deg, var(--cream-3) 0%, var(--cream-3) 50%, transparent 50.5%); border-bottom-left-radius: 4px; box-shadow: inset -1px 1px 2px rgba(0,0,0,0.06); }

.campus-modal__chapter { font-family: var(--font-display); font-size: var(--fs-xs); font-style: italic; letter-spacing: 0.22em; text-transform: uppercase; color: var(--terracotta); margin: 0 0 0.4em; }
.campus-modal__title { font-family: var(--font-display); font-size: var(--fs-xl); color: var(--teal-ink); margin: 0 0 0.5em; line-height: 1.1; font-variation-settings: "SOFT" 40, "opsz" 144; }
.campus-modal__sub { font-family: var(--font-display); font-size: var(--fs-md); font-style: italic; color: var(--brown); margin: 0 0 1.5em; line-height: 1.5; }
.campus-modal__body { color: var(--brown-ink); }
.campus-modal__body ul { list-style: none; padding: 0; margin: 0.5em 0 1.5em; display: grid; gap: 0.5em; }
.campus-modal__body li { padding-left: 1.75em; position: relative; font-size: var(--fs-sm); }
.campus-modal__body li::before { content: "✦"; position: absolute; left: 0.3em; color: var(--saffron); }

.campus-modal__close { position: absolute; top: 1rem; left: 1rem; background: transparent; border: 0; width: 36px; height: 36px; border-radius: 50%; color: var(--brown); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1; transition: background var(--t-fast) var(--ease-out); }
.campus-modal__close:hover { background: var(--cream-3); color: var(--terracotta); }

.campus-modal__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; padding-top: 1rem; border-top: 0.5px dashed var(--rule); margin-top: 1rem; }

/* ==========================================================================
   Chapters (class stages)
   ========================================================================== */

.chapters { background: var(--cream-3); }
.chapters__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-top: 2rem; }
@media (min-width: 960px) { .chapters__grid { grid-template-columns: repeat(5, 1fr); } }

.chapter-card { background: var(--cream); border: 0.5px solid var(--rule-strong); border-radius: var(--radius-lg); padding: 1.5rem 1.25rem; text-align: center; text-decoration: none; color: inherit; position: relative; overflow: hidden; transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out), border-color var(--t-med) var(--ease-out); display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.chapter-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--saffron); }
.chapter-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at top right, rgba(234, 88, 12, 0.08), transparent 60%); opacity: 0; transition: opacity var(--t-med); }
.chapter-card:hover::before { opacity: 1; }

.chapter-card__num { font-family: var(--font-display); font-size: var(--fs-xs); font-style: italic; letter-spacing: 0.22em; text-transform: uppercase; color: var(--terracotta); }
.chapter-card__icon { width: 48px; height: 48px; }
.chapter-card__name { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 500; color: var(--teal-ink); line-height: 1.15; margin: 0; }
.chapter-card__range { font-family: var(--font-display); font-size: var(--fs-xs); font-style: italic; color: var(--brown); }
.chapter-card__arrow { margin-top: 0.5rem; font-family: var(--font-display); font-size: var(--fs-sm); color: var(--saffron); opacity: 0; transform: translateY(-4px); transition: opacity var(--t-med), transform var(--t-med); }
.chapter-card:hover .chapter-card__arrow { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Bulletin board
   ========================================================================== */

.bulletin { background: var(--cream); position: relative; }
.bulletin__board { background-image: repeating-linear-gradient(45deg, rgba(107, 68, 35, 0.03) 0 2px, transparent 2px 8px); padding: 2rem 1rem; border-radius: var(--radius-lg); margin-top: 2rem; }
.bulletin__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem 1.25rem; }

.notice { background: var(--cream-3); padding: 1.25rem 1.25rem 1rem; border-left: 4px solid var(--saffron); border-radius: 3px; box-shadow: var(--shadow-soft); position: relative; transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out); text-decoration: none; color: inherit; display: block; }
.notice::before { content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; background: radial-gradient(circle, var(--terracotta) 30%, transparent 32%); border-radius: 50%; transform: translateX(-50%); filter: drop-shadow(0 2px 1px rgba(0,0,0,0.2)); }
.notice:nth-child(1) { transform: rotate(-1.2deg); }
.notice:nth-child(2) { transform: rotate(0.8deg); border-left-color: var(--teal); }
.notice:nth-child(2)::before { background: radial-gradient(circle, var(--teal) 30%, transparent 32%); }
.notice:nth-child(3) { transform: rotate(-0.5deg); border-left-color: var(--gold-deep); }
.notice:nth-child(3)::before { background: radial-gradient(circle, var(--gold-deep) 30%, transparent 32%); }
.notice:nth-child(4) { transform: rotate(1.5deg); border-left-color: var(--royal-blue); }
.notice:nth-child(4)::before { background: radial-gradient(circle, var(--royal-blue) 30%, transparent 32%); }
.notice:hover { transform: rotate(0) translateY(-4px); box-shadow: var(--shadow-lift); z-index: 2; }

.notice__date { font-family: var(--font-display); font-size: var(--fs-xs); color: var(--terracotta); letter-spacing: 0.16em; text-transform: uppercase; }
.notice__title { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 500; color: var(--teal-ink); margin: 0.4em 0 0.5em; line-height: 1.3; }
.notice__excerpt { font-family: var(--font-display); font-size: var(--fs-sm); font-style: italic; color: var(--brown); margin: 0; line-height: 1.5; }

.bulletin__more { text-align: center; margin-top: 2rem; }

/* ==========================================================================
   Admission CTA
   ========================================================================== */

.admission-cta { background: var(--teal); color: var(--cream); position: relative; overflow: hidden; }
.admission-cta::before { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><g fill='none' stroke='%23F5E6C8' stroke-width='0.5' opacity='0.15'><circle cx='50' cy='50' r='20'/><circle cx='50' cy='50' r='34'/><circle cx='50' cy='50' r='48'/><path d='M2 50 h96 M50 2 v96 M16 16 L84 84 M84 16 L16 84'/></g></svg>"); background-size: 200px; background-position: right -20px center; background-repeat: no-repeat; opacity: 0.6; }
.admission-cta__inner { position: relative; text-align: center; padding-block: clamp(3rem, 6vw, 5rem); }
.admission-cta h2 { font-size: clamp(var(--fs-xl), 4vw, var(--fs-2xl)); color: var(--cream); margin: 0 0 0.5em; font-variation-settings: "SOFT" 50, "opsz" 144, "WONK" 1; }
.admission-cta h2 em { color: var(--saffron-soft); font-style: italic; }
.admission-cta p { font-size: var(--fs-md); color: rgba(253, 246, 227, 0.85); font-style: italic; max-width: 42ch; margin: 0 auto 2rem; }
.admission-cta .btn--primary { background: var(--saffron); border-color: var(--saffron); }
.admission-cta .btn--primary:hover { background: var(--cream); color: var(--terracotta); border-color: var(--cream); }
.admission-cta .btn--secondary { color: var(--cream); border-color: rgba(253, 246, 227, 0.4); }
.admission-cta .btn--secondary:hover { background: var(--cream); color: var(--teal); }

.admission-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; max-width: 840px; margin: 2.5rem auto 2rem; }
.admission-step { text-align: center; color: var(--cream); }
.admission-step__num { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 500; font-style: italic; color: var(--saffron-soft); line-height: 1; margin-bottom: 0.3em; font-variation-settings: "SOFT" 60, "opsz" 144, "WONK" 1; }
.admission-step__label { font-family: var(--font-display); font-size: var(--fs-sm); font-style: italic; line-height: 1.3; }

/* ==========================================================================
   Site footer
   ========================================================================== */

.site-footer { background: var(--brown-ink); color: var(--cream-3); padding-block: 3rem 2rem; }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; } }

.site-footer__brand { display: flex; gap: 0.75rem; align-items: flex-start; }
.site-footer__mark { width: 44px; height: 44px; border-radius: 8px; background: var(--teal); color: var(--cream); display: flex; align-items: center; justify-content: center; font-family: var(--font-hindi); font-size: 18px; flex-shrink: 0; }
.site-footer__name { font-family: var(--font-display); font-size: var(--fs-md); color: var(--cream); line-height: 1.2; margin: 0 0 0.2em; }
.site-footer__tag { font-family: var(--font-display); font-size: var(--fs-xs); font-style: italic; color: var(--gold); letter-spacing: 0.1em; }
.site-footer__addr { margin-top: 1rem; font-size: var(--fs-sm); line-height: 1.6; color: rgba(253, 246, 227, 0.75); max-width: 28em; }

.site-footer h4 { font-family: var(--font-display); font-size: var(--fs-xs); color: var(--gold); letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; margin: 0 0 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.site-footer a { color: var(--cream-3); text-decoration: none; font-size: var(--fs-sm); transition: color var(--t-fast) var(--ease-out); }
.site-footer a:hover { color: var(--saffron-soft); }

.site-footer__bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 0.5px solid rgba(253, 246, 227, 0.15); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: var(--fs-xs); color: rgba(253, 246, 227, 0.55); }
.site-footer__bottom em { font-family: var(--font-display); font-style: italic; color: var(--gold); font-size: var(--fs-sm); }

/* ==========================================================================
   Inner page fallback (Stage 2 will expand these)
   ========================================================================== */

.page-hero { background: var(--cream-3); padding-block: clamp(3rem, 6vw, 5rem); border-bottom: 0.5px solid var(--rule); text-align: center; }
.page-hero .eyebrow { color: var(--terracotta); }
.page-hero h1 { font-size: clamp(var(--fs-xl), 5vw, var(--fs-2xl)); margin: 0 0 0.5em; font-variation-settings: "SOFT" 40, "opsz" 144, "WONK" 1; }
.page-hero p { font-family: var(--font-display); font-style: italic; color: var(--brown); max-width: 54ch; margin: 0 auto; font-size: var(--fs-md); }

.page-content { padding-block: var(--section-y); }
.page-content__prose { max-width: 68ch; margin: 0 auto; font-size: var(--fs-md); line-height: 1.8; color: var(--brown-ink); }
.page-content__prose h2 { font-size: var(--fs-xl); margin-top: 2em; margin-bottom: 0.5em; }
.page-content__prose h3 { font-size: var(--fs-lg); color: var(--teal); margin-top: 1.5em; }
.page-content__prose a { text-decoration-thickness: 1.5px; }
.page-content__prose blockquote { border-left: 3px solid var(--saffron); padding-left: 1.5em; font-style: italic; color: var(--brown); margin: 1.5em 0; }

/* Moru floating companion */
.moru-float { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; width: 64px; height: 64px; pointer-events: none; opacity: 0; transition: opacity var(--t-med) var(--ease-out); }
.moru-float[data-visible="true"] { opacity: 0.92; }
@media (max-width: 640px) { .moru-float { display: none; } }

/* ==========================================================================
   Utilities
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(12px); transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: 90ms; }
.reveal:nth-child(3) { transition-delay: 180ms; }
.reveal:nth-child(4) { transition-delay: 270ms; }
.reveal:nth-child(5) { transition-delay: 360ms; }
