/* cache-bust:20260824-workcard */
/* Nelson Security — shared multi-page styles */
@font-face {
  font-family: "Orbitron";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/orbitron-v35.woff2") format("woff2");
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.grad-pulse {
  background-image: linear-gradient(90deg, #ffd400, #00a99d, #ffd400) !important;
  background-size: 200% 100% !important;
  background-repeat: no-repeat !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  filter: none !important;
  text-shadow: none !important;
  animation: gradientShift 8s ease-in-out infinite !important;
}

@media (prefers-reduced-motion: reduce) {
  .grad-pulse { animation: none !important; background-position: 0% 50% !important; }
}
@property --grad-x {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

:root {
  --coal-blue: #00192b;
  --coal-blue-light: #001d35;
  --turquoise: #00a99d;
  --turquoise-glow: rgba(0, 169, 157, 0.4);
  --yellow: #ffd400;
  --yellow-glow: rgba(255, 212, 0, 0.3);
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.85);
  --card-bg: linear-gradient(135deg, #0a192f 0%, #071424 100%);
  --bg: #00192b;
  --surface: rgba(10, 25, 47, 0.65);
  --stroke: rgba(0, 169, 157, 0.2);
  --accent: var(--turquoise);
  --accent-2: var(--yellow);
  --radius: clamp(1rem, 2vw, 1.75rem);
  --header-h: 4.25rem;
  --font: "Orbitron", system-ui, sans-serif;
  --display: "Orbitron", system-ui, sans-serif;
  --mono: "Orbitron", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *:not(#webgl):not(.grad-pulse):not(.logo-grad-pulse),
  *:not(#webgl):not(.grad-pulse):not(.logo-grad-pulse)::before,
  *:not(#webgl):not(.grad-pulse):not(.logo-grad-pulse)::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font);
  background:
    radial-gradient(ellipse 90% 70% at 15% 10%, rgba(0, 169, 157, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 60% at 90% 20%, rgba(255, 212, 0, 0.18), transparent 50%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(0, 169, 157, 0.28), transparent 55%),
    linear-gradient(180deg, var(--coal-blue) 0%, #000814 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(0, 169, 157, 0.45);
  color: white;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

#webgl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
body.has-webgl {
  background: #00192b;
}
body.has-webgl .bg-wash,
body.has-webgl .noise {
  display: none;
}
body.has-webgl .vignette {
  opacity: 0.6;
  background: radial-gradient(ellipse 75% 65% at 50% 28%, transparent 18%, rgba(0, 8, 16, 0.6) 100%);
}
body.has-webgl .site-footer {
  background: linear-gradient(180deg, rgba(0, 10, 18, 0) 0%, rgba(0, 10, 18, 0.78) 26%, rgba(0, 8, 14, 0.94) 100%);
}

.bg-wash {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 100% 80% at 10% 0%, rgba(0, 169, 157, 0.2), transparent 50%),
    radial-gradient(ellipse 80% 70% at 95% 15%, rgba(255, 212, 0, 0.12), transparent 48%),
    radial-gradient(ellipse 90% 60% at 40% 100%, rgba(0, 169, 157, 0.18), transparent 52%);
  mix-blend-mode: screen;
  opacity: 0.95;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 85% 75% at 50% 35%, transparent 35%, rgba(0, 12, 22, 0.55) 100%);
}

.page { position: relative; z-index: 2; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  background: rgba(0, 25, 43, 0.9);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 169, 157, 0.15);
  transition: background 0.4s var(--ease-out), border-color 0.4s;
}

.site-header.is-scrolled {
  background: rgba(0, 25, 43, 0.95);
  border-bottom-color: rgba(0, 169, 157, 0.28);
}

.header-inner {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand img {
  height: clamp(28px, 5vw, 36px);
  width: auto;
  max-width: min(200px, 50vw);
  object-fit: contain;
  filter: drop-shadow(0 0 15px var(--yellow-glow));
}

.nav-desktop {
  display: none;
  gap: 0.15rem;
  list-style: none;
  align-items: center;
}

@media (min-width: 920px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none !important; }
}

.nav-desktop a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  transition: color 0.25s, background 0.25s, text-shadow 0.25s;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"],
.nav-desktop a[aria-current="true"] {
  color: var(--turquoise);
  text-shadow: 0 0 15px var(--turquoise-glow);
  background: rgba(0, 169, 157, 0.08);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(0, 169, 157, 0.35);
  background: rgba(0, 169, 157, 0.06);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--turquoise);
  border-radius: 2px;
  position: relative;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--turquoise);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.nav-drawer {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 99;
  padding: 1rem 1.25rem 1.5rem;
  background: rgba(0, 18, 32, 0.96);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(0, 169, 157, 0.2);
  display: grid;
  gap: 0.25rem;
  transform: translateY(-120%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s var(--ease-out), opacity 0.35s, visibility 0.35s;
}

.nav-drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav-drawer a {
  display: block;
  padding: 0.9rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  font-size: 0.95rem;
}

.nav-drawer a:hover,
.nav-drawer a[aria-current="page"] {
  color: var(--turquoise);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.6rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--turquoise), #00c9b7);
  color: #00192b;
  border: 2px solid transparent;
  box-shadow: 0 6px 20px var(--turquoise-glow);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, background 0.35s, color 0.35s;
}

.btn:hover {
  transform: translateY(-4px) scale(1.03);
  background: linear-gradient(135deg, var(--yellow), #ffe44e);
  box-shadow: 0 12px 35px var(--yellow-glow);
  color: #00192b;
}

.btn-ghost {
  background: transparent;
  color: var(--turquoise);
  border-color: var(--turquoise);
  box-shadow: none;
}

.btn-ghost:hover {
  background: linear-gradient(135deg, var(--yellow), #ffe44e);
  border-color: transparent;
  color: #00192b;
  box-shadow: 0 12px 35px var(--yellow-glow);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

/* Sections */
.section {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 5vw, 2.5rem);
}

.section-head {
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 44rem;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  max-width: 48rem;
}

.section-head h1.grad-pulse,
.section-head h2.grad-pulse,
.contact-block h2.grad-pulse {
  font-weight: 700;
  letter-spacing: 0.02em;
  text-wrap: balance;
  display: inline-block;
}

.section-head h1.grad-pulse {
  font-size: clamp(1.9rem, 5vw, 3.15rem);
  line-height: 1.15;
  margin-bottom: 0.9rem;
}

.section-head h2.grad-pulse {
  font-size: clamp(1.55rem, 3.8vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-head p,
.prose p {
  color: var(--text-dim);
  font-size: clamp(1rem, 2vw, 1.12rem);
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.85rem;
  text-shadow: 0 0 16px var(--yellow-glow);
}

.page-hero {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 4rem));
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.page-hero .lead {
  max-width: 46rem;
  color: var(--text-dim);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.7;
}

/* Cards / bento */
.bento {
  --bento-gap: 1.15rem;
  display: grid;
  gap: var(--bento-gap);
  grid-template-columns: 1fr;
  align-items: stretch;
}

/*
  Leftover 1–2 cards stay centered at full-row card width.
  Grid (not flex-wrap) so align-items:stretch equalizes siblings in a row.
  2-up: 4 tracks, cards span 2; lone last card starts on track 2.
  3-up: 6 tracks, cards span 2; leftover 1 starts on 3, leftover 2 on 2.
  Rows size independently — do not equalize the whole page.
*/
@media (min-width: 640px) {
  .bento {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
  }
  .bento > .card {
    grid-column: span 2;
    align-self: stretch;
    height: auto;
  }
  .bento > .card:last-child:nth-child(odd) {
    grid-column: 2 / span 2;
  }
}

@media (min-width: 960px) {
  .bento.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .bento.cols-4 > .card,
  .bento.cols-4 > .card:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .bento.cols-3,
  .bento.bento-center,
  .bento.bento-balance {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: stretch;
  }
  .bento.cols-3 > .card,
  .bento.bento-center > .card,
  .bento.bento-balance > .card {
    grid-column: span 2;
    align-self: stretch;
    height: auto;
  }
  .bento.cols-3 > .card:last-child:nth-child(odd),
  .bento.bento-center > .card:last-child:nth-child(odd),
  .bento.bento-balance > .card:last-child:nth-child(odd) {
    grid-column: span 2;
  }
  .bento.cols-3 > .card:nth-last-child(2):nth-child(3n + 1),
  .bento.bento-center > .card:nth-last-child(2):nth-child(3n + 1),
  .bento.bento-balance > .card:nth-last-child(2):nth-child(3n + 1) {
    grid-column: 2 / span 2;
  }
  .bento.cols-3 > .card:last-child:nth-child(3n + 1),
  .bento.bento-center > .card:last-child:nth-child(3n + 1),
  .bento.bento-balance > .card:last-child:nth-child(3n + 1) {
    grid-column: 3 / span 2;
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  height: auto;
  min-height: 11.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 169, 157, 0.22);
  background:
    radial-gradient(ellipse 90% 80% at 0% 0%, rgba(0, 169, 157, 0.32), transparent 55%),
    radial-gradient(ellipse 70% 70% at 100% 100%, rgba(255, 212, 0, 0.16), transparent 50%),
    var(--card-bg);
  backdrop-filter: blur(14px);
  padding: clamp(1.35rem, 3vw, 1.75rem);
  overflow: hidden;
  transition: border-color 0.35s, transform 0.45s var(--ease-out), box-shadow 0.45s;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

a.card { color: inherit; }

.card::before {
  content: "";
  position: absolute;
  inset: -35% auto auto -15%;
  width: 75%;
  height: 75%;
  background: radial-gradient(circle, rgba(0, 169, 157, 0.4), transparent 68%);
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  right: -25%;
  bottom: -35%;
  width: 65%;
  height: 65%;
  background: radial-gradient(circle, rgba(255, 212, 0, 0.22), transparent 70%);
  pointer-events: none;
}

.card > * { position: relative; z-index: 1; }

.card:hover {
  border-color: var(--turquoise);
  box-shadow: 0 25px 80px rgba(0, 169, 157, 0.25);
  transform: translateY(-6px);
}

.card h3 {
  font-family: var(--display);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 700;
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.65;
  flex: 1;
}

.card .card-link {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--turquoise);
}

/* Feature list / panels */
.split {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 800px) {
  .split { grid-template-columns: 1fr 1fr; }
}

.panel {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  height: auto;
  border-radius: calc(var(--radius) + 0.15rem);
  border: 1px solid rgba(0, 169, 157, 0.25);
  background:
    radial-gradient(ellipse 85% 75% at 0% 0%, rgba(0, 169, 157, 0.35), transparent 55%),
    radial-gradient(ellipse 75% 70% at 100% 100%, rgba(255, 212, 0, 0.2), transparent 52%),
    var(--card-bg);
  backdrop-filter: blur(16px);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.panel > * { position: relative; z-index: 1; }

.panel h3 {
  font-size: clamp(1.25rem, 2.8vw, 1.55rem);
  margin-bottom: 0.75rem;
}

.panel p,
.panel li {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.65;
}

.panel .prose {
  max-width: none;
}

/* Single selected-work card matches the page body column */
.work-card {
  max-width: 46rem;
}

.checklist {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.checklist li {
  display: block;
  position: relative;
  padding-left: 1.25rem;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.65;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--turquoise);
  box-shadow: 0 0 12px var(--turquoise-glow);
}

.checklist li > span {
  display: inline;
}

.checklist li strong {
  color: var(--text);
  font-weight: 700;
}

/* Scene experience cards (automation page) */
.scene-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 640px) {
  .scene-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.scene-card {
  border-radius: var(--radius);
  border: 1px solid rgba(0, 169, 157, 0.22);
  background:
    radial-gradient(ellipse 90% 80% at 0% 0%, rgba(0, 169, 157, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 70% at 100% 100%, rgba(255, 212, 0, 0.12), transparent 50%),
    rgba(7, 20, 36, 0.82);
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  height: auto;
  gap: 0.55rem;
  transition: border-color 0.3s, transform 0.35s var(--ease-out);
}

.scene-card:hover {
  border-color: rgba(0, 169, 157, 0.45);
  transform: translateY(-3px);
}

.scene-card .scene-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  text-shadow: 0 0 12px var(--yellow-glow);
}

.scene-card h3 {
  font-family: var(--display);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.scene-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.engineer-bar {
  margin-top: 1.25rem;
  border-radius: calc(var(--radius) + 0.1rem);
  border: 1px solid rgba(0, 169, 157, 0.25);
  background:
    radial-gradient(ellipse 80% 80% at 10% 0%, rgba(0, 169, 157, 0.28), transparent 55%),
    var(--card-bg);
  padding: clamp(1.35rem, 3vw, 1.85rem);
}

.engineer-bar h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  margin-bottom: 1rem;
}

.engineer-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .engineer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.engineer-grid li {
  display: block;
  position: relative;
  padding: 0.65rem 0.75rem 0.65rem 1.85rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.55;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.engineer-grid li::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 1.05rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--turquoise);
  box-shadow: 0 0 12px var(--turquoise-glow);
}

/* Prose content blocks */
.prose {
  display: grid;
  gap: 1.1rem;
  max-width: 46rem;
}

.prose h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin-top: 0.5rem;
}

.prose h3 {
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  color: var(--turquoise);
  margin-top: 0.35rem;
}

.prose ul {
  display: grid;
  gap: 0.5rem;
  padding-left: 0;
}

.prose li {
  color: var(--text-dim);
  padding-left: 1.1rem;
  position: relative;
  font-size: 0.95rem;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 10px var(--yellow-glow);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.breadcrumb a:hover { color: var(--turquoise); }
.breadcrumb [aria-current="page"] { color: var(--text-dim); }

/* FAQ */
.faq {
  display: grid;
  gap: 0.85rem;
}

.faq details {
  border-radius: var(--radius);
  border: 1px solid rgba(0, 169, 157, 0.22);
  background: rgba(7, 20, 36, 0.75);
  padding: 1rem 1.15rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.98rem;
  list-style: none;
  color: var(--text);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  float: right;
  color: var(--turquoise);
  font-weight: 700;
}

.faq details[open] summary::after { content: "–"; }

.faq details p {
  margin-top: 0.75rem;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.65;
}

.faq details p a {
  color: var(--turquoise);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Related / chip row */
.related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 169, 157, 0.35);
  background: rgba(0, 169, 157, 0.08);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.chip:hover {
  color: #00192b;
  border-color: var(--yellow);
  background: var(--yellow);
}

/* Contact + footer */
.contact-block {
  border-radius: calc(var(--radius) + 0.25rem);
  border: 1px solid rgba(0, 169, 157, 0.3);
  background:
    radial-gradient(ellipse 90% 80% at 15% 0%, rgba(0, 169, 157, 0.32), transparent 55%),
    radial-gradient(ellipse 70% 70% at 100% 100%, rgba(255, 212, 0, 0.18), transparent 50%),
    var(--card-bg);
  backdrop-filter: blur(20px);
  padding: clamp(2rem, 6vw, 3.5rem);
  text-align: center;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 50px rgba(0, 169, 157, 0.12);
}

.contact-block h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.contact-block .phone {
  font-family: var(--display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--turquoise);
  text-shadow: 0 0 20px var(--turquoise-glow);
  margin: 1.25rem 0 0.35rem;
}

.contact-block .email {
  color: var(--text-dim);
  font-size: 1.05rem;
}

.contact-block .note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.contact-lead {
  color: var(--text-dim);
  max-width: 32rem;
  margin: 0 auto 1.5rem;
  font-size: 0.95rem;
}

.contact-form {
  position: relative;
  max-width: 28rem;
  margin: 0 auto;
  text-align: left;
}

.contact-form .field {
  margin-bottom: 1rem;
}

.contact-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}

.contact-form .req {
  color: var(--turquoise);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(0, 25, 43, 0.55);
  border: 1px solid rgba(0, 169, 157, 0.35);
  border-radius: 0.65rem;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--turquoise);
  box-shadow: 0 0 0 3px rgba(0, 169, 157, 0.2);
}

.contact-form textarea {
  min-height: 8rem;
  resize: vertical;
  line-height: 1.5;
}

/* Off-screen honeypot — not display:none (bots often skip that) */
.contact-form .hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .turnstile-wrap {
  margin: 1.15rem 0 1.25rem;
  display: flex;
  justify-content: center;
}

.contact-form .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

.contact-form .btn[disabled],
.contact-form .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

.contact-form .form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
  min-height: 1.4em;
}

.contact-form .form-status[data-state="success"] {
  color: var(--turquoise);
}

.contact-form .form-status[data-state="error"] {
  color: #ffb4a8;
}

.contact-fallbacks {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 169, 157, 0.25);
}

.contact-dialog {
  width: min(32rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid rgba(0, 169, 157, 0.35);
  border-radius: calc(var(--radius) + 0.15rem);
  background:
    radial-gradient(ellipse 90% 80% at 15% 0%, rgba(0, 169, 157, 0.28), transparent 55%),
    var(--card-bg, #071424);
  color: var(--text);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.55);
}

.contact-dialog::backdrop {
  background: rgba(0, 12, 22, 0.72);
}

.contact-dialog .dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-dialog h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  margin: 0;
}

.contact-dialog .dialog-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--turquoise);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}

.contact-dialog .dialog-phone {
  display: block;
  margin: 0 0 1.15rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--turquoise);
  text-align: center;
}

.contact-fallbacks .fallback-label {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.site-footer {
  border-top: 1px solid var(--stroke);
  padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 5vw, 2.5rem) 2.5rem;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.footer-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.footer-cols {
  display: grid;
  gap: 1.75rem 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
  text-align: left;
  justify-items: start;
}

@media (min-width: 700px) {
  .footer-cols {
    grid-template-columns: 1fr 1.4fr 1fr;
  }
}

.footer-col {
  width: 100%;
  text-align: left;
}

.footer-col h3 {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--turquoise);
  margin-bottom: 0.85rem;
  text-shadow: 0 0 12px var(--turquoise-glow);
}

.footer-col nav a,
.footer-areas a {
  color: var(--text-dim);
  font-size: 0.82rem;
  transition: color 0.2s;
}

.footer-col nav a:hover,
.footer-areas a:hover {
  color: var(--yellow);
  text-shadow: 0 0 12px var(--yellow-glow);
}

.footer-col .footer-stack {
  display: grid;
  gap: 0.45rem;
  justify-content: start;
  justify-items: start;
  text-align: left;
}

.footer-col .footer-stack a {
  color: var(--text-dim);
  font-size: 0.88rem;
}

.footer-col .footer-stack a:hover {
  color: var(--yellow);
  text-shadow: 0 0 12px var(--yellow-glow);
}

.footer-areas {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  column-gap: 1.5rem;
  row-gap: 0.45rem;
  justify-content: start;
  justify-items: start;
  text-align: left;
}

.footer-copy {
  text-align: center;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 169, 157, 0.15);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Legacy top-level footer nav only — do not center/wrap column footer links */
.site-footer > nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
}

