/* =========================================================================
   DPI SERVICES — Design System (szkic / first draft)
   Industrial-technical "spec-sheet" aesthetic.
   Tokens -> Base -> Layout/Grid -> Components -> Responsive (desktop-first)
   Palette is brand-book-ready: swap the --brand-* tokens and everything follows.
   ========================================================================= */

/* ----------------------------------------------------------------- TOKENS */
:root {
  /* Steel / graphite neutrals */
  --steel-950: #0B1220;
  --steel-900: #0F172A;
  --steel-800: #1E293B;
  --steel-700: #334155;
  --steel-600: #475569;
  --steel-500: #64748B;
  --steel-400: #94A3B8;
  --steel-300: #CBD5E1;
  --steel-200: #E2E8F0;
  --steel-100: #F1F5F9;
  --steel-50:  #F8FAFC;
  --white:     #FFFFFF;

  /* Brand accent — "safety orange" (hi-vis). Single sharp accent. */
  --brand:        #F97316;
  --brand-600:    #EA580C;
  --brand-700:    #C2410C;
  --brand-tint:   #FFF3EA;

  /* Semantic */
  --bg:           var(--steel-50);
  --surface:      var(--white);
  --surface-2:    var(--steel-100);
  --ink:          var(--steel-800);
  --ink-soft:     var(--steel-600);
  --ink-faint:    var(--steel-500);
  --line:         var(--steel-200);
  --line-strong:  var(--steel-300);
  --invert:       var(--steel-900);

  /* Typography */
  --font-display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --font-body:    'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* Fluid type scale */
  --fs-display: clamp(2.6rem, 1.6rem + 3.6vw, 4.75rem);
  --fs-h1:      clamp(2.1rem, 1.5rem + 2.4vw, 3.25rem);
  --fs-h2:      clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
  --fs-h3:      clamp(1.2rem, 1.05rem + 0.5vw, 1.4rem);
  --fs-lead:    clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem);
  --fs-base:    1rem;
  --fs-sm:      0.875rem;
  --fs-xs:      0.75rem;

  /* Spacing */
  --space-1: 0.25rem;  --space-2: 0.5rem;  --space-3: 0.75rem;
  --space-4: 1rem;     --space-5: 1.5rem;  --space-6: 2rem;
  --space-7: 3rem;     --space-8: 4rem;    --space-9: 6rem;
  --section-y: clamp(3.5rem, 2rem + 6vw, 7rem);

  /* Shape */
  --radius:   4px;
  --radius-lg: 8px;
  --container: 1280px;
  --gutter: clamp(1.25rem, 0.5rem + 3vw, 4rem);

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow:    0 6px 24px -8px rgba(15, 23, 42, .18);
  --shadow-lg: 0 24px 60px -20px rgba(15, 23, 42, .28);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: .28s;
}

/* ------------------------------------------------------------------ RESET */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--brand); color: #fff; }

/* --------------------------------------------------------------- HEADINGS */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--steel-900);
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.01em; }
p { color: var(--ink-soft); }
strong { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------- LAYOUT / GRID */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.section--dark { background: var(--invert); color: var(--steel-300); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--alt { background: var(--surface); }

.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }

/* ------------------------------------------------------- SHARED ELEMENTS */
/* Kicker — monospace technical label with index */
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-700);
}
.kicker::before {
  content: ""; width: 1.75rem; height: 2px; background: var(--brand);
}
.section--dark .kicker { color: var(--brand); }

.eyebrow-num { font-family: var(--font-mono); color: var(--brand); font-weight: 600; }

.lead { font-size: var(--fs-lead); color: var(--ink-soft); max-width: 60ch; }
.section--dark .lead { color: var(--steel-400); }

.section-head { max-width: 64ch; margin-bottom: var(--space-7); }
.section-head h2 { margin-top: var(--space-3); }
.section-head p { margin-top: var(--space-4); }

