/* ==========================================================================
   Etowah Construction Group — shared stylesheet
   ========================================================================== */

:root {
  --dark-900: #1E252B;  /* footer */
  --dark-800: #262F36;  /* header, stats bar, dark panels, contact card */
  --dark-700: #2F383F;  /* logo background tone, hovers on dark */
  --steel-600: #527AA3; /* primary buttons, eyebrow lines, card top borders */
  --steel-700: #466C93; /* button hover; small steel text on light backgrounds (AA) */
  --steel-300: #9AB0C4; /* accent text and icons on dark backgrounds */
  --ink: #111820;       /* headings */
  --body: #4B5560;      /* body text */
  --muted: #6B7580;     /* small meta text */
  --line: #DDE2E7;      /* borders, dividers */
  --bg-alt: #F4F6F8;    /* alternating light section background */
  --white: #FFFFFF;

  --on-dark: rgba(255, 255, 255, 0.82);
  --on-dark-soft: #C5CED7;
  --field-border: #8A949E;
  --error: #B42318;

  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1200px;
  --gutter: 24px;
  --section-y: 96px;
  --header-h: 80px;
  --radius: 2px;
  --shadow: 0 1px 2px rgba(17, 24, 32, .06), 0 4px 16px rgba(17, 24, 32, .05);
  --shadow-lg: 0 2px 4px rgba(17, 24, 32, .06), 0 14px 32px rgba(17, 24, 32, .10);
}

@media (max-width: 959.98px) {
  :root { --header-h: 64px; }
}
@media (max-width: 767.98px) {
  :root { --section-y: 64px; }
}
@media (max-width: 639.98px) {
  :root { --gutter: 16px; }
}

/* Base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--white);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open { overflow: hidden; }

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

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-head);
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

a { color: inherit; }

button,
input,
select,
textarea { font: inherit; }

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

.site-header :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible,
.on-dark :focus-visible {
  outline-color: var(--steel-300);
}

.icon {
  flex: none;
  width: 24px;
  height: 24px;
}
.icon * { vector-effect: non-scaling-stroke; }

.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: absolute;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: none; }

main:focus { outline: none; }

/* Layout
   ========================================================================== */

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }

.section-head { margin-bottom: 48px; }

/* Eyebrow + meta
   ========================================================================== */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 16px;
  color: var(--steel-700);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 40px;
  height: 1.5px;
  background: var(--steel-600);
}
.eyebrow--dark { color: var(--steel-300); }
.eyebrow--dark::before { background: var(--steel-300); }

.meta {
  margin: 0 0 8px;
  color: var(--steel-700);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Buttons + links
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn .icon {
  width: 16px;
  height: 16px;
  transition: transform .2s ease;
}
.btn:hover .icon { transform: translateX(3px); }

.btn-primary {
  background: var(--steel-600);
  color: var(--white);
}
.btn-primary:hover { background: var(--steel-700); }

.btn-secondary {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-secondary:hover {
  background: var(--white);
  color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--steel-700);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.text-link .icon {
  width: 18px;
  height: 18px;
  transition: transform .2s ease;
}
.text-link:hover { color: var(--ink); }
.text-link:hover .icon { transform: translateX(3px); }

/* Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark-800);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 2px 16px rgba(0, 0, 0, .28); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand { flex: none; }
.brand img {
  width: auto;
  height: 44px;
}

.nav-toggle { display: none; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  background: none;
  border: 0;
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.nav-label { position: relative; }
.nav-label::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--steel-300);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav-link:hover .nav-label::after,
.nav-link[aria-current="page"] .nav-label::after,
.nav-link.is-active .nav-label::after { transform: scaleX(1); }

.dropdown-toggle .icon {
  width: 14px;
  height: 14px;
  transition: transform .2s ease;
}
.has-dropdown.is-open .dropdown-toggle .icon { transform: rotate(180deg); }

.has-dropdown { position: relative; }

.dropdown {
  position: absolute;
  top: calc(100% + 22px);
  left: -24px;
  min-width: 270px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--dark-800);
  border: 1px solid rgba(255, 255, 255, .08);
  border-top: 2px solid var(--steel-600);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
/* Bridges the gap between the button and the panel so hover is not lost. */
.dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -26px;
  height: 26px;
}
.has-dropdown.is-open .dropdown,
.no-js .has-dropdown:hover .dropdown,
.no-js .has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .18s ease, transform .18s ease;
}

