/* =============================================================
   EduRise — Ultra-corporate design system
   Palette (per brand book):
     Primary  Shadow Navy Grey  #1D2535
     Accent   Galucous          #6B86B2
     Silver                     #AFAFAF
     Black                      #000000
     White                      #FFFFFF
   ============================================================= */

:root {
  --navy:        #1D2535;
  --navy-900:    #131927;
  --navy-700:    #2A3447;
  --navy-600:    #3A4660;
  --galucous:    #6B86B2;
  --galucous-d:  #4F6A98;
  --galucous-l:  #8AA2C9;
  --silver:      #AFAFAF;
  --silver-l:    #E5E7EB;
  --paper:       #F7F7F5;
  --paper-2:     #EFEFEC;
  --line:        rgba(29, 37, 53, 0.22);
  --line-strong: rgba(29, 37, 53, 0.45);
  --line-dark:   rgba(255,255,255,0.14);
  --rule:        #1D2535;
  --gold:        #C9A84C;
  --black:       #000;
  --white:       #FFF;
  --ink:         #14181F;
  --ink-muted:   #5B6473;

  --container: 1380px;
  --container-tight: 1180px;
  --container-narrow: 980px;

  --font-display: "Cormorant Garamond", "Source Serif 4", Georgia, serif;
  --font-sans:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

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

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

/* ---------- Typography ---------- */
.display-1, .display-2, .display-3, .h1, .h2, .h3, .h4, .eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.display-1 { font-size: clamp(2.8rem, 6.4vw, 5.5rem); line-height: 1.02; letter-spacing: -0.02em; }
.display-2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); line-height: 1.05; letter-spacing: -0.015em; }
.display-3 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.1;  letter-spacing: -0.01em; }
.h1 { font-size: clamp(2.2rem, 3.4vw, 3rem); line-height: 1.1; }
.h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.2; }
.h3 { font-size: clamp(1.2rem, 1.6vw, 1.45rem); line-height: 1.3; }

.eyebrow {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--galucous-d);
  display: inline-block;
}
.eyebrow--light { color: var(--galucous-l); }

.lede {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink);
  max-width: 60ch;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.container-tight { width: 100%; max-width: var(--container-tight); margin: 0 auto; padding: 0 32px; }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin: 0 auto; padding: 0 32px; }

.section { padding: clamp(28px, 3.5vw, 48px) 0; }
.section--tight { padding: clamp(44px, 6vw, 72px) 0; }
.section--dark,
.section--paper,
.section--paper-2 { background: var(--white); }
.section--navy {
  background: var(--navy);
  color: var(--white);
}
.section--navy .eyebrow { color: var(--galucous-l); }
.section--navy h2 { color: var(--white); }

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

@media (max-width: 960px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-md-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease-soft);
}
/* Backdrop lives on a pseudo-element so the header itself does NOT
   become a containing block for the position:fixed mobile nav overlay. */
.site-header::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: transparent;
  transition: background 0.4s var(--ease-soft), backdrop-filter 0.4s var(--ease-soft), -webkit-backdrop-filter 0.4s var(--ease-soft);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
  transition: padding 0.4s var(--ease-soft);
}
.site-header__brand { display: flex; align-items: center; }
.site-header__brand img { height: 30px; width: auto; }
.site-header__brand img.logo-dark { display: none; }

