/* Sheela Koppikar Vidya Mandir - site styles */

:root {
  --maroon: #800000;
  --maroon-dark: #660000;
  --ink: #232323;
  --body: #515151;
  --muted: #757575;
  --line: #dcdad7;
  --sand: #f5f4f2;
  --white: #ffffff;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1280px;
  --gutter: 80px;
  --section-y: 112px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 16px;
  background: var(--maroon);
  color: var(--white);
}

.skip-link:focus {
  left: 16px;
}

:focus-visible {
  outline: 2px solid var(--maroon);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Type ---------- */

.eyebrow {
  display: block;
  margin-bottom: 20px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--maroon);
}

.h1 {
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.12;
}

.h2 {
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.15;
}

.h3 {
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.25;
}

.h4 {
  font-size: 22px;
  line-height: 1.3;
}

.lead {
  font-size: 17px;
  line-height: 1.8;
  color: var(--body);
}

.num {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--maroon);
}

/* ---------- Buttons & links ---------- */

.arrow {
  width: 14px;
  height: 14px;
  flex: none;
  transition: transform 0.35s var(--ease);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 15px 23px;
  border: 1px solid var(--maroon);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--maroon);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn:hover {
  background: var(--maroon);
  color: var(--white);
}

.btn:hover .arrow,
.link-arrow:hover .arrow,
.card:hover .arrow,
.row-link:hover .arrow {
  transform: translate(3px, -3px);
}

.btn--solid {
  background: var(--maroon);
  color: var(--white);
}

.btn--solid:hover {
  background: var(--maroon-dark);
  border-color: var(--maroon-dark);
}

.btn--light {
  background: var(--white);
  border-color: var(--white);
  color: var(--maroon);
}

.btn--light:hover {
  background: transparent;
  color: var(--white);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--maroon);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.35s var(--ease);
}

.link-arrow:hover {
  background-size: calc(100% - 24px) 1px;
}

/* ---------- Top bar & header ---------- */

.topbar {
  background: var(--maroon);
  color: var(--white);
  font-size: 12px;
  line-height: 32px;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
}

.topbar__formerly {
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(35, 35, 35, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 123px;
  transition: height 0.3s var(--ease);
}

.site-header.is-scrolled .container {
  height: 88px;
}

.logo img {
  width: 300px;
  transition: width 0.3s var(--ease);
}

.site-header.is-scrolled .logo img {
  width: 220px;
}

.nav ul {
  display: flex;
  gap: 27px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  position: relative;
  display: block;
  padding: 10px 0;
  font-size: 15px;
  color: var(--ink);
  transition: color 0.25s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--maroon);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--maroon);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Sections ---------- */

.section {
  padding: var(--section-y) 0;
}

.section--sand {
  background: var(--sand);
}

.section--tight {
  padding: 72px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split--top {
  align-items: start;
}

.split--wide-left {
  grid-template-columns: 1.15fr 1fr;
}

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  height: 540px;
  overflow: hidden;
  color: var(--white);
  background: #2a2a2a;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: hero-zoom 2.4s var(--ease) forwards;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 8, 4, 0.7) 0%, rgba(20, 8, 4, 0.42) 50%, rgba(20, 8, 4, 0.08) 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.hero .eyebrow {
  margin-bottom: 10px;
  color: var(--white);
}

.hero__formerly {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.92);
}

.hero__formerly::before {
  content: "";
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
}

.hero h1 {
  max-width: 620px;
  margin-bottom: 28px;
  color: var(--white);
  font-size: clamp(44px, 5.6vw, 76px);
  line-height: 1.12;
}

.hero p {
  max-width: 470px;
  margin-bottom: 32px;
  font-size: 18px;
}

@keyframes hero-zoom {
  to {
    transform: scale(1);
  }
}

.hero [data-hero] {
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.9s var(--ease) forwards;
}

.hero [data-hero="2"] {
  animation-delay: 0.15s;
}

.hero [data-hero="3"] {
  animation-delay: 0.3s;
}

