/* ==========================================================================
   International Automation Solutions
   Site design system
   --------------------------------------------------------------------------
   Structure
     01  tokens
     02  reset and base
     03  typography
     04  layout primitives
     05  header and navigation
     06  buttons and links
     07  surfaces: cards, stats, chips, tables
     08  hero and section furniture
     09  media
     10  widgets
     11  forms
     12  footer
     13  motion
     14  responsive
     15  print
   ========================================================================== */

/* ---------------------------------------------------------------- 01 tokens */
:root {
  /* ink family: the dark canvas */
  --void:      #06080c;
  --ink:       #0b0f15;
  --panel:     #111721;
  --panel-2:   #161d29;
  --raised:    #1b2331;

  /* light bays: dense reading sections drop out of the dark */
  --paper:     #f5f4f1;
  --paper-2:   #ebe9e4;
  --paper-ink: #10151d;

  /* accent */
  --orange:    #ff8c21;   /* accent on the dark bays */
  --orange-2:  #a35a00;   /* accent on the light bays, darkened to clear 4.5:1 */
  --orange-dk: #b45f00;
  --glow:      rgba(255, 140, 33, .22);

  /* text */
  --text:      #e9edf3;
  --text-2:    #a7b0be;
  --text-3:    #7c8797;   /* clears 4.5:1 on every surface it sits on */
  --on-paper:  #171d26;
  --on-paper-2:#525c6a;

  /* lines */
  --line:      rgba(255, 255, 255, .085);
  --line-2:    rgba(255, 255, 255, .16);
  --line-pap:  rgba(16, 21, 29, .12);

  /* type */
  --display: 'Archivo', 'Bahnschrift', 'DIN Alternate', 'Segoe UI', system-ui, sans-serif;
  --body:    'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono:    'JetBrains Mono', 'Cascadia Mono', Consolas, ui-monospace, monospace;

  /* geometry */
  --r:    14px;
  --r-sm: 9px;
  --r-lg: 22px;
  --gut:  clamp(20px, 4vw, 48px);
  --maxw: 1240px;

  /* rhythm */
  --sec:  clamp(64px, 9vw, 128px);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ------------------------------------------------------- 02 reset and base */
*, *::before, *::after { box-sizing: border-box; }

/* no anchor ever falls back to browser blue; specific link styles override */
a { color: inherit; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.66;
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

::selection { background: var(--orange); color: #14100a; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: absolute; left: 12px; top: -100px; z-index: 200;
  background: var(--orange); color: #14100a;
  padding: 12px 20px; border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-family: var(--display); font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none; font-size: 13px;
  transition: top .2s var(--ease);
}
.skip:focus { top: 0; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------ 03 typography */
h1, h2, h3, h4, h5 {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 88%;
  line-height: 1.03;
  letter-spacing: -.012em;
  margin: 0;
  text-wrap: balance;
}

.d1 { font-size: clamp(44px, 7.4vw, 92px);  line-height: .97; letter-spacing: -.026em; font-stretch: 84%; }
.d2 { font-size: clamp(34px, 5.1vw, 62px);  line-height: 1.0;  letter-spacing: -.021em; font-stretch: 86%; }
.d3 { font-size: clamp(26px, 3.3vw, 40px);  line-height: 1.06; letter-spacing: -.016em; }
.d4 { font-size: clamp(20px, 2.1vw, 26px);  line-height: 1.16; letter-spacing: -.01em; }

.eyebrow {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 96%;
  font-size: 11.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 26px; height: 2px;
  background: var(--orange);
  flex: none;
}
.eyebrow.plain::before { display: none; }
.eyebrow.muted { color: var(--text-3); }
.eyebrow.muted::before { background: var(--text-3); }

.lede {
  font-size: clamp(17px, 1.65vw, 21px);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 62ch;
  margin: 0;
  text-wrap: pretty;
}

p { margin: 0 0 1.05em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.muted  { color: var(--text-2); }
.dim    { color: var(--text-3); }
.hot    { color: var(--orange); }
.mono   { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.max60  { max-width: 60ch; }
.max68  { max-width: 68ch; }
.max74  { max-width: 74ch; }

.fine {
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--text-3);
  max-width: 84ch;
}

.diamond { color: var(--orange); font-size: .78em; vertical-align: .1em; padding: 0 .3em; }

/* ---------------------------------------------------- 04 layout primitives */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.wrap.narrow { max-width: 900px; }
.wrap.wide   { max-width: 1420px; }

.section { padding-block: var(--sec); position: relative; }
.section.tight { padding-block: clamp(44px, 6vw, 76px); }

.bay-ink   { background: var(--ink); }
.bay-panel { background: var(--panel); }
.bay-paper { background: var(--paper); color: var(--on-paper); }

.bay-paper h1, .bay-paper h2, .bay-paper h3, .bay-paper h4 { color: var(--paper-ink); }
.bay-paper .lede    { color: var(--on-paper-2); }
.bay-paper .muted   { color: var(--on-paper-2); }
.bay-paper .dim     { color: #737d8b; }
.bay-paper .fine    { color: #5a6472; }
.bay-paper .eyebrow { color: var(--orange-2); }
.bay-paper .eyebrow::before { background: var(--orange-2); }
.bay-paper .hot     { color: var(--orange-2); }

.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.split.lean { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.split.lean-r { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.split.center { align-items: center; }

.stack   { display: flex; flex-direction: column; }
.row     { display: flex; flex-wrap: wrap; align-items: center; }
.row-end { justify-content: flex-end; }
.gap8  { gap: 8px; }  .gap12 { gap: 12px; } .gap16 { gap: 16px; }
.gap20 { gap: 20px; } .gap28 { gap: 28px; }
/* spacing utilities live at the end of the file, see section 12b */

/* hazard stripe rule, the one motif carried over from the printed sheets */
.stripe {
  height: 7px;
  width: 100%;
  border-radius: 2px;
  background: repeating-linear-gradient(
    -45deg, var(--orange) 0 6px, #1c232e 6px 12px);
}
.stripe.sm { height: 5px; }
.bay-paper .stripe { background: repeating-linear-gradient(
    -45deg, var(--orange-2) 0 6px, #ded9d1 6px 12px); }

.hair { height: 1px; background: var(--line); border: 0; margin: 0; }
.bay-paper .hair { background: var(--line-pap); }

/* faint technical grid, used behind hero and feature bays */
.gridfield { position: relative; isolation: isolate; overflow: hidden; }
.gridfield::before {
  content: '';
  position: absolute; inset: -1px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.032) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
  z-index: -1;
  pointer-events: none;
}
.gridfield.soft::before {
  mask-image: radial-gradient(90% 70% at 50% 50%, #000 10%, transparent 75%);
}

/* --------------------------------------------------- 05 header, navigation */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6, 8, 12, .72);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.hdr.stuck {
  background: rgba(6, 8, 12, .93);
  border-bottom-color: var(--line);
}
.hdr-in {
  display: flex; align-items: center; gap: 22px;
  height: 84px;
  transition: height .3s var(--ease);
}
.hdr.stuck .hdr-in { height: 70px; }

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: none; }
.brand img { height: 46px; width: auto; transition: height .3s var(--ease); }
.hdr.stuck .brand img { height: 40px; }
.brand-txt {
  font-family: var(--display); font-weight: 700; font-stretch: 92%;
  font-size: 13.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text); line-height: 1.3; max-width: 196px;
  border-left: 1px solid var(--line-2); padding-left: 14px;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--display); font-weight: 600; font-stretch: 94%;
  font-size: 13.5px; letter-spacing: .045em;
  color: var(--text-2); text-decoration: none;
  padding: 9px 13px; border-radius: var(--r-sm);
  position: relative; white-space: nowrap;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav a[aria-current='page'] { color: var(--orange); }
.nav a[aria-current='page']::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 2px;
  height: 2px; background: var(--orange); border-radius: 2px;
}

.hdr .btn { margin-left: 10px; }

.burger {
  display: none; margin-left: auto;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1px solid var(--line-2);
  border-radius: var(--r-sm); cursor: pointer;
  align-items: center; justify-content: center;
}
.burger span {
  display: block; width: 19px; height: 2px; background: var(--text);
  position: relative; transition: background .2s var(--ease);
}
.burger span::before, .burger span::after {
  content: ''; position: absolute; left: 0; width: 19px; height: 2px;
  background: var(--text); transition: transform .26s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.burger[aria-expanded='true'] span { background: transparent; }
.burger[aria-expanded='true'] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded='true'] span::after  { transform: translateY(-6px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 99;
  background: var(--void);
  padding: 92px var(--gut) 40px;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s;
  overflow-y: auto;
}
.drawer.open { opacity: 1; visibility: visible; transform: none; }
.drawer a {
  font-family: var(--display); font-weight: 700; font-stretch: 88%;
  font-size: 30px; letter-spacing: -.01em;
  color: var(--text); text-decoration: none;
  padding: 15px 0; border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 14px;
}
.drawer a[aria-current='page'] { color: var(--orange); }
.drawer a .n {
  font-family: var(--mono); font-size: 12px; font-weight: 400;
  color: var(--text-3); letter-spacing: 0;
}
.drawer .btn { margin-top: 28px; }
.drawer-foot { margin-top: auto; padding-top: 32px; }

/* --------------------------------------------------- 06 buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-stretch: 94%;
  font-size: 14px; letter-spacing: .05em; text-transform: uppercase;
  padding: 14px 26px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease),
              border-color .18s var(--ease), color .18s var(--ease),
              box-shadow .18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; }

.btn-primary {
  background: var(--orange); color: #16110a;
  box-shadow: 0 0 0 0 var(--glow);
}
.btn-primary:hover { background: #ffa246; box-shadow: 0 6px 30px var(--glow); }

.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); background: rgba(255,140,33,.06); }

.btn-solid { background: var(--raised); color: var(--text); border-color: var(--line); }
.btn-solid:hover { background: #222c3d; border-color: var(--line-2); }

.bay-paper .btn-ghost { color: var(--paper-ink); border-color: rgba(16,21,29,.25); }
.bay-paper .btn-ghost:hover { border-color: var(--orange-2); color: var(--orange-2); background: rgba(224,123,0,.07); }
/* primary buttons keep the dark-text-on-bright-orange treatment on light bays
   too; the old white-on-brown variant read off-brand and failed contrast on hover */

.btn-sm { padding: 10px 18px; font-size: 12.5px; }
.btn-lg { padding: 17px 32px; font-size: 15px; }
.btn-block { width: 100%; }

.tlink {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 700; font-stretch: 94%;
  font-size: 13.5px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--orange); text-decoration: none;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: gap .18s var(--ease), border-color .18s var(--ease);
}
.tlink:hover { gap: 14px; border-bottom-color: var(--orange); }
.tlink .arw { transition: transform .18s var(--ease); }
.tlink:hover .arw { transform: translateX(2px); }
.bay-paper .tlink { color: var(--orange-2); }
.bay-paper .tlink:hover { border-bottom-color: var(--orange-2); }

/* ------------------------------------------------------------- 07 surfaces */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 24px 28px;
  position: relative;
  transition: border-color .22s var(--ease), background .22s var(--ease),
              transform .22s var(--ease);
}
.card h3, .card h2 { font-size: 19px; margin-bottom: 10px; font-stretch: 90%; }
.card p  { font-size: 15px; line-height: 1.62; color: var(--text-2); margin: 0; }
.card p + p { margin-top: .8em; }

/* a card that is itself a link must not inherit the default link colour */
a.card { display: block; color: inherit; text-decoration: none; }
a.card h3, a.card h2 { transition: color .18s var(--ease); }
a.card:hover h3 { color: var(--orange); }
.bay-paper a.card:hover h3 { color: var(--orange-2); }

.card.lift:hover { transform: translateY(-3px); border-color: var(--line-2); background: var(--panel-2); }
.card.accent { border-color: rgba(255,140,33,.34); background: linear-gradient(180deg, rgba(255,140,33,.075), rgba(255,140,33,.015)); }

.bay-paper .card { background: #fff; border-color: var(--line-pap); }
.bay-paper .card p { color: var(--on-paper-2); }
.bay-paper .card.lift:hover { border-color: rgba(16,21,29,.24); background: #fff; }
.bay-paper .card.accent { background: #fdf5ea; border-color: rgba(224,123,0,.32); }

/* closing note inside a card, separated from the list above it */
.card-foot {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--line);
}
.bay-paper .card-foot { border-top-color: var(--line-pap); }

.icon {
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(255,140,33,.11);
  border: 1px solid rgba(255,140,33,.24);
  margin-bottom: 18px;
}
.icon svg { stroke: var(--orange); }
.bay-paper .icon { background: rgba(224,123,0,.09); border-color: rgba(224,123,0,.24); }
.bay-paper .icon svg { stroke: var(--orange-2); }

/* corner bracket framing, used on the signature panels */
.brackets { position: relative; }
.brackets::before, .brackets::after {
  content: ''; position: absolute; width: 16px; height: 16px;
  border: 2px solid var(--orange); pointer-events: none;
}
.brackets::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-radius: var(--r-sm) 0 0 0; }
.brackets::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-radius: 0 0 var(--r-sm) 0; }

/* stat blocks */
.stats { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stats.s4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats.s3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { background: var(--ink); padding: 24px 22px 26px; }
.stat .fig {
  font-family: var(--display); font-weight: 700; font-stretch: 86%;
  font-size: clamp(30px, 3.4vw, 42px); line-height: 1;
  color: var(--orange); letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.stat .fig .u { font-size: .46em; color: var(--text); letter-spacing: .02em; margin-left: 4px; }
.stat .lab {
  margin-top: 11px; font-size: 13.5px; line-height: 1.45; color: var(--text-2);
}
/* headline figure inside a project card */
.card .proj-fig {
  font-family: var(--display); font-weight: 700; font-stretch: 86%;
  font-size: 34px; line-height: 1; color: var(--orange);
  letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-bottom: 10px;
}
.card .proj-fig .u { font-size: .46em; color: var(--text); letter-spacing: .02em; margin-left: 4px; }

.bay-paper .stats { background: var(--line-pap); border-color: var(--line-pap); }
.bay-paper .stat { background: #fff; }
.bay-paper .stat .fig { color: var(--orange-2); }
.bay-paper .stat .fig .u { color: var(--paper-ink); }
.bay-paper .stat .lab { color: var(--on-paper-2); }

/* pills */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  font-family: var(--display); font-weight: 600; font-stretch: 96%;
  font-size: 12.5px; letter-spacing: .045em;
  padding: 8px 15px; border-radius: 999px;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line);
  color: var(--text-2);
  white-space: nowrap;
}
.chip.on { background: rgba(255,140,33,.12); border-color: rgba(255,140,33,.34); color: var(--orange); }
.bay-paper .chip { background: rgba(16,21,29,.045); border-color: var(--line-pap); color: #4d5764; }
.bay-paper .chip.on { background: rgba(224,123,0,.1); border-color: rgba(224,123,0,.3); color: var(--orange-2); }

/* spec tables */
.spec { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec caption { text-align: left; }
.spec th {
  font-family: var(--display); font-weight: 700; font-stretch: 96%;
  font-size: 11px; letter-spacing: .17em; text-transform: uppercase;
  color: var(--text-3); text-align: left;
  padding: 0 16px 11px 0;
  border-bottom: 2px solid var(--line-2);
}
.spec td {
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--text-2);
}
.spec td:first-child { color: var(--text); font-weight: 500; }
.spec tr:last-child td { border-bottom: 0; }
.spec .num { text-align: right; padding-right: 0; }
.spec th.num { text-align: right; padding-right: 0; }
.bay-paper .spec th { color: #6b7583; border-bottom-color: rgba(16,21,29,.4); }
.bay-paper .spec td { color: var(--on-paper-2); border-bottom-color: var(--line-pap); }
.bay-paper .spec td:first-child { color: var(--paper-ink); }

.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* fact lists */
.facts { list-style: none; margin: 0; padding: 0; }
.facts li {
  position: relative; padding-left: 21px; margin-bottom: 13px;
  font-size: 15.5px; line-height: 1.6; color: var(--text-2);
}
.facts li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--orange);
}
.facts li b, .facts li strong { color: var(--text); font-weight: 600; }
.facts li:last-child { margin-bottom: 0; }
.bay-paper .facts li { color: var(--on-paper-2); }
.bay-paper .facts li b { color: var(--paper-ink); }
.bay-paper .facts li::before { background: var(--orange-2); }

.facts.two { columns: 2; column-gap: 44px; }
.facts.two li { break-inside: avoid; }

/* numbered list with a mono counter */
.numlist { list-style: none; margin: 0; padding: 0; counter-reset: nl; }
.numlist li {
  counter-increment: nl;
  position: relative; padding-left: 44px; margin-bottom: 20px;
  font-size: 15.5px; line-height: 1.6; color: var(--text-2);
}
.numlist li::before {
  content: counter(nl, decimal-leading-zero);
  position: absolute; left: 0; top: 1px;
  font-family: var(--mono); font-size: 12px; color: var(--orange);
  border: 1px solid rgba(255,140,33,.3); border-radius: 6px;
  padding: 3px 7px; line-height: 1;
}
.numlist li b { color: var(--text); font-weight: 600; }
.numlist li:last-child { margin-bottom: 0; }
.bay-paper .numlist li { color: var(--on-paper-2); }
.bay-paper .numlist li b { color: var(--paper-ink); }
.bay-paper .numlist li::before { color: var(--orange-2); border-color: rgba(224,123,0,.3); }

/* long form legal and policy copy */
.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(22px, 2.4vw, 30px); margin: 44px 0 14px; }
.prose h3 { font-size: 19px; margin: 30px 0 10px; }
.prose p, .prose li { color: var(--text-2); font-size: 16px; line-height: 1.72; }
.prose ul { padding-left: 20px; margin: 0 0 1.1em; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--orange); }
.prose > h2:first-child { margin-top: 0; }

/* in-copy links outside .prose share the brand treatment, never browser blue */
p a:not(.btn), li a:not(.btn), figcaption a, .note a, .card a:not(.btn), .gate a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 140, 33, .5);
}
p a:not(.btn):hover, li a:not(.btn):hover { text-decoration-color: currentColor; }
.bay-paper p a:not(.btn), .bay-paper li a:not(.btn) { color: var(--orange-2); }

/* numbered signal chain */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.step { background: var(--panel); padding: 24px 22px 26px; position: relative; }
@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps .step:last-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps .step:last-child { grid-column: auto; }
}
.step .n {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em;
  color: var(--orange); margin-bottom: 14px;
}
.step h3 { font-size: 18px; font-stretch: 92%; margin-bottom: 9px; }
.step p { font-size: 14px; line-height: 1.58; color: var(--text-2); margin: 0; }
.bay-paper .steps { background: var(--line-pap); border-color: var(--line-pap); }
.bay-paper .step { background: #fff; }
.bay-paper .step p { color: var(--on-paper-2); }
.bay-paper .step .n { color: var(--orange-2); }

/* callout */
.note {
  border-left: 3px solid var(--orange);
  background: rgba(255,140,33,.055);
  padding: 18px 22px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 15px; line-height: 1.6; color: var(--text-2);
}
.note b { color: var(--text); }
.note.bad {
  border-left-color: #ff5a4d;
  background: rgba(255, 90, 77, .07);
  color: #ffb3ab;
}
.bay-paper .note { background: rgba(224,123,0,.07); border-left-color: var(--orange-2); color: var(--on-paper-2); }
.bay-paper .note b { color: var(--paper-ink); }

/* the standing offer band, carried over from the printed sheets */
.offer {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 26px;
}
.offer .lab {
  font-family: var(--display); font-weight: 700; font-stretch: 96%;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--orange); flex: none;
}
.offer .txt { font-size: 17px; line-height: 1.5; color: var(--text); flex: 1 1 380px; }
.bay-paper .offer { background: #fff; border-color: var(--line-pap); }
.bay-paper .offer .lab { color: var(--orange-2); }
.bay-paper .offer .txt { color: var(--paper-ink); }

/* ------------------------------------------------- 08 hero and section head */
.hero {
  position: relative;
  padding-top: clamp(56px, 8vw, 92px);
  padding-bottom: clamp(56px, 7vw, 88px);
  background: var(--void);
  overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 55% at 78% 8%, rgba(255,140,33,.10), transparent 62%);
}
.hero > * { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(32px, 4.5vw, 68px);
  align-items: center;
}

.sechead { margin-bottom: clamp(32px, 4vw, 52px); max-width: 74ch; }
.sechead.center { margin-inline: auto; text-align: center; }
.sechead.center .eyebrow { justify-content: center; }
.sechead p { margin-top: 18px; }

.headrow {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
  margin-bottom: clamp(28px, 3.5vw, 44px);
}
.headrow .sechead { margin-bottom: 0; }

/* the closing call to action band */
.cta {
  background:
    radial-gradient(90% 130% at 12% 0%, rgba(255,140,33,.14), transparent 58%),
    var(--ink);
  border-top: 1px solid var(--line);
}

/* ---------------------------------------------------------------- 09 media */
.frame {
  border-radius: var(--r);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  position: relative;
}
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame.p34  { aspect-ratio: 3 / 4; }
.frame.p169 { aspect-ratio: 16 / 9; }
.frame.p11  { aspect-ratio: 1 / 1; }
.frame.p43  { aspect-ratio: 4 / 3; }

.cap {
  font-size: 13px; line-height: 1.5; color: var(--text-3);
  margin-top: 11px;
}
.cap b { color: var(--text-2); font-weight: 600; }
.bay-paper .cap { color: #6b7583; }
.bay-paper .cap b { color: var(--paper-ink); }

.shotlab {
  font-family: var(--display); font-weight: 700; font-stretch: 94%;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--orange); margin-top: 14px; display: flex; align-items: center; gap: 10px;
}
.shotlab::before { content: ''; width: 16px; height: 2px; background: var(--orange); flex: none; }
.bay-paper .shotlab { color: var(--orange-2); }
.bay-paper .shotlab::before { background: var(--orange-2); }

.gal { display: grid; gap: 18px; }
.gal figure, .gal-cell { margin: 0; }
.gal figcaption, .gal-cell figcaption {
  font-size: 13px; line-height: 1.45; color: var(--text-3); margin-top: 10px;
}
.bay-paper .gal figcaption, .bay-paper .gal-cell figcaption { color: #6b7583; }

/* thin credential bar between bays */
.credbar {
  background: var(--ink);
  border-block: 1px solid var(--line);
}
.credbar-in {
  display: grid; grid-template-columns: repeat(4, auto);
  justify-content: space-between; align-items: center;
  gap: 10px clamp(20px, 3.4vw, 46px);
  padding-block: 17px;
  font-family: var(--display); font-weight: 500; font-stretch: 96%;
  font-size: 12px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--text-3);
}
.credbar-in b { color: var(--text-2); font-weight: 700; }
.credbar-in span { display: inline-flex; gap: 7px; align-items: baseline; white-space: nowrap; }

/* five step flow, used as a compact version of the phase model */
.flow {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
}
.flow li { background: var(--ink); padding: 24px 20px 26px; }
.flow .fn {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,140,33,.12); border: 1px solid rgba(255,140,33,.3);
  color: var(--orange);
  font-family: var(--display); font-weight: 700; font-size: 15px;
  margin-bottom: 16px;
}
.flow h3 { font-size: 18px; font-stretch: 90%; }
.flow .fs {
  font-family: var(--mono); font-size: 11.5px; color: var(--orange);
  margin: 7px 0 11px; line-height: 1.4;
}
.flow p { font-size: 13.5px; line-height: 1.55; color: var(--text-2); margin: 0; }
.bay-paper .flow { background: var(--line-pap); border-color: var(--line-pap); }
.bay-paper .flow li { background: #fff; }
.bay-paper .flow p { color: var(--on-paper-2); }
.bay-paper .flow .fn { background: rgba(224,123,0,.1); border-color: rgba(224,123,0,.3); color: var(--orange-2); }
.bay-paper .flow .fs { color: var(--orange-2); }

/* --------------------------------------------------------------- 10 widgets */

/* ---- shared widget shell ---- */
.wgt {
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.wgt-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.022);
}
.wgt-tag {
  font-family: var(--display); font-weight: 700; font-stretch: 96%;
  font-size: 10.5px; letter-spacing: .21em; text-transform: uppercase;
  color: var(--text-3);
  display: flex; align-items: center; gap: 9px;
}
.wgt-tag .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 0 0 var(--glow);
  animation: pulse 2.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,140,33,.5); }
  70%  { box-shadow: 0 0 0 7px rgba(255,140,33,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,140,33,0); }
}
.wgt-body { padding: clamp(18px, 2.4vw, 28px); }