.dropdown a {
  display: block;
  padding: 12px 24px;
  color: var(--white);
  font-size: 0.9375rem;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease;
}
.dropdown a:hover { background: var(--dark-700); }
.dropdown a[aria-current="page"] {
  color: var(--steel-300);
  border-left-color: var(--steel-300);
}

/* Tighter nav spacing so six menu items fit beside the logo. */
@media (max-width: 1199.98px) {
  .site-nav { gap: 20px; }
  .nav-list { gap: 18px; }
}
@media (max-width: 1079.98px) {
  .brand img { height: 40px; }
}

/* Mobile menu (the breakpoint matches mobileQuery in main.js). */
@media (max-width: 1023.98px) {
  .brand img { height: 36px; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    background: none;
    border: 0;
    color: var(--white);
    cursor: pointer;
  }
  .nav-toggle .icon { width: 26px; height: 26px; }
  .nav-toggle .icon-close { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-close { display: block; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 32px;
    padding: 8px var(--gutter) 32px;
    overflow-y: auto;
    background: var(--dark-800);
    border-top: 1px solid rgba(255, 255, 255, .1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .site-header.menu-is-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .2s ease, transform .2s ease;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-item { border-bottom: 1px solid rgba(255, 255, 255, .12); }

  .nav-link {
    justify-content: space-between;
    width: 100%;
    padding: 18px 0;
    font-size: 1.125rem;
  }
  .nav-link:hover .nav-label::after { transform: scaleX(0); }
  .nav-link[aria-current="page"] .nav-label::after,
  .nav-link.is-active .nav-label::after { transform: scaleX(1); }
  .nav-label::after { bottom: -6px; }

  .dropdown-toggle .icon { width: 18px; height: 18px; }

  .dropdown {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 12px;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .dropdown::before { display: none; }
  .has-dropdown.is-open .dropdown { display: block; }
  .dropdown a {
    padding: 12px 16px;
    color: var(--on-dark);
    font-size: 1rem;
  }

  .nav-cta { width: 100%; }
}

/* Hero
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 460px;
  overflow: hidden;
  background: var(--dark-800);
  color: var(--white);
}
.hero--home { min-height: 620px; }
.hero--short { min-height: 380px; }

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(20, 26, 31, .85) 0%, rgba(20, 26, 31, .62) 38%, rgba(20, 26, 31, 0) 65%);
}

.hero-content {
  padding-block: 72px;
}
.hero-inner { max-width: 660px; }

.hero h1 {
  color: var(--white);
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 20px;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero-eyebrow::after {
  content: "";
  flex: none;
  width: 92px;
  height: 1.5px;
  background: var(--steel-300);
}

.hero-sub {
  max-width: 34rem;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, .92);
  font-size: clamp(1.25rem, 1.7vw, 1.375rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  color: var(--white);
  font-size: 0.8125rem;
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(255, 255, 255, .6);
}
.breadcrumb ol::after {
  content: "";
  width: 120px;
  height: 1px;
  margin-left: 8px;
  background: rgba(255, 255, 255, .55);
}
.breadcrumb a {
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--white);
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  .hero,
  .hero--home { min-height: 520px; }
  .hero--short { min-height: 340px; }
  .hero::before {
    background: linear-gradient(90deg, rgba(20, 26, 31, .86) 0%, rgba(20, 26, 31, .62) 100%);
  }
  .hero-content { padding-block: 56px; }
}

/* Stats bar
   ========================================================================== */

.stats {
  background: var(--dark-800);
  color: var(--white);
}

.stats-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.stat {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 30px 20px;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 0;
  width: 1px;
  background: rgba(255, 255, 255, .16);
}
.stat .icon {
  width: 40px;
  height: 40px;
  color: var(--steel-300);
}
.stat-label {
  display: block;
  color: var(--on-dark-soft);
  font-size: 0.8125rem;
  line-height: 1.4;
}
.stat-value {
  display: block;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
}

@media (max-width: 959.98px) {
  .stats-list { grid-template-columns: repeat(2, 1fr); }
  .stat { justify-content: flex-start; padding: 24px 20px; }
  .stat + .stat::before { display: none; }
  .stat:nth-child(2n)::before {
    content: "";
    display: block;
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 0;
    width: 1px;
    background: rgba(255, 255, 255, .16);
  }
  .stat:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .12); }
}

@media (max-width: 559.98px) {
  .stats-list { grid-template-columns: 1fr; }
  .stat { padding: 20px 0; }
  .stat:nth-child(2n)::before { display: none; }
  .stat + .stat { border-top: 1px solid rgba(255, 255, 255, .12); }
}

/* Cards
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }

.cap-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--white);
  border-top: 4px solid var(--steel-600);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
a.cap-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.cap-card .icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--ink);
}
.cap-card h3 { margin-bottom: 8px; }
.cap-card p {
  margin: 0;
  font-size: 1rem;
}

/* Homepage capabilities: four equal columns from 1200px, where every title fits on one line; 2×2 below. */
.card-grid--caps .cap-card { padding: 24px; }
@media (min-width: 1200px) {
  .card-grid--caps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card-grid--caps .cap-card h3 { font-size: 1.125rem; }
}
@media (max-width: 1199.98px) {
  .card-grid--caps { grid-template-columns: repeat(2, 1fr); }
}

.why-num {
  display: block;
  margin-bottom: 18px;
  color: var(--steel-600);
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

@media (max-width: 1023.98px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .cap-card { padding: 24px; }
}
@media (max-width: 767.98px) {
  .card-grid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 639.98px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* Projects
   ========================================================================== */

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
}
.project-grid--3 { grid-template-columns: repeat(3, 1fr); }

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  scroll-margin-top: 100px;
}
.project-card--plain {
  background: transparent;
  border: 0;
  border-radius: 0;
}

.project-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--line);
}
.project-card--plain .project-media { border-radius: var(--radius); }
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.project-card:hover .project-media img { transform: scale(1.04); }

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 24px 24px;
}
.project-card--plain .project-body { padding: 18px 0 0; }
.project-card--large .project-body { padding: 28px 32px 32px; }

