/* ==========================================================================
   DESHMUKH INFRA SOLUTIONS LLP — Drilling Services
   ========================================================================== */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;700;800;900&family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@500;600&display=swap');

/* ---------- Design tokens ---------- */
:root {
  /* core palette */
  --navy-950: #080e18;
  --navy-900: #0d1826;
  --navy-800: #132236;
  --navy-700: #1b2e47;
  --rust-700: #8f2a17;
  --rust-600: #c13b23;
  --rust-500: #d8471f;
  --amber-500: #e8791b;
  --amber-400: #f2932e;
  --stone-50: #f7f4ee;
  --stone-100: #efe9dd;
  --stone-200: #e4dccb;
  --stone-500: #7a7161;
  --stone-600: #605845;
  --ink-900: #151a1f;
  --ink-700: #333b42;
  --steel-300: #c7ced6;
  --white: #ffffff;

  /* gradients */
  --grad-rust: linear-gradient(135deg, var(--amber-500) 0%, var(--rust-600) 65%, var(--rust-700) 100%);
  --grad-navy: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);

  /* type */
  --f-display: 'Archivo', sans-serif;
  --f-body: 'Inter', sans-serif;
  --f-mono: 'IBM Plex Mono', monospace;

  /* layout */
  --container: 1240px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --shadow-card: 0 10px 30px -12px rgba(13, 24, 38, 0.18);
  --shadow-strong: 0 24px 60px -18px rgba(8, 14, 24, 0.45);

  --ease: cubic-bezier(.16, .84, .44, 1);
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--navy-950);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity .7s var(--ease), visibility .7s var(--ease);
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-rig {
  position: relative;
  width: 86px;
  height: 86px;
  margin-bottom: 26px;
}

.preloader-rig svg {
  width: 100%;
  height: 100%;
}

.preloader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--amber-500);
  animation: spin 0.9s linear infinite;
}

