/* =====================================================================
   ENG RESOURCES — Design System
   Environmental & Industrial Engineering
   Static site · Archivo (display) + Inter (body)
   ===================================================================== */

/* ----------  1. DESIGN TOKENS  ---------- */
:root {
  /* Brand palette (primary sampled from logo: #154f68) */
  --teal-900: #0a212b;   /* near-black ink */
  --teal-800: #0d2b38;   /* dark sections */
  --teal-700: #103e4f;
  --teal-600: #154f68;   /* PRIMARY brand */
  --teal-500: #1d6483;
  --teal-400: #3d8ea3;   /* water accent */
  --teal-200: #a9cdd6;
  --teal-100: #dcebee;

  --gold-600: #b78a32;
  --gold-500: #c9a24c;   /* ACCENT */
  --gold-400: #d9bb73;
  --gold-100: #f3e9d3;

  --sand-50:  #f7f5f0;   /* warm off-white surface */
  --sand-100: #efebe2;
  --white:    #ffffff;

  --ink:      #14201f;   /* body text on light */
  --ink-soft: #45575b;   /* secondary text on light */
  --line:     #e3ddd2;   /* hairline on light */
  --line-dk:  rgba(255,255,255,.14); /* hairline on dark */

  /* Semantic */
  --bg:            var(--sand-50);
  --surface:       var(--white);
  --text:          var(--ink);
  --text-muted:    var(--ink-soft);
  --primary:       var(--teal-600);
  --accent:        var(--gold-500);

  /* Typography */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Type scale (fluid) */
  --fs-xs:   0.78rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  --fs-xl:   clamp(1.6rem, 1.3rem + 1.5vw, 2.25rem);
  --fs-2xl:  clamp(2.1rem, 1.5rem + 3vw, 4rem);
  --fs-3xl:  clamp(3rem, 1.9rem + 7vw, 9rem);

  /* Spacing scale (8pt rhythm) */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4rem;
  --sp-7: 6rem;
  --sp-8: 8rem;

  /* Layout */
  --container: 1240px;
  --container-wide: 1440px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
  --radius-lg: 10px;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(10,33,43,.06), 0 2px 8px rgba(10,33,43,.05);
  --shadow-md: 0 8px 24px rgba(10,33,43,.10), 0 2px 6px rgba(10,33,43,.06);
  --shadow-lg: 0 24px 60px rgba(10,33,43,.18);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 320ms;

  /* z-index scale */
  --z-nav: 1000;
  --z-overlay: 1200;
}

/* ----------  2. RESET / BASE  ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }

::selection { background: var(--gold-500); color: var(--teal-900); }

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

/* ----------  3. TYPOGRAPHY  ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--teal-900);
}
.h-display {
  font-size: var(--fs-3xl);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: 0.88;
}
h2, .h2 { font-size: var(--fs-2xl); }
h3, .h3 { font-size: var(--fs-xl); }
h4, .h4 { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.01em; }

p { color: var(--text-muted); max-width: 65ch; }
.lead { font-size: var(--fs-md); line-height: 1.7; color: var(--ink-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-600);
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--gold-500);
}
.eyebrow.is-light { color: var(--gold-400); }

/* ----------  4. LAYOUT  ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-wide { max-width: var(--container-wide); }

.section { padding-block: clamp(4rem, 8vw, 8rem); }
.section-sm { padding-block: clamp(3rem, 5vw, 5rem); }

.section-head { max-width: 56ch; margin-bottom: var(--sp-5); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: var(--sp-2); }
.section-head p { margin-top: var(--sp-2); }

/* Dark theme section */
.theme-dark {
  background: var(--teal-800);
  color: var(--sand-100);
}
.theme-dark h1, .theme-dark h2, .theme-dark h3, .theme-dark h4 { color: var(--white); }
.theme-dark p { color: rgba(255,255,255,.72); }

.theme-deep { background: var(--teal-900); color: var(--sand-100); }
.theme-deep h2, .theme-deep h3 { color: var(--white); }
.theme-deep p { color: rgba(255,255,255,.7); }

