/* ============================================================
   Silverback Dev Studios — one-page site
   Tokens sampled from the supplied email-signature artwork.
   ============================================================ */

:root {
  --orange: #F58634;
  --orange-dark: #D9701F;
  --orange-glow: rgba(245, 134, 52, 0.35);

  --ink: #1B1A1B;        /* deepest page background */
  --charcoal: #29282A;   /* raised panels */
  --charcoal-2: #343133; /* brand charcoal, borders/panel-2 */
  --graphite: #4B4B4D;   /* borders, secondary panels */
  --mid-grey: #9A9A9C;   /* muted text on dark (lightened for contrast) */
  --mid-grey-raw: #818181;
  --silver: #E8E9EA;     /* primary body text on dark */
  --white: #FFFFFF;

  --font-display: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

  --wrap: 1180px;
  --radius: 3px;
  --border: 1px solid var(--graphite);
  --header-h: 88px; /* keep in sync with .site-header rendered height; used for anchor scroll offset */

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5.5rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--silver);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd, figure, blockquote { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -60px;
  background: var(--orange);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  border-radius: var(--radius);
  z-index: 1000;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Background texture ---------- */
.hex-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image:
    linear-gradient(30deg, var(--mid-grey-raw) 1px, transparent 1px),
    linear-gradient(150deg, var(--mid-grey-raw) 1px, transparent 1px),
    linear-gradient(90deg, var(--mid-grey-raw) 1px, transparent 1px);
  background-size: 64px 112px;
}

/* ---------- Typography ---------- */
h1, h2, h3, .brand-line, .eyebrow, .btn, .process-num, .service-index {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
h1 {
  font-size: clamp(2.4rem, 5.5vw + 1rem, 4rem);
  line-height: 1.05;
  font-weight: 600;
  color: var(--white);
}
h2 {
  font-size: clamp(1.7rem, 2.8vw + 0.8rem, 2.5rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
}
h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.03em;
}
.text-accent { color: var(--orange); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--orange);
  margin-bottom: 0.9rem;
}
.eyebrow-dash {
  width: 28px; height: 2px;
  background: var(--orange);
  display: inline-block;
}
.section-intro {
  max-width: 46ch;
  color: var(--mid-grey);
  font-size: 1.1rem;
  line-height: 1.65;
  margin-top: 0.9rem;
}
.placeholder-note {
  color: var(--orange);
  font-size: 0.9rem;
  font-style: italic;
}

.section-head { margin-bottom: var(--space-lg); text-align: center; }
.section-head .section-intro { margin-inline: auto; }
.section-head--left { text-align: left; }
.section-head--left .section-intro { margin-inline: 0; }

section { position: relative; z-index: 1; padding-block: var(--space-xl); }
section[id] { scroll-margin-top: var(--header-h); }

/* Safety net: if JS/IntersectionObserver never runs or a print/screenshot
   captures the page before reveal fires, content must never stay hidden. */
@media print {
  .service-card, .why-item, .testimonial-card, .testimonial-featured,
  .process-step, .problem-record {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  cursor: pointer;
  min-height: 44px;
}
.btn-primary {
  background: var(--orange);
  color: var(--ink);
}
.btn-primary:hover, .btn-primary:focus-visible { background: var(--orange-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--silver);
  border-color: var(--graphite);
}
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--orange); color: var(--orange); }
.btn-lg { padding: 1rem 2rem; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn-nav { display: none; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(27, 26, 27, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.55rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand-mark { width: 56px; height: auto; flex-shrink: 0; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-line {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.04em;
}
.brand-line--accent { color: var(--orange); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  border: var(--border);
  border-radius: var(--radius);
}
.nav-toggle-bar { width: 20px; height: 2px; background: var(--silver); margin-inline: auto; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav { display: flex; align-items: center; gap: 1.5rem; }
.primary-nav ul { display: flex; gap: 1.35rem; }
.primary-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--silver);
  position: relative;
  padding-block: 0.25rem;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width 0.2s ease;
}
.primary-nav a:hover::after, .primary-nav a:focus-visible::after { width: 100%; }
.btn-nav { display: inline-flex; }

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--charcoal);
    border-bottom: var(--border);
    padding: 1rem 1.5rem 1.5rem;
    transform-origin: top;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }
  .primary-nav.is-open { max-height: 400px; opacity: 1; padding-block: 1rem 1.5rem; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav li { border-bottom: 1px solid var(--graphite); }
  .primary-nav li:last-child { border-bottom: 0; }
  .primary-nav a { display: block; padding-block: 0.9rem; }
  .primary-nav .btn-nav { margin-top: 1rem; width: 100%; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: clamp(3rem, 6vw, 5.5rem); padding-bottom: var(--space-xl); }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-lede { color: var(--mid-grey); font-size: 1.2rem; line-height: 1.65; max-width: 52ch; margin-top: 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 1.5rem 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: var(--border);
}
.hero-stat dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mid-grey);
  margin-bottom: 0.3rem;
}
.hero-stat dd { margin: 0; font-size: 1rem; font-weight: 600; color: var(--silver); }

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.node-diagram { width: 100%; max-width: 460px; height: auto; overflow: visible; }

