/* =============================================================
   Pelagic Asset Integrity — Trust & Authority (Dark)
   Design system: Lexend / Source Sans 3, Navy + Cyan
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Surfaces */
  --navy-950: #070B14;
  --navy-900: #0A0F1C;
  --navy-850: #0C1322;
  --navy-800: #111A2E;
  --navy-750: #14203A;
  --navy-700: #1A2742;

  /* Brand */
  --brand: #1E3A8A;
  --brand-light: #60A5FA;
  --brand-500: #3B82F6;

  /* Accent (brand cyan) */
  --cyan: #1BEAE2;
  --cyan-600: #12C2BB;
  --cyan-700: #0C8F8A;
  --cyan-soft: rgba(27, 234, 226, 0.12);

  /* Text */
  --text: #DCE5F2;
  --text-strong: #F7FAFF;
  --muted: #93A2BC;
  --muted-2: #6E7D98;

  /* Lines & effects */
  --border: rgba(148, 173, 214, 0.14);
  --border-strong: rgba(148, 173, 214, 0.26);
  --surface-glass: rgba(15, 24, 43, 0.72);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  --ring: 0 0 0 3px rgba(96, 165, 250, 0.45);

  /* Type */
  --font-head: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1200px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --nav-h: 76px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--navy-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: var(--brand-light); text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--text-strong);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
  font-weight: 600;
}

p { margin: 0 0 1rem; }
::selection { background: var(--cyan); color: #04212A; }

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 6px;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--cyan); color: #04212A; padding: 12px 18px;
  font-weight: 700; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 130px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 84px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--cyan);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--cyan); opacity: 0.7;
}
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
h2.title { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--cyan); --fg: #04212A;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.98rem;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg); cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(27, 234, 226, 0.5); }
.btn:active { transform: translateY(0); }
.btn--accent { background: linear-gradient(180deg, #2DF2EB, #11C6BF); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.04); color: var(--text-strong);
  border-color: var(--border-strong); backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.09); box-shadow: none; }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(8, 13, 24, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__logo { height: 30px; width: auto; display: block; }
.footer .brand__logo { height: 46px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-head); font-weight: 700; font-size: 1.12rem;
  letter-spacing: 0.02em; color: var(--text-strong);
}
.brand__sub {
  font-size: 0.62rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--cyan); font-weight: 600; margin-top: 4px;
}

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  color: var(--text); font-family: var(--font-head); font-weight: 500;
  font-size: 0.95rem; padding: 9px 15px; border-radius: 999px;
  transition: color 0.18s, background 0.18s;
}
.nav__links a:hover { color: var(--text-strong); background: rgba(255, 255, 255, 0.05); }
.nav__links a.btn { color: var(--fg); display: none; }
.nav__actions { display: flex; align-items: center; gap: 14px; }

.nav__toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-strong);
  color: var(--text-strong); cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav__toggle svg { width: 24px; height: 24px; }
.nav__toggle .icon-close { display: none; }
body.nav-open .nav__toggle .icon-open { display: none; }
body.nav-open .nav__toggle .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; padding-top: var(--nav-h);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 60% center;
  animation: heroZoom 26s var(--ease) infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1.04); } to { transform: scale(1.14); } }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 11, 20, 0.92) 0%, rgba(7, 11, 20, 0.7) 38%, rgba(7, 11, 20, 0.28) 70%, rgba(7, 11, 20, 0.55) 100%),
    linear-gradient(0deg, var(--navy-900) 2%, rgba(10, 15, 28, 0) 38%);
}
.hero__inner { max-width: 720px; padding: 40px 0; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.3rem); font-weight: 700;
  margin-bottom: 22px;
}
.hero h1 .accent {
  background: linear-gradient(120deg, #3FF0EA, #B6FFFB);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { font-size: clamp(1.08rem, 1.9vw, 1.35rem); color: #C5D2E6; max-width: 600px; margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 44px; }

.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border);
  font-family: var(--font-head); font-size: 0.83rem; font-weight: 500;
  color: #D7E0F0; backdrop-filter: blur(4px);
}
.chip svg { width: 15px; height: 15px; color: var(--cyan); }

