/* ═══════════════════════════════════════════════════════════════
   AIRWAVES — PREMIUM LAYER
   Layered on top of base styles in index.html.
   Philosophy: token-driven, restraint over noise, perf-first.
═══════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS (supplement base :root) ──────────────────── */
:root {
  /* Motion — single vocabulary used everywhere */
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth:   cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring:   cubic-bezier(0.34, 1.4, 0.64, 1);
  --dur-instant:   120ms;
  --dur-fast:      200ms;
  --dur-base:      320ms;
  --dur-med:       500ms;
  --dur-slow:      800ms;

  /* Spacing scale — multiples of 4px, 1.5× step */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;

  /* Type scale — fluid clamp, 1.25 ratio */
  --fs-xs:      clamp(0.68rem, 0.66rem + 0.1vw, 0.74rem);
  --fs-sm:      clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --fs-body:    1rem;
  --fs-lg:      clamp(1.08rem, 1.04rem + 0.2vw, 1.2rem);
  --fs-xl:      clamp(1.28rem, 1.2rem + 0.4vw, 1.5rem);
  --fs-h3:      clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
  --fs-h2:      clamp(2rem, 1.7rem + 1.4vw, 2.8rem);
  --fs-h1:      clamp(2.8rem, 2.3rem + 2.5vw, 4rem);
  --fs-display: clamp(3.4rem, 2.8rem + 3vw, 5rem);

  /* Card surface tokens — one source of truth */
  --card-bg:            rgba(255,255,255,0.035);
  --card-bg-hover:      rgba(255,255,255,0.06);
  --card-border:        rgba(255,255,255,0.08);
  --card-border-hover:  rgba(26,127,255,0.32);
  --card-shadow:
    0 2px 0 rgba(255,255,255,0.05) inset,
    0 12px 32px rgba(0,0,0,0.4);
  --card-shadow-hover:
    0 2px 0 rgba(255,255,255,0.1) inset,
    0 22px 48px rgba(0,0,0,0.55),
    0 0 0 1px rgba(26,127,255,0.14);
  --radius-sm: 10px;
  --radius-md: 16px;

  /* Focus ring */
  --focus-ring: 0 0 0 3px rgba(26,127,255,0.35);
}

/* ── GLOBAL HYGIENE ─────────────────────────────────────────── */
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 8px;
}
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* content-visibility skipped intentionally — interferes with the
   #ocean-section sticky scroll-scrub animation in Chrome because
   intrinsic-size placeholders cause layout shifts that throw off
   rect.top calculations as adjacent sections unskip on scroll-in.
   Keep decorative work paint-cheap instead (see motion pass). */

/* ── MOTION DISCIPLINE ──────────────────────────────────────── */
@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;
  }
}

/* ── SECTION DIVIDERS ───────────────────────────────────────── */
.premium-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(26,127,255,0.15) 20%,
    rgba(0,212,255,0.25) 50%,
    rgba(26,127,255,0.15) 80%,
    transparent 100%);
  position: relative;
  margin: 0;
}
.premium-divider::after {
  content: '';
  position: absolute;
  left: 50%; top: -1px;
  transform: translateX(-50%);
  width: 64px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
  box-shadow: 0 0 16px rgba(26,127,255,0.5);
}