.project-body h3 { margin-bottom: 8px; }
.project-card--large h3 { font-size: 1.5rem; }
.project-body p:not(.meta) {
  margin: 0;
  font-size: 0.9375rem;
}
.project-card--large .project-body p:not(.meta) { font-size: 1rem; }

.tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  margin-top: 18px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--steel-700);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease;
}
.tag .icon {
  width: 14px;
  height: 14px;
  transition: transform .2s ease;
}
.tag:hover {
  background: var(--bg-alt);
  border-color: var(--steel-600);
}
.tag:hover .icon { transform: translateX(2px); }

.project-banner {
  display: grid;
  grid-template-columns: 65% 1fr;
  margin-top: 32px;
  overflow: hidden;
  background: var(--bg-alt);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
}
.banner-media {
  height: 220px;
  overflow: hidden;
}
.banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.project-banner:hover .banner-media img { transform: scale(1.04); }
.banner-body {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 28px 36px;
}
.banner-body .meta { margin-bottom: 10px; }
.banner-body h3 { font-size: 1.375rem; }
.banner-body .icon {
  width: 28px;
  height: 28px;
  color: var(--steel-600);
  transition: transform .2s ease;
}
.project-banner:hover .banner-body .icon { transform: translateX(4px); }

@media (max-width: 1023.98px) {
  .project-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767.98px) {
  .project-grid { grid-template-columns: 1fr; }
  .project-banner { grid-template-columns: 1fr; }
  .banner-media {
    height: auto;
    aspect-ratio: 3 / 2;
  }
  .banner-body { padding: 24px; }
  .project-card--large .project-body { padding: 24px; }
}
@media (max-width: 639.98px) {
  .project-grid--3 { grid-template-columns: 1fr; }
}