.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.hero__scroll .mouse {
  width: 24px; height: 38px; border: 2px solid var(--border-strong); border-radius: 14px;
  position: relative;
}
.hero__scroll .mouse::after {
  content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 7px; border-radius: 2px; background: var(--cyan);
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot { 0% { opacity: 0; top: 7px; } 35% { opacity: 1; } 70% { opacity: 0; top: 18px; } 100% { opacity: 0; } }

/* ---------- Stats bar ---------- */
.stats {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--navy-850), var(--navy-900));
}
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat { padding: 40px 26px; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat__num {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.1rem, 4vw, 3.1rem); color: var(--text-strong);
  line-height: 1; letter-spacing: -0.03em;
}
.stat__num .unit { color: var(--cyan); }
.stat__label { color: var(--muted); font-size: 0.92rem; margin-top: 10px; }

/* ---------- Services ---------- */
.services__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
}
.service {
  position: relative; padding: 34px 32px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--navy-800), var(--navy-850));
  border: 1px solid var(--border); overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.service::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--cyan), transparent 70%);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.service:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.service:hover::before { opacity: 1; }
.service__icon {
  width: 56px; height: 56px; border-radius: 15px; margin-bottom: 22px;
  display: grid; place-items: center;
  background: var(--cyan-soft); border: 1px solid rgba(27, 234, 226, 0.28);
  color: var(--cyan);
}
.service__icon svg { width: 28px; height: 28px; }
.service h3 { font-size: 1.32rem; }
.service p { color: var(--muted); margin-bottom: 18px; }
.service__list { display: flex; flex-direction: column; gap: 9px; }
.service__list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.93rem; color: #BAC7DC;
}
.service__list svg { width: 17px; height: 17px; color: var(--cyan); flex: none; margin-top: 3px; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 11, 20, 0.55));
}
.media-tag {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
  font-family: var(--font-head); color: var(--text-strong);
  background: rgba(7, 11, 20, 0.6); border: 1px solid var(--border-strong);
  backdrop-filter: blur(6px);
}
.media-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px var(--cyan-soft); }

.feature-list { display: grid; gap: 20px; margin-top: 26px; }
.feature-list__item { display: flex; gap: 16px; }
.feature-list__icon {
  width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: rgba(96, 165, 250, 0.1); border: 1px solid rgba(96, 165, 250, 0.22); color: var(--brand-light);
}
.feature-list__icon svg { width: 22px; height: 22px; }
.feature-list__item h4 { font-size: 1.08rem; margin-bottom: 4px; }
.feature-list__item p { color: var(--muted); font-size: 0.96rem; margin: 0; }

/* ---------- Sectors ---------- */
.sectors__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sector {
  display: flex; align-items: center; gap: 16px; padding: 22px 24px;
  border-radius: var(--radius); background: var(--navy-800);
  border: 1px solid var(--border); transition: border-color 0.25s, background 0.25s;
}
.sector:hover { border-color: var(--border-strong); background: var(--navy-750); }
.sector__icon { width: 42px; height: 42px; flex: none; color: var(--cyan); display: grid; place-items: center; }
.sector__icon svg { width: 30px; height: 30px; }
.sector h4 { margin: 0 0 2px; font-size: 1.04rem; }
.sector p { margin: 0; font-size: 0.86rem; color: var(--muted); }

/* ---------- Operations / video ---------- */
.ops { background: linear-gradient(180deg, var(--navy-900), var(--navy-850)); }
.ops__video {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9; background: #000;
}
.ops__video video { width: 100%; height: 100%; object-fit: cover; }
.ops__badge {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; font-family: var(--font-head);
  font-size: 0.8rem; font-weight: 600; color: #fff;
  background: rgba(7, 11, 20, 0.55); border: 1px solid var(--border-strong); backdrop-filter: blur(6px);
}
.ops__badge .live { width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,77,77,0.5);} 50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(255,77,77,0);} }

/* ---------- Gallery ---------- */
.gallery__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px; gap: 14px;
}
.gallery__item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--border); cursor: pointer; background: var(--navy-800);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7,11,20,0.6));
  opacity: 0; transition: opacity 0.3s;
}
.gallery__item:hover::after { opacity: 1; }
.gallery__item .zoom {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(7,11,20,0.6); border: 1px solid var(--border-strong); color: #fff;
  opacity: 0; transform: translateY(6px); transition: opacity 0.3s, transform 0.3s;
}
.gallery__item:hover .zoom { opacity: 1; transform: translateY(0); }
.gallery__item.tall { grid-row: span 2; }
.gallery__item.wide { grid-column: span 2; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1500; display: none;
  align-items: center; justify-content: center; padding: 5vh 5vw;
  background: rgba(4, 7, 14, 0.92); backdrop-filter: blur(8px);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,0.08); border: 1px solid var(--border-strong);
  color: #fff; width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; transition: background 0.2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,0.18); }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__close svg, .lightbox__nav svg { width: 24px; height: 24px; }
