:root {
  --bg: #201340;
  --bg-deep: #0a021a;
  --plum: #843f62;
  --coral: #f54d33;
  --rose: #ce5464;
  --white: #ffffff;
  --muted: rgb(181, 175, 169);
  --muted-2: #999999;
  --line: rgba(255, 255, 255, 0.12);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --max-width: 1140px;
  --section-pad: clamp(64px, 10vw, 140px);
  /* Fallback only — script.js measures the real nav height on load/resize
     and overwrites this with the exact pixel value. */
  --nav-h: 73px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  /* .nav is position: fixed, so it's out of normal flow — push content down
     by the nav's real height (measured in script.js) so nothing sits behind it. */
  padding-top: var(--nav-h);
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0 0 18px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  margin: 0 0 36px;
  max-width: 720px;
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}
/* stagger children of a reveal group automatically */
.reveal-group > *:nth-child(1) { --reveal-delay: 0s; }
.reveal-group > *:nth-child(2) { --reveal-delay: 0.08s; }
.reveal-group > *:nth-child(3) { --reveal-delay: 0.16s; }
.reveal-group > *:nth-child(4) { --reveal-delay: 0.24s; }
.reveal-group > *:nth-child(5) { --reveal-delay: 0.32s; }
.reveal-group > *:nth-child(6) { --reveal-delay: 0.4s; }
.reveal-group > *:nth-child(7) { --reveal-delay: 0.48s; }
.reveal-group > *:nth-child(8) { --reveal-delay: 0.56s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #0a021a;
  border: none;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.nav.is-scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.nav-inner {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-logo { flex-shrink: 0; }
.nav-logo img { height: 30px; width: auto; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
  margin-left: auto;
}
.nav-links a:not(.nav-cta) { position: relative; padding: 4px 0; transition: color 0.2s ease; }
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--rose);
  transition: width 0.25s ease;
}
.nav-links a:not(.nav-cta):hover { color: var(--rose); }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-links .nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.nav-toggle span {
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 8px;
  white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

/* ---------- ORBIT GLOW BUTTON ---------- */
/* Rebuilt to match the Framer "OrbitGlowButton" community component's
   settings: pill radius 100, padding 28/13, one comet (#8B5CF6) sweeping
   a 90deg tail every 3.5s, 1.5px border, 16px glow blur, 1.04 hover scale,
   optional divider + left/right labels + arrow. Pure CSS: a rotating
   conic-gradient masked down to a thin ring, plus a blurred duplicate of
   that ring behind it for the glow. */
@property --comet-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
.btn-primary {
  --comet-color: #8b5cf6;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  background: rgba(10, 2, 26, 0.45);
  color: var(--white);
  border-radius: 100px;
  padding: 13px 28px;
  z-index: 0;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-label-left { color: var(--white); }
.btn-label-right { color: var(--comet-color); }
.btn-divider {
  width: 1px;
  height: 18px;
  margin: 0 16px;
  background: var(--comet-color);
  opacity: 0.55;
  flex: none;
}
.btn-arrow {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.2s ease;
}
.btn-primary:hover .btn-arrow { transform: translateX(3px); }

.btn-primary::before,
.btn-primary::after {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--comet-angle),
    transparent 0deg,
    transparent 270deg,
    var(--comet-color) 285deg,
    rgba(255, 255, 255, 0.95) 330deg,
    var(--comet-color) 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: comet-spin 3.5s linear infinite;
  pointer-events: none;
}
.btn-primary::before { z-index: -1; }
.btn-primary::after {
  z-index: -2;
  filter: blur(16px);
  opacity: 0.9;
}
@keyframes comet-spin {
  to { --comet-angle: 360deg; }
}
.btn-primary:hover {
  transform: scale(1.04);
}
.btn-primary:hover::before,
.btn-primary:hover::after { animation-duration: 1.8s; }
.btn-primary.is-success::before,
.btn-primary.is-success::after { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .btn-primary::before,
  .btn-primary::after { animation: none; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    margin: 0;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    height: calc(100vh - var(--nav-h));
    background: #0a021a;
    max-height: 0;
    overflow: hidden auto;
    transition: max-height 0.35s ease;
  }
  .nav-links a:not(.nav-cta) {
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a + a { margin-left: 0; }
  .nav-links .nav-cta {
    margin: 14px 24px 0;
    justify-content: center;
    text-align: center;
  }
  .nav-inner.is-open .nav-links { max-height: calc(100vh - var(--nav-h)); }
  .nav-inner.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-inner.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-inner.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- HERO ---------- */
/* Hero is now nothing but the full-viewport shader background plus the
   tagline in the bottom-right corner — all other copy lives in #intro. */
.hero {
  position: relative;
  height: calc(100vh - var(--nav-h));
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 40px 48px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -10%;
  z-index: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(245, 77, 51, 0.18), transparent 55%),
    radial-gradient(circle at 10% 80%, rgba(132, 63, 98, 0.35), transparent 55%);
  animation: hero-drift 18s ease-in-out infinite alternate;
}
@keyframes hero-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-2%, 2%) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}
.hero-tagline {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
@media (max-width: 640px) {
  .hero-tagline { font-size: 20px; }
}

/* ---------- INTRO (copy that used to live in the hero) ---------- */
.section.intro {
  background: linear-gradient(to bottom, #000000 0%, var(--bg) 100%);
  text-align: center;
  border-top: none;
}
#about {
  border-top: none;
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) 100%);
}
.intro .section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3.4vw, 42px);
  line-height: 1.2;
  margin: 0 0 24px;
  max-width: 920px;
}
.hero-line {
  display: inline-block;
}
.hero-line--muted { color: var(--muted); font-weight: 400; white-space: nowrap; }
@media (max-width: 700px) {
  .hero-line--muted { white-space: normal; }
}
.hero-sub {
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 36px;
}
/* Note: hero content is visible by default (no opacity:0 here). The entrance
   animation in animations.js sets its own inline "from" state via JS right
   before animating, so a blocked/failed script import can never leave the
   hero blank — content simply renders statically instead. */

