/* ============================================================
   MJR Vision — "Instrument" design system
   Graphite + MJR teal (#00B080). Orange (#ED9A1D) used sparingly for slogan.
   ============================================================ */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.83rem + 0.2vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.25rem + 1vw, 2.125rem);
  --text-2xl: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);

  /* Spacing */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  --radius-sm: 2px; --radius-md: 3px; --radius-lg: 4px; --radius-full: 9999px;
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 660px;
  --content-default: 1020px;
  --content-wide: 1240px;

  --font-display: 'Cabinet Grotesk', 'Satoshi', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
}

:root, [data-theme='light'] {
  --color-bg: #f4f6f7;
  --color-surface: #ffffff;
  --color-surface-2: #fafbfc;
  --color-surface-offset: #e9edf0;
  --color-surface-offset-2: #dfe4e9;
  --color-divider: #dce1e6;
  --color-border: #c6ced6;
  --color-text: #10151b;
  --color-text-muted: #566270;
  --color-text-faint: #8d99a5;
  --color-text-inverse: #f6f8f9;

  --color-ink: #10151b;           /* deep graphite — primary buttons, dark panels */
  --color-ink-2: #1c2531;
  --color-accent: #00B080;        /* MJR teal — rules, ticks, marks */
  --color-accent-ink: #007a58;    /* darker teal for text on light (WCAG AA) */
  --color-accent-soft: #e6f7f2;
  --color-scan: #00B080;
  --color-brand-orange: #ED9A1D;  /* slogan / sparse accent only */

  --shadow-sm: 0 1px 2px rgba(16, 21, 27, 0.07);
  --shadow-md: 0 6px 18px rgba(16, 21, 27, 0.08);
  --shadow-lg: 0 20px 48px rgba(16, 21, 27, 0.16);
}

[data-theme='dark'] {
  --color-bg: #0c1015;
  --color-surface: #141a22;
  --color-surface-2: #18202a;
  --color-surface-offset: #111821;
  --color-surface-offset-2: #1d2632;
  --color-divider: #222c38;
  --color-border: #2d3844;
  --color-text: #dde4eb;
  --color-text-muted: #8e9aa7;
  --color-text-faint: #67727e;
  --color-text-inverse: #0c1015;

  --color-ink: #00B080;
  --color-ink-2: #00c992;
  --color-accent: #00B080;
  --color-accent-ink: #3dd4a8;
  --color-accent-soft: #0d2a22;
  --color-scan: #00B080;
  --color-brand-orange: #ED9A1D;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.6);
}

/* ---------- primitives ---------- */
.wrap { width: 100%; max-width: var(--content-wide); margin-inline: auto; padding-inline: clamp(var(--space-5), 4vw, var(--space-12)); }
.wrap--default { max-width: var(--content-default); }
.section { padding-block: clamp(var(--space-12), 7vw, var(--space-24)); }
.section--tight { padding-block: clamp(var(--space-10), 5vw, var(--space-16)); }
.section--offset { background: var(--color-surface-offset); }
.section--ink { background: #1c2531; color: #e8edf2; }
[data-theme='dark'] .section--ink { background: #141a22; }
.rule { height: 1px; background: var(--color-divider); border: 0; }

.eyebrow {
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-accent-ink);
  display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4);
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--color-accent); flex: none; }
.section--ink .eyebrow { color: var(--color-accent); }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; }
.h-hero { font-size: var(--text-2xl); font-weight: 700; line-height: 1.04; }
.h-page { font-size: var(--text-2xl); font-weight: 700; line-height: 1.06; }
.h-section { font-size: var(--text-xl); font-weight: 700; }
.h-card { font-family: var(--font-body); font-size: var(--text-lg); font-weight: 700; letter-spacing: -0.01em; }
.lede { font-size: var(--text-lg); line-height: 1.5; color: var(--color-text-muted); max-width: 46ch; }
.body-muted { color: var(--color-text-muted); }
.mono { font-family: var(--font-mono); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); font-weight: 600; line-height: 1;
  padding: var(--space-3) var(--space-5); border-radius: var(--radius-md);
  text-decoration: none; border: 1px solid transparent; white-space: nowrap;
}
.btn--primary { background: var(--color-ink); color: var(--color-text-inverse); }
.btn--primary:hover { background: var(--color-ink-2); }
.btn--ghost { border-color: var(--color-border); color: var(--color-text); background: transparent; }
.btn--ghost:hover { border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn--onink { background: var(--color-accent); color: #0c1015; }
.btn--onink:hover { background: #00c992; }
.btn--call {
  background: transparent; color: var(--color-text);
  border-color: var(--color-border);
}
.btn--call:hover { border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn--call svg { flex: none; }
.btn--outline-onink { border-color: rgba(232, 237, 242, 0.4); color: #e8edf2; }
.btn--outline-onink:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }

.arrow-link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  color: var(--color-text); border-bottom: 1px solid var(--color-accent); padding-bottom: 2px;
}
.arrow-link:hover { color: var(--color-accent-ink); gap: var(--space-3); }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
}
.header__bar { display: flex; align-items: center; gap: var(--space-6); height: 76px; }
.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; margin-right: auto; }
.brand img { height: 40px; width: auto; }
.brand__logo--light { display: block; }
.brand__logo--dark { display: none; }
[data-theme='dark'] .brand__logo--light { display: none; }
[data-theme='dark'] .brand__logo--dark { display: block; }
.brand__tag {
  display: none; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--color-text-faint); padding-left: var(--space-3);
  border-left: 1px solid var(--color-border); line-height: 1.4; max-width: 20ch; white-space: nowrap;
}
@media (min-width: 1100px) { .brand__tag { display: block; } }

