:root {
  --section-y: clamp(40px, 4.5vw, 52px);
  --section-head-gap: 32px;
  --forest: #185850;
  --forest-deep: #0f3d38;
  --forest-dark: #0a2c28;
  --emerald: #2d945c;
  --gold: #f6ab16;
  --gold-dark: #c4880e;
  --violet: #6816a4;
  --cyan: #6fdcef;
  --paper: #f4f8f6;
  --off-white: #ececec;
  --surface-white: #ffffff;
  --line: #dce8e4;
  --cream: var(--paper);
  --cream-muted: var(--off-white);
  --ink: #12211f;
  --muted: #5b6f6c;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  color: var(--ink);
  background: var(--surface-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  margin: 0;
  line-height: 1.08;
}

p { margin: 0; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { margin: 0; }

.accent-script {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(246, 171, 22, 0.12);
  border: 1px solid rgba(246, 171, 22, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
}

/* Header badge chip — lives in #hdr next to logo */
#hdr .header-chip {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  margin-left: 1.25rem;
  line-height: 1;
}

#hdr .header-chip__text {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  border: none;
  background: var(--gold);
  color: #0a2c28;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
}

#hdr .header-chip__text::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 38%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.72) 50%, transparent 100%);
  transform: skewX(-24deg) translateX(-160%);
  animation: header-chip-shine 2.6s linear infinite;
  pointer-events: none;
}

@keyframes header-chip-shine {
  0% { transform: skewX(-24deg) translateX(-160%); }
  100% { transform: skewX(-24deg) translateX(360%); }
}

@media (max-width: 767px) {
  #hdr .header-chip {
    margin-left: 1rem;
  }
}

@media (min-width: 768px) {
  #hdr .header-chip {
    margin-left: 2.5rem;
  }

  #hdr .header-chip__text {
    padding: 8px 18px;
    font-size: 11px;
    letter-spacing: 0.12em;
  }
}

@media (max-width: 420px) {
  #hdr .header-chip__text {
    padding: 6px 10px;
    font-size: 8.5px;
    letter-spacing: 0.08em;
  }
}

@media (prefers-reduced-motion: reduce) {
  #hdr .header-chip__text::after {
    animation: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--forest-dark);
  box-shadow: none;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #f0b020, var(--gold-dark));
  box-shadow: none;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: #eef4f1;
  color: var(--forest-deep);
  padding: var(--site-nav-stack) 0 0;
  isolation: isolate;
}

.hero-media {
  display: none;
}

.hero-frost {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(246, 250, 248, 0.9) 42%,
    rgba(232, 242, 237, 0.86) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  padding-bottom: clamp(32px, 5vw, 48px);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 40px);
  width: 100%;
}

.hero-content {
  max-width: 720px;
  text-align: left;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 clamp(6px, 1vh, 10px);
  padding: 5px 12px;
  border-radius: 999px;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a2c28;
  background: var(--gold);
  border: none;
  box-shadow: 0 1px 0 rgba(10, 44, 40, 0.08);
}

.hero-collage {
  display: none;
  pointer-events: none;
  user-select: none;
}

.hero-collage picture {
  display: block;
  width: 100%;
  line-height: 0;
}