/* ── HERO TITLE ACCENT — one-shot, not infinite ────────────── */
.hero-title .line-accent {
  background: linear-gradient(
    90deg,
    #fff 0%,
    var(--accent-light) 50%,
    #fff 100%);
  background-size: 200% auto;
  background-position: 100% center;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: text-sheen 2.2s var(--ease-out) 0.4s 1 both;
}
@keyframes text-sheen {
  from { background-position: -100% center; }
  to   { background-position: 100% center; }
}

/* ── HERO STAT CARD HOVER (using tokens) ────────────────────── */
.hero-stat-card,
.spec-item {
  transition:
    transform var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    background var(--dur-base) var(--ease-out);
}
.spec-item:hover { transform: translateY(-4px); }

.spec-number {
  background: linear-gradient(135deg, #fff 0%, var(--accent-light) 55%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 16px rgba(26,127,255,0.22));
  transition: filter var(--dur-base) var(--ease-out);
}
.spec-item:hover .spec-number {
  filter: drop-shadow(0 0 28px rgba(0,212,255,0.48));
}

/* Subtle breathing border on specs container — keep, but calm down */
.specs-inner {
  position: relative;
  overflow: hidden;
}
.specs-inner::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: calc(var(--radius-card) + 2px);
  background: linear-gradient(135deg,
    rgba(26,127,255,0.14),
    rgba(0,212,255,0.06),
    rgba(26,127,255,0.14));
  background-size: 200% 200%;
  animation: border-breathe 12s var(--ease-smooth) infinite;
  z-index: -1;
}
@keyframes border-breathe {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ── NAVBAR ACTIVE INDICATOR ────────────────────────────────── */
.nav-links a {
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 50%;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width var(--dur-base) var(--ease-spring);
  box-shadow: 0 0 8px rgba(26,127,255,0.5);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--text) !important; }

/* ── BUTTON REFINEMENTS ─────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, #1a7fff 0%, #0044cc 50%, #1a7fff 100%) !important;
  background-size: 200% 100% !important;
  transition:
    background-position var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out) !important;
}
.btn-primary:hover {
  background-position: 100% 0 !important;
}
.btn-secondary {
  background: linear-gradient(135deg,
    rgba(255,255,255,0.05) 0%,
    rgba(255,255,255,0.02) 100%) !important;
}
.btn-secondary:hover {
  background: linear-gradient(135deg,
    rgba(26,127,255,0.1) 0%,
    rgba(0,212,255,0.05) 100%) !important;
  border-color: rgba(26,127,255,0.4) !important;
}

/* ── FAQ PREMIUM ─────────────────────────────────────────────── */
.faq-item {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition:
    border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
  /* backdrop-filter removed — expensive on Safari for a 10-item list */
}
.faq-item:hover {
  border-color: rgba(26,127,255,0.22);
  box-shadow: 0 4px 24px rgba(0,0,0,0.28), 0 0 0 1px rgba(26,127,255,0.08) inset;
}
.faq-q {
  position: relative;
  overflow: hidden;
}
.faq-q::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(26,127,255,0.05));
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
  pointer-events: none;
}
.faq-q:hover::after { opacity: 1; }

/* ── ACCREDITATIONS BAND ────────────────────────────────────── */
#accreditations {
  background: linear-gradient(180deg,
    rgba(26,127,255,0.14) 0%,
    rgba(255,255,255,0.03) 40%,
    rgba(26,127,255,0.10) 100%) !important;
}

/* ── HERO QUOTE WIDGET GLOW ─────────────────────────────────── */
.hero-quote-widget {
  box-shadow:
    0 48px 120px rgba(0,0,0,0.85),
    0 0 0 1px rgba(255,255,255,0.12),
    0 0 80px rgba(26,127,255,0.08),
    inset 0 1px 0 rgba(255,255,255,0.16) !important;
  transition: box-shadow var(--dur-med) var(--ease-out);
}
.hero-quote-widget:hover {
  box-shadow:
    0 48px 120px rgba(0,0,0,0.85),
    0 0 0 1px rgba(255,255,255,0.18),
    0 0 120px rgba(26,127,255,0.14),
    inset 0 1px 0 rgba(255,255,255,0.2) !important;
}

/* ── SCROLL PROGRESS ────────────────────────────────────────── */
#scrollProgress {
  height: 2px !important;
  background: linear-gradient(90deg, var(--accent), var(--accent-light)) !important;
  box-shadow: 0 0 12px rgba(26,127,255,0.7), 0 0 24px rgba(0,212,255,0.3) !important;
}

/* ── LOADER ─────────────────────────────────────────────────── */
.loader-bar-fill {
  box-shadow: 0 0 16px rgba(26,127,255,0.8), 0 0 32px rgba(0,212,255,0.4) !important;
}

/* ── SECTION EYEBROW ────────────────────────────────────────── */
.section-eyebrow {
  background: linear-gradient(135deg,
    rgba(26,127,255,0.08) 0%,
    rgba(0,212,255,0.04) 100%) !important;
  border: 1px solid rgba(26,127,255,0.22) !important;
  box-shadow:
    0 0 18px rgba(26,127,255,0.06),
    inset 0 1px 0 rgba(255,255,255,0.06);
  transition:
    background var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}
.section-eyebrow:hover {
  background: rgba(26,127,255,0.1) !important;
  box-shadow: 0 0 24px rgba(26,127,255,0.12) !important;
}

/* ── CTA SECTION GLOW ───────────────────────────────────────── */
#cta {
  position: relative;
  overflow: hidden;
}
#cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 100%,
    rgba(26,127,255,0.08) 0%,
    transparent 70%);
  pointer-events: none;
}

/* ── REVEAL — blur only below the fold (cheaper) ────────────── */
.specs-grid .reveal,
.faq-grid .reveal {
  filter: blur(3px);
  transition:
    opacity var(--dur-slow) var(--ease-out) var(--delay, 0ms),
    transform var(--dur-slow) var(--ease-out) var(--delay, 0ms),
    filter var(--dur-slow) var(--ease-out) var(--delay, 0ms);
}
.specs-grid .reveal.visible,
.faq-grid .reveal.visible {
  filter: blur(0);
}

