:root {
  --bg-page: #f4f7fb;
  --bg-surface: rgba(255, 255, 255, 0.94);
  --bg-surface-solid: #ffffff;
  --bg-subtle: rgba(241, 245, 249, 0.92);
  --border-color: rgba(203, 213, 225, 0.85);
  --border-strong: #cbd5e1;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --brand-primary: #0b5ca8;
  --brand-primary-hover: #084885;
  --brand-crimson: #dc2626;
  --card-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  --modal-shadow: 0 24px 48px rgba(15, 23, 42, 0.24);
  --header-bg: rgba(255, 255, 255, 0.95);
  --section-tint: rgba(255, 255, 255, 0.86);
  --emerald-bg: #ecfdf5;
  --emerald-border: #6ee7b7;
  --emerald-text: #065f46;
  --danger-bg: #fef2f2;
  --danger-border: #fca5a5;
  --danger-text: #991b1b;
}

html.dark {
  --bg-page: #080c12;
  --bg-surface: rgba(15, 23, 34, 0.94);
  --bg-surface-solid: #0f1722;
  --bg-subtle: rgba(15, 23, 34, 0.85);
  --border-color: rgba(30, 41, 59, 0.9);
  --border-strong: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --brand-primary: #0284c7;
  --brand-primary-hover: #0ea5e9;
  --brand-crimson: #f87171;
  --card-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  --modal-shadow: 0 24px 56px rgba(0, 0, 0, 0.65);
  --header-bg: rgba(8, 12, 18, 0.95);
  --section-tint: rgba(8, 12, 18, 0.86);
  --emerald-bg: rgba(6, 78, 59, 0.35);
  --emerald-border: #065f46;
  --emerald-text: #a7f3d0;
  --danger-bg: rgba(127, 29, 29, 0.35);
  --danger-border: #991b1b;
  --danger-text: #fecaca;
}

html.dark .brand-accent-text {
  color: #38bdf8;
}

.brand-accent-text {
  color: var(--brand-primary);
}

.crimson-accent-text {
  color: var(--brand-crimson);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Public Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  transition: background-color 0.32s cubic-bezier(0.16, 1, 0.3, 1), color 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text-primary);
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.font-mono, .tabular-nums {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

.theme-transition {
  transition:
    background-color 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 3D WebGL Background Canvas Layer */
#wellbore-canvas-host {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#wellbore-canvas-host.is-interactive {
  pointer-events: auto;
  cursor: grab;
}

#wellbore-canvas-host.is-interactive:active {
  cursor: grabbing;
}

/* Container & Layout */
.site-wrapper {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .container { padding-left: 2rem; padding-right: 2rem; }
}

/* Top Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

@media (min-width: 1024px) {
  .header-inner { gap: 1.25rem; }
}

.brand-logo-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
  max-width: calc(100% - 6.5rem);
  border-radius: 0.375rem;
}

.brand-logo-img {
  height: 2.15rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: opacity 0.28s ease;
}

@media (min-width: 640px) {
  .brand-logo-img { height: 2.65rem; }
}

.logo-dark {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  pointer-events: none;
}

html.dark .logo-light {
  opacity: 0;
  pointer-events: none;
}

html.dark .logo-dark {
  opacity: 1;
  pointer-events: auto;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.65rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

@media (min-width: 1024px) {
  .desktop-nav { display: flex; }
}

.nav-link, .nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0;
  background: transparent;
  border: 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-drop-btn:hover,
.nav-drop-btn.is-active {
  color: var(--brand-primary);
}

html.dark .nav-link:hover,
html.dark .nav-link.is-active,
html.dark .nav-drop-btn:hover,
html.dark .nav-drop-btn.is-active {
  color: #38bdf8;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-panel {
  position: absolute;
  left: 0;
  top: 100%;
  padding-top: 0.35rem;
  min-width: 16.5rem;
  display: none;
  z-index: 50;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown.is-open .nav-dropdown-panel {
  display: block;
}

.nav-dropdown-card {
  background-color: var(--bg-surface-solid);
  border: 1px solid var(--border-color);
  border-radius: 0.625rem;
  box-shadow: var(--modal-shadow);
  padding: 0.4rem 0;
}

.nav-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-dropdown-item:hover {
  background-color: var(--bg-subtle);
  color: var(--brand-primary);
}

html.dark .nav-dropdown-item:hover {
  color: #38bdf8;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-strong);
  background-color: var(--bg-subtle);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--brand-primary);
}

.mobile-menu-btn {
  display: inline-flex;
}

@media (min-width: 1024px) {
  .mobile-menu-btn { display: none; }
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-page);
  padding: 1rem;
  max-height: 82vh;
  overflow-y: auto;
}

.mobile-drawer.is-open {
  display: block;
}

@media (min-width: 1024px) {
  .mobile-drawer.is-open { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.68rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn.header-cta {
  display: none;
}

@media (min-width: 1024px) {
  .btn.header-cta { display: inline-flex; }
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
}

.btn-primary {
  background-color: var(--brand-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--brand-primary-hover);
}

.btn-outline {
  background-color: var(--bg-surface-solid);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

html.dark .btn-outline:hover {
  border-color: #38bdf8;
  color: #38bdf8;
}

.btn-emerald {
  background-color: #047857;
  color: #ffffff;
}

.btn-emerald:hover {
  background-color: #065f46;
}

/* Segmented Theme Control */
.theme-segment {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 0.5rem;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
}

