:root {
  --ink: #17172a;
  --muted: #626572;
  --paper: #fbf7ef;
  --cream: #fffaf1;
  --white: #ffffff;
  --wash: #f1eadc;
  --line: rgba(4, 0, 80, 0.13);
  --navy: #06064f;
  --navy-soft: #14156f;
  --blue: #494e9d;
  --lavender: #868bbf;
  --sage: #6f8c72;
  --sage-dark: #46664b;
  --gold: #d9b85d;
  --gold-soft: #f2df9f;
  --clay: #b86f52;
  --radius: 8px;
  --nav-height: 70px;
  --max: 1120px;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: 0;
}

body.is-loading {
  overflow: hidden;
}

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

img,
video {
  display: block;
  max-width: 100%;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--navy);
  transition: opacity 700ms ease, visibility 700ms ease;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader__pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: min(380px, calc(100vw - 48px));
  padding: 18px 24px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: 1.25rem;
}

.loader__spinner {
  width: 22px;
  height: 22px;
  border: 3px solid currentColor;
  border-top-color: transparent;
  border-radius: 999px;
  animation: spin 950ms linear infinite;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  color: var(--white);
  transition: color 260ms ease, background 260ms ease, backdrop-filter 260ms ease;
}

.site-header.is-scrolled,
.site-header.is-open,
.site-header--solid {
  color: var(--ink);
  background: rgba(255, 250, 241, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(var(--max), calc(100% - 72px));
  height: var(--nav-height);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
}

.nav__brand {
  display: block;
  width: 48px;
  height: 48px;
}

.nav__brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.nav__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.nav__item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav__link {
  font-size: 0.9rem;
  opacity: 0.92;
}

.nav__dropdown {
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  min-width: 220px;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.96);
  box-shadow: 0 20px 50px rgba(25, 22, 8, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav__dropdown a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.86rem;
  white-space: nowrap;
}

.nav__dropdown a:hover {
  background: rgba(217, 184, 93, 0.16);
}

.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown:focus-within .nav__dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav__link.is-active {
  color: var(--gold-soft);
}

.site-header.is-scrolled .nav__link.is-active,
.site-header.is-open .nav__link.is-active,
.site-header--solid .nav__link.is-active {
  color: var(--navy-soft);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  min-width: 168px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--navy-soft);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1;
  transition: transform 220ms ease, background 220ms ease, color 220ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--sage-dark);
}

.button--light {
  background: var(--cream);
  color: var(--navy);
}

.button--warm {
  background: var(--gold-soft);
  color: var(--navy);
}

.button--icon {
  gap: 9px;
}

.button--icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav__toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
}

.nav__toggle span {
  display: block;
  height: 1px;
  background: currentColor;
  margin: 8px 7px;
}

.mobile-menu {
  display: none;
}

.hero {
  min-height: 82svh;
  position: relative;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: calc(var(--nav-height) + 54px) 24px 62px;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero--page {
  min-height: 52svh;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(6, 6, 79, 0.68), rgba(70, 102, 75, 0.46)),
    url("assets/pomona-hero-poster.jpg") center/cover;
}

.hero--students {
  background:
    linear-gradient(135deg, rgba(6, 6, 79, 0.42), rgba(184, 111, 82, 0.18)),
    url("assets/photos/students-hero-building.jpg") center 56%/cover;
}

.hero--students h1 {
  font-size: clamp(2.45rem, 4.4vw, 4.65rem);
}

.hero--clients {
  background:
    linear-gradient(135deg, rgba(6, 6, 79, 0.38), rgba(70, 102, 75, 0.18)),
    url("assets/photos/clients-hero.jpg") center 42%/cover;
}

.hero--leadership {
  background:
    linear-gradient(135deg, rgba(4, 0, 80, 0.68), rgba(36, 55, 50, 0.44)),
    url("assets/photos/students-hero-building.jpg") center 54%/cover;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--navy);
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 52% 42%, rgba(242, 223, 159, 0.18), transparent 44%),
    linear-gradient(to bottom, rgba(4, 0, 80, 0.24), rgba(4, 0, 80, 0.08) 46%, rgba(4, 0, 80, 0.42));
  z-index: 2;
}

