/* =========================================================
   Nadir Tech Solutions: "Truck Art Signal" brand system
   Night ground, marigold / rose / emerald paintwork, chalk type.
   Motifs: chevron bands, jhalar fringe, rosettes, hard offset shadows.
   ========================================================= */

@font-face {
  font-family: "Unbounded";
  src: url("/assets/fonts/unbounded-latin-wght.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-latin-wght.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette */
  --night: #15101f;
  --night-2: #1c1528;
  --night-3: #271f36;
  --night-deep: #0f0b17;
  --chalk: #f6f0e6;
  --paper: #fffaf2;
  --muted: #b9afc4;
  --ink-muted: #4a4058;
  --marigold: #ffb627;
  --rose: #ff4d8d;
  --emerald: #19c37d;
  --line: rgba(246, 240, 230, 0.14);
  --line-strong: rgba(246, 240, 230, 0.24);

  /* Type */
  --font-display: "Unbounded", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --radius: 18px;

  /* Ornament tiles (truck-art chevron band and jhalar fringe) */
  --band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='56'%3E%3Crect width='48' height='56' fill='%2315101F'/%3E%3Cpath d='M0 12 12 3l12 9 12-9 12 9' fill='none' stroke='%23FFB627' stroke-width='3' stroke-linejoin='round'/%3E%3Crect y='18' width='48' height='7' fill='%23FF4D8D'/%3E%3Ccircle cx='12' cy='37' r='7' fill='%2319C37D'/%3E%3Ccircle cx='12' cy='37' r='2.6' fill='%2315101F'/%3E%3Ccircle cx='36' cy='37' r='7' fill='%23FFB627'/%3E%3Ccircle cx='36' cy='37' r='2.6' fill='%2315101F'/%3E%3Cpath d='M0 56l6-7 6 7 6-7 6 7 6-7 6 7 6-7 6 7z' fill='%23FF4D8D'/%3E%3C/svg%3E");
  --fringe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='34'%3E%3Cpath d='M0 2q11 8 22 0t22 0' fill='none' stroke='%23FFB627' stroke-width='2.5'/%3E%3Cpath d='M11 6v8M33 6v8' stroke='%23FFB627' stroke-width='2'/%3E%3Cpath d='M11 13c4 5 4 11 0 15-4-4-4-10 0-15z' fill='%23FF4D8D'/%3E%3Cpath d='M33 13c4 5 4 11 0 15-4-4-4-10 0-15z' fill='%2319C37D'/%3E%3Ccircle cx='11' cy='31.5' r='2' fill='%23FFB627'/%3E%3Ccircle cx='33' cy='31.5' r='2' fill='%23FFB627'/%3E%3C/svg%3E");
  --dots: radial-gradient(rgba(246, 240, 230, 0.07) 1px, transparent 1.6px);

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--night);
  color: var(--chalk);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.nav-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
button, input, select, textarea { font: inherit; }

::selection { background: var(--marigold); color: var(--night); }

:focus-visible {
  outline: 3px solid var(--emerald);
  outline-offset: 3px;
  border-radius: 4px;
}

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute !important;
  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: 16px;
  top: -100px;
  z-index: 100;
  background: var(--marigold);
  color: var(--night);
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.ico { width: 1.15em; height: 1.15em; flex: none; transition: transform 0.2s ease; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 0.78rem/1.2 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--marigold);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  background: var(--rose);
  transform: rotate(45deg);
}

h1, h2, h3, h4 { margin: 0; text-wrap: balance; }

h2 {
  font: 700 clamp(1.9rem, 3.8vw, 3.3rem)/1.08 var(--font-display);
  letter-spacing: -0.03em;
}
h2 em { font-style: normal; color: var(--marigold); }

.section-intro {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 62ch;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font: 700 1rem/1 var(--font-body);
  padding: 0.95em 1.35em;
  border-radius: 8px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-lg { font-size: 1.0625rem; padding: 1.05em 1.5em; }

.btn-primary {
  background: var(--marigold);
  color: var(--night);
  border-color: var(--marigold);
  box-shadow: 4px 4px 0 var(--rose);
}
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--rose); }
.btn-primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--rose); }
.btn-primary:hover .ico { transform: translateX(3px); }

.btn-ghost {
  color: var(--chalk);
  border-color: var(--chalk);
  background: transparent;
}
.btn-ghost:hover { background: var(--chalk); color: var(--night); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--chalk);
  text-decoration: underline;
  text-decoration-color: var(--rose);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.text-link:hover { color: var(--marigold); }
