/* ==========================================================================
   ERAM SURVEYS — main.css
   Design System (tokens), reset, base layout, header, footer, section content
   and the motion-layer hooks.

   CSS naming convention (project-wide, BEM-like):
     .block            component root            e.g. .site-header, .nav
     .block__element   part of a block           e.g. .nav__link, .card__title
     .block--modifier  variant of a block/elem   e.g. .btn--primary, .is-open (state)
   State classes use the `.is-*` / `.has-*` prefix (e.g. .is-open, .is-active).
   Layout helpers are prefixed `.u-` (utilities) or `.l-` where needed.
   Design tokens live in :root below and MUST be reused across the stylesheet.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS  (custom properties — single source of truth)
   Colours sampled directly from the brand logo (eram_rgb.png):
     dominant brand blue  #005EB8   bright blue #0078C4 / #0086CC
     cyan accent          #00A6DB / #0097D3   teal #14B7C6
     lime accent (the "A")#6CC24C
   Navy backgrounds are derived (darker) tints of the brand blue for the
   alternating dark sections / hero overlay.
   -------------------------------------------------------------------------- */
:root {
  /* --- Brand palette (raw) --- */
  --c-navy-900: #061530;   /* deepest — hero base */
  --c-navy-800: #0A1B3D;   /* dark section bg */
  --c-navy-700: #0B2A5B;   /* dark section bg (lighter) */
  --c-blue-700: #004a93;
  --c-blue-600: #005EB8;   /* PRIMARY brand blue */
  --c-blue-500: #0078C4;
  --c-blue-400: #0086CC;
  --c-cyan-500: #00A6DB;   /* ACCENT cyan */
  --c-cyan-400: #29ABE2;
  --c-cyan-300: #3DBEF0;
  --c-teal-500: #14B7C6;
  --c-lime-500: #6CC24C;   /* ACCENT lime (logo "A") */
  --c-lime-400: #8DCE5F;

  /* --- Neutrals --- */
  --c-white:    #ffffff;
  --c-ink-900:  #0e1726;   /* headings on light bg */
  --c-ink-700:  #33415c;   /* body text on light bg */
  --c-ink-500:  #64748b;   /* muted text */
  --c-line:     #e2e8f0;   /* borders / dividers */
  --c-mist:     #f4f7fb;   /* light alt section bg */
  --c-mist-2:   #eaf1f9;   /* (rarely used tint) */

  /* --- Semantic colour roles (use THESE in components) --- */
  --color-primary:        var(--c-blue-600);
  --color-primary-strong: var(--c-blue-700);
  --color-accent:         var(--c-cyan-500);
  --color-accent-2:       var(--c-lime-500);

  --color-bg:             var(--c-white);
  --color-bg-alt:         var(--c-mist);
  --color-bg-dark:        var(--c-navy-800);
  --color-surface:        var(--c-white);
  --color-text:           var(--c-ink-700);
  --color-heading:        var(--c-ink-900);
  --color-text-muted:     var(--c-ink-500);
  --color-border:         var(--c-line);

  /* text roles on dark backgrounds */
  --color-on-dark:        rgba(255,255,255,0.92);
  --color-on-dark-muted:  rgba(255,255,255,0.68);

  /* --- Gradients --- */
  --gradient-brand: linear-gradient(120deg, var(--c-blue-600) 0%, var(--c-cyan-500) 100%);
  --gradient-brand-lime: linear-gradient(120deg, var(--c-blue-600) 0%, var(--c-teal-500) 55%, var(--c-lime-500) 100%);
  --gradient-hero-overlay: linear-gradient(180deg, rgba(6,21,48,0.72) 0%, rgba(10,27,61,0.82) 55%, rgba(11,42,91,0.90) 100%);
  --gradient-dark: linear-gradient(160deg, var(--c-navy-900) 0%, var(--c-navy-700) 100%);

  /* --- Typography --- */
  --font-sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* fluid type scale (min → preferred → max) */
  --fs-xs:    0.8125rem;                              /* 13px */
  --fs-sm:    0.875rem;                               /* 14px */
  --fs-base:  1rem;                                   /* 16px */
  --fs-md:    clamp(1.05rem, 0.4vw + 0.95rem, 1.1875rem);
  --fs-lg:    clamp(1.2rem, 0.7vw + 1rem, 1.5rem);
  --fs-xl:    clamp(1.5rem, 1.2vw + 1.1rem, 2rem);
  --fs-2xl:   clamp(1.9rem, 2vw + 1.2rem, 2.75rem);   /* section titles */
  --fs-3xl:   clamp(2.4rem, 4vw + 1rem, 3.75rem);
  --fs-hero:  clamp(2.4rem, 5.2vw + 1rem, 4.5rem);    /* hero H1 */

  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semibold:600;
  --fw-bold:    700;
  --fw-black:   800;

  --lh-tight:  1.1;
  --lh-snug:   1.25;
  --lh-normal: 1.6;
  --ls-tight:  -0.02em;
  --ls-wide:   0.04em;
  --ls-caps:   0.12em;

  /* --- Spacing scale (4px base) --- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --space-section: clamp(4rem, 8vw, 7rem);   /* vertical padding of a <section> */

  /* --- Layout --- */
  --container-max: 1200px;
  --container-gutter: clamp(1.25rem, 4vw, 3rem);
  --header-h: 76px;
  --header-h-compact: 66px;   /* gentle compaction */

  /* --- Radius --- */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-pill:999px;

  /* --- Shadows --- */
  --shadow-sm:  0 1px 2px rgba(6,21,48,0.06), 0 1px 3px rgba(6,21,48,0.08);
  --shadow-md:  0 4px 12px rgba(6,21,48,0.08), 0 2px 6px rgba(6,21,48,0.06);
  --shadow-lg:  0 18px 40px rgba(6,21,48,0.14), 0 6px 14px rgba(6,21,48,0.08);
  --shadow-glow:0 0 0 1px rgba(0,166,219,0.35), 0 8px 30px rgba(0,120,196,0.28);

  /* --- Motion --- */
  --dur-fast:   150ms;
  --dur:        260ms;
  --dur-slow:   480ms;
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);

  /* --- z-index scale --- */
  /* Header sits ABOVE the drawer backdrop: the header is its own stacking
     context (backdrop-filter + entrance transform), so its root z-index must
     beat the backdrop or the backdrop would cover the in-header drawer. */
  --z-header:   1100;
  --z-overlay:  1090;   /* mobile drawer backdrop (below the header) */
  --z-drawer:   1120;   /* the drawer panel, within the header context */
  --z-toggle:   1130;   /* hamburger/X stays tappable above the open drawer */

  /* Breakpoints (reference — used in @media queries below):
     sm 480px · md 768px · lg 1024px · xl 1200px */
}

