/* =============================================================
   Diamond H Drilling Co. — Drilling & Workover Contractor
   Bakersfield, CA · Active rigs across California
   ----
   Design DNA: Cream paper + cobalt navy + safety yellow.
   Slab serif headlines (Roboto Slab) + Manrope body + Space Mono.
   Transparent-over-hero navigation with full-screen overlay menu.
   Diagonal cut-corner buttons. Real Unsplash photography with
   CSS gradient fallbacks. Capability matrix layout, photo carousels,
   active rig deployment board.

   Completely distinct from Patterson Oilfield Services in palette,
   typography, layout structure, nav pattern, and button system.
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;500;600;700;800;900&family=Manrope:wght@300;400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

:root {
  /* Palette — researched against Parker Drilling, Independence Contract Drilling,
     Cactus Wellhead, and oilfield service standards. Cobalt is the engineering
     blue used widely in mud / drilling pubs; safety yellow is OSHA hi-vis. */
  --paper: #F4F1E8;
  --paper-2: #E8E2D2;
  --cream-soft: #FCFAF3;
  --asphalt: #14181E;
  --asphalt-2: #1F2530;
  --steel: #44515F;
  --steel-light: #7A8694;
  --steel-soft: #B0B8C1;
  --cobalt: #0E2A5C;
  --cobalt-deep: #07194A;
  --cobalt-light: #2C4A82;
  --yellow: #FFC72C;
  --yellow-deep: #E5A800;
  --rust: #C73E1D;
  --hair: rgba(20, 24, 30, 0.10);
  --hair-strong: rgba(20, 24, 30, 0.20);
  --hair-light: rgba(244, 241, 232, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  font-family: 'Manrope', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--asphalt);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

.container {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}
@media (max-width: 800px) { .container { padding: 0 20px; } }

/* =============================================================
   Type system — slab serif display, Manrope body, mono accents
   ============================================================= */
.slab, h1, h2, h3, h4 {
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--asphalt);
}
.h-mega {
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.025em;
}
.h-mega .cobalt { color: var(--cobalt); }
.h-mega .yellow-bg {
  background: var(--yellow);
  padding: 0 0.1em;
  display: inline-block;
}
.h-mega em { font-style: italic; font-weight: 400; color: var(--steel); }

.h-section {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.025em;
}
.h-section .cobalt { color: var(--cobalt); }
.h-section .yellow-bg { background: var(--yellow); padding: 0 0.1em; display: inline-block; }

.h-card {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.018em;
}

.mono {
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.label-tag {
  font-family: 'Space Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cobalt);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.label-tag::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--yellow);
}
.label-tag.invert { color: var(--cream-soft); }
.label-tag.invert::before { background: var(--yellow); }
.label-tag.invert-y { color: var(--yellow); }
.label-tag.invert-y::before { background: var(--yellow); }

.lede {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--steel);
  font-weight: 500;
  max-width: 60ch;
}
.lede strong { color: var(--asphalt); font-weight: 700; }

p { color: var(--steel); }
.text-light { color: var(--cream-soft); }
.text-light p { color: rgba(252, 250, 243, 0.7); }
.text-light .lede { color: rgba(252, 250, 243, 0.8); }
.text-light .lede strong { color: var(--cream-soft); }

/* =============================================================
   Active rig ticker (top of page)
   ============================================================= */