/* segmented control */
.seg { display: flex; gap: 4px; padding: 4px; background: rgba(255,255,255,.045); border-radius: 999px; flex-wrap: wrap; }
.seg button {
  font-family: var(--display); font-weight: 600; font-stretch: 96%;
  font-size: 12.5px; letter-spacing: .05em;
  padding: 8px 15px; border-radius: 999px;
  background: transparent; border: 0; color: var(--text-2);
  cursor: pointer; white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.seg button:hover { color: var(--text); }
.seg button[aria-selected='true'] { background: var(--orange); color: #16110a; }
.bay-paper .seg { background: rgba(16,21,29,.06); }
.bay-paper .seg button { color: #57616f; }
.bay-paper .seg button[aria-selected='true'] { background: var(--orange-2); color: #fff; }

/* ---- inspection viewer ---- */
/* The bench frame is a full bleed 3:4 portrait and the camera frame is a wide
   17:9, so the columns are proportioned to land close to level and the note
   under the bench frame absorbs whatever is left over. */
.viewer { --hud: rgba(255,140,33,.9); }
.viewer-panes {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.pane { position: relative; }
.pane-h {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 9px; min-height: 20px;
}
.pane-t {
  font-family: var(--display); font-weight: 700; font-stretch: 96%;
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-3);
}
.pane-t.on { color: var(--orange); }
.pane-shot {
  position: relative; overflow: hidden;
  border-radius: var(--r-sm);
  background: #0a0c10;
  border: 1px solid var(--line);
}
.pane-shot img { width: 100%; display: block; }
.pane-shot.eye { aspect-ratio: 3 / 4; }
.pane-shot.cam { aspect-ratio: 1540 / 815; }
.pane-shot.cam img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pane-shot.eye img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* the AI layer sits exactly on the raw frame and cross fades */
.ailayer { opacity: 0; transition: opacity .34s var(--ease); }
.viewer.ai-on .ailayer { opacity: 1; }

/* HUD chrome over the camera pane */
.hud { position: absolute; inset: 0; pointer-events: none; }
.hud .corner {
  position: absolute; width: 22px; height: 22px;
  border: 2px solid var(--hud); opacity: .8;
}
.hud .corner.tl { top: 8px;    left: 8px;    border-right: 0; border-bottom: 0; }
.hud .corner.tr { top: 8px;    right: 8px;   border-left: 0;  border-bottom: 0; }
.hud .corner.bl { bottom: 8px; left: 8px;    border-right: 0; border-top: 0; }
.hud .corner.br { bottom: 8px; right: 8px;   border-left: 0;  border-top: 0; }
.hud .rdout {
  position: absolute; left: 12px; bottom: 12px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em;
  color: rgba(255,255,255,.72);
  background: rgba(6,8,12,.62);
  padding: 4px 9px; border-radius: 5px;
  backdrop-filter: blur(3px);
}
.hud .verdict {
  position: absolute; right: 12px; top: 12px;
  font-family: var(--display); font-weight: 700; font-stretch: 96%;
  font-size: 11px; letter-spacing: .17em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 5px;
  background: rgba(6,8,12,.72);
  border: 1px solid var(--line-2);
  color: var(--text-3);
  backdrop-filter: blur(3px);
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.viewer.ai-on .hud .verdict {
  color: #ff5a4d; border-color: rgba(255,90,77,.5); background: rgba(52,10,8,.72);
}

/* scan sweep, plays when the AI layer is switched on */
.scan {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  opacity: 0;
}
.scan span {
  position: absolute; left: 0; right: 0; height: 42%;
  background: linear-gradient(to bottom, transparent, rgba(255,140,33,.16) 62%, rgba(255,140,33,.5));
  border-bottom: 1px solid rgba(255,190,120,.85);
  transform: translateY(-100%);
}
.viewer.scanning .scan { opacity: 1; }
.viewer.scanning .scan span { animation: sweep .82s var(--ease) forwards; }
@keyframes sweep {
  0%   { transform: translateY(-105%); }
  100% { transform: translateY(240%); }
}

.viewer-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-top: 16px;
}
.toggle {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--display); font-weight: 600; font-stretch: 96%;
  font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-2); cursor: pointer;
  background: transparent; border: 0; padding: 0;
}
.toggle .sw {
  width: 46px; height: 26px; border-radius: 999px; flex: none;
  background: rgba(255,255,255,.11); border: 1px solid var(--line-2);
  position: relative; transition: background .22s var(--ease), border-color .22s var(--ease);
}
.toggle .sw::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: var(--text-2);
  transition: transform .22s var(--ease), background .22s var(--ease);
}
.toggle[aria-pressed='true'] { color: var(--orange); }
.toggle[aria-pressed='true'] .sw { background: rgba(255,140,33,.3); border-color: var(--orange); }
.toggle[aria-pressed='true'] .sw::after { transform: translateX(20px); background: var(--orange); }

.readout {
  display: flex; gap: 22px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; color: var(--text-3);
}
.readout b { color: var(--text); font-weight: 500; }

/* verdict rail under the camera pane */
.rail {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  overflow: hidden; margin-top: 10px;
  transition: opacity .3s var(--ease);
}
.rail.idle { opacity: .38; }
.rail-cell { background: var(--panel); padding: 12px 14px 13px; min-width: 0; }
.rail-cell .k {
  display: block;
  font-family: var(--display); font-weight: 600; font-stretch: 96%;
  font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3);
}
.rail-cell .v {
  display: block; margin-top: 6px;
  font-size: 14px; color: var(--text); letter-spacing: .01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---- calculator and explorer controls ---- */
.ctl { margin-bottom: 20px; }
.ctl:last-child { margin-bottom: 0; }
.ctl label {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-family: var(--display); font-weight: 600; font-stretch: 96%;
  font-size: 12px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--text-2); margin-bottom: 9px;
}
.ctl .val {
  font-family: var(--mono); font-size: 14px; letter-spacing: 0;
  color: var(--orange); text-transform: none; font-variant-numeric: tabular-nums;
}

