/* =====================================================
   Burgundy Collective - clean education website theme
   ===================================================== */

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

:root {
  --charcoal: #242424;
  --charcoal-2: #343434;
  --maroon: #7b1e2b;
  --maroon-dark: #5c1621;
  --maroon-soft: #b84a59;
  --red: #c83a3d;
  --rose: #f4dce0;
  --white: #ffffff;
  --paper: #faf8f7;
  --soft: #f1eeee;
  --line: #e5dfdc;
  --text: #282525;
  --muted: #66605e;
  --shadow-sm: 0 8px 24px rgba(36, 36, 36, .06);
  --shadow: 0 20px 45px rgba(36, 36, 36, .12);
  --font-head: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all .25s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes imageSettle {
  from {
    opacity: 0;
    transform: scale(1.04);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes maroonBlockIn {
  from {
    opacity: 0;
    transform: translateY(28px) scaleY(.82);
  }

  to {
    opacity: .9;
    transform: translateY(0) scaleY(1);
  }
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 200;
  line-height: 1.7;
}

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

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

ul {
  list-style: none;
}

.container,
.nav-container {
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .78rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 200;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background: var(--maroon-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(36, 36, 36, .18);
}

.btn-outline {
  border-color: var(--charcoal);
  color: var(--charcoal);
  background: var(--white);
}

.btn-outline:hover,
.btn-dark:hover {
  border-color: var(--red);
  background: var(--maroon);
  color: var(--white);
}

.btn-dark {
  background: var(--charcoal);
  color: var(--white);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, .55);
  color: var(--white);
}

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

.hero .btn-outline {
  border-color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .08);
  color: var(--white);
}

.hero .btn-outline:hover {
  background: var(--white);
  color: var(--charcoal);
}

.btn-sm {
  min-height: 40px;
  padding: .62rem 1rem;
  font-size: .75rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .85rem;
  color: var(--maroon);
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 200;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.section-label::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--red);
}

.section-header {
  max-width: 700px;
  margin: 0 auto 2.8rem;
  text-align: center;
}

.section-header h2,
.welcome-text h2,
.cta-text h2 {
  color: var(--charcoal);
  font-family: var(--font-head);
  font-weight: 200;
  line-height: 1.08;
}

.section-header h2 {
  margin-bottom: .8rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-header p {
  color: var(--muted);
}

.section-header.light h2 {
  color: var(--white);
}

.section-header.light p {
  color: rgba(255, 255, 255, .72);
}

.section-header.light .section-label {
  color: var(--rose);
}

.section-header.light .section-label::before {
  background: var(--rose);
}

.dark-section {
  background: var(--charcoal);
  color: var(--white);
}

.image-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--white);
  box-shadow: inset 0 5px 0 var(--red);
}

.image-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: var(--charcoal);
  background-image: var(--cta-image, none);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.03);
  transition: transform .7s ease, filter .7s ease;
}

.image-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(36, 36, 36, .78);
}

.image-cta:hover::before {
  transform: scale(1.08);
  filter: saturate(1.08);
}

/* Navbar */

.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid rgba(36, 36, 36, .08);
  box-shadow: 0 8px 26px rgba(36, 36, 36, .06);
  transition: var(--transition);
}

.navbar.nav-hidden {
  transform: none;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 10px 30px rgba(36, 36, 36, .1);
}

.home-page .navbar:not(.scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

.home-page .navbar:not(.scrolled) .nav-links > li > a {
  color: var(--white);
}

.home-page .navbar:not(.scrolled) .nav-logo img {
  filter: brightness(0) invert(1);
}

.home-page .navbar:not(.scrolled) .hamburger span {
  background: var(--white);
}

.home-page .navbar:not(.scrolled) .nav-cta {
  background: var(--maroon);
}

.nav-container {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  width: 150px;
  height: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin-left: auto;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--charcoal);
  font-size: .82rem;
  font-weight: 200;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .22s ease;
}

.nav-links a i {
  color: var(--red);
  font-size: .62rem;
  transition: transform .22s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -.45rem;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--maroon);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-dropdown:hover > a i,
