/* =============================================================================
   MERIXA - Site CSS
   Editorial-industrial system. Hairline rules, mono technical labels, square
   buttons, no shadows, no border-radius (except 0). All colors driven by tokens.
   ============================================================================= */

:root {
  --white:       #FFFFFF;
  --paper:       #F5F5F4;
  --line:        #DDDDDB;
  --line-2:      #B8B8B5;
  --ink:         #0F0F10;
  --ink-2:       #2C2C2E;
  --ink-3:       #5C5C5F;
  --ink-4:       #8A8A8C;
  --red:         #E30613;
  --red-deep:    #B0040E;

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --pad-x: clamp(24px, 4vw, 64px);
  --side-w: 56px;
  --header-h: 86px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font-family: inherit; }
button { cursor: pointer; }

/* =============================================================================
   TYPE PRIMITIVES
   ============================================================================= */
.tag       { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-3); font-weight: 400; }
.tag b     { color: var(--ink); font-weight: 500; }
.tag-red   { color: var(--red); }
.label     { font-family: var(--sans); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.label .red{ color: var(--red); }
.h-display { font-family: var(--sans); font-weight: 700; line-height: 0.92; letter-spacing: -0.025em; color: var(--ink); text-transform: uppercase; }
.h-section { font-family: var(--sans); font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--ink); text-transform: uppercase; font-size: clamp(28px, 3.6vw, 52px); margin: 0; }
.h-section--xl { font-size: clamp(32px, 4.4vw, 64px); }
.lead      { font-family: var(--sans); font-weight: 400; font-size: 17px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.body      { font-size: 14px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.body-sm   { font-size: 13px; line-height: 1.55; color: var(--ink-2); }

hr.rule         { border: 0; border-top: 1px solid var(--line); margin: 0; }
hr.rule-strong  { border: 0; border-top: 1px solid var(--ink); margin: 0; }
hr.rule-red     { border: 0; border-top: 2px solid var(--red); margin: 0; width: 32px; }

/* =============================================================================
   LAYOUT SHELL
   ============================================================================= */
.page { padding-left: var(--side-w); }                /* used on homepage */
.container { padding-left: var(--pad-x); padding-right: var(--pad-x); }

/* =============================================================================
   SIDEBAR (fixed, left edge)
   ============================================================================= */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--side-w);
  border-right: 1px solid var(--line);
  background: var(--white);
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 0;
  z-index: 50;
}
.sidebar .mark { width: 36px; height: 36px; background: var(--red); display: grid; place-items: center; overflow: hidden; }
.sidebar .mark img { width: 30px; height: 30px; object-fit: contain; }
.sidebar .vstamp {
  margin: 24px 0 auto;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ink-3);
}
.sidebar .vstamp b { color: var(--ink); font-weight: 500; }
.sidebar .scrollnum { font-family: var(--mono); font-size: 10px; color: var(--ink-3); letter-spacing: 0.06em; text-align: center; }
.sidebar .scrollnum b { color: var(--ink); font-weight: 500; display: block; }

/* =============================================================================
   HEADER
   ============================================================================= */
.header {
  position: sticky; top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  z-index: 49;
  margin-left: var(--side-w);
}
.header.fixed {
  position: fixed; top: 0; left: var(--side-w); right: 0;
  margin-left: 0;
}
.header .top-strip {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad-x); height: 30px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
}
.header .top-strip .lhs { display: flex; gap: 24px; }
.header .top-strip .rhs { display: flex; gap: 18px; }
.header .top-strip a { color: var(--ink-3); }
.header .top-strip a:hover, .header .top-strip a.active { color: var(--ink); }
.header .top-strip a.active { font-weight: 500; }
.header .nav-strip {
  display: flex; align-items: stretch; justify-content: space-between;
  padding-left: var(--pad-x); height: 56px;
}
.header .brand, .header .wordmark { display: flex; align-items: center; gap: 14px; height: 100%; }
.header .brand img, .header .wordmark img { height: 28px; width: auto; }
.header .brand .who {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3);
}
.header nav.primary { display: flex; align-items: stretch; }
.header nav.primary a {
  display: inline-flex; align-items: center; padding: 0 18px;
  font-family: var(--sans); font-weight: 500; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-2);
  border-left: 1px solid var(--line);
  transition: color .15s, background .15s;
}
.header nav.primary a:hover { color: var(--red); }
.header nav.primary a.active { color: var(--red); }
.header nav.primary a.cta { background: var(--red); color: var(--white); padding: 0 22px; border-left: 0; }
.header nav.primary a.cta:hover { background: var(--ink); }
.header nav.primary a.menu {
  background: var(--ink); color: var(--white); padding: 0 18px; border-left: 0;
  display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer;
}
.header nav.primary a.menu:hover { background: var(--red); }
.header nav.primary a.menu .lines, .header nav.primary a.menu .bars { display: inline-flex; flex-direction: column; gap: 3px; }
.header nav.primary a.menu .lines i, .header nav.primary a.menu .bars i { display: block; width: 16px; height: 1.5px; background: currentColor; }
.header .menu .label-mobile { display: none; }
.header .menu .label-desktop { display: inline; }

main { margin-left: var(--side-w); }
.page main { margin-left: 0; }

/* =============================================================================
   BREADCRUMB / PAGE META
   ============================================================================= */
.breadcrumb {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--pad-x);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3);
}
.breadcrumb .crumbs { display: flex; gap: 12px; align-items: center; }
.breadcrumb .crumbs a:hover { color: var(--red); }
.breadcrumb .crumbs .sep { color: var(--line-2); }
.breadcrumb .crumbs .here { color: var(--ink); font-weight: 500; }
.breadcrumb .meta { display: flex; gap: 24px; }
.breadcrumb .meta b { color: var(--ink); font-weight: 500; }

/* =============================================================================
   HOMEPAGE HERO (full-bleed, 78vh, dark, two-column)
   ============================================================================= */
