/* =====================================================================
   Stampede Energy Services — site styles
   Palette: deep navy + steel blue (engineering), safety-orange accent used
   sparingly for calls to action and highlights, cool grays. The logo keeps
   its own colors. Type: Barlow Condensed (display) + Barlow (text).
   ===================================================================== */

:root {
  --ink: #0b1f33;          /* deep navy: headers, dark sections */
  --charcoal: #10263d;
  --graphite: #173453;
  --slate: #2a4a6b;
  --brand: #2c5f8a;        /* steel blue: structure, bullets, bands */
  --brand-deep: #1f4668;
  --accent: #e4761b;       /* safety orange: CTAs + highlights only */
  --accent-deep: #b85c0f;  /* orange for small text on light backgrounds */
  --accent-bright: #f28c2e;
  --steel: #7c8b99;
  --dust: #b9c4ce;
  --sand: #f1f4f7;
  --paper: #ffffff;
  --text: #1b2630;
  --muted: #5b6b7a;
  --line: #d9e0e7;
  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --max: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 4px;
  --shadow: 0 10px 30px rgba(11, 31, 51, .14);
  --plate: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M7 17l10-10M31 41l10-10' stroke-opacity='.075'/%3E%3Cpath d='M9 19l10-10M33 43l10-10' stroke-opacity='.03'/%3E%3C/g%3E%3C/svg%3E");
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.9rem, 7.5vw, 5.6rem); font-weight: 900; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
h4 { font-size: 1.2rem; letter-spacing: .04em; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 62ch; }
.dark .lede { color: #c3ccd5; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--accent); color: #fff; padding: .6rem 1rem; font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.dark { background: var(--charcoal); color: #e3e9ef; }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.dark.plate { background-image: var(--plate), linear-gradient(160deg, #17334f 0%, #0a1b2d 100%); }
.sand { background: var(--sand); }

/* ---- eyebrow + section heads ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
  margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 2rem; height: 3px; background: var(--accent); }
.eyebrow { color: var(--accent-deep); }
.dark .eyebrow { color: #f0a05a; }
.dark .eyebrow::before { background: #f0a05a; }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lede { margin-inline: auto; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.6rem; min-height: 3.1rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  border: 2px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--accent { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn--accent:hover { background: var(--accent-bright); border-color: var(--accent-bright); }
.btn--brand { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn--brand:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn--ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--ink:hover { background: var(--graphite); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--ghost-ink { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost-ink:hover { background: var(--ink); color: #fff; }
.btn svg { width: 1.1em; height: 1.1em; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---- header ---- */
.topbar { height: 4px; background: linear-gradient(90deg, var(--brand) 0 70%, var(--accent) 70% 85%, var(--brand) 85%); }
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 31, 51, .96); backdrop-filter: blur(8px);
  color: #fff; border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 78px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 56px; width: auto; }
.site-header.is-compact .wrap { min-height: 64px; }
.site-header.is-compact .brand img { height: 46px; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav a {
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: .1em;
  text-transform: uppercase; text-decoration: none; color: #d5dde5; padding: .35rem 0; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px;
  background: var(--accent-bright); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { padding: .65rem 1.1rem; min-height: 2.6rem; font-size: 1.05rem; }
.nav a.btn--accent, .nav a.btn--accent:hover { color: var(--ink); }
.nav .btn::after { display: none; }
.nav-toggle {
  display: none; background: none; border: 2px solid rgba(255,255,255,.35); color: #fff;
  width: 46px; height: 42px; border-radius: var(--radius); cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px auto; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-top: 1px solid rgba(255,255,255,.08);
    padding: .5rem var(--gutter) 1.25rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1.25rem; }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 1rem; border-bottom: 0; }
}

