/* ============================================================
   IONTIQ — normalized static site
   Design tokens measured from the Cargo original (2161px ref):
   1rem = 0.8623vw  ·  canvas #8e8989  ·  text rgba(0,0,0,.85)
   Type: Instrument Sans (free stand-in for Monument Grotesk)
   ============================================================ */

:root {
  --canvas: #8e8989;
  --section-bg: #ffffff;
  --ink-1: rgba(0, 0, 0, 0.85);
  --ink-2: rgba(0, 0, 0, 0.75);
  --ink-3: rgba(0, 0, 0, 0.6);
  --ink-4: rgba(0, 0, 0, 0.4);
  --ink-5: rgba(0, 0, 0, 0.25);
  --pad: 1.5rem;
  --gutter: 1rem;
  --header-h: 10.5rem;
  --font-stack: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Viewport-proportional type scale, like the original */
html {
  font-size: clamp(11px, 0.8623vw, 26px);
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--canvas);
  color: var(--ink-1);
  font-family: var(--font-stack);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
}

a {
  color: var(--ink-1);
  text-decoration: none;
}
a:active { opacity: 0.7; }

b, strong { font-weight: 600; }

p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }

img {
  display: block;
  width: 100%;
  height: auto;
}

hr {
  background: var(--ink-1);
  border: 0;
  height: 1px;
  display: block;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

h1, h2 {
  font-size: 1.15rem;
  font-weight: 400;
  margin: 0;
}

main {
  padding: var(--pad);
}

.icon-arrow {
  width: 0.62em;
  height: 0.62em;
  display: inline-block;
  vertical-align: baseline;
  margin-left: 0.18em;
  stroke: currentColor;
}

/* ---------------- Hero wrapper with video wallpaper ---------------- */

.hero-wrap {
  position: relative;
}

.hero-wrap .wallpaper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* ---------------- Header (overlays the hero) ---------------- */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 514fr 690fr 513fr 337fr;
  gap: var(--gutter);
  padding: var(--pad);
  align-items: start;
}

.site-header .logo img {
  width: 14.25rem;
  height: auto;
}

.site-header .contact-links {
  text-align: right;
  line-height: 1.1;
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  padding: var(--header-h) 2.5rem var(--pad) var(--pad);
}

.hero h1 {
  font-size: 14.3rem;
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 400;
  margin: 0;
}

/* ---------------- White content area ---------------- */

.white {
  background: var(--section-bg);
}

.white section {
  padding: 0.5rem 0 3.6rem;
}

/* Product sections: title row + content row on a shared 4-col grid */
.product-grid {
  display: grid;
  grid-template-columns: 514fr 936fr 300fr 300fr;
  gap: 0.5rem var(--gutter);
  align-items: start;
}

.product-grid .tagline { grid-column: 2 / -1; }

.product-grid .copy { margin-top: 0.9rem; }

.product-grid figure { margin: 0; }

/* ---------------- Contact section ---------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 514fr 689fr 868fr;
  gap: var(--gutter);
  align-items: start;
  padding-top: 0.5rem;
  padding-bottom: 1.5rem;
}

.contact-grid .block { margin-bottom: 1.25em; }

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--section-bg);
  display: grid;
  grid-template-columns: 868fr 513fr 691fr;
  gap: var(--gutter);
  align-items: end;
  min-height: 8.8rem;
  padding: var(--pad);
}

.site-footer .clock {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---------------- Lightbox (Cargo quick-view equivalent) ---------------- */

.product-grid figure img { cursor: zoom-in; }
.product-grid figure img:active { opacity: 0.7; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--canvas);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  cursor: zoom-out;
}

.lightbox .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(87, 87, 87, 0.35);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.lightbox .nav:active { opacity: 0.7; }
.lightbox .nav.prev { left: 20px; }
.lightbox .nav.next { right: 20px; }

.lightbox .nav svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

@media (max-width: 800px) {
  .lightbox { padding: 10px; }
  .lightbox .nav.prev { left: 10px; }
  .lightbox .nav.next { right: 10px; }
}

/* ---------------- Mobile ---------------- */

@media (max-width: 800px) {
  html { font-size: clamp(12px, 3.45vw, 16px); }

  .site-header,
  .product-grid,
  .contact-grid,
  .site-footer {
    display: block;
  }

  .site-header {
    position: relative;
    z-index: 1;
  }

  .hero {
    min-height: 70dvh;
    padding-top: 4rem;
  }

  .site-header > * + *,
  .contact-grid > * + * {
    margin-top: 2rem;
  }

  .site-header .contact-links { text-align: left; }

  .hero {
    padding-right: var(--pad);
  }

  .hero h1 { font-size: 5.1rem; }

  .product-grid .tagline { margin: 0.5rem 0 1rem; }
  .product-grid .copy { margin-bottom: 2rem; }
  .product-grid figure { margin: 0 0 2rem; }
  .product-grid figure:last-child { margin-bottom: 0; }

  .site-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
  }
}
