/* Shri Ram Centennial Pre School — "Calm hands, curious minds"
   Layout grid: Bootstrap 5.3.3 bootstrap-grid.min.css (container/row/col). Everything else is ours. */

:root {
  --oat: #F3EEE4;
  --oat-deep: #E9E1D2;
  --oat-shade: #DED3BF;
  --paper: #FBF8F2;
  --ink: #2B2A27;
  --ink-soft: #57524A;
  --sage: #8DA487;
  --sage-soft: #CBD6C5;
  --sage-ink: #4E6A4A;
  --sage-deep: #3E563B;
  --terra: #C6744F;
  --terra-ink: #9A4F2E;
  --wood: #A9825C;
  --wood-ink: #775634;
  --line: #D6CBB6;
  --danger: #A33B26;
  --shadow: 0 6px 18px rgba(92, 70, 44, .13), 0 1px 2px rgba(92, 70, 44, .10);
  --shadow-lift: 0 14px 34px rgba(92, 70, 44, .16), 0 2px 4px rgba(92, 70, 44, .10);
  --rail: 240px;
  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --body: "Red Hat Text", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .27  0 0 0 0 .17  0 0 0 .2 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background-color: var(--oat);
  background-image: var(--grain);
  background-size: 180px 180px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.62;
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--sage-ink); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--sage-deep); text-decoration-thickness: 2px; }
::selection { background: var(--sage-soft); color: var(--ink); }
:focus-visible { outline: 3px solid var(--sage-ink); outline-offset: 3px; border-radius: 6px; }
input, select, textarea, button { font: inherit; color: inherit; caret-color: var(--terra-ink); }
html { scrollbar-color: var(--wood) var(--oat-deep); }

h1, h2, h3, .display { font-family: var(--display); font-weight: 400; line-height: 1.1; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); line-height: 1.02; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 1.9vw, 1.6rem); line-height: 1.2; }
p { margin: 0 0 1em; max-width: 64ch; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.28rem); line-height: 1.55; color: var(--ink-soft); }
.hi { font-family: var(--body); font-weight: 500; color: var(--wood-ink); }
.small { font-size: .9rem; }
.muted { color: var(--ink-soft); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--oat); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; color: var(--oat); }

