/* ==========================================================================
   Choate-style sections in the Chavara Shahada palette — LIGHT theme.
   Off-white (#f0efee) sections so Chavara red (#d5211b) + dark-red (#7d2324)
   read clearly. Dark-red used for the content card & footer. Scoped under .cho.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&display=swap');

.cho {
  /* ===== THEME COLORS — change these to re-theme everything ===== */
  --cho-red: #D5211B;      /* main brand red */
  --cho-yellow: #FFD400;   /* accent yellow */

  --brand: var(--cho-red); /* accents, numbers, shields, titles */
  --brand-dark: #7d2324;   /* dark maroon — colored card, footer */
  --paper: #f0efee;        /* off-white section background */
  --ink: #f5f2f0;          /* off-white text on dark surfaces (card/footer) */
  --text: #2a211e;         /* body text on light */
  --muted: rgba(42, 33, 30, 0.6);
  --line: rgba(42, 33, 30, 0.16);       /* hairlines on light */
  --line-dk: rgba(255, 255, 255, 0.28); /* hairlines on dark surfaces */

  /* ===== From Our Perspective (reels) band — override to taste ===== */
  --persp-bg: var(--cho-red);              /* section background */
  --persp-title: #ffffff;                  /* the PERSPECTIVE heading */
  --persp-eyebrow: var(--cho-yellow);      /* the "From Our" line */
  --persp-icon: var(--cho-yellow);         /* video / play badge */
  --persp-text: rgba(255, 255, 255, 0.92); /* body text on red */

  --display: 'Barlow', 'Arial Narrow', system-ui, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
}

.cho * { box-sizing: border-box; }

/* All red sections get the same red-tinted campus photo blend (like the
   reference). Swap the url or nudge the two rgba alphas to taste. */
.cho-section {
  background-color: var(--paper);
  background-image: linear-gradient(rgba(213,33,27,0.88), rgba(213,33,27,0.93)), url('../images/facilities.jpg');
  background-size: cover; background-position: center; background-repeat: no-repeat;
  color: var(--text); padding: 80px 0; position: relative;
}
/* From Our Perspective — red band, yellow icons, light text (all via vars) */
/* Blended campus photo behind the section (like the reference's tinted
   building). The red overlay keeps the theme colour dominant; swap the image
   url or nudge the two rgba alphas to change how much photo shows through. */
