/* ════════════════════════════════════════════════════════════
   SECTIONS
   Page content: wave dividers, hero, capabilities/cards, about,
   process, routes map, contact form, floating CTA.
   Breakpoint overrides for these live in responsive.css.
   ════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════
   ANIMATED WAVE DIVIDERS
═══════════════════════════════ */
.wave-divider {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  position: relative;
  z-index: 11;
}

.wave-divider svg {
  display: block;
  width: 100%;
}

/* Each wave path gets a gentle transform from JS on scroll */
.wave-divider svg path {
  transition: d 0.1s linear;
  will-change: transform;
}

/* Animated shimmer on waves */
.wave-divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.04), transparent);
  animation: waveShimmer 4s linear infinite;
  pointer-events: none;
}

@keyframes waveShimmer {
  to {
    left: 140%;
  }
}

.wave-hero-to-cap {
  background: var(--d0);
}

.wave-hero-to-cap svg path {
  fill: var(--d1);
}

.wave-cap-to-about {
  background: var(--d1);
}

.wave-cap-to-about svg path {
  fill: var(--d2);
}

.wave-about-to-routes {
  background: var(--d2);
}

.wave-about-to-routes svg path {
  fill: var(--d3);
}

.wave-routes-to-contact {
  background: var(--d3);
}

.wave-routes-to-contact svg path {
  fill: var(--d4);
}

.wave-contact-to-footer {
  background: var(--d4);
}

.wave-contact-to-footer svg path {
  fill: var(--d5);
}

/* ═══════════════════════════════
   HERO
═══════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  background: var(--d0);
  display: flex;
  align-items: center;
  padding-top: 3.5rem;
  overflow: hidden;
  cursor: pointer;
  /* the whole hero is clickable to switch the image */
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 120% 80% at 30% 60%, rgba(0, 80, 130, 0.55) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(0, 120, 180, 0.2) 0%, transparent 70%);
  pointer-events: none;
  transition: background-position 0.2s ease-out;
}

/* Reactive background gradient overlay */
#hero-reactive-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(14, 74, 110, 0.4) 0%, transparent 70%);
  transition: background 0.4s ease;
}

/* Two stacked full-bleed images: solar on top, machinery beneath.
   Hovering reveals the other layer via the cursor flashlight; clicking
   the hero crossfades between them (js/main.js toggles #hero.view-machinery). */
.hero-bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  will-change: transform, opacity;
}

/* bottom layer = agricultural machinery (sits under the solar layer) */
.hero-layer-bottom {
  opacity: 1;
}

/* top layer = solar panels (fades to reveal the machinery beneath) */
.hero-layer-top {
  opacity: 1;
  transition: opacity 0.8s ease;
}

/* switched to machinery view: fully crossfade away the solar layer */
#hero.view-machinery .hero-layer-top {
  opacity: 0;
}

.hero-bg-img::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  /* keep the blue tint above the flashlight so the reveal stays cohesive */
  background: linear-gradient(110deg, rgba(14, 74, 110, 0.92) 0%, rgba(8, 45, 71, 0.7) 50%, rgba(6, 34, 56, 0.4) 100%);
}

/* ── CURSOR FLASHLIGHT ──
   Reveals the machinery layer only in a circle around the mouse.
   A solid (low-opacity) core fades out, and a dithered ring of tiny
   squares scatters at the edge — like a dissolving spotlight.
   --mx / --my are set by js/main.js on mousemove. */
.hero-flash {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

#hero:hover .hero-flash {
  opacity: 1;
}

.hero-flash-core,
.hero-flash-dither {
  position: absolute;
  inset: 0;
  background: url("../images/Farm-tractor-pesticides-crops.webp") center / cover no-repeat;
}

/* in machinery view the flashlight reveals the OTHER image (solar) */
#hero.view-machinery .hero-flash-core,
#hero.view-machinery .hero-flash-dither {
  background-image: url("../images/Solar_field.jpg");
}