.lightbox__nav.prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__nav.next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Environment band ---------- */
.environ {
  position: relative; overflow: hidden;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.environ__bg { position: absolute; inset: 0; z-index: -2; }
.environ__bg img { width: 100%; height: 100%; object-fit: cover; }
.environ__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(7,11,20,0.92) 0%, rgba(7,11,20,0.7) 45%, rgba(7,11,20,0.4) 100%);
}
.environ__inner { max-width: 580px; }

/* ---------- Section background image/video (contact, rope reach, etc.) ---------- */
.has-bg { position: relative; overflow: hidden; isolation: isolate; }
.sec-bg { position: absolute; inset: 0; z-index: -2; }
.sec-bg img, .sec-bg video { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.sec-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7,11,20,0.82) 0%, rgba(7,11,20,0.68) 50%, rgba(7,11,20,0.88) 100%);
}

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 5vw, 70px); }
.contact__info p { color: var(--muted); }
.contact__details { display: grid; gap: 20px; margin-top: 30px; }
.contact__row { display: flex; gap: 16px; align-items: flex-start; }
.contact__row .ic {
  width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: var(--cyan-soft); border: 1px solid rgba(27,234,226,0.28); color: var(--cyan);
}
.contact__row .ic svg { width: 22px; height: 22px; }
.contact__row h4 { margin: 0 0 2px; font-size: 1rem; }
.contact__row p, .contact__row a { margin: 0; font-size: 0.96rem; color: var(--text); }
.contact__row a:hover { color: var(--cyan); }

.form {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-850));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(26px, 3.4vw, 40px);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-family: var(--font-head); font-size: 0.85rem; font-weight: 500;
  color: var(--text); margin-bottom: 8px;
}
.field label .req { color: var(--cyan); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; font-family: var(--font-body); font-size: 1rem;
  color: var(--text-strong); background: var(--navy-950); border: 1px solid var(--border-strong);
  border-radius: 10px; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-light); box-shadow: var(--ring);
}
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2393A2BC' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.form__note { font-size: 0.82rem; color: var(--muted-2); margin-top: 14px; text-align: center; }
.form__success {
  display: none; align-items: center; gap: 12px; padding: 16px 18px; margin-bottom: 20px;
  background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 12px; color: #86efac; font-size: 0.95rem;
}
.form__success.show { display: flex; }
.form__success svg { width: 22px; height: 22px; flex: none; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); border-top: 1px solid var(--border); padding-top: 64px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer__brand p { color: var(--muted); max-width: 320px; margin-top: 18px; font-size: 0.95rem; }
.footer h5 {
  font-family: var(--font-head); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted-2); margin: 0 0 18px;
}
.footer__col a { display: block; color: var(--text); padding: 6px 0; font-size: 0.95rem; transition: color 0.18s; }
.footer__col a:hover { color: var(--cyan); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px 0; border-top: 1px solid var(--border); color: var(--muted-2); font-size: 0.85rem;
}
.footer__bottom .badges { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__media img { animation: none; }
  .hero__scroll .mouse::after { animation: none; }
  .ops__badge .live { animation: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services__grid { gap: 18px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav__links, .nav__actions .btn { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; gap: 4px;
    background: rgba(8, 13, 24, 0.97); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border); padding: 18px 24px 26px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
  }
  .nav__links a { width: 100%; padding: 14px 16px; font-size: 1.05rem; }
  body.nav-open .nav__links { display: flex; opacity: 1; transform: none; pointer-events: auto; }
  body.nav-open .nav__links .btn { display: inline-flex; margin-top: 10px; }

  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--rev .split__media { order: 0; }
  .services__grid { grid-template-columns: 1fr; }
  .sectors__grid { grid-template-columns: 1fr 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .gallery__item.wide { grid-column: span 2; }
}
@media (max-width: 540px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .sectors__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .gallery__item.tall { grid-row: span 1; }
}

/* =============================================================
   MULTI-PAGE ADDITIONS — nav dropdown, video hero, capability
   cards, sub-page heroes, method grids, standards band, case
   studies, related links, CTA band
   ============================================================= */

/* ---------- Nav: Capabilities dropdown ---------- */
.nav__item { position: relative; display: flex; align-items: center; }
.nav__trigger {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: 1rem; font-weight: 500;
  color: var(--text); background: none; border: 0; cursor: pointer;
  padding: 0; line-height: var(--nav-h); letter-spacing: 0.005em;
  transition: color 0.2s var(--ease);
}
.nav__trigger:hover { color: var(--text-strong); }
.nav__trigger .caret { width: 15px; height: 15px; transition: transform 0.28s var(--ease); }
.nav__item.has-dropdown:hover .nav__trigger,
.nav__item.has-dropdown:focus-within .nav__trigger { color: var(--cyan); }
.nav__item.has-dropdown:hover .caret,
.nav__item.has-dropdown:focus-within .caret { transform: rotate(180deg); }

.nav__dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translate(-50%, 10px);
  min-width: 280px; padding: 8px;
  background: rgba(10, 16, 28, 0.97);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  z-index: 70;
}
.nav__item.has-dropdown:hover .nav__dropdown,
.nav__item.has-dropdown:focus-within .nav__dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, 6px);
}
.nav__dropdown a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; border-radius: 10px;
  color: var(--text); font-size: 0.96rem; font-weight: 500;
  line-height: 1.25; transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.nav__dropdown a:hover { background: var(--cyan-soft); color: var(--text-strong); }