.site-header.is-scrolled::before {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-scrolled .site-header__inner { padding: 14px 0; }
.site-header.is-scrolled .site-header__brand img.logo-light { display: none; }
.site-header.is-scrolled .site-header__brand img.logo-dark { display: block; }
.site-header.is-scrolled .nav__link { color: var(--navy); }
.site-header.is-scrolled .nav__link:hover { color: var(--galucous-d); }
.site-header.is-scrolled .btn--ghost { color: var(--navy); border-color: var(--navy); }
.site-header.is-scrolled .btn--ghost:hover { background: var(--navy); color: var(--white); }
.site-header.is-scrolled .nav-toggle span { background: var(--navy); }

/* Solid header pages (non-hero) */
.site-header.is-solid::before { background: var(--white); }
.site-header.is-solid { border-bottom-color: var(--line); }
.site-header.is-solid .site-header__brand img.logo-light { display: none; }
.site-header.is-solid .site-header__brand img.logo-dark { display: block; }
.site-header.is-solid .nav__link { color: var(--navy); }
.site-header.is-solid .btn--ghost { color: var(--navy); border-color: var(--navy); }
.site-header.is-solid .btn--ghost:hover { background: var(--navy); color: var(--white); }
.site-header.is-solid .nav-toggle span { background: var(--navy); }

/* Navigation */
.nav { display: flex; align-items: center; gap: 36px; }
.nav__link {
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.95);
  position: relative;
  transition: color 0.25s var(--ease-soft);
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none;
  background: transparent; border: 0; cursor: pointer;
  width: 32px; height: 28px; position: relative; padding: 0;
  z-index: 70;
}
.nav-toggle.is-open span { background: var(--white) !important; }
.nav-toggle span {
  position: absolute; left: 4px; right: 4px; height: 1.5px;
  background: var(--white);
  transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out), opacity 0.2s;
}
.nav-toggle span:nth-child(1) { top: 8px; }
.nav-toggle span:nth-child(2) { top: 14px; }
.nav-toggle span:nth-child(3) { top: 20px; }
.nav-toggle.is-open span:nth-child(1) { top: 14px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 14px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0;
    background: var(--navy); color: var(--white);
    flex-direction: column; justify-content: center; gap: 28px;
    transform: translateY(-100%);
    transition: transform 0.5s var(--ease-out), visibility 0s linear 0.5s;
    padding: 80px 40px;
    visibility: hidden;
    pointer-events: none;
    z-index: 60;
  }
  .nav.is-open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.5s var(--ease-out), visibility 0s linear 0s;
  }
  .nav__link { color: var(--white) !important; font-family: var(--font-display); font-size: 28px; }
  .nav__link::after { display: none; }
  .nav .btn { font-size: 14px; color: var(--white) !important; border-color: rgba(255,255,255,0.65) !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-sans);
  font-size: 14.5px; letter-spacing: 0.05em; font-weight: 500;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer; transition: all 0.3s var(--ease-out);
  text-decoration: none; line-height: 1;
}
.btn--primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--primary:hover { background: var(--navy-900); border-color: var(--navy-900); transform: translateY(-1px); }
.btn--accent { background: var(--galucous); color: var(--white); border-color: var(--galucous); }
.btn--accent:hover { background: var(--galucous-d); border-color: var(--galucous-d); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.65); }
.btn--ghost:hover { background: var(--white); color: var(--navy); }
.btn--ghost-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost-dark:hover { background: var(--navy); color: var(--white); }
.btn--link {
  background: transparent; padding: 0; border: 0;
  color: var(--navy);
  font-size: 13.5px; letter-spacing: 0.08em;
  padding-bottom: 6px; border-bottom: 1px solid var(--navy);
}
.btn--link.on-dark { color: var(--white); border-bottom-color: var(--white); }
.btn--link:hover { color: var(--galucous-d); border-bottom-color: var(--galucous-d); }
.btn--link.on-dark:hover { color: var(--galucous-l); border-bottom-color: var(--galucous-l); }

.btn .arrow {
  width: 16px; height: 10px;
  display: inline-block; position: relative;
  transition: transform 0.3s var(--ease-out);
}
.btn .arrow::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor;
}
.btn .arrow::after {
  content: ""; position: absolute; right: 0; top: 50%;
  width: 6px; height: 6px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  padding-bottom: clamp(80px, 12vh, 140px);
  padding-top: 120px;
}
.hero__media {
  position: absolute; inset: 0; z-index: 0;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(19,25,39,0.55) 0%, rgba(19,25,39,0.4) 35%, rgba(19,25,39,0.85) 100%),
    linear-gradient(90deg, rgba(19,25,39,0.55) 0%, rgba(19,25,39,0.15) 60%);
}
.hero__inner {
  position: relative; z-index: 1;
  width: 100%;
}
.hero__title {
  color: var(--white);
  max-width: 18ch;
  margin: 22px 0 24px;
}
.hero__lede {
  color: rgba(255,255,255,0.88);
  max-width: 60ch;
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  margin-bottom: 40px;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; }

