/* ==========================================================================
   Kavya Manufacturing — design system (light first)
   Bright industrial editorial: white and pale steel surfaces, navy type,
   one safety-gold accent, hairline rules, monospaced figures.
   Navy is used as an accent band (hero split, CTA, footer) and for the dark
   3D console block — never as the page canvas.
   ========================================================================== */

/* ------------------------------------------------------------------ fonts */

@font-face { font-family: 'Barlow Condensed'; src: url('../fonts/barlow-condensed-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('../fonts/barlow-condensed-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('../fonts/barlow-condensed-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-variable-latin.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }

/* ----------------------------------------------------------------- tokens */

:root {
  /* surfaces */
  --surface: #ffffff;
  --surface-alt: #f2f5f9;
  --surface-sunken: #e9edf3;
  --surface-dark: #0b203d;          /* navy accent bands */
  --surface-console: #0d1521;       /* the 3D viewer only */

  /* brand */
  --navy: #0b203d;
  --navy-600: #153a63;
  --blue: #1a5cae;
  --gold: #f2b100;
  --gold-ink: #8a6100;              /* gold that passes contrast on white */

  /* text */
  --text: #12202f;
  --text-muted: #55637a;
  --text-invert: #ffffff;
  --text-invert-muted: #c3d0e0;

  /* lines */
  --line: rgba(18, 32, 47, 0.13);
  --line-strong: rgba(18, 32, 47, 0.24);
  --line-invert: rgba(255, 255, 255, 0.2);

  /* type */
  --font-display: 'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: 'Consolas', 'SFMono-Regular', ui-monospace, monospace;

  --step--1: clamp(0.78rem, 0.77rem + 0.06vw, 0.84rem);
  --step-0: clamp(0.95rem, 0.93rem + 0.12vw, 1.04rem);
  --step-1: clamp(1.06rem, 1rem + 0.3vw, 1.2rem);
  --step-2: clamp(1.3rem, 1.15rem + 0.7vw, 1.75rem);
  --step-3: clamp(1.7rem, 1.35rem + 1.7vw, 2.7rem);
  --step-4: clamp(2.15rem, 1.5rem + 3.1vw, 4.2rem);
  --step-5: clamp(2.4rem, 1.6rem + 4.2vw, 5rem);

  --wrap: 1280px;
  --gutter: clamp(1rem, 0.7rem + 1.6vw, 2.5rem);
  --section: clamp(3.25rem, 2.5rem + 4vw, 6.5rem);
  --radius: 3px;
  --radius-lg: 6px;
  --shadow-sm: 0 1px 2px rgba(18, 32, 47, 0.06), 0 1px 3px rgba(18, 32, 47, 0.05);
  --shadow-md: 0 14px 30px -18px rgba(18, 32, 47, 0.28), 0 2px 6px rgba(18, 32, 47, 0.05);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ------------------------------------------------------------------ reset */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, canvas, video { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); font-weight: 700; letter-spacing: -0.02em; text-transform: uppercase; }
h2 { font-size: var(--step-4); font-weight: 700; letter-spacing: -0.015em; text-transform: uppercase; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); line-height: 1.15; }

p { margin: 0 0 1rem; max-width: 64ch; }
p:last-child { margin-bottom: 0; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
ul, ol { margin: 0 0 1rem; padding-left: 1.1rem; }
li { margin-bottom: 0.3rem; }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--navy); }

/* ------------------------------------------------------------- structure */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: 1520px; }

.section { background: var(--surface); padding-block: var(--section); }
.section--tight { padding-block: clamp(2rem, 1.6rem + 2.4vw, 3.5rem); }
.section--paper { background: var(--surface-alt); }
.section--line { border-top: 1px solid var(--line); }
.section--navy { background: var(--surface-dark); color: var(--text-invert); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .lead { color: var(--text-invert-muted); }
.section--navy .eyebrow { color: var(--gold); }

/* ------------------------------------------------------------ typography */

.eyebrow {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-display); font-size: var(--step--1); font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-ink);
  margin: 0 0 1rem;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--gold); flex: none; }

