/* =========================================================
   CHARLIE FREY — UNDERWATER SERVICES
   Design system: Abyssal / Ocean-Tech / Industrial
   ========================================================= */

/* Fonts are loaded via <link rel="preconnect"> + <link rel="stylesheet"> in the HTML head
   so the browser can start the font request in parallel with CSS parsing.
   @import here would block render. */

/* ---------- Tokens ---------- */
:root {
  --abyss:       #020810;
  --deep:        #04121f;
  --ocean:       #0a1f2e;
  --ocean-2:     #0e2a3d;
  --steel:       #143349;
  --tide:        #1e567a;
  --aqua:        #00e0ef;
  --aqua-soft:   #3dd6e0;
  --cyan:        #6ff0f7;
  --foam:        #e8f4f8;
  --coral:       #ff5a1f;
  --coral-2:     #ff7a40;
  --warn:        #ffcc33;

  --text:        #c4d4df;
  --text-dim:    #6b8294;
  --text-bright: #f1f7fb;

  --line:        rgba(109, 194, 210, 0.14);
  --line-strong: rgba(109, 194, 210, 0.32);
  --glass:       rgba(10, 31, 46, 0.72);

  --display: 'Big Shoulders Display', 'Archivo', sans-serif;
  --body:    'Archivo', system-ui, sans-serif;
  --mono:    'JetBrains Mono', 'Courier New', monospace;

  --ease:           cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out:       cubic-bezier(0.16, 1, 0.3, 1);
  /* Emil-tuned curves — stronger punch than built-in easings */
  --ease-out-strong:   cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out-strong:cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer:       cubic-bezier(0.32, 0.72, 0, 1);

  --max: 1440px;
  --pad: clamp(1.25rem, 4vw, 3.25rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
  scroll-padding-top: 6rem; /* so in-page anchors don't hide under fixed nav */
}
body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--abyss);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
section[id] { scroll-margin-top: 6rem; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--aqua); color: var(--abyss); }

/* ---------- Background atmosphere ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 800px at 85% -10%, rgba(0, 224, 239, 0.09), transparent 60%),
    radial-gradient(900px 700px at -10% 110%, rgba(30, 86, 122, 0.25), transparent 60%),
    linear-gradient(180deg, #020810 0%, #04121f 45%, #020810 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(109, 194, 210, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 194, 210, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(4rem, 9vw, 8rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--aqua);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--aqua);
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  color: var(--text-bright);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance; /* prevents ugly single-word last lines on headings */
}
h1 { font-size: clamp(2.75rem, 7vw, 6.5rem); }
h2 { font-size: clamp(2rem, 5vw, 4.25rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
h4 { font-size: clamp(1.05rem, 1.5vw, 1.25rem); letter-spacing: 0.02em; }

p { max-width: 62ch; text-wrap: pretty; }
.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--text);
  line-height: 1.6;
  max-width: 56ch;
}

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent;
  --fg: var(--text-bright);
  --bc: var(--line-strong);
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.6rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--bc);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition:
    color 200ms var(--ease-out-strong),
    border-color 200ms var(--ease-out-strong),
    background 200ms var(--ease-out-strong),
    transform 140ms var(--ease-out-strong);
  position: relative;
  touch-action: manipulation; /* kill the 300ms mobile tap delay */
  user-select: none;
  will-change: transform;
}
.btn::after {
  content: "→";
  font-family: var(--body);
  font-size: 1rem;
  transition: transform 200ms var(--ease-out-strong);
}
.btn:hover::after { transform: translateX(4px); }
.btn:hover { --bc: var(--aqua); color: var(--aqua); }
.btn:active { transform: scale(0.97); }
.btn:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 2px var(--aqua), 0 0 0 3px rgba(0, 224, 239, 0.25);
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.btn:disabled::after,
.btn[aria-disabled="true"]::after { opacity: 0.6; }