.nav-dropdown:focus-within > a i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + .85rem);
  left: 50%;
  z-index: 20;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: .55rem 0;
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  background: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity .22s ease, transform .22s ease;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: .9rem;
}

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

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  width: 100%;
  justify-content: flex-start;
  padding: .72rem 1rem;
  color: var(--muted);
  font-size: .76rem;
  letter-spacing: .03em;
  text-transform: none;
}

.dropdown-menu a::after {
  display: none;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
  color: var(--maroon);
  background: var(--paper);
}

.nav-cta {
  padding: .62rem 1rem;
  border-radius: 6px;
  background: var(--maroon);
  color: var(--white);
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 200;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.nav-cta:hover {
  background: var(--maroon-dark);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: .4rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 2px;
  display: block;
  border-radius: 2px;
  background: var(--charcoal);
  transition: var(--transition);
}

/* Hero */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: 82px;
  background: var(--charcoal);
}

.hero::before {
  content: '';
  position: absolute;
  z-index: 2;
  right: calc(max(1.5rem, calc((100vw - 1180px) / 2)) + min(14vw, 190px));
  bottom: clamp(4.2rem, 10vh, 8rem);
  width: clamp(110px, 13vw, 180px);
  height: clamp(110px, 13vw, 180px);
  background: var(--red);
  clip-path: polygon(0 18%, 100% 0, 82% 100%, 0 82%);
  animation: fadeUp .7s ease .45s both;
}

.hero::after {
  content: '';
  position: absolute;
  z-index: 2;
  right: max(1.5rem, calc((100vw - 1180px) / 2));
  bottom: clamp(1.5rem, 6vh, 4.5rem);
  width: clamp(190px, 18vw, 270px);
  height: clamp(260px, 28vw, 390vw);
  background: var(--maroon);
  clip-path: polygon(16% 0, 100% 10%, 84% 100%, 20% 90%);
  opacity: .9;
  transform-origin: bottom;
  animation: maroonBlockIn .7s ease .35s both;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(22, 22, 22, .82) 0%, rgba(22, 22, 22, .54) 43%, rgba(22, 22, 22, .16) 100%),
    url('assets/img/hero-home.jpg') center/cover no-repeat;
  filter: saturate(.82);
  animation: imageSettle 1.1s ease both;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .18);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(760px, calc(100% - 3rem));
  margin-left: max(1.5rem, calc((100vw - 1180px) / 2));
  padding: 0 0 clamp(4.5rem, 9vh, 7rem);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, .9);
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 200;
  letter-spacing: .1em;
  text-transform: uppercase;
  animation: fadeUp .65s ease .1s both;
}

.hero-kicker::before {
  content: '';
  width: 34px;
  height: 2px;
  background: var(--red);
}

.hero-content h1 {
  max-width: 760px;
  margin-bottom: 1rem;
  color: var(--white);
  font-family: var(--font-head);
  font-size: clamp(3rem, 6.2vw, 5.35rem);
  font-weight: 200;
  line-height: 1;
  animation: fadeUp .7s ease .22s both;
}

.pen-circle {
  position: relative;
  display: inline-block;
  padding: 0 .12em .04em;
}

.pen-circle::before,
.pen-circle::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.pen-circle::before {
  left: -.16em;
  right: -.14em;
  top: -.13em;
  bottom: -.06em;
  border: 2px solid var(--red);
  border-left-width: 3px;
  border-bottom-width: 1px;
  border-right-width: 2.5px;
  border-radius: 52% 48% 55% 45% / 48% 58% 42% 52%;
  clip-path: inset(0 100% 0 0);
  transform: rotate(-5deg);
  animation: penCircleReveal .82s ease .95s both;
}

.pen-circle::after {
  left: -.09em;
  right: -.2em;
  top: -.02em;
  bottom: -.14em;
  border: 1.5px solid var(--red);
  border-top: 0;
  border-left-width: 2.5px;
  border-radius: 48% 52% 46% 54% / 54% 42% 58% 46%;
  clip-path: inset(0 100% 0 0);
  opacity: .82;
  transform: rotate(3deg);
  transform-origin: left center;
  animation: penCircleReveal .58s ease 1.22s both;
}

@keyframes penCircleReveal {
  to {
    clip-path: inset(0 0 0 0);
  }
}

.hero-content p {
  max-width: 580px;
  margin-bottom: 1.6rem;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.72;
  animation: fadeUp .7s ease .34s both;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  animation: fadeUp .7s ease .46s both;
}

