/* Crescent Public School, Pindrajora — "the fort" theme.
 * Palette taken from the school building: terracotta walls, cream merlons, maroon shadows, sky blue; plus the logo's gold.
 * No framework. Sections: tokens, base, layout, buttons, header, gate, hero, home sections, inner pages, forms, dialogs, footer. */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/manrope.woff2") format("woff2"); }
@font-face { font-family: "Marcellus"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/marcellus.woff2") format("woff2"); }

:root {
    --red: #B1190D;
    --terracotta: #C0533A;
    --brick: #A33A23;
    --maroon: #6E1A12;
    --maroon-deep: #45100A;
    --sand: #F5E9DA;
    --stone: #EAD7BF;
    --cream: #FBF7F1;
    --gold: #F2B400;
    --gold-soft: #FFE6A3;
    --sky: #DCE8EE;
    --ink: #2B1A14;
    --muted: #6B5A50;
    --line: #E4D3BF;
    --white: #fff;

    --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Marcellus", Georgia, "Times New Roman", serif;

    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 10px 30px -12px rgba(69, 16, 10, .28);
    --shadow-lg: 0 24px 60px -20px rgba(69, 16, 10, .45);
    --wrap: 1200px;
    --header-h: 76px;
    --ease: cubic-bezier(.2, .7, .2, 1);

    /* cusped Mughal arch (same shape as the central portal of the building) */
    --arch-gate: polygon(0% 100%,0% 40%,1.25% 32.4%,2.5% 29.3%,3.75% 26.94%,5% 24.98%,6.25% 23.37%,7.5% 22.26%,8.75% 21.27%,10% 20.32%,11.25% 19.38%,12.5% 18.42%,13.75% 17.41%,15% 16.35%,16.25% 15.23%,17.5% 14.07%,18.75% 12.88%,20% 11.69%,21.25% 10.91%,22.5% 10.61%,23.75% 10.3%,25% 9.95%,26.25% 9.53%,27.5% 9.03%,28.75% 8.45%,30% 7.77%,31.25% 7.02%,32.5% 6.19%,33.75% 5.33%,35% 4.44%,36.25% 4.19%,37.5% 4.16%,38.75% 4.1%,40% 3.98%,41.25% 3.78%,42.5% 3.48%,43.75% 3.09%,45% 2.6%,46.25% 2.03%,47.5% 1.39%,48.75% 0.7%,50% 0%,51.25% 0.7%,52.5% 1.39%,53.75% 2.03%,55% 2.6%,56.25% 3.09%,57.5% 3.48%,58.75% 3.78%,60% 3.98%,61.25% 4.1%,62.5% 4.16%,63.75% 4.19%,65% 4.44%,66.25% 5.33%,67.5% 6.19%,68.75% 7.02%,70% 7.77%,71.25% 8.45%,72.5% 9.03%,73.75% 9.53%,75% 9.95%,76.25% 10.3%,77.5% 10.61%,78.75% 10.91%,80% 11.69%,81.25% 12.88%,82.5% 14.07%,83.75% 15.23%,85% 16.35%,86.25% 17.41%,87.5% 18.42%,88.75% 19.38%,90% 20.32%,91.25% 21.27%,92.5% 22.26%,93.75% 23.37%,95% 24.98%,96.25% 26.94%,97.5% 29.3%,98.75% 32.4%,100% 40%,100% 100%);
    --arch-frame: polygon(0% 100%,0% 28%,1.25% 22.68%,2.5% 20.51%,3.75% 18.86%,5% 17.49%,6.25% 16.3%,7.5% 15.23%,8.75% 14.27%,10% 13.38%,11.25% 12.56%,12.5% 11.79%,13.75% 11.07%,15% 10.39%,16.25% 9.75%,17.5% 9.15%,18.75% 8.57%,20% 8.02%,21.25% 7.5%,22.5% 7%,23.75% 6.52%,25% 6.07%,26.25% 5.63%,27.5% 5.21%,28.75% 4.81%,30% 4.42%,31.25% 4.05%,32.5% 3.7%,33.75% 3.35%,35% 3.03%,36.25% 2.71%,37.5% 2.41%,38.75% 2.12%,40% 1.84%,41.25% 1.58%,42.5% 1.32%,43.75% 1.07%,45% 0.84%,46.25% 0.62%,47.5% 0.4%,48.75% 0.2%,50% 0%,51.25% 0.2%,52.5% 0.4%,53.75% 0.62%,55% 0.84%,56.25% 1.07%,57.5% 1.32%,58.75% 1.58%,60% 1.84%,61.25% 2.12%,62.5% 2.41%,63.75% 2.71%,65% 3.03%,66.25% 3.35%,67.5% 3.7%,68.75% 4.05%,70% 4.42%,71.25% 4.81%,72.5% 5.21%,73.75% 5.63%,75% 6.07%,76.25% 6.52%,77.5% 7%,78.75% 7.5%,80% 8.02%,81.25% 8.57%,82.5% 9.15%,83.75% 9.75%,85% 10.39%,86.25% 11.07%,87.5% 11.79%,88.75% 12.56%,90% 13.38%,91.25% 14.27%,92.5% 15.23%,93.75% 16.3%,95% 17.49%,96.25% 18.86%,97.5% 20.51%,98.75% 22.68%,100% 28%,100% 100%);
    /* stepped merlons of the parapet; used as a mask so it takes any colour */
    --merlon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 20'%3E%3Cpath d='M0 20V16H6V9H9V5L14 0L19 5V9H22V16H28V20Z'/%3E%3C/svg%3E");
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.7; color: var(--ink); background: var(--cream); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brick); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--maroon); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; color: var(--maroon-deep); margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold-soft); color: var(--maroon-deep); }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; padding: .6rem 1rem; background: var(--maroon-deep); color: #fff; border-radius: 6px; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.show-sm { display: none; }