.text-link:hover .ico { transform: translate(2px, -2px); }

/* Tone variables shared by cards */
.tone-gold  { --c: var(--marigold); --c-soft: rgba(255, 182, 39, 0.12); }
.tone-rose  { --c: var(--rose);     --c-soft: rgba(255, 77, 141, 0.12); }
.tone-green { --c: var(--emerald);  --c-soft: rgba(25, 195, 125, 0.12); }
.tone-ink   { --c: var(--night);    --c-soft: rgba(21, 16, 31, 0.08); }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 22px; color: var(--muted); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background: var(--c, var(--marigold));
  transform: rotate(45deg);
}

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  font: 500 0.75rem/1 var(--font-mono);
  padding: 0.45em 0.7em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--chalk);
}

.pill {
  display: inline-block;
  font: 500 0.7rem/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
}
.pill-green { color: var(--emerald); }
.pill-gold { color: var(--marigold); }

.tag {
  display: inline-block;
  font: 500 0.7rem/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 8px;
  border-radius: 4px;
  color: var(--night);
}
.tag-rose { background: var(--rose); }
.tag-gold { background: var(--marigold); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(21, 16, 31, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  position: relative;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--chalk);
  text-decoration: none;
}
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-word { display: grid; line-height: 1; }
.brand-word b { font: 800 1.02rem/1 var(--font-display); letter-spacing: -0.02em; }
.brand-word span {
  font: 500 0.6rem/1 var(--font-mono);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
}

.site-nav { display: flex; align-items: center; gap: 24px; }
.nav-list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  position: relative;
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-list a:hover,
.nav-list a.is-active { color: var(--chalk); }
.nav-list a.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 1px;
  height: 3px;
  border-radius: 2px;
  background: var(--rose);
}
.nav-cta { padding: 0.75em 1.15em; }

.nav-toggle,
.nav-panel-foot { display: none; }

@media (max-width: 1023px) {
  .nav-toggle {
    position: relative;
    z-index: 60;
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 12px;
    background: var(--marigold);
    color: var(--night);
    box-shadow: 3px 3px 0 var(--rose);
    cursor: pointer;
  }
  .nav-toggle-bars { display: grid; gap: 5px; width: 22px; }
  .nav-toggle-bars i {
    display: block;
    height: 2.5px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 55;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 28px;
    padding: calc(var(--header-h) + 20px) var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
    background: var(--night) var(--dots) 0 0 / 18px 18px;
    overflow-y: auto;
    visibility: hidden;
    transform: translateY(-100%);
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0.35s;
  }
  .site-nav.is-open {
    visibility: visible;
    transform: none;
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a {
    font: 700 clamp(1.5rem, 6vw, 2.2rem)/1.1 var(--font-display);
    letter-spacing: -0.02em;
    color: var(--chalk);
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .nav-list a:hover { color: var(--marigold); }
  .nav-list a.is-active { color: var(--marigold); }
  .nav-list a.is-active::after { display: none; }
  .nav-cta { align-self: flex-start; font-size: 1.0625rem; padding: 1em 1.4em; }
  .nav-panel-foot {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
    padding-top: 72px;
    font: 0.8rem/1.4 var(--font-mono);
    color: var(--muted);
    background: var(--band) 0 0 / 48px 56px repeat-x;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(40px, 6vw, 80px);
  scroll-margin-top: var(--header-h);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 85% 20%, rgba(255, 77, 141, 0.16), transparent 70%),
    radial-gradient(50% 45% at 10% 90%, rgba(255, 182, 39, 0.1), transparent 70%),
    var(--dots) 0 0 / 18px 18px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
  padding-bottom: clamp(56px, 7vw, 96px);
}

.hero-copy { display: grid; gap: 26px; justify-items: start; }

.hero-title { display: grid; gap: 18px; }
.hero-name {
  display: block;
  font: 800 clamp(2.6rem, 6.4vw, 5.4rem)/0.98 var(--font-display);
  letter-spacing: -0.04em;
  color: var(--chalk);
}
.painted {
  display: block;
  color: var(--marigold);
  text-shadow: 0.05em 0.05em 0 var(--rose);
}
.hero-tagline {
  display: block;
  max-width: 26ch;
  font: 500 clamp(1.25rem, 2.1vw, 1.7rem)/1.3 var(--font-body);
  letter-spacing: -0.01em;
  color: var(--chalk);
}
.hero-lede { max-width: 54ch; color: var(--muted); font-size: 1.0625rem; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-facts {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 0;
}
.hero-facts li {
  display: grid;
  gap: 4px;
  padding-inline: 22px;
  border-left: 1px solid var(--line-strong);
  max-width: 17ch;
}
.hero-facts li:first-child { padding-left: 0; border-left: 0; }
.hero-facts b { font: 700 1.4rem/1 var(--font-display); color: var(--marigold); letter-spacing: -0.02em; }
.hero-facts span { font-size: 0.875rem; line-height: 1.35; color: var(--muted); }

/* Truck panel ("rig") holding the live workflow */
.rig { position: relative; margin: 0; width: 100%; max-width: 500px; justify-self: end; }
.rig-crown { width: 84%; height: auto; margin: 0 auto -2px; }
.rig-frame {
  position: relative;
  padding: clamp(26px, 3vw, 36px);
  border: 8px solid var(--marigold);
  border-radius: 20px;
  background: var(--night-2) var(--dots) 0 0 / 16px 16px;
  box-shadow: inset 0 0 0 3px var(--night), inset 0 0 0 6px var(--rose), 12px 12px 0 var(--emerald);
}
.rosette { position: absolute; width: 18px; height: 18px; }
.r-tl { top: 9px; left: 9px; color: var(--rose); }
.r-tr { top: 9px; right: 9px; color: var(--emerald); }
.r-bl { bottom: 9px; left: 9px; color: var(--emerald); }
.r-br { bottom: 9px; right: 9px; color: var(--rose); }
.rig-fringe { height: 34px; margin: 0 28px; background: var(--fringe) 0 0 / 44px 34px repeat-x; }

.flow {
  position: relative;
  background: var(--night);
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  padding: 16px 16px 14px;
  font-size: 0.93rem;
}
.flow-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 2px 4px 14px;
  margin-bottom: 8px;
  border-bottom: 1px dashed var(--line-strong);
}
.flow-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 0.72rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald);
}
.flow-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(25, 195, 125, 0.18);
}
.flow-status.is-running { color: var(--marigold); }
.flow-status.is-running i { box-shadow: 0 0 0 4px rgba(255, 182, 39, 0.2); animation: pulse 1.2s ease-in-out infinite; }
.flow-name { font: 0.72rem/1 var(--font-mono); color: var(--muted); }

