/* ═══════════════════════════════════════════════════
   SRNC Group — Shared Stylesheet
   Neue Haas Grotesk Display Pro, local fonts
   ═══════════════════════════════════════════════════ */

@font-face {
  font-family: 'NHD';
  src: url('fonts/NeueHaasDisplay-Thin.woff2') format('woff2'),
       url('fonts/NeueHaasDisplay-Thin.woff') format('woff');
  font-weight: 100; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'NHD';
  src: url('fonts/NeueHaasDisplay-Light.woff2') format('woff2'),
       url('fonts/NeueHaasDisplay-Light.woff') format('woff');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'NHD';
  src: url('fonts/NeueHaasDisplay-Mediu.woff2') format('woff2'),
       url('fonts/NeueHaasDisplay-Mediu.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'NHD';
  src: url('fonts/NeueHaasDisplay-Roman.woff2') format('woff2'),
       url('fonts/NeueHaasDisplay-Roman.woff') format('woff');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'NHD';
  src: url('fonts/NeueHaasDisplay-Bold.woff2') format('woff2'),
       url('fonts/NeueHaasDisplay-Bold.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'NHD';
  src: url('fonts/NeueHaasDisplay-Black.woff2') format('woff2'),
       url('fonts/NeueHaasDisplay-Black.woff') format('woff');
  font-weight: 900; font-style: normal; font-display: swap;
}

/* ── Variables ── */
:root {
  --red:        #C8001A;
  --red-bright: #FF0000; /* micro-accents only — live dots, asterisks, critical flags. Never a fill, never body text. */
  --black: #0C0C0C;
  --off:   #F5F4F0;
  --gl:    #E8E5DE;
  --gm:    #9A9690;
  --gd:    #3A3835;
  --f:     'NHD', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --nav-h: 76px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--f); font-weight: 300; color: var(--black); background: var(--off); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }


/* ── Layout ── */
.w, .container { max-width: 1440px; margin: 0 auto; padding: 0 56px; }

/* ── Navigation ── */
nav#nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500; background: var(--off);
  border-bottom: 1px solid var(--gl);
}
nav#nav.scrolled { border-bottom-color: var(--black); }
nav#nav .w { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }

.nav-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; }
.nav-logo img { height: 34px; width: 34px; }
.nav-logo-name { font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--black); line-height: 1.1; }
.nav-logo-tag  { font-weight: 300; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #6F6B65; margin-top: 2px; }

.nav-right { display: flex; align-items: center; }
.nav-links { list-style: none; display: flex; gap: 32px; }
.nav-links a { font-weight: 400; font-size: 13px; letter-spacing: 0.02em; color: var(--gd); text-decoration: none; transition: color 0.18s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--red); }

/* Nav dropdown */
.nav-has-drop { position: relative; }
.nav-drop {
  display: none;
  position: absolute;
  top: calc(100% + 16px);
  left: -20px;
  background: var(--off);
  border-top: 2px solid var(--red);
  list-style: none;
  padding: 8px 0;
  min-width: 190px;
  border: 1px solid var(--gl);
  z-index: 200;
}
.nav-drop li a {
  display: block;
  padding: 10px 20px;
  font-size: 12px !important;
  letter-spacing: 0.06em;
  color: var(--gd) !important;
  white-space: nowrap;
}
.nav-drop li a:hover { color: var(--red) !important; background: #EDECE8; }
.nav-has-drop:hover .nav-drop,
.nav-has-drop:focus-within .nav-drop { display: block; }

.nav-lang { list-style: none; display: flex; gap: 0; margin-left: 40px; padding-left: 40px; border-left: 1px solid var(--gl); }
.nav-lang li + li { margin-left: 16px; }
.nav-lang a { font-weight: 400; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gm); text-decoration: none; transition: color 0.18s; }
.nav-lang a.on, .nav-lang a:hover { color: var(--black); }

/* Breadcrumb */
nav.breadcrumb { position: static; background: transparent; border: none; }
nav.breadcrumb .w { height: auto; padding-top: 20px; padding-bottom: 0; }
.breadcrumb ol { list-style: none; display: flex; align-items: center; gap: 8px; }
.breadcrumb li { font-weight: 400; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gm); }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; color: var(--gl); }
.breadcrumb a { text-decoration: none; color: var(--gm); transition: color 0.18s; }
.breadcrumb a:hover { color: var(--black); }
.breadcrumb [aria-current="page"] { color: var(--black); }

