/* ===== Diamar Ship Management — single-page site ===== */

:root {
  --navy-950: #0a1a2a;
  --navy-900: #0e2237;
  --navy-800: #14304a;
  --navy-700: #1d4068;
  --navy-600: #2a5a8c;
  --navy-500: #3b73ad;
  --sea: #5ea0c8;
  --sand-50: #faf7f0;
  --sand-100: #f3ecdc;
  --sand-200: #e6dcc2;
  --sand-300: #d4c397;
  --earth-500: #b08855;
  --earth-700: #7a5a35;
  --ink: #0c1620;
  --ink-soft: #2c3a48;
  --muted: #5b6b7c;
  --line: #e3dccb;
  --line-dark: rgba(255,255,255,0.12);
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(10,26,42,0.06), 0 2px 6px rgba(10,26,42,0.04);
  --shadow-md: 0 6px 18px rgba(10,26,42,0.08), 0 2px 6px rgba(10,26,42,0.04);
  --shadow-lg: 0 20px 60px rgba(10,26,42,0.16);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --max: 1200px;
  --serif: "Archivo Black", "Inter", system-ui, -apple-system, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sand-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

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

/* ===== Typography ===== */
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow, .section-eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--navy-600);
  font-weight: 600;
  margin: 0 0 0.9em;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy-900);
  color: var(--sand-50);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--navy-800);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--navy-900);
}
.btn-ghost:hover {
  background: var(--navy-900);
  color: var(--sand-50);
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}
.nav.scrolled {
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

/* Light text on transparent nav (over dark hero) */
.nav:not(.scrolled) .nav-links a { color: rgba(255,255,255,0.92); }
.nav:not(.scrolled) .nav-links a:hover { color: var(--sand-300); }
.nav:not(.scrolled) .nav-links a::after { background: var(--sand-300); }
.nav:not(.scrolled) .brand-text strong { color: var(--white); }
.nav:not(.scrolled) .brand-text em { color: rgba(255,255,255,0.7); }
.nav:not(.scrolled) .brand-mark { color: var(--sand-300); }
.nav:not(.scrolled) .nav-toggle span { background: var(--white); }

/* White nav CTA button when nav is transparent (over dark hero) */
.nav:not(.scrolled) .nav-cta {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.nav:not(.scrolled) .nav-cta:hover {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--white);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-900);
}
/* Two-state brand logo — white over dark hero (transparent nav), black on sand (scrolled nav) */
.brand-logo {
  height: 42px;
  width: auto;
  display: block;
}
.nav:not(.scrolled) .brand-logo-light { display: block; }
.nav:not(.scrolled) .brand-logo-dark  { display: none; }
.nav.scrolled .brand-logo-light       { display: none; }
.nav.scrolled .brand-logo-dark        { display: block; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-text strong {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand-text em {
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--navy-900); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--navy-900);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { padding: 10px 20px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px; height: 40px;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy-900);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero (photo-driven, reference style) ===== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 110px 24px 60px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--sand-50);
  background: var(--navy-950);
  isolation: isolate;
}
/* Real <img> as hero background — reliable, debuggable, behind overlay */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
/* Gradient overlay sits ABOVE the image, BELOW the content */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10,26,42,0.75) 0%, rgba(10,26,42,0.45) 40%, rgba(10,26,42,0.10) 70%, rgba(10,26,42,0.20) 100%),
    linear-gradient(180deg, rgba(10,26,42,0.55) 0%, rgba(10,26,42,0.15) 40%, rgba(10,26,42,0.78) 100%);
}

.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 170px);
}

.hero-content {
  position: relative;
  z-index: 2;
}
.hero-title {
  color: var(--white);
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.35);
}
.hero-title .accent-line {
  font-weight: 400;
  color: var(--sand-300);
}
.hero-sub {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 460px;
  margin: 0 0 36px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero .btn-primary {
  background: var(--earth-500);
  color: var(--white);
  border-color: var(--earth-500);
  box-shadow: 0 8px 24px rgba(176,136,85,0.35);
}
.hero .btn-primary:hover {
  background: #c69769;
  border-color: #c69769;
  transform: translateY(-1px);
}
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  transform: translateY(-1px);
}

/* ===== Hero floating cards ===== */
.hero-card {
  position: absolute;
  background: rgba(255,255,255,0.62);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 24px 60px rgba(10,26,42,0.35);
  color: var(--ink);
  z-index: 3;
}

