/* ==========================================================================
   Neeley Mechanical Engineers, Inc. — Stylesheet
   --------------------------------------------------------------------------
   01 Fonts       05 Typography     09 About         13 Footer
   02 Tokens      06 Components     10 Expertise     14 Motion
   03 Base        07 Header         11 Leadership
   04 Layout      08 Hero           12 Contact
   ========================================================================== */


/* 01 · Fonts ---------------------------------------------------------------
   Geist & Geist Mono (SIL Open Font License), self-hosted, latin subset,
   variable weight 100–900. */
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}


/* 02 · Tokens -------------------------------------------------------------- */
:root {
  /* Brand — derived from the Neeley logo */
  --navy-950: #060E1A;
  --navy-900: #0A1527;
  --navy-850: #0E1C33;
  --navy-800: #13243F;
  --navy-700: #1B3474;          /* logo main band */
  --sky-400:  #45B0EE;          /* logo light triangles */
  --orange-500: #E37B3D;        /* logo wordmark */
  --orange-400: #F0925A;
  --orange-600: #A84D16;        /* accessible orange on light backgrounds */

  /* Neutrals */
  --cream-50:  #F6F3EC;
  --cream-100: #EEE9DE;
  --cream-200: #E2DACA;
  --paper:     #FBFAF6;
  --charcoal-950: #08090C;
  --charcoal-900: #0E1115;
  --charcoal-850: #161A20;
  --ink-900: #11151C;
  --ink-700: #353C47;
  --ink-500: #5A616D;

  /* Type */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* Layout */
  --gutter: clamp(1.125rem, -0.2rem + 4.6vw, 4.5rem);
  --container: 88rem;
  --gap: clamp(1rem, 0.6rem + 1.4vw, 2rem);
  --section-y: clamp(5.5rem, 3.5rem + 7vw, 10.5rem);
  --nav-h: 4.75rem;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* Contextual colors (re-themed per section) */
  --bg: var(--navy-900);
  --surface: var(--navy-850);
  --fg: #FFFFFF;
  --fg-2: rgba(255, 255, 255, .74);
  --fg-3: rgba(255, 255, 255, .54);
  --tone: rgba(255, 255, 255, .58);
  --line: rgba(255, 255, 255, .12);
  --accent-text: var(--orange-500);
}

@media (max-width: 63.99rem) {
  :root { --nav-h: 4.25rem; }
}


/* 03 · Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--navy-950);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.no-scroll { overflow: hidden; }

img, svg, picture, video { display: block; max-width: 100%; }
img { height: auto; }

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { font-weight: 500; }
ul, ol { padding: 0; list-style: none; }

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

::selection { background: var(--orange-500); color: var(--navy-950); }

main:focus { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 100;
  padding: .75rem 1.1rem;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--navy-900);
  font-weight: 500;
  transform: translateY(-180%);
  transition: transform .25s var(--ease);
}
.skip-link:focus { transform: none; }


/* 04 · Layout -------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
  background: var(--bg);
  color: var(--fg);
}

.section--navy {
  --bg: var(--navy-900);
  --surface: var(--navy-850);
}

.section--dark {
  --bg: var(--charcoal-900);
  --surface: var(--charcoal-850);
}

.section--light {
  --bg: var(--cream-50);
  --surface: var(--paper);
  --fg: var(--ink-900);
  --fg-2: var(--ink-700);
  --fg-3: var(--ink-500);
  --tone: #6B7280;
  --line: rgba(17, 21, 28, .12);
  --accent-text: var(--orange-600);
}

/* Shared section header: label + heading (left), supporting copy (right) */
.section-head {
  display: grid;
  gap: 1.75rem 2rem;
  margin-bottom: clamp(3rem, 2rem + 4vw, 5.5rem);
}
.section-head__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}
.section-head__aside {
  max-width: 32rem;
  color: var(--fg-2);
  font-size: 1.0625rem;
  line-height: 1.6;
}
.section-head__aside > * + * { margin-top: 1rem; }

@media (min-width: 64rem) {
  .section-head {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: end;
  }
  .section-head__main { grid-column: 1 / span 8; }
  .section-head__aside { grid-column: 9 / -1; padding-bottom: .4rem; }
}


