/* =========================================================================
   L2T — Layer2 Technologies
   Dark, precise, mission-grade.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@400;500;600;700&family=Red+Hat+Display:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --bg-base: #F6F9FC;
  --bg-elevated: #EAF2F9;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F2F7FC;

  /* Borders */
  --border-subtle: rgba(0, 73, 151, 0.08);
  --border-default: rgba(0, 73, 151, 0.14);
  --border-strong: rgba(0, 73, 151, 0.24);

  /* Text */
  --text-primary: #0B2340;
  --text-secondary: #4B5D78;
  --text-tertiary: #637289;
  --text-mute: #A3AEBF;

  /* Brand (both blues come from the L2T logo) */
  --accent: #0082CB;          /* logo blue: fills, buttons, globe, headline accents */
  --accent-hover: #004997;    /* logo navy: hover states */
  --accent-ink: #004997;      /* logo navy: small text that needs contrast */
  --signal: #FF5A1F;          /* international orange: live traffic + actions */
  --signal-hover: #FF7A47;
  --signal-glow: rgba(255, 90, 31, 0.28);
  --navy-block: #0B2340;
  --accent-glow: rgba(0, 130, 203, 0.16);
  --accent-glow-strong: rgba(0, 130, 203, 0.32);

  /* Type */
  --font-display: 'Urbanist', system-ui, sans-serif;
  --font-body: 'Red Hat Display', system-ui, sans-serif;
  --font-mono: 'Urbanist', system-ui, sans-serif;

  /* Layout */
  --max-w: 1440px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }

/* Selection */
::selection { background: var(--accent); color: var(--bg-base); }

/* ---------- Ambient background ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(0, 130, 203, 0.09), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(0, 130, 203, 0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

main { position: relative; z-index: 1; }

section { padding: clamp(60px, 8vw, 110px) 0; position: relative; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), backdrop-filter 0.3s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(246, 249, 252, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border-subtle);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 32px;
}
.logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 130, 203, 0.20), rgba(0, 73, 151, 0.10));
  color: var(--text-primary);
}
.logo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.9) 50%,
    transparent 70%);
  animation: sheen 3.5s ease-in-out forwards;
  pointer-events: none;
}
.logo-img {
  position: relative;
  z-index: 1;
  display: block;
  height: 26px;
  width: auto;
  transition: opacity 0.2s;
}
.logo:hover .logo-img { opacity: 0.85; }
@keyframes sheen {
  0%   { transform: translateX(-100%); opacity: 0; }
  35%  { opacity: 1; }
  50%  { transform: translateX(0);     opacity: 1; }
  65%  { opacity: 1; }
  100% { transform: translateX(100%);  opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .logo::before { animation: none; opacity: 0; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text-primary); background: var(--bg-card); }
.nav-links a.is-active { color: var(--accent-ink); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--accent);
  border-radius: var(--radius-sm);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  background: var(--accent-hover);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 880px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 12px;
    gap: 0;
    margin-top: 8px;
    box-shadow: 0 20px 60px rgba(11, 35, 64, 0.14);
  }
  .nav-links.is-open a { padding: 12px 14px; border-radius: var(--radius-sm); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  padding: 160px 0 100px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 30%, transparent 80%);
  animation: gridDrift 30s linear infinite;
  pointer-events: none;
}
@keyframes gridDrift {
  to { background-position: 64px 64px; }
}

.hero-orb {
  position: absolute;
  top: 50%; right: -10%;
  transform: translateY(-50%);
  width: 700px; height: 700px;
  pointer-events: none;
  opacity: 0.55;
}
.hero-orb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  filter: blur(40px);
}

/* ---------- Hero globe (network visualization) ---------- */
.hero-globe {
  position: absolute;
  top: 50%;
  right: -8%;
  transform: translateY(-50%);
  width: 864px;
  height: 864px;
  pointer-events: none;
  z-index: 0;
  color: var(--accent);
}
.hero-globe svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.globe-wire {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-opacity: 0.13;
}
.globe-wire-strong { stroke-opacity: 0.26; }
.globe-meridian-prime { stroke-opacity: 0.16; }

