/* ==========================================================================
   FIRST GEOSPATIAL — styles.css
   One stylesheet, no build step. Sections follow the page top to bottom.

   1. Tokens (colours, fonts)      6. Purpose
   2. Fonts                        7. Featured work
   3. Base + utilities             8. Call to action
   4. Header                       9. Impact
   5. Hero + Services             10. Footer, video dialog, responsive
   ========================================================================== */

/* ---------- 1. TOKENS ---------------------------------------------------- */
:root {
  /* Brand palette — do not add colours; use these. */
  --charcoal: #10151B;   /* Primary background */
  --ocean:    #082B45;   /* Secondary backgrounds */
  --ochre:    #DDA66A;   /* Buttons, headings, highlights */
  --red:      #B94E29;   /* Supporting accents */
  --cyan:     #159DC7;   /* LiDAR scanning effects, contours, links, focus */
  --teal:     #248F89;   /* Secondary technical accents */
  --sand:     #F5F3EF;   /* Light backgrounds */
  --slate:    #8998A5;   /* Secondary text */
  --white:    #FFFFFF;   /* Primary text on dark */

  /* Type */
  --font-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-quote: "Lora", Georgia, "Times New Roman", serif; /* pull-quote only (in the mockup) */

  /* Spec: main headings Montserrat Bold 700. The mockup artwork looks closer
     to 500 — change this ONE value to 500 to match the artwork's lighter look. */
  --fw-display: 700;

  /* Layout */
  --pad: clamp(20px, 5vw, 84px);        /* page side padding (5% in the mockup) */
  --header-h: clamp(72px, 9.2vw, 150px);   /* tall, as in the mockup; compacts on scroll */
  --header-h-compact: clamp(60px, 5.6vw, 88px);

  /* Derived text colours */
  --ink: var(--charcoal);
  --ink-soft: rgba(16, 21, 27, .72);    /* body text on sand */
  --line-ochre: rgba(221, 166, 106, .55);
}

/* ---------- 2. FONTS (self-hosted, variable) ----------------------------- */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Lora";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lora-latin-400-italic.woff2") format("woff2");
}

/* ---------- 3. BASE + UTILITIES ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h-compact);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, blockquote, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--ochre); color: var(--charcoal); padding: .7rem 1rem;
  font: 600 .8rem var(--font-head); letter-spacing: .08em; text-transform: uppercase;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.stage { width: 100%; max-width: 1680px; margin-inline: auto; padding-inline: var(--pad); }

.accent { color: var(--ochre); }

/* Icons: stroke icons by default; social glyphs override to fill below */
.icon {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }

/* Type roles */
.h1, .h2, .h3 { font-family: var(--font-head); text-transform: uppercase; }
.h1 {
  font-weight: var(--fw-display);
  font-size: clamp(2.1rem, 4.3vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -.005em;
}
.h2 {
  font-weight: var(--fw-display);
  font-size: clamp(1.55rem, var(--h2, 2.6vw), 3rem);
  line-height: 1.12;
  letter-spacing: -.005em;
  text-wrap: balance;
}
.h3 {
  font-weight: 700;
  font-size: clamp(.7rem, .92vw, .86rem);
  line-height: 1.4;
  letter-spacing: .045em;
}
.tagline {
  font-family: var(--font-head);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: clamp(.62rem, .85vw, .82rem);
}
.eyebrow {
  display: flex; align-items: center; gap: 1.5em;
  margin-bottom: clamp(1rem, 1.9vw, 1.9rem);
  color: var(--ink);
}
.eyebrow::after { content: ""; width: clamp(2.6rem, 4.6vw, 4.6rem); height: 1.5px; background: var(--ochre); }
.eyebrow--light { color: var(--white); }

.body { font-size: clamp(.92rem, 1.12vw, 1.1rem); line-height: 1.55; color: var(--ink-soft); max-width: 46ch; }
.body--light { color: rgba(255, 255, 255, .92); }

.rule { display: block; width: clamp(2.2rem, 3vw, 3rem); height: 2px; background: var(--ochre); }

/* Buttons — sharp corners, as in the mockup */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 1em;
  padding: 1.15em 1.9em;
  font-family: var(--font-head); font-weight: 600; font-size: clamp(.64rem, .78vw, .76rem);
  line-height: 1; letter-spacing: .13em; text-transform: uppercase; white-space: nowrap;
  border: 1px solid transparent; border-radius: 0;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn .icon { font-size: 1.35em; }
.btn--copper { background: var(--ochre); color: var(--charcoal); }
.btn--copper:hover { background: var(--white); }
.btn--ghost { background: rgba(16, 21, 27, .6); border-color: var(--ochre); color: var(--white); }
.btn--ghost:hover { background: var(--ochre); color: var(--charcoal); }
.btn--ghost .icon--fill { font-size: 1.5em; }
.btn--outline { border-color: var(--ochre); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ochre); }