.hero__video,
.hero__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__video {
  filter: saturate(1.08) contrast(0.98) brightness(1.04);
  pointer-events: none;
}

.hero__fallback {
  background:
    linear-gradient(rgba(4, 0, 80, 0.18), rgba(4, 0, 80, 0.4)),
    url("assets/pomona-hero-poster.jpg") center/cover;
  z-index: -1;
}

.hero__content {
  width: min(1080px, 100%);
  text-align: center;
  text-shadow: 0 2px 26px rgba(4, 0, 80, 0.64);
}

.hero__title {
  max-width: 1080px;
}

.hero__title span {
  display: block;
}

@media (min-width: 720px) {
  .hero__title span:first-child {
    white-space: nowrap;
  }
}

.eyebrow {
  margin: 0 0 14px;
  color: currentColor;
  opacity: 0.78;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-wrap: balance;
}

h1 {
  margin: 0 auto 18px;
  font-size: clamp(3rem, 6vw, 6.2rem);
  line-height: 0.92;
}

.hero--home h1 {
  font-size: clamp(3.7rem, 6.2vw, 6.25rem);
}

.hero--page h1 {
  max-width: 920px;
  font-size: clamp(2.6rem, 5vw, 5.2rem);
  line-height: 0.96;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3.3vw, 3.55rem);
  line-height: 0.98;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.24rem, 1.8vw, 1.8rem);
  line-height: 1.08;
}

.hero__dek {
  max-width: 760px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.5;
}

.hero__actions,
.button-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.section-pad {
  padding: 82px max(24px, calc((100vw - var(--max)) / 2));
}

.mission {
  background: var(--paper);
}

.mission.section-pad {
  padding-top: 68px;
  padding-bottom: 68px;
}

.mission__copy,
.section-heading {
  width: min(860px, 100%);
}

.mission__copy {
  width: min(780px, 100%);
}

.section-heading--center,
.mission__copy {
  margin: 0 auto;
  text-align: center;
}

.mission p:not(.eyebrow),
.section-heading p:not(.eyebrow),
.metrics p,
.preview-card p,
.client-panel p,
.interest-form p,
.detail-card p,
.process-card p,
.profile-card p,
.timeline-item p {
  color: var(--muted);
  line-height: 1.58;
}

.mission p:not(.eyebrow) {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.mission p:not(.eyebrow) + p {
  margin-top: -4px;
}

.partners {
  background: var(--cream);
  overflow: hidden;
  border-top: 1px solid rgba(4, 0, 80, 0.08);
  border-bottom: 1px solid rgba(4, 0, 80, 0.08);
}

.logo-marquee {
  margin-top: 38px;
  overflow: hidden;
}

.logo-track {
  display: flex;
  width: max-content;
  gap: 56px;
  align-items: center;
  animation: marquee 54s linear infinite;
}

.logo-card {
  width: 270px;
  height: 148px;
  display: grid;
  place-items: center;
  padding: 0;
}

.logo-card--wide {
  width: 370px;
}

.logo-card--tall {
  width: 210px;
}

.logo-card--wikipedia {
  width: 250px;
}

.logo-card img {
  max-width: 100%;
  max-height: 118px;
  object-fit: contain;
}

.logo-card--wide img {
  max-width: 100%;
  max-height: 116px;
}

.logo-card--tall img,
.logo-card--seal img,
.logo-card--remax img,
.logo-card--wikipedia img {
  max-height: 138px;
}

.logo-card--matriark img,
.logo-card--student-life img,
.logo-card--crew img,
.logo-card--mouthfuel img,
.logo-card--projexon img {
  max-width: 98%;
}

.logo-card--matriark img {
  max-height: 120px;
}

.logo-card--student-life img {
  max-height: 108px;
}

.logo-card--mouthfuel img {
  max-height: 106px;
}

.logo-card--projexon img {
  max-height: 122px;
}

.logo-card--lg img,
.logo-card--boys-girls img {
  max-height: 132px;
}

.logo-card--access img {
  max-height: 138px;
}

.metrics {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 34px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(242, 223, 159, 0.28), transparent 34%),
    linear-gradient(#fbf7ef, #f3eadb);
}

.metrics__photo {
  min-height: 500px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(25, 22, 8, 0.14);
  background: #efe3cf;
}

.metrics__photo img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center 30%;
}