.globe-route {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.7;
  stroke-opacity: 0.07;
  stroke-dasharray: 2 4;
}

.globe-fire {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 40 1500;
  stroke-dashoffset: 40;
  filter: drop-shadow(0 0 5px var(--accent));
  animation: fireSignal 4.4s linear infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0;
}
@keyframes fireSignal {
  0% { stroke-dashoffset: 40; opacity: 0; }
  6% { opacity: 1; }
  88% { opacity: 1; }
  100% { stroke-dashoffset: -1500; opacity: 0; }
}

.globe-node {
  fill: var(--accent);
  filter: drop-shadow(0 0 4px var(--accent));
}
.globe-node-primary {
  fill: var(--accent);
  filter: drop-shadow(0 0 9px var(--accent));
}

.globe-pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  animation: globePulse 2.56s ease-out infinite;
  animation-delay: var(--delay, 0s);
}
.globe-pulse-primary { animation-duration: 1.92s; }
@keyframes globePulse {
  0% { r: 4; opacity: 0.7; stroke-width: 2; }
  85%, 100% { r: 22; opacity: 0; stroke-width: 0.4; }
}

@media (max-width: 1080px) {
  .hero-globe { right: -22%; opacity: 0.55; }
}
@media (max-width: 880px) {
  .hero-globe { right: -45%; opacity: 0.32; width: 672px; height: 672px; }
}
@media (max-width: 540px) {
  .hero-globe { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .globe-fire { animation: none; opacity: 0.4; stroke-dashoffset: 0; }
  .globe-pulse { animation: none; opacity: 0.3; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-ink);
  padding: 6px 14px;
  border: 1px solid var(--border-default);
  border-radius: 100px;
  background: rgba(0, 130, 203, 0.06);
  margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(44px, 7vw, 92px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 18ch;
  margin-bottom: 28px;
}
.hero h1 .accent { color: var(--accent); font-style: italic; font-weight: 400; }

.hero-lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-secondary);
  max-width: 56ch;
  line-height: 1.55;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.25s var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 8px 30px var(--accent-glow-strong);
  transform: translateY(-2px);
}
.btn-primary svg { transition: transform 0.25s var(--ease-out); }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
  background: rgba(0, 130, 203, 0.06);
}

/* Hero stat row */
.hero-meta {
  position: relative;
  z-index: 1;
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.hero-meta div { font-family: var(--font-mono); font-size: 12px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.14em; }
.hero-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
@media (max-width: 720px) {
  .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ---------- Section headers ---------- */
.section-head {
  margin-bottom: 64px;
  max-width: 720px;
}
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-ink);
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 18px;
}
.section-head h2 .accent { color: var(--accent); font-style: italic; font-weight: 400; }
.section-head p { font-size: 18px; color: var(--text-secondary); line-height: 1.55; }

/* ---------- Capability cards (home / services) ---------- */
.capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .capabilities { grid-template-columns: 1fr; } }

.capability {
  position: relative;
  padding: 36px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.capability::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}
.capability:hover {
  border-color: var(--border-default);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}
.capability:hover::before { opacity: 1; }

.capability-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-tertiary);
  margin-bottom: 28px;
  text-transform: uppercase;
}
.capability-icon {
  width: 52px; height: 52px;
  border: 1px solid var(--border-default);
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  background: linear-gradient(135deg, rgba(0,130,203,0.08), transparent);
  color: var(--accent-ink);
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.capability-icon svg { width: 24px; height: 24px; }
.capability:hover .capability-icon { border-color: var(--accent); }

.capability h3 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
  color: var(--text-primary);
}
.capability p {
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.62;
}

/* ---------- Principles (home) ---------- */
.principles {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.principles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 880px) { .principles-grid { grid-template-columns: 1fr; gap: 40px; } }

.principles-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.principles-list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: baseline;
  gap: 24px;
  font-size: 17px;
  color: var(--text-primary);
  transition: color 0.2s, padding-left 0.3s var(--ease-out);
}
.principles-list li:hover { padding-left: 8px; color: var(--accent-ink); }
.principles-list li:last-child { border-bottom: none; }
.principles-list .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
  min-width: 32px;
}