.rig-ticker {
  background: var(--cobalt);
  color: var(--cream-soft);
  padding: 10px 0;
  font-family: 'Space Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow: hidden;
  position: relative;
  z-index: 50;
}
.rig-ticker-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: rig-scroll 50s linear infinite;
}
.rig-ticker .group { display: inline-flex; align-items: center; gap: 0; }
.rig-ticker .item {
  padding: 0 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.rig-ticker .item::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 14px;
  background: rgba(252, 250, 243, 0.25);
  margin-left: 32px;
}
.rig-ticker .item:last-child::after { display: none; }
.rig-ticker .dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--yellow);
  border-radius: 50%;
  animation: pulse-y 1.6s ease-in-out infinite;
}
.rig-ticker .name { color: var(--yellow); font-weight: 700; }
.rig-ticker .stat { color: var(--cream-soft); }
@keyframes rig-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes pulse-y {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* =============================================================
   Navigation — transparent over hero, solid elsewhere
   Full-screen overlay menu pattern
   ============================================================= */
.nav-bar {
  position: absolute;
  top: 39px; /* below ticker */
  left: 0; right: 0;
  z-index: 80;
  background: transparent;
  transition: background .25s, border-color .25s;
}
.nav-bar.solid {
  position: sticky;
  top: 0;
  background: var(--cream-soft);
  border-bottom: 1px solid var(--hair-strong);
}
.nav-bar.over-photo { color: var(--cream-soft); }
.nav-bar.over-photo .nav-brand-name,
.nav-bar.over-photo .nav-brand-name span,
.nav-bar.over-photo .nav-phone-text,
.nav-bar.over-photo .menu-toggle-text { color: var(--cream-soft); }
.nav-bar.over-photo .nav-brand-mark {
  background: var(--cream-soft);
  color: var(--cobalt);
}
.nav-bar.over-photo .menu-toggle-bars span { background: var(--cream-soft); }

.nav-inner-d {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 22px 0;
}

.nav-brand-d {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.nav-brand-mark {
  width: 48px; height: 48px;
  background: var(--cobalt);
  color: var(--cream-soft);
  display: grid;
  place-items: center;
  font-family: 'Roboto Slab', serif;
  font-weight: 900;
  font-size: 22px;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.nav-brand-mark::after {
  content: "";
  position: absolute;
  bottom: 4px; right: 4px;
  width: 8px; height: 8px;
  background: var(--yellow);
}
.nav-brand-name {
  font-family: 'Roboto Slab', serif;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--asphalt);
  line-height: 1;
}
.nav-brand-name span {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  margin-top: 5px;
  color: var(--steel);
  text-transform: uppercase;
}

.nav-meta-center {
  display: flex;
  justify-content: center;
  gap: 40px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 700;
}
.nav-meta-center .item { display: flex; flex-direction: column; gap: 4px; }
.nav-meta-center .item .v { color: var(--cobalt); font-size: 14px; letter-spacing: 0.04em; }
.nav-bar.over-photo .nav-meta-center { color: rgba(252, 250, 243, 0.7); }
.nav-bar.over-photo .nav-meta-center .item .v { color: var(--yellow); }

.nav-right-d {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-phone-text {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0;
  color: var(--asphalt);
}
.nav-phone-text span {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--steel);
  text-transform: uppercase;
  margin-bottom: 2px;
}

/* Menu toggle button */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--yellow);
  border: none;
  padding: 14px 22px;
  cursor: pointer;
  font-family: 'Roboto Slab', serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--asphalt);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  transition: background .15s, color .15s;
}
.menu-toggle:hover { background: var(--asphalt); color: var(--yellow); }
.nav-bar.over-photo .menu-toggle:hover { background: var(--cream-soft); color: var(--cobalt); }
.menu-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 22px;
}
.menu-toggle-bars span {
  display: block;
  width: 100%; height: 2.5px;
  background: var(--asphalt);
  transition: background .15s;
}
.menu-toggle:hover .menu-toggle-bars span { background: var(--yellow); }
.menu-toggle-text { color: var(--asphalt); }

/* Full-screen overlay menu */
.overlay-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--cobalt);
  color: var(--cream-soft);
  transform: translateY(-100%);
  transition: transform .45s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
}
.overlay-menu.open { transform: translateY(0); }
.overlay-menu-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 40px;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 48px;
}
@media (max-width: 800px) { .overlay-menu-inner { padding: 24px; gap: 32px; } }

.overlay-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.overlay-close {
  background: var(--yellow);
  color: var(--asphalt);
  border: none;
  padding: 14px 22px;
  cursor: pointer;
  font-family: 'Roboto Slab', serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}
.overlay-close:hover { background: var(--cream-soft); }

.overlay-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) { .overlay-grid { grid-template-columns: 1fr; } }

