/* ==========================================================================
   XIWARE TECHNOLOGIES — OEM site stylesheet
   Palette: deep navy / industrial orange / cool grey
   ========================================================================== */

:root {
  --ink: #0a1420;
  --ink-2: #14202e;
  --steel: #5e6e7e;
  --steel-light: #8a97a3;
  --line: #dfe3e7;
  --line-dark: #253346;
  --paper: #f7f7f5;
  --white: #ffffff;
  --accent: #e8650a;
  --accent-dark: #c4530a;

  --container: 1180px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
    "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

p { margin: 0 0 1em; }

/* the UA default for figure is 1em 40px; in a grid that silently eats 80px
   off every tile, which is what shrank the product galleries on tablets */
figure { margin: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: transparent;
  flex-shrink: 0;
}

.brand-mark img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 15px; font-weight: 650; letter-spacing: 0.01em; }
.brand-sub {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-light);
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 30px; }

.nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0.01em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav a:hover { color: var(--accent); }

.nav a.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.header-cta { display: flex; align-items: center; gap: 18px; }

.header-mail {
  font-size: 13px;
  color: var(--steel);
  display: none;
}

@media (min-width: 1080px) {
  .header-mail { display: inline; }
}

/* mobile menu */

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  place-items: center;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
}

.menu-toggle span::before { top: -5px; }
.menu-toggle span::after { top: 5px; }

@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 28px 18px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: grid; }
  .header-cta .btn { display: none; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }

.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-2); transform: translateY(-1px); }

.btn-ghost {
  border-color: var(--line-dark);
  color: var(--white);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--white); }

.btn-outline {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover { border-color: var(--ink); }

.btn-sm { height: 38px; padding: 0 16px; font-size: 12.5px; }

/* ---------- hero ---------- */

.hero {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 30% 20%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 20%, #000 30%, transparent 78%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  padding: 96px 0 88px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel-light);
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(2.15rem, 4.2vw, 3.5rem);
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-lead {
  margin-top: 24px;
  max-width: 34em;
  font-size: 16.5px;
  line-height: 1.7;
  color: #b6c2ce;
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-media { position: relative; }

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3.15;
  object-fit: contain;
  background: var(--white);
  border: 1px solid var(--line-dark);
}

.hero-media figcaption {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-light);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* stat strip */

.stat-strip {
  border-top: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 26px 28px 30px;
  border-right: 1px solid var(--line-dark);
}

.stat:last-child { border-right: 0; }

.stat-num {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
}

.stat-label {
  margin-top: 6px;
  font-size: 11.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--steel-light);
  line-height: 1.5;
}

/* ---------- sections ---------- */

.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--white); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 52px;
}

.section-head h2 {
  font-size: clamp(1.65rem, 2.6vw, 2.2rem);
  letter-spacing: -0.03em;
  max-width: 22em;
}

.section-head p {
  max-width: 30em;
  margin: 0;
  color: var(--steel);
  font-size: 15px;
}