/* ---------- 4. HEADER ---------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled {
  background: rgba(16, 21, 27, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); transition: height .3s;
}
.site-header.is-scrolled .site-header__inner { height: var(--header-h-compact); }

.brand { position: relative; top: .7vw; display: inline-flex; align-items: center; gap: clamp(.55rem, .9vw, .9rem); transition: top .3s; }
.brand img { filter: brightness(1.18) contrast(1.04); transition: width .3s; }
.site-header.is-scrolled .brand { top: 0; }
.site-header.is-scrolled .brand__mark { width: clamp(44px, 4.6vw, 72px); }
.site-header.is-scrolled .brand__word { width: clamp(130px, 13vw, 214px); }
.brand__mark { width: clamp(52px, 6.8vw, 116px); height: auto; }
.brand__word { width: clamp(150px, 19.4vw, 330px); height: auto; }

.nav { display: flex; align-items: center; gap: clamp(1.5rem, 5.5vw, 8rem); }
.nav__list { display: flex; align-items: center; gap: clamp(.9rem, 1.9vw, 2.2rem); }
.nav__list a {
  position: relative; display: block; padding-block: .5rem;
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase;
  font-size: clamp(.58rem, .72vw, .74rem); letter-spacing: .07em;
  transition: color .2s;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .05rem; height: 1.5px;
  background: var(--ochre); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav__list a:hover { color: var(--ochre); }
.nav__list a[aria-current="true"] { color: var(--ochre); }
.nav__list a[aria-current="true"]::after { transform: scaleX(1); }
.nav__cta { padding: 1.05em 1.5em; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; position: relative;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--white); content: "";
  transition: transform .25s, opacity .25s;
}
.nav-toggle__bars { top: 21px; }
.nav-toggle__bars::before { left: 0; right: 0; top: -7px; }
.nav-toggle__bars::after  { left: 0; right: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. HERO ------------------------------------------------------ */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(640px, 61.15vw, 940px);   /* 870:532 ratio of the mockup */
  background: var(--charcoal); color: var(--white);
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%;
}
.hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(16, 21, 27, .55) 0, rgba(16, 21, 27, 0) 20%),
    linear-gradient(90deg, rgba(16, 21, 27, .5) 0, rgba(16, 21, 27, .18) 38%, rgba(16, 21, 27, 0) 58%),
    radial-gradient(60% 34% at 12% 100%, rgba(16, 21, 27, .6), rgba(16, 21, 27, 0));
}
.hero__stage { position: relative; min-height: inherit; }

.hero__copy { position: absolute; left: calc(var(--pad) + 4vw); top: 20.5%; width: 46vw; max-width: 780px; }
.hero__eyebrow { font-size: clamp(.62rem, .95vw, .95rem); line-height: 1.75; color: rgba(255, 255, 255, .9); margin-bottom: clamp(1rem, 2.1vw, 2rem); }
.hero .h1 { margin-bottom: clamp(1rem, 2.1vw, 2rem); }
.hero .rule { margin-bottom: clamp(.9rem, 1.9vw, 1.8rem); }
.hero__lead { font-size: clamp(.95rem, 1.38vw, 1.36rem); line-height: 1.4; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1.5vw; margin-top: clamp(1.2rem, 2.5vw, 2.4rem); }
.hero__actions .btn { min-width: clamp(150px, 14.6vw, 240px); padding-block: 1.55em; }