/* ── OCEAN SECTION FADE EDGES ───────────────────────────────── */
.ocean-sticky::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 30%;
  background: linear-gradient(to top, rgba(4,6,15,1) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}
.ocean-sticky::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 20%;
  background: linear-gradient(to bottom, rgba(4,6,15,0.6) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* ── HERO STATS STAGGER ─────────────────────────────────────── */
.hero-stat-card:nth-child(1) { animation-delay: 0.62s; }
.hero-stat-card:nth-child(2) { animation-delay: 0.72s; }
.hero-stat-card:nth-child(3) { animation-delay: 0.82s; }
.hero-stat-card:nth-child(4) { animation-delay: 0.92s; }

/* ── CHAT / WHATSAPP BUTTON HOVER ───────────────────────────── */
#aw-chat-btn:hover {
  transform: translateY(-3px) scale(1.04) !important;
}
#aw-wa-btn {
  transition:
    box-shadow var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out) !important;
}
#aw-wa-btn:hover {
  box-shadow: 0 12px 36px rgba(37,211,102,0.4) !important;
  transform: translateY(-3px) scale(1.05) !important;
}

/* ── ANNOTATION CARD PREMIUM (ocean section) ────────────────── */
.vessel-annotation {
  backdrop-filter: blur(18px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  box-shadow:
    0 16px 48px rgba(0,0,0,0.55),
    0 0 0 1px rgba(26,127,255,0.06) inset,
    0 0 28px rgba(26,127,255,0.05) !important;
}

/* ── MARQUEE ────────────────────────────────────────────────── */
.accred-marquee-track {
  will-change: transform;
}
.accred-item:hover .accred-logo {
  color: #fff;
  text-shadow: 0 0 12px rgba(0,212,255,0.4);
  transition: color var(--dur-fast) var(--ease-out), text-shadow var(--dur-fast) var(--ease-out);
}

/* ── FOOTER DIVIDER ─────────────────────────────────────────── */
footer::before {
  content: '';
  display: block;
  width: 100%; height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(26,127,255,0.14) 30%,
    rgba(0,212,255,0.18) 50%,
    rgba(26,127,255,0.14) 70%,
    transparent);
}

/* ── HERO DESCRIPTOR / WORD CYCLER ──────────────────────────── */
.hero-descriptor {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 20px;
  margin-top: -8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(238,242,255,0.38);
}
.hero-descriptor-prefix {
  color: rgba(238,242,255,0.28);
}
.hero-descriptor-cycle {
  color: var(--accent-light);
  font-weight: 600;
  letter-spacing: 2.5px;
  position: relative;
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 1px solid var(--accent-light);
  animation: caret-blink 1.1s step-end infinite;
  text-shadow: 0 0 12px rgba(0,212,255,0.4);
}
@keyframes caret-blink {
  0%, 100% { border-color: var(--accent-light); }
  50%      { border-color: transparent; }
}

/* ── SECTION TITLE — static gradient, no infinite loop ─────── */
.section-title {
  background: linear-gradient(180deg, var(--text) 45%, rgba(238,242,255,0.65) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-title .accent-word {
  background: linear-gradient(135deg, var(--accent) 20%, var(--accent-light)) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* ── STARSCAPE ──────────────────────────────────────────────── */
#starscape {
  opacity: 0.55 !important;
}

/* ── HERO BG ────────────────────────────────────────────────── */
.hero-bg-img {
  transform-origin: center center;
  will-change: transform;
}

/* ═══════════════════════════════════════════════════════════════
   REMOVED (perf + polish — these were "AI slop" tells):
   - #aw-aurora rotating conic gradients
   - .aw-float-orb drifting blur orbs
   - .hero-stat-card::before holo-shift animation
   - .hero-mesh-1/2/3 mesh drifts
   - infinite text-shine on hero title
   - tilt-card base + shine
   - magnetic-wrap
   All decorative, all running continuously, all helping no one.
═══════════════════════════════════════════════════════════════ */

/* ── AI CHAT UX POLISH ──────────────────────────────────────── */
.aw-bubble p { margin: 0; }
.aw-bubble p + p { margin-top: 6px; }
.aw-bubble a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color var(--dur-fast) var(--ease-out);
}
.aw-bubble a:hover { color: #fff; }
.aw-bubble strong { color: #fff; font-weight: 700; }
.aw-bubble code {
  background: rgba(26,127,255,0.12);
  border: 1px solid rgba(26,127,255,0.2);
  padding: 1px 6px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--accent-light);
}
/* Streaming cursor — blinks while new tokens arrive */
.aw-bubble.streaming::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent-light);
  margin-left: 3px;
  vertical-align: -2px;
  animation: caret-blink 0.9s step-end infinite;
}
/* Suggested follow-ups rendered after a bot reply */
.aw-followups {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  padding-left: 2px;
}
.aw-followup {
  font-family: 'Manrope', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(26,127,255,0.08);
  border: 1px solid rgba(26,127,255,0.22);
  color: var(--accent-light);
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}
.aw-followup:hover {
  background: rgba(26,127,255,0.16);
  border-color: rgba(26,127,255,0.4);
  transform: translateY(-1px);
}