.hero [data-hero="4"] {
  animation-delay: 0.45s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Interior page intro ---------- */

.page-intro {
  padding: 32px 0 64px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--maroon);
}

.page-intro__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: end;
}

.page-intro .lead {
  margin: 0 0 8px;
}

.banner {
  overflow: hidden;
}

.banner img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

/* ---------- Media ---------- */

.media {
  position: relative;
  overflow: hidden;
  background: var(--line);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.media:hover img,
.card:hover .media img {
  transform: scale(1.04);
}

/* Feature: image with overlapping maroon box */

.feature-stack {
  position: relative;
  padding-bottom: 112px;
}

.feature-stack .media {
  width: 82%;
  aspect-ratio: 528 / 510;
}

.feature-box {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 80%;
  padding: 36px 32px;
  background: var(--maroon);
  color: var(--white);
}

.feature-box .eyebrow {
  margin-bottom: 14px;
  color: var(--white);
}

.feature-box h3 {
  margin-bottom: 20px;
  color: var(--white);
  font-size: clamp(24px, 2.3vw, 32px);
}

.feature-box p {
  font-size: 14px;
}

/* Since 1986 */

.since {
  font-family: var(--serif);
  font-style: italic;
  font-size: 34px;
  color: var(--maroon);
}

.year {
  display: block;
  margin: 8px 0 24px;
  font-family: var(--serif);
  font-size: clamp(110px, 13vw, 180px);
  line-height: 1;
  color: var(--maroon);
  font-variant-numeric: oldstyle-nums;
}

.rule {
  width: 96px;
  height: 3px;
  margin: 0 0 32px;
  border: 0;
  background: var(--maroon);
  transform-origin: left;
}

/* ---------- Cards ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 28px;
}

.card .media {
  aspect-ratio: 408 / 280;
  margin-bottom: 28px;
}

.card h3 {
  margin-bottom: 14px;
  font-size: 30px;
}

.card p {
  margin-bottom: 18px;
  font-size: 15px;
}

/* Numbered items with a top rule */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.step {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.step .num {
  display: block;
  margin-bottom: 16px;
}

.step h3 {
  margin-bottom: 14px;
  font-size: 26px;
}

.step p {
  font-size: 15px;
}

/* Rows of links with arrows */

.row-links {
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}

.row-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: color 0.25s var(--ease), padding 0.35s var(--ease);
}

.row-link .arrow {
  color: var(--maroon);
}

.row-link:hover {
  color: var(--maroon);
  padding-left: 8px;
}

/* Note */

.measure > * {
  max-width: 820px;
}

.stage--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 16px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.stage--wide .media {
  margin-bottom: 0;
}

/* ---------- Carousel ---------- */

.carousel__controls {
  display: flex;
  gap: 12px;
}

.carousel__btn {
  width: 52px;
  height: 52px;
  border: 1px solid var(--maroon);
  border-radius: 50%;
  background: transparent;
  color: var(--maroon);
  font-size: 20px;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), opacity 0.3s var(--ease);
}

.carousel__btn:hover:not(:disabled) {
  background: var(--maroon);
  color: var(--white);
}

.carousel__btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.carousel__track {
  --edge: max(var(--gutter), calc((100vw - var(--container)) / 2));
  position: relative;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 0 var(--edge) 8px;
  scroll-padding: 0 var(--edge);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.carousel__slide {
  flex: none;
  margin: 0;
  scroll-snap-align: start;
}

.carousel__slide img {
  width: auto;
  height: 420px;
  object-fit: cover;
  border-radius: 2px;
  pointer-events: none;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}

.carousel__slide:hover img {
  filter: brightness(1.04);
}

.carousel__slide figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: var(--line);
  cursor: pointer;
  transition: width 0.35s var(--ease), background-color 0.35s var(--ease);
}

.carousel__dot.is-active {
  width: 28px;
  background: var(--maroon);
}

.follow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 48px;
  text-align: center;
}

.follow p {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--ink);
}