/* ── Section commons ── */
section { padding: 128px 0; }

.eyebrow {
  font-weight: 400; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gm); margin-bottom: 36px; display: flex; align-items: center; gap: 14px;
}
.eyebrow-dash { display: inline-block; width: 28px; height: 1px; background: var(--red); flex-shrink: 0; }

.sec-label {
  font-weight: 400; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gm); margin-bottom: 72px; display: flex; align-items: center; gap: 16px;
}
.sec-label::after { content: ''; display: block; width: 64px; height: 1px; background: var(--gl); }

h1 { font-weight: 900; font-size: clamp(44px, 7.2vw, 100px); line-height: 1.0; letter-spacing: -0.035em; color: var(--black); }
h1 em { font-style: normal; color: var(--red); }

h2 { font-weight: 900; font-size: clamp(30px, 4.5vw, 58px); letter-spacing: -0.025em; line-height: 1.03; }

h3 { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; line-height: 1.2; }

/* ── Buttons ── */
.btn {
  display: inline-block; font-weight: 500; font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--off); background: var(--black); padding: 15px 30px;
  text-decoration: none; transition: background 0.2s;
  border: 1px solid transparent;
}
.btn:hover { background: var(--red); }

/* On dark sections, a black button disappears into the background —
   invert to red by default, gray on hover. */
.dark .btn, .btn.dark {
  background: var(--red); border-color: var(--red); color: var(--off);
}
.dark .btn:hover, .btn.dark:hover {
  background: #3A3835; border-color: #3A3835; color: var(--off);
}

/* Outline variant for dark sections — transparent + white border/text,
   same gray hover as .dark .btn so the pair reads as one family. */
.dark .btn-outline, .btn-outline.dark {
  background: transparent; border-color: var(--off); color: var(--off);
}
.dark .btn-outline:hover, .btn-outline.dark:hover {
  background: #3A3835; border-color: #3A3835; color: var(--off);
}

.btn-ghost {
  display: inline-block; font-weight: 400; font-size: 12px; letter-spacing: 0.06em;
  color: var(--gd); text-decoration: none; margin-left: 32px;
  border-bottom: 1px solid var(--gl); padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--red); border-color: var(--red); }

.btn-outline {
  display: inline-block; font-weight: 500; font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--black); border: 1px solid var(--gl);
  padding: 14px 28px; text-decoration: none; transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--black); }

/* ── Ghost numbers (decorative) ── */
.ghost {
  font-weight: 100; line-height: 1; letter-spacing: -0.05em;
  color: var(--gl); user-select: none; pointer-events: none;
}
.ghost-n {
  display: block; font-weight: 100; font-size: clamp(80px, 12vw, 160px);
  line-height: 1; letter-spacing: -0.05em; color: var(--gl);
  user-select: none; pointer-events: none; margin-bottom: -0.15em;
  opacity: 0.5;
}

/* ── Device image grid (programme pages) ── */
.device-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin: 48px 0 0;
}
.device-card {
  background: #F0EFEB;
  padding: 28px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.device-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  object-position: center;
  filter: grayscale(0.15);
}
.device-card figcaption {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gm);
  text-align: center;
  line-height: 1.4;
}
.device-card-dark {
  background: #111;
}
.device-card-dark img { filter: brightness(0.92) grayscale(0.1); }
.device-card-dark figcaption { color: #5A5650; }

/* ── Client logo strip ── */
.logo-strip { border-top: 1px solid var(--gl); padding: 64px 0; background: #FFFFFF; }
.logo-strip-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0; align-items: center; }
.logo-strip-grid img {
  max-width: 100%; max-height: 18px; margin: 0 auto;
  filter: grayscale(1) contrast(0.9) brightness(0.75);
  opacity: 0.55; transition: opacity 0.2s, filter 0.2s;
}
.logo-strip-grid img:hover { opacity: 1; filter: grayscale(0.4); }
.logo-strip-cell { display: flex; align-items: center; justify-content: center; padding: 6px 10px; }
.logo-strip-grid-business {
  grid-template-columns: repeat(6, 1fr);
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--gl);
}
.logo-strip-grid-business img { max-height: 24px; opacity: 0.7; }