/* soft solid-ish core (kept at low opacity so the reveal is subtle) */
.hero-flash-core {
  opacity: 0.6;
  -webkit-mask-image: radial-gradient(circle var(--fr, 160px) at var(--mx, 50%) var(--my, 50%),
      #000 0%, rgba(0, 0, 0, 0.88) 36%, rgba(0, 0, 0, 0) 70%);
  mask-image: radial-gradient(circle var(--fr, 160px) at var(--mx, 50%) var(--my, 50%),
      #000 0%, rgba(0, 0, 0, 0.88) 36%, rgba(0, 0, 0, 0) 70%);
}

/* scattered dithered ring = (tiny-square pattern) ∩ (ring gradient) */
.hero-flash-dither {
  display: none;
  opacity: 0.5;
  -webkit-mask-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='5'%3E%3Crect width='2' height='2' fill='black'/%3E%3C/svg%3E"),
    radial-gradient(circle var(--fr2, 230px) at var(--mx, 50%) var(--my, 50%),
      transparent 0%, transparent 30%, #000 52%, transparent 90%);
  mask-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='5'%3E%3Crect width='2' height='2' fill='black'/%3E%3C/svg%3E"),
    radial-gradient(circle var(--fr2, 230px) at var(--mx, 50%) var(--my, 50%),
      transparent 0%, transparent 30%, #000 52%, transparent 90%);
  -webkit-mask-size: 5px 5px, 100% 100%;
  mask-size: 5px 5px, 100% 100%;
  -webkit-mask-repeat: repeat, no-repeat;
  mask-repeat: repeat, no-repeat;
  mask-composite: intersect;
}

/* only enable the dithered ring where mask compositing is supported,
   otherwise it would tile across the whole spotlight */
@supports (mask-composite: intersect) {
  .hero-flash-dither {
    display: block;
  }
}

/* Diagonal scan lines */
.hero-scanlines {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(0deg,
      transparent,
      transparent 3px,
      rgba(0, 0, 0, 0.04) 3px,
      rgba(0, 0, 0, 0.04) 4px);
  pointer-events: none;
}

/* Animated grid */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridDrift 20s linear infinite;
  will-change: background-position;
}

@keyframes gridDrift {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 60px 60px, 60px 60px;
  }
}

/* Canvas particles */
#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.5;
}

/* Rotating rings */
.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.08);
  pointer-events: none;
  z-index: 2;
  animation: ringRotate 30s linear infinite;
}

.hero-ring:nth-child(1) {
  width: 500px;
  height: 500px;
  top: -80px;
  right: -60px;
  animation-duration: 40s;
}

.hero-ring:nth-child(2) {
  width: 320px;
  height: 320px;
  top: 20px;
  right: 30px;
  animation-direction: reverse;
  animation-duration: 25s;
  border-style: dashed;
}

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

/* Hero content */
.hero-content {
  position: relative;
  z-index: 10;
  padding: 4rem 4rem 6rem;
  max-width: 52rem;
  cursor: default;
}

/* Two content variants — only one shows at a time. Clicking the hero
   adds `.view-machinery` to #hero, which swaps the whole block.
   Re-displaying a block replays its children's entrance animations. */
.hero-content-machinery {
  display: none;
}

#hero.view-machinery .hero-content-solar {
  display: none;
}

#hero.view-machinery .hero-content-machinery {
  display: block;
}

/* the machinery variant gets a distinct layout (boxed label badge) */
.hero-content-machinery .label-tag {
  display: inline-block;
  border: 1px solid var(--border);
  padding: 0.45rem 0.9rem;
  margin-bottom: 1.1rem;
}

/* keep "Agricultural Machinery" on a single line (scales down to fit) */
.hero-content-machinery .hero-title {
  white-space: nowrap;
  font-size: clamp(1.7rem, 5.5vw, 4rem);
}

.hero-content .label-tag {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.7s 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  color: #fff;
  line-height: 1.08;
  margin-bottom: 1.3rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(22px);
  animation: fadeUp 0.75s 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title em {
  color: var(--gold-lt);
  font-style: italic;
}

.hero-sub {
  color: rgba(205, 221, 232, 0.75);
  font-size: 0.87rem;
  max-width: 30rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.75s 1.05s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.7s 1.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Floating card */
/* Floating logo — no backdrop / box; the bare emblem bobs gently. */
.hero-card {
  position: absolute;
  right: 4%;
  top: 22%;
  z-index: 20;
  width: min(150px, 38vw);
  height: min(150px, 30vh);
  opacity: 0;
  animation:
    heroCardIn 0.8s 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards,
    heroFloat 5s ease-in-out 2.3s infinite;
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.45));
}