.flow-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 9px 6px;
  border-radius: 8px;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}
.flow-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 39px;
  bottom: -9px;
  width: 2px;
  background: var(--line);
  transition: background-color 0.3s ease;
}
.flow-step.is-done:not(:last-child)::before { background: rgba(25, 195, 125, 0.55); }
.flow-dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  color: var(--night);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.flow-dot svg { width: 15px; height: 15px; opacity: 0; transition: opacity 0.2s ease; }
.flow-step.is-done .flow-dot { background: var(--emerald); border-color: var(--emerald); }
.flow-step.is-done .flow-dot svg { opacity: 1; }
.flow-step.is-running { background: rgba(255, 182, 39, 0.08); }
.flow-step.is-running .flow-dot {
  border-color: var(--marigold);
  border-right-color: transparent;
  animation: spin 0.8s linear infinite;
}
.flow-step:not(.is-done):not(.is-running) { opacity: 0.45; }
.flow-body { display: grid; gap: 3px; padding-top: 3px; min-width: 0; }
.flow-text { color: var(--chalk); line-height: 1.35; }
.flow-tool {
  font: 500 0.68rem/1.2 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.flow-step.is-running .flow-tool { color: var(--marigold); }
.flow-foot {
  margin-top: 10px;
  padding: 12px 4px 0;
  border-top: 1px dashed var(--line-strong);
  font: 0.72rem/1.3 var(--font-mono);
  color: var(--muted);
}

/* Marquee strip */
.marquee {
  position: relative;
  overflow: hidden;
  background: var(--marigold);
  color: var(--night);
  border-block: 3px solid var(--night);
  box-shadow: 0 -6px 0 var(--rose), 0 6px 0 var(--emerald);
  margin-block: 6px;
}
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding: 18px 0 18px 30px;
  font: 700 clamp(0.95rem, 1.5vw, 1.2rem)/1 var(--font-display);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-track span::after {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--rose);
  border: 2px solid var(--night);
  transform: rotate(45deg);
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding-block: clamp(80px, 10vw, 136px);
  scroll-margin-top: calc(var(--header-h) - 1px);
}
.section-head {
  display: grid;
  gap: 18px;
  justify-items: start;
  max-width: 780px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

/* ---------- Services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 28px);
}
.service {
  display: flex;
  flex-direction: column;
  background: var(--night-2);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 var(--c);
  border-color: var(--c);
}
.service-top {
  position: relative;
  padding: 28px 28px 30px;
  border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0;
  background: var(--c);
  color: var(--night);
}
.service-top::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -11px;
  height: 12px;
  background: radial-gradient(circle at 50% 0, var(--c) 9px, transparent 9.5px) 0 0 / 20px 12px repeat-x;
}
.service-icon { width: 56px; height: 56px; margin-bottom: 18px; }
.service h3 { font: 700 1.45rem/1.15 var(--font-display); letter-spacing: -0.02em; }
.service-sub {
  margin-top: 8px;
  font: 500 0.75rem/1.3 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.service-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 20px;
  padding: 36px 28px 28px;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
  font-weight: 700;
  color: var(--c);
  text-decoration: none;
}
.service-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.service-link:hover .ico { transform: translateX(4px); }

/* ---------- Claude ---------- */
.claude {
  background: var(--night-2) var(--dots) 0 0 / 18px 18px;
  border-block: 2px solid var(--line);
}
.claude-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.claude-copy { display: grid; gap: 20px; justify-items: start; }
.claude-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 16px;
  width: 100%;
}
.claude-col:nth-child(1) { --c: var(--rose); }
.claude-col:nth-child(2) { --c: var(--marigold); }
.claude-col h3 {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-bottom: 16px;
  font: 700 1.15rem/1.2 var(--font-display);
  letter-spacing: -0.01em;
}

