/* ==========================================================================
   Dropship Labs — dropshiplabs.io
   Single stylesheet. No frameworks, no external fonts, no build step.

   CONTENTS
   01. Design tokens          06. Services
   02. Reset & base           07. Process
   03. Layout primitives      08. About
   04. Header & navigation    09. Why choose us
   05. Hero                   10. Contact & form
                              11. Footer
                              12. Legal pages
                              13. Responsive
                              14. Reduced motion & print
   ========================================================================== */


/* ===== 01. DESIGN TOKENS =================================================
   To re-skin the site, change the values in this block only.
   ========================================================================= */
:root {
  /* Surfaces — near-black navy base, lifting slightly for each layer */
  --ink:          #070B14;
  --ink-2:        #0A101D;
  --surface:      #0D1424;
  --surface-2:    #131C31;
  --line:         rgba(255, 255, 255, 0.09);
  --line-strong:  rgba(255, 255, 255, 0.16);

  /* Type */
  --text:         #F2F5FA;
  --text-muted:   #97A3BA;
  --text-dim:     #6E7B92;

  /* Accents — electric blue → cyan → blue-purple */
  --accent:       #3D7BFF;
  --accent-2:     #22D3EE;
  --accent-3:     #8B5CF6;
  --accent-soft:  rgba(61, 123, 255, 0.14);
  --gradient:     linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 52%, var(--accent-3) 100%);

  /* Feedback */
  --danger:       #FF7B72;
  --notice:       #FFC46B;

  /* Type stacks: grotesque display, system body, mono utility layer */
  --font-display: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont,
                  "Helvetica Neue", Arial, sans-serif;
  --font-body:    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                  "Helvetica Neue", Arial, sans-serif;
  --font-mono:    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
                  "Liberation Mono", monospace;

  /* Spacing & shape */
  --container:    1200px;
  --gutter:       clamp(1.25rem, 4vw, 2.5rem);
  --section-y:    clamp(4.5rem, 9vw, 8rem);
  --radius-sm:    10px;
  --radius:       16px;
  --radius-lg:    24px;

  /* Elevation */
  --shadow:       0 18px 48px rgba(0, 0, 0, 0.45);
  --shadow-glow:  0 0 0 1px rgba(61, 123, 255, 0.18), 0 20px 60px rgba(61, 123, 255, 0.10);

  /* Motion */
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
  --speed:        0.32s;
}


/* ===== 02. RESET & BASE ================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Sticky header height + breathing room, so anchors never land under the bar */
  scroll-padding-top: 6.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;            /* guards against any stray wide child */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 0.6em;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; }
img { height: auto; display: block; }

ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

button, input, select, textarea { font: inherit; color: inherit; }

/* Visible focus for every interactive element */
:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(34, 211, 238, 0.3); color: #fff; }

.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.4rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  transition: top var(--speed) var(--ease);
}
.skip-link:focus { top: 0; text-decoration: none; }


/* ===== 03. LAYOUT PRIMITIVES ============================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}
.section-alt { background: var(--ink-2); }

.section-head {
  max-width: 44rem;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.section-title {
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  margin-bottom: 0.5em;
}

.section-lede {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  margin: 0;
}

/* Mono eyebrow — the utility type layer that runs through the whole site */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 1rem;
}
.section-head .eyebrow { justify-content: center; }

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px 1px rgba(34, 211, 238, 0.7);
  flex-shrink: 0;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.4vw, 2rem);
}

.card-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}

/* Buttons */
.btn {
  --btn-py: 0.95rem;
  --btn-px: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;                 /* comfortable tap target */
  padding: var(--btn-py) var(--btn-px);
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.975rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease),
              background-color var(--speed) var(--ease),
              border-color var(--speed) var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gradient);
  background-size: 180% 180%;
  color: #fff;
  box-shadow: 0 10px 30px rgba(61, 123, 255, 0.28);
}
.btn-primary:hover {
  box-shadow: 0 14px 38px rgba(61, 123, 255, 0.42);
  animation: gradientShift 4s var(--ease) infinite;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(34, 211, 238, 0.55);
}

.btn-compact { --btn-py: 0.7rem; --btn-px: 1.25rem; min-height: 42px; font-size: 0.9rem; }
.btn-block { width: 100%; }

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