/* 05 · Typography ---------------------------------------------------------- */
.display-2 {
  font-size: clamp(2.125rem, 1.25rem + 3.5vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.038em;
  font-weight: 500;
  text-wrap: balance;
}

/* Light-weight second voice inside headings — echoes the logo's
   light "NEELEY" + bold "MECHANICAL" pairing. */
.tone {
  font-weight: 300;
  color: var(--tone);
}

.lead {
  font-size: clamp(1.125rem, 1rem + .45vw, 1.375rem);
  line-height: 1.5;
  letter-spacing: -0.012em;
  color: var(--fg);
}

/* Mono section label: ■ 01 —— ABOUT */
.label {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 450;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.label::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--orange-500);
}
.label__index {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--fg);
}
.label__index::after {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: .35;
}


/* 06 · Components ---------------------------------------------------------- */
.icon {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  --btn-bd: currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 3.25rem;
  padding: 0 1.25rem 0 1.5rem;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition:
    background-color .35s var(--ease),
    border-color .35s var(--ease),
    color .35s var(--ease);
}
.btn .icon { transition: transform .5s var(--ease-out); }
.btn:hover .icon,
.btn:focus-visible .icon { transform: translateX(3px); }

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--navy-900);
  --btn-bd: #fff;
}
.btn--light:hover {
  --btn-bg: var(--orange-500);
  --btn-bd: var(--orange-500);
  --btn-fg: var(--navy-950);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, .34);
}
.btn--ghost:hover {
  --btn-bg: rgba(255, 255, 255, .08);
  --btn-bd: #fff;
}

.btn--dark {
  --btn-bg: var(--navy-900);
  --btn-fg: #fff;
  --btn-bd: var(--navy-900);
}
.btn--dark:hover {
  --btn-bg: var(--orange-500);
  --btn-bd: var(--orange-500);
  --btn-fg: var(--navy-950);
}

.btn--sm {
  min-height: 2.75rem;
  padding: 0 1rem 0 1.2rem;
  font-size: .875rem;
}

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding-bottom: .3rem;
  border-bottom: 1px solid currentColor;
  font-weight: 500;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.link-arrow .icon { transition: transform .5s var(--ease-out); }
.link-arrow:hover { color: var(--accent-text); }
.link-arrow:hover .icon { transform: translate(2px, -2px); }

/* Orange-square checklist */
.checklist { display: grid; gap: .65rem; }
.checklist li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--fg);
  line-height: 1.45;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  background: var(--orange-500);
}


/* 07 · Header -------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: #fff;
  border-bottom: 1px solid transparent;
  transition: background-color .45s var(--ease), border-color .45s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(6, 14, 26, .8);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: rgba(255, 255, 255, .08);
}
.site-header.menu-open {
  background: var(--navy-950);
  border-bottom-color: rgba(255, 255, 255, .08);
}
/* backdrop-filter makes the header the containing block of its position: fixed
   children, which would shrink the full-screen menu to the header bar once the page
   is scrolled. While the menu is shown it covers the page, so the blur is dropped. */
.site-header:has(.mobile-menu:not([hidden])) {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--nav-h);
}
.nav__brand {
  flex: none;
  display: block;
  padding-block: .35rem;
  border-radius: 6px;
}
.nav__brand img { width: clamp(10.25rem, 8.5rem + 4.4vw, 12.75rem); }

