/* ==========================================================================
   Randela Labs: site styles
   ========================================================================== */

:root {
  /* Brand (from the logo) */
  --brand-dark: #27303b;
  --accent: #da6d2b;
  --accent-ink: #161b23;
  --accent-text: #b4521a;
  --accent-soft: #c6d0dc;

  /* Dark surfaces: deep navy */
  --bg-dark: #12171f;
  --bg-dark-2: #171e28;
  --surface-dark: #1f2833;
  --line-dark: rgba(160, 172, 190, 0.16);
  --text-on-dark: #eef1f5;
  --muted-on-dark: #a3adbb;

  /* Light surfaces */
  --paper: #ffffff;
  --tint: #f5f6f8;
  --ink: #1d2531;
  --muted: #566172;
  --line: #e3e7ec;

  /* Type */
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;
  --gutter: 20px;
  --header-h: 68px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 15px/1 var(--font-body);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 6px 24px -8px rgba(218, 109, 43, 0.6);
}
.btn-primary:hover { background: #e8813f; }

.btn-ghost {
  border-color: var(--line-dark);
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { border-color: rgba(231, 236, 245, 0.4); }

.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(18, 23, 31, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--text-on-dark);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo { display: block; height: 34px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) {
  font-size: 15px;
  color: var(--muted-on-dark);
  transition: color 0.2s ease;
}
.site-nav a:not(.btn):hover { color: var(--text-on-dark); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-on-dark);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 85% 10%, rgba(218, 109, 43, 0.13), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(39, 48, 59, 0.75), transparent 60%),
    var(--bg-dark);
  color: var(--text-on-dark);
  padding: 88px 0 96px;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(160, 172, 190, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 172, 190, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font: 500 13px/1.4 var(--font-mono);
  color: var(--muted-on-dark);
  margin-bottom: 24px;
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(218, 109, 43, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(36px, 5.2vw, 60px);
  font-weight: 700;
  letter-spacing: -0.035em;
  max-width: 14ch;
}
.hero h1 .accent { color: var(--accent); }

.lead {
  margin-top: 22px;
  max-width: 54ch;
  font-size: 18px;
  color: var(--muted-on-dark);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-assure {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}
.hero-assure li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--muted-on-dark);
}
.hero-assure li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(218, 109, 43, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%23ec8f4f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Hero stack visual */

.hero-visual { position: relative; }

.stack-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 30px;
}

.sv-layer {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line-dark);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.8);
  animation: layer-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(0.12s * var(--i));
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.sv-layer:hover { border-color: rgba(218, 109, 43, 0.5); transform: translateX(4px); }

