/* ==========================================================================
   R.D. MECHANICAL — industrial workshop theme
   Display: Antonio (condensed) · Body: Barlow · Spec labels: DM Mono
   ========================================================================== */

/* === defensive base — injected by harden_css.py; do not hand-edit === */
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-padding-top: calc(var(--nav-h, 72px) + 1rem); }
img, svg, video, iframe, canvas, table { display: block; max-width: 100%; }
p, li, h1, h2, h3, h4, blockquote, td, dd, dt { overflow-wrap: anywhere; }
form[style*="min-height"] { align-content: center; }
/* === end defensive base === */

:root {
  --ink:        #0e1013;
  --ink-2:      #14171c;
  --surface:    #1a1e25;
  --surface-2:  #22272f;
  --line:       #2e343d;
  --line-soft:  #23282f;

  --cream:      #f2ede4;
  --cream-dim:  #a8a49b;
  --steel:      #7c8794;

  --amber:      #e07a2c;
  --amber-hot:  #f59a4b;
  --amber-deep: #b85c1c;
  --amber-ink:  #1c1206;

  --nav-h: 68px;
  --wrap: 1200px;

  --font-display: "Antonio", "Impact", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", sans-serif;
  --font-mono: "DM Mono", ui-monospace, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .85);
}

@media (max-width: 720px) {
  :root { --nav-h: 60px; }
}

/* --------------------------------------------------------------- base --- */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: .002em;
  -webkit-font-smoothing: antialiased;
}

/* fine grain over the whole page — workshop texture, not a flat colour */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.005em;
  text-transform: uppercase;
  margin: 0;
}

p { margin: 0; }

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

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

::selection { background: var(--amber); color: var(--amber-ink); }

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

.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;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ------------------------------------------------------------- pieces --- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(.625rem, 1.5cqi, .75rem);
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--amber);
}

.section-label {
  display: flex;
  align-items: center;
  gap: .875rem;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 1.25rem;
}

.section-label::before {
  content: "";
  width: 34px;
  height: 3px;
  background: var(--amber);
  flex: none;
}

.section-title {
  font-size: clamp(2rem, 5.6vw, 3.75rem);
}

.section-title em {
  font-style: normal;
  color: var(--amber);
}

/* hazard-stripe rule — the recurring shop motif */
.hazard {
  height: 10px;
  border: 0;
  margin: 0;
  background-image: repeating-linear-gradient(
    -60deg,
    var(--amber) 0 12px,
    var(--ink) 12px 24px
  );
  opacity: .85;
}

/* -------------------------------------------------------------- buttons - */

.btn {
  --btn-bg: var(--amber);
  --btn-fg: var(--amber-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8rem 1.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 2px solid var(--btn-bg);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .18s var(--ease);
}

.btn:hover {
  --btn-bg: var(--amber-hot);
  transform: translateY(-2px);
}

.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--cream);
  border-color: var(--line);
}

.btn--ghost:hover {
  --btn-bg: transparent;
  --btn-fg: var(--cream);
  border-color: var(--amber);
}

.btn--sm { padding: .5rem 1rem; font-size: .9375rem; }

.btn--block { width: 100%; }

/* ------------------------------------------------------------------ nav - */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(14, 16, 19, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-right: auto;
  min-width: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  flex: none;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.brand-name span { color: var(--amber); }

.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: .5625rem;
  letter-spacing: .19em;
  color: var(--steel);
  text-transform: uppercase;
  margin-top: 3px;
}

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

.nav-menu a {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cream-dim);
  transition: color .18s var(--ease);
}

.nav-menu a:hover { color: var(--amber); }

.nav-menu .btn { color: var(--amber-ink); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 38px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--cream);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  /* closed by DEFAULT via display:none — a class must open it */
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open { display: flex; }

  .nav-menu a {
    padding: .9rem 0;
    font-size: .875rem;
    border-bottom: 1px solid var(--line-soft);
  }

  .nav-menu .btn {
    margin-top: 1rem;
    border-bottom: 2px solid var(--amber);
  }
}

/* ----------------------------------------------------------------- hero - */

