/* =========================================================
   S & H ENGINEERING — DESIGN SYSTEM
   Palette: marine navy / steel / safety yellow / concrete
   Type: Oswald (display) + Inter (body) + IBM Plex Mono (data)
   Signature: blueprint grid, corner-bracket frames, sheet numbering
   ========================================================= */

:root {
  --navy-deep:  #081a33;
  --footer-bg:  #050e1b;
  --navy:       #0f2a45;
  --steel:      #2c5f7c;
  --steel-light:#5c8aa3;
  --yellow:     #f5b700;
  --yellow-ink: #4d3900;
  --marine-blue:#0077b6;
  --cyan-accent:#00b4d8;
  --steel-gray: #64748b;
  --concrete:   #e7e3da;
  --off-white:  #f6f4ef;
  --white:      #ffffff;
  --on-dark:    #ffffff;   /* text/icons on navy surfaces - never changes with the theme */
  --accent:     #0077b6;
  --accent:     #0077b6;
  --ink:        #10161c;
  --ink-soft:   #46545f;
  --line:       rgba(15, 42, 69, 0.14);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --container: 1180px;
  --radius: 2px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--off-white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -.01em;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--ink);
  font-weight: 600;
}
p { margin: 0 0 1em; color: var(--ink-soft); }
.mono { font-family: var(--font-mono); letter-spacing: .02em; }
.small { font-size: .78rem; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--yellow); color: var(--ink); padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Sheet / eyebrow labels (signature motif) ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--yellow);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 28, 48, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: padding .25s var(--ease);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  transition: height .25s var(--ease);
}
.site-header.is-scrolled .header-row { height: 60px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--on-dark);
}
.brand-mark { color: var(--yellow); display: flex; }
.brand-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1;
}
.brand-text-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .22em;
  color: var(--steel-light);
  margin-top: 3px;
}

.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  color: rgba(255,255,255,.78);
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: var(--radius);
  position: relative;
  transition: color .2s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 6px;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.main-nav a:hover { color: var(--on-dark); }
.main-nav a:hover::after,
.main-nav a.is-active::after { transform: scaleX(1); }
.main-nav a.is-active { color: var(--on-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--on-dark); transition: transform .25s var(--ease), opacity .25s;
}
.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); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15,42,69,.1);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 14px 26px rgba(15,42,69,.2); }
.btn:active { transform: translateY(-1px) scale(1.01); }
.btn-primary { background: var(--yellow); color: var(--yellow-ink); box-shadow: 0 6px 16px rgba(245,183,0,.35); }
.btn-primary:hover { background: #ffca33; box-shadow: 0 16px 30px rgba(245,183,0,.45); }
.btn-outline { border-color: rgba(255,255,255,.35); color: var(--on-dark); }
.btn-outline:hover { border-color: var(--yellow); color: var(--yellow); box-shadow: 0 14px 26px rgba(0,0,0,.25); }
.btn-outline-dark { border-color: var(--line); color: var(--ink); box-shadow: 0 3px 10px rgba(15,42,69,.06); }
.btn-outline-dark:hover { border-color: var(--steel); background: rgba(15,42,69,.04); box-shadow: 0 12px 22px rgba(15,42,69,.12); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy-deep);
  color: var(--on-dark);
  overflow: hidden;
  padding: 110px 0 90px;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.hero-grid-bg {
  --g: 44px;
  position: absolute; inset: 0; overflow: hidden;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 85%);
  pointer-events: none;
}
.hero-grid-bg::before {
  content: ""; position: absolute; inset: calc(var(--g) * -2) 0 0 calc(var(--g) * -1);
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: var(--g) var(--g);
  will-change: transform;
  animation: grid-drift 26s linear infinite;
}
@keyframes grid-drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(var(--g), calc(var(--g) * 2), 0); }
}

