:root {
  --color-background: #F8F9FA;
  --color-surface: #ffffff;
  --color-surface-dark: #1B1E2E;
  --color-surface-muted: rgba(248, 249, 250, 0.85);
  --color-text: #1B1E2E;
  --color-muted: #7A7D8C;
  --color-invert: #F8F9FA;
  --color-accent: #1F3B73;
  --color-accent-soft: #D8D3C8;
  --color-accent-dark: #1B1E2E;
  --border: rgba(27, 30, 46, 0.12);
  --border-strong: rgba(27, 30, 46, 0.2);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --section-spacing: clamp(5rem, 12vw, 7rem);
  --shadow-sm: 0 22px 45px -32px rgba(15, 13, 9, 0.45);
  --shadow-md: 0 45px 90px -55px rgba(13, 11, 8, 0.5);
  --shadow-lg: 0 60px 130px -70px rgba(9, 7, 5, 0.65);
  --transition: 220ms cubic-bezier(0.33, 1, 0.68, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--color-background);
  color: var(--color-text);
  font-size: clamp(16px, 1vw + 14px, 18px);
  line-height: 1.65;
}

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

picture {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover,
a:focus-visible {
  color: var(--color-accent);
}

p {
  margin: 0 0 1.2rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 1rem;
  line-height: 1.2;
  font-family: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.9rem, 5vw + 1rem, 4.9rem);
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(2.1rem, 3vw + 1rem, 3.2rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.4rem;
}

::selection {
  background: rgba(252, 118, 45, 0.16);
  color: var(--color-text);
}

body.no-scroll {
  overflow: hidden;
}

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
  position: relative;
  background: transparent;
}

.section {
  padding-block: var(--section-spacing);
  background: var(--color-background);
}


.page-stack {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
}

.page-stack__foreground {
  position: relative;
  z-index: 2;
  background: var(--color-background);
}

.page-stack__background {
  position: sticky;
  bottom: 0;
  z-index: 0;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(2.5rem, 6vw, 3.5rem);
  background: linear-gradient(180deg, #F8F9FA 0%, #E9ECEF 100%);
  padding: clamp(4.5rem, 9vw, 6.5rem) 1.5rem clamp(1.5rem, 3.5vw, 2.5rem);
}

.page-stack__background .container {
  width: min(1060px, 92vw);
}

.section--ground {
  width: 100%;
  padding-block: 0;
}

.page-stack__anchor {
  position: relative;
  display: block;
  height: 1px;
  scroll-margin-top: 120px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: var(--color-accent);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(252, 118, 45, 0.35), var(--shadow-sm);
}

.button--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--border);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.button--light {
  background: var(--color-invert);
  color: var(--color-text);
  border-color: var(--color-invert);
  box-shadow: var(--shadow-sm);
}

.button--light:hover,
.button--light:focus-visible {
  box-shadow: var(--shadow-md);
}

.button--small {
  padding: 0.75rem 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
}

/* Improve touch targets on mobile */
@media (max-width: 1100px) {
  .button {
    min-height: 44px;
  }

  .nav-toggle {
    min-width: 44px;
    min-height: 44px;
  }

  .mobile-nav__group a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* Improve focus states for mobile */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--color-text);
}

.brand-mark {
  font-family: 'Outfit', sans-serif;
  font-size: 1.64rem;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  white-space: nowrap;
  color: var(--color-text);
  font-weight: 400;
}

.brand-mark__agentic {
  font-weight: 700;
}

.brand-mark__partners {
  font-weight: 400;
}

.brand-text {
  letter-spacing: 0.24em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 244, 239, 0.92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(29, 28, 23, 0.08);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
  background: rgba(246, 244, 239, 0.96);
  box-shadow: 0 16px 32px -24px rgba(12, 12, 10, 0.35);
}

