/* NMSK — "Banner & Register"
   Haldi banner yellow, neel (indigo) ink, chalk paper, sindoor marks.
   Display: Anek (Ek Type) · Body: Mukta (Ek Type). Both cover Latin + Devanagari. */

@font-face { font-family: "Anek"; font-weight: 100 800; font-stretch: 75% 125%; font-display: swap;
  src: url("/fonts/anek-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Anek"; font-weight: 100 800; font-stretch: 75% 125%; font-display: swap;
  src: url("/fonts/anek-devanagari-700.woff2") format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Mukta"; font-weight: 400; font-display: swap; src: url("/fonts/mukta-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Mukta"; font-weight: 600; font-display: swap; src: url("/fonts/mukta-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Mukta"; font-weight: 400; font-display: swap; src: url("/fonts/mukta-devanagari-400-normal.woff2") format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Mukta"; font-weight: 600; font-display: swap; src: url("/fonts/mukta-devanagari-600-normal.woff2") format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }

/* ---------- Colours: change the site's palette here ----------
   --haldi    yellow: hero banner, page headers, buttons on dark sections, highlights
   --neel     indigo: all text, dark sections, footer, primary buttons
   --chalk    off-white: page background, text on dark sections
   --sindoor  red: small accents (International flag, focus outline, link hover)
   --slate    grey: secondary text (dates, captions, descriptions)
   --night    photo viewer background
   Lines, tints and translucent shades below are mixed from these automatically.
   Keep text readable: --neel on --chalk and --neel on --haldi need strong contrast. */
:root {
  --haldi: #B8E1FF;
  --neel: #1F2B5C;
  --chalk: #FBFBF8;
  --sindoor: #B3122E;
  --slate: #545B72;
  --night: #0E132A;   /* photo viewer background */

  --rule: color-mix(in srgb, var(--neel) 16%, transparent);
  --tint: color-mix(in srgb, var(--neel) 4.5%, transparent);

  --display: "Anek", "Arial Narrow", system-ui, sans-serif;
  --body: "Mukta", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --space: clamp(64px, 9vw, 128px);
  --ease: cubic-bezier(.2, .7, .1, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--chalk);
  color: var(--neel);
  font: 400 1.0625rem/1.6 var(--body);
  text-rendering: optimizeLegibility;
}
:lang(hi) body, body:lang(hi) { font-size: 1.125rem; line-height: 1.75; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--sindoor); }
:focus-visible { outline: 3px solid var(--sindoor); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--haldi); color: var(--neel); }

h1, h2, h3, h4 { font-family: var(--display); margin: 0; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 5.75rem); font-weight: 750; font-stretch: 112%; letter-spacing: -.01em; line-height: .94; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); font-weight: 700; font-stretch: 108%; }
h3 { font-size: 1.3rem; font-weight: 650; font-stretch: 104%; line-height: 1.15; }
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 64ch; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--neel); }
.muted { color: var(--slate); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--neel); color: var(--chalk); padding: 10px 16px; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em; min-height: 48px; padding: .7em 1.35em;
  font: 600 1rem/1 var(--body); text-decoration: none; border: 2px solid var(--neel); border-radius: 999px;
  background: var(--neel); color: var(--chalk); cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--chalk); color: var(--neel); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--neel); }
