/* brunofitas.com — brand palette
   navy #041b34 · deep #1e3668 · blue #1c75bc · cyan #4cbbec / #3fc7f4 · white */

:root {
  --navy: #041b34;
  --deep: #1e3668;
  --blue: #1c75bc;
  --cyan: #4cbbec;
  --cyan-bright: #3fc7f4;
  --ink: #eaf2fb;
  --muted: #9fb6d4;
  --amber: #f5a623;
  --maxw: 640px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Helvetica Neue", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
body { position: relative; }

/* Inline SVGs must not impose their viewBox width as a minimum. Safari (unlike
   Chromium) treats an SVG's viewBox as its min-content width, so a diagram with
   viewBox="0 0 460 …" forces the layout ≥460px and lets phones scroll sideways.
   min-width:0 + max-width:100% caps them to their container on every browser. */
img, svg { max-width: 100%; }
.hero-svg, .tile-svg, .prose-fig-svg, .slide-art svg { min-width: 0; }

body {
  position: relative;
  min-height: 100%;
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 800px at 50% -10%, #0a2a4d 0, transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, #06223f 45%, var(--deep) 100%);
  background-color: var(--navy);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Soft moving aurora glow built from the brand blues */
.bg-aurora {
  position: fixed;
  inset: -20vmax;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(40vmax 40vmax at 20% 25%, rgba(76, 187, 236, 0.18), transparent 60%),
    radial-gradient(38vmax 38vmax at 82% 18%, rgba(28, 117, 188, 0.20), transparent 62%),
    radial-gradient(46vmax 46vmax at 70% 88%, rgba(63, 199, 244, 0.12), transparent 60%);
  filter: blur(8px);
  animation: drift 26s ease-in-out infinite alternate;
}

@keyframes drift {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1); }
  100% { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

/* Subtle grid texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0, transparent 75%);
}

.stage {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 7vh 24px 4vh;
}

.card {
  width: 100%;
  max-width: var(--maxw);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.logo {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  box-shadow:
    0 18px 50px rgba(4, 27, 52, 0.55),
    0 0 0 1px rgba(76, 187, 236, 0.18) inset;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.wordmark {
  margin-top: 22px;
  font-size: clamp(2.1rem, 7vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 26px 0 0;
  padding: 7px 15px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(76, 187, 236, 0.08);
  border: 1px solid rgba(76, 187, 236, 0.28);
  border-radius: 999px;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-bright);
  box-shadow: 0 0 0 0 rgba(63, 199, 244, 0.7);
  animation: pulse 2s infinite;
}

.pulse-amber {
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.7);
  animation: pulse-amber 2s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(63, 199, 244, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(63, 199, 244, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 199, 244, 0); }
}

@keyframes pulse-amber {
  0%   { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(245, 166, 35, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0); }
}

.headline {
  margin: 20px 0 0;
  font-size: clamp(1.5rem, 4.6vw, 2.3rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #ffffff 0%, #cfe3f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtext {
  margin: 16px auto 0;
  max-width: 46ch;
  font-size: clamp(1rem, 2.4vw, 1.12rem);
  line-height: 1.6;
  color: var(--muted);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  padding: 13px 24px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-bright) 100%);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(63, 199, 244, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(63, 199, 244, 0.42);
}

.cta-arrow { transition: transform 0.18s ease; }
.cta:hover .cta-arrow { transform: translateX(3px); }
.cta-arrow-back { display: inline-block; margin-right: 7px; transition: transform 0.18s ease; }
.cta:hover .cta-arrow-back { transform: translateX(-3px); }
.article-foot { padding-top: 0; }

.langbar {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 10px 16px;
}

.langbar a {
  padding: 7px 14px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}

.langbar a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

.langbar a[aria-current="true"] {
  color: #fff;
  background: rgba(76, 187, 236, 0.16);
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 14px 16px 28px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(159, 182, 212, 0.7);
}
.footer-links { margin: 8px 0 0; }
.footer-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(76, 187, 236, 0.3);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.footer-links a:hover { color: var(--cyan); border-color: var(--cyan); }

@media (prefers-reduced-motion: reduce) {
  .bg-aurora, .logo, .card, .pulse, .pulse-amber { animation: none; }
}

/* ===========================================================================
   Multi-page live site (mode: "live") — header / nav / content / sections
   =========================================================================== */

body.site {
  grid-template-rows: auto 1fr auto;
  /* Single column pinned to the viewport — minmax(0,1fr) (not the default
     auto) so wide children can't stretch the layout past the screen. */
  grid-template-columns: minmax(0, 1fr);
  --site-maxw: 1040px;
  /* Flat, slightly-lifted navy — no document-height gradient, so colour never
     shifts mid-text. The glow lives inside the hero band / page-head zones. */
  background: #051b34;
}

/* Hero band: a deliberate, self-contained glow zone that ends in a clean
   division. Full-bleed across the viewport; inner content stays at max-width. */
.hero-band {
  position: relative;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
}
.hero-glow {
  position: absolute;
  inset: -140px 0 0 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 640px at 50% -6%, rgba(28, 117, 188, 0.30), transparent 58%),
    radial-gradient(760px 520px at 82% 2%, rgba(76, 187, 236, 0.16), transparent 60%);
}
.hero-band-inner {
  position: relative;
  z-index: 1;
  max-width: var(--site-maxw);
  margin: 0 auto;
  padding: 8px 24px 48px;
}
.hero-services { padding-top: 26px; }
body.page-home .content { padding-top: 0; }

/* Inner pages sit on flat navy — no top glow, so there's no banded "topbar". */

/* Header + primary nav ------------------------------------------------------ */
.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  width: 100%;
  max-width: var(--site-maxw);
  margin: 0 auto;
  padding: 20px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #fff;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(76, 187, 236, 0.2) inset;
}