.hero__scroll {
  position: absolute; bottom: 32px; right: 32px; z-index: 2;
  color: rgba(255,255,255,0.7); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  display: flex; align-items: center; gap: 14px;
}
.hero__scroll::after {
  content: ""; width: 1px; height: 48px; background: rgba(255,255,255,0.5);
  animation: scrollIndicator 2.2s ease-in-out infinite;
}
@keyframes scrollIndicator {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Inner page hero — split layout */
.page-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  overflow: hidden;
}
.page-hero__content {
  background: var(--navy);
  padding: 150px 0 80px;
  display: flex;
  align-items: flex-end;
  position: relative;
}
.page-hero__content::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 80px;
  bottom: 60px;
  width: 2px;
  background: var(--gold);
  opacity: 0.55;
}
.page-hero__inner { position: relative; z-index: 1; padding-left: 56px; }
.page-hero__title { color: var(--white); margin: 18px 0 18px; max-width: 22ch; font-size: clamp(2rem, 3.6vw, 3.2rem); }
.page-hero__lede { color: rgba(255,255,255,0.72); max-width: 50ch; font-size: clamp(0.95rem, 1.1vw, 1.05rem); }
.page-hero__crumbs {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.page-hero__crumbs a { color: rgba(255,255,255,0.4); }
.page-hero__crumbs a:hover { color: rgba(255,255,255,0.8); }
.page-hero__media {
  display: block;
  position: relative;
  overflow: hidden;
}
.page-hero__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.page-hero__caption {
  position: absolute; bottom: 14px; left: 18px;
  z-index: 2;
  font-size: 10px; letter-spacing: 0.04em;
  color: var(--navy);
  background: rgba(255,255,255,0.72);
  padding: 3px 8px;
  border-radius: 2px;
  line-height: 1.4;
  text-decoration: none;
}
.page-hero__caption:hover { background: rgba(255,255,255,0.92); }
.page-hero__media::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(29,37,53,0.18);
}
/* Islamic-inspired geometric accent on hero right edge */
.page-hero__content::after {
  content: '';
  position: absolute;
  right: -1px; top: 0; bottom: 0;
  width: 80px;
  background-image:
    linear-gradient(45deg, rgba(201,168,76,0.07) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(201,168,76,0.07) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(201,168,76,0.07) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(201,168,76,0.07) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  pointer-events: none;
}
@media (max-width: 900px) {
  .page-hero { grid-template-columns: 1fr; }
  .page-hero__content { padding: 120px 0 60px; min-height: 400px; }
  .page-hero__content::before { left: 24px; }
  .page-hero__inner { padding-left: 44px; }
  .page-hero__media { display: none; }
}

/* ---------- Section heads ---------- */
.section-head { margin-bottom: clamp(40px, 5vw, 70px); }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head .lede { margin-top: 22px; }

/* ---------- Editorial layout: two columns ---------- */
.editorial {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.editorial--reverse { grid-template-columns: 1.4fr 1fr; }
@media (max-width: 900px) { .editorial, .editorial--reverse { grid-template-columns: 1fr; } }

.editorial__media {
  position: relative; overflow: hidden;
  aspect-ratio: 4/5;
}
.editorial__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.editorial__media:hover img { transform: scale(1.04); }
.editorial__media--wide { aspect-ratio: 5/4; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 36px 32px;
  transition: border-color 0.3s, transform 0.3s var(--ease-out), box-shadow 0.4s var(--ease-out);
  display: flex; flex-direction: column; gap: 14px;
  height: 100%;
}
.card:hover {
  border-color: var(--navy);
  transform: translateY(-3px);
  box-shadow: 0 24px 60px -30px rgba(19,25,39,0.35);
}
.card__num {
  font-family: var(--font-display);
  font-size: 18px; color: var(--galucous-d);
  letter-spacing: 0.02em;
}
.card__title { font-family: var(--font-display); font-size: 1.45rem; color: var(--navy); line-height: 1.25; }
.card__body { color: var(--ink-muted); font-size: 15px; line-height: 1.65; }
.card__link {
  margin-top: auto; padding-top: 14px;
  font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
  color: var(--navy); display: inline-flex; align-items: center; gap: 10px;
}
.card__link .arrow { background: none; }
.card__link:hover { color: var(--galucous-d); }
.card__link:hover .arrow { transform: translateX(4px); }

.card--dark { background: transparent; border-color: rgba(255,255,255,0.15); }
.card--dark .card__title { color: var(--white); }
.card--dark .card__body { color: rgba(255,255,255,0.75); }
.card--dark .card__link { color: var(--white); }
.card--dark:hover { border-color: var(--galucous-l); box-shadow: none; }

/* Service card — horizontal grid layout */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 32px;
}
.service-card {
  position: relative;
  background: var(--white);
  padding: 36px 32px;
  border-bottom: 2px solid var(--gold);
  transition: background 0.4s var(--ease-soft), box-shadow 0.4s var(--ease-soft);
  display: flex; flex-direction: column; gap: 14px;
}
.service-card:hover { background: var(--paper); box-shadow: 0 16px 48px -24px rgba(29,37,53,0.15); }
.service-card__num {
  font-family: var(--font-display);
  font-size: 14px; letter-spacing: 0.16em;
  color: var(--galucous-d);
}
.service-card__title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.2;
}
.service-card__body { color: var(--ink-muted); font-size: 15px; line-height: 1.6; }
.service-card__bullets {
  list-style: none; padding: 0; margin: 12px 0 0;
  display: flex; flex-direction: column; gap: 8px;
}
.service-card__bullets li {
  font-size: 13px; color: var(--navy);
  padding-left: 16px; position: relative;
  letter-spacing: 0.02em;
}
.service-card__bullets li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 8px; height: 1px; background: var(--galucous-d);
}
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; gap: 0; }
  .service-card { padding: 28px 0; }
}