.btn--ghost:hover { background: var(--neel); color: var(--chalk); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Masthead ---------- */
.masthead { position: sticky; top: 0; z-index: 40; background: var(--chalk); border-bottom: 1px solid var(--rule); }
.masthead__bar { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand svg { width: 44px; height: 44px; flex: none; }
.brand__name { display: grid; line-height: 1; }
.brand__short { font: 750 1.55rem/1 var(--display); font-stretch: 118%; letter-spacing: .02em; }
.brand__long { font-size: .78rem; color: var(--slate); margin-top: 4px; }
.nav { display: flex; gap: 4px; }
.nav a { display: block; padding: 10px 12px; text-decoration: none; font-weight: 600; border-radius: 6px; }
.nav a:hover { background: var(--tint); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--haldi); border-radius: 0; }
.lang { font-weight: 600; text-decoration: none; padding: 8px 14px; border: 1.5px solid var(--rule); border-radius: 999px; white-space: nowrap; }
.lang:hover { border-color: var(--neel); }
.menu-btn { display: none; }

@media (max-width: 960px) {
  .nav, .masthead .lang { display: none; }
  .masthead__bar { min-height: 64px; }
  .brand__long { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
    font: 600 1rem var(--body); color: var(--neel); background: none; border: 1.5px solid var(--rule); border-radius: 999px; cursor: pointer;
  }
}

/* Mobile menu: full sheet, big targets, language at the bottom */
.sheet { border: 0; padding: 0; margin: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; background: var(--haldi); color: var(--neel); }
.sheet::backdrop { background: color-mix(in srgb, var(--neel) 40%, transparent); }
.sheet[open] { display: flex; flex-direction: column; animation: sheet-in .32s var(--ease); }
@keyframes sheet-in { from { transform: translateY(-16px); opacity: 0; } }
.sheet__top { display: flex; justify-content: space-between; align-items: center; padding: 12px var(--gutter); min-height: 64px; }
.sheet nav { display: grid; padding: 8px var(--gutter); }
.sheet nav a { font: 700 2rem/1.15 var(--display); font-stretch: 112%; text-decoration: none; padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--neel) 20%, transparent); }
.sheet__foot { margin-top: auto; padding: 20px var(--gutter) 32px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Hero: the banner ---------- */
.banner { background: var(--haldi); position: relative; overflow: hidden; }
.banner::before, .banner::after {
  /* Eyelets of a flex banner, top corners */
  content: ""; position: absolute; top: 18px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--chalk); box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--neel) 35%, transparent);
}
.banner::before { left: 18px; }
.banner::after { right: 18px; }
.banner__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: end; padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 80px); }
.banner h1 { font-stretch: 112%; }
.banner__hi { display: block; font: 700 clamp(1.6rem, 3.4vw, 2.9rem)/1.25 var(--display); margin-top: .35em; }
.banner__lede { max-width: 44ch; margin-top: 28px; font-size: clamp(1.1rem, 1.5vw, 1.25rem); }
.banner__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.banner__actions .btn--ghost:hover { background: var(--neel); }
.banner figure { margin: 0; }
.banner figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 6px solid var(--chalk); box-shadow: 0 1px 0 color-mix(in srgb, var(--neel) 20%, transparent); }
.banner figcaption { font-size: .92rem; margin-top: 10px; }
.banner figcaption a { font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
  .js .banner h1 { animation: unfurl 1.1s var(--ease) .1s both; }
  .js .banner figure { animation: hang .9s var(--ease) .35s both; }
}
@keyframes unfurl { from { font-stretch: 75%; letter-spacing: .02em; opacity: .001; } 40% { opacity: 1; } }
@keyframes hang { from { transform: translateY(-14px) rotate(-1.2deg); opacity: 0; } }

@media (max-width: 760px) {
  .banner__grid { grid-template-columns: 1fr; padding-top: 48px; }
  .banner figure { order: -1; margin-inline: calc(var(--gutter) * -1); }
  .banner figure img { border: 0; aspect-ratio: 3 / 2; }
  .banner figcaption { padding-inline: var(--gutter); }
  .banner h1 { font-size: clamp(2.4rem, 11.5vw, 3.4rem); }
  .banner::before, .banner::after { display: none; }
}

/* ---------- Ledger line (facts) ---------- */
.ledger { border-bottom: 1px solid var(--rule); }
.ledger dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.ledger dl > div { padding: 22px 20px 20px 0; border-right: 1px solid var(--rule); }
.ledger dl > div + div { padding-left: 20px; }
.ledger dl > div:last-child { border-right: 0; }
.ledger dt { font-size: .92rem; color: var(--slate); order: 2; }
.ledger dd { margin: 0; font: 700 clamp(1.5rem, 2.6vw, 2.1rem)/1.1 var(--display); font-stretch: 110%; }
@media (max-width: 760px) {
  .ledger dl { grid-template-columns: 1fr 1fr; }
  .ledger dl > div { border-right: 0; padding: 16px 0 !important; border-bottom: 1px solid var(--rule); }
  .ledger dl > div:nth-child(odd) { padding-right: 12px !important; }
  .ledger dl > div:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--space); }