.overlay-nav-list {
  list-style: none;
  border-top: 1px solid var(--hair-light);
}
.overlay-nav-list li {
  border-bottom: 1px solid var(--hair-light);
}
.overlay-nav-list a {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 28px 0;
  font-family: 'Roboto Slab', serif;
  font-weight: 800;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--cream-soft);
  transition: padding .25s, color .15s;
}
.overlay-nav-list a:hover { padding-left: 24px; color: var(--yellow); }
.overlay-nav-list .num {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--yellow);
}
.overlay-nav-list .arrow {
  font-family: 'Roboto Slab', serif;
  font-weight: 400;
  font-size: 28px;
  color: var(--yellow);
}

.overlay-side {
  background: var(--cobalt-deep);
  padding: 36px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}
.overlay-side h5 {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 18px;
  font-weight: 700;
}
.overlay-side .phone-big {
  font-family: 'Roboto Slab', serif;
  font-weight: 800;
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  color: var(--cream-soft);
  letter-spacing: 0;
  margin-bottom: 20px;
  display: block;
}
.overlay-side .row {
  padding: 12px 0;
  border-top: 1px solid var(--hair-light);
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: rgba(252, 250, 243, 0.7);
  letter-spacing: 0.06em;
}
.overlay-side .row strong { color: var(--cream-soft); display: block; font-weight: 700; }

.overlay-foot {
  display: flex;
  justify-content: space-between;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(252, 250, 243, 0.5);
}

/* =============================================================
   Buttons — cut-corner rectangles, distinct from Patterson
   ============================================================= */