.brand-name {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.site-nav a {
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

.site-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(76, 187, 236, 0.16);
}

/* "For Engineers" nav link — brand cyan */
.site-nav a[href$="/join/"] { color: #4BBBEC; }
.site-nav a[href$="/join/"]:hover { color: #6fd0f4; }

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(76, 187, 236, 0.28);
  border-radius: 11px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.nav-toggle:hover { background: rgba(76, 187, 236, 0.14); border-color: var(--cyan); }
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Services dropdown */
.nav-group { position: relative; display: inline-flex; }
.nav-caret { font-size: 0.7em; opacity: 0.7; }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 40;
  display: none;
  flex-direction: column;
  gap: 2px;
  min-width: 290px;
  padding: 8px;
  background: rgba(9, 26, 48, 0.98);
  border: 1px solid rgba(76, 187, 236, 0.22);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(4, 27, 52, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown { display: flex; }
.nav-dropdown a {
  padding: 9px 12px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-radius: 9px;
  white-space: nowrap;
}
.nav-dropdown a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav-dropdown-all {
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--cyan);
}

/* Content shell ------------------------------------------------------------- */
.content {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  max-width: var(--site-maxw);
  margin: 0 auto;
  padding: 24px 24px 8px;
}

.content > section { animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }

.section { padding: 40px 0; }
.section-title {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}
.section-lead { margin: 0 0 26px; max-width: 60ch; color: var(--muted); line-height: 1.6; }
.section-more { margin: 22px 0 0; }
.section-more a { color: var(--cyan); text-decoration: none; font-weight: 600; }
.section-more a:hover { color: var(--cyan-bright); }

/* Hero carousel ------------------------------------------------------------- */
.hero-carousel { position: relative; padding: 8px 66px 4px; }
.hero-carousel:focus { outline: none; }
.hero-viewport { overflow: hidden; }
.hero-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.1, 1);
  will-change: transform;
}
.hero-slide {
  flex: 0 0 100%;
  min-width: 100%;
  display: flex;
  align-items: center;
  padding: 2vh 0;
}
.hero-slide .hero-grid { width: 100%; }

.hero-nav {
  position: absolute;
  top: 44%;
  transform: translateY(-50%);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0 0 4px;
  font-size: 1.7rem;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  background: rgba(10, 30, 55, 0.55);
  border: 1px solid rgba(76, 187, 236, 0.32);
  border-radius: 50%;
  backdrop-filter: blur(4px);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.hero-nav:hover {
  background: rgba(76, 187, 236, 0.18);
  border-color: var(--cyan);
}
.hero-nav:active { transform: translateY(-50%) scale(0.94); }
.hero-prev { left: 4px; }
.hero-next { right: 4px; }

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(159, 182, 212, 0.35);
  transition: background 0.15s ease, transform 0.15s ease;
}
.hero-dot:hover { background: rgba(159, 182, 212, 0.6); }
.hero-dot[aria-selected="true"] { background: var(--cyan); transform: scale(1.3); }

/* Service-slide artwork (reuses tile motifs at hero scale) */
.slide-art {
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  aspect-ratio: 320 / 150;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(120% 120% at 68% 28%, rgba(28, 117, 188, 0.18), rgba(7, 31, 58, 0.6));
  border: 1px solid rgba(76, 187, 236, 0.16);
  filter: drop-shadow(0 24px 60px rgba(4, 27, 52, 0.55));
}
.slide-art .tile-svg { display: block; width: 100%; height: 100%; }

/* Hero ---------------------------------------------------------------------- */
.hero { padding: 5vh 0 2vh; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero-figure { min-width: 0; }
/* Hero tags are short, single-line labels — keep them on one line. */
.hero-copy .eyebrow {
  white-space: nowrap;
  letter-spacing: 0.1em;
}
.hero-svg {
  width: 100%;
  height: auto;
  max-width: 520px;
  display: block;
  margin-inline: auto;
  filter: drop-shadow(0 24px 60px rgba(4, 27, 52, 0.55));
}

/* draw the uptime line on load */
.ts-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: tsDraw 2.4s cubic-bezier(0.4, 0, 0.1, 1) forwards;
}
@keyframes tsDraw { to { stroke-dashoffset: 0; } }

.ts-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: tsPulse 2.4s ease-out infinite;
}
@keyframes tsPulse {
  0%   { transform: scale(0.7); opacity: 0.45; }
  70%  { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

.ts-nodes circle { animation: tsFloat 7s ease-in-out infinite alternate; }
.ts-nodes circle:nth-child(2) { animation-duration: 9s; }
.ts-nodes circle:nth-child(3) { animation-duration: 6s; }
@keyframes tsFloat {
  from { transform: translateY(0); }
  to   { transform: translateY(-7px); }
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 6px; }
  /* Negative block margins crop the SVG's transparent top/bottom bands so the
     image sits closer to the tag/headline on mobile. */
  .hero-figure { order: -1; max-width: 360px; margin: 0 auto -26px; }
  .hero-slide { padding: 0; align-items: flex-start; }
  .hero-grid { align-items: start; }
}

/* Small screens: the 66px arrow gutters starve the slide of width and the
   arrows overlap the copy. Drop them to dots-only and give content the room. */
@media (max-width: 600px) {
  .hero-carousel { padding: 8px 4px 4px; }
  .hero-nav { display: none; }
  .hero-slide, .hero-grid, .hero-copy, .hero-figure { min-width: 0; max-width: 100%; }
}

.hero-headline {
  margin: 18px 0 0;
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 18ch;
  background: linear-gradient(180deg, #ffffff 0%, #cfe3f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-subtext {
  margin: 20px 0 0;
  max-width: 56ch;
  font-size: clamp(1.02rem, 2.4vw, 1.18rem);
  line-height: 1.65;
  color: var(--muted);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.cta-ghost {
  color: var(--ink);
  background: transparent;
  box-shadow: 0 0 0 1px rgba(76, 187, 236, 0.35) inset;
}
.cta-ghost:hover {
  background: rgba(76, 187, 236, 0.1);
  box-shadow: 0 0 0 1px rgba(76, 187, 236, 0.5) inset;
}

/* Page heads (inner pages) -------------------------------------------------- */
.page-head { padding: 4vh 0 1vh; }
.page-title {
  margin: 16px 0 0;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 20ch;
  color: #fff;
}
.page-lead { margin: 18px 0 0; max-width: 60ch; font-size: 1.1rem; line-height: 1.6; color: var(--muted); }

/* Pillars / service cards --------------------------------------------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.pillar {
  display: block;
  padding: 24px 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(76, 187, 236, 0.16);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}
.pillar:hover {
  transform: translateY(-3px);
  border-color: rgba(76, 187, 236, 0.4);
  background: rgba(76, 187, 236, 0.05);
}
.pillar-art {
  margin: 0 0 18px;
  aspect-ratio: 320 / 150;
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(120% 120% at 68% 28%, rgba(28, 117, 188, 0.16), rgba(7, 31, 58, 0.55));
  border: 1px solid rgba(76, 187, 236, 0.14);
}
.tile-svg { display: block; width: 100%; height: 100%; }
.tile-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: tsPulse 2.8s ease-out infinite;
}

.pillar-title { margin: 0 0 8px; font-size: 1.18rem; font-weight: 700; color: #fff; }
.pillar-lead { margin: 0; color: var(--muted); line-height: 1.55; }
.pillar-points { margin: 16px 0 0; padding: 0; list-style: none; }
.pillar-points li {
  position: relative;
  padding: 5px 0 5px 22px;
  font-size: 0.94rem;
  color: var(--ink);
  line-height: 1.45;
}
.pillar-points li::before {
  content: "›";
  position: absolute;
  left: 4px;
  color: var(--cyan);
  font-weight: 700;
}

/* Client wall --------------------------------------------------------------- */
.clients { padding: 18px 0 12px; text-align: center; }
.clients-title {
  margin: 0 0 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(159, 182, 212, 0.7);
}
.client-wall {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.client {
  display: inline-flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.18s ease, color 0.18s ease;
}
.client:hover { opacity: 1; }
.client-text {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.client img {
  height: 30px;
  width: auto;
  filter: grayscale(1) brightness(1.8);
}

/* Service front doors -------------------------------------------------------- */
.doors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.door {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px;
  text-decoration: none;
  background: linear-gradient(150deg, rgba(28, 117, 188, 0.14), rgba(76, 187, 236, 0.05));
  border: 1px solid rgba(76, 187, 236, 0.22);
  border-radius: 16px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.door:hover {
  transform: translateY(-3px);
  border-color: rgba(76, 187, 236, 0.5);
  background: linear-gradient(150deg, rgba(28, 117, 188, 0.2), rgba(76, 187, 236, 0.08));
}
.door-label { font-size: 1.12rem; font-weight: 700; color: #fff; }
.door-desc { font-size: 0.95rem; line-height: 1.5; color: var(--muted); }
.door-go { margin-top: 2px; color: var(--cyan); font-weight: 700; }

/* Service categories --------------------------------------------------------- */
.svc-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.svc-cat {
  position: relative;
  flex: 0 1 calc(33.333% - 12px);
  padding: 24px 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(76, 187, 236, 0.16);
  border-radius: 16px;
  scroll-margin-top: 24px;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
/* Whole tile is clickable: the title link is stretched over the card. */
.svc-cat:has(.svc-cat-title a:hover) { transform: translateY(-3px); }
.svc-cat-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
@media (max-width: 900px) { .svc-cat { flex-basis: calc(50% - 9px); } }
@media (max-width: 600px) { .svc-cat { flex-basis: 100%; } }
.svc-cat:target,
.svc-cat:hover { border-color: rgba(76, 187, 236, 0.4); background: rgba(76, 187, 236, 0.05); }
.svc-art {
  margin: 0 0 18px;
  aspect-ratio: 320 / 150;
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(120% 120% at 68% 28%, rgba(28, 117, 188, 0.16), rgba(7, 31, 58, 0.55));
  border: 1px solid rgba(76, 187, 236, 0.14);
}
.svc-art .tile-svg { display: block; width: 100%; height: 100%; }
.svc-cat-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.svc-cat-title { margin: 0; font-size: 1.18rem; font-weight: 700; color: #fff; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.svc-tag {
  padding: 3px 10px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.svc-tag-small-business { color: #7ff0c8; background: rgba(76, 236, 175, 0.10); border-color: rgba(76, 236, 175, 0.32); }
.svc-tag-scale-up { color: #7fd0ff; background: rgba(76, 187, 236, 0.12); border-color: rgba(76, 187, 236, 0.34); }
.svc-tag-enterprise { color: #b0c4ff; background: rgba(80, 110, 220, 0.14); border-color: rgba(120, 150, 240, 0.34); }
.svc-tag-regulated { color: #f5c97a; background: rgba(245, 166, 35, 0.12); border-color: rgba(245, 166, 35, 0.34); }
.svc-tag-teams, .svc-tag-companies { color: #8fe6f4; background: rgba(63, 199, 244, 0.10); border-color: rgba(63, 199, 244, 0.30); }
.svc-tag-all { color: var(--muted); }
.svc-cat-lead { margin: 12px 0 0; color: var(--muted); line-height: 1.55; }
.svc-items { margin: 14px 0 0; padding: 0; list-style: none; }
.svc-items li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 0.94rem;
  line-height: 1.45;
  color: var(--ink);
}
.svc-items li::before {
  content: "›";
  position: absolute;
  left: 4px;
  color: var(--cyan);
  font-weight: 700;
}
.svc-cat-title a { color: inherit; text-decoration: none; }
.svc-cat-title a:hover { color: var(--cyan); }

/* Service detail page */
.svc-crumb {
  background: none;
  border: 0;
  padding: 0;
}
.svc-crumb a { color: var(--cyan); text-decoration: none; }
.svc-crumb a:hover { color: var(--cyan-bright); }
.svc-detail-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  margin-top: 14px;
}
.svc-detail-copy { min-width: 0; }
.svc-detail-copy .svc-tags { margin: 14px 0; }
.svc-detail-art {
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  aspect-ratio: 320 / 150;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(120% 120% at 68% 28%, rgba(28, 117, 188, 0.18), rgba(7, 31, 58, 0.6));
  border: 1px solid rgba(76, 187, 236, 0.16);
  filter: drop-shadow(0 24px 60px rgba(4, 27, 52, 0.5));
}
.svc-detail-art .tile-svg { display: block; width: 100%; height: 100%; }
/* Article covers are small, centered motifs — keep the panel glow centered too. */
.svc-detail-art.article-art { background: radial-gradient(115% 115% at 50% 42%, rgba(28, 117, 188, 0.2), rgba(7, 31, 58, 0.55)); }
.svc-other { display: flex; flex-wrap: wrap; gap: 10px; }
.svc-other-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 15px;
  font-size: 0.92rem;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(76, 187, 236, 0.2);
  border-radius: 999px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.svc-other-link:hover { border-color: var(--cyan); background: rgba(76, 187, 236, 0.08); }
@media (max-width: 760px) {
  .svc-detail-hero { grid-template-columns: 1fr; }
  .svc-detail-art { order: -1; }
}

/* Prose --------------------------------------------------------------------- */
.prose p {
  max-width: 68ch;
  margin: 0 0 18px;
  font-size: 1.08rem;
  line-height: 1.7;
  color: #d7e4f5;
}
.prose .prose-h2 {
  max-width: 68ch;
  margin: 32px 0 12px;
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}
.prose .prose-h3 {
  max-width: 68ch;
  margin: 22px 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #cfe0f2;
}
.prose ul, .prose ol {
  max-width: 66ch;
  margin: 0 0 18px;
  padding-left: 22px;
  color: #d7e4f5;
}
.prose li { margin: 7px 0; line-height: 1.6; }
.prose li::marker { color: var(--cyan); }
.prose .code-block { position: relative; max-width: 72ch; margin: 0 0 20px; }
.prose .prose-code {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  background: #1d2a3d;
  border: 1px solid rgba(120, 160, 210, 0.16);
  border-radius: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #d6e2ee;
  white-space: pre;
}
.prose .prose-code code { font: inherit; color: inherit; }
/* copy button (top-right of each code block) */
.prose .code-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s ease, color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.prose .code-block:hover .code-copy { opacity: 1; }
.prose .code-copy:hover { color: #fff; border-color: var(--cyan); background: rgba(76, 187, 236, 0.14); }
.prose .code-copy svg { width: 15px; height: 15px; }
.prose .code-copy .ic-done { display: none; }
.prose .code-copy.copied { opacity: 1; color: #7be0a6; border-color: rgba(67, 214, 146, 0.5); background: rgba(67, 214, 146, 0.12); }
.prose .code-copy.copied .ic-copy { display: none; }
.prose .code-copy.copied .ic-done { display: inline; }
/* tabbed code (Prometheus / Datadog / …) — reusable {tabs} block */
.prose .code-tabs { max-width: 72ch; margin: 0 0 20px; }
.prose .codetab-bar { display: flex; gap: 6px; margin: 0 0 8px; flex-wrap: wrap; }
.prose .codetab {
  font: inherit; font-size: 12.5px; font-weight: 600;
  color: var(--muted); cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(120, 160, 210, 0.16);
  border-radius: 8px; padding: 6px 14px; transition: 0.15s;
}
.prose .codetab:hover { color: #fff; border-color: var(--cyan); }
.prose .codetab.on { color: #fff; background: #1d2a3d; border-color: var(--cyan); }
.prose .code-tabs .code-block { margin: 0; max-width: none; }
.prose .codetab-panel.hidden { display: none; }
.prose .prose-quote {
  max-width: 66ch;
  margin: 0 0 20px;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--cyan);
  color: #cfe0f4;
  font-style: italic;
}
.prose .prose-fig {
  margin: 24px 0;
  max-width: 760px;
}
.prose .prose-fig-svg {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(76, 187, 236, 0.16);
  border-radius: 16px;
}
.prose .prose-fig figcaption {
  margin: 10px 2px 0;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 66ch;
}

/* Checklist ----------------------------------------------------------------- */
.checklist { margin: 0; padding: 0; list-style: none; max-width: 70ch; }
.checklist li {
  position: relative;
  padding: 11px 0 11px 30px;
  font-size: 1.02rem;
  line-height: 1.55;
  color: #d7e4f5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  top: 11px;
  color: var(--cyan);
  font-weight: 700;
}

/* Numbered steps (How we work) ---------------------------------------------- */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 72ch;
}
.steps li {
  position: relative;
  counter-increment: step;
  padding: 12px 0 12px 48px;
  font-size: 1.02rem;
  line-height: 1.55;
  color: #d7e4f5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  background: linear-gradient(135deg, var(--cyan), var(--cyan-bright));
  border-radius: 50%;
}
.how-close {
  margin: 22px 0 0;
  max-width: 72ch;
  font-size: 1.08rem;
  font-weight: 600;
  color: #fff;
}

/* Bands --------------------------------------------------------------------- */
.band {
  margin: 24px 0;
  padding: 32px 28px;
  background: linear-gradient(135deg, rgba(28, 117, 188, 0.16), rgba(76, 187, 236, 0.06));
  border: 1px solid rgba(76, 187, 236, 0.22);
  border-radius: 18px;
}
.band-title { margin: 0 0 10px; font-size: 1.3rem; font-weight: 700; color: #fff; }
.band-body { margin: 0; max-width: 72ch; color: #cfe0f4; line-height: 1.65; }

.cta-band { text-align: center; padding: 48px 24px 56px; }
.cta-band-title {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 3.6vw, 2rem);
  font-weight: 700;
  color: #fff;
}
.cta-band-body { margin: 0 auto 26px; max-width: 50ch; color: var(--muted); line-height: 1.6; }

/* Articles / blog ----------------------------------------------------------- */
.blog-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 16px;
}
.blog-search {
  flex: 1 1 260px;
  padding: 12px 16px;
  font: inherit;
  font-size: 1rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(76, 187, 236, 0.22);
  border-radius: 11px;
}
.blog-search:focus { outline: none; border-color: var(--cyan); background: rgba(76, 187, 236, 0.07); }
.blog-year {
  flex: 0 0 auto;
  padding: 12px 16px;
  font: inherit;
  font-size: 0.95rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(76, 187, 236, 0.22);
  border-radius: 11px;
  cursor: pointer;
}
.blog-year option { color: #fff; background: #0b2c4f; }
.blog-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.tagchip {
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(76, 187, 236, 0.2);
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.tagchip:hover { color: #fff; border-color: rgba(76, 187, 236, 0.45); }
.tagchip.is-active {
  color: var(--navy);
  font-weight: 600;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-bright));
  border-color: transparent;
}

.article-list { display: grid; gap: 16px; }
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.article-card {
  display: block;
  padding: 22px 22px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(76, 187, 236, 0.16);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.article-cover {
  margin: -22px -22px 16px;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: radial-gradient(120% 150% at 70% 18%, rgba(28, 117, 188, 0.24), rgba(7, 31, 58, 0.6));
  border-bottom: 1px solid rgba(76, 187, 236, 0.14);
}
.article-cover .tile-svg { width: 100%; height: 100%; }

/* Full-width banner at the top of an article page */
/* The shared "heartbeat" kicker has a -24px bottom margin that pulled the
   full-bleed article hero up over it. On article pages, let them stack. */
body.page-article .kicker-top { margin-bottom: 10px; }
a.article-card:hover {
  transform: translateY(-3px);
  border-color: rgba(76, 187, 236, 0.42);
  background: rgba(76, 187, 236, 0.05);
}
.article-meta {
  margin: 14px 0 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}
.article-title { margin: 0 0 8px; font-size: 1.18rem; font-weight: 700; color: #fff; line-height: 1.25; }
.article-excerpt { margin: 0; color: var(--muted); line-height: 1.6; }
/* Related-article card: image on the left, text on the right */
.article-card-row { display: flex; align-items: stretch; padding: 0; }
.article-cover-side {
  flex: 0 0 190px;
  align-self: stretch;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 150% at 70% 30%, rgba(28, 117, 188, 0.22), rgba(7, 31, 58, 0.6));
  border-right: 1px solid rgba(76, 187, 236, 0.14);
}
.article-cover-side .tile-svg { width: 100%; height: 100%; }
.article-row-body { padding: 20px 22px; min-width: 0; }
@media (max-width: 560px) {
  .article-card-row { flex-direction: column; }
  .article-cover-side {
    flex-basis: auto;
    aspect-ratio: 16 / 7;
    border-right: 0;
    border-bottom: 1px solid rgba(76, 187, 236, 0.14);
  }
}

.article-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.article-tag {
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink);
  background: rgba(76, 187, 236, 0.1);
  border: 1px solid rgba(76, 187, 236, 0.22);
  border-radius: 999px;
}
.blog-empty { color: var(--muted); padding: 8px 0; }
.blog-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.page-btn {
  min-width: 38px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(76, 187, 236, 0.2);
  border-radius: 10px;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.page-btn:hover { color: #fff; border-color: rgba(76, 187, 236, 0.45); }
.page-btn.is-active {
  color: var(--navy);
  background: linear-gradient(135deg, var(--cyan), var(--cyan-bright));
  border-color: transparent;
}

/* Contact ------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 16px; max-width: 540px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-label { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(76, 187, 236, 0.22);
  border-radius: 11px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(76, 187, 236, 0.07);
}
.contact-form textarea { resize: vertical; }
.contact-form select {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(76, 187, 236, 0.22);
  border-radius: 11px;
  cursor: pointer;
}
.contact-form select:focus { outline: none; border-color: var(--cyan); background: rgba(76, 187, 236, 0.07); }
.contact-form select option { color: #fff; background: #0b2c4f; }
.join-form { max-width: 720px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.contact-form .cta { align-self: flex-start; border: 0; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 2px 0 0; min-height: 1.2em; font-size: 0.95rem; color: var(--cyan); }

.contact-aside {
  padding: 24px 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(76, 187, 236, 0.16);
  border-radius: 16px;
}
.aside-title { margin: 0 0 10px; font-size: 1.1rem; font-weight: 700; color: #fff; }
.contact-aside p { margin: 0 0 10px; color: var(--muted); line-height: 1.6; }
.contact-email { color: var(--cyan); font-weight: 600; text-decoration: none; word-break: break-all; }
.contact-email:hover { color: var(--cyan-bright); }

.muted { color: rgba(159, 182, 212, 0.75); }

/* Footer adjustments for the site ------------------------------------------- */
body.site .site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: 16px;
}
.footer-line { margin: 6px 0 0; }

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .nav-toggle { display: inline-flex; }
  .site-header { flex-wrap: nowrap; }
  .site-nav {
    position: absolute;
    top: calc(100% - 6px);
    right: 16px;
    z-index: 30;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    min-width: 210px;
    padding: 8px;
    background: rgba(9, 26, 48, 0.97);
    border: 1px solid rgba(76, 187, 236, 0.22);
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(4, 27, 52, 0.55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 11px 14px; font-size: 1rem; }
  .nav-group { position: static; display: block; }
  .nav-dropdown {
    position: static;
    display: flex;
    min-width: 0;
    margin: 0 0 4px 12px;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .nav-dropdown a { font-size: 0.92rem; padding: 9px 12px; }
  .hero-carousel { padding-inline: 42px; }
  .hero-nav { width: 36px; height: 36px; font-size: 1.4rem; }
  .hero-prev { left: 0; }
  .hero-next { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .content > section { animation: none; }
  .ts-line { stroke-dashoffset: 0; animation: none; }
  .ts-pulse, .ts-nodes circle, .tile-pulse { animation: none; }
  .hero-track { transition: none; }
}