section.hero {
  padding-top: var(--header-h);
  padding-bottom: 0;
}
.hero-frame {
  position: relative;
  background: var(--ink);
  color: var(--white);
  min-height: 78vh;
  overflow: hidden;
}
.hero-frame .img {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 60%, rgba(227,6,19,0.18) 0%, rgba(0,0,0,0) 60%),
    linear-gradient(180deg, #1a1a1c 0%, #0a0a0b 100%);
}
.hero-frame .img::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 64px);
}
.hero-frame .img::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 35% at 60% 100%, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 60%);
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 1fr);
  min-height: inherit; gap: 0;
}
.hero-left {
  padding: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 64px);
  display: flex; flex-direction: column; justify-content: space-between;
  border-right: 1px solid rgba(255,255,255,0.08);
  gap: 48px;
  min-width: 0;
}
.hero-meta-row {
  display: flex; gap: 32px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.55);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.hero-meta-row b { color: var(--white); font-weight: 500; }
.hero-display {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(44px, 5.4vw, 96px);
  line-height: 0.9; letter-spacing: -0.025em; text-transform: uppercase;
  color: var(--white);
  margin: 0;
  overflow-wrap: break-word;
}
.hero-display .red-bar {
  display: inline-block; width: 0.32em; height: 0.12em;
  background: var(--red); vertical-align: 0.18em; margin-left: 0.06em;
}
.hero-bottom { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero-bottom .cta-red {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--red); color: var(--white);
  padding: 16px 22px;
  font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  transition: background .15s;
}
.hero-bottom .cta-red:hover { background: var(--ink); }
.hero-bottom .cta-ghost {
  display: inline-flex; align-items: center; gap: 14px;
  border: 1px solid rgba(255,255,255,0.3); color: var(--white);
  padding: 16px 22px;
  font-family: var(--sans); font-weight: 500; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  transition: border-color .15s, background .15s;
}
.hero-bottom .cta-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.05); }
.hero-right {
  padding: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 64px);
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 48px;
}
.hero-right .lede {
  font-family: var(--sans); font-weight: 400;
  font-size: 17px; line-height: 1.5;
  color: rgba(255,255,255,0.85);
  /* Constrain to column width and break long compound words (PL/FR/UK
     have 17+ char words that overflowed the column at 38ch). Forces wrap
     even on words longer than the column width. */
  max-width: 32ch;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.hero-right .specs {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(255,255,255,0.12);
  gap: 0;
}
.hero-right .specs .s {
  border-bottom: 1px solid rgba(255,255,255,0.12);
  border-right: 1px solid rgba(255,255,255,0.12);
  padding: 22px 20px;
}
.hero-right .specs .s:nth-child(2n) { border-right: 0; }
.hero-right .specs .s:nth-last-child(-n+2) { border-bottom: 0; }
.hero-right .specs .l { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.hero-right .specs .v {
  font-family: var(--sans); font-weight: 700; font-size: 36px; line-height: 1;
  color: var(--white); margin-top: 12px; letter-spacing: -0.01em;
}
.hero-right .specs .v .u {
  font-size: 14px; vertical-align: 0.5em; color: rgba(255,255,255,0.55); margin-left: 3px; font-weight: 500;
}
.hero-right .specs .d { font-size: 12px; color: rgba(255,255,255,0.65); margin-top: 8px; }

/* Certification ticker strip */
.hero-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center;
}
.hero-strip .col {
  padding: 14px var(--pad-x);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-3);
  display: flex; align-items: center; gap: 24px;
}
.hero-strip .col.mid {
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  padding-left: 0; padding-right: 0;
}
.hero-strip .col.mid .ticker {
  display: flex; gap: 48px; white-space: nowrap;
  animation: tickerScroll 40s linear infinite;
  padding-left: 24px;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-strip .col.mid .ticker { animation: none; }
}
.hero-strip .col span.dot { color: var(--red); }
.hero-strip .col b { color: var(--ink); font-weight: 500; }

/* =============================================================================
   INNER PAGE HEROES (service / industry / contact - same dark family)
   ============================================================================= */
.inner-hero {
  background: var(--ink); color: var(--white);
  padding: clamp(48px, 6vw, 96px) var(--pad-x) clamp(48px, 6vw, 80px);
  position: relative; overflow: hidden;
}
.inner-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(800px 500px at 85% 10%, rgba(227,6,19,0.18), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 64px);
  pointer-events: none;
}
.inner-hero.bias-left::before {
  background:
    radial-gradient(700px 500px at 12% 20%, rgba(227,6,19,0.18), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 64px);
}
.inner-hero > * { position: relative; }
.inner-hero .meta-row {
  display: flex; gap: 32px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.55);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 32px;
}
.inner-hero .meta-row b { color: var(--white); font-weight: 500; }
.inner-hero h1 {
  margin: 0;
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(40px, 6.4vw, 104px);
  line-height: 0.92; letter-spacing: -0.025em; text-transform: uppercase;
}
.inner-hero h1 .red-mark {
  display: inline-block; width: 0.32em; height: 0.12em;
  background: var(--red); vertical-align: 0.18em; margin-left: 0.08em;
}
.inner-hero .sub {
  margin-top: 36px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.inner-hero .sub .lede { font-size: 17px; line-height: 1.55; color: rgba(255,255,255,0.85); max-width: 50ch; }
.inner-hero .sub .meta-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255,255,255,0.12);
}
.inner-hero .sub .meta-grid .c { padding: 18px 18px 22px; border-right: 1px solid rgba(255,255,255,0.12); }
.inner-hero .sub .meta-grid .c:last-child { border-right: 0; }
.inner-hero .sub .meta-grid .l { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.inner-hero .sub .meta-grid .v {
  font-family: var(--sans); font-weight: 700; font-size: 28px; line-height: 1.05;
  color: var(--white); margin-top: 10px; letter-spacing: -0.01em;
}
.inner-hero .sub .meta-grid .v .u {
  font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,0.55);
  vertical-align: 0.6em; margin-left: 2px; letter-spacing: 0.08em;
}
.inner-hero .sub .meta-grid .d { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 8px; line-height: 1.45; }
.inner-hero .ctas { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.inner-hero .ctas a {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 22px;
  font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  transition: background .15s, border-color .15s, color .15s;
}
.inner-hero .ctas a.cta-red { background: var(--red); color: var(--white); }
.inner-hero .ctas a.cta-red:hover { background: var(--white); color: var(--ink); }
.inner-hero .ctas a.cta-ghost { border: 1px solid rgba(255,255,255,0.4); color: var(--white); font-weight: 500; }
.inner-hero .ctas a.cta-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.inner-hero .lede-only {
  margin-top: 32px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
  max-width: 64ch; font-size: 17px; line-height: 1.55; color: rgba(255,255,255,0.85);
}

/* =============================================================================
   STICKY SWITCHERS (services / industries) - equal-grid tabs
   ============================================================================= */
.switcher {
  position: sticky; top: var(--header-h); z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--ink);
}
.switcher .header-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--pad-x);
  border-bottom: 1px solid var(--line);
}
.switcher .header-row .lhs { display: flex; align-items: baseline; gap: 14px; }
.switcher .header-row .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.switcher .header-row .t { font-family: var(--sans); font-weight: 700; font-size: 14px; color: var(--ink); text-transform: uppercase; letter-spacing: -0.005em; }
.switcher .header-row .rhs { display: flex; align-items: center; gap: 18px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.switcher .header-row .rhs a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); transition: all .15s; }
.switcher .header-row .rhs a:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.switcher nav.tabs { display: grid; }
.switcher nav.tabs.cols-5 { grid-template-columns: repeat(5, 1fr); }
.switcher nav.tabs a {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  padding: 14px 18px 16px; min-height: 64px;
  font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-2);
  border-right: 1px solid var(--line);
  transition: all .15s;
  position: relative;
}
.switcher nav.tabs a:last-child { border-right: 0; }
.switcher nav.tabs a:hover { background: var(--paper); color: var(--ink); }
.switcher nav.tabs a.is-active { background: var(--paper); color: var(--ink); }
.switcher nav.tabs a.is-active::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--red); }
.switcher nav.tabs a .n { font-family: var(--mono); font-size: 10px; color: var(--ink-3); letter-spacing: 0.06em; font-weight: 400; }
.switcher nav.tabs a.is-active .n { color: var(--red); }
.switcher nav.tabs a .lbl { display: flex; align-items: center; gap: 8px; }
.switcher nav.tabs a.is-active .lbl::before { content: ""; width: 6px; height: 6px; background: var(--red); flex-shrink: 0; }