input[type='range'] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; border-radius: 4px;
  background: rgba(255,255,255,.12);
  margin: 10px 0 0;
  cursor: pointer;
}
input[type='range']:focus-visible {
  outline: 2px solid var(--orange); outline-offset: 6px; border-radius: 4px;
}
input[type='range']:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 1px var(--orange), 0 0 0 5px rgba(255,140,33,.45), 0 2px 10px rgba(0,0,0,.5);
}
input[type='range']:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 1px var(--orange), 0 0 0 5px rgba(255,140,33,.45);
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--orange); border: 3px solid var(--ink);
  box-shadow: 0 0 0 1px var(--orange), 0 2px 10px rgba(0,0,0,.5);
  cursor: grab;
}
input[type='range']::-webkit-slider-thumb:active { cursor: grabbing; }
input[type='range']::-moz-range-thumb {
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--orange); border: 3px solid var(--ink);
  box-shadow: 0 0 0 1px var(--orange);
  cursor: grab;
}
input[type='range']::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); }

/* touch devices get thumbs a finger can actually hit */
@media (pointer: coarse) {
  input[type='range'] { height: 32px; }
  input[type='range']::-webkit-slider-thumb { width: 26px; height: 26px; }
  input[type='range']::-moz-range-thumb { width: 22px; height: 22px; }
}