.preloader-bit {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--amber-400);
  animation: drillSpin 1.4s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes drillSpin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.preloader-label {
  font-family: var(--f-mono);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.preloader-count {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.preloader-count::after {
  content: '%';
  font-size: 1.1rem;
  color: var(--amber-400);
  margin-left: 2px;
}

.preloader-track {
  width: 220px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  margin-top: 22px;
  border-radius: 2px;
  overflow: hidden;
}

.preloader-fill {
  height: 100%;
  width: 0%;
  background: var(--grad-rust);
  border-radius: 2px;
  transition: width .2s linear;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--f-body);
  color: var(--ink-900);
  background: var(--stone-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea {
  font-family: inherit;
  font-size: 1rem;
}

:focus-visible {
  outline: 3px solid var(--amber-500);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

section {
  position: relative;
}

/* ---------- Typography helpers ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--navy-950);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust-600);
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--rust-600);
  display: inline-block;
}

.eyebrow.on-dark {
  color: var(--amber-400);
}

.eyebrow.on-dark::before {
  background: var(--amber-400);
}

.section-head {
  max-width: 720px;
  margin-bottom: 52px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  margin-top: 14px;
}

.section-head p {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--stone-600);
  max-width: 640px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head.center .eyebrow::before {
  display: none;
}

.section-head.center .eyebrow {
  justify-content: center;
}

.accent {
  color: var(--rust-600);
}

.accent-amber {
  color: var(--amber-500);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-rust);
  color: var(--white);
  box-shadow: 0 14px 30px -10px rgba(193, 59, 35, 0.55);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 38px -12px rgba(193, 59, 35, 0.65);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-dark {
  background: var(--navy-950);
  color: var(--white);
}

.btn-dark:hover {
  transform: translateY(-3px);
  background: var(--navy-800);
}

.btn-outline-dark {
  border: 1.5px solid var(--navy-800);
  color: var(--navy-950);
}

.btn-outline-dark:hover {
  background: var(--navy-950);
  color: var(--white);
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform .3s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: padding .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}

.site-header.is-scrolled {
  padding: 10px 0;
  background: rgba(247, 244, 238, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px -15px rgba(13, 24, 38, 0.12);
  border-bottom: 1px solid rgba(13, 24, 38, 0.05);
}

.site-header.is-scrolled .brand-text {
  color: var(--navy-950);
}

.site-header.is-scrolled .nav-links a {
  color: var(--ink-700);
}

.site-header.is-scrolled .nav-links a::after {
  background: var(--rust-600);
}

.site-header.is-scrolled .nav-links a:hover,
.site-header.is-scrolled .nav-links a.active {
  color: var(--navy-950);
}

.site-header.is-scrolled .header-phone {
  color: var(--navy-950);
}

.site-header.is-scrolled .menu-toggle span {
  background: var(--navy-950);
}

.site-header.is-scrolled .menu-toggle {
  background: rgba(13, 24, 38, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 44px;
  width: auto;
  transition: height .35s var(--ease);
}

.is-scrolled .brand img {
  height: 38px;
}

.brand-text {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.05;
  color: var(--white);
  font-size: 0.95rem;
}

.brand-text span {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--amber-400);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 600;
  position: relative;
  padding: 6px 0;
  transition: color .25s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--amber-500);
  transition: width .3s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-actions .btn-primary {
  padding: 12px 24px;
  font-size: 0.88rem;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-family: var(--f-mono);
  font-size: 0.85rem;
  font-weight: 500;
}

.header-phone svg {
  width: 16px;
  height: 16px;
  color: var(--amber-400);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 150px 0 90px;
  background: var(--navy-950);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(8, 14, 24, 0.55) 0%, rgba(8, 14, 24, 0.72) 55%, rgba(8, 14, 24, 0.96) 100%),
    url(' ./assets/images/hero.png');
  /* url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&q=80&w=1600'); */
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.08);
  animation: heroZoom 22s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from {
    transform: scale(1.08);
  }

  to {
    transform: scale(1);
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 0.3fr;
  gap: 60px;
  align-items: end;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 26px;
  opacity: 0;
  animation: fadeUp .8s var(--ease) .1s forwards;
}

.hero-badge .dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--grad-rust);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-badge .dot svg {
  width: 13px;
  height: 13px;
  color: #fff;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  color: var(--white);
  text-transform: uppercase;
  line-height: 0.98;
  opacity: 0;
  animation: fadeUp .8s var(--ease) .22s forwards;
}

.hero h1 .line2-container {
  display: block;
  min-height: 1.15em;
}

.hero h1 .line2 {
  background: var(--grad-rust);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline;
}

.hero-sub {
  margin-top: 24px;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  border-left: 2px solid var(--rust-600);
  padding-left: 18px;
  opacity: 0;
  animation: fadeUp .8s var(--ease) .34s forwards;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .8s var(--ease) .46s forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Depth gauge — signature element */
.depth-gauge {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 260px;
  opacity: 0;
  animation: fadeUp .9s var(--ease) .55s forwards;
}

.depth-gauge-label {
  font-family: var(--f-mono);
  color: var(--amber-400);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.depth-gauge-track {
  position: relative;
  height: 210px;
  border-left: 2px solid rgba(255, 255, 255, 0.25);
  padding-left: 18px;
}

.depth-gauge-track .tick {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--f-mono);
  font-size: 0.78rem;
}

.depth-gauge-track .tick::before {
  content: '';
  position: absolute;
  left: -19px;
  width: 10px;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
}

.depth-gauge-track .tick strong {
  color: var(--white);
  font-size: 1rem;
}

.depth-marker {
  position: absolute;
  left: -8px;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--amber-500);
  box-shadow: 0 0 0 6px rgba(232, 121, 27, 0.22);
  animation: gaugeDrop 3.2s var(--ease) infinite;
}

@keyframes gaugeDrop {
  0% {
    top: 0;
  }

  45% {
    top: calc(100% - 16px);
  }

  55% {
    top: calc(100% - 16px);
  }

  100% {
    top: 0;
  }
}

.hero-stats {
  position: relative;
  z-index: 2;
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 28px;
  opacity: 0;
  animation: fadeUp .8s var(--ease) .6s forwards;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-stat .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-400);
  flex-shrink: 0;
}

.hero-stat .icon svg {
  width: 22px;
  height: 22px;
}

.hero-stat strong {
  display: block;
  font-family: var(--f-display);
  font-size: 1.5rem;
  color: var(--white);
  font-weight: 800;
}

.hero-stat span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ==========================================================================
   TRUST STRIP — Why Choose Us
   ========================================================================== */
.trust-strip {
  background: linear-gradient(180deg, var(--stone-50) 0%, var(--white) 100%);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

.trust-strip::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(242, 147, 46, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.trust-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 48px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.trust-head h2 {
  color: var(--navy-950);
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  max-width: 580px;
}

.trust-head p {
  color: var(--ink-700);
  max-width: 520px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}

.trust-card {
  background: var(--white);
  border: 1px solid rgba(13, 24, 38, 0.06);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  color: var(--ink-900);
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease), border-color 0.3s ease, box-shadow 0.4s var(--ease);
}

.trust-card:hover {
  border-color: rgba(232, 121, 27, 0.35);
  box-shadow: 0 20px 48px -18px rgba(193, 59, 35, 0.16);
}

.trust-card .icon {
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  color: var(--rust-600);
  background: linear-gradient(135deg, rgba(242, 147, 46, 0.1) 0%, rgba(193, 59, 35, 0.08) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease), background 0.3s ease;
}

.trust-card .icon svg {
  width: 26px;
  height: 26px;
}

.trust-card:hover .icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(242, 147, 46, 0.18) 0%, rgba(193, 59, 35, 0.15) 100%);
}

