/* B.V.V. Senior Secondary School — "chalkboard & notebook" design system */
:root {
  --board: #0D1C17;        /* chalkboard */
  --board-2: #13261F;
  --board-3: #1B3329;
  --line-d: rgba(233, 242, 236, .12);
  --chalk: #EEF3EE;        /* chalk white text */
  --chalk-dim: #A8BAB1;
  --paper: #FBFBF7;        /* notebook paper */
  --paper-2: #F1F4EE;
  --rule: #D9E5EF;         /* ruled-line blue */
  --margin: #F1A9A0;       /* notebook margin red */
  --ink: #12201A;
  --ink-dim: #4E5D56;
  --marigold: #FFA51F;
  --marigold-2: #FFC35C;
  --sky: #8DCBFF;
  --pink: #FF8DA6;
  --mint: #93E2C2;
  --r-s: 10px; --r-m: 18px; --r-l: 28px;
  --wrap: 1240px;
  --display: "Bricolage Grotesque", "Baloo 2", system-ui, sans-serif;
  --body: "Mukta", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Kalam", cursive;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--board); color: var(--chalk); font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.04; margin: 0; letter-spacing: -.02em; }
html[data-lang="hi"] h1, html[data-lang="hi"] h2, html[data-lang="hi"] h3 { letter-spacing: 0; line-height: 1.25; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 10px; z-index: 300; background: var(--marigold); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 10px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
html[data-lang="en"] .hi, html[data-lang="hi"] .en { display: none !important; }

/* canvas */
#chalk { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
main, .site-footer { position: relative; z-index: 1; }
.board-sec { position: relative; }
.no-gl .stage-fallback { display: block; }

/* faint chalk smudges on the board */
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 40% at 15% 10%, rgba(255,255,255,.035), transparent 70%),
              radial-gradient(50% 50% at 90% 80%, rgba(255,255,255,.03), transparent 70%); }

/* ---------- pencil progress ---------- */
.pencil { position: fixed; left: 0; right: 0; top: 0; height: 4px; z-index: 120; pointer-events: none; }
#pencil-lead { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0);
  background: repeating-linear-gradient(90deg, var(--marigold) 0 14px, var(--marigold-2) 14px 22px); }
#pencil-tip { position: absolute; top: -9px; left: 0; width: 46px; height: 22px; transform: translateX(0); }
#pencil-tip svg { width: 46px; height: 22px; display: block; }

/* ---------- header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background-color .35s, backdrop-filter .35s, box-shadow .35s; }
.site-header.scrolled { background: rgba(13, 28, 23, .9); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 1px 0 var(--line-d); }
.hdr-row { display: flex; align-items: center; gap: 18px; height: 78px; transition: height .35s var(--ease); }
.scrolled .hdr-row { height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--chalk); min-width: 0; }
.brand img, .brand svg { width: 44px; height: 44px; flex: none; }
.brand b { font-family: var(--display); font-weight: 700; font-size: 1.12rem; line-height: 1.05; display: block; letter-spacing: -.01em; }
.brand small { display: block; color: var(--chalk-dim); font-size: .82rem; line-height: 1.2; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { position: relative; padding: 8px 12px; text-decoration: none; color: var(--chalk-dim); font-weight: 500; border-radius: 999px; transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--chalk); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 3px; border-radius: 3px; background: var(--marigold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 6' preserveAspectRatio='none'%3E%3Cpath d='M1 4 Q 25 1 50 3.5 T 99 2.5' stroke='black' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 6' preserveAspectRatio='none'%3E%3Cpath d='M1 4 Q 25 1 50 3.5 T 99 2.5' stroke='black' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat; }
.hdr-actions { display: flex; gap: 8px; align-items: center; }
.lang-toggle { height: 40px; min-width: 64px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-d); background: rgba(255,255,255,.04); color: var(--chalk); font: 600 .95rem var(--body); cursor: pointer; transition: background .2s, border-color .2s; }
.lang-toggle:hover { border-color: var(--marigold); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-d); background: rgba(255,255,255,.04); cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--chalk); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-btn span:nth-child(1) { top: 16px; } .menu-btn span:nth-child(2) { top: 21px; } .menu-btn span:nth-child(3) { top: 26px; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* full-screen menu (mobile) */
.menu { position: fixed; inset: 0; z-index: 90; background: var(--board-2); display: flex; flex-direction: column; justify-content: center; padding: 100px 28px 120px;
  clip-path: circle(0% at calc(100% - 46px) 40px); transition: clip-path .6s var(--ease); visibility: hidden; }