/* Scroll reveal — the .is-visible class is added by script.js */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }


/* ===== 04. HEADER & NAVIGATION ========================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 20, 0.72);
  border-bottom: 1px solid transparent;
  transition: background-color var(--speed) var(--ease),
              border-color var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease);
}
@supports (backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px)) {
  .site-header {
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
  }
}
/* .is-scrolled is toggled by script.js */
.site-header.is-scrolled {
  background: rgba(7, 11, 20, 0.94);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration: none;
  flex-shrink: 0;
  min-height: 44px;                 /* comfortable tap target */
}
.logo:hover { text-decoration: none; }
.logo-mark { display: inline-flex; line-height: 0; }
.logo-text { white-space: nowrap; }

/* "Labs" carries the accent treatment */
.logo-accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-left: 0.28em;
}
/* Fallback if background-clip:text is unsupported */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .logo-accent { color: var(--accent-2); background: none; }
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.4rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--speed) var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--speed) var(--ease);
}
.nav-link:hover,
.nav-link.is-active { color: var(--text); text-decoration: none; }
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }

/* Hamburger — hidden on desktop, shown at 900px and below */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle-bars {
  position: relative;
  display: block;
  width: 20px;
  height: 14px;
}
.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform var(--speed) var(--ease), opacity 0.18s linear;
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 6px; }
.nav-toggle-bars span:nth-child(3) { top: 12px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }


/* ===== 05. HERO ========================================================= */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(4rem, 8vw, 7.5rem);
  overflow: hidden;                 /* contains the glow, prevents overflow */
}

/* Soft ambient glow — used once, deliberately */
.hero-glow {
  position: absolute;
  top: -22%;
  right: -12%;
  width: min(760px, 105vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle,
              rgba(61, 123, 255, 0.20) 0%,
              rgba(139, 92, 246, 0.11) 42%,
              transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.hero-title {
  font-size: clamp(2.1rem, 5.4vw, 4rem);
  letter-spacing: -0.035em;
  margin-bottom: 0.45em;
}

.hero-lede {
  max-width: 34rem;
  color: var(--text-muted);
  font-size: clamp(1.02rem, 1.55vw, 1.2rem);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.hero-credibility {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0;
}

/* --- Signature element: the connected-system console --- */
.hero-visual { position: relative; min-width: 0; }

.console {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), var(--shadow-glow);
  overflow: hidden;
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
}
.console-dots { display: inline-flex; gap: 6px; }
.console-dots i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.console-dots i:first-child { background: rgba(61, 123, 255, 0.75); }
.console-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  color: var(--text-dim);
}

.console-body {
  padding: clamp(0.75rem, 2vw, 1.5rem);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 34px 34px;
}

.node-map { display: block; width: 100%; height: auto; }

.node-map .edges-ring path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.11);
  stroke-width: 1.25;
}

.node-map .edges-spoke path {
  fill: none;
  stroke: url(#edgeGrad);
  stroke-width: 1.9;
  stroke-opacity: 0.85;
  stroke-dasharray: 7 13;
  animation: signalFlow 2.6s linear infinite;
}
.node-map .edges-spoke path:nth-child(2) { animation-delay: -0.5s; }
.node-map .edges-spoke path:nth-child(3) { animation-delay: -1.0s; }
.node-map .edges-spoke path:nth-child(4) { animation-delay: -1.5s; }
.node-map .edges-spoke path:nth-child(5) { animation-delay: -2.0s; }

@keyframes signalFlow { to { stroke-dashoffset: -40; } }

.node-map .node {
  fill: var(--ink);
  stroke: var(--accent-2);
  stroke-width: 2;
}
.node-map .hub {
  fill: var(--ink);
  stroke: url(#edgeGrad);
  stroke-width: 2.4;
}
.node-map .hub-core { fill: var(--accent-2); }
.node-map .hub-glow { animation: hubPulse 3.4s ease-in-out infinite; transform-origin: 300px 225px; }

@keyframes hubPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.94); }
  50%      { opacity: 1;    transform: scale(1.06); }
}

.node-map .node-labels text {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  fill: var(--text-dim);
}
.node-map .node-labels .hub-label { fill: var(--text); font-size: 12.5px; }


