/* ═══════════════════════════════════════════════════════════════════════
   FOX COATINGS — HOME
   The first viewport is the rear panel of the truck: hazard striping,
   stencilled unit type, and the service roster as equipment decals.
   ═══════════════════════════════════════════════════════════════════════ */

/* ═══ HERO ═══ */
.hero {
  position: relative;
  background: var(--machine);
  color: var(--text-lt);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: grayscale(0.55) contrast(1.12) brightness(0.42);
}
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(104deg, var(--machine) 0%, rgba(10, 11, 13, 0.94) 42%, rgba(10, 11, 13, 0.55) 74%, rgba(10, 11, 13, 0.78) 100%),
    linear-gradient(to top, var(--machine) 2%, transparent 34%);
}

/* Angular shear pulled from the fox mask — a hard diagonal cut of orange
   riding the right edge of the frame. */
/* Below the two-column breakpoint the shear's edge lands mid-copy and reads
   as a rendering seam rather than a cut, so it only exists on wide frames. */
.hero-shear { display: none; }
@media (min-width: 1000px) {
  .hero-shear {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 46%;
    z-index: -1;
    clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%);
    background: linear-gradient(200deg, rgba(253, 97, 1, 0.16), transparent 58%);
    border-left: 2px solid rgba(253, 97, 1, 0.34);
    pointer-events: none;
  }
}

.hero-inner {
  position: relative;
  display: grid;
  gap: clamp(2.25rem, 4.5vw, 3.5rem);
  padding-block: clamp(3.25rem, 8vw, 6.5rem);
  align-items: center;
}
@media (min-width: 1000px) {
  .hero-inner { grid-template-columns: 1.12fr 0.88fr; }
}

.hero-plate {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid rgba(253, 97, 1, 0.42);
  background: rgba(253, 97, 1, 0.08);
  font-family: var(--f-display);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.19em;
  color: var(--fox);
  margin-bottom: 1.5rem;
}
.hero-plate .dot {
  width: 7px; height: 7px;
  background: var(--fox);
  flex: none;
  transform: rotate(45deg);
}

.hero h1 { margin: 0; }
.hero-sub {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(1.05rem, 2.2vw, 1.7rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.12;
  color: var(--text-lt-mid);
  margin-top: 0.85rem;
  font-stretch: 100%;
}
.hero .lead { margin-top: 1.5rem; max-width: 54ch; }

/* Small proof strip under the CTAs — facts, not badges. */
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(1.4rem, 3vw, 2.6rem);
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--edge-dk-soft);
}
.hero-fact { padding-block: 0.5rem; }
.hero-fact-n {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 900;
  font-stretch: 112%;
  line-height: 1;
  color: var(--fox);
  font-variant-numeric: tabular-nums;
}
.hero-fact-l {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-lt-muted);
  letter-spacing: 0.03em;
  line-height: 1.35;
}

/* ═══ HERO ROSTER — the service list as equipment decals ═══ */
.roster {
  background: rgba(20, 22, 26, 0.92);
  border: 1px solid var(--plate-edge);
  backdrop-filter: blur(3px);
}
.roster-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  background: var(--machine-deep);
  border-bottom: 1px solid var(--plate-edge);
}
.roster-title {
  font-family: var(--f-display);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--white);
}
.roster-tag {
  font-family: var(--f-display);
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fox);
}
.roster-list { display: grid; }
.roster-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.78rem 1.2rem;
  border-bottom: 1px solid rgba(253, 253, 253, 0.06);
  position: relative;
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.roster-item:last-child { border-bottom: 0; }
/* Hover/focus indicator on a list row, not a static accent tab: it is
   scaled to nothing at rest and wipes in on interaction, striped in the
   same hazard pattern as the section bands. */
.roster-item::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background-image: repeating-linear-gradient(
    45deg, var(--fox) 0 5px, var(--machine-deep) 5px 10px
  );
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--dur) var(--ease);
}
.roster-item:hover, .roster-item:focus-visible {
  background: var(--plate-hi);
  transform: translateX(6px);
  outline: none;
}
.roster-item:hover::before, .roster-item:focus-visible::before { transform: scaleY(1); }
.roster-unit {
  font-family: var(--f-display);
  font-size: 0.76rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--fox);
}
.roster-name {
  font-family: var(--f-display);
  font-size: 0.96rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  color: var(--text-lt-mid);
}
.roster-item:hover .roster-name { color: var(--white); }
.roster-item--lead { background: rgba(253, 97, 1, 0.09); }
.roster-item--lead .roster-name { color: var(--white); }
.roster-arrow { color: rgba(253, 253, 253, 0.3); flex: none; }
.roster-item:hover .roster-arrow { color: var(--fox); }
.roster-foot {
  padding: 0.95rem 1.2rem;
  border-top: 1px solid var(--plate-edge);
  background: var(--machine-deep);
}