.hero {
  position: relative;
  container-type: inline-size;
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  padding-block: clamp(1rem, 5cqi, 4.5rem);
  overflow-x: clip; /* decorative plate bleeds on purpose */
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* blueprint grid + warm bay-light glow */
  background-image:
    radial-gradient(120% 90% at 78% 12%, rgba(224, 122, 44, .20) 0%, transparent 58%),
    radial-gradient(90% 70% at 8% 96%, rgba(124, 135, 148, .10) 0%, transparent 60%),
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 30%, #000 40%, transparent 100%);
          mask-image: radial-gradient(120% 100% at 50% 30%, #000 40%, transparent 100%);
}

.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(1rem, 4cqi, 3.5rem);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: clamp(.5rem, 1.6cqi, 1.4rem);
  min-width: 0;
}

.hero h1 {
  font-size: clamp(1.875rem, 8.6cqi, 5.25rem);
  line-height: .92;
  letter-spacing: -.012em;
}

.hero h1 .amber { color: var(--amber); }

.hero h1 .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--steel);
}

.hero-lede {
  max-width: 46ch;
  font-size: clamp(.9375rem, 1.9cqi, 1.1875rem);
  line-height: 1.6;
  color: var(--cream-dim);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .9rem;
  padding-top: .35rem;
  font-family: var(--font-mono);
  font-size: clamp(.625rem, 1.35cqi, .75rem);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--cream);
}

/* each claim breaks as a unit — a bullet must never orphan onto its own line */
.hero-proof .pf {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  white-space: nowrap;
}

.hero-proof .dot {
  width: 4px;
  height: 4px;
  background: var(--amber);
  flex: none;
}

/* the work-order ticket beside the headline */
.ticket {
  position: relative;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-width: 0;
}

.ticket::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--amber);
}

.ticket-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 2.4cqi, 1.5rem) clamp(1rem, 2.4cqi, 1.5rem) .75rem;
  border-bottom: 1px dashed var(--line);
}

.ticket-head h2 {
  font-size: clamp(1.0625rem, 2.3cqi, 1.5rem);
  letter-spacing: .01em;
}

.ticket-no {
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .16em;
  color: var(--steel);
  text-transform: uppercase;
  white-space: nowrap;
}

.ticket-list {
  list-style: none;
  margin: 0;
  padding: clamp(.6rem, 2cqi, 1.15rem) clamp(1rem, 2.4cqi, 1.5rem);
  display: grid;
  gap: clamp(.45rem, 1.3cqi, .8rem);
}

.ticket-list li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: .7rem;
  align-items: start;
  font-size: clamp(.8125rem, 1.6cqi, .9375rem);
  line-height: 1.45;
  color: var(--cream-dim);
}

.ticket-list li b {
  color: var(--cream);
  font-weight: 600;
}

.ticket-list svg {
  width: 16px;
  height: 16px;
  margin-top: .28em;
  color: var(--amber);
  flex: none;
}

.ticket-foot {
  padding: 0 clamp(1rem, 2.4cqi, 1.5rem) clamp(1rem, 2.4cqi, 1.35rem);
}

/* stack the ticket under the copy on narrow screens */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { align-items: flex-start; }
}

/* ------------------------------------------------------------- marquee -- */

.marquee {
  position: relative;
  overflow-x: clip;
  background: var(--amber);
  color: var(--amber-ink);
  border-block: 1px solid var(--amber-deep);
  padding-block: .6rem;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: slide 38s linear infinite;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-track span::after {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--amber-ink);
  transform: rotate(45deg);
  flex: none;
}

@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ------------------------------------------------------------ sections -- */

.section {
  position: relative;
  padding-block: clamp(3.5rem, 9vw, 7rem);
}

.section--alt { background: var(--ink-2); }

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head p {
  margin-top: 1rem;
  color: var(--cream-dim);
  font-size: 1.0625rem;
}

/* ------------------------------------------------------------ services -- */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service {
  position: relative;
  overflow: clip; /* keeps the watermark ordinal inside its own card */
  background: var(--ink);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: .7rem;
  transition: background .25s var(--ease);
}

.section--alt .service { background: var(--ink-2); }