/* ===== 06. SERVICES ===================================================== */
.services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.service-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform var(--speed) var(--ease),
              border-color var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease);
}
/* Gradient hairline that lights up on hover */
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--speed) var(--ease);
}
.service-card:hover,
.service-card:focus-within {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.service-card:hover::before,
.service-card:focus-within::before { opacity: 1; }

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(61, 123, 255, 0.28);
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-2);
}
.service-icon svg { width: 25px; height: 25px; }

.service-title { font-size: 1.25rem; margin-bottom: 0.55rem; }

.service-copy {
  color: var(--text-muted);
  font-size: 0.965rem;
  margin-bottom: 1.35rem;
}

.feature-list {
  display: grid;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--gradient);
}


/* ===== 07. PROCESS ====================================================== */
.process-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.process-step {
  position: relative;
  padding: clamp(1.5rem, 2.4vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.process-step:hover { transform: translateY(-5px); border-color: var(--line-strong); }

/* Connector line between steps (desktop only — see responsive block) */
.process-step::after {
  content: "";
  position: absolute;
  top: 3.15rem;
  right: calc(-1 * clamp(1rem, 2vw, 1.5rem) - 1px);
  width: clamp(1rem, 2vw, 1.5rem);
  height: 1px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.55), rgba(34, 211, 238, 0.05));
}
.process-step:last-child::after { display: none; }

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.15rem;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.08);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent-2);
}

.step-title { font-size: 1.15rem; margin-bottom: 0.45rem; }
.step-body p { color: var(--text-muted); font-size: 0.945rem; margin: 0; }


/* ===== 08. ABOUT ======================================================== */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 4.5vw, 4rem);
}

.about-copy { color: var(--text-muted); }
.about-copy .section-title { color: var(--text); }

.about-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  padding: clamp(1rem, 2vw, 1.75rem);
  box-shadow: var(--shadow);
}
.about-figure img { width: 100%; height: auto; border-radius: var(--radius); }

/* Value cards run the full width beneath the two columns */
.value-grid {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(1rem, 2vw, 1.5rem);
}

.value-card { transition: transform var(--speed) var(--ease), border-color var(--speed) var(--ease); }
.value-card:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.value-title { font-size: 1.1rem; margin-bottom: 0.5rem; }
.value-card p { color: var(--text-muted); font-size: 0.945rem; margin: 0; }


/* ===== 09. WHY CHOOSE US ================================================ */
.why-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--ink) 0%, #0A1220 45%, var(--ink) 100%);
  border-block: 1px solid var(--line);
}

.why-glow {
  position: absolute;
  left: 50%;
  bottom: -45%;
  transform: translateX(-50%);
  width: min(1000px, 130vw);
  aspect-ratio: 2 / 1;
  background: radial-gradient(ellipse at center,
              rgba(139, 92, 246, 0.16) 0%,
              rgba(34, 211, 238, 0.07) 45%,
              transparent 70%);
  pointer-events: none;
}

.why-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.why-quote {
  margin: 2rem 0 0;
  padding: 1.5rem 0 0 1.5rem;
  border-left: 2px solid transparent;
  border-image: var(--gradient) 1;
}
.why-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.1vw, 1.5rem);
  line-height: 1.42;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}

.why-list { display: grid; gap: 0.85rem; }

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.05rem 1.25rem;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.975rem;
  transition: transform var(--speed) var(--ease),
              background-color var(--speed) var(--ease),
              border-color var(--speed) var(--ease);
}
.why-item:hover {
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(34, 211, 238, 0.32);
}

/* Checkmark drawn in CSS — no icon file needed */
.why-check {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 0.15rem;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(34, 211, 238, 0.42);
}
.why-check::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  width: 5px;
  height: 9px;
  border: solid var(--accent-2);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}


/* ===== 10. CONTACT & FORM =============================================== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: start;
}

.contact-direct {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
}
.contact-email {
  display: inline-block;
  padding-block: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent-2);
  word-break: break-word;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.field { display: flex; flex-direction: column; min-width: 0; }
.field-full { grid-column: 1 / -1; }

.field label {
  margin-bottom: 0.45rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}
.req { color: var(--accent-2); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.975rem;
  transition: border-color var(--speed) var(--ease),
              background-color var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.55; }

.field select {
  appearance: none;
  -webkit-appearance: none;
  /* Inline chevron: a data URI, so no extra HTTP request */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2397A3BA' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
  padding-right: 2.6rem;
  cursor: pointer;
}
.field select option { background: var(--surface-2); color: var(--text); }

