:root {
  --navy: #08275a;
  --gold: #d89a20;
  --white: #ffffff;
}

/* Site footer and legal pages */
.site-footer {
  position: relative;
  color: var(--white);
  background: var(--navy);
  border-top: 6px solid var(--gold);
}

.site-footer-inner,
.footer-bottom {
  width: min(100% - 96px, 1480px);
  margin: 0 auto;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(520px, 1.25fr);
  gap: clamp(80px, 10vw, 170px);
  padding: 78px 0 68px;
}

.footer-brand-block {
  max-width: 480px;
}

.footer-brand {
  display: inline-flex;
  padding: 10px 13px;
  line-height: 0;
  background: var(--white);
  border-radius: 4px 18px 4px 4px;
}

.footer-brand img {
  display: block;
  width: 248px;
  height: auto;
}

.footer-brand-block > p {
  max-width: 430px;
  margin: 28px 0 32px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.98rem;
  line-height: 1.7;
}

.footer-consultation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  color: var(--navy);
  background: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.footer-consultation:hover,
.footer-consultation:focus-visible {
  color: var(--white);
  background: transparent;
  transform: translateY(-2px);
}

.footer-navigation {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: clamp(34px, 5vw, 82px);
  align-content: start;
}

.footer-navigation > div {
  display: grid;
  align-content: start;
  gap: 15px;
}

.footer-navigation p {
  margin: 0 0 7px;
  padding-bottom: 14px;
  color: var(--gold);
  border-bottom: 1px solid rgba(216, 154, 32, 0.52);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-navigation a {
  width: fit-content;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: color 150ms ease, transform 150ms ease;
}

.footer-navigation a:hover,
.footer-navigation a:focus-visible,
.footer-navigation a[aria-current="page"] {
  color: var(--white);
  transform: translateX(3px);
}

.footer-navigation a[aria-current="page"]::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--gold);
  vertical-align: middle;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.72rem;
  line-height: 1.5;
}

.legal-hero {
  color: var(--white);
  background: var(--navy);
}

.legal-hero-inner,
.legal-content-inner {
  width: min(100% - 96px, 1180px);
  margin: 0 auto;
}

.legal-hero-inner {
  padding: 100px 0 110px;
}

.legal-hero .subject-kicker {
  color: var(--gold);
}

.legal-hero h1 {
  max-width: 920px;
  margin: 24px 0 0;
  font-size: clamp(4.7rem, 8vw, 8rem);
  line-height: 0.91;
  letter-spacing: -0.075em;
}

.legal-hero-inner > p:not(.subject-kicker):not(.legal-updated) {
  max-width: 760px;
  margin: 34px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  line-height: 1.75;
}