.nav-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding-block: 1.25rem;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.nav-links a {
  position: relative;
  padding-bottom: 0.35rem;
  transition: color var(--transition);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--color-text);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-text);
  border-radius: 999px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-of-type(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-of-type(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-of-type(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav__overlay {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(12, 12, 10, 0.86);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 250ms ease-in-out, visibility 250ms ease-in-out;
  z-index: 999;
}

.mobile-nav__overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 2rem 0 3rem;
  background: transparent;
  color: var(--color-invert);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 300ms ease-in-out, visibility 300ms ease-in-out;
  z-index: 1000;
  overflow-y: auto;
  overflow-x: hidden;
}

.mobile-nav--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav__inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  z-index: 1001;
  min-height: 100vh;
  background: linear-gradient(180deg, #1B1E2E 0%, #0a0d15 100%);
  padding: 5rem 2rem 3rem;
}

.mobile-nav__header {
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 2.5rem;
}

.brand-mark--inverted {
  color: var(--color-invert);
  font-size: 1.5rem;
  display: block;
}

.mobile-nav__group {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 2.5rem;
}

.mobile-nav__group a {
  color: var(--color-invert);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 200ms ease, padding-left 200ms ease;
  display: block;
  position: relative;
}

.mobile-nav__group a:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav__group a:hover,
.mobile-nav__group a:focus {
  color: var(--color-accent);
  padding-left: 0.75rem;
}

.mobile-nav__group a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 0;
  background: var(--color-accent);
  transition: height 200ms ease;
}

.mobile-nav__group a:hover::before,
.mobile-nav__group a:focus::before {
  height: 70%;
}

.mobile-nav__footer {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.button--mobile {
  width: 100%;
  justify-content: center;
  background: var(--color-invert);
  border: 2px solid var(--color-invert);
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 1.1rem 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 200ms ease;
}

.button--mobile:hover,
.button--mobile:focus {
  background: transparent;
  color: var(--color-invert);
  transform: translateY(-2px);
}

.mobile-nav__contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-nav__email,
.mobile-nav__phone {
  color: rgba(248, 247, 242, 0.8);
  font-size: 1rem;
  text-decoration: none;
  transition: color 200ms ease;
  display: block;
}

.mobile-nav__email:hover,
.mobile-nav__phone:hover {
  color: var(--color-invert);
}

.hero {
  --hero-text-end: clamp(55vh, 60vh, 65vh);
  --hero-window-start: clamp(65vh, 70vh, 75vh);
  --hero-window-height: clamp(40vh, 46vh, 52vh);
  --hero-window-end: clamp(24vh, 28vh, 34vh);
  --hero-backdrop-height: clamp(150vh, 165vh, 180vh);
  position: relative;
  display: grid;
  align-items: start;
  padding: clamp(7rem, 14vh, 9.5rem) 0 clamp(6rem, 12vh, 8rem);
  color: var(--color-text);
  background: none;
  min-height: calc(var(--hero-window-start) + var(--hero-window-height) + var(--hero-window-end));
  overflow: visible;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: var(--color-background);
  pointer-events: none;
  z-index: -1;
}

/* Gradient removed per user request - WHY section handles the fade */
/* .hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  background: transparent;
  pointer-events: none;
  z-index: -1;
} */


.hero-backdrop {
  grid-area: 1 / 1;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: var(--hero-backdrop-height);
  pointer-events: none;
  z-index: -2;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition);
}

.hero-backdrop__video {
  width: 100vw;
  height: var(--hero-backdrop-height);
  object-fit: cover;
  pointer-events: none;
}

.hero-backdrop__video::-webkit-media-controls,
.hero-backdrop__video::-webkit-media-controls-start-playback-button {
  display: none !important;
}

.hero-backdrop__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 13, 11, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  z-index: 2;
}

.hero-backdrop__overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

.hero-backdrop__cta {
  appearance: none;
  border: none;
  background: var(--color-invert);
  color: var(--color-text);
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.hero-backdrop__cta:hover,
.hero-backdrop__cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: #ffffff;
  outline: none;
}

.hero-backdrop__cta-icon {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid var(--color-accent);
}

.hero-backdrop__cta-text {
  letter-spacing: 0.18em;
}

@supports (top: max(0px)) {
  .hero-visibility-sentinel {
    top: max(var(--hero-window-start), 0px);
  }
}

.hero-visibility-sentinel {
  grid-area: 1 / 1;
  position: absolute;
  left: 0;
  width: 100%;
  top: var(--hero-window-start);
  height: var(--hero-window-height);
  pointer-events: none;
  z-index: -1;
}

body.is-hero-visible .hero-backdrop {
  opacity: 1;
  visibility: visible;
}

.hero-backdrop--interactive {
  pointer-events: auto;
}

