/* NG Consulting & Engineering — site styles
   Clean, product-page inspired layout (large type, white space, full-bleed media,
   translucent navigation) in the original NG brand colours:
   forest black #0D1A10, amber #F5B429, steel blue #A4B8DE, slate #8497B0,
   deep teal #15434C, mist #F4F7F9. Fonts: DM Sans + Roboto (Cyrillic). */

:root {
  --bg: #ffffff;
  --bg-alt: #f4f7f9;
  --bg-dark: #0d1a10;
  --bg-dark-2: #17261b;
  --text: #0d1a10;
  --text-2: #5d6b7d;
  --text-inv: #f4f7f9;
  --text-inv-2: #a9b6c6;
  --accent: #15434c;          /* deep teal: links on light */
  --accent-hover: #0f3239;
  --accent-on-dark: #f5b429;  /* amber: links on dark */
  --amber: #f5b429;
  --amber-hover: #ffc443;
  --steel: #a4b8de;
  --slate: #8497b0;
  --line: #d5dde6;
  --radius-lg: 28px;
  --radius-md: 18px;
  --nav-h: 48px;
  --max: 1080px;
  --max-wide: 1280px;
  --font: "DM Sans", "Roboto", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.25,.1,.25,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  top: env(safe-area-inset-top, 0px);
  background: rgba(255,255,255,.82);
  border-bottom: 1px solid rgba(13,26,16,.08);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 15px; letter-spacing: 0; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text); font-size: 12.5px; opacity: .88; letter-spacing: -0.01em; transition: opacity .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; text-decoration: none; color: var(--accent); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--amber); padding-bottom: 3px; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang { position: relative; }
.lang-btn {
  background: none; border: 0; color: var(--text); font: inherit; font-size: 12px; cursor: pointer;
  display: flex; align-items: center; gap: 6px; padding: 6px 4px; opacity: .9;
}
.lang-btn svg { width: 14px; height: 14px; }
.lang-menu {
  position: absolute; right: 0; top: 36px; min-width: 150px;
  background: rgba(255,255,255,.98); border-radius: 12px; border: 1px solid var(--line); padding: 6px;
  list-style: none; margin: 0; display: none;
  box-shadow: 0 10px 40px rgba(13,26,16,.15);
}
.lang.open .lang-menu { display: block; }
.lang-menu a { display: block; color: var(--text); font-size: 13px; padding: 8px 12px; border-radius: 8px; }
.lang-menu a:hover { background: var(--bg-alt); text-decoration: none; }
.lang-menu a[aria-current="true"] { color: var(--accent); font-weight: 600; }
.burger { display: none; background: none; border: 0; width: 32px; height: 32px; cursor: pointer; padding: 0; }
.burger span { display: block; width: 17px; height: 1.5px; background: var(--text); margin: 5px auto; transition: transform .3s var(--ease), opacity .3s; }

@media (max-width: 860px) {
  .burger { display: block; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,.98); flex-direction: column; align-items: flex-start;
    padding: 18px 40px; gap: 0; display: none;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links a { display: block; font-size: 24px; font-weight: 600; padding: 14px 0; opacity: 1; }
  .nav-links a[aria-current="page"] { box-shadow: none; }
  .nav.open .burger span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .nav.open .burger span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
}