/* Light rays — a slow-rotating conic sweep, very low opacity. */
.hero, .page-hero { position: relative; }
.hero::before, .page-hero::before {
  content: "";
  position: absolute; inset: -20%;
  background: conic-gradient(from 0deg at 70% 20%,
    transparent 0deg, rgba(0,180,216,.06) 40deg, transparent 90deg,
    transparent 220deg, rgba(245,183,0,.05) 260deg, transparent 320deg);
  animation: rays-rotate 40s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes rays-rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Gradient orbs — soft blurred blobs drifting behind the grid. */
.hero::after, .page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120px 120px at 15% 70%, rgba(0,119,182,.22), transparent 70%),
    radial-gradient(160px 160px at 85% 25%, rgba(0,180,216,.16), transparent 70%);
  will-change: transform;
  animation: orb-drift 18s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
@keyframes orb-drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(3%, -4%); }
}

/* background crane / piling-rig line illustration (hero signature texture) */
.hero-rig {
  position: absolute;
  right: -20px;
  bottom: -10px;
  width: min(46vw, 420px);
  color: rgba(255,255,255,.07);
  pointer-events: none;
  z-index: 0;
}
.hero-rig .rig-cable { transform-origin: 120px 20px; animation: rig-sway 5s ease-in-out infinite; }
.hero-rig .rig-hook   { transform-origin: 120px 20px; animation: rig-sway 5s ease-in-out infinite; }
@keyframes rig-sway {
  0%, 100% { transform: rotate(-2deg); }
  50%      { transform: rotate(2deg); }
}

/* rising bubble particles, marine ambient motion */
.hero-particles {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero-particles span {
  position: absolute;
  bottom: -20px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(245, 183, 0, .35);
  animation: rise 12s linear infinite;
}
.hero-particles span:nth-child(1) { left: 8%;  width: 5px; height: 5px; animation-duration: 10s; animation-delay: 0s; background: rgba(255,255,255,.18); }
.hero-particles span:nth-child(2) { left: 22%; width: 8px; height: 8px; animation-duration: 15s; animation-delay: 2s; }
.hero-particles span:nth-child(3) { left: 45%; width: 4px; height: 4px; animation-duration: 9s;  animation-delay: 4s; background: rgba(255,255,255,.16); }
.hero-particles span:nth-child(4) { left: 64%; width: 7px; height: 7px; animation-duration: 13s; animation-delay: 1s; }
.hero-particles span:nth-child(5) { left: 80%; width: 5px; height: 5px; animation-duration: 11s; animation-delay: 3s; background: rgba(255,255,255,.18); }
.hero-particles span:nth-child(6) { left: 92%; width: 6px; height: 6px; animation-duration: 16s; animation-delay: 5s; }
@keyframes rise {
  from { transform: translateY(0) translateX(0);   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: .4; }
  to   { transform: translateY(-360px) translateX(14px); opacity: 0; }
}

/* animated wave divider — removed per request */
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 40px;
  align-items: end;
}
.hero h1 {
  color: var(--on-dark);
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  line-height: 1.04;
  margin-bottom: .4em;
}
.hero h1 em {
  font-style: normal;
  color: var(--yellow);
}
.hero-lede {
  color: rgba(255,255,255,.72);
  max-width: 46ch;
  font-size: 1.05rem;
}
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* depth gauge — signature element tying hero to piling depth */
.depth-gauge {
  position: relative;
  height: 340px;
  justify-self: end;
  padding-right: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.depth-gauge .rule {
  position: absolute;
  top: 0; right: 0;
  width: 1px; height: 0%;
  background: linear-gradient(var(--yellow), var(--steel-light));
  transition: height 1.4s var(--ease);
}
.depth-gauge.in-view .rule { height: 100%; }
.depth-gauge .tick {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .72rem; color: rgba(255,255,255,.55);
  margin-bottom: auto;
}
.depth-gauge .tick::after { content: ""; width: 14px; height: 1px; background: rgba(255,255,255,.35); }
.depth-gauge .tick.tick-surface { align-self: flex-start; margin-bottom: 0; color: var(--yellow); }
.depth-gauge .tick.tick-depth { align-self: flex-start; margin-top: auto; color: var(--on-dark); }

.stat-strip {
  position: relative;
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 70px;
  padding-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-strip .stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--on-dark);
}
.stat-strip .stat-value .accent { color: var(--yellow); }
.stat-strip .stat-label {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .05em;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  margin-top: 4px;
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--concrete); }
.section-navy { background: var(--navy-deep); color: var(--on-dark); position: relative; overflow: hidden; }
.section-navy::before, .section-navy::after {
  content: "";
  position: absolute;
  top: 50%; right: -130px;
  width: 340px; height: 340px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.09);
  transform: translateY(-50%) scale(.6);
  opacity: .5;
  pointer-events: none;
  animation: sonar-ping 6s ease-out infinite;
}
.section-navy::after { animation-delay: 3s; }
@keyframes sonar-ping {
  0%   { transform: translateY(-50%) scale(.55); opacity: .5; }
  100% { transform: translateY(-50%) scale(1.5); opacity: 0; }
}
.section-navy p { color: rgba(255,255,255,.68); }
.section-navy > .wrap { position: relative; z-index: 1; }
.section-navy h2, .section-navy h3 { color: var(--on-dark); }
.section-head { max-width: 60ch; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }

/* ---------- Corner-bracket frame (signature motif for cards) ---------- */
.bracket-card {
  position: relative;
  padding: 30px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(15,42,69,.07), 0 1px 3px rgba(15,42,69,.06);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.bracket-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 34px rgba(15,42,69,.16), 0 4px 10px rgba(15,42,69,.08);
}
.bracket-card::before, .bracket-card::after,
.bracket-card .bk-tl, .bracket-card .bk-br { display: none; }
.bracket-card {
  --bk: 14px;
}
.bracket-card > .bk {
  position: absolute; width: var(--bk); height: var(--bk);
  border: 2px solid var(--yellow);
  opacity: 0; transition: opacity .25s, transform .25s var(--ease);
}
.bracket-card .bk-tl { top: -1px; left: -1px; border-right: none; border-bottom: none; border-top-left-radius: 8px; }
.bracket-card .bk-br { bottom: -1px; right: -1px; border-left: none; border-top: none; border-bottom-right-radius: 8px; }
.bracket-card:hover > .bk, .bracket-card:focus-within > .bk { opacity: 1; }
.bracket-card:hover .bk-tl { transform: translate(-3px,-3px); }
.bracket-card:hover .bk-br { transform: translate(3px,3px); }

/* ---------- Service / equipment grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }

.service-icon {
  display: inline-flex;
  color: var(--yellow);
  margin-bottom: 16px;
}
.service-card .code {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--steel);
  display: block;
  margin-bottom: 14px;
}
.service-card h3 { font-size: 1.15rem; margin-bottom: .4em; }
.service-card p { margin: 0; font-size: .94rem; }

.equipment-card {
  text-align: left;
  padding: 22px 18px;
}
.equipment-card .eq-icon { color: var(--steel); margin-bottom: 12px; }
.equipment-card h4 {
  font-family: var(--font-body);
  text-transform: none;
  font-weight: 600;
  font-size: .98rem;
  color: var(--ink);
  margin-bottom: 2px;
}
.equipment-card .eq-note { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-soft); }

/* ---------- Mission / vision split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* ---------- Service detail sections (marine/piling/shore/infrastructure) ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.service-detail-rev { grid-template-columns: .9fr 1.1fr; }
.service-detail-rev > *:first-child { order: 1; }
.service-detail-rev > *:last-child { order: 2; }
.benefit-list { display: grid; gap: 10px; margin-top: 20px; padding: 0; }
.benefit-list li {
  list-style: none;
  padding-left: 26px;
  position: relative;
  color: var(--ink-soft);
  font-size: .95rem;
}
.benefit-list li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 12px; height: 2px;
  background: var(--yellow);
}
.detail-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gallery-tile {
  aspect-ratio: 1;
  background: var(--navy-deep);
  color: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  padding: 20%;
}
.gallery-tile:first-child { grid-column: 1 / -1; aspect-ratio: 2/1; }
.gallery-tile svg { width: 100%; height: 100%; }
.mv-card {
  padding: 40px 34px;
  border-left: 3px solid var(--yellow);
  background: rgba(255,255,255,.03);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.mv-card:hover { transform: translateY(-4px); }
.section:not(.section-navy) .mv-card { background: var(--white); border-left-color: var(--steel); box-shadow: 0 4px 14px rgba(15,42,69,.08); }
.section:not(.section-navy) .mv-card:hover { box-shadow: 0 18px 32px rgba(15,42,69,.14); }

/* ---------- Certifications strip ---------- */
.cert-row { display: flex; gap: 18px; flex-wrap: wrap; }
.cert-chip {
  display: flex; flex-direction: column; gap: 4px;
  border: 1px solid var(--line);
  padding: 16px 20px;
  min-width: 200px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(15,42,69,.07);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.cert-chip:hover { transform: translateY(-3px); box-shadow: 0 14px 26px rgba(15,42,69,.14); }
.cert-chip .code { font-family: var(--font-mono); color: var(--ink); font-weight: 500; }
.cert-chip .label { font-size: .82rem; color: var(--ink-soft); }

/* ---------- Timeline (about) — legacy simple version, still used on Services page ---------- */
.timeline { border-left: 1px solid var(--line); margin-left: 8px; }
.timeline-item { position: relative; padding: 0 0 34px 30px; }
.timeline-item::before {
  content: "";
  position: absolute; left: -5px; top: 4px;
  width: 9px; height: 9px; background: var(--yellow);
  border-radius: 50%;
}
.timeline-item h4 { margin-bottom: 4px; font-family: var(--font-mono); text-transform: none; font-size: .95rem; color: var(--ink); }
.timeline-item p { margin: 0; font-size: .92rem; }

/* ---------- Vertical Company Journey timeline (centered line, alternating sides) ---------- */
.v-timeline { position: relative; padding: 10px 0; }
.vt-line {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
  background: var(--line);
  transform: translateX(-50%);
}
.vt-line-fill {
  position: absolute; top: 0; left: 0; width: 100%; height: 0%;
  background: linear-gradient(180deg, var(--marine-blue), var(--cyan-accent));
  transition: height 1.2s var(--ease);
}
.vt-item { position: relative; display: flex; align-items: center; gap: 24px; padding: 22px 0; }
.vt-spacer { flex: 1; }
.vt-dot {
  flex-shrink: 0; width: 13px; height: 13px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--marine-blue);
  position: relative; z-index: 1;
}
.vt-content { flex: 1; }
.vt-item:nth-child(odd) .vt-content { text-align: right; }
.vt-item:nth-child(even) .vt-content { text-align: left; }
.vt-year { color: var(--steel); font-size: .82rem; }
.vt-content h4 { margin: 4px 0 0; font-size: .98rem; color: var(--ink); }