.hero-collage img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (min-width: 900px) {
  .hero-inner {
    padding-bottom: 0;
    overflow: visible;
  }

  .hero-layout {
    position: relative;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    align-items: stretch;
    gap: 0;
    min-height: calc(100svh - var(--site-nav-stack) + 0.75rem);
    overflow: visible;
  }

  .hero-content {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    z-index: 2;
    max-width: min(540px, 46vw);
    justify-self: start;
    align-self: center;
    padding-bottom: clamp(16px, 2.5vh, 28px);
  }

  .hero h1 {
    font-size: clamp(36px, 4.8vw, 64px);
    margin-bottom: clamp(18px, 2.5vh, 26px);
    letter-spacing: -0.035em;
    line-height: 1;
  }

  .hero-eyebrow {
    font-size: 12px;
    padding: 5px 12px;
    margin-bottom: clamp(6px, 1vh, 10px);
  }

  .hero-collage {
    grid-column: 1;
    grid-row: 1;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    align-self: stretch;
    padding: 0;
    margin-right: calc(-1 * clamp(16px, 2.5vw, 28px) - clamp(20px, 3vw, 48px));
  }

  .hero-collage picture {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: min(1020px, 82vw);
    max-width: 100%;
    height: 100%;
    margin-left: auto;
    margin-right: clamp(34px, 5vw, 88px);
  }

  .hero-collage img {
    width: 100%;
    height: auto;
    max-width: min(1020px, 82vw);
    max-height: min(
      800px,
      calc(100svh - var(--site-nav-stack) - 0.5rem)
    );
    margin: 0;
    object-fit: contain;
    object-position: 68% center;
    transform: translateX(clamp(-58px, -4.4vw, -28px));
  }
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(34px, 5.8vw, 60px);
  font-weight: 900;
  color: var(--forest-deep);
  margin: 0 0 18px;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.hero h1 .hero-h1-line {
  display: inline-block;
  color: var(--forest-deep);
}

.hero h1 .hero-h1-line--accent {
  color: #f5a623;
}

.hero-title-nowrap {
  white-space: nowrap;
}

.hero .sub {
  font-size: clamp(16px, 2vw, 18px);
  color: #2a2a2a;
  max-width: 58ch;
  margin-bottom: 28px;
  font-weight: 500;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 0;
}

.hero-stats {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: clamp(28px, 5vw, 44px);
  width: max-content;
  max-width: 100%;
  margin: clamp(22px, 3.5vh, 36px) 0 0;
}

.hero-stat-card {
  flex: 0 0 auto;
  padding: 0;
  text-align: left;
}

.hero-stats b {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  color: var(--forest-deep);
  line-height: 1.1;
}

.hero-stats span {
  display: block;
  margin-top: 6px;
  font-size: clamp(0.58rem, 1.4vw, 0.72rem);
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

@media (min-width: 900px) {
  .hero-content {
    max-width: min(640px, 50vw);
  }

  .hero-stats {
    gap: clamp(32px, 4vw, 48px);
    margin-top: clamp(24px, 3vh, 40px);
  }
}

.f-media {
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  box-shadow: 0 22px 44px -20px rgba(10, 44, 40, 0.35);
  background: var(--forest-dark);
}

.f-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#boarding .f-media img {
  object-position: 16% center;
}

#cocurricular .cocurricular-sport__media {
  aspect-ratio: 3 / 2;
  max-height: min(360px, 48vw);
}

#cocurricular .cocurricular-sport__media img {
  object-position: center 38%;
}

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

.achievements-section {
  padding-bottom: clamp(32px, 4vw, 44px);
  overflow: hidden;
}

.section-head {
  max-width: 700px;
  margin: 0 auto var(--section-head-gap);
  text-align: center;
}

.section-head .kicker-label {
  display: inline-flex;
}

.section-head h2 {
  font-size: clamp(25px, 3.1vw, 38px);
  color: var(--forest-dark);
  margin-top: 14px;
}

.section-head .kicker-label + h2 {
  margin-top: 0;
}

.campus-section .kicker-label,
.contact-section__desktop .kicker-label,
.visit-divider .kicker-label {
  color: var(--gold);
}

.campus-section .kicker-label::before,
.contact-section__desktop .kicker-label::before,
.visit-divider .kicker-label::before {
  background: var(--gold);
}

.contact-section__mobile .kicker-label {
  display: inline-flex;
  margin-bottom: 10px;
}

.home-gallery-head .kicker-label {
  display: inline-flex;
  margin-bottom: 10px;
}

.section-head--form {
  margin-bottom: clamp(20px, 3vw, 28px);
}

.section-head p {
  color: var(--muted);
  font-size: 15.5px;
  margin-top: 14px;
  font-weight: 500;
}

.light { background: var(--surface-white); }

/* Section surfaces — align with TAC_Main_Website home (white ↔ paper) */
#academics.academics-section,
#achievements.achievements-section,
#testimonials.testimonials-section,
#form.hero-admissions {
  background: linear-gradient(180deg, #eef4f1 0%, var(--paper) 22%, var(--paper) 100%);
}

#about {
  background: var(--off-white);
}