/* =============================================================================
   SECTION FRAME (used for sections 2-5 on every page)
   ============================================================================= */
section.frame { padding: clamp(56px, 7vw, 112px) 0; }
section.frame.bx { padding-left: var(--pad-x); padding-right: var(--pad-x); }
section.frame.alt { background: var(--paper); }

.frame-head {
  display: grid; grid-template-columns: 220px 1fr; gap: 32px;
  border-top: 1px solid var(--ink);
  padding-top: 24px; margin-bottom: 48px;
}
.frame-head .meta, .frame-head .lhs { display: flex; flex-direction: column; gap: 10px; }
.frame-head .num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--red); font-weight: 500; }
.frame-head .kicker { font-family: var(--sans); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }

/* =============================================================================
   SERVICE TABLE (homepage)
   ============================================================================= */
.svc-tbl { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.svc-tbl .row {
  display: grid; grid-template-columns: 64px 1.2fr 2.4fr 80px;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.svc-tbl a.row, .svc-tbl .row[role="button"] { cursor: pointer; }
.svc-tbl .row:last-child { border-bottom: 0; }
.svc-tbl .row:hover { background: var(--paper); }
.svc-tbl .row.is-active { background: var(--paper); }
.svc-tbl .row > * { padding: 24px 18px; }
.svc-tbl .row .n {
  font-family: var(--mono); font-size: 12px; color: var(--ink-3);
  border-right: 1px solid var(--line);
  display: flex; align-items: flex-start;
}
.svc-tbl .row.is-active .n { color: var(--red); }
.svc-tbl .row .ttl {
  font-family: var(--sans); font-weight: 700; font-size: 22px; letter-spacing: -0.01em;
  text-transform: uppercase; color: var(--ink);
  border-right: 1px solid var(--line);
  display: flex; align-items: center;
}
.svc-tbl .row .desc {
  font-size: 14px; color: var(--ink-2); line-height: 1.5;
  border-right: 1px solid var(--line);
  display: flex; align-items: center;
}
.svc-tbl .row .a {
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3); transition: color .15s, background .15s;
}
.svc-tbl .row:hover .a { color: var(--white); background: var(--red); }

/* =============================================================================
   STAT STRIP
   ============================================================================= */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.stat-strip .c {
  padding: 28px 22px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
}
.stat-strip .c::before { content: ""; position: absolute; top: 0; left: 0; width: 28px; height: 2px; background: var(--red); }
.stat-strip .c:last-child { border-right: 0; }
.stat-strip .c .l { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.stat-strip .c .v {
  font-family: var(--sans); font-weight: 700; font-size: clamp(40px, 4.6vw, 68px);
  line-height: 1; letter-spacing: -0.025em; color: var(--ink);
}
.stat-strip .c .v .u { font-size: 0.42em; vertical-align: 0.2em; color: var(--ink-3); margin-left: 4px; font-weight: 500; }
.stat-strip .c .d { font-size: 12px; color: var(--ink-3); line-height: 1.5; max-width: 30ch; }
.stat-strip .c .meta-tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; color: var(--ink-3);
  margin-top: auto; padding-top: 10px;
}

/* =============================================================================
   ABOUT GRID (split: quote + meta | columned body)
   ============================================================================= */
.about-grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 5vw, 80px); }
.about-grid .col-l { display: flex; flex-direction: column; gap: 16px; }
.about-grid .col-l .quote {
  font-family: var(--sans); font-weight: 600; font-size: 22px; line-height: 1.25; letter-spacing: -0.01em;
  color: var(--ink);
  padding: 24px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.about-grid .col-l .attr { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-3); }
.about-grid .col-r {
  column-count: 2; column-gap: 40px; column-rule: 1px solid var(--line);
  font-size: 14px; line-height: 1.65; color: var(--ink-2);
}
.about-grid .col-r p { margin: 0 0 1em 0; break-inside: avoid; }
.about-grid .col-r p:last-child { margin: 0; }

/* =============================================================================
   INDUSTRIES TABLE (homepage)
   ============================================================================= */