/* ── Random device showcase (JS-populated) ── */
#device-random-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  margin-top: 48px;
}
#device-random-grid .device-card { padding: 20px 14px 14px; }
#device-random-grid .device-card img { height: 88px; }
#device-random-grid .device-card figcaption { font-size: 9px; }

/* ── Method grid ── */
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--gl); }
.mc { background: var(--off); padding: 52px 44px; }
.mc-num { font-weight: 400; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); margin-bottom: 32px; }
.mc h3 { margin-bottom: 16px; }
.mc > p { font-weight: 300; font-size: 15px; line-height: 1.7; color: var(--gd); margin-bottom: 32px; }
.mc ul { list-style: none; }
.mc ul li {
  font-weight: 300; font-size: 13px; line-height: 1.45; color: var(--gm);
  padding: 9px 0; border-bottom: 1px solid var(--gl);
  display: flex; align-items: flex-start; gap: 10px;
}
.mc ul li::before { content: '—'; color: var(--red); font-size: 10px; flex-shrink: 0; margin-top: 2px; }

/* ── Spec grid (dark) ── */
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: #1A1816; }
.spec { background: #0D0C0B; padding: 28px 24px; border-left: 2px solid transparent; transition: border-color 0.25s; }
.spec:hover { border-left-color: var(--red); }
.spec-n { font-weight: 900; font-size: 44px; letter-spacing: -0.04em; line-height: 1; color: var(--off); margin-bottom: 7px; }
.spec-l { font-weight: 300; font-size: 11px; line-height: 1.45; color: #8A8680; text-transform: uppercase; letter-spacing: 0.07em; }

/* ── Stats bar (black) ── */
.stat-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--black); }
.stat { padding: 44px 36px; border-right: 1px solid #1A1816; }
.stat:last-child { border-right: none; }
.stat-n { font-weight: 900; font-size: clamp(38px, 5vw, 68px); letter-spacing: -0.04em; line-height: 1; color: var(--off); margin-bottom: 8px; }
.stat-l { font-weight: 300; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gm); }

/* ── Partner / Institution grid ── */
.inst-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--gl); }
.inst { background: var(--off); padding: 32px; }
.inst-country { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gm); margin-bottom: 8px; }
.inst-name { font-weight: 400; font-size: 14px; line-height: 1.4; color: var(--gd); }
.inst-empty { background: var(--off); padding: 32px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--gl); }
.inst-empty span { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gl); }

/* ── Contact DL ── */
dl.ci dt { font-weight: 400; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gm); margin-top: 36px; margin-bottom: 6px; }
dl.ci dt:first-child { margin-top: 0; }
dl.ci dd { font-weight: 300; font-size: 18px; line-height: 1.5; color: var(--black); }
dl.ci dd a { color: var(--black); text-decoration: none; border-bottom: 1px solid var(--gl); transition: color 0.2s, border-color 0.2s; }
dl.ci dd a:hover { color: var(--red); border-color: var(--red); }

/* ── Form ── */
form label { display: block; font-weight: 400; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gm); margin-top: 28px; margin-bottom: 8px; }
form label:first-of-type { margin-top: 0; }
form input, form textarea, form select {
  display: block; width: 100%; font-family: var(--f); font-weight: 300; font-size: 15px;
  color: var(--black); background: transparent; border: none;
  border-bottom: 1px solid var(--gl); padding: 10px 0; outline: none;
  transition: border-color 0.2s; -webkit-appearance: none; border-radius: 0;
}
form input:focus, form textarea:focus, form select:focus { border-color: var(--black); }
form textarea { resize: none; height: 96px; }
form button {
  margin-top: 40px; font-family: var(--f); font-weight: 500; font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--off);
  background: var(--black); border: none; padding: 15px 30px; cursor: pointer; transition: background 0.2s;
}
form button:hover { background: var(--red); }