@keyframes heroCardIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes heroFloat {

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

  50% {
    transform: translateY(-13px);
  }
}

/* Hint that the hero image is interactive */
.hero-swap-hint {
  position: absolute;
  bottom: 1.6rem;
  right: 1.8rem;
  z-index: 9;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(205, 221, 232, 0.7);
  pointer-events: none;
  opacity: 0;
  animation: fadeUp 0.8s 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-swap-hint::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: cta-ping 1.6s ease-in-out infinite;
}

/* ═══════════════════════════════
   CAPABILITIES
═══════════════════════════════ */
#capabilities {
  background: var(--d1);
  padding: 6rem 4rem;
  position: relative;
  z-index: 10;
  transition: background 0.5s ease;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin-top: 0.4rem;
}

.section-header .aside-text {
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 24rem;
  font-style: italic;
  line-height: 1.8;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.card {
  background: rgba(6, 34, 56, 0.6);
  padding: 2.2rem 1.8rem;
  transition: background 0.25s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 0;
  background: var(--gold);
  transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(201, 168, 76, 0.06), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

/* Hover emphasis — laptops / desktops (wider than the phone breakpoint,
   incl. touchscreen laptops). Phones (≤768px) get the same emphasis on
   scroll instead (see touch.css `.in-view`). */
@media (min-width: 769px) {

  .card:hover::before {
    height: 100%;
  }

  .card:hover::after {
    opacity: 1;
  }

  .card:hover {
    background: rgba(4, 24, 40, 0.85);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  }

  .card:hover h3 {
    color: var(--gold-lt);
  }
}

.card-icon {
  color: var(--gold);
  margin-bottom: 1.4rem;
  opacity: 0.8;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}

@media (min-width: 769px) {
  .card:hover .card-icon {
    transform: scale(1.12) rotate(-3deg);
    opacity: 1;
  }
}

.card h3 {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.8rem;
  transition: color 0.25s;
  font-weight: 600;
  font-family: 'Cormorant Garamond', serif;
}

.card p {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.8;
}

/* ── CARD IMAGE SLIDER ── */
.card-slider {
  position: relative;
  width: calc(100% + 3.6rem);
  margin-left: -1.8rem;
  margin-top: -2.2rem;
  margin-bottom: 1.4rem;
  height: 300px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}

.card-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.card-slider img.active {
  opacity: 1;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(4, 24, 40, 0.72);
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: var(--gold);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s, border-color 0.2s;
  padding: 0;
}

@media (min-width: 769px) {
  .card:hover .slider-arrow {
    opacity: 1;
  }
}

.slider-arrow:hover {
  background: rgba(201, 168, 76, 0.18);
  border-color: var(--gold);
}

.slider-arrow.prev { left: 6px; }
.slider-arrow.next { right: 6px; }

.slider-dots {
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 5;
}

.slider-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}

.slider-dot.active {
  background: var(--gold);
  transform: scale(1.35);
}

/* ═══════════════════════════════
   ABOUT
═══════════════════════════════ */
#about {
  background: var(--d2);
  padding: 6rem 4rem;
  position: relative;
  z-index: 9;
  transition: background 0.5s ease;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  max-width: 1100px;
}

.about-text h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: #fff;
  margin-bottom: 1.4rem;
  line-height: 1.15;
}

.about-text>p {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 0.9rem;
}

.about-pillars {
  margin-top: 2.5rem;
}

.pillar {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar:first-child {
  border-top: 1px solid var(--border);
}

.pillar:hover {
  padding-left: 0.5rem;
}

.pillar-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--gold);
  opacity: 0.45;
  line-height: 1;
  min-width: 2rem;
  padding-top: 0.05rem;
  transition: opacity 0.3s;
}

.pillar:hover .pillar-num {
  opacity: 0.9;
}

.pillar-body h4 {
  font-size: 0.9rem;
  color: #dce6f0;
  margin-bottom: 0.3rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
}

.pillar-body p {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.75;
}

.about-visual {
  position: relative;
}