/* Service page: intro + dark scope panel
   ========================================================================== */

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 64px;
}
.intro-text p:not(.eyebrow) {
  margin: 24px 0 0;
  font-size: 1.125rem;
}

.scope-panel {
  margin: 0;
  padding: 8px 32px;
  list-style: none;
  background: var(--dark-800);
  border-radius: var(--radius);
  color: var(--white);
}
.scope-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 150px) 1px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 24px 0;
}
.scope-row + .scope-row { border-top: 1px solid rgba(255, 255, 255, .12); }
.scope-row .icon {
  width: 44px;
  height: 44px;
  color: var(--steel-300);
}
.scope-row h3 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}
.scope-row .vline {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, .22);
}
.scope-row p {
  margin: 0;
  color: var(--on-dark-soft);
  font-size: 0.875rem;
  line-height: 1.5;
}

@media (max-width: 959.98px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
@media (max-width: 639.98px) {
  .scope-panel { padding: 4px 20px; }
  .scope-row {
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
    gap: 4px 16px;
    padding: 20px 0;
  }
  .scope-row .icon {
    grid-row: span 2;
    width: 40px;
    height: 40px;
  }
  .scope-row .vline { display: none; }
  .scope-row p { grid-column: 2; }
}

/* Service page: proof
   ========================================================================== */

.proof {
  display: grid;
  grid-template-columns: 55% 1fr;
  background: var(--white);
}
.proof-media {
  position: relative;
  min-height: 480px;
}
.proof-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.proof-content {
  align-self: center;
  padding: var(--section-y) max(var(--gutter), calc(50vw - 600px)) var(--section-y) 64px;
}
.proof-content h2 { max-width: 16ch; }

.checklist {
  display: grid;
  gap: 14px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}
.check-badge {
  display: grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--steel-600);
  color: var(--white);
}
.check-badge .icon {
  width: 14px;
  height: 14px;
}

.proof-divider {
  height: 1px;
  margin: 0 0 20px;
  background: var(--line);
  border: 0;
}
.proof-content p:not(.eyebrow) { margin: 0 0 20px; }

@media (max-width: 959.98px) {
  .proof { grid-template-columns: 1fr; }
  .proof-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
  .proof-content { padding: 56px var(--gutter) var(--section-y); }
}