.hero-content {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  align-self: start;
  display: grid;
  gap: clamp(2.2rem, 6vw, 3.4rem);
  background: transparent;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-meta {
  display: flex;
  justify-content: flex-end;
}

.hero-since {
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.hero-copy {
  display: grid;
  gap: clamp(1.9rem, 5vw, 2.5rem);
  max-width: min(720px, 90vw);
  margin-top: clamp(1.2rem, 4vh, 2.2rem);
}

.hero-copy h1 {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-copy p {
  color: var(--color-muted);
  font-size: clamp(1.05rem, 1vw + 0.95rem, 1.25rem);
}

.hero-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.95rem;
}

.stats {
  padding-block: var(--section-spacing);
  background: #ffffff !important;
  position: relative;
  z-index: 10;
  margin-top: -10vh;
  padding-top: calc(var(--section-spacing) + 10vh);
  opacity: 1 !important;
  transform: none !important;
}

.stats-header {
  display: flex;
  justify-content: space-between;
  gap: 2.5rem;
  align-items: flex-end;
  margin-bottom: 2.5rem;
}

.stats-header p {
  max-width: 420px;
  color: var(--color-muted);
}

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

.stats-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 2.3rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.stat-value {
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.stat-label {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 3.5rem);
  align-items: start;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 560px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 36px;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.link-arrow::after {
  content: "↗";
  transition: transform var(--transition);
  font-size: 0.9rem;
}

.link-arrow:hover::after {
  transform: translate(4px, -3px);
}

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

.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 2.15rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

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

a.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

a.card article {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card__index {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-muted);
}

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

.section--dark {
  background: var(--color-surface-dark) !important;
  color: var(--color-invert);
}

.page-stack__foreground .section--alternate {
  background: var(--color-accent-soft) !important; /* Sand neutral - complements dark blue & grey */
}

.section--alternate {
  background: var(--color-accent-soft) !important;
  position: relative;
}

.section--dark .section-header p {
  color: rgba(248, 247, 242, 0.72);
}

.section--dark .link-arrow {
  color: var(--color-accent);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  margin-top: 3rem;
}

.project-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.section--dark .project-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.project-card figure {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 255, 255, 0.24);
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-content {
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-location {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(248, 247, 242, 0.65);
}

.project-description {
  color: rgba(248, 247, 242, 0.75);
  font-size: 0.95rem;
  line-height: 1.6;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-size: 0.75rem;
}

.project-link::after {
  content: "→";
  transition: transform var(--transition);
}

.project-link:hover::after {
  transform: translateX(6px);
}

.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 4rem);
  align-items: start;
}

.process-steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.process-steps li {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 2rem 2.5rem 2.2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.process-steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 1.75rem;
  left: 1.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
}

.process-steps h3,
.process-steps p {
  padding-left: 3.4rem;
}

.process-steps p {
  color: var(--color-muted);
  margin: 0;
}

.section--accent {
  background: var(--color-accent-soft);
}

.section--accent .testimonial {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 40px 100px -60px rgba(252, 118, 45, 0.45);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.testimonial {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 1rem;
  line-height: 1.7;
}

.testimonial::before {
  content: "“";
  position: absolute;
  top: 1.4rem;
  right: 2.5rem;
  font-size: 4rem;
  font-family: "Manrope", sans-serif;
  color: rgba(252, 118, 45, 0.2);
}

.testimonial p {
  margin: 0;
  color: var(--color-text);
  font-size: 1.05rem;
}

.testimonial cite {
  display: block;
  margin-top: 1.85rem;
  font-style: normal;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.section--split {
  background: var(--color-surface);
}

.page-stack__background .section--split {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 30px 80px -55px rgba(15, 13, 9, 0.35);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(29, 28, 23, 0.08);
  padding: clamp(2.5rem, 6vw, 3.5rem) 0;
}

.page-stack__background .section--split .container {
  width: min(980px, 92vw);
}

.cta--ground {
  background: var(--color-surface-dark);
  border-radius: var(--radius-lg);
  width: min(960px, 92vw);
  margin: 0 auto;
  box-shadow: 0 50px 100px -60px rgba(10, 8, 5, 0.5);
}

.site-footer--ground {
  background: transparent;
  color: rgba(29, 28, 23, 0.82);
  width: min(960px, 92vw);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 0;
}

.site-footer--ground .footer-subtitle {
  color: rgba(29, 28, 23, 0.62);
}

.site-footer--ground .footer-nav,
.site-footer--ground .footer-contact {
  color: inherit;
}

.site-footer--ground .footer-nav a:hover {
  color: var(--color-accent);
}

.site-footer--ground .footer-bottom {
  border-top-color: rgba(29, 28, 23, 0.12);
  color: rgba(29, 28, 23, 0.55);
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 4rem);
  align-items: stretch;
}

.split-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.split-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.35));
  mix-blend-mode: multiply;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-content p {
  color: var(--color-muted);
}

.split-meta {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.split-meta li {
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-pill);
  background: rgba(252, 118, 45, 0.12);
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.contact-form {
  display: grid;
  gap: 1.15rem;
  margin-top: 2.5rem;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(29, 28, 23, 0.15);
  padding: 0.85rem 1rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.92);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(252, 118, 45, 0.16);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: #c0392b;
}

/* Discovery module removed - clean */

.cta {
  background: var(--color-surface-dark);
  color: var(--color-invert);
  padding-block: clamp(3.5rem, 10vw, 4.75rem);
}

.cta-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta p {
  color: rgba(248, 247, 242, 0.75);
  max-width: 520px;
}

.site-footer {
  background: #0e0d0a;
  color: rgba(248, 247, 242, 0.85);
  padding: clamp(3.5rem, 9vw, 5rem) 0 3rem;
}

/* Add comfortable horizontal padding inside footer */
.site-footer .container {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Homepage footer - larger with contact form */
.site-footer--home {
  margin-top: 6rem; /* fixed offset below sticky header */
  padding: 2rem 0 clamp(2rem, 5vw, 3rem);
}

/* Homepage footer grid - 2 columns: brand left, form right */
.footer-grid--home {
  grid-template-columns: minmax(0, 0.35fr) minmax(0, 0.65fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

/* Footer contact form - compact styling */
.footer-form {
  justify-self: stretch;
  width: 100%;
  max-width: none;
  display: grid;
  gap: 1rem;
}

.footer-form__heading {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #f8f7f2;
}

.footer-form__copy {
  margin: 0;
  color: rgba(248, 247, 242, 0.65);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 1rem 1.5rem;
}

.footer-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-contact-form input,
.footer-contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: rgba(248, 247, 242, 0.08);
  border: 1px solid rgba(248, 247, 242, 0.18);
  border-radius: 0.75rem;
  color: rgba(248, 247, 242, 0.95);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.footer-contact-form input::placeholder,
.footer-contact-form textarea::placeholder {
  color: rgba(248, 247, 242, 0.55);
}

.footer-contact-form input:focus-visible,
.footer-contact-form textarea:focus-visible {
  outline: none;
  border-color: rgba(248, 247, 242, 0.45);
  background: rgba(248, 247, 242, 0.12);
  box-shadow: 0 0 0 3px rgba(248, 247, 242, 0.12);
}

.footer-contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.footer-form__field--full {
  grid-column: 1 / -1;
}

.footer-contact-form .button--footer {
  margin-top: 0.35rem;
  padding: 0.9rem 1.4rem;
  width: auto;
  background: var(--color-invert);
  color: #0e0d0a;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.footer-contact-form .button--footer:hover,
.footer-contact-form .button--footer:focus-visible {
  background: rgba(248, 247, 242, 0.9);
  color: #0e0d0a;
  transform: translateY(-2px);
}

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

.footer-contact-form .button--footer {
  grid-column: 1 / -1;
  justify-self: start;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer-brand {
  display: grid;
  gap: 1.25rem;
  align-content: flex-start;
}

.footer-contact--stack {
  display: grid;
  gap: 0.5rem;
  align-content: flex-start;
}

.footer-subtitle {
  margin: 0;
  color: rgba(248, 247, 242, 0.7);
  font-size: 0.95rem;
}

.footer-nav,
.footer-contact {
  display: grid;
  gap: 0.6rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-nav a {
  color: rgba(248, 247, 242, 0.85);
}

.footer-nav a:hover {
  color: #ffffff;
}

.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(248, 247, 242, 0.14);
  padding-top: 0.9rem;
  padding-bottom: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: none;
  color: rgba(248, 247, 242, 0.5);
}

/* Homepage: push the copyright line further down to create space above */
.site-footer--home .footer-bottom {
  margin-top: clamp(0.75rem, 2.5vw, 1.75rem);
}

/* Footer brand mark matches header style, in white */
.site-footer .brand-mark {
  color: #ffffff;
}

/* Do not uppercase email/phone in footer */
.footer-contact .footer-subtitle {
  text-transform: none;
  letter-spacing: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* FAQ styles */
.faq-container {
  display: grid;
  gap: 1.5rem;
}

.faq-item {
  padding: 2rem;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.faq-item h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.faq-item p {
  color: var(--color-muted);
  margin: 0;
}

/* Value grid */
.value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.value-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}

.value-item p {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.section--dark .value-item {
  background: rgba(255, 255, 255, 0.04);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1100px) {
  .nav-container {
    grid-template-columns: auto auto;
    gap: 1rem;
    padding-block: 1rem;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: flex-end;
  }

  .brand-mark {
    font-size: 1.4rem;
  }

  .page-stack__background {
    position: static;
    inset: auto;
    z-index: auto;
    align-items: stretch;
    bottom: auto;
    min-height: auto;
    padding: var(--section-spacing) 0;
    gap: var(--section-spacing);
    background: var(--color-background);
    overflow: visible;
    border: none;
  }

  .page-stack__background .section--split {
    padding: 0;
    box-shadow: var(--shadow-md);
  }

  .cta--ground,
  .site-footer--ground {
    width: 100%;
  }

  .hero {
    padding: clamp(6rem, 18vh, 9rem) 0 clamp(6rem, 12vh, 9rem);
    --hero-backdrop-height: clamp(140vh, 155vh, 170vh);
  }

  .hero-content {
    gap: clamp(2rem, 5vw, 3rem);
  }

  .hero-copy {
    max-width: min(640px, 94vw);
    margin-top: clamp(1rem, 4vh, 1.8rem);
  }

  .stats-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-grid,
  .process-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .card-grid,
  .project-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  /* FAQ and value grid for tablets */
  .faq-container {
    gap: 1.5rem;
  }

  .faq-item {
    padding: 1.75rem;
  }

  .value-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Better tablet spacing */
  .card {
    padding: 2rem;
  }

  /* Improve table headers */
  h2 {
    font-size: clamp(2rem, 4vw + 0.5rem, 2.75rem);
  }

  .section-header {
    max-width: 100%;
  }

  .hero {
    padding: clamp(5.5rem, 16vh, 7.5rem) 0 clamp(5rem, 10vh, 7rem);
    --hero-backdrop-height: clamp(135vh, 150vh, 165vh);
  }

  .hero-content {
    gap: clamp(1.8rem, 5vw, 2.6rem);
  }

  .hero-copy {
    max-width: min(520px, 94vw);
    margin-top: clamp(1rem, 4vh, 1.6rem);
  }

  .project-description {
    color: rgba(248, 247, 242, 0.85);
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
    line-height: 1.7;
  }

  /* Better mobile navigation */
  .mobile-nav__inner {
    padding: 4rem 1.5rem 2rem;
  }

  .mobile-nav__header {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
  }

  .brand-mark--inverted {
    font-size: 1.35rem;
  }

  .mobile-nav__group a {
    font-size: 1.1rem;
    padding: 1rem 0;
  }

  .mobile-nav__contact {
    gap: 0.6rem;
  }

  .mobile-nav__email,
  .mobile-nav__phone {
    font-size: 0.95rem;
  }

  .brand-mark {
    font-size: 1.25rem;
  }

  /* Better section spacing on mobile */
  .section {
    padding-block: clamp(3rem, 8vw, 5rem);
  }

  .hero {
    padding: clamp(5rem, 18vh, 7rem) 0 clamp(4.5rem, 12vh, 6rem);
    --hero-backdrop-height: clamp(130vh, 145vh, 160vh);
  }

  .hero-content {
    gap: clamp(1.6rem, 6vw, 2.4rem);
  }

  .hero-copy {
    max-width: min(520px, 94vw);
    margin-top: clamp(0.8rem, 3.5vh, 1.4rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .stats-card {
    padding: 1.7rem;
  }

  .stats-header {
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .stats {
    margin-top: -8vh;
    padding-top: calc(var(--section-spacing) + 8vh);
  }

  .project-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

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

  /* Better button sizing for mobile */
  .button {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 0.85rem;
    min-height: 48px;
  }

  /* Improve mobile headers */
  .site-header {
    border-bottom-width: 1px;
  }

  .nav-container {
    gap: 0.75rem;
    padding-block: 0.875rem;
  }

  /* Better mobile hero */
  h1 {
    font-size: clamp(1.85rem, 5.5vw + 0.4rem, 2.6rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
  }

  h2 {
    font-size: clamp(1.6rem, 4.5vw + 0.45rem, 2.2rem);
    line-height: 1.18;
  }

  h3 {
    font-size: 1.15rem;
  }

  /* Improve mobile cards */
  .card {
    padding: 1.5rem;
  }

  .card h3 {
    font-size: 1.05rem;
  }

  /* Better mobile spacing */
  p {
    margin: 0 0 1.5rem;
  }

  .section-header {
    gap: 1.25rem;
  }

  .section-header p {
    font-size: 1rem;
    line-height: 1.7;
  }

  /* Mobile forms */
  .contact-form input,
  .contact-form textarea {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 1rem;
    min-height: 48px;
  }

  /* Stats cards */
  .stats-card {
    padding: 1.75rem;
  }

  .stat-value {
    font-size: 1.85rem;
  }

  /* Project cards */
  .project-content {
    padding: 1.5rem;
  }

  /* Process steps */
  .process-steps li {
    padding: 1.5rem;
  }

  .process-steps h3,
  .process-steps p {
    padding-left: 0;
  }

  /* Prevent number/title overlap on small screens */
  .process-steps li::before {
    position: static;
    left: auto;
    top: auto;
    display: block;
    margin: 0 0 0.5rem 0;
    padding: 0;
  }

  .process-steps h3 {
    margin-top: 0.1rem;
  }

  /* Testimonials */
  .testimonial {
    padding: 2rem;
    font-size: 0.95rem;
  }

  /* Footer */
  .site-footer {
    padding: clamp(2.5rem, 7vw, 4rem) 0 2rem;
  }

  .site-footer--home {
    padding: clamp(3.5rem, 9vw, 5.5rem) 0 clamp(2.5rem, 7vw, 4rem);
  }

  .footer-grid {
    gap: 2rem;
    grid-template-columns: 1fr;
  }

  .footer-grid--home {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* CTA improvements */
  .cta-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .cta p {
    font-size: 1rem;
  }

  /* Mobile nav improvements */
  .mobile-nav__inner {
    padding: 3.5rem 1.25rem 2rem;
  }

  .mobile-nav__header {
    padding-bottom: 1.75rem;
    margin-bottom: 1.75rem;
  }

  .mobile-nav__group a {
    font-size: 1rem;
    padding: 0.9rem 0;
  }

  .mobile-nav__footer {
    padding-top: 1.5rem;
    gap: 1.25rem;
  }

  .button--mobile {
    font-size: 0.9rem;
    padding: 1rem 1.5rem;
  }

  /* FAQ mobile styles */
  .faq-container {
    gap: 1.25rem;
  }

  .faq-item {
    padding: 1.5rem;
  }

  .faq-item h3 {
    font-size: 1.1rem;
  }

  /* Value grid mobile */
  .value-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
  }

  .value-item {
    padding: 1.5rem;
  }

  /* Form field styling */
  .form-field {
    margin-bottom: 1.25rem;
  }

  .form-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
  }

  .hero {
    padding: clamp(4.5rem, 18vh, 6.5rem) 0 clamp(3.2rem, 12vh, 4.8rem);
    --hero-backdrop-height: clamp(120vh, 135vh, 150vh);
  }

  .hero-content {
    gap: clamp(1.4rem, 5vw, 2rem);
  }

  .hero-copy {
    margin-top: clamp(0.6rem, 3vh, 1.2rem);
  }

  .hero-copy p {
    font-size: 1rem;
  }
}

/* Extra small mobile devices */
@media (max-width: 400px) {
  .container {
    width: 92vw;
    padding: 0;
  }

  .brand-mark {
    font-size: 1.1rem;
  }

  h1 {
    font-size: clamp(1.6rem, 7.5vw + 0.45rem, 2.2rem);
  }

  h2 {
    font-size: clamp(1.4rem, 6.5vw + 0.45rem, 2rem);
  }

  .card,
  .stats-card,
  .testimonial {
    padding: 1.35rem;
  }

  .mobile-nav__inner {
    padding: 3rem 1rem 1.75rem;
  }

  .mobile-nav__header {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .brand-mark--inverted {
    font-size: 1.2rem;
  }

  .mobile-nav__group a {
    font-size: 0.95rem;
    padding: 0.85rem 0;
  }

  .button--mobile {
    font-size: 0.85rem;
    padding: 0.95rem 1.25rem;
  }

  .mobile-nav__email,
  .mobile-nav__phone {
    font-size: 0.9rem;
  }

  .section {
    padding-block: clamp(2.5rem, 7vw, 4rem);
  }

  .stats {
    margin-top: -8vh;
    padding-top: calc(var(--section-spacing) + 8vh);
  }
}