/* Main Sections */

.welcome-section,
.pathways-section,
.services-section,
.why-section,
.testimonials-section {
  padding: 6rem 0;
}

.welcome-section,
.testimonials-section {
  background: var(--white);
}

.pathways-section,
.services-section,
.why-section {
  background: var(--paper);
}

.welcome-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr);
  gap: 3rem;
  align-items: center;
  animation: fadeUp .75s ease both;
  animation-timeline: view();
  animation-range: entry 8% cover 32%;
}

.welcome-text h2 {
  max-width: 560px;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.welcome-text p {
  max-width: 680px;
  margin-bottom: 1.2rem;
  color: var(--muted);
}

.image-panel {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 0;
  box-shadow: var(--shadow);
  transition: transform .35s ease, box-shadow .35s ease;
}

.image-panel:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px rgba(36, 36, 36, .16);
}

.image-panel > img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.image-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(36, 36, 36, .68));
}

.vision-card {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.vision-card--floating {
  position: absolute;
  z-index: 1;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.2rem;
  border-color: rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .94);
}

.vision-card span {
  display: block;
  margin-bottom: .55rem;
  color: var(--maroon);
  font-family: var(--font-head);
  font-size: .88rem;
  font-weight: 200;
  text-transform: uppercase;
}

.vision-card p {
  color: var(--muted);
}

.roadmap {
  --roadmap-progress: 0%;
  position: relative;
  display: grid;
  gap: 4rem;
  padding: 2rem 0;
}

.roadmap::before,
.roadmap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
}

.roadmap::before {
  background: rgba(36, 36, 36, .12);
}

.roadmap::after {
  height: var(--roadmap-progress);
  bottom: auto;
  background: var(--red);
  transition: height .18s linear;
}

.roadmap-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .55s ease, transform .55s ease;
}

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

.roadmap-step:nth-child(even) .roadmap-content {
  grid-column: 3;
}

.roadmap-step:nth-child(even) .roadmap-image {
  grid-column: 1;
  grid-row: 1;
}

.roadmap-marker {
  grid-column: 2;
  grid-row: 1;
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--maroon);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: background .35s ease, border-color .35s ease, transform .35s ease;
}

.roadmap-marker span {
  color: var(--maroon);
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 200;
}

.roadmap-step.is-visible .roadmap-marker {
  border-color: var(--red);
  background: var(--maroon);
  transform: scale(1.06);
}

.roadmap-step.is-visible .roadmap-marker span {
  color: var(--white);
}

.roadmap-content,
.roadmap-image {
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.roadmap-content {
  padding: clamp(1.6rem, 3vw, 2.6rem);
  transform: translateX(-22px);
  transition: transform .55s ease, box-shadow .35s ease;
}

.roadmap-step:nth-child(even) .roadmap-content {
  transform: translateX(22px);
}

.roadmap-step.is-visible .roadmap-content {
  transform: translateX(0);
}

.roadmap-content:hover,
.roadmap-image:hover {
  box-shadow: var(--shadow);
}

.roadmap-image {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  transform: translateX(22px);
  transition: transform .55s ease, box-shadow .35s ease;
}

.roadmap-step:nth-child(even) .roadmap-image {
  transform: translateX(-22px);
}

.roadmap-step.is-visible .roadmap-image {
  transform: translateX(0);
}

.roadmap-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(255, 255, 255, .88));
  pointer-events: none;
}

.roadmap-image img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  transition: transform .45s ease;
}

.roadmap-image:hover img {
  transform: scale(1.05);
}

.roadmap-content span,
.mission-strip span {
  margin-bottom: .6rem;
  color: var(--maroon);
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 200;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.roadmap-content h3 {
  max-width: 430px;
  margin-bottom: .8rem;
  color: var(--charcoal);
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 200;
  line-height: 1.05;
}

.roadmap-content p {
  max-width: 520px;
  color: var(--muted);
}

.mission-strip {
  padding: 3rem 0;
  background: var(--white);
}

.mission-strip-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  border: 1px solid var(--maroon);
  border-radius: 0;
  background: linear-gradient(135deg, var(--rose), var(--white));
  animation: fadeUp .7s ease both;
  animation-timeline: view();
  animation-range: entry 8% cover 32%;
}