.about-video-wrap {
  position: relative;
  border: 1px solid var(--border);
  overflow: hidden;
  min-height: 400px;
}

/* Animated border shimmer around video */
.about-video-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 1px solid transparent;

  animation: borderSlide 3s linear infinite;
  pointer-events: none;
}

@keyframes borderSlide {
  from {
    background-position: -200% 0, -200% 0;
  }

  to {
    background-position: 200% 0, 200% 0;
  }
}

.about-video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.about-video-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 34, 56, 0.6) 0%, transparent 65%);
  z-index: 1;
  pointer-events: none;
}

.about-corner {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  width: 3.5rem;
  height: 3.5rem;
  border-bottom: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  animation: cornerPulse 2.5s ease-in-out infinite;
}

@keyframes cornerPulse {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

/* ══ PROCESS ══ */
step-circle-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  width: 6.2rem;
  height: 6.2rem;
}

.wave-about-to-process {
  background: var(--d2);
}

.wave-about-to-process svg path {
  fill: var(--d3);
}

.wave-process-to-routes {
  background: var(--d3);
}

.wave-process-to-routes svg path {
  fill: var(--d3);
}

#process {
  background: var(--d3);
  padding: 6rem 4rem;
  position: relative;
  z-index: 8;
}

.process-header {
  text-align: center;
  margin-bottom: 4rem;
}

.process-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
}

.process-header p {
  font-size: .8rem;
  color: var(--muted);
  max-width: 38rem;
  margin: .6rem auto 0;
  line-height: 1.8;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  max-width: 1100px;
  gap: 0;
}

/* Animated connector overlay: a small-amplitude AC wave with a beam
   flowing along it and a single ship sailing the wave between the numbers.
   (SVG sits behind the numbered circles; markup is in index.html.) */
.process-flow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6.2rem;
  z-index: 0;
  opacity: 1;
  /* override the reveal-group fade-in applied to .process-steps children */
  transform: none;
  pointer-events: none;
  overflow: visible;
  /* Fade the wave/pulses/ship to nothing over the four numbered circles
     (at 12.5% / 37.5% / 62.5% / 87.5%), so they "disappear" on contact. */
  -webkit-mask-image: linear-gradient(to right,
      transparent 16.5%, #000 18.5%, #000 31.5%, transparent 33.5%,
      transparent 41.5%, #000 43.5%, #000 56.5%, transparent 58.5%,
      transparent 66.5%, #000 68.5%, #000 81.5%, transparent 83.5%);
  mask-image: linear-gradient(to right,
      transparent 16.5%, #000 18.5%, #000 31.5%, transparent 33.5%,
      transparent 41.5%, #000 43.5%, #000 56.5%, transparent 58.5%,
      transparent 66.5%, #000 68.5%, #000 81.5%, transparent 83.5%);
}

/* faint static wave track */
.process-flow .flow-base {
  fill: none;
  stroke: rgba(201, 168, 76, 0.22);
  stroke-width: 1.5;
}

/* glowing light carried by each ship (drawn inside the ship group, so it
   shares the exact same motion — always directly under the ship) */
.process-flow .flow-light {
  stroke: var(--gold-lt);
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.9;
  filter: drop-shadow(0 0 5px rgba(201, 168, 76, 0.9));
}

.process-step {
  text-align: center;
  padding: 0 1.4rem;
  position: relative;
  z-index: 1;
}

.step-circle-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  width: 6.2rem;
  height: 6.2rem;
}

.step-outer {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 168, 76, .2);
  border-radius: 50%;
  transition: border-color .35s, transform .4s cubic-bezier(.16, 1, .3, 1);
}

@media (min-width: 769px) {
  .process-step:hover .step-outer {
    border-color: rgba(201, 168, 76, .6);
    transform: scale(1.06);
  }
}