.grid { display: grid; gap: var(--sp-4); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ----------  5. BUTTONS  ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.85em 1.8em;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
  will-change: transform;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.05em; height: 1.05em; }

.btn-gold { background: var(--gold-500); color: var(--teal-900); }
.btn-gold:hover { background: var(--gold-400); }

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

.btn-outline { border: 1.5px solid currentColor; color: var(--teal-700); }
.btn-outline:hover { background: var(--teal-700); color: var(--white); border-color: var(--teal-700); }

.btn-ghost-light { color: var(--white); border: 1.5px solid var(--line-dk); }
.btn-ghost-light:hover { background: var(--white); color: var(--teal-900); border-color: var(--white); }

.btn-link {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 600; font-size: var(--fs-sm); letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--gold-600);
}
.btn-link svg { width: 1.1em; height: 1.1em; transition: transform var(--dur) var(--ease); }
.btn-link:hover svg { transform: translateX(4px); }
.btn-link.is-light { color: var(--gold-400); }

/* ----------  6. HEADER / NAV  ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: var(--z-nav);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand img { height: 66px; width: auto; transition: height var(--dur) var(--ease); }
.site-header.is-solid .brand img { height: 54px; }
.brand .wordmark {
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  letter-spacing: 0.04em; text-transform: uppercase; line-height: 1; color: var(--white);
}

.nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.4vw, 2.5rem); }
.nav a {
  position: relative; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,.82); padding-block: 0.5rem; transition: color var(--dur) var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--gold-500); transition: width var(--dur) var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }

.header-cta { display: inline-flex; }
.nav > .btn { display: none; } /* in-nav CTA shown only in mobile menu */

/* Scrolled / solid state (also used on inner-page subpages) */
.site-header.is-solid { background: var(--teal-800); border-bottom-color: var(--line-dk); box-shadow: var(--shadow-md); }
.site-header.is-solid .bar { height: 72px; }

/* Mobile toggle */
.nav-toggle {
  display: none; width: 48px; height: 48px; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 26px; height: 2px; background: var(--white);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle span::before { transform: translateY(-8px); }
.nav-toggle span::after  { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: rotate(-45deg) translateY(-1px); }

/* ----------  7. HERO  ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--white); overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; background: var(--teal-900); }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,26,34,.62) 0%, rgba(8,26,34,.28) 30%, rgba(8,26,34,.45) 62%, rgba(8,26,34,.92) 100%),
    linear-gradient(90deg, rgba(8,26,34,.82) 0%, rgba(8,26,34,.32) 45%, rgba(8,26,34,0) 75%);
}
.hero-inner { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(3rem, 7vw, 6rem); padding-top: 9rem; }
.hero h1 { color: var(--white); max-width: 16ch; }
.hero .lead { color: rgba(255,255,255,.85); max-width: 46ch; margin-top: var(--sp-3); }
.hero .eyebrow { margin-bottom: var(--sp-3); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }

/* vertical side label like gmining */
.hero-sidetag {
  position: absolute; left: clamp(1rem,2vw,1.6rem); bottom: 22%; z-index: 1;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: var(--fs-xs); letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-size: var(--fs-xs); letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,.6);
}
.scroll-cue .line { width: 1px; height: 42px; background: linear-gradient(var(--gold-500), transparent); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0%,100%{transform:scaleY(.4);opacity:.4;transform-origin:top} 50%{transform:scaleY(1);opacity:1;transform-origin:top} }
@media (prefers-reduced-motion: reduce){ .scroll-cue .line{animation:none} }

/* Page hero (inner pages) */
.page-hero {
  position: relative; color: var(--white); padding-top: 11rem; padding-bottom: clamp(3rem,6vw,5rem);
  background: var(--teal-800); overflow: hidden;
}
.page-hero .hero-media { opacity: 1; }
.page-hero .hero-media::after {
  background: linear-gradient(180deg, rgba(13,43,56,.78), rgba(13,43,56,.55)),
              linear-gradient(90deg, rgba(13,43,56,.85), rgba(13,43,56,.35));
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); max-width: 18ch; }
.page-hero .lead { color: rgba(255,255,255,.8); margin-top: var(--sp-2); }
.breadcrumb { display: flex; gap: 0.6rem; align-items: center; font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: var(--sp-3); }
.breadcrumb a:hover { color: var(--gold-400); }