.metrics__photo--full {
  min-height: 500px;
}

.metrics__photo--full img {
  min-height: 500px;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center 45%;
}

.metrics__content h2 {
  font-size: clamp(2rem, 3vw, 3.35rem);
}

.metrics__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.metric-card {
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid rgba(4, 0, 80, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.metric-card strong {
  color: var(--navy-soft);
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.82;
  font-weight: 400;
}

.metric-card span {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  background: var(--white);
}

.preview-card {
  min-height: 410px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
}

.preview-card--students {
  background: linear-gradient(135deg, #ffffff, #f4eedf);
}

.preview-card--clients {
  background: linear-gradient(135deg, #f8fbf5, #eef3e8);
}

.preview-card p:not(.eyebrow) {
  max-width: 560px;
}

.preview-card__image {
  width: calc(100% + 60px);
  height: 250px;
  margin: -30px -30px 24px;
  overflow: hidden;
  border-bottom: 1px solid rgba(4, 0, 80, 0.1);
  background: #f7efe1;
}

.preview-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-card--students .preview-card__image img {
  object-position: center 48%;
}

.preview-card--clients .preview-card__image img {
  object-position: center 42%;
}

.leadership-teaser {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
  background: var(--navy);
  color: var(--white);
}

.leadership-teaser p {
  color: rgba(255, 255, 255, 0.76);
}

.portrait-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  min-height: 300px;
  align-self: center;
}

.portrait-stack div {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.portrait-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: translateY(8px) scale(1.06);
}

.portrait-stack div:nth-child(2) img {
  object-position: 44% 42%;
  transform: translateY(-24px) scale(1.18);
}

.portrait-stack div:nth-child(3) img {
  object-position: center center;
  transform: translateY(8px) scale(1.05);
}

.portrait-stack div:nth-child(2) {
  transform: none;
}

.portrait-stack div:nth-child(3) {
  transform: none;
}

.page-section {
  background: var(--paper);
}

.students-page .page-section + .page-section {
  padding-top: 62px;
}

.students-page .form-panel {
  padding-top: 68px;
}

.content-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

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

.photo-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(25, 22, 8, 0.08);
}

.photo-card img {
  width: 100%;
  height: min(48vw, 520px);
  min-height: 320px;
  object-fit: cover;
}

.photo-card--top img {
  object-position: center 24%;
}

.photo-card--students-team img {
  height: auto;
  min-height: 0;
  object-fit: contain;
  object-position: center center;
}

.photo-card--presentation img {
  object-position: center 38%;
}

.mini-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.detail-grid,
.project-grid,
.profile-grid {
  display: grid;
  gap: 18px;
}

.detail-grid {
  grid-template-columns: repeat(3, 1fr);
}

.project-grid {
  grid-template-columns: repeat(3, 1fr);
}

.profile-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.profile-grid--md {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.directors-section {
  border-top: 1px solid var(--line);
  background: rgba(244, 237, 220, 0.72);
}

.directors-layout {
  display: grid;
  gap: 18px;
}

.directors-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.directors-row--center {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(760px, 100%);
  margin: 0 auto;
}

.detail-card,
.process-card,
.profile-card,
.timeline-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  padding: 22px;
}

.detail-card span,
.process-card span,
.timeline-item span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--sage-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pipeline {
  display: grid;
  gap: 14px;
  position: relative;
}

.pipeline::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  padding-left: 58px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 26px;
  width: 20px;
  height: 20px;
  border: 4px solid var(--paper);
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 1px var(--line);
}

.journey-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 42px;
}

.journey-grid::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 184, 93, 0.8), transparent);
  pointer-events: none;
}