.menu-open .menu { clip-path: circle(150% at calc(100% - 46px) 40px); visibility: visible; }
.menu a { font-family: var(--display); font-size: clamp(2rem, 9vw, 3rem); font-weight: 700; color: var(--chalk); text-decoration: none; padding: 4px 0; display: flex; align-items: baseline; gap: 14px;
  opacity: 0; transform: translateY(20px); transition: opacity .4s, transform .5s var(--ease); }
.menu a small { font: 500 .9rem var(--hand); color: var(--marigold); font-size: 1.2rem; }
.menu-open .menu a { opacity: 1; transform: none; }
.menu-open .menu a:nth-child(2) { transition-delay: .05s } .menu-open .menu a:nth-child(3) { transition-delay: .1s } .menu-open .menu a:nth-child(4) { transition-delay: .15s }
.menu-open .menu a:nth-child(5) { transition-delay: .2s } .menu-open .menu a:nth-child(6) { transition-delay: .25s } .menu-open .menu a:nth-child(7) { transition-delay: .3s }
.menu-open { overflow: hidden; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1.02rem var(--body); text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .25s; }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-marigold { background: var(--marigold); color: var(--ink); box-shadow: 0 10px 30px -12px rgba(255,165,31,.7); }
.btn-marigold:hover { background: var(--marigold-2); }
.btn-line { border-color: rgba(238,243,238,.35); color: var(--chalk); }
.btn-line:hover { border-color: var(--chalk); background: rgba(255,255,255,.06); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #22362d; }
.btn-ghost-ink { border-color: rgba(18,32,26,.25); color: var(--ink); }
.btn-ghost-ink:hover { border-color: var(--ink); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- type helpers ---------- */
.kicker { font-family: var(--hand); font-size: 1.55rem; line-height: 1; color: var(--marigold); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; transform: rotate(-2deg); transform-origin: left; }
.kicker svg { width: 34px; height: 18px; }
.paper .kicker { color: #D9480F; }
.h-xl { font-size: clamp(2.7rem, 1.2rem + 4.6vw, 5.6rem); font-weight: 800; }
.h-l { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.4rem); font-weight: 800; }
.h-m { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem); }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--chalk-dim); max-width: 58ch; }
.paper .lead { color: var(--ink-dim); }
.hand { font-family: var(--hand); }
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); }
[data-split].in .w > span { transform: none; }
.rv { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* image reveal: wipes up like a page */
.img-reveal { position: relative; overflow: hidden; border-radius: var(--r-m); clip-path: inset(100% 0 0 0 round var(--r-m)); transition: clip-path 1.1s var(--ease); background: var(--board-3); }
.img-reveal img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); transition: transform 1.6s var(--ease); }
.img-reveal.in { clip-path: inset(0 0 0 0 round var(--r-m)); }
.img-reveal.in img { transform: scale(1); }

/* ---------- sections ---------- */
.sec { padding: clamp(80px, 11vw, 160px) 0; }
.paper { background: var(--paper); color: var(--ink); position: relative; z-index: 2; border-radius: var(--r-l) var(--r-l) 0 0; margin-top: -1px; }
.paper.ruled { background-image: linear-gradient(90deg, transparent 0 calc(min(6vw, 80px) - 1px), var(--margin) calc(min(6vw, 80px) - 1px) calc(min(6vw, 80px) + 1px), transparent calc(min(6vw, 80px) + 1px)),
  repeating-linear-gradient(180deg, transparent 0 39px, var(--rule) 39px 40px); background-color: var(--paper); }