/* Trust card */
.hero-trust {
  bottom: 30px;
  right: 0px;
  top: auto;
  width: 360px;
  border-radius: 16px;
  padding: 22px 24px;
}
.trust-avatars {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  float: left;
}
.trust-avatars .avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-right: -8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}
.trust-link {
  float: right;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-900);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 8px;
}
.trust-link:hover { color: var(--earth-500); }
.trust-text {
  clear: both;
  margin: 14px 0 16px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.trust-rating {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.rating-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1;
}
.rating-star {
  color: var(--earth-500);
  width: 18px; height: 18px;
  display: inline-block;
  margin-left: 2px;
}
.rating-star svg { width: 18px; height: 18px; }
.rating-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-left: auto;
  align-self: flex-end;
  padding-bottom: 4px;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  width: 24px; height: 40px;
  border: 2px solid rgba(243,236,220,0.4);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
  z-index: 4;
}
.scroll-cue span {
  width: 3px; height: 8px;
  background: var(--sand-100);
  border-radius: 2px;
  animation: cue 1.6s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.2; }
}

/* ===== Sections ===== */
.section {
  padding: 110px 0;
  position: relative;
}
/* Defer paint/layout for off-screen sections (modern browsers only) */
.services,
.why,
.operations,
.scope,
.contact {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}
/* Collapse the gap between consecutive dark-navy sections */
.operations { padding-bottom: 60px; }
.operations + .scope { padding-top: 60px; }
.section-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head .section-eyebrow { display: inline-block; }
.section-lead {
  font-size: 1.1rem;
  color: var(--muted);
}
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}
.col-text .section-title { margin-bottom: 24px; }

/* ===== About (image-collage layout) ===== */
.about { background: var(--sand-50); }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 72px;
  align-items: center;
}

/* --- LEFT: collage --- */
.about-media {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}
.about-chevrons {
  position: absolute;
  top: 18%;
  left: -54px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--navy-700);
  opacity: 0.85;
}
.about-chevrons svg {
  width: 38px;
  height: 38px;
}
.about-chevrons svg:nth-child(1) { opacity: 0.4; }
.about-chevrons svg:nth-child(2) { opacity: 0.7; }
.about-chevrons svg:nth-child(3) { opacity: 1; }

.about-frame {
  position: absolute;
  top: 6%;
  right: 0;
  width: 60%;
  height: 60%;
  border: 1.5px solid var(--earth-500);
  border-radius: 28px;
  opacity: 0.55;
  z-index: 0;
}

.about-img {
  position: absolute;
  border-radius: 24px;
  background-color: var(--navy-800);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform 0.5s ease;
}
.about-img::after { content: none; }
.about-img-1 {
  top: 0;
  left: 6%;
  width: 78%;
  height: 60%;
  z-index: 1;
}
.about-img-2 {
  bottom: 6%;
  left: 0;
  width: 56%;
  height: 44%;
  z-index: 2;
}
.about-img-3 {
  bottom: 0;
  right: 0;
  width: 56%;
  height: 42%;
  z-index: 3;
}
.about-img.lazy-loaded { background-image: var(--bg-img); }
.about-media:hover .about-img-1 { transform: translate(-4px, -4px); }
.about-media:hover .about-img-2 { transform: translate(-4px, 4px); }
.about-media:hover .about-img-3 { transform: translate(4px, 4px); }

/* --- RIGHT: content --- */
.about-content { max-width: 540px; }

.about-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--earth-500);
  font-weight: 600;
  margin: 0 0 22px;
}
.eyebrow-icon {
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--earth-500);
}
.eyebrow-icon svg,
.eyebrow-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }

.about-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--navy-950);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}

.about-lead {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 28px;
  padding-left: 18px;
  border-left: 2px solid var(--earth-500);
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 12px;
}
.about-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--navy-950);
}
.about-bullet {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--earth-500);
  flex-shrink: 0;
}
.about-bullet svg { width: 22px; height: 22px; }

.about-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0 0 24px;
}

.about-secondary {
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 32px;
}