/* ---- hero ---- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background-image: var(--plate), radial-gradient(1200px 600px at 85% 30%, #1e3d5c 0%, transparent 60%), linear-gradient(160deg, #152f4a 0%, #0b1f33 100%);
  padding-block: clamp(4.5rem, 11vw, 9rem) clamp(3.5rem, 8vw, 6rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,31,51,.55) 0%, rgba(11,31,51,0) 60%);
}
.hero .wrap { position: relative; }
.hero__mark {
  position: absolute; right: -6%; top: 50%; transform: translateY(-52%);
  width: clamp(360px, 52vw, 820px); opacity: .1; pointer-events: none; z-index: 0;
  filter: drop-shadow(0 0 40px rgba(0,0,0,.6));
}
.hero__content { position: relative; z-index: 1; max-width: 720px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--accent-bright); }
.hero .lede { color: #d5dde5; font-size: clamp(1.15rem, 1.8vw, 1.4rem); margin-bottom: 2rem; }
.hero__lines { position: absolute; left: 0; bottom: 0; width: 100%; height: 6px; background: linear-gradient(90deg, var(--brand) 0 34%, var(--accent) 34% 37%, var(--brand) 37% 100%); opacity: .95; }

.page-hero { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(3rem, 6vw, 4.5rem); }
.page-hero h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); }

/* ---- stat strip ---- */
.stats { background: var(--ink); color: #fff; border-top: 1px solid rgba(255,255,255,.06); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 1.4rem 1.25rem; border-left: 1px solid rgba(255,255,255,.1); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: #fff; line-height: 1; margin-bottom: .3rem; }
.stat > span { color: #a7b4c0; font-size: .95rem; }
@media (max-width: 900px) { .stats .wrap { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(3) { border-left: 0; padding-left: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); } }
@media (max-width: 480px) { .stats .wrap { grid-template-columns: 1fr; } .stat { border-left: 0; padding-left: 0; border-bottom: 1px solid rgba(255,255,255,.1); } .stat:last-child { border-bottom: 0; } }

/* ---- cards / grids ---- */
.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--ink);
  padding: clamp(1.5rem, 3vw, 2.25rem); position: relative; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-top-color: var(--accent); }