/* --------------------------------------------------------------------------
   2. RESET / NORMALIZE (minimal, modern)
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* When JS is on, smooth scrolling is owned by Lenis (animations.js) / our
   anchor handler; native CSS smooth-scroll would otherwise fight programmatic
   scrolling. No-JS users keep the native smooth behaviour above. */
html.js { scroll-behavior: auto; }

/* respect users who prefer no motion (also applied broadly for JS phases) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
svg { fill: currentColor; }

input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

a { color: var(--color-primary); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--color-accent); }

ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4, h5 {
  color: var(--color-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-gutter);
}

/* generic section rhythm; alternating light / dark backgrounds */
.section {
  position: relative;
  padding-block: var(--space-section);
  scroll-margin-top: var(--header-h);   /* so anchors don't hide under sticky header */
}
.section--alt  { background: var(--color-bg-alt); }
.section--dark {
  background: var(--gradient-dark);
  color: var(--color-on-dark);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

/* small eyebrow / kicker label used above section titles */
.eyebrow {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--color-primary);
}

/* utilities */
.u-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.u-text-accent { color: var(--color-accent); }
.u-text-lime   { color: var(--color-accent-2); }
.u-no-scroll   { overflow: hidden; }

/* Skip link: hidden until keyboard-focused, then pinned top-left (A11y) */
a.u-visually-hidden:focus {
  position: fixed !important;
  top: 12px; left: 12px;
  width: auto; height: auto;
  margin: 0; padding: 0.7em 1.1em;
  clip: auto; clip-path: none; overflow: visible;
  background: var(--color-primary); color: #fff;
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  z-index: 2000; white-space: nowrap;
}