.btn-d {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  font-family: 'Roboto Slab', serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  background: var(--yellow);
  color: var(--asphalt);
  border: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: transform .15s, background .2s, color .2s;
  position: relative;
}
.btn-d:hover { transform: translateY(-2px); }
.btn-d .arrow {
  font-family: 'Roboto Slab', serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 0;
}
.btn-yellow { background: var(--yellow); color: var(--asphalt); }
.btn-yellow:hover { background: var(--yellow-deep); }
.btn-cobalt { background: var(--cobalt); color: var(--cream-soft); }
.btn-cobalt:hover { background: var(--cobalt-deep); }
.btn-outline-light {
  background: transparent;
  color: var(--cream-soft);
  border: 2px solid var(--cream-soft);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
.btn-outline-light:hover { background: var(--cream-soft); color: var(--cobalt); }
.btn-outline-dark {
  background: transparent;
  color: var(--asphalt);
  border: 2px solid var(--asphalt);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
.btn-outline-dark:hover { background: var(--asphalt); color: var(--yellow); }

.link-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: var(--asphalt);
  color: var(--yellow);
  font-family: 'Space Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background .15s, color .15s, gap .2s;
}
.link-pill:hover { background: var(--yellow); color: var(--asphalt); gap: 18px; }

/* =============================================================
   Hero — full-bleed photo + bottom-left title block
   ============================================================= */
.hero-d {
  position: relative;
  min-height: 92vh;
  color: var(--cream-soft);
  background:
    /* Dark gradient overlay for legibility */
    linear-gradient(180deg, rgba(14, 24, 30, 0.55) 0%, rgba(14, 24, 30, 0.78) 70%, rgba(14, 24, 30, 0.92) 100%),
    /* Verified Unsplash photo via MCP search — pumpjack on grass field with dramatic stormy sky.
       Photo: X-o-Pd_FRU4 by Jeff W (@fortheloveofsmoke), Phoenix AZ
       Confirmed: red and black pumpjack heavy equipment, iconic oilfield imagery */
    url('https://images.unsplash.com/photo-1598114335556-119dbed6b051?w=2400&q=80&auto=format&fit=crop'),
    /* CSS fallback if the image ever 404s */
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(255, 199, 44, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 10%, rgba(44, 74, 130, 0.45) 0%, transparent 65%),
    linear-gradient(170deg, var(--asphalt) 0%, var(--cobalt-deep) 60%, var(--asphalt) 100%);
  background-size: cover, cover, auto, auto, auto;
  background-position: center, center 35%, center, center, center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 64px;
}
.hero-d::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(252, 250, 243, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(252, 250, 243, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 1;
}
/* SVG silhouette overlay removed — the real Unsplash drilling photo now provides
   the industrial subject matter. Only the subtle grid overlay remains via ::before. */

.hero-content-d {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-grid-d {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: end;
}
@media (min-width: 1100px) {
  .hero-grid-d { grid-template-columns: 1.6fr 1fr; gap: 80px; }
}

.hero-headline-d {
  font-family: 'Roboto Slab', serif;
  font-weight: 900;
  font-size: clamp(3.5rem, 10vw, 9rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--cream-soft);
}
.hero-headline-d .line { display: block; }
.hero-headline-d .yellow-bg {
  background: var(--yellow);
  color: var(--asphalt);
  padding: 0 0.12em;
  display: inline-block;
}
.hero-headline-d em {
  font-style: italic;
  font-weight: 400;
  color: var(--steel-soft);
}

.hero-sub-d {
  margin-top: 32px;
  max-width: 50ch;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: rgba(252, 250, 243, 0.8);
}
.hero-sub-d strong { color: var(--yellow); font-weight: 700; }

.hero-ctas-d {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Hero side panel — active rig deployment */
.deployment-panel {
  background: rgba(252, 250, 243, 0.06);
  backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(252, 250, 243, 0.18);
  padding: 32px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}
.deployment-panel h4 {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 18px;
  font-weight: 700;
}
.deployment-rigs { list-style: none; }
.deployment-rigs li {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--hair-light);
  font-family: 'Space Mono', monospace;
  font-size: 12.5px;
  color: var(--cream-soft);
  letter-spacing: 0.02em;
}
.deployment-rigs li:first-child { border-top: none; }
.deployment-rigs .stat-dot {
  width: 10px; height: 10px;
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--yellow);
}
.deployment-rigs .stat-dot.idle { background: var(--steel-light); box-shadow: none; }
.deployment-rigs .rig-name { color: var(--cream-soft); font-weight: 700; }
.deployment-rigs .rig-loc {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: rgba(252, 250, 243, 0.55);
  text-transform: uppercase;
}

/* Hero stats bar at bottom */
.hero-stats-bar {
  margin-top: 56px;
  background: var(--asphalt);
  color: var(--cream-soft);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 0;
  position: relative;
  z-index: 3;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}
@media (max-width: 800px) {
  .hero-stats-bar { grid-template-columns: 1fr 1fr; }
}
.hero-stats-bar .cell {
  padding: 32px 28px;
  border-right: 1px solid rgba(252, 250, 243, 0.1);
}
.hero-stats-bar .cell:last-child { border-right: none; }
.hero-stats-bar .v {
  font-family: 'Roboto Slab', serif;
  font-weight: 800;
  font-size: clamp(2.25rem, 4vw, 3rem);
  line-height: 0.95;
  color: var(--yellow);
}
.hero-stats-bar .lbl {
  margin-top: 12px;
  font-family: 'Space Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(252, 250, 243, 0.65);
}

/* =============================================================
   Sections
   ============================================================= */
.section-d {
  padding: clamp(96px, 12vw, 144px) 0;
  position: relative;
}
.section-d.cream { background: var(--cream-soft); }
.section-d.paper { background: var(--paper); }
.section-d.paper-2 { background: var(--paper-2); }
.section-d.cobalt { background: var(--cobalt); color: var(--cream-soft); }
.section-d.asphalt { background: var(--asphalt); color: var(--cream-soft); }

.section-head-d {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 80px;
}
@media (min-width: 900px) {
  .section-head-d { grid-template-columns: 1.6fr 1fr; gap: 80px; }
}
.section-head-d .label-tag { margin-bottom: 18px; }

/* =============================================================
   Capability matrix — table-style, distinct from Patterson cards
   ============================================================= */
.cap-matrix {
  border: 2px solid var(--asphalt);
  background: var(--cream-soft);
}
.cap-row {
  display: grid;
  grid-template-columns: 80px 2fr 3fr 1.2fr 1.2fr;
  align-items: stretch;
  border-bottom: 1px solid var(--hair-strong);
  transition: background .2s;
}
.cap-row:last-child { border-bottom: none; }
.cap-row:hover { background: var(--paper); }
@media (max-width: 900px) {
  .cap-row { grid-template-columns: 1fr; }
  .cap-row > div { border-right: none !important; border-bottom: 1px solid var(--hair); }
}

.cap-row.cap-header {
  background: var(--asphalt);
  color: var(--cream-soft);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.cap-row.cap-header:hover { background: var(--asphalt); }
.cap-row.cap-header > div { padding: 18px 24px; }

.cap-row > div {
  padding: 28px 24px;
  border-right: 1px solid var(--hair-strong);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cap-row > div:last-child { border-right: none; }

.cap-num {
  font-family: 'Roboto Slab', serif;
  font-weight: 900;
  font-size: 2.25rem;
  color: var(--yellow);
  line-height: 1;
  letter-spacing: 0;
}
.cap-name {
  font-family: 'Roboto Slab', serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--asphalt);
  margin-bottom: 6px;
}
.cap-tagline {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--steel);
  text-transform: uppercase;
}
.cap-desc { font-size: 14.5px; line-height: 1.55; color: var(--steel); }
.cap-spec {
  font-family: 'Space Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--asphalt);
  font-weight: 700;
}
.cap-spec .v { display: block; color: var(--cobalt); font-size: 1.375rem; font-family: 'Roboto Slab', serif; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 3px; }
.cap-spec .u { color: var(--steel); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; }
.cap-action {
  background: var(--cobalt);
  color: var(--cream-soft);
  text-align: center;
  position: relative;
  transition: background .2s;
}
.cap-action:hover { background: var(--yellow); color: var(--asphalt); }
.cap-action a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  font-family: 'Roboto Slab', serif;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* =============================================================
   Fleet photo carousel grid
   ============================================================= */
.fleet-photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 900px) { .fleet-photo-grid { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; } }

.fleet-photo {
  position: relative;
  background: var(--cobalt);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
}
.fleet-photo.featured {
  grid-column: 1;
  grid-row: 1 / 3;
  min-height: 580px;
}
.fleet-photo-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}
.fleet-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 24, 30, 0) 30%, rgba(14, 24, 30, 0.92) 100%);
  z-index: 2;
}
.fleet-photo-meta {
  position: relative;
  z-index: 3;
  padding: 28px;
  color: var(--cream-soft);
}
.fleet-photo .tag-spec {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--asphalt);
  background: var(--yellow);
  padding: 4px 10px;
  margin-bottom: 14px;
  font-weight: 700;
}
.fleet-photo h3 {
  font-family: 'Roboto Slab', serif;
  font-weight: 800;
  font-size: clamp(1.375rem, 2vw, 1.875rem);
  letter-spacing: -0.02em;
  color: var(--cream-soft);
  line-height: 1.1;
}
.fleet-photo .specs {
  margin-top: 14px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: rgba(252, 250, 243, 0.7);
  letter-spacing: 0.06em;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.fleet-photo .specs strong { color: var(--yellow); font-weight: 700; }

/* =============================================================
   Process — workflow horizontal
   ============================================================= */
.process-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 56px;
  border-top: 2px solid var(--asphalt);
  border-bottom: 2px solid var(--asphalt);
}
@media (min-width: 1000px) {
  .process-flow { grid-template-columns: repeat(4, 1fr); }
}