/* ----------  8. INTRO STATEMENT  ---------- */
.statement { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xl); line-height: 1.25; letter-spacing: -0.01em; color: var(--teal-900); max-width: 24ch; }
.statement em { color: var(--gold-600); font-style: normal; }

/* ----------  9. SERVICE CARDS  ---------- */
.service-card {
  position: relative; display: flex; flex-direction: column; gap: var(--sp-2);
  padding: var(--sp-4); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  overflow: hidden; height: 100%;
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold-500);
  transform: scaleY(0); transform-origin: top; transition: transform var(--dur) var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card:hover::before { transform: scaleY(1); }
.service-card .num { font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 700; color: var(--gold-600); letter-spacing: 0.1em; }
.service-card .icon { width: 46px; height: 46px; color: var(--teal-600); }
.service-card h3 { font-size: var(--fs-lg); }
.service-card p { font-size: var(--fs-sm); }
.service-card .btn-link { margin-top: auto; padding-top: var(--sp-1); }

/* ----------  10. STATS BAND  ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.stat { border-left: 1px solid var(--line-dk); padding-left: var(--sp-3); }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-2xl); line-height: 1; color: var(--white); letter-spacing: -0.02em; }
.stat .num .unit { color: var(--gold-500); }
.stat .label { margin-top: var(--sp-2); font-size: var(--fs-sm); color: rgba(255,255,255,.65); letter-spacing: 0.02em; }

/* ----------  11. FEATURE / SPLIT  ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
/* Pinned intro column — desktop only; static on mobile so stacked
   content never scrolls underneath it */
.split-sticky { position: sticky; top: 110px; }
.split.is-reverse .split-media { order: 2; }
.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform 1.2s var(--ease); }
.media-frame:hover img { transform: scale(1.04); }
.media-frame .tag {
  position: absolute; left: var(--sp-3); bottom: var(--sp-3); z-index: 2;
  background: rgba(10,33,43,.7); backdrop-filter: blur(6px); color: var(--white);
  padding: 0.5rem 1rem; border-radius: var(--radius); font-size: var(--fs-xs);
  letter-spacing: 0.14em; text-transform: uppercase;
}
.feature-list { display: grid; gap: var(--sp-2); margin-top: var(--sp-3); }
.feature-list li { display: flex; gap: 0.8rem; align-items: flex-start; color: var(--text-muted); }
.feature-list svg { flex: none; width: 22px; height: 22px; color: var(--gold-600); margin-top: 2px; }
.theme-dark .feature-list svg { color: var(--gold-500); }
.theme-dark .feature-list li { color: rgba(255,255,255,.78); }

/* ----------  12. CASE STUDY CARDS  ---------- */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
.case-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 380px; display: flex; align-items: flex-end; color: var(--white); }
.case-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); z-index: 0; }
.case-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,33,43,.05) 30%, rgba(10,33,43,.92) 100%); z-index: 1; }
.case-card:hover img { transform: scale(1.06); }
.case-card .body { position: relative; z-index: 2; padding: var(--sp-4); }
.case-card .meta { font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-400); margin-bottom: var(--sp-1); }
.case-card h3 { color: var(--white); font-size: var(--fs-lg); }
.case-card .arrow { position: absolute; top: var(--sp-3); right: var(--sp-3); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-dk); display: grid; place-items: center; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.case-card:hover .arrow { background: var(--gold-500); border-color: var(--gold-500); color: var(--teal-900); }