.hero__map {
  position: absolute; left: 44.1%; top: 13.4%; width: 44%; height: auto;
  mix-blend-mode: screen;   /* the asset is opaque on black; screen makes the black vanish */
  filter: brightness(1.14) saturate(1.08);
  pointer-events: none; user-select: none;
}

.hero__pillars {
  position: absolute; right: var(--pad); top: 40%;
  display: flex; flex-direction: column; align-items: flex-end; gap: 1.15vw;
  letter-spacing: .38em; margin-right: -.38em;
}
.hero__pillars .rule { margin-top: .8vw; margin-right: .38em; }

.hero__country { position: absolute; left: var(--pad); bottom: 7.5%; width: min(18vw, 300px); }
.hero__country .eyebrow { margin-bottom: clamp(.6rem, 1.1vw, 1.05rem); }
.hero__country .eyebrow::after { width: clamp(2.6rem, 4.2vw, 4rem); }
.hero__country p:last-child { font-size: clamp(.72rem, .98vw, .96rem); line-height: 1.55; color: rgba(255, 255, 255, .95); }

.hero__scroll {
  position: absolute; right: var(--pad); bottom: 5.3%;
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  font-size: .6rem; letter-spacing: .22em;
}
.hero__scroll .icon { width: 1.35rem; height: 1.8rem; stroke-width: 1.4; }

/* Single, deliberate load-in: map resolves, then the copy settles. */
@media (prefers-reduced-motion: no-preference) {
  .hero__map { animation: map-in 1.1s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__copy { animation: copy-in .9s .25s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes map-in  { from { opacity: 0; transform: scale(.975); } }
  @keyframes copy-in { from { opacity: 0; transform: translateY(14px); } }
}

/* ---------- SECTIONS (shared) -------------------------------------------- */
.section { padding-block: clamp(2.2rem, 3.4vw, 4.2rem); }
.section--sand { background: var(--sand); color: var(--ink); }

/* Services */
.services { --h2: 2.62vw; padding-block: clamp(2rem, 2.4vw, 2.6rem); }
.services__grid { display: grid; grid-template-columns: 1.71fr repeat(4, 1fr); column-gap: 2.2vw; align-items: start; }
.services__intro { padding-right: 2.6vw; }
.services__intro .h2 { margin-bottom: clamp(.9rem, 1.5vw, 1.5rem); }
.services__intro .body { margin-bottom: clamp(1.2rem, 1.7vw, 1.7rem); }
.services__intro .btn { padding: 1.3em 2.1em; }
.service { text-align: center; padding-inline: .4vw; margin-top: 1.6vw; }
.service__ring {
  display: grid; place-items: center; margin: 0 auto clamp(.9rem, 1.6vw, 1.6rem);
  width: clamp(92px, 9.6vw, 156px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--ochre); color: var(--ink);
}
.service__ring .icon { width: 60%; height: 60%; stroke-width: 1.6; }
.service .h3 { margin-bottom: .75em; }
.service p:last-child { font-size: clamp(.76rem, .93vw, .9rem); line-height: 1.5; color: var(--ink-soft); max-width: 24vw; margin-inline: auto; }

/* ---------- 6. PURPOSE --------------------------------------------------- */
.purpose {
  position: relative; isolation: isolate; overflow: hidden; color: var(--white);
  min-height: clamp(360px, 28.4vw, 480px);
  height: 28.4vw;
}
.purpose__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.purpose::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(16, 21, 27, .55) 0, rgba(16, 21, 27, .25) 40%, rgba(16, 21, 27, 0) 62%);
}
.purpose__stage { position: relative; min-height: inherit; height: 100%; display: flex; flex-direction: column; justify-content: center; --h2: 2.96vw; }
.purpose__copy { max-width: 34vw; }
.purpose .eyebrow { margin-bottom: 1.5vw; }
.h2--stack { display: flex; flex-direction: column; margin-bottom: 1.5vw; }
.purpose .body { margin-bottom: 1.9vw; max-width: 34ch; }
.purpose .btn { min-width: clamp(140px, 12.3vw, 200px); padding-block: 1.55em; }
.purpose__quote { position: absolute; left: 74%; bottom: 3.2vw; max-width: 21vw; }
.purpose__quote p {
  font-family: var(--font-quote); font-style: italic; font-weight: 400;
  font-size: clamp(1rem, 1.62vw, 1.6rem); line-height: 1.3; margin-bottom: 1.6vw;
}
.purpose__quote .rule { width: clamp(1.8rem, 2.2vw, 2.2rem); }