/* Blueprint grid texture */
.blueprint {
  background-image:
    linear-gradient(rgba(148,163,184,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.10) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ------------------------------------------------------------- BUTTONS */
/* primary / secondary / ghost  +  hover, focus, disabled states */
.btn {
  --btn-bg: var(--brand); --btn-fg: #fff; --btn-bd: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm);
  letter-spacing: .02em;
  padding: .85rem 1.4rem;
  border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  border-radius: var(--radius);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
              color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  will-change: transform;
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform var(--dur) var(--ease); }
.btn:hover { background: var(--brand-600); border-color: var(--brand-600); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn--secondary { --btn-bg: transparent; --btn-fg: var(--steel-900); --btn-bd: var(--line-strong); }
.btn--secondary:hover { background: var(--steel-900); color: #fff; border-color: var(--steel-900); }
.section--dark .btn--secondary, .hero .btn--secondary { --btn-fg: #fff; --btn-bd: rgba(255,255,255,.28); }
.section--dark .btn--secondary:hover, .hero .btn--secondary:hover { background: #fff; color: var(--steel-900); border-color: #fff; }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--brand-700); --btn-bd: transparent; padding-inline: .4rem; }
.section--dark .btn--ghost, .hero .btn--ghost { --btn-fg: var(--brand); }
.btn--ghost:hover { background: transparent; box-shadow: none; color: var(--brand-600); transform: none; }
.btn--ghost:hover svg { transform: translateX(4px); }

.btn--lg { padding: 1.05rem 1.8rem; font-size: var(--fs-base); }

.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--steel-200); border-color: var(--steel-200); color: var(--steel-400);
  cursor: not-allowed; transform: none; box-shadow: none; pointer-events: none;
}

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-4); }

/* ----------------------------------------------------------------- CARDS */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--space-6);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--brand); transform: scaleY(0); transform-origin: top;
  transition: transform var(--dur) var(--ease); border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card:hover::before { transform: scaleY(1); }
.card__index { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-faint); letter-spacing: .1em; }
.card h3 { margin: var(--space-3) 0 var(--space-2); }
.card p { font-size: var(--fs-sm); }
.card__link { margin-top: var(--space-4); display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-700); font-weight: 600; }
.card a.card__cover { position: absolute; inset: 0; }

.icon-tile { width: 44px; height: 44px; display: grid; place-items: center; border: 1.5px solid var(--line-strong);
  border-radius: var(--radius); color: var(--steel-700); }
.card:hover .icon-tile { border-color: var(--brand); color: var(--brand-600); }

/* ------------------------------------------------------------- SPEC SHEET */
.specsheet { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.specrow { display: grid; grid-template-columns: 1fr auto; gap: var(--space-4);
  padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--line); align-items: baseline; }
.specrow:last-child { border-bottom: 0; }
.specrow dt { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.specrow dd { font-family: var(--font-display); font-weight: 700; color: var(--steel-900); font-size: 1.05rem; }

/* Big stat */
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.6rem);
  line-height: 1; color: #fff; letter-spacing: -0.02em; }
.stat__num .u { color: var(--brand); }
.stat__label { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase;
  color: var(--steel-400); margin-top: var(--space-3); }

/* Certification badges */
.certs { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.cert { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500; letter-spacing: .06em;
  padding: .5rem .8rem; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--steel-700);
  background: var(--surface); white-space: nowrap; }
.section--dark .cert { border-color: rgba(255,255,255,.16); color: var(--steel-300); background: transparent; }
.cert b { color: var(--brand); font-weight: 700; }

/* tick list for scope of services */
.ticklist li { position: relative; padding-left: 1.8rem; margin-bottom: .7rem; color: var(--ink-soft); }
.ticklist li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px;
  background: var(--brand); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.ticklist strong { color: var(--ink); }

/* dark-section legibility: lists, paragraphs and bold text must be light */
.section--dark p,
.section--dark .ticklist li { color: var(--steel-300); }
.section--dark strong,
.section--dark .ticklist strong { color: #fff; }

/* product chips (range of products) */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { font-family: var(--font-mono); font-size: var(--fs-xs); padding: .4rem .7rem; border: 1px solid var(--line);
  border-radius: 999px; color: var(--steel-700); background: var(--surface); }
.chip:hover { border-color: var(--brand); color: var(--brand-700); }

/* =========================================================================
   HEADER / NAV
   ========================================================================= */
.topbar { background: var(--steel-950); color: var(--steel-400); font-size: var(--fs-xs); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar a { color: var(--steel-300); font-family: var(--font-mono); letter-spacing: .04em; }
.topbar a:hover { color: #fff; }
.topbar__meta { display: flex; gap: var(--space-5); align-items: center; }
.lang { display: flex; gap: .4rem; align-items: center; }
.lang a { padding: 2px 6px; border-radius: 3px; }
.lang a[aria-current="true"] { background: var(--brand); color: #fff; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: var(--space-6); height: 76px; }

.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--font-display); font-weight: 800;
  font-size: 1.3rem; letter-spacing: -.02em; color: var(--steel-900); }
.brand__mark { width: 38px; height: 38px; display: grid; place-items: center; background: var(--steel-900);
  color: #fff; border-radius: var(--radius); font-size: .95rem; position: relative; overflow: hidden; }
.brand__mark::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--brand); }
.brand small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: .58rem;
  letter-spacing: .18em; color: var(--ink-faint); text-transform: uppercase; }