.dark {
  background: linear-gradient(160deg, var(--forest-dark), var(--forest-deep));
  color: #fff;
}

.dark .section-head h2 { color: #fff; }
.dark .section-head p { color: #bcd8d0; }

.slice-top {
  margin-top: 0;
}

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

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

@media (max-width: 900px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.feature-item {
  padding: 2px 0 2px 20px;
  border-left: 3px solid var(--forest);
}

.feature-item .ico {
  font-size: 26px;
  margin-bottom: 10px;
  display: block;
}

.feature-item h4 {
  font-size: 16px;
  color: var(--forest-dark);
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 13.8px;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 500;
}

.dark .feature-item { border-left-color: var(--gold); }
.dark .feature-item h4 { color: #fff; }
.dark .feature-item p { color: #cfe6de; }
.fi-emerald { border-left-color: var(--emerald) !important; }
.fi-gold { border-left-color: var(--gold-dark) !important; }
.fi-violet { border-left-color: var(--violet) !important; }
.fi-cyan { border-left-color: var(--cyan) !important; }

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-height: clamp(380px, 40vw, 460px);
  align-items: stretch;
}

.bento .tile {
  border-radius: 22px;
  padding: 26px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.bento .tile .bic { font-size: 30px; margin-bottom: 8px; }
.bento .tile h3 { font-size: 18px; color: #fff; }
.bento .tile p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  margin-top: 6px;
  line-height: 1.5;
}

.bento .b1 {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.bento .b2 {
  grid-column: 2;
  grid-row: 1;
}

.bento .b4 {
  grid-column: 2;
  grid-row: 2;
}

.bento-boarding-col {
  grid-column: 3;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
}

.bento-boarding-col .b3 {
  flex: 1 1 0;
  min-height: 0;
}

.bento-boarding-col .b5 {
  flex: 0 0 clamp(100px, 24%, 118px);
  width: 100%;
}

.bento .b1,
.bento .b2,
.bento .b3,
.bento .b4 {
  background: var(--forest-dark);
  padding: 0;
}

.bento .b1 .tile-photo,
.bento .b2 .tile-photo,
.bento .b3 .tile-photo,
.bento .b4 .tile-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.bento .b1 .tile-photo {
  object-position: 52% center;
}

.bento .b3 .tile-photo {
  object-position: 38% 42%;
}

.bento .b1::after,
.bento .b2::after,
.bento .b4::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(10, 44, 40, 0.68) 0%,
    rgba(10, 44, 40, 0.32) 42%,
    rgba(10, 44, 40, 0.08) 100%
  );
  pointer-events: none;
}

.bento .b3::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(10, 44, 40, 0.26) 0%,
    rgba(10, 44, 40, 0.08) 32%,
    transparent 100%
  );
  pointer-events: none;
}

.bento .b1 .tile-content,
.bento .b2 .tile-content,
.bento .b3 .tile-content,
.bento .b4 .tile-content {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 22px;
}

.bento .b2 .tile-content,
.bento .b4 .tile-content {
  padding: 18px 20px;
}

.bento .b2 h3,
.bento .b4 h3 {
  font-size: 17px;
}

.bento .b2 p,
.bento .b4 p {
  font-size: 12.5px;
  margin-top: 4px;
}

.bento .b5 {
  background: linear-gradient(155deg, var(--violet), #4a1080 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 16px;
  margin: 0;
}

.bento .b5 a,
.bento .b5 a:link,
.bento .b5 a:visited,
.bento .b5 a:hover,
.bento .b5 a:focus {
  color: #fff;
  font-weight: 800;
  font-size: 19px;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

@media (max-width: 860px) {
  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    grid-auto-rows: minmax(150px, auto);
    min-height: 0;
  }

  .bento .b1 {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 220px;
  }

  .bento .b2,
  .bento .b4 {
    grid-column: auto;
    grid-row: auto;
    min-height: 170px;
  }

  .bento-boarding-col {
    grid-column: 1 / -1;
    grid-row: auto;
    flex-direction: row;
    min-height: 180px;
  }

  .bento-boarding-col .b3 {
    flex: 1 1 58%;
    min-height: 180px;
  }

  .bento-boarding-col .b5 {
    flex: 1 1 42%;
    min-height: 0;
  }
}

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

  .bento .b1 { grid-column: 1; }

  .bento .b2,
  .bento .b4 {
    min-height: 160px;
  }

  .bento-boarding-col {
    flex-direction: column;
  }

  .bento-boarding-col .b3,
  .bento-boarding-col .b5 {
    flex: none;
    min-height: 160px;
  }

  .bento-boarding-col .b5 {
    min-height: 108px;
  }
}

.values-ribbon {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  margin: 48px 0;
}

.value-item {
  flex: 1;
  min-width: 220px;
  padding: 30px 24px;
  position: relative;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.value-item:last-child { border-right: none; }

.value-item .num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 46px;
  color: rgba(255, 255, 255, 0.14);
  position: absolute;
  top: 8px;
  right: 16px;
}

.value-item h3 {
  font-size: 16px;
  color: #fff;
  position: relative;
  margin-bottom: 8px;
}

.value-item p {
  font-size: 13.3px;
  color: #cfe6de;
  font-weight: 500;
  line-height: 1.55;
  position: relative;
}

@media (max-width: 760px) {
  .value-item {
    flex: 1 1 50%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }
}

.pull-quote {
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  padding-top: 34px;
}

.pull-quote::before {
  content: "\201C";
  font-family: 'Playfair Display', serif;
  font-size: 110px;
  color: rgba(246, 171, 22, 0.28);
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
}

.pull-quote p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 24px);
  color: #fff;
  line-height: 1.55;
  position: relative;
}