/* ---------- 7. FEATURED WORK --------------------------------------------- */
.work { --h2: 2.08vw; padding-top: clamp(1.6rem, 2.1vw, 2.6rem); padding-bottom: clamp(1.6rem, 2.3vw, 2.8rem); }
.work #work-title { font-weight: 600; }
.work__head { display: grid; grid-template-columns: 32% 1fr auto; align-items: start; margin-bottom: clamp(1.1rem, 1.7vw, 1.9rem); }
.work__title .eyebrow { margin-bottom: 1.15vw; }
.work__lede { margin-top: 1.55vw; padding-right: 1.4vw; max-width: 46ch; font-size: clamp(.82rem, 1.02vw, 1rem); }
.work__all { margin-top: 2vw; padding: 1.25em 1.9em; }
.work__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.8rem, 1.45vw, 1.5rem); }
.card { display: block; }
.card > img { width: 100%; aspect-ratio: 2.2 / 1; object-fit: cover; }
.card__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-top: clamp(.7rem, 1vw, 1rem); }
.card__row > span:first-child { display: block; }
.card .h3 { display: block; margin-bottom: .2em; font-size: clamp(.78rem, .98vw, .92rem); }
.card__text { display: block; font-size: clamp(.74rem, .9vw, .88rem); color: var(--ink-soft); line-height: 1.4; }
.card__arrow { color: var(--ochre); font-size: 1.25rem; margin-top: .3rem; transition: transform .25s; }
.card:hover .card__arrow, .card:focus-visible .card__arrow { transform: translateX(5px); }

/* ---------- 8. CALL TO ACTION -------------------------------------------- */
.cta {
  position: relative; isolation: isolate; overflow: hidden; background: var(--charcoal);
  --h2: 2.36vw;
}
.cta__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }
.cta__grid {
  display: grid; grid-template-columns: 40% minmax(0, 1fr) auto; column-gap: 1.5vw; align-items: center;
  min-height: clamp(150px, 15.3vw, 260px); padding-block: clamp(1.6rem, 2.2vw, 2.6rem);
}
.cta .eyebrow { margin-bottom: 1.35vw; }
.cta__title .h2 { white-space: normal; }
.cta__body { padding-left: 1.5vw; }
.cta__body .body { margin-bottom: 1.5vw; max-width: 40ch; }
.cta__body .btn { min-width: clamp(140px, 13vw, 210px); padding-block: 1.6em; }
.cta__pillars {
  display: flex; flex-direction: column; align-items: flex-end; gap: 1.2vw;
  letter-spacing: .38em; margin-right: -.38em; color: rgba(255, 255, 255, .92);
}
.cta__pillars .rule { margin-top: .6vw; margin-right: .38em; }

/* ---------- 9. IMPACT ---------------------------------------------------- */
.impact { --h2: 2.08vw; padding-block: clamp(1.5rem, 2.4vw, 3rem); }
.impact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); align-items: center; }
.impact__intro .eyebrow { margin-bottom: 1.5vw; }
.impact__list { display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; }
.impact__list li {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: .9vw;
  text-align: center; padding-inline: .8vw;
}
.impact__list li + li::before {
  content: ""; position: absolute; left: 0; top: 14%; bottom: 0; width: 1px; background: var(--line-ochre);
}
.impact__list .icon { width: clamp(2.2rem, 3.6vw, 3.6rem); height: clamp(2.2rem, 3.6vw, 3.6rem); stroke-width: 1.5; color: var(--ink); }