/* --------------------------------------------------------------------------
   4. BUTTONS (base component — reused everywhere)
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--color-primary);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.85em 1.6em;
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  line-height: 1;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border-radius: var(--radius-pill);
  transition: transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
  will-change: transform;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--color-primary); background: var(--gradient-brand); }
.btn--accent  { --btn-bg: var(--color-accent); }
.btn--ghost {
  --btn-fg: var(--color-primary);
  background: transparent;
  box-shadow: inset 0 0 0 2px currentColor;
}
.btn--ghost:hover { --btn-fg: var(--color-accent); box-shadow: inset 0 0 0 2px currentColor, var(--shadow-md); }
.section--dark .btn--ghost { --btn-fg: #fff; }

/* --------------------------------------------------------------------------
   5. HEADER (sticky) + PRIMARY NAV
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.72);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  /* softened compaction: slower, gentler easing */
  transition: height var(--dur-slow) var(--ease-out),
              background-color var(--dur-slow) var(--ease-out),
              -webkit-backdrop-filter var(--dur-slow) var(--ease-out),
              backdrop-filter var(--dur-slow) var(--ease-out),
              box-shadow var(--dur-slow) var(--ease-out),
              border-color var(--dur-slow) var(--ease-out);
  /* first-load entrance: slide down from the top */
  animation: header-drop 0.7s var(--ease-out) both;
}
@keyframes header-drop {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
/* compacted state toggled by JS on scroll — stronger frosted-glass look */
.site-header.is-scrolled {
  height: var(--header-h-compact);
  background: rgba(255,255,255,0.55);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 10px 30px rgba(6,21,48,0.12);
  border-bottom-color: rgba(255,255,255,0.45);
}
.site-header__inner {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}

/* logo */
.brand { display: inline-flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }
.brand__logo {
  height: calc(var(--header-h) - 30px);
  width: auto;
  transition: height var(--dur-slow) var(--ease-out);
}
/* logo barely shrinks now (46px → 42px) */
.site-header.is-scrolled .brand__logo { height: calc(var(--header-h-compact) - 24px); }
.brand__name { display: none; }   /* wordmark is inside the logo image */

/* primary nav */
.nav { display: flex; align-items: center; gap: var(--sp-5); }
.nav__list { display: flex; align-items: center; gap: clamp(0.4rem, 1.4vw, 1.35rem); }
.nav__link {
  position: relative;
  display: inline-block;
  padding: 0.4rem 0.15rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  letter-spacing: 0.01em;
  color: var(--color-heading);
  white-space: nowrap;
}
/* animated underline (kept subtle in P1; enhanced in P4) */
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.nav__link:hover, .nav__link.is-active { color: var(--color-primary); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

/* actions cluster (language switcher slot + hamburger) */
.header-actions { display: flex; align-items: center; gap: var(--sp-4); }

/* language switcher — shows the CURRENT language; opens a dropdown */
.lang-switcher { position: relative; display: inline-flex; }
.lang-switcher__toggle {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.55rem;
  font-size: var(--fs-sm); font-weight: var(--fw-semibold);
  color: var(--color-heading);
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.lang-switcher__toggle:hover,
.lang-switcher.is-open .lang-switcher__toggle { color: var(--color-primary); border-color: var(--color-primary); }
.lang-switcher__globe { width: 16px; height: 16px; opacity: 0.85; }
.lang-switcher__current { letter-spacing: 0.04em; }
.lang-switcher__caret { width: 13px; height: 13px; transition: transform var(--dur) var(--ease); }
.lang-switcher.is-open .lang-switcher__caret { transform: rotate(180deg); }

/* dropdown — same frosted-glass language as the scrolled header */
.lang-switcher__menu {
  position: absolute; top: calc(100% + 0.5rem); right: 0;
  min-width: 174px;
  list-style: none; margin: 0; padding: 0.35rem;
  background: rgba(255,255,255,0.85);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 20;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.lang-switcher.is-open .lang-switcher__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-switcher__opt {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; padding: 0.55rem 0.6rem;
  font-size: var(--fs-sm); color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.lang-switcher__opt:hover { background: var(--color-bg-alt); color: var(--color-heading); }
.lang-switcher__opt.is-active { color: var(--color-primary); font-weight: var(--fw-bold); }
.lang-switcher__optcode { font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: 0.06em; color: var(--color-text-muted); }
.lang-switcher__opt.is-active .lang-switcher__optcode { color: var(--color-primary); }

/* hamburger toggle (mobile only) */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  position: relative;
  z-index: var(--z-toggle);   /* stay above the open drawer so the X is tappable */
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 24px; height: 2px;
  background: var(--color-heading);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle__bar::before { transform: translate(-50%, -8px); }
.nav-toggle__bar::after  { transform: translate(-50%,  8px); }
.nav-toggle.is-open .nav-toggle__bar { background: transparent; }
.nav-toggle.is-open .nav-toggle__bar::before { transform: translate(-50%, 0) rotate(45deg); background: var(--color-heading); }
.nav-toggle.is-open .nav-toggle__bar::after  { transform: translate(-50%, 0) rotate(-45deg); background: var(--color-heading); }

/* mobile drawer backdrop */
.nav-backdrop {
  position: fixed; inset: 0;
  z-index: var(--z-overlay);
  background: rgba(6,21,48,0.5);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.nav-backdrop.is-visible { opacity: 1; visibility: visible; }

/* --------------------------------------------------------------------------
   6. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--gradient-dark);
  color: var(--color-on-dark);
  padding-block: var(--sp-8) var(--sp-6);
}
.site-footer a { color: var(--color-on-dark); }
.site-footer a:hover { color: var(--c-cyan-300); }

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--sp-7);
  align-items: start;
}
.footer__brand-logo { height: 64px; width: auto; margin-bottom: var(--sp-4); }
.footer__tagline {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: #fff;
  margin-bottom: var(--sp-3);
}
.footer__slogan {
  font-size: clamp(2.4rem, 5vw, 3.6rem);   /* enlarged so the sheen reads */
  font-weight: var(--fw-black);
  letter-spacing: var(--ls-tight);
  line-height: 1.05;
  /* brand gradient text + a bright band that slowly sweeps across it */
  background:
    linear-gradient(100deg, transparent 0 40%, rgba(255,255,255,0.92) 50%, transparent 60% 100%),
    var(--gradient-brand-lime);
  background-size: 250% 100%, 100% 100%;
  background-repeat: no-repeat;
  background-position: 130% 0, 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: slogan-shine 5.5s ease-in-out infinite;
}
@keyframes slogan-shine {
  0%        { background-position: 130% 0, 0 0; }
  55%, 100% { background-position: -30% 0, 0 0; }
}
.footer__col-title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--color-on-dark-muted);
  margin-bottom: var(--sp-4);
}
.footer__list { display: grid; gap: var(--sp-3); }
.footer__list li { color: var(--color-on-dark-muted); font-size: var(--fs-sm); line-height: 1.5; }
.footer__list a { color: var(--color-on-dark); }

.footer__bottom {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--color-on-dark-muted);
}
.footer__bottom a { text-decoration: underline; text-underline-offset: 2px; }

/* --------------------------------------------------------------------------
   7. RESPONSIVE — mobile nav drawer & footer stacking
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }

  .nav {
    position: fixed;
    top: 0; right: 0;
    z-index: var(--z-drawer);
    height: 100dvh;
    width: min(84vw, 340px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: calc(var(--header-h) + var(--sp-4)) var(--sp-6) var(--sp-6);
    background: var(--color-bg);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform var(--dur-slow) var(--ease-out);
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    display: block;
    padding: var(--sp-4) var(--sp-1);
    font-size: var(--fs-md);
    border-bottom: 1px solid var(--color-border);
  }
  .nav__link::after { display: none; }

  /* language switcher moves into drawer flow; dropdown opens left-aligned */
  .nav .lang-switcher { margin-top: var(--sp-5); align-self: flex-start; }
  .nav .lang-switcher__menu { left: 0; right: auto; }
}

@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr; gap: var(--sp-6); }
}

