/* Blue Diamond Play School: "Little sparks, big shine"
   A flat harlequin of blue diamonds, crossed by sunshine argyle stitch lines.
   Layout comes from the Bootstrap 5.3.3 grid; everything else is here. */

@font-face { font-family: "Kantumruy Fallback"; src: local("Arial"); size-adjust: 101%; ascent-override: 96%; descent-override: 26%; }
@font-face { font-family: "Dela Fallback"; src: local("Arial Black"), local("Arial"); size-adjust: 112%; ascent-override: 88%; descent-override: 24%; }

:root {
  --ground: #F5F8FF;
  --paper: #FFFFFF;
  --ink: #182040;
  --ink-2: #3E476E;
  --sapphire: #2A5BD7;
  --sapphire-d: #1D45AE;
  --sky: #7FB2F5;
  --ice: #DDE9FF;
  --ice-2: #C9DBFB;
  --sun: #FFC845;
  --sun-d: #F2B21F;
  --coral: #FF7A6B;
  --line: #B9CCF0;
  --navy: #121A38;
  --r: 6px;
  --display: "Dela Gothic One", "Dela Fallback", system-ui, sans-serif;
  --body: "Kantumruy Pro", "Kantumruy Fallback", system-ui, sans-serif;
  --hindi: "Noto Sans Devanagari", "Kantumruy Pro", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  /* harlequin tiles: one diamond inscribed in each tile, so the corners make the neighbours */
  --hq-ice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='64'%3E%3Cpath d='M24 0L48 32L24 64L0 32Z' fill='%23DDE9FF'/%3E%3C/svg%3E");
  --hq-blue: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='64'%3E%3Cpath d='M24 0L48 32L24 64L0 32Z' fill='%232A5BD7'/%3E%3C/svg%3E");
  --hq-deep: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='64'%3E%3Cpath d='M24 0L48 32L24 64L0 32Z' fill='%23244FC0'/%3E%3C/svg%3E");
  --hq-sky: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='64'%3E%3Cpath d='M24 0L48 32L24 64L0 32Z' fill='%237FB2F5'/%3E%3C/svg%3E");
  --stitch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='128'%3E%3Cpath d='M0 0L96 128M96 0L0 128' stroke='%23FFC845' stroke-width='2' stroke-dasharray='6 6' fill='none'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
}
::selection { background: var(--sun); color: var(--ink); }
html { scrollbar-color: var(--sky) var(--ice); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--sapphire); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
a:hover { color: var(--sapphire-d); }
:focus-visible { outline: 3px solid var(--sapphire); outline-offset: 3px; border-radius: 2px; }
input, select, textarea, button { font: inherit; color: inherit; caret-color: var(--sapphire); }
button { cursor: pointer; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

h1, h2, h3, .h2, .h3 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.35rem + 3.6vw, 4.1rem); line-height: 1.04; }
.h2, h2 { font-size: clamp(1.6rem, 1.15rem + 1.8vw, 2.5rem); }
h3, .h3 { font-size: 1.25rem; }
.lead, .hero-lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); color: var(--ink-2); max-width: 60ch; }
.lead-s { color: var(--ink-2); max-width: 58ch; }
.small, small { font-size: .9rem; }
.note { font-size: .92rem; color: var(--ink-2); }
.cap { font-size: .82rem; color: var(--ink-2); margin: .6rem 0 0; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hi-line { font-family: var(--hindi); font-weight: 600; color: var(--sapphire); margin: .5rem 0 1rem; font-size: 1.15rem; }
.hi-big { font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem); }
.text-link { font-weight: 700; display: inline-flex; gap: .4rem; align-items: center; min-height: 44px; }
.text-link::after { content: ""; width: .55em; height: .55em; background: currentColor; transform: rotate(45deg); flex: none; }