/* ── MOBILE PERF ────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Turn off expensive backdrop-filters on below-fold glass */
  .vessel-annotation {
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
  }
  .specs-inner::before { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   HERO ENTRANCE — no bouncing. Fade-in only.
   Hero text elements start hidden and fade in cleanly once the
   loader dismisses and .animate-in is applied. No vertical
   translate, no bounce-back. The only motion on the hero is the
   word-cycler ("EXPERTS IN ...") and the caret blink.
═══════════════════════════════════════════════════════════════ */
#hero .hero-badge,
#hero .hero-title,
#hero .hero-subtitle,
#hero .hero-buttons,
#hero .hero-quote-widget,
#hero .hero-stats {
  opacity: 0;
}
#hero.animate-in .hero-badge,
#hero.animate-in .hero-title,
#hero.animate-in .hero-subtitle,
#hero.animate-in .hero-buttons,
#hero.animate-in .hero-quote-widget,
#hero.animate-in .hero-stats {
  /* Override the inline slideFromBottom keyframes — fast fade, no stagger.
     Everything appears in 160 ms once the loader dismisses. */
  animation: hero-fade 160ms cubic-bezier(0.16,1,0.3,1) both !important;
  animation-delay: 0ms !important;
  transform: none !important;
}
@keyframes hero-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  #hero .hero-badge,
  #hero .hero-title,
  #hero .hero-subtitle,
  #hero .hero-buttons,
  #hero .hero-quote-widget,
  #hero .hero-stats {
    opacity: 1 !important;
    animation: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   CARD SYSTEM — INDUSTRIAL EDITORIAL UPGRADE
   Philosophy: precise geometry, tabular figures, architectural
   corner marks, restrained colour, physical layered shadows.
   Removes AI-slop tells: glowing borders, drop-shadow halos on
   numbers, breathing gradient containers, decorative mesh overlays.
═══════════════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --card-radius-sm:  10px;
  --card-radius-md:  14px;
  --card-radius-lg:  18px;
  --card-edge-hi:    rgba(255,255,255,0.085);   /* top edge highlight */
  --card-edge-lo:    rgba(0,0,0,0.40);          /* under-edge */
  --card-surface-0:  rgba(255,255,255,0.028);
  --card-surface-1:  rgba(255,255,255,0.045);
  --card-line:       rgba(255,255,255,0.07);
  --card-line-hi:    rgba(26,127,255,0.42);
  --kicker-col:      rgba(238,242,255,0.35);
  /* Layered physical shadow — close + far + top highlight */
  --card-depth:
    0 1px 0 var(--card-edge-hi) inset,
    0 -1px 0 var(--card-edge-lo) inset,
    0 1px 2px rgba(0,0,0,0.28),
    0 12px 32px rgba(0,0,0,0.36);
  --card-depth-hi:
    0 1px 0 rgba(255,255,255,0.12) inset,
    0 -1px 0 var(--card-edge-lo) inset,
    0 2px 3px rgba(0,0,0,0.30),
    0 22px 56px rgba(0,0,0,0.55);
}

/* ── REMOVE AI-SLOP TELLS ───────────────────────────────────── */
/* 1. Kill the breathing gradient border on specs container */
.specs-inner::before {
  animation: none !important;
  background: none !important;
  border: 1px solid var(--card-line) !important;
  background-color: transparent !important;
}

/* 2. Kill the drop-shadow glow halo on stat numbers (spec/card only — hero
      stat numbers keep their original accent-coloured gradient + glow) */
.spec-number,
.card-stat-number {
  filter: none !important;
  -webkit-filter: none !important;
}

/* 3. Kill any glow on hover that just brightens rather than lifts
      (hero-stat-card is NOT included — it keeps the original accent-glow hover) */
.spec-item:hover,
.industry-card:hover,
.faq-item:hover {
  box-shadow: var(--card-depth-hi) !important;
}

/* ── TABULAR-FIGURE NUMBER TREATMENT ────────────────────────── */
/* Applied to spec / card stat numbers only. Hero-stat-number keeps its
   original accent-blue gradient (white → accent-light) for the colour
   impact the user expects on the above-fold stats. */
