/* ============================================================
   Colorado MRO Buyers
   Industrial register: flat surfaces, hairline rules, one accent,
   blueprint structure. Motion is subtle and reduced-motion aware.
   ============================================================ */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/assets/fonts/archivo-var.woff2") format("woff2");
}

@font-face {
  font-family: "Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/plexmono-1.woff2") format("woff2");
}

@font-face {
  font-family: "Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/plexmono-2.woff2") format("woff2");
}

:root {
  --ink: #101315;
  --ink-2: #2a3037;
  --steel: #59626b;
  --steel-2: #8b949c;

  --paper: #fbfaf8;
  --paper-2: #f1eee9;

  --line: #ddd7cd;
  --line-2: #c9c2b6;
  --line-dark: #2c3339;
  --line-dark-2: #3d454c;

  --accent: #d2440f;
  --accent-ink: #a83609;
  --accent-lift: #f2764a;
  --bone: #eae5dd;

  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gut: 24px;
  --r: 2px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --rise: 16px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

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

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

a {
  color: var(--accent-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

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

/* ============================================================
   Motion primitives
   ============================================================ */

/* Only hide reveal targets when JS is present to bring them back. */
.js .reveal {
  opacity: 0;
  transform: translateY(var(--rise));
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}

.js .reveal.in,
.js .reveal.force-in {
  opacity: 1;
  transform: none;
}

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

/* ============================================================
   Type
   ============================================================ */

h1,
h2,
h3 {
  font-family: var(--sans);
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.55rem, 6.6vw, 4.6rem);
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.032em;
  line-height: 0.96;
}

h2 {
  font-size: clamp(1.95rem, 4vw, 3rem);
  font-weight: 800;
  font-stretch: 110%;
  letter-spacing: -0.028em;
  line-height: 1.02;
}

h3 {
  font-size: 1.05rem;
  font-weight: 700;
  font-stretch: 104%;
  letter-spacing: -0.012em;
  line-height: 1.3;
}

p {
  margin: 0 0 1.1em;
}

strong {
  font-weight: 700;
  color: var(--ink);
}

/* Numbered section eyebrow: "03 / What We Buy" */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 1.15em;
}

.eyebrow::before {
  content: attr(data-n);
  color: var(--steel-2);
  letter-spacing: 0.1em;
}

.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  max-width: 96px;
}

.lede {
  font-size: clamp(1.12rem, 1.6vw, 1.28rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 42ch;
}

.section-lede {
  font-size: 1.1rem;
  max-width: 60ch;
  color: var(--steel);
  margin-bottom: 2.75rem;
}

.text-accent {
  color: var(--accent);
}

.fineprint {
  font-size: 0.84rem;
  color: var(--steel);
  margin: 0;
}

.fineprint-block {
  margin-top: 1rem;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.97rem;
  font-weight: 700;
  font-stretch: 104%;
  padding: 14px 26px;
  border-radius: var(--r);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.22s var(--ease), border-color 0.22s var(--ease),
    color 0.22s var(--ease), transform 0.22s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn .arw {
  display: inline-block;
  transition: transform 0.28s var(--ease);
}
.btn:hover .arw {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(16, 19, 21, 0.03);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.89rem;
}

.btn-block {
  width: 100%;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2rem;
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 248, 0.82);
  backdrop-filter: saturate(1.5) blur(12px);
  -webkit-backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.site-header.stuck {
  border-bottom-color: var(--line);
  background: rgba(251, 250, 248, 0.94);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.site-header.stuck .scroll-progress {
  opacity: 1;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
  transition: min-height 0.3s var(--ease);
}

.site-header.stuck .nav-row {
  min-height: 62px;
}

.logo img {
  width: 210px;
  height: auto;
  transition: width 0.3s var(--ease);
}
.site-header.stuck .logo img {
  width: 190px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(4) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a:not(.btn) {
  position: relative;
  display: inline-block;
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 600;
  font-stretch: 102%;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}

.nav-list a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.28s var(--ease);
}

.nav-list a:not(.btn):hover {
  color: var(--ink);
}
.nav-list a:not(.btn):hover::after,
.nav-list a.active::after {
  transform: scaleX(1);
}

.nav-list a.active {
  color: var(--ink);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  padding: clamp(3.75rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

/* Blueprint grid: structural hairlines, masked so it fades out. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to right,
      rgba(16, 19, 21, 0.055) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(16, 19, 21, 0.055) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(
    120% 85% at 18% 8%,
    #000 0%,
    transparent 72%
  );
  mask-image: radial-gradient(120% 85% at 18% 8%, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero > .container {
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.32fr 0.88fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.hero h1 {
  max-width: 14ch;
  margin-bottom: 0.42em;
}

.hero-note {
  margin-top: 1.85rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.84rem;
  color: var(--steel);
  max-width: 46ch;
}

/* Spec plate: reads like an equipment data plate. */
.hero-card {
  background: var(--ink);
  border-radius: var(--r);
  padding: 22px 26px 16px;
}

.plate-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line-dark-2);
}

.plate-title {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone);
  margin: 0;
}

.plate-dots {
  display: flex;
  gap: 5px;
}
.plate-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-dark-2);
}
.plate-dots i:first-child {
  background: var(--accent);
}

.spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.spec-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-dark);
}
.spec-list li:last-child {
  border-bottom: 0;
}

.spec-k {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--steel-2);
  white-space: nowrap;
}

.spec-v {
  font-size: 0.96rem;
  font-weight: 700;
  font-stretch: 104%;
  color: var(--bone);
  text-align: right;
}

/* ============================================================
   Brand marquee
   ============================================================ */

.marquee {
  display: flex;
  align-items: stretch;
  background: var(--ink);
  overflow: hidden;
  border-bottom: 1px solid var(--line-dark);
}

/* The label is a real flex item, not an overlay, so it can never sit on top
   of the moving track and chop a brand name mid-word. */
.marquee-label {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0 26px 0
    max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut)));
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel-2);
  white-space: nowrap;
}

.marquee-viewport {
  display: flex;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 4%,
    #000 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 4%,
    #000 92%,
    transparent 100%
  );
}

.marquee-track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  padding: 20px 0;
  animation: marquee 70s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding-right: 30px;
  font-size: 0.98rem;
  font-weight: 600;
  font-stretch: 104%;
  color: #7d868e;
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}

.marquee-track span::after {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--accent);
  opacity: 0.55;
  transform: rotate(45deg);
}

.marquee-track span:hover {
  color: var(--bone);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* ============================================================
   Value bar
   ============================================================ */

.valuebar {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.75rem, 5vw, 3.75rem) 0;
}

.valuebar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.value {
  padding: 0 28px;
  border-left: 1px solid var(--line);
}
.value:first-child {
  padding-left: 0;
  border-left: 0;
}
.value:last-child {
  padding-right: 0;
}

.value h3 {
  margin-bottom: 0.5em;
}

.value p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--steel);
}

/* ============================================================
   Stats band
   ============================================================ */

.stats {
  padding: clamp(2.75rem, 5vw, 3.75rem) 0;
  border-bottom: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.stat {
  background: var(--paper);
  padding: 26px 24px;
  transition: background-color 0.3s var(--ease);
}
.stat:hover {
  background: #fff;
}

.stat-v {
  display: block;
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  font-weight: 800;
  font-stretch: 108%;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 0.32em;
  font-variant-numeric: tabular-nums;
}

.stat-v .u {
  color: var(--accent);
}

.stat-k {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  line-height: 1.5;
}

/* ============================================================
   Sections
   ============================================================ */

.section {
  padding: clamp(3.75rem, 7vw, 6rem) 0;
  border-bottom: 1px solid var(--line);
}

.section-tint {
  background: var(--paper-2);
}

.section-dark {
  background: var(--ink);
  border-bottom: 0;
}

.section-dark h2,
.section-dark h3 {
  color: #fff;
}
.section-dark p {
  color: #a6aeb5;
}
.section-dark .eyebrow {
  color: var(--accent-lift);
}
.section-dark .eyebrow::before {
  color: var(--steel);
}
.section-dark .eyebrow::after {
  background: var(--line-dark-2);
}
.section-dark .section-lede {
  color: #a6aeb5;
}
.section-dark .fineprint {
  color: var(--steel-2);
}
.section-dark .btn-ghost {
  color: #fff;
  border-color: var(--line-dark-2);
}
.section-dark .btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

/* ============================================================
   What we buy
   ============================================================ */

.buy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.buy-card {
  position: relative;
  background: #fff;
  padding: 26px 24px 28px;
  transition: background-color 0.3s var(--ease);
}

.buy-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.35s var(--ease);
}

.buy-card:hover {
  background: #fffdfc;
}
.buy-card:hover::after {
  transform: scaleX(1);
}

.buy-card-wide {
  grid-column: 1 / -1;
}

.buy-card h3 {
  margin-bottom: 0.45em;
}

.buy-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--steel);
}

.brands-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 2.75rem 0 0.6rem;
}

/* ============================================================
   Steps
   ============================================================ */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  overflow: hidden;
}

.steps li {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 22px;
  align-items: start;
  background: var(--ink);
  padding: 28px 26px;
  transition: background-color 0.35s var(--ease);
}

.steps li:hover {
  background: #171b1e;
}

.step-n {
  font-family: var(--mono);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  transition: transform 0.35s var(--ease);
}

.steps li:hover .step-n {
  transform: translateX(3px);
}

.steps h3 {
  margin-bottom: 0.4em;
}

.steps p {
  margin: 0;
  font-size: 0.95rem;
  max-width: 66ch;
}

/* ============================================================
   Split layout
   ============================================================ */

.split {
  display: grid;
  grid-template-columns: 1.22fr 0.88fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.split-copy p {
  max-width: 56ch;
}

.checks {
  list-style: none;
  margin: 1.75rem 0 2.25rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px 26px;
}

.checks li {
  position: relative;
  padding-left: 24px;
  font-size: 0.94rem;
  color: var(--ink-2);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--accent);
  transform: rotate(45deg);
}

.split-aside {
  display: grid;
  gap: 14px;
}