.hero-shader-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
}
/* Second additive pass: lines only (transparent elsewhere), boosted and
   blurred with a screen blend to give the plasma lines a soft glow halo. */
.hero-shader-canvas--glow {
  z-index: 0;
  mix-blend-mode: screen;
  filter: blur(14px);
  opacity: 0.9;
  pointer-events: none;
}

/* ---------- SECTION LAYOUT ---------- */
.section {
  padding: var(--section-pad) 16px;
  /* Offsets anchor-jump scrolling by the fixed nav's height so a clicked
     nav link never lands with its heading tucked behind the nav bar. */
  scroll-margin-top: var(--nav-h);
}
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-copy {
  display: grid;
  gap: 18px;
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
}
.about-copy p { margin: 0; }
@media (max-width: 640px) {
  .about-copy { gap: 12px; }
}

/* ---------- SERVICES ---------- */
.services .section-inner { margin-bottom: 24px; }

/* Full-bleed: break .services-rows out of any centered/padded ancestor so
   each category row's background can span the true viewport edge to edge. */
.services-rows {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  display: flex;
  flex-direction: column;
}
.service-row {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 560px;
  background: var(--row-bg, transparent);
  transition: background 0.4s ease;
}

.service-text {
  flex: 0 0 auto;
  width: min(480px, 38vw);
  padding: 90px 32px 90px max(16px, calc((100vw - var(--max-width)) / 2));
  position: sticky;
  top: 110px;
  align-self: start;
}
.service-text h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 16px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.service-text ul {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 16px;
}
.service-text li { margin-bottom: 6px; }

/* Images fill the remaining ~60% of the viewport, touching the right edge,
   stacked with zero gap between them and zero gap against the row's own
   edges — no hover reaction, permanently desaturated. */
.services-rows .service-images {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 60vw;
  margin-left: auto;
}
.services-rows .service-images img {
  display: block;
  width: 100%;
  height: 50%;
  flex: 1 1 50%;
  min-height: 280px;
  object-fit: cover;
  filter: grayscale(100%);
}

/* Below 900px, keep the side-by-side layout instead of stacking: text stays
   put on the left (still, no internal scroll needed for short copy), and
   the image column on the right becomes its own independently scrollable
   50%-width strip so you can flick through the gallery without moving the
   whole page. */
