/* Elray Jewish Academy
   Navy + rust from the school's logo, Fraunces display + Poppins body (the
   faces their current site already uses). Full-bleed frosted photo heroes,
   then alternating cream / white / navy bands on a 1200px column. */
:root {
  --navy: #0f2b50;
  --navy-deep: #0a1f3c;
  --rust: #a4472e;
  --rust-dark: #8c3b25;
  --blush: #f0c9b8;
  --peach: #e8a68c;
  --cream: #f7f2ea;
  --sand: #ece3d6;
  --ink: #1d2433;
  --muted: #5b6474;
  --white: #fff;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 32px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.7; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3 { text-wrap: balance; font-weight: 300; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--white); color: var(--navy); padding: 10px 16px; font-weight: 500; }
.skip:focus { top: 16px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.narrow { max-width: 820px; }

/* Type */
.eyebrow { font-family: var(--sans); font-weight: 500; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--rust); }
.h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 4vw, 52px); line-height: 1.12; letter-spacing: -.01em; color: var(--navy); }
.h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; color: var(--navy); }
.lead { font-size: 18px; color: var(--muted); }
.body { color: var(--muted); font-size: 16.5px; }
.stack { display: grid; gap: 20px; }
.stack-sm { display: grid; gap: 10px; }
.center { text-align: center; justify-items: center; }

/* Buttons */
.btn { display: inline-block; font-family: var(--sans); font-weight: 500; font-size: 14px; letter-spacing: .06em; padding: 16px 30px; border: 1px solid transparent; transition: background .2s, color .2s; cursor: pointer; text-align: center; }
.btn-rust { background: var(--rust); color: var(--white); }
.btn-rust:hover { background: var(--rust-dark); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-line { border-color: var(--navy); color: var(--navy); }
.btn-line:hover { background: var(--navy); color: var(--white); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.more { display: inline-block; font-size: 13px; font-weight: 500; letter-spacing: .08em; color: var(--rust); border-bottom: 1px solid currentColor; padding-bottom: 3px; }

/* Header */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; color: var(--white); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 96px; }
.logo img { height: 52px; width: auto; }
.menu > ul { display: flex; gap: 30px; font-size: 14px; font-weight: 400; }
.menu > ul > li { position: relative; }
.menu > ul > li > a { display: block; padding: 10px 0; color: rgba(255,255,255,.88); }
.menu > ul > li > a:hover, .menu a[aria-current] { color: var(--white); }
.menu a[aria-current] { box-shadow: inset 0 -1px 0 var(--peach); }
.sub { position: absolute; top: 100%; left: -18px; min-width: 210px; background: var(--navy-deep); color: var(--white); padding: 10px 0; border-top: 2px solid var(--rust); box-shadow: 0 18px 40px rgba(10,31,60,.35); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.sub a { display: block; padding: 9px 20px; font-size: 14px; color: rgba(255,255,255,.88); }
.sub a:hover, .sub a:focus-visible { background: rgba(255,255,255,.07); color: var(--blush); }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.nav-cta { padding: 12px 22px; font-size: 13px; }
.nav-cta.btn-ghost:hover { background: var(--rust); border-color: var(--rust); }
.menu-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.menu-toggle span:first-child, .menu-toggle span:first-child::before, .menu-toggle span:first-child::after { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--white); content: ""; transition: .2s; }
.menu-toggle span:first-child { top: 21px; }
.menu-toggle span:first-child::before { left: 0; right: 0; top: -7px; }
.menu-toggle span:first-child::after { left: 0; right: 0; top: 7px; }
.menu-toggle[aria-expanded="true"] span:first-child { background: transparent; }
.menu-toggle[aria-expanded="true"] span:first-child::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:first-child::after { top: 0; transform: rotate(-45deg); }
.mobile-menu { background: var(--navy-deep); padding: 8px max(22px, env(safe-area-inset-right, 0px)) 28px max(22px, env(safe-area-inset-left, 0px)); }
.mobile-menu li a { display: block; padding: 11px 0; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-menu li.indent a { padding-left: 18px; font-size: 15px; color: rgba(255,255,255,.75); }
.mobile-menu .btn { display: block; margin-top: 22px; }

/* Heroes: real photo, blurred, under a navy veil */
.hero, .page-hero { position: relative; display: flex; align-items: center; color: var(--white); overflow: hidden; background: var(--navy); isolation: isolate; }
.hero-photo { position: absolute; inset: -30px; z-index: -2; background-size: cover; background-position: center 40%; filter: blur(6px) saturate(1.05); }
.hero::after, .page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,31,60,.72) 0%, rgba(15,43,80,.48) 45%, rgba(10,31,60,.8) 100%); }
.hero { min-height: 100vh; min-height: 100svh; }
/* Homepage: only a light blur, so the school's name on the building stays readable */
.hero .hero-photo { inset: -8px; filter: blur(1.5px) saturate(1.05); }
.hero-inner { width: 100%; text-align: center; padding-block: 120px 90px; }
.hero .eyebrow { color: var(--blush); margin-bottom: 18px; }
.hero h1 { font-family: var(--serif); font-size: clamp(36px, 4vw, 60px); line-height: 1.06; letter-spacing: -.015em; }
.hero h1 em, .page-hero h1 em { font-style: italic; color: #f3d7c9; }
.hero h1 em { font-size: .86em; }
.hero .lede { max-width: 600px; margin: 20px auto 28px; font-size: 17px; color: rgba(255,255,255,.88); text-wrap: balance; }
.hero .btn-row { justify-content: center; }
.page-hero { min-height: 460px; }
.page-hero .wrap { width: 100%; padding-block: 150px 80px; display: grid; gap: 18px; justify-items: center; text-align: center; }
.page-hero .eyebrow { color: var(--blush); }
.page-hero h1 { font-family: var(--serif); font-size: clamp(38px, 4.6vw, 64px); line-height: 1.1; letter-spacing: -.01em; }
.page-hero p { max-width: 640px; font-size: 17px; color: rgba(255,255,255,.86); }

/* Bands */
.band { padding-block: 120px; }
.band-cream { background: var(--cream); }
.band-navy { background: var(--navy); color: var(--white); }
.band-navy .h2, .band-navy .h3 { color: var(--white); }
.band-navy .eyebrow { color: var(--peach); }
.band-navy .body, .band-navy .lead { color: rgba(255,255,255,.75); }
.band-navy .more { color: var(--peach); }
.section-head { display: grid; gap: 16px; margin-bottom: 60px; max-width: 720px; }
.section-head.center { margin-inline: auto; }

/* Mission */
.mission .wrap { max-width: 860px; display: grid; gap: 22px; justify-items: center; text-align: center; }
.mission p { color: var(--muted); font-size: 17px; max-width: 65ch; }

/* Video: text beside a poster; play opens a full-screen player */
.video-band { padding-block: 80px; }
.video-split { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: center; }
.video-split > * { min-width: 0; }
.video-open { position: relative; display: block; width: 100%; background: var(--navy-deep); box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.video-open video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--navy-deep); }
.video-sound { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.video-sound::before { content: ""; position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--rust); box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: transform .2s, background .2s, opacity .3s; }
.video-sound::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -14px 0 0 -8px; border-style: solid; border-width: 14px 0 14px 24px; border-color: transparent transparent transparent var(--white); transition: opacity .3s; }
.video-sound:hover::before { background: var(--rust-dark); transform: scale(1.06); }
.video-sound span { position: absolute; right: 14px; bottom: 12px; padding: 5px 11px; font-size: 12px; font-weight: 500; letter-spacing: .06em; color: var(--white); background: rgba(10,31,60,.75); opacity: 0; transition: opacity .3s; }
.video-open.is-playing .video-sound::before, .video-open.is-playing .video-sound::after { opacity: 0; }
.video-open.is-playing:not(.has-sound) .video-sound span { opacity: 1; }