/* ---------- CTA strip ---------- */
.cta-strip {
  position: relative;
  overflow: hidden;
}
.cta-card {
  position: relative;
  padding: clamp(48px, 6vw, 88px);
  background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  text-align: center;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -10%;
  width: 60%; height: 200%;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}
.cta-card h2 {
  position: relative;
  font-size: clamp(32px, 4.5vw, 52px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 18px;
  max-width: 22ch;
  margin-left: auto; margin-right: auto;
}
.cta-card h2 .accent { color: var(--accent); font-style: italic; font-weight: 400; }
.cta-card p { position: relative; font-size: 17px; color: var(--text-secondary); max-width: 50ch; margin: 0 auto 36px; }
.cta-card .hero-actions { position: relative; justify-content: center; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding: 180px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, black, transparent);
  -webkit-mask-image: linear-gradient(180deg, black, transparent);
  pointer-events: none;
}
.page-hero h1 {
  font-size: clamp(48px, 7vw, 86px);
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 24px;
  max-width: 16ch;
}
.page-hero h1 .accent { color: var(--accent); font-style: italic; font-weight: 400; }
.page-hero p { font-size: clamp(17px, 1.6vw, 21px); color: var(--text-secondary); max-width: 60ch; line-height: 1.55; }

/* ---------- About page ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 980px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.split-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
  position: sticky;
  top: 100px;
}
.split-body p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.split-body p:last-child { margin-bottom: 0; }
.split-body strong { color: var(--text-primary); font-weight: 500; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 720px) { .values-grid { grid-template-columns: 1fr; } }
.value {
  background: var(--bg-base);
  padding: 36px 32px;
  transition: background 0.3s var(--ease-out);
}
.value:hover { background: var(--bg-card); }
.value .num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent-ink);
  margin-bottom: 18px;
  display: block;
}
.value h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.value p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }

.quickview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 720px) { .quickview { grid-template-columns: 1fr; } }
.quickview-item {
  padding: 28px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.quickview-item .qv-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 8px;
  background: rgba(0,130,203,0.10);
  border: 1px solid var(--border-default);
  display: grid;
  place-items: center;
  color: var(--accent-ink);
}
.quickview-item .qv-icon svg { width: 18px; height: 18px; }
.quickview-item h4 { font-family: var(--font-display); font-size: 17px; font-weight: 500; margin-bottom: 6px; }
.quickview-item p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.5; }

/* ---------- Services page ---------- */
.service-block {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
}
.service-block:first-of-type { border-top: none; }
.service-block .split { gap: 100px; }
.service-num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--accent-ink);
  margin-bottom: 18px;
}
.service-block h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: 24px;
}
.service-block .lede {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
}
.service-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.service-features li {
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.service-features li:hover { border-color: var(--border-default); transform: translateX(4px); }
.service-features .check {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  display: grid;
  place-items: center;
  color: var(--accent-ink);
}
.service-features .check svg { width: 11px; height: 11px; }

/* Visualization stub for services */
.service-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.service-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 70%);
}
.service-visual svg { position: relative; width: 70%; height: 70%; color: var(--accent-ink); }

/* ---------- Careers page ---------- */
.careers-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
@media (max-width: 880px) { .careers-intro { grid-template-columns: 1fr; } }
.careers-intro p { font-size: 17px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 18px; }

.amenities-grid, .benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 880px) { .amenities-grid, .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .amenities-grid, .benefits-grid { grid-template-columns: 1fr; } }
.amenity, .benefit {
  padding: 24px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}
.amenity:hover, .benefit:hover {
  border-color: var(--border-default);
  background: var(--bg-card-hover);
}
.amenity .dot, .benefit .dot {
  flex-shrink: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }

.contact-card {
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}
.contact-card h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 14px;
  font-weight: 500;
}
.contact-card a, .contact-card span { display: block; font-size: 22px; color: var(--text-primary); font-family: var(--font-display); font-weight: 400; line-height: 1.4; transition: color 0.2s; letter-spacing: -0.01em; }
.contact-card a:hover { color: var(--accent-ink); }
.contact-list { display: grid; gap: 16px; }

