/* ==========================================================================
   Nova Pro Services — global styles
   Plain CSS port of the former Next.js / Tailwind design system.
   ========================================================================== */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Inter:wght@400;500;600;700&display=swap');

/* ---- Design tokens ---- */
:root {
  --background: #0e1116;
  --foreground: #eef1f5;
  --card: #151a21;
  --card-foreground: #eef1f5;
  --muted: #1b222b;
  --muted-foreground: #97a1ad;
  --primary: #2323ff;
  --primary-foreground: #ffffff;
  --secondary: #1b222b;
  --secondary-foreground: #eef1f5;
  --border: #262e39;
  --ring: #2323ff;

  --font-sans: 'Helvetica Neue', Helvetica, Arial, 'Inter', ui-sans-serif,
    system-ui, sans-serif;
  --font-display: 'Archivo Black', 'Arial Black', 'Helvetica Neue', Helvetica,
    Arial, sans-serif;

  --radius: 0.5rem;
  --container: 1600px;
  --content: 1200px;
}

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

html {
  background: var(--background);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 0.98;
  font-weight: 400;
  font-synthesis-weight: none;
}

/* ---- Layout helpers ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
.content {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .container,
  .content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .container,
  .content {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}
@media (min-width: 1024px) {
  .section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

main {
  flex: 1 1 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
}
.eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 2px;
  background: var(--primary);
  display: inline-block;
}

.muted {
  color: var(--muted-foreground);
}
.text-primary {
  color: var(--primary);
}

/* ---- Blueprint grid backgrounds ---- */
.bg-grid {
  background-image: linear-gradient(
      to right,
      rgba(238, 241, 245, 0.04) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(238, 241, 245, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
}
@media (min-width: 1024px) {
  .header-inner {
    height: 5rem;
  }
}
.brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.brand img {
  height: 2.5rem;
  width: auto;
}
@media (min-width: 1024px) {
  .brand img {
    height: 3rem;
  }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.125rem;
}
@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}
.nav-desktop a {
  white-space: nowrap;
  border-radius: var(--radius);
  padding: 0.5rem 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #737b86;
  transition: color 0.15s ease;
}
.nav-desktop a:hover {
  color: #0a0a0a;
}
.nav-desktop a.active {
  color: #0a0a0a;
}

.header-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0a0a0a;
  transition: color 0.15s ease;
}
.header-phone:hover {
  color: var(--primary);
}
.header-phone svg {
  color: var(--primary);
}
.header-phone-num {
  display: none;
}
@media (min-width: 400px) {
  .header-phone-num {
    display: inline;
  }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  width: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: transparent;
  color: #0a0a0a;
  cursor: pointer;
}
@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

.nav-mobile {
  display: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  background: #ffffff;
}
.nav-mobile.open {
  display: block;
}
@media (min-width: 1024px) {
  .nav-mobile {
    display: none !important;
  }
}
.nav-mobile-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1rem 1.25rem;
}
.nav-mobile a {
  border-radius: var(--radius);
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: #4b5563;
}
.nav-mobile a:hover,
.nav-mobile a.active {
  background: #f5f5f5;
  color: #0a0a0a;
}
/* Keep the CTA button legible (override the grey link color above) */
.nav-mobile a.btn-solid,
.nav-mobile a.btn-solid:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}
.nav-mobile a.btn-solid:hover {
  background: #1a1ae0;
}

/* ==========================================================================
   Buttons (CTA)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn svg {
  transition: transform 0.15s ease;
}
.btn:hover svg.arrow {
  transform: translateX(2px);
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.75rem;
}
.btn-md {
  padding: 0.75rem 1.5rem;
  font-size: 0.8125rem;
}
.btn-lg {
  padding: 0.9rem 1.85rem;
  font-size: 0.875rem;
}

.btn-solid {
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn-solid:hover {
  background: #1a1ae0;
}
.btn-outline {
  background: transparent;
  color: var(--foreground);
  border-color: var(--border);
}
.btn-outline:hover {
  background: var(--secondary);
}
/* On the blue primary band */
.btn-on-primary-solid {
  background: #ffffff;
  color: #0a0a0a;
}
.btn-on-primary-outline {
  background: transparent;
  color: var(--primary-foreground);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-on-primary-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}
.btn-full {
  width: 100%;
}
@media (min-width: 640px) {
  .btn-auto-sm {
    width: auto;
  }
}