.mainnav { margin-left: auto; }
.mainnav > ul { display: flex; gap: var(--space-2); align-items: center; }
.mainnav a.navlink, .mainnav button.navlink { display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .8rem; border: 0; background: none; color: var(--steel-700); font-weight: 500; font-size: var(--fs-sm);
  border-radius: var(--radius); transition: color var(--dur) var(--ease), background var(--dur) var(--ease); }
.mainnav a.navlink:hover, .mainnav button.navlink:hover, .has-mega:hover .navlink { color: var(--steel-900); background: var(--steel-100); }
.mainnav .caret { width: .7em; height: .7em; transition: transform var(--dur) var(--ease); }
.has-mega:hover .caret { transform: rotate(180deg); }

/* Mega dropdown (offer scope) */
.has-mega { position: static; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface);
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all var(--dur) var(--ease); }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega .container { display: grid; grid-template-columns: 0.9fr 2.1fr; gap: var(--space-7); height: auto;
  padding-block: var(--space-7); align-items: stretch; }
.mega__intro h4 { font-size: 1.1rem; }
.mega__intro p { font-size: var(--fs-sm); margin-top: var(--space-3); }
.mega__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 0; }
.mega__item { display: flex; gap: .8rem; padding: .7rem .8rem; border-radius: var(--radius); }
.mega__item:hover { background: var(--steel-100); }
.mega__item .num { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--brand); padding-top: .2rem; }
.mega__item span.t { font-weight: 600; color: var(--steel-800); font-size: var(--fs-sm); }
.mega__item small { color: var(--ink-faint); font-size: var(--fs-xs); }

.header-cta { display: flex; align-items: center; gap: var(--space-4); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: #fff; align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { content: ""; display: block; width: 20px; height: 2px;
  background: var(--steel-900); position: relative; transition: var(--dur); }