/* ── Footer ── */
footer { background: var(--black); padding: 52px 0; margin-top: 128px; }
footer .w { display: flex; align-items: center; justify-content: space-between; }
.footer-copy { font-weight: 300; font-size: 12px; letter-spacing: 0.04em; color: #8A8680; line-height: 1.6; }
footer img.footer-logo { height: 30px; opacity: 0.4; }
.footer-links { font-weight: 300; font-size: 12px; letter-spacing: 0.04em; color: #8A8680; text-align: right; line-height: 1.8; }
.footer-links a { color: #B5B1AA; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--red); }

/* ── Page hero (subpages) ── */
.page-hero { padding-top: calc(var(--nav-h) + 80px); padding-bottom: 96px; border-bottom: 1px solid var(--gl); }
.page-hero h1 { margin-bottom: 28px; }
.page-hero .lead { font-weight: 300; font-size: clamp(17px, 2vw, 22px); line-height: 1.65; color: var(--gd); max-width: 620px; }

/* ── Prose block ── */
.prose { font-weight: 300; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.8; color: var(--gd); }
.prose p { margin-bottom: 28px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 500; color: var(--black); }
.prose a { color: var(--black); text-decoration: none; border-bottom: 1px solid var(--gl); transition: border-color 0.2s; }
.prose a:hover { border-color: var(--black); }
.prose abbr { text-decoration: none; border-bottom: 1px dotted var(--gm); cursor: help; }

/* ── Two-col layout ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: start; }
.three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 64px; align-items: start; }
.sidebar-layout { display: grid; grid-template-columns: 300px 1fr; gap: 96px; align-items: start; }

/* ── Table (for specs) ── */
table.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.spec-table th { font-weight: 500; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gm); text-align: left; padding: 12px 16px; border-bottom: 2px solid var(--gl); }
table.spec-table td { font-weight: 300; color: var(--gd); padding: 14px 16px; border-bottom: 1px solid var(--gl); vertical-align: top; line-height: 1.5; }
table.spec-table tr:last-child td { border-bottom: none; }
table.spec-table td:first-child { font-weight: 500; color: var(--black); width: 38%; }

/* ── Dark section ── */
.dark { background: var(--black); color: var(--off); }
.dark .sec-label, .sec-label.dark { color: #8A8680; }
.dark .sec-label::after, .sec-label.dark::after { background: #4A4845; }
.dark h2 { color: var(--off); }
.dark .prose, .prose.dark { color: #B5B1AA; }
.dark .prose strong, .prose.dark strong { color: var(--off); }

/* ── Inline tag ── */
.tag {
  font-weight: 400; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--red); border: 1px solid rgba(200,0,26,0.4); padding: 5px 10px;
  display: inline-block;
}
.tag-light {
  font-weight: 400; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gm); border: 1px solid var(--gl); padding: 5px 10px; display: inline-block;
}
.tool-badge {
  font-weight: 500; font-size: 12px; letter-spacing: 0.02em;
  color: var(--gd); background: #F0EFEB; border: 1px solid var(--gl);
  padding: 7px 13px; display: inline-block; line-height: 1;
}

/* ── Micro-accent: --red-bright ── */
/* Small, high-signal marks only — a live indicator, a critical asterisk,
   a single flagged cell in a table. Never a fill, never more than one
   per screen; if everything is urgent, nothing is. */
.dot-live {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--red-bright); flex-shrink: 0;
  animation: dot-live-pulse 1.6s ease-in-out infinite;
}
@keyframes dot-live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.accent-mark {
  color: var(--red-bright); font-weight: 700;
}

/* ── Related pages ── */
.related { border-top: 1px solid var(--gl); padding: 80px 0; margin-top: 0; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--gl); margin-top: 48px; }
.related-cell { background: var(--off); padding: 40px; text-decoration: none; display: block; transition: background 0.2s; }
.related-cell:hover { background: #EDEAE3; }
.related-cell .rc-label { font-weight: 400; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gm); margin-bottom: 12px; }
.related-cell .rc-title { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; color: var(--black); margin-bottom: 8px; }
.related-cell .rc-desc { font-weight: 300; font-size: 13px; line-height: 1.55; color: var(--gm); }
.related-cell .rc-arrow { display: inline-block; margin-top: 20px; font-size: 12px; letter-spacing: 0.08em; color: var(--red); text-transform: uppercase; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .w { padding: 0 28px; }
  section { padding: 80px 0; }
  .two-col, .three-col, .sidebar-layout { grid-template-columns: 1fr; gap: 48px; }
  .method-grid { grid-template-columns: 1fr; }
  .inst-grid { grid-template-columns: 1fr 1fr; }
  .stat-bar { grid-template-columns: 1fr 1fr; }
  .stat { border-right: none; border-bottom: 1px solid #1A1816; }
  .stat:nth-child(odd) { border-right: 1px solid #1A1816; }
  .related-grid { grid-template-columns: 1fr; }
  footer .w { flex-direction: column; gap: 28px; text-align: center; }
  footer img.footer-logo { display: none; }
  .page-hero { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 56px; }
}

/* ── Unit logo lockups ── */
.unit-logo { display: flex; align-items: center; gap: 14px; height: 52px; text-decoration: none; }
.unit-logo img { height: 100%; width: auto; display: block; }
.unit-logo span { font-weight: 700; font-size: 19px; letter-spacing: -0.01em; color: var(--black); white-space: nowrap; }
.unit-logo.big { height: 64px; }
.unit-logo.big span { font-size: 24px; }
.unit-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--gl); margin-bottom: 64px; }
.unit-row > a { background: var(--off); padding: 36px 32px; display: flex; align-items: center; text-decoration: none; transition: background 0.2s; }
.unit-row > a:hover { background: #EDEAE3; }
@media (max-width: 960px) { .unit-row { grid-template-columns: 1fr; } }
.unit-logo.big img.mark-wide { height: auto; width: 56px; }

/* ── Unit cards: lockup as card header ── */
.unit-cards .unit-logo { height: 48px; margin-bottom: 36px; }
.unit-cards .unit-logo img.mark-wide { height: auto; width: 52px; }
.unit-cards .unit-logo span { font-size: 17px; }

/* ── Client logos: one tidy 8-column grid, uniform optical size ── */
.client-grid { display: grid; grid-template-columns: repeat(8, 1fr); align-items: center; }
.client-grid-biz { grid-template-columns: repeat(6, 1fr); width: 75%; margin: 0 auto; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--gl); }
.client-cell { height: 96px; display: flex; align-items: center; justify-content: center; padding: 0 12px; }
.client-cell img { max-height: 56px; max-width: 100%; width: auto; height: auto; opacity: 0.8; transition: opacity 0.2s; }
.client-cell img:hover { opacity: 1; }
.client-grid-biz .client-cell img { max-height: 34px; }
.client-cell img[src$=".svg"] { filter: grayscale(1) contrast(1.15); }
@media (max-width: 960px) {
  .client-grid, .client-grid-biz { grid-template-columns: repeat(3, 1fr); width: 100%; }
}
.unit-cards .mc { display: flex; flex-direction: column; }
.unit-cards .mc > p:last-child { margin-top: auto; padding-top: 8px; }

/* ── Hero: unit row ── */
.hero-units { margin-top: 64px; border-top: 1px solid var(--gl); display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-units a { padding: 22px 24px 0 0; text-decoration: none; color: var(--black); display: block; }
.hero-units a + a { padding-left: 24px; border-left: 1px solid var(--gl); }
.hero-units strong { display: block; font-weight: 700; font-size: 15px; letter-spacing: -0.01em; margin-bottom: 4px; transition: color 0.2s; }
.hero-units span { display: block; font-weight: 300; font-size: 12px; letter-spacing: 0.02em; color: var(--gd); line-height: 1.4; }
.hero-units a:hover strong { color: var(--red); }
@media (max-width: 960px) { .hero-units { grid-template-columns: 1fr 1fr; gap: 0; } .hero-units a:nth-child(3) { padding-left: 0; border-left: 0; } .hero-units a { padding-bottom: 18px; } }
@media (max-width: 560px) { .hero-units { grid-template-columns: 1fr; } .hero-units a + a { padding-left: 0; border-left: 0; border-top: 1px solid var(--gl); margin-top: 18px; } }

/* ── Mobile navigation: links stay visible on a second row ── */
@media (max-width: 960px) {
  :root { --nav-h: 96px; }
  nav#nav .w { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 10px; align-content: center; }
  .nav-right { width: 100%; margin-top: 10px; }
  .nav-links { display: flex; gap: 26px; }
  .nav-links a { font-size: 13px; }
  .nav-logo-tag { display: none; }
}
@media (max-width: 560px) {
  .nav-links { gap: 20px; }
  h1 { word-break: normal; overflow-wrap: break-word; }
}

/* ── Home layout grids (were inline, so they could not respond) ── */
.hero-sub { display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: end; }
.approach-grid { display: grid; grid-template-columns: 300px 1fr; gap: 100px; align-items: start; }
.method-grid-2 { grid-template-columns: 1fr 1fr; }
.stat-bar-5 { grid-template-columns: repeat(5, 1fr); }
.ai-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 80vh; }
.ai-split > figure { min-height: 340px; }
@media (max-width: 960px) {
  .hero-sub { grid-template-columns: 1fr; gap: 32px; }
  .hero-sub > div:last-child { align-items: flex-start !important; }
  .approach-grid { grid-template-columns: 1fr; gap: 40px; }
  .approach-grid > div:first-child { position: static !important; }
  .method-grid-2 { grid-template-columns: 1fr; }
  .stat-bar-5 { grid-template-columns: 1fr 1fr; }
  .ai-split { grid-template-columns: 1fr; min-height: 0; }
  .ai-split > div { padding: 56px 28px !important; }
}

/* thin line icons on the four-things cards */
.mc-icon { display: block; color: var(--red); margin-bottom: 40px; }

/* ── Red menu bar: logo left, links centred, Contact as button ── */
nav#nav { background: var(--red); border-bottom: 0; }
nav#nav.scrolled { border-bottom: 0; }
nav#nav .w { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
nav#nav .nav-links { justify-self: center; gap: 40px; }
nav#nav .nav-links a { color: rgba(255,255,255,0.82); }
nav#nav .nav-links a:hover, nav#nav .nav-links a[aria-current="page"] { color: #fff; }
.nav-cta { justify-self: end; font-weight: 500; font-size: 13px; letter-spacing: 0.02em; text-decoration: none; color: var(--red); background: #fff; padding: 10px 22px; transition: background 0.18s, color 0.18s; }
.nav-cta:hover, .nav-cta[aria-current="page"] { background: var(--black); color: #fff; }
@media (max-width: 960px) {
  :root { --nav-h: 108px; }
  nav#nav .w { grid-template-columns: 1fr auto; grid-template-areas: "logo cta" "links links"; row-gap: 10px; height: auto; padding-top: 20px; padding-bottom: 14px; }
  .nav-logo { grid-area: logo; }
  .nav-cta { grid-area: cta; padding: 8px 18px; }
  nav#nav .nav-links { grid-area: links; justify-self: start; gap: 22px; }
}

/* ── Footer ── */
footer { padding: 72px 0 32px; }
footer .w { display: block; }
.foot-top { display: grid; grid-template-columns: 1.6fr 1.3fr 0.7fr 1fr; gap: 56px; padding-bottom: 56px; border-bottom: 1px solid #2A2927; }
.foot-brand img { height: 40px; width: 40px; margin-bottom: 24px; }
.foot-brand p { font-weight: 300; font-size: 14px; line-height: 1.7; color: #B5B1AA; max-width: 380px; }
.foot-col h4 { font-weight: 400; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: #8A8680; margin-bottom: 24px; }
.foot-col ul { list-style: none; }
.foot-col a { color: #B5B1AA; text-decoration: none; font-weight: 300; font-size: 14px; transition: color 0.2s; }
.foot-col a:hover { color: #fff; }
.foot-list li + li { margin-top: 12px; }
.foot-units li + li { margin-top: 18px; }
.foot-units a { display: flex; align-items: center; gap: 14px; }
.foot-units img { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; filter: brightness(0) invert(1); opacity: 0.85; }
.foot-units img.plain { filter: none; }
.foot-units a:hover img { opacity: 1; }
.foot-col address { font-style: normal; font-weight: 300; font-size: 14px; line-height: 1.8; color: #B5B1AA; }
.foot-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 28px; font-weight: 300; font-size: 12px; letter-spacing: 0.04em; color: #8A8680; }
@media (max-width: 960px) {
  footer { padding: 56px 0 28px; }
  footer .w { text-align: left; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 44px 32px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-bottom { flex-direction: column; gap: 6px; }
}
@media (max-width: 560px) { .foot-top { grid-template-columns: 1fr; } }

/* big logos in the hero unit row */
.hero-units a { padding-top: 32px; }
.hero-units .hu-logo { height: 64px; width: auto; margin-bottom: 24px; }
.hero-units .hu-logo.wide { height: auto; width: 96px; margin-top: 8px; margin-bottom: 32px; }
.hero-units strong { font-size: 17px; }
@media (max-width: 960px) { .hero-units { grid-template-columns: 1fr 1fr; } .hero-units a:nth-child(3) { border-left: 0; padding-left: 0; } .hero-units a { padding-bottom: 28px; } }

.foot-brand img { height: 150px; width: 150px; margin-bottom: 28px; }

#hero-waves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* hero figures, set like a caption row under the title */
.hero-stats { display: flex; gap: 56px; margin-top: 40px; }
.hero-stats b { display: block; font-weight: 200; font-size: clamp(34px, 4vw, 56px); letter-spacing: -0.03em; line-height: 1; color: var(--black); }
.hero-stats span { display: block; margin-top: 10px; font-weight: 300; font-size: 12px; letter-spacing: 0.04em; color: var(--gd); }
@media (max-width: 560px) { .hero-stats { gap: 28px; flex-wrap: wrap; } }
/* hero unit logos: small, like a signature */
.hero-units a { padding-top: 24px; }
.hero-units .hu-logo { height: 30px; margin-bottom: 16px; }
.hero-units .hu-logo.wide { width: 52px; margin-top: 4px; margin-bottom: 18px; }

/* dark hero */
#hero.hero-dark h1, #hero.hero-dark h1 > span { color: #fff !important; }
#hero.hero-dark h1 span span { color: #FF1E3C !important; }
#hero.hero-dark .hero-sub p, #hero.hero-dark .hero-stats span, #hero.hero-dark .hero-units span { color: #B5B1AA !important; }
#hero.hero-dark .hero-stats b, #hero.hero-dark .hero-units strong { color: #fff; }
#hero.hero-dark .hero-units, #hero.hero-dark .hero-units a + a { border-color: #2A2927; }
#hero.hero-dark .hero-units a:hover strong { color: #FF1E3C; }
#hero.hero-dark .hero-units .hu-logo:not([src*="mark-light"]) { filter: brightness(0) invert(1); }
#hero.hero-dark .btn { background: var(--red); color: #fff; }
#hero.hero-dark .btn:hover { background: #fff; color: var(--black); }
#hero.hero-dark a[href$="/center"][style] { color: #B5B1AA !important; border-color: #3A3835 !important; }
#hero.hero-dark div[style*="opacity:0.12"] { background: #fff !important; opacity: 0.14 !important; }

.foot-brand img.foot-logo { height: auto; width: 168px; margin-bottom: 28px; }

.nav-logo img.nav-mark { height: 36px; width: auto; }
/* DF mark is wide: scale it down to the optical weight of the others; keep the same total height so the names align */
.hero-units .hu-logo.wide { width: 38px; margin-top: 5px; margin-bottom: 21px; }

/* home: black menu bar that turns red on hover */
body.home nav#nav { background: var(--black); transition: background 0.25s; }
body.home nav#nav:hover { background: var(--red); }
body.home nav#nav .nav-cta { color: var(--black); transition: color 0.25s, background 0.18s; }
body.home nav#nav:hover .nav-cta { color: var(--red); }
body.home nav#nav .nav-cta:hover { background: var(--black); color: #fff; }
.foot-brand img.foot-logo { width: 76px; margin-bottom: 22px; }

/* technology partners on About */
.tech-grid { display: flex; flex-wrap: wrap; justify-content: center; border-top: 1px solid var(--gl); border-left: 1px solid var(--gl); }
.tech-cell { width: 25%; height: 112px; display: flex; align-items: center; justify-content: center; padding: 0 28px; border-right: 1px solid var(--gl); border-bottom: 1px solid var(--gl); box-sizing: border-box; }
.tech-cell img { max-width: 150px; max-height: 34px; width: auto; height: auto; opacity: 0.75; transition: opacity 0.2s; }
.tech-cell:hover img { opacity: 1; }
.tech-cell img[src$=".svg"] { filter: grayscale(1) contrast(1.1); }
.tech-cell img[src*="sr-research"], .tech-cell img[src*="plux"], .tech-cell img[src*="neuroelectrics"], .tech-cell img[src*="shimmer"] { max-height: 52px; }
@media (max-width: 960px) { .tech-cell { width: 33.333%; } }
@media (max-width: 560px) { .tech-cell { width: 50%; height: 96px; padding: 0 16px; } }
@media (min-width: 1100px) { .tech-cell { width: 14.2857%; padding: 0 20px; } .tech-cell img { max-width: 128px; } }


.contact-compose { padding-top: 80px; padding-bottom: 40px; }
.contact-form { max-width: 560px; justify-self: end; width: 100%; }
@media (max-width: 960px) { .contact-compose { padding-top: 56px; } .contact-form { justify-self: stretch; max-width: none; } }