.spec-number,
.card-stat-number {
  font-feature-settings: "tnum" 1, "lnum" 1, "ss01" 1 !important;
  font-variant-numeric: tabular-nums lining-nums !important;
  letter-spacing: -0.035em !important;
  background: linear-gradient(180deg, #ffffff 0%, #d7e2f5 85%, #a9bee0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── SPEC ITEMS — STAT COUNTERS ─────────────────────────────── */
.spec-item {
  position: relative;
  background: var(--card-surface-0) !important;
  border: 1px solid var(--card-line) !important;
  border-radius: var(--card-radius-md) !important;
  box-shadow: var(--card-depth) !important;
  padding: 28px 24px 24px !important;
  overflow: hidden;
  transition:
    transform var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    background var(--dur-base) var(--ease-out) !important;
}
.spec-item:hover {
  transform: translate3d(0, -4px, 0) !important;
  border-color: var(--card-line-hi) !important;
  background: var(--card-surface-1) !important;
}
/* Architectural L-corner marks — technical drawing language */
.spec-item::before,
.spec-item::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border-color: rgba(26,127,255,0.55);
  border-style: solid;
  border-width: 0;
  transition: width var(--dur-base) var(--ease-out), height var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
  pointer-events: none;
}
.spec-item::before {
  top: 10px; left: 10px;
  border-top-width: 1px; border-left-width: 1px;
}
.spec-item::after {
  bottom: 10px; right: 10px;
  border-bottom-width: 1px; border-right-width: 1px;
}
.spec-item:hover::before,
.spec-item:hover::after {
  width: 18px; height: 18px;
  border-color: var(--accent-light, #00d4ff);
}

/* HERO STAT CARDS — untouched. The original inline styling in index.html
   (accent-blue gradient border, backdrop-blur glass, icon glow, colored
   number gradient) is intentionally preserved for the above-fold hero. */

/* ── INDUSTRY CARDS ─────────────────────────────────────────── */
.industry-card {
  position: relative;
  background: var(--card-surface-0) !important;
  border: 1px solid var(--card-line) !important;
  border-radius: var(--card-radius-sm) !important;
  box-shadow: var(--card-depth) !important;
  transition:
    transform var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    background var(--dur-base) var(--ease-out) !important;
}
.industry-card::before {
  /* Replace the original gradient overlay with a single hairline accent bar */
  content: '' !important;
  position: absolute !important;
  top: 0; left: 0;
  width: 24px; height: 1px !important;
  background: linear-gradient(90deg, var(--accent, #1a7fff), transparent) !important;
  opacity: 0.85 !important;
  transition: width var(--dur-base) var(--ease-out) !important;
  border-radius: 0 !important;
  filter: none !important;
}
.industry-card:hover {
  transform: translate3d(0, -4px, 0) !important;
  border-color: var(--card-line-hi) !important;
  background: var(--card-surface-1) !important;
}
.industry-card:hover::before {
  width: 48px !important;
  opacity: 1 !important;
}
.industry-card h4 {
  font-weight: 700 !important;
  letter-spacing: -0.015em !important;
}

/* ── SERVICE CARDS (FLIP) — front / back polish ─────────────── */
.service-card-front,
.service-card-back {
  border: 1px solid var(--card-line) !important;
  box-shadow: var(--card-depth) !important;
  border-radius: var(--card-radius-md) !important;
}
.service-card:hover .service-card-front,
.service-card:hover .service-card-back {
  box-shadow: var(--card-depth-hi) !important;
}
/* Remove decorative mesh ::before overlays — let type carry the card */
.service-card-front::before,
.service-card-back::before {
  opacity: 0 !important;
}
.service-card-front::after {
  /* Replace the gradient-accent with a single hairline at bottom */
  content: '' !important;
  position: absolute !important;
  left: 24px; right: 24px; bottom: 22px !important;
  top: auto !important;
  height: 1px !important;
  width: auto !important;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(26,127,255,0.22) 30%,
    rgba(26,127,255,0.22) 70%,
    transparent 100%) !important;
  border-radius: 0 !important;
  opacity: 1 !important;
  filter: none !important;
}
.service-card-num {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.22em !important;
  color: var(--kicker-col) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  filter: none !important;
}
.service-card-num::after { display: none !important; }
.service-card-front h3,
.service-card-back h3 {
  letter-spacing: -0.02em !important;
  font-weight: 700 !important;
}

/* ── FAQ ITEMS ──────────────────────────────────────────────── */
.faq-item {
  border: 1px solid var(--card-line) !important;
  border-radius: var(--card-radius-sm) !important;
  box-shadow:
    0 1px 0 var(--card-edge-hi) inset,
    0 1px 2px rgba(0,0,0,0.18) !important;
  transition:
    border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out) !important;
}
.faq-item:hover {
  border-color: rgba(26,127,255,0.28) !important;
  box-shadow:
    0 1px 0 var(--card-edge-hi) inset,
    0 4px 18px rgba(0,0,0,0.28),
    0 0 0 1px rgba(26,127,255,0.10) inset !important;
}

/* ── GENERIC .card-* FAMILY (used inside flipped service backs) ─ */
.card-stat-number {
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
}
.card-stat-label,
.card-tag {
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  font-size: 0.66rem !important;
  font-weight: 600 !important;
}
.card-tag {
  background: rgba(26,127,255,0.08) !important;
  border: 1px solid rgba(26,127,255,0.22) !important;
  border-radius: 3px !important;    /* sharper — not pill */
  padding: 3px 8px !important;
  color: var(--accent-light, #00d4ff) !important;
}

/* ── REDUCED MOTION — strip ALL decorative motion ──────────── */
@media (prefers-reduced-motion: reduce) {
  .spec-item::before, .spec-item::after,
  .industry-card::before,
  .hero-stat-card::after {
    transition: none !important;
  }
}

/* ── MOBILE: simpler corner marks (less chrome on small screens) ─ */
@media (max-width: 768px) {
  .spec-item::before, .spec-item::after { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   HERO STAT VISUALISATIONS — crafted SVG data-viz per card
   Replaces generic line-icons. Each viz tells the stat's story:
   bar-chart for years, orbit-map for offices, network for agents,
   stars+sparkline for rating.
═══════════════════════════════════════════════════════════════ */
.hero-stat-card {
  gap: 20px !important;
  padding: 26px 22px !important;
}
.hero-stat-viz {
  width: 82px;
  height: 58px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-stat-viz svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* Hide the old .hero-stat-icon box if it still renders anywhere */
.hero-stat-card .hero-stat-icon { display: none !important; }

/* Subtle pulse on the focus marker — slow breath, not attention-grabbing */
@keyframes hsv-pulse {
  0%   { transform: scale(1);   opacity: 0.9; }
  70%  { transform: scale(1.6); opacity: 0;   }
  100% { transform: scale(1.6); opacity: 0;   }
}
.hero-stat-viz svg .hsv-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: hsv-pulse 2.4s cubic-bezier(0.16,1,0.3,1) infinite;
}

/* Entrance: bars grow up, rings scale in, edges draw, stars pop */
@keyframes hsv-bar-grow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
@keyframes hsv-fade-up {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hsv-scale-in {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes hsv-draw {
  from { stroke-dasharray: 120; stroke-dashoffset: 120; }
  to   { stroke-dasharray: 120; stroke-dashoffset: 0; }
}

/* Bars: rise in sequence on viewport-entry (.animate-in sets this via hero flow) */
#hero.animate-in .hero-stat-card[data-index="01"] .hsv-bars rect {
  transform-origin: bottom center;
  transform-box: fill-box;
  animation: hsv-bar-grow 0.65s cubic-bezier(0.16,1,0.3,1) both;
}
#hero.animate-in .hero-stat-card[data-index="01"] .hsv-bars rect:nth-child(1)  { animation-delay: 0.70s; }
#hero.animate-in .hero-stat-card[data-index="01"] .hsv-bars rect:nth-child(2)  { animation-delay: 0.76s; }
#hero.animate-in .hero-stat-card[data-index="01"] .hsv-bars rect:nth-child(3)  { animation-delay: 0.82s; }
#hero.animate-in .hero-stat-card[data-index="01"] .hsv-bars rect:nth-child(4)  { animation-delay: 0.88s; }
#hero.animate-in .hero-stat-card[data-index="01"] .hsv-bars rect:nth-child(5)  { animation-delay: 0.94s; }
#hero.animate-in .hero-stat-card[data-index="01"] .hsv-bars rect:nth-child(6)  { animation-delay: 1.00s; }
#hero.animate-in .hero-stat-card[data-index="01"] .hsv-bars rect:nth-child(7)  { animation-delay: 1.06s; }
#hero.animate-in .hero-stat-card[data-index="01"] .hsv-bars rect:nth-child(8)  { animation-delay: 1.12s; }
#hero.animate-in .hero-stat-card[data-index="01"] .hsv-bars rect:nth-child(9)  { animation-delay: 1.18s; }
#hero.animate-in .hero-stat-card[data-index="01"] .hsv-bars rect:nth-child(10) { animation-delay: 1.24s; }
#hero.animate-in .hero-stat-card[data-index="01"] .hsv-bars rect:nth-child(11) { animation-delay: 1.30s; }

/* Rings + dots: scale-in + fade-up sequence */
#hero.animate-in .hero-stat-card[data-index="02"] .hsv-rings circle {
  transform-origin: center;
  transform-box: fill-box;
  animation: hsv-scale-in 0.7s cubic-bezier(0.16,1,0.3,1) both;
}
#hero.animate-in .hero-stat-card[data-index="02"] .hsv-rings circle:nth-child(1) { animation-delay: 0.95s; }
#hero.animate-in .hero-stat-card[data-index="02"] .hsv-rings circle:nth-child(2) { animation-delay: 1.00s; }
#hero.animate-in .hero-stat-card[data-index="02"] .hsv-rings circle:nth-child(3) { animation-delay: 1.05s; }
#hero.animate-in .hero-stat-card[data-index="02"] .hsv-rings circle:nth-child(4) { animation-delay: 1.10s; }
#hero.animate-in .hero-stat-card[data-index="02"] .hsv-dots circle {
  animation: hsv-fade-up 0.55s cubic-bezier(0.16,1,0.3,1) both;
}
#hero.animate-in .hero-stat-card[data-index="02"] .hsv-dots circle:nth-child(n)    { animation-delay: 1.15s; }
#hero.animate-in .hero-stat-card[data-index="02"] .hsv-dots circle:nth-child(2n)   { animation-delay: 1.22s; }
#hero.animate-in .hero-stat-card[data-index="02"] .hsv-dots circle:nth-child(3n)   { animation-delay: 1.30s; }

/* Network edges + dots for card 03 */
#hero.animate-in .hero-stat-card[data-index="03"] .hsv-edges line {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: hsv-draw 0.8s cubic-bezier(0.16,1,0.3,1) both;
}
#hero.animate-in .hero-stat-card[data-index="03"] .hsv-edges line:nth-child(n)    { animation-delay: 1.10s; }
#hero.animate-in .hero-stat-card[data-index="03"] .hsv-edges line:nth-child(2n)   { animation-delay: 1.18s; }
#hero.animate-in .hero-stat-card[data-index="03"] .hsv-edges line:nth-child(3n)   { animation-delay: 1.26s; }
#hero.animate-in .hero-stat-card[data-index="03"] .hsv-dots circle {
  animation: hsv-scale-in 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}
#hero.animate-in .hero-stat-card[data-index="03"] .hsv-dots circle:nth-child(n)   { animation-delay: 1.35s; }
#hero.animate-in .hero-stat-card[data-index="03"] .hsv-dots circle:nth-child(2n)  { animation-delay: 1.42s; }
#hero.animate-in .hero-stat-card[data-index="03"] .hsv-dots circle:nth-child(3n)  { animation-delay: 1.50s; }

/* Stars for card 04 — pop in sequence */
#hero.animate-in .hero-stat-card[data-index="04"] .hsv-stars path {
  transform-origin: center;
  transform-box: fill-box;
  animation: hsv-scale-in 0.55s cubic-bezier(0.34,1.56,0.64,1) both;
}
#hero.animate-in .hero-stat-card[data-index="04"] .hsv-stars path:nth-child(1) { animation-delay: 1.20s; }
#hero.animate-in .hero-stat-card[data-index="04"] .hsv-stars path:nth-child(2) { animation-delay: 1.28s; }
#hero.animate-in .hero-stat-card[data-index="04"] .hsv-stars path:nth-child(3) { animation-delay: 1.36s; }
#hero.animate-in .hero-stat-card[data-index="04"] .hsv-stars path:nth-child(4) { animation-delay: 1.44s; }
#hero.animate-in .hero-stat-card[data-index="04"] .hsv-stars path:nth-child(5) { animation-delay: 1.52s; }

/* Reduced motion — skip all viz entrance animation */
@media (prefers-reduced-motion: reduce) {
  #hero.animate-in .hero-stat-card .hsv-bars rect,
  #hero.animate-in .hero-stat-card .hsv-rings circle,
  #hero.animate-in .hero-stat-card .hsv-dots circle,
  #hero.animate-in .hero-stat-card .hsv-edges line,
  #hero.animate-in .hero-stat-card .hsv-stars path {
    animation: none !important;
  }
  .hero-stat-viz svg .hsv-pulse { animation: none !important; }
}

