:root {
  --color-bg: #101214;
  --color-surface: #181C20;
  --color-surface-2: #22272D;
  --color-text: #F2F0EA;
  --color-muted: #B9B4AA;
  --color-accent: #D97732;
  --color-accent-2: #B8A27A;
  --color-border: rgba(255,255,255,.12);
  --shadow-soft: 0 18px 60px rgba(0,0,0,.28);
  --max-width: 1180px;
  --header-height: 72px;
  --asset-grid: url("/assets/img/patterns/technical-grid.svg");
  --asset-steel: url("/assets/img/patterns/steel-noise.svg");
  --asset-divider: url("/assets/img/patterns/section-divider-tire-track.svg");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--color-bg);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(rgba(16,18,20,.96), rgba(16,18,20,.96)),
    var(--asset-steel),
    var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--color-text);
  color: var(--color-bg);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 14px 32px;
  border-bottom: 1px solid var(--color-border);
  background: rgba(16,18,20,.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-surface-2), #121416);
  color: var(--color-accent-2);
  font-size: 13px;
}

.brand-name {
  font-size: 18px;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  color: var(--color-muted);
  font-size: 14px;
}

.site-nav a,
.site-footer a,
.project-card a {
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-footer a:hover,
.project-card a:hover {
  color: var(--color-text);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.2;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.header-cta {
  background: var(--color-accent);
  color: #160E09;
  border-color: rgba(217,119,50,.7);
}

.button:hover,
.header-cta:hover,
.button:focus-visible,
.header-cta:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--color-accent);
  border-color: rgba(217,119,50,.78);
  color: #160E09;
}

.button-ghost {
  background: rgba(255,255,255,.04);
  color: var(--color-text);
}

.button-text {
  border-color: transparent;
  color: var(--color-accent-2);
  padding-inline: 4px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 92px 32px;
}

.section-dark,
.section-band {
  position: relative;
  isolation: isolate;
}

.technical-pattern::after,
.section-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--asset-grid);
  background-size: 240px 240px;
  opacity: .32;
}

.industrial-divider {
  height: 54px;
  border-block: 1px solid var(--color-border);
  background:
    linear-gradient(90deg, rgba(16,18,20,.92), rgba(16,18,20,.52), rgba(16,18,20,.92)),
    var(--asset-divider) center / cover no-repeat;
}

.hero {
  min-height: calc(100svh - 128px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 48vw);
  align-items: center;
  gap: 36px;
  max-width: none;
  padding: 64px 32px 76px;
  border-bottom: 1px solid var(--color-border);
  background:
    linear-gradient(90deg, rgba(16,18,20,.96), rgba(16,18,20,.82) 44%, rgba(16,18,20,.70)),
    var(--asset-steel),
    linear-gradient(90deg, rgba(16,18,20,.96), rgba(16,18,20,.82) 44%, rgba(16,18,20,.66)),
    linear-gradient(135deg, #101214 0%, #181C20 64%, #25221D 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .32;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, #000, transparent 82%);
}

.hero-copy {
  width: min(100%, 560px);
  margin-left: max(0px, calc((100vw - var(--max-width)) / 2));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--color-accent-2);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 14px;
  font-size: 82px;
  line-height: .95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: 0;
}

.lead {
  margin-bottom: 18px;
  color: var(--color-text);
  font-size: 27px;
  line-height: 1.25;
  font-weight: 750;
}

.hero-text,
.section-heading p,
.contact-copy p {
  color: var(--color-muted);
  font-size: 17px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.hero-visual {
  position: relative;
  margin: 0;
  min-height: 360px;
  align-self: stretch;
  display: grid;
  place-items: center;
  gap: 16px;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 0 10% 8%;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(24,28,32,.78), rgba(108,76,44,.22));
  box-shadow: var(--shadow-soft);
  transform: skewX(-4deg);
  z-index: -1;
}

.hero-vehicle {
  position: relative;
  width: min(94%, 780px);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(242,240,234,.16);
  border-radius: 8px;
  box-shadow: 0 28px 54px rgba(0,0,0,.36);
}

.hero-badges {
  position: absolute;
  right: 9%;
  bottom: 10%;
  width: min(260px, 38%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  z-index: 2;
}

.badge {
  width: 100%;
  min-width: 0;
  border-radius: 8px;
  opacity: .9;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.26));
}

.grid-line,
.measure {
  fill: none;
  stroke: rgba(242,240,234,.2);
  stroke-width: 1.5;
}

.truck-line {
  fill: none;
  stroke: url(#bodyLine);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.truck-line.thin {
  stroke: rgba(242,240,234,.7);
  stroke-width: 4;
}

.truck-line.accent {
  stroke: var(--color-accent-2);
  stroke-width: 5;
}

.wheel {
  fill: #101214;
  stroke: rgba(242,240,234,.72);
  stroke-width: 8;
}

.wheel-inner {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 5;
}

.svg-label {
  fill: var(--color-accent-2);
  font: 700 18px system-ui, sans-serif;
}

.svg-label.muted {
  fill: rgba(242,240,234,.52);
  font-size: 14px;
}

.section-heading {
  max-width: 720px;
}

.section-heading.narrow {
  max-width: 820px;
  margin: 0 auto 36px;
  text-align: center;
}

.pillar-grid,
.project-grid,
.journal-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.panel,
.project-card,
.contact-panel,
.service-list article,
.journal-list article {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(34,39,45,.92), rgba(24,28,32,.92));
}