/* Boxed milestone content with shadow + arrow pointing to the center line */
.vt-box {
  position: relative;
  flex: 1;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 22px;
  box-shadow: 0 8px 22px rgba(15,42,69,.1);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.vt-box:hover { transform: translateY(-4px); box-shadow: 0 18px 32px rgba(15,42,69,.16); }
.vt-box h4 { margin: 4px 0 6px; font-size: 1rem; color: var(--ink); }
.vt-box .vt-year { display: inline-block; }
.vt-note { margin: 0; font-size: .86rem; color: var(--ink-soft); }
.vt-box::after {
  content: "";
  position: absolute; top: 50%; width: 0; height: 0;
  border: 8px solid transparent;
  transform: translateY(-50%);
}
.vt-box-left { text-align: right; }
.vt-box-left::after { right: -16px; border-left-color: var(--white); }
.vt-box-right { text-align: left; }
.vt-box-right::after { left: -16px; border-right-color: var(--white); }

@media (max-width: 720px) {
  .vt-line { left: 8px; transform: none; }
  .vt-item { padding-left: 30px; gap: 0; }
  .vt-item .vt-spacer { display: none; }
  .vt-dot { position: absolute; left: 8px; transform: translateX(-50%); }
  .vt-box-left, .vt-box-right { text-align: left; }
  .vt-box-left::after, .vt-box-right::after { left: -16px; right: auto; border-right-color: var(--white); border-left-color: transparent; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }
.field input, .field textarea, .field select {
  font-family: var(--font-body);
  font-size: .96rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--yellow);
  outline-offset: 1px;
  border-color: var(--steel);
}
.contact-info-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-info-item .ci-icon { color: var(--steel); flex-shrink: 0; }
.contact-info-item h4 { font-size: .92rem; margin-bottom: 2px; }
.contact-info-item p { margin: 0; font-size: .92rem; }
.form-status { font-family: var(--font-mono); font-size: .85rem; padding: 10px 0; display: none; }
.form-status.is-visible { display: block; }
.form-status.ok { color: #1c7a3d; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy-deep);
  color: var(--on-dark);
  padding: 64px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--on-dark); margin-bottom: .3em; }