.nav__dropdown a svg { width: 19px; height: 19px; color: var(--cyan); flex: none; }
.nav__dropdown a small { display: block; color: var(--muted-2); font-size: 0.78rem; font-weight: 400; }

/* ---------- Home hero as video ---------- */
.hero__media video {
  width: 100%; height: 100%; object-fit: cover;
  animation: heroZoom 24s var(--ease) forwards;
}

/* ---------- Sub-page hero ---------- */
.page-hero {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: 64vh;
  padding: calc(var(--nav-h) + 56px) 0 clamp(44px, 6vw, 76px);
}
.page-hero__media { position: absolute; inset: 0; z-index: 0; }
.page-hero__media img, .page-hero__media video {
  width: 100%; height: 100%; object-fit: cover;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(7,11,20,0.62) 0%, rgba(7,11,20,0.28) 38%, rgba(7,11,20,0.82) 100%),
    linear-gradient(95deg, rgba(7,11,20,0.78) 0%, rgba(7,11,20,0.18) 62%, rgba(7,11,20,0.05) 100%);
}
.page-hero .container { position: relative; z-index: 2; width: 100%; }
.page-hero__inner { max-width: 780px; }
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.7rem); margin: 0 0 0.5em;
}
.page-hero h1 .accent {
  background: linear-gradient(120deg, #3FF0EA, #B6FFFB);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-hero .lead { color: var(--text); max-width: 640px; }
.breadcrumb {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--font-head); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 22px;
}
.breadcrumb a { color: var(--muted); transition: color 0.2s var(--ease); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb svg { width: 14px; height: 14px; opacity: 0.6; }
.breadcrumb .current { color: var(--cyan); }

/* ---------- Alt section background ---------- */
.section--alt { background: var(--navy-850); }
.section--alt::before, .section--alt::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--border); }
.section--alt::before { top: 0; } .section--alt::after { bottom: 0; }

/* ---------- Capability cards (home hub) ---------- */
.cap-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.cap-card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--navy-850); overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  color: var(--text);
}
.cap-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.cap-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.cap-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.cap-card:hover .cap-card__media img { transform: scale(1.06); }
.cap-card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,16,28,0) 40%, rgba(12,19,34,0.85) 100%);
}
.cap-card__tag {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px; border-radius: 999px;
  background: rgba(7,11,20,0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  font-family: var(--font-head); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan);
}
.cap-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.cap-card h3 { font-size: 1.28rem; margin: 0 0 0.45em; }
.cap-card p { color: var(--muted); font-size: 0.98rem; margin: 0 0 1.2rem; }
.cap-card__link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.92rem;
  color: var(--cyan);
}
.cap-card__link svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.cap-card:hover .cap-card__link svg { transform: translateX(5px); }

/* ---------- Method / capability grid (sub-pages) ---------- */
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.method-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.method {
  padding: 28px 26px; border: 1px solid var(--border);
  border-radius: var(--radius-lg); background: var(--navy-850);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.method:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.method__icon {
  width: 50px; height: 50px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--cyan-soft); border: 1px solid rgba(27,234,226,0.28);
}
.method__icon svg { width: 25px; height: 25px; color: var(--cyan); }
.method h3 { font-size: 1.18rem; margin: 0 0 0.5em; }
.method p { color: var(--muted); font-size: 0.96rem; margin: 0; }
.method .checklist { margin-top: 14px; }

/* ---------- Prose / content ---------- */
.prose { max-width: 760px; }
.prose p { color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.14rem); }
.prose p + p { margin-top: 1.1rem; }
.prose strong { color: var(--text); font-weight: 600; }