/* ═══ QUICKBAR ═══ */
.quickbar { background: var(--plate); border-bottom: 1px solid var(--plate-edge); }
.quickbar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.quick-cell {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem clamp(1.1rem, 2.4vw, 2rem);
  border-right: 1px solid var(--plate-edge);
  color: var(--text-lt);
  transition: background-color var(--dur) var(--ease);
}
.quick-cell:last-child { border-right: 0; }
.quick-cell:hover { background: var(--plate-hi); }
.quick-icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  background: rgba(253, 97, 1, 0.13);
  border: 1px solid rgba(253, 97, 1, 0.32);
  color: var(--fox);
}
.quick-main {
  font-family: var(--f-display);
  font-size: 0.98rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.quick-sub {
  font-size: 0.8rem;
  color: var(--text-lt-muted);
  margin-top: 0.2rem;
  line-height: 1.4;
}

/* ═══ SERVICE DECALS ═══ */
.decal-grid {
  display: grid;
  gap: clamp(1rem, 1.8vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
}
.decal {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--edge-lt);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.decal:hover { transform: translateY(-5px); border-color: var(--fox); }

/* The lead service gets visibly more weight, on every breakpoint. */
.decal--lead { border-color: var(--fox); border-width: 2px; }
@media (min-width: 900px) {
  .decal--lead { grid-column: span 2; flex-direction: row; }
  .decal--lead .decal-media {
    width: 46%;
    flex: none;
    /* Letting this stretch to the text height produced a narrow vertical
       slice that cropped the crew and the archway out of frame. */
    aspect-ratio: auto;
    min-height: 360px;
  }
  .decal--lead .decal-media img { object-position: center 44%; }
  .decal--lead .decal-body { flex: 1; padding: clamp(1.6rem, 2.6vw, 2.4rem); }
  .decal--lead .decal-title { font-size: clamp(1.5rem, 2.3vw, 2rem); }
}

.decal-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--machine);
}
.decal-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}
.decal:hover .decal-media img { transform: scale(1.055); }
.decal-unit {
  position: absolute;
  top: 0; left: 0;
  z-index: 2;
  padding: 0.42rem 0.85rem;
  background: var(--fox);
  color: var(--machine);
  font-family: var(--f-display);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  padding-right: 1.25rem;
}
.decal-flag {
  position: absolute;
  top: 0; right: 0;
  z-index: 2;
  padding: 0.42rem 0.8rem;
  background: var(--machine);
  color: var(--fox);
  font-family: var(--f-display);
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.decal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.decal-title {
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.05;
  margin-bottom: 0.7rem;
}
.decal-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
}
.decal-desc {
  font-size: 0.93rem;
  line-height: 1.62;
  color: var(--text-dark-mid);
  flex: 1;
}
.decal-foot {
  margin-top: 1.3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--edge-lt-soft);
}

/* ═══ MARQUEE ═══ */
.marquee {
  background: var(--fox);
  color: var(--machine);
  overflow: hidden;
  padding-block: 0.9rem;
  border-block: 2px solid var(--machine);
}
.marquee-track {
  display: flex;
  gap: 2.2rem;
  width: max-content;
  animation: slide 42s linear infinite;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 2.2rem;
  font-family: var(--f-display);
  font-size: clamp(0.92rem, 1.5vw, 1.15rem);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  font-stretch: 112%;
}
.marquee-item .sep { font-style: normal; transform: rotate(45deg); display: inline-block; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ═══ SPLIT (about / craft) ═══ */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 940px) { .split { grid-template-columns: 1fr 1fr; } }
.split--flip .split-media { order: -1; }

.split-media { position: relative; }
.split-media video,
.split-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--plate-edge);
}
.split-tag {
  position: absolute;
  left: -1px;
  bottom: 2rem;
  max-width: 82%;
  background: var(--machine);
  border: 1px solid var(--plate-edge);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  padding: 1rem 1.35rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-lt-mid);
}
.split-tag strong {
  display: block;
  font-family: var(--f-display);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fox);
  margin-bottom: 0.3rem;
}

/* ═══ STAT ROW ═══ */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  margin-top: 2.6rem;
  background: var(--edge-dk-soft);
  border: 1px solid var(--edge-dk-soft);
}
.on-tape .stat-row, .on-white .stat-row {
  background: var(--edge-lt-soft);
  border-color: var(--edge-lt-soft);
}
.stat {
  background: var(--machine);
  padding: 1.25rem 1.1rem;
}
.on-tape .stat { background: var(--tape); }
.on-white .stat { background: var(--white); }
.stat-n {
  font-family: var(--f-display);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 900;
  font-stretch: 112%;
  line-height: 1;
  color: var(--fox);
  font-variant-numeric: tabular-nums;
}
.stat-l {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: var(--text-lt-muted);
  line-height: 1.4;
}
.on-tape .stat-l, .on-white .stat-l { color: var(--text-dark-muted); }