.terminal {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  margin: 0;
  overflow: hidden;
  background: var(--night-deep);
  border: 2px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 10px 10px 0 var(--rose);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  background: var(--night-3);
  border-bottom: 1px solid var(--line);
}
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--rose); }
.terminal-bar i:nth-child(2) { background: var(--marigold); }
.terminal-bar i:nth-child(3) { background: var(--emerald); }
.terminal-bar span { margin-left: 8px; font: 0.75rem/1 var(--font-mono); color: var(--muted); }
.terminal-body {
  margin: 0;
  padding: 22px 22px 24px;
  font: 0.86rem/1.75 var(--font-mono);
  color: var(--chalk);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.t-dim { color: var(--muted); }
.t-gold { color: var(--marigold); }
.t-green { color: var(--emerald); }
.t-rose { color: var(--rose); }
.t-caret {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  margin-left: 4px;
  vertical-align: -0.2em;
  background: var(--marigold);
  animation: blink 1.1s steps(1) infinite;
}
.terminal figcaption {
  padding: 12px 22px 14px;
  border-top: 1px dashed var(--line);
  font: 0.72rem/1.4 var(--font-mono);
  color: var(--muted);
}

.built { margin-top: clamp(56px, 7vw, 96px); }
.built-title {
  margin-bottom: 24px;
  font: 700 clamp(1.25rem, 2vw, 1.5rem)/1.2 var(--font-display);
  letter-spacing: -0.01em;
}
.built-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.built-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 26px;
  background: var(--night);
  border: 2px solid var(--line);
  border-radius: 16px;
}
.built-card h4 { margin-top: 6px; font: 700 1.12rem/1.25 var(--font-display); letter-spacing: -0.01em; }
.built-card p { color: var(--muted); }
.built-card code {
  font: 0.88em var(--font-mono);
  color: var(--chalk);
  background: var(--night-3);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}
.built-card .text-link { margin-top: auto; padding-top: 6px; }

/* ---------- Work ---------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
}
.case {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--night-2);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.case:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 var(--c);
  border-color: var(--c);
}

/* Duotone stock photography with a painted fallback */
.media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--c, var(--marigold));
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.12) brightness(1.02);
  mix-blend-mode: multiply;
  transition: filter 0.5s ease;
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--night);
  mix-blend-mode: lighten;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.case:hover .media img { filter: grayscale(0) contrast(1) brightness(1); mix-blend-mode: normal; }