.step-inner {
  width: 4.6rem;
  height: 4.6rem;
  background: rgba(8, 45, 71, .85);
  border: 1px solid rgba(201, 168, 76, .35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  color: var(--gold);
  font-weight: 600;
  transition: background .3s, border-color .3s;
}

@media (min-width: 769px) {
  .process-step:hover .step-inner {
    background: rgba(201, 168, 76, .08);
    border-color: var(--gold);
  }
}

.step-tag {
  font-size: .52rem;
  text-transform: uppercase;
  letter-spacing: .25em;
  color: var(--gold);
  opacity: .65;
  display: block;
  margin-bottom: .4rem;
}

.step-title {
  font-size: 1.05rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: .6rem;
  font-family: 'DM Sans', sans-serif;
}

.step-desc {
  font-size: .72rem;
  color: var(--muted);
  line-height: 1.8;
}

/* ═══════════════════════════════
   ROUTES
═══════════════════════════════ */
#routes {
  background: var(--d3);
  padding: 6rem 4rem;
  position: relative;
  z-index: 8;
  transition: background 0.5s ease;
}

.routes-header {
  text-align: center;
  margin-bottom: 3rem;
}

.routes-header h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: #fff;
  margin-bottom: 0.6rem;
}

.routes-header p {
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 auto;
  line-height: 1.75;
}