.nav__primary { margin-left: auto; }
.nav__links { display: flex; gap: clamp(1.5rem, .8rem + 1.4vw, 2.5rem); }
.nav__link {
  position: relative;
  display: inline-block;
  padding-block: .6rem;
  font-size: .9375rem;
  color: rgba(255, 255, 255, .74);
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .3rem;
  height: 1px;
  background: var(--orange-500);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav__link:hover,
.nav__link[aria-current="true"] { color: #fff; }
.nav__link:hover::after,
.nav__link[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav__cta { margin-left: .25rem; }

.nav__toggle {
  position: relative;
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  margin-right: -.6rem;
  border-radius: 50%;
}
.nav__toggle-bar {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.375rem;
  height: 1.5px;
  background: currentColor;
  transition: transform .5s var(--ease-out);
}
.nav__toggle-bar:nth-child(1) { transform: translate(-50%, -4px); }
.nav__toggle-bar:nth-child(2) { transform: translate(-50%, 4px); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translate(-50%, 0) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { transform: translate(-50%, 0) rotate(-45deg); }

@media (max-width: 63.99rem) {
  .nav__primary,
  .nav__cta { display: none; }
  .nav__toggle { display: inline-block; }
}

/* Mobile menu (full screen) */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: flex;
  padding-top: var(--nav-h);
  background: var(--navy-950);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; }

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding-block: clamp(1.5rem, 4vh, 3rem) max(2rem, env(safe-area-inset-bottom));
  overflow-y: auto;
}
.mobile-menu__links { border-top: 1px solid rgba(255, 255, 255, .1); }
.mobile-menu__links a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-block: clamp(.85rem, 2.2vh, 1.25rem);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  font-size: clamp(2rem, 1.3rem + 3.6vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s var(--ease-out), transform .7s var(--ease-out), color .3s;
}
.mobile-menu__links li:nth-child(2) a { transition-delay: .05s; }
.mobile-menu__links li:nth-child(3) a { transition-delay: .1s; }
.mobile-menu__links li:nth-child(4) a { transition-delay: .15s; }
.mobile-menu.is-open .mobile-menu__links a { opacity: 1; transform: none; }
.mobile-menu__links a:hover { color: var(--orange-500); }
.mobile-menu__index {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 450;
  letter-spacing: .08em;
  color: var(--orange-500);
  transform: translateY(-.9em);
}
.mobile-menu__footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}
.mobile-menu__meta {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .54);
}


/* 08 · Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--navy-950);
  color: #fff;
}
.hero__media,
.hero__shade,
.hero__lines {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__media picture {
  width: 100%;
  height: 100%;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  filter: saturate(.95) contrast(1.08) brightness(1.06);
}
/* Mobile: type sits over the full width, so the shade is mostly vertical */
.hero__shade {
  background:
    linear-gradient(180deg, rgba(6, 14, 26, .6) 0%, rgba(6, 14, 26, 0) 18%),
    linear-gradient(0deg, rgba(6, 14, 26, .97) 0%, rgba(6, 14, 26, .86) 36%, rgba(6, 14, 26, .42) 62%, rgba(6, 14, 26, .12) 100%);
}
/* Desktop: darken the lower-left text area, let the lamp on the right glow */
@media (min-width: 48rem) {
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(6, 14, 26, .62) 0%, rgba(6, 14, 26, 0) 20%),
      linear-gradient(0deg, rgba(6, 14, 26, .88) 0%, rgba(6, 14, 26, 0) 20%),
      radial-gradient(130% 100% at 0% 100%, rgba(6, 14, 26, .92) 0%, rgba(6, 14, 26, .66) 38%, rgba(6, 14, 26, .16) 72%, rgba(6, 14, 26, .04) 100%);
  }
}
/* Tablet: the text block sits mid-height (see .hero__content), so a soft left-side
   layer keeps the copy legible over the brighter duct in the photo */
@media (min-width: 48rem) and (max-width: 79.99rem) {
  .hero__shade::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 14, 26, .45) 0%, rgba(6, 14, 26, .3) 45%, rgba(6, 14, 26, 0) 75%);
  }
}
.hero__lines { display: none; }

.hero__inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--nav-h) + 2.5rem);
}
.hero__content { padding-bottom: clamp(2.25rem, 1.25rem + 3vw, 4.25rem); }
/* Below desktop the content block is centered between the nav and the meta bar.
   Its bottom padding mirrors the 2.5rem gap under the nav, so the centering is exact
   and short screens keep the same breathing room above and below. */
@media (max-width: 79.99rem) {
  .hero__content { margin-block: auto; padding-bottom: 2.5rem; }
}
/* Desktop keeps the bottom-anchored composition. padding-top holds the space of the
   former eyebrow label, so the heading stays put where the hero grows with its content. */
@media (min-width: 80rem) {
  .hero__content { padding-top: calc(1.35625rem + clamp(1.25rem, 1rem + 1vw, 2rem)); }
}