.case:hover .media::after { opacity: 0; }
.media.media-failed {
  background:
    radial-gradient(circle at 50% 50%, var(--c-soft, rgba(255, 182, 39, 0.12)) 0 2.5px, transparent 3px) 0 0 / 24px 24px,
    var(--night-3);
}
.media.media-failed img,
.media.media-failed::after { display: none; }
/* Painted rosette emblem shown in place of a photo that couldn't load */
.media.media-failed::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--c);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24'%3E%3Cg%3E%3Cellipse cy='-6.2' rx='2.7' ry='5'/%3E%3Cellipse cy='-6.2' rx='2.7' ry='5' transform='rotate(45)'/%3E%3Cellipse cy='-6.2' rx='2.7' ry='5' transform='rotate(90)'/%3E%3Cellipse cy='-6.2' rx='2.7' ry='5' transform='rotate(135)'/%3E%3Cellipse cy='-6.2' rx='2.7' ry='5' transform='rotate(180)'/%3E%3Cellipse cy='-6.2' rx='2.7' ry='5' transform='rotate(225)'/%3E%3Cellipse cy='-6.2' rx='2.7' ry='5' transform='rotate(270)'/%3E%3Cellipse cy='-6.2' rx='2.7' ry='5' transform='rotate(315)'/%3E%3C/g%3E%3C/svg%3E") center / 88px 88px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24'%3E%3Cg%3E%3Cellipse cy='-6.2' rx='2.7' ry='5'/%3E%3Cellipse cy='-6.2' rx='2.7' ry='5' transform='rotate(45)'/%3E%3Cellipse cy='-6.2' rx='2.7' ry='5' transform='rotate(90)'/%3E%3Cellipse cy='-6.2' rx='2.7' ry='5' transform='rotate(135)'/%3E%3Cellipse cy='-6.2' rx='2.7' ry='5' transform='rotate(180)'/%3E%3Cellipse cy='-6.2' rx='2.7' ry='5' transform='rotate(225)'/%3E%3Cellipse cy='-6.2' rx='2.7' ry='5' transform='rotate(270)'/%3E%3Cellipse cy='-6.2' rx='2.7' ry='5' transform='rotate(315)'/%3E%3C/g%3E%3C/svg%3E") center / 88px 88px no-repeat;
}

.case-media { aspect-ratio: 16 / 10; border-bottom: 3px solid var(--c); }
.case-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 7px 10px;
  font: 500 0.7rem/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c);
  background: var(--night);
  border: 2px solid var(--c);
  border-radius: 6px;
}
.case-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 6px; padding: 28px; }
.case-kicker {
  font: 500 0.75rem/1.3 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c);
}
.case h3 { font: 700 clamp(1.4rem, 2.2vw, 1.75rem)/1.15 var(--font-display); letter-spacing: -0.02em; }
.case-facts { display: grid; gap: 14px; margin: 18px 0 22px; width: 100%; }
.case-facts > div {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
}
.case-facts dt {
  font: 500 0.7rem/1.4 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.case-facts dd { margin: 0; color: var(--chalk); }
.case-facts .chips { padding-top: 2px; }
.case-facts .case-result {
  padding: 14px 16px;
  background: var(--c-soft);
  border: 1.5px solid var(--c);
  border-radius: 10px;
}
.case-result dt { color: var(--c); }
.case-result dd { font-weight: 700; }
.case-body .text-link { margin-top: auto; }

/* ---------- Team & process (paper section) ---------- */
.process {
  padding-block: 0;
  background: var(--chalk);
  color: var(--night);
}
.process > .container { padding-block: clamp(72px, 9vw, 120px); }
.band { height: 56px; background: var(--band) 0 0 / 48px 56px repeat-x; }
.band-bottom { transform: scaleY(-1); }

.process .eyebrow { color: var(--night); }
.process h2 em {
  color: var(--night);
  background: var(--marigold);
  padding: 0 0.14em;
  border-radius: 6px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.process .section-intro { color: var(--ink-muted); }
.process :focus-visible { outline-color: var(--night); }

.team-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.team-count {
  grid-row: span 2;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  padding: 32px;
  background: var(--night) var(--dots) 0 0 / 16px 16px;
  color: var(--chalk);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--rose);
}
.team-count::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 34px;
  background: var(--fringe) 0 0 / 44px 34px repeat-x;
}
.team-num {
  font: 800 clamp(6rem, 12vw, 10.5rem)/0.82 var(--font-display);
  letter-spacing: -0.06em;
  color: var(--marigold);
  text-shadow: 0.04em 0.04em 0 var(--rose);
}
.team-copy { margin: 0; }
.team-num { display: block; }
.team-label { display: block; margin-top: 18px; max-width: 20ch; font-size: 1.15rem; font-weight: 600; line-height: 1.35; }