.section--tight { padding-block: calc(var(--space) * .6); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.section__head p { margin: 10px 0 0; max-width: 56ch; color: var(--slate); }
.section__head a { font-weight: 600; }
.ink { background: var(--neel); color: var(--chalk); }
.ink .muted, .ink .section__head p { color: color-mix(in srgb, var(--chalk) 72%, transparent); }
.ink :focus-visible { outline-color: var(--haldi); }
.ink .btn { background: var(--haldi); border-color: var(--haldi); color: var(--neel); }
.ink .btn:hover { background: transparent; color: var(--haldi); }

/* ---------- Register: list of programs ---------- */
.register { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--neel); }
.register li { border-bottom: 1px solid var(--rule); }
.entry { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) 11rem 168px; gap: 24px; align-items: center; padding: 18px 0; text-decoration: none; position: relative; }
.entry__date { font: 600 1rem/1.3 var(--display); font-stretch: 104%; font-variant-numeric: tabular-nums; }
.entry__title { font: 650 1.3rem/1.2 var(--display); font-stretch: 104%; }
.entry__place { display: block; color: var(--slate); font-size: .95rem; margin-top: 4px; }
.entry__kind { font-size: .92rem; color: var(--slate); }
.entry__kind b { display: block; color: var(--neel); font-weight: 600; }
.entry img { width: 168px; aspect-ratio: 4 / 3; object-fit: cover; }
.entry::after { content: ""; position: absolute; inset: 0 -12px; background: var(--tint); opacity: 0; transition: opacity .2s; pointer-events: none; }
.entry:hover::after { opacity: 1; }
.entry:hover .entry__title { text-decoration: underline; text-decoration-color: var(--sindoor); text-decoration-thickness: 2px; text-underline-offset: .18em; }
.flag { display: inline-block; font: 600 .78rem/1 var(--body); padding: 4px 8px; border-radius: 4px; background: var(--sindoor); color: var(--chalk); margin-left: 6px; vertical-align: .2em; }
@media (max-width: 860px) {
  .entry { grid-template-columns: 112px minmax(0, 1fr); grid-template-areas: "img date" "img title" "img kind"; gap: 2px 16px; align-items: start; }
  .entry img { grid-area: img; width: 112px; }
  .entry__date { grid-area: date; font-size: .9rem; color: var(--slate); }
  .entry__title { grid-area: title; font-size: 1.12rem; }
  .entry__kind { grid-area: kind; font-size: .85rem; }
  .entry__kind b { display: inline; }
  .entry__kind b::after { content: ", "; }
  .entry__place { font-size: .88rem; }
}

/* ---------- International feature ---------- */
.intl { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.intl__lead img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.intl__lead h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 20px 0 8px; }
.intl__lead a { text-decoration: none; }
.intl__lead a:hover h3 { text-decoration: underline; text-decoration-color: var(--haldi); }
.intl__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid color-mix(in srgb, var(--chalk) 25%, transparent); }
.intl__list li { border-bottom: 1px solid color-mix(in srgb, var(--chalk) 25%, transparent); }
.intl__list a { display: block; padding: 20px 0; text-decoration: none; }
.intl__list a:hover strong { text-decoration: underline; text-decoration-color: var(--haldi); }
.intl__list strong { display: block; font: 650 1.25rem/1.2 var(--display); font-stretch: 104%; }
.intl__list span { color: color-mix(in srgb, var(--chalk) 72%, transparent); font-size: .95rem; }
@media (max-width: 860px) { .intl { grid-template-columns: 1fr; } .intl__lead { margin-inline: calc(var(--gutter) * -1); } .intl__lead > :not(a), .intl__lead a > :not(img) { padding-inline: var(--gutter); } }

/* ---------- Trainings ---------- */
.courses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); }
.course { border-top: 2px solid var(--neel); padding: 18px 0 32px; display: flex; flex-direction: column; }
.course h3 a { text-decoration: none; }
.course h3 a:hover { text-decoration: underline; text-decoration-color: var(--sindoor); }
.course p { color: var(--slate); margin: 10px 0 16px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: auto 0 0; font-size: .95rem; }
.facts dt { color: var(--slate); }
.facts dd { margin: 0; font-weight: 600; }
.cat-title { font: 700 1rem/1 var(--body); color: var(--sindoor); margin: 0 0 14px; }
.cat-block + .cat-block { margin-top: clamp(40px, 6vw, 72px); }
@media (max-width: 960px) { .courses { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .courses { grid-template-columns: 1fr; }
  .course { padding-bottom: 24px; }
}

/* ---------- Departments ---------- */
.depts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 32px; }
.depts li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.depts b { display: block; font: 700 1.35rem/1.1 var(--display); font-stretch: 112%; }
.depts span { font-size: .92rem; color: var(--slate); }