.cta-band p { color: rgba(255,255,255,.68); margin-bottom: 28px; }
.cta-band > .wrap { position: relative; z-index: 2; }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > * { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: .02s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: .09s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: .23s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: .30s; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: .37s; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--navy-deep);
  color: var(--on-dark);
  padding: 74px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-hero .hero-grid-bg { --g: 36px; }
.page-hero > .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: var(--on-dark); font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: .25em; }
.page-hero p { color: rgba(255,255,255,.68); max-width: 60ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: rgba(255,255,255,.75); padding: 60px 0 0; position: relative; overflow: hidden; border-top: 1px solid rgba(255,255,255,.06); }
.footer-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 26px; padding-bottom: 40px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.social-chip {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.75);
  transition: border-color .2s, color .2s;
}
.social-chip:hover { border-color: var(--cyan-accent); color: var(--cyan-accent); }
.newsletter-form { display: flex; gap: 0; border: 1px solid rgba(255,255,255,.2); border-radius: 4px; overflow: hidden; }
.newsletter-form input {
  flex: 1; min-width: 0; background: transparent; border: none; color: var(--on-dark);
  padding: 10px 12px; font-family: var(--font-body); font-size: .85rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.4); }
.newsletter-form button {
  background: var(--cyan-accent); border: none; color: var(--navy-deep);
  width: 42px; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.newsletter-form button:hover { background: var(--yellow); }
.footer-brand .brand-text { color: var(--on-dark); }
.footer-brand p { color: rgba(255,255,255,.55); font-size: .9rem; margin-top: 14px; }
.footer-heading { color: var(--on-dark); font-size: .82rem; letter-spacing: .1em; margin-bottom: 16px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--yellow); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 20px 0; font-size: .82rem; color: rgba(255,255,255,.45);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-rig { width: 56vw; opacity: .6; }
  .hero-inner { grid-template-columns: 1fr; }
  .depth-gauge { justify-self: start; height: 160px; flex-direction: row; align-items: center; width: 100%; }
  .depth-gauge .rule { width: 100%; height: 1px; top: auto; bottom: 0; background: linear-gradient(90deg, var(--yellow), var(--steel-light)); }
  .depth-gauge.in-view .rule { width: 100%; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .split, .contact-grid, .service-detail { grid-template-columns: 1fr; }
  .service-detail-rev > *:first-child,
  .service-detail-rev > *:last-child { order: 0; }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-deep);
    border-top: 1px solid rgba(255,255,255,.1);
    max-height: 0; overflow: hidden;
    transition: max-height .3s var(--ease);
  }
  .main-nav.is-open { max-height: calc(100vh - 76px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .main-nav ul { flex-direction: column; padding: 10px 24px 20px; }
  .main-nav a { display: block; padding: 12px 4px; }
  .nav-toggle { display: flex; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .hero-rig { display: none; }
  .hero-particles span:nth-child(n+5) { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-stagger > *, .depth-gauge .rule, .bracket-card > .bk {
    transition-duration: .01ms !important;
  }
  .hero-grid-bg::before, .rig-cable, .rig-hook, .hero-particles span,
  .section-navy::before, .section-navy::after,
  .hero::before, .hero::after, .page-hero::before, .page-hero::after {
    animation: none !important;
  }
  .section-navy::before, .section-navy::after { display: none; }
  .hero::before, .page-hero::before { display: none; }
  .hero-particles span { display: none; }
}

/* ---------- Preloader ---------- */
#loader {
  --orange: #ff6900;
  position: fixed; inset: 0; z-index: 999999;
  display: grid; place-content: center; justify-items: center; gap: 25px; overflow: hidden;
  background-color: #101113;
  background-image: linear-gradient(#ffffff08 1px, transparent 1px), linear-gradient(90deg, #ffffff08 1px, transparent 1px);
  background-size: 32px 32px;
  transition: opacity .5s ease, visibility .5s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
#loader .mark { position: relative; width: 94px; overflow: hidden; animation: ld-enter .7s ease-out both; }
#loader svg { display: block; width: 100%; }
#loader .orange { fill: var(--orange); }
#loader .cutout { fill: #101113; }
#loader .outline { fill: none; stroke: var(--orange); stroke-width: 2.5; stroke-dasharray: 500; stroke-dashoffset: 500; animation: ld-draw 1.4s ease forwards; }
#loader .scan { position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--orange); box-shadow: 0 0 12px #ff690077; animation: ld-scan 1.5s ease-in-out infinite; }
#loader .track { width: 112px; height: 2px; background: #353638; overflow: hidden; }
#loader .track span { display: block; width: 35%; height: 100%; background: var(--orange); animation: ld-progress 1.3s ease-in-out infinite; }
@keyframes ld-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ld-draw { to { stroke-dashoffset: 0; } }
@keyframes ld-scan { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes ld-progress { from { transform: translateX(-110%); } to { transform: translateX(320%); } }
@media (prefers-reduced-motion: reduce) {
  #loader *, #loader *::before { animation: none !important; }
  #loader .outline { stroke-dashoffset: 0; }
  #loader .scan { display: none; }
}

/* ---------- page loader ---------- */
#loader { --orange: #ff6900; position: fixed; inset: 0; z-index: 999999; display: grid; place-content: center; justify-items: center; gap: 25px; overflow: hidden; background-color: #101113; background-image: linear-gradient(#ffffff08 1px, transparent 1px), linear-gradient(90deg, #ffffff08 1px, transparent 1px); background-size: 32px 32px; transition: opacity .5s ease, visibility .5s ease; }
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
#loader .mark { position: relative; width: 94px; overflow: hidden; animation: enter .7s ease-out both; }
#loader svg { display: block; width: 100%; }
#loader .orange { fill: var(--orange); }
#loader .cutout { fill: #101113; }
#loader .outline { fill: none; stroke: var(--orange); stroke-width: 2.5; stroke-dasharray: 500; stroke-dashoffset: 500; animation: draw 1.4s ease forwards; }
#loader .scan { position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--orange); box-shadow: 0 0 12px #ff690077; animation: scan 1.5s ease-in-out infinite; }
#loader .track { width: 112px; height: 2px; background: #353638; overflow: hidden; }
#loader .track span { display: block; width: 35%; height: 100%; background: var(--orange); animation: progress 1.3s ease-in-out infinite; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes scan { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes progress { from { transform: translateX(-110%); } to { transform: translateX(320%); } }
@media (prefers-reduced-motion: reduce) { #loader *, #loader *::before { animation: none !important; } #loader .outline { stroke-dashoffset: 0; } #loader .scan { display: none; } }