.about-signoff {
  display: flex;
  align-items: center;
  gap: 16px;
}
.signoff-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sand-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.signoff-avatar img {
  width: 68%;
  height: 68%;
  object-fit: contain;
  display: block;
}
.signoff-meta {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.signoff-role {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 2px;
}
.signoff-name {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--navy-950);
  font-size: 1.05rem;
}
.signoff-signature {
  color: var(--navy-900);
  width: 110px;
  flex-shrink: 0;
  opacity: 0.85;
}
.signoff-signature svg {
  width: 100%;
  height: auto;
}

/* ===== Services ===== */
.services {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: var(--sand-50);
  border: 1px solid var(--line);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--sand-300);
}
.service-card.featured {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--sand-50);
  border-color: var(--navy-900);
}
.service-card.featured h3, .service-card.featured p { color: var(--sand-50); }
.service-card.featured p { color: rgba(243,236,220,0.8); }
.service-card.featured .service-icon {
  background: rgba(243,236,220,0.12);
  color: var(--sand-100);
}
.service-badge {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: var(--sand-300);
  color: var(--navy-900);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--white);
  color: var(--navy-800);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border: 1px solid var(--line);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 1.35rem;
}
.service-card p {
  font-size: 0.95rem;
  margin: 0;
}

/* ===== Why Choose Us (split layout with tilted photos) ===== */
.why { background: var(--sand-50); }

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 72px;
  align-items: center;
}

.why-content { max-width: 620px; }

.why-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--earth-500);
  font-weight: 600;
  margin: 0 0 22px;
}

.why-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 700;
  color: var(--navy-950);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}

.why-lead {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 0 40px;
}

.why-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0 0 44px;
  max-width: 540px;
}
.why-feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.why-icon {
  width: 64px;
  height: 64px;
  color: var(--earth-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.why-icon svg { width: 100%; height: 100%; }
.why-feature p {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy-950);
  line-height: 1.35;
  margin: 0;
  letter-spacing: -0.005em;
}

.why-cta-row {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.why-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--earth-500);
  color: var(--white);
  border-color: var(--earth-500);
  border-radius: 6px;
  padding: 16px 28px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(176,136,85,0.3);
}
.why-cta svg { width: 18px; height: 18px; }
.why-cta:hover {
  background: #c69769;
  border-color: #c69769;
  transform: translateY(-1px);
}

.why-phone {
  display: flex;
  align-items: center;
  gap: 16px;
}
.phone-icon {
  width: 54px;
  height: 54px;
  border: 1.5px solid var(--earth-500);
  border-radius: 6px;
  color: var(--earth-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.phone-icon svg { width: 22px; height: 22px; }
.phone-meta { display: flex; flex-direction: column; }
.phone-label {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 2px;
}
.phone-number {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-950);
  letter-spacing: 0.01em;
}
.phone-number:hover { color: var(--earth-500); }

/* --- right: tilted photo pair --- */
.why-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  perspective: 1400px;
  align-items: center;
}
.why-img {
  aspect-ratio: 3 / 4.2;
  border-radius: 4px;
  background-color: var(--navy-800);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 25px 50px rgba(10,26,42,0.25);
  transition: transform 0.5s ease;
}
.why-img-1 {
  transform: rotateY(10deg);
  transform-origin: right center;
}
.why-img-2 {
  transform: rotateY(-10deg);
  transform-origin: left center;
}
.why-img.lazy-loaded { background-image: var(--bg-img); }
.why-media:hover .why-img-1 { transform: rotateY(6deg) translateY(-4px); }
.why-media:hover .why-img-2 { transform: rotateY(-6deg) translateY(-4px); }

/* ===== Operations ===== */
.operations {
  background: var(--navy-950);
  color: var(--sand-50);
}
.operations .section-head .section-eyebrow { color: var(--sand-300); }
.operations .section-title { color: var(--sand-50); }
.operations .section-lead { color: rgba(243,236,220,0.75); }