/* ---------- Stat counter ---------- */
.stat {
  border-top: 1px solid var(--line-dark);
  padding: 28px 0 0;
}
.stat__number {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  font-weight: 400;
  color: var(--white); letter-spacing: -0.02em;
  line-height: 1;
  display: flex; align-items: baseline; gap: 8px;
}
.stat__number .suffix { font-size: 0.5em; color: var(--galucous-l); }
.stat__label {
  margin-top: 14px;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

/* ---------- Quote ---------- */
.quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--navy);
}
.quote__attr {
  margin-top: 26px;
  font-family: var(--font-sans);
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-muted);
}
.quote__attr strong { color: var(--navy); font-weight: 600; letter-spacing: 0.12em; }

.section--dark .quote { color: var(--white); }
.section--dark .quote__attr { color: rgba(255,255,255,0.6); }
.section--dark .quote__attr strong { color: var(--white); }

/* ---------- Process steps ---------- */
.process {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.process__step {
  padding: 36px 28px;
  border-bottom: 2px solid var(--gold);
  position: relative;
}
.process__step:first-child { padding-left: 0; }
.process__step:last-child { padding-right: 0; }
.process__num {
  font-family: var(--font-display);
  font-size: 14px; color: var(--galucous-d);
  letter-spacing: 0.12em;
}
.process__title { font-family: var(--font-display); font-size: 1.7rem; margin: 14px 0 10px; color: var(--navy); }
.process__body { font-size: 14.5px; color: var(--ink-muted); }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; }
  .process__step { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
  .process__step:last-child { border-bottom: 0; }
}

/* ---------- Value list ---------- */
.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); }
.values__item {
  background: var(--white);
  padding: 36px 26px;
  display: flex; flex-direction: column; gap: 12px;
}
.values__item .num { font-family: var(--font-display); font-size: 14px; color: var(--galucous-d); }
.values__item .name { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); }
.values__item .desc { font-size: 14px; color: var(--ink-muted); line-height: 1.55; }
@media (max-width: 900px) { .values { grid-template-columns: 1fr; } }

/* ---------- Marquee ribbon ---------- */
.ribbon {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0; overflow: hidden;
  background: var(--white);
}
.ribbon__track {
  display: flex; gap: 80px; align-items: center;
  font-family: var(--font-display);
  font-size: 1.6rem; color: var(--silver);
  white-space: nowrap;
  animation: ribbonScroll 40s linear infinite;
}
.ribbon__track span { display: inline-flex; align-items: center; gap: 80px; }
@keyframes ribbonScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.78);
  padding: 64px 0 32px;
  border-top: 1px solid var(--rule);
}
.site-footer__top {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-footer__brand { margin-top: -14px; }
.site-footer__brand img { height: 26px; margin-bottom: 22px; display: block; }
.site-footer__brand p { font-size: 14px; line-height: 1.6; max-width: 36ch; color: rgba(255,255,255,0.7); }
.site-footer__col h6 {
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.18em; text-transform: uppercase;
  margin: 0 0 22px;
}
.site-footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.site-footer__col a { font-size: 14.5px; transition: color 0.25s; }
.site-footer__col a:hover { color: var(--galucous-l); }
.site-footer__bottom {
  margin-top: 32px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
  flex-wrap: wrap; gap: 16px;
}
.site-footer__bottom a:hover { color: var(--white); }
.site-footer__legal { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.site-footer__credit a { color: var(--galucous-l); transition: color 0.25s; }
.site-footer__credit a:hover { color: var(--white); }

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

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-muted); font-weight: 500;
}
.field input, .field textarea, .field select {
  font-family: var(--font-sans);
  font-size: 15px;
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line-strong);
  padding: 14px 0 12px;
  color: var(--navy);
  outline: none;
  transition: border-color 0.3s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-bottom-color: var(--galucous-d);
}
.field textarea { resize: vertical; min-height: 130px; }

