/* =========================================================
   RMAS Transport & Logistics — site styles
   ========================================================= */

:root {
  /* Brand (sampled from the RMAS logo) */
  --navy-950: #030f1f;
  --navy-900: #061c36;
  --navy-800: #083058;
  --navy-700: #0d4275;
  --teal-600: #106890;
  --teal-500: #1487a8;
  --aqua-400: #22c3b0;
  --aqua-300: #6be3d3;

  --grad: linear-gradient(110deg, var(--aqua-400) 0%, var(--teal-500) 55%, #3a8dde 100%);
  --grad-soft: linear-gradient(135deg, rgba(34, 195, 176, .16), rgba(20, 135, 168, .10));

  /* Neutrals */
  --ink: #0a1a2f;
  --body: #3c4b5e;
  --muted: #6b7a8d;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f3f7fb;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(6, 28, 54, .06), 0 2px 8px rgba(6, 28, 54, .05);
  --shadow: 0 10px 30px -12px rgba(6, 28, 54, .25);
  --shadow-lg: 0 30px 60px -20px rgba(6, 28, 54, .35);

  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --nav-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) - 8px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; line-height: 1.12; letter-spacing: -.02em; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--aqua-400); color: #fff; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

.ic {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 700 .78rem/1 var(--font-display);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--grad); }
.eyebrow--light { color: var(--aqua-300); }

.h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 800; }
.lead { font-size: 1.15rem; color: var(--body); }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: .8rem; --pad-x: 1.35rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: var(--pad-y) var(--pad-x);
  font: 700 .95rem/1 var(--font-display);
  border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn .ic { transition: transform .25s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn--lg { --pad-y: 1rem; --pad-x: 1.7rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary {
  color: #fff; background: var(--grad); background-size: 140% 100%;
  box-shadow: 0 10px 24px -10px rgba(20, 135, 168, .8);
}
.btn--primary:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 16px 30px -12px rgba(20, 135, 168, .9); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .12); transform: translateY(-2px); }
.btn--white { background: #fff; color: var(--navy-800); }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .45); }
.btn--white:hover .ic { transform: rotate(-12deg); }
.btn--outline-light { color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }

/* ---------- Progress bar ---------- */
.progress {
  position: fixed; inset: 0 auto auto 0; z-index: 60;
  height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: var(--grad);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  transition: background .35s, box-shadow .35s, height .35s;
}
.nav__inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.nav__brand { display: flex; align-items: center; gap: .7rem; color: #fff; }
.nav__mark { width: 44px; height: auto; filter: brightness(1.9) saturate(1.15) drop-shadow(0 2px 6px rgba(0, 0, 0, .25)); transition: filter .35s; }
.nav__word { display: flex; flex-direction: column; line-height: 1; }
.nav__word strong { font: 900 1.45rem/1 var(--font-display); letter-spacing: .02em; }
.nav__word small { font: 700 .58rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; margin-top: .3rem; opacity: .85; }
.nav__links { display: flex; gap: .25rem; margin-left: auto; }
.nav__links a {
  position: relative; padding: .55rem .85rem; border-radius: 999px;
  font: 600 .92rem/1 var(--font-display); color: rgba(255, 255, 255, .82);
  transition: color .2s, background .2s;
}
.nav__links a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav__links a.is-active { color: #fff; }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--aqua-400);
}
.nav__cta-mobile { display: none !important; }
.nav__burger { display: none; }

.nav.is-scrolled {
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 rgba(6, 28, 54, .08), 0 8px 24px -16px rgba(6, 28, 54, .25);
  --nav-h: 66px;
}
.nav.is-scrolled .nav__brand { color: var(--navy-800); }
.nav.is-scrolled .nav__mark, .nav.is-open .nav__mark { filter: none; }
.nav.is-scrolled .nav__links a { color: var(--body); }
.nav.is-scrolled .nav__links a:hover { color: var(--navy-800); background: var(--bg-soft); }
.nav.is-scrolled .nav__links a.is-active { color: var(--navy-800); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 3.5rem) 0 5rem;
  display: flex; align-items: center;
  background: radial-gradient(120% 90% at 80% 10%, #0b3a66 0%, var(--navy-900) 45%, var(--navy-950) 100%);
  color: rgba(255, 255, 255, .78);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.hero__glow--a { width: 560px; height: 560px; right: -120px; top: -140px; background: #1487a8; animation: float 14s ease-in-out infinite; }
.hero__glow--b { width: 460px; height: 460px; left: -160px; bottom: -200px; background: #22c3b0; opacity: .28; animation: float 18s ease-in-out infinite reverse; }
.hero__glow--c { width: 520px; height: 520px; right: -200px; top: -200px; background: #1487a8; opacity: .3; z-index: 0; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 80%);
}
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-40px, 30px) scale(1.08); } }

.hero__inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: 3.5rem; align-items: center; }
.hero__title {
  color: #fff; font-weight: 900;
  font-size: clamp(2.5rem, 4.9vw, 4.3rem);
  letter-spacing: -.035em; line-height: 1.02;
  margin-bottom: 1.5rem;
}
.hero__lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); max-width: 34rem; color: rgba(255, 255, 255, .74); margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 3rem; }
.hero__stats {
  display: grid; grid-template-columns: repeat(3, auto); gap: 0; justify-content: start;
  margin: 0; padding-top: 1.75rem; border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero__stats div { padding-right: 1.6rem; margin-right: 1.6rem; white-space: nowrap; border-right: 1px solid rgba(255, 255, 255, .12); }
.hero__stats div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero__stats dt { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .55); margin-bottom: .35rem; }
.hero__stats dd { margin: 0; font: 800 1.3rem/1 var(--font-display); color: #fff; }

.hero__visual { position: relative; }
.map-card {
  position: relative;
  border-radius: 28px; padding: 1.25rem 1.25rem .5rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
}
.map-card__head {
  display: inline-flex; align-items: center; gap: .55rem;
  font: 700 .74rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7);
  padding: .55rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08);
}
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--aqua-400); box-shadow: 0 0 0 0 rgba(34, 195, 176, .7); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 9px rgba(34, 195, 176, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 195, 176, 0); } }