/* ==========================================================================
   Home hero + blueprint logo animation
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}
.hero h1 {
  margin-top: 1.5rem;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.02;
  text-wrap: balance;
}
.hero p.lead {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: 1.05rem;
  color: var(--muted-foreground);
}
.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.stats-strip {
  border-top: 1px solid var(--border);
  background: rgba(21, 26, 33, 0.6);
}
.stats-strip .content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
}
.stat {
  padding: 1.75rem 0.5rem;
  text-align: center;
}
.stat .val {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--foreground);
}
.stat .lbl {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

/* ---- Animated blueprint logo stage ---- */
.logo-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 30rem;
  margin: 0 auto;
}
.logo-float {
  position: absolute;
  inset: 0;
  animation: np-float 7s ease-in-out infinite;
}
@keyframes np-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.bp-layer {
  position: absolute;
  inset: 0;
  animation: np-loop-bp-layer 12s ease-in-out infinite;
}
.bp-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to right,
      rgba(35, 35, 255, 0.28) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(35, 35, 255, 0.28) 1px, transparent 1px);
  background-size: 32px 32px;
  animation: np-loop-grid 12s linear infinite;
  mask-image: radial-gradient(circle at center, #000 55%, transparent 78%);
  -webkit-mask-image: radial-gradient(
    circle at center,
    #000 55%,
    transparent 78%
  );
}
.bp-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 6px rgba(35, 35, 255, 0.6));
}
.bp-svg .draw {
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  stroke-dasharray: 1;
  vector-effect: non-scaling-stroke;
}
.bp-svg .draw.thin {
  stroke-width: 1;
  opacity: 0.7;
}
.bp-svg .draw.guide {
  stroke-width: 1;
  opacity: 0.45;
}
.bp-svg .draw.node {
  stroke-width: 1.5;
  fill: var(--background);
}
.bp-svg .s1 {
  animation: np-loop-draw 12s ease-in-out infinite;
}
.bp-svg .s2 {
  animation: np-loop-draw2 12s ease-in-out infinite;
}
.bp-svg .s3 {
  animation: np-loop-draw3 12s ease-in-out infinite;
}
/* Stage 4: solid construction lines draw in, dashed layout guides fade in */
.bp-svg .s4 {
  animation: np-loop-draw4 12s ease-in-out infinite;
}
.bp-svg .s4.dash {
  stroke-dasharray: 3 2.5;
  opacity: 0;
  animation: np-loop-fade4 12s ease-in-out infinite;
}

