/* Archana Vidhya Bhavan. Colours come from the building (blue wall, red louvres) and the book in the school's mark. */
@property --slat { syntax: '<length>'; inherits: false; initial-value: 0px; }

:root {
  --ink: #13203f;
  --soft: #46547a;
  --line: #cfdbee;
  --wall: #2b4c8c;
  --red: #a3223a;
  --red-deep: #80162b;
  --sun: #f7b718;
  --leaf: #7db32b;
  --sky: #a9d6ff;
  --mist: #eaf4ff;
  --sand: #fdf3de;
  --night: #0b1533;
  --paper: #fff;
  --font: 'Anek Latin', 'Anek Gujarati', 'Anek Devanagari', system-ui, sans-serif;
  --gut: clamp(16px, 4vw, 48px);
  --sec: clamp(64px, 8vw, 116px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --r: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (hover: hover) and (pointer: fine) { html, body { overscroll-behavior-y: none; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.55 var(--font); font-synthesis: none; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; padding: 0; border: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2 { font-weight: 700; line-height: 1.04; letter-spacing: -.018em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3.25rem); }
h3 { font-size: 1.3rem; font-weight: 650; line-height: 1.2; }
:is(h1, h2, h3):lang(gu), :is(h1, h2, h3):lang(hi) { letter-spacing: 0; line-height: 1.22; }
h1:lang(gu), h1:lang(hi) { font-size: clamp(2.25rem, 4.5vw, 4rem); }
:focus-visible { outline: 3px solid var(--wall); outline-offset: 3px; border-radius: 4px; }
.night :focus-visible, .top :focus-visible, .facts :focus-visible { outline-color: var(--sun); }
.vh, .trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(100%, 1320px); margin-inline: auto; padding-inline: var(--gut); }
.narrow { max-width: 900px; }
.lead { font-size: clamp(1.125rem, 1.5vw, 1.35rem); line-height: 1.45; color: var(--soft); text-wrap: pretty; }
.small { font-size: .875rem; color: var(--soft); }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--sun); color: var(--ink); padding: 10px 16px; border-radius: var(--r); }
.skip:focus { top: 8px; }