.btn--coral { --bg: var(--coral); --fg: #fff; --bc: var(--coral); }
.btn--coral:hover { --bg: var(--coral-2); --fg: #fff; --bc: var(--coral-2); }

.btn--aqua { --bg: var(--aqua); --fg: var(--abyss); --bc: var(--aqua); }
.btn--aqua:hover { --bg: var(--cyan); --fg: var(--abyss); --bc: var(--cyan); }

.btn--ghost { background: rgba(10, 31, 46, 0.5); backdrop-filter: blur(8px); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-block: 0.85rem;
  background: linear-gradient(180deg, rgba(2, 8, 16, 0.85), rgba(2, 8, 16, 0.0));
  transition:
    background 300ms var(--ease-out-strong),
    padding 300ms var(--ease-out-strong),
    border-color 300ms var(--ease-out-strong),
    backdrop-filter 300ms var(--ease-out-strong);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}
.nav.is-scrolled {
  background: rgba(2, 8, 16, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-block: 0.5rem;
}
/* When the mobile menu is open, neutralize the nav's backdrop-filter.
   Any backdrop-filter (even blur(0)) makes the nav a containing block for
   `position: fixed` descendants — which would pin the overlay to the nav
   instead of the viewport, leaving it stuck at the top of the screen. */
body.menu-open .nav {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: transparent;
  border-bottom-color: transparent;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.brand__logo {
  width: 42px;
  height: 42px;
  color: var(--aqua);
  transition: transform 0.6s var(--ease);
}
.brand:hover .brand__logo { transform: rotate(180deg); }
.brand__text { line-height: 1; }
.brand__name {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--text-bright);
  text-transform: uppercase;
}
.brand__tag {
  display: block;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: var(--aqua);
  text-transform: uppercase;
  margin-top: 2px;
}
.nav__links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav__links a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  padding: 0.75rem 0.25rem; /* larger tap target */
  transition: color 200ms var(--ease-out-strong);
}
.nav__links a::before {
  content: "";
  position: absolute;
  bottom: 0.5rem; left: 0.25rem; right: 0.25rem;
  width: auto;
  transform: scaleX(0);
  transform-origin: left;
  height: 1px;
  background: var(--aqua);
  transition: transform 260ms var(--ease-out-strong);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--aqua); }
.nav__links a:hover::before, .nav__links a.is-active::before { transform: scaleX(1); }
.nav__links a:focus-visible {
  outline: 0;
  color: var(--aqua);
}
.nav__links a:focus-visible::before { transform: scaleX(1); }

.nav__cta { display: inline-flex; }
.nav__cta .btn { padding: 0.75rem 1.25rem; }

.nav__burger {
  display: none;
  width: 46px;
  height: 46px;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 31, 46, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition:
    background 200ms var(--ease-out-strong),
    border-color 200ms var(--ease-out-strong),
    transform 140ms var(--ease-out-strong);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.nav__burger:hover { background: rgba(14, 42, 61, 0.85); border-color: var(--aqua); }
.nav__burger:active { transform: scale(0.93); }
.nav__burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--aqua);
  transform-origin: center;
  transition:
    transform 320ms var(--ease-out-strong),
    opacity 180ms var(--ease-out-strong),
    width 320ms var(--ease-out-strong);
}
.nav__burger.is-open { background: rgba(14, 42, 61, 0.9); border-color: var(--aqua); }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero — Home ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 10rem;
  padding-bottom: 4rem;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__media video,
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 8, 16, 0.6) 0%, rgba(2, 8, 16, 0.4) 40%, rgba(2, 8, 16, 0.95) 100%),
    linear-gradient(90deg, rgba(2, 8, 16, 0.85) 0%, transparent 60%);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: end;
  width: 100%;
}
.hero__content { max-width: 880px; }
.hero__eyebrow { margin-bottom: 2rem; }
.hero__title {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 6.5vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-transform: none;
}
.hero__title .line { display: block; }
.hero__title .line--accent {
  color: var(--aqua);
  font-style: italic;
  font-weight: 800;
}
.hero__sub {
  margin-top: 2rem;
  max-width: 52ch;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--text);
}
.hero__actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: var(--pad);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--aqua), transparent);
  animation: scrollDot 2.6s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* HUD panel in hero */
.hud {
  position: relative;
  padding: 1.5rem;
  border: 1px solid var(--line-strong);
  background: rgba(4, 18, 31, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.hud__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aqua);
}
.hud__head .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 12px var(--aqua);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.hud__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
}
.hud__cell { }
.hud__label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}
.hud__value {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1;
}
.hud__value small {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--aqua);
  margin-left: 0.3rem;
  letter-spacing: 0.1em;
}
.hud__value--aqua { color: var(--aqua); }
.hud__foot {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
}