.fact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 22px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.fact-card:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}

.fact-k {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 0.55em;
}

.fact-v {
  margin: 0;
  font-size: 0.96rem;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.5;
}

.quote-card {
  background: var(--ink);
  border-radius: var(--r);
  padding: 26px 26px 28px;
}

.quote-k {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-lift);
  margin: 0 0 0.75em;
}

.quote-v {
  margin: 0;
  font-size: 1.42rem;
  font-weight: 800;
  font-stretch: 108%;
  letter-spacing: -0.028em;
  line-height: 1.18;
  color: #fff;
}

.plain {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.plain:hover {
  color: var(--accent-ink);
}

/* ============================================================
   Live inventory
   ============================================================ */

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--r);
  padding: 7px 13px;
  margin-bottom: 2.75rem;
}

.live-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1f9254;
  flex-shrink: 0;
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #1f9254;
  animation: ping 2.4s var(--ease) infinite;
}

@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.65;
  }
  70%,
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

.inv-status {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--steel);
  padding: 26px 0;
}

.inv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.inv-item {
  position: relative;
  background: #fff;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.28s var(--ease);
}

.inv-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.35s var(--ease);
}

.inv-item:hover::after {
  transform: scaleX(1);
}

.inv-thumb {
  aspect-ratio: 1;
  background: var(--paper-2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inv-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s var(--ease);
}

.inv-item:hover .inv-thumb img {
  transform: scale(1.045);
}

.inv-title {
  font-size: 0.83rem;
  line-height: 1.38;
  color: var(--ink-2);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.inv-price {
  margin: auto 0 0;
  font-family: var(--mono);
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}

.inv-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 2rem;
}

/* ============================================================
   Form
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.form {
  background: #fff;
  border-radius: var(--r);
  padding: 28px;
  display: grid;
  gap: 17px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}

.fld {
  display: grid;
  gap: 7px;
}

.fld label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 600;
}

.opt {
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--sans);
  color: #a1a8ae;
}

/* 16px minimum stops iOS from zooming the viewport on focus. */
.field {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px 13px;
  width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.field:hover {
  border-color: var(--line-2);
}

.field:focus {
  background: #fff;
  border-color: var(--accent);
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px rgba(210, 68, 15, 0.14);
}

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

.field.file {
  padding: 10px 13px;
  background: var(--paper-2);
}

.hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--steel);
  transition: color 0.2s var(--ease);
}

.hint.filled {
  color: var(--accent-ink);
  font-weight: 600;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.hp input {
  font-size: 1rem;
}

.form-msg {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  min-height: 1.2em;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.form-msg.show {
  opacity: 1;
  transform: none;
}

.form-msg.ok {
  color: #1a6b3d;
}
.form-msg.err {
  color: #b3261e;
}

.contact-aside {
  display: grid;
  gap: 14px;
}

.section-dark .form label,
.section-dark .form .hint,
.section-dark .form .fineprint {
  color: var(--steel);
}

@media (min-width: 641px) {
  .field {
    font-size: 0.94rem;
  }
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--paper-2);
  padding: 3.5rem 0 1.75rem;
  border-top: 1px solid var(--line);
}

.footer-row {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 2.5rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--line);
}

.footer-logo {
  margin-bottom: 16px;
}

.footer-row .fineprint {
  max-width: 46ch;
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 20px;
}

.footer-nav a {
  color: var(--ink-2);
  font-size: 0.91rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer-nav a:hover {
  color: var(--accent-ink);
  transform: translateX(2px);
}

.footer-legal {
  padding-top: 1.4rem;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1000px) {
  .buy-grid,
  .inv-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .valuebar-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 0;
  }
  .value:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 880px) {
  html {
    scroll-padding-top: 78px;
  }

  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: static;
  }

  .site-header .container {
    position: relative;
  }

  .nav-list {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gut) 18px;
  }

  .nav-list.open {
    display: flex;
    animation: navDrop 0.28s var(--ease);
  }

  @keyframes navDrop {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  .nav-list li {
    border-bottom: 1px solid var(--line);
  }
  .nav-list li:last-child {
    border-bottom: 0;
    padding-top: 14px;
  }

  .nav-list a:not(.btn) {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
  }
  .nav-list a:not(.btn)::after {
    display: none;
  }

  .hero-grid,
  .split,
  .contact-grid,
  .footer-row {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .lede {
    max-width: none;
  }

  .marquee-label {
    display: none;
  }

  .steps li {
    grid-template-columns: 60px 1fr;
    gap: 16px;
    padding: 24px 20px;
  }

  .step-n {
    font-size: 1.3rem;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .logo img,
  .site-header.stuck .logo img {
    width: 178px;
  }

  .buy-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .buy-card-wide {
    grid-column: span 1;
  }

  .inv-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .valuebar-grid {
    grid-template-columns: 1fr;
  }
  .value {
    padding: 0;
    border-left: 0;
  }

  .checks {
    grid-template-columns: 1fr;
  }

  .row {
    grid-template-columns: 1fr;
  }

  .form {
    padding: 22px;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }

  .eyebrow::after {
    max-width: 40px;
  }
}