/* ---------- Checklist ---------- */
.checklist { display: grid; gap: 11px; }
.checklist li { display: flex; align-items: flex-start; gap: 11px; color: var(--text); font-size: 0.98rem; line-height: 1.5; }
.checklist li svg { width: 21px; height: 21px; color: var(--cyan); flex: none; margin-top: 1px; }

/* ---------- Standards / class band ---------- */
.spec-band { background: var(--navy-850); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.spec-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 26px; padding: clamp(24px, 3.4vw, 36px) 0; }
.spec-band__label { font-family: var(--font-head); font-weight: 600; color: var(--text-strong); font-size: 1.02rem; }
.spec-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.spec-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--navy-800);
  font-family: var(--font-head); font-weight: 600; font-size: 0.86rem;
  letter-spacing: 0.04em; color: var(--text);
}
.spec-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }

/* ---------- Inline media feature (video on demand) ---------- */
.media-feature {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg);
  background: var(--navy-950); aspect-ratio: 16 / 9;
}
.media-feature video { width: 100%; height: 100%; object-fit: cover; background: var(--navy-950); }
.media-feature__badge {
  position: absolute; left: 16px; top: 16px; z-index: 3; pointer-events: none;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: 999px;
  background: rgba(7,11,20,0.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  font-family: var(--font-head); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-strong);
}
.media-feature__badge .live { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(27,234,226,0.7); animation: pulse 2s infinite; }

/* ---------- Case study cards (anonymised) ---------- */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.case-card {
  padding: 30px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--navy-800), var(--navy-850));
  display: flex; flex-direction: column;
}
.case-card__kicker { font-family: var(--font-head); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.case-card h3 { font-size: 1.32rem; margin: 0 0 0.6em; }
.case-card p { color: var(--muted); font-size: 0.98rem; margin: 0 0 1.3rem; }
.case-card__metrics { display: flex; gap: 26px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border); }
.case-metric .n { font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; color: var(--text-strong); line-height: 1; }
.case-metric .n span { color: var(--cyan); }
.case-metric .l { font-size: 0.82rem; color: var(--muted-2); margin-top: 6px; }

/* ---------- Related capabilities ---------- */
.related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related__card {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--navy-850); color: var(--text);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}
.related__card:hover { border-color: var(--border-strong); transform: translateY(-3px); background: var(--navy-800); }
.related__card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--cyan-soft); border: 1px solid rgba(27,234,226,0.28); flex: none; }
.related__card .ic svg { width: 22px; height: 22px; color: var(--cyan); }
.related__card h4 { margin: 0 0 2px; font-size: 1.02rem; }
.related__card span { color: var(--muted-2); font-size: 0.85rem; }
.related__card .go { margin-left: auto; color: var(--cyan); }
.related__card .go svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.related__card:hover .go svg { transform: translateX(4px); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(150deg, var(--navy-800), var(--navy-950)); }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 320px at 85% 0%, rgba(27,234,226,0.14), transparent 70%);
}
.cta-band__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin: 0 0 0.3em; }
.cta-band p { color: var(--muted); margin: 0; max-width: 520px; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sub-page intro split helper ---------- */
.intro-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.intro-split .metric-stack { display: grid; gap: 14px; }
.metric-stack .m { display: flex; align-items: baseline; gap: 14px; padding: 16px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--navy-850); }
.metric-stack .m b { font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; color: var(--cyan); min-width: 96px; }
.metric-stack .m span { color: var(--muted); font-size: 0.96rem; }

/* ---------- Responsive (multi-page additions) ---------- */
@media (max-width: 1024px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .related__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  /* dropdown becomes an inline expanded group inside mobile menu */
  .nav__item { display: block; }
  .nav__trigger { line-height: 1.4; padding: 6px 0; font-size: 1.18rem; color: var(--cyan); pointer-events: none; }
  .nav__trigger .caret { display: none; }
  .nav__dropdown {
    position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    min-width: 0; padding: 6px 0 10px; margin: 0; gap: 0;
    background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
    border-left: 1px solid var(--border-strong); padding-left: 14px;
  }
  .nav__dropdown a { font-size: 1.05rem; padding: 9px 6px; }
  .intro-split { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .cap-grid, .method-grid, .method-grid.cols-2, .related__grid, .case-grid { grid-template-columns: 1fr; }
  .page-hero { min-height: 56vh; }
  .case-card__metrics { gap: 18px; }
}