/* ---------- Page hero (internal) ---------- */
.phero {
  position: relative;
  padding-top: 11rem;
  padding-bottom: 5rem;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.phero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 400px at 80% 0%, rgba(0, 224, 239, 0.12), transparent 70%),
    linear-gradient(180deg, transparent, rgba(2, 8, 16, 0.8));
  z-index: -1;
}
.phero__crumb {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2rem;
}
.phero__crumb a:hover { color: var(--aqua); }
.phero__crumb span.sep { color: var(--line-strong); }
.phero__title {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  max-width: 16ch;
}
.phero__title em {
  color: var(--aqua);
  font-weight: 500;
  font-style: italic;
}
.phero__sub {
  margin-top: 1.5rem;
  max-width: 58ch;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--text);
}
.phero__meta {
  margin-top: 2.5rem;
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.phero__meta > div {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.phero__meta strong {
  display: block;
  color: var(--aqua);
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 0.3rem;
  letter-spacing: 0.02em;
}

/* ---------- Section header ---------- */
.shead {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 4rem;
}
.shead__title {
  font-size: clamp(2rem, 5vw, 4rem);
  max-width: 14ch;
}
.shead__title em { color: var(--aqua); font-style: italic; font-weight: 500; }
.shead__body { }
.shead__body p { color: var(--text); }

/* ---------- Service cards ---------- */
.svc {
  position: relative;
  padding: 2rem 1.75rem;
  background: rgba(10, 31, 46, 0.5);
  border: 1px solid var(--line);
  transition:
    background 260ms var(--ease-out-strong),
    border-color 260ms var(--ease-out-strong),
    transform 280ms var(--ease-out-strong),
    box-shadow 280ms var(--ease-out-strong);
  overflow: hidden;
  min-height: 340px;
  display: flex;
  flex-direction: column;
}
.svc::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 40px;
  border-top: 1px solid var(--aqua);
  border-left: 1px solid var(--aqua);
  transition: width 280ms var(--ease-out-strong), height 280ms var(--ease-out-strong);
}
.svc::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  width: 40px; height: 40px;
  border-bottom: 1px solid var(--aqua);
  border-right: 1px solid var(--aqua);
  transition: width 280ms var(--ease-out-strong), height 280ms var(--ease-out-strong);
}
.svc:hover {
  background: rgba(14, 42, 61, 0.85);
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(0, 224, 239, 0.18);
}
.svc:hover::before, .svc:hover::after {
  width: 60px; height: 60px;
}
.svc:focus-within { border-color: var(--line-strong); }
.svc__num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--aqua);
  margin-bottom: 1.5rem;
}
.svc__icon {
  width: 48px; height: 48px;
  margin-bottom: 1.25rem;
  color: var(--aqua);
}
.svc__title {
  font-size: 1.4rem;
  margin-bottom: 0.85rem;
  color: var(--text-bright);
}
.svc__body {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: auto;
  padding-bottom: 1.5rem;
}
.svc__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aqua);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  transition: gap 0.3s var(--ease);
}
.svc__link:hover { gap: 1rem; }
.svc__link::after { content: "→"; }

/* ---------- Split feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split--reverse { grid-template-columns: 1fr 1.1fr; }
.split--reverse .split__media { order: -1; }
.split__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line-strong);
}
.split__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 224, 239, 0.1), transparent 45%, rgba(255, 90, 31, 0.08));
  z-index: 1;
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.split__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.05);
  transition: transform 0.7s var(--ease);
}
.split:hover .split__media img { transform: scale(1.03); }
.split__media .tag {
  position: absolute;
  bottom: 1.25rem; left: 1.25rem;
  padding: 0.5rem 0.85rem;
  background: rgba(2, 8, 16, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aqua);
  z-index: 2;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-block: 1px solid var(--line);
}
.stat {
  padding: 2.5rem 1.5rem;
  border-right: 1px solid var(--line);
  position: relative;
}
.stat:last-child { border-right: 0; }
.stat__num {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  color: var(--text-bright);
  line-height: 1;
  display: block;
}
.stat__num sup {
  font-size: 0.4em;
  color: var(--aqua);
  vertical-align: top;
  margin-left: 0.1em;
}
.stat__label {
  margin-top: 0.75rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---------- Cloud / tech feature ---------- */
.tech {
  position: relative;
  padding: 3rem;
  background:
    radial-gradient(600px 400px at 80% 20%, rgba(0, 224, 239, 0.08), transparent 60%),
    linear-gradient(135deg, rgba(14, 42, 61, 0.9), rgba(4, 18, 31, 0.9));
  border: 1px solid var(--line-strong);
  overflow: hidden;
}
.tech::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--aqua), transparent);
}
.tech__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.tech__panel {
  background: rgba(2, 8, 16, 0.8);
  border: 1px solid var(--line);
  padding: 1.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.tech__panel__head {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aqua);
  justify-content: space-between;
}
.tech__live { color: var(--coral); }
.tech__row {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--line);
}
.tech__row:last-child { border-bottom: 0; }
.tech__row span:first-child { color: var(--text-dim); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.tech__row span:last-child { color: var(--aqua); font-weight: 600; }
.bar {
  height: 4px;
  background: var(--line);
  overflow: hidden;
  margin: 0.4rem 0 0.75rem;
}
.bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--aqua), var(--coral));
}

/* ---------- Global / Map section ---------- */
.globe {
  position: relative;
  aspect-ratio: 2 / 1;
  border: 1px solid var(--line-strong);
  background: rgba(4, 18, 31, 0.6);
  overflow: hidden;
}
.globe svg { width: 100%; height: 100%; display: block; }
.globe__marker {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 2px rgba(255, 90, 31, 0.3), 0 0 20px var(--coral);
  transform: translate(-50%, -50%);
}
.globe__marker::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--coral);
  animation: ping 2s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}
.globe__marker--aqua { background: var(--aqua); box-shadow: 0 0 0 2px rgba(0, 224, 239, 0.3), 0 0 20px var(--aqua); }
.globe__marker--aqua::before { border-color: var(--aqua); }