.map-wrap {
  background: rgba(2, 15, 27, 0.5);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.map-svg {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes dash-flow {
  from {
    stroke-dashoffset: 300;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes dash-flow-rev {
  from {
    stroke-dashoffset: 0;
  }

  to {
    stroke-dashoffset: -300;
  }
}

.route-primary {
  stroke-dasharray: 8 5;
  animation: dash-flow 2.8s linear infinite;
}

.route-secondary {
  stroke-dasharray: 4 6;
  animation: dash-flow 5s linear infinite;
}

/* Hub pulse rings */
@keyframes hubPulse {
  0% {
    r: 6;
    opacity: 0.8;
  }

  100% {
    r: 36;
    opacity: 0;
  }
}

.hub-pulse {
  animation: hubPulse 2.4s ease-out infinite;
}

.hub-pulse:nth-child(2) {
  animation-delay: 0.8s;
}

.hub-pulse:nth-child(3) {
  animation-delay: 1.6s;
}

/* Traveling dot */
@keyframes travelRoute1 {
  0% {
    offset-distance: 0%;
  }

  100% {
    offset-distance: 100%;
  }
}

@keyframes travelRoute2 {
  0% {
    offset-distance: 0%;
  }

  100% {
    offset-distance: 100%;
  }
}

/* City ping */
@keyframes cityPing {
  0% {
    r: 4;
    opacity: 0.7;
  }

  100% {
    r: 14;
    opacity: 0;
  }
}

.city-ping {
  animation: cityPing 2s ease-out infinite;
}

.city-ping:nth-child(2) {
  animation-delay: 0.5s;
}

.city-ping:nth-child(3) {
  animation-delay: 1s;
}

.city-ping:nth-child(4) {
  animation-delay: 1.5s;
}

.map-legend {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.68rem;
  color: var(--muted);
}

/* ═══════════════════════════════
   CONTACT
═══════════════════════════════ */
#contact {
  background: var(--d4);
  padding: 6rem 4rem;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 7;
  transition: background 0.5s ease;
}

.contact-box {
  width: 100%;
  max-width: 44rem;
  background: rgba(4, 24, 40, 0.7);
  border: 1px solid var(--border);
  padding: 4rem;
  position: relative;
  backdrop-filter: blur(10px);
  transition: box-shadow 0.4s;
}

.contact-box:hover {
  box-shadow: 0 0 40px rgba(201, 168, 76, 0.06);
}

.contact-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2rem;
  width: 5rem;
  height: 2px;
  background: var(--gold);
}

.contact-box .label-tag {
  text-align: center;
}

.contact-box h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: #fff;
  text-align: center;
  margin: 0.5rem 0 0.7rem;
}

.contact-box>p {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  max-width: 28rem;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.field {
  margin-bottom: 2rem;
  position: relative;
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(201, 168, 76, 0.18);
  color: #fff;
  font-size: 0.8rem;
  padding: 0.6rem 0;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s;
}

.field::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.field:focus-within::after {
  width: 100%;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(106, 146, 170, 0.6);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: transparent;
}

.field textarea {
  resize: none;
}

.form-status {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
}

.form-status--ok {
  color: var(--gold-lt, #d9c27a);
}

.form-status--error {
  color: #ff8a7a;
}

.form-submit button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-submit {
  text-align: center;
  margin-top: 0.5rem;
}

.form-submit button {
  background: var(--gold);
  color: #010810;
  border: none;
  padding: 1rem 3.5rem;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  font-family: 'DM Sans', sans-serif;
  position: relative;
  overflow: hidden;
}

.form-submit button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease, opacity 0.5s;
  opacity: 0;
}

.form-submit button:hover::after {
  width: 300px;
  height: 300px;
  opacity: 1;
}

.form-submit button:hover {
  background: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.3);
}

/* ══ CONTACT LOADER — compass / sonar ══
   Overlays the contact card while a request is in flight. */
.contact-loader {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.4rem;
  background: linear-gradient(180deg, rgba(1, 8, 16, 0.82), rgba(6, 34, 56, 0.92));
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.contact-loader.is-active {
  opacity: 1;
  visibility: visible;
}

.cl-compass {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* every child is centred on the compass hub */
.cl-compass > * {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* expanding sonar rings */
.cl-ring {
  border-radius: 50%;
  border: 1.5px solid rgba(201, 168, 76, 0.5);
  animation: cl-pulse 3s ease-in-out infinite;
}

.cl-ring:nth-child(4) { width: 56px;  height: 56px;  animation-delay: 0s; }
.cl-ring:nth-child(5) { width: 92px;  height: 92px;  animation-delay: 0.3s; }
.cl-ring:nth-child(6) { width: 128px; height: 128px; animation-delay: 0.6s; }
.cl-ring:nth-child(7) { width: 164px; height: 164px; animation-delay: 0.9s; }
.cl-ring:nth-child(8) { width: 200px; height: 200px; animation-delay: 1.2s; }

@keyframes cl-pulse {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 0.15; transform: translate(-50%, -50%) scale(1.12); }
}

/* faint rotating radar sweep */
.cl-sweep {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(201, 168, 76, 0.16), transparent 30%);
  animation: cl-spin 5s linear infinite;
}

/* compass cross-hairs */
.cl-crosshair {
  background: var(--border);
}
.cl-crosshair--h { width: 200px; height: 1px; }
.cl-crosshair--v { width: 1px; height: 200px; }

/* rotating bearing needle */
.cl-needle {
  z-index: 2;
  animation: cl-spin 6s linear infinite;
}

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

/* compass hub */
.cl-dot {
  z-index: 3;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-lt);
  box-shadow: 0 0 10px var(--gold);
}

.cl-text {
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .cl-ring,
  .cl-sweep,
  .cl-needle {
    animation-duration: 6s;
  }
}

/* ══ OTP VERIFICATION PANEL ══
   Overlays the contact card after a code has been emailed. */
.otp-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;          /* above magnetize (3), below the loading overlay (5) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(1, 8, 16, 0.92), rgba(6, 34, 56, 0.96));
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.otp-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.otp-panel {
  position: relative;
  width: 100%;
  max-width: 30rem;
  text-align: center;
  background: rgba(4, 24, 40, 0.7);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2.8rem 2rem 2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.otp-overlay.is-active .otp-panel {
  transform: none;
}

.otp-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.3rem;
  line-height: 0;
  transition: color 0.2s, transform 0.2s;
}

.otp-close:hover {
  color: var(--gold-lt);
  transform: rotate(90deg);
}

.otp-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.otp-panel h3 {
  font-family: 'Cormorant Garamond', serif;
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 0.6rem;
}

.otp-sub {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 24rem;
  margin: 0 auto 1.9rem;
}

.otp-sub #otpEmail {
  color: var(--gold-lt);
}

.otp-inputs {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.otp-box {
  width: 3rem;
  height: 3.4rem;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.otp-box:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.18);
}

.otp-change {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 1.6rem;
}

.otp-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--gold-lt);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.otp-link:hover {
  color: var(--gold);
}

.otp-verify {
  display: inline-block;
  background: var(--gold);
  color: #010810;
  border: none;
  cursor: pointer;
  padding: 0.85rem 3rem;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border-radius: 40px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.otp-verify:hover:not(:disabled) {
  background: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.3);
}

.otp-verify:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.otp-panel .form-status {
  margin: 1rem 0 0;
}

.otp-resend {
  display: block;
  margin: 0 auto 1.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

@media (max-width: 480px) {
  .otp-panel {
    padding: 2.4rem 1.2rem 1.6rem;
  }
  .otp-inputs {
    gap: 0.4rem;
  }
  .otp-box {
    width: 2.5rem;
    height: 3rem;
    font-size: 1.1rem;
  }
}

/* ── success state: animated tick + message ── */
.otp-success {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 2rem;
  border-radius: 6px;
  background: rgba(4, 24, 40, 0.98);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.otp-panel.is-success .otp-success {
  opacity: 1;
  visibility: visible;
}

.otp-check {
  width: 86px;
  height: 86px;
  margin-bottom: 1rem;
}

.otp-check-ring,
.otp-check-mark {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.otp-check-ring {
  stroke: var(--gold);
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
}

.otp-check-mark {
  stroke: var(--gold-lt);
  stroke-dasharray: 52;
  stroke-dashoffset: 52;
}

.otp-panel.is-success .otp-check-ring {
  animation: otp-draw 0.55s ease forwards;
}

.otp-panel.is-success .otp-check-mark {
  animation: otp-draw 0.35s ease 0.45s forwards;
}

.otp-panel.is-success .otp-check {
  animation: otp-pop 0.4s ease 0.7s both;
}

.otp-success h3 {
  font-family: 'Cormorant Garamond', serif;
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 0;
  opacity: 0;
}

.otp-success p {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
  opacity: 0;
}

.otp-panel.is-success .otp-success h3 {
  animation: otp-fade 0.45s ease 0.8s forwards;
}

.otp-panel.is-success .otp-success p {
  animation: otp-fade 0.45s ease 0.98s forwards;
}

@keyframes otp-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes otp-pop {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

@keyframes otp-fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .otp-check-ring,
  .otp-check-mark { stroke-dashoffset: 0; }
  .otp-panel.is-success .otp-check-ring,
  .otp-panel.is-success .otp-check-mark,
  .otp-panel.is-success .otp-check { animation: none; }
  .otp-success h3,
  .otp-success p { opacity: 1; }
}

/* ══ MAGNETIZE — gold motes drawn to the cursor around the submit button ══ */
.form-submit {
  position: relative;
}

.mag-layer {
  position: absolute;
  inset: 0;
  z-index: 3;          /* above the gold button, below the loading overlay (z 5) */
  pointer-events: none;
}

.mag-particle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.mag-particle i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.85) 0%, rgba(201, 168, 76, 0) 70%);
  box-shadow: 0 0 8px 2px rgba(201, 168, 76, 0.2);
  animation: mag-float 3s ease-in-out infinite;
  will-change: transform, opacity;
}