.section--ink .section-head p { color: #9fadba; }

/* ---------- capability grid ---------- */

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.cap {
  background: var(--white);
  padding: 34px 30px 38px;
  transition: background 0.25s var(--ease);
}

.cap:hover { background: #fbfbfa; }

.cap-index {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 600;
}

.cap h3 {
  margin: 16px 0 12px;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.cap p { margin: 0; font-size: 14px; color: var(--steel); line-height: 1.7; }

/* ---------- product cards ---------- */

.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.prod {
  border: 1px solid var(--line);
  background: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.prod:hover { border-color: #b9c3cc; transform: translateY(-2px); }

.prod-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, #eef1f4 0%, #e2e7ec 48%, #d8dee4 100%);
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
}

.prod-visual.has-photo { background: #eef2f5; }

.prod-visual.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.prod:hover .prod-visual.has-photo img { transform: scale(1.035); }

.prod-visual .ph {
  text-align: center;
  color: var(--steel-light);
  padding: 20px;
}

.prod-visual .ph strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 600;
}

.prod-visual .ph span {
  display: block;
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--steel-light);
}

.prod-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }

.prod-tag {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.prod h3 { margin: 10px 0 12px; font-size: 19px; }

.prod p { font-size: 14px; color: var(--steel); margin-bottom: 20px; min-height: 88px; }

.spec-list {
  margin: auto 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.spec-list li span:first-child { color: var(--steel); }
.spec-list li span:last-child { font-weight: 550; text-align: right; }

/* ---------- photo grid / factory ---------- */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.photo {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), opacity 0.4s var(--ease);
  filter: saturate(0.92) contrast(1.04);
}

.photo:hover img { transform: scale(1.035); }

.photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 44px 16px 13px;
  background: linear-gradient(
    to top,
    rgba(6, 12, 20, 0.93) 0%,
    rgba(6, 12, 20, 0.74) 42%,
    rgba(6, 12, 20, 0) 100%
  );
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.45;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.photo small {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c2d0dc;
  margin-bottom: 4px;
}

/* provenance tag: whose floor the photo was taken on */
.prov {
  display: inline-block;
  font-size: 8px;
  letter-spacing: 0.14em;
  padding: 2px 5px;
  margin-right: 6px;
  border: 1px solid rgba(214, 226, 238, 0.38);
  background: rgba(6, 12, 20, 0.52);
  color: #cfdae4;
  vertical-align: 1px;
}

.prov--ours {
  border-color: rgba(232, 101, 10, 0.72);
  color: #ffb184;
}

.split-media figcaption {
  margin-top: 11px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}

/* captions that sit on light section backgrounds need a darker tag */
.split-media .prov {
  border-color: #c3ccd5;
  background: none;
  color: var(--steel);
}

.split-media .prov--ours {
  border-color: rgba(232, 101, 10, 0.72);
  color: var(--accent-dark);
}

/* one shared style for every "small print" paragraph under a block */
.section-note,
.chain-note,
.m1-note {
  margin: 24px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--steel);
  max-width: 74ch;
}

.photo--wide { grid-column: span 3; }
.photo--half { grid-column: span 3; }
.photo--third { grid-column: span 2; }
.photo--full { grid-column: span 6; }

.photo--wide, .photo--half { aspect-ratio: 16 / 10; }
.photo--third { aspect-ratio: 4 / 3.4; }
.photo--full { aspect-ratio: 16 / 8.4; }
.photo--box { aspect-ratio: 4 / 3; }

/* ---------- process ---------- */

.steps { border-top: 1px solid var(--line); }

.step {
  display: grid;
  grid-template-columns: 84px 1fr 1.1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.step-no {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
  padding-top: 4px;
}

.step h3 { font-size: 17px; letter-spacing: -0.01em; }

.step p {
  margin: 0;
  font-size: 14px;
  color: var(--steel);
  line-height: 1.7;
}

/* ---------- split feature ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
}

.split-media--portrait img { aspect-ratio: 2 / 3; }
.split-media--square img { aspect-ratio: 1 / 1; object-fit: contain; background: var(--white); }

/* product renders: white studio background, so never crop and never tint */
.split-media--prod img { object-fit: contain; background: var(--white); }

.photo--prod { background: var(--white); }
.photo--prod img { filter: none; }
.photo--cap-below.photo--prod img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--white);
}

.split h2 { font-size: clamp(1.65rem, 2.6vw, 2.2rem); letter-spacing: -0.03em; margin-bottom: 20px; }
.split p { color: var(--steel); font-size: 15px; }

.check-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.6;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--accent);
  transform: rotate(45deg);
}

/* ---------- cert table ---------- */

.cert-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  font-size: 14px;
  background: var(--white);
}

.cert-table th {
  text-align: left;
  padding: 15px 20px;
  /* a translucent tint reads on both white and --paper sections; a solid
     --paper fill disappeared whenever the table sat inside a paper section */
  background: rgba(10, 20, 32, 0.045);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 600;
}

.cert-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink-2);
}

.cert-table tr:last-child td { border-bottom: 0; }

.cert-table td:first-child { font-weight: 600; white-space: nowrap; }
.cert-table td:last-child { color: var(--steel); font-size: 13px; }

/* M1 comparison table: middle column is the new platform, so it reads first */

@media (max-width: 720px) {
  .cert-table { font-size: 13px; }
  .cert-table th, .cert-table td { padding: 12px; }
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--ink);
  color: var(--white);
  padding: 78px 0;
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -60px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.cta-inner h2 {
  font-size: clamp(1.65rem, 2.6vw, 2.2rem);
  letter-spacing: -0.03em;
  max-width: 20em;
}

