@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600&display=swap");

:root {
  --exallon-accent: #52209c;
  --exallon-ink: #111318;
  --exallon-ink-soft: #44495a;
  --exallon-bg: #f8f8fb;
  --exallon-surface: #ffffff;
  --exallon-hero: linear-gradient(135deg, rgba(82, 32, 156, 0.92), rgba(101, 48, 184, 0.78));
}

html,
body {
  color: var(--exallon-ink);
  margin: 0;
  padding: 0;
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  position: relative;
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #fff url("main_background.svg") top center / 100% 300px repeat-y;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  body::before {
    animation: waveScroll 60s linear infinite;
  }
  @keyframes waveScroll {
    from {
      background-position-y: 0;
    }
    to {
      background-position-y: -300px;
    }
  }
}

main.container, footer.container {
  max-width: 1080px;
}

main.container {
  padding-top: 0;
  padding-block-start: 0;
}

main > section:first-of-type {
  margin-top: 0;
  margin-block-start: 0;
}

.site-header {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: none;
  background: var(--exallon-surface);
  margin: 0 0;
  padding: 0 0;
}

.primary-nav {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  height: 75px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.primary-nav__links {
  height: 50px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  height: 100%;
  gap: 1rem;
}

.primary-nav__links li {
  height: 50px;
  display: flex;
  align-items: center;
  height: 100%;
}

.primary-nav__links li a {
  display: inline-flex;
  align-items: center;
  height: 100%;
}

.primary-nav .brand {
  display: inline-flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
}

.primary-nav .brand-logo {
  height: 48px;
  width: auto;
  display: block;
}

.primary-nav a,
.primary-nav strong {
  color: var(--exallon-ink) !important;
}

.primary-nav a[role="button"] {
  color: #fff !important;
  background-color: var(--exallon-accent) !important;
}

/* HERO SECTION full width */
.hero {
  margin-top: 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: var(--exallon-hero);
  color: #fff;
  text-align: center;
  padding: 12rem 1rem;
  min-height: 50vh;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.hero-scroll {
  position: relative;
  width: 100%;
  --hero-scroll-length: 220vh;
}

.hero-scroll .scroll-container {
  position: relative;
  height: var(--hero-scroll-length);
}

.hero-scroll .sticky-container {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: stretch;
}

.hero[data-scroll-sticky] {
  --hero-scale: 1;
  --hero-progress: 0;
  --hero-offset: 0px;
  --hero-radius: 0px;
  transform-origin: center;
  transform: translate3d(0, var(--hero-offset), 0) scale(var(--hero-scale));
  will-change: transform;
  border-radius: var(--hero-radius);
  padding-top: calc(12rem - 6rem * var(--hero-progress));
  padding-bottom: calc(12rem - 6rem * var(--hero-progress));
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
}

.hero[data-scroll-sticky] .content {
  transform-origin: center;
  transform: scale(calc(1 / var(--hero-scale, 1)));
  transition: none;
  will-change: transform;
  max-width: 720px;
  margin: 0 auto;
}

.hero[data-scroll-sticky] .hero-bg {
  opacity: calc(1 - 0.25 * var(--hero-progress));
  transition: opacity 0.35s ease-out;
}

.hero[data-scroll-sticky] .hero-bg svg {
  transform: translate(-50%, -50%);
  clip-path: inset(calc(12% * var(--hero-progress)) calc(10% * var(--hero-progress)));
  -webkit-clip-path: inset(calc(12% * var(--hero-progress)) calc(10% * var(--hero-progress)));
  transition: clip-path 0.35s ease-out;
}

@-moz-document url-prefix() {
  .hero[data-scroll-sticky] .hero-bg,
  .hero[data-scroll-sticky] .hero-bg svg {
    clip-path: none !important;
    -webkit-clip-path: none !important;
  }
}

.hero.hero--static {
  transform: none;
  min-height: max(540px, 100vh);
  padding-top: clamp(4rem, 12vw, 7rem);
  padding-bottom: clamp(4rem, 12vw, 7rem);
  border-radius: 0;
}

.hero.hero--static .content {
  transform: none;
}

.hero.hero--static .hero-bg,
.hero.hero--static .hero-bg svg {
  opacity: 1;
  clip-path: none;
  -webkit-clip-path: none;
}

.hero.hero--static .hero-bg svg {
  transform: translate3d(-50%, -50%, 0) scale(1.6);
  min-width: 160%;
  min-height: 160%;
}

@media (prefers-reduced-motion: reduce) {
  .hero[data-scroll-sticky] {
    transform: none;
    padding-top: 8rem;
    padding-bottom: 8rem;
  }

  .hero[data-scroll-sticky] .content {
    transform: none;
  }

  .hero[data-scroll-sticky] .hero-bg,
  .hero[data-scroll-sticky] .hero-bg svg {
    opacity: 1;
    transform: translate(-50%, -50%);
    clip-path: none;
    -webkit-clip-path: none;
  }
}

@media (max-width: 768px) {
  .hero-scroll {
    --hero-scroll-length: auto;
  }

  .hero-scroll .scroll-container,
  .hero-scroll .sticky-container {
    height: auto;
  }

  .hero-scroll .sticky-container {
    position: relative;
  }
}

.hero--compact {
  padding: 3rem 1rem;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero--compact .content {
  max-width: none;
  margin: 0 auto;
}

.hero--compact .lead {
  margin: 0 auto;
}

/* Background SVG layer injected by JS */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140%;
  height: 140%;
  max-width: none;
  display: block;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* Foreground content */
.hero .content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-weight: 800;
  font-size: 2.6rem;
  margin-bottom: 1rem;
  color: #fff;
}

.hero p.lead {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  max-width: 720px;
  margin: 0 auto 1.5rem auto;
}

.chips {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.chip {
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  color: #fff;
  backdrop-filter: blur(2px);
}

.hero p a[role="button"] {
  margin: 0.25rem;
}

.hero a.contrast[role="button"] {
  background: #fff;
  color: var(--exallon-accent);
  font-weight: 600;
  border: none;
}

.hero a.secondary[role="button"] {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* content spacing below hero */
.content-section {
  margin-top: 4rem;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--exallon-ink);
}

section h3 {
  color: var(--exallon-ink);
}

section p {
  color: var(--exallon-ink-soft);
}

.feature-callout-section {
  margin-top: 0rem;
  margin-bottom: 10rem;
}

.feature-callout {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.35rem;
  line-height: 1.7;
  text-align: center;
  color: var(--exallon-ink);
  max-width: 960px;
  margin: 0 auto;
}

#capabilities .specializations {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

#capabilities .specializations li {
  list-style: none;
}

#capabilities .specializations li::marker {
  content: none;
}

.card {
  background: var(--exallon-surface);
  border: 1px solid rgba(17, 19, 24, 0.05);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 18px 35px rgba(17, 19, 24, 0.08);
}

#capabilities .specializations .card {
  box-shadow: 0 20px 40px rgba(82, 32, 156, 0.1);
}

