/* Neos Group — site institucional
   Linguagem visual: desenho técnico de processo (P&ID). Azul-marinho da marca, azul água para fluxo,
   amarelo de sinalização industrial apenas nos botões principais. Tipografia única: Archivo (larguras variáveis). */

:root {
  --navy: #0C1E35;
  --navy-2: #13304F;
  --brand: #24508A;
  --flow: #46B3E0;
  --accent: #F2B705;
  --accent-ink: #1B1503;
  --ink: #14212F;
  --steel: #546474;
  --mute: #8293A3;
  --line: #D8DFE5;
  --paper: #F3F5F7;
  --white: #FFFFFF;
  --on-dark: #E6EDF4;
  --on-dark-mute: rgba(230, 237, 244, .72);
  --ok: #1E7A4C;
  --err: #B3261E;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec-y: clamp(64px, 9vw, 120px);
  --r-s: 4px;
  --r: 8px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --hdr-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; line-height: 1.12; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--flow); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: var(--r-s); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ------------------------------------------------------------------ type */

h1 { font-size: clamp(2.2rem, 4.4vw, 3.9rem); font-stretch: 112%; font-weight: 700; letter-spacing: -.022em; line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 3vw, 2.6rem); font-stretch: 110%; letter-spacing: -.015em; }
h3 { font-size: 1.25rem; font-stretch: 104%; letter-spacing: -.005em; line-height: 1.25; }
.eyebrow { font-size: .95rem; font-weight: 600; font-stretch: 88%; color: var(--brand); margin-bottom: 14px; letter-spacing: .005em; }

.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head h2 + .sec-lead { margin-top: 18px; }
.sec-lead { color: var(--steel); font-size: 1.125rem; max-width: 64ch; }
.sec-head--compact { margin-bottom: 40px; }

/* ------------------------------------------------------------------ section themes */

.sec { position: relative; padding-block: var(--sec-y); --sec-bg: var(--white); background: var(--sec-bg); }
.theme-white { --sec-bg: var(--white); }
.theme-light { --sec-bg: var(--paper); }
.theme-dark { --sec-bg: var(--navy); color: var(--on-dark); }
.theme-dark h1, .theme-dark h2, .theme-dark h3 { color: var(--white); }
.theme-dark .eyebrow { color: var(--flow); }
.theme-dark .sec-lead, .theme-dark .prose p, .theme-dark .feat__text, .theme-dark .step__text, .theme-dark dd { color: var(--on-dark-mute); }
.theme-dark .prose p:first-child { color: var(--on-dark); }

/* ------------------------------------------------------------------ buttons */

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .9em 1.45em; border-radius: var(--r-s); border: 1.5px solid transparent;
  font-size: 1rem; font-weight: 600; font-stretch: 104%; line-height: 1.1; text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 86%, #000); }
.btn--primary:active { transform: translateY(1px); }
.btn--secondary { border-color: currentColor; color: var(--brand); background: transparent; }
.btn--secondary:hover { background: var(--brand); border-color: var(--brand); color: var(--white); }
.theme-dark .btn--secondary { color: var(--white); border-color: rgba(230, 237, 244, .5); }
.theme-dark .btn--secondary:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn--link { padding: 0; border: 0; color: var(--brand); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.btn--link:hover { text-decoration-color: var(--flow); }
.theme-dark .btn--link { color: var(--flow); }
.btn--sm { padding: .7em 1.1em; font-size: .95rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ------------------------------------------------------------------ header */

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(12, 30, 53, .5); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(10px); } }
.hdr { display: flex; align-items: center; gap: 32px; height: var(--hdr-h); }
.brand { flex: none; display: block; }
.brand img { height: 46px; width: auto; transition: height .3s var(--ease); }
.site-header.is-scrolled .brand img { height: 40px; }