.pull-quote .who {
  margin-top: 20px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: var(--gold);
}

.pull-quote .who span {
  display: block;
  font-weight: 600;
  font-size: 12.5px;
  color: #a9c8bf;
  margin-top: 2px;
}

.pull-quote--light {
  margin-top: clamp(40px, 6vw, 56px);
}

.pull-quote--light p {
  color: var(--forest-deep);
}

.pull-quote--light .who {
  color: var(--gold-dark);
}

.pull-quote--light .who span {
  color: var(--muted);
}

.gallery-masonry {
  column-count: 4;
  column-gap: 14px;
}

.gallery-tile {
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: var(--forest-dark);
}

.gallery-tile img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.gallery-tile:nth-child(1) img,
.gallery-tile:nth-child(5) img { aspect-ratio: 3 / 4; }

.gallery-tile:nth-child(3) img,
.gallery-tile:nth-child(7) img { aspect-ratio: 4 / 3; }

.gallery-tile .cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  right: 12px;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

@media (max-width: 860px) {
  .gallery-masonry { column-count: 2; }
}

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

.roadmap .stop {
  position: relative;
  margin: 0;
  border-radius: 16px;
  padding: 22px 20px 24px;
  background: #fff;
  border: 1px solid rgba(15, 61, 56, 0.1);
  box-shadow: 0 14px 36px -28px rgba(10, 44, 40, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.roadmap--pathway {
  position: relative;
  padding-top: 2.75rem;
  align-items: stretch;
}

.roadmap--pathway::before {
  content: '';
  position: absolute;
  top: 1.125rem;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(24, 88, 80, 0.35) 0%,
    rgba(45, 148, 92, 0.45) 33%,
    rgba(196, 136, 14, 0.45) 66%,
    rgba(104, 22, 164, 0.4) 100%
  );
  border-radius: 2px;
}

.pathway-card {
  --pathway-accent: var(--forest);
}

.pathway-card--forest { --pathway-accent: var(--forest); }
.pathway-card--emerald { --pathway-accent: var(--emerald); }
.pathway-card--gold { --pathway-accent: var(--gold-dark); }
.pathway-card--violet { --pathway-accent: var(--violet); }

.pathway-card::before {
  content: '';
  position: absolute;
  top: -1.625rem;
  left: 50%;
  width: 2px;
  height: 1rem;
  background: rgba(15, 61, 56, 0.18);
  transform: translateX(-50%);
}

.pathway-card::after {
  content: '';
  position: absolute;
  top: -2.125rem;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--pathway-accent);
  box-shadow: 0 0 0 4px rgba(15, 61, 56, 0.06);
  transform: translateX(-50%);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pathway-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 61, 56, 0.16);
  box-shadow: 0 20px 44px -26px rgba(10, 44, 40, 0.4);
}