.card__icon { width: 56px; height: 56px; color: var(--accent); margin-bottom: 1.1rem; }
.card__icon svg { width: 100%; height: 100%; }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--muted); flex: 1; }
.card .more { font-family: var(--font-display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; gap: .4rem; margin-top: .75rem; }
.card .more:hover { color: var(--accent-deep); }
.card .more svg { width: 1em; height: 1em; transition: transform .15s ease; }
.card .more:hover svg { transform: translateX(4px); }
.card--dark { background: var(--graphite); border-color: #264b6e; border-top-color: var(--accent); color: #e3e9ef; }
.card--dark h3 { color: #fff; }
.card--dark p { color: #bcc7d1; }

/* ---- feature list (why us) ---- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem) clamp(2rem, 4vw, 4rem); }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }
.feature { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; }
.feature__num { font-family: var(--font-display); font-weight: 900; font-size: 2.6rem; line-height: 1; color: var(--accent); letter-spacing: -.02em; min-width: 3.2rem; }
.feature h3 { margin-bottom: .35rem; }
.feature p { color: var(--muted); margin: 0; }
.dark .feature p { color: #bcc7d1; }

/* ---- process / approach ---- */
.process { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.process::before { content: ""; position: absolute; left: 0; right: 0; top: 34px; height: 3px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.step { position: relative; padding: 0 1.4rem 0 0; }
.step__badge {
  width: 70px; height: 70px; display: grid; place-items: center; position: relative; z-index: 1;
  background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 900; font-size: 1.8rem;
  border: 4px solid var(--accent); margin-bottom: 1.1rem;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.dark .step__badge { background: var(--accent); border-color: #fff; color: var(--ink); }
.step h3 { margin-bottom: .45rem; }
.step p { color: var(--muted); margin: 0; }
.dark .step p { color: #bcc7d1; }
@media (max-width: 960px) { .process { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; } .process::before { display: none; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* ---- split (about story, service detail) ---- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split, .split.reverse { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }
.panel {
  background: var(--ink); color: #fff; padding: clamp(1.5rem, 3.5vw, 2.75rem); position: relative; overflow: hidden;
  background-image: var(--plate), linear-gradient(160deg, #183553, #0b1f33);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}
.panel::after { content: ""; position: absolute; left: 0; top: 0; width: 6px; height: 100%; background: var(--accent); }
.panel h3 { color: #fff; }
.panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.panel li { padding-left: 1.6rem; position: relative; color: #d5dde5; }
.panel li::before { content: ""; position: absolute; left: 0; top: .55em; width: .8rem; height: .8rem; background: var(--accent-bright); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 0); transform: rotate(45deg) scale(.7); }
.panel.light { background: var(--sand); color: var(--text); background-image: none; }
.panel.light h3 { color: var(--ink); }
.panel.light li { color: var(--text); }

.check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.check-list li { padding-left: 1.9rem; position: relative; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 1.05rem; height: 1.05rem; background: var(--brand);
  clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px));
}
.check-list li::after { content: ""; position: absolute; left: .32rem; top: .5em; width: .28rem; height: .5rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check-list.cols { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .check-list.cols { grid-template-columns: 1fr; } }

/* ---- service detail sections ---- */
.service { scroll-margin-top: 140px; }
.service + .service { border-top: 1px solid var(--line); }
.service__head { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; margin-bottom: 2rem; }
.service__icon { width: 84px; height: 84px; background: var(--ink); color: #fff; display: grid; place-items: center; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px)); }
.service__icon svg { width: 48px; height: 48px; }
.service__head h2 { margin: 0; }
.service__head .kicker { color: var(--accent-deep); font-family: var(--font-display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .95rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.tag { font-family: var(--font-display); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .9rem; padding: .35rem .7rem; background: var(--sand); border: 1px solid var(--line); color: var(--text); }

.subnav { position: sticky; top: var(--header-h, 65px); z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 0; overflow-x: auto; }
.subnav a { flex: 0 0 auto; padding: 1rem 1.25rem; text-decoration: none; font-family: var(--font-display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.subnav a:first-child { padding-left: 0; }
.subnav a:hover, .subnav a.is-active { color: var(--ink); border-bottom-color: var(--accent); }

/* ---- quotes ---- */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }
blockquote { margin: 0; padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--graphite); border-left: 5px solid var(--accent); color: #e3e9ef; position: relative; }
blockquote p { font-size: 1.2rem; line-height: 1.5; margin-bottom: 1rem; }
blockquote p::before { content: "\201C"; font-family: var(--font-display); font-size: 3rem; color: var(--accent-bright); line-height: 0; vertical-align: -1.2rem; margin-right: .25rem; }
blockquote cite { font-style: normal; font-family: var(--font-display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .95rem; color: #a7b4c0; }

/* ---- values ---- */
.value { border-top: 4px solid var(--brand); padding-top: 1.1rem; }
.value h3 { margin-bottom: .4rem; }
.value p { color: var(--muted); margin: 0; }

/* ---- map ---- */
.map-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
@media (max-width: 900px) { .map-wrap { grid-template-columns: 1fr; } }
.tx-map { width: 100%; max-width: 520px; margin-inline: auto; }
.tx-map .state { fill: #1e3d5c; stroke: #3b6a95; stroke-width: 1.5; }
.tx-map .pin circle { fill: var(--accent-bright); stroke: #fff; stroke-width: 2; }
.tx-map .pin text { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; fill: #fff; }
.tx-map .ring { fill: none; stroke: var(--accent-bright); stroke-width: 1.5; opacity: .5; }
.region-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem 1.5rem; }
@media (max-width: 520px) { .region-list { grid-template-columns: 1fr; } }
.region-list li { padding-left: 1.4rem; position: relative; }
.region-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: .65rem; height: .65rem; background: var(--accent-bright); transform: rotate(45deg); }
.region-list strong { display: block; font-family: var(--font-display); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 1.1rem; color: #fff; }
.region-list span { color: #bcc7d1; font-size: .95rem; }

/* ---- team ---- */
.person { background: var(--paper); border: 1px solid var(--line); padding: 1.6rem; display: flex; gap: 1.1rem; align-items: flex-start; }
.person__avatar { flex: 0 0 64px; width: 64px; height: 64px; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); }
.person h3 { font-size: 1.35rem; margin-bottom: .15rem; }
.person .role { color: var(--accent-deep); font-family: var(--font-display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .9rem; margin-bottom: .5rem; }
.person p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---- CTA band ---- */
.cta-band { background: var(--brand); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: var(--plate); opacity: .8; }
.cta-band .wrap { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; align-items: center; padding-block: clamp(2.5rem, 5vw, 4rem); }
.cta-band h2 { color: #fff; margin: 0 0 .3rem; }
.cta-band p { color: #dbe7f2; margin: 0; max-width: 60ch; }
.cta-band .btn--ink { border-color: var(--ink); }
@media (max-width: 760px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ---- contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { display: grid; gap: 1.4rem; }
.contact-item { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.contact-item__icon { width: 44px; height: 44px; background: var(--ink); color: #fff; display: grid; place-items: center; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item h3 { font-size: 1.15rem; letter-spacing: .08em; margin-bottom: .2rem; }
.contact-item p, .contact-item a { margin: 0; color: var(--muted); }
.contact-item a { color: var(--ink); text-decoration: none; font-weight: 600; }
.contact-item a:hover { color: var(--accent-deep); }

.form { background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--brand); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow); }
.form h2 { font-size: 2rem; margin-bottom: .25rem; }
.form > p { color: var(--muted); margin-bottom: 1.5rem; }
.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-family: var(--font-display); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .95rem; }
.field label .req { color: var(--accent-deep); }
.field input, .field select, .field textarea {
  font: inherit; width: 100%; padding: .8rem .9rem; border: 1px solid #c3ccd5; border-radius: var(--radius); background: #fff; color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(44, 95, 138, .25); }
.field textarea { min-height: 140px; resize: vertical; }
.field .error { color: var(--accent); font-size: .9rem; display: none; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--accent); }
.field.is-invalid .error { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form__note { font-size: .9rem; color: var(--muted); margin-top: 1rem; }
.form__success { display: none; padding: 1.5rem; background: var(--sand); border-left: 5px solid var(--brand); }
.form__success.is-visible { display: block; }
.form__success h3 { margin-bottom: .4rem; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ---- footer ---- */
.site-footer { background: var(--ink); color: #b3bfca; }
.site-footer .wrap { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
@media (max-width: 900px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.site-footer img { height: 72px; width: auto; margin-bottom: 1rem; }
.site-footer h4 { color: #fff; margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a { color: #d5dde5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--accent-bright); }
.site-footer p { margin: 0 0 .5rem; max-width: 40ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; padding-block: 1.25rem; font-size: .9rem; color: #8a98a6; }
.footer-bottom .wrap strong { color: #d5dde5; font-family: var(--font-display); letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }

/* ---- reveal animation ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .btn, .card { transition: none; } }

/* ---- 404 ---- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound h1 { font-size: clamp(4rem, 14vw, 9rem); color: var(--accent); }
.notfound .lede { margin-inline: auto; }
.notfound .eyebrow { justify-content: center; }

/* ---- utilities ---- */
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.center { text-align: center; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }
.dark .muted { color: #a7b4c0; }

/* =====================================================================
   Illustrations
   ===================================================================== */
.illo { width: 100%; height: auto; }
.illo-frame { border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
.illo-frame.dark { border-color: #1e3d5c; }
.illo-caption { font-family: var(--font-display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .9rem; color: var(--muted); margin-top: .75rem; }
.dark .illo-caption { color: #a7b4c0; }

/* blueprint (draw-in on reveal) */
.blueprint { width: 100%; height: auto; font-family: var(--font-display); }
.blueprint .pipe-outer { fill: none; stroke: #e6eef5; stroke-width: 30; stroke-linejoin: round; stroke-linecap: butt; }
.blueprint .pipe-inner { fill: none; stroke: #10263d; stroke-width: 24; stroke-linejoin: round; }
.blueprint .pipe-hi { fill: none; stroke: #fff; stroke-opacity: .35; stroke-width: 2.5; stroke-linejoin: round; }
.blueprint .pipe-lo { fill: none; stroke: #fff; stroke-opacity: .12; stroke-width: 2; stroke-linejoin: round; }
.blueprint .fill { fill: #14304d; stroke: #dfe6ee; stroke-width: 2; stroke-linejoin: round; }
.blueprint .hole { fill: #0a1b2d; stroke: #dfe6ee; stroke-width: 1.2; }
.blueprint .dim text, .blueprint .weld text { fill: #dfe6ee; font-size: 14px; font-weight: 700; letter-spacing: .06em; }
.blueprint .dim .ext { fill: none; stroke: #8fa3b8; stroke-width: 1; stroke-dasharray: 3 3; }
.blueprint .dim .dimline { fill: none; stroke: #8fa3b8; stroke-width: 1.2; }
.blueprint .dim .arr { fill: #8fa3b8; }
.blueprint .weld .bead { fill: var(--accent-bright); stroke: #fff; stroke-width: 1.5; }
.blueprint .weld .leader { fill: none; stroke: var(--accent-bright); stroke-width: 1.2; }
.blueprint .weld .tag { fill: #0e2238; stroke: var(--accent-bright); stroke-width: 1.5; }
.blueprint .weld text { font-size: 11px; fill: #fff; }
.blueprint .tb text { fill: #cfd8e3; font-size: 12px; letter-spacing: .06em; font-weight: 600; }
.blueprint .tb .tb-title { fill: #fff; font-weight: 800; font-size: 12.5px; }
.blueprint .stamp-t { fill: #e4761b; font-weight: 800; font-size: 14px; letter-spacing: .14em; }
.blueprint .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.blueprint .dim, .blueprint .weld, .blueprint .tb, .blueprint .stamp { opacity: 0; }
.blueprint.is-in .draw { animation: bp-draw 1.4s cubic-bezier(.4,0,.2,1) forwards; animation-delay: var(--d, 0s); }
.blueprint.is-in .dim, .blueprint.is-in .weld, .blueprint.is-in .tb, .blueprint.is-in .stamp { animation: bp-fade .5s ease forwards; animation-delay: var(--d, 0s); }
.blueprint .stamp { transform-origin: 77px 29px; }
.blueprint.is-in .stamp { animation: bp-stamp .45s cubic-bezier(.2,1.4,.4,1) forwards; animation-delay: var(--d, 0s); }
@keyframes bp-draw { to { stroke-dashoffset: 0; } }
@keyframes bp-fade { to { opacity: 1; } }
@keyframes bp-stamp { from { opacity: 0; transform: scale(1.8) rotate(-8deg); } to { opacity: 1; transform: scale(1) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) {
  .blueprint .draw { stroke-dasharray: none; stroke-dashoffset: 0; }
  .blueprint .dim, .blueprint .weld, .blueprint .tb, .blueprint .stamp { opacity: 1; animation: none !important; }
}

/* HDD profile */
.diagram { width: 100%; height: auto; font-family: var(--font-display); }
.hdd .soil.s1 { fill: #e9e2d6; } .hdd .soil.s2 { fill: #dccfbc; } .hdd .soil.s3 { fill: #cdbfa9; } .hdd .soil.s4 { fill: #b9ab97; }
.hdd .water { fill: url(#hdd-water); }
.hdd .ripple { fill: none; stroke: #fff; stroke-opacity: .5; stroke-width: 1.2; }
.hdd .surface { fill: none; stroke: #1e3d5c; stroke-width: 2.5; }
.hdd .bore-plan { fill: none; stroke: #7c8b99; stroke-width: 1.5; stroke-dasharray: 6 5; }
.hdd .bore-pilot { fill: none; stroke: #14304d; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: hdd-pilot 14s linear infinite; }
.hdd .bore-pipe { fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: hdd-pipe 14s linear infinite; }
.hdd .drillhead circle { fill: var(--brand); stroke: #fff; stroke-width: 2; }
.hdd .drillhead .core { fill: var(--accent-bright); stroke: none; }
.hdd .rig rect, .hdd .rig .mast { fill: #14304d; }
.hdd .rig .rod { stroke: #7c8b99; }
.hdd .rig .wheel { fill: #2a4a6b; stroke: #14304d; stroke-width: 2; }
.hdd .pipe-stage { stroke: var(--accent); stroke-width: 8; stroke-linecap: round; fill: none; }
.hdd .roller { stroke: #14304d; stroke-width: 2.5; fill: none; }
.hdd .lbl text { fill: #14304d; font-weight: 800; font-size: 15px; letter-spacing: .12em; }
.hdd .lbl .lbl-lite { fill: #2a3a44; font-size: 12px; }
.hdd .dim path { fill: none; stroke: #5b6b7a; stroke-width: 1.2; }
.hdd .dim .ext { stroke-dasharray: 3 3; }
.hdd .dim .dim-t { fill: #5b6b7a; font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.hdd .legend text { fill: #5b6b7a; font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.hdd .legend path { fill: none; stroke-width: 3; }
.hdd .legend .lg-plan { stroke: #7c8b99; stroke-width: 1.5; stroke-dasharray: 5 4; }
.hdd .legend .lg-pilot { stroke: #14304d; }
.hdd .legend .lg-pipe { stroke: var(--accent); stroke-width: 6; }
@keyframes hdd-pilot { 0% { stroke-dashoffset: 1; } 38% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; } }
@keyframes hdd-pipe { 0%, 44% { stroke-dashoffset: 1; } 82% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .hdd .bore-pilot, .hdd .bore-pipe { animation: none; stroke-dashoffset: 0; } }

/* pipeline spread */
.spread .stages circle { fill: var(--ink); }
.spread .stages text { fill: #fff; font-weight: 800; font-size: 14px; }
.spread .stages .st { fill: #14304d; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.spread .stage-line { stroke: var(--brand); stroke-width: 3; }
.spread .earth { fill: #d9cdb9; }
.spread .ground { fill: none; stroke: #1e3d5c; stroke-width: 2.5; }
.spread .backfill { fill: #c4b49c; }
.spread .row .brush { fill: none; stroke: #7c8b99; stroke-width: 1.5; }
.spread .row .stake { fill: none; stroke: var(--accent); stroke-width: 2; }
.spread .pipe { fill: none; stroke: #14304d; stroke-width: 12; stroke-linecap: round; }
.spread .pipe-hi { fill: none; stroke: #fff; stroke-opacity: .35; stroke-width: 2; stroke-linecap: round; }
.spread .joint { stroke: var(--accent-bright); stroke-width: 3; }
.spread .skid path { fill: #8a6d4a; stroke: #5a4630; stroke-width: 1.2; }
.spread .coat { fill: url(#sp-coat); }
.spread .welder { fill: none; stroke: #14304d; stroke-width: 3; stroke-linecap: round; }
.spread .spark .glow { fill: url(#sp-spark); animation: sp-flicker .35s steps(2) infinite; }
.spread .spark .dot { fill: #fff; }
.spread .spark .rays { stroke: #ffd27a; stroke-width: 2; stroke-linecap: round; animation: sp-flicker .25s steps(2) infinite reverse; }
.spread .boom-base rect { fill: #14304d; }
.spread .boom { stroke: #14304d; stroke-width: 6; stroke-linecap: round; }
.spread .cable { stroke: #5b6b7a; stroke-width: 1.5; }
.spread .strap { fill: none; stroke: #5b6b7a; stroke-width: 1.5; }
.spread .grass { fill: none; stroke: #4f7a3a; stroke-width: 1.6; }
.spread .marker { stroke: var(--accent); stroke-width: 2; }
.spread .cap text { fill: #5b6b7a; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
@keyframes sp-flicker { 0% { opacity: 1; transform: scale(1); } 100% { opacity: .55; transform: scale(.85); } }
@media (prefers-reduced-motion: reduce) { .spread .spark * { animation: none; } }

/* ---- code-reference tag links ---- */
a.tag { text-decoration: none; transition: border-color .15s ease, color .15s ease, background-color .15s ease; }
a.tag::after { content: " \2197"; font-size: .8em; color: var(--brand); }
a.tag:hover { border-color: var(--brand); color: var(--brand); background: #fff; }

/* ---- calculators ---- */
.calc { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--brand); padding: clamp(1.25rem, 2.5vw, 2rem); box-shadow: var(--shadow); }
.sand .calc { box-shadow: none; }
.calc h3 { margin-bottom: 1rem; }
.calc__controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem 1.25rem; margin-bottom: 1.25rem; }
.calc__controls .field { margin: 0; }
.calc__result { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; background: var(--ink); color: #fff; padding: 1.25rem 1.5rem; background-image: var(--plate); }
.res strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1; color: var(--accent-bright); font-variant-numeric: tabular-nums; }
.res span { display: block; margin-top: .3rem; font-size: .9rem; color: #bcc7d1; }
.calc__note { font-size: .92rem; color: var(--muted); margin: 1rem 0 0; line-height: 1.55; }
.calc__note a { color: var(--brand); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); }
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.tbl th { text-align: left; font-family: var(--font-display); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; background: var(--ink); color: #fff; padding: .6rem .75rem; white-space: nowrap; }
.tbl td { padding: .5rem .75rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tr:nth-child(even) td { background: var(--sand); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl td strong { color: var(--ink); }
.tbl--compact { min-width: 0; }
.tbl--compact td { white-space: normal; }
.dark .table-wrap { border-color: #264b6e; }
.dark .tbl td { border-color: #264b6e; }
.dark .tbl tr:nth-child(even) td { background: #14304d; }

/* ---- rig welding illustration ---- */
.rig .earth { fill: #d9cdb9; }
.rig .ground { stroke: #1e3d5c; stroke-width: 2.5; }
.rig .truck { fill: #14304d; }
.rig .glass { fill: #8fa9b8; }
.rig .rack { fill: none; stroke: #14304d; stroke-width: 4; stroke-linecap: round; }
.rig .box { fill: #2c5f8a; stroke: #0a1b2d; stroke-width: 1.5; }
.rig .vent { stroke: #0e2238; stroke-width: 2; stroke-opacity: .55; }
.rig .gauge { fill: #e3e9ef; stroke: #0a1b2d; stroke-width: 1.5; }
.rig .needle { stroke: #e4761b; stroke-width: 2; stroke-linecap: round; }
.rig .wheel { fill: #0e2238; stroke: #5b6b7a; stroke-width: 3; }
.rig .hub { fill: #b9c4ce; }
.rig .bumper { stroke: #7c8b99; stroke-width: 4; stroke-linecap: round; }
.rig .lead { fill: none; stroke: #14304d; stroke-width: 3.5; stroke-linecap: round; }
.rig .lead2 { stroke: var(--accent); }
.rig .stand { fill: none; stroke: #5b6b7a; stroke-width: 3; stroke-linejoin: round; }
.rig .pipe { fill: none; stroke: #14304d; stroke-width: 14; stroke-linecap: round; }
.rig .pipe-hi { fill: none; stroke: #fff; stroke-opacity: .35; stroke-width: 2; stroke-linecap: round; }
.rig .patch { fill: var(--accent); stroke: #0a1b2d; stroke-width: 1.5; }
.rig .stinger { fill: none; stroke: #0a1b2d; stroke-width: 4; stroke-linecap: round; }
.rig .clamp { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.rig .spark .glow { fill: url(#rig-spark); animation: sp-flicker .35s steps(2) infinite; }
.rig .spark .dot { fill: #fff; }
.rig .spark .rays { stroke: #ffd27a; stroke-width: 2; stroke-linecap: round; animation: sp-flicker .25s steps(2) infinite reverse; }
.rig .lbl text { fill: #1c1c1c; fill: var(--ink); font-weight: 800; font-size: 15px; letter-spacing: .12em; }
.rig .lbl .lbl-lite { fill: #5b6b7a; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; }
.rig .badge rect { fill: var(--accent); }
.rig .badge text { fill: var(--ink); font-weight: 800; font-size: 12px; letter-spacing: .1em; }
.rig .cap text { fill: #5b6b7a; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) { .rig .spark * { animation: none; } }