.field input::placeholder,
.field textarea::placeholder { color: var(--text-dim); }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(255, 255, 255, 0.26); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
}
/* Keyboard users still get the standard ring */
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* Invalid state — set by script.js, not by :invalid, so errors only
   appear after the visitor has actually tried to submit. */
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--danger); }

.field-hint {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.field-error {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--danger);
  min-height: 0;
}
.field-error:empty { display: none; }

/* Honeypot — off-screen but not display:none, so bots still fill it */
.field-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-footer { display: grid; gap: 1rem; }

.form-status {
  margin: 0;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.55;
  border: 1px solid transparent;
}
.form-status:empty { display: none; }

.form-status[data-state="notice"] {
  background: rgba(255, 196, 107, 0.09);
  border-color: rgba(255, 196, 107, 0.34);
  color: #FFD79A;
}
.form-status[data-state="error"] {
  background: rgba(255, 123, 114, 0.09);
  border-color: rgba(255, 123, 114, 0.34);
  color: #FFA7A1;
}
.form-status[data-state="success"] {
  background: rgba(34, 211, 238, 0.09);
  border-color: rgba(34, 211, 238, 0.34);
  color: #9EEAF7;
}
.form-status a { color: inherit; text-decoration: underline; }

button[disabled] { opacity: 0.6; cursor: progress; }


/* ===== 11. FOOTER ======================================================= */
.site-footer {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 2fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.footer-desc {
  max-width: 30rem;
  margin: 1.15rem 0;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.footer-email {
  display: inline-block;
  padding-block: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-2);
  word-break: break-word;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.footer-heading {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.footer-col ul { display: grid; gap: 0.15rem; }
.footer-col a {
  display: inline-block;
  padding-block: 0.4rem;          /* keeps the tap target above 24px */
  color: var(--text-muted);
  font-size: 0.925rem;
  text-decoration: none;
  transition: color var(--speed) var(--ease);
}
.footer-col a:hover { color: var(--accent-2); text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}
.footer-bottom p { margin: 0; font-size: 0.85rem; color: var(--text-dim); }
.footer-domain { font-family: var(--font-mono); letter-spacing: 0.06em; }


/* ===== 12. LEGAL PAGES ================================================== */
.legal-hero {
  padding-block: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}
.legal-title { font-size: clamp(1.9rem, 4.2vw, 3rem); margin-bottom: 0.4em; }

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.legal-body {
  max-width: 52rem;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  color: var(--text-muted);
}
.legal-body h2 {
  margin-top: 2.75rem;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  color: var(--text);
}
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body h3 {
  margin-top: 1.75rem;
  font-size: 1.05rem;
  color: var(--text);
}
.legal-body ul { display: grid; gap: 0.55rem; margin: 0 0 1.1rem; }
.legal-body ul li {
  position: relative;
  padding-left: 1.4rem;
}
.legal-body ul li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
}

/* Placeholder chips — every spot needing your real business details */
.ph {
  display: inline-block;
  padding: 0.1em 0.5em;
  border: 1px dashed rgba(255, 196, 107, 0.5);
  border-radius: 6px;
  background: rgba(255, 196, 107, 0.08);
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--notice);
  white-space: nowrap;
}

.legal-callout {
  margin: 0 0 2.5rem;
  padding: 1.15rem 1.35rem;
  background: rgba(255, 196, 107, 0.07);
  border: 1px solid rgba(255, 196, 107, 0.3);
  border-radius: var(--radius);
  color: #FFD79A;
  font-size: 0.9rem;
}
.legal-callout strong { color: #FFE3B8; }

.legal-toc {
  margin: 0 0 2.5rem;
  padding: 1.35rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.legal-toc h2 {
  margin: 0 0 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.legal-toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.1rem 1.5rem;
  counter-reset: toc;
}
.legal-toc li { counter-increment: toc; font-size: 0.9rem; }
.legal-toc li::before {
  content: counter(toc, decimal-leading-zero) " ";
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-right: 0.4rem;
}
.legal-toc a {
  display: inline-block;
  padding-block: 0.35rem;
  color: var(--text-muted);
}
.legal-toc a:hover { color: var(--accent-2); }


/* ===== 13. RESPONSIVE =================================================== */

/* Large tablet / small laptop */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Connector only makes sense between steps on the same row */
  .process-step:nth-child(2)::after { display: none; }
}

/* Tablet — collapse navigation into the hamburger menu */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 var(--gutter);
    background: rgba(8, 12, 22, 0.985);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);

    /* Closed by default: collapsed, faded, and removed from the tab order */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.34s var(--ease),
                opacity 0.24s var(--ease),
                visibility 0s linear 0.34s,
                padding 0.34s var(--ease);
  }
  @supports (backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px)) {
    .primary-nav { -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  }

  .primary-nav.is-open {
    max-height: calc(100vh - 74px);
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
    padding-block: 1rem 1.5rem;
    transition: max-height 0.34s var(--ease),
                opacity 0.24s var(--ease),
                visibility 0s linear 0s,
                padding 0.34s var(--ease);
  }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--line); }

  .nav-link {
    display: block;
    padding: 1rem 0.25rem;   /* generous tap target */
    font-size: 1.02rem;
  }
  .nav-link::after { display: none; }
  .nav-link.is-active { color: var(--accent-2); }

  .nav-cta { margin-top: 1.25rem; width: 100%; }

  /* Hero stacks: copy first, visual below */
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { text-align: left; }
  .hero-lede { max-width: none; }

  .about-grid,
  .why-inner,
  .contact-grid { grid-template-columns: minmax(0, 1fr); }

  /* Visual order matches DOM order: heading and copy lead, diagram supports. */
  .about-figure { max-width: 34rem; }
  .value-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}