/* The NP monogram being "inked" left-to-right */
.bp-ink {
  position: absolute;
  inset: 8%;
  background-image: repeating-linear-gradient(
      48deg,
      rgba(35, 35, 255, 0.95) 0px,
      rgba(35, 35, 255, 0.95) 2px,
      transparent 2px,
      transparent 7px
    ),
    linear-gradient(rgba(35, 35, 255, 0.45), rgba(35, 35, 255, 0.45));
  -webkit-mask: var(--np-mask);
  mask: var(--np-mask);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  filter: drop-shadow(0 0 10px rgba(35, 35, 255, 0.85));
  clip-path: inset(0 100% 0 0);
  animation: np-loop-ink 12s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
.bp-pen {
  position: absolute;
  top: 8%;
  bottom: 8%;
  width: 1px;
  left: 8%;
  transform: translateX(-50%);
  animation: np-loop-pen 12s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
.bp-pen .line {
  position: absolute;
  inset: 0;
  width: 3px;
  margin-left: -1px;
  background: var(--primary);
  box-shadow: 0 0 16px 3px rgba(35, 35, 255, 0.8);
}
.bp-pen .dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1rem;
  height: 1rem;
  transform: translate(-50%, -50%);
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 0 24px 8px rgba(35, 35, 255, 0.85);
}

.bp-label {
  position: absolute;
  font-family: 'Inter', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(35, 35, 255, 0.75);
  animation: np-loop-label 12s ease-in-out infinite;
}
.bp-label.br {
  bottom: 3%;
  right: 4%;
}
.bp-label.ang {
  top: 12%;
  right: 6%;
  font-size: 0.5rem;
}
.bp-label.dim {
  top: 1%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.5rem;
}

/* ---- Animation keyframes ---- */
@keyframes np-loop-grid {
  0% {
    opacity: 0;
  }
  3% {
    opacity: 0.3;
  }
  86% {
    opacity: 0.3;
  }
  96% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes np-loop-draw {
  0%,
  1% {
    stroke-dashoffset: 1;
  }
  9% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 0;
  }
}
@keyframes np-loop-draw2 {
  0%,
  4% {
    stroke-dashoffset: 1;
  }
  12% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 0;
  }
}
@keyframes np-loop-draw3 {
  0%,
  7% {
    stroke-dashoffset: 1;
  }
  15% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 0;
  }
}
@keyframes np-loop-draw4 {
  0%,
  9% {
    stroke-dashoffset: 1;
  }
  18% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 0;
  }
}
@keyframes np-loop-fade4 {
  0%,
  9% {
    opacity: 0;
  }
  18% {
    opacity: 0.4;
  }
  100% {
    opacity: 0.4;
  }
}
@keyframes np-loop-ink {
  0%,
  12% {
    clip-path: inset(0 100% 0 0);
  }
  40% {
    clip-path: inset(0 0 0 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}
@keyframes np-loop-pen {
  0%,
  11% {
    left: 8%;
    opacity: 0;
  }
  13% {
    left: 12%;
    opacity: 1;
  }
  40% {
    left: 92%;
    opacity: 1;
  }
  44% {
    left: 92%;
    opacity: 0;
  }
  100% {
    left: 92%;
    opacity: 0;
  }
}
@keyframes np-loop-label {
  0%,
  8% {
    opacity: 0;
  }
  16% {
    opacity: 0.75;
  }
  86% {
    opacity: 0.75;
  }
  96% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes np-loop-bp-layer {
  0% {
    opacity: 0;
  }
  2% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

/* ==========================================================================
   Cards / grids / sections
   ========================================================================== */
.section-head {
  max-width: 42rem;
}
.section-head h2 {
  margin-top: 1rem;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
}
.section-head p {
  margin-top: 1rem;
  color: var(--muted-foreground);
}

.grid {
  display: grid;
  gap: 1.25rem;
}
.grid-2 {
  grid-template-columns: 1fr;
}
.grid-3 {
  grid-template-columns: 1fr;
}
.grid-4 {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}
.card p {
  color: var(--muted-foreground);
  font-size: 0.95rem;
}
.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background: rgba(35, 35, 255, 0.12);
  color: var(--primary);
  margin-bottom: 1.1rem;
}

/* Division card with image */
.division {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  min-height: 22rem;
  display: flex;
  align-items: flex-end;
}
.division img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.division:hover img {
  transform: scale(1.05);
}
.division .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(14, 17, 22, 0.95),
    rgba(14, 17, 22, 0.35) 55%,
    rgba(14, 17, 22, 0.1)
  );
}
.division .body {
  position: relative;
  padding: 1.75rem;
}
.division .body h3 {
  font-size: 1.35rem;
  margin: 0.5rem 0;
}
.division .body p {
  color: #cdd3db;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.division .link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
}

/* Stats band (dark) */
.stats-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--card);
}
.stats-band .content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}
@media (min-width: 768px) {
  .stats-band .content {
    grid-template-columns: repeat(3, 1fr);
  }
}
.stats-band .val {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--primary);
}
.stats-band .lbl {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

/* Feature split */
.feature-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .feature-split {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-split.reverse .media {
    order: 2;
  }
  /* The intro column (image + copy + CTA) stays pinned while the
     taller card grid scrolls past, so the left side never runs empty. */
  .feature-aside {
    position: sticky;
    top: 6rem;
  }
}
.feature-aside .eyebrow {
  margin-top: 2rem;
}
.feature-aside h2 {
  margin-top: 0.75rem;
}
.feature-aside p {
  margin-top: 1rem;
}
.feature-aside-cta {
  margin-top: 1.75rem;
}
.feature-split .media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
}
.feature-split .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-label {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  z-index: 1;
}
.feature-split .media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--background), transparent 55%);
  pointer-events: none;
}

/* Dark process section */
.process-dark {
  background: oklch(0.15 0.013 264);
}
.process-note {
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}
.process-note a {
  color: var(--primary);
  font-weight: 600;
}
.process-note a:hover {
  text-decoration: underline;
}

/* Emergency response band */
.emergency-band {
  background: var(--primary);
  border-bottom: 1px solid var(--border);
}
.emergency-band .inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
@media (min-width: 640px) {
  .emergency-band .inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.emergency-msg {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--primary-foreground);
}
.emergency-msg p {
  font-size: 1.05rem;
  font-weight: 600;
}
.emergency-msg svg {
  width: 20px;
  height: 20px;
}

/* Client chips (about) */
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.chips li {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 0.375rem;
  padding: 0.625rem 1rem;
  font-size: 0.9rem;
  color: var(--foreground);
}
.lead-strong {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--foreground);
}