.audience-tabs {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 0; border: 1px solid var(--line);
}
.audience-tabs button {
  background: transparent; border: 0;
  padding: 18px 16px;
  font-family: var(--font-sans);
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--navy);
  cursor: pointer; transition: background 0.3s, color 0.3s;
  border-right: 1px solid var(--line);
}
.audience-tabs button:last-child { border-right: 0; }
.audience-tabs button.is-active,
.audience-tabs button:hover { background: var(--navy); color: var(--white); }
@media (max-width: 720px) {
  .audience-tabs { grid-template-columns: 1fr 1fr; }
  .audience-tabs button { border-bottom: 1px solid var(--line); }
}

/* Category selection buttons (contact form) */
.cat-buttons {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.cat-btn {
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--navy);
  cursor: pointer;
  transition: all 0.25s var(--ease-soft);
}
.cat-btn:hover { border-color: var(--navy); background: var(--paper); }
.cat-btn.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ribbon__track { animation: none; }
}


/* ---------- People ---------- */
.person { display: flex; flex-direction: column; gap: 14px; }
.person__photo {
  aspect-ratio: 4/5;
  background: var(--paper-2);
  overflow: hidden;
  position: relative;
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: transform 1.2s var(--ease-out); }
.person:hover .person__photo img { transform: scale(1.03); }
.person__name { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy); }
.person__role { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }

/* ---------- Tag / chip ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  border: 1px solid var(--line-strong);
  color: var(--navy);
}
.chip--dark { color: var(--white); border-color: rgba(255,255,255,0.25); }

/* ---------- Map placeholder ---------- */
.map {
  aspect-ratio: 16/7;
  background:
    linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
  position: relative; overflow: hidden;
}
.map::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 30% 40%, rgba(107,134,178,0.35), transparent 35%),
    radial-gradient(circle at 70% 60%, rgba(107,134,178,0.25), transparent 30%);
}
.map::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(transparent 95%, rgba(255,255,255,0.06) 95%),
    linear-gradient(90deg, transparent 95%, rgba(255,255,255,0.06) 95%);
  background-size: 60px 60px;
}
.map__pin {
  position: absolute;
  width: 12px; height: 12px;
  background: var(--galucous-l);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(138,162,201,0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(138,162,201,0.55); }
  70% { box-shadow: 0 0 0 18px rgba(138,162,201,0); }
  100% { box-shadow: 0 0 0 0 rgba(138,162,201,0); }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mt-8 { margin-top: 64px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.mb-6 { margin-bottom: 48px; }
.mb-8 { margin-bottom: 64px; }
.text-center { text-align: center; }
.muted { color: var(--ink-muted); }
.on-dark .muted { color: rgba(255,255,255,0.65); }
.tracking-wide { letter-spacing: 0.04em; }
.flex { display: flex; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: var(--white);
  color: var(--navy);
  padding: clamp(56px, 7vw, 96px) 0;
  position: relative; overflow: hidden;
  border-top: 1px solid var(--rule);
}
.cta-strip::before { content: none; }
.cta-strip__inner { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: center; }
.cta-strip__inner h2 { color: var(--navy); max-width: 22ch; }
.cta-strip__inner .lede { color: var(--ink-muted); }
.cta-strip__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: flex-end; }
@media (max-width: 900px) {
  .cta-strip__inner { grid-template-columns: 1fr; }
  .cta-strip__actions { justify-content: flex-start; }
}

/* ---------- Insights topics ---------- */
.insights-topics {
  display: flex; flex-direction: column;
}
.insights-topic {
  display: grid; grid-template-columns: 100px 1fr auto;
  align-items: center; gap: 40px;
  padding: 48px 24px;
  border-bottom: 1px solid var(--line);
  cursor: default;
  transition: background 0.3s var(--ease-soft), padding-left 0.3s var(--ease-soft);
  position: relative;
}
.insights-topic:first-child { border-top: 1px solid var(--line); }
.insights-topic:hover {
  background: var(--paper);
  padding-left: 36px;
}
.insights-topic:hover .insights-topic__num { color: var(--gold); }
.insights-topic:hover .insights-topic__title { color: var(--navy); }
.insights-topic:hover .insights-topic__arrow { opacity: 1; transform: translateX(0); }
.insights-topic__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--line);
  transition: color 0.3s var(--ease-soft);
  line-height: 1;
}
.insights-topic__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  font-weight: 500;
  color: var(--navy); margin-bottom: 10px;
  line-height: 1.15;
  transition: color 0.3s var(--ease-soft);
}
.insights-topic__body { color: var(--ink-muted); font-size: 16px; line-height: 1.65; max-width: 56ch; }
.insights-topic__arrow {
  font-size: 1.5rem; color: var(--gold);
  opacity: 0; transform: translateX(-12px);
  transition: opacity 0.3s var(--ease-soft), transform 0.3s var(--ease-soft);
  flex-shrink: 0;
}