/* Split: text + photo mosaic */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 80px; align-items: center; }
.split > * { min-width: 0; }
.split.flip > :first-child { order: 2; }
.facts { display: flex; flex-wrap: wrap; gap: 22px 32px; padding-top: 28px; margin-top: 8px; border-top: 1px solid var(--sand); }
.facts div { font-size: 14px; color: var(--muted); }
.facts strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 19px; color: var(--navy); white-space: nowrap; }
.mosaic { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 240px 240px; gap: 14px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic img:first-child { grid-row: span 2; }
.photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { min-width: 0; display: grid; gap: 10px; align-content: start; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 16px; }
.card .h3 { margin-top: 4px; }
.card .more { justify-self: start; margin-top: 8px; }

/* Feature grid (subjects, pillars) */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--sand); border: 1px solid var(--sand); }
.features.three { grid-template-columns: repeat(3, 1fr); }
.feature { background: var(--white); padding: 44px 40px 48px; display: grid; gap: 12px; align-content: start; }
.band-cream .feature { background: var(--cream); }
.features.icons { grid-template-columns: repeat(4, 1fr); background: none; border: 0; gap: 48px 40px; max-width: 1200px; margin-inline: auto; padding-block: 0; }
@media (max-width: 1100px) { .features.icons { grid-template-columns: repeat(2, 1fr); gap: 56px 48px; max-width: 820px; } }
.features.icons .feature { background: none; padding: 0; gap: 12px; justify-items: center; text-align: center; }
.features.icons .h3 { margin-top: 4px; font-size: clamp(21px, 1.7vw, 25px); }
.features.icons .body { font-size: 15.5px; line-height: 1.65; color: var(--muted); max-width: 300px; }
.ficon { display: block; width: 44px; height: 44px; color: var(--rust); margin-bottom: 6px; }
.ficon svg { width: 100%; height: 100%; }
.feature .tag { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--rust); }

/* Quote */
.quote-grid { display: grid; grid-template-columns: 300px 1fr; gap: 80px; align-items: center; max-width: 1080px; margin: 0 auto; }
.quote-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
blockquote { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 3vw, 40px); line-height: 1.3; color: var(--navy); }
blockquote::before { content: "\201C"; display: block; font-size: 90px; line-height: .6; color: var(--rust); margin-bottom: 16px; }
.cite { margin-top: 28px; font-size: 14px; color: var(--muted); }
.cite strong { color: var(--ink); font-weight: 500; }

/* Head of school letter */
.letter { display: grid; grid-template-columns: 320px 1fr; gap: 70px; align-items: start; }
.letter img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 999px 999px 0 0; box-shadow: 18px 18px 0 var(--sand); }
.letter .stack p { color: var(--muted); font-size: 17px; }
.signoff { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--navy); }

/* Team */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 64px; }
.member { display: grid; grid-template-columns: 140px 1fr; gap: 28px; align-items: start; }
.member > * { min-width: 0; }
.portrait { width: 140px; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.monogram { width: 140px; aspect-ratio: 4 / 5; display: grid; place-items: center; background: var(--sand); font-family: var(--serif); font-size: 40px; color: var(--navy); }
.member .role { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--rust); }
.member p { color: var(--muted); font-size: 15.5px; }