/* ---------- 10. FOOTER --------------------------------------------------- */
.site-footer { background: var(--charcoal); color: var(--white); padding-top: clamp(2rem, 3.1vw, 3.6rem); }
.site-footer__grid { display: grid; grid-template-columns: 2.43fr 1fr 1.67fr 1.68fr; align-items: start; padding-bottom: clamp(1.6rem, 2.5vw, 2.8rem); }
.site-footer .brand { top: 0; }
.site-footer .brand__mark { width: clamp(46px, 5.5vw, 92px); }
.site-footer .brand__word { width: clamp(130px, 16vw, 270px); }
.site-footer__brand p { margin: clamp(.9rem, 1.4vw, 1.6rem) 0 0 clamp(1rem, 4vw, 4rem); font-size: clamp(.78rem, .95vw, .95rem); }
.footer-h { font-weight: 600; font-size: clamp(.58rem, .78vw, .74rem); letter-spacing: .25em; margin-bottom: clamp(1rem, 1.5vw, 1.6rem); padding-top: .2rem; }
.site-footer li { margin-bottom: clamp(.4rem, .62vw, .7rem); font-size: clamp(.74rem, .9vw, .9rem); }
.site-footer nav a { transition: color .2s; }
.site-footer nav a:hover { color: var(--cyan); }
.site-footer__ack { padding-right: 1vw; }
.site-footer__ack p { font-size: clamp(.68rem, .85vw, .82rem); line-height: 1.6; color: rgba(255, 255, 255, .95); max-width: 33ch; }
.social { display: flex; gap: .55rem; margin-top: clamp(1rem, 1.6vw, 1.8rem); }
.social li { margin: 0; }
.social a {
  display: grid; place-items: center; width: clamp(30px, 2.5vw, 38px); aspect-ratio: 1; border-radius: 50%;
  background: var(--white); color: var(--charcoal); transition: background-color .2s;
}
.social a:hover { background: var(--ochre); }
.social .icon { fill: currentColor; stroke: none; width: 52%; height: 52%; }

.site-footer__legal {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-block: clamp(.9rem, 1.3vw, 1.4rem) clamp(1.8rem, 3.6vw, 4.2rem);
  border-top: 1px solid rgba(137, 152, 165, .7);
  font-size: clamp(.55rem, .7vw, .68rem); letter-spacing: .2em; font-weight: 500;
}
.site-footer__legal.stage { border-top: 0; position: relative; }
.site-footer__legal.stage::before {
  content: ""; position: absolute; top: 0; left: var(--pad); right: var(--pad); height: 1px; background: rgba(137, 152, 165, .7);
}
.site-footer__legal { padding-top: clamp(1rem, 1.5vw, 1.6rem); }
.pipes { display: inline-flex; align-items: center; }
.pipes i { display: inline-block; width: 1px; height: .95em; background: var(--ochre); margin-inline: 1em .8em; }

/* Video dialog */
.video-dialog {
  width: min(92vw, 1100px); padding: 0; border: 1px solid var(--ochre); background: var(--charcoal); color: var(--white);
}
.video-dialog::backdrop { background: rgba(8, 43, 69, .85); }
.video-dialog video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-dialog__fallback {
  display: grid; place-items: center; aspect-ratio: 16 / 9;
  font-family: var(--font-head); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: .8rem;
}
.video-dialog__fallback[hidden] { display: none; }
.video-dialog__close {
  position: absolute; top: 6px; right: 8px; z-index: 2; width: 40px; height: 40px;
  border: 0; background: rgba(16, 21, 27, .7); color: var(--white); font-size: 1.8rem; line-height: 1;
}

/* Footer contact line (email under the tagline) */
.site-footer__email {
  display: inline-flex; align-items: center; gap: .5em;
  margin: clamp(.5rem, .8vw, .8rem) 0 0 clamp(1rem, 4vw, 4rem);
  font-size: clamp(.78rem, .95vw, .95rem); color: var(--white);
  transition: color .2s;
}
.site-footer__email .icon { width: 1em; height: 1em; stroke-width: 1.8; color: var(--ochre); }
.site-footer__email:hover { color: var(--ochre); }

/* CTA band: small email fallback under the button */
.cta__email {
  display: inline-flex; align-items: center; gap: .55em; margin-top: 1.1vw;
  font-size: clamp(.72rem, .88vw, .86rem); color: rgba(255, 255, 255, .85);
  transition: color .2s;
}
.cta__email .icon { width: 1em; height: 1em; stroke-width: 1.8; color: var(--ochre); }
.cta__email:hover { color: var(--ochre); }