.journey-card {
  position: relative;
  z-index: 1;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 28px;
  border: 1px solid rgba(4, 0, 80, 0.12);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(25, 22, 8, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.journey-card::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 74px;
  height: 1px;
  background: linear-gradient(90deg, rgba(217, 184, 93, 0.92), transparent);
}

.journey-card:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 184, 93, 0.7);
  box-shadow: 0 22px 50px rgba(25, 22, 8, 0.11);
}

.journey-card span {
  min-height: 28px;
  display: flex;
  align-items: flex-start;
  color: var(--sage-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journey-card div {
  margin-top: 28px;
}

.journey-card p {
  color: var(--muted);
  line-height: 1.58;
}

.journey-cta {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.timeline-list {
  display: grid;
  gap: 18px;
}

.timeline-role {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 22px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}

.date-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.date-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(4, 0, 80, 0.09);
}

.timeline-role .button {
  margin-top: 16px;
}

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

.check-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(4, 0, 80, 0.12);
  border-radius: var(--radius);
  background: #fffdf8;
}

.check-grid input {
  width: auto;
}

.interest-choice-panel {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 2px 0 0;
  border: 0;
  background: transparent;
}

.interest-choice-panel legend {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
}

.interest-choice-panel > p {
  margin: -2px 0 4px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.check-grid--interest {
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.interest-form .check-grid--interest label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 54px;
  align-items: center;
  column-gap: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(4, 0, 80, 0.12);
  border-radius: var(--radius);
  background: #fffdf8;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.interest-form .check-grid--interest label span {
  min-width: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
}

.interest-form .check-grid--interest input {
  justify-self: end;
  width: 18px;
  height: 18px;
  min-height: 0;
  accent-color: var(--navy-soft);
}

.check-grid--interest label:has(input:checked) {
  border-color: rgba(20, 21, 111, 0.72);
  background: rgba(134, 139, 191, 0.12);
  box-shadow: inset 0 0 0 1px rgba(20, 21, 111, 0.18);
}

.instagram-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 34px;
  align-items: center;
}

.instagram-grid--feature {
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: stretch;
}

.instagram-grid--feature .section-heading {
  width: min(720px, 100%);
}

.instagram-grid--feature h2 {
  font-size: clamp(2rem, 3vw, 3.25rem);
}

.instagram-grid--feature .button {
  margin-top: 8px;
}

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

.post-card {
  min-height: 310px;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  border-radius: var(--radius);
  background:
    linear-gradient(to top, rgba(6, 6, 79, 0.78) 0%, rgba(6, 6, 79, 0.42) 34%, rgba(6, 6, 79, 0) 70%),
    url("assets/photos/team-warm.jpg") center/cover;
  color: var(--white);
  overflow: hidden;
}

.post-card strong {
  font-family: var(--font-display);
  font-size: clamp(1.24rem, 1.5vw, 1.48rem);
  font-weight: 400;
  line-height: 1.05;
}

.post-card span {
  max-width: 220px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  line-height: 1.35;
}

.post-card--events {
  background:
    linear-gradient(to top, rgba(6, 6, 79, 0.78) 0%, rgba(6, 6, 79, 0.42) 34%, rgba(6, 6, 79, 0) 70%),
    url("assets/photos/follow-events.jpg") center 46%/cover;
}

.post-card--presentation {
  background:
    linear-gradient(to top, rgba(6, 6, 79, 0.78) 0%, rgba(6, 6, 79, 0.42) 34%, rgba(6, 6, 79, 0) 70%),
    url("assets/photos/follow-presentation.jpg") center 42%/cover;
}

.post-card--recruiting {
  background:
    linear-gradient(to top, rgba(6, 6, 79, 0.78) 0%, rgba(6, 6, 79, 0.42) 34%, rgba(6, 6, 79, 0) 70%),
    url("assets/photos/follow-recruiting.jpg") center 40%/cover;
}

.form-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: 34px;
  align-items: start;
  background: var(--cream);
}

.form-slot {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  width: min(640px, 100%);
  justify-self: end;
  min-height: 420px;
}