/* filter bar */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: var(--sp-4); }
.filter-btn {
  padding: 0.55rem 1.2rem; border-radius: 999px; border: 1.5px solid var(--line);
  font-size: var(--fs-sm); font-weight: 500; color: var(--ink-soft);
  transition: all var(--dur) var(--ease);
}
.filter-btn:hover { border-color: var(--teal-600); color: var(--teal-700); }
.filter-btn.is-active { background: var(--teal-600); color: var(--white); border-color: var(--teal-600); }
.case-card.is-hidden { display: none; }

/* ----------  13. LOCATIONS / MAP  ---------- */
.map-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
#map { width: 100%; height: clamp(360px, 52vh, 560px); background: var(--teal-800); z-index: 1; }
.leaflet-container { font-family: var(--font-body); }
.eng-pin {
  width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--teal-600); border: 2px solid var(--white); box-shadow: var(--shadow-md);
  display: grid; place-items: center;
}
.eng-pin::after { content: ""; width: 8px; height: 8px; background: var(--white); border-radius: 50%; transform: rotate(45deg); }

/* Nashville = central hub: larger, gold, pulsing ring */
.eng-pin-hub {
  position: relative; width: 40px; height: 40px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--gold-500); border: 3px solid var(--white); box-shadow: var(--shadow-lg); display: grid; place-items: center;
}
.eng-pin-hub svg { width: 18px; height: 18px; transform: rotate(45deg); color: var(--teal-900); }
.eng-pin-hub::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%; transform: rotate(45deg);
  border: 2px solid var(--gold-500); animation: hubpulse 2.4s ease-out infinite;
}
@keyframes hubpulse { 0% { transform: rotate(45deg) scale(.7); opacity: .9; } 100% { transform: rotate(45deg) scale(1.9); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .eng-pin-hub::before { animation: none; opacity: .5; } }
.leaflet-tooltip.hub-tip {
  background: var(--teal-900); color: var(--white); border: none; box-shadow: var(--shadow-md);
  font-family: var(--font-body); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 8px;
}
.leaflet-tooltip.hub-tip::before { border-top-color: var(--teal-900); }
.leaflet-popup-content-wrapper { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 4px; }
.leaflet-popup-content { margin: 14px 16px; }
.map-popup .city { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--teal-700); text-transform: uppercase; letter-spacing: 0.02em; }
.map-popup .region { font-size: var(--fs-sm); color: var(--ink-soft); margin-top: 2px; }

.locations-list { display: grid; gap: 0; }
.location-row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
  padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); cursor: pointer;
  transition: padding-left var(--dur) var(--ease);
}
.location-row:first-child { border-top: 1px solid var(--line); }
.location-row:hover, .location-row.is-active { padding-left: 0.75rem; }
.location-row .city { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); color: var(--teal-900); }
.location-row .region { font-size: var(--fs-sm); color: var(--ink-soft); }
.location-row .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold-500); opacity: 0; transition: opacity var(--dur) var(--ease); }
.location-row:hover .dot, .location-row.is-active .dot { opacity: 1; }
/* dark-section variant */
.theme-deep .location-row, .theme-dark .location-row { border-bottom-color: var(--line-dk); }
.theme-deep .location-row:first-child, .theme-dark .location-row:first-child { border-top-color: var(--line-dk); }
.theme-deep .location-row .city, .theme-dark .location-row .city { color: var(--white); }
.theme-deep .location-row .region, .theme-dark .location-row .region { color: rgba(255,255,255,.6); }

/* HUB badge */
.hub-badge {
  display: inline-block; margin-left: 0.55rem; padding: 0.18rem 0.55rem; border-radius: 999px;
  background: var(--gold-500); color: var(--teal-900); font-family: var(--font-body);
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; vertical-align: 2px;
}

/* ----------  14. CTA BAND  ---------- */
.cta-band { position: relative; overflow: hidden; color: var(--white); }
.cta-band .hero-media::after { background: linear-gradient(90deg, rgba(10,33,43,.92), rgba(10,33,43,.55)); }
.cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; padding-block: clamp(3.5rem, 7vw, 6rem); }
.cta-inner h2 { color: var(--white); max-width: 16ch; }

