/* ==========================================================================
   Dasmesh Public Sr. Sec. School — "Navy & Brick"
   Navy is the uniform. Brick is the building. Real photos lead the page.
   Garamond for the voice, Geist for the interface.
   ========================================================================== */
:root {
  --paper: #f4f6fb;
  --paper-2: #e7ecf5;
  --white: #ffffff;
  --ink: #14224a;
  --ink-2: #0b1430;
  --brick: #7a2425;
  --brick-tint: #e8b9b4;
  --blue: var(--brick);
  --mist: #d6dbe8;
  --slate: #9aa6c4;
  --body: #3a4259;
  --muted: #646a7d;
  --line: rgba(20, 34, 74, .12);
  --line-2: rgba(20, 34, 74, .28);
  --r: 10px;
  --card: 18px;
  --shadow: 0 26px 54px -30px rgba(20, 34, 74, .5);
  --shadow-sm: 0 14px 32px -22px rgba(20, 34, 74, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(20px, 4vw, 64px);
  --display: "EB Garamond", Garamond, "Times New Roman", serif;
  --gurmukhi: "Noto Serif Gurmukhi", "Gurmukhi MN", "Noto Sans Gurmukhi", serif;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--body); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.balance { text-wrap: balance; }
#site-footer { margin-top: auto; }
/* on short pages the last section stretches, so the window is always filled and the footer rests at the bottom */
body > section:has(+ #site-footer) { flex: 1 0 auto; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--ink); line-height: 1.04; letter-spacing: -.012em; }
h1 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h3 { font-size: 1.45rem; line-height: 1.2; }
h1 em, h2 em { font-style: italic; color: var(--brick); }
p { text-wrap: pretty; }

.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--brick); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border: 1px solid var(--ink); border-radius: var(--r); font-size: .94rem; font-weight: 500; line-height: 1; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); }
.btn .arw { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--brick); border-color: var(--brick); }
.btn--brick { background: var(--brick); border-color: var(--brick); color: #fff; }
.btn--brick:hover { background: var(--ink); border-color: var(--ink); }
.btn--outline { color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--white, .btn--ivory { background: #fff; color: var(--ink); border-color: #fff; }
.btn--white:hover, .btn--ivory:hover { background: transparent; color: #fff; }
.btn--line { color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--line:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--ghost { border-color: transparent; padding-inline: 4px; }
.btn--block { width: 100%; }
.tlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.tlink svg { width: 14px; height: 14px; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); }
.navbar { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.brand { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 5px; align-items: center; line-height: 1; }
.brand img { grid-row: 1 / 3; width: 52px; height: 52px; object-fit: contain; }
.brand .b-name, .brand .b-sub { grid-column: 2; }
.brand:not(:has(img)) .b-name, .brand:not(:has(img)) .b-sub { grid-column: 1 / -1; }
.brand .b-name { font-family: var(--display); font-size: 1.8rem; color: var(--ink); letter-spacing: -.01em; }
.brand .b-sub { font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav a:not(.btn) { position: relative; font-size: .9rem; color: var(--body); padding: 6px 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--brick); transition: right .3s var(--ease); }
.nav a:not(.btn):hover, .nav a.active { color: var(--ink); }
.nav a:not(.btn):hover::after, .nav a.active::after { right: 0; }
.nav .nav-cta { padding: 12px 20px; }
.nav-toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle::before { top: 14px; } .nav-toggle span { top: 21px; } .nav-toggle::after { top: 28px; }
.nav-toggle.open::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open::after { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle.open span { opacity: 0; }
.nav-backdrop { display: none; }
.progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--brick); z-index: 80; width: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.band-ivory { background: var(--paper-2); }
.section-head { max-width: 760px; display: grid; gap: 16px; }
.section-head p { color: var(--muted); font-size: 1.05rem; max-width: 56ch; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head.center .eyebrow::before { display: none; }


/* ---------- Home: hero (full-width photo, fills the first screen) ---------- */
.hero4 { position: relative; display: flex; flex-direction: column; min-height: min(calc(100vh - 78px), 900px); min-height: min(calc(100svh - 78px), 900px); color: #fff; overflow: hidden; isolation: isolate; background: var(--ink); }
.hero4-media { position: absolute; inset: 0; z-index: -2; }
.hero4-media .slide { position: absolute; inset: 0; background: var(--pos, center) / cover no-repeat; opacity: 0; transition: opacity 1.4s ease; }
.hero4-media .slide.active { opacity: 1; animation: kb 9s ease-out both; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.05); } }
.hero4-scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(97deg, rgba(11, 20, 48, .92) 0%, rgba(11, 20, 48, .74) 38%, rgba(11, 20, 48, .26) 72%, rgba(11, 20, 48, .1) 100%); }
.hero4-inner { flex: 1; display: flex; align-items: center; padding-block: clamp(48px, 7vh, 96px); }
.hero4-copy { max-width: 780px; }
.hero4 .eyebrow { color: var(--brick-tint); }
.hero4 h1 { color: #fff; font-size: clamp(3.4rem, 8.6vw, 7.6rem); line-height: .94; letter-spacing: -.022em; margin: 22px 0 20px; }
.hero4 h1 em { display: block; color: var(--brick-tint); }
.motto { font-family: var(--gurmukhi); font-size: clamp(1.25rem, 2.1vw, 1.7rem); line-height: 1.5; color: #fff; }
.motto-en { margin-top: 4px; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); }
.hero4 .lead { margin-top: 26px; max-width: 44ch; font-size: 1.12rem; color: var(--mist); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero4-cap { position: absolute; right: var(--gutter); bottom: 78px; display: flex; align-items: center; gap: 16px; padding: 10px 14px 10px 16px; border-radius: 12px; background: rgba(11, 20, 48, .72); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; }
.hero4-dots { display: flex; gap: 6px; }
.hero4-dots button { width: 28px; height: 18px; padding: 7px 0; background: rgba(255, 255, 255, .4); background-clip: content-box; }
.hero4-dots button[aria-current="true"] { background-color: #fff; }

.announce { background: var(--brick); color: #fff; }
.hero4 .announce { margin-top: auto; }
.announce .container { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: center; padding-block: 14px; text-align: center; font-size: .92rem; }
.announce b { font-weight: 500; }
.announce a { border-bottom: 1px solid rgba(255, 255, 255, .6); }
.announce a:hover { border-color: #fff; }

/* ---------- Home: our school ---------- */
.story { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 6vw, 100px); align-items: center; }
.story-lede { font-family: var(--display); font-size: clamp(1.9rem, 3.3vw, 2.9rem); line-height: 1.16; color: var(--ink); margin: 18px 0 24px; text-wrap: balance; }
.story-lede em { color: var(--brick); }
.story p { max-width: 48ch; }
.facts-row { display: flex; flex-wrap: wrap; gap: 20px clamp(24px, 4vw, 52px); margin: 30px 0 30px; }
.facts-row b { display: block; font-family: var(--display); font-weight: 400; font-size: 2.7rem; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.facts-row span { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.story-photo { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-2); box-shadow: var(--shadow); }
.story-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Home: which class ---------- */
.picker { display: grid; grid-template-columns: minmax(260px, .8fr) 1.4fr; gap: 24px; margin-top: 48px; align-items: start; }
.stage-tabs { display: grid; gap: 10px; }
.stage-tab { text-align: left; padding: 18px 22px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: grid; gap: 2px; transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); }
.stage-tab b { font-family: var(--display); font-weight: 400; font-size: 1.4rem; line-height: 1.15; color: var(--ink); }
.stage-tab span { font-size: .82rem; color: var(--muted); }
.stage-tab:hover { border-color: var(--ink); }
.stage-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); transform: translateX(6px); }
.stage-tab[aria-selected="true"] b { color: #fff; }
.stage-tab[aria-selected="true"] span { color: var(--slate); }
.stage-panel { background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: clamp(26px, 4vw, 52px); display: grid; gap: 22px; align-content: start; min-height: 420px; }
.stage-panel .kicker { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brick); font-weight: 500; }
.stage-panel h3 { font-size: clamp(2.2rem, 3.6vw, 3.2rem); line-height: 1; }
.stage-panel p { max-width: 52ch; color: var(--body); }
.cls-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cls-chips a { padding: 11px 18px; border-radius: var(--r); border: 1px solid var(--line-2); color: var(--ink); font-weight: 500; font-size: .94rem; transition: background .2s, color .2s, border-color .2s; }
.cls-chips a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.stream-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stream-row div { padding: 16px 14px; border-radius: 12px; background: var(--ink); color: #fff; font-family: var(--display); font-size: 1.25rem; line-height: 1.1; }
.stream-row div:nth-child(3) { background: var(--brick); }
.stream-row small { display: block; margin-bottom: 18px; font-family: var(--font); font-size: .66rem; letter-spacing: .16em; color: var(--slate); }
.stream-row div:nth-child(3) small { color: var(--brick-tint); }
.panel-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* ---------- Home: a day at school ---------- */
.day-dark { background: var(--ink); color: var(--mist); }
.day-dark h2, .day-dark h3 { color: #fff; }
.day-dark h2 em { color: var(--brick-tint); }
.day-dark .eyebrow { color: var(--brick-tint); }
.day-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.strip-nav { display: flex; gap: 10px; }
.strip-nav button { width: 52px; height: 52px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .35); color: #fff; display: grid; place-items: center; transition: background .2s, color .2s, opacity .2s; }
.strip-nav button:hover:not(:disabled) { background: #fff; color: var(--ink); }
.strip-nav button:disabled { opacity: .3; cursor: default; }
.strip-nav svg { width: 20px; height: 20px; }
.strip { display: flex; gap: 20px; margin-top: clamp(28px, 4vw, 48px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; outline-offset: 6px; }
.strip::-webkit-scrollbar { display: none; }
.dcard { flex: 0 0 clamp(270px, 30vw, 370px); scroll-snap-align: start; border-radius: var(--card); overflow: hidden; display: flex; flex-direction: column; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
.dcard:nth-child(3n+2) { background: var(--brick); border-color: transparent; }
.dimg { aspect-ratio: 16 / 10; background: center / cover no-repeat; }
.dbody { padding: 26px 26px 32px; display: grid; gap: 10px; }
.dtime { font-family: var(--display); font-size: 3.4rem; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.dtime small { font-family: var(--font); font-size: .75rem; letter-spacing: .16em; margin-left: 8px; color: var(--brick-tint); }
.dcard p { color: var(--mist); font-size: .98rem; }
.dcard:nth-child(3n+2) p { color: #f3dcd9; }

/* ---------- Home: facilities ticker ---------- */
.marquee { background: var(--brick); color: #fff; overflow: hidden; padding: 22px 0; }
.mq-track { display: flex; width: max-content; animation: mq 60s linear infinite; }
.marquee:hover .mq-track { animation-play-state: paused; }
.mq-track span { position: relative; padding: 0 34px; white-space: nowrap; font-family: var(--display); font-style: italic; font-size: clamp(1.7rem, 3.2vw, 2.7rem); line-height: 1.2; }
.mq-track span::after { content: ""; position: absolute; right: -5px; top: 50%; width: 9px; height: 9px; background: var(--brick-tint); transform: translateY(-50%) rotate(45deg); }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- Home: visit ---------- */
.visit-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.visit h2 { margin: 16px 0 24px; }
.visit-list { display: grid; margin-bottom: 30px; }
.visit-list li { display: grid; gap: 2px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.visit-list span { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.visit-list b { font-weight: 500; color: var(--ink); }
.map { width: 100%; height: 100%; min-height: 400px; border: 0; border-radius: 20px; box-shadow: var(--shadow-sm); }

/* ---------- Cards: notices, events, books, etc. ---------- */
.notices, .events { display: grid; gap: 16px; max-width: 900px; margin-inline: auto; }
.notice, .event { background: #fff; border-radius: 16px; padding: 24px 28px; box-shadow: var(--shadow-sm); }
.notice { display: grid; gap: 6px; }
.notice .n-date { display: flex; align-items: center; gap: 10px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brick); }
.notice .n-date svg { width: 16px; height: 16px; }
.notice p { color: var(--muted); max-width: 62ch; }
.event { display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: start; }
.ev-date b { display: block; font-family: var(--display); font-size: 2.8rem; font-weight: 400; color: var(--ink); line-height: 1; }
.ev-date span { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brick); }
.ev-tag { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ev-when { color: var(--muted); font-size: .92rem; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar { background: #fff; border-radius: var(--card); padding: 34px 30px 36px; box-shadow: var(--shadow-sm); }
.pillar .ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--ink); color: #fff; margin-bottom: 24px; }
.pillar .ic svg { width: 26px; height: 26px; }
.pillar p { color: var(--muted); margin-top: 8px; }

.facilities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.facility { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-sm); font-family: var(--display); font-size: 1.2rem; line-height: 1.2; color: var(--ink); }
.facility svg { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--brick); color: #fff; }

.schols, .books { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.schol { background: #fff; border-radius: 14px; padding: 24px 26px; box-shadow: var(--shadow-sm); }
.schol .ic { display: none; }
.schol p { color: var(--muted); margin-top: 6px; }
.book { display: flex; align-items: center; gap: 16px; padding: 20px 24px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease); }
.book:hover { transform: translateY(-3px); }
.book .bi { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--ink); color: #fff; }
.book .bi svg { width: 20px; height: 20px; }
.book .bt { flex: 1; display: grid; }
.book .bt b { font-family: var(--display); font-weight: 400; font-size: 1.35rem; color: var(--ink); line-height: 1.2; }
.book .bt span { font-size: .84rem; color: var(--muted); }
.book .dl { display: inline-flex; gap: 8px; align-items: center; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brick); }
.book .dl svg { width: 14px; height: 14px; }
.doc-group { margin-bottom: 48px; }
.doc-cat { font-family: var(--font); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.docs-empty { grid-column: 1 / -1; background: #fff; border-radius: var(--card); padding: 44px; text-align: center; color: var(--muted); box-shadow: var(--shadow-sm); }
.docs-empty svg { margin: 0 auto 12px; width: 26px; color: var(--brick); }

.leaders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.leader .ph { aspect-ratio: 4 / 5; border-radius: var(--card); background: var(--paper-2); display: grid; place-items: center; font-family: var(--display); font-size: 4rem; color: var(--brick); overflow: hidden; margin-bottom: 18px; }
.leader .ph img { width: 100%; height: 100%; object-fit: cover; }
.leader .role { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brick); }
.leader p { color: var(--muted); margin-top: 8px; }

/* gallery: photos are never cropped and every row is exactly as wide as the page, so there is no gap at the end of a row */
.gallery:not(.ready) { opacity: 0; min-height: 320px; }
.gallery { transition: opacity .5s var(--ease); }
.gallery .g-row { display: flex; gap: 14px; margin-bottom: 14px; }
.gallery .g-row:last-child { margin-bottom: 0; }
.gallery .g { flex: none; position: relative; overflow: hidden; border-radius: 14px; cursor: pointer; background: var(--paper-2); box-shadow: var(--shadow-sm); }
.gallery .g img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mason { columns: 3; column-gap: 14px; }
.m { break-inside: avoid; margin-bottom: 14px; position: relative; overflow: hidden; border-radius: 14px; cursor: pointer; box-shadow: var(--shadow-sm); }
.m img { width: 100%; height: auto; }
.g figcaption, .m figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px; background: var(--ink); color: #fff; font-size: .82rem; transform: translateY(100%); transition: transform .3s var(--ease); }
.g:hover figcaption, .m:hover figcaption { transform: none; }
.gallery-more { margin-top: 28px; text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { padding: 9px 18px; border: 1px solid var(--line-2); border-radius: var(--r); font-size: .86rem; background: #fff; }
.chip.on, .chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.quote { max-width: 760px; margin: 0 auto; text-align: center; }
.quote .mark { font-family: var(--display); font-size: 5rem; line-height: .6; color: var(--brick); }
.quote p { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.25; color: var(--ink); }
.quote .who { margin-top: 20px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.tour-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--card); background: var(--ink); overflow: hidden; box-shadow: var(--shadow); }
.tour-frame iframe, .tour-frame video, .tour-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tour-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.tp-shade { position: absolute; inset: 0; background: rgba(20, 34, 74, .4); }
.tp-btn { position: relative; width: 76px; height: 76px; border: 1px solid #fff; border-radius: 50%; display: grid; place-items: center; }
.tp-btn svg { width: 24px; }
.tp-label { position: absolute; left: 22px; bottom: 18px; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.tour-alt { display: inline-flex; margin-top: 14px; gap: 8px; color: var(--brick); font-size: .9rem; }
.tour-alt svg { width: 14px; }

/* ---------- Closing band + footer ---------- */
.cta-steps { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 22px; counter-reset: s; font-size: .9rem; color: #fff; }
.cta-steps li { counter-increment: s; display: flex; align-items: center; gap: 10px; }
.cta-steps li::before { content: counter(s); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .6); font-size: .8rem; }
.cta { display: flex; flex-direction: column; justify-content: center; background: var(--brick); color: #f3dcd9; padding: clamp(56px, 8vw, 104px) 0; }
.cta .container { display: flex; align-items: end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { color: #fff; max-width: 16ch; }
.cta p { margin-top: 14px; max-width: 46ch; }
.cta .btn--ivory { color: var(--brick); }
.cta .btn--ivory:hover { color: #fff; }

.footer { background: var(--ink-2); color: var(--mist); padding-top: clamp(56px, 7vw, 96px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 56px; }
.footer .brand .b-name { color: #fff; font-size: 2.1rem; }
.footer .brand .b-sub { color: var(--slate); }
.footer .brand img { width: 60px; height: 60px; background: #fff; border-radius: 50%; padding: 3px; }
.footer-about p { margin-top: 16px; max-width: 36ch; font-size: .95rem; }
.f-motto { font-family: var(--gurmukhi); font-size: 1.3rem; color: #fff; margin-top: 22px; line-height: 1.5; }
.f-motto-en { margin-top: 2px !important; font-size: .7rem !important; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); }
.footer h4 { font-family: var(--font); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--slate); font-weight: 500; margin-bottom: 16px; }
.footer-col { display: grid; gap: 10px; align-content: start; font-size: .94rem; }
.footer-col a:hover { color: #fff; }
.footer-col .row { display: block; }
.foot-social { display: flex; gap: 14px; margin-top: 18px; }
.foot-social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(214, 219, 232, .18); padding: 20px 0; font-size: .82rem; color: var(--slate); }
.reg-line { margin-bottom: 6px; }
.wa { position: fixed; right: 18px; bottom: 18px; width: 52px; height: 52px; background: var(--ink); color: #fff; display: grid; place-items: center; border-radius: 16px; z-index: 40; box-shadow: var(--shadow); }
.wa svg { width: 24px; height: 24px; }

/* ---------- Inner pages ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--ink); color: var(--mist); border-bottom: 5px solid var(--brick); padding: clamp(52px, 7vw, 108px) 0 clamp(40px, 5vw, 76px); }
.page-hero .container { position: relative; display: grid; gap: 16px; z-index: 1; }
.page-hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); max-width: 18ch; color: #fff; }
.page-hero h1 em { color: var(--brick-tint); }
.page-hero p { max-width: 56ch; color: var(--mist); font-size: 1.1rem; }
.crumbs { order: -1; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.crumbs a:hover { color: #fff; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-body { display: grid; gap: 20px; }
.split-body p { max-width: 54ch; }
.feature-list li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tile { background: var(--ink); color: #fff; padding: 28px 26px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; border-radius: var(--card); }
.tile:nth-child(2), .tile:nth-child(3) { background: var(--brick); }
.tile span { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.tile b { font-family: var(--display); font-weight: 400; font-size: 2rem; line-height: 1.05; }

.stats .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; padding-block: 44px 8px; }
.stat { background: #fff; border-radius: var(--card); padding: 28px; box-shadow: var(--shadow-sm); }
.stat .v { font-family: var(--display); font-size: clamp(2.4rem, 4vw, 3.4rem); color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.stat .l { margin-top: 10px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.regstrip { background: #fff; border-bottom: 1px solid var(--line); }
.regstrip .container { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-block: 14px; font-size: .84rem; color: var(--muted); }
.regstrip svg { display: none; }

.info-item { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-item .ic { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--ink); color: #fff; }
.info-item .ic svg { width: 20px; height: 20px; }
.info-item div { display: grid; }
.info-item b { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.info-item span, .info-item a { color: var(--ink); font-weight: 500; }

.form { background: #fff; border-radius: 22px; padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.field input, .field textarea, .field select { width: 100%; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; font: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(20, 34, 74, .1); }
.field textarea { min-height: 120px; resize: vertical; }
.opt { text-transform: none; letter-spacing: 0; font-weight: 400; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin-top: 12px; font-size: .9rem; color: var(--ink); min-height: 1.2em; }
.form-msg.bad { color: var(--brick); }
.thanks { text-align: center; padding: 24px 0; display: grid; gap: 12px; justify-items: center; }
.thanks .tick svg { width: 30px; color: var(--brick); }

.lightbox { position: fixed; inset: 0; background: rgba(11, 20, 48, .95); z-index: 100; display: none; place-items: center; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 6px; }
.lightbox button { position: absolute; color: #fff; font-size: 2.4rem; padding: 12px 18px; }
.lb-close { top: 8px; right: 8px; } .lb-prev { left: 8px; } .lb-next { right: 8px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .mq-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .mq-track [aria-hidden="true"] { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 78px 0 0 0; background: var(--ink); flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0; padding: 24px var(--gutter); transform: translateX(100%); transition: transform .45s var(--ease); overflow-y: auto; }
  .nav.open { transform: none; }
  .nav a:not(.btn) { font-family: var(--display); font-size: 2rem; color: #fff; padding: 12px 0; width: 100%; border-bottom: 1px solid rgba(214, 219, 232, .18); }
  .nav a:not(.btn)::after { display: none; }
  .nav .nav-cta { margin-top: 24px; font-family: var(--font); font-size: 1rem; }
  .story, .split, .visit-grid { grid-template-columns: 1fr; }
  .picker { grid-template-columns: 1fr; }
  .stage-tabs { display: flex; overflow-x: auto; gap: 10px; padding-bottom: 6px; scrollbar-width: none; }
  .stage-tabs::-webkit-scrollbar { display: none; }
  .stage-tab { flex: 0 0 auto; min-width: 170px; }
  .stage-tab[aria-selected="true"] { transform: none; }
  .stage-panel { min-height: 0; }
  .pillars, .leaders, .schols, .books { grid-template-columns: 1fr; }
  .facilities { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mason { columns: 2; }
  .map { border-radius: var(--card); min-height: 340px; }
}
@media (max-width: 560px) {
  .brand img { width: 44px; height: 44px; }
  .brand .b-name { font-size: 1.6rem; }
  .brand .b-sub { font-size: .52rem; letter-spacing: .12em; }
  .hero4 h1 { font-size: clamp(3.2rem, 17vw, 4.6rem); }
  .facilities, .tiles, .stream-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .event { grid-template-columns: 70px 1fr; gap: 16px; }
  .mason { columns: 1; }
  .dcard { flex-basis: 78vw; }
}

/* tablets and phones: title first, then the whole photo as a wide card (it grows to fill the screen, never zoomed past the building) */
@media (max-width: 1100px) {
  .hero4-scrim { display: none; }
  .hero4-inner { flex: none; display: block; padding-block: 44px 8px; }
  .hero4-media { position: relative; inset: auto; z-index: 0; order: 2; flex: 1 1 auto; min-height: calc((100vw - 2 * var(--gutter)) * 800 / 2048); max-height: 560px; margin: 22px var(--gutter) 22px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
  .hero4-media .slide { background-position: 0% 50%; }
  .hero4-media .slide.active { animation: none; }
  .hero4-cap { position: static; order: 3; margin: -6px var(--gutter) 22px; align-self: flex-start; }
  .hero4 .announce { order: 4; }
}
@media (max-width: 720px) {
  .hero4 { min-height: 0; }
  .hero4-media { flex: none; aspect-ratio: 2048 / 800; min-height: 0; max-height: none; border-radius: 18px; }
}