.mission-strip p {
  max-width: 780px;
  color: var(--charcoal);
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 200;
  line-height: 1.35;
}

/* Services Showcase */

.service-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  gap: 1rem;
  align-items: stretch;
}

.service-showcase-image {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  animation: fadeUp .75s ease both;
  animation-timeline: view();
  animation-range: entry 8% cover 32%;
}

.service-showcase-image::before {
  content: '';
  position: absolute;
  z-index: 2;
  right: 0;
  top: 0;
  width: 72px;
  height: 150px;
  background: var(--maroon);
}

.service-showcase-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(255, 255, 255, .96));
  pointer-events: none;
}

.service-showcase-image img {
  width: 100%;
  height: 100%;
  min-height: 610px;
  object-fit: cover;
  transition: transform .45s ease;
}

.service-showcase:hover .service-showcase-image img {
  transform: scale(1.04);
}

.service-showcase-caption {
  position: absolute;
  z-index: 3;
  left: 2rem;
  right: 2rem;
  bottom: 2rem;
}

.service-showcase-caption span {
  display: block;
  margin-bottom: .55rem;
  color: var(--maroon);
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 200;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.service-showcase-caption p {
  max-width: 560px;
  color: var(--charcoal);
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 200;
  line-height: 1.18;
}

.service-stack {
  display: grid;
  gap: 1rem;
}

.service-tile {
  min-height: 143px;
  display: grid;
  grid-template-columns: 54px 1fr 38px;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform .32s ease, box-shadow .32s ease, border-color .32s ease;
  animation: fadeUp .7s ease both;
  animation-timeline: view();
  animation-range: entry 8% cover 30%;
}

.service-tile:hover {
  border-color: var(--red);
  transform: translateX(12px);
  box-shadow: var(--shadow);
}

.service-tile > span {
  color: var(--maroon);
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 200;
}

.service-tile h3 {
  margin-bottom: .2rem;
  color: var(--charcoal);
  font-family: var(--font-head);
  font-size: 1.22rem;
  font-weight: 200;
}

.service-tile p {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
}

.service-tile i {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rose);
  color: var(--maroon);
  transition: transform .3s ease, background .3s ease, color .3s ease;
}

.service-tile:hover i {
  background: var(--maroon);
  color: var(--white);
  transform: translateX(4px);
}

.real-work-gallery {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr 1.05fr;
  gap: .8rem;
  margin-top: 1.2rem;
}

.real-work-gallery figure {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}

.real-work-gallery figure:nth-child(2) {
  grid-column: span 2;
  aspect-ratio: 4 / 3;
}

.real-work-gallery figure:nth-child(5) {
  grid-column: span 2;
}

.real-work-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: contain;
  transition: transform .42s ease;
}

.real-work-gallery figure:hover img {
  transform: none;
}

.why-section {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}

.why-image {
  position: relative;
  flex: 1 1 52%;
  min-height: 100vh;
  overflow: hidden;
}

.why-image::before,
.why-image::after {
  content: '';
  position: absolute;
  z-index: 1;
  clip-path: polygon(12% 0, 100% 18%, 84% 100%, 0 80%);
}

.why-image::before {
  right: clamp(1rem, 5vw, 4rem);
  bottom: clamp(2rem, 7vh, 5rem);
  width: clamp(120px, 14vw, 220px);
  height: clamp(160px, 22vw, 320px);
  background: var(--maroon);
}

.why-image::after {
  right: clamp(8rem, 15vw, 15rem);
  bottom: clamp(8rem, 18vh, 14rem);
  width: clamp(76px, 9vw, 138px);
  height: clamp(76px, 9vw, 138px);
  background: var(--red);
}

.why-image img {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  object-fit: cover;
  filter: saturate(.9);
}

.why-content {
  flex: 1 1 48%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(5rem, 8vw, 8rem) max(3rem, calc((100vw - 1180px) / 2)) clamp(5rem, 8vw, 8rem) clamp(3rem, 6vw, 6rem);
  background: var(--paper);
}

.why-content h2 {
  max-width: 560px;
  margin-bottom: 1rem;
  color: var(--charcoal);
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4.5vw, 4.6rem);
  font-weight: 200;
  line-height: 1;
}