/* Primary stats band (safety) */
.primary-stats {
  background: var(--primary);
  border-bottom: 1px solid var(--border);
}
.primary-stats .container {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .primary-stats .container {
    grid-template-columns: repeat(3, 1fr);
  }
}
.primary-stats > .container > div {
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.primary-stats .val {
  font-family: var(--font-display, inherit);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--primary-foreground);
}
.primary-stats .lbl {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: color-mix(in oklch, var(--primary-foreground) 85%, transparent);
}

/* Safety quote */
.safety-quote .quote-mark {
  display: inline-block;
  color: var(--primary);
}
.safety-quote blockquote {
  margin-top: 1.5rem;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 500;
  line-height: 1.3;
  max-width: 60rem;
}
.safety-quote .attribution {
  margin-top: 2rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.feature-split h2 {
  margin-top: 1rem;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}
.feature-split p {
  margin-top: 1rem;
  color: var(--muted-foreground);
}
.feature-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--foreground);
}
.feature-list li svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  min-height: 24rem;
  display: flex;
  align-items: center;
}
.page-hero img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(14, 17, 22, 0.96),
    rgba(14, 17, 22, 0.7) 55%,
    rgba(14, 17, 22, 0.45)
  );
}
.page-hero .inner {
  position: relative;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.page-hero h1 {
  margin-top: 1rem;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  max-width: 20ch;
  text-wrap: balance;
}
.page-hero p {
  margin-top: 1.25rem;
  max-width: 40rem;
  color: #cdd3db;
  font-size: 1.05rem;
}

/* Emergency / primary band */
.primary-band {
  background: var(--primary);
  color: var(--primary-foreground);
}
.primary-band .content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}
@media (min-width: 900px) {
  .primary-band .content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.primary-band h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--primary-foreground);
}
.primary-band p {
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 40rem;
}

/* Process steps */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  counter-reset: step;
}
@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}
.step {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--card);
}
.step .num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary);
}
.step h3 {
  font-size: 1.05rem;
  margin: 0.75rem 0 0.5rem;
}
.step p {
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

/* Quote block */
.quote {
  border-left: 3px solid var(--primary);
  padding: 1.25rem 0 1.25rem 1.5rem;
  font-family: var(--font-display);
  text-transform: none;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.25;
}

/* CTA band (full width) */
.cta-band {
  background: var(--primary);
  color: var(--primary-foreground);
}
.cta-band .grid {
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .cta-band .grid {
    grid-template-columns: 1.4fr 1fr;
  }
}
.cta-band h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  color: var(--primary-foreground);
}
.cta-band p {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
}
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .cta-actions {
    flex-direction: row;
  }
}
@media (min-width: 1024px) {
  .cta-actions {
    flex-direction: column;
  }
}
@media (min-width: 1280px) {
  .cta-actions {
    flex-direction: row;
  }
}

/* ==========================================================================
   Contact form
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}
.info-row {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.info-row .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: rgba(35, 35, 255, 0.12);
  color: var(--primary);
}
.info-row .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-foreground);
}
.info-row a,
.info-row .value {
  color: var(--foreground);
  font-weight: 500;
}

.form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.field {
  margin-bottom: 1.1rem;
}
.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--foreground);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.95rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--ring);
  outline-offset: 1px;
  border-color: var(--ring);
}
.field textarea {
  min-height: 8rem;
  resize: vertical;
}
/* Honeypot: visually hidden, kept in the DOM for bots to trip on */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.form-error {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--destructive, #dc2626);
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--destructive, #dc2626) 12%, transparent);
  color: var(--destructive, #dc2626);
  font-size: 0.9rem;
}
.form-error a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}
.btn-solid:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 2.5rem 1.5rem;
}
.form-success svg {
  color: var(--primary);
}
.form-success.show {
  display: flex;
}
.form-success h3 {
  font-size: 1.3rem;
}
.form-success p {
  color: var(--muted-foreground);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1.2fr;
  }
}
.footer-brand img {
  height: 4rem;
  width: auto;
  margin-bottom: 1.5rem;
}
.footer-brand p {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  max-width: 24rem;
}
.footer-tag {
  margin-top: 1rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel, var(--muted-foreground));
}
.footer-24 {
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-col h4 {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-col a {
  color: var(--foreground);
  font-size: 0.9rem;
}
.footer-col a:hover {
  color: var(--primary);
}
.footer-contact div {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
  color: var(--foreground);
  font-size: 0.9rem;
}
.footer-contact svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.8rem;
}
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.mt-6 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 1rem;
}

/* ==========================================================================
   Scroll reveal — elements ease in as they enter the viewport.
   JS (main.js) adds .reveal on load and .in-view when intersecting.
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