.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__item > a { display: block; padding: 10px 12px; font-weight: 500; font-size: .98rem; text-decoration: none; color: var(--ink); border-radius: var(--r-s); transition: color .2s; }
.nav__item > a:hover { color: var(--brand); }
.sub-toggle { display: grid; place-items: center; width: 24px; height: 32px; padding: 0; margin-left: -8px; border: 0; background: none; cursor: pointer; color: var(--steel); }
.sub-toggle .ico { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.sub {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 300px; padding: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 24px 48px -24px rgba(12, 30, 53, .35);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.sub a { display: block; padding: 10px 14px; border-radius: var(--r-s); text-decoration: none; font-size: .96rem; }
.sub a:hover, .sub a:focus-visible { background: var(--paper); color: var(--brand); }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.is-open .sub { opacity: 1; visibility: visible; transform: none; }
.has-sub.is-open .sub-toggle .ico, .has-sub:hover .sub-toggle .ico { transform: rotate(180deg); }

.nav__actions { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; }
.lang a { padding: 6px 10px; font-size: .85rem; font-weight: 600; font-stretch: 90%; text-decoration: none; color: var(--steel); }
.lang a[aria-current] { background: var(--navy); color: var(--white); }
.lang a:not([aria-current]):hover { color: var(--brand); background: var(--paper); }

.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--white); cursor: pointer; }
.nav-toggle__bars { display: grid; gap: 5px; width: 20px; margin: auto; }
.nav-toggle__bars i { display: block; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
  /* backdrop-filter criaria um bloco de contenção e prenderia o menu fixo dentro do cabeçalho */
  .site-header { background: var(--white); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--hdr-h) 0 0 0; z-index: 49; margin: 0; padding: 24px var(--gutter) 40px;
    flex-direction: column; align-items: stretch; gap: 24px; overflow-y: auto;
    background: var(--white); border-top: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav__item > a { flex: 1; padding: 16px 0; font-size: 1.15rem; }
  .sub-toggle { width: 48px; height: 48px; margin: 0; }
  .sub { position: static; width: 100%; min-width: 0; padding: 0 0 12px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; }
  .has-sub:hover .sub, .has-sub:focus-within .sub { display: none; }
  .has-sub.is-open .sub { display: block; }
  .has-sub:hover:not(.is-open) .sub-toggle .ico { transform: none; }
  .sub a { padding: 10px 12px; }
  .nav__actions { justify-content: space-between; }
  body.nav-open { overflow: hidden; }
}

/* ------------------------------------------------------------------ hero */

.sec--hero { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(24px, 3vw, 40px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 30, 53, .35), var(--navy) 92%); }
.hero-grid-lines {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image: linear-gradient(rgba(70, 179, 224, .075) 1px, transparent 1px), linear-gradient(90deg, rgba(70, 179, 224, .075) 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 85%);
}
.hero-inner, .sec--hero .wrap { position: relative; z-index: 2; }
.hero-copy { max-width: 900px; }
.hero-copy h1 { max-width: 21ch; }
.hero-logo { max-height: 72px; width: auto; margin-bottom: 28px; }
.hero-lead { margin-top: 24px; max-width: 60ch; font-size: clamp(1.06rem, 1.4vw, 1.22rem); color: var(--on-dark-mute); }