.service:hover { background: var(--surface); }

.service-no {
  position: absolute;
  top: .4rem;
  right: .75rem;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  pointer-events: none;
  user-select: none;
}

.service-icon {
  width: 34px;
  height: 34px;
  color: var(--amber);
}

.service h3 {
  font-size: 1.5rem;
  letter-spacing: .01em;
}

.service p {
  color: var(--cream-dim);
  font-size: .9688rem;
  line-height: 1.6;
}

.service-link {
  margin-top: auto;
  padding-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber);
}

.service-link::after {
  content: "→";
  transition: transform .2s var(--ease);
}

.service-link:hover::after { transform: translateX(5px); }

.services-note {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px dashed var(--line);
  background: var(--ink-2);
}

.section--alt .services-note { background: var(--ink); }

.services-note p {
  flex: 1 1 340px;
  color: var(--cream-dim);
  font-size: .9688rem;
}

.services-note b { color: var(--cream); }

/* ---------------------------------------------------------------- steps - */

/* explicit columns, never auto-fit: 3 items in a 2-track grid strands one */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  counter-reset: step;
}

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  position: relative;
  padding-top: 1.75rem;
  border-top: 3px solid var(--line);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: -1.5rem;
  left: 0;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .2em;
  color: var(--amber);
}

.step h3 {
  font-size: 1.4375rem;
  margin-bottom: .6rem;
}

.step p {
  color: var(--cream-dim);
  font-size: .9688rem;
}

/* -------------------------------------------------------------- promise - */

/* 4 items, so only 1 / 2 / 4 tracks are safe — a 3-track row leaves a
   bordered empty cell that reads as a missing card */
.promise {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 1100px) {
  .promise { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .promise { grid-template-columns: 1fr; }
}

.promise-item {
  background: var(--ink);
  padding: clamp(1.5rem, 3vw, 2rem);
}

.section--alt .promise-item { background: var(--ink-2); }

.promise-item .k {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1;
  color: var(--amber);
  display: block;
  margin-bottom: .5rem;
}

.promise-item h3 {
  font-size: 1.1875rem;
  margin-bottom: .4rem;
}

.promise-item p {
  color: var(--cream-dim);
  font-size: .9375rem;
  line-height: 1.55;
}

/* ----------------------------------------------------------- visit/shop - */

.visit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: stretch; /* plates in a row end level, not ragged */
}

.plate {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.plate h3 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--line);
}

.hours {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55rem;
}

.hours li {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  font-size: .9688rem;
  color: var(--cream-dim);
}

.hours .d {
  flex: none;
  min-width: 8.5ch;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--steel);
}

.hours .leader {
  flex: 1 1 auto;
  height: 1px;
  min-width: 12px;
  background-image: linear-gradient(to right, var(--line) 50%, transparent 0);
  background-size: 6px 1px;
  background-repeat: repeat-x;
  transform: translateY(-3px);
}

.hours .t {
  flex: none;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}

.hours li.closed .t { color: var(--steel); }

.contact-lines {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.contact-lines li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: .85rem;
  align-items: start;
}

.contact-lines svg {
  width: 20px;
  height: 20px;
  color: var(--amber);
  margin-top: .2em;
}

.contact-lines .lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: .15rem;
}

.contact-lines .val {
  font-size: 1.0625rem;
  color: var(--cream);
}

a.val:hover { color: var(--amber); }

/* -------------------------------------------------------------- cta band */

.cta-band {
  position: relative;
  overflow-x: clip;
  background: var(--surface);
  border-block: 1px solid var(--line);
  padding-block: clamp(3rem, 7vw, 5rem);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    -60deg,
    rgba(224, 122, 44, .07) 0 22px,
    transparent 22px 44px
  );
}

.cta-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
}

.cta-inner h2 {
  font-size: clamp(1.875rem, 5vw, 3.25rem);
  max-width: 18ch;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* --------------------------------------------------------------- footer - */

.footer {
  background: var(--ink);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 2rem;
  border-top: 1px solid var(--line-soft);
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-soft);
}