#capabilities .specializations h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  color: var(--exallon-accent);
  font-size: 1.2rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  max-width: none;
  width: 100%;
}

.contact-form label {
  color: var(--exallon-ink);
}

.contact-form input,
.contact-form textarea {
  background-color: rgba(82, 32, 156, 0.08);
  border-color: rgba(82, 32, 156, 0.34);
  color: var(--exallon-ink);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--exallon-accent);
  box-shadow: 0 0 0 2px rgba(82, 32, 156, 0.25);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(17, 19, 24, 0.65);
}

.contact-form button {
  justify-self: start;
  background-color: var(--exallon-accent);
  color: #fff;
  border: none;
}

#approach.grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
}

#approach .card {
  padding: 1.5rem 1.75rem;
  color: var(--exallon-ink);
}

#approach .highlight {
  position: relative;
  overflow: hidden;
  background: var(--exallon-hero-secondary);
  border: 1px solid rgba(82, 32, 156, 0.95);
  color: rgba(255, 255, 255, 0.97);
}

#approach .highlight > *:not(.hero-bg) {
  position: relative;
  z-index: 1;
}

#approach .highlight ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

#approach .highlight li {
  color: rgba(255, 255, 255, 0.98);
}

#approach .highlight strong {
  color: #fff;
}

.callout {
  background: var(--exallon-surface);
  border-radius: 1.25rem;
  padding: 2.5rem;
  box-shadow: 0 30px 60px rgba(17, 19, 24, 0.08);
  border: 1px solid rgba(17, 19, 24, 0.05);
  text-align: center;
}

.team-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 2rem;
}

.team-grid .card {
  padding: 1.75rem;
  box-shadow: 0 18px 35px rgba(82, 32, 156, 0.1);
}

.team-grid .title {
  color: var(--exallon-accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.cta {
  position: relative;
  overflow: hidden;
  background: var(--exallon-hero);
  color: #fff;
  padding: 2.5rem;
  border-radius: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  box-shadow: 0 40px 70px rgba(82, 32, 156, 0.24);
}

.cta > *:not(.hero-bg) {
  position: relative;
  z-index: 1;
}

.cta p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 480px;
}

.cta h2 {
  color: #fff;
}

.cta a[role="button"] {
  margin: 0;
}

.cta a.secondary[role="button"] {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

@media (min-width: 768px) {
  .cta {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