/* ---------- Article cards ---------- */
.article-card {
  display: flex; flex-direction: column; gap: 18px;
  text-decoration: none; color: inherit;
}
.article-card__img {
  aspect-ratio: 16/10; overflow: hidden; background: var(--paper-2);
}
.article-card__img img { width:100%; height:100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.article-card:hover .article-card__img img { transform: scale(1.05); }
.article-card__meta { display: flex; gap: 18px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.article-card__title { font-family: var(--font-display); font-size: 1.55rem; color: var(--navy); line-height: 1.25; }
.article-card:hover .article-card__title { color: var(--galucous-d); }

/* ---------- Position list ---------- */
.position {
  display: grid; grid-template-columns: 0.4fr 1.4fr 0.5fr 0.5fr 0.2fr;
  align-items: center; gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  transition: padding 0.3s var(--ease-out);
}
.position:last-child { border-bottom: 1px solid var(--line); }
.position:hover { padding-left: 16px; }
.position__dept { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--galucous-d); }
.position__title { font-family: var(--font-display); font-size: 1.45rem; color: var(--navy); }
.position__meta { font-size: 13px; color: var(--ink-muted); }
.position__arrow { justify-self: end; }
@media (max-width: 760px) {
  .position { grid-template-columns: 1fr; }
  .position__arrow { display: none; }
}

/* ---------- Partner card ---------- */
.partner-card {
  background: var(--paper);
  padding: 50px 44px;
  border: 1px solid var(--line);
}
.partner-card__mark {
  font-family: var(--font-display);
  font-size: 1.8rem; color: var(--navy);
  letter-spacing: -0.005em; margin-bottom: 22px;
}
.partner-card__body { font-size: 15px; color: var(--ink-muted); line-height: 1.65; max-width: 50ch; }

/* ---------- Vision / Mission Big Type ---------- */
.bigtype {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  line-height: 1.25;
  color: var(--navy);
  max-width: 28ch;
}

/* ---------- 404 / fallback safety ---------- */
:where(.section, .container, .container-tight, .container-narrow) > * + * { margin-top: 0; }


/* ---------- Careers application form ---------- */
.apply-form { display: grid; gap: 30px; margin-top: 40px; }

.field-file__label {
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-muted); font-weight: 500;
  margin-bottom: 12px;
}
.file-upload {
  position: relative;
  border: 1px dashed var(--line-strong);
  background: var(--white);
  padding: 32px 28px;
  display: flex; align-items: center; gap: 22px;
  transition: border-color 0.3s var(--ease-soft), background 0.3s var(--ease-soft);
  cursor: pointer;
}
.file-upload:hover,
.file-upload.is-dragover { border-color: var(--galucous-d); background: var(--paper); }
.file-upload.has-file { border-style: solid; border-color: var(--navy); }
.file-upload input[type="file"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
.file-upload__icon {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  color: var(--galucous-d);
}
.file-upload__icon svg { width: 20px; height: 20px; }
.file-upload.has-file .file-upload__icon { color: var(--navy); border-color: var(--navy); }
.file-upload__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.file-upload__primary {
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 500; color: var(--navy);
  letter-spacing: 0.02em;
}
.file-upload__primary u { text-decoration: underline; text-underline-offset: 3px; color: var(--galucous-d); }
.file-upload__hint { font-size: 12px; color: var(--ink-muted); letter-spacing: 0.04em; }
.file-upload__remove {
  margin-left: auto; flex: 0 0 auto;
  background: transparent; border: 0; cursor: pointer;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-muted);
  padding: 6px 10px;
  transition: color 0.25s;
  position: relative; z-index: 1;
  display: none;
}
.file-upload__remove:hover { color: var(--navy); }
.file-upload.has-file .file-upload__remove { display: inline-block; }

/* ---------- Legal document pages ---------- */
.legal { padding-top: 160px; }
.legal h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  color: var(--navy);
  margin: 48px 0 14px;
  letter-spacing: -0.005em;
}
.legal p, .legal li {
  color: var(--ink-muted);
  font-size: 15.5px;
  line-height: 1.7;
}
.legal ul { padding-left: 22px; }
.legal__meta {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-muted); margin-top: 24px;
}