/* About
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}
.split-text p:last-of-type { margin-bottom: 0; }
.split-text h2 { margin-bottom: 24px; }
.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.credentials {
  display: grid;
  grid-template-columns: repeat(3, auto);
  margin: 32px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.credentials > div { padding: 16px 20px; }
.credentials > div + div { border-left: 1px solid var(--line); }
.credentials dt {
  margin: 0 0 2px;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
}
.credentials dd {
  margin: 0;
  font-size: 0.9375rem;
}

.spec-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.spec-row {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr) 24px;
  align-items: center;
  gap: 32px;
  padding: 24px 12px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: background-color .2s ease;
}
.spec-row:hover { background: var(--bg-alt); }
.spec-name { font-size: 1.125rem; }
.spec-row .icon {
  width: 20px;
  height: 20px;
  color: var(--steel-600);
  transition: transform .2s ease;
}
.spec-row:hover .icon { transform: translateX(3px); }

.markets {
  padding-block: 72px;
  background: var(--dark-800);
  color: var(--white);
}
.markets h2.eyebrow { margin-bottom: 36px; }
.markets-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.markets-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--white);
  font-weight: 500;
  line-height: 1.4;
}
.markets-list li + li {
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, .14);
}
.markets-list .icon {
  width: 40px;
  height: 40px;
  color: var(--steel-300);
}
.market-link {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--white);
  text-decoration: none;
  transition: color .2s ease;
}
.market-link span {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: text-decoration-color .2s ease;
}
.market-link:hover { color: var(--steel-300); }
.market-link:hover span { text-decoration-color: currentColor; }

.markets-more { margin: 40px 0 0; }
.text-link--light { color: var(--steel-300); }
.text-link--light:hover { color: var(--white); }

@media (max-width: 959.98px) {
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .markets-list { grid-template-columns: repeat(2, 1fr); }
  .markets-list li + li {
    padding-left: 0;
    border-left: 0;
  }
}
@media (max-width: 767.98px) {
  .credentials { grid-template-columns: 1fr; }
  .credentials > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .spec-row {
    grid-template-columns: minmax(0, 1fr) 20px;
    gap: 6px 16px;
    padding: 20px 4px;
  }
  .spec-row .icon {
    grid-row: 1 / span 2;
    grid-column: 2;
  }
  .spec-name,
  .spec-scope { grid-column: 1; }
}
@media (max-width: 479.98px) {
  .markets-list { grid-template-columns: 1fr; }
}

/* Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: 32px;
}

.contact-card {
  padding: 40px;
  background: var(--dark-800);
  border-radius: var(--radius);
  color: var(--white);
}
.contact-card h2 {
  margin-bottom: 28px;
  color: var(--white);
  font-size: 1.75rem;
  line-height: 1.2;
}
.contact-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.icon-box {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  color: var(--steel-300);
}
.icon-box .icon {
  width: 20px;
  height: 20px;
}
.contact-list a {
  color: var(--white);
  text-decoration: none;
}
.contact-list a:hover { text-decoration: underline; }
.contact-card hr {
  height: 1px;
  margin: 32px 0 20px;
  background: rgba(255, 255, 255, .14);
  border: 0;
}
.contact-card .small {
  margin: 0 0 8px;
  color: var(--on-dark);
  font-size: 0.875rem;
}

.form-card {
  padding: 40px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-card h3 {
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.field--full { grid-column: 1 / -1; }

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}
.req {
  margin-left: 2px;
  color: var(--steel-700);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field select {
  padding-right: 40px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B5560' stroke-width='1.75' 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 12px center;
  background-size: 18px;
}
.field textarea {
  min-height: 140px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--steel-600);
  outline: 2px solid transparent;
  box-shadow: 0 0 0 2px var(--steel-600);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--error); }
.field.has-error input:focus,
.field.has-error textarea:focus { box-shadow: 0 0 0 2px var(--error); }

.field-error {
  margin: 6px 0 0;
  color: var(--error);
  font-size: 0.8125rem;
  font-weight: 500;
}

.form-actions { margin-top: 24px; }
.form-actions .btn:disabled {
  opacity: .7;
  cursor: progress;
}

.form-status {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--bg-alt);
  border-left: 3px solid var(--steel-600);
  color: var(--ink);
  font-size: 0.9375rem;
}
.form-status.is-error { border-left-color: var(--error); }
.form-status a { color: var(--steel-700); font-weight: 600; }

.form-success {
  padding: 20px;
  background: var(--bg-alt);
  border-left: 3px solid var(--steel-600);
  color: var(--ink);
  font-size: 1.0625rem;
}
.form-success:focus { outline: none; }

@media (max-width: 959.98px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 639.98px) {
  .contact-card,
  .form-card { padding: 28px 20px; }
  .form-grid { grid-template-columns: 1fr; }
}

/* CTA band + footer
   ========================================================================== */