.hero__title {
  max-width: 13.5em;
  font-size: clamp(2.6rem, 1.1rem + 5.4vw, 6.25rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.hero__title .tone { color: rgba(255, 255, 255, .64); }

.hero__row {
  display: grid;
  justify-items: start;
  gap: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}
.hero__lead {
  max-width: 31rem;
  font-size: clamp(1.0625rem, .98rem + .38vw, 1.3125rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, .82);
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.hero__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem 1.5rem;
  padding-block: 1.15rem max(1.4rem, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .07em;
  line-height: 1.4;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .84);
}
.hero__meta-key {
  display: block;
  margin-bottom: .2rem;
  color: rgba(255, 255, 255, .5);
}
.hero__meta-wide,
.hero__meta-scroll { display: none; }
.hero__meta-scroll a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: color .3s var(--ease);
}
.hero__meta-scroll a:hover { color: var(--orange-500); }
.hero__meta-scroll .icon { width: 1rem; height: 1rem; }

@media (min-width: 48rem) {
  .hero__lines {
    display: block;
    left: 0;
    right: 0;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
  }
  .hero__lines span {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 8%, rgba(255, 255, 255, .07) 36%, rgba(255, 255, 255, .07) 72%, rgba(255, 255, 255, 0) 100%);
  }
  .hero__lines span:nth-child(1) { left: calc(var(--gutter) + (100% - var(--gutter) * 2) * .25); }
  .hero__lines span:nth-child(2) { left: calc(var(--gutter) + (100% - var(--gutter) * 2) * .5); }
  .hero__lines span:nth-child(3) { left: calc(var(--gutter) + (100% - var(--gutter) * 2) * .75); }

  .hero__meta {
    grid-template-columns: repeat(3, auto);
    justify-content: space-between;
    font-size: .75rem;
  }
  .hero__meta-key { display: inline; margin: 0 .55rem 0 0; }
  .hero__meta-wide { display: block; }
}
@media (min-width: 64rem) {
  .hero__meta { grid-template-columns: repeat(4, auto); }
  .hero__meta-scroll { display: block; }
}