.ind-tbl { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.ind-tbl .head, .ind-tbl .row {
  display: grid; grid-template-columns: 56px 1.2fr 2.6fr 1fr 64px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.ind-tbl .head { background: var(--paper); }
.ind-tbl .head > * {
  padding: 12px 16px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500;
  border-right: 1px solid var(--line);
}
.ind-tbl .head > *:last-child { border-right: 0; }
.ind-tbl .row > * { padding: 22px 16px; border-right: 1px solid var(--line); }
.ind-tbl .row > *:last-child { border-right: 0; }
.ind-tbl .row .n { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.ind-tbl .row .v { font-family: var(--sans); font-weight: 700; font-size: 18px; letter-spacing: -0.005em; text-transform: uppercase; color: var(--ink); }
.ind-tbl .row .desc { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.ind-tbl .row .meta { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.ind-tbl .row .a { display: flex; justify-content: center; color: var(--ink-3); transition: color .15s, background .15s; cursor: pointer; }
.ind-tbl .row:hover { background: var(--paper); }
.ind-tbl .row:hover .a { color: var(--white); background: var(--red); }

/* =============================================================================
   GANTT TIMELINE
   ============================================================================= */
.gantt { border: 1px solid var(--line); background: var(--white); }
.gantt .head, .gantt .row {
  display: grid; grid-template-columns: 200px repeat(5, 1fr);
}
.gantt .head { border-bottom: 1px solid var(--line); background: var(--paper); }
.gantt .head > * {
  padding: 10px 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3);
  border-right: 1px solid var(--line);
}
.gantt .head > *:last-child, .gantt .row > *:last-child { border-right: 0; }
.gantt .row { border-bottom: 1px solid var(--line); }
.gantt .row:last-child { border-bottom: 0; }
.gantt .row > * { padding: 18px 14px; border-right: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.gantt .row .label {
  font-family: var(--sans); font-weight: 700; font-size: 14px; text-transform: uppercase;
  color: var(--ink); letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 12px;
}
.gantt .row .label .pip { width: 6px; height: 6px; background: var(--red); flex: 0 0 6px; }
.gantt .row .cell { position: relative; min-height: 56px; }
.gantt .row .cell.bar::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  height: 8px; background: var(--ink);
}
.gantt .row .cell.bar.red::after   { background: var(--red); }
.gantt .row .cell.bar.muted::after { background: var(--line-2); }
.gantt-legend { margin-top: 12px; display: flex; gap: 18px; flex-wrap: wrap; }
.gantt-legend span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-3); }
.gantt-legend b.lg-red { color: var(--red); font-weight: 500; }
.gantt-legend b.lg-ink { color: var(--ink); font-weight: 500; }
.gantt-legend b.lg-mid { color: var(--line-2); font-weight: 500; }

/* =============================================================================
   APPROACH (service: 3-step rows)
   ============================================================================= */
.approach { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
.approach .left .lead { max-width: 38ch; margin: 0; }
.approach .left .meta { margin-top: 32px; }
.approach .left .meta .row {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: baseline;
}
.approach .left .meta .row:last-child { border-bottom: 1px solid var(--line); }
.approach .left .meta .l { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.approach .left .meta .v { font-family: var(--sans); font-weight: 600; font-size: 14px; color: var(--ink); }

.steps { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.steps .step { display: grid; grid-template-columns: 64px 1fr 80px; border-bottom: 1px solid var(--line); }
.steps .step:last-child { border-bottom: 0; }
.steps .step > div { padding: 28px 22px; }
.steps .step .n { font-family: var(--mono); font-size: 12px; color: var(--red); border-right: 1px solid var(--line); }
.steps .step .body { border-right: 1px solid var(--line); padding-right: 32px; }
.steps .step .body h3 { margin: 0 0 8px; font-family: var(--sans); font-weight: 700; font-size: 22px; line-height: 1.05; letter-spacing: -0.01em; text-transform: uppercase; color: var(--ink); }
.steps .step .body p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); max-width: 64ch; }
.steps .step .body ul {
  margin: 14px 0 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px;
}
.steps .step .body ul li {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-2);
  display: flex; gap: 10px; align-items: baseline;
}
.steps .step .body ul li::before { content: ""; width: 6px; height: 6px; background: var(--red); flex-shrink: 0; transform: translateY(2px); }
.steps .step .check {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--ink-3);
  text-align: center;
}
.steps .step .check b { color: var(--ink); font-weight: 500; }

/* =============================================================================
   SYSTEMS / SOLUTIONS TABLE (service & industry detail)
   ============================================================================= */
.systems, .sols { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.systems .h, .systems .r,
.sols .h, .sols .r {
  display: grid; grid-template-columns: 64px 1.5fr 2.5fr 0.8fr 80px;
}
.systems .h, .sols .h { background: var(--paper); border-bottom: 1px solid var(--ink); }
.systems .h > div, .sols .h > div {
  padding: 14px 18px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3);
  border-right: 1px solid var(--line);
}
.systems .h > div:last-child, .sols .h > div:last-child { border-right: 0; }
.systems .r, .sols .r { border-bottom: 1px solid var(--line); transition: background .15s; }
.systems .r:last-child, .sols .r:last-child { border-bottom: 0; }
.systems .r:hover, .sols .r:hover { background: var(--paper); }
.systems .r > div, .sols .r > div { padding: 24px 18px; border-right: 1px solid var(--line); }
.systems .r > div:last-child, .sols .r > div:last-child {
  border-right: 0; padding: 0; display: flex; align-items: stretch;
}
.systems .r .n, .sols .r .n { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.systems .r .name, .sols .r .name {
  font-family: var(--sans); font-weight: 700; font-size: 18px; letter-spacing: -0.005em;
  text-transform: uppercase; color: var(--ink);
}
.systems .r .name .sub {
  display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em;
  color: var(--ink-3); font-weight: 400; text-transform: none; margin-top: 4px;
}
.systems .r .desc, .sols .r .desc { font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.systems .r .tags, .sols .r .tags {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--ink-3);
  display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start;
}
.systems .r .tags span, .sols .r .tags span { padding: 4px 8px; border: 1px solid var(--line); }
.systems .r .arrow, .sols .r .arrow {
  flex: 1; display: flex; align-items: center; justify-content: center;
  color: var(--ink-3); transition: background .15s, color .15s;
}
.systems .r:hover .arrow, .sols .r:hover .arrow { background: var(--red); color: var(--white); }

/* =============================================================================
   QUALITY / CASE STORY (split: pull-quote + columned body)
   ============================================================================= */
.quality, .casestory { display: grid; grid-template-columns: 4fr 8fr; gap: 80px; }
.quality .quote, .casestory .quote {
  border-top: 1px solid var(--ink);
  padding-top: 22px;
  font-family: var(--sans); font-weight: 600; font-size: 22px; line-height: 1.25; letter-spacing: -0.01em;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}
.quality .quote em, .casestory .quote em { font-style: normal; color: var(--red); }
.quality .att, .casestory .att {
  margin-top: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-3); text-transform: uppercase;
}
.quality .body-cols, .casestory .body-cols {
  column-count: 2; column-gap: 40px; column-rule: 1px solid var(--line);
}
.quality .body-cols p, .casestory .body-cols p {
  margin: 0 0 14px; font-size: 14px; line-height: 1.65; color: var(--ink-2); break-inside: avoid;
}

/* =============================================================================
   FAQ
   ============================================================================= */
.faq { border-top: 1px solid var(--ink); }
.faq .q {
  display: grid; grid-template-columns: 64px 1fr 56px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .15s;
}
.faq .q:hover { background: var(--paper); }
.faq .q > div { padding: 22px 18px; }
.faq .q .n { font-family: var(--mono); font-size: 12px; color: var(--ink-3); border-right: 1px solid var(--line); }
.faq .q .t { font-family: var(--sans); font-weight: 600; font-size: 16px; letter-spacing: -0.005em; color: var(--ink); }
.faq .q .toggle { display: flex; align-items: center; justify-content: center; color: var(--ink-3); border-left: 1px solid var(--line); }
.faq .q.is-open { background: var(--paper); }
.faq .q.is-open .toggle svg { transform: rotate(45deg); }
.faq .q .toggle svg { transition: transform .2s; }
.faq .a {
  display: none;
  grid-template-columns: 64px 1fr 56px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.faq .a.is-open { display: grid; }
.faq .a .empty   { border-right: 1px solid var(--line); }
.faq .a .empty-r { border-left: 1px solid var(--line); }
.faq .a .text { padding: 4px 18px 24px; font-size: 14px; line-height: 1.6; color: var(--ink-2); max-width: 80ch; }

/* =============================================================================
   REQUIREMENTS / CAPABILITIES (industry: two-col list grid)
   ============================================================================= */
.reqs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.reqs > div { padding: 32px; border-right: 1px solid var(--line); }
.reqs > div:last-child { border-right: 0; }
.reqs h3 {
  margin: 0 0 18px;
  font-family: var(--sans); font-weight: 700; font-size: 18px; letter-spacing: -0.005em; text-transform: uppercase; color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.reqs h3::before { content: ""; width: 8px; height: 8px; background: var(--red); display: inline-block; }
.reqs ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.reqs ul li {
  padding: 14px 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 60px 1fr; gap: 16px; align-items: baseline;
}
.reqs ul li:last-child { border-bottom: 1px solid var(--line); }
.reqs ul li .n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-3); }
.reqs ul li .t { font-family: var(--sans); font-weight: 500; font-size: 14px; color: var(--ink); line-height: 1.4; }
.link-inline {
  border-bottom: 1px solid var(--line);
  transition: color .15s, border-color .15s;
}
.link-inline:hover { color: var(--red); border-bottom-color: var(--red); }
.lead .link-inline { font-weight: 500; }

/* =============================================================================
   METRICS (industry: 4-up KPI strip)
   ============================================================================= */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--white); }