.regions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.region {
  padding: 1.25rem;
  background: rgba(10, 31, 46, 0.6);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.72rem;
}
.region__name {
  display: block;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-bright);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.region__coord {
  color: var(--aqua);
  letter-spacing: 0.08em;
  font-size: 0.64rem;
}
.region__meta {
  color: var(--text-dim);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
}

/* ---------- Case studies ---------- */
.case {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background 0.4s var(--ease);
  cursor: pointer;
}
.case:hover { background: rgba(10, 31, 46, 0.4); }
.case__id {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--aqua);
}
.case__id span { display: block; color: var(--text-dim); margin-top: 0.35rem; font-size: 0.64rem; }
.case__body { }
.case__title {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  color: var(--text-bright);
  margin-bottom: 0.5rem;
}
.case__desc {
  color: var(--text);
  font-size: 0.95rem;
  max-width: 62ch;
  margin-bottom: 1rem;
}
.case__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.case__tags span {
  padding: 0.3rem 0.65rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--line);
}
.case__arrow {
  font-family: var(--display);
  font-size: 2rem;
  color: var(--aqua);
  transition: transform 0.4s var(--ease);
}
.case:hover .case__arrow { transform: translate(4px, -4px); }

/* Expandable case detail */
.case__detail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: rgba(2, 8, 16, 0.6);
  border: 1px solid var(--line);
  display: none;
}
.case.is-open .case__detail { display: grid; }
.case__detail h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--aqua);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.case__detail p { font-size: 0.92rem; color: var(--text); }

/* ---------- CTA Band ---------- */
.cta-band {
  position: relative;
  padding: 5rem 3rem;
  background:
    linear-gradient(135deg, rgba(0, 224, 239, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(14, 42, 61, 0.95), rgba(4, 18, 31, 0.95));
  border: 1px solid var(--line-strong);
  overflow: hidden;
  text-align: center;
}
.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  width: 300px; height: 300px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  opacity: 0.3;
}
.cta-band::before { top: -150px; left: -100px; }
.cta-band::after { bottom: -150px; right: -100px; }
.cta-band h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  max-width: 20ch;
  margin: 0 auto 1.25rem;
  position: relative;
}
.cta-band h2 em { color: var(--aqua); font-style: italic; font-weight: 500; }
.cta-band p {
  max-width: 56ch;
  margin: 0 auto 2rem;
  position: relative;
  color: var(--text);
}
.cta-band__actions {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
}

/* ---------- Footer ---------- */
.foot {
  background: var(--deep);
  border-top: 1px solid var(--line-strong);
  padding-top: 5rem;
  position: relative;
}
.foot::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--aqua), transparent);
}
.foot__top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--line);
}
.foot__brand p {
  margin-top: 1.25rem;
  color: var(--text-dim);
  font-size: 0.92rem;
  max-width: 40ch;
}
.foot__coord {
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--aqua);
  letter-spacing: 0.1em;
}
.foot__col h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--aqua);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}
.foot__col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.foot__col a {
  color: var(--text);
  font-size: 0.92rem;
  transition: color 0.3s var(--ease);
}
.foot__col a:hover { color: var(--aqua); }
.foot__contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.foot__contact div {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text);
}
.foot__contact span {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}
.foot__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 1rem;
}
.foot__certs { display: flex; gap: 1.5rem; }
.foot__certs span {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  color: var(--aqua);
}

/* ---------- Ticker ---------- */
.ticker {
  padding: 1.1rem 0;
  border-block: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  background: rgba(4, 18, 31, 0.6);
}
.ticker__track {
  display: inline-flex;
  gap: 3rem;
  animation: ticker 40s linear infinite;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}
.ticker__track span {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}
.ticker__track span::after {
  content: "◆";
  color: var(--aqua);
  font-size: 0.7rem;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Service detail block (services.html) ---------- */
.svc-block {
  display: grid;
  grid-template-columns: 120px 1fr 1fr;
  gap: 3rem;
  padding: 4rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.svc-block__num {
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 5rem);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--aqua);
  line-height: 0.9;
}
.svc-block__title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 1.25rem;
}
.svc-block__desc {
  color: var(--text);
  margin-bottom: 2rem;
}
.svc-block__list {
  display: grid;
  gap: 1rem;
}
.svc-block__list h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--aqua);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.svc-block__list ul li {
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.92rem;
  color: var(--text);
  display: flex;
  gap: 0.8rem;
}
.svc-block__list ul li::before {
  content: "▸";
  color: var(--aqua);
}
.svc-block__process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}
.svc-block__process div {
  padding: 0.85rem;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  text-align: center;
  position: relative;
}
.svc-block__process div strong {
  display: block;
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--aqua);
  margin-bottom: 0.25rem;
}