.pathway-card:hover::after {
  transform: translateX(-50%) scale(1.08);
  box-shadow: 0 0 0 5px rgba(15, 61, 56, 0.1);
}

.roadmap .grade-badge {
  display: block;
  margin-bottom: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pathway-accent, var(--emerald));
}

.roadmap h4 {
  font-size: 1.05rem;
  color: var(--forest-deep);
  margin-bottom: 4px;
}

.roadmap .focus {
  font-size: 0.78rem;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 10px;
}

.roadmap p.d {
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.55;
}

@media (max-width: 860px) {
  .roadmap { grid-template-columns: 1fr 1fr; gap: 18px; }

  .roadmap--pathway {
    padding-top: 0;
  }

  .roadmap--pathway::before,
  .pathway-card::before,
  .pathway-card::after {
    display: none;
  }

  .pathway-card {
    border-left: 4px solid var(--pathway-accent);
    padding-left: 18px;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .pathway-card,
  .pathway-card::after {
    transition: none;
  }
}

/* School Integrated Programme — matches TAC academics StreamsSection */
.integrated-programme {
  position: relative;
  margin-bottom: 56px;
  padding-top: 8px;
}

.integrated-programme__head {
  display: grid;
  gap: 20px;
  align-items: end;
  margin-bottom: 32px;
}

@media (min-width: 900px) {
  .integrated-programme__head {
    grid-template-columns: 1fr auto;
    gap: 24px;
  }
}

.kicker-label,
.integrated-programme__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--emerald);
}

.kicker-label::before,
.integrated-programme__label::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--emerald);
}

.integrated-programme__title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--forest-deep);
}

.integrated-programme__desc {
  margin-top: 10px;
  max-width: 42ch;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--muted);
}

.dark .kicker-label,
.dark .integrated-programme__label {
  color: var(--gold);
}

.dark .kicker-label::before,
.dark .integrated-programme__label::before {
  background: var(--gold);
}

.dark .integrated-programme__title {
  color: #fff;
}

.dark .integrated-programme__desc {
  color: rgba(255, 255, 255, 0.62);
}

@media (min-width: 900px) {
  .integrated-programme__desc {
    max-width: none;
    white-space: nowrap;
  }
}

.integrated-programme__cta {
  justify-self: start;
  padding: 12px 28px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (min-width: 900px) {
  .integrated-programme__cta {
    justify-self: end;
  }
}

.integrated-programme__grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
  margin: 0 -4px;
}

.integrated-programme__grid::-webkit-scrollbar {
  display: none;
}

.integrated-programme__card {
  flex: 0 0 235px;
  scroll-snap-align: start;
  border-radius: 20px;
  padding: 20px;
  color: #fff;
}

.integrated-programme__card:nth-child(1) {
  background: linear-gradient(150deg, var(--violet), #3d0d63);
}

.integrated-programme__card:nth-child(2) {
  background: linear-gradient(150deg, var(--forest), #0c322c);
}

.integrated-programme__card:nth-child(3) {
  background: linear-gradient(150deg, #2e2a2c, #241f22);
}

@media (min-width: 768px) {
  .integrated-programme__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    overflow: visible;
    margin: 0;
    padding-bottom: 0;
  }

  .integrated-programme__card {
    flex: none;
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .integrated-programme__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -24px rgba(10, 44, 40, 0.45);
  }

  .dark .integrated-programme__card {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06) !important;
    box-shadow: none;
  }

  .dark .integrated-programme__card:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: none;
  }
}

@media (min-width: 1100px) {
  .integrated-programme__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.integrated-programme__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.45rem;
  line-height: 1;
}

.integrated-programme__card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

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

.integrated-programme__list li {
  display: flex;
  gap: 6px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 6px;
}

.integrated-programme__list li::before {
  content: '→';
  flex-shrink: 0;
  font-size: 0.68rem;
  color: var(--gold);
  margin-top: 2px;
}