/* ---------- 11. CONTACT PAGE ---------------------------------------------- */

/* Banner: dark, textured, sits directly under the fixed header */
.contact-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(2.4rem, 5vw, 4.6rem));
  padding-bottom: clamp(2.6rem, 5.4vw, 5rem);
  background: var(--charcoal); color: var(--white);
}
.contact-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; opacity: .55; }
.contact-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, var(--charcoal) 0%, rgba(16, 21, 27, .88) 46%, rgba(16, 21, 27, .55) 100%);
}
.contact-hero .eyebrow { margin-bottom: clamp(1rem, 1.7vw, 1.7rem); }
.contact-hero .h1 { font-size: clamp(2rem, 3.4vw, 3.4rem); max-width: 20ch; margin-bottom: clamp(1rem, 1.6vw, 1.6rem); }
.contact-hero__lead { font-size: clamp(.92rem, 1.15vw, 1.15rem); max-width: 46ch; color: rgba(255, 255, 255, .92); }

/* Body: intro column + form card */
.contact { padding-block: clamp(2.6rem, 4.6vw, 5rem); }
.contact__grid {
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(2.4rem, 5vw, 5.6rem); align-items: start;
}
.contact__intro .eyebrow { margin-bottom: clamp(1rem, 1.6vw, 1.6rem); }
.contact__intro .body { margin-bottom: clamp(1.6rem, 2.4vw, 2.4rem); max-width: 40ch; }
.contact__info {
  display: flex; flex-direction: column; gap: .9rem;
  padding: clamp(1.3rem, 1.9vw, 1.9rem);
  border: 1px solid var(--line-ochre); background: var(--white);
}
.contact__link {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--font-head); font-weight: 600; letter-spacing: .01em;
  font-size: clamp(.92rem, 1.08vw, 1.06rem); color: var(--ink); width: fit-content;
}
.contact__link .icon { width: 1.3em; height: 1.3em; stroke-width: 1.6; color: var(--red); flex: none; }
.contact__link:hover { color: var(--red); }
.contact__note { font-size: clamp(.78rem, .9vw, .88rem); line-height: 1.5; color: var(--ink-soft); }

.contact__form {
  padding: clamp(1.6rem, 2.6vw, 2.8rem);
  background: var(--white); border: 1px solid var(--line-ochre);
  display: flex; flex-direction: column; gap: clamp(1.1rem, 1.5vw, 1.5rem);
}
.form-row { display: flex; flex-direction: column; gap: .5rem; }
.form-row--split { flex-direction: row; gap: clamp(1rem, 1.6vw, 1.6rem); }
.form-row--split label { flex: 1 1 0; display: flex; flex-direction: column; gap: .5rem; }
.contact__form label {
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase;
  font-size: clamp(.64rem, .74vw, .74rem); letter-spacing: .1em; color: var(--ink);
}
.contact__form input,
.contact__form select,
.contact__form textarea {
  font-family: var(--font-body); font-size: clamp(.86rem, .98vw, .96rem); color: var(--ink);
  background: var(--sand); border: 1px solid var(--slate); border-radius: 0;
  padding: .85em 1em; line-height: 1.4; width: 100%;
  transition: border-color .2s, background-color .2s;
}
.contact__form textarea { resize: vertical; min-height: 9.5em; }
.contact__form input:hover, .contact__form select:hover, .contact__form textarea:hover { border-color: var(--ochre); }
.contact__form input:focus-visible, .contact__form select:focus-visible, .contact__form textarea:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 1px; background: var(--white);
}
.contact__form select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310151B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1em center; background-size: 1em; padding-right: 2.6em;
}
.contact__form .btn { align-self: flex-start; padding: 1.2em 2.2em; }
.contact__form .form-note { font-size: clamp(.68rem, .8vw, .78rem); color: var(--slate); }