.trust-card h4 {
  color: var(--navy-950);
  font-size: 1.1rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.trust-card p {
  font-size: 0.88rem;
  color: var(--stone-600);
  line-height: 1.6;
}

/* ==========================================================================
   MINING SCOPE PANEL
   ========================================================================== */
.services-intro {
  padding: 110px 0 60px;
}

.scope-panel {
  margin-top: 50px;
  background: linear-gradient(120deg, #fdf1ea 0%, #fbe6da 100%);
  border-left: 5px solid var(--rust-600);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 44px clamp(20px, 4vw, 56px);
}

.scope-panel h3 {
  text-align: center;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin-bottom: 36px;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.scope-card {
  background: var(--white);
  border: 1px solid rgba(13, 24, 38, 0.06);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease), border-color 0.3s ease, box-shadow 0.4s var(--ease);
}

.scope-card:hover {
  border-color: rgba(232, 121, 27, 0.25);
  box-shadow: 0 16px 36px -12px rgba(193, 59, 35, 0.12);
}

.scope-card h5 {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--rust-600);
  text-transform: uppercase;
  font-weight: 600;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--stone-200);
}

.scope-card ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  font-size: 0.93rem;
  color: var(--ink-700);
}

.scope-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rust-600);
}

.scope-card ul li small {
  display: block;
  color: var(--stone-500);
  font-size: 0.78rem;
  margin-top: 1px;
}

/* ==========================================================================
   SERVICES GRID
   ========================================================================== */
.services-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  border: 1px solid rgba(20, 30, 45, 0.05);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
}

.service-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fdece2, #fad9c8);
  color: var(--rust-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.service-card .icon svg {
  width: 26px;
  height: 26px;
}

.service-card h4 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--stone-600);
}

/* ==========================================================================
   PILING SECTION (SANY SR235)
   ========================================================================== */
.piling-hero {
  position: relative;
  min-height: 64vh;
  display: flex;
  align-items: center;
  padding: 120px 0;
  background: var(--navy-950);
  overflow: hidden;
}

.piling-hero .hero-bg {
  background-image: linear-gradient(180deg, rgba(8, 14, 24, 0.6) 0%, rgba(8, 14, 24, 0.88) 100%), url('https://images.pexels.com/photos/29470001/pexels-photo-29470001.jpeg?auto=compress&cs=tinysrgb&w=1600');
  background-position: center 35%;
}

.piling-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.piling-hero h2 {
  color: var(--white);
  text-transform: uppercase;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.02;
}

.piling-hero h2 .accent-amber {
  display: inline;
}

.piling-hero p {
  color: rgba(255, 255, 255, 0.8);
  margin-top: 18px;
  font-size: 1.05rem;
  max-width: 540px;
}

.piling-hero .btn {
  margin-top: 30px;
}

.piling-spec {
  padding: 100px 0;
}

.piling-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.piling-spec h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.piling-spec .tag {
  color: var(--rust-600);
  font-weight: 700;
  font-size: 0.95rem;
  display: block;
  margin-top: 6px;
  margin-bottom: 20px;
}

.piling-spec p {
  color: var(--stone-600);
  margin-bottom: 16px;
  font-size: 0.98rem;
}

.check-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-900);
}

.check-list li svg {
  width: 20px;
  height: 20px;
  color: var(--rust-600);
  flex-shrink: 0;
}

.spec-cards {
  display: grid;
  gap: 16px;
}