/* CTA */
.cta { position: relative; padding-block: 140px; color: var(--white); text-align: center; overflow: hidden; isolation: isolate; }
.cta-photo { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center 60%; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10,31,60,.62); }
.cta .wrap { display: grid; gap: 22px; justify-items: center; }
.cta .eyebrow { color: var(--blush); }
.cta .h2 { color: var(--white); }
.cta p { max-width: 640px; font-weight: 400; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; color: rgba(255,255,255,.94); text-wrap: balance; }

/* Calendar */
.calendar-img { width: 100%; border: 1px solid var(--sand); box-shadow: 0 20px 50px rgba(10,31,60,.08); }
.note { font-size: 14px; color: var(--muted); }

/* Album */
.album { --h: 260px; display: flex; flex-wrap: wrap; gap: 12px; }
.album::after { content: ""; flex-grow: 999; }
.album-tile { position: relative; flex: calc(var(--r) * 100) 1 calc(var(--r) * var(--h)); max-width: 100%; padding: 0; border: 0; background: var(--sand); cursor: zoom-in; overflow: hidden; }
.album-tile i { display: block; padding-bottom: calc(100% / var(--r)); }
.album-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.album-tile:hover img { transform: scale(1.03); }
.album-tile:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }
@media (max-width: 700px) { .album { --h: 150px; gap: 6px; } }
.album-more { display: block; margin: 36px auto 0; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(10,31,60,.94); }
.lightbox[hidden] { display: none; }
body.lb-open { overflow: hidden; }
body.lb-open .ig-pop { display: none; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: calc(100vw - 140px); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; }
.lightbox figcaption { color: rgba(255,255,255,.7); font-size: 13px; letter-spacing: .08em; }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 1px solid rgba(255,255,255,.35); background: none; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.lb-arrow:hover { background: rgba(255,255,255,.1); }
.lb-prev { left: 20px; } .lb-next { right: 20px; }
.lb-x { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; }
.lb-x::before, .lb-x::after { content: ""; position: absolute; left: 12px; top: 21px; width: 20px; height: 1.5px; background: #fff; transform: rotate(45deg); }
.lb-x::after { transform: rotate(-45deg); }
@media (max-width: 700px) { .lightbox figure { max-width: 100vw; } .lb-arrow { top: auto; bottom: 18px; transform: none; } }

/* Forms */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 13px; font-weight: 500; color: var(--navy); }
.field input, .field select, .field textarea { font: inherit; font-size: 15px; color: var(--ink); background: var(--white); border: 1px solid #d8cfc2; padding: 13px 14px; width: 100%; border-radius: 0; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(15,43,80,.12); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.check input { margin-top: 4px; accent-color: var(--rust); }
.hp { position: absolute; left: -9999px; }
.form-status { font-size: 14px; padding: 12px 14px; background: var(--cream); border-left: 3px solid var(--navy); }
.form-status[data-kind="error"] { border-color: var(--rust); }
.form .btn { justify-self: start; }
.panel { background: var(--white); padding: 48px; box-shadow: 0 20px 50px rgba(10,31,60,.08); }
.band-cream .panel { background: var(--white); }

/* Application (/apply) */
.apply-wrap { max-width: 900px; }
.apply-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 28px; counter-reset: none; }
.apply-steps li { display: flex; align-items: center; gap: 10px; padding: 12px 4px 10px; border-bottom: 2px solid #d8cfc2; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; }
.apply-steps li span { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid currentColor; font-size: 12px; }
.apply-steps li.done { color: var(--navy); border-color: var(--navy); }
.apply-steps li[aria-current] { color: var(--rust); border-color: var(--rust); }
.apply-steps li[aria-current] span { background: var(--rust); border-color: var(--rust); color: var(--white); }
.apply-form { gap: 0; grid-template-columns: minmax(0, 1fr); }
.apply-step { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.apply-step[hidden] { display: none; }
.apply-need { background: var(--cream); border-left: 3px solid var(--rust); padding: 16px 20px; font-size: 15px; color: var(--ink); }
.apply-k { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--rust); margin-bottom: 4px; }
.apply-group { position: relative; border: 0; padding: 0; margin: 0; display: grid; gap: 18px; min-width: 0; }
.apply-group + .apply-group, .rep-item + .rep-item { padding-top: 30px; border-top: 1px solid var(--sand); }
.apply-group legend { padding: 0; margin-bottom: 4px; float: left; width: 100%; }
.apply-group legend + * { clear: both; }
.apply-group legend .opt { font-family: var(--sans); font-size: 14px; font-weight: 300; color: var(--muted); }
.form .row.three { grid-template-columns: repeat(3, 1fr); }
.field .q { font-size: 13px; font-weight: 500; color: var(--navy); }
.choices { display: flex; gap: 26px; flex-wrap: wrap; }
.choices label { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink); cursor: pointer; }
.choices input { accent-color: var(--rust); width: 18px; height: 18px; }
.field input[type="file"] { min-width: 0; max-width: 100%; padding: 10px; background: var(--cream); font-size: 14px; }
.field [hidden], [data-show-if][hidden] { display: none; }
.apply-tip { margin-top: -6px; }
.rep-remove { position: absolute; top: 4px; right: 0; background: none; border: 0; font: inherit; font-size: 13px; color: var(--rust); text-decoration: underline; cursor: pointer; }
.rep-item + .rep-item > .rep-remove { top: 34px; }
.rep-inline { position: relative; display: grid; gap: 8px; }
.rep-inline .rep-remove { position: static; justify-self: end; }
.rep-inline + .rep-inline { padding-top: 16px; }
.rep-add { justify-self: start; background: none; border: 1px dashed var(--navy); color: var(--navy); font: inherit; font-size: 14px; font-weight: 500; padding: 12px 18px; cursor: pointer; }
.rep-add:hover { background: var(--cream); }
.rep-item { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.consent { max-height: 340px; overflow-y: auto; border: 1px solid #d8cfc2; background: var(--cream); padding: 20px 22px; font-size: 13.5px; line-height: 1.6; color: var(--ink); }
.consent h4 { font-weight: 500; color: var(--navy); margin: 14px 0 4px; font-size: 14px; }
.consent h4:first-child { margin-top: 0; }
.consent p + p { margin-top: 8px; }
.sig { position: relative; border: 1px solid #d8cfc2; background: var(--white); }
.sig.bad { border-color: var(--rust); box-shadow: 0 0 0 3px rgba(164,71,46,.15); }
.sig canvas { display: block; width: 100%; height: 160px; touch-action: none; cursor: crosshair; background: linear-gradient(transparent 118px, #d8cfc2 118px, #d8cfc2 119px, transparent 119px); }
.sig-clear { position: absolute; top: 8px; right: 10px; background: none; border: 0; font: inherit; font-size: 13px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.sig-hint { font-size: 12.5px; color: var(--muted); }
.apply-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--sand); }
.apply-nav [data-next], .apply-nav [data-submit] { margin-left: auto; }
.apply-form[hidden], .apply-nav [hidden], .apply-form [hidden], .apply-steps[hidden], .apply-done[hidden] { display: none; }
.apply-form .form-status { margin-top: 22px; }
.apply-done { display: grid; gap: 14px; }
.apply-done a { color: var(--rust); }
@media (max-width: 640px) {
  .apply-steps { gap: 4px; }
  .apply-steps li { flex-direction: column; gap: 6px; font-size: 11px; text-align: center; }
  .form .row.three { grid-template-columns: 1fr; }
  .apply-form.panel { padding: 26px 20px; }
  .rep-remove { position: static; justify-self: end; }
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 70px; align-items: start; }
.contact-grid > * { min-width: 0; }
.info { display: grid; gap: 30px; }
.info h3 { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--rust); margin-bottom: 6px; font-family: var(--sans); }
.info p, .info a { font-size: 17px; color: var(--ink); }
.info a:hover { color: var(--rust); }
.fine { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* Donate / admissions options */
.options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.options.two { grid-template-columns: repeat(2, 1fr); }
.option { background: var(--white); padding: 40px 36px; display: grid; gap: 14px; align-content: start; border-top: 3px solid var(--rust); }
.option .btn { justify-self: start; margin-top: 10px; }
.give-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 72px; align-items: start; }
.give-grid > * { min-width: 0; }
.give-copy { display: grid; gap: 20px; position: sticky; top: 40px; padding-top: 24px; }
.give-points { display: grid; gap: 18px; margin-top: 12px; border-top: 1px solid var(--sand); padding-top: 26px; }
.give-points li { display: grid; gap: 2px; padding-left: 22px; position: relative; }
.give-points li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; background: var(--rust); }
.give-points strong { font-family: var(--serif); font-weight: 400; font-size: 20px; color: var(--navy); }
.give-points span { color: var(--muted); font-size: 15px; }
.give-form { background: var(--white); padding: 28px; box-shadow: 0 24px 60px rgba(15,43,80,.12); border-top: 3px solid var(--rust); }
.zeffy-embed { height: 510px; transition: height .3s ease; scroll-margin-top: 110px; }
.zeffy-embed.picked { height: 580px; }
.zeffy-embed.payment { height: 1250px; }
@media (max-width: 520px) { .zeffy-embed { height: 540px; } .zeffy-embed.picked { height: 610px; } .zeffy-embed.payment { height: 1400px; } }
.give-other { padding-block: 64px; }
.give-other-row { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.give-other-row .body { color: var(--muted); margin-top: 6px; }
@media (max-width: 860px) {
  .give-grid { grid-template-columns: 1fr; gap: 36px; }
  .give-copy { display: contents; }
  .give-copy .h2, .give-copy > .body { margin-bottom: -16px; }
  .give-points { order: 3; margin-top: 0; }
  .give-form { padding: 16px; margin-inline: -8px; }
}
.zeffy-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.zeffy-fallback { text-align: center; margin-top: 12px; }
.zeffy-fallback a { text-decoration: underline; }

/* Open house: full-screen welcome, then a slim bar */
.oh-bar { position: absolute; top: 0; left: 0; right: 0; height: 40px; line-height: 40px; z-index: 30; background: var(--rust); color: var(--white); text-align: center; font-size: 14px; font-weight: 400; letter-spacing: .02em; padding-inline: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oh-bar:not([hidden]) ~ .site-header { top: 40px; }
.oh-full { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(10,31,60,.82) url(/img/building.jpg) center / cover; background-blend-mode: multiply; }
.oh-card { position: relative; width: min(560px, 100%); background: var(--cream); padding: 56px 40px 40px; text-align: center; display: grid; gap: 12px; justify-items: center; border-top: 4px solid var(--rust); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.oh-kicker { font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--rust); }
.oh-card h2 { font-family: var(--serif); font-size: clamp(40px, 7vw, 60px); line-height: 1.05; color: var(--navy); }
.oh-when { font-family: var(--serif); font-size: 22px; color: var(--navy); }
.oh-place, .oh-note { color: var(--muted); font-size: 15px; }
.oh-card .btn { margin-top: 14px; }
.oh-skip { background: none; border: 0; font: inherit; font-size: 14px; color: var(--muted); text-decoration: underline; cursor: pointer; margin-top: 4px; }
.oh-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; background: none; border: 0; cursor: pointer; }
.oh-close::before, .oh-close::after { content: ""; position: absolute; left: 8px; top: 17px; width: 20px; height: 2px; background: var(--navy); transform: rotate(45deg); }
.oh-close::after { transform: rotate(-45deg); }
body.oh-open { overflow: hidden; }
.oh-full[hidden] { display: none; }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.75); padding-block: 40px 20px; font-size: 14px; line-height: 1.5; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-logo { height: 40px; width: auto; margin-bottom: 12px; }
.site-footer h4 { font-weight: 500; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--peach); margin-bottom: 10px; }
.site-footer li { margin-bottom: 3px; }
.site-footer a:hover { color: var(--white); }
.legal { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; color: rgba(255,255,255,.5); display: grid; gap: 8px; line-height: 1.5; }
.legal strong { font-weight: 500; color: rgba(255,255,255,.65); }
.legal-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.admin-link { font-size: 12px; letter-spacing: .06em; color: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.25); padding: 3px 10px; transition: color .2s, border-color .2s; }
.credit { margin-top: 0; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.08); text-align: center; font-size: 10px; letter-spacing: .04em; }
.credit summary { display: inline-block; cursor: pointer; list-style: none; color: rgba(255,255,255,.45); transition: color .2s; }
.credit summary::-webkit-details-marker { display: none; }
.credit summary span { color: rgba(255,255,255,.7); border-bottom: 1px solid rgba(255,255,255,.25); padding-bottom: 1px; }
.credit summary:hover, .credit[open] summary { color: rgba(255,255,255,.7); }
.credit summary:hover span, .credit[open] summary span { color: var(--white); }
.credit-contact { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 0; margin-top: 6px; }
.credit-contact a { color: rgba(255,255,255,.75); }
.credit-contact a:hover { color: var(--white); }
.credit-contact a + a::before { content: "·"; margin: 0 8px; color: rgba(255,255,255,.35); }
.admin-link:hover { color: var(--white); border-color: rgba(255,255,255,.6); }