.ops-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(243,236,220,0.15);
  border-bottom: 1px solid rgba(243,236,220,0.15);
}
.ops-stat {
  padding: 48px 24px;
  text-align: center;
  position: relative;
}
.ops-stat + .ops-stat::before {
  content: "";
  position: absolute;
  left: 0; top: 24px; bottom: 24px;
  width: 1px;
  background: rgba(243,236,220,0.15);
}
.ops-num {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 500;
  color: var(--sand-50);
  line-height: 1;
  display: inline-block;
}
.ops-suffix {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--sand-300);
  margin-left: 4px;
}
.ops-label {
  display: block;
  margin-top: 16px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(243,236,220,0.7);
}
.route-chips {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.route-chips li {
  padding: 10px 20px;
  border: 1px solid rgba(243,236,220,0.25);
  border-radius: 999px;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: var(--sand-100);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.route-chips li:hover {
  background: rgba(243,236,220,0.08);
  border-color: var(--sand-300);
}

/* ===== Scope & Standards (merged industries + compliance) ===== */
.scope {
  background: var(--navy-950);
  color: var(--sand-50);
}

.scope-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: flex-end;
  margin-bottom: 56px;
}
.scope-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--earth-500);
  font-weight: 600;
  margin: 0 0 22px;
}
.scope-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
.scope-lead {
  font-size: 1rem;
  color: rgba(243,236,220,0.7);
  line-height: 1.7;
  margin: 0;
  padding-bottom: 8px;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.scope-card {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding: 28px 28px 26px;
  min-height: 180px;
  background: transparent;
  border: 1px solid rgba(243,236,220,0.12);
  border-radius: 8px;
  color: var(--sand-50);
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}
.scope-card:hover {
  background: rgba(255,255,255,0.03);
  border-color: rgba(243,236,220,0.25);
  transform: translateY(-3px);
}
.scope-num {
  position: absolute;
  top: 22px;
  left: 28px;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(243,236,220,0.4);
  letter-spacing: 0.04em;
}
.scope-card h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.15;
  color: var(--white);
  margin: 0;
  letter-spacing: -0.01em;
}
.scope-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  color: var(--earth-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.scope-icon svg { width: 100%; height: 100%; }

/* Accent card (top-left highlight) */
.scope-card-accent {
  background: var(--earth-500);
  border-color: var(--earth-500);
  color: var(--white);
}
.scope-card-accent:hover {
  background: #c69769;
  border-color: #c69769;
  transform: translateY(-3px);
}
.scope-card-accent .scope-num {
  color: rgba(255,255,255,0.55);
}
.scope-card-accent h3 { color: var(--white); }
.scope-card-accent .scope-icon { color: rgba(255,255,255,0.85); }

/* CTA card (bottom-right) */
.scope-card-cta {
  background: var(--earth-500);
  border-color: var(--earth-500);
  align-items: center;
  cursor: pointer;
}
.scope-card-cta:hover {
  background: #c69769;
  border-color: #c69769;
  transform: translateY(-3px);
}
.scope-card-cta h3 { color: var(--white); }
.scope-cta-arrow {
  width: 52px;
  height: 52px;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.45);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.scope-card-cta:hover .scope-cta-arrow {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}
.scope-cta-arrow svg { width: 28px; height: 28px; }
.scope-card-cta .scope-cta-arrow svg circle { display: none; }

/* ===== Contact (enhanced, no form) ===== */
.contact {
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(94,160,200,0.1), transparent 60%),
    linear-gradient(180deg, var(--sand-50) 0%, var(--sand-100) 100%);
}

.contact-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.contact-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--earth-500);
  font-weight: 600;
  margin: 0 0 18px;
}
.contact-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 700;
  color: var(--navy-950);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.contact-lead {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--earth-500);
  box-shadow: 0 18px 40px rgba(10,26,42,0.08);
}
.contact-card.no-link { cursor: default; }
.contact-card.no-link:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: none;
}
.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--sand-100);
  color: var(--earth-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.contact-card-icon svg { width: 22px; height: 22px; }
.contact-card-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 600;
}
.contact-card-value {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy-950);
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.contact-card-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

.contact-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 48px;
  background: var(--navy-950);
  color: var(--sand-50);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.contact-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 90% 50%, rgba(176,136,85,0.25), transparent 60%);
  pointer-events: none;
}
.contact-banner-text { position: relative; z-index: 1; max-width: 540px; }
.contact-banner h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.contact-banner p {
  margin: 0;
  color: rgba(243,236,220,0.75);
  font-size: 0.98rem;
}
.contact-banner-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--earth-500);
  border-color: var(--earth-500);
  color: var(--white);
  border-radius: 6px;
  padding: 16px 28px;
  white-space: nowrap;
  flex-shrink: 0;
}
.contact-banner-btn svg { width: 18px; height: 18px; }
.contact-banner-btn:hover {
  background: #c69769;
  border-color: #c69769;
}