/* ---------- Blog cards ---------- */
.post {
  display: flex;
  flex-direction: column;
  background: rgba(10, 31, 46, 0.5);
  border: 1px solid var(--line);
  overflow: hidden;
  transition:
    transform 260ms var(--ease-out-strong),
    border-color 260ms var(--ease-out-strong),
    box-shadow 260ms var(--ease-out-strong);
}
.post:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 48px -24px rgba(0, 224, 239, 0.18);
}
.post:focus-within { border-color: var(--aqua); }
.post__img {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ocean-2), var(--deep));
}
.post__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 450ms var(--ease-out-strong);
}
.post:hover .post__img img { transform: scale(1.04); }
.post__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(2, 8, 16, 0.5));
}
.post__cat {
  position: absolute;
  top: 1rem; left: 1rem;
  padding: 0.35rem 0.75rem;
  background: rgba(0, 224, 239, 0.12);
  backdrop-filter: blur(6px);
  border: 1px solid var(--aqua);
  color: var(--aqua);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 2;
}
.post__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post__date {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.85rem;
}
.post__title {
  font-size: 1.2rem;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}
.post__ex {
  color: var(--text);
  font-size: 0.9rem;
  flex: 1;
  margin-bottom: 1.25rem;
}
.post__link {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aqua);
}
.post__link::after { content: " →"; }

.post--feat {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
}
.post--feat .post__img { aspect-ratio: auto; }
.post--feat .post__body { padding: 3rem; justify-content: center; }
.post--feat .post__title { font-size: clamp(1.6rem, 3vw, 2.4rem); }