.ticks {
  display: flex; justify-content: space-between; gap: 10px;
  font-family: var(--mono); font-size: 10.5px; color: var(--text-3);
  margin-top: 7px;
}
/* three span rows: the middle tick is a marker, centered between the ends */
.ticks span:nth-child(2):not(:last-child) {
  flex: 1; text-align: center; padding-inline: 8px;
}

.outgrid { display: grid; gap: 1px; background: var(--line); border-radius: var(--r-sm); overflow: hidden; }
.outgrid.o2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.outgrid.o3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.out { background: var(--panel); padding: 18px 18px 20px; }
.out .k {
  display: block;
  font-family: var(--display); font-weight: 600; font-stretch: 96%;
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3);
}
.out .v {
  display: block;
  font-family: var(--display); font-weight: 700; font-stretch: 88%;
  font-size: clamp(24px, 2.7vw, 34px); line-height: 1.05; margin-top: 9px;
  color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.out .v.hot { color: var(--orange); }
.out .s { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 10px; line-height: 1.5; }

/* value bar chart used by the cost widget */
.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 130px minmax(0,1fr) auto; gap: 14px; align-items: center; }
.bar-row .bl { font-size: 13px; color: var(--text-2); }
.bar-track { display: block; height: 9px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 999px; background: var(--orange); width: 0; transition: width .5s var(--ease); }
.bar-fill.alt { background: #55637a; }
.bar-row .bv { font-family: var(--mono); font-size: 13px; color: var(--text); font-variant-numeric: tabular-nums; }

/* speed explorer plot */
.plotbox {
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--panel); padding: 16px 18px 14px; margin-top: 22px;
}
.plotbox svg { width: 100%; height: 130px; overflow: visible; }
.plot-key {
  display: flex; gap: 20px; flex-wrap: wrap; margin-top: 12px;
  font-family: var(--mono); font-size: 11px; color: var(--text-3);
}
.plot-key i { display: inline-block; width: 14px; height: 2px; margin-right: 7px; vertical-align: middle; }
.plot-key .a { background: var(--orange); }
.plot-key .b { background: rgba(255,255,255,.34); }
.plot-ax { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; color: var(--text-3); margin-top: 6px; }

