/* ============================================================
   Hagood Control Systems — Modern Site Styles
   Industrial, precise, minimal. Slate neutrals + steel-blue accent.
   ============================================================ */

:root {
  --ink:        #0d1117;
  --ink-2:      #1a2029;
  --graphite:   #2a323d;
  --slate:      #4a5568;
  --slate-2:    #6b7280;
  --line:       #e4e7ec;
  --line-2:     #f1f3f6;
  --paper:      #fafafa;
  --paper-2:    #f4f5f7;
  --white:      #ffffff;

  /* single accent — steel blue, derived from industrial reference */
  --accent:     #2b5fa3;
  --accent-2:   #1e4680;
  --accent-ink: #ffffff;

  --warn:       #c2410c;

  --radius:     4px;
  --radius-lg:  10px;

  --shadow-sm:  0 1px 2px rgba(13,17,23,.06), 0 1px 1px rgba(13,17,23,.04);
  --shadow-md:  0 8px 24px -12px rgba(13,17,23,.18), 0 2px 6px rgba(13,17,23,.06);
  --shadow-lg:  0 30px 60px -30px rgba(13,17,23,.35);

  --font-display: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body:    "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --container: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-2); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 .4em;
  line-height: 1.1;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; }

p { margin: 0 0 1em; text-wrap: pretty; }

hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  padding: 0 24px;
  margin: 0 auto;
}
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section--dark { background: var(--ink); color: #d8dde5; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--paper { background: var(--paper); }
.section--paper-2 { background: var(--paper-2); }

/* ---------- Eyebrow & meta ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--slate);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.section--dark .eyebrow { color: #a7b0bd; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 15px;
}
.nav__brand img { height: 34px; width: auto; }
.nav__brand small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate-2);
  line-height: 1;
  margin-top: 3px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--slate);
  font-size: 14px;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.nav__links a:hover { color: var(--ink); background: var(--paper-2); }
.nav__links a.is-active { color: var(--ink); background: var(--line-2); }
.nav__cta { margin-left: 12px; }

.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  background: none; border: 0;
  cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .2s ease;
}
.nav__toggle span::before { position: absolute; top: -7px; left: 0; }
.nav__toggle span::after { position: absolute; top: 7px; left: 0; }

@media (max-width: 820px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 24px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav[data-open="true"] .nav__links { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a { padding: 14px 12px; border-radius: 0; font-size: 16px; }
  .nav__cta { margin: 12px 0 0; text-align: left; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, background .15s, color .15s, border-color .15s, box-shadow .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-2); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--paper-2); color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--paper-2); color: var(--ink); }
.btn--lg { padding: 16px 26px; font-size: 15px; }
.btn--link {
  background: none; border: 0; padding: 0;
  color: var(--ink); font-weight: 500;
  border-bottom: 1px solid var(--ink);
  border-radius: 0; padding-bottom: 2px;
}
.btn--link:hover { color: var(--accent); border-color: var(--accent); transform: none; }

.btn .arrow {
  display: inline-block;
  transition: transform .2s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .35;
  filter: saturate(90%);
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 40%, rgba(43,95,163,.2), transparent 60%),
    linear-gradient(90deg, rgba(13,17,23,.92) 0%, rgba(13,17,23,.65) 55%, rgba(13,17,23,.35) 100%);
}
.hero__inner {
  position: relative;
  padding: 120px 0 100px;
  max-width: 780px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1.02;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: normal;
  color: #9bb8e0;
  display: block;
}
.hero p.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: #c6ccd6;
  max-width: 620px;
  margin-bottom: 36px;
}
.hero__eyebrow {
  color: #9bb8e0;
  margin-bottom: 24px;
}
.hero__eyebrow::before { background: #9bb8e0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__stats {
  position: relative;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 880px;
}
.hero__stat .n {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero__stat .l {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a93a3;
  margin-top: 8px;
}
@media (max-width: 640px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .hero__inner { text-align: center; margin-left: auto; margin-right: auto; padding: 80px 0 72px; }
  .hero__eyebrow { justify-content: center; }
  .hero__eyebrow::before { display: none; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero__cta { justify-content: center; }
}

/* Page hero (shorter) */
.page-hero {
  background: var(--ink);
  color: #fff;
  padding: 120px 0 72px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.page-hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .22;
}
.page-hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13,17,23,.92), rgba(13,17,23,.55));
}
.page-hero__inner { position: relative; max-width: 820px; }
.page-hero h1 { color: #fff; margin-bottom: 16px; }
.page-hero p { color: #c6ccd6; font-size: 1.1rem; max-width: 620px; margin: 0; }
.page-hero .crumbs {
  display: flex; gap: 10px; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a93a3;
  margin-bottom: 28px;
}
.page-hero .crumbs a { color: #8a93a3; }
.page-hero .crumbs a:hover { color: #fff; }

/* ---------- Section heading ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
.section-head h2 { margin: 0; max-width: 560px; }
.section-head p { color: var(--slate); margin: 0; max-width: 480px; }
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Services grid ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.svc {
  background: #fff;
  padding: 40px 32px 36px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: background .2s;
  min-height: 360px;
}
.svc:hover { background: var(--paper); }
.svc__n {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--slate-2);
}
.svc h3 {
  font-size: 1.7rem;
  margin: 10px 0 16px;
}
.svc p {
  color: var(--slate);
  flex: 1;
  margin-bottom: 20px;
}
.svc__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--ink);
  font-size: 14px;
}
.svc__more .arrow { transition: transform .2s; }
.svc:hover .svc__more .arrow { transform: translateX(4px); color: var(--accent); }
.svc__more:hover { color: var(--accent); }
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc { min-height: 0; }
}

/* ---------- Case studies ---------- */
.cases { display: flex; flex-direction: column; gap: 2px; background: var(--line); }
.case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}
.case:nth-child(even) .case__media { order: 2; }
.case__media {
  position: relative;
  min-height: 440px;
  background-size: cover;
  background-position: center;
}
.case__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(13,17,23,.25));
}
.case__body {
  padding: clamp(40px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.case__client {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.case h3 { font-size: 1.9rem; margin-bottom: 16px; }
.case p { color: var(--slate); margin-bottom: 14px; }
.case__meta {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case__meta dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-2);
  margin-bottom: 4px;
}
.case__meta dd { margin: 0; font-weight: 500; font-size: 14px; color: var(--ink); }

@media (max-width: 900px) {
  .case { grid-template-columns: 1fr; }
  .case:nth-child(even) .case__media { order: 0; }
  .case__media { min-height: 280px; }
}

/* ---------- Feature blocks (used on sub-pages) ---------- */
.feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.feature--flip { grid-template-columns: 1fr 1.1fr; }
.feature--flip .feature__text { order: 2; }
.feature__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.feature__text h2 { margin-bottom: 20px; }
.feature__text p { color: var(--slate); font-size: 1.05rem; }
@media (max-width: 820px) {
  .feature, .feature--flip { grid-template-columns: 1fr; }
  .feature--flip .feature__text { order: 0; }
}

/* ---------- Benefit list ---------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0; padding: 0;
}
.benefit {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}
.benefit .n {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 16px;
}
.benefit h3 { font-size: 1.15rem; margin-bottom: 10px; }
.benefit p { margin: 0; color: var(--slate); font-size: .95rem; }
@media (max-width: 820px) { .benefits { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.gallery figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--paper);
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption {
  position: absolute;
  bottom: 12px; left: 12px;
  background: rgba(13,17,23,.82);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: var(--radius);
}
.g-6  { grid-column: span 6; aspect-ratio: 4/3; }
.g-4  { grid-column: span 4; aspect-ratio: 4/3; }
.g-8  { grid-column: span 8; aspect-ratio: 16/9; }
.g-12 { grid-column: span 12; aspect-ratio: 21/9; }
@media (max-width: 820px) {
  .g-6, .g-4, .g-8 { grid-column: span 12; aspect-ratio: 4/3; }
}

/* ---------- Before/After ---------- */
.ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ba figure {
  margin: 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.ba img { width:100%; height:100%; object-fit: cover; }
.ba .tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  padding: 6px 10px;
  border-radius: var(--radius);
}
.ba .tag--after { background: var(--accent); }
@media (max-width: 640px) { .ba { grid-template-columns: 1fr; } }

/* ---------- Contact + Map ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.contact__info, .contact__form {
  background: #fff;
  padding: clamp(32px, 4vw, 56px);
}
.contact__info { background: var(--ink); color: #fff; }
.contact__info h2 { color: #fff; margin-bottom: 16px; }
.contact__info p { color: #b9c0cd; }
.contact__list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 20px; }
.contact__list li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; }
.contact__list .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a93a3;
}
.contact__list .val { color: #fff; font-size: 1rem; }
.contact__list .icn {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  color: #9bb8e0;
}

.contact__form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 8px;
}
.contact__form input,
.contact__form textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color .15s, background .15s;
}
.contact__form input:focus,
.contact__form textarea:focus {
  outline: 0;
  border-color: var(--accent);
  background: #fff;
}
.contact__form textarea { min-height: 120px; resize: vertical; }
.contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.contact__row--3 { grid-template-columns: 1fr 1fr 1fr; }
.contact__form .field { margin-bottom: 18px; }
.contact__form button { margin-top: 8px; }

@media (max-width: 820px) {
  .contact { grid-template-columns: 1fr; }
  .contact__row, .contact__row--3 { grid-template-columns: 1fr; }
}

.map {
  width: 100%;
  height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(43,95,163,.3), transparent 60%);
}
.cta-band__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0; }
.cta-band p { color: #b9c0cd; margin: 12px 0 0; max-width: 480px; }
.cta-band__actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 820px) {
  .cta-band__inner { grid-template-columns: 1fr; }
  .cta-band__actions { justify-content: flex-start; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #b9c0cd;
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-grid h4 {
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 18px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { color: #b9c0cd; font-size: .95rem; }
.footer-grid a:hover { color: #fff; }
.footer-grid .brand img { height: 54px; width: auto; margin-bottom: 16px; }
.footer-grid .brand p { color: #8a93a3; font-size: .9rem; max-width: 320px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: .85rem;
  color: #6b7280;
}
.footer-bottom .mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 10px; }
}

/* ---------- Prose (long-form copy) ---------- */
.prose {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-2);
}
.prose p { color: var(--ink-2); margin-bottom: 1.2em; }
.prose p.intro {
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin-bottom: 1.5em;
}
.prose strong { color: var(--ink); font-weight: 600; }

.bullets {
  display: grid;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 32px 0;
}
.bullets li {
  padding-left: 36px;
  position: relative;
  font-size: 1rem;
  color: var(--ink-2);
}
.bullets li::before {
  content: counter(li, decimal-leading-zero);
  counter-increment: li;
  position: absolute;
  left: 0; top: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.bullets { counter-reset: li; }
.bullets strong { display: block; margin-bottom: 2px; color: var(--ink); font-weight: 600; }

/* ---------- Product catalog (resale products) ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}
.product-grid:last-child { margin-bottom: 0; }
.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-2);
}
.product-card__media {
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
  overflow: hidden;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-card__media img { transform: scale(1.03); }
.product-card__noimg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--slate-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px;
}
.product-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card__mfr {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.product-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.product-card__model {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate-2);
  margin-bottom: 12px;
}
.product-card p { color: var(--slate); font-size: .95rem; margin-bottom: 16px; }
.product-card__foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.product-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}
.product-card__link .arrow { transition: transform .2s ease; }
.product-card__link:hover .arrow { transform: translateX(3px); }
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .product-grid { grid-template-columns: 1fr; } }

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

/* utilities */
.text-mono { font-family: var(--font-mono); }
.muted { color: var(--slate); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