.site-footer {
  background-color: var(--dark-900);
  background-image: linear-gradient(rgba(30, 37, 43, .88), rgba(30, 37, 43, .88)), url("../images/sections/cta-bg.jpg");
  background-position: center;
  background-size: cover;
  color: var(--white);
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-block: 72px 56px;
}
.cta-title {
  max-width: 600px;
  color: var(--white);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.cta-divider {
  flex: none;
  align-self: stretch;
  width: 1px;
  background: rgba(255, 255, 255, .22);
}
.cta-contact {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}
.cta-contact li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cta-contact .icon {
  width: 18px;
  height: 18px;
  color: var(--steel-300);
}
.cta-contact a {
  color: var(--white);
  text-decoration: none;
}
.cta-contact a:hover { text-decoration: underline; }
.cta-row .btn { margin-left: auto; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding-block: 56px 40px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.site-footer--compact .footer-grid { border-top: 0; }
.footer-col { min-width: 0; }
.footer-brand {
  display: inline-block;
  margin-bottom: 20px;
}
.footer-brand img {
  width: auto;
  height: 44px;
}
.footer-text {
  max-width: 320px;
  margin: 0 0 8px;
  color: var(--on-dark);
  font-size: 0.875rem;
  line-height: 1.6;
}
.footer-heading {
  margin: 0 0 12px;
  color: var(--steel-300);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.footer-links,
.footer-contact {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  line-height: 2;
}
.footer-links a,
.footer-contact a,
.footer-contact span {
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.footer-links a:hover,
.footer-contact a:hover {
  color: var(--white);
  text-decoration: underline;
}
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-contact .icon {
  width: 16px;
  height: 16px;
  color: var(--steel-300);
}
.footer-contact a,
.footer-contact span { overflow-wrap: anywhere; }
.footer-legal {
  margin: 0;
  padding: 20px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .62);
  font-size: 0.8125rem;
}

@media (min-width: 1024px) and (max-width: 1199.98px) {
  .footer-grid {
    grid-template-columns: 1.2fr .8fr 1fr 1.4fr;
    gap: 40px;
  }
}
@media (max-width: 1023.98px) {
  .cta-row {
    flex-wrap: wrap;
    gap: 28px 40px;
  }
  .cta-title {
    flex: 1 1 100%;
    max-width: 640px;
  }
  .cta-divider { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col--brand { grid-column: 1 / -1; }
}
@media (max-width: 639.98px) {
  .cta-row {
    flex-direction: column;
    align-items: flex-start;
    padding-block: 56px 40px;
  }
  .cta-row .btn { margin-left: 0; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Markets page
   ========================================================================== */

.intro-center {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}
.intro-center .eyebrow { justify-content: center; }
.intro-center p:not(.eyebrow) {
  margin: 24px 0 0;
  font-size: 1.125rem;
}

.jump-strip {
  margin-top: 40px;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.jump-strip ul {
  display: flex;
  gap: 12px;
  width: max-content;
  margin: 0 auto;
  padding: 4px 0 8px;
  list-style: none;
}
.jump-tab {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.jump-tab:hover {
  background: var(--bg-alt);
  border-color: var(--steel-600);
  color: var(--steel-700);
}

.market {
  scroll-margin-top: 100px;
  border-top: 1px solid var(--line);
}
.market.section--alt { border-top: 0; }

.market-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 64px;
}
.market-row--flip .market-media { order: 2; }

.market-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}
.market-text h2 { margin-bottom: 20px; }
.market-text > p:not(.eyebrow) { margin: 0; }
.market-text .checklist { margin: 24px 0 28px; }

.related {
  display: grid;
  gap: 16px;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.related dt {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.related dd {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin: 0;
  font-size: 0.9375rem;
}
.related-link {
  color: var(--steel-700);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.related-link:hover { color: var(--ink); }

@media (max-width: 959.98px) {
  .market-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .market-row--flip .market-media { order: 0; }
}
@media (max-width: 767.98px) {
  .jump-strip ul { margin: 0; }
}

/* Motion
   ========================================================================== */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@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 .reveal {
    opacity: 1;
    transform: none;
  }
  a.cap-card:hover,
  .project-card:hover .project-media img,
  .project-banner:hover .banner-media img,
  .btn:hover .icon,
  .text-link:hover .icon,
  .tag:hover .icon,
  .spec-row:hover .icon,
  .project-banner:hover .banner-body .icon { transform: none; }
}

/* Uploaded images: <picture> wrappers stay layout-neutral
   ========================================================================== */

picture { display: contents; }

/* Careers
   ========================================================================== */

.job-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.job-card h3 { margin-bottom: 8px; }
.job-card p:not(.meta) { margin: 0 0 20px; }
.job-card .text-link {
  align-self: flex-start;
  margin-top: auto;
}
a.job-card:hover .text-link { color: var(--ink); }
a.job-card:hover .text-link .icon { transform: translateX(3px); }

.job-empty {
  max-width: 760px;
  padding: 32px;
  background: var(--white);
  border-top: 4px solid var(--steel-600);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.job-empty h3 { margin-bottom: 8px; }
.job-empty p { margin: 0; }

.apply-block { margin-top: 64px; }
.apply-block .form-card { max-width: 860px; }
.apply-intro { margin: -12px 0 24px; }

.job-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}
.job-content h2 { margin-bottom: 20px; }
.job-content p { margin: 0 0 16px; }
.job-content ul {
  margin: 0 0 16px;
  padding-left: 20px;
}
.job-content li { margin-bottom: 6px; }

.field-hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
}
.field input[type="file"] {
  padding: 10px 12px;
  font-size: 0.9375rem;
}

/* Spam trap: hidden from people, visible to bots. */
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 959.98px) {
  .job-detail {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
@media (max-width: 767.98px) {
  .job-list { grid-template-columns: 1fr; }
  .apply-block { margin-top: 48px; }
}
@media (max-width: 639.98px) {
  .job-empty { padding: 28px 20px; }
}

/* Project detail pages
   ========================================================================== */

.project-link {
  align-self: flex-start;
  margin-top: 14px;
  font-size: 0.9375rem;
}

/* Facts row: items share one bordered strip and wrap without empty cells. */
.project-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  margin: 0 0 56px;
  overflow: hidden;
  background: var(--line);
}
.project-facts > div {
  flex: 1 1 180px;
  background: var(--white);
}
.project-facts > div + div { border-left: 0; border-top: 0; }
.project-facts a { color: var(--steel-700); }
.project-facts a:hover { color: var(--ink); }

.project-overview { max-width: 760px; }
.project-overview h2 { margin-bottom: 24px; }
.project-overview p { margin: 0 0 16px; font-size: 1.0625rem; }
.project-overview ul { margin: 0 0 16px; padding-left: 20px; }
.project-overview li { margin-bottom: 6px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--line);
  border: 0;
  border-radius: var(--radius);
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item:focus-visible { outline: 2px solid var(--steel-600); outline-offset: 3px; }
.gallery-item--video { position: relative; cursor: pointer; }
.gallery-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(17, 22, 27, .72);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  color: var(--white);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.gallery-play .icon { width: 24px; height: 24px; margin-left: 3px; fill: currentColor; }

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}
.lightbox::backdrop { background: rgba(17, 22, 27, .94); }
.lightbox-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 64px 88px;
}
.lightbox-figure { margin: 0; text-align: center; }
.lightbox-figure img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 160px);
  margin: 0 auto;
  border-radius: var(--radius);
}
.lightbox-video {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 160px);
  margin: 0 auto;
  background: #000;
  border-radius: var(--radius);
}
.lightbox-video[hidden],
.lightbox-figure picture[hidden] { display: none; }
.lightbox-caption {
  margin-top: 14px;
  color: var(--on-dark);
  font-size: 0.9375rem;
}
.lightbox-count { color: var(--steel-300); white-space: nowrap; }
.lightbox-btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius);
  color: var(--white);
  cursor: pointer;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, .16); }
.lightbox-btn:focus-visible { outline: 2px solid var(--steel-300); outline-offset: 2px; }
.lightbox-btn .icon { width: 24px; height: 24px; }
.lightbox-prev { top: 50%; left: 20px; transform: translateY(-50%); }
.lightbox-prev .icon { transform: rotate(180deg); }
.lightbox-next { top: 50%; right: 20px; transform: translateY(-50%); }
.lightbox-close { top: 16px; right: 20px; }

@media (max-width: 959.98px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639.98px) {
  .gallery-grid { gap: 10px; }
  .project-facts { margin-bottom: 40px; }
  .lightbox-inner { padding: 64px 12px 96px; }
  .lightbox-prev,
  .lightbox-next { top: auto; bottom: 24px; transform: none; }
  .lightbox-prev { left: calc(50% - 56px); }
  .lightbox-next { right: calc(50% - 56px); }
}