.burger span::before { position: absolute; top: -6px; } .burger span::after { position: absolute; top: 6px; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { position: relative; background: var(--steel-950); color: #fff; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148,163,184,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.06) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: radial-gradient(120% 90% at 80% 10%, #000 30%, transparent 75%); }
.hero::after { content: ""; position: absolute; right: -10%; top: -20%; width: 60%; height: 140%;
  background: radial-gradient(closest-side, rgba(249,115,22,.18), transparent 70%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; padding-block: clamp(3.5rem, 2rem + 8vw, 7.5rem); }
.hero__grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: end; }
.hero h1 { color: #fff; font-size: var(--fs-display); }
.hero h1 .accent { color: var(--brand); }
.hero .lead { color: var(--steel-300); margin-top: var(--space-5); }
.hero .btn-row { margin-top: var(--space-7); }
.hero__aside { border-left: 1px solid rgba(255,255,255,.12); padding-left: var(--space-6); }
.hero__aside .specrow { border-color: rgba(255,255,255,.10); padding-inline: 0; }
.hero__aside .specrow dt { color: var(--steel-400); }
.hero__aside .specrow dd { color: #fff; }

/* Trust strip */
.trustbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.trustbar .container { display: flex; align-items: center; gap: var(--space-6); flex-wrap: wrap; padding-block: var(--space-5); }
.trustbar .label { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }

/* Stats band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.stat { border-left: 2px solid rgba(249,115,22,.35); padding-left: var(--space-5); }

/* industries */
.indu { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.indu__item { background: var(--surface); padding: var(--space-6); transition: background var(--dur) var(--ease); }
.indu__item:hover { background: var(--brand-tint); }
.indu__item .num { font-family: var(--font-mono); color: var(--brand); font-size: var(--fs-sm); }
.indu__item h3 { margin-top: var(--space-3); font-size: 1.15rem; }
.indu__item p { font-size: var(--fs-sm); margin-top: var(--space-2); }

/* CTA band */
.ctaband { position: relative; background: var(--brand); color: #fff; overflow: hidden; }
.ctaband::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(135deg, rgba(0,0,0,.12) 25%, transparent 25%, transparent 50%, rgba(0,0,0,.12) 50%, rgba(0,0,0,.12) 75%, transparent 75%);
  background-size: 26px 26px; opacity: .35; }
.ctaband .container { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-6); flex-wrap: wrap; }
.ctaband h2 { color: #fff; max-width: 22ch; }
.ctaband .btn--secondary { --btn-fg: #fff; --btn-bd: rgba(255,255,255,.6); }
.ctaband .btn--secondary:hover { background:#fff; color: var(--brand-700); border-color:#fff; }
.ctaband .btn { --btn-bg:#fff; --btn-fg: var(--brand-700); --btn-bd:#fff; }
.ctaband .btn:hover { background: var(--steel-900); color:#fff; border-color: var(--steel-900); }

/* =========================================================================
   PRODUCT PAGE
   ========================================================================= */
.breadcrumb { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .06em; color: var(--ink-faint); }
.breadcrumb a:hover { color: var(--brand-700); }
.breadcrumb span { color: var(--steel-300); margin-inline: .4rem; }

.product-hero { background: var(--steel-950); color:#fff; }
.product-hero .container { padding-block: clamp(2.5rem,1.5rem+4vw,4.5rem); }
.product-hero h1 { color:#fff; max-width: 18ch; margin-top: var(--space-4); }
.product-hero .lead { color: var(--steel-300); margin-top: var(--space-4); }
.product-hero .breadcrumb a { color: var(--steel-400); }
.product-hero .breadcrumb a:hover { color:#fff; }

.product-layout { display: grid; grid-template-columns: 1fr 360px; gap: clamp(2rem,1rem+4vw,4rem); align-items: start; }
.prose h2 { margin-top: var(--space-7); }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: var(--space-4); }
.prose .scope-block { margin-top: var(--space-5); }
.prose .scope-block h3 { color: var(--brand-700); font-family: var(--font-mono); font-size: var(--fs-sm);
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: var(--space-3); }

/* sticky quote card */
.quote-card { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.quote-card__head { background: var(--steel-900); color:#fff; padding: var(--space-5) var(--space-6); }
.quote-card__head .kicker { color: var(--brand); }
.quote-card__head h3 { color:#fff; margin-top: var(--space-2); }
.quote-card__body { padding: var(--space-6); display: grid; gap: var(--space-3); }
.quote-card .btn { width: 100%; }
.quote-card__contact { padding: var(--space-5) var(--space-6); border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.quote-card__contact a { font-family: var(--font-mono); color: var(--brand-700); }

/* related */
.related-list a { display: flex; justify-content: space-between; align-items: center; padding: var(--space-4) 0;
  border-top: 1px solid var(--line); color: var(--steel-800); font-weight: 600; }
.related-list a:hover { color: var(--brand-700); }
.related-list a:last-child { border-bottom: 1px solid var(--line); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: var(--steel-950); color: var(--steel-400); padding-block: var(--space-8) var(--space-6); font-size: var(--fs-sm); }
.site-footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-7); }
.site-footer h4 { color:#fff; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; font-weight:500; margin-bottom: var(--space-4); }
.site-footer a:hover { color:#fff; }
.site-footer li { margin-bottom: .6rem; }
.site-footer .brand { color:#fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.10); margin-top: var(--space-8); padding-top: var(--space-5);
  display: flex; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--steel-500); }
.reg { font-family: var(--font-mono); font-size: var(--fs-xs); line-height: 1.8; color: var(--steel-500); }
.reg b { color: var(--steel-300); }

/* =========================================================================
   MOTION — single orchestrated page-load reveal
   ========================================================================= */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.reveal { animation: rise .7s var(--ease) both; }
.reveal-1 { animation-delay: .05s; } .reveal-2 { animation-delay: .15s; }
.reveal-3 { animation-delay: .25s; } .reveal-4 { animation-delay: .35s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
}

/* =========================================================================
   RESPONSIVE — desktop-first (max-width breakpoints per brief)
   large 1440+ (base) | desktop 1200+ | tablet 768–1199 | mobile ≤767
   ========================================================================= */

/* ---- desktop (≤1199) : tablet range begins ---- */
@media (max-width: 1199px) {
  .mainnav { display: none; }            /* collapse into mobile menu */
  .burger { display: inline-flex; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__aside { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); padding-left: 0; padding-top: var(--space-6); }
  .product-layout { grid-template-columns: 1fr; }
  .quote-card { position: static; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--space-7) var(--space-6); }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
}

/* ---- tablet (≤900) ---- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .indu { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
}

/* ---- mobile (≤767) ---- */
@media (max-width: 767px) {
  .topbar__meta .hide-sm { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .indu { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .ctaband .container { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; }
  .btn { width: 100%; }                  /* full-width tap targets */
  .btn-row .btn { flex: 1 1 100%; }
}

/* =========================================================================
   MOBILE MENU (off-canvas) — toggled by app.js
   ========================================================================= */
.mobile-menu { position: fixed; inset: 0; z-index: 60; background: rgba(11,18,32,.5); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease); }
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu__panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(420px, 88vw); background: var(--surface);
  transform: translateX(100%); transition: transform var(--dur) var(--ease); overflow-y: auto; padding: var(--space-6); }
.mobile-menu.open .mobile-menu__panel { transform: none; }
.mobile-menu__panel a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--steel-800); }
.mobile-menu__panel .sub a { padding-left: var(--space-4); font-weight: 400; font-size: var(--fs-sm); color: var(--ink-soft); }
.mobile-menu__panel .grp-label { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand-700); margin-top: var(--space-5); }
.mobile-menu__close { float: right; width: 44px; height: 44px; border: 1px solid var(--line-strong);
  border-radius: var(--radius); background:#fff; font-size: 1.3rem; }

/* =========================================================================
   INNER PAGE HERO (generic) — reused by content & form pages
   ========================================================================= */
.page-hero { background: var(--steel-950); color:#fff; }
.page-hero .container { padding-block: clamp(2.5rem,1.5rem+4vw,4.5rem); }
.page-hero h1 { color:#fff; max-width: 20ch; margin-top: var(--space-4); }
.page-hero .lead { color: var(--steel-300); margin-top: var(--space-4); }
.page-hero .breadcrumb a { color: var(--steel-400); }
.page-hero .breadcrumb a:hover { color:#fff; }

/* layout with sidebar (content + sticky aside) */
.with-aside { display:grid; grid-template-columns: 1fr 340px; gap: clamp(2rem,1rem+4vw,4rem); align-items:start; }
.aside-sticky { position: sticky; top: 96px; }

/* generic prose extras */
.prose ul.bullets { list-style: disc; padding-left: 1.25rem; margin-top: var(--space-4); }
.prose ul.bullets li { color: var(--ink-soft); margin-bottom: .5rem; }
.prose .lead + .scope-block, .prose > h2:first-child { margin-top: 0; }

/* =========================================================================
   FORMS
   ========================================================================= */
.form { display: grid; gap: var(--space-6); }
.form-section { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: clamp(1.25rem,.8rem+1.5vw,2rem); }
.form-section > .kicker { margin-bottom: var(--space-2); }
.form-section h3 { margin-bottom: var(--space-5); }
.field { display: grid; gap: .4rem; margin-bottom: var(--space-4); }
.field:last-child { margin-bottom: 0; }
.field > label { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.field .req { color: var(--brand); }
.input, .textarea, select.input {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line-strong); border-radius: var(--radius); padding: .7rem .85rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--steel-400); }
.input:focus, .textarea:focus, select.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(249,115,22,.15); outline: none; }
.textarea { min-height: 8rem; resize: vertical; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; padding-right: 2.2rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--space-4); }

.checkgrid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem var(--space-4); }
.check { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color var(--dur) var(--ease); }
.check:hover { border-color: var(--brand); }
.check input { margin-top: .2rem; accent-color: var(--brand); width: 1rem; height: 1rem; }
.check span { font-size: var(--fs-sm); color: var(--ink); }

.fileupload { border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: var(--space-6);
  text-align: center; color: var(--ink-faint); transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); cursor: pointer; }
.fileupload:hover { border-color: var(--brand); background: var(--brand-tint); }
.fileupload b { color: var(--ink); }
.fileupload svg { width: 28px; height: 28px; margin: 0 auto var(--space-3); color: var(--steel-500); }

.form-actions { display: flex; gap: var(--space-4); align-items: center; flex-wrap: wrap; }
.help { font-size: var(--fs-xs); color: var(--ink-faint); }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-soft); }
.consent input { margin-top: .25rem; accent-color: var(--brand); }
/* honeypot anti-spam field — visually hidden */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,1rem+3vw,4rem); align-items: start; }
.dept .specrow { grid-template-columns: 1fr auto; }
.dept .specrow dd { font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-sm); color: var(--brand-700); }
.addr-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); background: var(--surface); }
.addr-card + .addr-card { margin-top: var(--space-4); }
.addr-card h4 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: var(--space-2); }
.addr-card p { font-size: var(--fs-sm); }
.map-ph { aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  display: grid; place-items: center; color: var(--steel-400); background: var(--steel-100); }
.map-ph .blueprint { width: 100%; height: 100%; display: grid; place-items: center; }
.map-ph span { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; }

/* =========================================================================
   CAREER
   ========================================================================= */
.joblist { border-top: 1px solid var(--line); }
.job-row { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-5); align-items: center;
  padding: var(--space-5) var(--space-2); border-bottom: 1px solid var(--line); transition: background var(--dur) var(--ease); }