.form {
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 18px;
}
.form label { font-size: 12px; font-family: var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 8px; display: block; }
.form input, .form textarea, .form select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-base);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s, background 0.2s;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-elevated);
}
.form textarea { min-height: 130px; resize: vertical; font-family: var(--font-body); }
.form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 540px) { .form .form-row { grid-template-columns: 1fr; } }
.form button { justify-self: flex-start; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 60px;
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  position: relative;
  z-index: 1;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
@media (max-width: 880px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 540px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.6; max-width: 36ch; margin-top: 18px; }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { font-size: 14.5px; color: var(--text-secondary); transition: color 0.2s; }
.footer-col a:hover { color: var(--accent-ink); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-tertiary);
}
.footer-bottom a { color: var(--text-tertiary); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--accent-ink); }

/* ---------- Reveal animations (progressive enhancement) ----------
   Hide elements only after JS has booted (body.js-ready). If JS is
   disabled, blocked, or fails, content remains fully visible. */
.js-ready .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.js-ready .reveal.is-visible { opacity: 1; transform: none; }

.js-ready .stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.js-ready .stagger.is-visible > * { opacity: 1; transform: none; }
.js-ready .stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.js-ready .stagger.is-visible > *:nth-child(2) { transition-delay: 0.15s; }
.js-ready .stagger.is-visible > *:nth-child(3) { transition-delay: 0.25s; }
.js-ready .stagger.is-visible > *:nth-child(4) { transition-delay: 0.35s; }
.js-ready .stagger.is-visible > *:nth-child(5) { transition-delay: 0.45s; }
.js-ready .stagger.is-visible > *:nth-child(6) { transition-delay: 0.55s; }

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

/* =========================================================================
   Cookie consent (GDPR)
   Bottom banner + granular preferences modal
   ========================================================================= */

/* --- Bottom banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-default);
  padding: 20px 0;
  transform: translateY(100%);
  transition: transform 0.45s var(--ease-out);
  box-shadow: 0 -16px 48px rgba(11, 35, 64, 0.08);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.cookie-content h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--text-primary);
}
.cookie-content h3::before {
  content: '// ';
  color: var(--accent-ink);
  font-weight: 500;
}
.cookie-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
  max-width: 78ch;
}
.cookie-content a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.cookie-content a:hover { color: var(--accent-hover); }

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-actions .btn {
  padding: 11px 18px;
  font-size: 14px;
}

@media (max-width: 880px) {
  .cookie-banner { padding: 18px 0; }
  .cookie-banner-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cookie-actions {
    flex-wrap: wrap;
  }
  .cookie-actions .btn {
    flex: 1 1 120px;
    justify-content: center;
  }
}

/* --- Preferences modal --- */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cookie-modal[hidden] { display: none; }
.cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 35, 64, 0.32);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: cookieFade 0.2s ease-out;
  cursor: pointer;
}
.cookie-modal-card {
  position: relative;
  max-width: 540px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 32px;
  animation: cookieRise 0.28s var(--ease-out);
  box-shadow: 0 30px 80px rgba(11, 35, 64, 0.18);
}
@keyframes cookieFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cookieRise {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 16px;
}
.cookie-modal-head h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin: 0;
}
.cookie-modal-close {
  width: 32px; height: 32px;
  border-radius: 6px;
  color: var(--text-tertiary);
  display: grid;
  place-items: center;
  transition: color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.cookie-modal-close:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}
.cookie-modal-close svg { width: 16px; height: 16px; }
.cookie-modal-intro {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 0 24px;
}

.cookie-category {
  padding: 20px 0;
  border-top: 1px solid var(--border-subtle);
}
.cookie-category:first-of-type { border-top: none; padding-top: 4px; }
.cookie-category:last-of-type { padding-bottom: 4px; }
.cookie-category-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.cookie-category h4 {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px;
  letter-spacing: -0.005em;
}
.cookie-category p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}
.cookie-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  justify-content: flex-end;
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
}
.cookie-modal-actions .btn {
  padding: 11px 20px;
  font-size: 14px;
}
@media (max-width: 540px) {
  .cookie-modal-card { padding: 24px; }
  .cookie-modal-actions { flex-direction: column-reverse; }
  .cookie-modal-actions .btn { justify-content: center; }
}