/* ===== Footer (enhanced) ===== */
.footer {
  background: var(--navy-950);
  color: rgba(243,236,220,0.75);
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(176,136,85,0.08), transparent 70%);
  pointer-events: none;
}
.footer .brand { color: var(--sand-50); }
.footer .brand-mark {
  background: rgba(243,236,220,0.12);
  color: var(--sand-100);
}
.footer .brand-text em { color: rgba(243,236,220,0.55); }

/* Diamar white logo in footer (PNG already white, no filter needed) */
.footer-logo {
  display: inline-block;
  max-width: 120px;
  line-height: 0;
}
.footer-logo img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.92;
  transition: opacity 0.25s ease;
}
.footer-logo:hover img { opacity: 1; }

.footer-tagline {
  border-bottom: 1px solid rgba(243,236,220,0.1);
  padding: 32px 0;
  position: relative;
  z-index: 1;
}
.footer-tagline p {
  margin: 0;
  font-family: var(--sans);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  color: var(--sand-100);
  text-align: center;
  letter-spacing: -0.005em;
  line-height: 1.4;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding: 64px 0;
  position: relative;
  z-index: 1;
}
.footer-blurb {
  margin: 18px 0 22px;
  color: rgba(243,236,220,0.7);
  max-width: 320px;
  font-size: 0.95rem;
  line-height: 1.65;
}
.footer-socials {
  display: flex;
  gap: 10px;
}
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(243,236,220,0.08);
  border: 1px solid rgba(243,236,220,0.12);
  color: var(--sand-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, color 0.25s ease;
}
.social-icon svg { width: 16px; height: 16px; }
.social-icon:hover {
  background: var(--earth-500);
  border-color: var(--earth-500);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-col h5 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--earth-500);
  font-weight: 600;
  margin: 0 0 20px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.footer-col ul a {
  color: rgba(243,236,220,0.7);
  font-size: 0.93rem;
  transition: color 0.2s ease, padding 0.2s ease;
  display: inline-block;
  position: relative;
}
.footer-col ul a:hover {
  color: var(--sand-100);
  padding-left: 6px;
}

.footer-contact { display: grid; gap: 14px !important; }
.footer-contact li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(243,236,220,0.5);
  font-weight: 600;
}
.footer-contact a {
  color: var(--sand-100);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.footer-contact a:hover { color: var(--earth-500); }
.footer-contact span:not(.footer-label) {
  color: rgba(243,236,220,0.85);
  font-size: 0.95rem;
}

.footer-bottom {
  border-top: 1px solid rgba(243,236,220,0.12);
  padding: 22px 0;
  position: relative;
  z-index: 1;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(243,236,220,0.55);
}
.footer-bottom-meta { font-size: 0.82rem; }

/* ===== Back to top ===== */
.back-to-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--sand-100);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  z-index: 40;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--navy-800); }

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translate(0, 0) scale(1) rotate(0);
}

/* Reveal direction variants */
.reveal-left  { transform: translateX(-48px); }
.reveal-right { transform: translateX(48px); }
.reveal-scale { transform: scale(0.92); }
.reveal-fade  { transform: none; }
.reveal-up-lg { transform: translateY(56px); }
.reveal-tilt  { transform: translateY(24px) rotate(-1.2deg); }