@media (max-width: 767px) {
  .integrated-programme__list li {
    font-size: 0.6875rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
  }

  .integrated-programme__list li::before {
    content: '→ ';
    color: inherit;
    font-size: inherit;
    margin-top: 0;
  }

  .integrated-programme__card-title {
    font-size: 0.9375rem;
  }

  .integrated-programme__icon {
    width: auto;
    height: auto;
    margin-bottom: 10px;
    background: none;
    font-size: 1.375rem;
  }
}

.integrated-programme__partners {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(24, 88, 80, 0.12);
}

.integrated-programme__partners-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.dark .integrated-programme__partners {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.dark .integrated-programme__partners-label {
  color: rgba(255, 255, 255, 0.55);
}

.integrated-programme__partners-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 32px;
  margin-top: 16px;
}

.integrated-programme__partners-logos img {
  height: 42px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  object-position: left center;
  filter: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.integrated-programme__partners-logos img:hover {
  opacity: 0.9;
}

.dark .integrated-programme__partners-logos img {
  filter: none;
  opacity: 0.9;
}

.dark .integrated-programme__partners-logos img:hover {
  opacity: 1;
}

.stream-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 16px 34px -22px rgba(10, 44, 40, 0.28);
  border-top: 4px solid var(--forest);
}

.stream-card:nth-child(2) { border-top-color: var(--emerald); }
.stream-card:nth-child(3) { border-top-color: var(--gold-dark); }
.stream-card h4 { font-size: 17px; color: var(--forest-dark); margin-bottom: 12px; }

.stream-card .label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 14px;
  margin-bottom: 6px;
}

.stream-card p.desc {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.5;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
  background: #e9f2ee;
  color: var(--forest-deep);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(24, 88, 80, 0.22);
}