.hero-diagram { margin-top: clamp(40px, 6vw, 72px); }
.hero-diagram svg { width: 100%; height: auto; overflow: visible; }
.dg-pipe path { fill: none; stroke: rgba(70, 179, 224, .2); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.dg-flow path { fill: none; stroke: var(--flow); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 16; animation: dg-flow 1.4s linear infinite; }
.dg-flow .dg-flow--sludge { stroke: #9EB2C5; animation-duration: 3.4s; }
.dg-unit { fill: none; stroke: rgba(230, 237, 244, .78); stroke-width: 1.5; stroke-linejoin: round; }
.dg-unit .dg-plates { stroke: rgba(230, 237, 244, .45); stroke-width: 1.2; }
.dg-liquid { fill: var(--flow); opacity: .17; }
.dg-level { transform-box: fill-box; transform-origin: 50% 100%; animation: dg-level 7s ease-in-out infinite alternate; }
.dg-level--b { animation-delay: -2s; animation-duration: 5.5s; }
.dg-level--c { animation-delay: -4s; animation-duration: 8s; }
.dg-impeller { transform-box: fill-box; transform-origin: 50% 50%; animation: dg-spin 1.6s linear infinite; }
.dg-sludge, .dg-cake rect { fill: #8FA4B8; opacity: .5; }
.dg-label { fill: rgba(230, 237, 244, .62); font-family: var(--font); font-size: 13px; font-weight: 600; font-stretch: 92%; }
@keyframes dg-flow { to { stroke-dashoffset: -18; } }
@keyframes dg-level { from { transform: scaleY(1); } to { transform: scaleY(.94); } }
@keyframes dg-spin { 0% { transform: scaleX(1); } 50% { transform: scaleX(-1); } 100% { transform: scaleX(1); } }
@media (max-width: 640px) { .dg-label { display: none; } .hero-diagram { margin-inline: calc(var(--gutter) * -.5); } }

/* página interna */
.sec--pageHero { padding-block: clamp(56px, 8vw, 104px); overflow: hidden; }
.ph-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.ph-grid--compact { grid-template-columns: minmax(0, 1fr); }
.ph-copy h1 { max-width: 18ch; }
.ph-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-s); }

/* placa ilustrativa (quando não há foto) */
.plate {
  position: relative; display: grid; place-items: center; width: 100%; height: 100%;
  color: var(--flow); background-color: var(--navy-2);
  background-image: linear-gradient(rgba(70, 179, 224, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(70, 179, 224, .1) 1px, transparent 1px);
  background-size: 16px 16px; background-position: center;
}
.plate__ico { width: 46%; height: auto; stroke-width: 1; }
.plate--hero { aspect-ratio: 4 / 3; border: 1px solid rgba(70, 179, 224, .3); background-size: 24px 24px; }
.plate--hero .plate__ico { width: 34%; }
.plate--hero::before, .plate--hero::after {
  content: ''; position: absolute; width: 22px; height: 22px; border: 1.5px solid var(--flow);
}
.plate--hero::before { top: -8px; left: -8px; border-right: 0; border-bottom: 0; }
.plate--hero::after { bottom: -8px; right: -8px; border-left: 0; border-top: 0; }

/* ------------------------------------------------------------------ logos */

.sec--logos { padding-block: clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.logos { display: flex; align-items: center; gap: 28px 64px; }
.logos__title { flex: none; max-width: 15ch; font-size: 1rem; font-weight: 600; font-stretch: 92%; line-height: 1.35; color: var(--steel); letter-spacing: 0; }
.logos__row { flex: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.logos__row a { text-decoration: none; }
.wordmark { display: block; font-size: 1.3rem; font-weight: 800; font-stretch: 122%; letter-spacing: .01em; color: #98A6B4; transition: color .25s; white-space: nowrap; }
.logos__row li:hover .wordmark { color: var(--navy); }
.logos__row img { max-height: 40px; width: auto; filter: grayscale(1); opacity: .65; transition: filter .25s, opacity .25s; }
.logos__row li:hover img { filter: none; opacity: 1; }

/* ------------------------------------------------------------------ products */

.prod-list { border-top: 1px solid var(--line); }
.prod {
  position: relative; display: grid; grid-template-columns: 168px minmax(0, 1fr) minmax(0, 1.35fr) auto;
  align-items: center; gap: clamp(20px, 3vw, 44px); padding: 22px 0; border-bottom: 1px solid var(--line);
}
.prod::before { content: ''; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--brand); transition: width .45s var(--ease); }
.prod:hover::before, .prod:focus-within::before { width: 100%; }
.prod__thumb { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-s); background: var(--navy-2); }
.prod__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.prod:hover .prod__img { transform: scale(1.05); }
.prod__title { font-size: clamp(1.25rem, 2vw, 1.6rem); font-stretch: 112%; }
.prod__link { text-decoration: none; }
.prod__link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.prod__link:focus-visible { outline: none; }
.prod:has(.prod__link:focus-visible) { outline: 2px solid var(--flow); outline-offset: 4px; }
.prod__text { color: var(--steel); font-size: 1rem; }
.prod__more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand); white-space: nowrap; }
.prod__arrow { width: 20px; height: 20px; transition: transform .3s var(--ease); }
.prod:hover .prod__arrow { transform: translateX(5px); }

/* ------------------------------------------------------------------ features */

.feat-grid { display: grid; gap: 48px clamp(28px, 4vw, 56px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feat-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feat-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feat-grid.cols-1 { grid-template-columns: minmax(0, 1fr); }
.feat { position: relative; padding-top: 28px; border-top: 1px solid var(--line); }
.feat::before { content: ''; position: absolute; top: -1px; left: 0; width: 44px; height: 2px; background: var(--brand); }
.feat__ico { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 50%; color: var(--brand); background: var(--sec-bg); }
.feat__ico .ico { width: 24px; height: 24px; }
.feat h3 { margin-bottom: 10px; }
.feat__text { color: var(--steel); font-size: 1rem; }
.theme-dark .feat, .theme-dark .feat__ico { border-color: rgba(230, 237, 244, .16); }
.theme-dark .feat::before { background: var(--flow); }
.theme-dark .feat__ico { color: var(--flow); }

/* ------------------------------------------------------------------ rich text */

.rt { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.rt .sec-head { margin-bottom: 0; }
.rt--media { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.rt--media .sec-head { margin-bottom: 28px; }
.rt--reverse .rt__fig { order: -1; }
.rt__fig img { width: 100%; border-radius: var(--r-s); aspect-ratio: 4 / 3; object-fit: cover; }
.rt__fig figcaption { margin-top: 10px; font-size: .9rem; color: var(--steel); }
.prose p { max-width: 66ch; color: var(--steel); }
.prose p:first-child { font-size: clamp(1.15rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--ink); }

.metrics { display: flex; flex-wrap: wrap; gap: 24px 56px; }
.metrics--inline { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.metric { display: flex; flex-direction: column; gap: 6px; }
.metric__num { font-size: clamp(2.4rem, 4.6vw, 3.6rem); font-weight: 700; font-stretch: 118%; line-height: 1; letter-spacing: -.02em; color: var(--brand); font-variant-numeric: tabular-nums; }
.metric__label { font-size: .95rem; color: var(--steel); max-width: 22ch; }

/* faixa de números */
.metrics--band { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.metrics--band .metric { padding-top: 24px; border-top: 1px solid rgba(70, 179, 224, .35); }
.metrics--band .metric__num { color: var(--white); font-size: clamp(3rem, 6.4vw, 5.2rem); }
.metrics--band .metric__label { color: var(--on-dark-mute); font-size: 1rem; }

/* ------------------------------------------------------------------ systems */

.sys-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.sys-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sys-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sys { display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 3vw, 40px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.theme-white .sys { background: var(--paper); border-color: transparent; }
.sys h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); font-stretch: 110%; }
.sys__text { color: var(--steel); }
.sys__lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.sys__list h4 { margin-bottom: 10px; font-size: .95rem; font-weight: 600; font-stretch: 90%; color: var(--brand); }
.sys__btn { align-self: flex-start; margin-top: auto; }

.ticks li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .5em; width: 11px; height: 6px; border-left: 2px solid var(--flow); border-bottom: 2px solid var(--flow); transform: rotate(-45deg); }

/* ------------------------------------------------------------------ table */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.tbl { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 1rem; }
.tbl th, .tbl td { padding: 16px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl thead th { background: var(--navy); color: var(--white); font-weight: 600; font-stretch: 104%; border-bottom: 0; }
.tbl tbody th { width: 26%; font-weight: 600; color: var(--ink); }
.tbl td { color: var(--steel); }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl tbody tr { transition: background-color .2s; }
.tbl tbody tr:hover { background: rgba(70, 179, 224, .07); }

/* ------------------------------------------------------------------ steps (sequência real) */

.steps { position: relative; display: grid; gap: 32px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.steps.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.steps.cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.steps::before, .steps::after { content: ''; position: absolute; top: 23px; left: 24px; right: 24px; height: 2px; }
.steps::before { background: var(--line); }
.steps::after {
  background: repeating-linear-gradient(90deg, var(--flow) 0 6px, transparent 6px 18px);
  opacity: 0; transition: opacity 1.2s .4s;
  animation: steps-flow 1.1s linear infinite;
}
.steps.is-in::after { opacity: 1; }
@keyframes steps-flow { from { background-position: 0 0; } to { background-position: 18px 0; } }
@keyframes steps-flow-v { from { background-position: 0 0; } to { background-position: 0 18px; } }
.step { position: relative; z-index: 1; }
.step__num {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 22px; border-radius: 50%;
  background: var(--navy); color: var(--white); font-weight: 600; font-stretch: 90%; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 8px var(--sec-bg);
}
.theme-dark .step__num { background: var(--brand); }
.theme-dark .steps::before { background: rgba(230, 237, 244, .16); }
.step h3 { margin-bottom: 8px; }
.step__text { color: var(--steel); font-size: 1rem; }

/* ------------------------------------------------------------------ details / split */

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split .sec-head { margin-bottom: 0; }
.dlist__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 12px 32px; padding: 24px 0; border-top: 1px solid var(--line); }
.dlist__row:last-child { border-bottom: 1px solid var(--line); }
.dlist dt { font-size: 1.15rem; font-weight: 650; font-stretch: 106%; }
.dlist dd { color: var(--steel); }

/* ------------------------------------------------------------------ applications */

.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px; }
.app { padding-top: 22px; border-top: 2px solid var(--brand); }
.app h3 { margin-bottom: 16px; }
.app .ticks li { color: var(--steel); }

/* ------------------------------------------------------------------ gallery */

.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.gal--sm { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.gal__btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; border-radius: var(--r-s); }
.gal__btn img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.gal__btn:hover img { transform: scale(1.04); }
.gal figcaption { margin-top: 10px; font-size: .92rem; color: var(--steel); }
.gal--sm figcaption { font-size: .82rem; }

.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(6, 14, 26, .88); }
.lightbox img { max-height: 82vh; width: auto; margin: auto; border-radius: var(--r-s); }
.lightbox p { margin-top: 12px; text-align: center; color: var(--on-dark); }
.lightbox__close { position: absolute; top: -44px; right: 0; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }

/* ------------------------------------------------------------------ mission / vision / values */

.mvv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.mvv__block { padding: clamp(28px, 4vw, 48px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.mvv__block h3, .values__title { margin-bottom: 16px; font-size: .98rem; font-weight: 600; font-stretch: 90%; color: var(--brand); }
.mvv__statement p { font-size: clamp(1.18rem, 1.8vw, 1.42rem); line-height: 1.45; font-stretch: 104%; color: var(--ink); }
.values { margin-top: 56px; }
.values__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.values__list li { padding-top: 18px; border-top: 1px solid var(--line); color: var(--steel); }
.values__list strong { display: block; margin-bottom: 8px; font-size: 1.15rem; font-weight: 650; color: var(--ink); }

/* ------------------------------------------------------------------ CTA */

.sec--cta { padding-block: clamp(56px, 7vw, 96px); }
.cta { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 64px; }
.cta__copy { max-width: 680px; }
.cta__text { margin-top: 14px; color: var(--steel); font-size: 1.125rem; }
.theme-dark .cta__text { color: var(--on-dark-mute); }
.cta__btns { margin-top: 0; }
.theme-dark.sec--cta { background-image: linear-gradient(90deg, rgba(70, 179, 224, .08) 1px, transparent 1px); background-size: 48px 100%; }

/* ------------------------------------------------------------------ contact */

.contact__main { max-width: 860px; }
.contact--aside { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact--aside .contact__main { max-width: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field--message { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-size: .92rem; font-weight: 600; }
.req { color: var(--err); }
.field input, .field textarea {
  width: 100%; padding: .8em .95em; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid #C3CDD7; border-radius: var(--r-s);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(36, 80, 138, .18); }
.field .is-invalid { border-color: var(--err); box-shadow: 0 0 0 3px rgba(179, 38, 30, .12); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; }
.form-note { margin: 0; font-size: .9rem; color: var(--steel); }
.form-status { margin: 14px 0 0; font-weight: 500; min-height: 1.6em; }
.form-status.is-success { color: var(--ok); }
.form-status.is-error { color: var(--err); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lead-form.is-sent .form-grid, .lead-form.is-sent .form-foot { opacity: .5; pointer-events: none; }

.quick { position: sticky; top: calc(var(--hdr-h) + 24px); padding: clamp(28px, 3vw, 40px); background: var(--navy); color: var(--on-dark); border-radius: var(--r); }
.quick h3 { margin-bottom: 12px; color: var(--white); font-size: 1.4rem; font-stretch: 110%; }
.quick p { color: var(--on-dark-mute); }
.quick__btn { margin-top: 24px; width: 100%; }
.contact-lines { margin-top: 20px; }
.contact-lines li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid rgba(230, 237, 244, .14); }
.contact-lines .ico { flex: none; width: 20px; height: 20px; color: var(--flow); }
.contact-lines a { text-decoration: none; color: var(--white); word-break: break-word; }
.contact-lines a:hover { text-decoration: underline; text-underline-offset: 3px; }

.ccards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.ccard { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 32px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.ccard .feat__ico { margin-bottom: 8px; }
.ccard p { flex: 1; color: var(--steel); word-break: break-word; }
.ccard .btn { margin-top: 8px; }

/* ------------------------------------------------------------------ footer */

.site-footer { background: var(--navy); color: var(--on-dark-mute); font-size: .98rem; }
.foot { display: grid; grid-template-columns: 1.1fr .8fr 1.5fr 1.3fr; gap: 40px; padding-block: 72px 48px; }
.foot__brand img { width: 170px; height: auto; margin-bottom: 20px; }
.foot h2 { margin-bottom: 18px; font-size: 1rem; font-weight: 600; font-stretch: 100%; letter-spacing: 0; color: var(--white); }
.foot__links li { margin-bottom: 10px; }
.foot a { color: var(--on-dark-mute); text-decoration: none; transition: color .2s; }
.foot a:hover { color: var(--white); }
.foot__contact li { display: flex; gap: 12px; margin-bottom: 18px; }
.foot__contact .ico { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--flow); }
.foot__contact div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.foot__contact span { color: var(--on-dark); overflow-wrap: anywhere; }
.foot__contact a { font-size: .9rem; color: var(--flow); }
.foot__contact a:hover { color: var(--white); }
.news-form { margin-top: 16px; }
.news-form__row { display: flex; gap: 8px; }
.news-form input {
  flex: 1; min-width: 0; padding: .7em .9em; font: inherit; font-size: .95rem; color: var(--white);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(230, 237, 244, .2); border-radius: var(--r-s);
}
.news-form input::placeholder { color: rgba(230, 237, 244, .5); }
.news-form input:focus { outline: none; border-color: var(--flow); }
.news-form .is-invalid { border-color: #F28B82; }
.news-form .form-status { font-size: .9rem; }
.site-footer .form-status.is-success { color: #8FD8B0; }
.site-footer .form-status.is-error { color: #F28B82; }
.foot__legal { padding-block: 22px; border-top: 1px solid rgba(230, 237, 244, .1); font-size: .875rem; color: rgba(230, 237, 244, .55); }

/* ------------------------------------------------------------------ motion */

.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-load] > * { opacity: 0; transform: translateY(12px); animation: load-in .9s var(--ease) forwards; }
.js [data-load] > :nth-child(2) { animation-delay: .08s; }
.js [data-load] > :nth-child(3) { animation-delay: .16s; }
.js [data-load] > :nth-child(4) { animation-delay: .24s; }
.js [data-load] > :nth-child(5) { animation-delay: .32s; }
.js .hero-diagram svg { clip-path: inset(0 100% 0 0); animation: wipe 1.8s .35s var(--ease) forwards; }
@keyframes load-in { to { opacity: 1; transform: none; } }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js [data-load] > * { opacity: 1; transform: none; }
  .js .hero-diagram svg { clip-path: none; }
  .steps::after { opacity: 1; }
}

/* ------------------------------------------------------------------ responsive */

@media (max-width: 1080px) {
  .foot { grid-template-columns: 1fr 1fr; }
  .feat-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps.cols-5, .steps.cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps.cols-5::before, .steps.cols-5::after, .steps.cols-6::before, .steps.cols-6::after { display: none; }
}

@media (max-width: 900px) {
  .ph-grid, .rt, .rt--media, .split, .contact--aside { grid-template-columns: minmax(0, 1fr); }
  .rt--reverse .rt__fig { order: 0; }
  .ph-media { max-width: 520px; }
  .feat-grid, .feat-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sys-grid.cols-2, .sys-grid.cols-3 { grid-template-columns: minmax(0, 1fr); }
  .mvv { grid-template-columns: minmax(0, 1fr); }
  .logos { flex-direction: column; align-items: flex-start; }
  .logos__title { max-width: none; }
  .logos__row { justify-content: flex-start; gap: 18px 36px; }
  .quick { position: static; }
  .prod { grid-template-columns: 132px minmax(0, 1fr); grid-template-areas: 'thumb title' 'thumb text' 'thumb more'; column-gap: 24px; row-gap: 6px; align-items: start; }
  .prod__thumb { grid-area: thumb; }
  .prod__title { grid-area: title; }
  .prod__text { grid-area: text; }
  .prod__more { grid-area: more; font-size: .95rem; }

  .steps, .steps.cols-2, .steps.cols-3, .steps.cols-5, .steps.cols-6 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps::before, .steps::after, .steps.cols-5::before, .steps.cols-5::after, .steps.cols-6::before, .steps.cols-6::after { display: block; top: 24px; bottom: 24px; left: 23px; right: auto; width: 2px; height: auto; }
  .steps::after { background: repeating-linear-gradient(180deg, var(--flow) 0 6px, transparent 6px 18px); animation-name: steps-flow-v; }
  .step { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 20px; padding-bottom: 28px; }
  .step__num { grid-row: span 2; margin-bottom: 0; }
  .step h3 { align-self: center; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  :root { --hdr-h: 68px; }
  .brand img { height: 40px; }
  .site-header.is-scrolled .brand img { height: 36px; }
  .feat-grid, .feat-grid.cols-2, .feat-grid.cols-3, .feat-grid.cols-4 { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-foot { flex-direction: column-reverse; align-items: stretch; }
  .form-foot .btn { width: 100%; }
  .foot { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 56px; }
  .prod { grid-template-columns: 96px minmax(0, 1fr); column-gap: 16px; }
  .prod__text { font-size: .95rem; }
  .dlist__row { grid-template-columns: minmax(0, 1fr); }
  .btn-row .btn { flex: 1 1 auto; }
  .cta { align-items: flex-start; }
  .tbl th, .tbl td { padding: 14px 16px; }
}