/* ---------- Certifications ---------- */
.certs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.cert {
  padding: 2rem 1.5rem;
  background: rgba(10, 31, 46, 0.6);
  border: 1px solid var(--line);
  text-align: center;
  transition: all 0.4s var(--ease);
}
.cert:hover { border-color: var(--aqua); transform: translateY(-4px); }
.cert__mark {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  border: 1.5px solid var(--aqua);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aqua);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}
.cert__name {
  font-family: var(--display);
  font-size: 1rem;
  color: var(--text-bright);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.cert__desc {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ---------- Pillars (Safety) ---------- */
.pillar {
  padding: 2rem;
  border: 1px solid var(--line);
  background: rgba(10, 31, 46, 0.4);
  position: relative;
}
.pillar__num {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--aqua);
  display: block;
  margin-bottom: 1rem;
}
.pillar h3 {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}
.pillar p { font-size: 0.92rem; color: var(--text); }

/* ---------- Fleet pricing ---------- */
.plan {
  padding: 2.5rem 2rem;
  background: rgba(10, 31, 46, 0.55);
  border: 1px solid var(--line);
  position: relative;
  transition: all 0.4s var(--ease);
}
.plan:hover { border-color: var(--line-strong); }
.plan--feat {
  border-color: var(--aqua);
  background:
    linear-gradient(180deg, rgba(0, 224, 239, 0.08), transparent 40%),
    rgba(10, 31, 46, 0.6);
}
.plan__badge {
  position: absolute;
  top: -1px; right: 1.5rem;
  padding: 0.35rem 0.75rem;
  background: var(--aqua);
  color: var(--abyss);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}
.plan__name {
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--aqua);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.plan__desc {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.plan ul {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 2rem;
}
.plan ul li {
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.92rem;
  color: var(--text);
}
.plan ul li::before {
  content: "◆";
  position: absolute;
  left: 0; top: 0;
  color: var(--aqua);
  font-size: 0.7rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.form {
  display: grid;
  gap: 1.25rem;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.field {
  position: relative;
}
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 0.5rem;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(4, 18, 31, 0.6);
  border: 1px solid var(--line);
  color: var(--text-bright);
  font-size: 1rem; /* 16px prevents iOS zoom-on-focus */
  transition:
    border-color 180ms var(--ease-out-strong),
    background 180ms var(--ease-out-strong),
    box-shadow 180ms var(--ease-out-strong);
  font-family: var(--body);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-dim);
  opacity: 0.7;
}
.field input:hover,
.field textarea:hover,
.field select:hover {
  border-color: var(--line-strong);
}
.field input:focus,
.field textarea:focus,
.field select:focus,
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline: 0;
  border-color: var(--aqua);
  background: rgba(4, 18, 31, 0.9);
  box-shadow: 0 0 0 3px rgba(0, 224, 239, 0.18);
}
.field textarea { resize: vertical; min-height: 140px; font-family: var(--body); }
/* Custom dark-theme select chevron */
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 L6 6.5 L11 1.5' stroke='%2300e0ef' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.info-card {
  padding: 2rem;
  background: rgba(10, 31, 46, 0.6);
  border: 1px solid var(--line);
  margin-bottom: 1.25rem;
}
.info-card h4 {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--aqua);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.info-card__main {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--text-bright);
}
.info-card__sub {
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}
.map {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-strong);
  background: var(--ocean);
  overflow: hidden;
}
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.6) contrast(1.1) hue-rotate(170deg); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 550ms var(--ease-out-strong), transform 550ms var(--ease-out-strong);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms var(--ease-out-strong), transform 500ms var(--ease-out-strong);
}
.reveal-stagger.is-in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: 0.55s; }
.reveal-stagger.is-in > *:nth-child(7) { transition-delay: 0.65s; }
.reveal-stagger.is-in > *:nth-child(8) { transition-delay: 0.75s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --pad: 1.25rem; }

  /* Nav compact */
  .nav { padding-block: 0.6rem; }
  .nav.is-scrolled { padding-block: 0.5rem; }
  .nav__inner { gap: 0.75rem; }
  .brand__logo { width: 36px; height: 36px; }
  .brand__name { font-size: 1.05rem; }
  .brand__tag { font-size: 0.52rem; }

  /* Hamburger button — show on mobile, sit above the overlay */
  .nav__links { display: none; }
  .nav__burger {
    display: flex;
    z-index: 101;
  }

  /* Mobile menu overlay — full screen, slides down from top */
  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background:
      radial-gradient(800px 500px at 100% 0%, rgba(0, 224, 239, 0.08), transparent 60%),
      radial-gradient(700px 600px at 0% 100%, rgba(30, 86, 122, 0.18), transparent 60%),
      rgba(2, 8, 16, 0.97);
    backdrop-filter: blur(28px) saturate(1.2);
    -webkit-backdrop-filter: blur(28px) saturate(1.2);
    padding: calc(env(safe-area-inset-top, 0px) + 5.5rem) var(--pad) calc(env(safe-area-inset-bottom, 0px) + 8rem);
    gap: 0;
    align-items: stretch;
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 90;
    animation: menuSlideIn 380ms var(--ease-drawer) both;
  }
  @keyframes menuSlideIn {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Subtle grid texture — matches desktop atmosphere */
  .nav__links.is-open::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
      linear-gradient(rgba(109, 194, 210, 0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(109, 194, 210, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  }

  .nav__links.is-open a {
    position: relative;
    font-family: var(--display);
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--text-bright);
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--line);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition:
      color 220ms var(--ease-out-strong),
      padding-left 260ms var(--ease-out-strong),
      border-color 220ms var(--ease-out-strong);
    /* Stagger entrance — items slide up under the menu fade */
    opacity: 0;
    transform: translateY(14px);
    animation: menuItemIn 460ms var(--ease-out-strong) both;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .nav__links.is-open a::before { display: none; }
  /* Numbered chevron indicator */
  .nav__links.is-open a::after {
    content: "→";
    font-family: var(--body);
    font-size: 1.1rem;
    color: var(--aqua);
    opacity: 0;
    transform: translateX(-8px);
    transition:
      opacity 220ms var(--ease-out-strong),
      transform 260ms var(--ease-out-strong);
  }
  .nav__links.is-open a:hover,
  .nav__links.is-open a:focus-visible,
  .nav__links.is-open a.is-active {
    color: var(--aqua);
    padding-left: 0.75rem;
    border-bottom-color: rgba(0, 224, 239, 0.35);
  }
  .nav__links.is-open a:hover::after,
  .nav__links.is-open a:focus-visible::after,
  .nav__links.is-open a.is-active::after {
    opacity: 1;
    transform: translateX(0);
  }
  .nav__links.is-open a:active { transform: translateY(0) scale(0.97); transition-duration: 100ms; }
  .nav__links.is-open a:nth-child(1) { animation-delay: 80ms; }
  .nav__links.is-open a:nth-child(2) { animation-delay: 130ms; }
  .nav__links.is-open a:nth-child(3) { animation-delay: 180ms; }
  .nav__links.is-open a:nth-child(4) { animation-delay: 230ms; }
  .nav__links.is-open a:nth-child(5) { animation-delay: 280ms; }
  .nav__links.is-open a:nth-child(6) { animation-delay: 330ms; }
  .nav__links.is-open a:nth-child(7) { animation-delay: 380ms; }
  @keyframes menuItemIn {
    to { opacity: 1; transform: translateY(0); }
  }

  /* Floating CTA inside mobile menu */
  .nav__cta { display: none; }
  body.menu-open .nav__cta {
    display: inline-flex;
    position: fixed;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 1.5rem);
    left: var(--pad);
    right: var(--pad);
    justify-content: center;
    z-index: 99;
    padding: 1.15rem 1.5rem;
    font-size: 0.78rem;
    opacity: 0;
    transform: translateY(20px);
    animation: menuCtaIn 460ms var(--ease-out-strong) 420ms both;
  }
  @keyframes menuCtaIn {
    to { opacity: 1; transform: translateY(0); }
  }

  /* Hero */
  .hero { min-height: auto; padding-top: 7rem; padding-bottom: 3rem; }
  .hero__scroll { display: none; }
  .hero__grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero__sub { margin-top: 1.25rem; }
  .hero__actions { margin-top: 1.75rem; gap: 0.75rem; }
  .hero__actions .btn { flex: 1; min-width: 0; justify-content: center; padding: 0.95rem 1rem; font-size: 0.7rem; letter-spacing: 0.14em; }
  .hud { padding: 1.25rem; }
  .hud__value { font-size: 1.6rem; }

  /* Section rhythm */
  .section { padding-block: 3.75rem; }
  .section--tight { padding-block: 2.75rem; }

  /* Headers, splits, tech */
  .shead { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 2.5rem; }
  .split, .split--reverse { grid-template-columns: 1fr; gap: 2rem; }
  .split--reverse .split__media { order: 0; }
  .split__media { aspect-ratio: 4/3; }
  .tech { padding: 1.75rem; }
  .tech__grid { grid-template-columns: 1fr; gap: 2rem; }
  .tech__panel { padding: 1.25rem; font-size: 0.74rem; }

  /* Stats */
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 1.75rem 1rem; }
  .stat__num { font-size: clamp(2rem, 9vw, 3rem); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }

  /* Case studies */
  .case {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 1.75rem 0;
    position: relative;
  }
  .case__id { font-size: 0.66rem; }
  .case__arrow { position: absolute; top: 1.5rem; right: 0; font-size: 1.5rem; }
  .case__title { font-size: 1.2rem; padding-right: 2rem; }
  .case__desc { font-size: 0.88rem; }
  .case__detail { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.25rem; margin-top: 1rem; }

  /* Service blocks */
  .svc-block { grid-template-columns: 1fr; gap: 1.25rem; padding: 2.5rem 0; }
  .svc-block__num { font-size: clamp(2.5rem, 12vw, 3.5rem); }
  .svc-block__title { font-size: 1.7rem; }
  .svc-block__process { grid-template-columns: repeat(2, 1fr); }

  /* Page hero */
  .phero { padding-top: 8rem; padding-bottom: 3.5rem; }
  .phero__meta { gap: 1.25rem 2rem; margin-top: 1.75rem; padding-top: 1.25rem; }
  .phero__meta > div { font-size: 0.66rem; }
  .phero__meta strong { font-size: 1.15rem; }

  /* CTA band */
  .cta-band { padding: 3rem 1.25rem; }
  .cta-band::before, .cta-band::after { width: 200px; height: 200px; }

  /* Regions, certs, contact */
  .regions { grid-template-columns: repeat(2, 1fr); }
  .certs { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .info-card { padding: 1.5rem; }

  /* Posts */
  .post--feat { grid-template-columns: 1fr; }
  .post--feat .post__body { padding: 1.75rem; }
  .post--feat .post__title { font-size: 1.6rem; }

  /* Footer */
  .foot { padding-top: 3.5rem; }
  .foot__top { grid-template-columns: 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
  .foot__brand { grid-column: 1 / -1; }

  /* Buttons */
  .btn { padding: 0.9rem 1.25rem; font-size: 0.72rem; }

  /* Globe */
  .globe { aspect-ratio: 3/2; }
}

@media (max-width: 640px) {
  :root { --pad: 1rem; }

  .brand__tag { display: none; }
  .brand__name { font-size: 0.98rem; letter-spacing: 0.02em; }
  .brand__logo { width: 34px; height: 34px; }

  /* Typography scale down */
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.85rem; }
  h3 { font-size: 1.2rem; }
  .lead { font-size: 1rem; }

  /* Hero */
  .hero { padding-top: 6rem; padding-bottom: 2.5rem; }
  .hero__title { font-size: 2.2rem; line-height: 1.05; }
  .hero__sub { font-size: 0.95rem; margin-top: 1rem; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; }

  /* HUD */
  .hud { padding: 1.1rem; }
  .hud__grid { grid-template-columns: 1fr 1fr; gap: 0.85rem 1rem; }
  .hud__value { font-size: 1.35rem; }
  .hud__foot { flex-direction: column; gap: 0.4rem; align-items: flex-start; font-size: 0.58rem; }

  /* Page hero */
  .phero { padding-top: 7rem; padding-bottom: 3rem; }
  .phero__title { font-size: 2.2rem; }
  .phero__sub { font-size: 0.95rem; }
  .phero__meta { gap: 1rem 1.75rem; }
  .phero__meta > div { font-size: 0.62rem; }
  .phero__meta strong { font-size: 1.05rem; }

  /* Shead */
  .shead__title { font-size: 1.85rem; }
  .section { padding-block: 3rem; }
  .section--tight { padding-block: 2.25rem; }

  /* Stats → 1 col */
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0 !important; border-bottom: 1px solid var(--line); padding: 1.5rem 1rem; }
  .stat:last-child { border-bottom: 0; }
  .stat__num { font-size: 2.4rem; }

  /* Service cards */
  .svc { min-height: auto; padding: 1.5rem 1.25rem; }
  .svc__title { font-size: 1.2rem; }
  .svc__body { font-size: 0.9rem; }

  /* Service detail */
  .svc-block { padding: 2rem 0; gap: 1rem; }
  .svc-block__num { font-size: 2.5rem; }
  .svc-block__title { font-size: 1.55rem; }
  .svc-block__process { grid-template-columns: 1fr 1fr; gap: 0.5rem; }

  /* Case */
  .case { padding: 1.25rem 0; }
  .case__title { font-size: 1.1rem; }

  /* CTA band */
  .cta-band { padding: 2.5rem 1.25rem; }
  .cta-band h2 { font-size: 1.7rem; }
  .cta-band p { font-size: 0.92rem; }
  .cta-band__actions { flex-direction: column; width: 100%; }
  .cta-band__actions .btn { width: 100%; justify-content: center; }

  /* Regions, certs */
  .regions { grid-template-columns: 1fr; }
  .certs { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .foot__top { grid-template-columns: 1fr; gap: 2rem; }
  .foot__brand { grid-column: auto; }
  .foot__bottom { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .foot__certs { flex-wrap: wrap; gap: 0.6rem; }

  /* Tech panel */
  .tech { padding: 1.25rem; }
  .tech__panel { padding: 1rem; font-size: 0.68rem; }
  .tech__panel__head { font-size: 0.6rem; }

  /* Forms */
  .form__row { grid-template-columns: 1fr; gap: 1.1rem; }

  /* Mobile menu items smaller */
  .nav__links.is-open { padding: 5.5rem var(--pad) 7rem; }
  .nav__links.is-open a { font-size: 1.35rem; padding: 1rem 0; }

  /* Ticker */
  .ticker { padding: 0.9rem 0; }
  .ticker__track { font-size: 0.68rem; gap: 2rem; }

  /* Globe */
  .globe { aspect-ratio: 4/3; }
  .globe__marker { width: 10px; height: 10px; }

  /* Plans, pillars, certs */
  .plan { padding: 2rem 1.5rem; }
  .pillar { padding: 1.5rem; }
  .cert { padding: 1.5rem 1rem; }
  .cert__mark { width: 50px; height: 50px; }

  /* Info card */
  .info-card { padding: 1.5rem; }
  .info-card__main { font-size: 1.3rem; }

  /* Map */
  .map { aspect-ratio: 4/3; }
}

/* =========================================================
   QUALITY PASS — accessibility, polish, utilities
   ========================================================= */

/* ---------- Skip to content (accessibility) ---------- */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.75rem 1.1rem;
  background: var(--aqua);
  color: var(--abyss);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 200ms var(--ease-out-strong);
}
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--abyss);
  outline-offset: 2px;
}