/* prevent nav drawer transition flash before JS boots */
.no-js .nav-toggle { display: none; }

/* ==========================================================================
   8. SECTION CONTENT — hero, about, services, process, claim,
   transport, cargo, DG & flexitank, contact form. All colours/spacing use
   the design tokens from :root. Light CSS transitions only (JS animations
   live in animations.js).
   ========================================================================== */

/* shared section head / titles / leads --------------------------------- */
.section__head { max-width: 760px; margin: 0 auto var(--sp-7); text-align: center; }
.section__head .eyebrow { margin-bottom: var(--sp-3); }
.section__title { font-size: var(--fs-2xl); }
.section__head .section__title { margin-bottom: var(--sp-4); }
.section__lead { font-size: var(--fs-md); color: var(--color-text-muted); }
.section--dark .section__lead { color: var(--color-on-dark-muted); }
.section__lead--center { margin-inline: auto; }
.section__lead strong { color: var(--color-heading); font-weight: var(--fw-semibold); }
.section--dark .section__lead strong { color: #fff; }

/* header CTA + small button ------------------------------------------- */
.btn--sm { padding: 0.6em 1.15em; font-size: var(--fs-sm); }
.header-cta { flex-shrink: 0; }
@media (max-width: 1180px) { .header-cta { display: none; } }

/* --------------------------------------------------------------------------
   HERO (#home)
   -------------------------------------------------------------------------- */
.hero {
  min-height: min(92vh, 860px);
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-h) + var(--sp-8)) var(--sp-9);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: var(--gradient-hero-overlay);
}
.hero__inner { position: relative; z-index: 2; max-width: 900px; }
.hero__eyebrow { color: var(--c-cyan-300); margin-bottom: var(--sp-4); }
.hero__title {
  font-size: var(--fs-hero);
  font-weight: var(--fw-black);
  color: #fff;
  max-width: 16ch;
}
.hero__lead {
  margin-top: var(--sp-5);
  max-width: 62ch;
  font-size: var(--fs-lg);
  color: var(--color-on-dark);
  font-weight: var(--fw-regular);
}
.hero__lead strong { color: var(--c-lime-400); font-weight: var(--fw-semibold); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-6); }
.hero__values {
  display: flex; flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  margin-top: var(--sp-7);
}
.hero__values li {
  position: relative;
  padding-left: 1.4rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-on-dark);
}
.hero__values li::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; background: var(--c-lime-500);
}
/* scroll cue */
.hero__scroll {
  position: absolute; z-index: 2;
  left: 50%; bottom: var(--sp-5); transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.5);
  border-radius: var(--radius-pill);
  display: none;
}
.hero__scroll-dot {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px;
  margin-left: -2px; border-radius: 2px; background: #fff;
  animation: hero-scroll 1.8s var(--ease) infinite;
}
@keyframes hero-scroll { 0%{opacity:0;transform:translateY(0)} 40%{opacity:1} 80%{opacity:0;transform:translateY(12px)} 100%{opacity:0} }
@media (min-width: 720px) { .hero__scroll { display: block; } }

