/* ==========================================================================
   Kirkpatrick — Design tokens
   ========================================================================== */
:root {
  /* Colors */
  --navy-blue: #123a5e;
  --royal-blue: #1d5b93;
  --deep-teal: #2c8ca0;
  --light-turquoise: #69c0d2;
  --burnt-orange: #d25931;
  --light-coral: #f2ae98;
  --white: #ffffff;
  --black: #081a2b;

  --dark-4: rgba(8, 26, 43, 0.04);
  --dark-8: rgba(8, 26, 43, 0.08);
  --dark-16: rgba(8, 26, 43, 0.16);
  --dark-64: rgba(8, 26, 43, 0.64);
  --light-8: rgba(255, 255, 255, 0.08);
  --light-16: rgba(255, 255, 255, 0.16);

  /* Typography */
  --font-heading: "Raleway", sans-serif;
  --font-body: "Open Sans", sans-serif;

  /* Spacing scale */
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-20: 20px;
  --sp-24: 24px;
  --sp-32: 32px;
  --sp-48: 48px;
  --sp-64: 64px;
  --sp-80: 80px;
  --sp-96: 96px;
  --sp-112: 112px;
  --sp-124: 124px;
  --sp-160: 160px;

  --page-padding: clamp(20px, 4vw, 48px);
  --column-gap: 12px;
  --radius: 8px;

  --max-width: 1728px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; overflow-x: hidden; width: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy-blue);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }

.gradient-text {
  background: linear-gradient(90deg, var(--royal-blue), var(--deep-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Reveal-on-scroll base state (JS toggles visibility via GSAP,
   this is a no-JS fallback so content is visible if JS fails) */
[data-scrub] { opacity: 1; }
.js-ready [data-scrub="fade-up"] { opacity: 0; transform: translateY(40px); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-16) var(--sp-24);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(8, 26, 43, 0.12); }
.btn--white { background: var(--white); border-color: var(--dark-8); color: var(--black); }
.btn--ghost { background: transparent; border-color: var(--navy-blue); color: var(--navy-blue); }
.btn--ghost:hover { background: var(--navy-blue); color: var(--white); }
.btn--navy { background: var(--navy-blue); border-color: var(--light-16); color: var(--white); }
.btn--navy:hover { background: var(--royal-blue); }

/* ==========================================================================
   Eyebrow / section header
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-12) var(--sp-24);
  border: 1px solid var(--dark-16);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--royal-blue);
}
.eyebrow--light { color: var(--royal-blue); }
.eyebrow--dark { border-color: var(--light-16); color: var(--white); }

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-32);
  text-align: center;
  max-width: 810px;
  margin: 0 auto;
}
.section-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 80px);
  line-height: 1.05;
  letter-spacing: -2px;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-16) var(--page-padding);
  background: transparent;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
.navbar--solid {
  box-shadow: 0 4px 20px rgba(8, 26, 43, 0.06);
  z-index: 1000;
  background: white;
}
.navbar__logo { position: relative; width: 160px; height: 58.625px; flex-shrink: 0; }
.navbar__logo-mark { position: absolute; inset: 0; width: 100%; height: 100%; }
.navbar__logo-text {
  position: absolute;
  left: 11.91%;
  top: 16.17%;
  width: 74.6%;
  height: 84.08%;
}
.navbar__side { display: flex; align-items: center; gap: var(--sp-32); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-48) var(--page-padding) 70px;
  min-height: 90vh;
  overflow: visible;
}
.hero__vectors {
  position: absolute;
  top: -22%;
  right: -20%;
  width: min(1100px, 90vw);
  aspect-ratio: 1947.17 / 2059.85;
  z-index: -1;
  pointer-events: none;
}
.hero__blob {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
}
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-32);
  max-width: 961px;
}
.hero__title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 96px);
  line-height: 1;
  letter-spacing: -3px;
  opacity: 0.9;
}
.hero__subtitle {
  font-size: 20px;
  line-height: 1.5;
  color: var(--navy-blue);
  opacity: 0.7;
  max-width: 555px;
}
.hero__buttons { display: flex; gap: var(--sp-12); flex-wrap: wrap; padding-top: var(--sp-32); }

/* ==========================================================================
   Intro
   ========================================================================== */
.intro {
  padding: 100px var(--page-padding) 140px;
  display: flex;
  justify-content: flex-start;
}
.intro__content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-32);
  max-width: 536px;
  margin-left: clamp(0px, 8vw, 137px);
}
.intro__title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -2px;
}
.intro__description {
  font-size: 16px;
  line-height: 24px;
  color: var(--navy-blue);
  opacity: 0.7;
  max-width: 395px;
}

/* ==========================================================================
   Approach
   ========================================================================== */
.approach {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-80);
  padding: var(--sp-96) var(--page-padding);
}
.approach__cards {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--column-gap);
  width: 100%;
  max-width: var(--max-width);
  border-radius: var(--radius);
}
.approach__card-wrapper { flex: 1 1 300px; display: flex; }
.approach__card-wrapper--1 { margin-top: var(--sp-96); }
.approach__card-wrapper--2 { margin-top: var(--sp-48); }
.approach__card-wrapper--3 { margin-top: 0; }
.approach__card {
  background: var(--white);
  border: 1px solid var(--dark-8);
  border-radius: var(--radius);
  padding: 32px;
  height: 600px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-32);
  text-align: center;
  color: var(--navy-blue);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.approach__card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(8,26,43,0.1); }
.approach__card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 24px;
  line-height: 28px;
}
.approach__card-desc {
  font-size: 18px;
  line-height: 1.5;
  max-width: 374px;
}

/* ==========================================================================
   About
   ========================================================================== */