.flag {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(255,140,33,.08); border: 1px solid rgba(255,140,33,.26);
  border-radius: var(--r-sm); padding: 13px 16px; margin-top: 18px;
  font-size: 13.5px; line-height: 1.55; color: var(--text-2);
}
.flag b { color: var(--orange); font-weight: 600; }

/* ---- phase timeline ---- */
.phases { position: relative; display: grid; gap: 16px; }
.phase {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px;
  align-items: start; position: relative;
}
.phase-n {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-stretch: 90%; font-size: 22px;
  background: var(--panel-2); color: var(--text-2);
  border: 1px solid var(--line);
  position: relative; z-index: 1;
  transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.phase.open .phase-n { background: var(--orange); color: #16110a; border-color: var(--orange); }
.phase::before {
  content: ''; position: absolute; left: 27px; top: 56px; bottom: -16px;
  width: 1px; background: var(--line);
}
.phase:last-child::before { display: none; }

.phase-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
  transition: border-color .22s var(--ease);
}
.phase.open .phase-card { border-color: rgba(255,140,33,.3); }
.phase-btn {
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  padding: 20px 22px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  color: inherit; font: inherit;
}
.phase-btn .pt {
  font-family: var(--display); font-weight: 700; font-stretch: 90%;
  font-size: 20px; color: var(--text); letter-spacing: -.008em;
}
.phase-btn .pm {
  font-family: var(--mono); font-size: 12.5px; color: var(--orange);
  margin-left: auto; text-align: right; letter-spacing: 0;
}
.phase-btn .cv {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  border: 1px solid var(--line-2); display: grid; place-items: center;
  transition: transform .24s var(--ease), border-color .24s var(--ease);
}
.phase.open .phase-btn .cv { transform: rotate(45deg); border-color: var(--orange); }
.phase-body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease);
}
.phase.open .phase-body { grid-template-rows: 1fr; }
.phase-body > div { overflow: hidden; min-height: 0; }
.phase-in { padding: 0 22px 24px; }
.phase-q {
  font-size: 16px; line-height: 1.55; color: var(--text);
  padding: 0 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 20px;
}
.pcols { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; }
.pcols h3 {
  font-family: var(--display); font-weight: 700; font-stretch: 96%;
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 12px;
}
.pcols h3.gray { color: var(--text-3); }
.pcols ul { list-style: none; margin: 0; padding: 0; }
.pcols li {
  position: relative; padding-left: 18px; margin-bottom: 9px;
  font-size: 14.5px; line-height: 1.5; color: var(--text-2);
}
.pcols li::before {
  content: ''; position: absolute; left: 0; top: .58em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--orange);
}
.pcols li.g::before { background: var(--text-3); }
.gate {
  margin-top: 20px; padding: 15px 18px;
  background: rgba(255,255,255,.03); border-radius: var(--r-sm);
  border-left: 3px solid var(--orange);
  font-size: 14px; line-height: 1.55; color: var(--text-2);
}
.gate .glab {
  font-family: var(--display); font-weight: 700; font-stretch: 96%;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--orange); margin-right: 10px;
}