.map { width: 100%; height: auto; max-height: 560px; display: block; margin: 0 auto; overflow: visible; }
.map .route { fill: none; stroke: url(#routeGrad); stroke-width: 1.4; stroke-linecap: round; opacity: .75; stroke-dasharray: 4 6; animation: dash 1.6s linear infinite; }
.map .route-base { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 1; }
.map .node { fill: #bff5ee; }
.map .node-ring { fill: none; stroke: var(--aqua-400); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: ring 3s ease-out infinite; }
.map .hub { fill: #fff; }
.map .hub-ring { fill: rgba(34, 195, 176, .18); stroke: var(--aqua-400); stroke-width: 1.5; }
.map .packet { fill: #fff; filter: drop-shadow(0 0 4px #6be3d3); }
.map .city { font: 600 9.5px var(--font-body); fill: rgba(255, 255, 255, .62); }
.map .region { font: 800 11px var(--font-display); letter-spacing: .32em; fill: rgba(255, 255, 255, .2); }
.map .dots circle { fill: rgba(255, 255, 255, .07); }
@keyframes dash { to { stroke-dashoffset: -20; } }
@keyframes ring { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }

.map-chip {
  position: absolute; display: flex; align-items: center; gap: .7rem;
  padding: .7rem 1rem .7rem .75rem; border-radius: 16px;
  background: rgba(255, 255, 255, .96); color: var(--navy-800);
  box-shadow: var(--shadow-lg);
  animation: bob 6s ease-in-out infinite;
}
.map-chip .ic { width: 36px; height: 36px; padding: 8px; border-radius: 11px; color: #fff; background: var(--grad); }
.map-chip small { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); line-height: 1.2; }
.map-chip strong { font: 700 .9rem/1.25 var(--font-display); }
.map-chip--hq { left: -28px; top: 34%; }
.map-chip--cov { right: -18px; bottom: 9%; animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.hero__scroll {
  position: absolute; left: 50%; bottom: 1.6rem; translate: -50% 0;
  width: 26px; height: 42px; border-radius: 20px; border: 2px solid rgba(255, 255, 255, .3);
}
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: #fff; animation: scroll 1.8s infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Ticker ---------- */
.ticker { background: var(--navy-800); color: #fff; overflow: hidden; padding: 1.05rem 0; border-block: 1px solid rgba(255, 255, 255, .06); }
.ticker__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: 2.2rem; padding-right: 2.2rem; font: 700 .95rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.ticker span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--aqua-400); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(5rem, 9vw, 8rem) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark {
  background: radial-gradient(100% 80% at 90% 0%, #0b3a66 0%, var(--navy-900) 50%, var(--navy-950) 100%);
  color: rgba(255, 255, 255, .75); overflow: hidden; isolation: isolate;
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { margin-bottom: 3.5rem; }
.section__head.center { text-align: center; max-width: 46rem; margin-inline: auto; }
.section__head.center .eyebrow { justify-content: center; }
.section__head.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: end; }
.section__head.split .lead { margin: 0; }
.section__head .h2 { margin-bottom: .9rem; }

/* Pointer-follow glow on cards */
.glow { position: relative; isolation: isolate; }
.glow::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(34, 195, 176, .14), transparent 45%);
}
.glow:hover::before { opacity: 1; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.about__media { position: relative; isolation: isolate; }
.about--flip .about__media { order: 2; }
.about__media img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-lg); }
.about__media::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; z-index: -1; border-radius: 28px;
  background: var(--grad); opacity: .9;
}
.about__copy .h2 { margin-bottom: 1.4rem; }
.checks__num { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; color: #fff; background: var(--grad); font: 800 .68rem/1 var(--font-display); }
.checks { display: grid; gap: .8rem; margin-top: 1.8rem; }
.checks li { display: flex; align-items: center; gap: .8rem; font-weight: 600; color: var(--ink); }
.checks .ic { width: 28px; height: 28px; padding: 6px; border-radius: 50%; color: #fff; background: var(--grad); stroke-width: 3; }

/* ---------- Industries ---------- */
.industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.industry {
  position: relative; margin: 0; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 3; background: var(--navy-800); box-shadow: var(--shadow);
}
.industry img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .6s; }
.industry::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 28, 54, 0) 35%, rgba(6, 28, 54, .9) 100%); transition: background .5s; }
.industry { display: block; }
.industry__caption {
  display: block;
  position: absolute; left: 1.4rem; right: 1.4rem; bottom: 1.25rem; z-index: 1;
  font: 800 1.25rem/1.2 var(--font-display); color: #fff; letter-spacing: -.01em;
  transition: transform .5s var(--ease);
}
.industry__num { display: block; font-size: .78rem; letter-spacing: .14em; color: var(--aqua-300); margin-bottom: .4rem; }
.industry__caption strong { display: block; font-weight: 800; }
.industry__caption small { display: block; margin-top: .35rem; font: 500 .92rem/1.4 var(--font-body); letter-spacing: 0; color: rgba(255, 255, 255, .78); }
.industry--cta { display: grid; place-items: center; padding: 1.5rem; background: var(--grad); text-align: center; }
.industry--cta::after { display: none; }
.industry__cta-label { display: inline-flex; align-items: center; gap: .6rem; font: 800 1.25rem/1.2 var(--font-display); color: #fff; }
.industry--cta .ic { transition: transform .25s var(--ease); }
.industry--cta:hover .ic { transform: translateX(4px); }
.industry:hover img { transform: scale(1.08); }
.industry:hover::after { background: linear-gradient(180deg, rgba(20, 135, 168, .15) 0%, rgba(6, 28, 54, .92) 100%); }
.industry:hover .industry__caption { transform: translateY(-6px); }

/* ---------- Why (bento) ---------- */
.bento { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; gap: 1.25rem; }
.tile {
  padding: 2rem 1.8rem; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s, border-color .35s;
}
.tile:hover { transform: translateY(-6px); background: #fff; border-color: var(--line); box-shadow: var(--shadow-lg); }
.tile__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #fff; color: var(--teal-600); box-shadow: var(--shadow-sm); margin-bottom: 1.4rem; }
.tile__icon .ic { width: 24px; height: 24px; }
.tile h3 { font-size: 1.25rem; margin-bottom: .55rem; }
.tile p { margin: 0; font-size: .98rem; color: var(--muted); }
.tile--feature {
  grid-row: span 2; display: flex; flex-direction: column; overflow: hidden;
  color: rgba(255, 255, 255, .75);
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(34, 195, 176, .35), transparent 60%),
    radial-gradient(70% 60% at 0% 100%, rgba(20, 135, 168, .4), transparent 60%),
    var(--navy-800);
}
.tile--feature:hover { background:
    radial-gradient(80% 60% at 100% 0%, rgba(34, 195, 176, .45), transparent 60%),
    radial-gradient(70% 60% at 0% 100%, rgba(20, 135, 168, .5), transparent 60%),
    var(--navy-800); border-color: transparent; }
.tile--feature::after {
  content: ""; position: absolute; right: -40px; top: 40px; width: 300px; height: 280px; z-index: -1; pointer-events: none;
  background: url("../assets/img/mark.png") center / contain no-repeat; opacity: .14; filter: brightness(2.4) saturate(0);
  transition: transform .8s var(--ease);
}
.tile--feature:hover::after { transform: rotate(-8deg) scale(1.05); }
.tile--feature h3 { color: #fff; font-size: 1.9rem; margin-top: auto; }
.tile--feature p { color: rgba(255, 255, 255, .75); font-size: 1.05rem; }
.tile--feature .tile__icon { background: var(--grad); color: #fff; width: 64px; height: 64px; border-radius: 18px; }
.tile--feature .tile__icon .ic { width: 30px; height: 30px; }
/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact__info .h2 { margin-bottom: 1rem; }
.contact__logo { width: min(340px, 100%); border-radius: 18px; box-shadow: var(--shadow); margin-bottom: 2rem; }
.contact__title { margin-bottom: 1.75rem; }
.contact__label { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
.section--dark .contact__info p { font-size: 1.12rem; margin-bottom: 1.75rem; }
.section--dark .quote h3 { color: var(--ink); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0 0 2rem; border-top: 1px solid var(--line); }
.facts div { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { padding-right: 1rem; }
.facts div:nth-child(n + 3) { grid-column: 1 / -1; }
.facts dt { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .25rem; }
.facts dd { margin: 0; font: 700 1.05rem/1.35 var(--font-display); color: var(--ink); }
.people { display: grid; gap: .7rem; margin-bottom: 1.25rem; }
.person {
  display: flex; align-items: center; gap: 1rem; padding: .85rem 1.1rem .85rem .85rem; border-radius: 16px;
  border: 1px solid var(--line); background: #fff; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.person:hover { border-color: var(--aqua-400); box-shadow: var(--shadow); transform: translateX(4px); }
.person__avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--grad); color: #fff; font: 800 1.1rem/1 var(--font-display); }
.person strong { display: block; font: 700 1.02rem/1.2 var(--font-display); color: var(--ink); }
.person small { font-size: .95rem; color: var(--muted); }
.person > .ic { margin-left: auto; color: var(--teal-600); width: 20px; height: 20px; }
.email-link { display: inline-flex; align-items: center; gap: .6rem; font: 700 1rem/1.3 var(--font-display); color: var(--teal-600); word-break: break-all; }
.email-link:hover { color: var(--navy-800); text-decoration: underline; text-underline-offset: 4px; }

.quote {
  padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: 28px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.quote h3 { font-size: 1.6rem; margin-bottom: .35rem; }
.quote__sub { font-size: .95rem; color: var(--muted); margin-bottom: 1.6rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: block; margin-bottom: 1rem; }
.field span { display: block; font: 600 .85rem/1 var(--font-display); color: var(--ink); margin-bottom: .5rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .85rem 1rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg-soft);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-500); background: #fff; box-shadow: 0 0 0 4px rgba(20, 135, 168, .14); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #e0475b; background: #fff5f6; }
.quote .btn { margin-top: .5rem; }
.quote__msg { margin: 1rem 0 0; font-size: .92rem; font-weight: 600; color: var(--teal-600); min-height: 1.2em; }
.quote__msg.is-error { color: #d2364b; }
.quote__msg a { text-decoration: underline; text-underline-offset: 3px; }
.quote .btn:disabled { opacity: .65; cursor: wait; }

/* ---------- Team ---------- */
/* Always one row of four: photos are 200px and shrink only when the screen is too narrow. */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 200px)); justify-content: space-between; gap: clamp(.9rem, 2.5vw, 1.5rem); padding: .5rem; }
.member { margin: 0; text-align: center; min-width: 0; }
.member img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--aqua-400), var(--shadow); }
.member figcaption { padding-top: 1.5rem; }
.member strong { display: block; font: 800 1.15rem/1.25 var(--font-display); color: var(--ink); }
.member small { display: block; margin-top: .25rem; font-size: .92rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: rgba(255, 255, 255, .6); padding: 4.5rem 0 2rem; font-size: .95rem; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer__brand p { margin-top: 1.25rem; line-height: 1.6; }
.nav__brand--light { color: #fff; }
.footer h4 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 1.1rem; }
.footer__col { display: flex; flex-direction: column; gap: .6rem; }
.footer__col a { transition: color .2s; word-break: break-word; }
.footer__col a:hover { color: var(--aqua-300); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.75rem; font-size: .85rem; }

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy-800); color: #fff; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease), background .2s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--teal-600); }
.to-top .ic { width: 22px; height: 22px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
/* Hero content animates on load without waiting for scroll observers */
.hero .reveal { opacity: 1; transform: none; transition: none; animation: rise .9s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .map-chip--hq { left: -8px; }
  .map-chip--cov { right: -8px; }
}

@media (max-width: 960px) {
  :root { --nav-h: 68px; }
  .nav__cta { display: none; }
  .nav__burger {
    display: grid; gap: 5px; margin-left: auto; padding: 12px; border: 0; background: rgba(255, 255, 255, .1); border-radius: 12px; cursor: pointer;
  }
  .nav__burger span { display: block; width: 22px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s, opacity .3s; }
  .nav.is-scrolled .nav__burger { background: var(--bg-soft); }
  .nav.is-scrolled .nav__burger span { background: var(--navy-800); }
  .nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; gap: .25rem; margin: 0;
    padding: 1rem 20px 1.5rem; background: #fff; box-shadow: 0 20px 40px -20px rgba(6, 28, 54, .4);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
  }
  .nav.is-open .nav__links { transform: none; opacity: 1; pointer-events: auto; }
  .nav.is-open { background: #fff; }
  .nav.is-open .nav__brand { color: var(--navy-800); }
  .nav.is-open .nav__burger { background: var(--bg-soft); }
  .nav.is-open .nav__burger span { background: var(--navy-800); }
  .nav__links a, .nav.is-scrolled .nav__links a { color: var(--ink); padding: .9rem 1rem; font-size: 1.05rem; }
  .nav__links a.is-active::after { display: none; }
  .nav__cta-mobile { display: inline-flex !important; margin-top: .5rem; color: #fff !important; }

  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 3rem); }
  .hero__inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero__visual { max-width: 480px; width: 100%; margin-inline: auto; }
  .hero__scroll { display: none; }
  .about, .contact { grid-template-columns: 1fr; }
  .about__media { max-width: 560px; }
  .about--flip .about__media { order: 0; }
  .section__head.split { grid-template-columns: 1fr; gap: 1rem; }
  .industries { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--feature { grid-column: 1 / -1; grid-row: auto; }
  .tile--feature h3 { margin-top: 1rem; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 1rem; }
  .container { width: calc(100% - 32px); }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 0; }
  .hero__stats div, .hero__stats div:nth-child(2) { margin-right: 0; padding-right: 1rem; border-right: 0; }
  .hero__actions .btn { flex: 1 1 100%; }
  .map-chip { padding: .5rem .75rem .5rem .55rem; gap: .5rem; }
  .map-chip .ic { width: 30px; height: 30px; padding: 7px; }
  .map-chip strong { font-size: .8rem; }
  .map-chip--hq { left: 6px; top: 30%; }
  .map-chip--cov { right: 6px; bottom: 4%; }
  .map-card { padding-bottom: 1rem; }
  .map-chip { position: static; margin-top: .6rem; animation: none; box-shadow: var(--shadow); }
  .industries, .bento { grid-template-columns: 1fr; }
  .team { grid-template-columns: minmax(0, 200px); justify-content: center; gap: 2.5rem; }
  .about__media::before { inset: 14px -10px -14px 14px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .facts { grid-template-columns: 1fr; }
  .facts div:nth-child(odd) { padding-right: 0; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