/* Phone */
@media (max-width: 1000px) {
  .menu, .nav-cta { display: none; }
  .menu-toggle { display: block; }
}
@media (max-width: 860px) {
  :root { --gutter: 22px; }
  .nav { height: 76px; }
  .logo img { height: 40px; }
  /* Shorter than the screen so the next band peeks in and the page reads as scrollable */
  .hero { min-height: 88vh; min-height: 88svh; }
  .hero-inner { padding-block: 120px 64px; }
  .hero .eyebrow { font-size: 10.5px; letter-spacing: .16em; }
  .hero .lede { font-size: 15.5px; margin: 24px auto 32px; }
  .hero .btn-row .btn { width: 100%; max-width: 300px; }
  .page-hero { min-height: 380px; }
  .page-hero .wrap { padding-block: 120px 60px; }
  .band { padding-block: 84px; }
  .section-head { margin-bottom: 40px; }
  .video-band { padding-block: 64px; }
  .video-split { grid-template-columns: 1fr; gap: 32px; }
  .video-sound::before { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
  .video-sound::after { margin: -11px 0 0 -6px; border-width: 11px 0 11px 19px; }
  /* Long centered paragraphs are hard to read on a phone */
  .mission .wrap { justify-items: start; text-align: left; }
  blockquote::before { font-size: 64px; margin-bottom: 0; }
  .split, .quote-grid, .letter, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .split.flip > :first-child { order: 0; }
  .mosaic { grid-template-rows: 170px 170px; }
  .cards, .features, .features.three, .team, .options, .options.two { grid-template-columns: 1fr; }
  .feature { padding: 34px 26px; }
  .features.icons { grid-template-columns: 1fr; gap: 44px; }
  .quote-grid img, .letter img { max-width: 260px; }
  .member { grid-template-columns: 1fr; gap: 18px; }
  .portrait, .monogram { width: 120px; }
  .monogram { font-size: 32px; }
  .form .row { grid-template-columns: 1fr; }
  .panel { padding: 30px 22px; }
  .cta { padding-block: 96px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .site-footer .cols > div:first-child { grid-column: span 2; }
}
@media (max-width: 520px) {
  /* Two footer columns are too narrow for the address and hours */
  .site-footer .cols { grid-template-columns: 1fr; gap: 32px; }
  .site-footer .cols > div:first-child { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Weekly newsletter */
.nl-date { font-size: 14px; color: var(--muted); }
.nl-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.nl-archive { display: grid; gap: 18px; align-content: start; }
.nl-archive ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--sand); }
.nl-archive li a { display: flex; flex-direction: column; gap: 2px; padding: 14px 0 14px 14px; border-bottom: 1px solid var(--sand); border-left: 2px solid transparent; color: var(--navy); }
.nl-archive li a:hover span:first-child { color: var(--rust); }
.nl-archive li a[aria-current] { border-left-color: var(--rust); }
.nl-archive li a[aria-current] span:first-child { color: var(--rust); font-weight: 400; }

/* Instagram link with logo */
.ig-link { display: inline-flex; align-items: center; gap: 8px; }
.ig-icon { flex: none; }

/* Newsletter (filled in by media.js): issue list on the left, one page at a time
   on the right with arrows on both sides. The arrows stay in the middle of the
   screen while you scroll the page. */
.wrap-wide { max-width: 1440px; }
.nl-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
.nl-archive { grid-column: 1; grid-row: 1; position: sticky; top: 110px; }
.nl-book { grid-column: 2; display: grid; grid-template-columns: 52px minmax(0, 900px) 52px; justify-content: center; column-gap: 16px; row-gap: 16px; scroll-margin-top: 100px; }
.nl-head { grid-column: 2; grid-row: 1; margin-bottom: 8px; }
.nl-pages { grid-column: 2; grid-row: 2; }
.nl-pages img { width: 100%; height: auto; border: 1px solid var(--sand); box-shadow: 0 20px 50px rgba(10,31,60,.08); background: var(--white); }
.nl-pages img[hidden] { display: none; }
.nl-prev, .nl-next { grid-row: 2; align-self: center; position: sticky; top: calc(50vh - 26px); bottom: calc(50vh - 26px); }
.nl-prev { grid-column: 1; }
.nl-next { grid-column: 3; }
.nl-arrow { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--navy); background: var(--white); color: var(--navy); font-size: 32px; line-height: 1; display: grid; place-items: center; padding-bottom: 4px; cursor: pointer; transition: background .2s, color .2s, opacity .2s; }
.nl-arrow:hover:not(:disabled) { background: var(--navy); color: var(--white); }
.nl-arrow:disabled { opacity: .25; cursor: default; }
.nl-count { grid-column: 2; grid-row: 3; font-size: 14px; color: var(--muted); text-align: center; }
/* Narrower screens: page first, issue list underneath */
@media (max-width: 1000px) {
  .nl-layout { grid-template-columns: minmax(0, 1fr); gap: 72px; }
  .nl-archive, .nl-book { grid-column: 1; }
  .nl-archive { grid-row: 2; position: static; }
}
@media (max-width: 640px) {
  .nl-book { grid-template-columns: 1fr auto 1fr; column-gap: 16px; }
  .nl-head, .nl-pages { grid-column: 1 / -1; }
  .nl-prev, .nl-next { grid-row: 3; position: static; }
  .nl-prev { justify-self: end; }
  .nl-count { grid-row: 3; grid-column: 2; align-self: center; }
}

/* /admin: staff posting page */
.admin h1 { margin-bottom: 36px; }
.admin-login { max-width: 420px; }
.admin-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.admin-panels[hidden], .admin-login[hidden] { display: none; }
.admin-card { background: var(--cream); padding: 28px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.admin-card .h3 { margin: 0; }
.admin-wide { grid-column: 1 / -1; }
.admin-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; }
.form-status[data-kind="ok"] { border-color: #2f7a4f; }
.admin-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-thumbs:empty { display: none; }
.admin-thumbs img { width: 72px; height: 72px; object-fit: cover; }
.admin-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--sand); }
.admin-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--sand); }
.admin-list a { color: var(--navy); min-width: 0; }
.admin-list strong { font-weight: 500; }
.admin-del { font: inherit; font-size: 13px; color: var(--rust); background: none; border: 1px solid currentColor; padding: 6px 12px; cursor: pointer; flex-shrink: 0; }
.admin-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.admin-photos figure { position: relative; margin: 0; }
.admin-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.admin-x { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(10,31,60,.8); color: var(--white); font-size: 18px; line-height: 1; cursor: pointer; }
.admin-x:hover { background: var(--rust); }
.admin-del:disabled, .admin-x:disabled { opacity: .5; cursor: default; }
@media (max-width: 520px) { .admin-row { grid-template-columns: 1fr; } .admin-card { padding: 20px; } }