.process-step-d {
  padding: 40px 32px;
  border-right: 1px solid var(--hair-strong);
  position: relative;
  background: var(--cream-soft);
  transition: background .2s;
}
.process-step-d:hover { background: var(--paper); }
.process-step-d:last-child { border-right: none; }
@media (max-width: 1000px) {
  .process-step-d { border-right: none; border-bottom: 1px solid var(--hair-strong); }
  .process-step-d:last-child { border-bottom: none; }
}

.process-step-d .step-num {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--cobalt);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.process-step-d .step-num strong {
  background: var(--yellow);
  color: var(--asphalt);
  padding: 4px 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.process-step-d h3 {
  font-family: 'Roboto Slab', serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--asphalt);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.process-step-d p { font-size: 14.5px; line-height: 1.55; color: var(--steel); }

/* =============================================================
   Deployment map block (cobalt dark)
   ============================================================= */
.deploy-map-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 1000px) { .deploy-map-grid { grid-template-columns: 5fr 4fr; gap: 80px; } }

.deploy-map {
  position: relative;
  background: var(--cobalt-deep);
  aspect-ratio: 4/5;
  border: 2px solid var(--yellow);
  padding: 32px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}
.deploy-map::before {
  content: "// CA RIG DEPLOYMENT — REAL-TIME";
  position: absolute;
  top: 12px; left: 32px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--yellow);
  font-weight: 700;
}
.deploy-map svg { width: 100%; height: 100%; }