/* ----------  15. FORMS  ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.field label .req { color: var(--gold-600); }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--fs-base); color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 0.85rem 1rem; min-height: 50px; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(29,100,131,.15);
}
.field .help { font-size: var(--fs-xs); color: var(--ink-soft); }
.form-note { font-size: var(--fs-sm); color: var(--ink-soft); }
.form-success { display: none; padding: var(--sp-3); border-radius: var(--radius-lg); background: var(--teal-100); border: 1px solid var(--teal-200); color: var(--teal-700); }
.form-success.is-shown { display: block; }

/* contact info cards */
.info-card { display: flex; gap: var(--sp-2); align-items: flex-start; padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
.info-card:last-child { border-bottom: none; }
.info-card .ic { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-100); color: var(--teal-700); }
.info-card .ic svg { width: 22px; height: 22px; }
.info-card h4 { font-size: var(--fs-base); margin-bottom: 2px; }
.info-card a, .info-card p { font-size: var(--fs-sm); color: var(--ink-soft); }
.info-card a:hover { color: var(--teal-700); }

/* ----------  16. VALUES / DIFFERENTIATORS  ---------- */
.value-card { padding: var(--sp-4) 0; border-top: 2px solid var(--teal-600); }
.value-card .num { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-xl); color: var(--teal-200); }
.theme-dark .value-card { border-top-color: var(--gold-500); }
.theme-dark .value-card .num { color: rgba(255,255,255,.25); }
.value-card h3 { margin: var(--sp-1) 0; font-size: var(--fs-lg); }

/* timeline (case study detail) */
.timeline { display: grid; gap: 0; }
.timeline-item { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-3); padding-bottom: var(--sp-4); position: relative; }
.timeline-item .step { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-lg); color: var(--gold-600); width: 3rem; }
.timeline-item::before { content: ""; position: absolute; left: 1.4rem; top: 2.6rem; bottom: 0; width: 2px; background: var(--line); }
.timeline-item:last-child::before { display: none; }
.timeline-item h4 { margin-bottom: 0.4rem; }

/* result metrics */
.result-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-4); }
.result { text-align: left; }
.result .num { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-2xl); color: var(--white); line-height: 1; }
.result .num .unit { color: var(--gold-500); }
.result .label { margin-top: var(--sp-1); font-size: var(--fs-sm); color: rgba(255,255,255,.7); }

/* ----------  17. FOOTER  ---------- */
.site-footer { background: var(--teal-900); color: rgba(255,255,255,.72); padding-top: var(--sp-7); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--sp-4); padding-bottom: var(--sp-6); border-bottom: 1px solid var(--line-dk); }
.footer-brand .wordmark { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--white); }
.footer-brand img { height: 74px; margin-bottom: var(--sp-2); }
.footer-brand p { font-size: var(--fs-sm); margin-top: var(--sp-2); max-width: 32ch; }
.footer-col h5 { font-size: var(--fs-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-400); margin-bottom: var(--sp-2); }
.footer-col ul { display: grid; gap: 0.7rem; }
.footer-col a { font-size: var(--fs-sm); color: rgba(255,255,255,.72); transition: color var(--dur) var(--ease); }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); flex-wrap: wrap; padding-block: var(--sp-3); font-size: var(--fs-xs); color: rgba(255,255,255,.5); letter-spacing: 0.02em; }

/* ----------  18. SCROLL REVEAL  ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .media-frame img, .case-card img { transition: none; }
}

/* ----------  19. UTILITIES  ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: var(--sp-2); } .mt-3 { margin-top: var(--sp-3); } .mt-4 { margin-top: var(--sp-4); } .mt-5 { margin-top: var(--sp-5); }
.maxw-prose { max-width: 60ch; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 2000; background: var(--gold-500); color: var(--teal-900); padding: 0.75rem 1.25rem; font-weight: 600; }
.skip-link:focus { left: 1rem; top: 1rem; }
.divider { height: 1px; background: var(--line); border: 0; }

/* ----------  HERO: floating card (gmining-style)  ---------- */