/* --------------------------------------------------------------------------
   WHO WE ARE (#about)
   -------------------------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about__body .section__title { margin: var(--sp-3) 0 var(--sp-4); }
.about__body p + p { margin-top: var(--sp-4); }
.about__values {
  display: flex; flex-wrap: wrap; gap: var(--sp-3);
  margin: var(--sp-6) 0;
}
.about__values li {
  padding: 0.5rem 1rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm); font-weight: var(--fw-medium);
}
.about__value-k { color: var(--color-primary); font-weight: var(--fw-bold); }
.about__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }

/* stat row (counters animated via data-count) */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); margin-top: var(--sp-6); }
.stats__item { border-left: 3px solid var(--color-accent); padding-left: var(--sp-4); }
.stats__num {
  font-size: var(--fs-2xl); font-weight: var(--fw-black);
  line-height: 1; color: var(--color-heading);
  letter-spacing: var(--ls-tight);
}
.stats__label { font-size: var(--fs-xs); color: var(--color-text-muted); margin-top: var(--sp-2); }

/* --------------------------------------------------------------------------
   CARDS — generic grid used by Services / Claim tiles
   -------------------------------------------------------------------------- */
.cards { display: grid; gap: var(--sp-5); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin-bottom: var(--sp-4);
  border-radius: var(--radius-md);
  color: #fff; background: var(--gradient-brand);
}
.card__icon svg { width: 26px; height: 26px; }
.card__title { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.card__text { font-size: var(--fs-sm); color: var(--color-text); }

/* --------------------------------------------------------------------------
   PROCESS (#process) — horizontal stepper
   -------------------------------------------------------------------------- */
.process__payoff { font-weight: var(--fw-medium); }
.stepper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-4);
  counter-reset: step;
}
.step {
  position: relative;
  padding: var(--sp-5);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
}
.step__head { display: flex; align-items: baseline; gap: var(--sp-3); margin-bottom: var(--sp-4); }
/* connector line between step numbers on desktop */
.step:not(:last-child)::after {
  content: ""; position: absolute; top: calc(var(--sp-5) + 0.7em);
  right: calc(var(--sp-4) * -0.5 - 1px); width: var(--sp-4); height: 2px;
  background: linear-gradient(90deg, var(--c-cyan-500), transparent);
}
.step__num {
  font-size: var(--fs-lg); font-weight: var(--fw-black);
  color: var(--c-cyan-300); letter-spacing: 0;
}
.step__title { color: #fff; font-size: var(--fs-md); }
.step__list { display: grid; gap: var(--sp-2); }
.step__list li {
  position: relative; padding-left: 1.1rem;
  font-size: var(--fs-sm); color: var(--color-on-dark-muted);
}
.step__list li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--c-lime-500);
}

/* --------------------------------------------------------------------------
   CLAIM SUPPORT (#claim)
   -------------------------------------------------------------------------- */
.claim__top {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: var(--sp-8);
}
.claim__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.claim__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.claim__intro .section__title { margin: var(--sp-3) 0 var(--sp-4); }
.claim__tagline {
  font-size: var(--fs-lg); font-weight: var(--fw-semibold);
  color: var(--color-heading); line-height: var(--lh-snug);
  padding-left: var(--sp-4); border-left: 4px solid var(--color-accent);
  margin-bottom: var(--sp-4);
}
.tile {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease);
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tile__title { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.tile__text { font-size: var(--fs-sm); color: var(--color-text); }

/* --------------------------------------------------------------------------
   TRANSPORT MODES (#transport)
   -------------------------------------------------------------------------- */
.transport { overflow: hidden; }
.transport__route {
  display: none;
  width: 100%; height: 60px;
  margin-bottom: var(--sp-6);
  color: var(--color-accent);
  overflow: visible;              /* let the light's glow spill past the box */
}
@media (min-width: 900px) { .transport__route { display: block; } }
/* base drawn line stays faint so the travelling lights pop over it */
.transport__route-path { stroke-opacity: 0.4; }
/* travelling "light" segments injected by animations.js */
.transport__route-glow {
  fill: none;
  stroke-linecap: round;
  opacity: 0.95;
  filter: drop-shadow(0 0 5px currentColor);
}
.transport__route-glow--cyan { stroke: var(--c-cyan-300); color: var(--c-cyan-300); }
.transport__route-glow--lime { stroke: var(--c-lime-500); color: var(--c-lime-500); }
@media (prefers-reduced-motion: reduce) {
  /* no travelling lights are created in reduced-motion, but be defensive */
  .transport__route-glow { display: none; }
}
.modes { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--sp-4); }
.mode {
  text-align: center;
  padding: var(--sp-5) var(--sp-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.mode:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--color-accent); }