/* low base opacity — blobs stay faint, brightening only slightly on the pulse */
@keyframes mag-float {
  0%, 100% { transform: translate(0, 0) scale(1);   opacity: 0.1; }
  50%      { transform: translate(var(--fx, 0), var(--fy, 0)) scale(1.5); opacity: 0.3; }
}

@media (prefers-reduced-motion: reduce) {
  .mag-particle i {
    animation: none;
    opacity: 0.16;
  }
}

/* ══ FLOATING CTA ══ */
#float-cta {
  position: fixed;
  bottom: 2.5rem;
  right: 2rem;
  z-index: 500;
  opacity: 0;
  transform: translateY(16px) scale(.95);
  transition: opacity .4s, transform .4s cubic-bezier(.16, 1, .3, 1);
  pointer-events: none;
}

#float-cta.visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

#float-cta a {
  display: flex;
  align-items: center;
  gap: .7rem;
  background: var(--gold);
  color: #010810;
  padding: .85rem 1.6rem;
  font-size: .58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(201, 168, 76, .28);
  transition: background .2s, transform .2s, box-shadow .2s;
}

#float-cta a:hover {
  background: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 14px 42px rgba(201, 168, 76, .38);
}

.cta-dot {
  width: 7px;
  height: 7px;
  background: #010810;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.cta-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1.5px solid #010810;
  border-radius: 50%;
  animation: cta-ping 1.6s ease-in-out infinite;
}

@keyframes cta-ping {

  0%,
  100% {
    opacity: .5;
    transform: scale(1);
  }

  50% {
    opacity: 0;
    transform: scale(1.7);
  }
}
