:root {
  --ink: #111417;
  --ink-soft: #1a1f24;
  --paper: #f4f2ed;
  --tint: #e9e6de;
  --card: #ffffff;
  --accent: #ff5a1f;
  --accent-dark: #d94410;
  --muted: #5d646b;
  --muted-on-dark: #9aa3ab;
  --line: rgba(17, 20, 23, 0.12);
  --line-on-dark: rgba(255, 255, 255, 0.12);
  --radius: 14px;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
}

.wrap {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}

/* Machine drawings */

.machine-lines,
.machine-basket {
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.machine-basket {
  stroke: var(--accent);
}

.machine-boom {
  stroke-width: 9;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.button:hover {
  transform: translateY(-2px);
}

.button-accent {
  background: var(--accent);
  color: #fff;
}

.button-accent:hover {
  background: var(--accent-dark);
}

.button-ghost {
  border-color: var(--line-on-dark);
  color: #fff;
}

.button-ghost:hover {
  border-color: #fff;
}

.button-outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
  padding: 10px 18px;
  font-size: 14px;
}

.button-outline:hover {
  background: var(--ink);
  color: #fff;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(17, 20, 23, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-on-dark);
  color: #fff;
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-stretch: 125%;
  font-size: 17px;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.logo b {
  font-weight: 900;
  color: var(--accent);
}

.logo-mark {
  width: 22px;
  height: 22px;
  border: 3px solid var(--accent);
  border-bottom-width: 9px;
  border-radius: 4px;
}

.main-nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted-on-dark);
  transition: color 0.2s;
}

.main-nav a:hover {
  color: #fff;
}

.header-call {
  padding: 10px 18px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 14px;
}

/* Hero */

.hero {
  background-color: var(--ink);
  background-image:
    linear-gradient(var(--line-on-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-on-dark) 1px, transparent 1px);
  background-size: 64px 64px;
  color: #fff;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: stretch;
  padding-block: 88px 0;
}

.hero-copy {
  padding-bottom: 88px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin-top: 20px;
  font-size: clamp(44px, 7vw, 92px);
  font-weight: 900;
  font-stretch: 112%;
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

h1 em {
  font-style: normal;
  color: var(--accent);
}

.lead {
  margin-top: 26px;
  max-width: 52ch;
  font-size: 19px;
  color: var(--muted-on-dark);
}

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

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 36px;
  margin: 56px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line-on-dark);
}

.hero-facts dt {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}

.hero-facts dd {
  margin: 6px 0 0;
  font-size: 20px;
  font-weight: 700;
}

.gauge {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  min-height: 460px;
}

.gauge-scale {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: 0 14px 0 0;
  list-style: none;
  border-right: 2px solid var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-on-dark);
  text-align: right;
}

.gauge-scale li {
  position: relative;
  line-height: 1;
}

.gauge-scale li::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 50%;
  width: 10px;
  height: 2px;
  background: var(--accent);
}

.gauge-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
}

.gauge-machine {
  width: 100%;
  height: 100%;
  max-height: 520px;
  color: #fff;
}

.gauge-tag {
  position: absolute;
  top: 6%;
  left: 0;
  padding: 10px 14px;
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 13px;
  animation: float 4s ease-in-out infinite;
}

.gauge-tag b {
  color: var(--accent-dark);
}

@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}

/* Sections */

.section {
  padding-block: 104px;
}

.section-dark {
  background: var(--ink);
  color: #fff;
}

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

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

h2 {
  margin-top: 14px;
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 800;
  font-stretch: 108%;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
}

/* Finder */

.finder {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 40px;
  align-items: end;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.finder-height label {
  font-weight: 700;
}

.finder-slider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 12px;
}

.finder-slider output {
  min-width: 4ch;
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 500;
  color: var(--accent-dark);
  white-space: nowrap;
}

input[type="range"] {
  flex: 1;
  height: 28px;
  accent-color: var(--accent);
  cursor: pointer;
}

.finder-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 9px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.chip:hover {
  border-color: var(--ink);
}

.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.finder-count {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

/* Fleet */

.fleet {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.machine {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.machine:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: 0 18px 40px -22px rgba(17, 20, 23, 0.45);
}

.machine-picture {
  position: relative;
  padding: 22px 22px 0;
  background: var(--tint);
}

.machine-picture svg {
  display: block;
  width: 100%;
  height: 170px;
  color: var(--ink);
}

.machine-height {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 10px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
}

.machine-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 14px;
  padding: 22px;
}

.machine-type {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.machine-specs {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.machine-specs li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.machine-specs b {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--ink);
  text-align: right;
}

.machine-body .button {
  margin-top: auto;
  align-self: flex-start;
}

.fleet-empty {
  grid-column: 1 / -1;
  padding: 40px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 30px;
  background: var(--ink-soft);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius);
}

.step-number {
  display: block;
  margin-bottom: 44px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
}

.steps p {
  margin-top: 10px;
  color: var(--muted-on-dark);
}

/* Services */

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.service {
  padding: 34px 34px 34px 0;
  border-bottom: 1px solid var(--line);
}

.service + .service {
  padding-left: 34px;
  border-left: 1px solid var(--line);
}

.service p {
  margin-top: 10px;
  max-width: 44ch;
  color: var(--muted);
}

/* FAQ */

.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 22px;
  line-height: 1;
  color: var(--accent-dark);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding-bottom: 24px;
  max-width: 60ch;
  color: var(--muted);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contact-list {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line-on-dark);
  font-weight: 600;
}

.contact-list span {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  align-self: center;
}

.contact-list a {
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}

.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 32px;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label {
  font-size: 14px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.2);
}

.field .is-invalid {
  border-color: #c62828;
}

.form-note {
  grid-column: 1 / -1;
  min-height: 1.4em;
  font-size: 14px;
  color: #c62828;
}

.form-note.is-ok {
  color: #1b6e3c;
}

/* Footer */

.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--line-on-dark);
  color: var(--muted-on-dark);
  font-size: 14px;
}

.site-footer .logo {
  color: #fff;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 30px;
}

/* Reveal on scroll */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Smaller screens */

@media (max-width: 960px) {
  .main-nav {
    display: none;
  }

  .hero-grid,
  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-top: 64px;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .gauge {
    min-height: 340px;
  }

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

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

  .step-number {
    margin-bottom: 20px;
  }

  .section {
    padding-block: 72px;
  }
}

@media (max-width: 620px) {
  .hero-facts {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

  .service,
  .service + .service {
    padding: 26px 0;
    border-left: 0;
  }

  .quote-form {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .contact-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .logo {
    font-size: 15px;
  }

  .header-call {
    padding: 9px 14px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .gauge-tag {
    animation: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button:hover,
  .machine:hover {
    transform: none;
  }
}