.metrics .c { padding: 32px 24px; border-right: 1px solid var(--line); position: relative; }
.metrics .c:last-child { border-right: 0; }
.metrics .c::before { content: ""; position: absolute; top: 0; left: 0; width: 28px; height: 2px; background: var(--red); }
.metrics .c .l { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-top: 8px; }
.metrics .c .v {
  font-family: var(--sans); font-weight: 700; font-size: clamp(40px, 4vw, 60px);
  line-height: 1; color: var(--ink); margin-top: 14px; letter-spacing: -0.02em;
}
.metrics .c .v .u { font-family: var(--mono); font-size: 11px; color: var(--ink-3); vertical-align: 0.6em; margin-left: 4px; letter-spacing: 0.08em; }
.metrics .c .d { font-size: 13px; color: var(--ink-2); margin-top: 12px; max-width: 30ch; line-height: 1.5; }
.metrics .c .tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--ink-3); margin-top: 14px; text-transform: uppercase; }

/* =============================================================================
   CTA - full-bleed red bar
   ============================================================================= */
.cta-bar, .cta-strip {
  background: var(--red);
  color: var(--white);
  padding: clamp(48px, 7vw, 96px) var(--pad-x);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: end;
  position: relative;
}
.cta-bar h2, .cta-strip .l h2 {
  font-family: var(--sans); font-weight: 700; font-size: clamp(36px, 5vw, 80px);
  line-height: 0.95; letter-spacing: -0.025em; text-transform: uppercase;
  margin: 0; max-width: 16ch; color: var(--white);
}
.cta-strip .l h2 { font-size: clamp(36px, 5vw, 72px); }
.cta-bar .right, .cta-strip .r { display: flex; flex-direction: column; gap: 20px; }
.cta-bar .right p, .cta-strip .r p {
  margin: 0; font-size: 16px; line-height: 1.5;
  color: rgba(255,255,255,0.92); max-width: 44ch;
}
.cta-bar .row, .cta-strip .r .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-bar .btn-w, .cta-strip .r .ctas a.white {
  background: var(--white); color: var(--ink);
  padding: 16px 22px;
  font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  display: inline-flex; gap: 14px; align-items: center;
  transition: background .15s, color .15s;
}
.cta-bar .btn-w:hover, .cta-strip .r .ctas a.white:hover { background: var(--ink); color: var(--white); }
.cta-strip .r .ctas a.white { color: var(--red); }
.cta-bar .btn-ghost, .cta-strip .r .ctas a.ghost {
  border: 1px solid rgba(255,255,255,0.5); color: var(--white);
  padding: 16px 22px;
  font-family: var(--sans); font-weight: 500; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  display: inline-flex; gap: 14px; align-items: center;
  transition: background .15s, border-color .15s;
}
.cta-bar .btn-ghost:hover, .cta-strip .r .ctas a.ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.cta-bar .meta-tag, .cta-strip .l .tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.7); margin-bottom: 18px;
}