/* ---- fit check ---- */
.quiz-q { display: none; }
.quiz-q.on { display: block; animation: fadein .3s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.quiz-prog {
  height: 3px; background: rgba(255,255,255,.1); border-radius: 3px; overflow: hidden; margin-bottom: 24px;
}
.quiz-prog i { display: block; height: 100%; background: var(--orange); width: 0; transition: width .35s var(--ease); }
.opts { display: grid; gap: 10px; margin-top: 20px; }
.opt {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 18px; border-radius: var(--r-sm);
  background: var(--panel); border: 1px solid var(--line);
  color: var(--text); font: inherit; font-size: 15.5px; text-align: left;
  cursor: pointer; width: 100%;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.opt:hover { border-color: var(--orange); background: var(--panel-2); }
.opt .kx {
  width: 26px; height: 26px; flex: none; border-radius: 6px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line-2);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--text-3);
}
.opt:hover .kx { border-color: var(--orange); color: var(--orange); }

.verdict-box { display: none; }
.verdict-box.on { display: block; animation: fadein .35s var(--ease); }

/* ---- animated counter ---- */
.count { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- 11 forms */
.field { margin-bottom: 18px; }
.field label {
  display: block; margin-bottom: 8px;
  font-family: var(--display); font-weight: 600; font-stretch: 96%;
  font-size: 12px; letter-spacing: .13em; text-transform: uppercase; color: var(--text-2);
}
.field .req { color: var(--orange); }
.field .hint { font-size: 12.5px; color: var(--text-3); margin-top: 7px; line-height: 1.45; }

input[type='text'], input[type='email'], input[type='tel'],
input[type='number'], select, textarea {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--body); font-size: 16px;
  padding: 13px 15px;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:focus, select:focus, textarea:focus {
  border-color: var(--orange); background: var(--panel-2); outline: none;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--orange); outline-offset: 3px;
}
textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a7b0be' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}
.field.bad input, .field.bad select, .field.bad textarea { border-color: #ff5a4d; }
.err { display: none; font-size: 12.5px; color: #ff8175; margin-top: 6px; }
.field.bad .err { display: block; }

/* the checkbox row is body copy, not a field label, so it opts out of the
   uppercase label treatment above */
.field label.checkline, .checkline {
  display: flex; gap: 12px; align-items: flex-start;
  font-family: var(--body); font-size: 14.5px; font-weight: 400;
  letter-spacing: normal; text-transform: none;
  color: var(--text-2); line-height: 1.5; margin-bottom: 0;
}
.checkline input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--orange); }