/* --- Toggle switch --- */
.toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-base);
  border: 1px solid var(--border-default);
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  top: 3px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition: transform 0.25s var(--ease-out), background 0.25s;
}
.toggle input:checked + .toggle-slider {
  background: var(--accent);
  border-color: var(--accent);
}
.toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
  background: var(--bg-base);
}
.toggle input:focus-visible + .toggle-slider {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.toggle.is-disabled { opacity: 0.55; }
.toggle.is-disabled .toggle-slider { cursor: not-allowed; }

/* --- Footer "manage cookies" link --- */
.footer-bottom .cookie-manage {
  color: var(--text-tertiary);
  transition: color 0.2s;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.footer-bottom .cookie-manage:hover { color: var(--accent-ink); }

/* --- Contact form: honeypot, status messages, disabled state --- */

/* Honeypot: kept in the DOM and focusable by bots, but pushed
   entirely off-screen so real users never see or tab into it. */
.form-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

.form-status {
  font-size: 14px;
  line-height: 1.55;
  padding: 0;
  margin: 0;
  color: transparent;
  transition: color 0.2s;
}
.form-status:empty { display: none; }
.form-status.is-success,
.form-status.is-error {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid;
}
.form-status.is-success {
  color: var(--accent-ink);
  background: rgba(0, 130, 203, 0.07);
  border-color: rgba(0, 130, 203, 0.35);
}
.form-status.is-error {
  color: #B4233C;
  background: rgba(200, 40, 60, 0.05);
  border-color: rgba(200, 40, 60, 0.30);
}

.form button[type="submit"]:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}


/* =========================================================================
   SIGNAL variation
   Blue network, orange traffic. Overrides appended so the base stays intact.
   ========================================================================= */

/* Sky with a faint sunrise behind the globe */
body::before {
  background:
    radial-gradient(ellipse 80% 50% at 15% 0%, rgba(0, 130, 203, 0.10), transparent 60%),
    radial-gradient(ellipse 45% 40% at 85% 45%, rgba(255, 90, 31, 0.07), transparent 65%);
}
::selection { background: var(--signal); color: var(--navy-block); }

/* Actions are orange, with navy text (hazard-marking contrast, ~5:1) */
.btn-primary, .nav-cta {
  background: var(--signal);
  color: var(--navy-block);
}
.btn-primary:hover, .nav-cta:hover {
  background: var(--signal-hover);
  box-shadow: 0 8px 28px var(--signal-glow);
}

/* Live indicators */
.hero-eyebrow::before { background: var(--signal); box-shadow: 0 0 10px var(--signal); }

/* Globe: blue network, orange traffic, orange HQ */
.globe-fire {
  stroke: var(--signal);
  filter: drop-shadow(0 0 4px var(--signal));
}
.globe-pulse { stroke: var(--signal); }
.globe-node-primary {
  fill: var(--signal);
  filter: drop-shadow(0 0 8px var(--signal));
}
.globe-route { stroke-opacity: 0.10; }

/* Navy blocks: CTA cards and footer re-scope the tokens so every child adapts */
.cta-card,
.site-footer {
  --text-primary: #FFFFFF;
  --text-secondary: rgba(226, 238, 250, 0.78);
  --text-tertiary: rgba(226, 238, 250, 0.56);
  --border-subtle: rgba(255, 255, 255, 0.10);
  --border-default: rgba(255, 255, 255, 0.22);
  --accent: #5CC4FF;
  --accent-ink: #8FD6FF;
  color: var(--text-primary);
}
.cta-card {
  background: linear-gradient(135deg, #004997 0%, var(--navy-block) 100%);
  border-color: transparent;
}
.cta-card::before {
  background: radial-gradient(ellipse, rgba(92, 196, 255, 0.28) 0%, transparent 60%);
}
.site-footer {
  background: var(--navy-block);
  border-top: none;
}
.site-footer .logo {
  background: #FFFFFF;
  border-color: transparent;
}

/* Header logo: no badge box (footer keeps its white tag) */
.site-header .logo {
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
}
.site-header .logo::before { display: none; }
.site-header .logo-img { height: 34px; }