/* Small tablet / large phone */
@media (max-width: 720px) {
  .services-grid,
  .process-track,
  .value-grid { grid-template-columns: minmax(0, 1fr); }

  /* Vertical connector between stacked steps */
  .process-step::after {
    top: auto;
    right: auto;
    left: 2.55rem;
    bottom: calc(-1 * clamp(1rem, 2vw, 1.5rem) - 1px);
    width: 1px;
    height: clamp(1rem, 2vw, 1.5rem);
    background: linear-gradient(180deg, rgba(34, 211, 238, 0.55), rgba(34, 211, 238, 0.05));
  }
  .process-step:nth-child(2)::after { display: block; }
  .process-step:last-child::after { display: none; }

  .contact-form { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-toc ol { grid-template-columns: minmax(0, 1fr); }
}

/* Phone — 375px reference width */
@media (max-width: 520px) {
  :root { --section-y: clamp(3.5rem, 12vw, 4.5rem); }

  /* Keep the headline from dominating a small screen */
  .hero-title { font-size: clamp(1.85rem, 8.5vw, 2.35rem); }
  .hero { padding-block: 2.5rem 3.5rem; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  .hero-credibility { font-size: 0.72rem; letter-spacing: 0.1em; }

  .console-body { padding: 0.5rem; }
  .node-map .node-labels text { font-size: 15px; }  /* readable when scaled down */

  .why-quote { padding-left: 1.15rem; }
  .footer-nav { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { justify-content: flex-start; }
}

/* Very large screens — cap the container, let the type breathe */
@media (min-width: 1600px) {
  :root { --container: 1320px; }
}


/* ===== 14. REDUCED MOTION & PRINT ====================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  /* Content must never be left hidden by a suppressed animation */
  .reveal { opacity: 1 !important; transform: none !important; }

  .btn:hover,
  .service-card:hover,
  .process-step:hover,
  .value-card:hover,
  .why-item:hover { transform: none; }

  .node-map .edges-spoke path { animation: none; stroke-dasharray: none; stroke-opacity: 0.6; }
  .node-map .hub-glow { animation: none; opacity: 0.7; }
}

@media print {
  .site-header, .hero-visual, .skip-link, .btn { display: none; }
  body { background: #fff; color: #000; }
  .card, .process-step { border-color: #ccc; }
}