.follow__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.follow__links .btn {
  gap: 10px;
}

.follow__links svg {
  width: 20px;
  height: 20px;
}

/* ---------- CTA band ---------- */

.cta-band {
  padding: 64px 0;
  background: var(--maroon);
  color: var(--white);
}

.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-band h2 {
  margin-bottom: 14px;
  color: var(--white);
  font-size: clamp(30px, 3.2vw, 44px);
}

.cta-band p {
  font-size: 16px;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 64px 0 32px;
  background: var(--sand);
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}

.footer-brand img {
  width: 300px;
  margin-bottom: 20px;
}

.footer-grid h4 {
  margin-bottom: 18px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--maroon);
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li {
  margin-bottom: 10px;
}

.footer-grid a {
  transition: color 0.25s var(--ease);
}

.footer-grid a:hover {
  color: var(--maroon);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  font-size: 12px;
  color: var(--muted);
}

.footer-social {
  display: flex;
  gap: 24px;
}

.footer-social a,
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--body);
  transition: color 0.25s var(--ease);
}

.footer-social a:hover,
.social-links a:hover {
  color: var(--maroon);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-top: 8px;
  font-size: 16px;
}

.social-links svg {
  width: 22px;
  height: 22px;
  color: var(--maroon);
}

/* ---------- Scroll reveal ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}

.js [data-reveal="fade"] {
  transform: none;
}

.js [data-reveal="left"] {
  transform: translateX(-32px);
}

.js [data-reveal="right"] {
  transform: translateX(32px);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.js .rule[data-reveal] {
  transform: scaleX(0);
}

.js .rule[data-reveal].is-visible {
  transform: scaleX(1);
}

/* Image curtain reveal: clip the img, not the observed wrapper, or the observer never sees it */
.js .media[data-reveal="curtain"] {
  opacity: 1;
  transform: none;
  background: transparent;
}

.js .media[data-reveal="curtain"] img {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.1s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s), 0s;
}

.js .media[data-reveal="curtain"].is-visible img {
  clip-path: inset(0 0 0 0);
}

/* ---------- Pages: group A ---------- */

.heading-gap {
  margin-bottom: 32px;
}

.h2--sm {
  font-size: clamp(28px, 2.8vw, 40px);
}

.section--flush-top {
  padding-top: 0;
  padding-bottom: 64px;
}

.page-intro__grid--center {
  grid-template-columns: 1fr 496px;
  align-items: center;
}

.anchor {
  scroll-margin-top: 152px;
}

/* In-page section nav */

.subnav {
  position: sticky;
  top: 89px;
  z-index: 40;
  background: var(--sand);
}

.subnav ul {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.subnav a {
  position: relative;
  display: block;
  padding: 19px 0;
  font-size: 13px;
  color: var(--maroon);
  white-space: nowrap;
}

.subnav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--maroon);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.subnav a:hover::after,
.subnav a.is-active::after {
  transform: scaleX(1);
}

.subnav a.is-active {
  font-weight: 600;
}

/* Leadership messages */

.msg {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 80px;
  align-items: center;
  padding: 8px 40px;
}

.msg__photo {
  width: 280px;
  aspect-ratio: 4 / 5;
  margin-bottom: 28px;
  box-shadow: 0 18px 40px rgba(35, 35, 35, 0.08);
}

.msg__who .eyebrow {
  margin-bottom: 10px;
}

.msg__role {
  font-size: clamp(26px, 2.4vw, 32px);
}

.msg__quote {
  position: relative;
  margin: 0;
  padding-top: 56px;
}

.msg__quote::before {
  content: "\201C";
  position: absolute;
  top: -24px;
  left: -6px;
  font-family: var(--serif);
  font-size: 120px;
  line-height: 1;
  color: var(--maroon);
  opacity: 0.85;
}

.msg__quote p {
  font-family: var(--serif);
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.45;
  color: var(--ink);
}

/* Vision & Mission */

.vm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 32px;
}

.vm__col {
  padding-top: 22px;
  border-top: 2px solid var(--maroon);
}