.interest-form {
  position: relative;
  overflow: hidden;
  width: 100%;
  display: grid;
  gap: 15px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 50px rgba(25, 22, 8, 0.07);
  transform-origin: 50% 62%;
  transition: transform 420ms ease, border-color 420ms ease, box-shadow 420ms ease;
}

.interest-form[hidden] {
  display: none;
}

.interest-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.88rem;
}

.interest-form > * {
  transition: opacity 280ms ease, transform 280ms ease;
}

.form-slot[data-form-state="submitting"] .interest-form {
  border-color: rgba(217, 184, 93, 0.55);
  box-shadow: 0 20px 54px rgba(25, 22, 8, 0.1);
}

.form-slot[data-form-state="sent"] .interest-form {
  animation: form-card-to-plane 560ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  border-color: rgba(217, 184, 93, 0.74);
}

.form-slot[data-form-state="sent"] .interest-form > * {
  animation: form-fields-fold 320ms ease forwards;
}

.interest-form > .button {
  width: 100%;
  margin-top: 2px;
}

.interest-form > .button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.form-status {
  min-height: 20px;
  margin: -4px 0 0;
  color: var(--sage-dark);
  font-size: 0.85rem;
  line-height: 1.35;
}

.form-success {
  width: 100%;
  display: grid;
  gap: 16px;
  padding: 32px;
  border: 1px solid rgba(217, 184, 93, 0.45);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(244, 237, 220, 0.92));
  box-shadow: 0 18px 50px rgba(25, 22, 8, 0.08);
  opacity: 0;
  transform: translateY(16px);
}

.form-success[hidden] {
  display: none;
}

.form-slot[data-form-state="complete"] .form-success {
  animation: success-rise 540ms ease forwards;
}

.form-success h3 {
  margin: 0;
  max-width: 17ch;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.form-success p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.paper-plane {
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: 6;
  width: 46px;
  height: 46px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-8deg) scale(0.72);
}

.form-slot[data-form-state="sent"] .paper-plane {
  animation: paper-plane-send 980ms 220ms cubic-bezier(0.2, 0.82, 0.24, 1) forwards;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(4, 0, 80, 0.16);
  border-radius: var(--radius);
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  padding: 12px 13px;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(217, 184, 93, 0.45);
  border-color: var(--sage-dark);
}

.profile-card {
  display: grid;
  gap: 14px;
  min-height: 100%;
}

.profile-card--md {
  align-content: start;
}

.profile-photo {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f1eadc, #dfe8d8);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 2rem;
  box-shadow: inset 0 0 0 1px rgba(4, 0, 80, 0.1);
  overflow: hidden;
}

.profile-photo--headshot {
  aspect-ratio: 4 / 5;
  background: rgba(255, 253, 248, 0.72);
}

.profile-photo--headshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo--left img {
  object-position: center center;
  transform: translateY(8px) scale(1.06);
}

.profile-photo--middle img {
  object-position: 44% 42%;
  transform: translateY(-24px) scale(1.18);
}

.profile-photo--right img {
  object-position: center center;
  transform: translateY(8px) scale(1.05);
}