/* ---------- Layout shell ---------- */
.main { min-width: 0; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: clamp(20px, 4.5vw, 64px); }
.section { padding-block: clamp(72px, 9vw, 132px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }
.section--deep { background-color: var(--oat-deep); background-image: var(--grain); background-size: 180px; }
.section--sage { background-color: var(--sage-deep); background-image: var(--grain); background-size: 180px; color: var(--oat); }
.section--sage a { color: #E6EEDF; }
.section--sage .lead, .section--sage .muted { color: #D9E2D2; }
.stack > * + * { margin-top: 1rem; }

@media (min-width: 1024px) {
  .main { margin-left: var(--rail); }
}

/* ---------- Left rail (desktop) ---------- */
.rail {
  display: none;
}
@media (min-width: 1024px) {
  .rail {
    display: flex; flex-direction: column;
    position: fixed; inset: 0 auto 0 0; width: var(--rail); z-index: 40;
    padding: 28px 22px 24px;
    background-color: var(--oat-deep); background-image: var(--grain); background-size: 180px;
    border-right: 1px solid var(--line);
    overflow-y: auto;
  }
}
.rail__brand { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); margin-bottom: 30px; }
.rail__brand img { width: 64px; height: 64px; }
.rail__name { font-family: var(--display); font-size: 1.22rem; line-height: 1.15; }
.rail__name small { display: block; font-family: var(--body); font-size: .86rem; font-weight: 500; color: var(--ink-soft); margin-top: 4px; letter-spacing: 0; }
.rail__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rail__nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 500;
  transition: background-color .25s var(--ease);
}
.rail__nav a::before { content: ""; width: 9px; height: 8px; border-radius: 55% 45% 50% 50% / 60% 55% 45% 40%; background: transparent; border: 1.5px solid var(--wood); flex: none; transition: background-color .25s var(--ease), border-color .25s var(--ease); }
.rail__nav a:hover { background: rgba(141, 164, 135, .22); color: var(--ink); }
.rail__nav a[aria-current="page"] { background: rgba(141, 164, 135, .34); }
.rail__nav a[aria-current="page"]::before { background: var(--sage-ink); border-color: var(--sage-ink); }
.rail__foot { margin-top: auto; padding-top: 28px; display: grid; gap: 10px; }
.rail__foot .btn { width: 100%; justify-content: center; }
.rail__call { font-weight: 600; text-decoration: none; color: var(--ink); display: flex; gap: 8px; align-items: center; padding: 6px 4px; }
.rail__call svg { width: 18px; height: 18px; color: var(--sage-ink); }
.rail__note { font-size: .78rem; color: var(--ink-soft); line-height: 1.4; margin: 6px 0 0; }

/* ---------- Top bar + sheet (phones/tablets) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 64px; padding: 0 16px;
  background-color: rgba(243, 238, 228, .96);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 1024px) { .topbar { display: none; } }
.topbar__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.topbar__brand img { width: 40px; height: 40px; flex: none; }
.topbar__brand span { font-family: var(--display); font-size: 1rem; line-height: 1.1; }
.topbar__brand small { display: block; font-family: var(--body); font-size: .76rem; font-weight: 500; color: var(--ink-soft); }
.menu-btn {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--ink); background: transparent; cursor: pointer; font-weight: 600;
}
.menu-btn span { display: grid; gap: 4px; }
.menu-btn i { display: block; width: 16px; height: 1.5px; background: currentColor; border-radius: 2px; }

.sheet-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(43, 42, 39, .42); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  max-height: 92vh; overflow-y: auto;
  background-color: var(--oat); background-image: var(--grain); background-size: 180px;
  border-radius: 28px 28px 0 0; box-shadow: 0 -10px 40px rgba(43, 42, 39, .22);
  padding: 14px 22px calc(26px + env(safe-area-inset-bottom));
  transform: translateY(104%); transition: transform .42s var(--ease); visibility: hidden;
}
.sheet.is-open { transform: none; visibility: visible; }
.sheet-backdrop.is-open { opacity: 1; pointer-events: auto; }
.sheet__grip { width: 44px; height: 5px; border-radius: 9px; background: var(--oat-shade); margin: 0 auto 10px; }
.sheet__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sheet__head p { margin: 0; font-weight: 600; color: var(--ink-soft); }
.sheet__close { min-height: 44px; min-width: 44px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; cursor: pointer; font-weight: 600; padding: 0 16px; }
.sheet nav ul { list-style: none; margin: 0; padding: 0; }
.sheet nav a { display: flex; justify-content: space-between; align-items: center; padding: 12px 4px; font-family: var(--display); font-size: 1.6rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.sheet nav a[aria-current="page"] { color: var(--sage-ink); }
.sheet nav a[aria-current="page"]::after { content: ""; width: 12px; height: 11px; border-radius: 55% 45% 50% 50% / 60% 55% 45% 40%; background: var(--sage-ink); }
.sheet__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.sheet__actions .btn:first-child { grid-column: 1 / -1; }
body.sheet-lock { overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn--primary { background: var(--sage-ink); color: #FBF8F2; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--sage-deep); color: #FBF8F2; transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--oat); }
.btn--light { background: var(--oat); color: var(--sage-deep); }
.btn--light:hover { background: #fff; color: var(--sage-deep); }
.btn--line-light { background: transparent; color: var(--oat); border-color: rgba(243, 238, 228, .7); }
.btn--line-light:hover { background: rgba(243, 238, 228, .12); color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Placeholders (to be provided by the school) ---------- */
.ph {
  border: 2px dashed var(--wood); border-radius: 18px; padding: 18px 20px;
  background: rgba(251, 248, 242, .6); color: var(--ink-soft);
}
.ph strong { color: var(--ink); font-weight: 600; }
.ph p:last-child { margin-bottom: 0; }
.ph--dark { border-color: rgba(243, 238, 228, .55); background: rgba(243, 238, 228, .06); color: #DDE5D6; }
.ph--dark strong { color: var(--oat); }
.tag { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--wood-ink); background: rgba(169, 130, 92, .14); border-radius: 999px; padding: 3px 12px; }
.section--sage .tag { color: var(--oat); background: rgba(243, 238, 228, .14); }

/* ---------- Hero (home) ---------- */
.hero { padding-block: clamp(28px, 5vw, 64px) clamp(56px, 7vw, 100px); overflow: hidden; }
.hero .row { align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { margin-bottom: .6em; }
.hero .hi { font-size: 1.15rem; margin-bottom: 1.6rem; }
.hero__where { display: flex; gap: 10px; align-items: flex-start; margin-top: 26px; font-size: .95rem; color: var(--ink-soft); max-width: 46ch; }
.hero__where svg { width: 20px; height: 20px; color: var(--terra-ink); flex: none; margin-top: 2px; }
.hero__art { position: relative; margin: 40px auto 0; width: min(100%, 560px); aspect-ratio: 5 / 6; }
@media (min-width: 1200px) { .hero__art { margin-top: 0; } }
.cut { position: absolute; display: block; box-shadow: var(--shadow); background-image: var(--grain); background-size: 180px; }
.cut--sage { inset: 7% -2% 1% 9%; background-color: var(--sage); border-radius: 46% 54% 42% 58% / 52% 40% 60% 48%; }
.cut--wood { width: 31%; aspect-ratio: 1; left: -3%; bottom: -1%; background-color: var(--wood); border-radius: 58% 42% 55% 45% / 45% 55% 45% 55%; }
.cut--terra { width: 15%; aspect-ratio: 1.1; right: 4%; top: 1%; background-color: var(--terra); border-radius: 50% 50% 45% 55% / 60% 55% 45% 40%; }
.cut--oat { width: 22%; aspect-ratio: 1; right: -2%; bottom: 14%; background-color: var(--oat-deep); border-radius: 48% 52% 60% 40% / 50% 45% 55% 50%; }
.blob {
  position: absolute; inset: 3% 6% 6% 4%;
  -webkit-mask: url("../assets/blob.svg") center / 100% 100% no-repeat;
  mask: url("../assets/blob.svg") center / 100% 100% no-repeat;
  background: var(--oat-shade);
}
.blob img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__credit { position: absolute; right: 0; bottom: -30px; font-size: .78rem; color: var(--ink-soft); margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero .cut { animation: settle 1.1s var(--ease) both; }
  .js .hero .cut--wood { animation-delay: .12s; }
  .js .hero .cut--terra { animation-delay: .24s; }
  .js .hero .cut--oat { animation-delay: .32s; }
  .js .hero .blob { animation: rise 1.1s var(--ease) .05s both; }
}
@keyframes settle { from { opacity: 0; transform: translateY(14px) rotate(-4deg) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes rise { from { transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Intro ---------- */
.promise { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.promise li { display: grid; grid-template-columns: 54px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.promise li:last-child { border-bottom: 1px solid var(--line); }
.promise h3 { margin: 0 0 .25em; font-size: 1.3rem; }
.promise p { margin: 0; color: var(--ink-soft); }
.promise svg { width: 46px; height: 46px; }
.note { font-size: .88rem; color: var(--ink-soft); margin-top: 18px; }

/* ---------- Day dial ---------- */
.dial-wrap { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .dial-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.dial { position: relative; width: min(100%, 460px); margin-inline: auto; aspect-ratio: 1; }
.dial svg { width: 100%; height: 100%; overflow: visible; }
.dial .seg { cursor: pointer; transition: transform .45s var(--ease), filter .3s var(--ease); transform-origin: 230px 230px; }
.dial .seg path { stroke: var(--oat); stroke-width: 4; }
.dial .seg:hover { filter: brightness(1.04); }
.dial .seg[aria-selected="true"] { transform: scale(1.045); }
.dial .seg:focus { outline: none; }
.dial .seg:focus-visible path.fill { stroke: var(--ink); stroke-width: 3; }
.dial .seg text { font-family: var(--body); font-size: 18px; font-weight: 600; fill: var(--ink); pointer-events: none; }
.dial .seg[aria-selected="true"] text { fill: #FBF8F2; }
.dial__hand { transition: transform .6s var(--ease); transform-origin: 230px 230px; }
.dial__centre { position: absolute; inset: 31%; border-radius: 50%; display: grid; place-items: center; text-align: center; pointer-events: none; padding: 6%; }
.dial__centre strong { font-family: var(--display); font-weight: 400; font-size: clamp(1.05rem, 2.4vw, 1.4rem); line-height: 1.15; display: block; }
.dial__centre span { font-size: .8rem; color: var(--ink-soft); }
.dial-panel { background: var(--paper); border-radius: 22px; padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); min-height: 300px; }
.dial-panel h3 { margin-bottom: .35em; }
.dial-panel .when { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: .9rem; color: var(--wood-ink); margin-bottom: 14px; }
.dial-panel ul { margin: 0 0 1em; padding-left: 1.1em; }
.dial-panel li { margin-bottom: .35em; }
.dial-panel li::marker { color: var(--sage-ink); }
.dial-steps { display: flex; gap: 8px; margin-top: 18px; }
.dial-steps button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; cursor: pointer; font-weight: 600; }
.dial-steps button:hover { background: var(--ink); color: var(--oat); }
@media (prefers-reduced-motion: reduce) { .dial .seg, .dial__hand { transition: none; } }

/* ---------- Materials & senses strip ---------- */
.strip { display: flex; gap: clamp(16px, 2vw, 28px); align-items: flex-end; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px clamp(20px, 4.5vw, 64px) 26px; margin-top: 36px; scrollbar-width: thin; }
.strip::-webkit-scrollbar { height: 8px; }
.strip::-webkit-scrollbar-thumb { background: var(--wood); border-radius: 9px; }
.matter { flex: none; scroll-snap-align: start; width: clamp(210px, 22vw, 290px); margin: 0; }
.matter:nth-child(3n+2) { width: clamp(180px, 18vw, 240px); }
.matter:nth-child(3n) { width: clamp(230px, 25vw, 320px); }
.matter__img { overflow: hidden; box-shadow: var(--shadow); background: var(--oat-shade); }
.matter:nth-child(1) .matter__img { border-radius: 44% 56% 48% 52% / 40% 44% 56% 60%; aspect-ratio: 1; }
.matter:nth-child(2) .matter__img { border-radius: 999px 999px 26px 26px; aspect-ratio: 3 / 4; }
.matter:nth-child(3) .matter__img { border-radius: 30px; aspect-ratio: 4 / 3; }
.matter:nth-child(4) .matter__img { border-radius: 50%; aspect-ratio: 1; }
.matter:nth-child(5) .matter__img { border-radius: 26px 120px 26px 120px; aspect-ratio: 4 / 5; }
.matter:nth-child(6) .matter__img { border-radius: 58% 42% 50% 50% / 50% 50% 50% 50%; aspect-ratio: 5 / 4; }
.matter__img img { width: 100%; height: 100%; object-fit: cover; }
.matter figcaption { padding: 14px 4px 0; }
.matter figcaption strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.3rem; }
.matter figcaption span { color: var(--ink-soft); font-size: .95rem; }
.swatch { flex: none; width: 92px; align-self: center; height: 160px; border-radius: 46px; box-shadow: var(--shadow); scroll-snap-align: start; }
.swatch--felt { background: var(--sage) var(--grain); background-size: 120px; }
.swatch--clay { background: var(--terra) var(--grain); background-size: 120px; border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%; width: 110px; height: 120px; }
.swatch--wood { background: repeating-linear-gradient(96deg, #A9825C 0 7px, #9D7650 7px 9px, #B08A64 9px 15px); width: 70px; height: 190px; border-radius: 36px; }

/* ---------- Settling in ---------- */
.settle-photo { border-radius: 200px 200px 28px 28px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 5; background: var(--oat-shade); }
.settle-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.path { list-style: none; margin: 28px 0 0; padding: 0; position: relative; }
.path::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 26px; width: 2px; background: repeating-linear-gradient(to bottom, var(--wood) 0 6px, transparent 6px 12px); }
.path li { position: relative; padding: 0 0 26px 64px; }
.path li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -2px; width: 44px; height: 42px;
  display: grid; place-items: center; font-family: var(--display); font-size: 1.15rem;
  background: var(--sage-soft); color: var(--sage-deep);
  border-radius: 52% 48% 46% 54% / 55% 50% 50% 45%; box-shadow: var(--shadow);
}
.path { counter-reset: step; }
.path h3 { font-size: 1.25rem; margin-bottom: .2em; }
.path p { margin: 0; color: var(--ink-soft); }

/* ---------- Honest facts / voices / notices ---------- */
.facts { display: grid; gap: 0; margin: 0; }
.facts div { display: grid; grid-template-columns: minmax(110px, 30%) 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--ink-soft); }
.rating { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rating__num { font-family: var(--display); font-size: 3.2rem; line-height: 1; }
.stars { display: inline-flex; gap: 3px; color: var(--terra-ink); }
.stars svg { width: 20px; height: 20px; }
.notice { position: relative; background: var(--paper); border-radius: 6px 22px 22px 22px; padding: 22px 22px 20px; box-shadow: var(--shadow); }
.notice + .notice { margin-top: 18px; }
.notice::before { content: ""; position: absolute; top: -9px; left: 22px; width: 54px; height: 18px; background: rgba(169, 130, 92, .38); border-radius: 3px; transform: rotate(-3deg); }
.notice h3 { font-size: 1.2rem; margin-bottom: .3em; }
.notice p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

/* ---------- Visit band ---------- */
.visit .addr { font-family: var(--display); font-size: clamp(1.35rem, 2.3vw, 1.85rem); line-height: 1.3; margin-bottom: 1rem; }
.visit-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.visit-list a { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; }
.visit-list svg { width: 20px; height: 20px; }

/* ---------- Page heads (inner) ---------- */
.page-head { padding-block: clamp(36px, 6vw, 84px) clamp(28px, 4vw, 56px); }
.crumbs { font-size: .9rem; margin-bottom: 22px; color: var(--ink-soft); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--wood); }
.crumbs a { color: var(--ink-soft); }
.page-head h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); }

/* About */
.about-photo { position: sticky; top: 96px; }
.about-photo .frame { border-radius: 30px 30px 200px 30px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.quote-ph { font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.3; color: var(--ink-soft); border-left: 0; }

/* Learning */
.area { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 26px 0; border-top: 1px solid var(--line); }
.area:last-child { border-bottom: 1px solid var(--line); }
.area svg { width: 56px; height: 56px; }
.area h3 { margin-bottom: .25em; }
.area p { margin: 0; color: var(--ink-soft); }
.photo-pebble { overflow: hidden; box-shadow: var(--shadow); border-radius: 48% 52% 44% 56% / 46% 42% 58% 54%; aspect-ratio: 1; background: var(--oat-shade); }
.photo-pebble img, .photo-arch img, .photo-soft img { width: 100%; height: 100%; object-fit: cover; }
.photo-arch { overflow: hidden; box-shadow: var(--shadow); border-radius: 999px 999px 28px 28px; aspect-ratio: 4 / 5; background: var(--oat-shade); }
.photo-soft { overflow: hidden; box-shadow: var(--shadow); border-radius: 28px; aspect-ratio: 3 / 2; background: var(--oat-shade); }
.groups { width: 100%; border-collapse: collapse; margin-top: 12px; font-variant-numeric: tabular-nums; }
.groups th, .groups td { text-align: left; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.groups th { font-weight: 600; font-size: .95rem; }
.groups caption { caption-side: bottom; text-align: left; font-size: .88rem; color: var(--ink-soft); padding-top: 12px; }

/* Admissions */
.steps4 { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: s; }
@media (min-width: 768px) { .steps4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .steps4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps4 li { counter-increment: s; position: relative; padding: 26px 22px 24px; border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); }
.steps4 li:nth-child(2) { margin-top: 0; }
@media (min-width: 1280px) { .steps4 li:nth-child(2) { margin-top: 28px; } .steps4 li:nth-child(3) { margin-top: 56px; } .steps4 li:nth-child(4) { margin-top: 84px; } }
.steps4 li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 38px; margin-bottom: 14px; font-family: var(--display); font-size: 1.1rem; background: var(--sage); color: var(--ink); border-radius: 52% 48% 46% 54% / 55% 50% 50% 45%; }
.steps4 h3 { font-size: 1.25rem; margin-bottom: .3em; }
.steps4 p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.docs { columns: 2 220px; column-gap: 32px; padding-left: 1.1em; margin: 0; }
.docs li { margin-bottom: .6em; break-inside: avoid; }
.docs li::marker { color: var(--sage-ink); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 0; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; border-right: 2px solid var(--sage-ink); border-bottom: 2px solid var(--sage-ink); transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details > div { padding: 0 0 18px; color: var(--ink-soft); }

/* ---------- Form ---------- */
.form-card { background: var(--paper); border-radius: 26px; padding: clamp(22px, 3.4vw, 40px); box-shadow: var(--shadow-lift); color: var(--ink); }
.form-card h2, .form-card h3 { color: var(--ink); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px;
  border: 1.5px solid #B9AC94; background: #FFFDF9; color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6E675C; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sage-ink); box-shadow: 0 0 0 3px rgba(78, 106, 74, .25); }
.field [aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(163, 59, 38, .15); }
.field .hint { font-size: .86rem; color: var(--ink-soft); margin-top: 6px; }
.field .err { font-size: .9rem; color: var(--danger); margin-top: 6px; font-weight: 600; min-height: 0; }
.field .err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 14px; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-ok { background: rgba(141, 164, 135, .25); color: var(--sage-deep); }
.form-status.is-err { background: rgba(163, 59, 38, .1); color: var(--danger); }
.form-status.is-busy { background: rgba(169, 130, 92, .14); color: var(--wood-ink); }
.form-note { font-size: .86rem; color: var(--ink-soft); margin-top: 14px; }

/* ---------- Gallery + lightbox ---------- */
.gallery { columns: 3 260px; column-gap: 18px; }
.gallery button { display: block; width: 100%; margin: 0 0 18px; padding: 0; border: 0; background: var(--oat-shade); cursor: zoom-in; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); break-inside: avoid; }
.gallery button:nth-child(3n+1) { border-radius: 120px 22px 22px 22px; }
.gallery button:nth-child(4n) { border-radius: 22px 22px 120px 22px; }
.gallery img { width: 100%; transition: transform .6s var(--ease); }
.gallery button:hover img { transform: scale(1.03); }
.lightbox { position: fixed; inset: 0; z-index: 120; display: none; place-items: center; background: rgba(33, 32, 29, .9); padding: 64px 16px 24px; }
.lightbox.is-open { display: grid; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); }
.lightbox img { max-height: 76vh; width: auto; margin: 0 auto; border-radius: 18px; }
.lightbox figcaption { color: #EDE7DA; text-align: center; padding-top: 12px; font-size: .95rem; }
.lb-btn { position: absolute; min-width: 48px; min-height: 48px; border-radius: 999px; border: 1.5px solid rgba(243, 238, 228, .7); background: rgba(43, 42, 39, .5); color: var(--oat); cursor: pointer; font-weight: 600; padding: 0 16px; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Map ---------- */
.map-box { border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); background: var(--oat-deep); aspect-ratio: 4 / 3; position: relative; }
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; }
.map-card { margin-top: 16px; padding: 18px 20px; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
.map-card p { margin: 0 0 .4em; }

/* ---------- Footer ---------- */
.foot { background-color: var(--ink); color: #E7E1D5; padding-block: 64px 36px; }
.foot a { color: #E7E1D5; }
.foot a:hover { color: #fff; }
.foot__logo { width: min(100%, 300px); height: auto; margin-bottom: 18px; }
.foot h2 { font-size: 1.15rem; color: #fff; margin-bottom: .7em; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot p { color: #CFC8BA; }
.foot__base { margin-top: 44px; padding-top: 20px; border-top: 1px solid #47443E; font-size: .86rem; color: #B9B2A4; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.foot__base p { margin: 0; color: #B9B2A4; }

/* ---------- Phone action bar ---------- */
.callbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45; display: flex; gap: 8px; padding: 8px; border-radius: 999px; background: rgba(43, 42, 39, .94); box-shadow: var(--shadow-lift); transform: translateY(140%); transition: transform .4s var(--ease); }
.callbar.is-on { transform: none; }
.callbar a { flex: 1; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; color: var(--oat); text-decoration: none; font-weight: 600; font-size: .95rem; }
.callbar a:first-child { background: var(--sage-ink); }
.callbar svg { width: 18px; height: 18px; }
@media (min-width: 1024px) { .callbar { display: none; } }
@media (max-width: 1023.98px) { .foot { padding-bottom: 104px; } }

/* ---------- Reveal (one quiet entrance, already visible without JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* small helpers */
.mt-s { margin-top: 12px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 56px; }
.center { text-align: center; }
.credit { font-size: .8rem; color: var(--ink-soft); margin-top: 10px; }
.section--sage .credit { color: #CAD5C3; }

/* dial fills */
.dial .seg--0 path.fill { fill: var(--sage-soft); }
.dial .seg--1 path.fill { fill: #E2D6C0; }
.dial .seg[aria-selected="true"] path.fill { fill: var(--sage-ink); }
@media (min-width: 1024px) { .foot { margin-left: var(--rail); } }
.notice .tag, .section--sage .notice .tag { color: var(--wood-ink); background: rgba(169, 130, 92, .16); }
.strip { padding-inline: max(clamp(20px, 4.5vw, 64px), calc((100% - 1180px) / 2 + clamp(20px, 4.5vw, 64px))); scroll-padding-inline: max(clamp(20px, 4.5vw, 64px), calc((100% - 1180px) / 2 + clamp(20px, 4.5vw, 64px))); }
.form-card .muted, .section--sage .form-card .muted { color: var(--ink-soft); }
.form-card a, .section--sage .form-card a { color: var(--sage-ink); }
@media (min-width: 1280px) { .steps4 li:nth-child(1) { margin-top: 84px; } .steps4 li:nth-child(2) { margin-top: 56px; } .steps4 li:nth-child(3) { margin-top: 28px; } .steps4 li:nth-child(4) { margin-top: 0; } }

/* ---------- Critical grid subset ----------
   Bootstrap 5.3.3 bootstrap-grid.min.css is loaded without blocking render (preload + onload, as the brief asks).
   These lines mirror only the Bootstrap grid rules this site uses, with identical values, so the first paint
   already has the final layout (no layout shift while Bootstrap arrives). Bootstrap remains the grid system. */
.row { --bs-gutter-x: 1.5rem; --bs-gutter-y: 0; display: flex; flex-wrap: wrap; margin-top: calc(-1 * var(--bs-gutter-y)); margin-right: calc(-.5 * var(--bs-gutter-x)); margin-left: calc(-.5 * var(--bs-gutter-x)); }
.row > * { flex-shrink: 0; width: 100%; max-width: 100%; padding-right: calc(var(--bs-gutter-x) * .5); padding-left: calc(var(--bs-gutter-x) * .5); margin-top: var(--bs-gutter-y); }
.g-3 { --bs-gutter-x: 1rem; --bs-gutter-y: 1rem; }
.g-5 { --bs-gutter-x: 3rem; --bs-gutter-y: 3rem; }
.col-12 { flex: 0 0 auto; width: 100%; }
.col-6 { flex: 0 0 auto; width: 50%; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
@media (min-width: 576px) { .col-sm-6 { flex: 0 0 auto; width: 50%; } }
@media (min-width: 768px) { .col-md-3 { flex: 0 0 auto; width: 25%; } .col-md-6 { flex: 0 0 auto; width: 50%; } }
@media (min-width: 992px) { .col-lg-5 { flex: 0 0 auto; width: 41.66666667%; } .col-lg-7 { flex: 0 0 auto; width: 58.33333333%; } }
@media (min-width: 1200px) {
  .col-xl-2 { flex: 0 0 auto; width: 16.66666667%; } .col-xl-4 { flex: 0 0 auto; width: 33.33333333%; }
  .col-xl-5 { flex: 0 0 auto; width: 41.66666667%; } .col-xl-6 { flex: 0 0 auto; width: 50%; }
  .col-xl-7 { flex: 0 0 auto; width: 58.33333333%; } .col-xl-8 { flex: 0 0 auto; width: 66.66666667%; }
  .col-xl-9 { flex: 0 0 auto; width: 75%; } .offset-xl-1 { margin-left: 8.33333333%; }
}
.callbar a:hover { color: #fff; }
.section--sage .form-card { box-shadow: 0 14px 34px rgba(20, 24, 18, .28), 0 2px 4px rgba(20, 24, 18, .18); }
.skip:hover { color: var(--oat); }
@media (max-width: 1199.98px) { .hero__art { width: min(100%, 460px); } }