.dark .chip {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.stream-card .chip {
  background: #e9f2ee !important;
  color: var(--forest-deep) !important;
  border-color: rgba(24, 88, 80, 0.22) !important;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.feature-row.rev .f-media { order: 2; }

.f-copy .eyebrow { margin-bottom: 16px; }

.f-copy .kicker-label {
  display: flex;
  margin-bottom: 14px;
}

.f-copy h2 {
  font-size: clamp(23px, 2.7vw, 31px);
  color: var(--forest-dark);
  margin-bottom: 16px;
}

.dark .f-copy h2 { color: #fff; }

.f-copy p.lead {
  font-size: 15.5px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 22px;
  line-height: 1.6;
}

.dark .f-copy p.lead { color: #cfe6de; }

.stat-inline {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.stat-inline b {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 26px;
  color: var(--emerald);
}

.dark .stat-inline b { color: var(--cyan); }
.stat-inline span { font-size: 12px; color: var(--muted); font-weight: 600; }
.dark .stat-inline span { color: #bcd8d0; }

@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; gap: 28px; }
  .feature-row.rev .f-media { order: 0; }
}

.timeline { position: relative; padding-left: 24px; }
.t-item { position: relative; padding-bottom: 12px; }
.t-item:last-child { padding-bottom: 0; }

.t-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-dark);
}

.t-item .time {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 12.5px;
  color: var(--gold-dark);
}

.t-item .what { font-size: 13.5px; color: var(--ink); font-weight: 600; }

.stat-ribbon {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  margin-bottom: 52px;
}

.stat-ribbon div {
  flex: 1;
  min-width: 180px;
  text-align: center;
  padding: 30px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.stat-ribbon div:last-child { border-right: none; }

.stat-ribbon b {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 40px;
  color: var(--gold);
}

.stat-ribbon span { font-size: 13px; color: #cfe6de; font-weight: 600; }

@media (max-width: 700px) {
  .stat-ribbon div {
    flex: 1 1 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  margin-bottom: 14px;
}

.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: scrollX 32s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee.rev .marquee-track { animation-direction: reverse; }

@keyframes scrollX {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .btn-gold:hover { transform: none; }
}

.m-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 12px 18px;
  white-space: nowrap;
}

.m-pill b {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 13.5px;
  color: #fff;
}

.m-pill .score {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 16px;
  color: var(--cyan);
}

.m-pill span.tag2 { font-size: 11px; color: #a9c8bf; font-weight: 600; }

.award-marquee .m-pill { background: #fff; border-color: #e7e2d4; }
.award-marquee .m-pill b { color: var(--forest-dark); }
.award-marquee .medal { font-size: 16px; }

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

.step {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 26px 18px 20px;
  text-align: left;
  box-shadow: 0 16px 34px -22px rgba(10, 44, 40, 0.28);
}

.step:nth-child(odd) { transform: translateY(-8px); }

.step .num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 13px;
  color: var(--gold-dark);
  background: rgba(246, 171, 22, 0.14);
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.step h4 { font-size: 15.5px; color: var(--forest-dark); margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--muted); line-height: 1.5; font-weight: 500; }

@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(odd) { transform: none; }
}

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

.cta-band {
  background: linear-gradient(120deg, var(--violet), #4a1080 70%);
  color: #fff;
  border-radius: 30px;
  padding: 46px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: 0 30px 60px -24px rgba(104, 22, 164, 0.55);
}

.cta-band .left .eyebrow {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.cta-band h2 {
  font-size: clamp(24px, 3vw, 32px);
  color: #fff;
  margin: 14px 0 0;
}

.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-band .phone { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }

#form.hero-admissions {
  padding-top: clamp(20px, 3.5vw, 32px);
  padding-bottom: clamp(28px, 4.5vw, 44px);
}

.form-shell {
  border: 1px solid rgba(220, 232, 228, 0.8);
  border-radius: 1rem;
  background: rgba(244, 248, 246, 0.98);
  box-shadow: 0 24px 64px -28px rgba(15, 61, 56, 0.38);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  overflow: hidden;
}

.form-side {
  position: relative;
  isolation: isolate;
  color: #fff;
  padding: 44px 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  background: var(--forest-dark);
}

.form-side__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.form-side__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.form-side__frost {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    155deg,
    rgba(24, 88, 80, 0.14) 0%,
    rgba(15, 61, 56, 0.28) 45%,
    rgba(10, 44, 40, 0.42) 100%
  );
  backdrop-filter: blur(3px) saturate(1.05);
  -webkit-backdrop-filter: blur(3px) saturate(1.05);
}

.form-side__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-height: 100%;
}

.form-side__cta {
  margin-top: 32px;
}

.form-side__cta .btn-outline {
  width: 100%;
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
  font-weight: 700;
}

.form-side__cta .btn-outline:hover {
  background: var(--forest-deep);
  border-color: var(--forest-deep);
}

.form-side__title {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.1rem, 4.8vw, 3.25rem);
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.025em;
  color: #fff;
  text-shadow: 0 2px 20px rgba(10, 44, 40, 0.45);
}

.form-side__title-accent {
  color: var(--gold);
  text-shadow: 0 2px 16px rgba(10, 44, 40, 0.35);
}

.form-side p {
  color: #cfe6de;
  font-size: 14.5px;
  line-height: 1.6;
  font-weight: 500;
}

.form-side ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-side li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}

.form-side li .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

#form .form-fields {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  align-items: stretch;
}

@media (min-width: 861px) {
  #form .form-fields {
    padding: 1.5rem 1.75rem;
  }
}

.form-thanks {
  display: none;
  background: #e7f3ea;
  border: 1px solid #b8d9be;
  color: var(--forest-dark);
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
}

.form-thanks:target { display: block; }

@media (max-width: 860px) {
  .form-shell { grid-template-columns: 1fr; }
}

.visit-divider {
  background: linear-gradient(120deg, var(--forest), var(--forest-dark) 75%);
  padding: clamp(20px, 3vw, 28px) 0;
  position: relative;
  overflow: hidden;
}

.visit-divider-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
}

.vd-copy { max-width: 640px; }

.vd-copy .kicker-label + h2 {
  margin-top: 0;
}

.vd-copy h2 { font-size: clamp(21px, 2.4vw, 27px); color: #fff; margin: 8px 0 6px; }
.vd-copy p { font-size: 14px; color: #cfe6de; font-weight: 500; line-height: 1.55; }
.vd-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.vd-actions .phone { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 14px; }

@media (max-width: 760px) {
  .visit-divider-inner { flex-direction: column; align-items: flex-start; }
}