/* ═══ PROCESS STATIONS ═══ */
.station-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  background: var(--plate-edge);
  border: 1px solid var(--plate-edge);
  margin-top: clamp(2.4rem, 5vw, 3.5rem);
}
.station {
  background: var(--machine);
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  position: relative;
}
.station-n {
  font-family: var(--f-display);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: var(--fox);
  font-variant-numeric: tabular-nums;
  display: block;
  margin-bottom: 1.4rem;
}
.station-icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1px solid rgba(253, 97, 1, 0.34);
  background: rgba(253, 97, 1, 0.1);
  color: var(--fox);
  margin-bottom: 1.15rem;
}
.station-title {
  font-family: var(--f-display);
  font-size: 1.08rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 0.6rem;
}
.station-desc {
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--text-lt-muted);
}
.station-dwell {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--edge-dk-soft);
  font-family: var(--f-display);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--text-lt-muted);
}
.station-dwell b { color: var(--fox); font-weight: 900; }

/* ═══ BEFORE / AFTER ═══ */
.ba-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.ba {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--plate-edge);
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  background: var(--machine);
}
.ba img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-before { clip-path: inset(0 50% 0 0); }
.ba-tag {
  position: absolute;
  bottom: 0.85rem;
  z-index: 3;
  padding: 0.35rem 0.75rem;
  font-family: var(--f-display);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  pointer-events: none;
}
.ba-tag-b { left: 0.85rem; background: var(--machine); color: var(--white); }
.ba-tag-a { right: 0.85rem; background: var(--fox); color: var(--machine); }
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--fox);
  z-index: 4;
  pointer-events: none;
  transform: translateX(-50%);
}
.ba-handle::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 42px; height: 42px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--fox);
  border: 2px solid var(--machine);
}

/* ═══ GALLERY ═══ */
.gal-grid {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: clamp(1.5rem, 3vw, 2.2rem);
}
.gal-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--edge-lt);
  background: var(--machine);
}
.gal-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gal-item:hover img { transform: scale(1.06); }

/* ═══ CITY GRID ═══ */
.city-search { margin-bottom: 1.5rem; max-width: 460px; }
.city-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  background: var(--edge-lt-soft);
  border: 1px solid var(--edge-lt-soft);
}
.city-cell {
  background: var(--white);
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.city-cell::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--fox);
  transform: rotate(45deg);
  flex: none;
}
.city-cell:hover { background: var(--machine); color: var(--white); }
.city-empty {
  grid-column: 1 / -1;
  background: var(--white);
  padding: 1.5rem;
  text-align: center;
  color: var(--text-dark-muted);
  font-size: 0.9rem;
}
.city-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.4rem;
  align-items: center;
}
.city-pager button {
  min-width: 42px; min-height: 42px;
  padding: 0.5rem 0.8rem;
  background: var(--white);
  border: 1px solid var(--edge-lt);
  font-family: var(--f-display);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.city-pager button:hover:not(:disabled) { background: var(--machine); color: var(--white); border-color: var(--machine); }
.city-pager button[aria-current="true"] { background: var(--fox); border-color: var(--fox); color: var(--machine); }
.city-pager button:disabled { opacity: 0.4; cursor: not-allowed; }

/* ═══ CONTACT ═══ */
.contact-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.25rem);
}
@media (min-width: 940px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; } }

.contact-list { display: grid; gap: 1.1rem; margin-top: 2rem; }
.contact-item { display: flex; gap: 0.95rem; align-items: flex-start; }
.contact-item-icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex: none;
  border: 1px solid rgba(253, 97, 1, 0.32);
  background: rgba(253, 97, 1, 0.1);
  color: var(--fox);
}
.contact-item-label {
  font-family: var(--f-display);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-lt-muted);
  margin-bottom: 0.2rem;
}
.contact-item-val { font-size: 0.98rem; font-weight: 600; line-height: 1.45; }
.contact-item-val a:hover { color: var(--fox); }

.form-card {
  background: var(--plate);
  border: 1px solid var(--plate-edge);
  padding: clamp(1.5rem, 3vw, 2.4rem);
}
.form-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--plate-edge);
}

/* ═══ MAP ═══ */
.map-frame {
  border: 1px solid var(--plate-edge);
  background: var(--plate);
  min-height: 340px;
  height: 100%;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  display: block;
  filter: grayscale(0.85) invert(0.9) contrast(0.88);
}

/* ═══ FINAL CTA ═══ */
.cta-strip {
  position: relative;
  background: var(--machine);
  text-align: center;
  overflow: hidden;
}
.cta-strip .shell { position: relative; z-index: 2; }