/* Design pass from the school-site research (2026-11-23): warm off-white
   page instead of pure white, one italic rust word per heading, a Hebrew
   line in the hero, an "at a glance" row and an Inquire / Visit / Apply band
   before every footer. */
:root { --paper: #fbf8f2; --cream: #f4ede2; }
body { background: var(--paper); }
.h2 em, .glance-title em { font-style: italic; color: var(--rust); }
.band-navy .h2 em, .cta .h2 em { color: var(--peach); }
.glance { padding-block: 84px; border-block: 1px solid var(--sand); }
.glance-title { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.6vw, 34px); color: var(--navy); text-align: center; margin-bottom: 48px; }
.glance-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.glance-row div { text-align: center; padding: 6px 24px; border-left: 1px solid var(--sand); }
.glance-row div:first-child { border-left: 0; }
.glance-row dt { font-family: var(--serif); font-weight: 300; font-size: clamp(48px, 5vw, 72px); line-height: 1; color: var(--navy); }
.glance-row dd { margin-top: 14px; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); line-height: 1.6; }
@media (max-width: 860px) {
  .glance { padding-block: 64px; }
  .glance-row { grid-template-columns: 1fr; row-gap: 40px; }
  .glance-row div { border-left: 0; }
}

/* Inner pages, same research pass: hero title sits bottom-left over the
   photo (the most common pattern on the top school sites), a row of section
   links under it, italic accents in headings, pulled quotes, numbered
   admissions steps and a named admissions contact. */