/* ------------------------------------------------ skip link */
.skip { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: var(--r); font-weight: 700; }
.skip:focus, .skip:hover { top: 1rem; color: #fff; }

/* ------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: .7rem 1.2rem;
  border-radius: var(--r); border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.15; text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.btn .ic { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sapphire { background: var(--sapphire); color: #fff; box-shadow: 0 6px 16px -8px rgba(42, 91, 215, .7); }
.btn-sapphire:hover { background: var(--sapphire-d); color: #fff; }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: var(--sun-d); color: var(--ink); }
.btn-line { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--sapphire); color: var(--sapphire-d); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--ice); color: var(--ink); }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1.4rem 0; }

/* ------------------------------------------------ header + harlequin ribbon */
.top { position: sticky; top: 0; z-index: 40; background: var(--ground); }
.top-row { display: flex; align-items: center; gap: 1rem; min-height: 76px; }
.brand { display: block; flex: none; margin-right: auto; }
.brand img { width: 186px; height: auto; }
.top-side { display: flex; align-items: center; gap: 1rem; }
.top-call { min-height: 44px; padding: .5rem 1rem; }
.open-note.open-top { display: none; }
.menu-btn {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 46px; padding: .5rem .95rem;
  background: var(--sapphire); color: #fff; border: 0; border-radius: var(--r); font-weight: 700;
}
.menu-btn .ic { width: 22px; height: 22px; }
.ribbon { display: none; }
.ribbon-edge { height: 12px; overflow: hidden; }
.ribbon-edge svg, .foot-edge svg { width: 100%; height: 12px; }

@media (min-width: 576px) {
  .brand img { width: 217px; }
}
@media (max-width: 575.98px) {
  .top-call { display: none; }
}
@media (min-width: 992px) {
  .menu-btn { display: none; }
  .open-note.open-top { display: flex; margin: 0; }
  .top.is-scrolled .top-row { min-height: 64px; }
  .ribbon {
    display: block;
    background-color: var(--sapphire);
    background-image: var(--stitch), var(--hq-deep);
    background-size: 96px 128px, 48px 64px;
    background-position: 24px -18px, 0 -16px;
  }
  .ribbon-links { list-style: none; display: flex; gap: .25rem; padding: .45rem 0; }
  .ribbon-links a {
    display: inline-flex; align-items: center; gap: .55rem; min-height: 42px; padding: .35rem 1rem .35rem .8rem;
    color: #fff; text-decoration: none; font-weight: 600; border-radius: var(--r);
    background: rgba(18, 26, 56, .78);
    transition: background-color .2s var(--ease), color .2s var(--ease);
  }
  .ribbon-links a:hover { background: var(--navy); color: #fff; }
  .ribbon-links a[aria-current="page"] { background: var(--paper); color: var(--ink); }
  .ribbon-links a:focus-visible { outline-color: var(--sun); }
}
.gem { width: 11px; height: 11px; transform: rotate(45deg); border: 2px solid var(--sky); flex: none; transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.ribbon-links a:hover .gem { background: var(--sky); }
.ribbon-links a[aria-current="page"] .gem { background: var(--sun); border-color: var(--ink); }

/* open / closed note (js/open.js) */
.open-note { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .55rem; font-size: .95rem; margin: 0 0 .25rem; }
.open-dot { width: 10px; height: 10px; transform: rotate(45deg); background: var(--sky); flex: none; }
.open-note[data-state="open"] .open-dot { background: #1F9D63; }
.open-note[data-state="closed"] .open-dot { background: var(--coral); }
.open-txt { font-weight: 700; }
.open-src { color: var(--ink-2); font-size: .82rem; }
.open-top .open-src { display: none; }

/* ------------------------------------------------ phone sheet that tiles in as diamonds */
.sheet { position: fixed; inset: 0; z-index: 60; overflow: hidden auto; color: #fff; }
.sheet[hidden] { display: none; }
.sheet-tiles {
  position: fixed; inset: -10vh -10vw; display: grid;
  grid-template-columns: repeat(6, 1fr); grid-auto-rows: 15vh; background: var(--navy);
}
.sheet-tiles span {
  display: block; width: 142%; height: 142%; margin: -21%;
  background: var(--sapphire);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  transform: scale(0); animation: tile-in .5s var(--ease) forwards; animation-delay: calc(var(--i) * 12ms);
}
.sheet-tiles span:nth-child(odd) { background: #244FC0; }
.sheet-tiles span:nth-child(7n + 3) { background: #3767E0; }
@keyframes tile-in { to { transform: scale(1); } }
.sheet-inner { position: relative; padding: 1.1rem 1.25rem 2rem; max-width: 560px; margin: 0 auto; animation: sheet-text .45s .18s var(--ease) both; }
@keyframes sheet-text { from { opacity: 0; transform: translateY(-14px); } }
.sheet-close {
  display: inline-flex; align-items: center; gap: .45rem; margin-left: auto; min-height: 46px; padding: .5rem .95rem;
  background: #fff; color: var(--ink); border: 0; border-radius: var(--r); font-weight: 700;
}
.sheet-inner > .sheet-close { display: flex; }
.sheet-links { list-style: none; margin: 1.4rem 0; }
.sheet-links li + li { margin-top: .35rem; }
.sheet-links a {
  display: flex; align-items: center; gap: .9rem; min-height: 54px; padding: .4rem .9rem;
  color: #fff; text-decoration: none; font-family: var(--display); font-size: 1.5rem;
  border-radius: var(--r); background: rgba(18, 26, 56, .45);
}
.sheet-links a[aria-current="page"] { background: #fff; color: var(--ink); }
.sheet-links .gem { width: 14px; height: 14px; border-color: var(--sun); }
.sheet-links a[aria-current="page"] .gem { background: var(--sun); border-color: var(--ink); }
.sheet-links a:focus-visible, .sheet-close:focus-visible, .sheet-acts a:focus-visible { outline-color: var(--sun); }
.sheet-acts { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
body.sheet-open { overflow: hidden; }

/* ------------------------------------------------ sections */
.sec { padding: clamp(3.5rem, 2.5rem + 4vw, 6.5rem) 0; position: relative; }
.sec-ice { background: var(--ice); }
.sec-ice .lead-s, .sec-ice .note { color: #333C63; }

/* ------------------------------------------------ hero */
.hero { padding: 1.5rem 0 3.5rem; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 0 auto; width: 46%;
  background-image: var(--hq-ice); background-size: 48px 64px; opacity: .55;
  -webkit-mask-image: linear-gradient(to left, #000 30%, transparent);
          mask-image: linear-gradient(to left, #000 30%, transparent);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero h1 { margin-bottom: .35rem; }
.hero-copy .actions { margin: 1.2rem 0 1.3rem; }
.hq { margin: 0 auto; max-width: 196px; }
.hq-cap { font-size: .74rem; margin-top: .35rem; }
@media (max-width: 767.98px) {
  .hero { padding-top: .8rem; }
  .hero-copy .actions .btn-sun, .hero-copy .actions .btn-line { display: none; }
  .hero-copy .actions { margin: 1rem 0; }
  .hero .hero-lead { font-size: 1rem; margin-bottom: .7rem; }
  .hero .g-4 { --bs-gutter-y: .9rem; }
}
.hq-field { position: relative; aspect-ratio: 1; }
.hq-svg { width: 100%; height: 100%; overflow: visible; }
.hq-d { animation: trade 7s ease-in-out infinite alternate; animation-delay: calc(var(--k) * -.55s); }
@keyframes trade { 0%, 35% { fill: var(--a); } 65%, 100% { fill: var(--b); } }
.hq-stitch { stroke: var(--sun); stroke-width: 3; stroke-dasharray: 9 8; fill: none; stroke-linecap: round; }
.hq-photo {
  position: absolute; left: 28.57%; top: 28.57%; width: 42.86%; height: 42.86%;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: var(--ice);
}
.hq-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hq-cap { text-align: center; }
.rating {
  display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--ink);
  padding: .25rem .25rem .25rem 0; min-height: 56px;
}
.rating:hover { color: var(--ink); }
.rating:hover strong { text-decoration: underline; text-underline-offset: .2em; }
.rating-gem { width: 50px; height: 50px; display: grid; place-items: center; flex: none; position: relative; }
.rating-gem::before { content: ""; position: absolute; inset: 7px; background: var(--sun); transform: rotate(45deg); border-radius: 3px; }
.rating-gem span { position: relative; font-weight: 700; font-size: 1rem; }
.rating-txt { display: flex; flex-direction: column; line-height: 1.35; }
.rating-txt span { font-size: .85rem; color: var(--ink-2); }

@media (min-width: 576px) { .hq { max-width: 380px; } }
@media (min-width: 992px) {
  .hero { padding: 3rem 0 5rem; }
  .hq { max-width: 600px; margin-right: -1rem; }
}

/* ------------------------------------------------ page head (inner pages) */
.phead { position: relative; overflow: hidden; padding: 2.4rem 0 3rem; border-bottom: 1px solid var(--line); }
.phead .container { position: relative; z-index: 1; }
.phead h1 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.6rem); margin-top: 1rem; }
.phead .lead { margin-bottom: 0; }
.phead-field {
  position: absolute; right: -24px; top: 0; bottom: 0; width: min(38vw, 520px);
  background-color: var(--sky);
  background-image: var(--stitch), var(--hq-blue);
  background-size: 96px 128px, 48px 64px;
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
  display: none;
}
.crumb { font-size: .9rem; color: var(--ink-2); display: flex; gap: .5rem; flex-wrap: wrap; }
.crumb a { color: var(--ink-2); }
@media (min-width: 992px) {
  .phead { padding: 3.2rem 0 4rem; }
  .phead-field { display: block; }
}

/* ------------------------------------------------ diamond tiles (stages) */
.dt-grid { position: relative; width: 100%; max-width: 520px; aspect-ratio: 5 / 3.15; margin: 1.6rem 0 .5rem; }
.dt {
  position: absolute; width: 40%; aspect-ratio: 1; padding: 0; border: 0; background: none; color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.dt:nth-child(1) { left: 0; top: 0; }
.dt:nth-child(2) { left: 20%; top: 37%; }
.dt:nth-child(3) { left: 40%; top: 0; }
.dt:nth-child(4) { left: 60%; top: 37%; }
.dt::before {
  content: ""; position: absolute; inset: 0;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: var(--ice-2); transition: background-color .25s var(--ease);
}
.dt-diamond {
  position: absolute; inset: 7px; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: var(--sky); overflow: hidden;
}
.dt-pic, .dt-pic img { display: block; width: 100%; height: 100%; }
.dt-pic img { object-fit: cover; transition: transform .5s var(--ease); }
.dt-pat { position: absolute; inset: 0; background-image: var(--stitch), var(--hq-blue); background-size: 48px 64px, 24px 32px; }
.dt:nth-child(2) .dt-pat { background-color: var(--ice); background-image: var(--stitch), var(--hq-sky); }
.dt:nth-child(3) .dt-pat { background-color: var(--sapphire); background-image: var(--stitch), var(--hq-sky); }
.dt:nth-child(4) .dt-pat { background-color: var(--sky); background-image: var(--stitch), var(--hq-ice); }
.dt-label {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: #fff; color: var(--ink); font-weight: 700; font-size: clamp(.8rem, .7rem + .4vw, 1rem);
  padding: .3rem .7rem; border-radius: var(--r); white-space: nowrap; box-shadow: 0 4px 12px -6px rgba(24, 32, 64, .45);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.dt:hover::before { background: var(--sky); }
.dt:hover .dt-pic img { transform: scale(1.06); }
.dt[aria-selected="true"]::before { background: var(--sun); }
.dt[aria-selected="true"] .dt-label { background: var(--ink); color: #fff; }
.dt:focus-visible { outline: none; }
.dt:focus-visible::before { background: var(--sapphire); }
.dt:focus-visible .dt-label { outline: 3px solid var(--sapphire); outline-offset: 2px; }
.dt-panels { position: relative; }
.dt-panel { background: var(--paper); border-radius: var(--r); padding: 1.6rem 1.5rem 1.4rem; position: relative; box-shadow: 0 18px 40px -28px rgba(24, 32, 64, .45); }
.dt-panel { border: 1.5px solid var(--ice-2); }
.dt-panel::before { content: ""; position: absolute; right: 1.4rem; top: -11px; width: 22px; height: 22px; transform: rotate(45deg); background: var(--sun); }
.dt-panel:focus-visible { outline-offset: 4px; }
.dt-h { font-size: 1.6rem; margin-top: .3rem; }
.dt-age { display: block; font-family: var(--body); font-weight: 600; font-size: 1rem; color: var(--sapphire); margin-top: .35rem; letter-spacing: 0; }
.dt-panel .note { margin: 1rem 0 0; padding-top: .9rem; border-top: 1px dashed var(--line); }
@media (min-width: 992px) { .dt-panel { padding: 2.2rem 2.2rem 1.8rem; } }

/* diamond bullets */
.gems { list-style: none; margin: 0 0 1rem; }
.gems li { position: relative; padding-left: 1.6rem; margin: .45rem 0; }
.gems li::before { content: ""; position: absolute; left: .2rem; top: .55em; width: 9px; height: 9px; background: var(--sapphire); transform: rotate(45deg); }
.gems li:nth-child(3n + 2)::before { background: var(--sun); outline: 1px solid var(--sun-d); }
.gems li:nth-child(3n)::before { background: var(--coral); }

/* ------------------------------------------------ sample day: a row of diamonds with leader lines */
.day { background: var(--paper); }
.day-head { max-width: 760px; }
.sample-tag {
  display: inline-block; font-size: .9rem; font-weight: 600; color: var(--ink);
  background: var(--ice); padding: .35rem .7rem; border-radius: var(--r); border: 1.5px dashed var(--sapphire);
}
.sd-row { list-style: none; margin-top: 2.2rem; position: relative; display: grid; gap: 0; }
.sd-item { position: relative; display: grid; grid-template-columns: 56px 34px 1fr; align-items: center; min-height: 76px; }
.sd-gem { width: 44px; height: 44px; margin: 6px; transform: rotate(45deg); background: var(--sapphire); border-radius: 4px; position: relative; z-index: 1; }
.sd-item:nth-child(4n + 2) .sd-gem { background: var(--sky); }
.sd-item:nth-child(4n + 3) .sd-gem { background: var(--sun); }
.sd-item:nth-child(4n) .sd-gem { background: var(--coral); }
.sd-lead { height: 0; border-top: 2px dotted var(--ink-2); }
.sd-cap { display: flex; flex-direction: column; line-height: 1.35; padding-left: .5rem; }
.sd-cap strong { font-size: 1.05rem; }
.sd-cap > span:last-child { color: var(--ink-2); font-size: .93rem; }
.sd-time { font-weight: 700; color: var(--sapphire); font-size: .88rem; }
/* phones: a vertical stitch line threads the diamonds */
.sd-row::before { content: ""; position: absolute; left: 27px; top: 30px; bottom: 30px; border-left: 3px dashed var(--sun); }
@media (min-width: 992px) {
  .sd-row { grid-template-columns: repeat(7, 1fr); margin-top: 3rem; }
  .sd-row::before { left: 7%; right: 7%; top: 31px; bottom: auto; border-left: 0; border-top: 3px dashed var(--sun); }
  .sd-item { grid-template-columns: 1fr; grid-template-rows: 62px auto auto; justify-items: center; text-align: center; min-height: 0; }
  .sd-gem { width: 44px; height: 44px; margin: 9px 0; }
  .sd-lead { width: 0; height: 26px; border-top: 0; border-left: 2px dotted var(--ink-2); }
  .sd-item:nth-child(even) .sd-lead { height: 74px; }
  .sd-cap { padding: .5rem .35rem 0; align-items: center; }
}

/* ------------------------------------------------ parents' words: sapphire harlequin band */
.voices-sec {
  background-color: var(--sapphire);
  background-image: var(--hq-deep);
  background-size: 48px 64px;
  color: #fff;
}
.voices-sec .h2 { color: #fff; }
.voices-sec .lead-s { color: #E6EEFF; }
.voices-sec .text-link { color: #fff; }
.voices-sec .text-link::after { background: var(--sun); }
.voices-sec .text-link:focus-visible { outline-color: var(--sun); }
@media (min-width: 992px) { .voices-sec .col-lg-7 { display: flex; justify-content: flex-end; } }
.voices { display: grid; gap: 1rem; margin-top: 2rem; }
.voice { margin: 0; background: var(--navy); padding: 1.6rem 1.5rem 1.4rem; border-radius: var(--r); position: relative; }
.voice-gem { position: absolute; top: -11px; left: 1.5rem; width: 22px; height: 22px; transform: rotate(45deg); background: var(--sun); }
.voice:nth-child(2) .voice-gem { background: var(--coral); }
.voice:nth-child(3) .voice-gem { background: var(--sky); }
.voice blockquote { margin: 0; }
.voice blockquote p { font-size: 1.22rem; line-height: 1.45; font-weight: 600; margin-bottom: 1rem; color: #fff; }
.voice figcaption { color: #CFDBFA; font-size: .92rem; }
.voice figcaption strong { color: #fff; }
@media (min-width: 768px) { .voices { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; } }

/* ------------------------------------------------ visit */
.hours { width: 100%; border-collapse: collapse; margin-top: 1.2rem; font-variant-numeric: tabular-nums; }
.hours caption { caption-side: bottom; text-align: left; font-size: .85rem; color: var(--ink-2); padding-top: .6rem; }
.hours th, .hours td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours th { font-weight: 600; }
.hours tr.today { background: var(--ice); }
.hours tr.today th::after { content: " (today)"; font-weight: 700; color: var(--sapphire); }
.sec-ice .hours tr.today { background: var(--paper); }
.addr-card, .map-card { position: relative; border-radius: var(--r); overflow: hidden; background: var(--sapphire); color: #fff; min-height: 100%; }
.addr-card { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 2rem 1.6rem; background-image: var(--stitch), var(--hq-deep); background-size: 96px 128px, 48px 64px; }
.addr-gem { display: block; align-self: flex-start; width: 34px; height: 34px; transform: rotate(45deg); background: var(--sun); margin: .4rem 0 1.4rem .4rem; }
.map-addr { font-size: 1.2rem; line-height: 1.5; background: var(--navy); display: inline-block; padding: .9rem 1.1rem; border-radius: var(--r); }
.map-addr strong { font-family: var(--display); font-weight: 400; font-size: 1.3rem; }
.map-plus { font-size: .92rem; color: #E6EEFF; }
.addr-card .map-plus, .map-fallback .map-plus { background: var(--navy); display: inline-block; padding: .2rem .55rem; border-radius: 4px; }
.map-acts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .4rem; }
.addr-card .btn-sapphire, .map-card .btn-sapphire { background: var(--sun); color: var(--ink); box-shadow: none; }
.addr-card .btn-sapphire:hover, .map-card .btn-sapphire:hover { background: var(--sun-d); color: var(--ink); }
.addr-card .btn-line, .map-card .btn-line { background: #fff; border-color: #fff; }
.addr-card a:focus-visible, .map-card :focus-visible { outline-color: var(--sun); }
.map-card { background-image: var(--stitch), var(--hq-deep); background-size: 96px 128px, 48px 64px; display: flex; flex-direction: column; }
.map-card iframe { display: block; width: 100%; height: 340px; border: 0; background: var(--ice); }
.map-fallback { padding: 1.6rem; }
@media (min-width: 992px) { .addr-card { padding: 2.6rem 2.4rem; } .map-fallback { padding: 2rem 2.2rem; } }

/* ------------------------------------------------ diamond-fold FAQ */
.folds { border-top: 1px solid var(--line); }
.fold { border-bottom: 1px solid var(--line); }
.fold summary {
  list-style: none; display: flex; align-items: center; gap: 1rem; min-height: 64px; padding: .8rem .2rem;
  cursor: pointer; font-weight: 700; font-size: 1.1rem;
}
.fold summary::-webkit-details-marker { display: none; }
.fold summary:hover .fold-q { color: var(--sapphire-d); }
.fold-gem { position: relative; width: 30px; height: 30px; flex: none; }
.fold-gem::before, .fold-gem::after { content: ""; position: absolute; inset: 5px; transform: rotate(45deg); transition: transform .35s var(--ease), background-color .25s var(--ease); }
.fold-gem::before { background: var(--ice-2); }
.fold-gem::after { inset: 10px; background: var(--sapphire); }
/* the fold: the diamond halves fold open, one blue, one sunshine */
.fold[open] .fold-gem::before { background: var(--sun); transform: rotate(45deg) scale(1.08); }
.fold[open] .fold-gem::after { transform: rotate(135deg) scaleX(.25); background: var(--ink); }
.fold-a { padding: 0 .2rem 1.2rem calc(30px + 1.2rem); color: var(--ink-2); max-width: 64ch; }
.fold[open] .fold-a { animation: fold-in .4s var(--ease); }
@keyframes fold-in { from { opacity: 0; transform: translateY(-6px); clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); } to { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); } }
.fold:target summary { background: var(--ice); }

/* ------------------------------------------------ closing band */
.close-band { background: var(--sun); overflow: hidden; }
.close-band::after {
  content: ""; position: absolute; right: 7%; top: 50%; width: 210px; height: 210px; transform: translateY(-50%) rotate(45deg);
  background-image: var(--stitch), var(--hq-blue); background-size: 96px 128px, 48px 64px; background-color: var(--sky); border: 8px solid #fff;
  display: none;
}
.close-band .container { position: relative; z-index: 1; }
.close-band .lead-s { color: var(--ink); }
.close-band .btn-sun { background: var(--ink); color: #fff; }
.close-band .btn-sun:hover { background: var(--navy); color: #fff; }
.close-band .btn-line { border-color: var(--ink); }
@media (min-width: 992px) { .close-band::after { display: block; } }

/* ------------------------------------------------ "to be filled in by the school" placeholders */
.tbc {
  height: 100%; padding: 1.3rem 1.3rem 1.1rem; border-radius: var(--r);
  border: 2px dashed var(--sapphire); background: rgba(255, 255, 255, .7);
}
.tbc-title { font-size: 1.4rem; margin: 0 0 .4rem; }
.tbc p { margin: 0 0 .7rem; color: var(--ink-2); }
.tbc .tbc-tag { display: inline-flex; align-items: center; gap: .45rem; margin: 0; font-size: .84rem; font-weight: 700; color: var(--sapphire-d); }
.tbc .tbc-tag::before { content: ""; width: 8px; height: 8px; border: 2px solid currentColor; transform: rotate(45deg); }

/* ------------------------------------------------ photo frames with a harlequin border */
.frame-d { margin: 0; }
.frame-d img {
  width: 100%; border-radius: var(--r);
  padding: 12px; background-color: var(--sapphire); background-image: var(--hq-sky); background-size: 18px 24px;
}
.frame-left img { background-color: var(--sun); background-image: var(--hq-ice); }

/* about: what we know */
.known { margin: 1rem 0; }
.known-row { display: grid; grid-template-columns: 1fr; gap: .1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.known dt { font-size: .85rem; font-weight: 700; color: var(--sapphire-d); }
.known dd { margin: 0; font-weight: 600; }
@media (min-width: 576px) { .known-row { grid-template-columns: 9.5rem 1fr; gap: 1rem; } }

/* learning: age guide */
.ages { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--r); overflow: hidden; font-variant-numeric: tabular-nums; }
.ages caption { caption-side: bottom; text-align: left; font-size: .85rem; color: #333C63; padding-top: .6rem; }
.ages th, .ages td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--ice-2); }
.ages thead th { background: var(--ink); color: #fff; font-weight: 700; font-size: .92rem; }
.ages tbody th { font-family: var(--display); font-weight: 400; }

/* ------------------------------------------------ admissions stations */
.stations-sec { padding-bottom: 3rem; }
.stations { list-style: none; display: grid; gap: 1.6rem; counter-reset: st; position: relative; }
.station { position: relative; padding-left: 74px; }
.station-gem { position: absolute; left: 0; top: -.2rem; width: 56px; height: 56px; display: grid; place-items: center; }
.station-gem::before { content: ""; position: absolute; inset: 8px; transform: rotate(45deg); background: var(--sapphire); border-radius: 4px; }
.station:nth-child(2) .station-gem::before { background: var(--sky); }
.station:nth-child(3) .station-gem::before { background: var(--sun); }
.station:nth-child(4) .station-gem::before { background: var(--coral); }
.station-gem span { position: relative; font-family: var(--display); color: #fff; font-size: 1.15rem; }
.station:nth-child(n + 2) .station-gem span { color: var(--ink); }
.station-h { font-size: 1.45rem; margin-bottom: .35rem; }
.station p { color: var(--ink-2); margin: 0; }
.stations::before { content: ""; position: absolute; left: 27px; top: 40px; bottom: 40px; border-left: 3px dashed var(--sun-d); }
@media (min-width: 992px) {
  .stations { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .stations::before { left: 28px; right: 12%; top: 26px; bottom: auto; border-left: 0; border-top: 3px dashed var(--sun-d); }
  .station { padding: 76px 0 0; }
}

/* ------------------------------------------------ enquiry form */
.sec-form { background: var(--ice); }
.enquiry-box { position: relative; background: var(--paper); border-radius: var(--r); padding: 1.6rem 1.25rem; box-shadow: 0 24px 50px -36px rgba(24, 32, 64, .5); }
.enquiry-box { border: 1.5px solid var(--ice-2); }
.enquiry-box::before { content: ""; position: absolute; right: 1.6rem; top: -13px; width: 26px; height: 26px; transform: rotate(45deg); background: var(--coral); }
.enquiry-box > .station-gem { position: relative; top: 0; margin: .4rem 0 .6rem -4px; }
.enq-title { margin-top: .6rem; }
.enq-intro { color: var(--ink-2); max-width: 60ch; }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; }
.opt { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .65rem .85rem; background: var(--ground);
  border: 1.5px solid #8D9CC4; border-radius: var(--r);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { min-height: 110px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath d='M7 2l5 5-5 5-5-5z' fill='%232A5BD7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--sapphire); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sapphire); background: #fff; box-shadow: 0 0 0 3px rgba(42, 91, 215, .28); }
.field [aria-invalid="true"] { border-color: #C2361F; background: #FFF4F2; }
.hint { font-size: .85rem; color: var(--ink-2); margin: .35rem 0 0; }
.err { font-size: .9rem; color: #B32D18; font-weight: 700; margin: .35rem 0 0; display: flex; gap: .4rem; align-items: center; }
.err::before { content: ""; width: 8px; height: 8px; background: currentColor; transform: rotate(45deg); flex: none; }
.err[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-summary { background: #FFF4F2; color: #8E2312; border: 1.5px solid #E8A396; border-radius: var(--r); padding: .8rem 1rem; margin-bottom: 1rem; font-weight: 700; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 1.4rem; }
.form-foot .small { margin: 0; color: var(--ink-2); }
.form-result:empty { display: none; }
.form-result { margin-top: 1.2rem; padding: 1rem 1.1rem; border-radius: var(--r); font-weight: 600; }
.form-result.ok { background: #E6F6EE; color: #11593A; border: 1.5px solid #8ACCAB; }
.form-result.bad { background: #FFF4F2; color: #8E2312; border: 1.5px solid #E8A396; }
.btn.is-loading .btn-label::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: .6rem; background: currentColor; transform: rotate(45deg); animation: spin-d 1s linear infinite; }
@keyframes spin-d { to { transform: rotate(405deg); } }
@media (min-width: 768px) { .enquiry-box { padding: 2.4rem 2.4rem 2rem; } }

/* ------------------------------------------------ school life: gallery, lightbox, notices */
.gallery { list-style: none; display: grid; gap: 1rem; margin-top: 1.8rem; }
.g-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--ice); border-radius: var(--r); overflow: hidden; }
.g-btn img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; transition: transform .6s var(--ease); }
.g-btn:hover img { transform: scale(1.04); }
.g-cap {
  position: absolute; left: .8rem; bottom: .8rem; background: #fff; color: var(--ink); font-weight: 700; font-size: .95rem;
  padding: .3rem .7rem .3rem 1.7rem; border-radius: var(--r);
}
.g-cap::before { content: ""; position: absolute; left: .65rem; top: 50%; width: 8px; height: 8px; margin-top: -4px; background: var(--sapphire); transform: rotate(45deg); }
@media (min-width: 768px) {
  .gallery { grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; }
  .g-0 { grid-row: 1 / 3; }
  .g-0 .g-btn, .g-0 .g-btn img { height: 100%; }
  .g-0 .g-btn img { aspect-ratio: auto; }
}
.lightbox { border: 0; padding: 0; max-width: min(1000px, 94vw); width: 100%; background: var(--navy); color: #fff; border-radius: var(--r); }
.lightbox::backdrop { background: rgba(18, 26, 56, .82); }
.lb-img { width: 100%; height: auto; max-height: 72vh; object-fit: contain; background: #000; }
.lb-cap { padding: .9rem 1.1rem 0; margin: 0; color: #DCE6FF; font-size: .95rem; }
.lb-acts { display: flex; flex-wrap: wrap; gap: .5rem; padding: .9rem 1.1rem 1.1rem; }
.lb-acts .btn { min-height: 44px; }
.lb-acts .btn-sapphire { margin-left: auto; background: var(--sun); color: var(--ink); box-shadow: none; }
.lightbox :focus-visible { outline-color: var(--sun); }
.notices { list-style: none; display: grid; gap: 1rem; margin-top: 1.6rem; }
.notice { position: relative; padding: 1.4rem 1.3rem 1.2rem; background: var(--paper); border-radius: var(--r); border: 1.5px solid var(--line); }
.notice::after { content: ""; position: absolute; right: 1rem; top: -9px; width: 18px; height: 18px; transform: rotate(45deg); background: var(--coral); }
.notice:nth-child(2)::after { background: var(--sun); }
.notice:nth-child(3)::after { background: var(--sky); }
.notice h3 { font-size: 1.15rem; margin: .7rem 0 .35rem; }
.notice p { margin: 0; color: var(--ink-2); }
.notice-tag { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--ink); background: var(--ice); border: 1.5px dashed var(--sapphire); padding: .1rem .5rem; border-radius: 4px; }
@media (min-width: 768px) { .notices { grid-template-columns: repeat(3, 1fr); } }

/* ------------------------------------------------ contact: ways to reach */
.reach { list-style: none; display: grid; gap: 1rem; }
.reach-a {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; min-height: 88px;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.reach-a:hover { border-color: var(--sapphire); color: var(--ink); transform: translateY(-2px); box-shadow: 0 12px 26px -18px rgba(24, 32, 64, .55); }
.reach-a > span:last-child { display: flex; flex-direction: column; line-height: 1.35; }
.reach-a strong { font-size: 1.12rem; }
.reach-a > span:last-child > span { color: var(--ink-2); font-size: .93rem; }
.reach-gem { position: relative; width: 54px; height: 54px; display: grid; place-items: center; flex: none; color: #fff; }
.reach-gem::before { content: ""; position: absolute; inset: 8px; transform: rotate(45deg); background: var(--sapphire); border-radius: 4px; }
.reach li:nth-child(2) .reach-gem::before { background: #1F7A54; }
.reach li:nth-child(3) .reach-gem { color: var(--ink); }
.reach li:nth-child(3) .reach-gem::before { background: var(--sun); }
.reach-gem .ic { position: relative; }
@media (min-width: 768px) { .reach { grid-template-columns: repeat(3, 1fr); } }

/* prose (privacy) */
.prose { max-width: 68ch; }
.prose .h3 { margin-top: 2rem; font-size: 1.5rem; }
.prose .h3:first-child { margin-top: 0; }
.prose .tbc { margin-top: 2rem; height: auto; }

/* thank-you / 404 */
.msg-sec { padding: 5rem 0 6rem; }
.msg { max-width: 720px; }
.msg-gem { display: block; width: 72px; height: 72px; transform: rotate(45deg); margin: 0 0 2.4rem 14px; background-image: var(--stitch), var(--hq-blue); background-size: 48px 64px, 24px 32px; background-color: var(--sky); border-radius: 6px; }

/* ------------------------------------------------ footer */
.foot { background: var(--navy); color: #D4DDF6; padding-bottom: 2.5rem; margin-top: 0; }
.foot-edge { margin-bottom: 3rem; }
.foot-logo { width: 220px; height: auto; margin-bottom: 1.2rem; }
.foot a { color: #fff; }
.foot a:hover { color: var(--sun); }
.foot a:focus-visible { outline-color: var(--sun); }
.foot-addr { color: #fff; }
.foot-tel { font-family: var(--display); font-size: 1.5rem; text-decoration: none; display: inline-block; min-height: 44px; }
.foot-h { font-family: var(--display); font-weight: 400; font-size: 1.4rem; color: #fff; margin-bottom: .8rem; }
.foot-list { list-style: none; }
.foot-list a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.foot-list a:hover { text-decoration: underline; }
.foot-small { font-size: .9rem; color: #C3CDEB; }

/* quick-contact dock on phones */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--navy); padding: 6px max(6px, env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom));
  gap: 6px; border-top: 3px solid var(--sun);
}
.dock a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; color: #fff; text-decoration: none; font-weight: 700; font-size: .85rem; border-radius: var(--r); }
.dock a:first-child { background: var(--sun); color: var(--ink); }
.dock a:nth-child(2) { background: #1F7A54; }
.dock a:last-child { background: var(--sapphire); }
.dock a:focus-visible { outline-color: var(--sun); outline-offset: -3px; }
body { padding-bottom: 70px; }
@media (min-width: 992px) { .dock { display: none; } body { padding-bottom: 0; } }

/* ------------------------------------------------ reduced motion: the field stands still */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hq-d { animation: none !important; }
  .sheet-tiles span { transform: none; }
}
.sec:has(.reach) { padding-bottom: 0; }
@media (min-width: 992px) { html { scroll-padding-top: 160px; } }