/* ---------- Page header (inner pages) ---------- */
.pagehead { background: var(--haldi); padding-block: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 56px); }
.pagehead h1 { font-size: clamp(2.25rem, 5.5vw, 4.5rem); max-width: 18ch; }
.pagehead p { max-width: 60ch; margin: 18px 0 0; font-size: 1.15rem; }
.crumbs { font-size: .95rem; margin-bottom: 18px; }
.crumbs a { font-weight: 600; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; padding-block: 20px; border-bottom: 1px solid var(--rule); margin-bottom: 8px; }
.chips { display: flex; gap: 8px; min-width: 0; flex: 1 1 auto; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border: 1.5px solid var(--rule); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.chip:hover { border-color: var(--neel); }
.chip[aria-current="true"] { background: var(--neel); border-color: var(--neel); color: var(--chalk); }
.selects { display: flex; gap: 12px; margin-left: auto; }
.select { min-height: 40px; padding: 0 36px 0 14px; font: 600 .95rem var(--body); color: var(--neel); background: var(--chalk) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231F2B5C' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center; border: 1.5px solid var(--rule); border-radius: 999px; appearance: none; }
@media (max-width: 760px) {
  .filters { flex-direction: column; align-items: stretch; }
  .chips { width: calc(100% + var(--gutter) * 2); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .selects { width: 100%; margin-left: 0; }
  .selects .select { flex: 1; min-width: 0; }
}

/* ---------- Program detail ---------- */
.dossier { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 6vw, 88px); align-items: start; }
.record { margin: 0; border-top: 2px solid var(--neel); }
.record div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.record dt { color: var(--slate); font-size: .95rem; }
.record dd { margin: 0; font-weight: 600; }
.prose { max-width: 66ch; }
.prose h2 { font-size: 1.6rem; margin: 1.6em 0 .5em; }
.prose h3 { margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose a { color: var(--sindoor); }
@media (max-width: 960px) { .dossier { grid-template-columns: 1fr; } .dossier aside { order: -1; } }

/* ---------- Photo grid + lightbox ---------- */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.photos button { all: unset; cursor: zoom-in; display: block; position: relative; overflow: hidden; background: var(--tint); }
.photos button:focus-visible { outline: 3px solid var(--sindoor); outline-offset: 3px; }
.photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.photos button:hover img { transform: scale(1.03); }
.photos--lead button:first-child { grid-column: span 2; grid-row: span 2; }
@media (max-width: 600px) {
  .photos { grid-template-columns: 1fr 1fr; gap: 6px; margin-inline: calc(var(--gutter) * -1); }
  .photos--lead button:first-child { grid-column: 1 / -1; grid-row: auto; }
}

.lightbox { border: 0; padding: 0; margin: 0; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; overflow: hidden; background: var(--night); color: var(--chalk); }
html:has(dialog[open]) { overflow: hidden; }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox::backdrop { background: transparent; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 12px var(--gutter); font-size: .95rem; }
.lightbox__stage { position: relative; min-height: 0; touch-action: pan-y; }
/* The photo is pinned to the stage box and scaled to fit it whole, whatever the screen size. */
.lightbox__stage img { position: absolute; inset: 0 clamp(8px, 6vw, 88px); width: calc(100% - 2 * clamp(8px, 6vw, 88px)); height: 100%; max-width: none; object-fit: contain; view-transition-name: lightbox-photo; }
.lightbox__foot { padding: 14px var(--gutter) 22px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.lightbox__foot p { margin: 0; max-width: 60ch; }
.icon-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--chalk) 35%, transparent); background: transparent; color: inherit; cursor: pointer; }
.icon-btn:hover { border-color: var(--haldi); color: var(--haldi); }
.icon-btn svg { width: 20px; height: 20px; }
.lightbox :focus-visible { outline-color: var(--haldi); }

/* ---------- Gallery page ---------- */
.album + .album { margin-top: clamp(48px, 7vw, 88px); }
.album__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; border-top: 2px solid var(--neel); padding-top: 14px; margin-bottom: 18px; }
.album__head h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.album__head h2 a { text-decoration: none; }
.album__head h2 a:hover { text-decoration: underline; text-decoration-color: var(--sindoor); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field small { color: var(--slate); font-weight: 400; }
.input { width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--neel); background: #fff; border: 1.5px solid color-mix(in srgb, var(--neel) 30%, transparent); border-radius: 8px; }
.input:focus { outline: 3px solid var(--haldi); outline-offset: 0; border-color: var(--neel); }
textarea.input { min-height: 132px; resize: vertical; }
.error { color: var(--sindoor); font-size: .92rem; margin-top: 6px; }
.notice { padding: 16px 18px; border-left: 4px solid var(--neel); background: color-mix(in srgb, var(--haldi) 25%, transparent); font-weight: 600; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); }
.contact-lines { list-style: none; padding: 0; margin: 0 0 32px; }
.contact-lines li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.contact-lines span { display: block; font-size: .92rem; color: var(--slate); }
.contact-lines a, .contact-lines strong { font: 650 1.2rem/1.3 var(--display); font-stretch: 104%; text-decoration: none; }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; filter: grayscale(.4); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.callout { display: flex; justify-content: space-between; align-items: center; gap: 24px 48px; flex-wrap: wrap; }
.callout h2 { max-width: 20ch; }
.callout__phone { font: 700 clamp(1.6rem, 3vw, 2.4rem)/1 var(--display); font-stretch: 112%; text-decoration: none; display: block; margin-bottom: 14px; }