.page-hero { min-height: clamp(260px, 32vh, 300px); align-items: flex-end; }
.page-hero .wrap { padding-block: 116px 36px; justify-items: start; text-align: left; gap: 12px; }
.page-hero h1 { max-width: 24ch; font-size: clamp(36px, 3.8vw, 54px); }
.page-hero h1::after { content: ""; display: block; width: 56px; height: 2px; background: var(--rust); margin-top: 18px; }
.page-hero p { max-width: 720px; font-size: 16px; }
.page-hero::after { background: linear-gradient(180deg, rgba(10,31,60,.55) 0%, rgba(15,43,80,.4) 40%, rgba(10,31,60,.88) 100%); }
.h3 em { font-style: italic; color: var(--rust); }
blockquote em { font-style: italic; color: var(--rust); }
.band-navy blockquote { color: var(--white); }
.band-navy blockquote em { color: var(--peach); }
.band-navy .cite { color: rgba(255,255,255,.7); }
.band-navy .cite strong { color: var(--white); }
.pull blockquote { font-size: clamp(26px, 2.8vw, 36px); }
.pull .cite { text-align: center; }
.subnav { background: var(--white); border-bottom: 1px solid var(--sand); }
.subnav ul { display: flex; gap: 34px; overflow-x: auto; scrollbar-width: none; }
.subnav a { display: block; padding: 18px 0 16px; font-size: 14px; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--navy); }
.subnav a[aria-current] { color: var(--navy); font-weight: 400; border-bottom-color: var(--rust); }
.adm-how { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.adm-intro { position: sticky; top: 120px; }
.adm-contact { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--sand); max-width: 320px; }
.adm-k { font-family: var(--serif); font-weight: 300; font-size: 22px; line-height: 1.25; color: var(--navy); margin-bottom: 14px; }
.adm-k em { display: block; font-style: italic; color: var(--rust); font-size: 18px; }
.adm-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 15px; color: var(--navy); transition: color .2s; }
.adm-row + .adm-row { border-top: 1px solid var(--sand); }
.adm-row:hover { color: var(--rust); }
.adm-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--sand); background: var(--white); display: grid; place-items: center; }
.adm-ic svg { width: 16px; height: 16px; fill: none; stroke: var(--rust); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.adm-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--sand); }
.adm-step { display: grid; grid-template-columns: 72px 1fr; gap: 8px; padding: 40px 0; border-bottom: 1px solid var(--sand); }
.adm-n { font-family: var(--serif); font-size: 22px; line-height: 1.3; color: var(--rust); letter-spacing: .04em; }
.adm-step .body { margin: 10px 0 22px; max-width: 520px; }
@media (max-width: 860px) {
  .page-hero { min-height: 240px; }
  .page-hero .wrap { padding-block: 100px 30px; }
  .page-hero h1 { font-size: clamp(32px, 8.5vw, 40px); }
  .subnav ul { gap: 24px; }
  .adm-how { grid-template-columns: 1fr; gap: 32px; }
  .adm-intro { position: static; }
  .adm-step { grid-template-columns: 48px 1fr; padding: 32px 0; }
}