/* 09 · About --------------------------------------------------------------- */
.about__intro {
  display: grid;
  gap: 1.75rem;
}
.statement {
  font-size: clamp(1.75rem, 1.05rem + 2.9vw, 3.75rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.032em;
  text-wrap: pretty;
}
.statement .sw { transition: opacity .2s linear; }

@media (min-width: 64rem) {
  .about__intro {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
  }
  .about__intro .label { grid-column: 1 / span 3; align-self: start; margin-top: .9rem; }
  .statement { grid-column: 4 / -1; }
}

.about__grid {
  display: grid;
  gap: var(--gap);
  margin-top: clamp(3.5rem, 2rem + 5vw, 7rem);
}
.about__text {
  display: grid;
  gap: 1.1rem;
  align-content: start;
  color: var(--fg-2);
}
.about__text .lead { margin-bottom: .4rem; }

.fact {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.4rem, 1rem + 1.2vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.fact__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.fact__label {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 450;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.fact__tag {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.fact__value {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: clamp(3.25rem, 2.4rem + 3vw, 5rem);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -0.055em;
}
.fact__unit {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 450;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange-500);
}
.fact__note {
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--fg-2);
}

.ca-map {
  width: 100%;
  max-width: 19.5rem;
  height: auto;
  margin: .75rem auto .25rem;
  overflow: visible;
  flex-grow: 1;                 /* takes the card's spare height; the drawing stays centered */
}
.ca-map__dots {
  fill: none;
  stroke: rgba(255, 255, 255, .2);
  stroke-width: 3.4;
  stroke-linecap: round;
}
.ca-map__dot { fill: var(--orange-500); }
.ca-map__ring {
  fill: none;
  stroke: var(--orange-500);
  stroke-width: 1;
  opacity: .7;
}
.ca-map__pulse {
  fill: var(--orange-500);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: map-pulse 3s var(--ease-out) infinite;
}
.ca-map__pin--alt .ca-map__pulse { animation-delay: 1.5s; }
.ca-map__leader {
  fill: none;
  stroke: rgba(255, 255, 255, .45);
  stroke-width: 1;
}
.ca-map__text {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  fill: #fff;
}
@keyframes map-pulse {
  0%   { transform: scale(.45); opacity: .5; }
  80%  { opacity: 0; }
  100% { transform: scale(2.3); opacity: 0; }
}

@media (min-width: 40rem) {
  .about__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about__text,
  .fact--map { grid-column: 1 / -1; }
}
@media (min-width: 48rem) and (max-width: 63.99rem) {
  .about__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .about__text { grid-column: 1 / -1; }
  .fact--map { grid-column: 1 / span 7; grid-row: 2 / span 2; }
  .fact--stat { grid-column: 8 / -1; }
}
@media (min-width: 64rem) {
  .about__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto auto;
  }
  .about__text { grid-column: 1 / span 5; grid-row: 1 / span 2; padding-right: clamp(0rem, 3vw, 3rem); }
  .fact--map { grid-column: 6 / span 4; grid-row: 1 / span 2; }
  .fact--stat { grid-column: 10 / -1; }
}

.approach {
  display: grid;
  gap: 2rem;
  margin-top: clamp(4rem, 2.5rem + 5vw, 8rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.approach__list { display: grid; gap: 2.25rem; }
.approach__num {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  color: var(--orange-500);
}
.approach__title {
  margin: .85rem 0 .6rem;
  font-size: clamp(1.25rem, 1.1rem + .55vw, 1.625rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.approach__item p {
  max-width: 26rem;
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--fg-2);
}
@media (min-width: 48rem) {
  .approach__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
}
@media (min-width: 64rem) {
  .approach { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .approach__label { grid-column: 1 / span 3; align-self: start; }
  .approach__list { grid-column: 4 / -1; }
}


/* 10 · Expertise ----------------------------------------------------------- */
.services { display: grid; gap: var(--gap); }

.service {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow:
    0 1px 0 rgba(17, 21, 28, .03),
    0 40px 80px -56px rgba(17, 21, 28, .35);
}
.service__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream-200);
}
.service__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9);
  transition: transform 1.4s var(--ease-out);
}
.service:hover .service__media img { transform: scale(1.035); }

.service__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.25rem;
  padding: clamp(1.5rem, 1rem + 2vw, 3rem);
}
.service__index {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  color: var(--fg-3);
}
.service__title {
  margin: 1rem 0 1.1rem;
  font-size: clamp(1.75rem, 1.25rem + 2vw, 3.125rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.038em;
  text-wrap: balance;
}
.service__text {
  max-width: 33rem;
  font-size: clamp(1rem, .95rem + .22vw, 1.125rem);
  line-height: 1.6;
  color: var(--fg-2);
}
.service__scope {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.service__scope-label {
  margin-bottom: .9rem;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-3);
}

@media (min-width: 48rem) and (max-width: 63.99rem) {
  .service__media { aspect-ratio: 16 / 9; }
}
@media (min-width: 64rem) {
  .services { gap: 1.5rem; }
  .service {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    min-height: min(36rem, calc(100svh - var(--nav-h) - 7rem));
  }
  .service__media {
    aspect-ratio: auto;
    margin: .75rem 0 .75rem .75rem;
    border-radius: calc(var(--radius-lg) - .5rem);
  }
  .service__body { padding: clamp(2rem, 1rem + 2.4vw, 3.5rem); }
}
/* Stacking cards — only where the viewport is tall enough to show a full card */
@media (min-width: 64rem) and (min-height: 44rem) {
  .service {
    position: sticky;
    top: calc(var(--nav-h) + 1.5rem + var(--i, 0) * 1.25rem);
  }
}

.sectors {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(4rem, 2.5rem + 5vw, 7.5rem);
}
.sectors__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--gap);
}
.sectors__list li {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding-block: 1.1rem 1.4rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.25rem, .95rem + 1.4vw, 2.25rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.sectors__index {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .08em;
  color: var(--accent-text);
}
@media (min-width: 48rem) {
  .sectors__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .sectors { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .sectors__label {
    grid-column: 1 / span 3;
    align-self: start;
    padding-top: 1.35rem;
    border-top: 1px solid var(--line);
  }
  .sectors__list { grid-column: 4 / -1; }
}

/* Closing CTA. Leadership (also light) follows directly, so this section
   drops its bottom padding and Leadership's top padding alone separates them. */
.expertise { padding-bottom: 0; }
.expertise__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  margin-top: clamp(4rem, 3rem + 4vw, 7rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.expertise__cta p {
  font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.625rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.032em;
}


/* 11 · Leadership ---------------------------------------------------------- */
.leadership__grid {
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 4vw, 5rem);
}
.leadership__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--cream-200);
}
.leadership__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.88) contrast(1.02);
}
.leadership__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(17, 21, 28, .06);
  pointer-events: none;
}
.leadership__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .25rem 1rem;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.leadership__caption span:first-child { color: var(--fg); }