.nav { display: none; align-items: center; gap: var(--space-1); }
@media (min-width: 960px) { .nav { display: flex; } }
.nav a, .nav__trigger {
  font-size: var(--text-sm); font-weight: 500; text-decoration: none; color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); display: inline-flex; align-items: center; gap: 6px;
}
.nav a:hover, .nav__trigger:hover { color: var(--color-text); background: var(--color-surface-offset); }
.nav a[aria-current='page'] { color: var(--color-text); box-shadow: inset 0 -2px 0 var(--color-accent); }
.nav__group { position: relative; }
.nav__group[data-open='true'] > .nav__trigger { color: var(--color-text); background: var(--color-surface-offset); }
.nav__group[data-open='true'] .nav__trigger svg { transform: rotate(180deg); }
.nav__trigger svg { transition: transform var(--transition-interactive); }
.nav__menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 320px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg); border-radius: var(--radius-md);
  padding: var(--space-2); display: none; flex-direction: column;
}
.nav__group[data-open='true'] .nav__menu { display: flex; }
.nav__menu::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav__menu a {
  display: block; padding: var(--space-3); border-radius: var(--radius-sm); color: var(--color-text);
  font-weight: 600; font-size: var(--text-sm); box-shadow: none !important;
}
.nav__menu a span { display: block; font-weight: 400; font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 2px; }
.nav__menu a:hover { background: var(--color-surface-offset); }
.header__actions { display: flex; align-items: center; gap: var(--space-2); }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; color: var(--color-text-muted);
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
}
.icon-btn:hover { color: var(--color-text); border-color: var(--color-accent); }
.header__cta { display: none; }
.header__call { display: none; }
@media (min-width: 700px) { .header__cta { display: inline-flex; } }
@media (min-width: 1100px) { .header__call { display: inline-flex; } }
.menu-btn { display: grid; }
@media (min-width: 960px) { .menu-btn { display: none; } }

/* mobile drawer */
.drawer {
  position: fixed; inset: 76px 0 0; background: var(--color-bg); z-index: 55;
  overflow-y: auto; padding: var(--space-6) 0 var(--space-16); display: none;
}
.drawer[data-open='true'] { display: block; }
@media (min-width: 960px) { .drawer { display: none !important; } }
.drawer a {
  display: block; padding: var(--space-4) 0; text-decoration: none; color: var(--color-text);
  font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600;
  border-bottom: 1px solid var(--color-divider);
}
.drawer .drawer__label {
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--color-text-faint); padding-top: var(--space-6); padding-bottom: var(--space-2);
}
.drawer .drawer__sub { font-family: var(--font-body); font-size: var(--text-base); font-weight: 500; padding-left: var(--space-4); }