[data-cho-perspective] {
  background-color: var(--persp-bg);
  background-image: linear-gradient(rgba(213,33,27,0.86), rgba(213,33,27,0.92)), url('../images/facilities.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
[data-cho-perspective] .cho-persp__title { color: var(--persp-title); }
[data-cho-perspective] .cho-serif-italic { color: var(--persp-eyebrow); }
[data-cho-perspective] .cho-persp__lead { color: var(--persp-text); }
[data-cho-perspective] .cho-card__badge { background: var(--persp-icon); color: var(--cho-red); }
[data-cho-perspective] .cho-arrow { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
[data-cho-perspective] .cho-arrow:hover { background: var(--persp-icon); color: var(--cho-red); border-color: var(--persp-icon); }
[data-cho-distinctions] { overflow: visible; }
.cho-stars::before { display: none; } /* starfield not needed on light bg */

.cho-container { max-width: 1440px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 700px) { .cho-container { padding: 0 20px; } .cho-section { padding: 56px 0; } }
/* Let grid columns shrink so their overflow-x sliders scroll internally
   instead of forcing horizontal page scroll on small screens. */
.cho-dist__grid > *, .cho-opp__grid > * { min-width: 0; }
[data-cho-slider], .cho-slider, .cho-opp__cards { min-width: 0; max-width: 100%; }
.cho-widen__stat .v { overflow-wrap: anywhere; }

.cho-eyebrow { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.18em; font-weight: 700; font-size: 0.8125rem; color: var(--brand); margin: 0; }
.cho-display { font-family: var(--display); text-transform: uppercase; font-weight: 700; line-height: 0.94; color: var(--brand); margin: 0; }
.cho-serif-italic { font-family: var(--serif); font-style: italic; color: var(--brand); margin: 0; }
.cho-h-serif { font-family: var(--serif); font-weight: 700; color: var(--brand-dark); margin: 0; }

/* ---------- Our Distinctions ---------- */
.cho-dist__grid { display: grid; grid-template-columns: minmax(300px, 360px) 1fr; gap: 40px; }
@media (max-width: 900px) { .cho-dist__grid { grid-template-columns: 1fr; } .cho-dist__rail { display: none; } }
.cho-dist__rail-inner { position: sticky; top: 96px; display: flex; gap: 24px; }
.cho-dist__label { display: flex; flex-direction: column; align-items: center; gap: 16px; flex-shrink: 0; padding-top: 4px; }
.cho-dist__tick { height: 3px; width: 36px; background: var(--brand); transition: width 0.3s ease, background-color 0.3s ease; }
.cho-dist__label p { writing-mode: vertical-rl; transform: rotate(180deg); color: var(--sec-title); letter-spacing: 0.22em; }
.cho-dist__nodes { position: relative; }
.cho-dist__list { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 32px; }
/* Connecting line spans ONLY the nodes list (top node → bottom node) */
.cho-dist__list::before {
  content: "";
  position: absolute; left: 18px; top: 18px; bottom: 18px; width: 2px;
  background: linear-gradient(180deg, var(--brand), rgba(255,255,255,0.3));
  z-index: 0;
  box-shadow: 0 0 8px rgba(255,212,0,0.3);
}
.cho-dist__item {
  display: flex; align-items: center; gap: 20px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.cho-dist__item:hover {
  transform: translateX(4px);
}
.cho-dist__node {
  position: relative; z-index: 1; display: flex; height: 36px; width: 36px; flex-shrink: 0; align-items: center; justify-content: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.cho-dist__dot {
  display: flex; height: 36px; width: 36px; align-items: center; justify-content: center;
  border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.4); background: var(--paper);
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.cho-dist__dot span { height: 8px; width: 8px; border-radius: 50%; background: var(--brand); transition: transform 0.3s ease; }
.cho-dist__item:hover .cho-dist__dot { border-color: var(--brand); box-shadow: 0 0 12px rgba(255,212,0,0.4); }
.cho-dist__item:hover .cho-dist__dot span { transform: scale(1.3); }

.cho-dist__shield { display: none; }
.cho-dist__item.is-active .cho-dist__shield {
  display: block;
  animation: shieldPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes shieldPop {
  0% { transform: scale(0.3) rotate(-30deg); opacity: 0; }
  70% { transform: scale(1.2) rotate(6deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.cho-dist__item.is-active .cho-dist__dot { display: none; }
.cho-dist__btn {
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--display); font-size: 0.875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--muted);
  transition: color 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), text-shadow 0.35s ease;
  padding: 0;
}
.cho-dist__item.is-active { transform: translateX(6px); }
.cho-dist__item.is-active .cho-dist__btn {
  color: var(--brand);
  text-shadow: 0 0 16px rgba(255,212,0,0.4);
}
.cho-dist__counter {
  margin-top: 48px; display: flex; height: 92px; width: 92px; align-items: center; justify-content: center;
  border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.3);
  background: rgba(0,0,0,0.12); backdrop-filter: blur(4px);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}
.cho-dist__counter:hover { border-color: var(--brand); box-shadow: 0 0 20px rgba(255,212,0,0.3); transform: scale(1.04); }
.cho-dist__counter .n {
  align-self: flex-start; padding-top: 16px; font-family: var(--display);
  font-size: 2.25rem; font-weight: 700; line-height: 1; color: var(--brand);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cho-dist__counter .n.num-bump {
  animation: numBump 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes numBump {
  0% { transform: scale(0.6) translateY(-10px); opacity: 0.5; }
  60% { transform: scale(1.25) translateY(0); }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cho-dist__counter .d { align-self: flex-end; padding-bottom: 16px; font-family: var(--display); font-size: 1.125rem; line-height: 1; color: var(--muted); }

.cho-dist__slides { display: flex; flex-direction: column; gap: 120px; }
.cho-dist__slide {
  position: relative; display: flex; flex-direction: column; scroll-margin-top: 120px;
  perspective: 1000px;
}
.cho-dist__photo {
  order: 0; margin: 0;
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 20px 48px rgba(0,0,0,0.35);
  transition: box-shadow 0.5s ease;
}
.cho-dist__photo img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block;
  transform: scale(1.08);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.9s ease;
}
.cho-dist__slide.is-in .cho-dist__photo img {
  transform: scale(1);
}
.cho-dist__slide:hover .cho-dist__photo img {
  transform: scale(1.05);
}
.cho-dist__card {
  order: 1; position: relative; z-index: 2; align-self: flex-start; max-width: 560px;
  margin: -170px 0 0 48px; padding: 40px; background: #7d2324;
  border-radius: 6px;
  border-left: 4px solid var(--brand);
  border-top: 1px solid rgba(255,255,255,0.18);
  border-right: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 20px 50px rgba(0,0,0,0.38);
  opacity: 0;
  transform: translate3d(-30px, 40px, 0);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-left-color 0.4s ease;
}
.cho-dist__slide.is-in .cho-dist__card {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.cho-dist__card:hover {
  box-shadow: 0 28px 60px rgba(0,0,0,0.48), 0 0 30px rgba(255,212,0,0.15);
  border-left-color: #ffffff;
}
.cho-dist__card h3 {
  font-family: var(--serif); font-weight: 700; color: #fff; font-size: 1.9rem; margin: 0 0 16px;
  transition: color 0.3s ease, transform 0.4s ease;
}
.cho-dist__card p { color: rgba(255,255,255,0.92); line-height: 1.7; margin: 0; font-size: 1.02rem; }
@media (max-width: 700px) {
  .cho-dist__slides { gap: 72px; }
  .cho-dist__card { margin: -56px 12px 0; max-width: none; padding: 28px; }
  .cho-dist__photo img { aspect-ratio: 4/3; }
}

/* ---------- From Our Perspective ---------- */
.cho-persp__head p.cho-serif-italic { font-size: 1.5rem; }
.cho-persp__title { font-size: clamp(3rem, 9vw, 6rem); }
.cho-persp__lead { margin-top: 20px; max-width: 62ch; font-size: 1.05rem; line-height: 1.6; color: var(--text); }
.cho-persp__select { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.cho-persp__select-label { font-family: var(--serif); font-style: italic; font-size: 1.125rem; color: var(--text); }
.cho-persp__dropdown { position: relative; }
.cho-persp__dd-btn { display: flex; width: 340px; max-width: 100%; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--line); background: #fff; color: var(--text); padding: 12px 20px; font-family: var(--display); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; cursor: pointer; }
.cho-persp__dd-btn .chev { display: flex; height: 28px; width: 28px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line); transition: transform .2s; }
.cho-persp__dd-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.cho-persp__dd-list { position: absolute; left: 0; top: 100%; z-index: 20; margin-top: 4px; width: 100%; border: 1px solid var(--line); background: #fff; box-shadow: 0 20px 40px rgba(0,0,0,0.14); list-style: none; padding: 0; }
.cho-persp__dd-list[hidden] { display: none; }
.cho-persp__dd-list button { display: block; width: 100%; text-align: left; padding: 12px 20px; background: none; border: 0; cursor: pointer; font-family: var(--display); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text); }
.cho-persp__dd-list button:hover { background: rgba(0,0,0,0.05); }
.cho-persp__dd-list button[aria-selected="true"] { color: var(--brand); }

/* Slider: exactly N cards per view — 4 desktop / 3 laptop / 2 tablet / 1 phone */
.cho-slider { --pv: 4; margin-top: 40px; display: flex; gap: 20px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cho-slider::-webkit-scrollbar { display: none; }
@media (max-width: 1200px) { .cho-slider { --pv: 3; } }
@media (max-width: 820px)  { .cho-slider { --pv: 2; } }
@media (max-width: 560px)  { .cho-slider { --pv: 1; } }
.cho-card { position: relative; aspect-ratio: 3/5; overflow: hidden; cursor: pointer; scroll-snap-align: start; flex: 0 0 calc((100% - (var(--pv) - 1) * 20px) / var(--pv)); width: calc((100% - (var(--pv) - 1) * 20px) / var(--pv)); border-radius: 2px; }
.cho-card video, .cho-card img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; transition: transform .5s; }
.cho-card:hover video, .cho-card:hover img { transform: scale(1.05); }
.cho-card__grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.12) 26%, transparent 48%); }
.cho-card__badge { position: absolute; bottom: 96px; left: 20px; display: flex; height: 48px; width: 48px; align-items: center; justify-content: center; border-radius: 50%; background: var(--brand); color: #fff; opacity: 0; transition: opacity .3s; }
.cho-card:hover .cho-card__badge { opacity: 1; }
.cho-card__text { position: absolute; left: 20px; right: 20px; bottom: 20px; }
.cho-card__text h3 { font-family: var(--serif); font-weight: 700; color: #fff; font-size: 1.5rem; margin: 0; text-shadow: 0 2px 10px rgba(0,0,0,0.7), 0 1px 3px rgba(0,0,0,0.9); }
.cho-card__text p { margin: 4px 0 0; font-size: 0.85rem; color: rgba(255,255,255,0.9); text-shadow: 0 1px 8px rgba(0,0,0,0.8); }

.cho-arrows { margin-top: 24px; display: flex; gap: 12px; }
.cho-arrow { display: flex; height: 44px; width: 44px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--brand-dark); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.cho-arrow:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.cho-arrow--filled:hover { background: var(--brand); color: #fff; }

/* ---------- Our Opportunities ---------- */
.cho-opp__grid { display: grid; grid-template-columns: minmax(300px, 340px) 1fr; gap: 40px; }
@media (max-width: 900px) { .cho-opp__grid { grid-template-columns: 1fr; } }
.cho-opp__rail { display: flex; gap: 24px; }
/* Connecting line spans ONLY the nodes (first node → last node), drawn on the
   list itself so it can't overhang past the last node into the empty rail space. */
.cho-opp__list::before { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 1px; background: var(--line); z-index: 0; }
.cho-opp__list { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.cho-opp__item { display: flex; align-items: center; gap: 20px; }
.cho-opp__node { position: relative; z-index: 1; display: flex; height: 56px; width: 56px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--brand); cursor: pointer; transition: all .2s; }
.cho-opp__item.is-active .cho-opp__node { background: var(--brand); border-color: var(--brand); color: #fff; }
.cho-opp__node svg { height: 24px; width: 24px; }
.cho-opp__tab { background: none; border: 0; cursor: pointer; font-family: var(--display); font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); transition: color .2s; }
.cho-opp__item.is-active .cho-opp__tab { color: var(--brand-dark); }
.cho-opp__cards { display: flex; gap: 24px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cho-opp__cards::-webkit-scrollbar { display: none; }
/* Fixed-width cards (featured wider) so the row overflows and the prev/next
   arrows have something to scroll — matching the Choate original. */
.cho-stat { display: flex; min-height: 300px; scroll-snap-align: start; flex-direction: column; justify-content: center; padding: 32px; flex: 0 0 300px; width: 300px; }
.cho-stat--featured { flex-basis: 400px; width: 400px; }
@media (max-width: 600px) { .cho-stat { flex-basis: 80vw; width: 80vw; } .cho-stat--featured { flex-basis: 84vw; width: 84vw; } }
.cho-stat--featured { border: 1px solid var(--line); background: #fff; }
.cho-stat__plus { margin-bottom: 24px; align-self: flex-end; display: flex; height: 36px; width: 36px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line); color: var(--brand-dark); }
.cho-stat__value { font-family: var(--display); font-size: 3.75rem; font-weight: 700; line-height: 1; color: var(--brand); }
.cho-stat__label { margin-top: 16px; font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--brand-dark); }
.cho-stat__desc { margin-top: 16px; font-size: 0.85rem; line-height: 1.6; color: var(--muted); }

/* ---------- Widen Your World ---------- */
.cho-widen__title { font-size: clamp(3rem, 9vw, 6rem); }
.cho-widen__row { margin-top: 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 40px; }
@media (min-width: 768px) { .cho-widen__row { flex-direction: row; align-items: center; justify-content: space-between; } }
.cho-widen__intro { max-width: 52ch; font-size: 1.125rem; line-height: 1.65; color: var(--text); }
.cho-seal { position: relative; display: flex; height: 176px; width: 176px; flex-shrink: 0; align-items: center; justify-content: center; text-decoration: none; }
.cho-seal__spin { position: absolute; inset: 0; height: 100%; width: 100%; animation: cho-spin 18s linear infinite; color: var(--brand-dark); }
@keyframes cho-spin { to { transform: rotate(360deg); } }
.cho-seal__center { display: flex; flex-direction: column; align-items: center; }
.cho-seal__center .s { font-family: var(--display); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--brand-dark); }
.cho-seal__center .b { font-family: var(--display); font-size: 1.5rem; font-weight: 700; text-transform: uppercase; color: var(--brand-dark); }
.cho-seal__arrow { margin-top: 8px; display: flex; height: 36px; width: 36px; align-items: center; justify-content: center; border-radius: 50%; background: var(--brand); color: #fff; }
.cho-widen__stats { margin-top: 64px; display: grid; gap: 40px; border-top: 1px solid var(--line); padding-top: 48px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1024px) { .cho-widen__stats { grid-template-columns: repeat(4, 1fr); } }
.cho-widen__stat .v { font-family: var(--display); font-size: 3rem; font-weight: 700; color: var(--brand); }
.cho-widen__stat .l { margin-top: 12px; color: var(--text); }
.cho-widen__note { margin-top: 56px; max-width: 60ch; color: var(--muted); }

/* ---------- Footer (kept dark maroon) ---------- */
.cho-footer { background: var(--brand-dark); color: var(--ink); }
.cho-footer__inner { max-width: 1440px; margin: 0 auto; padding: 56px 40px; }
@media (max-width: 700px) { .cho-footer__inner { padding: 40px 20px; } }
.cho-footer__top { border-top: 1px solid var(--line-dk); padding-top: 48px; }
.cho-footer__grid { display: grid; gap: 48px; grid-template-columns: 1fr auto; }
@media (max-width: 900px) { .cho-footer__grid { grid-template-columns: 1fr; } }
.cho-footer__logo { height: 84px; width: auto; }
.cho-footer__brandname { margin-top: 16px; font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: #fff; }
.cho-footer__brandsub { font-size: 0.9rem; color: rgba(255,255,255,0.75); }
.cho-footer__social { margin-top: 24px; display: flex; gap: 20px; }
.cho-footer__social a { color: var(--ink); transition: color .2s; }
.cho-footer__social a:hover { color: #fff; }
.cho-footer__cols { display: grid; gap: 48px; grid-template-columns: repeat(2, 1fr); min-width: 520px; }
@media (max-width: 640px) { .cho-footer__cols { grid-template-columns: 1fr; min-width: 0; } }
.cho-footer__col { border-left: 1px solid var(--line-dk); padding-left: 48px; }
@media (max-width: 640px) { .cho-footer__col { border-left: 0; padding-left: 0; } }
.cho-footer__col h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: #fff; margin: 0; }
.cho-footer__addr { margin-top: 24px; font-style: normal; color: rgba(255,255,255,0.85); line-height: 1.6; }
.cho-footer__links { margin-top: 24px; list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cho-footer__links a, .cho-footer__contact a { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink); text-decoration: none; transition: color .2s; }
.cho-footer__links a:hover, .cho-footer__contact a:hover { color: #fff; }
.cho-footer__contact { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.cho-footer__note { margin: 64px auto 0; max-width: 64rem; text-align: center; font-size: 0.8rem; line-height: 1.7; color: rgba(255,255,255,0.75); }
.cho-footer__bar { margin-top: 48px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; justify-content: space-between; }
@media (min-width: 640px) { .cho-footer__bar { flex-direction: row; align-items: center; } }
.cho-footer__copy { font-family: var(--display); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.8); margin: 0; }
.cho-footer__legal { display: flex; flex-wrap: wrap; gap: 24px; }
.cho-footer__legal a { font-family: var(--display); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink); text-decoration: none; transition: color .2s; }
.cho-footer__legal a:hover { color: #fff; }

.cho-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.cho-reveal.is-visible { opacity: 1; transform: none; }

/* Reel video modal — click a "From Our Perspective" card to play with sound. */
.cho-vidmodal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 24px; }
.cho-vidmodal.is-open { display: flex; }
.cho-vidmodal__backdrop { position: absolute; inset: 0; background: rgba(12,6,6,0.84); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.cho-vidmodal__dialog { position: relative; z-index: 1; animation: choVidIn .28s cubic-bezier(.22,.61,.36,1); }
@keyframes choVidIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.cho-vidmodal__video { display: block; max-height: 86vh; max-width: 92vw; width: auto; height: auto; border-radius: 4px; background: #000; box-shadow: 0 24px 70px rgba(0,0,0,0.55); }
/* YouTube popup — responsive 16:9 player */
/* --yt-zoom zooms the video to crop the black bars that are baked into the
   uploaded clips (vertical footage on a 16:9 canvas). Increase it if bars still
   show; decrease it toward 1 if too much of the top/bottom gets cut off. */
.cho-vidmodal__frame { --yt-zoom: 1.28; position: relative; width: min(92vw, 960px); aspect-ratio: 16 / 9; max-height: 86vh; background: #000; border-radius: 4px; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,0.55); }
.cho-vidmodal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 4px; transform: scale(var(--yt-zoom)); transform-origin: center center; }
.cho-vidmodal__close { position: absolute; top: -46px; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.16); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
.cho-vidmodal__close:hover { background: var(--cho-yellow); color: var(--cho-red); }
@media (max-width: 640px) { .cho-vidmodal__close { top: 0; right: 0; } }
body.cho-modal-open { overflow: hidden; }

/* Scroll reveal — items ease in smoothly from left / right / up / scale / pop as they enter view.
   Directions are assigned in main.js; .is-in is added by its IntersectionObserver. */
.reveal-l, .reveal-r, .reveal-u, .reveal-scale, .reveal-pop {
  opacity: 0;
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-l { transform: translate3d(-50px, 0, 0); }
.reveal-r { transform: translate3d(50px, 0, 0); }
.reveal-u { transform: translate3d(0, 45px, 0); }
.reveal-scale { transform: scale(0.92) translate3d(0, 30px, 0); }
.reveal-pop { transform: scale(0.8); }

.reveal-l.is-in, .reveal-r.is-in, .reveal-u.is-in, .reveal-scale.is-in, .reveal-pop.is-in {
  opacity: 1;
  transform: scale(1) translate3d(0, 0, 0);
}

.cho-reveal {
  opacity: 0;
  transform: translate3d(0, 35px, 0) scale(0.96);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.cho-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Subtle continuous hover and micro-animation enhancements */
.trust-bar__item {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.35s ease;
}
.trust-bar__item:hover {
  transform: translateY(-4px);
}
.cho-card {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
}
.cho-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}
.cho-stat {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.cho-stat:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.4);
}
.principal-card {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}
.principal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(0,0,0,0.22);
}

/* Keep off-screen slide-in from ever adding a horizontal scrollbar. */
body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  .reveal-l, .reveal-r, .reveal-u, .reveal-scale, .reveal-pop, .cho-reveal {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}

/* ==========================================================================
   Inner-page hero — consistent Choate-style page title (applies site-wide
   via the shared .page-banner used on every inner page).
   ========================================================================== */
.page-banner {
  min-height: 440px;
  display: flex; flex-direction: column;
  padding-block: 28px 48px;
  background: #7d2324;
}
.page-banner__bg::after {
  background: linear-gradient(180deg, rgba(28,10,10,0.18) 0%, rgba(28,10,10,0.30) 42%, rgba(28,10,10,0.80) 100%);
}
/* Full-width column so the logo sits top-left and the title bottom-left
   (the base .container had margin:auto which was shrinking it to content). */
.page-banner .container {
  position: relative; z-index: 2;
  width: 100%; flex: 1;
  display: flex; flex-direction: column; align-items: flex-start;
  text-align: left;
}
/* YouTube video background (pages with .page-banner--video) */
.page-banner--video .page-banner__bg { opacity: 0.6; } /* poster fallback behind the video */
.page-banner__video { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.page-banner__video iframe {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100vw; height: 56.25vw;            /* 16:9 sized to viewport width */
  min-height: 100%; min-width: 177.78vh;    /* …then grown to cover height too */
  border: 0;
}
.page-banner--video::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(28,10,10,0.30) 0%, rgba(28,10,10,0.36) 42%, rgba(28,10,10,0.82) 100%);
}
.page-banner__brand { align-self: flex-start; margin: 0; }   /* logo — top left */
.page-banner__logo img { height: 52px; }
.page-banner__inner {
  margin-top: auto;                                          /* title — bottom left */
  display: flex; flex-direction: column; align-items: flex-start;
  border-left: 5px solid #D5211B;                            /* red tick (reference color) */
  padding-left: 24px;
}
.page-banner h1 {
  font-family: 'Barlow', 'Arial Narrow', sans-serif;
  text-transform: uppercase; font-weight: 700; letter-spacing: 0.005em;
  font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 0.98; margin: 0; text-align: left;
}
.page-banner h1::after { display: none; }
.page-banner .breadcrumb {
  order: 2; margin: 16px 0 0; padding: 0;
  background: none; border: 0; border-radius: 0;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  font-size: 0.78rem; letter-spacing: 0.18em; color: rgba(255,255,255,0.85);
}
.page-banner .breadcrumb span:last-child { color: #D5211B; }
.page-banner .breadcrumb a { color: rgba(255,255,255,0.85); }
.page-banner .breadcrumb a:hover { color: #fff; }
@media (max-width: 640px) {
  .page-banner { min-height: 320px; padding-block: 22px 34px; }
  .page-banner__inner { padding-left: 16px; border-left-width: 4px; }
}

/* ==========================================================================
   RED THEME for the copied Choate sections — change the vars here to re-skin.
   (Overrides the earlier light values; loaded later so these win.)
   ========================================================================== */
.cho {
  --paper: var(--cho-red);            /* section background (#D5211B) */
  --brand: var(--cho-yellow);         /* icons, numbers, shields, ticks (#FFD400) */
  --sec-title: #ffffff;               /* headings / titles */
  --text: rgba(255,255,255,0.92);     /* body text */
  --muted: rgba(255,255,255,0.62);
  --line: rgba(255,255,255,0.30);
  --brand-dark: #7d2324;              /* footer background (kept) */
  --sec-card: #ac1a15;                /* darker red for cards / inputs */
}
/* titles & headings -> white (readable on red) */
.cho-display, .cho-h-serif, .cho-dist__card h3, .cho-stat__label, .cho-dist__label p,
.cho-seal__center .s, .cho-seal__center .b,
.cho-dist__item.is-active .cho-dist__btn, .cho-opp__item.is-active .cho-opp__tab { color: var(--sec-title); }
.cho-serif-italic { color: var(--brand); }
/* nodes / dots / cards / arrows on red */
.cho-dist__dot { background: transparent; }
.cho-dist__dot span { background: var(--brand); }
.cho-persp__dd-btn, .cho-persp__dd-list { background: var(--sec-card); }
.cho-dist__card { background: #7d2324; box-shadow: 0 16px 40px rgba(0,0,0,0.28); }
.cho-persp__dd-list button { color: var(--sec-title); }
.cho-stat__plus { color: var(--sec-title); border-color: rgba(255,255,255,0.4); }

/* Opportunity stat cards — defined panels so they read as cards on the red
   bg (were near-invisible: #ac1a15 featured, transparent plain). Featured =
   deep maroon panel; the rest = faint translucent panels with a hairline. */
.cho-stat { background: rgba(0,0,0,0.10); border: 1px solid rgba(255,255,255,0.14); }
.cho-stat--featured { background: #7d2324; border: 1px solid rgba(255,255,255,0.24); box-shadow: 0 12px 32px rgba(0,0,0,0.22); }

/* Slider arrows — clearly visible dark circles (were dark-red on red). */
.cho-arrow { color: var(--sec-title); }
.cho-arrow--filled { background: #7d2324; border: 1px solid rgba(255,255,255,0.30); color: var(--brand); }
.cho-arrow--filled:hover { background: var(--brand); color: var(--cho-red); border-color: var(--brand); }
/* Opportunities rail — high contrast on red (was dim yellow-on-red).
   Inactive: white icon + clear white outline + bright white label.
   Active: filled yellow node with red icon + yellow label (like reference). */
.cho-opp__node { background: transparent; color: #ffffff; border-color: rgba(255,255,255,0.60); }
.cho-opp__item.is-active .cho-opp__node { background: var(--brand); border-color: var(--brand); color: var(--cho-red); }
.cho-opp__tab { color: rgba(255,255,255,0.92); }
.cho-opp__item.is-active .cho-opp__tab { color: var(--brand); }
.cho-opp__list::before, .cho-dist__list::before { background: rgba(255,255,255,0.50); }

/* Footer — carry the red theme through (was leftover maroon), with a
   subtle divider so it still reads as a distinct band under the sections. */
.cho-footer { background: var(--cho-red); }

/* Menu hover — bright & visible on the dark overlay menu (was a dim dark-red) */
.site-overlay-menu__submenu-panel a:hover,
.site-overlay-menu__subitems a:hover,
.site-overlay-menu__secondary a:hover,
.site-overlay-menu__contact a:hover { color: #FFD400; }

/* ==========================================================================
   Video hero refinements — clear video (no colour/image overlay), taller,
   with a sound (music) on/off toggle.
   ========================================================================== */
.page-banner--video { min-height: 720px; }
.page-banner--video .page-banner__bg { display: none; }            /* drop the image overlay */
.page-banner--video::after {                                       /* subtle bottom-only fade for legibility */
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.12) 32%, transparent 58%);
}
.page-banner--video h1,
.page-banner--video .breadcrumb,
.page-banner--video .page-banner__school-name { text-shadow: 0 2px 18px rgba(0,0,0,0.6); }

/* Same sound toggle as the home-page hero (.hero__sound): dark translucent
   circle, white speaker icon, muted/unmuted swapped via [aria-pressed]. */
.page-banner__sound {
  position: absolute; right: 28px; bottom: 28px; z-index: 3;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6); background: rgba(20,20,25,0.45); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition: background .2s, border-color .2s, transform .2s;
}
.page-banner__sound:hover { background: rgba(20,20,25,0.65); transform: scale(1.06); }
.page-banner__sound svg { width: 20px; height: 20px; }
.page-banner__sound .icon-muted { display: block; }
.page-banner__sound .icon-unmuted { display: none; }
.page-banner__sound[aria-pressed="true"] .icon-muted { display: none; }
.page-banner__sound[aria-pressed="true"] .icon-unmuted { display: block; }
@media (max-width: 640px) { .page-banner--video { min-height: 440px; } .page-banner__sound { right: 18px; bottom: 18px; width: 46px; height: 46px; } }

/* ==========================================================================
   Library page content — reference-style layout (light, red accents).
   ========================================================================== */
.lib { max-width: 1240px; margin: 0 auto; padding: 72px 40px; }
@media (max-width: 700px) { .lib { padding: 48px 20px; } }
.lib-intro { border-left: 5px solid #D5211B; padding-left: 24px; margin: 0 0 44px; max-width: 60ch;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.42; font-weight: 600; color: #2a211e; }
.lib-split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 44px; align-items: start; }
@media (max-width: 820px) { .lib-split { grid-template-columns: 1fr; gap: 28px; } }
.lib-body { color: #3a302c; line-height: 1.75; }
.lib-body p { margin: 0 0 18px; }
.lib-list { list-style: none; margin: 22px 0 28px; padding: 0; display: grid; gap: 12px; }
.lib-list li { display: flex; align-items: center; gap: 12px; color: #2a211e; font-size: 1.02rem; }
.lib-list svg { color: #D5211B; flex-shrink: 0; }
.lib-quote { background: #f0efee; border-left: 5px solid #D5211B; padding: 32px;
  font-family: Georgia, 'Times New Roman', serif; font-size: 1.22rem; line-height: 1.6; color: #2a211e; }
.lib-quote strong { display: block; margin-top: 16px; font-size: 0.9rem; font-style: normal; font-family: inherit; color: #7d2324; }
.lib-carousel { margin-top: 60px; }
.lib-slider { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lib-slider::-webkit-scrollbar { display: none; }
.lib-slide { flex: 0 0 calc((100% - 24px) / 2); scroll-snap-align: start; }
@media (max-width: 700px) { .lib-slide { flex-basis: 100%; } }
.lib-slide img { width: 100%; height: 380px; object-fit: cover; border-radius: 4px; display: block; }
.lib-carousel__nav { margin-top: 22px; display: flex; gap: 12px; justify-content: center; }
.lib-carousel__nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(42,33,30,0.25);
  background: none; color: #2a211e; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .2s, color .2s, border-color .2s; }
.lib-carousel__nav button:hover { background: #D5211B; color: #fff; border-color: #D5211B; }