.spec-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: linear-gradient(120deg, #fdf1ea, #fbe6da);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: transform .3s var(--ease);
}

.spec-card:hover {
  transform: translateX(6px);
}

.spec-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--navy-950);
  color: var(--amber-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.spec-card .icon svg {
  width: 22px;
  height: 22px;
}

.spec-card h5 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.spec-card p {
  font-size: 0.88rem;
  color: var(--stone-600);
  margin: 0;
}

/* ==========================================================================
   GALLERY — Rigs in Action
   ========================================================================== */
.gallery {
  padding: 60px 0 110px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3.1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8, 14, 24, 0.88) 100%);
}

.gallery-caption {
  position: absolute;
  left: 26px;
  bottom: 24px;
  right: 26px;
  z-index: 2;
  color: var(--white);
}

.gallery-caption .tag {
  display: inline-block;
  background: var(--grad-rust);
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.gallery-caption h4 {
  color: var(--white);
  font-size: 1.3rem;
}

/* ==========================================================================
   EXPERTISE / APPLICATIONS
   ========================================================================== */
.expertise {
  background: var(--navy-950);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.expertise::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(232, 121, 27, 0.14), transparent 55%);
}

.expertise .section-head h2,
.expertise .section-head p {
  color: var(--white);
}

.expertise .section-head p {
  color: rgba(255, 255, 255, 0.65);
}

.expertise-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.expertise-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), border-color 0.3s ease, box-shadow 0.4s var(--ease);
}

.expertise-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 121, 27, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.expertise-img-wrapper {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}

.expertise-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.expertise-card:hover .expertise-img-wrapper img {
  transform: scale(1.08);
}

.expertise-card-content {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.expertise-card .icon {
  width: 38px;
  height: 38px;
  color: var(--amber-400);
  margin-bottom: 16px;
}

.expertise-card .icon svg {
  width: 100%;
  height: 100%;
}

.expertise-card h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.expertise-card p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ==========================================================================
   CTA BANNER
   ========================================================================== */
.cta-banner {
  padding: 90px 0;
}

.cta-box {
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--rust-700) 0%, var(--rust-600) 45%, var(--navy-950) 100%);
  padding: clamp(36px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
}

.cta-box h2 {
  color: var(--white);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.82);
  margin-top: 14px;
  max-width: 460px;
  position: relative;
  z-index: 2;
}

.cta-box .btn {
  margin-top: 26px;
  position: relative;
  z-index: 2;
}

.cta-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  position: relative;
  z-index: 2;
}

.cta-stat {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.cta-stat strong {
  display: block;
  font-family: var(--f-display);
  font-size: 1.9rem;
  color: var(--white);
}

.cta-stat span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

/* ==========================================================================
   ABOUT / VISION-MISSION (condensed)
   ========================================================================== */
.about-condensed {
  padding: 100px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}

.about-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
}

.about-media-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: var(--navy-950);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-family: var(--f-display);
}

.about-media-badge strong {
  display: block;
  font-size: 1.4rem;
  color: var(--amber-400);
}

.about-media-badge span {
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.about-copy p {
  color: var(--stone-600);
  margin-top: 16px;
  max-width: 600px;
}

.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 32px;
}

.vm-card {
  border-radius: var(--radius-md);
  padding: 26px;
}

.vm-card.vision {
  background: var(--stone-100);
}

.vm-card.mission {
  background: var(--navy-950);
  color: var(--white);
}

.vm-card h4 {
  margin-bottom: 10px;
}

.vm-card.mission h4 {
  color: var(--white);
}

.vm-card p {
  font-size: 0.9rem;
}

.vm-card.mission p {
  color: rgba(255, 255, 255, 0.72);
}

.vm-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--grad-rust);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.vm-icon svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact {
  padding: 100px 0 110px;
  background: var(--stone-100);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}

.contact-info {
  background: var(--navy-950);
  color: var(--white);
  padding: 48px 42px;
}

.contact-info h3 {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.contact-info>p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.93rem;
  margin-bottom: 34px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
}

.contact-item .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--amber-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item .icon svg {
  width: 20px;
  height: 20px;
}

.contact-item span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 3px;
}

.contact-item strong {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--white);
}

.contact-item a:hover {
  color: var(--amber-400);
}

.contact-form {
  background: var(--white);
  padding: 48px 42px;
}

.contact-form h3 {
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field.full {
  grid-column: 1/-1;
}

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-700);
}