.lead { font-size: var(--step-1); line-height: 1.5; color: var(--text-muted); max-width: 58ch; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%); z-index: 100;
  background: var(--gold); color: var(--navy); padding: 0.7rem 1.2rem; font-weight: 600; text-decoration: none;
}
.skip-link:focus { transform: translate(-50%, 0); color: var(--navy); }

/* --------------------------------------------------------------- headers */

.head { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.head__inner { display: flex; align-items: center; gap: 1rem; min-height: 74px; }

.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--navy); margin-right: auto; }
.brand:hover { color: var(--navy); }
.brand__badge { width: 38px; height: 38px; flex: none; }
.brand__name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; line-height: 0.9; display: block; }
.brand__tag { display: block; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-ink); }

.nav { display: none; }
.nav__list { display: flex; gap: 0.1rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: block; padding: 0.5rem 0.7rem; color: var(--text-muted); text-decoration: none;
  font-size: var(--step--1); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
  border-bottom: 2px solid transparent;
}
.nav__link:hover { color: var(--navy); border-bottom-color: var(--line-strong); }
.nav__link[aria-current='page'] { color: var(--navy); font-weight: 600; border-bottom-color: var(--gold); }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem; background: transparent;
  border: 1px solid var(--line-strong); color: var(--navy); padding: 0.5rem 0.7rem;
  font: inherit; font-size: var(--step--1); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; cursor: pointer;
}
.nav-toggle__bars { width: 18px; height: 11px; position: relative; flex: none; }
.nav-toggle__bars span { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform 0.2s var(--ease), opacity 0.2s var(--ease); }
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5px; }
.nav-toggle__bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.drawer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s var(--ease); border-top: 1px solid transparent; background: var(--surface); }
.drawer[data-open='true'] { grid-template-rows: 1fr; border-top-color: var(--line); }
.drawer__inner { overflow: hidden; }
.drawer ul { list-style: none; margin: 0; padding: 0.5rem 0 1rem; }
.drawer a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--line); color: var(--navy); text-decoration: none; font-family: var(--font-display); font-size: var(--step-2); text-transform: uppercase; }
.drawer .btn { margin-top: 1.1rem; width: 100%; }

@media (min-width: 1040px) { .nav { display: block; } .nav-toggle { display: none; } .drawer { display: none; } }

.head-cta { display: none; }
@media (min-width: 1040px) { .head-cta { display: inline-flex; } }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem; border: 1px solid transparent; border-radius: var(--radius);
  font-family: var(--font-body); font-size: var(--step--1); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }

.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: #ffc424; color: var(--navy); }

.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-600); color: #fff; }

.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface-alt); color: var(--navy); border-color: var(--navy); }

.section--navy .btn--ghost, .cta .btn--ghost { color: #fff; border-color: var(--line-invert); }
.section--navy .btn--ghost:hover, .cta .btn--ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: var(--gold); }

.btn--lg { padding: 1rem 1.9rem; font-size: var(--step-0); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* ------------------------------------------------------------------ hero */

.hero { position: relative; background: var(--surface-alt); border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; gap: 0; align-items: stretch; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1.02fr 1fr; } }

.hero__copy { padding-block: clamp(2.75rem, 2rem + 5vw, 5.5rem); padding-right: clamp(0rem, -2rem + 6vw, 3rem); position: relative; }
.hero__copy::after {
  content: ''; position: absolute; right: 0; top: clamp(1rem, 3vw, 3rem); bottom: clamp(1rem, 3vw, 3rem);
  width: 2px; background: linear-gradient(to bottom, var(--gold), rgba(242, 177, 0, 0));
}
@media (max-width: 999px) { .hero__copy::after { display: none; } }

.hero h1 { margin-bottom: 0.6rem; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero__sub { font-size: var(--step-1); color: var(--text-muted); max-width: 46ch; margin: 0 0 2rem; }

.hero__media { position: relative; min-height: 320px; overflow: hidden; background: var(--navy); border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) var(--radius-lg); }
@media (min-width: 1000px) { .hero__media { min-height: 560px; } }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute; left: 1rem; bottom: 1rem; background: rgba(11, 32, 61, 0.9); color: #fff;
  border-left: 3px solid var(--gold); padding: 0.55rem 0.85rem; font-size: var(--step--1);
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
}

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.chips li {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.02em;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  padding: 0.35rem 0.7rem; margin: 0;
}
.chips--tight li { font-size: 0.73rem; padding: 0.28rem 0.55rem; }