.role {
  padding: 26px;
  background: var(--paper);
  border: 2px solid var(--night);
  border-radius: 16px;
  box-shadow: 6px 6px 0 var(--c);
}
.role h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font: 700 1.1rem/1.25 var(--font-display);
  letter-spacing: -0.01em;
}
.role h3::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background: var(--c);
  border: 2px solid var(--night);
  transform: rotate(45deg);
}
.role p { color: var(--ink-muted); }

.road-wrap { margin-top: clamp(64px, 8vw, 96px); }
.road { position: relative; height: 70px; margin-bottom: 26px; }
.road::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 20px;
  border-radius: 10px;
  background: var(--night);
}
.road::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 15px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--marigold) 0 18px, transparent 18px 34px);
}
.road-truck {
  position: absolute;
  bottom: 18px;
  left: calc(var(--p, 0) * (100% - 96px));
  width: 96px;
  height: 56px;
  z-index: 1;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.step { position: relative; display: grid; align-content: start; gap: 10px; }
.step-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 6px;
  border: 2px solid var(--night);
  border-radius: 50%;
  background: var(--marigold);
  box-shadow: 3px 3px 0 var(--night);
  font: 800 1.1rem/1 var(--font-display);
  color: var(--night);
}
.step:nth-child(2) .step-num { background: var(--rose); }
.step:nth-child(3) .step-num { background: var(--emerald); }
.step:nth-child(4) .step-num { background: var(--night); color: var(--marigold); box-shadow: 3px 3px 0 var(--rose); }
.step h3 { font: 700 1.3rem/1.2 var(--font-display); letter-spacing: -0.02em; }
.step p { color: var(--ink-muted); }
.step .step-meta { font-size: 0.95rem; color: var(--night); }
.step-meta b {
  margin-right: 4px;
  font: 500 0.72rem/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.about-copy { display: grid; gap: 16px; justify-items: start; }
.about-copy > p:not(.eyebrow) { max-width: 60ch; color: var(--muted); font-size: 1.08rem; }
.about-sub {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font: 700 1.05rem/1.2 var(--font-display);
  color: var(--chalk);
}
.about-sub::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--marigold);
}

.about-side { display: grid; gap: 32px; align-content: start; }
.about-mission { display: grid; gap: 16px; }
.about-mission .about-sub { margin-top: 0; }
.about-mission p { max-width: 60ch; color: var(--muted); font-size: 1.08rem; }