.cta-inner p { margin: 12px 0 0; color: #a5b3c0; font-size: 14.5px; }

.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: start;
}

.contact-block { margin-bottom: 34px; }

.contact-block .label {
  font-size: 10.5px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--steel-light);
  margin-bottom: 8px;
}

.contact-block .value {
  font-size: 16px;
  font-weight: 550;
  letter-spacing: -0.01em;
  word-break: break-word;
}

.contact-block a.value:hover { color: var(--accent); }

.form { display: grid; gap: 18px; }

.field { display: grid; gap: 7px; }

.field label {
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--ink);
}

.field textarea { min-height: 132px; resize: vertical; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-note { font-size: 12px; color: var(--steel-light); line-height: 1.6; margin: 0; }

/* ---------- footer ---------- */

.site-footer {
  background: #060d16;
  color: #93a1ae;
  padding: 66px 0 30px;
  font-size: 13.5px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 46px;
  border-bottom: 1px solid #182534;
}

.footer-brand .brand-mark img { filter: none; }

.footer-brand p {
  margin: 18px 0 0;
  max-width: 26em;
  line-height: 1.75;
  color: #7c8b99;
  font-size: 13px;
}

.site-footer h4 {
  color: #e6ecf2;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 600;
}

.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }

.footer-links a { color: #93a1ae; transition: color 0.2s var(--ease); }
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 26px;
  font-size: 12px;
  color: #5f6d7b;
}

/* ---------- page hero (interior pages) ---------- */

.page-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 72px 0 64px;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  letter-spacing: -0.035em;
  max-width: 24em;
}

.page-hero p {
  margin-top: 18px;
  max-width: 42em;
  color: var(--steel);
  font-size: 15.5px;
}

.breadcrumb {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-light);
  margin-bottom: 20px;
}

.breadcrumb a:hover { color: var(--accent); }

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 5vmin 4vmin 8vmin;
  background: rgba(6, 12, 20, 0.95);
}

.lightbox.is-open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: var(--white);
}

.lightbox-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  margin: 0;
  padding: 0 72px;
  text-align: center;
  color: #c3ced8;
  font-size: 13px;
  line-height: 1.6;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.6); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 66px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.lightbox-nav:hover { background: rgba(255, 255, 255, 0.16); }
.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }

/* ==========================================================================
   ODM BLOCKS — position triad, metric row, spec grid, model index
   ========================================================================== */

/* --- ODM / OEM / white-label triad --- */

.triad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.triad-item {
  background: var(--white);
  padding: 32px 28px 36px;
}

.triad-item.is-us { background: var(--ink); color: var(--white); }

.triad-kicker {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--steel);
}

.triad-item.is-us .triad-kicker { color: var(--accent); }

.triad-item h3 {
  font-size: 18px;
  margin: 13px 0 14px;
  letter-spacing: -0.015em;
}

.triad-item p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--steel);
  margin: 0 0 18px;
}

.triad-item.is-us p { color: #a8b6c3; }

.triad-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.triad-list li {
  position: relative;
  padding-left: 17px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
}

.triad-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--steel-light);
}

.triad-item.is-us .triad-list li { color: #cfd8e1; }
.triad-item.is-us .triad-list li::before { border-color: var(--accent); }

/* --- headline metric row --- */

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: var(--white);
}

.metric {
  padding: 22px 22px 20px;
  border-right: 1px solid var(--line);
}

.metric:last-child { border-right: 0; }

.metric-num {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

.metric-num em {
  font-style: normal;
  font-size: 14px;
  font-weight: 500;
  color: var(--steel);
  letter-spacing: 0;
  margin-left: 3px;
}

.metric-label {
  margin-top: 9px;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--steel-light);
  line-height: 1.45;
}

/* --- model header --- */

.model-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 40px;
}

.model-code {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.model-head h2 {
  font-size: clamp(1.65rem, 2.6vw, 2.2rem);
  letter-spacing: -0.03em;
}

.model-head-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--steel);
}