.field input,
.field textarea {
  border: 1.5px solid var(--stone-200);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 0.95rem;
  transition: border-color .25s ease, box-shadow .25s ease;
  background: var(--stone-50);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--rust-600);
  box-shadow: 0 0 0 4px rgba(193, 59, 35, 0.1);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.contact-form .btn {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}

.form-note {
  font-size: 0.8rem;
  color: var(--stone-500);
  margin-top: 12px;
  text-align: center;
}

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  background: #e9f7ee;
  color: #1e6b3d;
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-success.show {
  display: flex;
}

.form-success svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.65);
  padding: 76px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-brand img {
  height: 42px;
}

.footer-brand-text {
  font-family: var(--f-display);
  font-weight: 800;
  color: var(--white);
  font-size: 1rem;
}

.footer-brand-text span {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--amber-400);
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h5 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-family: var(--f-display);
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: color .25s ease;
}

.footer-col ul li a:hover {
  color: var(--amber-400);
}

.footer-col ul li a svg {
  width: 15px;
  height: 15px;
  color: var(--rust-500);
  flex-shrink: 0;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s ease;
}

.footer-social a:hover {
  background: var(--rust-600);
}

.footer-social a svg {
  width: 17px;
  height: 17px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 0;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom .badges {
  display: flex;
  gap: 18px;
}

.footer-bottom .badges span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-bottom .badges svg {
  width: 14px;
  height: 14px;
  color: var(--amber-400);
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger>* {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal-stagger.in>* {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.in>*:nth-child(1) {
  transition-delay: .05s;
}

.reveal-stagger.in>*:nth-child(2) {
  transition-delay: .12s;
}

.reveal-stagger.in>*:nth-child(3) {
  transition-delay: .19s;
}

.reveal-stagger.in>*:nth-child(4) {
  transition-delay: .26s;
}

.reveal-stagger.in>*:nth-child(5) {
  transition-delay: .33s;
}

.reveal-stagger.in>*:nth-child(6) {
  transition-delay: .4s;
}

/* ==========================================================================
   BACK TO TOP
   ========================================================================== */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-rust);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px -8px rgba(193, 59, 35, 0.6);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width:1080px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .depth-gauge {
    justify-self: start;
    max-width: 220px;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .scope-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .piling-spec-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-media img {
    aspect-ratio: 16/9;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width:760px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 78%;
    max-width: 320px;
    background: var(--navy-950);
    flex-direction: column;
    align-items: flex-start;
    padding: 110px 32px 40px;
    gap: 26px;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.35);
  }

  .site-header.is-scrolled .nav-links a {
    color: rgba(255, 255, 255, 0.82);
  }

  .site-header.is-scrolled .nav-links a:hover,
  .site-header.is-scrolled .nav-links a.active {
    color: var(--white);
  }

  .nav-links.is-open {
    transform: translateX(0);
  }

  .menu-toggle {
    display: flex;
  }

  .header-phone {
    display: none;
  }

  .header-actions .btn-primary {
    padding: 10px 18px;
    font-size: 0.8rem;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .check-list {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-stats {
    grid-template-columns: 1fr 1fr;
  }

  .section-head {
    margin-bottom: 36px;
  }

  .services-intro,
  .piling-spec,
  .about-condensed,
  .contact,
  .cta-banner,
  .expertise {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .vm-grid {
    grid-template-columns: 1fr;
  }

  .about-media-badge {
    padding: 12px 16px;
    left: 12px;
    bottom: 12px;
  }

  .about-media-badge strong {
    font-size: 1.4rem;
  }

  .about-media-badge span {
    font-size: 0.6rem;
  }
}

@media (max-width:480px) {
  .sim-stats-grid {
    grid-template-columns: 1fr;
  }

  .sim-action-row {
    flex-direction: column;
  }
}

/* ==========================================================================
   SENIOR UI/UX ARCHITECT ENHANCEMENTS & INTERACTIONS
   ========================================================================== */

/* ---------- Scroll Progress Bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--amber-500) 0%, var(--rust-600) 50%, var(--amber-400) 100%);
  z-index: 2000;
  transition: width 0.1s ease-out;
}

/* ---------- Custom Cursor ---------- */
.custom-cursor,
.custom-cursor-dot {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  body {
    cursor: none;
    /* Hide default cursor on desktop */
  }

  a,
  button,
  input,
  select,
  textarea,
  .btn,
  .trust-card,
  .service-card,
  .spec-card,
  .gallery-item,
  .custom-slider {
    cursor: none !important;
  }

  .custom-cursor {
    display: block;
    width: 28px;
    height: 28px;
    border: 2px solid var(--amber-500);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    transition: width 0.25s var(--ease), height 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease);
  }

  .custom-cursor-dot {
    display: block;
    width: 6px;
    height: 6px;
    background-color: var(--amber-500);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10001;
  }

  /* Cursor hover states */
  .custom-cursor.hovered {
    width: 52px;
    height: 52px;
    background-color: rgba(232, 121, 27, 0.12);
    border-color: var(--amber-400);
  }

  .custom-cursor.blend {
    background-color: var(--white);
    border-color: var(--white);
    mix-blend-mode: difference;
    width: 64px;
    height: 64px;
  }
}

/* ---------- Typed text cursor ---------- */
.typed-cursor {
  opacity: 1;
  animation: blink 0.7s infinite;
  color: var(--amber-500);
  font-weight: 400;
  margin-right: 6px;
  display: inline;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ---------- 3D Tilt perspective ---------- */
.trust-card,
.service-card,
.expertise-card,
.spec-card,
.scope-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s ease;
}

.trust-card>*,
.service-card>*,
.expertise-card>*,
.spec-card>*,
.scope-card>* {
  transform: translateZ(20px);
  /* Lift children slightly */
}

/* ---------- Drilling Simulator ---------- */
.simulator-wrapper {
  margin-top: 80px;
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  padding: 52px 42px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-strong);
}

.simulator-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.simulator-head h3 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  color: var(--white);
  margin-top: 10px;
}

.simulator-head p {
  color: rgba(255, 255, 255, 0.65);
  margin-top: 12px;
  font-size: 0.95rem;
}

.simulator-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 52px;
  align-items: stretch;
}

/* Visual Column */
.sim-visual-column {
  position: relative;
  display: flex;
  background: #06090e;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  min-height: 480px;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
}

.depth-ruler {
  width: 52px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 0;
  align-items: center;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.02);
  user-select: none;
}