.formnote {
  font-size: 13px; color: var(--text-3); line-height: 1.55;
}

/* ------------------------------------------------------------- 12 footer */
.ftr { background: var(--void); border-top: 1px solid var(--line); }
.ftr-top { padding-block: clamp(48px, 6vw, 72px); }
.ftr-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.ftr .ftr-h {
  font-family: var(--display); font-weight: 700; font-stretch: 96%;
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 16px;
}
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { margin-bottom: 10px; }
.ftr a { color: var(--text-2); text-decoration: none; font-size: 15px; transition: color .16s var(--ease); }
.ftr a:hover { color: var(--orange); }
.ftr .ftr-brand img { height: 38px; width: auto; aspect-ratio: 255 / 96; margin-bottom: 18px; }
.ftr-bot {
  border-top: 1px solid var(--line);
  padding-block: 22px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-3);
}
.ftr-bot a { font-size: 13px; }

address { font-style: normal; font-size: 15px; line-height: 1.7; color: var(--text-2); }
.bay-paper address { color: var(--on-paper-2); }
.bay-paper address b { color: var(--paper-ink); }

/* ------------------------------------------------------ 12b spacing utilities
   These come after every component so that a component resetting its own
   margin, such as .facts or .numlist, cannot silently cancel them out. */
.mt8  { margin-top: 8px; }   .mt12 { margin-top: 12px; }
.mt16 { margin-top: 16px; }  .mt20 { margin-top: 20px; }
.mt24 { margin-top: 24px; }  .mt32 { margin-top: 32px; }
.mt40 { margin-top: 40px; }  .mt56 { margin-top: 56px; }
.mb0  { margin-bottom: 0; }