.founder-card {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 22px 24px;
  background: var(--night-2);
  border: 2px solid var(--line);
  border-radius: 16px;
}
.founder-label {
  font: 500 0.72rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.founder-name { font: 700 1.25rem/1.2 var(--font-display); letter-spacing: -0.02em; }
.founder-card .text-link { margin-top: 6px; }

.plate {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 6px 0 0;
  padding: 14px 6px;
  background: var(--chalk);
  color: var(--night);
  border: 3px solid var(--night);
  border-radius: 10px;
  outline: 3px solid var(--chalk);
  box-shadow: 9px 9px 0 var(--emerald);
}
.plate > div { padding: 0 6px; text-align: center; border-right: 2px dashed rgba(21, 16, 31, 0.25); }
.plate > div:last-child { border-right: 0; }
.plate dt {
  font: 500 0.64rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.plate dd { margin: 6px 0 0; font: 800 clamp(1rem, 1.9vw, 1.35rem)/1 var(--font-display); letter-spacing: -0.02em; }

.serve { margin-top: clamp(64px, 8vw, 104px); }
.serve-title { margin-bottom: 10px; font: 700 clamp(1.35rem, 2.3vw, 1.8rem)/1.2 var(--font-display); letter-spacing: -0.02em; }
.serve-intro { max-width: 62ch; margin-bottom: 30px; color: var(--muted); }
.serve-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.serve-grid li { --c: var(--marigold); padding-top: 20px; border-top: 4px solid var(--c); }
.serve-grid li:nth-child(2) { --c: var(--rose); }
.serve-grid li:nth-child(3) { --c: var(--emerald); }
.serve-grid li:nth-child(4) { --c: var(--chalk); }
.serve-grid h4 { margin-bottom: 8px; font: 700 1.05rem/1.25 var(--font-display); }
.serve-grid p { color: var(--muted); }

.values {
  list-style: none;
  margin: clamp(48px, 6vw, 72px) 0 0;
  padding: clamp(22px, 3vw, 32px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 32px;
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
}
.values b { display: block; margin-bottom: 6px; font: 700 1.02rem/1.25 var(--font-display); color: var(--chalk); }

/* ---------- Contact ---------- */
.contact {
  background:
    radial-gradient(50% 60% at 0% 100%, rgba(255, 77, 141, 0.12), transparent 70%),
    radial-gradient(40% 50% at 100% 0%, rgba(25, 195, 125, 0.1), transparent 70%),
    var(--night);
  border-top: 2px solid var(--line);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-copy { display: grid; gap: 22px; justify-items: start; }

.email-card {
  display: grid;
  justify-items: start;
  gap: 10px;
  width: 100%;
  padding: 22px 24px;
  background: var(--night-2);
  border: 2px solid var(--line);
  border-radius: 16px;
}
.email-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 0.72rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.email-addr {
  font: 700 clamp(1.05rem, 2.2vw, 1.45rem)/1.25 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--marigold);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.email-addr:hover { text-decoration: underline; text-underline-offset: 5px; }
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 8px 14px;
  background: transparent;
  color: var(--chalk);
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.copy-btn:hover { border-color: var(--chalk); }
.copy-btn.is-copied { border-color: var(--emerald); color: var(--emerald); }

.contact-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; color: var(--muted); }
.contact-notes b { color: var(--chalk); }

.form-card {
  padding: clamp(22px, 3.5vw, 40px);
  background: var(--night-2);
  border: 8px solid var(--marigold);
  border-radius: 22px;
  box-shadow: inset 0 0 0 3px var(--night), inset 0 0 0 6px var(--rose), 12px 12px 0 var(--emerald);
}
.contact-form { position: relative; display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; min-width: 0; align-content: start; }
.field label { font-weight: 600; font-size: 0.95rem; }
.opt { font-weight: 400; color: var(--muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--chalk);
  background: var(--night);
  border: 2px solid var(--line-strong);
  border-radius: 10px;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background: var(--night) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1.5 1.5 7 7l5.5-5.5' fill='none' stroke='%23FFB627' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center;
  cursor: pointer;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(185, 175, 196, 0.75); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(246, 240, 230, 0.4); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--marigold);
  box-shadow: 0 0 0 3px rgba(255, 182, 39, 0.25);
}
.field [aria-invalid="true"] { border-color: var(--rose); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(255, 77, 141, 0.25); }
.field-error { color: var(--rose); font-size: 0.875rem; font-weight: 600; }
.field-error:empty { display: none; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 4px; }
.form-privacy { color: var(--muted); font-size: 0.875rem; }
.btn[aria-busy="true"] { cursor: progress; opacity: 0.85; }
.btn[aria-busy="true"] .ico { animation: nudge 0.8s ease-in-out infinite; }

.form-status { padding: 16px 18px; border-radius: 12px; font-size: 0.98rem; }
.form-status.is-success { background: rgba(25, 195, 125, 0.12); border: 2px solid var(--emerald); }
.form-status.is-error { background: rgba(255, 77, 141, 0.1); border: 2px solid var(--rose); }
.form-status.is-info { background: rgba(255, 182, 39, 0.1); border: 2px solid var(--marigold); }
.form-status:focus { outline: none; }
.form-status strong { display: block; margin-bottom: 4px; font-family: var(--font-display); font-size: 1rem; }
.form-status a:not(.btn) { color: var(--marigold); font-weight: 700; }
.form-status-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--night); padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-block: 56px 40px;
  border-bottom: 1px solid var(--line);
}
.brand-lg .brand-mark { width: 52px; height: 52px; }
.brand-lg .brand-word b { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.brand-lg .brand-word span { font-size: 0.7rem; margin-top: 7px; }
.footer-line { max-width: 36ch; color: var(--muted); }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr);
  gap: 32px;
  padding-block: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-h {
  margin-bottom: 16px;
  font: 500 0.75rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--marigold);
}
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-list li { display: flex; align-items: flex-start; gap: 10px; min-width: 0; color: var(--muted); }
.footer-list li .ico { margin-top: 0.2em; }
.footer-list a { color: var(--chalk); text-decoration: none; overflow-wrap: anywhere; }
.footer-list a:hover { color: var(--marigold); text-decoration: underline; text-underline-offset: 4px; }
.footer-list .ico { color: var(--muted); }
.footer-cta p { margin-bottom: 18px; color: var(--muted); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.9rem;
  color: var(--muted);
}
.to-top { display: inline-flex; align-items: center; gap: 8px; color: var(--chalk); text-decoration: none; font-weight: 600; }
.to-top .ico { transform: rotate(-90deg); }
.to-top:hover { color: var(--marigold); }
.to-top:hover .ico { transform: rotate(-90deg) translateX(3px); }