.geology-column {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.stratum {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 20px;
  position: relative;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.stratum::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.15;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.stratum:hover::after,
.stratum.active::after {
  opacity: 0.32;
}

/* Stratum styles */
.stratum-sand {
  background: #2b2315;
}

.stratum-sand::after {
  background-image: radial-gradient(rgba(242, 147, 46, 0.3) 15%, transparent 20%);
  background-size: 8px 8px;
}

.stratum-clay {
  background: #361f1c;
}

.stratum-clay::after {
  background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(193, 59, 35, 0.1) 10px, rgba(193, 59, 35, 0.1) 20px);
}

.stratum-gravel {
  background: #25282d;
}

.stratum-gravel::after {
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 20%, transparent 30%);
  background-size: 14px 14px;
}

.stratum-bedrock {
  background: #18191c;
  border-bottom: none;
}

.stratum-bedrock::after {
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 8px, rgba(0, 0, 0, 0.4) 8px, rgba(0, 0, 0, 0.4) 16px);
}

.stratum-name {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.3s ease, transform 0.3s ease;
  z-index: 1;
}

.stratum.active .stratum-name {
  color: var(--amber-400);
  font-weight: 600;
  transform: translateX(-4px);
}

/* Drill Shaft & Bit */
.drill-shaft {
  position: absolute;
  top: 0;
  left: 36%;
  width: 14px;
  height: 35%;
  /* Default */
  background: linear-gradient(90deg, #4b5563 0%, #9ca3af 50%, #4b5563 100%);
  border-radius: 0 0 2px 2px;
  transition: height 0.25s cubic-bezier(0.1, 0.8, 0.25, 1);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.drill-kelly-bar {
  flex: 1;
  width: 6px;
  background: repeating-linear-gradient(180deg, #1f2937, #1f2937 15px, #374151 15px, #374151 30px);
}

.drill-head-tool {
  position: absolute;
  bottom: -22px;
  width: 32px;
  height: 24px;
  background: linear-gradient(90deg, #1e293b 0%, #475569 50%, #1e293b 100%);
  border-radius: 4px;
  border-bottom: 4px solid #f2932e;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Rotation Animation */
.drill-head-tool.rotating {
  animation: drillRotate 0.2s linear infinite;
}

@keyframes drillRotate {
  0% {
    transform: scaleX(1);
  }

  50% {
    transform: scaleX(0.7);
  }

  100% {
    transform: scaleX(1);
  }
}

/* Shaking/Vibration */
.drill-shaft.vibrating {
  animation: drillVibrate 0.08s infinite;
}

@keyframes drillVibrate {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-1.5px) translateY(0.5px);
  }

  75% {
    transform: translateX(1.5px) translateY(-0.5px);
  }
}

.simulator-grid.shaking {
  animation: siteShake 0.15s infinite;
}

@keyframes siteShake {

  0%,
  100% {
    transform: translate(0, 0);
  }

  20% {
    transform: translate(-2px, 1px);
  }

  40% {
    transform: translate(1px, -2px);
  }

  60% {
    transform: translate(-1px, 2px);
  }

  80% {
    transform: translate(2px, -1px);
  }
}

/* Debris particles */
.dust-particles {
  position: absolute;
  bottom: -32px;
  width: 48px;
  height: 24px;
  pointer-events: none;
  display: none;
}

.drill-head-tool.rotating+.dust-particles {
  display: block;
}

.dust-speck {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f2932e;
  opacity: 0.8;
  animation: ejectParticle 0.4s ease-out infinite;
}

@keyframes ejectParticle {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.9;
  }

  100% {
    transform: translate(var(--dx), var(--dy)) scale(0);
    opacity: 0;
  }
}

/* Controls Column */
.sim-controls-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.sim-control-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 24px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  color: var(--white);
}

.slider-header span {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.slider-header strong {
  font-family: var(--f-mono);
  font-size: 1.4rem;
  color: var(--amber-400);
}

.custom-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  margin-bottom: 24px;
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--grad-rust);
  border: 2px solid var(--white);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.sim-action-row {
  display: flex;
  gap: 14px;
}

.sim-action-row .btn {
  flex: 1;
  padding: 12px 20px;
  font-size: 0.88rem;
  justify-content: center;
}

.stratum-details-card {
  background: linear-gradient(135deg, rgba(242, 147, 46, 0.08) 0%, rgba(193, 59, 35, 0.08) 100%);
  border: 1px solid rgba(232, 121, 27, 0.22);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.stratum-details-card h4 {
  color: var(--amber-400);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.stratum-details-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  line-height: 1.6;
}

.sim-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.sim-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.sim-stat-card .stat-icon {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-400);
  flex-shrink: 0;
}

.sim-stat-card .stat-icon svg {
  width: 18px;
  height: 18px;
}

.sim-stat-card span {
  display: block;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.sim-stat-card strong {
  font-size: 0.95rem;
  color: var(--white);
}

.sim-stat-card strong.status-safe {
  color: #4ade80;
}

.sim-stat-card strong.status-warn {
  color: #fbbf24;
}

.sim-stat-card strong.status-danger {
  color: #f87171;
}

/* Responsive simulator adjustments */
@media (max-width: 900px) {
  .simulator-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sim-visual-column {
    min-height: 380px;
  }
}



/* ==========================================================================
   PERSISTENT DEPTH RAIL
   ========================================================================== */
.depth-rail {
  position: fixed;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 850;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transition: opacity .5s ease;
}

.depth-rail.show {
  opacity: 1;
}

.depth-rail-cap {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--navy-800);
  writing-mode: vertical-rl;
  text-transform: uppercase;
  opacity: 0.55;
}

.depth-rail-track {
  position: relative;
  width: 2px;
  height: 190px;
  background: rgba(20, 30, 45, 0.14);
  border-radius: 2px;
}

.depth-rail-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--grad-rust);
  border-radius: 2px;
}

.depth-rail-bit {
  position: absolute;
  left: 50%;
  top: 0%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy-950);
  color: var(--amber-400);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px rgba(20, 30, 45, 0.08);
  transition: top .1s linear;
}

.depth-rail-bit svg {
  width: 11px;
  height: 11px;
}

.depth-rail-readout {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--navy-800);
  text-align: center;
  line-height: 1.4;
}

.depth-rail-readout strong {
  display: block;
  font-size: 0.85rem;
  color: var(--rust-600);
}

.on-dark-page .depth-rail-cap,
.on-dark-page .depth-rail-readout {
  color: var(--steel-300);
}

@media (max-width:1200px) {
  .depth-rail {
    display: none;
  }
}