/* Readability pass: darker, regular-weight body text (the thin gray read as
   faint on cream), and the homepage mission split into heading + lead on the
   left, the rest of the text on the right. */
:root { --muted: #424a58; }
body { font-weight: 400; }
.body, .lead, .mission p, .letter .stack p, .member p { line-height: 1.75; }
.mission .wrap.mission-split { max-width: 1200px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 80px; justify-items: stretch; text-align: left; align-items: start; }
.mission-head { display: grid; gap: 20px; align-content: start; }
.mission .mission-lead { font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2vw, 27px); line-height: 1.45; color: var(--navy); max-width: none; margin-top: 8px; }
.mission-body { display: grid; gap: 22px; padding-top: 8px; border-top: 1px solid var(--sand); padding-top: 32px; margin-top: 46px; }
.mission-body p { font-size: 17px; }
@media (max-width: 860px) {
  .mission .wrap.mission-split { grid-template-columns: 1fr; gap: 28px; }
  .mission-body { margin-top: 0; padding-top: 28px; }
}
/* Mission alignment: heading on its own rows, then the lead and the body
   paragraphs start on the same line. */
.mission .wrap.mission-split { row-gap: 0; }
.mission-head { display: contents; }
.mission-split > .mission-head > .eyebrow { grid-column: 1 / -1; grid-row: 1; margin-bottom: 18px; }
.mission-split > .mission-head > .h2 { grid-column: 1 / -1; grid-row: 2; margin-bottom: 40px; }
.mission .mission-lead { grid-column: 1; grid-row: 3; margin-top: 0; }
.mission-body { grid-column: 2; grid-row: 3; margin-top: 0; padding-top: 0; border-top: 0; }
.mission-body p:first-child { margin-top: 6px; }
@media (max-width: 860px) {
  .mission-split > .mission-head > .h2 { margin-bottom: 4px; }
  .mission .mission-lead, .mission-body { grid-column: 1; }
  .mission-body { grid-row: 4; }
}
@media (max-width: 860px) {
  .mission-split > .mission-head > .h2 { margin-bottom: 22px; }
  .mission-body { margin-top: 26px; }
}
/* Right column starts level with the top of the "Mission" heading. */
@media (min-width: 861px) {
  .mission-split > .mission-head > .eyebrow, .mission-split > .mission-head > .h2 { grid-column: 1; }
  .mission-body { grid-row: 2 / span 2; align-self: start; }
  .mission-body p:first-child { margin-top: var(--mission-nudge, 0px); }
}
.mission-body { --mission-nudge: 3px; }
@media (min-width: 861px) { .mission .wrap.mission-split { grid-template-rows: auto auto 1fr; } }