.mode__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; margin-bottom: var(--sp-3);
  border-radius: 50%;
  color: var(--color-primary);
  background: var(--color-bg-alt);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.mode:hover .mode__icon { color: #fff; background: var(--gradient-brand); }
.mode__icon svg { width: 28px; height: 28px; }
.mode__title { font-size: var(--fs-md); margin-bottom: var(--sp-1); }
.mode__text { font-size: var(--fs-xs); color: var(--color-text-muted); }

/* --------------------------------------------------------------------------
   CARGO EXPERTISE (#cargo)
   -------------------------------------------------------------------------- */
.cargo__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.cargo-card {
  display: flex; flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease);
}
.cargo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cargo-card__media { aspect-ratio: 4/3; overflow: hidden; }
.cargo-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.cargo-card:hover .cargo-card__media img { transform: scale(1.05); }
.cargo-card__body { padding: var(--sp-5); }
.cargo-card__title { font-size: var(--fs-lg); margin-bottom: var(--sp-4); }
.cargo-card__list { display: grid; gap: var(--sp-2); }
.cargo-card__list li {
  position: relative; padding-left: 1.3rem;
  font-size: var(--fs-sm); color: var(--color-text);
}
.cargo-card__list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--color-accent);
}
.cargo-card--note {
  background: var(--gradient-dark);
  color: var(--color-on-dark);
  border-color: transparent;
}
.cargo-card--note .cargo-card__title { color: #fff; }
.cargo-card--note .cargo-card__list li { color: var(--color-on-dark); }
.cargo-card__list--check li::before {
  content: ""; top: 0.35em; width: 12px; height: 8px; border-radius: 0;
  background: transparent;
  border-left: 2px solid var(--c-lime-500); border-bottom: 2px solid var(--c-lime-500);
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   DANGEROUS GOODS & FLEXITANK (#dg)
   -------------------------------------------------------------------------- */
.dg__top {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
  margin-bottom: var(--sp-8);
}
.dg__intro .section__title { margin: var(--sp-3) 0 var(--sp-4); }
.dg__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.dg__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.dg__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.dg-block {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
}
.dg-block__title { color: #fff; font-size: var(--fs-md); margin-bottom: var(--sp-3); }
.dg-block__title::before {
  content: ""; display: block; width: 34px; height: 3px; margin-bottom: var(--sp-3);
  border-radius: 2px; background: var(--gradient-brand);
}
.dg-block__text { font-size: var(--fs-sm); color: var(--color-on-dark-muted); }
.dg-block--wide { grid-column: 1 / -1; }
.dg-report { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); margin-top: var(--sp-4); }
.dg-report__k {
  font-size: var(--fs-xs); font-weight: var(--fw-bold);
  letter-spacing: var(--ls-caps); text-transform: uppercase;
  color: var(--c-cyan-300); margin-bottom: var(--sp-3);
}
.dg-list { display: grid; gap: var(--sp-2); }
.dg-list li {
  position: relative; padding-left: 1.1rem;
  font-size: var(--fs-sm); color: var(--color-on-dark-muted);
}
.dg-list li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--c-lime-500);
}

/* flexitank leakage flow — mini horizontal stepper */
.dg__flow { margin-top: var(--sp-8); }
.dg__flow-title { color: #fff; font-size: var(--fs-md); text-align: center; margin-bottom: var(--sp-5); }
.flow { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); }
.flow__step {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5) var(--sp-3) var(--sp-3);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm); font-weight: var(--fw-medium); color: #fff;
}
.flow__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gradient-brand); color: #fff;
  font-size: var(--fs-xs); font-weight: var(--fw-bold); flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   GET IN TOUCH (#contact) — info + form
   -------------------------------------------------------------------------- */
.contact__grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
.contact__info .section__title { margin: var(--sp-3) 0 var(--sp-4); }
.contact__list { display: grid; gap: var(--sp-5); margin-top: var(--sp-6); }
.contact__item { display: flex; gap: var(--sp-4); align-items: flex-start; }
.contact__ic {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-md);
  color: #fff; background: var(--gradient-brand);
}
.contact__ic svg { width: 22px; height: 22px; }
.contact__k {
  display: block; font-size: var(--fs-xs); font-weight: var(--fw-bold);
  letter-spacing: var(--ls-caps); text-transform: uppercase;
  color: var(--color-text-muted); margin-bottom: 2px;
}
.contact__v { display: block; font-size: var(--fs-md); color: var(--color-heading); font-weight: var(--fw-medium); }
a.contact__v:hover { color: var(--color-primary); }