/* ---------- 404 ---------- */
.lost {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: grid;
  place-items: center;
  padding-block: 64px;
  text-align: center;
}
.lost-inner { display: grid; justify-items: center; gap: 22px; max-width: 560px; }
.lost-code {
  font: 800 clamp(5rem, 18vw, 9rem)/0.9 var(--font-display);
  letter-spacing: -0.05em;
  color: var(--marigold);
  text-shadow: 0.05em 0.05em 0 var(--rose);
}
.lost-truck { width: 140px; height: auto; }
.lost h1 { font: 700 clamp(1.5rem, 4vw, 2.2rem)/1.15 var(--font-display); letter-spacing: -0.02em; }
.lost p { color: var(--muted); }

/* ---------- Reveal on scroll (only once JS is running) ---------- */
.reveal-ready [data-reveal] {
  opacity: 0;
  translate: 0 22px;
  transition: opacity 0.7s ease, translate 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal-ready [data-reveal].is-in { opacity: 1; translate: none; }
.reveal-ready .steps .step:nth-child(2) { transition-delay: 0.08s; }
.reveal-ready .steps .step:nth-child(3) { transition-delay: 0.16s; }
.reveal-ready .steps .step:nth-child(4) { transition-delay: 0.24s; }
.reveal-ready .service-grid .service:nth-child(2),
.reveal-ready .case-grid .case:nth-child(even) { transition-delay: 0.1s; }
.reveal-ready .service-grid .service:nth-child(3) { transition-delay: 0.2s; }

/* ---------- Keyframes ---------- */
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 182, 39, 0); } }
@keyframes nudge { 50% { transform: translateX(4px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-cta { grid-column: 1 / -1; }
}

@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .rig { justify-self: center; max-width: 520px; }
  .service-grid { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
  .claude-grid { grid-template-columns: minmax(0, 1fr); }
  .terminal { position: relative; top: 0; max-width: 640px; }
  .built-grid { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-side { max-width: 560px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .serve-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-count { grid-row: auto; grid-column: 1 / -1; min-height: 0; padding-top: 56px; }
  .team-copy { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 28px; }
  .team-label { margin-top: 0; padding-bottom: 6px; }
}

@media (max-width: 900px) {
  .road { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .step { padding-left: 66px; }
  .step-num { position: absolute; left: 0; top: 0; margin: 0; }
  .step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 54px;
    bottom: -26px;
    width: 4px;
    border-radius: 2px;
    background: repeating-linear-gradient(180deg, var(--night) 0 10px, transparent 10px 18px);
  }
  .values { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .case-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-word b { font-size: 0.95rem; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; }
  .hero-facts li { padding-inline: 14px; }
  .hero-facts b { font-size: 1.2rem; }
  .hero-facts span { font-size: 0.8rem; }
  .claude-cols { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .team-grid { grid-template-columns: minmax(0, 1fr); }
  .serve-grid { grid-template-columns: minmax(0, 1fr); }
  .case-body { padding: 22px; }
  .case-facts > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plate dt { letter-spacing: 0.08em; }
  .rig-frame { padding: 22px; border-width: 6px; box-shadow: inset 0 0 0 3px var(--night), inset 0 0 0 5px var(--rose), 8px 8px 0 var(--emerald); }
  .rosette { width: 14px; height: 14px; }
  .r-tl, .r-tr { top: 5px; } .r-bl, .r-br { bottom: 5px; }
  .r-tl, .r-bl { left: 5px; } .r-tr, .r-br { right: 5px; }
  .flow { padding: 12px 10px 10px; font-size: 0.9rem; }
  .form-card { border-width: 6px; box-shadow: inset 0 0 0 3px var(--night), inset 0 0 0 5px var(--rose), 8px 8px 0 var(--emerald); }
}

@media (max-width: 380px) {
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .hero-facts li { padding-inline: 10px; }
  .hero-facts li:first-child { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .marquee-track { animation: none; }
  .reveal-ready [data-reveal] { opacity: 1; translate: none; }
}