/* ============================================================
   Mobile cleanup (≤ 760px)
   - Collapses every inline 2-column grid to a single column
   - Right-sizes hero, page-hero, sections, buttons, typography
   - Fixes the inline min-width on the insights subscribe form
   - Stacks the footer bottom row and audience tabs
   ============================================================ */
@media (max-width: 760px) {
  .container, .container-tight, .container-narrow { padding: 0 20px; }

  .section { padding: clamp(56px, 13vw, 88px) 0; }
  .section--tight { padding: clamp(48px, 11vw, 70px) 0; }

  /* Beat inline grid-template-columns on section heads / editorial / connect blocks */
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  /* Keep two-column lists of short labels (service bullets) on mobile */
  ul.grid-md-2[style*="grid-template-columns"] {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 12px 22px !important;
  }

  /* Typography */
  .display-1 { font-size: clamp(2rem, 9vw, 2.7rem); line-height: 1.08; }
  .display-2 { font-size: clamp(1.7rem, 7.5vw, 2.3rem); line-height: 1.12; }
  .display-3 { font-size: clamp(1.4rem, 6vw, 1.8rem); }
  .lede { font-size: 15px; line-height: 1.55; }
  .quote { font-size: clamp(1.15rem, 4.6vw, 1.5rem) !important; line-height: 1.45 !important; }
  .bigtype { font-size: clamp(1.5rem, 6.4vw, 2rem) !important; }

  /* Header */
  .site-header__inner { padding: 12px 0; min-height: 56px; }
  .site-header__brand { padding: 4px 0; }
  .site-header__brand img { height: 22px; width: auto; display: block; }
  .nav-toggle { width: 44px; height: 44px; }
  .nav-toggle span { left: 8px; right: 8px; }
  .nav-toggle span:nth-child(1) { top: 12px; }
  .nav-toggle span:nth-child(2) { top: 18px; }
  .nav-toggle span:nth-child(3) { top: 24px; }
  .nav-toggle.is-open span:nth-child(1) { top: 18px; transform: rotate(45deg); }
  .nav-toggle.is-open span:nth-child(3) { top: 18px; transform: rotate(-45deg); }
  /* Slight extra breathing room around brand/burger on phone */
  .site-header .container { padding: 0 22px; }

  /* Hero */
  .hero {
    padding-top: 110px;
    padding-bottom: 70px;
    min-height: 88vh; min-height: 88svh;
  }
  .hero__title { max-width: 100%; margin: 18px 0 18px; }
  .hero__lede { font-size: 15px; margin-bottom: 28px; }
  .hero__scroll { display: none; }
  .hero__ctas { width: 100%; gap: 12px; }
  .hero__ctas .btn { flex: 1 1 100%; justify-content: center; }

  /* Page hero */
  .page-hero { padding: 130px 0 60px; }
  .page-hero__title { margin: 14px 0 14px; }
  .page-hero__lede { font-size: 15px; }

  /* Editorial */
  .editorial, .editorial--reverse { gap: 32px !important; }
  .editorial__media,
  .editorial__media--wide { aspect-ratio: 4/3; }

  /* Cards / service cards */
  .card { padding: 28px 24px; }
  .service-card {
    padding: 28px 0;
    gap: 16px;
    border-top-color: var(--line);
  }
  .service-card__bullets { flex-direction: row; flex-wrap: wrap; gap: 8px 18px; }
  .service-card__bullets li { font-size: 12.5px; }

  /* Process */
  .process { border-bottom: 0; }
  .process__step {
    padding: 24px 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line);
  }
  .process__step:last-child { border-bottom: 0; }
  .process__title { font-size: 1.4rem; }

  /* Stats */
  .stat { padding-top: 22px; }
  .stat__number { font-size: clamp(2.2rem, 11vw, 3rem); }
  .stat__label { font-size: 12px; margin-top: 10px; }

  /* Values */
  .values { gap: 0; background: transparent; }
  .values__item { padding: 26px 0; border-bottom: 1px solid var(--line); background: transparent; }
  .values__item:last-child { border-bottom: 0; }

  /* Section heads spacing */
  .section-head { margin-bottom: 32px; }

  /* Buttons */
  .btn { padding: 13px 22px; font-size: 12.5px; }

  /* CTA strip */
  .cta-strip { padding: 60px 0; }
  .cta-strip__inner { gap: 36px !important; }
  .cta-strip__actions { width: 100%; gap: 12px; justify-content: stretch; min-width: 0 !important; }
  .cta-strip__actions .btn { flex: 1 1 100%; justify-content: center; }
  .cta-strip__actions[style*="min-width"] { min-width: 0 !important; }
  .cta-strip__actions input[type="email"] { width: 100%; }

  /* Audience tabs (contact) */
  .audience-tabs { grid-template-columns: 1fr 1fr; }
  .audience-tabs button {
    padding: 14px 12px; font-size: 11px;
    border-bottom: 1px solid var(--line);
  }
  .audience-tabs button:nth-last-child(-n+2) { border-bottom: 0; }

  /* Contact form */
  #contact-form, #apply-form { gap: 22px !important; }

  /* File upload */
  .file-upload { padding: 20px 18px; gap: 14px; flex-wrap: wrap; }
  .file-upload__icon { width: 38px; height: 38px; }
  .file-upload__text { min-width: 0; flex: 1 1 calc(100% - 60px); }
  .file-upload__primary { font-size: 13px; word-break: break-word; }
  .file-upload__hint { font-size: 11.5px; }
  .file-upload__remove { margin-left: 56px; padding: 4px 0; }

  /* Insights featured card */
  .article-card__img { aspect-ratio: 16/10 !important; }
  .article-card__title { font-size: 1.25rem !important; }

  /* Partner cards */
  .partner-card { padding: 36px 28px; }
  .partner-card__mark { font-size: 1.5rem; }

  /* People grid (about) */
  .person__photo { aspect-ratio: 4/5; }

  /* Chips wrap nicely */
  .chip { font-size: 10.5px; padding: 6px 10px; }

  /* Footer */
  .site-footer { padding: 64px 0 28px; }
  .site-footer__top { gap: 36px; padding-bottom: 36px; }
  .site-footer__bottom {
    flex-direction: column; align-items: flex-start; gap: 14px;
    margin-top: 24px;
  }
  .site-footer__legal { gap: 14px 22px; }
  .site-footer__col h6 { margin-bottom: 16px; }

  /* Legal pages */
  .legal { padding-top: 110px; }
  .legal h2 { margin: 36px 0 10px; }

  /* Vision/Mission grid gap fix */
  .grid.grid-2[style*="gap: 80px"] { gap: 36px !important; }

  /* Misc inline-margin overrides that look cramped */
  .section[style*="padding-top: 160px"] { padding-top: 110px !important; }
}