/* ---------- layout ---------- */
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.wrap--narrow { width: min(860px, 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--sand { background: var(--sand); }
.section--stone { background: var(--stone); }
.section--maroon { background: var(--maroon); color: #F6E7DA; }
.section--maroon h2, .section--maroon h3 { color: #fff; }
.section--white { background: var(--white); }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section--maroon .section-head p { color: #E9CDBD; }
.section-head__row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; }
.section-head__row .section-head { margin-bottom: 0; }
.section-head__row + * { margin-top: clamp(2rem, 4vw, 3rem); }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 .8rem; font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--brick); }
.eyebrow::before { content: ""; width: 26px; height: 10px; background: currentColor; -webkit-mask: var(--merlon) 0 100% / 13px 10px repeat-x; mask: var(--merlon) 0 100% / 13px 10px repeat-x; }
.section--maroon .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold); }
.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr .95fr; } .split--reverse > :first-child { order: 2; } }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.lead { font-size: 1.2rem; color: var(--muted); }

/* battlement edge: put .crenel-top on a section; it grows merlons in the section's own colour above it */
.crenel-top { --crenel: var(--cream); }
.crenel-top::before { content: ""; position: absolute; left: 0; right: 0; top: -21px; height: 22px; background: var(--crenel); -webkit-mask: var(--merlon) 0 100% / 30px 22px repeat-x; mask: var(--merlon) 0 100% / 30px 22px repeat-x; pointer-events: none; }
.section--sand.crenel-top { --crenel: var(--sand); }
.section--stone.crenel-top { --crenel: var(--stone); }
.section--maroon.crenel-top { --crenel: var(--maroon); }
.section--white.crenel-top { --crenel: var(--white); }

/* arch frame for photos */
.arch { clip-path: var(--arch-frame); }

/* ---------- buttons ---------- */
.btn { --bg: var(--brick); --fg: #fff; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .75rem 1.5rem; border: 2px solid var(--bg); border-radius: 999px; background: var(--bg); color: var(--fg); font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s; }
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: none; }
.btn--primary { --bg: var(--brick); }
.btn--primary:hover { --bg: var(--maroon); }
.btn--gold { --bg: var(--gold); --fg: var(--maroon-deep); }
.btn--gold:hover { --bg: #FFC93C; }
.btn--ghost { --bg: transparent; --fg: #fff; border-color: rgba(255,255,255,.75); }
.btn--ghost:hover { --bg: rgba(255,255,255,.14); }
.btn--ghost-dark { --bg: transparent; --fg: var(--maroon); border-color: var(--line); }
.btn--ghost-dark:hover { --bg: var(--sand); --fg: var(--maroon); }
.btn--sm { min-height: 40px; padding: .5rem 1.1rem; font-size: .92rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: wait; transform: none; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: none; color: var(--brick); }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.icon-btn:hover { background: rgba(0,0,0,.06); }
.icon-btn .icon { width: 24px; height: 24px; }

/* ---------- top bar + header ---------- */
.topbar { background: var(--maroon-deep); color: #F1DCCD; font-size: .86rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: var(--gold); }
.topbar__contact, .topbar__links { display: flex; align-items: center; gap: 1.25rem; }
.topbar__social { display: inline-flex; gap: .75rem; }
.topbar .icon { width: 15px; height: 15px; }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(251, 247, 241, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(69,16,10,.4); border-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--maroon-deep); margin-right: auto; }
.brand img { width: 56px; height: 56px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-size: 1.3rem; color: var(--maroon-deep); }
.brand__place { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brick); margin-top: .25rem; }
.brand--light .brand__name { color: #fff; }
.brand--light .brand__place { color: var(--gold); }
.site-header__actions { display: flex; align-items: center; gap: .5rem; }

.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.nav__link { display: inline-flex; align-items: center; gap: .3rem; padding: .6rem .85rem; border: 0; border-radius: 999px; background: none; font-weight: 700; font-size: .97rem; color: var(--ink); text-decoration: none; cursor: pointer; position: relative; }
.nav__link .icon { width: 16px; height: 16px; transition: transform .2s; }
.nav__link:hover, .nav__item.is-active > .nav__link { color: var(--brick); }
.nav__item.is-active > .nav__link::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .2rem; height: 2px; background: var(--gold); border-radius: 2px; }
.nav__sub { list-style: none; margin: 0; padding: .5rem; }
.nav__sub a { display: block; padding: .6rem .85rem; border-radius: 10px; text-decoration: none; color: var(--ink); line-height: 1.3; }
.nav__sub a strong { display: block; font-weight: 700; }
.nav__sub a small { display: block; color: var(--muted); font-size: .82rem; margin-top: .15rem; }
.nav__sub a:hover, .nav__sub a[aria-current] { background: var(--sand); }
.nav__sub a:hover strong { color: var(--brick); }
.nav__head, .nav__foot { display: none; }
.nav-open { display: none; }

@media (min-width: 1081px) {
    .nav__item { position: relative; }
    .nav__sub { position: absolute; top: calc(100% + 10px); left: 50%; min-width: 290px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .2s, transform .2s var(--ease), visibility .2s; }
    .nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
    .has-sub:hover > .nav__sub, .has-sub:focus-within > .nav__sub, .has-sub.is-open > .nav__sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
    .has-sub:hover > .nav__toggle .icon, .has-sub.is-open > .nav__toggle .icon { transform: rotate(180deg); }
}
@media (max-width: 1080px) {
    .nav-open { display: inline-grid; }
    .nav { position: fixed; inset: 0 0 0 auto; width: min(380px, 88vw); z-index: 60; background: var(--cream); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s var(--ease); box-shadow: var(--shadow-lg); overflow-y: auto; overscroll-behavior: contain; visibility: hidden; }
    .nav.is-open { transform: none; visibility: visible; }
    .nav__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1rem 1rem 1.5rem; border-bottom: 1px solid var(--line); }
    .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: .75rem; }
    .nav__link { width: 100%; justify-content: space-between; padding: .9rem 1rem; border-radius: 10px; font-size: 1.05rem; }
    .nav__item.is-active > .nav__link::after { display: none; }
    .nav__item.is-active > .nav__link { background: var(--sand); }
    .nav__sub { display: none; padding: 0 0 .5rem .75rem; }
    .has-sub.is-open > .nav__sub { display: block; }
    .has-sub.is-open > .nav__toggle .icon { transform: rotate(180deg); }
    .nav__foot { display: grid; gap: .6rem; padding: 1rem 1.5rem 2rem; margin-top: auto; }
    .nav-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(43, 26, 20, .45); }
}
@media (max-width: 640px) {
    .hide-sm { display: none !important; }
    .show-sm { display: inline !important; }
    .brand img { width: 46px; height: 46px; }
    .brand__name { font-size: 1.1rem; }
    :root { --header-h: 66px; }
    .topbar__inner { justify-content: space-between; }
}
@media (max-width: 380px) { .brand__place { display: none; } }