.about {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-112);
  padding: var(--sp-112) var(--page-padding);
  overflow: visible;
}
.about__blob {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}
.about__blob--1 { left: 66.44vw; top: -42vw; width: 61.09vw; height: 61.1vw; }
.about__blob--2 { left: -25.63vw; top: 19.59vw; width: 56.44vw; height: 56.44vw; }
.about__blob--1 .about__blob-img { width: 43.35vw; height: 43.37vw; transform: rotate(139.99deg); }
.about__blob--2 .about__blob-img { width: 41.3vw; height: 41.32vw; transform: rotate(-30deg); }
.about__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-48);
  width: 100%;
  max-width: var(--max-width);
}
.about__image-col, .about__text-col { max-width: 673px; }
.about__image-col { padding-top: var(--sp-160); }
.about__image {
  border-radius: var(--radius);
  background-color: #d9d9d9;
  background-size: cover;
  background-position: center;
}
.about__image--top { height: 400px; }
.about__image--bottom { aspect-ratio: 1 / 1; margin-top: var(--sp-112); }
.about__text-col { display: flex; flex-direction: column; gap: var(--sp-24); }
.about__description {
  font-size: 18px;
  line-height: 1.5;
  color: var(--navy-blue);
  opacity: 0.7;
  margin-bottom: var(--sp-24);
}

/* ==========================================================================
   Services
   ========================================================================== */
.services { padding: 0 var(--sp-24); position: relative; z-index: 2; }
.services__inner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #184b79 0%, var(--black) 100%);
  padding: var(--sp-96) var(--page-padding);
  display: flex;
  flex-direction: column;
  gap: var(--sp-112);
}
.services__vector-k {
  position: absolute;
  top: -10%;
  left: -3%;
  width: 110%;
  aspect-ratio: 1735.91 / 2238.23;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}
.services .section-header { position: relative; z-index: 1; }
.services__title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 80px);
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--white);
}
.services__cards {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}
.service-card {
  display: flex;
  flex-wrap: wrap;
  gap: var(--column-gap);
  align-items: flex-start;
  border: 1px solid var(--dark-4);
  border-radius: var(--radius);
  padding: 32px 32px 40px;
  background: var(--light-8);
  color: var(--white);
  transition: background-color 0.4s ease, transform 0.4s ease;
}
.service-card:hover { transform: translateX(6px); background: var(--white); color: var(--navy-blue); }
.service-card:hover .service-card__bullet { background: var(--deep-teal); }
.service-card--active { background: var(--white); color: var(--navy-blue); }
.service-card__bullet {
  width: 13px;
  height: 45px;
  border-radius: 3px;
  background: var(--burnt-orange);
  flex-shrink: 0;
  margin-top: 2px;
}
.service-card--active .service-card__bullet { background: var(--deep-teal); }
.service-card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.3;
  flex: 1 1 320px;
  min-width: 220px;
}
.service-card__content { display: flex; flex-direction: column; gap: var(--sp-24); flex: 1 1 350px; max-width: 408px; }
.service-card__subtitle { font-family: var(--font-heading); font-weight: 600; font-size: 20px; line-height: 1.2; }
.service-card__text { font-size: 15px; line-height: 1.5; opacity: 0.75; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--dark-8);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(29,91,147,0.05));
  padding: var(--sp-112) var(--page-padding) var(--sp-32);
  display: flex;
  flex-direction: column;
  gap: var(--sp-64);
}
.footer__container { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-48); max-width: var(--max-width); width: 100%; margin: 0 auto; }
.footer__left { position: relative; width: 200px; aspect-ratio: 160 / 58.625; flex-shrink: 0; align-self: flex-start; }
.footer__logo-mark { position: absolute; inset: 0; width: 100%; height: 100%; }
.footer__logo-text {
  position: absolute;
  left: 11.91%;
  top: 16.17%;
  width: 74.6%;
  height: 84.08%;
}
.footer__right { flex: 0 1 auto; display: flex; flex-wrap: nowrap; gap: 32px 80px; }
.footer__col-group { flex: 0 0 auto; display: flex; flex-direction: column; gap: 32px; }
.footer__col { display: flex; flex-direction: column; gap: var(--sp-16); }
.footer__col-title {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--burnt-orange);
}
.footer__col-text { font-size: 16px; line-height: 1.3; }
.footer__link { color: inherit; text-decoration: none; transition: opacity 0.2s ease; }
.footer__link:hover { opacity: 0.7; text-decoration: underline; }
.footer__bottom {
  border-top: 1px solid var(--dark-4);
  padding-top: var(--sp-32);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__copyright { font-size: 12px; opacity: 0.5; }
.footer__credit { font-size: 12px; color: var(--dark-64); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .intro__content { margin-left: 0; }
  .about__container { grid-template-columns: 1fr; }
  .about__image-col { padding-top: 0; }
  .approach__card-wrapper--1, .approach__card-wrapper--2 { margin-top: 0; }
  .approach__card { height: auto; padding: 48px 24px; }
  .service-card__title { min-width: 100%; }
}
@media (max-width: 767px) {
  .navbar {
    width: 100%;
    max-width: 100vw;
    padding-left: var(--sp-16);
    padding-right: var(--sp-16);
  }
  .navbar__logo { width: 120px; height: 44px; }
  .navbar__side { gap: var(--sp-16); }
  .navbar__side .btn { padding: 10px 16px; font-size: 14px; }
  .hero {
    min-height: 92vh;
    justify-content: end;
    padding-top: var(--sp-96);
    padding-bottom: var(--sp-48);
  }
  .hero__vectors { top: 0; right: 0; width: 85vw; }
  .footer__container { grid-template-columns: 1fr; gap: 32px; }
  .footer__right { flex-wrap: wrap; gap: 32px 40px; }
}