/* Mobile: shrink viz to preserve card flex */
@media (max-width: 768px) {
  .hero-stat-viz { width: 64px; height: 46px; }
  .hero-stat-card { gap: 14px !important; padding: 20px 16px !important; }
}

/* ═══════════════════════════════════════════════════════════════
   LEGACY SECTION — Editorial asymmetric panel
   Replaces the old duplicated stats grid. Left: cinematic port
   photograph with architectural frame corners + coord label.
   Right: founder story, pull-quote, credential badges.
   Design language: magazine editorial, De Matos family story,
   "Since 1988 · Durban" heritage weight.
═══════════════════════════════════════════════════════════════ */
#legacy {
  padding: 110px 40px;
  position: relative;
  z-index: 1;
}
.legacy-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 72px;
  align-items: center;
}

/* ── MEDIA SIDE ───────────────────────────────────────── */
.legacy-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 -1px 0 rgba(0,0,0,0.40) inset,
    0 2px 3px rgba(0,0,0,0.30),
    0 32px 80px rgba(0,0,0,0.55);
}
.legacy-media picture,
.legacy-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) contrast(1.04);
  transition: transform 0.8s cubic-bezier(0.16,1,0.3,1), filter 0.8s cubic-bezier(0.16,1,0.3,1);
}
.legacy-media:hover img {
  transform: scale(1.03);
  filter: saturate(1) contrast(1.08);
}
.legacy-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(4,6,15,0.18) 0%,
    rgba(4,6,15,0.06) 40%,
    rgba(4,6,15,0.65) 100%);
  pointer-events: none;
}
/* architectural corner frame — technical-drawing language */
.legacy-media-frame {
  position: absolute; inset: 14px;
  pointer-events: none;
  z-index: 2;
}
.legacy-media-frame svg {
  position: absolute;
}
.legacy-media-frame svg:nth-child(1) { top: 0; left: 0; }
.legacy-media-frame svg:nth-child(2) { top: 0; right: 0; }
.legacy-media-frame svg:nth-child(3) { bottom: 0; right: 0; }
.legacy-media-frame svg:nth-child(4) { bottom: 0; left: 0; }