.node-lines line {
  stroke: var(--graphite);
  stroke-width: 1.5;
  stroke-dasharray: 4 6;
}
.node-lines line.is-primary {
  stroke: var(--mid-grey);
  stroke-width: 1.75;
  stroke-dasharray: none;
}
.arrow-head { fill: var(--mid-grey); }
.node-hex {
  fill: var(--charcoal-2);
  stroke: var(--graphite);
  stroke-width: 1.5;
}
.node-hex--center {
  fill: var(--ink);
  stroke: var(--orange);
  stroke-width: 2.5;
}
.node-ring {
  fill: none;
  stroke: var(--orange);
  stroke-width: 1;
  opacity: 0.3;
  animation: ring-breathe 4s ease-in-out infinite;
  transform-origin: 230px 230px;
}
@keyframes ring-breathe {
  0%, 100% { opacity: 0.18; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.035); }
}
@media (prefers-reduced-motion: reduce) {
  .node-ring { animation: none; }
}
.node-glyph {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  fill: var(--silver);
}
.node-glyph--center { fill: var(--orange); font-weight: 700; font-size: 16px; }

.node-lines line:not(.is-primary) { animation: dash-flow 3s linear infinite; }
@keyframes dash-flow { to { stroke-dashoffset: -20; } }
@media (prefers-reduced-motion: reduce) {
  .node-lines line { animation: none; }
}

/* Data pulse: travels hub → WEB, hub → API, hub → SYSTEM in sequence,
   giving the primary path (called out in the diagram's aria-label) a
   sense of flow rather than a purely radial layout. */
.node-pulse {
  fill: var(--orange);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse-travel 6s ease-in-out infinite;
}
.node-pulse--web { animation-delay: 0s; }
.node-pulse--api { animation-delay: 2s; }
.node-pulse--system { animation-delay: 4s; }
@keyframes pulse-travel {
  0%   { opacity: 0; transform: translate(0, 0); }
  8%   { opacity: 1; transform: translate(0, 0); }
  45%  { opacity: 1; transform: translate(var(--tx), var(--ty)); }
  55%  { opacity: 0; transform: translate(var(--tx), var(--ty)); }
  100% { opacity: 0; transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .node-pulse { animation: none; opacity: 0; }
}

.terminal-card {
  width: min(280px, 88%);
  background: var(--charcoal);
  border: 1px solid var(--graphite);
  border-radius: var(--radius);
  opacity: 0.92;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--graphite);
}
.terminal-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--graphite); }
.terminal-title { margin-left: 0.5rem; font-family: var(--font-mono); font-size: 0.7rem; color: var(--mid-grey); }
.terminal-body {
  margin: 0;
  padding: 0.9rem 0.9rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.65;
  color: var(--silver);
  overflow-x: auto;
}
.tk-com { color: var(--mid-grey); }
.tk-key { color: var(--orange); }
.tk-fn { color: #8fd0ff; }
.tk-str { color: #a8e0a0; }
.terminal-cursor { color: var(--orange); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .terminal-cursor { animation: none; } }

/* ============================================================
   SERVICES
   ============================================================ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  counter-reset: svc-count;
}
.service-card {
  background: var(--charcoal);
  border: var(--border);
  border-radius: var(--radius);
  padding: 2.1rem 1.75rem;
  position: relative;
  overflow: hidden;
  counter-increment: svc-count;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.service-card:hover { border-color: var(--orange); transform: translateY(-3px); }
.service-card::after {
  content: counter(svc-count, decimal-leading-zero);
  position: absolute;
  top: -0.5rem;
  right: 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 5.25rem;
  line-height: 1;
  color: var(--graphite);
  opacity: 0.22;
  z-index: 0;
  pointer-events: none;
}
.service-index,
.service-card h3,
.service-card p {
  position: relative;
  z-index: 1;
}
.service-index {
  display: block;
  font-size: 0.85rem;
  color: var(--orange);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.service-card h3 { margin-bottom: 0.7rem; }
.service-card p { color: var(--mid-grey); font-size: 1rem; line-height: 1.6; }

/* ============================================================
   TECH INDEX
   ============================================================ */
.tech-index {
  padding-block: var(--space-lg);
  border-block: var(--border);
  background: var(--charcoal);
}
.tech-index-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--mid-grey);
  margin-bottom: 1.1rem;
  letter-spacing: 0.02em;
}
.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.7rem;
}
.tech-list li {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--silver);
  border: 1px solid var(--graphite);
  border-radius: var(--radius);
  padding: 0.45rem 0.85rem;
}