.why-content > p {
  max-width: 560px;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 1.04rem;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  max-width: 560px;
}

.why-point {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .9rem 0;
  border: 1px solid var(--line);
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: transform .3s ease, border-color .3s ease;
  animation: fadeUp .65s ease both;
  animation-timeline: view();
  animation-range: entry 8% cover 28%;
}

.why-point:hover {
  border-color: var(--red);
  transform: translateX(8px);
}

.why-point i {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--maroon);
  color: var(--white);
  font-size: .78rem;
}

.why-point span {
  color: var(--charcoal);
  font-family: var(--font-head);
  font-weight: 200;
}

.impact-section {
  padding: 5.5rem 0;
}

.impact-section .container {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.impact-section .section-label {
  color: var(--rose);
}

.impact-section .section-label::before {
  background: var(--rose);
}

.impact-quote blockquote {
  color: var(--white);
  font-family: var(--font-head);
  font-size: clamp(1.65rem, 3.2vw, 2.75rem);
  font-weight: 200;
  line-height: 1.12;
}

.impact-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.impact-stat {
  padding: 1.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
}

.impact-stat strong {
  display: block;
  margin-bottom: .4rem;
  color: var(--rose);
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1;
}

.impact-stat span {
  color: rgba(255, 255, 255, .72);
  font-size: .85rem;
  font-weight: 200;
}

.quote-wall {
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  gap: 1rem;
}

.testimonial-card {
  min-height: 250px;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  animation: fadeUp .7s ease both;
  animation-timeline: view();
  animation-range: entry 8% cover 28%;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.testimonial-card--large {
  grid-row: span 2;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-top: 4px solid var(--maroon);
  background: var(--paper);
}

.testimonial-card p {
  margin-bottom: 1.3rem;
  font-size: 1rem;
  line-height: 1.8;
}

.testimonial-card--large p {
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2.6vw, 2.2rem);
  font-weight: 200;
  line-height: 1.35;
  color: var(--charcoal);
}

.testimonial-card h3 {
  color: var(--maroon);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 200;
}

.testimonial-card span {
  color: var(--muted);
  font-size: .88rem;
}

.cta-section {
  --cta-image: url('assets/img/community-impact.jpg');
  padding: 5rem 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.cta-text h2 {
  margin-bottom: .75rem;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
}

.cta-text p {
  max-width: 680px;
  color: rgba(255, 255, 255, .72);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

/* Footer */

.footer {
  background: var(--white);
}

.footer-top {
  padding: 4.5rem 0 3rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.35fr 1.4fr;
  gap: 2.5rem;
}

.footer-logo {
  width: 170px;
  height: auto;
  margin-bottom: 1rem;
}

.footer-brand p,
.footer-links a,
.footer-contact li,
.footer-contact a {
  color: var(--muted);
  font-size: .9rem;
}

.footer-brand p {
  max-width: 360px;
  margin-bottom: 1.2rem;
}

.footer-social {
  display: flex;
  gap: .6rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--charcoal);
  transition: var(--transition);
}

.footer-social a:hover {
  border-color: var(--maroon);
  background: var(--maroon);
  color: var(--white);
}

.footer-links h4,
.footer-contact h4 {
  margin-bottom: 1rem;
  color: var(--charcoal);
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 200;
  text-transform: uppercase;
}

.footer-links li {
  margin-bottom: .5rem;
}

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

.footer-contact li {
  display: flex;
  gap: .65rem;
  margin-bottom: .75rem;
}

.footer-contact i {
  margin-top: .25rem;
  color: var(--maroon);
}

.footer-bottom {
  padding: 1.25rem 0;
  background: var(--charcoal);
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, .66);
  font-size: .8rem;
}

.footer-bottom a {
  color: var(--rose);
}

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

@media (max-width: 860px) {
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-container {
    position: relative;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + .6rem);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-links li,
  .nav-links a {
    width: 100%;
  }

  .nav-links a {
    justify-content: space-between;
  }

  .nav-links.open {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: .4rem;
    padding: .35rem 0 .35rem .8rem;
    border: 0;
    border-left: 2px solid var(--red);
    background: var(--paper);
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .dropdown-menu::before {
    display: none;
  }

  .dropdown-menu a {
    padding: .55rem .75rem;
  }

  .home-page .navbar:not(.scrolled) .nav-links.open {
    background: var(--white);
  }

  .home-page .navbar:not(.scrolled) .nav-links.open > li > a {
    color: var(--charcoal);
  }

  .nav-dropdown:hover > a i,
  .nav-dropdown:focus-within > a i {
    transform: none;
  }

  .welcome-grid,
  .service-showcase,
  .quote-wall,
  .impact-section .container,
  .cta-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .roadmap {
    gap: 2rem;
    padding-left: 2.25rem;
  }

  .roadmap::before,
  .roadmap::after {
    left: 0;
  }

  .roadmap-step,
  .roadmap-step:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .roadmap-marker,
  .roadmap-step:nth-child(even) .roadmap-content,
  .roadmap-step:nth-child(even) .roadmap-image,
  .roadmap-content,
  .roadmap-image {
    grid-column: 1;
  }

  .roadmap-marker {
    position: absolute;
    left: -3.05rem;
    top: 0;
    width: 58px;
    height: 58px;
  }

  .roadmap-content,
  .roadmap-step:nth-child(even) .roadmap-content,
  .roadmap-image,
  .roadmap-step:nth-child(even) .roadmap-image {
    transform: translateY(18px);
  }

  .roadmap-step.is-visible .roadmap-content,
  .roadmap-step.is-visible .roadmap-image {
    transform: translateY(0);
  }

  .mission-strip-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-showcase-image {
    min-height: 430px;
  }

  .service-showcase-image img {
    min-height: 430px;
  }

  .real-work-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .real-work-gallery figure:nth-child(2),
  .real-work-gallery figure:nth-child(5) {
    grid-column: auto;
    grid-row: auto;
  }

  .real-work-gallery figure:nth-child(2) {
    grid-column: span 2;
  }

  .why-section {
    min-height: auto;
    flex-direction: column;
  }

  .why-image,
  .why-image img {
    min-height: 520px;
  }

  .why-content {
    padding: 5rem max(2rem, calc((100vw - 1180px) / 2));
  }
}

@media (max-width: 620px) {
  .container,
  .nav-container {
    width: min(100% - 2rem, 1180px);
  }

  .nav-container {
    min-height: 74px;
  }

  .nav-logo img {
    width: 124px;
  }

  .hero {
    min-height: 78vh;
    padding-top: 74px;
  }

  .hero::before {
    right: 4.8rem;
    bottom: 7.4rem;
    width: 82px;
    height: 82px;
    opacity: .8;
  }

  .hero::after {
    right: 1rem;
    bottom: 2.8rem;
    width: 126px;
    height: 180px;
    opacity: .72;
  }

  .hero-content {
    width: min(100% - 2rem, 720px);
    margin: 0 auto;
    padding: 0 0 3.5rem;
  }

  .hero-content h1 {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  .hero-btns,
  .cta-actions {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .welcome-section,
  .pathways-section,
  .services-section,
  .testimonials-section,
  .impact-section,
  .cta-section {
    padding: 4rem 0;
  }

  .service-stack,
  .real-work-gallery,
  .impact-stats,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .real-work-gallery figure,
  .real-work-gallery img {
    min-height: 260px;
  }

  .real-work-gallery figure:nth-child(2) {
    grid-column: auto;
  }

  .why-image,
  .why-image img {
    min-height: 420px;
  }

  .why-image::before {
    right: 1rem;
    bottom: 1.6rem;
    width: 116px;
    height: 170px;
    opacity: .82;
  }

  .why-image::after {
    right: 6.5rem;
    bottom: 7rem;
    width: 72px;
    height: 72px;
    opacity: .86;
  }

  .why-content {
    padding: 4rem 1rem;
  }

  .image-panel,
  .image-panel > img,
  .roadmap-image,
  .roadmap-image img {
    min-height: 280px;
  }

  .service-showcase-image,
  .service-showcase-image img {
    min-height: 320px;
  }

  .service-showcase-caption {
    left: 1.2rem;
    right: 1.2rem;
    bottom: 1.2rem;
  }

  .service-tile {
    grid-template-columns: 44px 1fr;
  }

  .service-tile i {
    display: none;
  }

  .mission-strip-grid {
    padding: 1.4rem;
  }

  .footer-bottom .container {
    align-items: flex-start;
  }
}

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