/* How We Teach: open numbered list instead of boxed cells. No boxes or
   grid lines; a small rust numeral and a thin rule head each item. */
.features.numbered { background: none; border: 0; gap: 64px 56px; counter-reset: method; }
.features.numbered .feature { background: none; padding: 26px 0 0; border-top: 1px solid #d9cfc0; gap: 14px; counter-increment: method; }
.features.numbered .feature::before { content: counter(method, decimal-leading-zero); font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1; color: var(--rust); }
.features.numbered .h3 { font-size: clamp(22px, 2vw, 26px); text-wrap: balance; }
.features.numbered .body { font-size: 16px; max-width: 34ch; }
@media (max-width: 860px) {
  .features.numbered { gap: 40px; }
  .features.numbered .feature { padding: 22px 0 0; }
}
.features.numbered .h3 { hyphens: manual; }
/* About: Instagram band */
.ig-band { padding-block: 56px; border-top: 1px solid var(--sand); }
.ig-row { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.ig-k { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--rust); margin-bottom: 6px; }
.ig-h { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; color: var(--navy); }
.ig-h em { font-style: italic; color: var(--rust); }
.ig-btn { display: inline-flex; align-items: center; gap: 10px; }

/* Instagram corner pop-up (homepage): one horizontal bar that slides in from the right, then bobs gently */
.ig-pop { position: fixed; right: 24px; bottom: 24px; z-index: 50; display: flex; align-items: center; background: var(--cream); border: 1px solid var(--sand); box-shadow: 0 14px 34px rgba(10,31,60,.18); opacity: 0; }
.ig-pop[hidden] { display: none; }
.ig-pop.is-in { animation: igSlide 2.6s ease-out forwards, igBob 1.8s ease-in-out 2.9s 2; }
@keyframes igSlide { 0% { opacity: 0; transform: translateX(calc(100% + 40px)); } 55% { opacity: 1; transform: translateX(-14px); } 78% { transform: translateX(4px); } 100% { opacity: 1; transform: none; } }
.ig-pop.is-out { animation: igSlideOut 1.4s ease-in forwards; }
@keyframes igSlideOut { 0% { opacity: 1; transform: translateX(0); } 20% { transform: translateX(-10px); } 100% { opacity: 0; transform: translateX(calc(100% + 40px)); } }
@keyframes igBob { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-6px); } 60% { transform: translateY(0); } 80% { transform: translateY(-2px); } }
.ig-pop-link { display: flex; align-items: center; gap: 14px; padding: 12px 8px 12px 14px; color: var(--navy); text-decoration: none; white-space: nowrap; }
.ig-pop-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--rust); color: var(--white); }
.ig-pop-h { font-family: var(--serif); font-weight: 300; font-size: 19px; line-height: 1.2; }
.ig-pop-h em { font-style: italic; color: var(--rust); }
.ig-pop-handle { margin-left: 6px; padding: 8px 14px; border: 1px solid var(--navy); font-size: 13px; letter-spacing: .04em; }
.ig-pop-link:hover .ig-pop-handle { background: var(--navy); color: var(--white); }
.ig-pop-x { position: relative; flex: none; width: 36px; height: 36px; margin-right: 6px; background: none; border: 0; cursor: pointer; }
.ig-pop-x::before, .ig-pop-x::after { content: ""; position: absolute; left: 11px; top: 17px; width: 14px; height: 1.5px; background: var(--navy); transform: rotate(45deg); }
.ig-pop-x::after { transform: rotate(-45deg); }
@media (max-width: 600px) { .ig-pop { left: 12px; right: 12px; bottom: 12px; } .ig-pop-link { flex: 1; min-width: 0; gap: 10px; } .ig-pop-h { font-size: 16px; white-space: normal; } .ig-pop-handle { display: none; } }
@media (prefers-reduced-motion: reduce) { .ig-pop.is-in { animation: none; opacity: 1; } .ig-pop.is-out { animation: igFade .4s forwards; } @keyframes igFade { to { opacity: 0; } } }

/* About: pull the Instagram strip up closer to the section above it */
.band:has(+ .ig-band) { padding-bottom: 56px; }

/* Banner focus points: keep faces in frame now that inner-page banners are short and wide. */
.page-hero .hero-photo[style*="morning-circle"] { background-position: center 25%; }
.page-hero .hero-photo[style*="letters"] { background-position: center 25%; }
.page-hero .hero-photo[style*="building"] { background-position: center 42%; }
.page-hero .hero-photo[style*="painting"] { background-position: center 35%; }
.page-hero .hero-photo[style*="kids-by-the-lake"] { background-position: center 80%; }
.page-hero .hero-photo[style*="writing-on-rug"] { background-position: center 35%; }
.page-hero .hero-photo[style*="story-time"] { background-position: center 35%; }

/* New school photos (2026-11-24): crops center on each kid's face via data-focus in site.js. */
.page-hero .hero-photo[style*="mixing-primary-colors"] { background-position: center 12%; }
/* Album: the Instagram strip sits under the photo grid */
.band:has([data-album]) + .ig-band { border-top: 0; padding-top: 0; }