.footer h4 {
  font-family: var(--font-mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 1rem;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55rem;
}

.footer ul a,
.footer ul li {
  color: var(--cream-dim);
  font-size: .9688rem;
}

.footer ul a:hover { color: var(--amber); }

.footer-blurb {
  margin-top: 1rem;
  max-width: 34ch;
  color: var(--cream-dim);
  font-size: .9375rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--steel);
}

/* ----------------------------------------------------------------- form - */

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

@media (max-width: 900px) {
  .form-layout { grid-template-columns: 1fr; }
}

.form-card {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.form-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px dashed var(--line);
}

.form-card-head h2 { font-size: clamp(1.5rem, 3.6vw, 2.125rem); }

#estimate-form {
  display: grid;
  gap: 1.15rem;
}

.field { display: grid; gap: .45rem; min-width: 0; }

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1.15rem;
}

.field label {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--steel);
}

.field label .req { color: var(--amber); }

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: .8rem .95rem;
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.45;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.field input::placeholder,
.field textarea::placeholder { color: #5d6570; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--amber);
  background: #0b0d10;
}

.turnstile-box { margin: .25rem 0; }

.form-status {
  margin-top: .25rem;
  padding: .95rem 1.1rem;
  border-left: 3px solid var(--amber);
  background: rgba(224, 122, 44, .08);
  font-size: .9688rem;
  line-height: 1.55;
  color: var(--cream);
}

.form-status.is-error {
  border-left-color: #d9534f;
  background: rgba(217, 83, 79, .1);
}

.form-status b { color: var(--amber); }

.form-fine {
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--steel);
}

.side-note {
  border-left: 3px solid var(--amber);
  padding-left: 1.25rem;
  margin-bottom: 2rem;
}

.side-note h3 {
  font-size: 1.25rem;
  margin-bottom: .5rem;
}

.side-note p {
  color: var(--cream-dim);
  font-size: .9688rem;
}

/* ------------------------------------------------------------- page top - */

.page-head {
  position: relative;
  overflow-x: clip;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line-soft);
}

/* the blueprint grid lives on a pseudo-element so it can be faded out —
   masking the section itself would fade the headline with it */
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(90% 120% at 82% 0%, rgba(224, 122, 44, .16) 0%, transparent 60%),
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
  -webkit-mask-image: radial-gradient(115% 130% at 25% 0%, #000 20%, transparent 85%);
          mask-image: radial-gradient(115% 130% at 25% 0%, #000 20%, transparent 85%);
}

.page-head > .wrap { position: relative; z-index: 1; }

.page-head h1 {
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  margin-top: .75rem;
}

.page-head p {
  margin-top: 1rem;
  max-width: 52ch;
  color: var(--cream-dim);
  font-size: 1.0625rem;
}

.crumb {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--steel);
}

.crumb a:hover { color: var(--amber); }

/* --------------------------------------------------- narrow-screen tuning - */

/* side-by-side buttons stack at ragged widths on a phone — make them match */
@media (max-width: 560px) {
  .hero-cta,
  .cta-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .services-note .btn { width: 100%; }
}

/* --------------------------------------------------------------- reveal - */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* === site credit (injected by credit_footer.py); do not hand-edit === */
.site-credit {
  margin: 2.25rem 0 0;
  padding-inline: 1.25rem;
  font-size: .73rem;
  line-height: 1.5;
  letter-spacing: .06em;
  text-align: center;
  opacity: .65;
}
.site-credit a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(128, 128, 128, .5);
  border-bottom: 1px solid color-mix(in srgb, currentColor 45%, transparent);
  transition: border-bottom-color .25s ease;
}
.site-credit a:hover,
.site-credit a:focus-visible { border-bottom-color: currentColor; }
@media (prefers-reduced-motion: reduce) {
  .site-credit a { transition: none; }
}

/* Shares the footer's own copyright row: sits opposite it rather than adding a
   third line under the page. The parent is reached with :has() so no client
   class name has to be guessed, and the rule cannot fire on a footer that has
   no inline credit in it. */
.site-credit--inline {
  margin: 0;
  padding: 0;
  text-align: right;
}
footer :has(> .site-credit--inline) {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .35rem 1.5rem;
}
/* === end site credit === */