/* =============================================================================
   RELATED - cross-link grid
   ============================================================================= */
.related { padding: clamp(48px, 5vw, 80px) var(--pad-x); border-top: 1px solid var(--line); }
.related .head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 28px; padding-top: 18px; border-top: 1px solid var(--ink);
}
.related .head .l { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.related .head h3 { margin: 0; font-family: var(--sans); font-weight: 700; font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.01em; text-transform: uppercase; color: var(--ink); }
.related .grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.related .grid a {
  padding: 24px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px; min-height: 200px;
  transition: background .15s;
}
.related .grid a:last-child { border-right: 0; }
.related .grid a:hover { background: var(--paper); }
.related .grid .n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-3); display: flex; gap: 10px; align-items: center; }
.related .grid .n .dot { width: 6px; height: 6px; background: var(--red); }
.related .grid h4 { margin: 0; font-family: var(--sans); font-weight: 700; font-size: 22px; line-height: 1.05; letter-spacing: -0.01em; text-transform: uppercase; color: var(--ink); }
.related .grid p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.related .grid .arrow {
  margin-top: auto;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3);
}
.related .grid a:hover .arrow { color: var(--red); }
.related .grid a:hover .arrow svg { transform: translateX(4px); }
.related .grid .arrow svg { transition: transform .2s; stroke: currentColor; }

/* =============================================================================
   CONTACT: channels, form, expectations, offices
   ============================================================================= */
.channels { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.channels .c {
  padding: 32px;
  border-right: 1px solid var(--line);
  position: relative;
  display: flex; flex-direction: column; gap: 18px;
  background: var(--white);
}
.channels .c:last-child { border-right: 0; }
.channels .c::before { content: ""; position: absolute; top: 0; left: 0; width: 48px; height: 2px; background: var(--red); }
.channels .c .num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); margin-top: 8px; display: flex; align-items: center; gap: 10px;
}
.channels .c .num .dot { width: 6px; height: 6px; background: var(--red); }
.channels .c h3 { margin: 0; font-family: var(--sans); font-weight: 700; font-size: 22px; line-height: 1.05; letter-spacing: -0.01em; text-transform: uppercase; color: var(--ink); }
.channels .c p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.channels .c .meta {
  margin-top: auto; display: flex; flex-direction: column; gap: 6px;
  padding-top: 18px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-3);
}
.channels .c .meta b { color: var(--ink); font-weight: 500; text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 14px; }
.channels .c .btn {
  margin-top: 14px;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 12px 18px;
  font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--ink); color: var(--white);
  align-self: flex-start;
  transition: background .15s;
}
.channels .c .btn:hover { background: var(--red); }
.channels .c.featured { background: var(--ink); color: var(--white); }
.channels .c.featured h3 { color: var(--white); }
.channels .c.featured p { color: rgba(255,255,255,0.78); }
.channels .c.featured .num { color: rgba(255,255,255,0.55); }
.channels .c.featured .meta { border-top-color: rgba(255,255,255,0.12); color: rgba(255,255,255,0.6); }
.channels .c.featured .meta b { color: var(--white); }
.channels .c.featured .btn { background: var(--red); color: var(--white); }
.channels .c.featured .btn:hover { background: var(--white); color: var(--ink); }

.form-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; }
.form { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.form .row.full { grid-template-columns: 1fr; }
.form .row:last-child { border-bottom: 0; }
.form .field { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; border-right: 1px solid var(--line); }
.form .row.full .field { border-right: 0; }
.form .row > .field:last-child { border-right: 0; }
.form .field label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.form .field input, .form .field select, .form .field textarea {
  border: 0; outline: 0; background: transparent;
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
  width: 100%;
}
.form .field input::placeholder, .form .field textarea::placeholder { color: var(--ink-3); font-weight: 400; }
.form .field input:focus, .form .field select:focus, .form .field textarea:focus { border-bottom-color: var(--red); }
.form .field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.form .field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 12px) 16px, calc(100% - 7px) 16px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 24px;
}
.form .submit {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px;
  background: var(--paper);
  flex-wrap: wrap; gap: 14px;
}
.form .submit .note { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-3); }
.form .submit button {
  background: var(--red); color: var(--white); border: 0;
  padding: 14px 22px;
  font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 14px;
  transition: background .15s;
}
.form .submit button:hover { background: var(--ink); }

.form-side { display: flex; flex-direction: column; gap: 32px; }
.form-side .card { border-top: 1px solid var(--ink); padding-top: 18px; }
.form-side .card h4 {
  margin: 0 0 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 400;
}
.form-side .card .row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 90px 1fr; gap: 12px;
}
.form-side .card .row .l { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-3); text-transform: uppercase; }
.form-side .card .row .v { font-family: var(--sans); font-size: 14px; color: var(--ink); }
.form-side .card .row .v a:hover { color: var(--red); }

.expect { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--white); }
.expect .c { padding: 28px 24px; border-right: 1px solid var(--line); position: relative; }
.expect .c:last-child { border-right: 0; }
.expect .c::before { content: ""; position: absolute; top: 0; left: 0; width: 28px; height: 2px; background: var(--red); }
.expect .c .num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-top: 8px; }
.expect .c h4 { margin: 14px 0 10px; font-family: var(--sans); font-weight: 700; font-size: 18px; letter-spacing: -0.005em; text-transform: uppercase; color: var(--ink); }
.expect .c p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.expect .c .sla { margin-top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--red); text-transform: uppercase; }