/* --- status tag --- */

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid;
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.status--live { color: #2f6b46; border-color: #cfe3d6; background: #f2f8f4; }
.status--soon { color: #9a5a13; border-color: #f0d9c2; background: #fdf6ee; }
.status--ink { color: #c3ced8; border-color: #2c3d51; background: transparent; }

/* --- spec group grid --- */

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 56px;
}

.spec-group h4 {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-light);
  font-weight: 600;
  margin: 0;
  padding: 16px 0 10px;
  border-bottom: 1px solid var(--ink);
}

.spec-group .spec-list { border-top: 0; }

.spec-group .spec-list li { font-size: 13px; padding: 9px 0; }

.spec-foot {
  margin-top: 30px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--steel-light);
  max-width: 74ch;
}

/* --- model index table --- */

.lib-table { margin-top: 0; }

.lib-table td:first-child { white-space: nowrap; }

.lib-table .code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.lib-table td a { border-bottom: 1px solid var(--line); }
.lib-table td a:hover { color: var(--accent); border-color: var(--accent); }

/* --- two-column split aligned to top --- */

.split--start { align-items: start; }

/* --- small print under section heads: see .section-note in the splits block --- */

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .triad { grid-template-columns: 1fr; }
  .spec-grid { gap: 30px 40px; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; padding: 68px 0 60px; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line-dark); }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo--wide, .photo--half, .photo--third, .photo--full, .photo--box { grid-column: span 1; aspect-ratio: 4 / 3.2; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .section { padding: 72px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .header-inner { height: 66px; }
  .nav { top: 66px; padding: 8px 20px 18px; }
  .cap-grid { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .section { padding: 56px 0; }
  .step { grid-template-columns: 1fr; gap: 10px; padding: 26px 0; }
  .step-no { padding-top: 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 auto; }
  .stat { padding: 20px 20px 24px; }
  .stat-num { font-size: 20px; }
  .lightbox { padding: 64px 12px 76px; }
  .lightbox-nav { width: 38px; height: 54px; top: auto; bottom: 14px; transform: none; }
  .lightbox-prev { left: calc(50% - 46px); }
  .lightbox-next { right: calc(50% - 46px); }
  .lightbox-cap { bottom: 76px; padding: 0 16px; font-size: 12px; }
}

/* ---------- ODM blocks: narrow screens ---------- */

@media (max-width: 720px) {
  .metric-row { grid-template-columns: repeat(2, 1fr); }
  .metric { border-bottom: 1px solid var(--line); }
  .metric:nth-child(2n) { border-right: 0; }
  .metric:nth-last-child(-n + 2) { border-bottom: 0; }
  .spec-grid { grid-template-columns: 1fr; }
  .model-head { align-items: flex-start; }
  .model-head-meta { font-size: 11.5px; }
}

@media (max-width: 480px) {
  .metric { padding: 18px 16px 16px; }
  .metric-num { font-size: 23px; }
  .triad-item { padding: 26px 22px 28px; }
}

/* ---------- product galleries: caption below the image ---------- */

.photo--cap-below {
  display: flex;
  flex-direction: column;
  aspect-ratio: auto;
  background: var(--white);
}

.photo--cap-below img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
}

.photo--cap-below.photo--half img { aspect-ratio: 16 / 10; }
.photo--cap-below.photo--full img { aspect-ratio: 16 / 8.4; }

.photo--cap-below figcaption {
  position: static;
  padding: 13px 15px 16px;
  background: var(--white);
  color: var(--ink-2);
  text-shadow: none;
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.55;
  border-top: 1px solid var(--line);
}

.photo--cap-below small {
  color: var(--accent);
  margin-bottom: 5px;
}

@media (max-width: 980px) {
  .photo--cap-below img,
  .photo--cap-below.photo--half img,
  .photo--cap-below.photo--full img { aspect-ratio: 4 / 3.2; }
}

/* ==========================================================================
   Tables on phones — one row becomes one card
   The 3- and 5-column tables cannot shrink below ~410px without clipping a
   column, which is what pushed the whole page sideways under ~470px. Under
   640px the table stops being a table: the header row is dropped, the first
   cell becomes the card title, every other cell becomes a labelled line.
   Nothing is hidden, nothing scrolls sideways.
   ========================================================================== */

@media (max-width: 640px) {
  .cert-table {
    display: block;
    border: 0;
    background: transparent;
    font-size: 14px;
  }

  .cert-table thead { display: none; }
  .cert-table tbody { display: block; }

  .cert-table tr {
    display: block;
    padding: 15px 16px 16px;
    margin: 0 0 12px;
    background: var(--white);
    border: 1px solid var(--line);
  }

  .cert-table tr:last-child { margin-bottom: 0; }

  .cert-table td {
    display: block;
    padding: 0;
    border: 0;
    font-size: 13.5px;
    line-height: 1.62;
    color: var(--ink-2);
  }

  .cert-table td:first-child {
    position: relative;
    padding-left: 17px;
    margin-bottom: 9px;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.3;
    color: var(--ink);
    white-space: normal;
  }

  .cert-table td:first-child::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 7px;
    height: 7px;
    border: 1.5px solid var(--accent);
    transform: rotate(45deg);
  }

  .cert-table td:last-child { font-size: 13.5px; color: var(--ink-2); }

  /* micro label above each value, taken from the dropped column head */
  .cert-table td + td::before {
    content: var(--label, "");
    display: block;
    margin: 10px 0 2px;
    font-size: 9.5px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--steel-light);
  }

  .cert-table td:first-child + td::before { margin-top: 0; }

  .cert-table--std td:nth-child(2) { --label: "Scope"; }
  .cert-table--std td:nth-child(3) { --label: "How it is handled"; }

  .cert-table--stage td:nth-child(2) { --label: "What happens"; }
  .cert-table--stage td:nth-child(3) { --label: "Why it matters"; }

  .cert-table--test td:nth-child(2) { --label: "Method"; }
  .cert-table--test td:nth-child(3) { --label: "What it settles"; }
}