/* Node on the signal line */
.sv-layer::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--layer-color, var(--accent));
}
.sv-layer:nth-child(1) { --layer-color: #da6d2b; }
.sv-layer:nth-child(2) { --layer-color: #ec8f4f; }
.sv-layer:nth-child(3) { --layer-color: #f4b383; }
.sv-layer:nth-child(4) { --layer-color: #8d9fb8; }
.sv-layer:nth-child(5) { --layer-color: #c6d0dc; }

.sv-tag {
  font: 500 12px/1 var(--font-mono);
  color: var(--layer-color);
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}
.sv-layer strong { font-family: var(--font-head); font-size: 17px; font-weight: 600; }
.sv-layer em {
  font: normal 12.5px/1.3 var(--font-mono);
  color: var(--muted-on-dark);
  text-align: right;
}

.sv-signal {
  position: absolute;
  left: 4px;
  top: 26px;
  bottom: 26px;
  width: 2px;
  background: linear-gradient(var(--accent), #ec8f4f, #f4b383, #8d9fb8, var(--accent-soft));
  opacity: 0.45;
  border-radius: 2px;
}
.sv-signal span {
  position: absolute;
  left: -3px;
  width: 8px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(transparent, #fff);
  box-shadow: 0 0 14px 2px rgba(218, 109, 43, 0.7);
  animation: packet 3.2s ease-in-out infinite;
}

.sv-log {
  margin: 18px 0 0 30px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px dashed var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font: 12.5px/1.5 var(--font-mono);
  color: var(--muted-on-dark);
}
.sv-log b { color: #ec8f4f; font-weight: 500; }
.sv-log .ok { color: var(--accent); }

/* ---------- Tech strip ---------- */

.tech-strip {
  background: var(--bg-dark-2);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: 18px 0;
  overflow: hidden;
}
.marquee {
  display: flex;
  width: max-content;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 40px;
  padding-right: 40px;
  animation: marquee 48s linear infinite;
}
.marquee-track span {
  font: 500 14px/1 var(--font-mono);
  color: var(--muted-on-dark);
  white-space: nowrap;
}
.marquee-track span::before { content: "◆"; margin-right: 40px; color: rgba(218, 109, 43, 0.5); font-size: 9px; vertical-align: 2px; }
.tech-strip:hover .marquee-track { animation-play-state: paused; }

/* ---------- Sections ---------- */

.section { padding: 104px 0; }
.section-dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section-tint { background: var(--tint); }

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin: 0; text-align: left; }
.section-head h2,
.stack-copy h2,
.contact-copy h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700;
}
.section-sub { margin-top: 16px; font-size: 17px; color: var(--muted); }
.section-head.left .btn { margin-top: 28px; }

.kicker {
  font: 500 13px/1 var(--font-mono);
  color: var(--accent-text);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.section-dark .kicker { color: var(--accent); }

/* ---------- Services ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  position: relative;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.service-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--accent), #ec8f4f);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.service-card:hover {
  border-color: #d5dbe3;
  box-shadow: 0 24px 48px -28px rgba(18, 23, 31, 0.3);
  transform: translateY(-3px);
}
.service-card:hover::after { opacity: 1; }

.service-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--bg-dark-2);
  margin-bottom: 22px;
}
.service-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 { font-size: 23px; font-weight: 600; }
.service-pitch { margin-top: 10px; color: var(--muted); }

.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checks li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(218, 109, 43, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%23b4521a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.fit {
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--tint);
  font-size: 14.5px;
  color: var(--ink);
}
.fit b { color: var(--accent-text); font-weight: 600; margin-right: 2px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.tags span {
  font: 500 12px/1 var(--font-mono);
  padding: 7px 10px;
  border-radius: 6px;
  background: var(--tint);
  color: #3a4454;
}

/* ---------- Full stack explorer ---------- */

#expertise {
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(87, 199, 255, 0.08), transparent 60%),
    var(--bg-dark);
}

.stack-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.stack-copy p:not(.kicker) { margin-top: 18px; color: var(--muted-on-dark); font-size: 17px; }
.stack-copy .stack-hint {
  font: 13px/1.4 var(--font-mono);
  color: var(--accent);
  margin-top: 28px;
}

.stack-explorer {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.02);
}

.layer-list { display: flex; flex-direction: column; gap: 8px; }
.layer-list button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted-on-dark);
  font: 500 15px/1.2 var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.layer-list button span {
  font: 500 12px/1 var(--font-mono);
  padding: 5px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}
.layer-list button:hover { color: var(--text-on-dark); background: rgba(255, 255, 255, 0.04); }
.layer-list button[aria-selected="true"] {
  color: var(--text-on-dark);
  background: var(--surface-dark);
  border-color: rgba(218, 109, 43, 0.45);
}
.layer-list button[aria-selected="true"] span { color: var(--accent-ink); background: var(--accent); }

.layer-panel {
  padding: 28px;
  border-radius: 14px;
  background: var(--surface-dark);
  border: 1px solid var(--line-dark);
  min-height: 280px;
}
.layer-panel h3 { font-size: 26px; font-weight: 600; }
.layer-panel p { margin-top: 12px; color: var(--muted-on-dark); }
.layer-panel ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.layer-panel li {
  font: 500 12.5px/1 var(--font-mono);
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--line-dark);
  color: var(--text-on-dark);
}
.layer-panel.is-switching { animation: panel-in 0.35s ease both; }

.builds-title {
  margin-top: 88px;
  margin-bottom: 24px;
  font-size: 22px;
  font-weight: 600;
}
.builds-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.build {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-dark-2);
  border: 1px solid var(--line-dark);
  transition: border-color 0.2s ease;
}
.build:hover { border-color: rgba(218, 109, 43, 0.4); }
.build-ico {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(218, 109, 43, 0.12);
}
.build-ico svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.build h4 { margin-top: 16px; font-size: 17px; font-weight: 600; }
.build p { margin-top: 8px; font-size: 14.5px; color: var(--muted-on-dark); }

/* Worked example: one product traced through every layer */
.example { margin-top: 88px; }
.example .builds-title { margin-top: 0; margin-bottom: 8px; }
.example-sub { color: var(--muted-on-dark); max-width: 62ch; }
.example-steps {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.example-steps li {
  padding: 20px 18px 22px;
  border-radius: var(--radius-sm);
  background: var(--bg-dark-2);
  border: 1px solid var(--line-dark);
}
.ex-layer {
  font: 500 11.5px/1.3 var(--font-mono);
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.example-steps h4 { margin-top: 12px; font-size: 16.5px; font-weight: 600; }
.example-steps p { margin-top: 6px; font-size: 14px; color: var(--muted-on-dark); }

/* ---------- Process ---------- */

.process {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  position: relative;
}
.process::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  height: 1px;
  background: repeating-linear-gradient(90deg, #cfd5de 0 6px, transparent 6px 12px);
}
.process li { position: relative; }
.process .step {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-dark);
  color: var(--accent);
  font: 500 14px/1 var(--font-mono);
  box-shadow: 0 0 0 6px var(--paper);
}
.process h3 { margin-top: 20px; font-size: 20px; font-weight: 600; }
.process p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.process .step-out {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 14px;
  color: var(--ink);
}
.step-out b { color: var(--accent-text); font-weight: 600; }

.engagements {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.engagement {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--tint);
  border: 1px solid var(--line);
}
.engagement h3 { font-size: 18px; font-weight: 600; }
.engagement p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ---------- Industries ---------- */

.industry-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.industry-grid li {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
}
.industry-grid h3 { font-size: 18px; font-weight: 600; }
.industry-grid p { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* ---------- Why ---------- */

.why-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.why {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.why h3 { font-size: 18px; font-weight: 600; }
.why h3::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin-bottom: 16px;
  border-radius: 2px;
  background: var(--accent);
}
.why p { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* ---------- FAQ ---------- */

.faq-list { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 4px;
  font: 600 18px/1.35 var(--font-head);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  font: 500 18px/1 var(--font-body);
  color: var(--accent-text);
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--accent-text); }
.faq-list details p { padding: 0 4px 22px; max-width: 68ch; color: var(--muted); }

/* ---------- Contact ---------- */

.contact {
  background:
    radial-gradient(800px 460px at 0% 100%, rgba(218, 109, 43, 0.1), transparent 60%),
    var(--bg-dark);
}
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.contact-copy > p:not(.kicker) { margin-top: 18px; color: var(--muted-on-dark); font-size: 17px; }

.contact-points { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 20px; }
.contact-points li { display: grid; gap: 4px; }
.cp-label { font: 500 12px/1 var(--font-mono); color: var(--muted-on-dark); text-transform: uppercase; letter-spacing: 0.06em; }
.contact-points a { font-size: 18px; font-weight: 600; color: var(--accent); }
.contact-points a:hover { text-decoration: underline; }
.contact-points li span:not(.cp-label) { color: var(--text-on-dark); font-style: italic; }

.next-steps { margin-top: 28px; display: grid; gap: 12px; }
.next-steps ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: next; }
.next-steps li {
  counter-increment: next;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 15px;
  color: var(--text-on-dark);
}
.next-steps li::before {
  content: counter(next);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(218, 109, 43, 0.16);
  color: var(--accent);
  font: 500 12px/1 var(--font-mono);
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 32px;
  border-radius: 20px;
  background: var(--bg-dark-2);
  border: 1px solid var(--line-dark);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 8px; }
.contact-form label > span,
.contact-form legend {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-on-dark);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-dark);
  background: var(--bg-dark);
  color: var(--text-on-dark);
  font: 15px/1.4 var(--font-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form ::placeholder { color: #7b8594; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(218, 109, 43, 0.18);
}
.contact-form [aria-invalid="true"] { border-color: #ff7a7a; }

.interest { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.interest legend { margin-bottom: 10px; padding: 0; }
.contact-form .interest label { display: inline-flex; }
.interest input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.interest label span {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  font-size: 14px;
  color: var(--text-on-dark);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.interest label:hover span { border-color: rgba(231, 236, 245, 0.35); }
.interest input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.interest input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.form-status { min-height: 1.4em; font-size: 14px; color: var(--muted-on-dark); }
.form-status.is-error { color: #ff9a9a; }
.form-status.is-ok { color: var(--accent); }

/* ---------- Footer ---------- */

.site-footer {
  background: #0c1016;
  color: var(--muted-on-dark);
  padding: 64px 0 28px;
  border-top: 1px solid var(--line-dark);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-brand { max-width: 320px; }
.footer-brand .brand-logo { height: 40px; }
.footer-brand p { margin-top: 14px; font-size: 15px; }
.footer-email { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 600; font-size: 15px; }
.footer-email:hover { text-decoration: underline; }
.footer-links { display: flex; gap: 72px; flex-wrap: wrap; }
.footer-links div { display: grid; gap: 10px; align-content: start; }
.footer-links h4 {
  font: 500 12px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-on-dark);
  margin-bottom: 6px;
}
.footer-links a { font-size: 15px; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--text-on-dark); }
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 14px;
}
.footer-base a:hover { color: var(--text-on-dark); }

/* ---------- Reveal on scroll (enabled by JS) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Animations ---------- */

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(218, 109, 43, 0.18); }
  50% { box-shadow: 0 0 0 7px rgba(218, 109, 43, 0.06); }
}
@keyframes layer-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes packet {
  0% { top: 100%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: -22px; opacity: 0; }
}
@keyframes marquee {
  to { transform: translateX(-100%); }
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .builds-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .example-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stack-layout,
  .why-layout,
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 960px) {
  .hero { padding: 64px 0 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero h1 { max-width: 18ch; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .process::before { display: none; }
  .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--bg-dark);
    box-shadow: 0 24px 40px -12px rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid var(--line-dark);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: 16px; }
  .nav-cta { margin-top: 16px; }
}

@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .service-grid,
  .engagements,
  .why-grid { grid-template-columns: 1fr; }
  .service-card { padding: 24px; }
  .stack-explorer { grid-template-columns: 1fr; padding: 12px; }
  .layer-list { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .layer-list button { width: auto; padding: 10px 12px; font-size: 14px; }
  .layer-panel { padding: 22px; min-height: 0; }
  .builds-title { margin-top: 64px; }
  .example { margin-top: 64px; }
  .example-steps { grid-template-columns: 1fr; }
  .faq-list summary { font-size: 16.5px; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .lead { font-size: 16.5px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .sv-layer { grid-template-columns: auto 1fr; padding: 14px; }
  .sv-layer em { grid-column: 2; text-align: left; margin-top: -8px; }
  .builds-grid,
  .industry-grid,
  .process { grid-template-columns: 1fr; }
  .footer-links { gap: 40px; }
}