.legacy-media-corner {
  position: absolute;
  bottom: 22px; left: 22px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.64rem;
  letter-spacing: 0.20em;
  color: rgba(255,255,255,0.85);
  background: rgba(4,6,15,0.55);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 3px;
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
}
.legacy-media-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #00d4ff;
  box-shadow: 0 0 10px rgba(0,212,255,0.8);
  animation: legacy-dot-pulse 2.2s cubic-bezier(0.16,1,0.3,1) infinite;
}
@keyframes legacy-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.8); }
}

/* ── CONTENT SIDE ─────────────────────────────────────── */
.legacy-content {
  max-width: 560px;
}
.legacy-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--accent-light, #00d4ff);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.legacy-eyebrow::before {
  content: '';
  width: 36px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.legacy-title {
  font-family: 'Instrument Serif', 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 28px;
  font-weight: 400;
}
.legacy-lead {
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(238,242,255,0.80);
  margin: 0 0 36px;
  font-weight: 400;
}
.legacy-lead strong {
  color: #fff;
  font-weight: 600;
}
.legacy-pullquote {
  position: relative;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  line-height: 1.4;
  font-style: italic;
  color: rgba(238,242,255,0.92);
  padding: 20px 0 20px 24px;
  margin: 0 0 32px;
  border-left: 2px solid var(--accent, #1a7fff);
}
.legacy-pullquote-mark {
  color: var(--accent-light, #00d4ff);
  font-size: 1.4em;
  line-height: 0;
  position: relative;
  top: 0.1em;
  margin-right: 2px;
}
.legacy-pullquote-mark-end {
  margin-left: 2px;
  margin-right: 0;
}
.legacy-sig {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.20em;
  color: rgba(0,212,255,0.9);
  text-transform: uppercase;
  margin: 0 0 36px;
}
.legacy-sig-mark {
  color: rgba(0,212,255,0.7);
  flex-shrink: 0;
}
.legacy-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.legacy-badge {
  font-family: 'Manrope', sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: 3px;
  background: rgba(26,127,255,0.08);
  border: 1px solid rgba(26,127,255,0.22);
  color: rgba(238,242,255,0.88);
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.legacy-badge:hover {
  background: rgba(26,127,255,0.16);
  border-color: rgba(26,127,255,0.42);
}

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 960px) {
  .legacy-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .legacy-media {
    aspect-ratio: 16 / 10;
    max-height: 480px;
  }
  .legacy-content {
    max-width: 100%;
    order: 2;
  }
  .legacy-media { order: 1; }
}
@media (max-width: 600px) {
  #legacy { padding: 72px 24px; }
  .legacy-inner { gap: 36px; }
  .legacy-pullquote { padding-left: 18px; }
  .legacy-badges { gap: 8px; }
  .legacy-badge { font-size: 0.6rem; padding: 6px 10px; }
  .legacy-media-corner { font-size: 0.56rem; padding: 5px 10px; bottom: 14px; left: 14px; }
}