.theme-seg-btn {
  padding: 0.3rem 0.65rem;
  border-radius: 0.375rem;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.theme-seg-btn.is-active {
  background-color: var(--bg-surface-solid);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* Sections & Surfaces */
.section {
  padding: 4.5rem 0;
  position: relative;
}

.section-tinted {
  background-color: var(--section-tint);
  border-top: 1px solid var(--border-color);
}

.section-bordered {
  border-top: 1px solid var(--border-color);
}

.surface-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 0.875rem;
  box-shadow: var(--card-shadow);
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 0.5rem;
}

html.dark .eyebrow {
  color: #38bdf8;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.18;
}

.section-subtitle {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 44rem;
}

/* Hero Section */
.hero-section {
  padding: 3rem 0 4rem;
}

@media (min-width: 640px) {
  .hero-section { padding: 4rem 0 5rem; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 7fr 5fr; gap: 2.75rem; }
}

.hero-card {
  padding: 1.75rem;
  border-radius: 1rem;
}

@media (min-width: 640px) {
  .hero-card { padding: 2.5rem; }
}

.hero-h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
}

.hero-lead {
  margin-top: 1.15rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 40rem;
}

.hero-cta-row {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

@media (min-width: 640px) {
  .shortcut-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.shortcut-btn {
  text-align: left;
  padding: 0.55rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.shortcut-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

html.dark .shortcut-btn:hover {
  border-color: #38bdf8;
  color: #38bdf8;
}

.hero-visual-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-main-img-box {
  position: relative;
  flex: 1;
  min-height: 15.5rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #0f172a;
}

.hero-main-img-box img,
.hero-sub-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-img-caption {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.2) 55%, transparent);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
}

.hero-sub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.hero-sub-img-box {
  height: 9rem;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface-solid);
}

.capability-strip {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .capability-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .capability-strip { grid-template-columns: repeat(4, 1fr); }
}

.capability-card {
  padding: 1.25rem;
  border-radius: 0.75rem;
}

.capability-card h2 {
  font-size: 0.92rem;
  font-weight: 700;
}

.capability-card p {
  margin-top: 0.4rem;
  font-size: 0.83rem;
  color: var(--text-secondary);
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
}