/* ---------- hero ---------- */
.hero { position: relative; border-bottom: 1px solid var(--color-divider); overflow: hidden; }
.hero__grid {
  display: grid; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: center;
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
}
@media (min-width: 900px) { .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.hero__kicker {
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--color-text-faint); margin-bottom: var(--space-5);
}
.hero p.lede { margin-top: var(--space-6); }
.hero--sub { background: var(--color-surface-offset); }
.hero--sub .hero__grid { padding-block: clamp(var(--space-10), 5vw, var(--space-16)); }

.stat-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  border-top: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider);
}
.stat { padding: var(--space-8) var(--space-6) var(--space-8) 0; border-right: 1px solid var(--color-divider); }
.stat:last-child { border-right: 0; }
@media (max-width: 700px) { .stat { border-right: 0; border-bottom: 1px solid var(--color-divider); padding-block: var(--space-5); } .stat:last-child { border-bottom: 0; } }
.stat__num { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; letter-spacing: -0.02em; }
.stat__label { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-1); max-width: 30ch; }

/* ---------- photo frame + lightbox ---------- */
.frame {
  position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--color-border);
  background: var(--color-surface-offset-2); cursor: zoom-in; overflow: hidden;
}
.frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.frame--tall img { aspect-ratio: 4 / 3; }
.frame::after {
  content: ''; position: absolute; inset: 10px; pointer-events: none;
  border: 1px solid transparent; opacity: 0; transition: opacity var(--transition-interactive);
  background:
    linear-gradient(var(--color-accent), var(--color-accent)) left top / 18px 2px no-repeat,
    linear-gradient(var(--color-accent), var(--color-accent)) left top / 2px 18px no-repeat,
    linear-gradient(var(--color-accent), var(--color-accent)) right top / 18px 2px no-repeat,
    linear-gradient(var(--color-accent), var(--color-accent)) right top / 2px 18px no-repeat,
    linear-gradient(var(--color-accent), var(--color-accent)) left bottom / 18px 2px no-repeat,
    linear-gradient(var(--color-accent), var(--color-accent)) left bottom / 2px 18px no-repeat,
    linear-gradient(var(--color-accent), var(--color-accent)) right bottom / 18px 2px no-repeat,
    linear-gradient(var(--color-accent), var(--color-accent)) right bottom / 2px 18px no-repeat;
}
.frame:hover::after, .frame:focus-visible::after { opacity: 1; }
.frame__zoom {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(12, 16, 21, 0.78); color: #f3f6f8; padding: 5px 8px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; gap: 6px; opacity: 0; transition: opacity var(--transition-interactive);
}
.frame:hover .frame__zoom, .frame:focus-visible .frame__zoom { opacity: 1; }
figure.shot { margin: 0; }
figure.shot figcaption {
  font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-muted);
  margin-top: var(--space-3); letter-spacing: 0.02em;
}
.shot-grid { display: grid; gap: var(--space-6); }
@media (min-width: 760px) { .shot-grid--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 760px) { .shot-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.shot--portrait { max-width: 26rem; }
.shot--portrait .frame img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
  display: block;
  background: #fff;
}


.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(8, 11, 15, 0.97);
  backdrop-filter: blur(6px);
  display: none; place-items: center; padding: var(--space-6);
}
.lightbox[data-open='true'] { display: grid; }
.lightbox img { max-width: 100%; max-height: 82vh; width: auto; object-fit: contain; border: 1px solid rgba(255, 255, 255, 0.14); }
.lightbox__cap { color: #cfd7de; font-family: var(--font-mono); font-size: var(--text-xs); text-align: center; margin-top: var(--space-4); max-width: 70ch; }
.lightbox__close {
  position: fixed; top: var(--space-5); right: var(--space-5); width: 44px; height: 44px;
  display: grid; place-items: center; color: #e8edf2; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: var(--radius-md);
}
.lightbox__close:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ---------- cards ---------- */
.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  padding: var(--space-6); border-radius: var(--radius-md); position: relative;
}
.card p { color: var(--color-text-muted); font-size: var(--text-sm); margin-top: var(--space-2); }
.card__idx { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-accent-ink); letter-spacing: 0.12em; }
.grid { display: grid; gap: var(--space-5); }
@media (min-width: 700px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px) and (max-width: 899px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }

/* product index cards (home) */
.prod-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border: 1px solid var(--color-border); background: var(--color-surface); overflow: hidden;
  border-radius: var(--radius-md);
}
.prod-card:hover { border-color: var(--color-accent); box-shadow: var(--shadow-md); }
.prod-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.prod-card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.prod-card__idx { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.14em; color: var(--color-accent-ink); }
.prod-card h3 { font-family: var(--font-body); font-size: var(--text-base); font-weight: 700; letter-spacing: 0; }
.prod-card p { font-size: var(--text-sm); color: var(--color-text-muted); margin: 0; }
.prod-card__go {
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-text-faint); margin-top: auto; padding-top: var(--space-3);
}
.prod-card:hover .prod-card__go { color: var(--color-accent-ink); }

/* bullet list of differentiators */
.diffs { list-style: none; display: grid; gap: var(--space-5); }
.diffs > li { display: grid; grid-template-columns: 34px 1fr; gap: var(--space-4); align-items: start; }
.diffs .diffs__n {
  font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-accent-ink);
  border: 1px solid var(--color-border); width: 30px; height: 30px; display: grid; place-items: center; border-radius: var(--radius-full);
}
.diffs strong { display: block; font-size: var(--text-base); }
.diffs p { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: 2px; }

/* comparison table */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--color-border); background: var(--color-surface); border-radius: var(--radius-md); }
table.cmp { min-width: 620px; font-size: var(--text-sm); }
table.cmp th, table.cmp td { text-align: left; padding: var(--space-4) var(--space-5); vertical-align: top; border-bottom: 1px solid var(--color-divider); }
table.cmp thead th {
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-text-muted); font-weight: 500; background: var(--color-surface-2);
}
table.cmp tbody th { font-weight: 600; color: var(--color-text); width: 28%; }
table.cmp .col-mjr { background: var(--color-accent-soft); border-left: 2px solid var(--color-accent); border-right: 1px solid var(--color-divider); }
table.cmp thead .col-mjr { color: var(--color-accent-ink); font-weight: 700; }
table.cmp tbody tr:last-child th, table.cmp tbody tr:last-child td { border-bottom: 0; }

/* process flow */
.flow { display: grid; gap: var(--space-4); counter-reset: step; }
@media (min-width: 860px) { .flow { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); } }
.flow__step { border: 1px solid var(--color-border); background: var(--color-surface); padding: var(--space-6); position: relative; border-radius: var(--radius-md); }
.flow__step::before {
  content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: var(--color-accent); opacity: 0.9;
}
.flow__n { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.14em; color: var(--color-accent-ink); }
.flow__step h3 { font-family: var(--font-body); font-size: var(--text-base); font-weight: 700; margin-top: var(--space-2); }
.flow__step p { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-2); }

/* tier cards */
.tier { display: grid; border: 1px solid var(--color-border); background: var(--color-surface); overflow: hidden; border-radius: var(--radius-md); }
@media (min-width: 820px) { .tier { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: stretch; } .tier--flip .tier__media { order: 2; } }
.tier__body { padding: clamp(var(--space-6), 3vw, var(--space-10)); display: flex; flex-direction: column; gap: var(--space-3); }
.tier__rank { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent-ink); }
.tier__body p { font-size: var(--text-sm); color: var(--color-text-muted); margin: 0; }
.tier__best {
  margin-top: var(--space-2); font-size: var(--text-sm); border-left: 2px solid var(--color-accent);
  padding: var(--space-2) var(--space-4); background: var(--color-surface-offset);
}
.tier__best strong { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent-ink); display: block; }
.tier__media { position: relative; }
.tier__media .frame { height: 100%; border: 0; border-top: 1px solid var(--color-border); }
@media (min-width: 820px) { .tier__media .frame { border-top: 0; border-left: 1px solid var(--color-border); } .tier--flip .tier__media .frame { border-left: 0; border-right: 1px solid var(--color-border); } }
.tier__media .frame img { aspect-ratio: 16 / 9; }
@media (min-width: 820px) { .tier__media { display: flex; align-items: center; background: #0b0f12; } .tier__media .frame { height: auto; width: 100%; } .tier__media .frame img { height: auto; aspect-ratio: auto; object-fit: contain; display: block; } }
.shot--native .frame img { aspect-ratio: auto; height: auto; object-fit: contain; display: block; }

/* split feature block */
.split { display: grid; gap: clamp(var(--space-8), 4vw, var(--space-16)); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--flip > *:first-child { order: 2; } }

/* case study card */
.case { border: 1px solid var(--color-border); background: var(--color-surface); border-radius: var(--radius-md); overflow: hidden; display: grid; }
@media (min-width: 880px) { .case { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } .case--flip .case__media { order: 2; } }
.case__body { padding: clamp(var(--space-6), 3vw, var(--space-10)); }
.case__meta { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent-ink); }
.case dl { margin-top: var(--space-5); display: grid; gap: var(--space-4); }
.case dt { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-faint); }
.case dd { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: 2px; }
.case__media .frame { height: 100%; border: 0; }
.case__media .frame img { aspect-ratio: 16 / 9; }
@media (min-width: 880px) { .case__media .frame img { height: 100%; aspect-ratio: 16 / 10; } }