/* ---------- Pagination ---------- */
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--rule); text-decoration: none; font-weight: 600; }
.pager [aria-current] { background: var(--neel); color: var(--chalk); border-color: var(--neel); }
.pager .is-disabled { opacity: .4; }

/* ---------- Footer ---------- */
.footer { background: var(--neel); color: var(--chalk); padding-block: 64px 32px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer h2 { font-size: 1.05rem; font-stretch: 100%; margin-bottom: 12px; color: var(--haldi); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; text-decoration-color: var(--haldi); }
.footer .muted { color: color-mix(in srgb, var(--chalk) 70%, transparent); }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--chalk) 20%, transparent); font-size: .9rem; color: color-mix(in srgb, var(--chalk) 70%, transparent); }
.footer :focus-visible { outline-color: var(--haldi); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr; gap: 28px; } .footer { padding-bottom: 104px; } }

/* ---------- Mobile action bar ---------- */
.actionbar { display: none; }
@media (max-width: 760px) {
  .actionbar {
    display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; inset: auto 0 0; z-index: 30;
    background: var(--chalk); border-top: 1px solid var(--rule); padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 18px color-mix(in srgb, var(--neel) 8%, transparent);
  }
  .actionbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 4px; font-size: .82rem; font-weight: 600; text-decoration: none; border-radius: 10px; }
  .actionbar a:active { background: var(--tint); }
  .actionbar svg { width: 22px; height: 22px; }
  .actionbar a:last-child { background: var(--haldi); }
  body { padding-bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print { .masthead, .actionbar, .footer, .banner__actions { display: none; } }
.ledger dl > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }

/* =====================================================================
   Live layer: custom cursor, reveals, parallax, ticker.
   Everything below is opt-in via classes set by site.js:
   .has-cursor (fine pointer only) and .motion (no reduced-motion preference).
   ===================================================================== */

/* ---------- Cursor ----------
   Native custom cursors (drawn by the browser, so no lag or flicker):
   indigo arrow with a white edge by default, haldi arrow over anything clickable.
   site.js adds a small label pill beside the arrow over photos and program rows. */
html.has-cursor { cursor: url("/assets/cursor/arrow.svg") 5 3, auto; }
html.has-cursor :is(a, button, summary, select, label, [role="button"], .chip, .select) { cursor: url("/assets/cursor/pointer.svg") 5 3, pointer; }
html.has-cursor :is(input, textarea) { cursor: text; }
html.has-cursor .ticker.is-live { cursor: grab; }
html.has-cursor .ticker.is-dragging { cursor: grabbing; }