.site-footer nav a:hover { color: var(--turquoise); }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 200;
  background: linear-gradient(90deg, var(--yellow), var(--turquoise));
  box-shadow: 0 0 12px var(--turquoise-glow);
  pointer-events: none;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal:not(.is-in) {
    opacity: 0;
    transform: translateY(28px);
  }
}

.tech-note {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 212, 0, 0.22);
  background: rgba(255, 212, 0, 0.06);
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.6;
}

.tech-note a {
  color: var(--turquoise);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tech-note a:hover {
  color: var(--yellow);
}

.tech-note strong { color: var(--yellow); }

/* Fact rows for guide comparison cards — avoids checklist grid/flex splitting labels */
.fact-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.fact-list p {
  position: relative;
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.65;
}

.fact-list p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--turquoise);
  box-shadow: 0 0 12px var(--turquoise-glow);
}

.fact-list strong {
  color: var(--text);
  font-weight: 700;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 300;
  padding: 0.65rem 1rem;
  background: var(--turquoise);
  color: #00192b;
  font-weight: 700;
  border-radius: 0.5rem;
}
.skip-link:focus { top: 0.75rem; }

:focus-visible {
  outline: 2px solid var(--turquoise);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .noise { display: none; }
  .bg-wash { mix-blend-mode: normal; opacity: 0.75; }
  .site-header,
  .card,
  .stat,
  .hero-card,
  .panel,
  .contact-block,
  .t-item,
  .nav-drawer {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