.deploy-list {
  list-style: none;
  border-top: 1px solid var(--hair-light);
}
.deploy-list li {
  display: grid;
  grid-template-columns: 20px 2fr 1fr 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--hair-light);
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.deploy-list .ds {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--yellow);
}
.deploy-list .ds.idle { background: var(--steel-light); }
.deploy-list .rig-name {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--cream-soft);
  letter-spacing: -0.01em;
}
.deploy-list .rig-class { color: var(--steel-soft); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }
.deploy-list .rig-loc { color: var(--yellow); font-weight: 700; text-transform: uppercase; }
.deploy-list .rig-status { text-align: right; }
.deploy-list .rig-status .v { color: var(--cream-soft); font-weight: 700; }
.deploy-list .rig-status .v.active { color: var(--yellow); }
.deploy-list .rig-status .v.idle { color: var(--steel-soft); }

/* =============================================================
   Operators served — photo wall
   ============================================================= */
.operators-wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--asphalt);
  border: 2px solid var(--asphalt);
}
@media (min-width: 700px) { .operators-wall { grid-template-columns: repeat(4, 1fr); } }
.operator-cell {
  background: var(--cream-soft);
  padding: 32px 24px;
  text-align: center;
  transition: background .2s;
}
.operator-cell:hover { background: var(--yellow); }
.operator-cell .o-name {
  font-family: 'Roboto Slab', serif;
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--asphalt);
  letter-spacing: -0.01em;
}
.operator-cell .o-years {
  font-family: 'Space Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--cobalt);
  text-transform: uppercase;
  margin-top: 8px;
  font-weight: 700;
}

/* =============================================================
   Testimonial — large quote block, photo background
   ============================================================= */
.quote-block-d {
  position: relative;
  padding: 96px 0;
  background:
    linear-gradient(135deg, rgba(14, 42, 92, 0.92) 0%, rgba(7, 25, 74, 0.94) 100%),
    url('https://images.unsplash.com/photo-1518709594023-6eab3c5e3a9c?w=2400&q=80&auto=format&fit=crop'),
    linear-gradient(135deg, var(--cobalt), var(--asphalt));
  background-size: cover;
  background-position: center;
  color: var(--cream-soft);
}

.quote-grid-d {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: end;
}
@media (min-width: 900px) { .quote-grid-d { grid-template-columns: 2fr 1fr; gap: 80px; } }