.hero-card {
  position: absolute; right: clamp(1rem,3vw,3rem); bottom: clamp(1.5rem,4vw,3rem); z-index: 2;
  width: min(380px, 80vw); background: var(--sand-50); color: var(--ink);
  padding: var(--sp-3) var(--sp-3) var(--sp-3); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); transition: transform var(--dur) var(--ease);
}
.hero-card:hover { transform: translateY(-3px); }
.hero-card .label { font-size: var(--fs-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-600); font-weight: 600; }
.hero-card .headline { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; line-height: 1.15; margin: 0.5rem 0 0.75rem; color: var(--teal-900); }
.hero-card .headline strong { color: var(--gold-600); }
.hero-card .go { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-700); }
.hero-card .go svg { width: 1.1em; height: 1.1em; color: var(--gold-600); transition: transform var(--dur) var(--ease); }
.hero-card:hover .go svg { transform: translateX(4px); }

/* subtle unifying grade over photographic frames */
.media-frame::after, .case-card::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(150deg, rgba(21,79,104,.16), rgba(8,26,34,.04) 55%, rgba(201,162,76,.08));
  mix-blend-mode: multiply;
}
.media-frame { isolation: isolate; }
.media-frame img { position: relative; z-index: 0; }

/* ----------  SERVICES: featured card  ---------- */
.svc-featured {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 0; margin-bottom: var(--sp-4);
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold-500);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
}
.svc-featured .body { padding: clamp(1.6rem, 3vw, 2.75rem); align-self: center; }
.svc-featured .num { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-sm); color: var(--gold-600); letter-spacing: 0.1em; }
.svc-featured h3 { font-size: var(--fs-xl); margin: 0.5rem 0 0.75rem; }
.svc-featured .media { position: relative; min-height: 260px; }
.svc-featured .media img { width: 100%; height: 100%; object-fit: cover; }
.svc-featured .pill { position: absolute; left: var(--sp-3); top: var(--sp-3); background: rgba(10,33,43,.72); backdrop-filter: blur(6px); color: #fff; padding: 0.4rem 0.85rem; border-radius: var(--radius); font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; }
@media (max-width: 880px) {
  .svc-featured { grid-template-columns: 1fr; }
  .svc-featured .media { order: -1; min-height: 220px; }
}

/* ----------  SERVICES INDEX (editorial list)  ---------- */
.svc-index { border-top: 1px solid var(--line); }
.svc-index li { border-bottom: 1px solid var(--line); }
.svc-index a { display: flex; align-items: center; gap: var(--sp-3); padding: clamp(1rem,2.4vw,1.6rem) 0; transition: padding-left var(--dur) var(--ease); }
.svc-index a:hover { padding-left: 0.85rem; }
.svc-index .n { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-sm); color: var(--gold-600); width: 2rem; letter-spacing: 0.05em; }
.svc-index .t { flex: 1; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); color: var(--teal-900); letter-spacing: -0.01em; }
.svc-index svg { width: 20px; height: 20px; color: var(--teal-400); opacity: 0; transform: translateX(-6px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), color var(--dur) var(--ease); }
.svc-index a:hover svg { opacity: 1; transform: none; color: var(--gold-600); }
.svc-index a:hover .t { color: var(--teal-600); }

/* ----------  CASE STUDY (single-scroll) PAGE  ---------- */
.cs-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--gold-500); width: 0; z-index: calc(var(--z-nav) + 1); transition: width 80ms linear; }

.cs-jump {
  position: sticky; top: 72px; z-index: 90; background: rgba(13,43,56,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-dk);
}
.cs-jump .inner { display: flex; gap: clamp(1rem,3vw,2.5rem); align-items: center; height: 58px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.cs-jump .inner::-webkit-scrollbar { width: 0; height: 0; display: none; }
.cs-jump a { font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,.6); white-space: nowrap; font-weight: 600; transition: color var(--dur) var(--ease); }
.cs-jump a:hover, .cs-jump a.is-active { color: var(--gold-400); }
.cs-jump .cs-count { color: var(--gold-500); font-family: var(--font-display); font-weight: 800; }