/* ---------- Global focus-visible fallback ---------- */
/* Any interactive element without a dedicated focus-visible style gets this. */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
  border-radius: 1px;
}
/* Remove for elements that already handle it */
.btn:focus-visible,
.nav__links a:focus-visible,
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible,
.skip-link:focus-visible {
  outline: 0;
}

/* ---------- Press feedback on cards (active states) ---------- */
/* Subtle compress on press — confirms the surface "heard" the tap without
   fighting the hover lift. Using scale instead of translate keeps the motion
   anchored to the card's center. */
.svc:active,
.post:active,
.case:active,
.plan:active,
.pillar:active,
.cert:active { transform: scale(0.985); transition-duration: 120ms; }

/* Case rows: clickable affordance */
.case { touch-action: manipulation; }
.case:focus-visible {
  outline: 0;
  background: rgba(10, 31, 46, 0.55);
  box-shadow: inset 3px 0 0 var(--aqua);
}

/* ---------- Inline-style replacements (from index.html) ---------- */
/* Prefer these classes over inline style="..." so CSP stays clean. */
.u-h2-spaced { margin: 1.5rem 0; }
.u-h2-spaced em,
.u-em-aqua { color: var(--aqua); font-style: italic; font-weight: 500; }
.u-p-mb { margin-bottom: 1.25rem; }
.u-p-mb-lg { margin-bottom: 2rem; }
.u-p-dim { margin-bottom: 2rem; color: var(--text-dim); }
.u-mt-sm { margin-top: 1rem; }
.u-mt { margin-top: 1.5rem; }
.u-center-eyebrow { justify-content: center; display: inline-flex; }

/* Founder credentials row */
.founder-creds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.founder-creds__label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}
.founder-creds__value {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--aqua);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
}

/* Tech panel — metric label + headline bars */
.tech__metric-label {
  margin-top: 1rem;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.tech__metric-caption {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* Tech headline override (used by inline style before) */
.tech h2 {
  margin: 1.5rem 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

/* ---------- Image load-in ---------- */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}
img[loading="lazy"].is-loaded,
img[loading="lazy"]:not([src=""]) {
  opacity: 1;
}

/* ---------- Hardened reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .brand:hover .brand__logo { transform: none; }
  .svc:hover,
  .post:hover,
  .cert:hover,
  .svc:hover::before,
  .svc:hover::after { transform: none; }
  .ticker__track { animation: none; }
  .hero__scroll::after { animation: none; }
  .globe__marker::before { animation: none; }
  /* Mobile menu — collapse stagger and slide */
  .nav__links.is-open,
  .nav__links.is-open a,
  body.menu-open .nav__cta { animation: none !important; opacity: 1 !important; transform: none !important; }
}