/* ============================================================
   WHY
   ============================================================ */
.why-inner { max-width: 980px; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem 2.5rem;
}
.why-item {
  border-left: 2px solid var(--graphite);
  padding-left: 1.25rem;
  transition: border-color 0.2s ease;
}
.why-item:hover { border-color: var(--orange); }
.why-item h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.why-item p { color: var(--mid-grey); font-size: 1rem; line-height: 1.6; }

/* ============================================================
   SELECTED PROBLEMS (real-world engineering records)
   ============================================================ */
.problems-list { border-top: var(--border); }
.problem-record {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem 2rem;
  padding-block: 2.5rem;
  border-bottom: var(--border);
}
.problem-head { display: flex; flex-direction: column; gap: 0.6rem; }
.problem-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.75rem;
  line-height: 1;
  color: var(--graphite);
}
.problem-context {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange);
  font-weight: 600;
  line-height: 1.4;
}
.problem-body h3 { margin-bottom: 1.25rem; }
.problem-fields {
  display: grid;
  gap: 1.1rem;
  max-width: 62ch;
}
.problem-field dt {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mid-grey);
  margin-bottom: 0.25rem;
}
.problem-field dd {
  color: var(--silver);
  font-size: 1rem;
  line-height: 1.6;
}
.problem-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.5rem;
}
.problem-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.problem-tags li {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--mid-grey);
  border: 1px solid var(--graphite);
  border-radius: var(--radius);
  padding: 0.3rem 0.65rem;
}
.problem-note {
  font-size: 0.85rem;
  color: var(--mid-grey);
  font-style: italic;
}

@media (max-width: 640px) {
  .problem-record { grid-template-columns: 1fr; gap: 1rem; padding-block: 2rem; }
  .problem-head { flex-direction: row; align-items: baseline; gap: 0.75rem; }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-featured {
  position: relative;
  max-width: 780px;
  margin: 0 auto 3rem;
  padding-left: clamp(1.5rem, 4vw, 2.25rem);
  border-left: 3px solid var(--orange);
}
.quote-mark {
  color: var(--orange);
  font-weight: 700;
}
.testimonial-featured blockquote p {
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  line-height: 1.5;
  color: var(--white);
  font-weight: 400;
}
.testimonial-featured .testimonial-attribution {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--graphite);
  width: fit-content;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.testimonial-card {
  background: var(--charcoal);
  border: var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.testimonial-card blockquote p { color: var(--silver); font-size: 1rem; line-height: 1.6; }
.testimonial-attribution { display: block; margin-top: 1.25rem; }
.t-name {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  color: var(--white);
  font-size: 0.92rem;
}
.t-meta { display: block; color: var(--mid-grey); font-size: 0.82rem; margin-top: 0.3rem; }
.t-role {
  font-family: var(--font-body);
  text-transform: none;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--mid-grey);
  letter-spacing: normal;
}

/* ============================================================
   PROCESS
   ============================================================ */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: proc-count;
}
.process-step {
  position: relative;
  padding-top: 0.5rem;
  overflow: hidden;
  counter-increment: proc-count;
}
.process-step::after {
  content: counter(proc-count, decimal-leading-zero);
  position: absolute;
  top: -0.75rem;
  left: -0.15rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--graphite);
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
}
.process-num, .process-step h3, .process-step p {
  position: relative;
  z-index: 1;
}
.process-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.6rem;
  left: 100%;
  width: 1.5rem;
  height: 1px;
  background: var(--graphite);
  display: none;
}
.process-num {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--orange);
  border: 1px solid var(--orange);
  border-radius: var(--radius);
  padding: 0.25rem 0.6rem;
  margin-bottom: 1rem;
}
.process-step h3 { margin-bottom: 0.5rem; }
.process-step p { color: var(--mid-grey); font-size: 1rem; line-height: 1.6; }