/* form */
.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-md);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.field { margin-bottom: var(--sp-4); }
.field__label { display: block; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--color-heading); margin-bottom: var(--sp-2); }
.field__req { color: var(--color-accent); }
.field__input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-size: var(--fs-base);
  color: var(--color-heading);
  background: var(--color-bg-alt);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.field__input:focus {
  outline: none;
  background: var(--color-surface);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0,166,219,0.18);
}
.field__input--area { resize: vertical; min-height: 120px; }

/* honeypot — hidden from real users, off-screen (not display:none so bots see it) */
.field--honeypot {
  position: absolute !important;
  left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0;
}

.field-check { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--fs-sm); color: var(--color-text); margin: var(--sp-2) 0 var(--sp-5); }
.field-check input { margin-top: 0.2em; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--color-primary); }
.field-check a { text-decoration: underline; text-underline-offset: 2px; }

.contact-form__submit { width: 100%; }
.contact-form__submit[disabled], .contact-form__submit[aria-busy="true"] { opacity: 0.6; cursor: progress; pointer-events: none; }
.form__status { margin-top: var(--sp-4); font-size: var(--fs-sm); text-align: center; min-height: 1.2em; }
.form__status.is-error { color: #c0392b; }
.form__status.is-success { color: #1a7f4b; }
.form__status.is-loading { color: var(--color-primary); }

/* --------------------------------------------------------------------------
   9. RESPONSIVE — section content (tablet & mobile)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .stepper { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .modes { grid-template-columns: repeat(3, 1fr); }
  .dg__grid { grid-template-columns: 1fr 1fr; }
  .dg-report { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .about__grid,
  .claim__top,
  .dg__top,
  .contact__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 460px; }
  .claim__top { margin-bottom: var(--sp-7); }
  .cargo__grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .stats { max-width: 560px; }
}

@media (max-width: 640px) {
  .cards--4,
  .cards--3 { grid-template-columns: 1fr; }
  .stepper { grid-template-columns: 1fr; }
  .modes { grid-template-columns: repeat(2, 1fr); }
  .dg__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: var(--sp-4); }
  .form__row { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 auto; }
}

/* --------------------------------------------------------------------------
   10. MOTION LAYER — hooks + hover micro-interactions
   JS (animations.js) drives the reveals with GSAP; these rules only support
   it. Nothing here hides content, so the page stays visible with JS off / in
   prefers-reduced-motion.
   -------------------------------------------------------------------------- */

/* hero title word wrapper injected by animations.js */
.hero-word { display: inline-block; will-change: transform, opacity; }

/* Hero accent words (Marine · Damage · Claims): a light "wave" sweeps across
   them from first to last. Base = accent colour; a bright band travels through.
   animations.js sets a staggered animation-delay per accent word so the sheen
   moves left→right like a wave. Scoped to the hero so other .u-text-accent
   uses are untouched. Disabled by the global reduced-motion rule. */
.hero__title .u-text-accent {
  /* Two layers, both clipped to the text:
       1) a moving white band  → the light "wave"
       2) ONE brand gradient (blue→teal→lime) spread across all accent words.
     animations.js sets --brandw (title width) and --brandx (-word offset) so
     each word shows its slice of the same gradient → continuous across words.
     Fallback with no JS / reduced-motion: --brandw defaults to 100% (word
     width) so each word shows the full brand gradient — still on-brand. */
  background:
    linear-gradient(100deg, transparent 0 42%, rgba(255,255,255,0.95) 50%, transparent 58% 100%),
    linear-gradient(100deg, var(--c-blue-500) 0%, var(--c-teal-500) 50%, var(--c-lime-500) 100%);
  background-repeat: no-repeat, no-repeat;
  background-size: 260% 100%, var(--brandw, 100%) 100%;
  background-position: 0% 0, var(--brandx, 0px) 0;   /* rest: band parked off */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hero-accent-shine 6s ease-in-out infinite;
}
@keyframes hero-accent-shine {
  0%        { background-position: 100% 0, var(--brandx, 0px) 0; }  /* band off left  */
  26%, 100% { background-position: 0% 0,   var(--brandx, 0px) 0; }  /* band off right */
}

/* soft glow on the interactive cards (lift already defined above) */
.card:hover,
.mode:hover { box-shadow: var(--shadow-glow); }
.tile:hover { box-shadow: var(--shadow-md), 0 0 0 1px rgba(0,166,219,0.25); }
.card,
.tile,
.mode { will-change: transform; }

/* subtle image zoom already present on cargo/claim/about media — reinforce on cards */
.card__icon { transition: transform var(--dur) var(--ease-out); }
.card:hover .card__icon { transform: translateY(-2px) scale(1.04); }

/* Process stepper — a light "walks" through the steps 01→05, on a loop.
   Each number glows in turn, then its connector lights just after. Pure CSS
   with staggered delays; the global reduced-motion rule stops it. */
.step__num { transition: color var(--dur) var(--ease); }
.step .step__num { animation: step-pulse 6.5s ease-in-out infinite; }
.step:nth-child(1) .step__num { animation-delay: 0s; }
.step:nth-child(2) .step__num { animation-delay: 0.5s; }
.step:nth-child(3) .step__num { animation-delay: 1s; }
.step:nth-child(4) .step__num { animation-delay: 1.5s; }
.step:nth-child(5) .step__num { animation-delay: 2s; }
@keyframes step-pulse {
  0%, 34%, 100% { color: var(--c-cyan-300); text-shadow: none; }
  8%, 15%       { color: #eafcff; text-shadow: 0 0 16px var(--c-cyan-400), 0 0 4px var(--c-cyan-300); }
}
.step:not(:last-child)::after { animation: step-conn 6.5s ease-in-out infinite; }
.step:nth-child(1)::after { animation-delay: 0.28s; }
.step:nth-child(2)::after { animation-delay: 0.78s; }
.step:nth-child(3)::after { animation-delay: 1.28s; }
.step:nth-child(4)::after { animation-delay: 1.78s; }
@keyframes step-conn {
  0%, 34%, 100% { opacity: 0.75; box-shadow: none; }
  8%, 15%       { opacity: 1; box-shadow: 0 0 10px var(--c-cyan-400); }
}

/* Service icons: a very light, staggered "breathing" idle motion */
.card--service .card__icon svg { animation: icon-breathe 4.8s ease-in-out infinite; }
.cards--4 .card:nth-child(2) .card__icon svg { animation-delay: 0.5s; }
.cards--4 .card:nth-child(3) .card__icon svg { animation-delay: 1s; }
.cards--4 .card:nth-child(4) .card__icon svg { animation-delay: 1.5s; }
@keyframes icon-breathe {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  /* belt-and-braces: even if any hook class lingers, keep everything visible */
  .hero-word { transform: none !important; opacity: 1 !important; }
}

/* --------------------------------------------------------------------------
   11. PRIVACY POLICY MODAL — native <dialog>, opened from #privacy
   links. With JS off it degrades to an in-page block via :target.
   -------------------------------------------------------------------------- */
.privacy-modal {
  width: min(680px, calc(100vw - 2 * var(--sp-5)));
  max-height: min(86vh, 900px);
  inset: 0;
  margin: auto;            /* centre in the viewport when shown as a modal */
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-lg);
  overflow: auto;
  overscroll-behavior: contain;   /* keep wheel scrolling inside the modal, not the page under it */
}
.privacy-modal::backdrop { background: rgba(6, 21, 48, 0.62); backdrop-filter: blur(2px); }
.privacy-modal[open] { animation: privacy-in var(--dur) var(--ease-out); }
@keyframes privacy-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.privacy-modal__inner { position: relative; padding: clamp(1.6rem, 4vw, 2.6rem); }
.privacy-modal__title { font-size: var(--fs-xl); color: var(--color-heading); margin: var(--sp-2) 0 var(--sp-4); }
.privacy-modal__lead { font-size: var(--fs-md); color: var(--color-text); margin-bottom: var(--sp-5); }
.privacy-modal__body h3 {
  font-size: var(--fs-base); color: var(--color-primary);
  text-transform: uppercase; letter-spacing: var(--ls-wide);
  margin: var(--sp-5) 0 var(--sp-2);
}
.privacy-modal__body p { font-size: var(--fs-sm); line-height: var(--lh-normal); margin-bottom: var(--sp-2); }
.privacy-modal__body a { text-decoration: underline; text-underline-offset: 2px; }
.privacy-modal__foot { margin-top: var(--sp-5); color: var(--color-text-muted); font-style: italic; }
.privacy-modal__ok { margin-top: var(--sp-6); }

.privacy-modal__close {
  position: absolute; top: 0.9rem; right: 0.9rem;
  width: 40px; height: 40px; display: inline-flex;
  align-items: center; justify-content: center;
  color: var(--color-text-muted); border-radius: var(--radius-pill);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.privacy-modal__close:hover { color: var(--color-heading); background: var(--color-bg-alt); }

/* No-JS fallback: show the policy inline when navigated to via #privacy */
.privacy-modal:target { display: block; position: static; margin: 0 auto var(--sp-8); }

@media (prefers-reduced-motion: reduce) {
  .privacy-modal[open] { animation: none; }
  .privacy-modal::backdrop { backdrop-filter: none; }
}