.form-success {
  display: flex; align-items: center; gap: .7em;
  padding: 1em 1.2em; background: rgba(36, 143, 137, .12); border: 1px solid var(--teal);
  font-size: .92rem; color: var(--ink);
}
.form-success[hidden] { display: none; }
.form-success .icon { width: 1.2em; height: 1.2em; color: var(--teal); flex: none; }

/* ---------- 6b. COMMUNITY & DATA SOVEREIGNTY --------------------------------
   Reuses the .work section's sand-panel pattern/spacing (that section has
   been removed) rather than introducing a new visual style. */
.community { --h2: 2.3vw; }
.community__head { max-width: 68ch; margin-bottom: clamp(2rem, 3.2vw, 3.2rem); }
.community__head .eyebrow { margin-bottom: clamp(1rem, 1.6vw, 1.6rem); }
.community__head .h2 { margin-bottom: clamp(.9rem, 1.4vw, 1.4rem); }
.community__lede { max-width: 62ch; font-size: clamp(.86rem, 1.02vw, 1rem); }

.community__product {
  max-width: 74ch; padding: clamp(1.7rem, 2.6vw, 2.8rem);
  background: var(--white); border: 1px solid var(--line-ochre);
}
.tag {
  display: inline-block; margin-bottom: clamp(.9rem, 1.3vw, 1.3rem);
  padding: .4em 1em; border: 1px solid var(--ochre);
  font-family: var(--font-head); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  font-size: clamp(.6rem, .68vw, .66rem); color: var(--red);
}
.community__product-title {
  margin-bottom: clamp(.7rem, 1vw, 1rem);
  font-size: clamp(1.05rem, 1.32vw, 1.35rem);
  text-transform: none; letter-spacing: 0; line-height: 1.25;
}
.community__product .body { max-width: none; }

/* ---------- RESPONSIVE --------------------------------------------------- */