/* Hero on-load entrance (no scroll, fires immediately) */
.hero-enter > * {
  opacity: 0;
  transform: translateY(18px);
  animation: heroEnter 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-enter > *:nth-child(1) { animation-delay: 0.15s; }
.hero-enter > *:nth-child(2) { animation-delay: 0.30s; }
.hero-enter > *:nth-child(3) { animation-delay: 0.45s; }
.hero-enter > *:nth-child(4) { animation-delay: 0.60s; }
.hero-trust { animation: heroEnter 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.75s forwards; opacity: 0; transform: translateY(18px); }
@keyframes heroEnter {
  to { opacity: 1; transform: translateY(0); }
}

/* Footer reveal stagger */
.footer .reveal:nth-child(1) { transition-delay: 0.00s; }
.footer .reveal:nth-child(2) { transition-delay: 0.08s; }
.footer .reveal:nth-child(3) { transition-delay: 0.16s; }
.footer .reveal:nth-child(4) { transition-delay: 0.24s; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .hero-trust { width: 320px; bottom: 70px; right: 16px; }
  .hero-inner { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-content { max-width: none; margin: 0 auto; }
  .about-chevrons { left: -10px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 56px; }
  .why-content { max-width: none; margin: 0 auto; }
  .why-media { max-width: 560px; margin: 0 auto; }
  .scope-head { grid-template-columns: 1fr; gap: 28px; align-items: flex-start; margin-bottom: 44px; }
  .scope-grid { grid-template-columns: repeat(2, 1fr); }
  .ops-grid { grid-template-columns: repeat(2, 1fr); }
  .ops-stat + .ops-stat::before { display: none; }
  .ops-stat { border-top: 1px solid rgba(243,236,220,0.12); }
  .ops-stat:nth-child(1), .ops-stat:nth-child(2) { border-top: 0; }
  .map-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .hero-inner { min-height: auto; }
  .hero-trust {
    position: static;
    width: 100%;
    max-width: 420px;
    margin-top: 36px;
  }
}

@media (max-width: 720px) {
  .section { padding: 80px 0; }
  .about-media { max-width: 100%; aspect-ratio: 5 / 5; }
  .about-chevrons { left: -4px; top: 14%; }
  .about-chevrons svg { width: 30px; height: 30px; }
  .about-img-1, .about-img-2, .about-img-3 { border-radius: 18px; }
  .about-signoff { flex-wrap: wrap; }
  .signoff-signature { width: 90px; }
  .hero { padding: 110px 20px 40px; min-height: auto; }
  .hero-title { font-size: clamp(1.8rem, 8vw, 3rem); }
  .hero-sub { font-size: 1rem; margin-bottom: 28px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn, .hero-cta .btn-outline-light { width: 100%; }
  .hero-inner { gap: 32px; }
  .hero-trust { padding: 18px 20px; }
  .rating-num { font-size: 2rem; }
  .scroll-cue { display: none; }

  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--sand-50);
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    gap: 16px;
  }
  /* Fix: dark menu links on the sand panel (override the white-over-hero rule) */
  .nav.menu-open .nav-links a,
  .nav:not(.scrolled).menu-open .nav-links a {
    color: var(--navy-900);
  }
  .nav.menu-open .nav-links a:hover,
  .nav:not(.scrolled).menu-open .nav-links a:hover {
    color: var(--earth-500);
  }
  .nav.menu-open .nav-links a::after { background: var(--earth-500); }

  .service-grid { grid-template-columns: 1fr; }
  .why-features { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .why-icon { width: 52px; height: 52px; }
  .why-feature p { font-size: 0.9rem; }
  .why-cta-row { gap: 20px; }
  .ops-grid { grid-template-columns: 1fr; }
  .map-grid { grid-template-columns: 1fr; }

  /* Contact section — stack everything cleanly on mobile */
  .contact-head { margin-bottom: 36px; }
  .contact-title { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .contact-cards {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 32px;
  }
  .contact-card { padding: 24px 22px; }
  .contact-card-icon { width: 42px; height: 42px; margin-bottom: 10px; }
  .contact-card-value { font-size: 1.05rem; word-break: break-word; }
  .contact-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 24px;
    border-radius: 12px;
  }
  .contact-banner h3 { font-size: 1.25rem; }
  .contact-banner p { font-size: 0.95rem; }
  .contact-banner-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 22px;
  }
  .contact-cols { gap: 40px; }

  .scope-grid { grid-template-columns: 1fr; }
  .scope-card { min-height: 150px; padding: 24px; }
  .scope-card h3 { font-size: 1.3rem; }
  .map-card { padding: 28px; }

  /* Footer — proper side breathing room and clean stack */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 48px 20px;
  }
  .footer-tagline { padding: 26px 0; }
  .footer-tagline > .container { padding: 0 20px; }
  .footer-tagline p { font-size: 1.05rem; line-height: 1.5; }
  .footer-blurb { max-width: none; }
  .footer-bottom { padding: 18px 0; }
  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 0 20px;
    text-align: left;
  }
  .footer-bottom-meta { font-size: 0.78rem; }
}

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

/* ============================================================
   ENHANCEMENT LAYER — atmosphere, motion, depth
   ============================================================ */

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--earth-500), var(--sand-300));
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(176,136,85,0.45);
  transition: width 0.08s linear;
}