.cursor-tag {
  position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none;
  padding: 7px 12px; border-radius: 999px;
  font: 600 .82rem/1 var(--body); white-space: nowrap;
  background: var(--neel); color: var(--chalk);
  box-shadow: 0 0 0 2px var(--chalk), 0 6px 18px color-mix(in srgb, var(--neel) 25%, transparent);
  opacity: 0; scale: .8; transform-origin: 0 0;
  transition: opacity .18s ease, scale .25s var(--ease);
}
.cursor-tag.is-on { opacity: 1; scale: 1; }
.cursor-tag.is-light { background: var(--haldi); color: var(--neel); box-shadow: 0 0 0 2px var(--neel), 0 6px 18px rgb(0 0 0 / .3); }

/* ---------- Load: inner page titles unfurl like the hero ---------- */
.motion .pagehead h1 { animation: unfurl 1s var(--ease) .05s both; }
.motion .pagehead p, .motion .pagehead .crumbs { animation: settle .8s var(--ease) .3s both; }
@keyframes settle { from { opacity: 0; translate: 0 10px; } }

/* ---------- Reveals (set up by site.js) ---------- */
.motion [data-reveal="rise"] { clip-path: inset(-20% -5% 100% -5%); translate: 0 .4em; transition: clip-path 1s var(--ease), translate 1s var(--ease); }
.motion [data-reveal="rise"].is-in { clip-path: inset(-20% -5% -25% -5%); translate: 0 0; }

.motion [data-reveal="wipe"] { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease) calc(var(--i, 0) * 70ms); }
.motion [data-reveal="wipe"].is-in { clip-path: inset(0); }

.motion .register > li { position: relative; border-bottom-color: transparent; }
.motion .register > li::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--rule);
  transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) calc(var(--i, 0) * 90ms);
}
.motion .register > li .entry { opacity: 0; translate: -10px 0; transition: opacity .7s var(--ease) calc(var(--i, 0) * 90ms + 120ms), translate .7s var(--ease) calc(var(--i, 0) * 90ms + 120ms); }
.motion .register > li.is-in::after { transform: scaleX(1); }
.motion .register > li.is-in .entry { opacity: 1; translate: 0 0; }

.motion .course { border-top-color: transparent; background: linear-gradient(var(--neel), var(--neel)) top left / 0% 2px no-repeat; transition: background-size 1s var(--ease) calc(var(--i, 0) * 80ms); }
.motion .course.is-in { background-size: 100% 2px; }
.motion .ink .course { background-image: linear-gradient(var(--haldi), var(--haldi)); }

/* ---------- Parallax: images drift inside their frames ---------- */
.frame { display: block; overflow: hidden; }
.motion [data-parallax], .motion .photos img { scale: 1.12; translate: 0 var(--py, 0px); transition: transform .6s var(--ease); }
.motion .photos button:hover img { transform: scale(1.04); }

/* ---------- Hero photo follows the pointer ---------- */
.banner figure img { transition: transform .5s var(--ease); transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.banner.is-tilting figure img { transition-duration: .12s; }

/* ---------- Magnetic controls ---------- */
.motion .is-magnetic { transition: translate .4s var(--ease), background-color .2s var(--ease), color .2s var(--ease); }

/* ---------- Department ticker ---------- */
.ticker-section { background: var(--tint); }
.ticker { display: flex; overflow-x: auto; border-block: 1px solid var(--rule); scrollbar-width: none; touch-action: pan-y; }
.ticker::-webkit-scrollbar { display: none; }
.ticker__track { flex: none; display: flex; list-style: none; margin: 0; padding: 0; will-change: transform; }
.ticker__track li { flex: none; display: grid; align-content: center; gap: 4px; width: 17rem; padding: 24px 32px; border-right: 1px solid var(--rule); user-select: none; }
.ticker__track b { font: 700 clamp(1.6rem, 2.6vw, 2.2rem)/1 var(--display); font-stretch: 116%; }
.ticker__track span { font-size: .92rem; color: var(--slate); line-height: 1.35; }
.ticker:not(.is-live) .ticker__track[aria-hidden] { display: none; }
.ticker.is-live { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.ticker.is-dragging { user-select: none; }
.ticker__track li:hover b { color: var(--sindoor); }