/* --------------------------------------------------------------- statbar */

.statbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.statbar__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.stat { padding: clamp(1.1rem, 0.9rem + 1vw, 1.9rem) clamp(0.9rem, 0.7rem + 1vw, 1.6rem); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat__label { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 0.4rem; }
.stat__value { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 600; color: var(--navy); line-height: 1; }
.stat__value small { display: block; font-family: var(--font-body); font-size: 0.72rem; font-weight: 500; letter-spacing: 0; color: var(--text-muted); margin-top: 0.4rem; }

/* ------------------------------------------------------------- headings */

.shead { display: grid; gap: 1.25rem; margin-bottom: clamp(2rem, 1.6rem + 2vw, 3.25rem); }
@media (min-width: 900px) { .shead--split { grid-template-columns: 1.35fr 1fr; align-items: end; } }
.shead h2 { margin-bottom: 0.35rem; }
.shead .lead { margin: 0; }

/* -------------------------------------------------------------- products */

.prod { display: grid; gap: clamp(1.5rem, 1.2rem + 2vw, 3rem); align-items: center; }
@media (min-width: 940px) { .prod { grid-template-columns: 1.1fr 1fr; } .prod--flip > .prod__media { order: 2; } }

.prod__media {
  position: relative; display: block; background: linear-gradient(165deg, #f7f9fc 0%, #e8edf4 100%);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
}
.prod__media img { width: 100%; transition: transform 0.6s var(--ease); }
.prod__media:hover img { transform: scale(1.03); }
.prod__tag {
  position: absolute; left: 0; top: 0; z-index: 2; background: var(--gold); color: var(--navy);
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; padding: 0.32rem 0.65rem;
}
.prod h3 { font-size: var(--step-3); margin-bottom: 0.5rem; text-transform: uppercase; }
.prod__facts { list-style: none; margin: 1.25rem 0 1.75rem; padding: 0; }
.prod__facts li { display: flex; gap: 0.65rem; align-items: baseline; padding: 0.6rem 0; border-top: 1px solid var(--line); color: var(--text); margin: 0; }
.prod__facts li::before { content: ''; width: 5px; height: 5px; background: var(--gold); flex: none; transform: translateY(-2px) rotate(45deg); }

/* ----------------------------------------------------------------- steps */

.steps { display: grid; gap: 0; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.step { position: relative; padding: clamp(1.1rem, 0.9rem + 1vw, 1.6rem) clamp(0.9rem, 0.7rem + 1vw, 1.4rem) clamp(1.4rem, 1.2rem + 1vw, 2rem); border-top: 2px solid var(--line); background: var(--surface); }
.step::before {
  content: counter(step, decimal-leading-zero); counter-increment: step;
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--gold-ink);
  display: block; margin-bottom: 0.5rem;
}
.step::after { content: ''; position: absolute; left: 0; top: -2px; width: 0; height: 2px; background: var(--gold); transition: width 0.4s var(--ease); }
.step.is-in::after { width: 100%; }
.step h3 { font-size: var(--step-1); text-transform: uppercase; margin-bottom: 0.35rem; }
.step p { font-size: var(--step--1); color: var(--text-muted); margin: 0; }

/* ------------------------------------------------------------ unit cards */

.units { display: grid; gap: clamp(0.9rem, 0.7rem + 1vw, 1.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.unit {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.unit:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.unit__media { position: relative; aspect-ratio: 7 / 5; display: grid; place-items: center; padding: 0.5rem; background: linear-gradient(165deg, #f7f9fc, #e9eef5); }
.unit__media img { width: 100%; height: 100%; object-fit: contain; }
.unit__no { position: absolute; left: 0.55rem; top: 0.55rem; font-family: var(--font-mono); font-size: 0.68rem; color: var(--gold-ink); letter-spacing: 0.08em; }
.unit__body { padding: 0.9rem 1rem 1.1rem; border-top: 1px solid var(--line); }
.unit__name { font-family: var(--font-display); font-size: var(--step-2); text-transform: uppercase; line-height: 1; color: var(--navy); }
.unit__note { font-size: var(--step--1); color: var(--text-muted); margin-top: 0.4rem; }

/* --------------------------------------------------------------- gallery */

.mosaic { display: grid; gap: clamp(0.6rem, 0.5rem + 0.6vw, 1rem); grid-template-columns: repeat(6, 1fr); }
.mosaic figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-sunken); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.mosaic figure:hover img { transform: scale(1.04); }
.mosaic figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2.5rem 1rem 0.8rem;
  background: linear-gradient(to top, rgba(11, 32, 61, 0.92), transparent);
  font-family: var(--font-display); font-size: var(--step-1); text-transform: uppercase; color: #fff;
}
.mosaic .m-a { grid-column: span 6; aspect-ratio: 21 / 9; }
.mosaic .m-b { grid-column: span 3; aspect-ratio: 4 / 3; }
.mosaic .m-c { grid-column: span 3; aspect-ratio: 4 / 3; }
@media (min-width: 800px) {
  .mosaic .m-a { grid-column: span 4; aspect-ratio: 16 / 11; }
  .mosaic .m-b { grid-column: span 2; aspect-ratio: 3 / 4; }
  .mosaic .m-c { grid-column: span 2; aspect-ratio: 3 / 4; }
}

/* --------------------------------------------------------------- figures */

/* A single illustrative figure beside copy (product pages). */
.shot { margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.shot img { width: 100%; height: auto; border-radius: var(--radius-lg); background: var(--surface-sunken); }
.shot figcaption { font-size: var(--step--1); color: var(--text-muted); }

/* ---------------------------------------------------------------- tables */

.spec { width: 100%; border-collapse: collapse; font-size: var(--step-0); background: var(--surface); }
.spec caption { text-align: left; font-family: var(--font-display); font-size: var(--step-1); text-transform: uppercase; color: var(--navy); padding-bottom: 0.75rem; letter-spacing: 0.04em; }
.spec th, .spec td { text-align: left; padding: 0.8rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { font-weight: 500; color: var(--text-muted); width: 46%; background: var(--surface-alt); }
.spec td { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec thead th { background: var(--surface-alt); color: var(--navy); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--step--1); }

.scroll-x { overflow-x: auto; }
.scroll-x > table { min-width: 640px; }

/* ----------------------------------------------------------------- facts */

.facts { display: grid; gap: clamp(1.25rem, 1rem + 1.4vw, 2.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.fact__icon { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); color: var(--gold-ink); background: var(--surface); margin-bottom: 0.85rem; }
.fact__icon svg { width: 20px; height: 20px; }
.fact h3 { font-size: var(--step-1); text-transform: uppercase; margin-bottom: 0.3rem; }
.fact p { font-size: var(--step--1); color: var(--text-muted); margin: 0; }

/* ------------------------------------------------------------------- cta */

.cta { background: var(--surface-dark); color: var(--text-invert); border-bottom: 3px solid var(--gold); }
.cta__inner { display: grid; gap: 1.5rem; align-items: center; padding-block: clamp(2.25rem, 1.8rem + 3vw, 4rem); }
@media (min-width: 900px) { .cta__inner { grid-template-columns: 1.4fr auto; } }
.cta h2 { color: #fff; margin-bottom: 0.5rem; }
.cta p { color: var(--text-invert-muted); margin: 0; }

/* ------------------------------------------------------------------ faq */

.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; position: relative; font-family: var(--font-display); font-size: var(--step-2); text-transform: uppercase; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); color: var(--gold-ink); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { padding-bottom: 1.25rem; color: var(--text-muted); max-width: 70ch; }

/* ------------------------------------------------------------------ misc */

.split { display: grid; gap: clamp(1.5rem, 1.2rem + 2vw, 3rem); align-items: start; }
@media (min-width: 940px) {
  .split--2 { grid-template-columns: 1fr 1fr; }
  .split--wide { grid-template-columns: 1.35fr 1fr; }
  .split--wide-r { grid-template-columns: 1fr 1.35fr; }
}

.panel { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 1rem + 1.2vw, 2rem); background: var(--surface); box-shadow: var(--shadow-sm); }

.callout { border-left: 3px solid var(--gold); padding: 0.9rem 1.1rem; background: #fff8e6; color: var(--text); font-size: var(--step--1); }

.kicker-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; font-size: var(--step-0); }
.kicker-list li { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0; }
.kicker-list svg { width: 17px; height: 17px; flex: none; color: var(--gold-ink); margin-top: 0.2rem; }

.breadcrumb { font-size: var(--step--1); color: var(--text-muted); margin-bottom: 1.1rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; }
.breadcrumb a { text-decoration: none; color: var(--text-muted); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb li + li::before { content: '/'; margin-right: 0.5rem; color: var(--line-strong); }

.page-head { background: var(--surface-alt); border-bottom: 2px solid var(--gold); padding-block: clamp(2.25rem, 1.8rem + 3vw, 4rem); }
.page-head h1 { font-size: var(--step-4); margin-bottom: 0.6rem; }
.page-head p { color: var(--text-muted); margin: 0; }

.tag { display: inline-block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--line); padding: 0.2rem 0.5rem; color: var(--gold-ink); background: var(--surface); }

/* -------------------------------------------------------------- 3D viewer */

.v3d {
  position: relative; background: var(--surface-console); border: 1px solid rgba(18, 32, 47, 0.35);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
}
@media (min-width: 1080px) { .v3d--split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; } }

.v3d__stage { position: relative; min-height: clamp(340px, 52vw, 620px); background: radial-gradient(circle at 50% 12%, #1a2536 0%, #0d1521 72%); touch-action: none; }
.v3d__stage canvas { display: block; width: 100%; height: 100%; }
.v3d__labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }

.v3d-label {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 0.4rem; transform: translate(-50%, -100%);
  background: rgba(13, 21, 33, 0.9); border: 1px solid rgba(242, 177, 0, 0.45); border-radius: 2px;
  padding: 0.16rem 0.55rem 0.16rem 0.25rem; color: #eef2f7; font-size: 0.7rem; white-space: nowrap; cursor: pointer;
}
.v3d-label b { display: grid; place-items: center; width: 17px; height: 17px; background: var(--gold); color: var(--navy); font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700; }
.v3d-label:hover { border-color: var(--gold); }

.v3d__toolbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.8rem;
  background: linear-gradient(to top, rgba(13, 21, 33, 0.96), transparent); pointer-events: none;
}
.v3d__buttons { display: flex; flex-wrap: wrap; gap: 0.4rem; pointer-events: auto; }
.v3d-btn {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(13, 21, 33, 0.78); color: #eef2f7;
  font: inherit; font-size: 0.76rem; font-weight: 500; cursor: pointer;
}
.v3d-btn svg { width: 15px; height: 15px; fill: currentColor; stroke: currentColor; }
.v3d-btn[aria-pressed='true'] { background: var(--gold); border-color: var(--gold); color: var(--navy); font-weight: 600; }
.v3d-btn:hover { border-color: var(--gold); }
.v3d__hint { margin: 0; font-size: 0.72rem; color: #9fb0c4; }
@media (max-width: 720px) { .v3d__hint { display: none; } }

.v3d-panel { background: #101a28; border-top: 1px solid rgba(255, 255, 255, 0.1); padding: clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem); color: #eef2f7; overflow-y: auto; }
@media (min-width: 1080px) { .v3d--split .v3d-panel { border-top: 0; border-left: 1px solid rgba(255, 255, 255, 0.1); } }
.v3d-panel__eyebrow { font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin: 0 0 0.4rem; }
.v3d-panel__title { color: #fff; font-size: var(--step-3); text-transform: uppercase; margin-bottom: 0.25rem; }
.v3d-panel__lead { color: var(--gold); font-size: var(--step--1); font-weight: 600; margin-bottom: 0.85rem; }
.v3d-panel__body { color: #c3d0e0; font-size: var(--step--1); margin-bottom: 1.1rem; }
.v3d-panel__specs { margin: 0 0 1.1rem; font-size: var(--step--1); }
.v3d-panel__specs div { display: grid; gap: 0.2rem; padding: 0.5rem 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.v3d-panel__specs dt { color: #9fb0c4; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }
.v3d-panel__specs dd { margin: 0; font-family: var(--font-mono); color: #fff; font-size: 0.8rem; }
.v3d-panel__features { list-style: none; margin: 0 0 1.1rem; padding: 0; font-size: var(--step--1); }
.v3d-panel__features li { display: flex; gap: 0.5rem; color: #eef2f7; }
.v3d-panel__features span { color: var(--gold); }
.v3d-panel__note { font-size: var(--step--1); color: #eef2f7; }
.v3d-panel__hint { font-size: 0.72rem; color: #9fb0c4; margin-top: 0.85rem; }
.v3d-panel__actions { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1.1rem; }
.v3d-panel .btn { width: 100%; }
.v3d-panel .btn--ghost { color: #eef2f7; border-color: rgba(255, 255, 255, 0.28); }
.v3d-panel .btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }

.v3d-chips { display: flex; gap: 0.4rem; overflow-x: auto; padding: 0.9rem; background: #101a28; border-top: 1px solid rgba(255, 255, 255, 0.1); }
@media (min-width: 1080px) { .v3d-chips { grid-column: 1 / -1; } }
.v3d-chip {
  flex: none; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.04); color: #eef2f7;
  font: inherit; font-family: var(--font-display); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em;
  cursor: pointer; white-space: nowrap;
}
.v3d-chip b { font-family: var(--font-mono); color: var(--gold); }
.v3d-chip:hover { border-color: var(--gold); }
.v3d-chip.is-active { background: var(--gold); border-color: var(--gold); color: var(--navy); font-weight: 600; }
.v3d-chip.is-active b { color: var(--navy); }

.v3d-fallback { display: grid; gap: 1rem; padding: clamp(1rem, 0.8rem + 1vw, 1.75rem); background: var(--surface); }
.v3d-fallback img { width: 100%; border: 1px solid var(--line); }
.v3d-fallback__body h3 { color: var(--navy); font-size: var(--step-1); margin-bottom: 0.35rem; }
.v3d-fallback__body p { color: var(--text-muted); font-size: var(--step--1); margin-bottom: 0.75rem; }

/* ------------------------------------------------------- 3D configurator */

/* Sits above the dark console: light surface, gold accent, monospaced readouts. */
.v3d-config {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: clamp(1rem, 0.8rem + 1vw, 1.6rem);
  display: grid;
  gap: clamp(0.9rem, 0.8rem + 0.6vw, 1.4rem);
}

@media (min-width: 1080px) {
  .v3d--split .v3d-config { grid-column: 1 / -1; }
}

.v3d-config__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 1rem; }
.v3d-config__title { font-family: var(--font-display); font-size: var(--step-2); text-transform: uppercase; color: var(--navy); margin: 0; }
.v3d-config__hint { margin: 0; font-size: var(--step--1); color: var(--text-muted); }

.v3d-config__controls {
  display: grid; gap: 0.9rem 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr));
}

.v3d-field { display: grid; gap: 0.35rem; }
.v3d-field > span {
  display: flex; justify-content: space-between; gap: 0.5rem;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted);
}
.v3d-field b { font-family: var(--font-mono); font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--navy); }
.v3d-field em { font-style: normal; opacity: 0.65; }
.v3d-field input[type='range'] { width: 100%; height: 24px; accent-color: var(--gold); }
.v3d-field input[type='number'] {
  font: inherit; font-size: 16px; color: var(--text); padding: 0.5rem 0.6rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius); width: 100%; background: var(--surface);
}
.v3d-field input[type='number']:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26, 92, 174, 0.15); outline: none; }

.v3d-config__readout {
  display: grid; margin: 0; gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 128px), 1fr));
  border-top: 1px solid var(--line);
}
.v3d-config__readout > div { padding: 0.6rem 0.2rem; border-bottom: 1px solid var(--line); }
.v3d-config__readout dt { font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.v3d-config__readout dd { margin: 0.25rem 0 0; font-family: var(--font-mono); font-size: var(--step-1); color: var(--navy); }

.v3d-config__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

@media (max-width: 760px) {
  .v3d-config__readout dd { font-size: var(--step-0); }
  .v3d-config__controls { grid-template-columns: 1fr 1fr; }
  .v3d-field:first-child { grid-column: 1 / -1; }
  .v3d-config__actions .btn { width: 100%; }
}

/* ---------------------------------------------------------------- forms */

.form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-size: var(--step--1); font-weight: 600; color: var(--navy); }
.field .hint { font-size: 0.72rem; color: var(--text-muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--step-0); color: var(--text); padding: 0.75rem 0.85rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26, 92, 174, 0.15); outline: none; }
.field--error input, .field--error select, .field--error textarea { border-color: #b3261e; }
.field__error { font-size: 0.75rem; color: #b3261e; font-weight: 500; }
.field__error:empty { display: none; }
.form__row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.form__status { border: 1px solid var(--line); background: var(--surface-alt); padding: 0.85rem 1rem; font-size: var(--step--1); color: var(--text); }
.form__status--ok { border-color: #9fd3b0; background: #eefaf1; color: #17552f; }
.form__status--warn { border-color: #e6c98a; background: #fff9ec; color: #7a5600; }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: start; margin: 0; }
.contact-list__icon { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--gold-ink); }
.contact-list__icon svg { width: 18px; height: 18px; }
.contact-list__label { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--text-muted); }
.contact-list a { color: var(--navy); text-decoration: none; border-bottom: 1px solid rgba(138, 97, 0, 0.4); }
.contact-list a:hover { border-bottom-color: var(--gold-ink); }
.contact-list p { margin: 0; }

/* ---------------------------------------------------------------- footer */

.foot { background: var(--surface-dark); color: var(--text-invert-muted); padding-block: clamp(2.5rem, 2rem + 2.5vw, 4rem) 1.5rem; font-size: var(--step--1); }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { color: var(--gold); }
.foot h3 { color: #fff; font-size: var(--step-0); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.9rem; }
.foot__grid { display: grid; gap: clamp(1.5rem, 1.2rem + 1.6vw, 2.75rem); }
@media (min-width: 720px) { .foot__grid { grid-template-columns: 1.6fr 1fr 1fr; } }
@media (min-width: 1040px) { .foot__grid { grid-template-columns: 1.7fr 0.9fr 1fr 1.1fr; } }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 0.45rem; }
.foot__brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.foot__brand img { width: 38px; height: 38px; }
.foot__brand span { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: #fff; text-transform: uppercase; }
.foot__bottom { margin-top: clamp(2rem, 1.6rem + 1.6vw, 3rem); padding-top: 1.2rem; border-top: 1px solid var(--line-invert); display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between; font-size: 0.75rem; color: #93a7c2; }

/* ---------------------------------------------------------------- motion */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .prod__media:hover img, .mosaic figure:hover img { transform: none; }
}

/* ---------------------------------------------------------------- print */

@media print {
  .head, .foot, .v3d, .drawer, .cta { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   Touch and small-screen refinements
   Phones get: page scroll that is never trapped, 44 px tap targets,
   16 px form fields (Android zooms below that), a calmer header, a compact
   process list and a two-column stat band.
   ========================================================================== */

/* nothing may create a horizontal scroll on a phone — clipped at the root */
html { overflow-x: clip; }
body { overflow-x: clip; max-width: 100%; }

/* the header must fit any width: the brand truncates before the menu button moves */
.head__inner { flex-wrap: nowrap; }
.brand { min-width: 0; flex: 0 1 auto; }
.brand > span { min-width: 0; }
.brand__name, .brand__tag { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-toggle, .head-cta { flex: none; }

/* anchor targets must clear the sticky header */
[id] { scroll-margin-top: 96px; }

button, .btn, .nav-toggle, .v3d-btn, .v3d-chip, summary, .unit, .faq summary {
  touch-action: manipulation;
}

html { -webkit-tap-highlight-color: rgba(242, 177, 0, 0.22); }

.scroll-x, .v3d-chips, .mosaic { -webkit-overflow-scrolling: touch; }

/* pointer-less devices must not inherit hover transforms */
@media (hover: none) {
  .prod__media:hover img, .mosaic figure:hover img { transform: none; }
  .unit:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--line); }
  .btn:hover { transform: none; }
}

@media (max-width: 760px) {
  :root { --section: clamp(2.5rem, 2rem + 4vw, 4rem); }

  /* Android zooms the whole page when a focused field is under 16px */
  .field input, .field select, .field textarea { font-size: 16px; }

  /* a blur backdrop costs real frames on mid-range phones */
  .head { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }

  /* comfortable tap targets */
  .btn { min-height: 46px; }
  .nav-toggle { min-height: 44px; }
  .v3d-btn, .v3d-chip { min-height: 44px; }
  .brand { min-height: 44px; }
  .brand__tag { font-size: 0.72rem; }
  .drawer a { min-height: 48px; display: flex; align-items: center; }
  /* footer / list links need a thumb-sized row, not a 21 px line box */
  .foot a, .contact-list a, .breadcrumb a {
    display: inline-flex; align-items: center; min-height: 40px; padding-block: 0.15rem;
  }
  .foot li a, .foot p a { min-height: 40px; }
  .foot__brand { min-height: 44px; }
  .foot li { margin-bottom: 0.15rem; }
  .brand__tag { letter-spacing: 0.1em; }

  /* hero: keep the photograph visible without pushing content off screen */
  .hero__copy { padding-block: 2.25rem 2rem; }
  .hero__sub { margin-bottom: 1.5rem; }
  .hero__media { min-height: 240px; }
  .hero__badge { font-size: 0.72rem; padding: 0.45rem 0.7rem; }

  /* process: a compact numbered list instead of five tall columns */
  .steps { grid-template-columns: 1fr; }
  .step {
    display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: start;
    padding: 0.95rem 0.2rem; border-top-width: 1px;
  }
  .step::before { margin: 0; font-size: 1.3rem; line-height: 1; }
  .step h3 { margin-bottom: 0.15rem; }

  /* specification band: two tidy columns that cannot push the page wide */
  .statbar__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { border-left: 0; border-top: 1px solid var(--line); padding: 0.9rem 0.8rem; min-width: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .stat:first-child, .stat:nth-child(2) { border-top: 0; }
  .stat__value { font-size: 1.35rem; }
  .stat__value, .stat__value small, .stat__label { overflow-wrap: anywhere; }

  /* 3D console: taller stage, toolbar above the fold of the block */
  .v3d__stage { min-height: 360px; }
  .v3d__toolbar { padding: 0.6rem; }
  .v3d-label { font-size: 0.66rem; }
  .v3d-panel { padding: 1rem; }
  .v3d-panel__title { font-size: var(--step-2); }

  /* tables scroll horizontally inside their own box, never the page */
  .scroll-x { position: relative; }
  .spec th, .spec td { padding: 0.65rem 0.7rem; }

  /* inline call links inside a sentence still get a comfortable tap row */
  .tel-inline { display: inline-flex; align-items: center; min-height: 40px; }

  /* configurator sliders need a thumb-sized drag area on a phone */
  .v3d-field input[type='range'] { height: 34px; }
  .v3d-field { gap: 0.5rem; }

  /* keep long strings from forcing a horizontal scroll */
  p, li, dd, .foot li { overflow-wrap: anywhere; }

  .mosaic .m-b, .mosaic .m-c { grid-column: span 6; aspect-ratio: 16 / 10; }
  .prod__facts li { padding: 0.5rem 0; }
}

@media (max-width: 420px) {
  .units { grid-template-columns: 1fr; }
  .chips li { font-size: 0.72rem; }
  .brand__name { font-size: 1.25rem; }
}

/* every auto-fit grid: tracks must be allowed to shrink below their content,
   or one long unbreakable string can widen the whole page on a phone */
.units, .facts, .foot__grid, .mosaic { min-width: 0; }
.units > *, .facts > *, .foot__grid > * { min-width: 0; }

/* absolute decoration must never create scroll */
.v3d__toolbar, .hero__media, .prod__media, .mosaic figure { max-width: 100%; }