/* ---------- Paper-grain noise overlay (very subtle) ---------- */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.hero-title .accent-line {
  position: relative;
  display: inline-block;
}
.hero-title .accent-line::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.12em;
  background: linear-gradient(90deg, transparent 0%, var(--earth-500) 15%, var(--sand-300) 50%, var(--earth-500) 85%, transparent 100%);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineGrow 1.4s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  opacity: 0.85;
}
.hero-title .accent-line:nth-of-type(2)::after { animation-delay: 0.45s; }
@keyframes underlineGrow {
  to { transform: scaleX(1); }
}

/* Hero wave divider */
.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: 110px;
  pointer-events: none;
  z-index: 2;
  line-height: 0;
  overflow: hidden;
}
.hero-wave svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hero-wave .wave-a,
.hero-wave .wave-b { transform-box: view-box; will-change: transform; }
.hero-wave .wave-a { animation: waveDrift 14s ease-in-out infinite alternate; }
.hero-wave .wave-b { animation: waveDrift 22s ease-in-out infinite alternate-reverse; }
@keyframes waveDrift {
  0%   { transform: translateX(-30px); }
  100% { transform: translateX(30px);  }
}

/* Scroll cue refinement */
.scroll-cue { z-index: 3; }

/* ---------- Service cards: gold accent stripe + icon motion + glow ---------- */
.service-card {
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--earth-500), var(--sand-300), var(--earth-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(10,26,42,0.10), 0 4px 10px rgba(10,26,42,0.05);
}
.service-card .service-icon {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, color 0.3s ease;
}
.service-card:hover .service-icon {
  transform: translateY(-2px) rotate(-4deg) scale(1.06);
}
.service-card.featured {
  position: relative;
  box-shadow: 0 0 0 1px rgba(212,195,151,0.18), 0 20px 50px rgba(10,26,42,0.25);
}
.service-card.featured::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(212,195,151,0.45), transparent 40%, transparent 60%, rgba(176,136,85,0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}
.service-card.featured::before {
  background: linear-gradient(90deg, var(--sand-300), var(--earth-500), var(--sand-300));
  transform: scaleX(1);
  opacity: 0.8;
}

/* ---------- Magnetic button (transform set by JS) ---------- */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120px 80px at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.btn-primary:hover::before { opacity: 1; }

/* Marquee region strip */
.route-marquee {
  margin-top: 48px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  border-top: 1px solid rgba(243,236,220,0.1);
  border-bottom: 1px solid rgba(243,236,220,0.1);
  padding: 18px 0;
}
.route-marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
}
.route-marquee-track > span {
  font-family: var(--sans);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: rgba(243,236,220,0.55);
  letter-spacing: 0.22em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 56px;
}
.route-marquee-track > span::after {
  content: "·";
  color: var(--earth-500);
  font-size: 1.4rem;
  font-style: normal;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Reveal stagger ---------- */
.service-grid .reveal,
.ops-grid .reveal,
.scope-grid .reveal,
.contact-cards .reveal {
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-grid .reveal:nth-child(1) { transition-delay: 0.00s; }
.service-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.service-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.service-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.service-grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.service-grid .reveal:nth-child(6) { transition-delay: 0.40s; }
.ops-grid .reveal:nth-child(1) { transition-delay: 0.00s; }
.ops-grid .reveal:nth-child(2) { transition-delay: 0.10s; }
.ops-grid .reveal:nth-child(3) { transition-delay: 0.20s; }
.ops-grid .reveal:nth-child(4) { transition-delay: 0.30s; }
.scope-grid .reveal:nth-child(1) { transition-delay: 0.00s; }
.scope-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.scope-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.scope-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.scope-grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.scope-grid .reveal:nth-child(6) { transition-delay: 0.40s; }
.contact-cards .reveal:nth-child(1) { transition-delay: 0.00s; }
.contact-cards .reveal:nth-child(2) { transition-delay: 0.10s; }
.contact-cards .reveal:nth-child(3) { transition-delay: 0.20s; }

/* ---------- Route chips: subtle hover lift ---------- */
.route-chips li {
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, color 0.25s ease;
}
.route-chips li:hover {
  transform: translateY(-2px);
  color: var(--white);
}

/* ---------- Scope cards: gold corner accent on hover ---------- */
.scope-card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.scope-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* ---------- Reduced motion guard ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-bg,
  .hero-wave .wave-a,
  .hero-wave .wave-b,
  .route-marquee-track,
  .hero-title .accent-line::after {
    animation: none !important;
  }
  .hero-title .accent-line::after { transform: scaleX(1); }
}