.panel {
  min-height: 244px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.panel::after,
.project-card::after,
.service-list article::after,
.journal-list article::after {
  content: "";
  position: absolute;
  inset: auto -18px -28px auto;
  width: 128px;
  height: 88px;
  border: 1px solid rgba(242,240,234,.08);
  transform: skewX(-18deg);
  opacity: .55;
  z-index: 0;
  pointer-events: none;
}

.panel > *,
.project-card > *,
.service-list article > *,
.journal-list article > * {
  position: relative;
  z-index: 1;
}

.service-icon {
  width: 58px;
  height: 58px;
  margin: 16px 0 18px;
}

.service-icon-small {
  width: 44px;
  height: 44px;
  margin: 0 0 14px;
}

.panel-index,
.project-type,
.journal-list article p {
  color: var(--color-accent);
  font-weight: 850;
  font-size: 13px;
  text-transform: uppercase;
}

.panel p,
.project-card p,
.service-list p,
.journal-list h3,
.note,
.legal-note {
  color: var(--color-muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.split.reverse {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
}

.sticky-heading {
  position: sticky;
  top: 104px;
}

.legal-note {
  margin-top: 20px;
  font-size: 13px;
}

.service-list {
  display: grid;
  gap: 14px;
}

.service-list article {
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.section-band {
  max-width: none;
  padding-inline: 32px;
  border-block: 1px solid var(--color-border);
  background:
    linear-gradient(180deg, rgba(24,28,32,.92), rgba(16,18,20,.96)),
    var(--asset-steel),
    repeating-linear-gradient(120deg, rgba(255,255,255,.06) 0 1px, transparent 1px 18px);
}

.section-band > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.feature-rail,
.category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 30px;
}

.feature-rail span,
.category-row span,
.tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: var(--color-muted);
  font-size: 14px;
}

.workshop-plate {
  min-height: 360px;
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(34,39,45,.96), rgba(24,28,32,.88)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 26px);
  box-shadow: var(--shadow-soft);
}

.plate-line {
  width: 128px;
  height: 4px;
  background: var(--color-accent);
}

.plate-title {
  font-size: 44px;
  line-height: 1;
  font-weight: 900;
}

.plate-copy {
  color: var(--color-muted);
}

.project-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-card {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.project-visual {
  width: 100%;
  aspect-ratio: 16 / 9.4;
  object-fit: cover;
  margin-bottom: 18px;
  border: 1px solid rgba(242,240,234,.10);
  border-radius: 8px;
  background: var(--color-surface);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.tags span {
  min-height: 28px;
  font-size: 12px;
}

.project-card a {
  margin-top: 18px;
  color: var(--color-accent-2);
  font-weight: 800;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 36px 0 0;
  padding: 1px;
  list-style: none;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.process-list li {
  min-height: 150px;
  display: grid;
  align-content: space-between;
  gap: 24px;
  padding: 20px;
  background: var(--color-surface);
}

.process-list span {
  color: var(--color-accent);
  font-weight: 900;
}

.journal-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.journal-list article {
  min-height: 190px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.journal-icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  flex: 0 0 auto;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 42px;
  align-items: start;
}

.contact-copy h2 {
  font-size: 48px;
}

.contact-panel {
  padding: 24px;
}

.contact-panel dl {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.contact-panel div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.contact-panel dt {
  color: var(--color-accent-2);
  font-weight: 850;
}

.contact-panel dd {
  margin: 0;
  color: var(--color-muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 32px;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  background: #0C0E10;
}

.site-footer p {
  margin: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: auto auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 14px auto 14px;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: rgba(16,18,20,.98);
    box-shadow: var(--shadow-soft);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }

  .nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 14px;
    border-bottom: 1px solid var(--color-border);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 54px;
  }

  .hero-copy {
    margin-left: 0;
    max-width: 760px;
  }

  h1 {
    font-size: 68px;
  }

  .split,
  .split.reverse,
  .contact {
    grid-template-columns: 1fr;
  }

  .sticky-heading {
    position: static;
  }

  .pillar-grid,
  .project-grid,
  .journal-list,
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  :root {
    --header-height: 66px;
  }

  .site-header {
    padding: 12px 16px;
    gap: 10px;
  }

  .brand-name {
    font-size: 16px;
  }

  .header-cta {
    display: none;
  }

  .section,
  .hero,
  .section-band {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section {
    padding-top: 66px;
    padding-bottom: 66px;
  }

  .hero {
    padding-top: 42px;
    padding-bottom: 58px;
  }

  h1 {
    font-size: 52px;
  }

  h2,
  .contact-copy h2 {
    font-size: 34px;
  }

  h3 {
    font-size: 19px;
  }

  .lead {
    font-size: 22px;
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 250px;
  }

  .hero-visual::before {
    inset: 4% 0;
  }

  .hero-badges {
    display: none;
  }

  .pillar-grid,
  .project-grid,
  .journal-list,
  .process-list {
    grid-template-columns: 1fr;
  }

  .panel,
  .project-card,
  .journal-list article,
  .service-list article,
  .contact-panel {
    padding: 20px;
  }

  .process-list li {
    min-height: 116px;
  }

  .contact-panel div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .site-footer {
    display: grid;
    padding: 24px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