.cs { border-top: 1px solid var(--line); }
/* anchor offsets so deep-links clear the fixed header / sticky sub-nav */
section[id], .service-card[id], .svc-featured[id] { scroll-margin-top: 96px; }
.cs[id] { scroll-margin-top: 136px; }
.cs-headrow { display: flex; align-items: baseline; gap: var(--sp-3); flex-wrap: wrap; }
.cs-index { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.5rem,6vw,4.5rem); line-height: 1; color: var(--teal-100); -webkit-text-stroke: 1px var(--teal-200); }
.theme-deep .cs-index, .theme-dark .cs-index { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.3); }
.cs-tag { display: inline-block; padding: 0.3rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }

/* before/after metric table */
.metrics { width: 100%; border-collapse: collapse; margin-top: var(--sp-3); }
.metrics th, .metrics td { text-align: left; padding: 1rem 1rem; border-bottom: 1px solid var(--line); }
.metrics thead th { font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.metrics tbody th { font-weight: 600; color: var(--ink); font-family: var(--font-body); }
.metrics .v-before { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.metrics .v-after { color: var(--teal-700); font-weight: 700; font-variant-numeric: tabular-nums; }
.metrics .v-after .arrow { color: var(--gold-600); margin-right: 0.35rem; }
.improve { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.6rem; border-radius: 999px; background: var(--teal-100); color: var(--teal-700); font-size: var(--fs-sm); font-weight: 700; font-variant-numeric: tabular-nums; }
.improve svg { width: 0.9em; height: 0.9em; }

/* big result tiles */
.result-tiles { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-3); }
.result-tile { padding: var(--sp-3) 0; border-top: 2px solid var(--gold-500); }
.result-tile .big { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.2rem,4vw,3.2rem); line-height: 1; color: var(--white); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.result-tile .big .unit { color: var(--gold-500); }
.result-tile .cap { margin-top: var(--sp-2); font-size: var(--fs-sm); color: rgba(255,255,255,.7); }

.approach-list { display: grid; gap: var(--sp-2); margin-top: var(--sp-2); }
.approach-list li { display: flex; gap: 0.8rem; align-items: flex-start; color: var(--text-muted); }
.approach-list .k { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--teal-100); color: var(--teal-700); display: grid; place-items: center; }
.approach-list .k svg { width: 16px; height: 16px; }

/* repeating case-study block (Challenge / Approach / Results) */
.cs-meta { font-size: var(--fs-sm); color: var(--ink-soft); margin-top: 0.5rem; }
.cs-sub { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-600); margin-bottom: var(--sp-1); }
.cs-body p + .cs-sub { margin-top: var(--sp-4); }
.cs-results { display: grid; gap: var(--sp-3); }
.cs-result { border-left: 3px solid var(--gold-500); padding-left: var(--sp-2); }
.cs-result .n { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; color: var(--teal-700); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.cs-result .n .unit { color: var(--gold-600); }
.cs-result .n .ba { color: var(--ink-soft); font-size: 0.55em; font-weight: 700; }
.cs-result .l { font-size: var(--fs-sm); color: var(--ink-soft); margin-top: 0.35rem; }
.cs-checks { display: grid; gap: 0.65rem; margin-top: var(--sp-3); }
.cs-checks li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--text-muted); }
.cs-checks svg { flex: none; width: 18px; height: 18px; color: var(--teal-500); margin-top: 2px; }

/* before/after bar charts */
.cs-chart { display: grid; gap: var(--sp-4); }
.cm-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.6rem; }
.cm-title { font-weight: 600; color: var(--ink); font-size: var(--fs-sm); }
.cm-delta { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-md); color: var(--teal-700); letter-spacing: -0.01em; white-space: nowrap; }
.cm-line { display: grid; grid-template-columns: 58px 1fr 58px; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.cm-tag { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); }
.cm-track { height: 14px; background: var(--line); border-radius: 999px; overflow: hidden; }
.cm-fill { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--teal-400); transition: width 1.1s var(--ease); }
.cm-fill.is-after { background: linear-gradient(90deg, var(--gold-600), var(--gold-400)); }
.cm-line b { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); font-size: var(--fs-sm); text-align: right; }
.reveal.is-in .cm-fill { width: var(--w); }
@media (prefers-reduced-motion: reduce) { .cm-fill { transition: none; } }