.quote-body {
  font-family: 'Roboto Slab', serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  line-height: 1.2;
  color: var(--cream-soft);
  letter-spacing: -0.015em;
  max-width: 24ch;
}
.quote-body::before {
  content: """;
  font-family: 'Roboto Slab', serif;
  font-weight: 900;
  font-style: normal;
  font-size: 5rem;
  line-height: 0.5;
  color: var(--yellow);
  display: block;
  margin-bottom: 24px;
}
.quote-attribution {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(252, 250, 243, 0.7);
}
.quote-attribution .row { padding: 8px 0; border-top: 1px solid var(--hair-light); }
.quote-attribution .row:first-child { border-top: none; }
.quote-attribution .row strong { color: var(--yellow); display: block; font-weight: 700; letter-spacing: 0.04em; margin-top: 4px; }

/* =============================================================
   Final CTA — diagonal split
   ============================================================= */
.cta-split {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .cta-split { grid-template-columns: 1fr 1fr; } }

.cta-half {
  padding: clamp(64px, 8vw, 96px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cta-half.cobalt { background: var(--cobalt); color: var(--cream-soft); }
.cta-half.yellow { background: var(--yellow); color: var(--asphalt); }
.cta-half h2 {
  font-family: 'Roboto Slab', serif;
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.cta-half.cobalt h2 { color: var(--cream-soft); }
.cta-half.yellow h2 { color: var(--asphalt); }
.cta-half p {
  margin-bottom: 32px;
  font-size: 15px;
  line-height: 1.55;
}
.cta-half.cobalt p { color: rgba(252, 250, 243, 0.75); }
.cta-half.yellow p { color: var(--cobalt-deep); }
.cta-half .phone-d {
  font-family: 'Roboto Slab', serif;
  font-weight: 900;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  letter-spacing: 0;
  margin-bottom: 16px;
  display: block;
}

/* =============================================================
   Footer
   ============================================================= */
.footer-d {
  background: var(--asphalt);
  color: var(--cream-soft);
  padding: 96px 0 40px;
}
.footer-grid-d {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
@media (min-width: 900px) { .footer-grid-d { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } }
.footer-d h4 {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--yellow);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-d ul { list-style: none; }
.footer-d li { padding: 6px 0; font-size: 14px; color: rgba(252, 250, 243, 0.65); }
.footer-d li a:hover { color: var(--yellow); }
.footer-brand-d { max-width: 36ch; }
.footer-brand-d p { font-size: 14px; line-height: 1.55; color: rgba(252, 250, 243, 0.55); margin-top: 18px; }
.footer-bottom-d {
  padding-top: 32px;
  border-top: 1px solid var(--hair-light);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: 'Space Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: rgba(252, 250, 243, 0.4);
  text-transform: uppercase;
}

/* =============================================================
   About page specific
   ============================================================= */
.timeline-d {
  list-style: none;
  border-left: 3px solid var(--cobalt);
  padding-left: 40px;
  margin-left: 12px;
}
.timeline-d li {
  position: relative;
  padding: 32px 0;
  border-bottom: 1px solid var(--hair);
}
.timeline-d li::before {
  content: "";
  position: absolute;
  left: -49px;
  top: 40px;
  width: 18px; height: 18px;
  background: var(--yellow);
  border: 3px solid var(--cobalt);
  border-radius: 50%;
}
.timeline-d .year {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--cobalt);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.timeline-d h3 {
  font-family: 'Roboto Slab', serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--asphalt);
  margin-bottom: 10px;
}
.timeline-d p { font-size: 14.5px; line-height: 1.55; color: var(--steel); max-width: 64ch; }

.crew-grid-d {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 700px) { .crew-grid-d { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .crew-grid-d { grid-template-columns: repeat(3, 1fr); } }

.crew-card-d {
  background: var(--cream-soft);
  border: 2px solid var(--asphalt);
  padding: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
  transition: transform .25s;
}
.crew-card-d:hover { transform: translateY(-6px); }
.crew-photo-d {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  background-color: var(--cobalt);
  position: relative;
}
.crew-photo-d::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 24, 30, 0) 60%, rgba(14, 24, 30, 0.5) 100%);
}
.crew-info {
  padding: 24px;
  position: relative;
}
.crew-info .crew-num {
  position: absolute;
  top: -14px; right: 16px;
  background: var(--yellow);
  color: var(--asphalt);
  font-family: 'Space Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 5px 11px;
}
.crew-info h3 {
  font-family: 'Roboto Slab', serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--asphalt);
  letter-spacing: -0.018em;
  margin-bottom: 6px;
}
.crew-info .role {
  font-family: 'Space Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--cobalt);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}
.crew-info p { font-size: 14px; line-height: 1.55; color: var(--steel); }

/* =============================================================
   Reduce motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .rig-ticker-track { animation: none; }
}

@media (max-width: 800px) {
  .nav-meta-center { display: none; }
  .nav-inner-d { grid-template-columns: auto 1fr auto; }
}