.vm__title {
  margin-bottom: 26px;
  font-size: clamp(30px, 2.6vw, 36px);
}

.vm__lead {
  margin-bottom: 24px;
  font-size: 20px;
  line-height: 1.75;
}

/* Labelled info rows */

.info-heading {
  margin-bottom: 40px;
  font-size: clamp(30px, 2.7vw, 38px);
  line-height: 1.12;
}

.detail-list {
  margin: 0;
}

.detail-list > div {
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--line);
}

.detail-list > div:first-child {
  padding-top: 0;
}

.detail-list dt {
  margin-bottom: 8px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--maroon);
}

.detail-list dd {
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
  color: var(--body);
}

.info-heading + .detail-list > div:first-child {
  padding-top: 14px;
}

.map-card {
  display: flex;
  gap: 18px;
  margin: 24px 0;
  padding: 26px 24px;
  background: var(--sand);
}

.map-card__icon {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 8px;
  color: var(--maroon);
}

.map-card h3 {
  margin-bottom: 8px;
  font-size: 28px;
}

.map-card p {
  margin-bottom: 12px;
  font-size: 14px;
}

.map-embed {
  margin-bottom: 24px;
  aspect-ratio: 16 / 9;
  background: var(--sand);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.85);
}

.detail-list a {
  color: var(--maroon);
}

/* Light CTA */

.cta-plain {
  padding: 64px 0 80px;
}

.cta-plain .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-plain h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 2.8vw, 40px);
}

.cta-plain p {
  font-size: 17px;
}

/* Numbered topic rows with thumbnail */

.section--rows {
  padding: 72px 0;
}