@media (max-width: 900px) {
  .service-row {
    flex-direction: row;
    align-items: stretch;
    height: 460px;
    min-height: 0;
  }
  .service-text {
    position: static;
    align-self: stretch;
    width: 50%;
    padding: 28px 20px;
    overflow-y: auto;
  }
  .services-rows .service-images {
    width: 50%;
    height: 100%;
    margin-left: 0;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .services-rows .service-images::-webkit-scrollbar { display: none; }
  .services-rows .service-images img {
    height: 100%;
    min-height: 0;
    flex: 1 0 100%;
    scroll-snap-align: start;
  }
}

/* ---------- INDUSTRIES (numbered list) ---------- */
.industries-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 64px;
  row-gap: 0;
}
.industries-list li {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-size: 19px;
  overflow: hidden;
}
@media (max-width: 700px) {
  .industries-list { grid-template-columns: 1fr; }
}
.industries-list li::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: var(--coral);
  transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.2s;
}
.industries-list li.is-visible::after { width: 100%; }
.num {
  display: inline-block;
  font-family: var(--font-display);
  color: var(--rose);
  font-size: 14px;
  letter-spacing: 0.05em;
  transform: scale(0.5);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: 0.05s;
}
li.is-visible .num { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  .industries-list li::after { transition: none; width: 100%; }
  .num { transform: none; transition: none; }
}

/* ---------- PROCESS (horizontal step cards) ---------- */
/* Tighter top/bottom padding than other sections — pulls "Our Approach"
   closer to the map above it and RFQ below it. Matching reductions on
   #reach's bottom padding and #rfq's top padding close the rest of the gap. */
#process {
  padding-top: clamp(32px, 5vw, 70px);
  padding-bottom: clamp(32px, 5vw, 70px);
}
#reach {
  padding-bottom: clamp(32px, 5vw, 70px);
}
#rfq {
  padding-top: clamp(32px, 5vw, 70px);
}
/* Desktop: one row of 7 cards showing consecutive steps side by side.
   Tablet: wraps to a couple of rows instead of forcing a scroll or
   squeezing 7 into one line. Phone: collapses to a vertical list. */
.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}
.process-list li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.35;
  overflow: hidden;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.process-list li:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--coral);
}
.process-icon {
  display: flex;
  align-items: center;
  color: var(--coral);
  transform: scale(0.5);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: 0.05s;
}
.process-icon img {
  height: 28px;
  width: auto;
  display: block;
}
li.is-visible .process-icon { transform: scale(1); }
.process-list .num {
  font-size: 13px;
  letter-spacing: 0.08em;
}
@media (prefers-reduced-motion: reduce) {
  .process-icon { transform: none; transition: none; }
}

@media (max-width: 1100px) and (min-width: 561px) {
  .process-list { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
  .process-list {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .process-list li {
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 18px 0 18px 14px;
    background: transparent;
    border-bottom: 1px solid var(--line);
  }
  .process-list li:first-child { border-top: 1px solid var(--line); }
  .process-icon { flex: 0 0 34px; margin-right: 10px; }
  .process-icon img { height: 20px; }
  .process-list .num { flex: 0 0 48px; margin-right: 0; }
  .process-list li > span:last-child { flex: 1; }
}

/* ---------- WHY US ---------- */
#why-us {
  background: #392345;
}
.why-us-layout {
  display: grid;
  /* Same 2-column grid as .industries-list above (repeat(2,1fr) + 64px gap)
     so the columns line up between the two sections. */
  grid-template-columns: repeat(2, 1fr);
  column-gap: 64px;
  align-items: center;
}
.why-us-heading {
  /* Flush with the section-inner edge — same x as "03 — Industries" /
     "Industries We Serve" above, which sit at the column's left edge. */
}
.why-us-heading .eyebrow { margin: 0 0 18px; }
.why-us-heading .section-title { margin: 0; max-width: none; }
.why-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-left: 64px;
}
.why-grid p {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.7vw, 22px);
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
  position: relative;
  white-space: nowrap;
}
/* Dot sits at -48px so it lines up with the industries list's number
   column (02/04/06) in the row above, while the text itself stays put. */
.why-grid p::before {
  content: '';
  position: absolute;
  left: -48px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
}
/* Stronger per-bullet stagger than the generic .reveal-group increments
   (0.08s is too subtle for only 3 short lines) — makes the one-by-one
   appearance on scroll clearly visible. */