.offices { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.offices .o { padding: 32px; border-right: 1px solid var(--line); background: var(--white); }
.offices .o:last-child { border-right: 0; }
.offices .o .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 10px; }
.offices .o .tag::before { content: ""; width: 6px; height: 6px; background: var(--red); }
.offices .o h3 { margin: 14px 0 6px; font-family: var(--sans); font-weight: 700; font-size: 28px; line-height: 1; letter-spacing: -0.015em; text-transform: uppercase; color: var(--ink); }
.offices .o .role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-3); text-transform: uppercase; }
.offices .o address { margin-top: 24px; font-style: normal; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.offices .o .lines {
  margin-top: 24px;
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.offices .o .lines > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.offices .o .lines > div:nth-child(odd) { padding-right: 18px; border-right: 1px solid var(--line); padding-left: 0; }
.offices .o .lines > div:nth-child(even) { padding-left: 18px; }
.offices .o .lines .l { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.offices .o .lines .v { font-family: var(--sans); font-size: 14px; color: var(--ink); margin-top: 4px; }

/* =============================================================================
   FOOTER
   ============================================================================= */
footer.site, footer.foot {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  padding: clamp(48px, 6vw, 80px) var(--pad-x) 24px var(--pad-x);
}
footer.site .grid, footer.foot .grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 48px;
}
footer.foot .mast, footer.site .brand-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
footer.foot .mast img, footer.site .brand-col img { height: 36px; width: auto; }
footer.foot h4, footer.site .col h4 {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0 0 14px 0; font-weight: 500;
}
footer.foot ul, footer.site .col ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
}
footer.foot a, footer.site .col ul a, footer.site .col ul li { font-size: 13px; color: rgba(255,255,255,0.85); }
footer.foot a:hover, footer.site .col ul a:hover { color: var(--red); }
footer.foot .descr, footer.site .brand-col p {
  font-size: 13px; color: rgba(255,255,255,0.6); max-width: 36ch; margin: 16px 0 0;
}
footer.foot .bottom, footer.site .strip {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 18px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
}
footer.site .strip { padding: 18px 0 0 0; border-top: 0; }
footer.site .strip .certs { display: flex; gap: 16px; }
footer.site .strip .certs span { display: inline-flex; gap: 8px; align-items: center; text-transform: uppercase; }
footer.site .strip .certs span::before { content: ""; width: 6px; height: 6px; background: var(--red); display: inline-block; }

/* =============================================================================
   DRAWER (modal index)
   ============================================================================= */
.drawer-bg {
  position: fixed; inset: 0;
  background: rgba(15,15,16,0.97);
  z-index: 100;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
.drawer-bg.is-open, .drawer-bg.open { opacity: 1; visibility: visible; transition: opacity .25s ease, visibility 0s linear 0s; }
.drawer {
  position: fixed; inset: 0; z-index: 101;
  color: var(--white);
  padding: 24px var(--pad-x);
  display: grid; grid-template-rows: auto 1fr auto;
  pointer-events: none;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
.drawer.is-open, .drawer.open { pointer-events: auto; opacity: 1; visibility: visible; transition: opacity .25s ease, visibility 0s linear 0s; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.drawer-mark { display: flex; align-items: center; gap: 10px; }
.drawer-mark img { height: 28px; width: auto; }
.drawer-close {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent; color: var(--white);
  display: grid; place-items: center;
}
.drawer-close:hover { border-color: var(--red); color: var(--red); }
.drawer-body {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 80px;
  align-self: center; padding: 32px 0; width: 100%;
}
.drawer-list .it, .drawer-list a {
  display: grid; grid-template-columns: 56px 1fr 24px;
  align-items: center; gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: padding .2s, color .2s;
}
.drawer-list a:hover { padding-left: 12px; color: var(--red); }
.drawer-list .it .n, .drawer-list a .n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: rgba(255,255,255,0.55); }
.drawer-list a:hover .n { color: var(--red); }
.drawer-list .it .t, .drawer-list a .t {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(28px, 3.6vw, 48px);
  text-transform: uppercase; letter-spacing: -0.02em;
  color: rgba(255,255,255,0.85);
  transition: color .15s;
}
.drawer-list a:hover .t { color: var(--white); }
.drawer-aside { display: flex; flex-direction: column; gap: 28px; }
.drawer-aside .grp { margin-bottom: 0; }
.drawer-aside h4 {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0 0 12px 0; font-weight: 500;
}
.drawer-aside ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.drawer-aside a, .drawer-aside ul li a {
  display: block; padding: 6px 0;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
}
.drawer-aside a:hover { color: var(--red); }
.drawer-foot {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 1100px) {
  .quality, .casestory { grid-template-columns: 1fr; gap: 32px; }
  .quality .body-cols, .casestory .body-cols { column-count: 1; }
  .related .grid { grid-template-columns: repeat(2, 1fr); }
  .related .grid a:nth-child(2) { border-right: 0; }
  .related .grid a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .inner-hero .sub { grid-template-columns: 1fr; gap: 32px; }
  .approach { grid-template-columns: 1fr; }
  .frame-head { grid-template-columns: 1fr; gap: 12px; }
  .systems .h, .systems .r,
  .sols .h, .sols .r { grid-template-columns: 56px 1.4fr 2.2fr 64px; }
  .systems .h > div:nth-child(4), .systems .r > div:nth-child(4),
  .sols .h > div:nth-child(4), .sols .r > div:nth-child(4) { display: none; }
  .cta-bar, .cta-strip { grid-template-columns: 1fr; gap: 24px; }
  .switcher .header-row .rhs a:nth-child(1) { display: none; }
  .switcher nav.tabs.cols-5 { grid-template-columns: repeat(2, 1fr); }
  .switcher nav.tabs a { border-bottom: 1px solid var(--line); }
  .switcher nav.tabs a:nth-child(2n) { border-right: 0; }
  .switcher nav.tabs a:nth-last-child(-n+1) { border-bottom: 0; }
  .breadcrumb .meta { display: none; }
  .reqs { grid-template-columns: 1fr; }
  .reqs > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .reqs > div:last-child { border-bottom: 0; }
  .metrics, .expect { grid-template-columns: 1fr 1fr; }
  .metrics .c:nth-child(2), .expect .c:nth-child(2) { border-right: 0; }
  .metrics .c:nth-child(-n+2), .expect .c:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .channels { grid-template-columns: 1fr; }
  .channels .c { border-right: 0; border-bottom: 1px solid var(--line); }
  .channels .c:last-child { border-bottom: 0; }
  .form-grid { grid-template-columns: 1fr; gap: 32px; }
  .offices { grid-template-columns: 1fr; }
  .offices .o { border-right: 0; border-bottom: 1px solid var(--line); }
  .offices .o:last-child { border-bottom: 0; }
}

@media (max-width: 960px) {
  :root { --side-w: 0px; --pad-x: 20px; }
  .sidebar { display: none; }
  /* Header sits at top: 0 on mobile, regardless of homepage vs subpages.
     overflow-x: clip on body keeps position: sticky working on iOS. */
  .header, .header.fixed {
    position: sticky; top: 0; left: 0; right: 0;
    margin-left: 0;
    z-index: 49;
  }
  main, .page { margin-left: 0; padding-left: 0; }
  /* Homepage hero compensates header height in its own padding;
     subpages flow naturally under sticky header without extra padding. */
  .page section.hero { padding-top: 0; }
  .header nav.primary a:not(.cta):not(.menu) { display: none; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-left { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .hero-strip { grid-template-columns: 1fr; }
  .hero-strip .col.mid { display: none; }

  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip .c:nth-child(2) { border-right: 0; }
  .stat-strip .c:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .about-grid { grid-template-columns: 1fr; }
  .about-grid .col-r { column-count: 1; }

  .ind-tbl .head, .ind-tbl .row { grid-template-columns: 40px 1fr 60px; }
  .ind-tbl .head > :nth-child(3), .ind-tbl .head > :nth-child(4),
  .ind-tbl .row > :nth-child(3),  .ind-tbl .row > :nth-child(4) { display: none; }

  .gantt .head, .gantt .row { grid-template-columns: 140px 1fr; }
  .gantt .row > :nth-child(n+3), .gantt .head > :nth-child(n+3) { display: none; }

  .svc-tbl .row { grid-template-columns: 40px 1fr 56px; }
  .svc-tbl .row .desc { display: none; }

  .steps .step { grid-template-columns: 56px 1fr; }
  .steps .step .body { border-right: 0; }
  .steps .step .check { display: none; }
  .steps .step .body ul { grid-template-columns: 1fr; }

  footer.foot .grid, footer.site .grid { grid-template-columns: 1fr 1fr; }

  .related .grid { grid-template-columns: 1fr; }
  .related .grid a { border-right: 0; border-bottom: 1px solid var(--line); }
  .related .grid a:last-child { border-bottom: 0; }

  .form .row { grid-template-columns: 1fr; }
  .form .field { border-right: 0; border-bottom: 1px solid var(--line); }
  .form .row > .field:last-child { border-bottom: 0; }
  .expect, .metrics { grid-template-columns: 1fr; }
  .expect .c, .metrics .c { border-right: 0; border-bottom: 1px solid var(--line); }
  .expect .c:last-child, .metrics .c:last-child { border-bottom: 0; }

  .drawer-body { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  /* Mobile top-strip stays but trimmed:
     - left side: only the booking email
     - right side: only the language switcher
     The "SPEC" prefix and the "EU-WIDE · 24/7" tag are hidden so the strip
     does not wrap onto two lines on a 393 px viewport. */
  :root { --header-h: 86px; }
  .header .top-strip .lhs > span { display: none; }
  .header .top-strip { padding: 0 var(--pad-x); }
  .header .top-strip .lhs { gap: 0; }
  .header .top-strip .rhs { gap: 14px; }

  /* Tighter padding on mobile so logo + Partner Portal + Menu all fit
     comfortably. Partner Portal stays visible: credibility signal that
     MERIXA runs an actual partner network, not just a brochure site. */
  .header nav.primary a.cta { padding: 0 12px; font-size: 11px; letter-spacing: 0.05em; }
  .header nav.primary a.menu { padding: 0 12px; font-size: 12px; letter-spacing: 0.06em; }
  .header .brand img { height: 24px; }

  /* Swap header menu label "Index" -> "Menu" on phones */
  .header .menu .label-desktop { display: none; }
  .header .menu .label-mobile { display: inline; }

  /* Hero display headline must fit phone widths.
     Without this clamp(48,7.6vw,124) caps at 48px on a 393px viewport,
     and "INTRALOGISTICS" uppercase overflows the hero column. */
  .hero-display { font-size: clamp(34px, 9vw, 56px); line-height: 0.95; letter-spacing: -0.02em; }
  .hero-left, .hero-right { padding: clamp(28px, 6vw, 56px) clamp(20px, 4vw, 28px); gap: 28px; }

  /* Inner-hero h1 also shrinks so subpage h1s do not overflow */
  .inner-hero h1 { font-size: clamp(34px, 9vw, 64px); line-height: 0.95; }

  /* Section h2 fits on phones */
  .h-section { font-size: clamp(26px, 7vw, 44px); }
  .h-section--xl { font-size: clamp(28px, 7.5vw, 52px); }

  .hero-right .specs { grid-template-columns: 1fr; }
  .hero-right .specs .s:nth-child(n) { border-right: 0; }
  .hero-right .specs .s:not(:last-child) { border-bottom: 1px solid rgba(255,255,255,0.12); }

  /* Frame heads stack on phones */
  .frame-head { padding-top: 16px; margin-bottom: 28px; gap: 8px; }
  .frame-head .meta, .frame-head .lhs { flex-direction: row; gap: 14px; align-items: baseline; }

  /* CTA bar tighter on phones */
  .cta-bar h2, .cta-strip .l h2 { font-size: clamp(28px, 8vw, 44px); }
  .cta-bar .meta-tag, .cta-strip .l .tag { margin-bottom: 10px; }

  /* Drawer typography on phones */
  .drawer-list .it .t, .drawer-list a .t { font-size: clamp(22px, 7vw, 36px); }

  /* Pages list (insights, milestones) on mobile: drop tags column */
  .systems .h, .systems .r,
  .sols .h, .sols .r { grid-template-columns: 48px 1fr 56px !important; }
  .systems .h > div:nth-child(3), .systems .h > div:nth-child(4),
  .systems .r > div:nth-child(3), .systems .r > div:nth-child(4),
  .sols .h > div:nth-child(3), .sols .h > div:nth-child(4),
  .sols .r > div:nth-child(3), .sols .r > div:nth-child(4) { display: none; }

  /* Tables that used inline grid styles get reset to mobile-friendly grid */
  .ind-tbl a.row[style] { grid-template-columns: 40px 1fr 60px !important; }
  .ind-tbl a.row[style] > :nth-child(3),
  .ind-tbl a.row[style] > :nth-child(4) { display: none !important; }
}