.topic-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.topic-row {
  display: grid;
  grid-template-columns: 100px 1fr 340px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.topic-row__num {
  font-size: 32px;
}

.topic-row__text {
  padding-right: 40px;
}

.topic-row__title {
  margin-bottom: 8px;
  font-size: clamp(30px, 2.6vw, 36px);
}

.topic-row__tag {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.topic-row__text p:not(.topic-row__tag) {
  margin-bottom: 12px;
  font-size: 15px;
}

.topic-row__media {
  aspect-ratio: 340 / 210;
}

@media (max-width: 900px) {
  .subnav {
    top: 85px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .subnav::-webkit-scrollbar {
    display: none;
  }

  .anchor {
    scroll-margin-top: 140px;
  }

  .page-intro__grid--center,
  .msg,
  .vm {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .msg {
    gap: 28px;
  }

  .vm {
    gap: 40px;
  }

  .cta-plain .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .topic-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .topic-row__text {
    padding-right: 0;
  }

  .topic-row__media {
    grid-row: 1;
  }
}

/* ---------- Pages: group B ---------- */

.section--flush-top {
  padding: 0 0 80px;
}

.section--mid {
  padding: 80px 0;
}

.split--wide-right {
  grid-template-columns: 1fr 1.3fr;
}

.split--q {
  grid-template-columns: 440px 1fr;
}

.banner--lg img {
  height: 500px;
}

.lead--lg {
  font-size: 19px;
}

.steps-title {
  margin-bottom: 44px;
}

.dash-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.dash-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 14px;
}

.dash-list li::before {
  content: "\2014";
  position: absolute;
  left: 0;
}

.dash-list--lg {
  font-size: 17px;
}

.dash-list--lg li {
  margin-bottom: 10px;
}

.gallery-pair {
  display: grid;
  grid-template-columns: 820fr 436fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 80px;
}

.aside-box {
  margin-top: 24px;
  padding: 28px 24px;
  background: var(--sand);
  font-size: 15px;
}

.aside-box .eyebrow {
  margin-bottom: 12px;
}

.idea h3 {
  margin-bottom: 20px;
  font-size: 30px;
}

.idea p {
  margin-bottom: 24px;
  font-size: 15px;
}

.reflect {
  padding-left: calc(var(--gutter) + 40px);
  padding-right: calc(var(--gutter) + 40px);
  grid-template-columns: 1fr 1.25fr;
}

.reflect__title,
.answers-title {
  font-size: clamp(30px, 2.7vw, 38px);
}

.welcome-title {
  margin-bottom: 28px;
}

.questions {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.questions li {
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.3;
  color: var(--maroon);
}

.questions + p {
  font-size: 15px;
}

.link-card {
  display: block;
  padding: 36px 28px 32px;
  background: var(--white);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}

.link-card h3 {
  margin-bottom: 22px;
  font-size: 30px;
}

.link-card p {
  margin-bottom: 20px;
  font-size: 15px;
}

.link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(35, 35, 35, 0.08);
}

.link-card:hover .arrow {
  transform: translate(3px, -3px);
}

.answers-title {
  margin-bottom: 24px;
}

.info-list {
  margin: 0;
}

.info-list > div {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.info-list > div:first-child {
  padding-top: 4px;
}

.info-list dt {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.info-list dd {
  margin: 4px 0 0;
  font-size: 14px;
}

.process-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 80px;
  align-items: start;
}

.process-aside {
  position: sticky;
  top: 120px;
}

.process-aside .media {
  margin-bottom: 32px;
}

.process-aside__title {
  margin-bottom: 20px;
  font-size: 32px;
}

.process {
  margin: 0;
  padding: 0;
  list-style: none;
}

.process__item {
  display: grid;
  grid-template-columns: 94px 1fr;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.process__num {
  padding-top: 8px;
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1;
  color: var(--maroon);
}

.process__item h3 {
  margin-bottom: 12px;
  font-size: 32px;
}

.process__item p {
  margin-bottom: 14px;
  font-size: 16px;
}

@media (max-width: 900px) {
  .split--wide-right,
  .split--q,
  .reflect,
  .gallery-pair,
  .process-layout {
    grid-template-columns: 1fr;
  }

  .reflect {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }

  .gallery-pair {
    margin-bottom: 56px;
  }

  .banner--lg img {
    height: 300px;
  }

  .questions li {
    font-size: 22px;
  }

  .process-layout {
    gap: 48px;
  }

  .process-aside {
    position: static;
  }

  .process__item {
    grid-template-columns: 56px 1fr;
    padding: 28px 0;
  }

  .process__num {
    font-size: 34px;
  }

  .process__item h3 {
    font-size: 26px;
  }

  .process__item p {
    font-size: 15px;
  }
}

/* ---------- Pages: group C ---------- */

.title-gap {
  margin-bottom: 32px;
}

.title-lg {
  margin-bottom: 24px;
  font-size: clamp(30px, 3.2vw, 44px);
}

.section--md {
  padding: 80px 0;
}

.events {
  padding: 0 0 80px;
}

.events__grid {
  gap: 48px 40px;
}

.event-card .media {
  aspect-ratio: 620 / 290;
  margin-bottom: 24px;
}

.event-card .eyebrow {
  margin-bottom: 16px;
}

.event-card h3 {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  font-size: clamp(26px, 2.5vw, 36px);
}

.event-card h3 .arrow {
  width: 16px;
  height: 16px;
  margin: 4px 4px 0 0;
  color: var(--maroon);
}

.event-card p {
  max-width: 610px;
}

@media (max-width: 900px) {

  .events__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Pages: group D ---------- */

.ev-feature {
  display: grid;
  margin-bottom: 72px;
}

.ev-feature--split {
  grid-template-columns: 800fr 480fr;
}

.ev-feature--math {
  grid-template-columns: 480fr 736fr;
  gap: 64px;
}

.ev-feature--duo {
  grid-template-columns: 840fr 416fr;
  gap: 24px;
  align-items: start;
}

.ev-feature--side {
  grid-template-columns: 790fr 466fr;
  gap: 24px;
}

.ev-feature__col {
  display: grid;
  gap: 24px;
}

.ev-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  background: var(--maroon);
  color: var(--white);
}

.ev-panel .eyebrow {
  color: var(--white);
}

.ev-panel--sand {
  background: var(--sand);
  color: var(--body);
}

.ev-panel--sand .eyebrow {
  color: var(--maroon);
}

.ev-panel--compact {
  padding: 28px;
}

.ev-panel p {
  font-size: 15px;
}

.ev-stack {
  margin-bottom: 28px;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.1;
  color: inherit;
}

.ev-panel--sand .ev-stack {
  font-size: clamp(34px, 3.4vw, 48px);
  color: var(--ink);
}

.ev-panel--compact .ev-stack {
  margin-bottom: 0;
  font-size: clamp(28px, 2.7vw, 38px);
}

.ev-panel .ev-sum {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(56px, 5.6vw, 80px);
  line-height: 1.1;
  color: var(--maroon);
}

.ev-panel .ev-sum-step {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.4;
  color: var(--ink);
}

.ev-panel .ev-caption {
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
}

.ev-ratio-spell {
  aspect-ratio: 800 / 480;
}

.ev-ratio-math {
  aspect-ratio: 736 / 430;
}

.ev-ratio-expo {
  aspect-ratio: 840 / 500;
}

.ev-ratio-model {
  aspect-ratio: 416 / 222;
}

.ev-ratio-saturday {
  aspect-ratio: 790 / 460;
}

.banner--tall img {
  height: 520px;
}

.ev-head {
  margin-bottom: 32px;
}

.ev-split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: start;
}

.ev-split--balanced {
  grid-template-columns: 11fr 13fr;
}

.ev-display {
  font-size: clamp(34px, 3.8vw, 54px);
  line-height: 1.08;
}

.ev-title {
  margin-bottom: 28px;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.12;
}

.ev-lead-lg {
  font-size: 19px;
  line-height: 1.8;
}

@media (max-width: 900px) {
  .ev-feature,
  .ev-feature--split,
  .ev-feature--math,
  .ev-feature--duo,
  .ev-feature--side,
  .ev-split,
  .ev-split--balanced {
    grid-template-columns: 1fr;
  }

  .ev-feature {
    gap: 24px;
    margin-bottom: 48px;
  }

  .ev-feature--split {
    gap: 0;
  }

  .ev-feature--math .ev-panel {
    order: 1;
  }

  .ev-split {
    gap: 32px;
  }

  .ev-panel {
    padding: 32px 24px;
  }

  .banner--tall img {
    height: 300px;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  :root {
    --gutter: 40px;
    --section-y: 88px;
  }

  .nav ul {
    gap: 20px;
  }

  .logo img {
    width: 240px;
  }

  .split {
    gap: 48px;
  }
}

@media (max-width: 900px) {
  :root {
    --gutter: 24px;
    --section-y: 72px;
  }

  .topbar .container span:last-child {
    display: none;
  }

  .site-header .container,
  .site-header.is-scrolled .container {
    height: 84px;
  }

  .logo img,
  .site-header.is-scrolled .logo img {
    width: 200px;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 116px 0 0 0;
    background: var(--white);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }

  .is-scrolled .nav {
    inset: 84px 0 0 0;
  }

  .nav-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav ul {
    flex-direction: column;
    gap: 0;
    padding: 16px var(--gutter);
  }

  .nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--serif);
    font-size: 24px;
  }

  .nav a::after {
    display: none;
  }

  .nav-open {
    overflow: hidden;
  }

  .hero {
    height: 560px;
  }

  .split,
  .split--wide-left,
  .page-intro__grid,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section-head,
  .cta-band .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .banner img {
    height: 300px;
  }

  .carousel__slide img {
    height: 280px;
  }

  .stage--wide {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .carousel__btn {
    width: 44px;
    height: 44px;
  }

  .feature-stack .media {
    width: 100%;
  }

  .feature-stack {
    padding-bottom: 0;
  }

  .feature-box {
    position: relative;
    width: 92%;
    margin: -60px 0 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal],
  .js .media[data-reveal="curtain"] img {
    opacity: 1;
    transform: none;
    clip-path: none;
  }
}