/* ---- Loader: a school notebook whose cover opens onto the first page of a visit */
.cover, .turning[hidden] { display: none; }
.covered .cover { display: block; position: fixed; inset: 0; z-index: 90; overflow: hidden; perspective: 220vmax; }
.cover__board { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px 24px 24px calc(24px + var(--spine)); --spine: clamp(30px, 7vw, 104px); --corner: clamp(56px, 11vmin, 120px); transform-origin: 0 50%; backface-visibility: hidden;
  background: linear-gradient(225deg, var(--ink) calc(var(--corner) * .707), #0000 0) 100% 0 / 100% 50% no-repeat, linear-gradient(315deg, var(--ink) calc(var(--corner) * .707), #0000 0) 100% 100% / 100% 50% no-repeat,
    repeating-linear-gradient(0deg, #0000 0 3px, #80162b59 3px 4px), repeating-linear-gradient(90deg, #0000 0 3px, #80162b59 3px 4px), var(--red); }
.cover__board::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--spine); background: var(--ink); border-right: 3px dashed var(--sun); box-shadow: 6px 0 14px -4px #13203f80; }
.cover__label { position: relative; width: min(100%, 540px); padding: clamp(28px, 4vw, 40px) clamp(24px, 5vw, 48px) 42px; text-align: center; background: #fffdf3; border-radius: 6px; outline: 2px solid var(--ink); outline-offset: -11px; box-shadow: 0 10px 24px -8px #13203f99; }
.cover__press { position: absolute; left: calc(var(--spine) + (100% - var(--spine)) * var(--x) / 100); translate: -50% -50%; font-size: clamp(3rem, 8vmax, 7.5rem); font-weight: 750; line-height: 1; color: #8c1a30; text-shadow: 0 1px 0 #c2465d66; }
.cover__mark { width: clamp(92px, 9vw, 124px); margin: 0 auto 14px; }
.cover__label p { padding: 9px 0 6px; border-bottom: 1.5px solid #a9bfe0; font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.3; }
.cover__label .cover__name { font-size: clamp(1.5rem, 5.4vw, 2.4rem); font-weight: 700; line-height: 1.2; }
.cover__bar { position: absolute; left: 11px; right: 11px; bottom: 11px; height: 6px; background: var(--red); transform-origin: 0 50%; animation: bar 2.6s cubic-bezier(.1, .7, .3, 1) both; }
.cover__label p { animation: write .5s .12s cubic-bezier(.5, 0, .4, 1) both; }
.cover__label p:nth-of-type(2) { animation-delay: .5s; animation-duration: .3s; }
.cover__label p:nth-of-type(3) { animation-delay: .74s; animation-duration: .3s; }
.cover.is-open .cover__board { transform: rotateY(-94deg); transition: transform .95s cubic-bezier(.6, 0, .3, 1); }
.cover::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #13203f, #13203f66); opacity: 0; }
.cover.is-open { pointer-events: none; }
.cover.is-open::before { animation: shade .95s ease-out both; }
.cover.is-open .cover__bar { animation: none; }
.covered:not(.uncovered) main * { animation-play-state: paused; }
@media (max-width: 900px) { .cover__press:nth-child(n+5):nth-child(-n+8) { display: none; } }
@keyframes write { from { clip-path: inset(0 100% -2px 0); } to { clip-path: inset(0 0 -2px 0); } }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(.94); } }
@keyframes shade { from { opacity: .6; } to { opacity: 0; } }

/* ---- Loader between pages: a book turning its pages */
.turning { position: fixed; inset: 0; z-index: 80; display: grid; place-content: center; justify-items: center; gap: 20px; background: #eaf4fff5; font-size: 1.125rem; font-weight: 600; animation: fade .2s both; }
.turning__book { position: relative; width: 176px; height: 114px; perspective: 700px; background: linear-gradient(90deg, #fffdf3 49%, #cfdbee 49% 51%, #fffdf3 51%); border: 5px solid var(--red); border-radius: 5px; }
.turning__book i { position: absolute; inset: 0 0 0 50%; display: grid; place-items: center; background: #fffdf3; border-left: 1px solid var(--line); font: 700 2.9rem/1 var(--font); color: var(--wall); transform-origin: 0 50%; animation: leaf 2.4s infinite cubic-bezier(.5, 0, .4, 1) both; }
.turning__book i:nth-child(2) { color: var(--red); animation-delay: -1.6s; }
.turning__book i:nth-child(3) { color: #3d6a10; animation-delay: -.8s; }
@keyframes leaf { 0%, 12% { transform: rotateY(0); z-index: 2; } 33% { transform: rotateY(-90deg); z-index: 3; -webkit-text-fill-color: currentcolor; } 33.1% { -webkit-text-fill-color: transparent; } 45% { transform: rotateY(-180deg); z-index: 3; opacity: 1; } 46%, 99% { transform: rotateY(0); z-index: 0; opacity: 0; -webkit-text-fill-color: transparent; } }
@keyframes fade { from { opacity: 0; } }

/* ---- Links and buttons */
.link { display: inline-block; padding-block: 4px; font-weight: 600; color: var(--red); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; transition: background-size .35s var(--ease); }
.link:hover { background-size: 35% 2px; }
.btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 10px 24px; border: 2px solid var(--red); border-radius: var(--r); background: var(--red); color: #fff; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease); }
.btn:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn:active { transform: scale(.975); }
.btn .icon:last-child { transition: transform .25s var(--ease); }
.btn:hover .icon:last-child:not(:first-child) { transform: translateX(4px); }
.btn--small { min-height: 46px; padding-inline: 20px; }
.btn--line { background: #fff; border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--plain { background: transparent; border-color: currentColor; color: inherit; }
.btn--plain:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--sun { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.btn--sun:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn--light { background: transparent; border-color: #8ea3d6; color: #fff; }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn[disabled] { opacity: .7; cursor: progress; }

/* ---- Top strip and menu */
.top { background: var(--ink); color: #dbe6fb; font-size: .9375rem; }
.top__in { display: flex; align-items: center; gap: 28px; min-height: 42px; }
.top__item { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.top a:hover { color: var(--sun); }
.top__fee { font-weight: 600; color: var(--sun); }
.langs { display: flex; margin-left: auto; gap: 4px; }
.langs a { padding: 8px 12px; text-decoration: none; line-height: 1.6; }
.langs a[aria-current] { background: #fff; color: var(--ink); font-weight: 600; }
.nav { position: sticky; top: 0; z-index: 30; background: #fff; }
.nav__in { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 44px; }
.brand__name { font-size: 1.35rem; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.brand__name small { display: block; margin-top: 3px; font-size: .875rem; font-weight: 450; letter-spacing: 0; color: var(--soft); }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a { display: flex; align-items: center; gap: 4px; padding: 10px 12px; text-decoration: none; font-size: 1.0625rem; font-weight: 500; white-space: nowrap; }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--red); }
.nav__links .icon { width: 18px; transition: transform .25s var(--ease); }
.nav__drop { position: relative; }
.nav__panel { position: absolute; top: 100%; left: -8px; min-width: 290px; padding: 10px; background: #fff; border-radius: 0 0 var(--r) var(--r); box-shadow: 0 24px 40px -16px #13203f55; border-top: 3px solid var(--red); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .25s var(--ease), visibility 0s .2s; }
.nav__drop:is(:hover, :focus-within):not(.is-shut) .nav__panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav__drop:is(:hover, :focus-within) > a .icon { transform: rotate(180deg); }
.nav__panel a:hover { background: var(--mist); }
.nav__end { display: flex; align-items: center; gap: 18px; }
.nav__call { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav__call:hover { color: var(--red); }
.read { position: relative; height: 1.5px; background: var(--line); }
.read__line { position: absolute; inset: 0; background: var(--red); transform: scaleX(var(--read, 0)); transform-origin: 0 50%; }
.read__mark { position: absolute; top: 0; left: calc(var(--read, 0) * (100% - 14px)); width: 14px; height: 24px; background: var(--red); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); opacity: min(var(--read, 0) * 60, (1 - var(--read, 0)) * 12); }
.sheet { display: none; }
@media (max-width: 1240px) { .nav__call span { display: none; } .nav__call { padding: 10px; } }
@media (max-width: 1080px) {
  .nav__links, .nav__end .nav__call { display: none; }
  .sheet { display: block; }
  .sheet summary { display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 8px 4px 8px 12px; cursor: pointer; list-style: none; font-weight: 600; }
  .sheet summary::-webkit-details-marker { display: none; }
  .sheet summary .icon { width: 26px; height: 26px; }
  .sheet__body { position: absolute; inset: 100% 0 auto; max-height: calc(100dvh - 76px); overflow-y: auto; padding: 12px var(--gut) 110px; background: #fff; box-shadow: 0 30px 40px -20px #13203f66; animation: drop .3s var(--ease); }
  .sheet__body a { display: block; padding: 10px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
  .sheet__body a[aria-current] { color: var(--red); font-weight: 600; }
  .sheet__main a { font-size: 1.35rem; font-weight: 650; }
  .sheet__head { margin-top: 24px; font-weight: 650; color: var(--red); }
  .sheet__body ul:not(.sheet__main) { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } }
@media (max-width: 900px) { .top__hours { display: none; } }
@media (max-width: 680px) {
  .top__addr { display: none; }
  .top__in { gap: 8px; }
  .langs { margin: 0; flex: 1; justify-content: space-between; }
  .langs a { flex: 1; text-align: center; }
  .nav__in { min-height: 66px; gap: 10px; }
  .nav__end { display: none; }
  .brand__mark { width: 36px; }
  .brand__name { font-size: 1.15rem; }
  .sheet summary span { display: none; }
}

/* ---- Hero: the school on its road, books flying up from the terrace */
.hero { position: relative; overflow: clip; background: linear-gradient(#8fc8ff, #d9edff 78%); height: clamp(620px, calc(100svh - 120px), 860px); }
.hero__in { position: relative; z-index: 2; height: 100%; pointer-events: none; }
.hero__in a { pointer-events: auto; }
.hero__text { position: relative; z-index: 2; max-width: min(660px, 46vw); padding-top: clamp(32px, 7vh, 84px); }
.hero__text .lead { max-width: 25em; margin: 20px 0 26px; color: var(--ink); }
.hero__text .btns { max-width: 480px; }
.hero__open { display: inline-block; margin-top: 24px; padding: 9px 34px 9px 16px; background: var(--sun); font-weight: 650; clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 50%, 100% 100%, 0 100%); }
.hero__school { position: absolute; z-index: 1; bottom: -4px; right: max(-10px, calc(50% - 50vw - 10px)); width: min(64vw, 1000px); animation: rise 1.1s var(--ease) both; }
.hero__school picture { position: relative; z-index: 1; display: block; }
.hero__school img { width: 100%; }
.roof { position: absolute; width: 7.9%; animation: pop .6s .9s var(--ease) both; }
.roof--1 { left: 31%; bottom: 74.600%; }
.roof--2 { left: 54%; bottom: 82%; width: 6.7%; animation-delay: 1.1s; }
.roof--3 { left: 76%; bottom: 90%; animation-delay: 1s; }
.roof--3 .flyer { transform: scaleX(-1); }
/* First letters and numbers rise out of each child's book: Gujarati, Hindi, 1 2 3 */
.roof i { position: absolute; left: 22%; top: -6%; font-style: normal; font-weight: 750; font-size: clamp(1.1rem, 1.9vw, 1.75rem); line-height: 1; color: var(--wall); opacity: 0; animation: letter 7.5s calc(1.6s + var(--n) * 2.5s) ease-out infinite; }
.roof--2 i { color: var(--red); animation-delay: calc(2.4s + var(--n) * 2.5s); }
.roof--3 i { left: 60%; color: #3d6a10; animation-delay: calc(3.2s + var(--n) * 2.5s); }
@keyframes letter { 0% { opacity: 0; transform: translate(0, 10px) scale(.4) rotate(-20deg); } 12% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(34px, -118px) scale(1.25) rotate(16deg); } }
.sky { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.fly { position: absolute; width: 132px; translate: calc(var(--px, 0) * 34px) calc(var(--py, 0) * 18px); transition: translate .9s var(--ease); animation: takeoff 1.5s .7s var(--ease) backwards; }
.fly .book { animation: drift 7s ease-in-out infinite alternate; }
.fly--1 { left: 51%; top: 7%; rotate: -9deg; }
.fly--2 { left: 64.500%; top: 12%; width: 88px; rotate: 8deg; }
.fly--3 { left: 87%; top: 5%; width: 104px; rotate: 10deg; }
.fly--4 { left: 77%; top: 3%; width: 60px; rotate: -12deg; }
.fly--2 .book { animation-duration: 5.5s; animation-delay: -2s; }
.fly--3 .book { animation-duration: 6.2s; animation-delay: -4s; }
.fly--4 .book { animation-duration: 8s; animation-delay: -1s; }
.book { display: block; width: 100%; overflow: visible; }
.wing { transform-box: view-box; transform-origin: 40px 30px; animation: beat 3.6s ease-in-out infinite; }
.fly--2 .wing { animation-delay: -1.2s; }
.fly--3 .wing { animation-delay: -2.3s; }
.fly--4 .wing { animation-delay: -.6s; }
@keyframes beat { 0%, 46%, 100% { transform: none; } 10%, 30% { transform: skewY(22deg) scaleX(.78); } 20%, 38% { transform: skewY(-10deg) scaleX(.96); } }
@keyframes drift { from { transform: translate(-12px, 8px) rotate(-4deg); } to { transform: translate(14px, -10px) rotate(5deg); } }
@keyframes rise { from { transform: translateY(14%); } }
@keyframes pop { from { transform: translateY(60%); } }
@keyframes takeoff { from { transform: translate(-40px, 190px) scale(.25); opacity: 0; } }
@media (max-width: 900px) {
  .hero { height: auto; }
  .hero__in { height: auto; }
  .hero__text { padding-top: 32px; max-width: none; }
  .hero__school { position: relative; right: auto; bottom: -3px; width: 122vw; max-width: none; margin: 112px 0 0 calc(-1 * var(--gut) - 6vw); }
  .fly { top: auto; }
  .fly--1 { left: 7%; bottom: 79vw; width: 64px; }
  .fly--2 { left: 42%; bottom: 89vw; width: 50px; }
  .fly--3 { left: 69%; bottom: 97vw; width: 54px; }
  .fly--4 { display: none; }
  @keyframes letter { 0% { opacity: 0; transform: translateY(6px) scale(.4); } 12%, 60% { opacity: 1; } 100% { opacity: 0; transform: translate(14px, -46px) scale(1.1) rotate(12deg); } }
}
@media (max-width: 480px) { .hero .btns .btn { flex: 1 1 100%; } }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--red); color: #fff; padding-inline: max(var(--gut), calc(50vw - 660px + var(--gut))); }
.facts li { padding: 26px 24px 28px 0; }
.facts li + li { padding-left: 24px; border-left: 1px solid #ffffff40; }
.facts b { display: block; font-size: clamp(1.4rem, 2vw, 1.9rem); font-weight: 700; line-height: 1.15; }
.facts span { display: block; margin-top: 4px; font-size: 1rem; line-height: 1.35; color: #ffe3e8; }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr 1fr; padding-block: 8px; } .facts li { padding: 16px 12px 16px 0; } .facts li:nth-child(even) { padding-left: 16px; } .facts li:nth-child(odd) { border-left: 0; padding-left: 0; } }

/* ---- Sections */
.sec { padding-block: var(--sec); }
.sec--tint { background: var(--mist); }
.head { display: grid; grid-template-columns: 7fr 5fr; gap: 16px 48px; align-items: end; margin-bottom: clamp(28px, 4vw, 56px); }
.head > p { font-size: 1.125rem; color: var(--soft); max-width: 34em; }
.head--tight { display: block; margin-bottom: 24px; }
.head--tight h2 { font-size: clamp(1.75rem, 2.6vw, 2.4rem); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px clamp(32px, 6vw, 96px); align-items: start; }
ul + p:has(> .link) { margin-top: 24px; }
.two h2 + *, .join__in h2 + *, .sec > .wrap > h2 + * { margin-top: 28px; }
@media (max-width: 900px) { .head, .two { grid-template-columns: 1fr; } }

/* Photos open like the building's louvres */
.slats { border-radius: 6px; object-fit: cover; }
.js .slats:not(.is-open) { --slat: 0px; -webkit-mask-image: repeating-linear-gradient(#000 0 var(--slat), transparent var(--slat) 26px); mask-image: repeating-linear-gradient(#000 0 var(--slat), transparent var(--slat) 26px); transition: --slat .95s cubic-bezier(.5, 0, .2, 1); }
.js .slats.in:not(.is-open) { --slat: 26px; }

/* ---- Class finder */
.shelf { display: grid; grid-template-columns: repeat(12, 1fr); }
.shelf__one { position: relative; display: grid; justify-items: center; align-content: end; padding: 26px 5px 0; cursor: pointer; border-bottom: 12px solid #a8703a; box-shadow: inset 0 -3px 0 #e2b47e, 0 14px 18px -12px #13203f66; }
.shelf__one input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.tomeb { position: relative; display: block; width: 100%; container-type: inline-size; }
.tome { display: block; width: 100%; }
.tomeb b { position: absolute; left: 58.300%; top: 32.500%; translate: -50% -46%; font-size: 35cqw; font-weight: 750; line-height: 1; color: var(--ink); }
.shelf .tomeb { max-width: 96px; transition: transform .45s var(--ease); transform-origin: 50% 100%; }
.shelf__one:nth-of-type(3n+2) .tomeb { width: 88%; }
.shelf__one:nth-of-type(4n+3) .tomeb { width: 94%; }
.shelf__one:hover .tomeb { transform: translateY(-9px) rotate(-3deg); }
.shelf__one:has(:checked) .tomeb { transform: translateY(-20px) rotate(-5deg) scale(1.14); filter: drop-shadow(0 12px 8px #13203f55); }
.shelf__one:has(:checked) b { color: var(--red); font-weight: 800; }
.shelf__one:has(:focus-visible) { outline: 3px solid var(--wall); border-radius: var(--r); }
.js .finder:not(.in) .shelf .tomeb { transform: translateY(-70px) rotate(8deg); opacity: 0; }
.js .finder.in .shelf .tomeb { transition: transform .6s var(--ease) calc(var(--w, 1) * var(--i) * 55ms), opacity .3s calc(var(--w, 1) * var(--i) * 55ms); }
.plan { display: grid; grid-template-columns: minmax(190px, 3fr) 9fr; gap: 24px 40px; margin-top: 36px; padding: clamp(24px, 3.4vw, 44px); background: var(--mist); border-radius: 12px; }
.plan + .plan { margin-top: 16px; }
.plan[hidden] { display: none; }
.js .plan { margin-top: 36px; animation: turn .45s var(--ease); }
.plan h3 { font-size: clamp(2.5rem, 4.4vw, 4rem); font-weight: 750; line-height: 1; letter-spacing: -.02em; color: var(--red); }
.plan h3:lang(gu), .plan h3:lang(hi) { font-size: clamp(2.2rem, 3.6vw, 3.2rem); }
.plan dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 32px; }
.plan dt { font-weight: 650; margin-bottom: 4px; }
.plan dd { color: var(--soft); line-height: 1.45; }
.plan .btns { grid-column: 2; }
@keyframes turn { from { opacity: 0; transform: translateY(14px); } }
@media (max-width: 900px) {
  .shelf { grid-template-columns: repeat(6, 1fr); row-gap: 14px; }
  .plan, .plan dl { grid-template-columns: 1fr; gap: 18px; }
  .plan .btns { grid-column: auto; }
}

/* ---- Two mediums, each with its letter chart */
.mediums { display: grid; grid-template-columns: 1fr 1fr; }
.medium { display: grid; align-content: space-between; gap: 36px; padding: clamp(36px, 5vw, 72px) max(var(--gut), 2vw); }
.medium--gujarati { --on: var(--ink); --off: #13203f33; background: var(--sun); padding-left: max(var(--gut), calc(50vw - 660px + var(--gut))); }
.medium--hindi { --on: #fff; --off: #ffffff40; background: var(--wall); color: #fff; padding-right: max(var(--gut), calc(50vw - 660px + var(--gut))); }
.medium__text h3 { font-size: clamp(2rem, 3.5vw, 3.25rem); font-weight: 700; letter-spacing: -.018em; }
.medium__text p { max-width: 27em; margin: 12px 0 22px; font-size: 1.125rem; }
.medium--hindi .btn--plain:hover { background: #fff; border-color: #fff; color: var(--ink); }
.letters { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--off); border-left: 2px solid var(--off); }
.letters li { display: grid; justify-items: center; gap: 2px; padding: 16px 4px 12px; border-right: 2px solid var(--off); border-bottom: 2px solid var(--off); transition: background-color .35s, color .35s; }
.letters b { font-size: clamp(2.4rem, 4vw, 3.8rem); font-weight: 600; line-height: 1.25; transition: transform .5s var(--ease); }
.letters span { font-size: 1.0625rem; line-height: 1.4; }
.letters li:is(:hover, .is-on) { background: var(--on); color: var(--bg, var(--sun)); }
.medium--hindi .letters { --bg: var(--wall); }
.letters li:is(:hover, .is-on) b { transform: scale(1.16) rotate(-4deg); }
.medium--bar { display: block; padding-block: 0; padding-inline: max(var(--gut), calc(50vw - 660px + var(--gut))); }
.medium--bar .letters { grid-template-columns: repeat(12, 1fr); border-top: 0; }
.medium--bar .letters li { border-bottom: 0; }
.medium--bar .letters b { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.medium--bar .letters span { font-size: .9375rem; }
@media (max-width: 900px) { .mediums { grid-template-columns: 1fr; } .medium--gujarati, .medium--hindi { padding-inline: var(--gut); } .medium--bar .letters { grid-template-columns: repeat(4, 1fr); } .medium--bar .letters li:nth-child(-n+8) { border-bottom: 2px solid var(--off); } }

/* ---- Inside the building */
.inside__in { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.inside__photos { position: relative; padding-bottom: 22%; }
.inside__photos img { width: 88%; }
.inside__photos img + img { position: absolute; right: 0; bottom: 0; width: 52%; border: 8px solid #fff; border-radius: 10px; }
.rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 32px; margin: 28px 0 24px; }
.rooms li { padding-top: 14px; border-top: 3px solid var(--sky); }
.rooms li:nth-child(4n+1) { border-color: var(--red); }
.rooms li:nth-child(4n+2) { border-color: var(--sun); }
.rooms li:nth-child(4n+3) { border-color: var(--leaf); }
.rooms p { margin-top: 4px; font-size: 1.0625rem; line-height: 1.45; color: var(--soft); }
.rooms--wide { grid-template-columns: repeat(4, 1fr); margin-top: 40px; }
.wide { width: 100%; height: clamp(260px, 42vw, 560px); object-position: 50% 60%; }
@media (max-width: 900px) { .inside__in { grid-template-columns: 1fr; } .rooms--wide { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .rooms { grid-template-columns: 1fr; gap: 16px; } }

/* ---- Festivals: a toran of names and a garba ring */
.fest { background: var(--sand); overflow: clip; }
.fest__in { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.garba { position: relative; aspect-ratio: 1; border-radius: 50%; background: var(--red); margin-left: clamp(-60px, -4vw, 0px); }
.garba img { position: absolute; inset: 19%; width: 62%; height: 62%; border-radius: 50%; object-fit: cover; object-position: 52% 60%; box-shadow: 0 0 0 5px var(--sun); }
.garba__ring { position: absolute; inset: 0; transform: rotate(var(--spin, 0deg)); }
.garba__ring span { position: absolute; left: 50%; top: 1.500%; width: 10%; margin-left: -5%; height: 48.500%; transform-origin: 50% 100%; transform: rotate(var(--a)); }
.garba__ring .flyer { height: 31%; width: 100%; }
.garba__ring .flyer path[stroke] { stroke-width: 3.6; }
.toran { display: flex; flex-wrap: wrap; margin-top: 26px; }
.toran li { flex: 1 0 auto; padding: 0 5px 18px; border-top: 2px solid var(--ink); text-align: center; }
.toran span { --p: 12px; display: block; padding: 10px 14px calc(8px + var(--p)); font-weight: 600; line-height: 1.3; white-space: nowrap; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--p)), 50% 100%, 0 calc(100% - var(--p))); transform-origin: 50% 0; animation: sway 3.6s calc(var(--d) * -.35s) ease-in-out infinite alternate; background: var(--red); color: #fff; }
.toran li[style*="--c:1"] span { background: var(--sun); color: var(--ink); }
.toran li[style*="--c:2"] span { background: var(--wall); }
.toran li[style*="--c:3"] span { background: #3f7a1a; }
.toran li[style*="--c:4"] span { background: #ffffff; color: var(--ink); }
@keyframes sway { from { transform: perspective(400px) rotateX(-12deg) rotate(-1.2deg); } to { transform: perspective(400px) rotateX(16deg) rotate(1.2deg); } }
.fest .lead { margin-top: 14px; }
.fest__tours { margin-top: 10px; }
@media (max-width: 900px) { .fest__in { grid-template-columns: 1fr; } .garba { width: min(100%, 440px); margin-inline: auto; } }

/* ---- Exams: question papers as tall as their marks */
.exams { background: var(--mist); overflow: clip; }
.papers { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; align-items: end; }
.paper { --h: calc(var(--m) * 3.6px); position: relative; height: var(--h); padding: 12px 12px 14px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 3px; background: repeating-linear-gradient(#0000 0 25px, #bcd6f3 25px 26px) 0 34px, #fff; box-shadow: 0 1px 2px #13203f33, 0 14px 24px -14px #13203f55; transform-origin: 50% 100%; transition: transform .35s var(--ease); }
.paper:hover { transform: translateY(-8px) rotate(-1deg); }
.paper__marks { align-self: end; font-size: .9375rem; line-height: 1; background: #fff; padding-bottom: 4px; }
.paper__marks b { font-size: 1.6rem; font-weight: 750; color: var(--red); }
.paper strong { font-weight: 650; line-height: 1.2; background: #fff; padding-top: 4px; }
.paper--board { background: repeating-linear-gradient(#0000 0 25px, #ffffff24 25px 26px) 0 34px, var(--red); color: #fff; }
.paper--board :is(.paper__marks, strong) { background: var(--red); }
.paper--board b { color: var(--sun); }
.js .exams:not(.in) .paper { transform: translateY(60px) rotate(5deg); opacity: 0; }
.js .exams.in .paper { animation: deal .7s calc(var(--i) * 70ms) var(--ease) backwards; }
@keyframes deal { from { transform: translateY(80px) rotate(7deg); opacity: 0; } }
.papers__key { display: flex; gap: 28px; margin-top: 20px; font-weight: 550; }
.papers__key span::before { content: ''; display: inline-block; width: 14px; height: 18px; margin-right: 8px; vertical-align: -3px; background: #fff; border: 1px solid #8ba3c9; border-radius: 2px; }
.papers__key .is-board::before { background: var(--red); border-color: var(--red); }
@media (max-width: 900px) { .papers { grid-template-columns: repeat(4, 1fr); gap: 10px; } .paper { --h: calc(var(--m) * 2.4px + 24px); padding: 10px 8px; } .paper strong { font-size: .9375rem; } .paper__marks { font-size: .8125rem; } .paper__marks b { font-size: 1.25rem; } }

/* ---- Results and a parent's words */
.proof { background: var(--ink); color: #fff; }
.proof__in { display: grid; grid-template-columns: 1fr 1fr; gap: 40px clamp(32px, 6vw, 96px); align-items: center; }
.proof h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 600; letter-spacing: 0; }
.proof__n { display: block; font-size: clamp(5.5rem, 13vw, 11.5rem); font-weight: 750; font-stretch: 82%; line-height: .86; letter-spacing: -.03em; color: var(--sun); font-variant-numeric: tabular-nums; margin-bottom: 14px; }
.proof ul { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 26px; color: #c8d5f2; }
.proof li b { display: block; color: #fff; font-size: 1.2rem; }
.proof blockquote { font-size: clamp(1.25rem, 1.9vw, 1.65rem); line-height: 1.42; text-wrap: pretty; }
.proof figcaption { margin-top: 20px; color: #c8d5f2; }
@media (max-width: 900px) { .proof__in { grid-template-columns: 1fr; } }

/* ---- People */
.people__in { display: grid; grid-template-columns: 4fr 9fr; gap: 24px clamp(24px, 4vw, 56px); }
.person--founder { display: grid; grid-template-rows: auto 1fr auto auto; padding: clamp(24px, 2.6vw, 36px); background: var(--sun); border-radius: 6px; }
.person__mark { width: min(46%, 150px); margin-bottom: 28px; }
.person--founder blockquote { font-size: clamp(1.9rem, 2.6vw, 2.5rem); font-weight: 700; line-height: 1.08; letter-spacing: -.015em; margin-bottom: auto; padding-bottom: 40px; }
.person--founder blockquote:lang(gu), .person--founder blockquote:lang(hi) { line-height: 1.3; letter-spacing: 0; }
.person--trustee { display: grid; grid-template-columns: 4fr 5fr; gap: 24px clamp(24px, 2.8vw, 40px); align-items: center; }
.person--trustee img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; object-position: 50% 20%; }
.person--trustee h3 { font-size: 1.7rem; }
.person--trustee p { margin-top: 14px; }
.person--trustee .person__by { margin: 18px 0 14px; color: var(--soft); }
.person__by b { display: block; color: var(--ink); }
@media (max-width: 1100px) { .people__in { grid-template-columns: 1fr; } .person--founder { min-height: 260px; } }
@media (max-width: 640px) { .person--trustee { grid-template-columns: 1fr; } .person--trustee img { min-height: 0; aspect-ratio: 4 / 4.4; } }

/* ---- Admission steps and the form */
.join { background: linear-gradient(#d9edff, #f3f9ff); }
.join__in { display: grid; grid-template-columns: 5fr 7fr; gap: 40px clamp(32px, 5vw, 80px); align-items: start; }
.join__in--form { grid-template-columns: 7fr 5fr; }
.join__how h2 { margin-bottom: 32px; }
.join .card, .landing .card { background: #fff; }
.steps { position: relative; }
.steps li { position: relative; padding: 0 0 26px 62px; }
.steps li::before { content: ''; position: absolute; left: 19px; top: 40px; bottom: -2px; border-left: 2px solid #b9cfea; }
.steps li:last-child::before { display: none; }
.steps .tomeb { position: absolute; left: 0; top: -4px; width: 40px; z-index: 1; }
.steps p { margin-top: 4px; color: var(--soft); }
.docs { margin-top: 8px; border-top: 2px solid var(--ink); }
.docs summary, .faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-size: 1.15rem; font-weight: 650; line-height: 1.3; cursor: pointer; list-style: none; }
:is(.docs, .faq) summary::-webkit-details-marker { display: none; }
:is(.docs, .faq) summary:hover { color: var(--red); }
:is(.docs, .faq) summary .icon { width: 24px; height: 24px; transition: transform .3s var(--ease); }
:is(.docs, .faq) [open] > summary .icon, .docs[open] > summary .icon { transform: rotate(180deg); }
.docs li, .ticks li { display: flex; gap: 12px; padding: 8px 0; }
.docs .icon, .ticks .icon { color: #3f7a1a; stroke-width: 2.6; margin-top: 2px; }
.docs summary .icon { color: inherit; stroke-width: 1.8; }
.ticks li { border-bottom: 1px solid var(--line); padding: 12px 0; }
.ticks small { display: block; font-size: 1rem; color: var(--soft); }
.card { padding: clamp(22px, 3vw, 44px); border-radius: 12px; background: #fff; box-shadow: 0 30px 60px -30px #13203f4d; }
.card > h2 { font-size: clamp(1.6rem, 2.3vw, 2.2rem); }
.card > h3 { font-size: clamp(1.6rem, 2.3vw, 2.2rem); font-weight: 700; }
.card > p { color: var(--soft); margin: 6px 0 24px; }
.sec:not(.join) .card { border: 1px solid var(--line); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; position: relative; }
.field { min-width: 0; }
.field--full, .form__foot { grid-column: 1 / -1; }
.field label:not(.picks label), .field legend { display: block; padding: 0 0 6px; font-weight: 600; line-height: 1.3; }
.field input:not([type='radio']), .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; background: #fff; border: 1.5px solid #7d8fb5; border-radius: var(--r); line-height: 1.3; }
.field select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313203f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.500l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 22px no-repeat; padding-right: 42px; }
.field :is(input, select, textarea):focus { outline: 3px solid var(--sky); outline-offset: 0; border-color: var(--wall); }
.field__msg { min-height: 1.4em; margin-top: 4px; font-size: .9375rem; line-height: 1.4; color: var(--soft); }
.is-bad :is(input, select) { border-color: var(--red) !important; }
.is-bad .field__msg { color: var(--red); font-weight: 550; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.picks label { position: relative; }
.picks input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.picks span { display: block; padding: 10px 14px; border: 1.5px solid #7d8fb5; border-radius: var(--r); line-height: 1.3; font-size: 1.0625rem; transition: background-color .15s, color .15s; }
.picks input:checked + span { background: var(--wall); border-color: var(--wall); color: #fff; }
.picks input:focus-visible + span { outline: 3px solid var(--wall); outline-offset: 2px; }
.form__legal { flex-basis: 100%; font-size: 1rem; line-height: 1.45; color: var(--soft); }
.form__legal a { font-weight: 600; color: var(--wall); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form__status { flex: 1 1 14em; font-size: 1rem; line-height: 1.4; color: var(--soft); }
.form__status.is-error { color: var(--red); font-weight: 550; }
.form__status.is-success { flex-basis: 100%; padding: 14px 16px; background: #e7f4d6; color: #24480c; border-radius: var(--r); font-weight: 600; }
.done__line { font-size: 1.25rem; font-weight: 600; margin-bottom: 20px; }
@media (max-width: 900px) { .join__in, .join__in--form { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field__msg:empty { display: none; } .form { grid-template-columns: 1fr; gap: 14px; } .card { margin-inline: calc(-1 * var(--gut) + 8px); } .form .btn { width: 100%; } }

/* ---- Fees */
.plan__fee dd { white-space: pre-line; color: var(--ink); font-weight: 600; }
@media (min-width: 901px) { .plan dl:has(.plan__fee:not([hidden])) { grid-template-columns: repeat(2, 1fr); } }
.sec--line { border-top: 1px solid var(--line); }
.fees__note { margin-top: 16px; white-space: pre-line; }
.fees .btns { margin-top: 28px; }
.feecard { padding: clamp(16px, 2vw, 28px) clamp(18px, 2.6vw, 36px) clamp(20px, 2.4vw, 32px); background: #fffdf3; border-radius: 6px; border-top: 10px solid var(--red); box-shadow: 0 1px 2px #13203f33, 0 26px 44px -26px #13203f66; }
.feecard table { width: 100%; border-collapse: collapse; }
.feecard thead th { padding: 10px 0; text-align: right; font-weight: 600; line-height: 1.25; color: var(--soft); vertical-align: bottom; }
.feecard thead th:first-child { text-align: left; }
.feecard thead th + th { padding-left: 14px; }
.feecard tbody :is(th, td) { padding: 10px 0; border-top: 1px solid #bcd6f3; }
.feecard tbody th { text-align: left; font-weight: 650; font-size: 1.125rem; line-height: 1.25; }
.feecard tbody th > span { vertical-align: middle; }
.feecard .tomeb { display: inline-block; width: 34px; margin-right: 14px; }
.feecard :is(td, dd) { padding-left: 12px; text-align: right; font-size: 1.25rem; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.feecard__ask { display: inline-block; max-width: 7em; line-height: 1.25; font-size: 1rem; font-weight: 400; color: var(--soft); white-space: normal; }
.feecard h3 { margin-top: 26px; }
.feecard dl { margin-top: 8px; }
.feecard dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-top: 1px solid #bcd6f3; }

@media (max-width: 560px) { .feecard .tomeb { display: none; } .feecard tbody :is(th, td) { padding-block: 14px; } .feecard tbody th { font-size: 1.0625rem; } .feecard :is(td, dd) { font-size: 1.125rem; } }

/* ---- What parents say: the remarks pages of a school diary */
.voices { background: var(--sand); }
.remarks { display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px clamp(18px, 2.2vw, 32px); margin-top: clamp(28px, 4vw, 52px); }
.remark { --row: 34px; position: relative; grid-column: span 2; display: flex; padding: 56px 28px 22px 68px; border-radius: 4px 14px 14px 4px;
  background: linear-gradient(90deg, #0000 50px, #e9919d 50px 51.5px, #0000 0), repeating-linear-gradient(#0000 0 calc(var(--row) - 1px), #bcd6f3 calc(var(--row) - 1px) var(--row)) 0 50px, #fff;
  box-shadow: 0 1px 2px #13203f33, 0 22px 36px -22px #13203f66; transition: transform .35s var(--ease); }
.remark:hover { transform: translateY(-6px) rotate(-.6deg); }
.remark:nth-child(even):hover { transform: translateY(-6px) rotate(.6deg); }
.remark > :is(.tomeb, .remark__kid) { position: absolute; left: 10px; top: 14px; width: 32px; }
.remark figure { display: flex; flex-direction: column; justify-content: space-between; width: 100%; }
.remark p { font-size: 1.1875rem; line-height: var(--row); text-wrap: pretty; }
.remark figcaption { padding-top: var(--row); line-height: var(--row); }
.remark figcaption b { display: block; font-size: 1.1875rem; font-weight: 650; color: var(--wall); }
.remark figcaption span { color: var(--soft); }
.remark:only-child { grid-column: span 4; }
.remark:first-child:nth-last-child(2), .remark:first-child:nth-last-child(2) ~ li, .remark:first-child:nth-last-child(4), .remark:first-child:nth-last-child(4) ~ li,
.remark:first-child:nth-last-child(5) ~ li:nth-child(n + 4) { grid-column: span 3; }
@media (max-width: 1000px) { .remarks { grid-template-columns: 1fr 1fr; } .remarks .remark.remark { grid-column: auto; } .remarks .remark:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 680px) { .remarks { grid-template-columns: 1fr; } .remark { padding-right: 20px; } }

/* ---- Notices and questions */
.news__in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px clamp(32px, 6vw, 96px); }
.news__in .link { margin-top: 20px; }
.board__row { display: grid; grid-template-columns: 84px 1fr auto; gap: 8px 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.board__date { font-size: .9375rem; line-height: 1.3; color: var(--soft); }
.board__date b { display: block; font-size: 2.1rem; font-weight: 700; line-height: 1; color: var(--ink); }
.board h3 a { text-decoration: none; }
.board h3 a:hover { color: var(--red); }
.board p { margin-top: 4px; color: var(--soft); line-height: 1.45; }
.board__kind { align-self: start; padding: 4px 10px; font-size: .9375rem; line-height: 1.3; background: var(--mist); border-radius: 4px; }
.board__kind.is-pinned { background: var(--sun); }
.faqset + .faqset { margin-top: clamp(40px, 5vw, 72px); }
.faq details { border-top: 1px solid var(--line); }
.faq details > p { padding: 0 40px 20px 0; color: var(--soft); max-width: 42em; }
.faq details[open] summary .icon { transform: rotate(180deg); }
@media (max-width: 900px) { .news__in { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .board__row { grid-template-columns: 66px 1fr; } .board__kind { grid-column: 2; justify-self: start; } }

/* ---- Find us */
.find { background: var(--mist); }
.find__in { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.find address { margin: 18px 0 6px; font-size: 1.25rem; line-height: 1.4; }
.find .btns { margin: 22px 0 34px; }
.near { margin-top: 12px; }
.near li { display: grid; grid-template-columns: 11em 1fr 4em; align-items: center; gap: 12px; padding: 5px 0; }
.near i { height: 8px; border-radius: 4px; background: var(--wall); width: calc(var(--km) / 4.7 * 100%); transform-origin: 0 50%; }
.js .find:not(.in) .near i { transform: scaleX(0); }
.js .find.in .near i { transition: transform 1s .2s var(--ease); }
.near b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.find .small { margin-top: 8px; }
.find__see { position: relative; display: grid; padding: 0 0 clamp(90px, 14vw, 190px) 12%; }
.find__see img { width: 100%; }
.find__map { position: absolute; left: 0; bottom: 0; display: grid; place-content: center; justify-items: center; gap: 10px; width: 58%; aspect-ratio: 4 / 3; padding: 16px; text-align: center; border: 8px solid var(--mist); border-radius: 12px; background: #dfe8f3; }
.find__map:has(iframe) { display: block; padding: 0; }
.find__map iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 4px; }
.find__map .small { max-width: 17em; margin: 0; }
@media (max-width: 900px) { .find__in { grid-template-columns: 1fr; } .find__see { padding: 0; gap: 12px; } .find__map { position: static; width: 100%; border: 0; } }
@media (max-width: 480px) { .near li { grid-template-columns: 8.5em 1fr 3.6em; } }

/* ---- Night: the same building, its floors lighting up */
.night { background: var(--night); color: #fff; }
.close { position: relative; overflow: clip; background: linear-gradient(#1b2c66, var(--night) 88%); }
.close__in { position: relative; display: grid; grid-template-columns: 5fr 7fr; gap: 24px; align-items: end; min-height: min(86vh, 760px); }
.close__text { position: relative; z-index: 2; align-self: center; padding-block: 72px; }
.close .lead { color: #c8d5f2; margin: 16px 0 28px; max-width: 24em; }
.lamps { position: absolute; left: -13%; bottom: 95%; width: 62%; aspect-ratio: 2.1; }
.lamps__book { position: absolute; left: -4%; top: -14%; width: 19%; rotate: -10deg; filter: drop-shadow(0 0 18px #ffcf6b88); }
.lamps i { position: absolute; translate: -50% -50%; font-style: normal; font-weight: 750; font-size: calc(1.2rem + var(--n) * .22rem); line-height: 1; color: #ffe9a8; text-shadow: 0 0 16px #ffb03a; opacity: .12; transition: opacity .8s calc(.3s + var(--n) * .28s); animation: bob 4s calc(var(--n) * -.9s) ease-in-out infinite alternate; }
.is-lit .lamps i, html:not(.js) .lamps i { opacity: 1; }
.lit__flyer { position: absolute; left: 47%; bottom: 79.500%; width: 7%; }
.lit > picture { position: relative; display: block; }
.lit { position: relative; margin-right: calc(-1 * var(--gut)); }
.lit img { width: 100%; }
.lit > .lit__floor { position: absolute; inset: 0; opacity: 0; transition: opacity .9s calc(var(--f) * .45s) ease-out; }
.is-lit .lit > .lit__floor, html:not(.js) .lit > .lit__floor { opacity: 1; }
.foot { background: var(--night); padding: 48px 0 28px; color: #c8d5f2; font-size: 1.0625rem; line-height: 1.5; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }
.foot__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-bottom: 32px; border-bottom: 1px solid #ffffff2e; }
.foot__name { display: flex; align-items: center; gap: 16px; font-size: 1.5rem; font-weight: 700; line-height: 1.15; color: #fff; }
.foot__name small { display: block; margin-top: 4px; font-size: 1.0625rem; font-weight: 400; color: #c8d5f2; }
.foot__mark { width: 52px; padding: 5px; background: #fff; border-radius: 8px; }
.foot__social { display: flex; gap: 4px; margin-inline: -10px; }
.foot__social a { display: grid; place-items: center; width: 48px; height: 48px; color: var(--sun); transition: translate .2s var(--ease), color .2s; }
.foot__social a:hover { translate: 0 -3px; }
.foot__in { display: grid; grid-template-columns: minmax(0, 19em) repeat(3, auto); justify-content: space-between; gap: 40px clamp(24px, 3vw, 48px); padding-block: 36px 40px; }
.foot h3 { margin-bottom: 8px; font-size: 1.125rem; line-height: 1.5; color: var(--sun); }
.foot__in li > :is(a, span), .foot__in address a { display: inline-block; padding-block: 5px; }
.foot__reach li { display: grid; grid-template-columns: 1.25em 1fr; column-gap: 12px; }
.foot__reach .icon { margin-top: calc(5px + .125em); color: var(--sun); }
.foot__legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 20px; border-top: 1px solid #ffffff2e; }
.foot__legal nav { display: flex; gap: 24px; }
.foot__legal a { padding-block: 8px; }
.foot__legal a[aria-current] { color: var(--sun); }
.dock { display: none; }

/* ---- Cookies: the question, and the legal pages */
.ask { position: fixed; right: 24px; bottom: 24px; z-index: 40; width: min(460px, 100vw - 32px); max-height: calc(100dvh - 110px); overflow: auto; padding: 24px; background: #fff; border-top: 5px solid var(--sun); border-radius: var(--r); box-shadow: 0 18px 50px #0b153359; animation: asks .5s var(--ease); }
.ask[hidden] { display: none; }
@keyframes asks { from { transform: translateY(30px); opacity: 0; } }
.ask h2, .choose h2 { font-size: 1.375rem; line-height: 1.2; letter-spacing: 0; }
.ask p { margin-top: 8px; font-size: 1rem; line-height: 1.5; }
.ask a { font-weight: 600; color: var(--wall); }
.ask .ask__btns, .choose .ask__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.ask__btns .btn { justify-content: center; padding-inline: 12px; background: var(--wall); border-color: var(--wall); color: #fff; font-size: 1rem; line-height: 1.25; text-align: center; white-space: normal; }
.ask__btns .btn:hover { background: var(--ink); border-color: var(--ink); }
.choose .btn[aria-pressed="true"] { outline: 3px solid var(--sun); outline-offset: 2px; }
.choose { max-width: 620px; padding: 24px; background: var(--mist); border-radius: var(--r); }
.choose p { margin-top: 10px; }
.choose [role="status"] { font-weight: 600; }
.legal { display: grid; grid-template-columns: 250px minmax(0, 760px); gap: 40px clamp(40px, 7vw, 110px); align-items: start; }
.legal__nav { position: sticky; top: 112px; }
.legal__nav h2 { font-size: 1.125rem; letter-spacing: 0; line-height: 1.5; }
.legal__nav a { display: block; padding: 6px 0; line-height: 1.35; text-decoration: none; color: var(--soft); }
.legal__nav a:hover { color: var(--red); }
.legal__text { display: grid; gap: 44px; }
.legal__text > * { min-width: 0; }
.legal__text section > h2 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.2; }
.legal__text section > * + * { margin-top: 12px; }
.legal__text a:not(.btn) { color: var(--wall); text-underline-offset: 3px; }
.legal__list li { position: relative; padding: 4px 0 4px 24px; }
.legal__list li::before { content: ''; position: absolute; left: 2px; top: calc(4px + .775em - 4px); width: 9px; height: 9px; background: var(--sun); border-radius: 2px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 1.0625rem; line-height: 1.45; }
.legal :is(th, td) { padding: 12px 16px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal thead th { color: var(--soft); font-weight: 600; }
.legal tbody th { width: 24%; font-weight: 650; }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; } .legal__nav { position: static; } .legal__nav ul { columns: 2; column-gap: 24px; } .legal__nav li { break-inside: avoid; } }
@media (max-width: 680px) {
  .ask { left: 16px; right: 16px; bottom: calc(70px + env(safe-area-inset-bottom)); width: auto; padding: 18px; }
  .legal thead { position: absolute; clip-path: inset(50%); }
  .legal :is(tr, th, td) { display: block; width: auto; }
  .legal tbody tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .legal tbody :is(th, td) { width: auto; padding: 3px 0; border: 0; }
  .legal td::before { content: attr(data-label) ': '; color: var(--soft); }
}
@media (max-width: 900px) {
  .close__in { grid-template-columns: 1fr; min-height: 0; }
  .close__text { padding-block: 64px 44vw; }
  .lamps { left: 7%; width: 41%; aspect-ratio: 1.35; }
  .lit { width: 112vw; margin: 0 0 0 calc(-1 * var(--gut) - 4vw); }
  .foot__in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .dock { position: fixed; inset: auto 0 0; z-index: 25; display: grid; grid-template-columns: 1fr 1fr 1.3fr; background: #fff; box-shadow: 0 -6px 24px #13203f33; padding-bottom: env(safe-area-inset-bottom); }
  .dock a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; font-size: 1rem; font-weight: 600; text-decoration: none; }
  .dock__main { background: var(--red); color: #fff; }
  .foot { padding-bottom: 92px; }
  .foot__in > :nth-child(-n+2) { grid-column: 1 / -1; }
}

/* ---- Inner pages */
.phead { position: relative; overflow: clip; background: linear-gradient(#a9d6ff, #e4f2ff); }
.phead--sun { background: var(--sun); }
.phead--red { background: var(--wall); color: #fff; }
.phead--leaf { background: #cfe6a9; }
.phead--night { background: #1b2c66; color: #fff; }
.phead__in { position: relative; display: grid; grid-template-columns: 7fr 5fr; gap: 32px clamp(32px, 5vw, 80px); align-items: center; min-height: clamp(320px, 42vh, 440px); padding-block: 36px 48px; }
.phead h1 { font-size: clamp(2.25rem, 4.3vw, 3.9rem); }
.phead .lead { margin-top: 16px; max-width: 34em; color: inherit; }
.phead .btns { margin-top: 26px; }
.phead:is(.phead--red, .phead--night) .btn--line { border-color: #fff; }
.phead__photo { width: 100%; max-height: 420px; object-fit: cover; border-radius: 6px; animation: settle .7s var(--ease); }
@keyframes settle { from { transform: translateY(14px) rotate(-.6deg); } }
.phead__scene { position: relative; align-self: end; margin: 60px calc(-1 * var(--gut)) -49px 0; }
.phead__scene img { width: 100%; }
.phead__scene .book { position: absolute; width: 21%; animation: bob 5s ease-in-out infinite alternate; }
.phead__scene .book:nth-child(1) { left: 20%; top: -12%; rotate: -8deg; }
.phead__scene .book:nth-child(2) { left: 55%; top: -15%; width: 14%; rotate: 9deg; animation-duration: 4s; }
.phead__scene .book:nth-child(3) { left: 0; top: 6%; width: 11%; rotate: 12deg; animation-duration: 6s; }
@keyframes bob { from { transform: translate(-4px, 6px) rotate(-3deg); } to { transform: translate(8px, -10px) rotate(4deg); } }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 18px; font-size: 1rem; line-height: 1.4; }
.crumbs li + li::before { content: '/'; margin: 0 8px 0 4px; opacity: .6; }
.crumbs a:hover { text-decoration-thickness: 2px; }
@media (max-width: 900px) { .phead__in { grid-template-columns: 1fr; min-height: 0; } .phead__scene { width: 88%; margin: 34px 0 -49px auto; translate: var(--gut); } }

.prose { max-width: 42em; }
.prose p { margin-top: 1em; text-wrap: pretty; }
.prose h2 + p { margin-top: 18px; }
.prose > section + section { margin-top: 52px; }
.prose h2 { font-size: clamp(1.6rem, 2.5vw, 2.3rem); }
.prose .ticks, .prose .faq { margin-top: 14px; }
.rows { border-top: 2px solid var(--ink); }
.rows > div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rows dt { color: var(--soft); }
.rows dd { font-weight: 550; overflow-wrap: anywhere; }
.values { background: var(--ink); color: #fff; }
.values__in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 36px; }
.values h3 { color: var(--sun); }
.values p { margin-top: 8px; font-size: 1.25rem; line-height: 1.4; }
.letter { display: grid; grid-template-columns: 300px 1fr; gap: 32px clamp(32px, 5vw, 80px); align-items: start; padding-block: 44px; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.letter img { width: 100%; aspect-ratio: 4 / 4.6; object-position: 50% 20%; }
.letter__belief { padding: 28px; background: var(--sun); border-radius: 6px; font-size: 1.9rem; font-weight: 700; line-height: 1.12; }
.letter__belief:lang(gu), .letter__belief:lang(hi) { line-height: 1.35; }
.letter h3 { font-size: 1.7rem; }
.letter .letter__role { margin-top: 2px; color: var(--soft); }
.note { margin-top: 32px; font-size: 1.125rem; }
.bands { display: grid; gap: 12px; }
.band { display: grid; grid-template-columns: 210px 3fr 5fr auto; gap: 12px 32px; align-items: center; padding: 24px clamp(20px, 3vw, 40px); border-radius: 10px; background: #dfeed0; }
.band--1 { background: #cfe6ff; }
.band--2 { background: #ffe29a; }
.band b { font-size: clamp(3rem, 5vw, 4.6rem); font-weight: 750; font-stretch: 84%; line-height: 1; letter-spacing: -.03em; }
.band h3 { font-size: 1.5rem; }
.linkrows a { display: block; padding: 20px 0; border-top: 1px solid var(--line); text-decoration: none; }
.linkrows p { margin-top: 4px; color: var(--soft); }
.linkrows a:hover h3 { color: var(--red); }
.linkrows--grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.quote { margin-top: 36px; padding: 24px; background: var(--sand); border-radius: 8px; }
.quote blockquote { font-size: 1.2rem; line-height: 1.45; }
.quote figcaption { margin-top: 10px; color: var(--soft); }
.landing { display: grid; grid-template-columns: 6fr 6fr; gap: 48px clamp(32px, 5vw, 80px); align-items: start; }
.landing__side { position: sticky; top: 104px; }
.landing .card { border: 1px solid var(--line); }
.stdlinks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.stdlinks a { display: block; padding: 10px 18px; border: 2px solid var(--ink); border-radius: var(--r); font-weight: 600; text-decoration: none; }
.stdlinks a:hover { background: var(--ink); color: #fff; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter a { padding: 9px 16px; border: 1.5px solid #7d8fb5; border-radius: var(--r); text-decoration: none; line-height: 1.4; }
.filter a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter span { opacity: .75; }
.photogrid { columns: 3 300px; column-gap: 16px; }
.photogrid li { break-inside: avoid; margin-bottom: 16px; }
.photogrid a { display: block; text-decoration: none; }
.photogrid img { width: 100%; border-radius: 6px; transition: filter .25s; }
.photogrid a:hover img { filter: brightness(1.07) saturate(1.08); }
.photogrid span { display: block; padding-top: 6px; font-size: 1rem; line-height: 1.4; color: var(--soft); }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; border: 0; padding: 20px; background: #0b1533f2; color: #fff; }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; gap: 16px; }
.lightbox figure { display: grid; place-content: center; justify-items: center; gap: 10px; min-height: 0; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 160px); width: auto; }
.lightbox__bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
@media (max-width: 1080px) { .band { grid-template-columns: 130px 1fr auto; } .band > p { grid-column: 2 / -1; grid-row: 2; } }
@media (max-width: 900px) { .landing, .values__in, .linkrows--grid { grid-template-columns: 1fr; } .landing__side { position: static; } .letter { grid-template-columns: 1fr; } .letter img { max-width: 280px; } .strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .band { grid-template-columns: 1fr; gap: 8px; } .band > p { grid-column: auto; grid-row: auto; } .band .btn { justify-self: start; } .rows > div { grid-template-columns: 1fr; gap: 2px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .slats:not(.is-open) { -webkit-mask-image: none; mask-image: none; }
  .js :is(.finder, .exams):not(.in) :is(.tomeb, .paper) { opacity: 1 !important; transform: none !important; }
  .js .find:not(.in) .near i { transform: none; }
}
@media print { html { background: none; } .ask, .cover, .turning, .top, .nav, .dock, .close, .sky, .roof i { display: none !important; } .slats { mask-image: none !important; -webkit-mask-image: none !important; } }