/* timeline */
.timeline { display: grid; gap: 0; border-top: 1px solid var(--color-divider); }
.timeline__row { display: grid; grid-template-columns: 92px 1fr; gap: var(--space-5); padding-block: var(--space-5); border-bottom: 1px solid var(--color-divider); }
.timeline__row dt { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--color-accent-ink); }
.timeline__row dd { font-size: var(--text-sm); color: var(--color-text-muted); }
.timeline__row dd strong { color: var(--color-text); display: block; font-size: var(--text-base); }

/* CTA band */
.cta-band { background: #1c2531; color: #e8edf2; }
[data-theme='dark'] .cta-band { background: #141a22; }
.cta-band .eyebrow { color: var(--color-accent); }
.cta-band .eyebrow::before { background: var(--color-accent); }
.cta-band__inner { display: grid; gap: var(--space-6); align-items: center; padding-block: clamp(var(--space-12), 6vw, var(--space-20)); }
@media (min-width: 860px) { .cta-band__inner { grid-template-columns: minmax(0, 1.2fr) auto; } }
.cta-band h2 { font-size: var(--text-xl); font-weight: 700; }
.cta-band p { color: #a9b4c0; font-size: var(--text-sm); margin-top: var(--space-3); max-width: 56ch; }

/* form */
.form { display: grid; gap: var(--space-5); }
.field { display: grid; gap: var(--space-2); }
.field label { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-muted); }
.field input, .field select, .field textarea {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4); font-size: var(--text-sm); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--color-accent); outline: none; box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-accent) 22%, transparent); }
.field textarea { min-height: 150px; resize: vertical; }
@media (min-width: 700px) { .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); } }
.form__note { font-size: var(--text-xs); color: var(--color-text-faint); }
.form__status { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-accent-ink); min-height: 1.2em; }

.info-list { list-style: none; display: grid; gap: var(--space-5); }
.info-list dt, .info-list__k { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-faint); }
.info-list a { color: var(--color-text); text-decoration: none; border-bottom: 1px solid var(--color-accent); }
.info-list a:hover { color: var(--color-accent-ink); }

/* footer */
.footer { border-top: 1px solid var(--color-divider); background: var(--color-surface-offset); }
.footer__grid { display: grid; gap: var(--space-8); padding-block: var(--space-12); }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer img { height: 36px; width: auto; }
.footer .brand__logo--light { display: block; }
.footer .brand__logo--dark { display: none; }
[data-theme='dark'] .footer .brand__logo--light { display: none; }
[data-theme='dark'] .footer .brand__logo--dark { display: block; }
.footer h4 { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-faint); font-weight: 500; margin-bottom: var(--space-4); }
.footer ul { list-style: none; display: grid; gap: var(--space-3); }
.footer a { color: var(--color-text-muted); text-decoration: none; font-size: var(--text-sm); }
.footer a:hover { color: var(--color-accent-ink); }
.footer__note { font-size: var(--text-xs); color: var(--color-text-faint); margin-top: var(--space-4); max-width: 40ch; }
.footer__bar { border-top: 1px solid var(--color-divider); padding-block: var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); justify-content: space-between; }
.footer__bar p { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-faint); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* decorative reticle background for hero */
.hero__deco {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(var(--color-divider) 1px, transparent 1px), linear-gradient(90deg, var(--color-divider) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(circle at 78% 30%, rgba(0, 0, 0, 0.55), transparent 62%);
  -webkit-mask-image: radial-gradient(circle at 78% 30%, rgba(0, 0, 0, 0.55), transparent 62%);
}
.hero > .wrap { position: relative; z-index: 1; }

.skip-link {
  position: absolute; left: var(--space-4); top: -60px; z-index: 200;
  background: var(--color-ink); color: var(--color-text-inverse);
  padding: var(--space-3) var(--space-4); font-size: var(--text-sm); text-decoration: none; border-radius: var(--radius-md);
}
.skip-link:focus { top: var(--space-3); }

/* video embeds */
.video__frame {
  position: relative; display: block; aspect-ratio: 16 / 9; width: 100%; padding: 0;
  border: 1px solid var(--color-border); background: #0c1015; overflow: hidden; cursor: pointer;
}
.video__frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; transition: opacity var(--transition-interactive), transform var(--transition-interactive); }
.video__frame:hover img, .video__frame:focus-visible img { opacity: 1; transform: scale(1.015); }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--color-accent); color: #0c1015; padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}
.video__frame:hover .video__play { background: #00c992; color: #0c1015; }
.video__play { color: #0c1015; }
figure.video figcaption a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--color-accent); }
figure.video figcaption a:hover { color: var(--color-accent-ink); }