/* ============================================================
   Very small phones (≤ 400px)
   ============================================================ */
@media (max-width: 400px) {
  .container, .container-tight, .container-narrow { padding: 0 16px; }
  .display-1 { font-size: 1.95rem; }
  .display-2 { font-size: 1.6rem; }
  .display-3 { font-size: 1.35rem; }
  .btn { padding: 12px 18px; font-size: 12px; }
  .hero__title br { display: none; }
  .page-hero__title br { display: none; }
  .audience-tabs { grid-template-columns: 1fr; }
  .audience-tabs button { border-bottom: 1px solid var(--line); }
  .audience-tabs button:last-child { border-bottom: 0; }
  .service-card__bullets { flex-direction: column; gap: 8px; }
  .file-upload__remove { margin-left: 0; }
}

/* ============================================================
   Targeted mobile fixes
   ============================================================ */
@media (max-width: 760px) {
  /* page-hero: the .page-hero section already gets padding: 130px 0 60px
     above, so cancel the duplicate top-padding on .page-hero__content
     and pull .page-hero__inner in closer to the left edge */
  .page-hero__content { padding-top: 0; min-height: auto; }
  .page-hero__inner { padding-left: 20px; }

  /* Gold line: move flush to the left edge and run top-to-bottom so it
     never overlaps the text (which starts at padding-left: 20px) */
  .page-hero__content::before {
    left: 0;
    top: 16px;
    bottom: 16px;
  }

  /* Hide the 80px geometric accent — it eats into text width on phones */
  .page-hero__content::after { display: none; }

  /* insights-topic: collapse 3-col (100px num / content / arrow) to 2-col */
  .insights-topic {
    grid-template-columns: 56px 1fr;
    gap: 16px;
    padding: 28px 0;
  }
  .insights-topic__num { font-size: 1.5rem; }
  .insights-topic__title { font-size: clamp(1.1rem, 5vw, 1.4rem); margin-bottom: 6px; }
  .insights-topic__arrow { display: none; }

  /* Contact category buttons: tighter padding so 3 buttons fit comfortably */
  .cat-btn { padding: 11px 18px; font-size: 12px; }
}