/* Search & Tab Bars */
.products-header-row {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .products-header-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.search-wrap {
  position: relative;
  width: 100%;
}

@media (min-width: 1024px) {
  .search-wrap { width: 21rem; }
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.input-field {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-strong);
  background-color: var(--bg-surface-solid);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease;
}

.input-field:focus {
  border-color: var(--brand-primary);
}

html.dark .input-field:focus {
  border-color: #38bdf8;
}

.search-input {
  padding-left: 2.5rem;
  padding-right: 2.25rem;
}

.search-clear-btn {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
}

.tab-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.4rem;
  border-radius: 0.75rem;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 0.5rem 0.9rem;
  border-radius: 0.5rem;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.is-active {
  background-color: var(--brand-primary);
  color: #ffffff;
}

.tab-btn.is-all-active {
  background-color: var(--bg-surface-solid);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* Category Overview Banner */
.cat-banner {
  margin-bottom: 2.25rem;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .cat-banner { grid-template-columns: 5fr 7fr; }
}

.cat-banner-media {
  background: #ffffff;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
}

@media (min-width: 1024px) {
  .cat-banner-media { border-bottom: 0; border-right: 1px solid var(--border-color); }
}

.cat-banner-media img {
  max-height: 16rem;
  width: 100%;
  object-fit: contain;
}

.cat-banner-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
}

.highlight-list {
  list-style: none;
  padding: 0;
  margin: 1.15rem 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem 1.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

@media (min-width: 640px) {
  .highlight-list { grid-template-columns: repeat(2, 1fr); }
}

.highlight-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

/* Product Card */
.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
  border-color: var(--brand-primary);
}

.product-media-btn {
  width: 100%;
  height: 13.5rem;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid var(--border-color);
  padding: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}

.product-media-btn img {
  max-height: 10.75rem;
  width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .product-media-btn img {
  transform: scale(1.03);
}

.product-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.product-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.product-summary {
  margin-top: 0.5rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.text-link-btn {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-primary);
  cursor: pointer;
}

html.dark .text-link-btn {
  color: #38bdf8;
}

.text-link-btn:hover {
  text-decoration: underline;
}

/* Gallery Archive */
.gallery-card {
  text-align: left;
  padding: 0;
  overflow: hidden;
  border-radius: 0.625rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface-solid);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.gallery-card:hover {
  border-color: var(--brand-primary);
}

.gallery-thumb {
  aspect-ratio: 4 / 3;
  background: #ffffff;
  overflow: hidden;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-thumb img {
  transform: scale(1.04);
}

.gallery-caption {
  padding: 0.65rem 0.75rem;
}

.gallery-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-group {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* About, QHSE, Strengths */
.split-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: stretch;
}
@media (min-width: 1024px) {
  .split-2 { grid-template-columns: 1fr 1fr; }
}

.metrics-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}
@media (min-width: 640px) {
  .metrics-4 { grid-template-columns: repeat(4, 1fr); }
}

.metric-value {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--brand-primary);
}

html.dark .metric-value {
  color: #38bdf8;
}

.metric-unit {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.metric-label {
  margin-top: 0.25rem;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.photo-frame {
  min-height: 18rem;
  border-radius: 0.875rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  position: relative;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.equiv-table {
  border-radius: 0.75rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface-solid);
  overflow: hidden;
}

.equiv-head {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.equiv-row {
  padding: 0.65rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.83rem;
}

.equiv-row:last-child {
  border-bottom: 0;
}

.strengths-list {
  border: 1px solid var(--border-color);
  border-radius: 0.875rem;
  background-color: var(--bg-surface);
  padding: 0 1.5rem;
}

.strength-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

@media (min-width: 640px) {
  .strength-item { flex-direction: row; gap: 1.25rem; align-items: baseline; }
}

.strength-item:last-child {
  border-bottom: 0;
}

/* Closing Banner */
.closing-banner {
  background-color: #0f172a;
  color: #f8fafc;
  padding: 3.5rem 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.closing-banner p.quote {
  max-width: 52rem;
  margin: 0.5rem auto 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  color: #e2e8f0;
  line-height: 1.65;
}

/* Contact Grid */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .contact-layout { grid-template-columns: 5fr 7fr; gap: 3rem; }
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .form-grid-2 { grid-template-columns: 1fr 1fr; }
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.alert-box {
  padding: 0.9rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.alert-error {
  background-color: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger-text);
}

.alert-success {
  background-color: var(--emerald-bg);
  border: 1px solid var(--emerald-border);
  color: var(--emerald-text);
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-page);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .footer-inner { flex-direction: row; align-items: center; }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.15rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--brand-primary);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background-color: rgba(2, 6, 23, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-dialog {
  width: 100%;
  max-width: 50rem;
  max-height: 90vh;
  background-color: var(--bg-surface-solid);
  border: 1px solid var(--border-strong);
  border-radius: 0.875rem;
  box-shadow: var(--modal-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-body-grid {
  display: grid;
  grid-template-columns: 1fr;
  overflow-y: auto;
}

@media (min-width: 768px) {
  .modal-body-grid { grid-template-columns: 5fr 7fr; }
}

.modal-media-pane {
  background: #ffffff;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
}

@media (min-width: 768px) {
  .modal-media-pane { border-bottom: 0; border-right: 1px solid var(--border-color); }
}

.modal-media-pane img {
  max-height: 18rem;
  width: 100%;
  object-fit: contain;
}

.modal-content-pane {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Bottom-Center Collapsible 3D Wellbore Inspector Dock */
.wellbore-dock {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 35;
  max-width: 94vw;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dock-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 94vw;
  padding: 0.42rem 0.85rem;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: 0.5rem 0.5rem 0 0;
  border: 1px solid var(--border-strong);
  border-bottom: 0;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

@media (max-width: 479px) {
  #dock-depth-stage, .dock-stage-sep { display: none; }
}

.dock-panel {
  display: none;
  width: min(560px, 92vw);
  border-radius: 0.75rem;
  border: 1px solid var(--border-strong);
  background-color: var(--bg-surface);
  padding: 1rem;
  box-shadow: var(--modal-shadow);
  gap: 1rem;
  flex-direction: column;
}

.dock-panel.is-open {
  display: flex;
}

@media (min-width: 640px) {
  .dock-panel.is-open {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.is-hidden {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
