/* Orange Production Services — site styles
   Tokens first, then layout, then sections. No framework. */

:root {
  --ink: #171412;        /* page background: warm near-black, road-case tolex */
  --case: #221e1b;       /* raised panels */
  --seam: #332d29;       /* hairlines on dark */
  --paper: #f4eee6;      /* primary text on dark */
  --mute: #a79f96;       /* secondary text on dark */
  --orange: #f06a1e;     /* brand */
  --orange-deep: #c4500f;
  --orange-ink: #2a1205; /* text on orange */
  --orange-ink-soft: #5c2a0c;

  --font-display: "Bricolage Grotesque", "Arial Narrow", Impact, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;

  --measure: 62ch;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --wrap: 1120px;
  --nav-h: 4rem;
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.02; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: var(--measure); }
ul { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
form .sr-only, .sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0; margin: -1px; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
section { padding-block: clamp(4rem, 9vw, 7.5rem); scroll-margin-top: var(--nav-h); }
.section-title {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  text-wrap: balance;
  margin-bottom: 0.4em;
  max-width: 22ch;
}
.lede { font-size: 1.2rem; color: var(--mute); max-width: 52ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.85em 1.4em;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  text-decoration: none; border-radius: 4px; border: 2px solid transparent;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-dark { background: var(--orange-ink); color: var(--paper); }
.btn-dark:hover { background: #000; }
.btn-orange { background: var(--orange); color: var(--orange-ink); }
.btn-orange:hover { background: #ff7b2e; }
.btn-ghost { border-color: var(--orange-ink); color: var(--orange-ink); background: transparent; }
.btn-ghost:hover { background: rgba(42,18,5,.1); }
.btn-ghost-light { border-color: var(--seam); color: var(--paper); }
.btn-ghost-light:hover { border-color: var(--paper); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  height: var(--nav-h);
  background: rgba(23,20,18,.94);
  color: var(--paper);
  border-bottom: 1px solid var(--seam);
  backdrop-filter: blur(8px);
}
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand-mark { width: auto; height: 38px; }
.nav-links { display: flex; gap: 1.75rem; align-items: center; }
.nav-links a { text-decoration: none; font-weight: 500; opacity: .9; }
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.nav-phone { font-family: var(--font-display); font-weight: 700; }
.nav-toggle { display: none; background: none; border: 0; padding: .4rem; cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--case); color: var(--paper);
    border-bottom: 1px solid var(--seam);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { width: 100%; padding: 1rem var(--gutter); border-top: 1px solid var(--seam); }
}

/* ---------- hero ---------- */
.hero {
  background: var(--orange);
  color: var(--orange-ink);
  padding-block: clamp(3.5rem, 8vw, 7rem) 0;
  position: relative; overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem; align-items: end; }
.hero h1 {
  font-size: clamp(2.75rem, 7.2vw, 5.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  max-width: 12ch;
  font-variation-settings: "wdth" 90;
}
.hero-sub { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--orange-ink-soft); max-width: 40ch; margin-top: 1.5rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-where { margin-top: 2.5rem; font-size: .95rem; color: var(--orange-ink-soft); }

/* The one moving thing on the page: a spectrum analyzer rendered in brand ink.
   Bars are static (mid-height) without JS or with reduced motion. */
.rta { height: clamp(180px, 28vw, 320px); display: flex; align-items: flex-end; gap: 3px; padding-bottom: 0; }
.rta span { flex: 1; background: var(--orange-ink); height: 35%; border-radius: 2px 2px 0 0; transform-origin: bottom; opacity: .92; }
.rta span:nth-child(3n) { opacity: .75; }
.hero-base { margin-top: 0; height: 10px; background: var(--orange-ink); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 2rem; }
  .rta { height: 140px; }
}

/* ---------- services ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem 3rem; margin-top: 3rem;
}
@media (max-width: 1000px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 4rem; } }
.service h3 { font-size: 1.75rem; margin-bottom: .6rem; display: flex; align-items: center; gap: .6rem; }
.service h3 svg { width: 28px; height: 28px; color: var(--orange); flex: none; }
.service p { color: var(--mute); }
.service ul { margin-top: .75rem; color: var(--paper); }
.service li { padding: .3rem 0 .3rem 1.1rem; position: relative; }
.service li::before { content: ""; position: absolute; left: 0; top: .95em; width: .45rem; height: 2px; background: var(--orange); }
@media (max-width: 700px) { .services-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ---------- how it works ---------- */
.how { background: var(--case); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; margin-top: 3rem; counter-reset: step; }
.step { border-top: 3px solid var(--orange); padding-top: 1.25rem; }
.step h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.step h3::before { counter-increment: step; content: counter(step) ". "; color: var(--orange); }
.step p { color: var(--mute); font-size: 1rem; }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- track record ---------- */
.record-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 3rem 4rem; margin-top: 2rem; align-items: start; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 800; line-height: 1; color: var(--orange); letter-spacing: -0.02em; }
.stat span { color: var(--mute); font-size: .95rem; }
.names { display: flex; flex-wrap: wrap; gap: .5rem .6rem; margin-top: 1rem; }
.names li { border: 1px solid var(--seam); border-radius: 999px; padding: .35rem .9rem; font-size: .95rem; color: var(--paper); }
.record-note { color: var(--mute); margin-top: 1.25rem; font-size: .95rem; }
@media (max-width: 800px) { .record-grid { grid-template-columns: 1fr; } }

/* ---------- about ---------- */
.about { background: var(--case); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 3rem 4rem; align-items: center; }
.about p { color: var(--paper); }
.about .lede { color: var(--mute); }
.photo {
  aspect-ratio: 4 / 5; background: var(--ink); border: 1px solid var(--seam); border-radius: 4px;
  display: grid; place-items: center; color: var(--mute); font-size: .9rem; overflow: hidden;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } .photo { aspect-ratio: 3 / 2; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem 4rem; margin-top: 2rem; }
.contact-direct a.big { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; text-decoration: none; color: var(--orange); display: inline-block; letter-spacing: -0.02em; }
.contact-direct a.big:hover { text-decoration: underline; text-underline-offset: 6px; }
.contact-direct p { color: var(--mute); }
.contact-links { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
form.inquiry { display: grid; gap: 1rem; }
form.inquiry label { display: grid; gap: .35rem; font-size: .95rem; color: var(--mute); }
form.inquiry input, form.inquiry textarea, form.inquiry select {
  background: var(--case); border: 1px solid var(--seam); border-radius: 4px; padding: .75rem .9rem; color: var(--paper); width: 100%;
}
form.inquiry input:focus, form.inquiry textarea:focus, form.inquiry select:focus { border-color: var(--orange); outline: none; }
form.inquiry textarea { min-height: 7.5rem; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-status { font-size: .95rem; color: var(--mute); min-height: 1.4em; }
.form-status.ok { color: var(--orange); }
.form-status.err { color: #ff8a8a; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--seam); padding: 2rem 0 3rem; color: var(--mute); font-size: .9rem; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; }
.footer-logo { width: 150px; height: auto; flex: none; }
footer a { text-decoration: none; }
footer a:hover { color: var(--paper); }