/* Tablet & below: hero and multi-column sections stack. */
@media (max-width: 1023px) {
  :root { --pad: clamp(20px, 5.5vw, 48px); --header-h: 78px; --header-h-compact: 68px; }
  .brand { top: 0; }

  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 1.4rem; padding: 1.4rem var(--pad) 2rem; background: #0d1218;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, .08);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__list { flex-direction: column; align-items: flex-start; gap: .2rem; }
  .nav__list a { font-size: .85rem; padding-block: .7rem; }
  .nav__cta { align-self: flex-start; font-size: .75rem; }
  .brand__mark { width: clamp(50px, 15vw, 66px); }
  .brand__word { width: clamp(150px, 46vw, 196px); }
  .site-header { background: rgba(16, 21, 27, .85); }

  .tagline { font-size: .7rem; }
  .h1 { font-size: clamp(2rem, 7.4vw, 3.2rem); }
  .h2 { font-size: clamp(1.5rem, 5vw, 2.1rem); }
  .h3 { font-size: .78rem; }
  .btn { font-size: .72rem; }
  .body { font-size: .95rem; }

  /* hero → stacked */
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 2rem); }
  .hero__stage { display: flex; flex-direction: column; min-height: 0; padding-bottom: 2.4rem; }
  .hero__copy, .hero__map, .hero__pillars, .hero__country, .hero__scroll { position: static; width: auto; }
  .hero__copy { max-width: 34rem; }
  .hero__eyebrow { margin-bottom: 1.4rem; }
  .hero .h1 { margin-bottom: 1.4rem; }
  .hero .rule { margin-bottom: 1.3rem; }
  .hero__lead { font-size: 1.05rem; }
  .br-lg { display: none; }
  .hero__actions { gap: .8rem; margin-top: 1.6rem; }
  .hero__actions .btn { min-width: 0; padding-block: 1.3em; }
  .hero__map { width: min(100%, 560px); margin: 1.6rem auto 0; }
  .hero__pillars, .hero__scroll { display: none; }
  .hero__country { width: auto; max-width: 30rem; margin-top: 1.6rem; }
  .hero__country .eyebrow { margin-bottom: .9rem; }
  .hero__country p:last-child { font-size: .85rem; }
  .hero__shade {
    background: linear-gradient(180deg, rgba(16, 21, 27, .7) 0, rgba(16, 21, 27, .25) 45%, rgba(16, 21, 27, .55) 100%);
  }

  .section { padding-block: 2.6rem; }
  .services__grid { grid-template-columns: repeat(2, 1fr); row-gap: 2.2rem; }
  .services__intro { grid-column: 1 / -1; padding-right: 0; }
  .service { margin-top: 0; }
  .service__ring { width: 104px; }
  .service p:last-child { font-size: .82rem; }

  .purpose { min-height: 0; height: auto; }
  .purpose__stage { height: auto; display: block; padding-block: 2.6rem; }
  .purpose__copy { max-width: 32rem; }
  .purpose .eyebrow, .h2--stack { margin-bottom: 1.2rem; }
  .purpose .body { margin-bottom: 1.5rem; }
  .purpose .btn { min-width: 0; padding-block: 1.3em; }
  .purpose__quote { position: static; max-width: 22rem; margin-top: 2.4rem; }
  .purpose__quote p { font-size: 1.25rem; margin-bottom: 1rem; }
  .purpose::before { background: linear-gradient(180deg, rgba(16, 21, 27, .78), rgba(16, 21, 27, .4)); }

  .work { padding-block: 2.6rem; }
  .community { padding-block: 2.6rem; }
  .community__head { max-width: none; }
  .community__lede { max-width: none; }
  .work__head { grid-template-columns: 1fr; gap: 1.2rem; }
  .work__lede { margin-top: 0; padding-right: 0; font-size: .92rem; }
  .work__all { margin-top: 0; justify-self: start; }
  .work__title .eyebrow { margin-bottom: 1rem; }
  .work__grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .card__text { font-size: .8rem; }

  .cta__grid { grid-template-columns: 1fr; gap: 1.4rem; padding-block: 2.6rem; min-height: 0; }
  .cta__title .h2 { white-space: normal; }
  .cta .eyebrow { margin-bottom: 1rem; }
  .cta__body { padding-left: 0; }
  .cta__body .body { margin-bottom: 1.3rem; }
  .cta__body .btn { min-width: 0; padding-block: 1.3em; }
  .cta__pillars { align-items: flex-start; margin-right: 0; gap: .6rem; margin-top: .6rem; }
  .cta__pillars .rule { margin-right: 0; margin-top: .3rem; }

  .impact { padding-block: 2.6rem; }
  .impact__grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .impact__intro .eyebrow { margin-bottom: 1rem; }
  .impact__list { grid-template-columns: repeat(2, 1fr); row-gap: 1.8rem; align-items: start; }
  .impact__list li { gap: .8rem; }
  .impact__list li:nth-child(odd)::before { display: none; }
  .impact__list li:nth-child(3)::before { display: none; }
  .impact__list li:nth-child(even)::before { top: 0; }
  .impact__list .icon { width: 2.8rem; height: 2.8rem; }

  .site-footer { padding-top: 2.8rem; }
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); gap: 2.2rem 1.5rem; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__brand p { margin-left: 0; font-size: .9rem; }
  .site-footer .brand__mark { width: 56px; }
  .site-footer .brand__word { width: 170px; }
  .site-footer__ack { grid-column: 1 / -1; padding-right: 0; }
  .site-footer__ack p { font-size: .82rem; max-width: 42ch; }
  .footer-h { font-size: .68rem; margin-bottom: 1rem; }
  .site-footer li { font-size: .88rem; margin-bottom: .55rem; }
  .social a { width: 38px; }
  .site-footer__legal { font-size: .62rem; padding-block: 1.1rem 2rem; }
  .site-footer__email { margin-left: 0; }

  .contact-hero { padding-top: calc(var(--header-h) + 2rem); padding-bottom: 2.6rem; }
  .contact-hero .h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .contact-hero__lead { font-size: .95rem; }
  .contact { padding-block: 2.6rem; }
  .contact__grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .contact__intro .body { max-width: none; }
  .form-row--split { flex-direction: column; gap: 1.1rem; }
  .contact__form .btn { align-self: stretch; justify-content: center; }
}

@media (max-width: 480px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__legal { flex-direction: column; }
  .services__grid { grid-template-columns: 1fr 1fr; column-gap: .8rem; }
  .service .h3 br { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