.job-row:hover { background: var(--surface); }
.job-row .jnum { font-family: var(--font-mono); color: var(--brand); font-size: var(--fs-sm); }
.job-row h3 { font-size: 1.15rem; }
.job-row .meta { display: flex; gap: var(--space-4); margin-top: .35rem; flex-wrap: wrap; }
.tag { font-family: var(--font-mono); font-size: var(--fs-xs); padding: .25rem .6rem; border: 1px solid var(--line-strong);
  border-radius: 999px; color: var(--steel-700); white-space: nowrap; }
.tag--accent { border-color: var(--brand); color: var(--brand-700); background: var(--brand-tint); }
.benefit { display: flex; gap: .8rem; align-items: flex-start; }
.benefit svg { width: 20px; height: 20px; color: var(--brand); flex: none; margin-top: .15rem; }
.benefit p { font-size: var(--fs-sm); }

/* =========================================================================
   LEGAL (privacy / cookies)
   ========================================================================= */
.legal { display: grid; grid-template-columns: 240px 1fr; gap: clamp(2rem,1rem+3vw,4rem); align-items: start; }
.legal-toc { position: sticky; top: 96px; font-size: var(--fs-sm); }
.legal-toc p { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: var(--space-3); }
.legal-toc a { display: block; padding: .35rem 0 .35rem var(--space-4); color: var(--ink-soft); border-left: 2px solid var(--line); }
.legal-toc a:hover { color: var(--brand-700); border-color: var(--brand); }
.legal-body h2 { font-family: var(--font-display); text-transform: none; letter-spacing: -.01em; color: var(--steel-900); margin-top: var(--space-7); font-size: var(--fs-h3); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin-top: var(--space-3); }
.legal-body ul { list-style: disc; padding-left: 1.25rem; margin-top: var(--space-3); }
.legal-body li { color: var(--ink-soft); margin-bottom: .4rem; }
.notice { border-left: 3px solid var(--brand); background: var(--brand-tint); padding: var(--space-4) var(--space-5); border-radius: 0 var(--radius) var(--radius) 0; font-size: var(--fs-sm); }

/* =========================================================================
   RESPONSIVE for new components (desktop-first)
   ========================================================================= */
@media (max-width: 1199px) {
  .with-aside { grid-template-columns: 1fr; }
  .aside-sticky { position: static; }
  .legal { grid-template-columns: 1fr; }
  .legal-toc { position: static; display: none; }   /* TOC hidden on smaller screens */
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .field-row, .field-row-3, .checkgrid { grid-template-columns: 1fr; }
  .job-row { grid-template-columns: auto 1fr; }
  .job-row .btn { grid-column: 1 / -1; }
}