/* ---------- dark brand hero (home) ---------- */
.hero--brand {
  background:
    linear-gradient(90deg, rgba(8,12,16,0.92) 0%, rgba(8,12,16,0.72) 42%, rgba(8,12,16,0.45) 100%),
    #0c1015 url("assets/img/hero-banner-clean.jpg") 50% 40% / cover no-repeat;
  color: #e8edf2;
  border-bottom: 0;
}
.hero--brand .hero__deco { opacity: 0.18; background-image: none; }
.hero--brand .hero__kicker { color: var(--color-accent); }
.hero--brand .h-hero { color: #f4f7f9; }
.hero--brand .lede { color: #b7c2cd; }
.hero--brand .btn--ghost {
  border-color: rgba(232,237,242,0.35); color: #e8edf2;
}
.hero--brand .btn--ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }
.hero--brand .btn--primary {
  background: var(--color-accent); color: #0c1015;
}
.hero--brand .btn--primary:hover { background: #00c992; }
.hero--brand .frame { border-color: rgba(255,255,255,0.12); }
.hero--brand .shot figcaption { color: #8e9aa7; }
.hero__eyebrow {
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-accent);
  margin-bottom: var(--space-4);
}
.hero__slogan {
  margin-top: var(--space-5);
  font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700;
  color: var(--color-brand-orange); letter-spacing: -0.01em;
}
.hero__slogan em { font-style: italic; font-weight: 700; }

/* self-hosted video */
.video-native {
  width: 100%; border: 1px solid var(--color-border); background: #0c1015;
  aspect-ratio: 16 / 9; display: block;
}
.video-native video { width: 100%; height: 100%; display: block; background: #0c1015; }

/* barcode substring demo */
.match-demo {
  margin-top: var(--space-8);
  border: 1px solid var(--color-border); background: var(--color-surface);
  border-radius: var(--radius-md); padding: var(--space-6); overflow-x: auto;
}
.match-demo__title {
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--color-text-muted); margin-bottom: var(--space-5);
}
.match-row { display: grid; gap: var(--space-3); margin-bottom: var(--space-5); }
.match-row:last-child { margin-bottom: 0; }
.match-row__label {
  font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-faint);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.match-row__digits { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.digit {
  width: 2rem; height: 2.4rem; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: var(--text-base); font-weight: 500;
  border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  background: var(--color-surface-2); color: var(--color-text-muted);
}
.digit--win {
  background: var(--color-accent-soft); border-color: var(--color-accent);
  color: var(--color-accent-ink); font-weight: 700;
}
.digit--bad {
  background: #fde8e8; border-color: #d9534f; color: #a11;
}
[data-theme='dark'] .digit--bad { background: #3a1515; border-color: #e07070; color: #ffb4b4; }
.match-row__result {
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.1em;
  text-transform: uppercase; margin-left: var(--space-3);
}
.match-row__result--ok { color: var(--color-accent-ink); }
.match-row__result--bad { color: #c0392b; }
[data-theme='dark'] .match-row__result--bad { color: #ff8a8a; }
.match-demo__note { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-5); max-width: 62ch; }

.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.drawer__actions { display: grid; gap: var(--space-3); margin-top: var(--space-8); }

.nav a, .nav__trigger { white-space: nowrap; }

/* self-hosted video cards (opt-in; bare .video-native is unchanged) */
.video-card-grid {
  align-items: stretch;
  gap: var(--space-6);
}
@media (min-width: 700px) {
  .video-card-grid.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.video-card {
  aspect-ratio: auto;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 0;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: var(--space-4);
  padding-top: calc(var(--space-4) + 3px);
  overflow: hidden;
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.video-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-accent);
}

.video-card video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #0c1015;
  display: block;
  border-radius: 6px;
}

.video-card .video__frame {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 6px;
  background: #0c1015;
  overflow: hidden;
}
.video-card .video__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0c1015;
}

figure.shot.video-card figcaption {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-muted);
  margin-top: var(--space-4);
  letter-spacing: 0;
  line-height: 1.5;
  flex: 1;
}
figure.shot.video-card .video-card__title {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 var(--space-2);
  letter-spacing: 0;
  line-height: 1.3;
}

@media (hover: hover) {
  .video-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
}
@media (prefers-reduced-motion: reduce) {
  .video-card {
    transition: none;
  }
  .video-card:hover {
    transform: none;
  }
}

.video-card--portrait { max-width: 22rem; height: auto; justify-self: center; margin-inline: auto; }
.video-card--portrait video { aspect-ratio: 474 / 850; }

/* Norwix inks table */
#inks { scroll-margin-top: 6rem; }
.ink-sku {
  display: block;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-top: 4px;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-size: var(--text-sm);
}
table.cmp.ink-table { min-width: 720px; }
table.cmp.ink-table tbody th { width: 22%; }

@media (max-width: 699px) {
  .ink-table-wrap { border: 0; background: transparent; overflow: visible; }
  .ink-table-wrap table.cmp.ink-table,
  .ink-table-wrap table.cmp.ink-table thead,
  .ink-table-wrap table.cmp.ink-table tbody,
  .ink-table-wrap table.cmp.ink-table th,
  .ink-table-wrap table.cmp.ink-table td,
  .ink-table-wrap table.cmp.ink-table tr { display: block; width: 100%; min-width: 0; }
  .ink-table-wrap table.cmp.ink-table thead { display: none; }
  .ink-table-wrap table.cmp.ink-table tr {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    margin-bottom: var(--space-4);
  }
  .ink-table-wrap table.cmp.ink-table tbody th,
  .ink-table-wrap table.cmp.ink-table tbody td {
    border-bottom: 0;
    padding: var(--space-2) 0;
    width: 100%;
  }
  .ink-table-wrap table.cmp.ink-table tbody th { padding-bottom: var(--space-3); }
  .ink-table-wrap table.cmp.ink-table td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 2px;
  }
}

.family__single { max-width: 28rem; }

/* Norwix literature cards */
#literature { scroll-margin-top: 6rem; }
.lit-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.lit-card__thumb {
  display: block; background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-border);
  aspect-ratio: 340 / 440;
  overflow: hidden;
}
.lit-card__thumb img {
  width: 100%; height: 100%; object-fit: contain; object-position: top center;
  display: block; background: #fff;
}
.lit-card__body {
  padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-2); flex: 1;
}
.lit-card__body p { font-size: var(--text-sm); color: var(--color-text-muted); margin: 0; }
.lit-card__meta {
  font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-text-faint);
  margin-top: auto; padding-top: var(--space-3);
}
.lit-card__body .btn { margin-top: var(--space-3); align-self: flex-start; }

@media (max-width: 699px) {
  .lit-card { flex-direction: row; align-items: stretch; }
  .lit-card__thumb {
    width: 7.25rem; flex: 0 0 7.25rem; aspect-ratio: auto;
    border-bottom: 0; border-right: 1px solid var(--color-border);
  }
  .lit-card__body { padding: var(--space-4); }
}

.case__media--duo { display: grid; gap: 2px; background: var(--color-border); }
.case__media--duo .frame { height: auto; }
.case__media--duo .frame img { height: auto; aspect-ratio: 16 / 10; }