.leadership__content .label { margin-bottom: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.leadership__role {
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.leadership__quote {
  margin: clamp(2rem, 1.5rem + 2vw, 3.25rem) 0;
  padding-left: clamp(1.25rem, 1rem + 1vw, 2rem);
  border-left: 2px solid var(--orange-500);
}
.leadership__quote p {
  font-size: clamp(1.375rem, 1.05rem + 1.2vw, 2.125rem);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -0.026em;
  color: var(--fg);
  text-wrap: pretty;
}
.leadership__bio {
  display: grid;
  gap: 1rem;
  max-width: 38rem;
  font-size: 1.0625rem;
  color: var(--fg-2);
}

.credentials {
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  border-top: 1px solid var(--line);
}
.credentials__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .35rem 1.5rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--line);
}
.credentials dt {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.credentials dd {
  font-weight: 500;
  line-height: 1.4;
  color: var(--fg);
}
.credentials dd > span:last-child:not([data-years-since]) {
  display: block;
  margin-top: .2rem;
  font-size: .9375rem;
  font-weight: 400;
  color: var(--fg-2);
}
.leadership__content .link-arrow { margin-top: 2.25rem; }

.leadership__portrait { max-width: 30rem; }

/* Single column: label, heading and role first, then the portrait, then quote, bio,
   credentials and link. The content wrapper steps aside (display: contents) so its
   children can be ordered around the portrait; the portrait gets the quote's spacing.
   The caption is dropped here: the name and role already sit right above the portrait
   (the image's alt text still names Mark and his role). */
@media (max-width: 63.99rem) {
  .leadership__grid { row-gap: 0; }
  .leadership__content { display: contents; }
  .leadership__portrait { order: 1; margin-top: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
  .leadership__caption { display: none; }
  .leadership__role ~ * { order: 2; }
  .leadership__content .link-arrow { justify-self: start; }
}

@media (min-width: 30rem) {
  .credentials__row { grid-template-columns: 8.5rem minmax(0, 1fr); }
  .credentials dt { padding-top: .2rem; }
}
@media (min-width: 64rem) {
  .leadership__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: start;
  }
  .leadership__portrait {
    max-width: none;
    grid-column: 1 / span 5;
    position: sticky;
    top: calc(var(--nav-h) + 2rem);
  }
  .leadership__content { grid-column: 7 / -1; }
}


/* 12 · Contact ------------------------------------------------------------- */
.contact {
  overflow: hidden;
  padding-bottom: clamp(3rem, 2rem + 3vw, 5rem);
}
.contact__title {
  margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  font-size: clamp(2.875rem, 1.2rem + 6.6vw, 8.25rem);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.contact__title .tone { color: rgba(255, 255, 255, .6); }

.contact__grid {
  display: grid;
  gap: 3rem;
  margin-top: clamp(3rem, 2rem + 4vw, 6rem);
}
.contact__intro .lead {
  max-width: 30rem;
  margin-bottom: 2rem;
  color: var(--fg-2);
}
.contact__list { border-top: 1px solid var(--line); }
.contact__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .5rem 1.5rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.contact__row dt {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.contact__row dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .9rem;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  letter-spacing: -0.01em;
}
.contact__link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: color .3s var(--ease);
}
.contact__link:hover { color: var(--orange-500); }
.contact__regions {
  flex-direction: column;
  align-items: flex-start !important;
  gap: .2rem !important;
}

@media (min-width: 30rem) {
  .contact__row { grid-template-columns: 7rem minmax(0, 1fr); align-items: baseline; }
}
@media (min-width: 64rem) {
  .contact__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .contact__intro { grid-column: 1 / span 5; }
  .contact__list { grid-column: 7 / -1; }
}

/* Technical piping schematic (decorative) */
.contact__drawing {
  width: 100%;
  height: auto;
  margin-top: clamp(4rem, 3rem + 4vw, 7rem);
  overflow: visible;
  color: rgba(255, 255, 255, .3);
}
.drawing__lines path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.drawing__symbols > * {
  fill: var(--navy-900);
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linejoin: round;
}
.drawing__symbols .drawing__arrow { fill: currentColor; stroke: none; }
.drawing__dims path {
  fill: none;
  stroke: var(--orange-500);
  stroke-width: 1;
  opacity: .75;
}
.drawing__dims text,
.drawing__labels text {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  fill: currentColor;
}
.drawing__dims text { fill: var(--orange-500); }

@media (max-width: 47.99rem) {
  .contact__drawing {
    width: 54rem;
    max-width: none;
    margin-left: -7rem;
  }
}


/* 13 · Footer -------------------------------------------------------------- */
.site-footer {
  overflow: hidden;
  padding-top: clamp(3rem, 2rem + 3vw, 5rem);
  background: var(--navy-950);
  color: #fff;
}
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem 2rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.site-footer__logo { width: clamp(11rem, 9.5rem + 4vw, 14.25rem); }
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.75rem;
  font-size: .9375rem;
  color: rgba(255, 255, 255, .7);
}
.site-footer__nav a {
  padding-block: .35rem;
  transition: color .3s var(--ease);
}
.site-footer__nav a:hover { color: #fff; }

.site-footer__word {
  padding-block: clamp(2.25rem, 1rem + 4vw, 4.5rem) clamp(1.5rem, 1rem + 2vw, 3rem);
  color: #1A2D4F;
}
.site-footer__word svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 2rem;
  padding-block: 1.5rem max(2rem, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .8125rem;
  color: rgba(255, 255, 255, .56);
}
.site-footer__top-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: rgba(255, 255, 255, .8);
  transition: color .3s var(--ease);
}
.site-footer__top-link:hover { color: var(--orange-500); }
.site-footer__top-link .icon { width: 1rem; height: 1rem; }