.cs-figures { display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-5); margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid var(--line); }
.cs-figure b { font-family: var(--font-display); font-weight: 900; font-size: var(--fs-lg); color: var(--teal-700); display: block; line-height: 1; font-variant-numeric: tabular-nums; }
.cs-figure b .u { color: var(--gold-600); display: inline; white-space: nowrap; }
.cs-figure > span { font-size: var(--fs-xs); color: var(--ink-soft); display: block; margin-top: 0.35rem; max-width: 22ch; }

/* ----------  20. RESPONSIVE  ---------- */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
  .stats { grid-template-columns: repeat(2,1fr); gap: var(--sp-5) var(--sp-4); }
  .cols-4, .result-tiles { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 880px) {
  /* sticky column is a desktop pattern — unpin when columns stack */
  .split-sticky { position: static; top: auto; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: 84px 0 auto 0; flex-direction: column; align-items: flex-start;
    gap: 0; background: var(--teal-800); border-bottom: 1px solid var(--line-dk);
    padding: var(--sp-2) var(--gutter) var(--sp-4); transform: translateY(-120%);
    transition: transform var(--dur) var(--ease); box-shadow: var(--shadow-lg);
    max-height: calc(100dvh - 84px); overflow-y: auto;
  }
  .site-header.is-solid .nav { inset: 72px 0 auto 0; max-height: calc(100dvh - 72px); }
  .nav.is-open { transform: translateY(0); }
  .nav a { width: 100%; padding-block: 1rem; border-bottom: 1px solid var(--line-dk); font-size: var(--fs-md); }
  .nav a::after { display: none; }
  .nav > .btn { display: inline-flex; margin-top: var(--sp-2); width: 100%; }
  .split, .cols-2, .cols-3, .case-grid, .form-grid, .result-grid { grid-template-columns: 1fr; }
  .split.is-reverse .split-media { order: 0; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  /* hero floating card → flows under content on tablet/mobile
     (stack the flex children so the card sits below the text, full width) */
  .hero { min-height: auto; flex-direction: column; align-items: stretch; }
  .hero-inner { padding-top: 7.5rem; padding-bottom: 2rem; }
  .hero h1.h-display, .page-hero h1.h-display { font-size: clamp(2.25rem, 8.6vw, 3.6rem); }
  /* desktop-only floating card — the "View Case Study" button covers it on mobile */
  .hero-card { display: none; }
  .hero-sidetag { display: none; }
  .scroll-cue { display: none; }
  .result-tiles { grid-template-columns: repeat(2,1fr); }
  /* stack the before/after table */
  .metrics thead { display: none; }
  .metrics tbody th, .metrics td { display: block; border: none; padding: 0.15rem 0; }
  .metrics tbody tr { display: block; padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); }
  .metrics tbody th { font-size: var(--fs-md); padding-bottom: 0.4rem; }
  .metrics .v-before::before { content: "Before: "; color: var(--ink-soft); font-weight: 400; }
  .metrics .v-after::before { content: "After: "; color: var(--ink-soft); font-weight: 400; }
}
@media (max-width: 560px) {
  .cols-4, .stats, .result-tiles { grid-template-columns: 1fr; }
  .hero-sidetag { display: none; }
  .hero h1.h-display, .page-hero h1.h-display { font-size: clamp(1.95rem, 8.4vw, 2.6rem); letter-spacing: -0.02em; }
  .stat { border-left: none; border-top: 1px solid var(--line-dk); padding-left: 0; padding-top: var(--sp-2); }
  .footer-top { grid-template-columns: 1fr; }
}