/* Sub-navigation (page title bar) */
.subnav {
  position: sticky; top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); z-index: 90;
  background: rgba(255,255,255,.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.subnav-inner { max-width: var(--max); margin: 0 auto; padding: 0 22px; height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.subnav-title { font-size: 21px; font-weight: 600; white-space: nowrap; }
.subnav .btn { padding: 5px 13px; font-size: 12px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-block; background: var(--amber); color: var(--bg-dark); font-weight: 600; border-radius: 980px;
  padding: 11px 22px; font-size: 17px; line-height: 1.2; border: 0; cursor: pointer;
  transition: background .2s;
}
.btn:hover { background: var(--amber-hover); text-decoration: none; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.btn-ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.btn-ghost:hover { background: var(--accent); color: #fff; }
.btn-ghost { font-weight: 500; }
.on-dark .btn-ghost { color: var(--accent-on-dark); box-shadow: inset 0 0 0 1px var(--accent-on-dark); }
.on-dark .btn-ghost:hover { background: var(--accent-on-dark); color: var(--bg-dark); }
.link-more { font-size: 17px; white-space: nowrap; }
.link-more::after { content: " ›"; }
.on-dark .link-more, .on-dark a { color: var(--accent-on-dark); }
.cta-row { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 22px; }

/* ---------- Hero with video ---------- */
.hero {
  position: relative; min-height: calc(100vh - var(--nav-h)); min-height: calc(100svh - var(--nav-h));
  background: var(--bg-dark); color: var(--text-inv); overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
}
.hero video, .hero .hero-poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity 1.2s var(--ease);
}
.hero video { opacity: 0; }
.hero video.is-active { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,26,16,.45) 0%, rgba(13,26,16,.30) 40%, rgba(13,26,16,.68) 75%, rgba(13,26,16,.93) 100%);
}
.hero-content { position: relative; z-index: 2; text-align: center; padding: 0 22px 11vh; max-width: 980px; }
.eyebrow { font-size: 21px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; letter-spacing: .004em; }
.on-dark .eyebrow, .hero .eyebrow { color: #f5f5f7; opacity: .85; }
.display {
  font-size: clamp(40px, 7.2vw, 88px); line-height: 1.04; font-weight: 700; letter-spacing: -0.03em;
}
.hero .display { background: linear-gradient(180deg,#fff 35%,var(--steel)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.35; font-weight: 400; color: var(--text-2); margin-top: 14px; letter-spacing: .005em; }
.hero .lead { color: #e3e9f0; }
.hero-controls { position: absolute; z-index: 3; right: 22px; bottom: 22px; display: flex; gap: 8px; align-items: center; }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.4); cursor: pointer; }
.hero-dots button.is-active { background: #fff; width: 22px; border-radius: 6px; transition: width .3s; }
.hero-pause { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; cursor: pointer; display: grid; place-items: center; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero-pause svg { width: 14px; height: 14px; }
.hero-credit { position: absolute; z-index: 3; left: 22px; bottom: 26px; font-size: 11px; color: rgba(255,255,255,.55); }
.hero-credit a { color: rgba(255,255,255,.7); }

/* ---------- Sections ---------- */
.section { padding: 110px 22px; }
.section-tight { padding: 70px 22px; }
.section.alt { background: var(--bg-alt); }
.section.on-dark { background: var(--bg-dark); color: var(--text-inv); }
.on-dark .gradient-text { background: linear-gradient(90deg,var(--steel),var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section.on-dark .lead, .on-dark .muted { color: var(--text-inv-2); }
.wrap { max-width: var(--max); margin: 0 auto; }
.wrap-wide { max-width: var(--max-wide); margin: 0 auto; }
.center { text-align: center; }
.headline { font-size: clamp(32px, 5vw, 56px); line-height: 1.07; font-weight: 700; letter-spacing: -0.025em; }
.headline-sm { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
.muted { color: var(--text-2); }
.gradient-text { background: linear-gradient(90deg,var(--accent),var(--slate) 60%,var(--steel)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.quote {
  font-size: clamp(30px, 4.6vw, 56px); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; text-align: center;
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 60px; }
.stat { text-align: center; }
.stat-num { font-size: clamp(40px, 5.4vw, 64px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.stat-label { color: var(--text-2); font-size: 15px; margin-top: 10px; }
.on-dark .stat-label { color: var(--text-inv-2); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 40px; } }

/* Tiles (product-grid style) */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 12px; max-width: 1440px; margin: 0 auto; }
.tile {
  position: relative; overflow: hidden; border-radius: 0; background: var(--bg-alt);
  min-height: 580px; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 52px 30px 0; color: var(--text);
}
.tile.dark { background: var(--bg-dark); color: var(--text-inv); }
.tile.dark .tile-text { color: var(--text-inv-2); }
.tile.dark a { color: var(--accent-on-dark); }
.tile h3 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.tile-text { font-size: 19px; color: var(--text-2); margin-top: 8px; max-width: 460px; line-height: 1.35; }
.tile .cta-row { margin-top: 16px; }
.tile-media { margin-top: auto; width: 100%; max-width: 560px; aspect-ratio: 16/10; overflow: hidden; border-radius: 18px 18px 0 0; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover .tile-media img { transform: scale(1.04); }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr; } .tile { min-height: 480px; } }

/* Card grid */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--bg); border-radius: var(--radius-md); padding: 32px 30px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  display: flex; flex-direction: column;
}
.section.alt .card { background: #fff; }
.on-dark .card { background: var(--bg-dark-2); box-shadow: none; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0,0,0,.1); }
.card-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px; background: linear-gradient(135deg,#e7eef9,var(--steel)); color: var(--accent); }
.on-dark .card-icon { background: rgba(245,180,41,.14); color: var(--amber); }
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 21px; line-height: 1.25; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 16px; }
.on-dark .card p { color: var(--text-inv-2); }
.card .kicker { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--slate); margin-bottom: 8px; }
.card-img { margin: -32px -30px 24px; aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius-md) var(--radius-md) 0 0; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card .link-more { margin-top: auto; padding-top: 18px; font-size: 16px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards, .cards.two { grid-template-columns: 1fr; } }

/* Feature rows (alternating media/text) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; padding: 70px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.on-dark .feature + .feature { border-color: #333; }
.feature.reverse .feature-media { order: 2; }
.feature-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; background: var(--bg-alt); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-media.contain { background: #fff; display: grid; place-items: center; padding: 30px; }
.feature-media.contain img { object-fit: contain; }
.feature h2, .feature h3 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
.feature .tagline { font-size: 19px; font-weight: 600; color: var(--slate); margin: 6px 0 14px; }
.feature p + p { margin-top: 14px; }
.feature p { color: var(--text-2); font-size: 18px; }
.on-dark .feature p { color: var(--text-inv-2); }
.feature ul { padding-left: 20px; margin: 16px 0 0; color: var(--text-2); }
.feature li { margin: 6px 0; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 30px; padding: 50px 0; }
  .feature.reverse .feature-media { order: 0; }
}

/* Check list */
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; font-size: 17px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.checks.cols { grid-template-columns: 1fr 1fr; column-gap: 40px; }
@media (max-width: 760px) { .checks.cols { grid-template-columns: 1fr; } }

/* Timeline / case list */
.case-list { list-style: none; padding: 0; margin: 50px 0 0; counter-reset: case; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.case-list li {
  counter-increment: case; background: #fff; border-radius: var(--radius-md); padding: 28px 28px 28px 84px; position: relative;
  font-size: 17px; box-shadow: 0 4px 24px rgba(0,0,0,.05);
}
.on-dark .case-list li { background: var(--bg-dark-2); color: var(--text-inv); box-shadow: none; }
.case-list li::before {
  content: counter(case, decimal-leading-zero); position: absolute; left: 28px; top: 26px;
  font-size: 28px; font-weight: 700; letter-spacing: -0.03em;
  background: linear-gradient(135deg,var(--accent),var(--slate)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.case-list strong { display: block; font-size: 15px; color: var(--accent); margin-top: 8px; font-weight: 600; }
.on-dark .case-list strong { color: var(--accent-on-dark); }
@media (max-width: 760px) { .case-list { grid-template-columns: 1fr; } }

/* Logo strip (text-based, no third-party logos) */
.clients { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 44px; margin-top: 40px; }
.clients span { font-size: clamp(20px, 2.6vw, 30px); font-weight: 700; letter-spacing: -0.02em; color: var(--slate); }
.on-dark .clients span { color: #6f8197; }

/* People */
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 50px; }
.person { background: #fff; border-radius: var(--radius-lg); padding: 40px; }
.person-head { display: flex; gap: 18px; align-items: center; margin-bottom: 22px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; font-weight: 700; color: #fff; background: var(--accent); flex: none; }
.person:nth-child(2) .avatar { background: var(--amber); color: var(--bg-dark); }
.person h3 { font-size: 26px; }
.person .role { color: var(--text-2); font-size: 15px; }
.person .checks li { font-size: 15.5px; }
.person .worked { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
.person .mail { margin-top: 10px; font-size: 15px; }
@media (max-width: 860px) { .people { grid-template-columns: 1fr; } .person { padding: 30px 24px; } }

/* Video band */
.video-band { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21/9; max-width: 100%; background: var(--bg-dark); margin-top: 50px; }
.video-band video { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .video-band { aspect-ratio: 4/3; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 50px; counter-reset: step; }
.step { counter-increment: step; }
.step::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--amber); color: var(--bg-dark); font-weight: 700; margin-bottom: 16px; }
.on-dark .step::before { background: var(--amber); color: var(--bg-dark); }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--text-2); font-size: 15.5px; }
.on-dark .step p { color: var(--text-inv-2); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Article */
.article { max-width: 720px; margin: 0 auto; padding: 80px 22px 100px; }
.article .kicker { color: var(--accent); font-weight: 600; font-size: 15px; }
.article h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.025em; margin: 10px 0 18px; }
.article .dek { font-size: 22px; line-height: 1.4; color: var(--text-2); }
.article-hero { max-width: 980px; margin: 0 auto; padding: 0 22px; }
.article-hero img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.prose { font-size: 19px; line-height: 1.6; letter-spacing: -0.01em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose h2 { font-size: 28px; margin: 1.6em 0 .55em; letter-spacing: -0.02em; }
.prose blockquote { margin: 1.6em 0; padding: 22px 26px; background: var(--bg-alt); border-radius: var(--radius-md); font-weight: 600; }
.prose li { margin: .35em 0; }
.prose .callout { padding: 24px 26px; border-radius: var(--radius-md); background: #eaf0f8; border-left: 4px solid var(--amber); margin: 1.6em 0; }

/* Article teaser */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 50px; }
.post { background: #fff; border-radius: var(--radius-lg); overflow: hidden; color: var(--text); display: flex; flex-direction: column; box-shadow: 0 4px 24px rgba(0,0,0,.05); transition: transform .4s var(--ease); }
.post:hover { transform: translateY(-4px); text-decoration: none; }
.post-img { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-alt); }
.post-img img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.post .kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); font-weight: 600; }
.post h3 { font-size: 24px; line-height: 1.2; margin: 8px 0 10px; }
.post p { color: var(--text-2); font-size: 16px; }
.post .link-more { margin-top: auto; padding-top: 16px; font-size: 16px; color: var(--accent); }
@media (max-width: 760px) { .posts { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.contact-item { background: #fff; border-radius: var(--radius-md); padding: 26px; color: var(--text); display: block; transition: transform .3s var(--ease); }
.on-dark .contact-item { background: var(--bg-dark-2); color: var(--text-inv); }
.contact-item:hover { transform: translateY(-3px); text-decoration: none; }
.contact-item .ci-label { font-size: 13px; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.on-dark .contact-item .ci-label { color: var(--text-inv-2); }
.contact-item .ci-value { font-size: 17px; font-weight: 600; margin-top: 6px; word-break: break-word; }
.contact-item svg { width: 26px; height: 26px; margin-bottom: 14px; color: var(--accent); }
.on-dark .contact-item svg { color: var(--accent-on-dark); }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: var(--bg-alt); color: var(--text-2); font-size: 12px; padding: 40px 22px 26px; }
.footer .wrap { max-width: var(--max); }
.footer-note { padding-bottom: 18px; border-bottom: 1px solid var(--line); line-height: 1.6; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 22px 0; }
.footer-cols h4 { font-size: 12px; color: var(--text); margin-bottom: 10px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin: 7px 0; }
.footer-cols a { color: var(--text-2); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.footer-bottom a { color: var(--text-2); margin-left: 14px; }
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Page hero (inner pages) */
.page-hero { padding: 110px 22px 60px; text-align: center; }
.page-hero.dark { background: var(--bg-dark); color: var(--text-inv); padding-bottom: 110px; }
.page-hero.dark .lead { color: var(--text-inv-2); }
.page-hero.media { position: relative; overflow: hidden; padding: 160px 22px 140px; background: var(--bg-dark); color: #fff; }
.page-hero.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.page-hero.media .wrap { position: relative; }
.page-hero.media .lead { color: #e8e8ed; }

/* Banner CTA */
.banner { border-radius: var(--radius-lg); padding: 70px 40px; text-align: center; background: linear-gradient(135deg,var(--bg-dark),#15434c 70%,#2b5a66); color: #fff; }
.banner .lead { color: #c9d4e2; }
@media (max-width: 600px) { .banner { padding: 50px 22px; } }
.banner .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.banner .btn-ghost:hover { background: #fff; color: #000; }

/* Pills */
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.pill { padding: 8px 16px; border-radius: 980px; background: #fff; font-size: 15px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.on-dark .pill { background: var(--bg-dark-2); color: var(--text-inv); box-shadow: none; }

/* Brand accents */
.band-steel { background: var(--steel); }
.footer-logo { width: 44px; height: 44px; margin-bottom: 14px; }
.eyebrow { color: var(--slate); }
.hero .eyebrow { color: var(--amber); opacity: 1; }
.on-dark .btn, .tile.dark .btn, .banner .btn { color: var(--bg-dark); }
.on-dark .btn:hover { color: var(--bg-dark); text-decoration: none; }
.on-dark .btn-ghost, .tile.dark .btn-ghost { color: var(--amber); }
.on-dark .btn-ghost:hover { color: var(--bg-dark); }
.banner .btn-ghost { color: #fff; }
.banner .btn-ghost:hover { color: var(--bg-dark); }

/* Contact bar with clickable icons (as on the original site) */
:root { --cb-h: 56px; }
.contact-bar { background: var(--steel); }
.contact-bar-inner { max-width: var(--max); margin: 0 auto; padding: 0 22px; min-height: var(--cb-h); display: flex; align-items: center; justify-content: center; gap: 14px 18px; flex-wrap: wrap; }
.cb-label { font-size: 22px; font-weight: 700; color: var(--bg-dark); letter-spacing: -0.02em; }
.cb-icons, .footer-contacts, .banner-icons { display: flex; gap: 10px; align-items: center; }
.ci-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.9); color: var(--bg-dark); transition: background .2s, color .2s, transform .2s; }
.ci-btn svg { width: 21px; height: 21px; }
.ci-btn:hover { background: var(--amber); color: var(--bg-dark); transform: translateY(-2px); text-decoration: none; }
.ci-btn.ci-dark { background: var(--bg-dark); color: #fff; }
.ci-btn.ci-dark:hover { background: var(--amber); color: var(--bg-dark); }
.ci-btn.ci-light { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.ci-btn.ci-light:hover { background: var(--amber); color: var(--bg-dark); box-shadow: none; }
.cb-btn { padding: 8px 18px; font-size: 15px; }
.footer-contacts { margin-bottom: 16px; }
.banner-icons { justify-content: center; margin-top: 26px; }
.hero { min-height: calc(100vh - var(--nav-h) - var(--cb-h)); min-height: calc(100svh - var(--nav-h) - var(--cb-h)); }
@media (max-width: 520px) {
  .contact-bar-inner { padding-block: 10px; gap: 10px 12px; }
  .cb-label { font-size: 18px; }
  .ci-btn { width: 36px; height: 36px; }
  .cb-btn { padding: 7px 14px; font-size: 14px; }
}
/* inner pages already show the diagnostic button in the page bar */
.contact-bar:has(+ main .subnav) .cb-btn { display: none; }
.contact-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .contact-grid-3 { grid-template-columns: 1fr; } }
/* Contacts shown as symbols only */
.contact-icons-lg { display: flex; justify-content: center; gap: 22px; margin-top: 40px; }
.ci-btn.ci-lg { width: 76px; height: 76px; background: #fff; box-shadow: 0 6px 24px rgba(13,26,16,.12); }
.ci-btn.ci-lg svg { width: 36px; height: 36px; }
.founder-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 36px; }
.founder-chip { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 980px; padding: 10px 12px 10px 10px; box-shadow: 0 4px 20px rgba(13,26,16,.06); }
.founder-chip .avatar { width: 48px; height: 48px; font-size: 20px; }
.founder-chip:nth-child(2) .avatar { background: var(--amber); color: var(--bg-dark); }
.fc-name { font-weight: 700; font-size: 17px; }
.fc-role { font-size: 13px; color: var(--text-2); }
.fc-text { min-width: 0; padding-right: 8px; }
.person .mail { margin-top: 16px; }
@media (max-width: 520px) { .ci-btn.ci-lg { width: 64px; height: 64px; } .contact-icons-lg { gap: 16px; } }