/* 14 · Motion -------------------------------------------------------------- */
/* Scroll reveal (enabled only when JS is available) */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity .9s var(--ease-out),
    transform 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* Hero intro */
.hero__media img {
  transform: scale(1.06);
  transition: transform 2.6s var(--ease-out);
}
.is-loaded .hero__media img { transform: none; }

.js [data-hero] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 110ms + 250ms);
}
.is-loaded [data-hero] {
  opacity: 1;
  transform: none;
}

.js .hero__title[data-split]:not(.is-split) { visibility: hidden; }
.hero__title .word {
  display: inline-block;
  overflow: hidden;
  padding-bottom: .1em;
  margin-bottom: -.1em;
  vertical-align: top;
}
.hero__title .word > span {
  display: inline-block;
  transform: translate3d(0, 130%, 0);
  transition: transform 1.2s var(--ease-out);
  transition-delay: calc(var(--w, 0) * 60ms + 120ms);
}
.is-loaded .hero__title .word > span { transform: none; }

/* Piping schematic draws itself in */
.js .contact__drawing .drawing__lines path {
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.8s var(--ease-out);
}
.js .contact__drawing .drawing__lines path:nth-child(2) { transition-delay: .15s; }
.js .contact__drawing .drawing__lines path:nth-child(3) { transition-delay: .6s; }
.js .contact__drawing .drawing__lines path:nth-child(4) { transition-delay: .9s; }
.js .contact__drawing .drawing__lines path:nth-child(5) { transition-delay: .75s; }
.js .contact__drawing .drawing__lines path:nth-child(6) { transition-delay: 1.05s; }
.js .contact__drawing.is-revealed .drawing__lines path { stroke-dashoffset: 0; }
.js .contact__drawing :is(.drawing__symbols, .drawing__labels, .drawing__dims) {
  opacity: 0;
  transition: opacity 1.2s var(--ease) 1.1s;
}
.js .contact__drawing.is-revealed :is(.drawing__symbols, .drawing__labels, .drawing__dims) { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal],
  .js [data-hero],
  .hero__title .word > span {
    opacity: 1;
    transform: none;
  }
  .hero__media img { transform: none; }
  .ca-map__pulse { display: none; }
  .js .contact__drawing .drawing__lines path { stroke-dashoffset: 0; }
  .js .contact__drawing :is(.drawing__symbols, .drawing__labels, .drawing__dims) { opacity: 1; }
}