/* the model index table: code and status on one line, name, then the specs */

@media (max-width: 640px) {
  .lib-table {
    display: block;
    border: 0;
    background: transparent;
  }

  .lib-table thead { display: none; }
  .lib-table tbody { display: block; }

  .lib-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "code status"
      "model model"
      "housing housing"
      "lead lead";
    align-items: center;
    gap: 0;
    padding: 14px 16px 16px;
    margin: 0 0 12px;
    background: var(--white);
    border: 1px solid var(--line);
  }

  .lib-table tr:last-child { margin-bottom: 0; }

  .lib-table td {
    display: block;
    padding: 0;
    border: 0;
    color: var(--ink-2);
  }

  .lib-table td:nth-child(1) { grid-area: code; }
  .lib-table td:nth-child(2) { grid-area: model; }
  .lib-table td:nth-child(3) { grid-area: housing; }
  .lib-table td:nth-child(4) { grid-area: status; }
  .lib-table td:nth-child(5) { grid-area: lead; }

  .lib-table td:first-child {
    padding-left: 17px;
    margin-bottom: 0;
    font-size: 12px;
    font-weight: 500;
  }

  .lib-table td:first-child::before { top: 4px; }

  .lib-table td:nth-child(2) {
    margin: 6px 0 12px;
    padding-left: 17px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
  }

  .lib-table td:nth-child(2)::before { content: none; }

  .lib-table td:nth-child(2) a {
    border-bottom: 0;
    color: var(--ink);
  }

  .lib-table td:nth-child(3),
  .lib-table td:nth-child(5) { font-size: 13px; }

  .lib-table td:nth-child(3)::before { content: "Housing"; }
  .lib-table td:nth-child(5)::before { content: "Sample lead time"; }

  .lib-table td:nth-child(5)::before { margin-top: 10px; }

  .lib-table td:nth-child(4) {
    justify-self: end;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--steel);
    text-align: right;
  }

  .lib-table td:nth-child(4)::before { content: none; }
}

/* ==========================================================================
   Product galleries below 980px
   Two tiles across a 390px phone leaves ~166px per caption, which wraps one
   word per line. Single column below 640px; the figure margin that caused
   the crush is reset once, at the top of this file.
   ========================================================================== */

@media (max-width: 640px) {
  .photo-grid { grid-template-columns: 1fr; gap: 16px; }
  .photo-grid > .photo { grid-column: auto; }
}

/* A full-width product plate keeps its wide aspect even with .photo--prod,
   which otherwise forces every prod figure's image to 4:3. */
.photo--cap-below.photo--full.photo--prod img {
  aspect-ratio: 16 / 8.4;
  object-fit: contain;
  background: var(--white);
}