@media (min-width: 700px) {
  .process-list li:not(:last-child)::after { display: block; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--charcoal); border-top: var(--border); position: relative; overflow: hidden; }

.contact-brandmark {
  position: absolute;
  top: 50%;
  right: -2%;
  transform: translateY(-50%);
  width: min(50vw, 660px);
  aspect-ratio: 6 / 7;
  z-index: 0;
  pointer-events: none;
}
.contact-brandmark svg { width: 100%; height: 100%; display: block; }
.brandmark-hex { fill: none; }
.brandmark-hex--outer { stroke: var(--graphite); stroke-width: 1.75; opacity: 0.55; }
.brandmark-hex--inner { stroke: var(--orange); stroke-width: 1.75; opacity: 0.32; }

.contact-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-copy h2 { max-width: 16ch; }
.contact-details { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.1rem; }
.contact-details li { display: flex; flex-direction: column; gap: 0.25rem; }
.contact-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mid-grey);
}
.contact-details a {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--orange);
  width: fit-content;
}
.contact-details a:hover, .contact-details a:focus-visible { text-decoration: underline; }
.contact-details span { font-size: 1.05rem; }

.contact-form {
  background: var(--ink);
  border: var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.form-row { margin-bottom: 1.25rem; }
.form-row label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--silver);
  margin-bottom: 0.45rem;
}
.optional { color: var(--mid-grey); font-weight: 400; text-transform: none; }
.form-row input, .form-row textarea {
  width: 100%;
  background: var(--charcoal);
  border: 1px solid var(--graphite);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  color: var(--white);
  min-height: 44px;
  transition: border-color 0.15s ease;
}
.form-row textarea { resize: vertical; min-height: 110px; }
.form-row input:focus, .form-row textarea:focus {
  border-color: var(--orange);
  outline: none;
}
.form-row input[aria-invalid="true"], .form-row textarea[aria-invalid="true"] {
  border-color: #e0574c;
}
.field-error {
  color: #ff8478;
  font-size: 0.82rem;
  margin-top: 0.4rem;
}
.form-note { margin-top: 1rem; font-size: 0.85rem; color: var(--orange); min-height: 1.2em; }
.form-note[data-state="error"] { color: #ff8478; }
.form-note[data-state="success"] { color: #7cc98f; }

/* Honeypot: off-screen (not display:none — simple bots skip that), never
   reachable by keyboard, hidden from assistive tech and real visitors. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { border-top: var(--border); padding-block: var(--space-lg); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand--footer .brand-mark { width: 34px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-nav a { font-size: 0.9rem; color: var(--mid-grey); }
.footer-nav a:hover, .footer-nav a:focus-visible { color: var(--orange); }
.footer-meta { text-align: right; font-size: 0.8rem; color: var(--mid-grey); }
.footer-meta p { margin: 0.15rem 0; }
.footer-location { color: var(--mid-grey); }
.footer-tagline { color: var(--graphite); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 380px; margin-inline: auto; margin-top: 1rem; }
  .contact-inner { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .contact-brandmark {
    top: -6%;
    right: -12%;
    transform: none;
    width: min(78vw, 460px);
  }
}

@media (max-width: 640px) {
  :root { --space-xl: 3.5rem; --space-lg: 2.25rem; }
  .wrap { padding-inline: 1.25rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .process-step::after { font-size: 3.5rem; }
  .terminal-card { width: 100%; }
  .brand-mark { width: 46px; }
  .footer-inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .footer-meta { text-align: left; }
  .contact-brandmark { width: min(85vw, 340px); opacity: 0.7; }
}