.legal-hero .legal-updated {
  margin: 28px 0 0;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-content {
  background: #f6f7fa;
}

.legal-content-inner {
  padding: 98px 0 120px;
}

.legal-content-inner > p:first-child {
  margin-top: 0;
  padding: 30px 34px;
  color: var(--navy);
  background: var(--white);
  border-left: 5px solid var(--gold);
  border-radius: 3px 20px 3px 3px;
  font-size: 1.02rem;
  line-height: 1.75;
  box-shadow: 0 18px 50px rgba(8, 39, 90, 0.07);
}

.legal-content h2 {
  margin: 64px 0 16px;
  color: var(--navy);
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.legal-content p {
  max-width: 930px;
  margin: 0 0 18px;
  color: #456080;
  font-size: 0.98rem;
  line-height: 1.82;
}

.legal-content a {
  color: var(--navy);
  font-weight: 800;
  text-decoration-color: var(--gold);
  text-underline-offset: 4px;
}

@media (max-width: 980px) {
  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .footer-brand-block {
    max-width: 600px;
  }
}

@media (max-width: 620px) {
  .site-footer-inner,
  .footer-bottom,
  .legal-hero-inner,
  .legal-content-inner {
    width: calc(100% - 44px);
  }

  .site-footer-inner {
    padding: 62px 0 52px;
  }

  .footer-brand img {
    width: 210px;
  }

  .footer-navigation {
    grid-template-columns: 1fr 1fr;
    gap: 40px 26px;
  }

  .footer-navigation > div:last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .legal-hero-inner {
    padding: 72px 0 80px;
  }

  .legal-hero h1 {
    font-size: clamp(3.6rem, 17vw, 5rem);
  }

  .legal-hero-inner > p:not(.subject-kicker):not(.legal-updated) {
    font-size: 0.95rem;
  }

  .legal-content-inner {
    padding: 70px 0 88px;
  }

  .legal-content-inner > p:first-child {
    padding: 24px 22px;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--white);
  color: var(--navy);
  font-family: "Manrope", Arial, sans-serif;
}

body {
  overflow-x: hidden;
}

.site-header {
  height: 174px;
  background: var(--white);
}

.header-inner {
  width: min(100% - 48px, 1600px);
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(26px, 3vw, 52px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  line-height: 0;
  text-decoration: none;
}

.brand img {
  display: block;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.brand-primary {
  width: 175px;
}

.brand-tagline {
  width: 205px;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 36px);
}

.site-nav a {
  position: relative;
  padding: 9px 0;
  color: var(--navy);
  font-size: 0.88rem;
  line-height: 1;
  letter-spacing: -0.015em;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-dropdown-trigger::before {
  content: "";
  width: 6px;
  height: 6px;
  order: 2;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms ease;
}

.nav-dropdown-menu {
  width: 238px;
  padding: 14px;
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  z-index: 20;
  display: grid;
  gap: 3px;
  background: var(--white);
  border: 1px solid rgba(8, 39, 90, 0.1);
  border-top: 4px solid var(--gold);
  border-radius: 5px 5px 22px 5px;
  box-shadow: 0 24px 60px rgba(8, 39, 90, 0.17);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 9px);
  transition: opacity 160ms ease, visibility 160ms ease, transform 160ms ease;
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 22px;
}

.nav-dropdown-menu a {
  padding: 12px 14px;
  color: var(--navy);
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.15;
  font-weight: 700;
  transition: color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

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

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  color: var(--white);
  background: var(--navy);
  transform: translateX(3px);
}

.nav-dropdown-menu a[aria-current="page"] {
  color: var(--white);
  background: var(--navy);
}

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

.nav-dropdown:hover .nav-dropdown-trigger::before,
.nav-dropdown:focus-within .nav-dropdown-trigger::before {
  transform: translateY(2px) rotate(225deg);
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}

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

.site-nav a:focus-visible,
.header-cta:focus-visible {
  outline: 3px solid rgba(216, 154, 32, 0.38);
  outline-offset: 5px;
}

.header-cta {
  min-width: 140px;
  padding: 16px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 999px;
  font-size: 0.88rem;
  line-height: 1;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.header-cta:hover {
  color: var(--navy);
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.hero {
  min-height: calc(100vh - 174px);
  display: grid;
  grid-template-columns: 46% 54%;
  background: var(--white);
}

.hero-copy {
  display: flex;
  align-items: center;
  padding: 56px 56px 92px max(56px, calc((100vw - 1600px) / 2 + 24px));
  position: relative;
  z-index: 2;
}

.hero-copy-inner {
  display: grid;
  justify-items: start;
  gap: clamp(28px, 3vw, 46px);
}

.hero-copy h1 {
  margin: 0;
  max-width: 700px;
  font-size: clamp(4rem, 7.2vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 800;
  color: var(--navy);
}

.hero-cta {
  min-height: 64px;
  padding: 19px 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  background: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(216, 154, 32, 0.25);
  font-size: 1rem;
  line-height: 1.15;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.hero-cta:hover {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 20px 48px rgba(8, 39, 90, 0.2);
  transform: translateY(-3px);
}

.hero-cta:focus-visible {
  outline: 3px solid rgba(8, 39, 90, 0.28);
  outline-offset: 5px;
}

.accent-word {
  display: inline-block;
  color: var(--gold);
  position: relative;
  white-space: nowrap;
}

.accent-word::after {
  content: "";
  position: absolute;
  left: -1%;
  width: 103%;
  height: 16px;
  bottom: -7px;
  background: var(--navy);
  border-radius: 50%;
  transform: rotate(-1.4deg) skewX(-8deg);
  clip-path: polygon(
    0 42%, 8% 33%, 19% 36%, 31% 28%, 44% 34%,
    58% 29%, 72% 35%, 84% 30%, 94% 36%, 100% 43%,
    100% 66%, 92% 62%, 81% 69%, 68% 64%, 54% 71%,
    41% 66%, 28% 73%, 15% 67%, 4% 72%, 0 65%
  );
}

.hero-media {
  position: relative;
  overflow: hidden;
  border-top-left-radius: 56px;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 14%;
  background: linear-gradient(to right, rgba(255,255,255,0.92), rgba(255,255,255,0));
  z-index: 1;
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 174px);
  display: block;
  object-fit: cover;
  object-position: 58% center;
}

.founders-section {
  position: relative;
  overflow: hidden;
  background: #f7f8fb;
}

.founders-inner {
  width: min(100% - 48px, 1600px);
  margin: 0 auto;
  padding: clamp(110px, 11vw, 180px) 0;
  display: grid;
  grid-template-columns: minmax(420px, 0.88fr) minmax(520px, 1.12fr);
  gap: clamp(70px, 9vw, 150px);
  align-items: start;
}

.founders-portrait {
  margin: 0;
  position: sticky;
  top: 42px;
}

.founders-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 0.84;
  background: #e8ebf1;
  border-radius: 4px 54px 4px 4px;
}

.founders-image-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: 34%;
  height: 7px;
  background: var(--gold);
}

.founders-image-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 38%;
}

.founders-portrait figcaption {
  margin-top: 21px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--navy);
  font-size: 0.9rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  font-weight: 800;
}

.founders-portrait figcaption::before {
  content: "";
  width: 42px;
  height: 2px;
  background: var(--gold);
}

.founders-story {
  padding-top: 12px;
}

.founders-story .section-kicker {
  color: var(--gold);
}

.founders-story > h2,
.founders-story > h1 {
  margin: 0;
  max-width: 830px;
  color: var(--navy);
  font-size: clamp(3.75rem, 5.7vw, 6.9rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.founders-copy {
  margin-top: clamp(54px, 6vw, 84px);
  max-width: 750px;
  display: grid;
  gap: 25px;
}

.founders-copy p {
  margin: 0;
  color: rgba(8, 39, 90, 0.7);
  font-size: clamp(1rem, 1.15vw, 1.18rem);
  line-height: 1.78;
  font-weight: 500;
}

.founders-copy .founders-lede {
  color: var(--navy);
  font-size: clamp(1.2rem, 1.5vw, 1.48rem);
  line-height: 1.6;
  font-weight: 700;
}

.founders-copy strong {
  color: var(--navy);
  font-weight: 800;
}

.founders-belief {
  margin-top: clamp(64px, 7vw, 96px);
  padding: clamp(35px, 4vw, 56px);
  position: relative;
  color: var(--white);
  background: var(--navy);
  border-radius: 4px 34px 4px 4px;
}

.founders-belief::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 88px;
  height: 6px;
  background: var(--gold);
}

.founders-belief .belief-label {
  margin: 0 0 24px;
  color: var(--gold);
  font-size: 0.76rem;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
}

.founders-belief h3,
.founders-belief h2 {
  margin: 0 0 30px;
  max-width: 680px;
  color: var(--white);
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.founders-belief > p:not(.belief-label) {
  margin: 0;
  max-width: 690px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1.72;
  font-weight: 500;
}

.founders-belief > p + p {
  margin-top: 19px;
}

.canadian-story {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.canadian-story::after {
  content: "20";
  position: absolute;
  right: -0.05em;
  bottom: -0.28em;
  color: rgba(255, 255, 255, 0.035);
  font-size: clamp(18rem, 40vw, 42rem);
  line-height: 0.8;
  letter-spacing: -0.09em;
  font-weight: 800;
  pointer-events: none;
}

.canadian-story-inner {
  width: min(100% - 48px, 1600px);
  min-height: 88vh;
  margin: 0 auto;
  padding: clamp(110px, 12vw, 190px) 0 clamp(100px, 11vw, 170px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(440px, 0.72fr);
  gap: clamp(72px, 10vw, 180px);
  align-items: start;
  position: relative;
  z-index: 1;
}

.section-kicker {
  margin: 0 0 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--gold);
  font-size: 0.82rem;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
}

.section-kicker::before {
  content: "";
  width: 42px;
  height: 2px;
  background: currentColor;
}

.canadian-story h2 {
  margin: 0;
  max-width: 880px;
  color: var(--white);
  font-size: clamp(4.6rem, 7.5vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.canadian-belief {
  max-width: 720px;
  margin-top: clamp(74px, 8vw, 124px);
  padding: clamp(34px, 4vw, 54px);
  position: relative;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px 38px 4px 4px;
}

.canadian-belief::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 96px;
  height: 6px;
  background: var(--gold);
}

.canadian-belief .belief-label {
  margin: 0 0 23px;
  color: var(--gold);
  font-size: 0.76rem;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
}

.canadian-belief h3 {
  margin: 0 0 27px;
  color: var(--white);
  font-size: clamp(2rem, 3vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.canadian-belief > p:not(.belief-label) {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.98rem;
  line-height: 1.7;
  font-weight: 500;
}

.canadian-belief > p + p {
  margin-top: 18px;
}

.canadian-story-content {
  padding-top: 74px;
}

.canadian-story-content > p {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.2vw, 1.22rem);
  line-height: 1.78;
  font-weight: 500;
}

.canadian-story-content > .story-lede {
  margin-bottom: 28px;
  color: var(--white);
  font-size: clamp(1.2rem, 1.55vw, 1.55rem);
  line-height: 1.58;
  font-weight: 600;
}

.canadian-story-content strong {
  color: var(--gold);
  font-weight: 800;
}

.story-stats {
  margin-top: clamp(66px, 7vw, 104px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
}

.story-stat {
  padding-top: 25px;
  border-top: 2px solid var(--gold);
}

.story-stat h3 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.story-stat h3 span {
  display: block;
  margin-bottom: 7px;
  color: var(--white);
  font-size: clamp(2.45rem, 3.4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.story-stat p {
  margin: 0;
  max-width: 260px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.91rem;
  line-height: 1.55;
  font-weight: 600;
}

.canadian-founders {
  margin: clamp(34px, 5vw, 74px) 0 0;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  position: relative;
}

.canadian-founders-image {
  height: clamp(520px, 52vw, 700px);
  position: relative;
  overflow: hidden;
  display: block;
  background: #061d44;
  border-radius: 5px 58px 5px 5px;
  transition: box-shadow 180ms ease;
}

.canadian-founders-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 39, 90, 0.06) 44%,
    rgba(8, 39, 90, 0.42) 78%,
    rgba(8, 39, 90, 0.76) 100%
  );
  pointer-events: none;
}

.canadian-founders-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 39%;
  transition: transform 360ms ease;
}

.canadian-founders-image:hover img,
.canadian-founders-image:focus-visible img {
  transform: scale(1.018);
}

.canadian-founders-image:focus-visible {
  outline: 4px solid var(--gold);
  outline-offset: 5px;
  box-shadow: 0 0 0 10px rgba(216, 154, 32, 0.16);
}

.canadian-founders figcaption {
  width: clamp(290px, 29vw, 430px);
  margin: 0 0 42px -82px;
  padding: 32px 36px;
  position: relative;
  z-index: 2;
  color: var(--navy);
  background: var(--white);
  border-top: 5px solid var(--gold);
  border-radius: 4px 24px 4px 4px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.18);
  transition: background-color 180ms ease, transform 180ms ease;
}

.canadian-founders figcaption a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.canadian-founders figcaption:hover,
.canadian-founders figcaption:focus-within {
  background: var(--gold);
  transform: translateY(-4px);
}

.canadian-founders figcaption a:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 8px;
}

.canadian-founders figcaption strong,
.canadian-founders figcaption span {
  display: block;
}

.canadian-founders figcaption strong {
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.canadian-founders figcaption span {
  margin-top: 9px;
  color: rgba(8, 39, 90, 0.62);
  font-size: 0.84rem;
  line-height: 1.4;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  font-weight: 800;
}

.locations-section {
  position: relative;
  overflow: hidden;
  background: #f7f8fb;
}

.locations-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 38%;
  height: 7px;
  background: var(--gold);
}

.locations-inner {
  width: min(100% - 48px, 1600px);
  margin: 0 auto;
  padding: clamp(110px, 11vw, 170px) 0 clamp(110px, 11vw, 170px);
  display: grid;
  grid-template-columns: minmax(330px, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(70px, 9vw, 150px);
  align-items: start;
}

.locations-intro {
  position: sticky;
  top: 48px;
}

.locations-intro .section-kicker {
  color: var(--gold);
}

.locations-intro h2,
.locations-intro h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(3.9rem, 6vw, 7.2rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.locations-page {
  min-height: calc(100vh - 174px);
}

.locations-intro > p:last-child {
  margin: 38px 0 0;
  max-width: 510px;
  color: rgba(8, 39, 90, 0.68);
  font-size: 1.06rem;
  line-height: 1.75;
  font-weight: 600;
}

.locations-field {
  padding: clamp(28px, 3vw, 48px);
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 13px;
  background: var(--white);
  border: 1px solid rgba(8, 39, 90, 0.11);
  border-radius: 34px;
  box-shadow: 0 28px 80px rgba(8, 39, 90, 0.09);
}

.locations-field span {
  padding: 12px 17px;
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  background: rgba(8, 39, 90, 0.055);
  border: 1px solid rgba(8, 39, 90, 0.07);
  border-radius: 999px;
  font-size: 0.84rem;
  line-height: 1.2;
  font-weight: 700;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease,
    transform 180ms ease;
}

.locations-field span:hover {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
  transform: translateY(-2px);
}

.contact-section {
  position: relative;
  overflow: hidden;
  background: #f7f8fb;
}

.contact-page {
  min-height: calc(100vh - 174px);
  min-height: calc(100svh - 174px);
}

.contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 38%;
  height: 7px;
  background: var(--gold);
}

.contact-inner {
  width: min(100% - 48px, 1600px);
  margin: 0 auto;
  padding: clamp(110px, 11vw, 175px) 0;
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(520px, 1.18fr);
  gap: clamp(76px, 10vw, 170px);
  align-items: start;
}

.contact-intro {
  padding-top: 22px;
  position: sticky;
  top: 40px;
}

.contact-intro .section-kicker {
  color: var(--gold);
}

.contact-intro h1,
.contact-intro h2 {
  margin: 0;
  max-width: 760px;
  color: var(--navy);
  font-size: clamp(3.8rem, 6.2vw, 7.25rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.contact-intro > p:last-child {
  margin: 38px 0 0;
  max-width: 570px;
  color: rgba(8, 39, 90, 0.66);
  font-size: 1.05rem;
  line-height: 1.75;
  font-weight: 600;
}

.calendly-slot {
  min-height: clamp(700px, 55vw, 780px);
  background: var(--white);
  border: 1px solid rgba(8, 39, 90, 0.1);
  border-radius: 5px 42px 5px 5px;
  box-shadow: 0 28px 80px rgba(8, 39, 90, 0.09);
  position: relative;
  overflow: hidden;
}

.calendly-inline-widget {
  min-width: 320px;
  height: clamp(700px, 55vw, 780px);
}

.calendly-slot::before {
  content: "";
  width: 128px;
  height: 6px;
  position: absolute;
  top: 0;
  right: 0;
  background: var(--gold);
}

@media (max-width: 1180px) {
  .site-header {
    height: 170px;
  }

  .header-inner {
    width: min(100% - 32px, 1600px);
    grid-template-columns: 1fr auto;
    grid-template-rows: 122px 48px;
    gap: 0 24px;
  }

  .brand {
    gap: 12px;
  }

  .brand-primary {
    width: 140px;
  }

  .brand-tagline {
    width: 180px;
  }

  .site-nav {
    width: 100%;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid rgba(8, 39, 90, 0.1);
  }

  .site-nav a {
    padding: 15px 0 14px;
    font-size: 0.76rem;
  }

  .nav-dropdown-menu {
    top: calc(100% + 2px);
  }

  .header-cta {
    min-width: 128px;
    padding: 14px 21px;
  }

  .hero {
    min-height: calc(100vh - 170px);
    min-height: calc(100svh - 170px);
    grid-template-columns: 1fr;
    grid-template-rows: 44% 56%;
  }

  .hero-copy {
    min-height: 0;
    padding: 34px 32px 38px;
    align-items: flex-end;
  }

  .hero-copy-inner {
    gap: 24px;
  }

  .hero-copy h1 {
    max-width: 780px;
    font-size: clamp(3.5rem, 9.2vw, 6.25rem);
  }

  .hero-cta {
    min-height: 56px;
    padding: 16px 25px;
    font-size: 0.92rem;
  }

  .hero-media {
    min-height: 0;
    border-top-left-radius: 42px;
    border-top-right-radius: 42px;
  }

  .hero-media::before {
    display: none;
  }

  .hero-media img {
    min-height: 0;
    height: 100%;
    object-position: 62% center;
  }

  .founders-inner {
    width: min(100% - 64px, 900px);
    padding: 110px 0 120px;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    gap: 56px;
  }

  .founders-portrait {
    position: static;
  }

  .founders-story > h2,
  .founders-story > h1 {
    font-size: clamp(3.35rem, 7.4vw, 5.25rem);
  }

  .canadian-story-inner {
    width: min(100% - 64px, 900px);
    min-height: auto;
    padding: 110px 0 120px;
    grid-template-columns: 1fr;
    gap: 62px;
  }

  .canadian-story h2 {
    max-width: 820px;
    font-size: clamp(4.5rem, 11vw, 7rem);
  }

  .canadian-belief {
    max-width: 720px;
    margin-top: 70px;
  }

  .canadian-story-content {
    padding-top: 0;
    max-width: 720px;
  }

  .story-stats {
    margin-top: 72px;
  }

  .canadian-founders {
    margin-top: 24px;
  }

  .canadian-founders-image,
  .canadian-founders-image img {
    height: 460px;
  }

  .canadian-founders figcaption {
    margin-left: -58px;
  }

  .locations-inner {
    width: min(100% - 64px, 900px);
    padding: 110px 0 120px;
    grid-template-columns: 1fr;
    gap: 68px;
  }

  .locations-intro {
    position: static;
  }

  .locations-intro h2,
  .locations-intro h1 {
    max-width: 760px;
    font-size: clamp(4.4rem, 11vw, 7rem);
  }

  .locations-intro > p:last-child {
    max-width: 650px;
  }

  .contact-inner {
    width: min(100% - 64px, 900px);
    padding: 110px 0 120px;
    grid-template-columns: 1fr;
    gap: 68px;
  }

  .contact-intro {
    padding-top: 0;
    position: static;
  }

  .contact-intro h1,
  .contact-intro h2 {
    max-width: 800px;
    font-size: clamp(4.3rem, 10vw, 7rem);
  }

  .contact-intro > p:last-child {
    max-width: 650px;
  }

  .contact-page {
    min-height: calc(100vh - 170px);
    min-height: calc(100svh - 170px);
  }
}

@media (max-width: 620px) {
  .site-header {
    height: 164px;
  }

  .header-inner {
    width: calc(100% - 24px);
    grid-template-rows: 112px 52px;
    gap: 0 16px;
  }

  .brand {
    gap: 8px;
  }

  .brand-primary {
    width: 100px;
  }

  .brand-tagline {
    width: 123px;
  }

  .header-cta {
    width: 130px;
    min-width: 130px;
    padding: 11px 12px;
    font-size: 0.69rem;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }

  .site-nav {
    gap: 13px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    padding: 17px 0 16px;
    font-size: 0.68rem;
  }

  .nav-dropdown {
    flex: 0 0 auto;
  }

  .nav-dropdown-trigger {
    gap: 6px;
  }

  .nav-dropdown-menu {
    width: 210px;
    max-height: calc(100svh - 180px);
    padding: 11px;
    position: fixed;
    top: 159px;
    left: 50%;
    overflow-y: auto;
    transform: translate(-50%, 9px);
  }

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

  .hero {
    min-height: calc(100vh - 164px);
    min-height: calc(100svh - 164px);
  }

  .hero-copy {
    min-height: 0;
    padding: 24px 22px 28px;
  }

  .hero-copy-inner {
    gap: 18px;
  }

  .hero-copy h1 {
    font-size: clamp(2.7rem, 12.5vw, 3.75rem);
    line-height: 0.98;
  }

  .hero-cta {
    min-height: 50px;
    padding: 14px 21px;
    font-size: 0.82rem;
  }

  .accent-word::after {
    height: 11px;
    bottom: -4px;
  }

  .hero-media {
    min-height: 0;
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
  }

  .hero-media img {
    height: 100%;
    min-height: 0;
    object-position: 64% center;
  }

  .founders-inner {
    width: calc(100% - 44px);
    padding: 86px 0 94px;
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .founders-image-wrap {
    aspect-ratio: 0.88;
    border-radius: 4px 34px 4px 4px;
  }

  .founders-story {
    padding-top: 0;
  }

  .founders-story > h2,
  .founders-story > h1 {
    font-size: clamp(3.15rem, 14vw, 4.4rem);
  }

  .founders-copy {
    margin-top: 44px;
    gap: 22px;
  }

  .founders-copy p {
    font-size: 1rem;
    line-height: 1.72;
  }

  .founders-copy .founders-lede {
    font-size: 1.2rem;
    line-height: 1.58;
  }

  .founders-belief {
    margin-top: 56px;
    padding: 34px 28px 38px;
    border-radius: 4px 26px 4px 4px;
  }

  .founders-belief h3,
  .founders-belief h2 {
    font-size: 2.15rem;
  }

  .canadian-story-inner {
    width: calc(100% - 44px);
    padding: 86px 0 94px;
    gap: 48px;
  }

  .section-kicker {
    margin-bottom: 24px;
  }

  .canadian-story h2 {
    font-size: clamp(3.35rem, 16vw, 5rem);
    line-height: 0.94;
  }

  .canadian-belief {
    margin-top: 56px;
    padding: 34px 28px 38px;
    border-radius: 4px 27px 4px 4px;
  }

  .canadian-belief h3 {
    font-size: 2.15rem;
  }

  .canadian-belief > p:not(.belief-label) {
    font-size: 0.96rem;
  }

  .canadian-story-content > p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .canadian-story-content > .story-lede {
    font-size: 1.2rem;
    line-height: 1.55;
  }

  .story-stats {
    margin-top: 60px;
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .story-stat p {
    max-width: 320px;
  }

  .canadian-founders {
    margin-top: 12px;
    grid-template-columns: 1fr;
  }

  .canadian-founders-image {
    height: 420px;
    border-radius: 4px 34px 4px 4px;
  }

  .canadian-founders-image::after {
    background: linear-gradient(to bottom, transparent 65%, rgba(8, 39, 90, 0.5));
  }

  .canadian-founders-image img {
    height: 420px;
    object-position: center 38%;
  }

  .canadian-founders figcaption {
    width: calc(100% - 32px);
    margin: -28px 16px 0;
    padding: 26px 25px;
  }

  .locations-inner {
    width: calc(100% - 44px);
    padding: 86px 0 94px;
    gap: 48px;
  }

  .locations-intro h2,
  .locations-intro h1 {
    font-size: clamp(3.25rem, 15vw, 4.6rem);
  }

  .locations-intro > p:last-child {
    margin-top: 28px;
    font-size: 0.98rem;
  }

  .locations-field {
    padding: 22px;
    gap: 10px;
    border-radius: 25px;
  }

  .locations-field span {
    padding: 10px 13px;
    font-size: 0.73rem;
  }

  .contact-inner {
    width: calc(100% - 44px);
    padding: 86px 0 94px;
    gap: 48px;
  }

  .contact-intro h1,
  .contact-intro h2 {
    font-size: clamp(3.15rem, 14vw, 4.5rem);
  }

  .contact-intro > p:last-child {
    margin-top: 28px;
    font-size: 0.98rem;
  }

  .calendly-slot {
    min-height: 700px;
    border-radius: 5px 28px 5px 5px;
  }

  .calendly-inline-widget {
    height: 700px;
  }

  .contact-page {
    min-height: calc(100vh - 164px);
    min-height: calc(100svh - 164px);
  }
}

/* Subject and exam-prep pages */
.subject-hero {
  min-height: calc(100vh - 174px);
  min-height: calc(100svh - 174px);
  display: flex;
  color: var(--white);
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.subject-hero::after {
  content: "";
  width: clamp(320px, 34vw, 620px);
  aspect-ratio: 1;
  position: absolute;
  right: -13%;
  bottom: -55%;
  border: clamp(60px, 8vw, 120px) solid rgba(255, 255, 255, 0.035);
  border-radius: 50%;
  pointer-events: none;
}

.subject-hero-inner {
  width: min(100% - 48px, 1600px);
  margin: 0 auto;
  padding: clamp(46px, 5vw, 74px) 0;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  gap: clamp(54px, 7vw, 112px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.subject-kicker {
  margin: 0 0 25px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--gold);
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
}

.subject-kicker::before {
  content: "";
  width: 40px;
  height: 2px;
  background: currentColor;
}

.subject-intro h1 {
  margin: 0;
  max-width: 760px;
  color: var(--white);
  font-size: clamp(3.65rem, 5.9vw, 7rem);
  line-height: 0.93;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.subject-intro > p:last-child {
  margin: 31px 0 0;
  max-width: 650px;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(1rem, 1.18vw, 1.18rem);
  line-height: 1.65;
  font-weight: 500;
}

.subject-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.subject-value {
  min-height: 184px;
  padding: 27px 28px 25px;
  position: relative;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px 28px 4px 4px;
}

.subject-value::before {
  content: attr(data-number);
  width: 29px;
  height: 29px;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--gold);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
}

.subject-value h2 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 1.06rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.subject-value p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  line-height: 1.55;
  font-weight: 500;
}

.subject-details {
  background: #f7f8fb;
}

.subject-details-inner {
  width: min(100% - 48px, 1600px);
  margin: 0 auto;
  padding: clamp(110px, 11vw, 175px) 0;
}

.subject-details-heading {
  margin-bottom: clamp(64px, 7vw, 104px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.72fr);
  gap: clamp(64px, 10vw, 170px);
  align-items: end;
}

.subject-details-heading h2 {
  margin: 0;
  max-width: 780px;
  color: var(--navy);
  font-size: clamp(3.6rem, 6vw, 7rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.subject-details-heading > p {
  margin: 0;
  max-width: 620px;
  color: rgba(8, 39, 90, 0.67);
  font-size: 1.05rem;
  line-height: 1.75;
  font-weight: 600;
}

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

.subject-topic {
  min-height: 260px;
  padding: clamp(29px, 3vw, 42px);
  background: var(--white);
  border: 1px solid rgba(8, 39, 90, 0.09);
  border-radius: 4px 30px 4px 4px;
  box-shadow: 0 18px 50px rgba(8, 39, 90, 0.055);
}

.subject-topic .topic-number {
  margin: 0 0 38px;
  color: var(--gold);
  font-size: 0.76rem;
  line-height: 1;
  letter-spacing: 0.16em;
  font-weight: 800;
}

.subject-topic h3 {
  margin: 0 0 17px;
  color: var(--navy);
  font-size: clamp(1.45rem, 2vw, 2.05rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.subject-topic p {
  margin: 0;
  color: rgba(8, 39, 90, 0.64);
  font-size: 0.92rem;
  line-height: 1.68;
  font-weight: 500;
}

.subject-assurance {
  margin-top: clamp(70px, 8vw, 120px);
  padding: clamp(42px, 5vw, 70px);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  gap: clamp(48px, 8vw, 130px);
  align-items: center;
  color: var(--white);
  background: var(--navy);
  border-top: 6px solid var(--gold);
  border-radius: 4px 42px 4px 4px;
}

.subject-assurance h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(2.3rem, 4vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 800;
}

.subject-assurance p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.72;
  font-weight: 500;
}

@media (max-width: 1180px) {
  .subject-hero {
    min-height: calc(100vh - 170px);
    min-height: calc(100svh - 170px);
  }

  .subject-hero-inner {
    width: min(100% - 64px, 1050px);
    grid-template-columns: minmax(0, 0.82fr) minmax(460px, 1.18fr);
    gap: 48px;
  }

  .subject-intro h1 {
    font-size: clamp(3.35rem, 6vw, 5.5rem);
  }

  .subject-value {
    min-height: 170px;
    padding: 23px;
  }

  .subject-value::before {
    margin-bottom: 17px;
  }

  .subject-details-inner {
    width: min(100% - 64px, 1050px);
  }

  .subject-details-heading {
    gap: 68px;
  }
}

@media (max-width: 820px) {
  .subject-hero {
    min-height: auto;
  }

  .subject-hero-inner {
    padding: 76px 0 86px;
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .subject-intro {
    max-width: 720px;
  }

  .subject-details-heading,
  .subject-assurance {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .subject-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .subject-hero {
    min-height: calc(100svh - 164px);
  }

  .subject-hero-inner {
    width: calc(100% - 44px);
    padding: 48px 0 58px;
    gap: 42px;
  }

  .subject-kicker {
    margin-bottom: 20px;
    font-size: 0.7rem;
  }

  .subject-intro h1 {
    font-size: clamp(2.8rem, 13vw, 4rem);
  }

  .subject-intro > p:last-child {
    margin-top: 23px;
    font-size: 0.93rem;
    line-height: 1.58;
  }

  .subject-values {
    gap: 10px;
  }

  .subject-value {
    min-height: 158px;
    padding: 18px 16px;
    border-radius: 4px 20px 4px 4px;
  }

  .subject-value::before {
    width: 25px;
    height: 25px;
    margin-bottom: 14px;
    font-size: 0.62rem;
  }

  .subject-value h2 {
    font-size: 0.88rem;
  }

  .subject-value p {
    font-size: 0.72rem;
    line-height: 1.45;
  }

  .subject-details-inner {
    width: calc(100% - 44px);
    padding: 88px 0 96px;
  }

  .subject-details-heading {
    margin-bottom: 52px;
    gap: 28px;
  }

  .subject-details-heading h2 {
    font-size: clamp(3rem, 14vw, 4.3rem);
  }

  .subject-details-heading > p {
    font-size: 0.97rem;
  }

  .subject-topic-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .subject-topic {
    min-height: 0;
    padding: 30px 27px 34px;
    border-radius: 4px 24px 4px 4px;
  }

  .subject-topic .topic-number {
    margin-bottom: 26px;
  }

  .subject-assurance {
    margin-top: 62px;
    padding: 36px 28px 40px;
    border-radius: 4px 28px 4px 4px;
  }
}

@media (max-width: 390px) {
  .header-inner {
    gap: 0 10px;
  }

  .brand {
    gap: 6px;
  }

  .brand-primary {
    width: 78px;
  }

  .brand-tagline {
    width: 90px;
  }

  .header-cta {
    width: 112px;
    min-width: 112px;
    padding: 10px 8px;
    font-size: 0.62rem;
  }
}

/* Learning Centre and editorial articles */
.resources-hero {
  min-height: min(720px, calc(100svh - 174px));
  display: flex;
  color: var(--white);
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.resources-hero::after {
  content: "";
  width: clamp(360px, 48vw, 820px);
  aspect-ratio: 1;
  position: absolute;
  right: -18%;
  bottom: -76%;
  border: clamp(70px, 9vw, 140px) solid rgba(255, 255, 255, 0.035);
  border-radius: 50%;
}

.resources-hero-inner {
  width: min(100% - 48px, 1600px);
  margin: 0 auto;
  padding: clamp(88px, 10vw, 155px) 0;
  position: relative;
  z-index: 1;
}

.resources-hero h1 {
  margin: 0;
  max-width: 1120px;
  color: var(--white);
  font-size: clamp(4rem, 7.2vw, 8.5rem);
  line-height: 0.93;
  letter-spacing: -0.065em;
  font-weight: 800;
}

.resources-hero-inner > p:last-child {
  margin: 40px 0 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.7;
  font-weight: 500;
}

.resources-library {
  background: #f7f8fb;
}

.resources-library-inner,
.resources-standard-inner,
.resource-cta-inner,
.related-resources-inner {
  width: min(100% - 48px, 1600px);
  margin: 0 auto;
  padding: clamp(100px, 10vw, 160px) 0;
}

.resources-library-heading {
  margin-bottom: clamp(58px, 7vw, 100px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(390px, 0.62fr);
  gap: 18px clamp(60px, 9vw, 150px);
  align-items: end;
}

.resources-library-heading .section-kicker {
  grid-column: 1 / -1;
}

.resources-library-heading h2,
.resources-standard h2,
.resource-cta h2,
.related-resources h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(3.3rem, 5.8vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.resources-library-heading > p:last-child {
  margin: 0;
  color: rgba(8, 39, 90, 0.66);
  font-size: 1.02rem;
  line-height: 1.75;
  font-weight: 600;
}

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

.resource-card {
  min-height: 390px;
  padding: clamp(30px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(8, 39, 90, 0.09);
  border-radius: 4px 34px 4px 4px;
  box-shadow: 0 18px 50px rgba(8, 39, 90, 0.05);
}

.resource-card-featured {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.resource-card-label {
  margin: 0 0 40px;
  color: var(--gold);
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
}

.resource-card h2 {
  margin: 0 0 22px;
  color: var(--navy);
  font-size: clamp(1.65rem, 2.2vw, 2.5rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.resource-card h2 a {
  color: inherit;
  text-decoration: none;
}

.resource-card-featured h2 {
  color: var(--white);
}

.resource-card > p:not(.resource-card-label) {
  margin: 0;
  color: rgba(8, 39, 90, 0.62);
  font-size: 0.92rem;
  line-height: 1.68;
}

.resource-card-featured > p:not(.resource-card-label) {
  color: rgba(255, 255, 255, 0.66);
}

.resource-card-meta {
  margin-top: auto;
  padding-top: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: rgba(8, 39, 90, 0.48);
  font-size: 0.76rem;
  font-weight: 800;
}

.resource-card-meta a {
  color: var(--navy);
  text-decoration: none;
}

.resource-card-featured .resource-card-meta {
  color: rgba(255, 255, 255, 0.48);
}

.resource-card-featured .resource-card-meta a {
  color: var(--gold);
}

.resources-standard {
  background: var(--white);
}

.resources-standard-inner {
  display: grid;
  grid-template-columns: minmax(340px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(70px, 10vw, 170px);
  align-items: start;
}

.resources-standard-grid {
  display: grid;
  gap: 1px;
  background: rgba(8, 39, 90, 0.12);
}

.resources-standard-grid article {
  padding: 34px 0;
  display: grid;
  grid-template-columns: 55px minmax(190px, 0.58fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  background: var(--white);
}

.resources-standard-grid span {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  font-weight: 800;
}

.resources-standard-grid h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.resources-standard-grid p {
  margin: 0;
  color: rgba(8, 39, 90, 0.64);
  font-size: 0.92rem;
  line-height: 1.65;
}

.resource-cta {
  color: var(--white);
  background: var(--navy);
}

.resource-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 0.62fr);
  gap: clamp(60px, 9vw, 150px);
  align-items: end;
}

.resource-cta .section-kicker {
  color: var(--gold);
}

.resource-cta h2 {
  max-width: 900px;
  color: var(--white);
}

.resource-cta-inner > div:last-child > p {
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.72;
}

.article-hero {
  color: var(--white);
  background: var(--navy);
}

.article-hero-inner {
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
  padding: clamp(70px, 8vw, 125px) 0 clamp(82px, 10vw, 145px);
}

.article-breadcrumb {
  margin-bottom: clamp(52px, 7vw, 90px);
  display: flex;
  gap: 11px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.78rem;
  font-weight: 700;
}

.article-breadcrumb a {
  color: var(--gold);
  text-decoration: none;
}

.article-eyebrow {
  margin: 0 0 26px;
  color: var(--gold);
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 800;
}

.article-hero h1 {
  margin: 0;
  max-width: 1120px;
  color: var(--white);
  font-size: clamp(3.6rem, 6.5vw, 7.4rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.article-dek {
  margin: 40px 0 0;
  max-width: 900px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  line-height: 1.72;
  font-weight: 500;
}

.article-byline {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.article-byline img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  object-position: center 35%;
  border: 2px solid var(--gold);
  border-radius: 50%;
}

.article-byline p {
  margin: 0;
  display: grid;
  gap: 4px;
  color: var(--white);
  font-size: 0.84rem;
}

.article-byline span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.76rem;
}

.article-layout {
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
  padding: clamp(88px, 9vw, 145px) 0;
  display: grid;
  grid-template-columns: 230px minmax(0, 780px);
  gap: clamp(70px, 10vw, 150px);
  justify-content: center;
  align-items: start;
}

.article-toc {
  padding-top: 8px;
  position: sticky;
  top: 32px;
}

.article-toc > p {
  margin: 0 0 22px;
  color: var(--navy);
  font-size: 0.76rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 800;
}

.article-toc ol {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 13px;
  list-style: none;
}

.article-toc a {
  color: rgba(8, 39, 90, 0.6);
  font-size: 0.82rem;
  line-height: 1.4;
  font-weight: 700;
  text-decoration: none;
}

.article-content {
  min-width: 0;
  color: rgba(8, 39, 90, 0.78);
  font-size: 1.03rem;
  line-height: 1.82;
}

.article-content h2 {
  margin: 76px 0 24px;
  color: var(--navy);
  font-size: clamp(2.2rem, 4vw, 3.65rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
  font-weight: 800;
  scroll-margin-top: 32px;
}

.article-content > h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  margin: 42px 0 13px;
  color: var(--navy);
  font-size: 1.42rem;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.article-content p {
  margin: 0 0 24px;
}

.article-content a {
  color: var(--navy);
  font-weight: 800;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.article-content ul,
.article-content ol {
  margin: 22px 0 30px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 13px;
  padding-left: 8px;
}

.article-numbered-list {
  padding-left: 0 !important;
  display: grid;
  gap: 12px;
  list-style: none;
  counter-reset: article-list;
}

.article-numbered-list li {
  margin: 0;
  padding: 22px 24px 22px 65px;
  position: relative;
  background: #f7f8fb;
  border-left: 3px solid var(--gold);
  border-radius: 3px 18px 3px 3px;
  counter-increment: article-list;
}

.article-numbered-list li::before {
  content: counter(article-list, decimal-leading-zero);
  position: absolute;
  top: 24px;
  left: 22px;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.article-callout {
  margin: 44px 0;
  padding: 30px 34px;
  color: var(--navy);
  background: rgba(216, 154, 32, 0.12);
  border-top: 4px solid var(--gold);
  border-radius: 3px 24px 3px 3px;
  font-size: 1rem;
  line-height: 1.7;
}

.article-comparison {
  margin: 34px 0 48px;
  overflow-x: auto;
  border: 1px solid rgba(8, 39, 90, 0.1);
  border-radius: 4px 24px 4px 4px;
}

.article-comparison table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  font-size: 0.88rem;
  line-height: 1.55;
}

.article-comparison th,
.article-comparison td {
  padding: 18px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(8, 39, 90, 0.09);
}

.article-comparison th {
  color: var(--white);
  background: var(--navy);
  font-weight: 800;
}

.article-sources {
  margin-top: 84px;
  padding-top: 46px;
  border-top: 1px solid rgba(8, 39, 90, 0.14);
}

.article-sources h2 {
  margin-top: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.article-sources > p {
  color: rgba(8, 39, 90, 0.6);
  font-size: 0.9rem;
}

.article-sources ul {
  font-size: 0.88rem;
}

.article-author {
  margin-top: 68px;
  padding: 32px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 32px;
  align-items: center;
  background: #f7f8fb;
  border-radius: 4px 28px 4px 4px;
}

.article-author img {
  width: 150px;
  height: 170px;
  object-fit: cover;
  object-position: center 36%;
  border-radius: 3px 22px 3px 3px;
}

.article-author-label {
  margin: 0 0 4px !important;
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 800;
}

.article-author h2 {
  margin: 0 0 12px;
  font-size: 2rem;
}

.article-author div > p:not(.article-author-label) {
  margin-bottom: 12px;
  font-size: 0.86rem;
  line-height: 1.65;
}

.article-author a {
  font-size: 0.82rem;
}

.related-resources {
  background: #f7f8fb;
}

.related-resources h2 {
  margin-bottom: 52px;
}

.related-resources-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.related-resources-grid a {
  min-height: 190px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid rgba(8, 39, 90, 0.09);
  border-radius: 4px 24px 4px 4px;
  text-decoration: none;
}

.related-resources-grid span {
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}

.related-resources-grid strong {
  font-size: 1.28rem;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

@media (max-width: 1180px) {
  .resources-hero {
    min-height: min(700px, calc(100svh - 170px));
  }

  .resources-hero-inner,
  .resources-library-inner,
  .resources-standard-inner,
  .resource-cta-inner,
  .related-resources-inner {
    width: min(100% - 64px, 1050px);
  }

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

  .resources-standard-inner {
    grid-template-columns: 1fr;
    gap: 62px;
  }
}

@media (max-width: 820px) {
  .resources-library-heading,
  .resource-cta-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-toc {
    padding: 24px;
    position: static;
    background: #f7f8fb;
    border-radius: 3px 20px 3px 3px;
  }

  .article-toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-resources-grid {
    grid-template-columns: 1fr;
  }

  .related-resources-grid a {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .resources-hero {
    min-height: calc(100svh - 164px);
  }

  .resources-hero-inner,
  .resources-library-inner,
  .resources-standard-inner,
  .resource-cta-inner,
  .related-resources-inner,
  .article-hero-inner,
  .article-layout {
    width: calc(100% - 44px);
  }

  .resources-hero-inner {
    padding: 72px 0 84px;
  }

  .resources-hero h1 {
    font-size: clamp(3.25rem, 15vw, 4.7rem);
  }

  .resources-hero-inner > p:last-child {
    margin-top: 28px;
    font-size: 0.94rem;
  }

  .resources-library-inner,
  .resources-standard-inner,
  .resource-cta-inner,
  .related-resources-inner {
    padding: 86px 0 94px;
  }

  .resources-library-heading h2,
  .resources-standard h2,
  .resource-cta h2,
  .related-resources h2 {
    font-size: clamp(3rem, 14vw, 4.25rem);
  }

  .resource-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .resource-card {
    min-height: 350px;
    padding: 30px 27px;
    border-radius: 4px 26px 4px 4px;
  }

  .resources-standard-grid article {
    grid-template-columns: 40px 1fr;
    gap: 12px 18px;
  }

  .resources-standard-grid p {
    grid-column: 2;
  }

  .article-hero-inner {
    padding: 55px 0 78px;
  }

  .article-breadcrumb {
    margin-bottom: 48px;
    flex-wrap: wrap;
  }

  .article-hero h1 {
    font-size: clamp(3rem, 14vw, 4.4rem);
  }

  .article-dek {
    margin-top: 28px;
    font-size: 1rem;
  }

  .article-layout {
    padding: 72px 0 88px;
    gap: 52px;
  }

  .article-toc ol {
    grid-template-columns: 1fr;
  }

  .article-content {
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .article-content h2 {
    margin-top: 58px;
    font-size: clamp(2.25rem, 10vw, 3.2rem);
  }

  .article-numbered-list li {
    padding: 21px 20px 21px 54px;
  }

  .article-numbered-list li::before {
    left: 18px;
  }

  .article-callout {
    padding: 26px 24px;
  }

  .article-author {
    grid-template-columns: 1fr;
    padding: 26px;
  }

  .article-author img {
    width: 100%;
    height: 260px;
  }
}