/* --------------------------------------------------------------- 13 motion */
.rv { opacity: 0; transform: translateY(18px); }
.rv.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.rvd1.in { transition-delay: .07s; }
.rv.rvd2.in { transition-delay: .14s; }
.rv.rvd3.in { transition-delay: .21s; }
.rv.rvd4.in { transition-delay: .28s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ----------------------------------------------------------- 14 responsive */
@media (max-width: 1080px) {
  .nav { display: none; }
  .hdr .btn { display: none; }
  .burger { display: flex; }
  .stats.s4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .ftr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
}

@media (max-width: 480px) {
  /* the enlarged brand block must still leave room for the burger */
  .brand { gap: 10px; }
  .brand img { height: 36px; }
  .hdr.stuck .brand img { height: 33px; }
  .brand-txt {
    font-size: 11px; letter-spacing: .1em; max-width: 148px; padding-left: 10px;
  }
  /* long CTA labels wrap instead of widening their container off-screen */
  .btn { white-space: normal; }
  .tick-x { display: none; }
}

@media (max-width: 1080px) {
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow li:last-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  /* minmax(0,1fr): a nowrap button's min-content width must never widen the track */
  .split, .split.lean, .split.lean-r { grid-template-columns: minmax(0, 1fr); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts.two { columns: 1; }
  .viewer-panes { grid-template-columns: 1fr; }
  .stats.s3 { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  /* four credentials no longer fit on one line, so wrap them as a
     deliberate two by two block instead of a ragged second line */
  .credbar-in {
    grid-template-columns: repeat(2, auto);
    justify-content: center; justify-items: center;
    row-gap: 12px; column-gap: clamp(28px, 8vw, 64px);
    text-align: center;
  }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 84px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .stats.s4 { grid-template-columns: 1fr; }
  .outgrid.o3, .outgrid.o2 { grid-template-columns: 1fr; }
  .pcols { grid-template-columns: 1fr; gap: 22px; }
  .phase { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
  .phase-n { width: 40px; height: 40px; font-size: 17px; }
  .phase::before { left: 19px; top: 40px; }
  .phase-btn { padding: 16px 56px 16px 18px; position: relative; }
  .phase-btn .pm { margin-left: 0; width: 100%; text-align: left; }
  /* keep the +/x disclosure pinned top-right instead of wrapping into the flow */
  .phase-btn .cv { position: absolute; top: 16px; right: 16px; }
  .rail-cell .v { white-space: normal; overflow: visible; text-overflow: clip; }
  .row-end { justify-content: flex-start; }
  /* the five-step strip reads as fragments in two 170px columns; stack it */
  .flow { grid-template-columns: 1fr; }
  .flow li:last-child { grid-column: auto; }
  .phase-in { padding: 0 18px 20px; }
  .bar-row { grid-template-columns: 1fr; gap: 6px; }
  .bar-row .bv { text-align: right; margin-top: -22px; }
  .ftr-grid { grid-template-columns: 1fr; }
  .drawer a { font-size: 25px; }
  .offer { padding: 18px 20px; }
  .card { padding: 22px 20px 24px; }
}

@media (max-width: 560px) {
  .credbar-in {
    grid-template-columns: auto;
    justify-content: center; justify-items: center;
    row-gap: 10px;
    text-align: center;
  }
}

/* -------------------------------------------------------------- 15 print */
@media print {
  :root {
    --text: #000; --text-2: #1e242c; --text-3: #3d4650;
    --line: #c9ccd1; --line-2: #b3b7bd;
    --orange: #b45f00; --orange-2: #b45f00;
  }

  body { background: #fff; color: #000; font-size: 10.5pt; line-height: 1.5; }

  /* interface furniture and anything that only means something on screen */
  .hdr, .drawer, .burger, .skip, .wgt-bar, .seg, .toggle, .scan, .hud,
  .quiz-prog, .opts, .verdict-box, .calc, .explorer, .fitcheck,
  .cta .row, .hero .row, .credbar { display: none !important; }

  /* decorative fields and glows never print well */
  .hero::after, .gridfield::before { display: none !important; }

  /* every surface drops to white with a hairline */
  .bay-ink, .bay-panel, .bay-paper, .cta, .hero, .ftr,
  .wgt, .card, .stat, .stats, .out, .outgrid, .phase-card, .phase-n,
  .rail, .rail-cell, .pane-shot, .offer, .frame, .chip, .icon, .note, .gate,
  .flow, .flow li, .steps, .step, .phases {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
  }
  .card, .wgt, .stats, .phase-card, .outgrid, .offer, .frame, .rail,
  .flow, .steps, .chip, .icon { border-color: var(--line) !important; }
  .stat, .flow li, .step, .rail-cell { border-bottom: 1px solid var(--line); }

  h1, h2, h3, h4 { color: #000 !important; break-after: avoid; }
  p, li, td, .lede, .muted, .fine, .cap, figcaption { color: #1e242c !important; }
  .eyebrow, .hot, .stat .fig, .out .v.hot, .shotlab, .glab,
  .phase-btn .pm, .gate .glab, .pcols h3, .step .n { color: #b45f00 !important; }
  .facts li::before, .pcols li::before, .numlist li::before { background: #b45f00; }
  .numlist li::before { background: none; color: #b45f00; border-color: #b45f00; }

  a { color: #000 !important; text-decoration: underline; }
  .btn { display: none !important; }
  .tlink { color: #b45f00 !important; }

  /* photographs are constrained so one never takes a whole sheet */
  .frame, .frame.p34, .frame.p43, .frame.p11, .frame.p169 {
    aspect-ratio: auto !important;
    max-height: 3.1in;
    overflow: hidden;
  }
  .frame img { max-height: 3.1in; width: auto; margin-inline: auto; }
  .pane-shot { max-height: 3.1in; }
  .pane-shot.eye, .pane-shot.cam { aspect-ratio: auto !important; height: auto; }
  .pane-shot img { position: static !important; max-height: 3.1in; width: 100%;
                   height: auto !important; object-fit: contain !important; }
  .ailayer { display: none !important; }
  .imgband, .gal, figure, .frame, .pane, .card, .stat, .step, .phase {
    break-inside: avoid;
  }

  .section { padding-block: 16pt; }
  .rv { opacity: 1 !important; transform: none !important; }
  .phase-body { grid-template-rows: 1fr !important; }
  .phase-body > div { overflow: visible !important; }
  .stripe { background: #b45f00 !important; height: 3px; }
  .split, .g2, .g3, .g4, .stats.s3, .stats.s4, .hero-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .viewer-panes { grid-template-columns: 1fr 1fr !important; }

  /* the footer becomes a simple contact block */
  .ftr-grid { grid-template-columns: 1fr 1fr !important; }
  .ftr .ftr-brand p, .ftr-bot span:last-child { display: none; }
}