.paper + .board-sec { border-radius: 0; }
.paper-end { border-radius: 0 0 var(--r-l) var(--r-l); }
.sec-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head .lead { margin: 18px 0 0; }

/* ---------- hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: 120px 0 80px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 24px; }
.hero h1 { margin-bottom: 26px; }
.hero .lead { margin-bottom: 34px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.stage { aspect-ratio: 1; width: 100%; max-width: 620px; justify-self: center; position: relative; }
.stage-fallback { display: none; position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle, rgba(255,165,31,.25), transparent 65%); }
.hero-note { position: absolute; font-family: var(--hand); color: var(--chalk-dim); font-size: 1.35rem; line-height: 1.1; display: flex; gap: 8px; align-items: flex-start; }
.hero-note svg { width: 56px; height: 40px; flex: none; color: var(--marigold); }
.scroll-cue { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--chalk-dim); font-size: .85rem; }
.scroll-cue i { width: 2px; height: 44px; background: linear-gradient(var(--chalk-dim), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--marigold); animation: cue 1.8s infinite var(--ease); }
@keyframes cue { to { top: 110%; } }

.hero-visual { position: relative; display: grid; place-items: center; }
.hero-visual .stage { max-width: 560px; }
.polaroid { background: #fff; padding: 8px 8px 30px; border-radius: 4px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.7); width: 150px; position: absolute; color: var(--ink); margin: 0; z-index: 2; }
.polaroid.p1 { right: 0; top: -4%; transform: rotate(7deg); width: 132px; }
.polaroid.p2 { left: -8%; bottom: 6%; transform: rotate(-6deg); width: 128px; }
.polaroid.p3 { right: -6%; bottom: -6%; transform: rotate(4deg); width: 124px; }
.polaroid img { aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; font: 1.15rem/1 var(--hand); }
.polaroid::before { content: ""; position: absolute; top: -10px; left: 50%; width: 54px; height: 20px; transform: translateX(-50%) rotate(-3deg); background: rgba(255, 220, 140, .75); }

/* page hero (inner pages) */
.phero { min-height: 66vh; display: grid; align-items: end; padding: 150px 0 70px; }
.phero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center; }
.phero .stage { max-width: 440px; }
.crumbs { font-size: .92rem; color: var(--chalk-dim); margin-bottom: 18px; display: flex; gap: 8px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--chalk); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); }
.stat { padding: 34px 26px; border-right: 1px solid var(--line-d); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 800 clamp(2.6rem, 2rem + 2.4vw, 4.2rem)/1 var(--display); color: var(--chalk); letter-spacing: -.03em; }
.stat b sup { font-size: .4em; color: var(--marigold); vertical-align: super; margin-left: 4px; }
.stat span { color: var(--chalk-dim); }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; padding: 28px 0; border-bottom: 1px solid var(--line-d); }
.ticker-row { display: flex; width: max-content; will-change: transform; }
.ticker-row span { font: 600 clamp(1.8rem, 1.2rem + 2.4vw, 3.2rem)/1 var(--display); padding: 0 26px; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(238,243,238,.55); display: inline-flex; align-items: center; gap: 52px; }
.ticker-row span:nth-child(3n+1) { color: var(--chalk); -webkit-text-stroke: 0; }
.ticker-row span::after { content: ""; width: 22px; height: 22px; flex: none; background: var(--marigold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1l2.9 7.1L22 9l-5.5 4.8L18.2 22 12 18l-6.2 4 1.7-8.2L2 9l7.1-.9z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1l2.9 7.1L22 9l-5.5 4.8L18.2 22 12 18l-6.2 4 1.7-8.2L2 9l7.1-.9z'/%3E%3C/svg%3E") center/contain no-repeat; }
.paper .ticker { border-color: var(--rule); }
.paper .ticker-row span { -webkit-text-stroke-color: rgba(18,32,26,.4); }
.paper .ticker-row span:nth-child(3n+1) { color: var(--ink); }

/* ---------- statement ---------- */
.statement { font: 700 clamp(1.8rem, 1.1rem + 2.8vw, 3.6rem)/1.15 var(--display); letter-spacing: -.02em; max-width: 22ch; }
html[data-lang="hi"] .statement { line-height: 1.4; max-width: 26ch; }
.statement .sw { opacity: .16; transition: opacity .15s linear; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.split.wide-left { grid-template-columns: 1.2fr .8fr; }
.photo-pair { display: grid; grid-template-columns: 1fr .8fr; gap: 16px; align-items: end; }
.photo-pair .img-reveal:first-child { aspect-ratio: 4/5; }
.photo-pair .img-reveal:last-child { aspect-ratio: 1; margin-bottom: 48px; }
.note { font: 1.5rem/1.1 var(--hand); color: #D9480F; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; transform: rotate(-3deg); }
.note svg { width: 48px; height: 30px; }

/* ---------- report-card stack (sticky cards) ---------- */
.stack { display: grid; gap: 22px; padding-bottom: 40px; }
.stack-card { position: sticky; top: calc(110px + var(--i) * 22px); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-l); padding: clamp(26px, 4vw, 48px);
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(18px, 3vw, 40px); align-items: center; box-shadow: 0 -18px 40px -30px rgba(18,32,26,.35); min-height: 220px; }
.stack-card:nth-child(4n+1) { background: #FFF6E6; } .stack-card:nth-child(4n+2) { background: #EEF7FF; }
.stack-card:nth-child(4n+3) { background: #FFF0F3; } .stack-card:nth-child(4n+4) { background: #EDF8F2; }
.stack-card .num { font: 800 clamp(3rem, 2rem + 4vw, 6rem)/1 var(--display); color: rgba(18,32,26,.14); }
.stack-card h3 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); margin-bottom: 10px; }
.stack-card p { margin: 0; color: var(--ink-dim); max-width: 52ch; }
.stack-card .grade { font: 2.6rem/1 var(--hand); color: #D9480F; border: 2.5px solid currentColor; border-radius: 50%; width: 84px; height: 84px; display: grid; place-items: center; transform: rotate(-10deg); }

/* ---------- pinned horizontal strip ---------- */
.hscroll { position: relative; }
.hs-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.hs-head { padding-bottom: 34px; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.hs-track { display: flex; gap: 26px; padding: 0 24px 0 max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); will-change: transform; }
.hs-card { flex: none; width: min(420px, 78vw); transform: rotate(var(--tilt, 0deg)); transition: transform .3s; }
.hs-card .img-reveal, .hs-card .ph { aspect-ratio: 4/5; border-radius: var(--r-m); overflow: hidden; }
.hs-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.hs-card .time { font: 1.4rem var(--hand); color: var(--marigold); display: block; margin-top: 14px; }
.hs-card h3 { font-size: 1.5rem; margin: 2px 0 6px; }
.hs-card p { color: var(--chalk-dim); margin: 0; font-size: 1rem; }
.hs-end { flex: none; width: min(360px, 70vw); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.hs-bar { height: 2px; background: var(--line-d); margin-top: 34px; border-radius: 2px; overflow: hidden; }
.hs-bar i { display: block; height: 100%; background: var(--marigold); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- glass cards on the board ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { position: relative; padding: 28px; border-radius: var(--r-m); background: rgba(255,255,255,.035); border: 1px solid var(--line-d); overflow: hidden; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.spot::before { content: ""; position: absolute; inset: 0; background: radial-gradient(380px circle at var(--mx, -400px) var(--my, -400px), rgba(255,165,31,.16), transparent 60%); pointer-events: none; }
.card .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,165,31,.12); color: var(--marigold); margin-bottom: 22px; }
.card .ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card:nth-child(4n+2) .ico { background: rgba(141,203,255,.12); color: var(--sky); }
.card:nth-child(4n+3) .ico { background: rgba(255,141,166,.12); color: var(--pink); }
.card:nth-child(4n+4) .ico { background: rgba(147,226,194,.12); color: var(--mint); }
.card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.card p { margin: 0; color: var(--chalk-dim); font-size: 1rem; }
.paper .card { background: #fff; border-color: var(--rule); backdrop-filter: none; }
.paper .card p { color: var(--ink-dim); }

/* ---------- bento (gallery teaser) ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 14px; }
.bento > * { border-radius: var(--r-m); overflow: hidden; position: relative; }
.bento .b-wide { grid-column: span 2; } .bento .b-tall { grid-row: span 2; }
.bento img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.bento .tile:hover img { transform: scale(1.06); }
.tile { cursor: zoom-in; border: 0; padding: 0; background: var(--board-3); }
.tile .cap { position: absolute; left: 12px; bottom: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(13,28,23,.72); color: var(--chalk); font-size: .9rem; backdrop-filter: blur(6px); }

/* ---------- video ---------- */
.yt { position: relative; width: 100%; aspect-ratio: 16/9; border: 0; padding: 0; border-radius: var(--r-m); overflow: hidden; cursor: pointer; background: #000; display: block; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .3s, transform .8s var(--ease); }
.yt:hover img { opacity: 1; transform: scale(1.04); }
.yt .play { position: absolute; left: 50%; top: 50%; width: 74px; height: 74px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--marigold); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(255,165,31,.25); transition: transform .3s var(--ease); }
.yt:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.yt .play svg { width: 26px; height: 26px; margin-left: 4px; fill: var(--ink); }
.yt .vt { position: absolute; left: 14px; right: 14px; bottom: 12px; color: #fff; text-align: left; font-weight: 600; text-shadow: 0 1px 8px rgba(0,0,0,.8); }
iframe { border: 0; }
.video-frame iframe, .vgrid iframe { width: 100%; aspect-ratio: 16/9; border-radius: var(--r-m); display: block; }
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.vgrid figure { margin: 0; }
.vgrid figcaption { margin-top: 10px; font-weight: 600; }
.vgrid figcaption small { display: block; color: var(--chalk-dim); font-weight: 400; }
.paper .vgrid figcaption small { color: var(--ink-dim); }

/* ---------- CTA ---------- */
.cta { text-align: center; padding: clamp(110px, 14vw, 200px) 0; }
.cta .stage { position: absolute; inset: 0; margin: auto; max-width: 520px; opacity: 1; }
.cta .inner { position: relative; }
.cta h2 { max-width: 14ch; margin: 0 auto 22px; }
.cta .lead { margin: 0 auto 34px; }
.cta .hero-actions { justify-content: center; }

/* ---------- class ruler ---------- */
.ruler-wrap { display: grid; grid-template-columns: 120px 1fr; gap: clamp(20px, 4vw, 60px); position: relative; }
.ruler { position: sticky; top: 120px; height: calc(100vh - 220px); max-height: 640px; width: 64px; border-radius: 10px; background: #FFE29A; border: 1.5px solid #E7BE5A;
  background-image: repeating-linear-gradient(180deg, transparent 0 15px, rgba(18,32,26,.5) 15px 16px), repeating-linear-gradient(180deg, transparent 0 79px, rgba(18,32,26,.9) 79px 80px);
  background-size: 18px 100%, 32px 100%; background-repeat: no-repeat; background-position: left top, left top; }
.ruler-fill { position: absolute; left: 0; right: 0; top: 0; bottom: 0; border-radius: 9px; background: linear-gradient(180deg, rgba(255,141,166,.85), rgba(255,165,31,.85)); transform-origin: top; transform: scaleY(0); mix-blend-mode: multiply; }
.ruler-now { position: absolute; left: 74px; top: 0; font: 1.6rem/1 var(--hand); color: #D9480F; white-space: nowrap; transform: translateY(-50%) rotate(-4deg); background: var(--paper); padding: 0 6px; border-radius: 6px; }
.stages { display: grid; gap: 18px; }
.stage-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: center; padding: 26px; border-radius: var(--r-l); background: #fff; border: 1px solid var(--rule); transition: transform .5s var(--ease), box-shadow .5s, border-color .5s; }
.stage-row.on { border-color: #F5C26B; box-shadow: 0 24px 50px -30px rgba(217,72,15,.45); }
.stage-row .img-reveal { aspect-ratio: 16/10; }
.stage-row .grades { font: 1.5rem var(--hand); color: #D9480F; }
.stage-row h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); margin: 4px 0 10px; }
.stage-row p { color: var(--ink-dim); margin: 0; }
.stage-row ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.stage-row li { padding: 4px 12px; border-radius: 999px; background: var(--paper-2); font-size: .92rem; }

/* streams */
.streams { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stream { border-radius: var(--r-l); padding: clamp(28px, 4vw, 48px); position: relative; overflow: hidden; }
.stream.sci { background: linear-gradient(140deg, #173B2F, #0F241D); }
.stream.arts { background: linear-gradient(140deg, #3A2414, #22160D); }
.stream h3 { font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem); margin-bottom: 14px; }
.stream ul { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stream li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-d); font-size: .95rem; }
.stream .big { position: absolute; right: -10px; bottom: -40px; font: 800 11rem/1 var(--display); color: rgba(255,255,255,.04); pointer-events: none; }

/* ---------- facilities list ---------- */
.fac { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.fac .card { grid-column: span 4; min-height: 240px; display: flex; flex-direction: column; justify-content: flex-end; }
.fac .card.photo { grid-column: span 8; min-height: 380px; padding: 0; border: 0; }
.fac .card.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.fac .card.photo:hover img { transform: scale(1.05); }
.fac .card.photo .txt { position: relative; padding: 28px; background: linear-gradient(transparent, rgba(8,18,14,.88) 45%); margin-top: auto; }
.fac .card.photo .txt p { color: #D3DDD8; }
.fac .card.tall { grid-row: span 2; }

/* ---------- gallery ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.chip { height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--rule); background: #fff; color: var(--ink); font: 500 .98rem var(--body); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip sup { font-size: .7rem; opacity: .6; margin-left: 4px; }
.masonry { columns: 4 260px; column-gap: 14px; }
.gitem { break-inside: avoid; margin: 0 0 14px; position: relative; border-radius: var(--r-s); overflow: hidden; cursor: zoom-in; display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2);
  animation: pop .5s var(--ease) both; }
.gitem.hide { display: none; }
.gitem img { width: 100%; height: auto; transition: transform .8s var(--ease), filter .4s; }
.gitem:hover img { transform: scale(1.05); }
.gitem .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px; background: linear-gradient(transparent, rgba(8,18,14,.75)); color: #fff; font-size: .9rem; text-align: left; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.gitem:hover .cap, .gitem:focus-visible .cap { opacity: 1; transform: none; }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }
.gmeta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; color: var(--ink-dim); }

/* lightbox */
.lb { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; background: rgba(6,13,10,.96); color: #fff; }
.lb::backdrop { background: rgba(6,13,10,.9); }
.lb[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; }
.lb-stage { display: grid; place-items: center; padding: 0 70px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 180px); border-radius: 8px; opacity: 0; transform: scale(.98); transition: opacity .35s, transform .45s var(--ease); }
.lb-stage img.ready { opacity: 1; transform: none; }
.lb-cap { text-align: center; padding: 14px 20px 22px; font-size: 1.05rem; }
.lb-btn { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff; font-size: 1.5rem; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255,255,255,.15); }
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
.lb-num { font-variant-numeric: tabular-nums; color: #B8C6BF; }
.lb-open { overflow: hidden; }

/* ---------- steps, docs, faq, form ---------- */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { counter-increment: s; position: relative; padding: 30px; border-radius: var(--r-l); background: rgba(255,255,255,.04); border: 1px solid var(--line-d); }
.steps li::before { content: counter(s); font: 800 3.4rem/1 var(--display); color: var(--marigold); display: block; margin-bottom: 18px; }
.steps h3 { font-size: 1.35rem; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--chalk-dim); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.checklist li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 1.1rem; }
.checklist li::before { content: ""; width: 26px; height: 26px; border: 2px solid var(--ink); border-radius: 6px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 13l4 4L19 7' fill='none' stroke='%23D9480F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/0 no-repeat; transition: background-size .4s var(--ease); }
.checklist.in li::before { background-size: 26px; }
.checklist.in li:nth-child(2)::before { transition-delay: .15s } .checklist.in li:nth-child(3)::before { transition-delay: .3s } .checklist.in li:nth-child(4)::before { transition-delay: .45s }
.checklist.in li:nth-child(5)::before { transition-delay: .6s } .checklist.in li:nth-child(6)::before { transition-delay: .75s }

.faq details { border-bottom: 1px solid var(--rule); padding: 6px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 16px 0; font: 600 1.2rem var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.8rem; line-height: 1; color: #D9480F; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-dim); max-width: 64ch; }

.form-card { background: #fff; color: var(--ink); border-radius: var(--r-l); padding: clamp(24px, 4vw, 44px); box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); position: relative; }
.form-card::before { content: ""; position: absolute; top: -12px; left: 40px; width: 90px; height: 24px; background: rgba(255,220,140,.8); transform: rotate(-4deg); }
.form-card h3 { font-size: 1.8rem; margin-bottom: 6px; }
.form-card .hint { color: var(--ink-dim); margin-bottom: 22px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fgrid .full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid #CBD6D0; background: var(--paper); font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255,165,31,.3); }
.field [aria-invalid="true"] { border-color: #C2410C; }
.checks { display: flex; gap: 20px; flex-wrap: wrap; border: 0; padding: 0; margin: 4px 0 0; }
.checks label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.checks input { width: 20px; height: 20px; accent-color: #D9480F; }
.form-error { color: #C2410C; font-weight: 500; margin: 12px 0 0; }
.form-card .btn { width: 100%; margin-top: 18px; }

/* ---------- contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ccard { padding: 26px; border-radius: var(--r-m); background: rgba(255,255,255,.04); border: 1px solid var(--line-d); text-decoration: none; display: flex; flex-direction: column; gap: 10px; transition: border-color .3s, transform .3s var(--ease); position: relative; overflow: hidden; }
a.ccard:hover { border-color: var(--marigold); transform: translateY(-4px); }
.ccard .lbl { color: var(--chalk-dim); font-size: .95rem; }
.ccard b { font: 700 1.35rem/1.2 var(--display); }
.ccard svg { width: 30px; height: 30px; color: var(--marigold); }
.map { border-radius: var(--r-l); overflow: hidden; min-height: 460px; border: 1px solid var(--rule); }
.map iframe { width: 100%; height: 100%; min-height: 460px; display: block; filter: saturate(.9); }

/* ---------- footer ---------- */
.site-footer { background: #08130F; padding: 90px 0 40px; border-top: 1px solid var(--line-d); }
.f-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 60px; }
.f-big { font: 800 clamp(2.2rem, 1.4rem + 3vw, 4rem)/1 var(--display); letter-spacing: -.03em; margin-bottom: 20px; }
.site-footer h4 { font: 600 .95rem var(--body); color: var(--chalk-dim); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: var(--chalk); }
.site-footer a:hover { color: var(--marigold); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-d); display: grid; place-items: center; }
.socials a:hover { border-color: var(--marigold); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }
.f-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--line-d); color: var(--chalk-dim); font-size: .92rem; }

/* sticky mobile action bar */
.mbar { display: none; }

/* page wipe (board eraser) */
.wipe { position: fixed; inset: 0; z-index: 400; pointer-events: none; background: var(--board-2); transform: translateY(100%);
  background-image: radial-gradient(120% 60% at 50% 0%, rgba(255,255,255,.06), transparent 60%); }
.wipe::after { content: ""; position: absolute; left: 50%; top: 50%; width: 120px; height: 46px; transform: translate(-50%, -50%); border-radius: 10px;
  background: linear-gradient(#C68B4A 0 55%, #3A4A5A 55%); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.js .wipe { transform: translateY(0); animation: wipeOut .7s .05s var(--ease) forwards; }
.wipe.in { animation: wipeIn .5s var(--ease) forwards !important; }
.wipe.out { animation: wipeOut .7s var(--ease) forwards; }
@keyframes wipeOut { from { transform: translateY(0); } to { transform: translateY(-101%); } }
@keyframes wipeIn { from { transform: translateY(101%); } to { transform: translateY(0); } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .hdr-actions { margin-left: auto; }
  .cards { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: 1fr 1fr; }
  .f-top { grid-template-columns: 1fr 1fr; }
  .vgrid { grid-template-columns: 1fr 1fr; }
  .fac .card, .fac .card.photo { grid-column: span 6; }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 18px; }
  .hdr-row { height: 66px; }
  .brand small { display: none; }
  .hdr-actions .btn { display: none; }
  .brand b { font-size: 1rem; }
  .hero { padding: 96px 0 90px; min-height: auto; }
  .hero-grid, .phero-grid, .split, .split.wide-left { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin: -10px auto -30px; width: 100%; }
  .phero { min-height: auto; padding: 110px 0 50px; }
  .phero .stage { max-width: 280px; order: -1; margin: 0 auto -10px; }
  .polaroid { display: none; }
  .hero-visual .stage { max-width: 340px; }
  .hero-note { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 16px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-d); }
  .sec-head { grid-template-columns: 1fr; }
  .cards, .steps, .streams, .contact-cards, .vgrid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .bento .b-wide { grid-column: span 2; }
  .stack-card { grid-template-columns: 1fr; top: calc(84px + var(--i) * 14px); }
  .stack-card .grade { display: none; }
  .stack-card .num { font-size: 2.6rem; }
  .hs-sticky { position: relative; height: auto; padding: 80px 0; }
  .hs-track { overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 18px 12px !important; scroll-padding-left: 18px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .paper.ruled { background-image: repeating-linear-gradient(180deg, transparent 0 39px, var(--rule) 39px 40px); }
  .hs-card { scroll-snap-align: start; transform: none; }
  .hs-bar { display: none; }
  .ruler-wrap { grid-template-columns: 1fr; }
  .ruler { display: none; }
  .stage-row { grid-template-columns: 1fr; padding: 16px; }
  .fac .card, .fac .card.photo { grid-column: 1 / -1; }
  .fac .card.photo { min-height: 300px; }
  .fgrid { grid-template-columns: 1fr; }
  .f-top { grid-template-columns: 1fr; }
  .masonry { columns: 2 140px; column-gap: 8px; }
  .gitem { margin-bottom: 8px; }
  .lb-stage { padding: 0 8px; }
  .lb-nav { top: auto; bottom: 16px; transform: none; }
  .mbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 95; }
  .mbar a { min-height: 52px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; text-decoration: none; }
  .mbar svg { width: 18px; height: 18px; }
  .mbar .call { background: var(--marigold); color: var(--ink); }
  .mbar .wa { background: #1E2F28; color: #fff; border: 1px solid var(--line-d); }
  .site-footer { padding-bottom: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv, [data-split] .w > span { opacity: 1 !important; transform: none !important; }
  .img-reveal { clip-path: none; } .img-reveal img { transform: none; }
  .js .wipe { transform: translateY(-101%); }
}