.profile-meta {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 34px max(24px, calc((100vw - var(--max)) / 2));
  color: var(--navy);
  background: var(--cream);
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.footer div {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer div:last-child {
  justify-content: flex-end;
}

.footer div:last-child a {
  font-weight: 700;
  color: var(--navy-soft);
}

.footer a {
  transition: color 180ms ease, opacity 180ms ease;
}

.footer a:hover {
  color: var(--sage-dark);
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

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

@media (max-width: 1040px) {
  .detail-grid,
  .project-grid,
  .profile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 920px) {
  .nav {
    grid-template-columns: auto 1fr auto;
  }

  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: block;
    justify-self: end;
  }

  .mobile-menu {
    display: grid;
    gap: 18px;
    padding: 0 28px;
    max-height: 0;
    overflow: hidden;
    background: rgba(255, 250, 241, 0.94);
    color: var(--ink);
    transition: max-height 260ms ease, padding 260ms ease;
  }

  .mobile-menu.is-open {
    max-height: 280px;
    padding-bottom: 24px;
  }

  .metrics,
  .preview-grid,
  .leadership-teaser,
  .content-split,
  .photo-split,
  .form-panel,
  .instagram-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .metrics__photo,
  .metrics__photo img {
    min-height: 340px;
  }

  .metrics__photo--full img {
    min-height: 340px;
    max-height: none;
  }

  .portrait-stack {
    min-height: 280px;
  }

  .portrait-stack div {
    height: 280px;
  }

  .journey-grid,
  .profile-grid--md,
  .directors-row,
  .directors-row--center {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .journey-grid::before {
    display: none;
  }

  .journey-card {
    min-height: auto;
  }

  .post-card {
    min-height: 240px;
  }

  .instagram-grid--feature {
    gap: 28px;
  }

  .instagram-grid--feature .section-heading {
    text-align: center;
  }

  .footer,
  .footer div,
  .footer div:last-child {
    justify-content: center;
    text-align: center;
  }

  .form-slot {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 640px) {
  .nav {
    width: calc(100% - 28px);
  }

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

  .hero {
    min-height: 78svh;
    padding: calc(var(--nav-height) + 38px) 18px 46px;
  }

  .hero--home h1 {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  h1 {
    font-size: clamp(2.65rem, 13vw, 4.5rem);
  }

  .hero--page h1 {
    font-size: clamp(2.35rem, 11vw, 3.8rem);
  }

  .hero--students h1 {
    font-size: clamp(2.35rem, 10vw, 3.55rem);
  }

  .hero__dek {
    font-size: 0.98rem;
  }

  .section-pad {
    padding: 64px 18px;
  }

  .mission.section-pad {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .metrics__grid,
  .detail-grid,
  .project-grid,
  .profile-grid,
  .post-grid,
  .timeline-role,
  .check-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .check-grid--interest {
    grid-template-columns: 1fr;
  }

  .instagram-grid--feature h2 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .post-grid {
    gap: 16px;
  }

  .post-card {
    min-height: 280px;
  }

  .preview-card {
    min-height: 320px;
    padding: 22px;
  }

  .preview-card__image {
    width: calc(100% + 44px);
    height: 210px;
    margin: -22px -22px 20px;
  }

  .logo-card {
    width: 210px;
    height: 118px;
  }

  .logo-card--wide {
    width: 280px;
  }

  .logo-card--tall {
    width: 150px;
  }

  .logo-card--wikipedia {
    width: 190px;
  }

  .logo-card img {
    max-height: 92px;
  }

  .logo-card--wide img {
    max-height: 90px;
  }

  .logo-card--tall img,
  .logo-card--seal img,
  .logo-card--remax img,
  .logo-card--access img,
  .logo-card--wikipedia img {
    max-height: 108px;
  }
}

@keyframes form-fields-fold {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(20px, -14px) scale(0.72);
  }
}

@keyframes form-card-to-plane {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  42% {
    opacity: 0.55;
    transform: translate(26px, -18px) rotate(4deg) scale(0.34, 0.24);
    box-shadow: 0 10px 24px rgba(25, 22, 8, 0.05);
  }
  100% {
    opacity: 0;
    transform: translate(36px, -28px) rotate(16deg) scale(0.06);
    box-shadow: none;
  }
}

@keyframes paper-plane-send {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-12deg) scale(0.48);
  }
  14% {
    opacity: 1;
  }
  58% {
    opacity: 1;
    transform: translate(54%, -160%) rotate(16deg) scale(0.9);
  }
  100% {
    opacity: 0;
    transform: translate(155%, -295%) rotate(32deg) scale(0.56);
  }
}

@keyframes success-rise {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .form-slot[data-form-state] .interest-form,
  .form-slot[data-form-state] .interest-form > *,
  .form-slot[data-form-state] .paper-plane,
  .form-slot[data-form-state] .form-success {
    animation: none !important;
    transition: none !important;
  }

  .paper-plane {
    display: none;
  }

  .form-slot[data-form-state="complete"] .form-success {
    opacity: 1;
    transform: none;
  }
}