.why-grid.reveal-group > *:nth-child(1) { --reveal-delay: 0s; }
.why-grid.reveal-group > *:nth-child(2) { --reveal-delay: 0.3s; }
.why-grid.reveal-group > *:nth-child(3) { --reveal-delay: 0.6s; }
@media (max-width: 800px) {
  .why-us-layout { grid-template-columns: 1fr; }
  .why-us-heading .section-title { margin: 0 0 36px; }
  .why-grid p { white-space: normal; }
}

/* ---------- VALUES ---------- */
#values {
  background: #653D59;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.value-card {
  background: #241942;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 28px;
  transition: transform 0.3s ease, background 0.3s ease;
}
.value-card:hover {
  transform: translateY(-4px);
  background: #814960;
}
.value-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0 0 12px;
}
.value-card p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}
@media (max-width: 800px) {
  .values-grid { grid-template-columns: 1fr; }
}

/* ---------- REACH ---------- */
.reach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.reach-card {
  padding: 0;
}
.reach-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rose);
  margin: 0 0 10px;
}
.reach-card p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}
.map-embed {
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  position: relative;
}
@media (max-width: 900px) {
  .reach-grid { grid-template-columns: repeat(2, 1fr); }
  .map-embed { aspect-ratio: 4 / 5; }
}

/* ---------- WORLD ACCESS MAP ---------- */
.wm-header {
  position: absolute;
  top: 16px;
  left: 20px;
  z-index: 2;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.wm-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.wm-subtitle {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.9;
}
.wm-status {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-2);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.wm-svg { display: block; width: 100%; height: 100%; }
.wm-country { transition: fill 140ms ease; cursor: default; }
.wm-marker-core { animation: wm-pulse 2.6s ease-in-out infinite; transform-origin: center; }
@keyframes wm-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.wm-tooltip {
  position: absolute;
  z-index: 5;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.4;
  pointer-events: none;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  max-width: 200px;
  transform: translate(-50%, calc(-100% - 12px));
  font-family: var(--font-body);
}
.wm-tooltip strong {
  display: block;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 12px;
}
.wm-tooltip span {
  display: block;
  opacity: 0.7;
  margin-top: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .wm-marker-core { animation: none; }
}

/* ---------- RFQ ---------- */
.rfq-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.rfq-text p { color: var(--muted); }
.rfq-text p.eyebrow { color: var(--rose); }
.rfq-text a { color: var(--rose); text-decoration: underline; }
.rfq-time { color: var(--muted-2); margin-top: 24px; }

.rfq-form {
  display: grid;
  gap: 6px;
}
.rfq-form label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px;
}
.rfq-form input,
.rfq-form textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.rfq-form input::placeholder,
.rfq-form textarea::placeholder { color: var(--muted-2); }
.rfq-form textarea { min-height: 120px; resize: vertical; }
.rfq-form input:focus,
.rfq-form textarea:focus {
  outline: none;
  border-color: var(--coral);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(245, 77, 51, 0.15);
}
.rfq-form label { transition: color 0.25s ease; }
.rfq-form button { margin-top: 22px; justify-self: start; cursor: pointer; border: none; }
.form-status {
  font-size: 14px;
  min-height: 20px;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.form-status.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .form-status { transition: none; }
}

@media (max-width: 900px) {
  .rfq-layout { grid-template-columns: 1fr; }
}

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  padding: 48px 16px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px 60px;
}
.footer-inner p { margin: 0; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-logo { height: 30px; margin: 0; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; text-align: right; }
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--rose); }
.copyright { color: var(--muted-2); }

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; }
  .footer-contact { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ---------- BACKGROUND TEXTURE ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(206, 84, 100, 0.10), transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(132, 63, 98, 0.16), transparent 50%);
  animation: bg-drift 24s ease-in-out infinite alternate;
}
@keyframes bg-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-3%, 3%) scale(1.08); }
}
.bg-grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
main, .footer { position: relative; z-index: 2; }
/* .nav keeps its own position: fixed + z-index: 100 rule above — it must
   stay out of normal flow, so it's intentionally excluded from this
   shared reset (a `.nav, main, .footer { position: relative }` rule here
   was clobbering the fixed nav, since it comes later in the cascade). */

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}