/* ---------- gate intro (home, once per session) ---------- */
.gate { display: none; }
.gate-on .gate { display: grid; position: fixed; inset: 0; z-index: 100; place-items: center; overflow: hidden; perspective: 1400px;
    background:
        repeating-linear-gradient(0deg, rgba(0,0,0,.07) 0 2px, transparent 2px 46px),
        repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 2px, transparent 2px 92px),
        radial-gradient(ellipse at 50% 30%, #CF6A4E, #A9432C 60%, #7E2A1A);
    animation: gate-out 1s var(--ease) 2.3s forwards; }
.gate-on body { overflow: hidden; }
.gate__wall { position: relative; display: grid; justify-items: center; width: min(78vw, 46vh); }
.gate__parapet { position: fixed; left: 0; right: 0; top: 0; height: 64px; background: linear-gradient(#CFE0E8, #E6EEF1); }
.gate__parapet::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 32px; background: #F3E3CC; -webkit-mask: var(--merlon) 0 100% / 44px 32px repeat-x; mask: var(--merlon) 0 100% / 44px 32px repeat-x; }
.gate__parapet::before { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: #F3E3CC; }
.gate__frame { width: 100%; aspect-ratio: 3 / 4; padding: 5%; background: linear-gradient(#F4E3CC, #E2C7A6); clip-path: var(--arch-gate); filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }
.gate__arch { position: relative; width: 100%; height: 100%; clip-path: var(--arch-gate); transform-style: preserve-3d; perspective: 1200px; background: #2a0f08; }
.gate__light { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 70%, #FFF6D8, #FFD98A 35%, #F2B400 60%, #C0533A); opacity: 0; animation: gate-light .9s ease-out .8s forwards; }
.gate__door { position: absolute; top: 0; bottom: 0; width: 50%; backface-visibility: hidden;
    background:
        radial-gradient(circle at 50% 50%, #E6B95A 0 2.5px, #8a5a1c 3px, transparent 4px) 11px 11px / 28px 28px,
        linear-gradient(180deg, transparent 0 21%, #2c140a 21% 23.5%, transparent 23.5% 54%, #2c140a 54% 56.5%, transparent 56.5% 84%, #2c140a 84% 86.5%, transparent 86.5%),
        repeating-linear-gradient(90deg, rgba(0,0,0,.22) 0 2px, transparent 2px 20%),
        linear-gradient(90deg, #5A2A12, #7A3D1C 45%, #5A2A12);
    box-shadow: inset 0 0 40px rgba(0,0,0,.55); }
.gate__door--l { left: 0; transform-origin: left center; animation: door-l 1.5s cubic-bezier(.6, .05, .3, 1) .6s forwards; border-right: 2px solid #2c140a; }
.gate__door--r { right: 0; transform-origin: right center; animation: door-r 1.5s cubic-bezier(.6, .05, .3, 1) .6s forwards; border-left: 2px solid #2c140a; }
.gate__ring { position: absolute; top: 58%; width: 26px; height: 26px; border: 4px solid #D9A441; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,.5); }
.gate__door--l .gate__ring { right: 10px; }
.gate__door--r .gate__ring { left: 10px; }
.gate__seal { position: absolute; top: 40%; left: 50%; width: clamp(56px, 16%, 84px); height: auto; translate: -50% -50%; filter: drop-shadow(0 4px 10px rgba(0,0,0,.6)); animation: seal-out .5s ease .55s forwards; }
.gate__welcome { margin: 1.4rem 0 0; text-align: center; color: #FCEBDD; font-size: clamp(.95rem, 2.4vw, 1.15rem); letter-spacing: .08em; opacity: 0; animation: fade-up .7s ease .15s forwards; }
.gate__welcome strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 4.5vw, 2.3rem); letter-spacing: .02em; color: #fff; }
.gate__skip { position: fixed; right: 1.25rem; bottom: 1.25rem; padding: .5rem 1.1rem; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; background: rgba(0,0,0,.2); color: #fff; font-size: .85rem; cursor: pointer; }
@keyframes door-l { to { transform: rotateY(-105deg); } }
@keyframes door-r { to { transform: rotateY(105deg); } }
@keyframes gate-light { to { opacity: 1; } }
@keyframes seal-out { to { opacity: 0; scale: .6; } }
@keyframes gate-out { to { opacity: 0; visibility: hidden; transform: scale(2.6); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- home hero ---------- */
.hero { position: relative; min-height: min(88vh, 820px); display: grid; align-items: end; color: #fff; overflow: hidden; isolation: isolate; background: var(--maroon-deep); }
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero__slide.is-active img { animation: kenburns 14s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(43,12,6,.15) 0%, rgba(43,12,6,.05) 35%, rgba(43,12,6,.78) 78%, rgba(43,12,6,.92) 100%), linear-gradient(90deg, rgba(43,12,6,.55), transparent 65%); }
.hero__content { padding-block: 7rem 5.5rem; max-width: 760px; }
.hero__caption { display: none; }
.hero__caption.is-active { display: block; animation: fade-up .8s var(--ease) both; }
.hero h1, .hero__title { color: #fff; font-size: clamp(2.4rem, 6.4vw, 4.6rem); margin-bottom: .3em; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #F6E4D6; max-width: 600px; }
.hero__badge { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem 1rem .45rem .5rem; margin-bottom: 1.25rem; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(6px); color: #fff; font-weight: 700; font-size: .9rem; text-decoration: none; }
.hero__badge b { padding: .2rem .6rem; border-radius: 999px; background: var(--gold); color: var(--maroon-deep); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.hero__badge:hover { color: #fff; background: rgba(255,255,255,.22); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero__dots { position: absolute; right: max(1.25rem, calc((100% - var(--wrap)) / 2)); bottom: 3.2rem; display: flex; gap: .5rem; }
.hero__dots button { width: 34px; height: 6px; padding: 0; border: 0; border-radius: 6px; background: rgba(255,255,255,.4); cursor: pointer; }
.hero__dots button[aria-current="true"] { background: var(--gold); }
.hero__edge { position: absolute; left: 0; right: 0; bottom: -1px; height: 22px; background: var(--cream); -webkit-mask: var(--merlon) 0 100% / 30px 22px repeat-x; mask: var(--merlon) 0 100% / 30px 22px repeat-x; }

/* notice ticker */
.ticker { background: var(--gold); color: var(--maroon-deep); font-weight: 700; overflow: hidden; display: flex; align-items: stretch; }
.ticker__label { flex: none; display: flex; align-items: center; gap: .5rem; padding: .7rem 1.25rem; background: var(--maroon-deep); color: var(--gold); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; position: relative; z-index: 1; }
.ticker__track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker__item { display: flex; align-items: center; gap: 2.5rem; padding: .7rem 1.25rem; white-space: nowrap; }
.ticker__item::after { content: "✦"; color: var(--brick); }
.ticker a { color: inherit; text-decoration: underline; text-decoration-color: rgba(69,16,10,.35); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* quick facts */
.facts { position: relative; z-index: 2; margin-top: -3rem; }
.facts__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; border-top: 4px solid var(--gold); }
.fact { padding: 1.5rem 1.25rem; text-align: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact__value { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--brick); line-height: 1.1; }
.fact__label { display: block; margin-top: .35rem; font-size: .85rem; color: var(--muted); font-weight: 600; }

/* admission strip banners */
.strip { display: grid; gap: 1rem; }
.strip__banner { display: block; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--maroon); }
.strip__banner img { width: 100%; }
.strip__cta { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1.5rem; padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 4vw, 3rem); border-radius: var(--radius); background: radial-gradient(circle at 100% 0, rgba(242,180,0,.3), transparent 50%), linear-gradient(110deg, var(--maroon-deep), var(--brick)); color: #fff; position: relative; overflow: hidden; }
.strip__cta h2 { color: #fff; margin: 0 0 .25rem; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.strip__cta p { margin: 0; color: #F2D8C8; }
.strip__cta ul { list-style: none; padding: 0; margin: .75rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.strip__cta li { padding: .3rem .8rem; border-radius: 999px; background: rgba(255,255,255,.12); font-size: .88rem; font-weight: 600; }
@media (max-width: 700px) { .strip__cta { grid-template-columns: 1fr; } }

/* about teaser */
.about-media { position: relative; display: grid; grid-template-columns: 1fr .7fr; gap: 1rem; align-items: end; }
.about-media__main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: var(--stone); }
.about-media__main img, .about-media__side img { width: 100%; height: 100%; object-fit: cover; }
.about-media__side { display: grid; gap: 1rem; }
.about-media__side > * { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--stone); }
.about-media__seal { position: absolute; left: -1rem; bottom: 1.5rem; display: grid; place-items: center; width: 116px; height: 116px; border-radius: 50%; background: var(--gold); color: var(--maroon-deep); text-align: center; font-weight: 800; line-height: 1.1; box-shadow: var(--shadow); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.about-media__seal b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; letter-spacing: 0; }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .65rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.checklist li { display: flex; gap: .6rem; align-items: flex-start; font-weight: 600; }
.checklist .icon { color: #fff; background: var(--brick); border-radius: 50%; padding: 4px; width: 24px; height: 24px; margin-top: .15rem; }

/* cards */
.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s; height: 100%; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--stone); display: block; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card__meta { font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brick); display: flex; gap: .4rem; align-items: center; }
.card__title { font-size: 1.3rem; margin: 0; }
.card__title a { color: var(--maroon-deep); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card__text { color: var(--muted); margin: 0; font-size: .98rem; }
.card__more { margin-top: auto; padding-top: .5rem; }
.card--feature { grid-column: span 2; }
.card--feature .card__media { aspect-ratio: 16 / 8; }
@media (max-width: 760px) { .card--feature { grid-column: auto; } }

.home-blocks { display: grid; gap: 1.5rem; }
.home-block { display: grid; gap: 1.5rem; align-items: center; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.home-block img { width: 100%; }
.home-block__body { padding: 0 1.75rem 1.75rem; text-align: center; }
.home-block__body .btn { margin: .3rem; }
.home-block--pair { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); background: none; border: 0; }
.home-block--pair img { border-radius: var(--radius); }

/* "A Day at Crescent": a wall of arched windows */
.day-wall { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(.6rem, 1.4vw, 1.1rem); }
.day-wall__item { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; clip-path: var(--arch-frame); background: var(--stone); }
.day-wall__item:nth-child(5n+2), .day-wall__item:nth-child(5n+4) { transform: translateY(1.75rem); }
.day-wall__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; }
.day-wall__item:hover img { transform: scale(1.08); }
.day-wall__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem .8rem .7rem; color: #fff; font-size: .82rem; font-weight: 600; background: linear-gradient(transparent, rgba(43,12,6,.8)); opacity: 0; transition: opacity .3s; }
.day-wall__item:hover figcaption, .day-wall__item:focus-visible figcaption { opacity: 1; }
.day-wall.is-loading .day-wall__item img { filter: blur(6px) saturate(.6); }
.day-wall__foot { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 3.5rem; }
@media (max-width: 900px) { .day-wall { grid-template-columns: repeat(3, 1fr); } .day-wall__item:nth-child(n) { transform: none; } .day-wall__item:nth-child(3n+2) { transform: translateY(1.25rem); } .day-wall__item:nth-child(n+10) { display: none; } }
@media (max-width: 520px) { .day-wall { grid-template-columns: repeat(2, 1fr); } .day-wall__item:nth-child(n) { transform: none; } .day-wall__item:nth-child(2n) { transform: translateY(1.25rem); } .day-wall__item:nth-child(n+9) { display: none; } }

/* albums */
.album-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; color: #fff; text-decoration: none; background: var(--maroon); isolation: isolate; }
.album-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.album-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(43,12,6,.88)); }
.album-card:hover img { transform: scale(1.06); }
.album-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.25rem 1.4rem; }
.album-card__body h3 { color: #fff; margin: 0 0 .15rem; font-size: 1.35rem; }
.album-card__meta { display: flex; gap: 1rem; font-size: .85rem; color: #F2D8C8; font-weight: 600; }
.album-card__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.album-card:hover { color: #fff; }
.album-card__count { position: absolute; top: 1rem; right: 1rem; padding: .25rem .7rem; border-radius: 999px; background: rgba(0,0,0,.45); font-size: .8rem; font-weight: 700; backdrop-filter: blur(4px); }

/* photo grid (album pages) */
.masonry { columns: 3 280px; column-gap: 1rem; }
.masonry__item { display: block; margin: 0 0 1rem; break-inside: avoid; border-radius: var(--radius-sm); overflow: hidden; background: var(--stone); position: relative; }
.masonry__item img { width: 100%; transition: transform .6s var(--ease), opacity .3s; }
.masonry__item:hover img { transform: scale(1.04); }
.masonry__item figcaption { padding: .6rem .8rem; font-size: .88rem; color: var(--muted); background: #fff; }

/* director */
.director { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) { .director { grid-template-columns: minmax(260px, 380px) 1fr; } }
.director__photo { position: relative; max-width: 380px; margin-inline: auto; width: 100%; }
.director__photo::before { content: ""; position: absolute; inset: -14px -14px 14px 14px; background: var(--gold); clip-path: var(--arch-frame); opacity: .9; }
.director__photo > div { position: relative; clip-path: var(--arch-frame); aspect-ratio: 4 / 5; background: var(--stone); }
.director__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.quote { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.05rem); line-height: 1.35; color: var(--maroon-deep); margin: 0 0 1.25rem; position: relative; }
.quote::before { content: "“"; display: block; font-size: 4.5rem; line-height: .6; color: var(--gold); margin-bottom: .35rem; }
.section--maroon .quote { color: #fff; }
.signature { font-weight: 800; color: var(--brick); }
.signature small { display: block; font-weight: 600; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
.section--maroon .signature { color: var(--gold); }
.section--maroon .signature small { color: #E9CDBD; }

/* videos: thumbnail first, YouTube player only after a click */
.video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: var(--radius); overflow: hidden; background: #000; cursor: pointer; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s, transform .6s var(--ease); }
.video:hover img { opacity: 1; transform: scale(1.03); }
.video__play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--gold); color: var(--maroon-deep); box-shadow: 0 0 0 10px rgba(242,180,0,.3); transition: transform .2s; }
.video:hover .video__play { transform: scale(1.08); }
.video__play .icon { width: 28px; height: 28px; margin-left: 4px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.video__title { margin-top: .75rem; font-weight: 700; }

/* tagline band */
.tagline { text-align: center; }
.tagline p { font-family: var(--font-display); font-size: clamp(1.8rem, 4.4vw, 3.2rem); line-height: 1.2; color: #fff; margin: 0 auto; max-width: 900px; }
.tagline p span { color: var(--gold); }

/* visit + enquiry */
.visit { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 960px) { .visit { grid-template-columns: 1.1fr .9fr; align-items: start; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: 1.1rem; }
.contact-list li { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; align-items: start; }
.contact-list .icon-wrap { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--sand); color: var(--brick); }
.contact-list strong { display: block; color: var(--maroon-deep); }
.contact-list a { text-decoration: none; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--stone) center / cover; position: relative; }
.map iframe { width: 100%; height: 100%; border: 0; }
.map__load { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: .75rem; text-align: center; padding: 1rem; background: rgba(43,12,6,.55); color: #fff; }
.form-card { background: #fff; border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow-lg); border-top: 5px solid var(--gold); position: relative; }
.form-card h2, .form-card h3 { margin-bottom: .25rem; }
.form-card > p { color: var(--muted); }

/* ---------- inner pages ---------- */
.page-hero { position: relative; color: #fff; padding-block: clamp(3.5rem, 8vw, 6rem) clamp(4rem, 8vw, 6rem); background: var(--maroon-deep); overflow: hidden; isolation: isolate; }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(43,12,6,.92), rgba(43,12,6,.65) 55%, rgba(43,12,6,.35)); }
.page-hero h1 { color: #fff; margin: 0 0 .4rem; max-width: 820px; }
.page-hero p { color: #F2D8C8; max-width: 640px; font-size: 1.12rem; margin: 0; }
.page-hero .hero__edge { height: 20px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: 0 0 1rem; font-size: .88rem; font-weight: 600; color: #E9CDBD; }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb li + li::before { content: "/"; margin-right: .35rem; opacity: .6; }

.prose { max-width: 760px; }
.prose--wide { max-width: none; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose img { border-radius: var(--radius-sm); }
.prose li { margin-bottom: .35em; }
.prose table { width: 100%; border-collapse: collapse; }
.prose td, .prose th { border: 1px solid var(--line); padding: .5rem .75rem; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); }
.panel--sand { background: var(--sand); border-color: transparent; }
.panel h3 { margin-bottom: .6rem; }
.stack > * + * { margin-top: clamp(1.25rem, 3vw, 2rem); }

.tiles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.tile { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
a.tile:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.tile__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--sand); color: var(--brick); }
.tile__icon .icon { width: 24px; height: 24px; }
.tile strong { display: block; font-size: 1.05rem; color: var(--maroon-deep); }
.tile small { display: block; color: var(--muted); font-size: .9rem; line-height: 1.5; margin-top: .15rem; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.chips li { padding: .4rem .9rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .92rem; }

.facility { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr; padding-block: clamp(2rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line); }
.facility:last-child { border-bottom: 0; }
@media (min-width: 900px) { .facility { grid-template-columns: 1fr 1fr; align-items: center; } .facility:nth-child(even) .facility__media { order: 2; } }
.facility__media { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: .75rem; aspect-ratio: 4 / 3; }
.facility__media > * { border-radius: var(--radius-sm); overflow: hidden; background: var(--stone); }
.facility__media > :first-child { grid-row: span 2; }
.facility__media img { width: 100%; height: 100%; object-fit: cover; }
.facility__media--icon { display: grid; place-items: center; grid-template-columns: 1fr; background: radial-gradient(circle at 30% 20%, var(--gold-soft), var(--sand) 60%); border-radius: var(--radius); color: var(--brick); }
.facility__media--icon .icon { width: 30%; height: 30%; stroke-width: 1.2; }
.facility__media--icon > * { background: none; grid-row: auto !important; }

/* documents / downloads */
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.doc { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.doc__icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: #FCE9E4; color: var(--red); }
.doc__title { flex: 1; font-weight: 600; line-height: 1.4; }
.doc__title small { display: block; font-weight: 500; color: var(--muted); }
.doc a.btn { flex: none; }
.doc--empty .doc__icon { background: var(--sand); color: var(--muted); }
@media (max-width: 560px) { .doc { flex-wrap: wrap; } .doc a.btn { width: 100%; } }

/* data tables (CBSE disclosure) */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.data-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.data-table caption { text-align: left; padding: 1rem 1.25rem; font-family: var(--font-display); font-size: 1.3rem; color: var(--maroon-deep); background: var(--sand); }
.data-table th, .data-table td { padding: .8rem 1.25rem; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.data-table th { white-space: nowrap; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: #FDFaF6; }
.data-table td:first-child { width: 4.5rem; color: var(--muted); font-weight: 700; }
.data-table td.is-sub { padding-left: 2.5rem; color: var(--muted); }
.data-table .empty { color: #A89587; }
@media (max-width: 640px) {
    .data-table thead { display: none; }
    .data-table tr { display: grid; grid-template-columns: 2.6rem 1fr; border-top: 1px solid var(--line); padding: .6rem 0; }
    .data-table td { border: 0; padding: .25rem .9rem; }
    .data-table td:first-child { width: auto; grid-row: span 2; }
    .data-table td:last-child { font-weight: 700; }
}
.disclosure-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }

/* FAQ */
.faq { display: grid; gap: .75rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 1.25rem; }
.faq summary { cursor: pointer; padding: 1.05rem 0; font-weight: 700; color: var(--maroon-deep); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brick); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); }

/* admission page */
.concessions { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.concessions li { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.1rem; background: rgba(255,255,255,.1); border-radius: 12px; font-weight: 600; }
.concessions .icon { color: var(--gold); margin-top: .2rem; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.steps li { counter-increment: step; position: relative; padding: 1.5rem 1.25rem 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: .75rem; border-radius: 50%; background: var(--gold); color: var(--maroon-deep); font-family: var(--font-display); font-size: 1.25rem; }
.steps strong { display: block; color: var(--maroon-deep); }
.steps span { color: var(--muted); font-size: .95rem; }
.sticky-col { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.page-banner { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: block; }
.pdf-frame { width: 100%; height: 80vh; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

/* post page */
.post-head { margin-bottom: 2rem; }
.post-gallery { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin: 2rem 0; }
.post-gallery a { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; background: var(--stone); }
.post-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-gallery a:hover img { transform: scale(1.05); }
.post-gallery--single { grid-template-columns: 1fr; }
.post-gallery--single a { aspect-ratio: auto; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 3rem; list-style: none; padding: 0; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .9rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; font-weight: 700; color: var(--ink); }
.pagination [aria-current] { background: var(--brick); border-color: var(--brick); color: #fff; }
.empty-state { text-align: center; padding: 3rem 1.5rem; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty-state .icon { width: 42px; height: 42px; margin: 0 auto 1rem; color: var(--terracotta); }

/* careers */
.career-hero { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; padding: clamp(2rem, 5vw, 3.5rem); border-radius: calc(var(--radius) * 1.5); background: radial-gradient(circle at 100% 0, rgba(242,180,0,.35), transparent 45%), linear-gradient(120deg, var(--maroon-deep), var(--brick)); color: #fff; }
@media (min-width: 860px) { .career-hero { grid-template-columns: 1.3fr .7fr; } }
.career-hero h2 { color: #fff; }
.career-hero p { color: #F2D8C8; }

/* ---------- forms ---------- */
.enquiry-form { display: grid; gap: 1rem; }
.enquiry-form__title { margin: 0; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 700; font-size: .92rem; color: var(--maroon-deep); }
.field input, .field select { width: 100%; min-height: 50px; padding: .7rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--cream); font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A33A23' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px; padding-right: 2.75rem; }
.field input:focus, .field select:focus { outline: none; border-color: var(--terracotta); background: #fff; box-shadow: 0 0 0 4px rgba(192,83,58,.15); }
.field__prefix { display: flex; }
.field__prefix span { display: grid; place-items: center; padding: 0 .9rem; border: 1.5px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; background: var(--sand); font-weight: 700; color: var(--muted); }
.field__prefix input { border-radius: 0 12px 12px 0; }
.field__error { display: none; color: var(--red); font-weight: 600; font-size: .85rem; }
.field.is-invalid input, .field.is-invalid select { border-color: var(--red); }
.field.is-invalid .field__error { display: block; }
.field-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-weight: 700; min-height: 1px; }
.form-status.is-error { color: var(--red); }
.form-note { display: flex; gap: .5rem; align-items: center; margin: 0; font-size: .8rem; color: var(--muted); }
.form-note .icon { color: var(--brick); }
.form-success { text-align: center; padding: 1.5rem .5rem; }
.form-success .icon { width: 64px; height: 64px; margin: 0 auto 1rem; padding: 14px; border-radius: 50%; background: #E3F3E6; color: #1E7B34; }
.form-success h3 { margin-bottom: .3rem; }
.grecaptcha-badge { visibility: hidden; }

/* ---------- dialogs ---------- */
dialog { border: 0; padding: 0; color: var(--ink); max-height: calc(100dvh - 2rem); }
dialog::backdrop { background: rgba(43, 26, 20, .6); backdrop-filter: blur(3px); }
.modal { width: min(540px, calc(100% - 1.5rem)); border-radius: calc(var(--radius) * 1.3); background: #fff; box-shadow: var(--shadow-lg); padding: 0 clamp(1.25rem, 4vw, 2rem) clamp(1.25rem, 4vw, 2rem); overflow-y: auto; }
.modal[open] { animation: pop .35s var(--ease); }
.modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-top: clamp(1.25rem, 4vw, 1.75rem); margin-bottom: 1.25rem; position: relative; }
.modal__head::before { content: ""; position: absolute; left: calc(-1 * clamp(1.25rem, 4vw, 2rem)); right: calc(-1 * clamp(1.25rem, 4vw, 2rem)); top: 0; height: 6px; background: linear-gradient(90deg, var(--brick), var(--gold)); }
.modal__head h2 { font-size: 1.9rem; margin: 0; }
.modal__head .eyebrow { margin-bottom: .4rem; }
.modal__sub { margin: .35rem 0 0; color: var(--muted); font-size: .95rem; }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.98); } }
@media (max-width: 560px) {
    .modal { width: 100%; max-width: none; margin: auto 0 0; border-radius: 22px 22px 0 0; max-height: 92dvh; }
    .modal[open] { animation: sheet .35s var(--ease); }
}
@keyframes sheet { from { transform: translateY(100%); } }
.popup { width: min(640px, calc(100% - 1.5rem)); background: transparent; overflow: visible; }
.popup[open] { animation: pop .4s var(--ease); }
.popup__media { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.popup__media img { width: 100%; max-height: 70dvh; object-fit: contain; background: #fff; }
.popup__close { position: absolute; top: -14px; right: -10px; z-index: 2; background: #fff; box-shadow: var(--shadow); }
.popup__close:hover { background: var(--sand); }
.popup__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 1rem; margin-top: 1rem; color: #fff; text-align: center; }
.popup__actions p { margin: 0; font-weight: 700; }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(20, 8, 4, .95); color: #fff; }
.lightbox__figure { margin: 0; height: 100%; display: grid; place-items: center; align-content: center; gap: .75rem; padding: 4rem 1rem 3rem; }
.lightbox__figure img { max-width: min(100%, 1400px); max-height: calc(100dvh - 9rem); width: auto; object-fit: contain; border-radius: 6px; }
.lightbox__figure figcaption { text-align: center; color: #E9CDBD; max-width: 70ch; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
.lightbox__btn:hover { background: rgba(255,255,255,.25); }
.lightbox__btn .icon { width: 26px; height: 26px; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 1rem; top: 50%; translate: 0 -50%; }
.lightbox__count { position: absolute; top: 1.6rem; left: 1.5rem; font-weight: 700; color: #E9CDBD; }
@media (max-width: 640px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; translate: none; } }

/* ---------- floating contact ---------- */
.fab-whatsapp { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 30; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; box-shadow: 0 10px 24px -6px rgba(0,0,0,.35); transition: transform .2s; }
.fab-whatsapp:hover { color: #fff; transform: scale(1.07); }
.fab-whatsapp .icon { width: 30px; height: 30px; }
.action-bar { display: none; }
@media (max-width: 760px) {
    .fab-whatsapp { display: none; }
    .action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: grid; grid-template-columns: 1fr 1fr 1.3fr; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(69,16,10,.35); padding-bottom: env(safe-area-inset-bottom); }
    .action-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; min-height: 60px; font-size: .78rem; font-weight: 700; color: var(--maroon-deep); text-decoration: none; }
    .action-bar a .icon { width: 22px; height: 22px; }
    .action-bar a:nth-child(2) .icon { color: #1DA851; }
    .action-bar__main { background: var(--brick); color: #fff !important; }
    body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}

/* ---------- footer ---------- */
.site-footer { position: relative; margin-top: 2rem; color: #EBD3C4; }
.skyline { display: block; width: 100%; height: clamp(90px, 13vw, 170px); fill: var(--maroon); margin-bottom: -1px; }
.site-footer__body { background: var(--maroon); padding-block: 2.5rem 1.5rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr .8fr .9fr 1.2fr; } }
.footer-about p { margin-top: 1.1rem; font-size: .95rem; color: #DDBFAE; }
.footer-title { font-family: var(--font-body); font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-links a, .footer-contact a { color: #F6E7DA; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-links .icon { width: 14px; height: 14px; }
.footer-contact li { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; font-size: .95rem; margin-bottom: .2rem; }
.footer-contact .icon { color: var(--gold); margin-top: .3rem; }
.footer-contact + .btn { margin-top: 1.25rem; }
.social { display: flex; gap: .6rem; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; transition: background .2s, color .2s; }
.social a:hover { background: var(--gold); color: var(--maroon-deep); }
.social .icon { width: 19px; height: 19px; }
.footer-policies { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; }
.footer-policies a { color: #DDBFAE; text-decoration: none; }
.footer-policies a:hover { color: var(--gold); }
.site-footer__bottom { background: var(--maroon-deep); font-size: .85rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1rem; color: #CDA996; }
.footer-bottom a { color: var(--gold); text-decoration: none; }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding-block: clamp(4rem, 10vw, 7rem); }
.not-found__code { font-family: var(--font-display); font-size: clamp(5rem, 18vw, 10rem); line-height: 1; color: var(--terracotta); }

/* ---------- reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--delay, 0s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
    .ticker__track { animation: none; flex-wrap: wrap; width: auto; }
    .ticker__track > [aria-hidden] { display: none; }
}

@media print {
    .topbar, .site-header, .site-footer, .fab-whatsapp, .action-bar, .gate, .hero__dots { display: none !important; }
    body { background: #fff; padding: 0; }
}

/* ---------- "Why Crescent" highlights ---------- */
.perks { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.perk { position: relative; padding: 1.6rem 1.3rem 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; overflow: hidden; }
.perk::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--brick), var(--gold)); }
.perk:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.perk__icon { display: grid; place-items: center; width: 68px; height: 80px; margin: 0 auto 1rem; padding-top: 12px; background: linear-gradient(160deg, var(--terracotta), var(--maroon)); color: var(--gold); clip-path: var(--arch-frame); }
.perk__icon .icon { width: 30px; height: 30px; }
.perk h3 { font-size: 1.2rem; margin-bottom: .45rem; }
.perk p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.6; }
.perks--compact { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.perks--compact li { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.perks--compact .perk__icon { width: 40px; height: 46px; margin: 0; padding-top: 6px; flex: none; }
.perks--compact .perk__icon .icon { width: 20px; height: 20px; }
.perks--compact strong { color: var(--maroon-deep); line-height: 1.3; }
