/* Devgiri Softwares, round 3. Values follow the design boards exactly. */

/* ------------------------------------------------------------ fonts */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/archivo-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/archivo-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/archivo-latin-800-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* Size-matched fallbacks, used while a web font loads and if it never does.
   Each Archivo and Plex Sans face scales Arial (Liberation Sans and Arimo
   have the same metrics) or Roboto, the font Android uses, so that text
   keeps about the same width and line box as the web font. Plex Mono has its
   own monospace set, further down. The font stacks below name the Arial face
   first: Android has no Arial, so it moves on to the Roboto face.
   Computed with fontTools from the woff2 files in static/fonts/ against the
   text of the published pages: size-adjust = average advance of the web font
   / average advance of the fallback. ascent, descent and line gap are the web
   font's hhea values (equal to its typo values, USE_TYPO_METRICS is set)
   divided by size-adjust. Recompute them if a font file or a lot of the copy
   changes (README.md, Fonts). Archivo 700 also serves 600, which no page uses. */
@font-face {
  font-family: 'IBM Plex Sans Fallback';
  font-weight: 400;
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans-Regular"), local("Arimo");
  size-adjust: 100.55%;
  ascent-override: 101.94%;
  descent-override: 27.35%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'IBM Plex Sans Fallback';
  font-weight: 500;
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans-Regular"), local("Arimo");
  size-adjust: 102.7%;
  ascent-override: 99.81%;
  descent-override: 26.78%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'IBM Plex Sans Fallback';
  font-weight: 600 900;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold"), local("Arimo Bold");
  size-adjust: 96.65%;
  ascent-override: 106.05%;
  descent-override: 28.45%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'IBM Plex Sans Fallback Roboto';
  font-weight: 400;
  src: local("Roboto"), local("Roboto Regular"), local("Roboto-Regular");
  size-adjust: 101.2%;
  ascent-override: 101.29%;
  descent-override: 27.18%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'IBM Plex Sans Fallback Roboto';
  font-weight: 500;
  src: local("Roboto Medium"), local("Roboto-Medium"), local("Roboto");
  size-adjust: 102.31%;
  ascent-override: 100.19%;
  descent-override: 26.88%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'IBM Plex Sans Fallback Roboto';
  font-weight: 600 900;
  src: local("Roboto Bold"), local("Roboto-Bold"), local("Roboto");
  size-adjust: 102.85%;
  ascent-override: 99.66%;
  descent-override: 26.74%;
  line-gap-override: 0%;
}
/* IBM Plex Mono falls back to a monospace face instead, matched by advance
   width: every Plex Mono glyph advances 0.600 em. Menlo (macOS and iOS) and
   DejaVu Sans Mono (Linux) advance 1233/2048 em, Consolas (Windows) 1126/2048
   em, Droid Sans Mono (Android) and Courier New 1229/2048 em. Liberation Mono
   and Cousine have the Courier New metrics and stand in for it.
   size-adjust = 0.600 em / the fallback's advance. ascent and descent are
   Plex Mono's hhea values (1025 and 275 per 1000) divided by size-adjust.
   The pages use Plex Mono 400 and 500. Each fallback face covers both with
   the regular style, as no mono text is bold. */
@font-face {
  font-family: 'IBM Plex Mono Fallback Menlo';
  font-weight: 100 900;
  src: local("Menlo Regular"), local("Menlo-Regular"), local("Menlo");
  size-adjust: 99.66%;
  ascent-override: 102.85%;
  descent-override: 27.59%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'IBM Plex Mono Fallback Consolas';
  font-weight: 100 900;
  src: local("Consolas");
  size-adjust: 109.13%;
  ascent-override: 93.92%;
  descent-override: 25.20%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'IBM Plex Mono Fallback DejaVu';
  font-weight: 100 900;
  src: local("DejaVu Sans Mono"), local("DejaVuSansMono");
  size-adjust: 99.66%;
  ascent-override: 102.85%;
  descent-override: 27.59%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'IBM Plex Mono Fallback Droid';
  font-weight: 100 900;
  src: local("Droid Sans Mono"), local("DroidSansMono");
  size-adjust: 99.98%;
  ascent-override: 102.52%;
  descent-override: 27.50%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'IBM Plex Mono Fallback Courier';
  font-weight: 100 900;
  src: local("Courier New"), local("CourierNewPSMT"), local("Liberation Mono"), local("LiberationMono"), local("Cousine"), local("Cousine Regular"), local("Cousine-Regular");
  size-adjust: 99.98%;
  ascent-override: 102.52%;
  descent-override: 27.50%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Archivo Fallback';
  font-weight: 100 749;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold"), local("Arimo Bold");
  size-adjust: 97.95%;
  ascent-override: 89.64%;
  descent-override: 21.44%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Archivo Fallback';
  font-weight: 750 900;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold"), local("Arimo Bold");
  size-adjust: 102.55%;
  ascent-override: 85.61%;
  descent-override: 20.48%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Archivo Fallback Roboto';
  font-weight: 100 749;
  src: local("Roboto Bold"), local("Roboto-Bold"), local("Roboto");
  size-adjust: 103.89%;
  ascent-override: 84.51%;
  descent-override: 20.21%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Archivo Fallback Roboto';
  font-weight: 750 900;
  src: local("Roboto Bold"), local("Roboto-Bold"), local("Roboto");
  size-adjust: 108.82%;
  ascent-override: 80.68%;
  descent-override: 19.3%;
  line-gap-override: 0%;
}

/* ------------------------------------------------------------ tokens */

:root {
  /* brand */
  --navy: #0E2A47;
  --deep-navy: #071A2D;
  --cyan: #00B3C8;
  --light-cyan: #7FD9E6;
  --link-teal: #00748A;
  --ground: #F4F6F8;
  --rule: #DCE3EA;
  --text: #1B2A3A;
  --muted: #4A5B6E;
  --amber: #F0A63C;
  --white: #FFFFFF;

  /* supporting values used on the boards */
  --on-dark: #A9BBCC;
  --on-dark-strong: #D5DEE8;
  --grid-line: #143352;
  --line-dark: #2E4A6B;
  --line-darker: #1F3D5C;
  --slate: #5B7A99;
  --steel: #8FA0B2;
  --panel: #143352;

  --font-head: 'Archivo', 'Archivo Fallback', 'Archivo Fallback Roboto', sans-serif;
  --font-text: 'IBM Plex Sans', 'IBM Plex Sans Fallback', 'IBM Plex Sans Fallback Roboto', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'IBM Plex Mono Fallback Menlo', 'IBM Plex Mono Fallback Consolas',
    'IBM Plex Mono Fallback DejaVu', 'IBM Plex Mono Fallback Droid', 'IBM Plex Mono Fallback Courier', monospace;

  /* Header layout, phone values. The desktop values are set further down,
     in the header section. --bar-h is the height of the main bar, border
     included. */
  --bar-h: 56px;
  --hdr-gap: 6px;
  --hdr-nav: none;
  --hdr-menu: inline-flex;
  --hdr-panel: block;
  --logo-mark: block;
  --logo-solid: none;
  --logo-solid-h: 18px;
  --logo-neuron: none;
  --cta-h: 44px;
  --cta-pad: 12px;
  --cta-size: 14px;
  --cta-full: inline;
  --cta-short: none;
}

/* ------------------------------------------------------------ base */

/* Anchor targets and keyboard focus stop below the sticky main bar. */
html { scroll-padding-top: var(--bar-h); }
body { margin: 0; background: var(--white); }
a { color: var(--link-teal); text-decoration: none; }
a:hover { color: var(--navy); text-decoration: underline; }

:focus-visible { outline: 2px solid var(--link-teal); outline-offset: 2px; }
.ubar :focus-visible,
.ftr :focus-visible,
.hero :focus-visible,
.ways :focus-visible,
.view :focus-visible,
.how :focus-visible,
.measure :focus-visible,
.cs-cta :focus-visible { outline-color: var(--light-cyan); }
.brief__form :focus-visible { outline-color: var(--link-teal); }

.site {
  font-family: var(--font-text);
  color: var(--text);
  background: var(--white);
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
main { display: block; }

/* ------------------------------------------------------------ skip link */

.skip {
  position: absolute;
  top: 8px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 4px;
  background: var(--navy);
  color: var(--white);
  font: 600 15px/1.2 var(--font-text);
  transform: translateY(-200%);
}
.skip:focus { transform: none; color: var(--white); }
.skip:focus-visible { outline-color: var(--light-cyan); }
main:focus { outline: none; }

/* ------------------------------------------------------------ utility bar */

/* One line of a fixed height at every width, whichever font has loaded. It
   scrolls away with the page. Narrow screens drop the tagline below 960 px,
   the email below 600 px and the US and IN labels below 360 px. Each step
   fits with room to spare in the web font and in the fallbacks. */
.ubar { background: var(--deep-navy); color: var(--on-dark); }
.ubar__in {
  max-width: 1200px;
  height: 32px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
  overflow: hidden;
}
.ubar__links { margin-left: auto; display: flex; gap: 16px; }
.ubar a { color: var(--on-dark-strong); display: inline-block; height: 32px; line-height: 32px; }
.ubar .ubar__tagline,
.ubar .ubar__email,
.ubar .ubar__cc { display: none; }
@media (min-width: 360px) { .ubar .ubar__cc { display: inline; } }
@media (min-width: 600px) {
  .ubar__in, .ubar__links { gap: 20px; }
  .ubar__in { padding: 0 24px; }
  .ubar .ubar__email { display: inline-block; }
}
@media (min-width: 960px) { .ubar .ubar__tagline { display: inline; } }

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

/* The main bar stays at the top while the page scrolls. Its height is fixed
   (--bar-h) and every label sits on one line, so the bar is the same height
   before and after the web fonts load. No effect changes it on scroll.

   Phone layout, the default: one 56 px row with the logo, the brief button
   and the 44 px Menu icon button, which opens the nav links in a panel under
   the bar.
   Desktop layout: one 72 px row with the logo, the nav links and the brief
   button. It starts at the width where that row fits with room to spare in
   the fallback fonts as well as the web fonts. The width depends on the
   number of nav links (data-nav on <html>, from templates/site/layout.html).

   The logo version follows the mark height (README.md, Brand): solid D under
   40 px, one neuron from 40 px. The phone bar shows the mark alone below
   356 px and the solid lockup from there (the steps below). The files in
   templates/site/brand/ are included inline: their navy parts take the
   colour of .brand (currentColor) and the cyan is fixed in the file. Sized
   by height only: the width follows the viewBox. */
.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--bar-h);
  box-sizing: border-box;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.hdr__in {
  position: relative;
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: var(--hdr-gap);
}
@media (min-width: 600px) { .hdr__in { padding: 0 24px; } }

.brand { display: flex; align-items: center; flex-shrink: 0; margin-right: auto; color: var(--navy); }
.brand__logo svg { display: block; width: auto; }
.brand__logo--mark { display: var(--logo-mark); }
.brand__logo--mark svg { height: 32px; }
.brand__logo--solid { display: var(--logo-solid); }
.brand__logo--solid svg { height: var(--logo-solid-h); }
.brand__logo--neuron { display: var(--logo-neuron); }
.brand__logo--neuron svg { height: 40px; }

/* Phone bar steps. Each starts where its row fits with at least 4 px to
   spare in the widest font the labels can get: the web font, the size-matched
   fallbacks, plain Arial or Roboto (a browser without size-adjust) and
   DejaVu Sans. The row is the side padding, the logo, two 6 px gaps, the
   brief button (12 px padding each side) and the 44 px Menu button.
   - below 356 px: the mark alone (32 px) and "Send us the brief"
   - from 356 px: the solid lockup at 18 px and "Send brief"
   - from 410 px: the lockup at 18 px and "Send us the brief"
   - from 500 px: the lockup at 28 px and "Send us the brief" */
@media (min-width: 356px) { :root { --logo-mark: none; --logo-solid: block; --cta-full: none; --cta-short: inline; } }
@media (min-width: 410px) { :root { --cta-full: inline; --cta-short: none; } }
@media (min-width: 500px) { :root { --logo-solid-h: 28px; } }

.hdr__nav {
  display: var(--hdr-nav);
  gap: 26px;
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}
.hdr__nav a {
  display: flex;
  align-items: center;
  height: 44px;
  box-sizing: border-box;
  border-bottom: 2px solid transparent;
  color: var(--text);
}
.hdr__nav a.is-current { color: var(--navy); border-bottom-color: var(--cyan); }

.hdr__cta {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: var(--cta-h);
  padding: 0 var(--cta-pad);
  box-sizing: border-box;
  border-radius: 4px;
  background: var(--navy);
  color: var(--white);
  font-size: var(--cta-size);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
a.hdr__cta:hover { color: var(--white); }
.hdr__cta-full { display: var(--cta-full); }
.hdr__cta-short { display: var(--cta-short); }

/* The link before menu.js runs and the button after it look the same: a
   44 px square with three bars, a cross while the panel is open. The name
   "Menu" is in the HTML for screen readers and hidden from view. */
.hdr__menu {
  display: var(--hdr-menu);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: 1px solid var(--navy);
  border-radius: 4px;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}
a.hdr__menu:hover { color: var(--navy); text-decoration: none; }
.hdr__menu[aria-expanded="true"] { background: var(--ground); }
.hdr__icon { display: block; fill: none; stroke: currentColor; stroke-width: 2; }
.hdr__icon-close { display: none; }
.hdr__menu[aria-expanded="true"] .hdr__icon-bars { display: none; }
.hdr__menu[aria-expanded="true"] .hdr__icon-close { display: inline; }
.hdr__menu-name {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.hdr__panel {
  display: none;
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--bar-h));
  overflow-y: auto;
  padding: 8px 0;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 12px 24px rgba(7, 26, 45, 0.14);
}
.hdr--open .hdr__panel,
:root:not(.js-menu) .hdr__panel:target { display: var(--hdr-panel); }
.hdr__panel a { display: block; padding: 14px 24px; color: var(--text); font-size: 16px; font-weight: 500; line-height: 20px; }
.hdr__panel a + a { border-top: 1px solid var(--rule); }
.hdr__panel a.is-current { color: var(--navy); box-shadow: inset 3px 0 0 var(--cyan); }
.hdr__panel .hdr__close { color: var(--link-teal); }
.js-menu .hdr__close { display: none; }

/* Desktop layout. The same values for each nav count. With four links the
   row needs about 840 px in the web font and 890 px in the widest fallback
   (DejaVu Sans, unadjusted). Each further link adds about 80 px. */
@media (min-width: 960px) {
  :root[data-nav="4"] {
    --bar-h: 72px; --hdr-gap: 28px; --hdr-nav: flex; --hdr-menu: none; --hdr-panel: none;
    --logo-mark: none; --logo-solid: none; --logo-neuron: block; --cta-h: 44px; --cta-pad: 20px; --cta-size: 15px;
  }
}
@media (min-width: 1040px) {
  :root[data-nav="5"] {
    --bar-h: 72px; --hdr-gap: 28px; --hdr-nav: flex; --hdr-menu: none; --hdr-panel: none;
    --logo-mark: none; --logo-solid: none; --logo-neuron: block; --cta-h: 44px; --cta-pad: 20px; --cta-size: 15px;
  }
}
@media (min-width: 1120px) {
  :root[data-nav="6"] {
    --bar-h: 72px; --hdr-gap: 28px; --hdr-nav: flex; --hdr-menu: none; --hdr-panel: none;
    --logo-mark: none; --logo-solid: none; --logo-neuron: block; --cta-h: 44px; --cta-pad: 20px; --cta-size: 15px;
  }
}

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

.ftr { background: var(--deep-navy); color: var(--on-dark); }
.ftr__in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 32px;
  font-size: 14px;
  line-height: 1.5;
}
.ftr__col { display: flex; flex-direction: column; gap: 6px; }
.ftr__head { color: var(--white); font-weight: 600; }
.ftr__logo { color: var(--white); }
.ftr__logo svg { display: block; height: 22px; width: auto; }
.ftr a { color: var(--on-dark); }
.ftr__copy { font-family: var(--font-mono); font-size: 12px; margin-top: 10px; }

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

.hero {
  background-color: var(--navy);
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--white);
}
.hero__in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px 80px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px 56px;
  align-items: center;
}
.hero__text { flex: 6 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero__h1 {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(36px, 3.2vw + 10px, 54px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero__lede { margin: 0; font-size: 19px; line-height: 1.5; color: var(--on-dark-strong); max-width: 640px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }

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

.btn { padding: 16px 26px; border-radius: 4px; font-weight: 600; font-size: 17px; }
.btn--primary { background: var(--cyan); color: var(--deep-navy); }
a.btn--primary:hover { color: var(--deep-navy); }
.btn--ghost { border: 1px solid var(--slate); color: var(--white); }
a.btn--ghost:hover { color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); padding: 14px 22px; border-radius: 4px; font-weight: 600; font-size: 16px; }
a.btn-navy:hover { color: var(--white); }

/* ------------------------------------------------------------ shared section parts */

.sec { background: var(--white); }
.sec--ground { background: var(--ground); }
.sec--ruled { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.sec--top-rule { border-top: 1px solid var(--rule); }
.sec__in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--link-teal);
}
.eyebrow--dark { color: var(--light-cyan); }
.shead { display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: flex-end; }
.shead__main { flex: 3 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.shead__intro { flex: 2 1 340px; min-width: 0; margin: 0; font-size: 17px; line-height: 1.55; color: var(--muted); }
.shead--stack { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 14px; max-width: 820px; }
.h2 {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(30px, 2.2vw + 13px, 42px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.h2--balance { text-wrap: balance; }
.h2--dark { color: inherit; }
.h2-small {
  margin: 0;
  font-family: var(--font-head);
  font-size: 30px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--navy);
}
.more-link { align-self: flex-start; font-weight: 600; font-size: 16px; padding: 10px 0; }
.more-link--pull { margin-top: -16px; }

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

.home-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 24px 72px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.home-hero__text { display: flex; flex-direction: column; gap: 24px; max-width: 980px; }
.home-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--light-cyan);
}
.home-hero__h1 {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(38px, 4vw + 8px, 62px);
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.home-hero__lede {
  margin: 0;
  font-size: clamp(17px, 0.5vw + 14px, 20px);
  line-height: 1.5;
  color: var(--on-dark-strong);
  max-width: 760px;
}
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }

/* lab console: four drawn builds */

.drawing { width: 100%; height: auto; display: block; }
.lab { border: 1px solid var(--line-dark); border-radius: 8px; background: var(--deep-navy); overflow: hidden; }
.lab__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-darker);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--on-dark);
}
.lab__name { color: var(--white); }
.lab__grid { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line-darker); }
.lab__panel { min-width: 0; background: var(--deep-navy); display: flex; flex-direction: column; }
.lab__panel--wide { flex: 7 1 520px; }
.lab__panel--narrow { flex: 5 1 380px; }
.lab__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--on-dark);
}
.lab__tag { color: var(--light-cyan); }
.lab__chip { margin-left: auto; border: 1px solid var(--line-dark); border-radius: 3px; padding: 3px 8px; color: var(--on-dark-strong); }
.lab__note {
  margin-top: auto;
  padding: 10px 16px;
  border-top: 1px solid var(--line-darker);
  font-size: 13px;
  color: var(--on-dark);
}
.lab__sim { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 6px 16px 18px; align-items: center; }
.lab__sim-draw { flex: 4 1 320px; min-width: 0; }
.lab__steps {
  flex: 1 1 170px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--on-dark-strong);
}
.lab__step { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line-darker); }
.lab__step--on { padding: 6px 8px; background: var(--navy); border-bottom: 0; border-left: 2px solid var(--cyan); }
.lab__step--end { border-bottom: 0; }
.lab__key { color: var(--on-dark); }
.lab__on-key { color: var(--white); }
.lab__val { color: var(--light-cyan); }

/* the SCADA screen is drawn in the grey of a stock HMI */
.scada { margin: 0 16px 14px; background: #D5D9DE; border-radius: 4px; overflow: hidden; color: #2A3440; }
.scada__kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: #AEB5BD;
  font-family: var(--font-mono);
}
.scada__kpi { background: #C6CBD1; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.scada__kpi--alarm { background: var(--amber); color: var(--deep-navy); }
.scada__label { font-size: 10px; }
.scada__value { font-size: 16px; font-weight: 500; }

.vision { display: flex; flex-wrap: wrap; gap: 14px; padding: 0 16px 14px; align-items: center; }
.vision__draw { flex: 1 1 170px; min-width: 0; }
.vision__text {
  flex: 1 1 170px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--on-dark-strong);
}
.vision__reject {
  align-self: flex-start;
  background: var(--amber);
  color: var(--deep-navy);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 3px;
}
.vision__method { font-family: var(--font-mono); font-size: 12px; color: var(--on-dark); }

.chat { display: flex; flex-direction: column; gap: 10px; padding: 0 16px 14px; font-size: 14px; line-height: 1.5; }
.chat__ask { align-self: flex-end; max-width: 78%; background: var(--panel); color: var(--white); padding: 10px 14px; border-radius: 6px; }
.chat__answer {
  align-self: flex-start;
  max-width: 88%;
  border: 1px solid var(--line-darker);
  color: var(--on-dark-strong);
  padding: 12px 14px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat__sources { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--light-cyan); }
.chat__sources > span { border: 1px solid var(--line-dark); border-radius: 3px; padding: 3px 8px; }

/* ------------------------------------------------------------ measured strip */

.measured { background: var(--white); border-bottom: 1px solid var(--rule); }
.measured__in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.measured__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; }
.measured__note { font-size: 15px; color: var(--muted); }
.measured__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 0;
  border-top: 2px solid var(--navy);
}
.measured__item { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 4px 0; }
.measured__item:last-child { padding-right: 0; }
.measured__value {
  font-family: var(--font-head);
  font-size: 50px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.measured__unit { font-size: 22px; font-weight: 600; letter-spacing: 0; }
.measured__text { font-size: 14px; line-height: 1.45; color: var(--muted); }
a.measured__item { color: inherit; text-decoration: none; }
.measured__more { margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--link-teal); }
a.measured__item:hover .measured__more { text-decoration: underline; }

/* ------------------------------------------------------------ capabilities */

.layers {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
}
.layer { display: flex; flex-wrap: wrap; gap: 0; }
.layer__name {
  flex: 1 1 220px;
  min-width: 0;
  color: var(--white);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.layer__name--4 { background: var(--navy); }
.layer__name--3 { background: var(--panel); }
.layer__name--2 { background: var(--line-darker); }
.layer__name--1 { background: var(--line-dark); }
.layer__num { font-family: var(--font-mono); font-size: 12px; color: var(--light-cyan); }
.layer__title { font-family: var(--font-head); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.layer__items {
  flex: 4 1 560px;
  min-width: 0;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 18px 28px;
}
.layer__item { display: flex; flex-direction: column; gap: 4px; }
.layer__item, .layer__item:hover { color: var(--text); }
.layer__item-title { font-size: 17px; font-weight: 600; color: var(--navy); }
.layer__item-text { font-size: 14px; line-height: 1.5; color: var(--muted); }
.layer__band {
  padding: 7px 24px;
  background: var(--ground);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.fitbox {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding: 26px 28px;
  border: 1px dashed var(--steel);
  border-radius: 8px;
}
.fitbox__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.fitbox__title { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--navy); }
.fitbox__body { font-size: 16px; line-height: 1.5; color: var(--muted); }

/* ------------------------------------------------------------ work cards and rows */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.card, .card:hover { color: var(--text); }
.card__top { background: var(--navy); padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.card__tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--light-cyan); }
.card__flow { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--white); }
.card__node { flex: 1 1 0; border: 1px solid var(--slate); border-radius: 3px; padding: 10px 6px; text-align: center; }
.card__node--on { border-color: var(--cyan); }
.card__link { width: 18px; height: 1px; background: var(--cyan); display: block; }
.card__body { padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.card__title { font-family: var(--font-head); font-size: 21px; line-height: 1.2; font-weight: 700; color: var(--navy); }
.card__text { font-size: 14px; line-height: 1.5; color: var(--muted); }
.card__figures {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--navy);
}

.rows { display: flex; flex-direction: column; border-top: 2px solid var(--navy); }
.rows__head {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.rows__c1 { flex: 3 1 260px; }
.rows__c2 { flex: 1 1 120px; }
.rows__c3 { flex: 4 1 320px; }
.rows__c4 { flex: 1 1 140px; }
@media (max-width: 720px) { .rows__colhead { display: none; } }
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  line-height: 1.45;
}
.row, .row:hover { color: var(--text); }
.row__title { flex: 3 1 260px; font-weight: 600; color: var(--navy); }
.row__cell { color: var(--muted); }

/* ------------------------------------------------------------ ways to start */

.ways { background: var(--navy); color: var(--white); }
.ways__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  overflow: hidden;
  container-type: inline-size;
}
.ways__step { background: var(--navy); padding: 30px 28px; display: flex; flex-direction: column; gap: 12px; }
/* Two columns fit from 641 px (2 x 320 + 1 px gap) up to 961 px. In that range
   a last odd step spans both columns, so no empty cell shows. */
@container (641px <= width < 962px) {
  .ways__step:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.ways__lead {
  font-family: var(--font-head);
  font-size: 46px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--light-cyan);
}
.ways__title { font-size: 19px; font-weight: 600; }
.ways__text { font-size: 15px; line-height: 1.55; color: var(--on-dark-strong); }
.ways__price { font-family: var(--font-mono); font-size: 12px; color: var(--on-dark); margin-top: 6px; }
.ways__principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 20px 32px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--on-dark-strong);
}
.ways__principle { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line-dark); padding-top: 14px; }
.ways__principle-title { font-weight: 600; color: var(--white); }

/* ------------------------------------------------------------ who we work with */

.who { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 28px 32px; }
.who__team { display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--navy); padding-top: 18px; }
.who__title { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--navy); }
.who__text { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ------------------------------------------------------------ industries and technologies */

.sec__in--split { padding: 80px 24px; flex-direction: row; flex-wrap: wrap; gap: 48px 64px; }
.split { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.sectors { display: flex; flex-direction: column; font-size: 16px; color: var(--text); }
.sectors > span { padding: 12px 0; border-top: 1px solid var(--rule); }
.sectors > span:last-child { border-bottom: 1px solid var(--rule); }
.tech { display: flex; flex-direction: column; font-size: 15px; line-height: 1.5; color: var(--text); }
.tech__row { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 12px 0; border-top: 1px solid var(--rule); }
.tech__row:last-child { border-bottom: 1px solid var(--rule); }
.tech__layer { flex: 0 0 150px; font-family: var(--font-mono); font-size: 12px; color: var(--link-teal); padding-top: 2px; }
.tech__items { flex: 1 1 240px; }

/* ------------------------------------------------------------ about */

.sec__in--about { padding: 80px 24px; flex-direction: row; flex-wrap: wrap; gap: 32px 64px; }
.about__head { flex: 2 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.h2-about {
  margin: 0;
  font-family: var(--font-head);
  font-size: 36px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-wrap: balance;
}
.about__body { flex: 3 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.about__text { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); }
.about__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 16px 28px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}
.about__fact { display: flex; flex-direction: column; gap: 4px; border-top: 2px solid var(--navy); padding-top: 14px; }
.about__value {
  font-family: var(--font-head);
  font-size: 38px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}

/* ------------------------------------------------------------ insights */

.sec__in--notes { padding: 80px 24px; flex-direction: row; flex-wrap: wrap; gap: 32px 64px; }
.notes__head { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.notes { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; }
.note { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 18px 0; border-top: 1px solid var(--rule); }
.note, .note:hover { color: var(--text); }
.note:last-child { border-bottom: 1px solid var(--rule); }
.note__date { flex: 0 0 96px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); padding-top: 4px; }
.note__title { flex: 1 1 380px; font-size: 18px; line-height: 1.35; font-weight: 600; color: var(--navy); }

/* ------------------------------------------------------------ brief */

.brief {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px 64px;
}
.brief__text { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.brief__h2 {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(36px, 3vw + 8px, 48px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.brief__lede { margin: 0; font-size: 18px; line-height: 1.55; color: var(--on-dark-strong); }
.brief__steps { display: flex; flex-direction: column; font-size: 15px; line-height: 1.5; color: var(--on-dark-strong); }
.brief__step { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-dark); }
.brief__step:last-child { border-bottom: 1px solid var(--line-dark); }
.brief__num { font-family: var(--font-mono); font-size: 13px; color: var(--light-cyan); }
.brief__contacts { display: flex; flex-wrap: wrap; gap: 6px 24px; font-family: var(--font-mono); font-size: 13px; }
.brief__contacts a, .brief__contacts a:hover { color: var(--white); padding: 8px 0; }
.brief__form {
  position: relative;
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
}
.brief__form label { font-size: 14px; font-weight: 600; color: var(--navy); }
.brief__form input,
.brief__form textarea {
  padding: 13px 12px;
  border: 1px solid var(--steel);
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
}
.brief__form button {
  align-self: flex-start;
  background: var(--navy);
  color: var(--white);
  border: 0;
  padding: 15px 24px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
}
.brief__book { font-size: 13px; color: var(--muted); }
.brief__notice {
  margin: 0;
  padding: 12px 14px;
  border-left: 2px solid var(--link-teal);
  background: var(--ground);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}
.brief__notice--error { border-left-color: var(--navy); }
.brief__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------ inner pages, shared */

.h2-inner {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(28px, 2vw + 12px, 38px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.how .h2-inner { color: inherit; }
.sec__in--tight { gap: 36px; }
/* heading on the left, numbered entries on the right */
.sec__in--pair { flex-direction: row; flex-wrap: wrap; gap: 32px 64px; }
.pair__head { flex: 2 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.pair__body { flex: 3 1 520px; min-width: 0; display: flex; flex-direction: column; }

/* ------------------------------------------------------------ capability page */

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light-cyan);
}

.firststep {
  flex: 5 1 400px;
  min-width: 0;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: var(--deep-navy);
  overflow: hidden;
}
.firststep__label {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-darker);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--light-cyan);
}
.firststep__body { padding: 22px 20px; display: flex; flex-direction: column; gap: 4px; }
.firststep__title { font-family: var(--font-head); font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.firststep__rows {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--on-dark-strong);
}
.firststep__row { display: flex; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line-darker); }
.firststep__key { flex: 0 0 84px; font-family: var(--font-mono); font-size: 12px; color: var(--on-dark); padding-top: 3px; }

/* drawn product view under the hero */
.view { background: var(--deep-navy); color: var(--white); }
.view__in { max-width: 1200px; margin: 0 auto; padding: 0 24px 72px; }
.view__frame {
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--line-darker);
}
.view__main { flex: 8 1 560px; min-width: 0; background: var(--deep-navy); display: flex; flex-direction: column; }
.view__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-darker);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--on-dark);
}
.view__draw { padding: 20px 24px 8px; }
/* A wrapping row, not a grid: the last readout grows to fill its row, so no
   empty cell shows whatever the number of readouts. */
.view__readouts {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--line-darker);
  border-top: 1px solid var(--line-darker);
  font-family: var(--font-mono);
  margin-top: auto;
}
.view__readout { flex: 1 1 130px; background: var(--deep-navy); padding: 12px 18px; display: flex; flex-direction: column; gap: 2px; }
.view__rlabel { font-size: 11px; color: var(--on-dark); }
.view__rvalue { font-size: 17px; color: var(--white); }
.view__rvalue--ok { color: var(--light-cyan); }
.view__side { flex: 4 1 300px; min-width: 0; background: var(--deep-navy); display: flex; flex-direction: column; }
.view__head {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-darker);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--light-cyan);
}
.view__seq {
  display: flex;
  flex-direction: column;
  padding: 8px 18px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--on-dark-strong);
}
.view__step { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-darker); }
.view__step--on { padding: 9px 10px; background: var(--navy); border-bottom: 0; border-left: 2px solid var(--cyan); }
.view__step--end { border-bottom: 0; }
.view__note {
  margin-top: auto;
  padding: 14px 18px;
  border-top: 1px solid var(--line-darker);
  font-size: 13px;
  line-height: 1.5;
  color: var(--on-dark);
}

.view__rvalue--warn { color: var(--amber); }
.view__step--warn { padding: 9px 10px; background: var(--navy); border-bottom: 0; border-left: 2px solid var(--amber); }
.view__warn { color: var(--amber); }

/* gateway map: sources, the gateway and the outputs, left to right */
.gwmap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr) minmax(0, 1fr);
  align-items: center;
  column-gap: 44px;
  padding: 8px 0 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--on-dark);
}
.gwmap__col { display: flex; flex-direction: column; gap: 16px; }
.gwmap__box {
  position: relative;
  display: block;
  padding: 10px 12px;
  background: var(--navy);
  border: 1.5px solid var(--slate);
  border-radius: 3px;
  overflow-wrap: anywhere;
}
/* the arrows: a line from each source into the gateway and from the gateway
   to each output, with a head at the arrival end */
.gwmap__col--in .gwmap__box::after,
.gwmap__col--out .gwmap__box::before {
  content: "";
  position: absolute;
  top: calc(50% - 0.75px);
  width: 44px;
  border-top: 1.5px solid var(--cyan);
}
.gwmap__col--in .gwmap__box::after { left: calc(100% + 1.5px); }
.gwmap__col--out .gwmap__box::before { right: calc(100% + 1.5px); }
.gwmap__col--in .gwmap__box::before,
.gwmap__col--out .gwmap__box::after {
  content: "";
  position: absolute;
  top: calc(50% - 4px);
  border-left: 7px solid var(--cyan);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}
.gwmap__col--in .gwmap__box::before { left: calc(100% + 39px); }
.gwmap__col--out .gwmap__box::after { left: -8.5px; }
.gwmap__gw {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 16px 12px;
  background: var(--navy);
  border: 1.5px solid var(--light-cyan);
  border-radius: 4px;
  text-align: center;
  color: var(--on-dark-strong);
}
.gwmap__title { padding-bottom: 10px; border-bottom: 1px solid var(--line-darker); color: var(--light-cyan); }
.gwmap__rules { margin-top: 4px; padding: 10px 8px; border: 1.5px solid var(--amber); border-radius: 3px; color: var(--amber); }
@media (max-width: 639px) {
  .gwmap { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
  .gwmap__col--in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gwmap__col--out { gap: 10px; }
  .gwmap__col .gwmap__box::before,
  .gwmap__col .gwmap__box::after { display: none; }
  .gwmap__gw::before,
  .gwmap__gw::after {
    content: "";
    position: absolute;
    left: calc(50% - 0.75px);
    height: 36px;
    border-left: 1.5px solid var(--cyan);
  }
  .gwmap__gw::before { bottom: calc(100% + 1.5px); }
  .gwmap__gw::after { top: calc(100% + 1.5px); }
}

/* a home lab console card on its own, as the view of a capability page */
.view__card { margin: 0 auto; }
.view__card--narrow { max-width: 760px; }
.view__card--wide { max-width: 960px; }

/* fleet update view */
.ota {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 24px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--on-dark-strong);
}
.ota__roll { display: flex; flex-direction: column; gap: 8px; }
.ota__label { font-size: 13px; color: var(--white); }
.ota__bar { display: block; height: 8px; border-radius: 4px; background: var(--line-darker); overflow: hidden; }
.ota__fill { display: block; width: 83.3%; height: 100%; background: var(--cyan); }
.ota__table { display: flex; flex-direction: column; }
.ota__row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.6fr);
  gap: 8px;
  padding: 8px 8px;
  border-bottom: 1px solid var(--line-darker);
  border-left: 2px solid transparent;
}
.ota__row:last-child { border-bottom: 0; }
.ota__row--head { font-size: 11px; color: var(--on-dark); }
.ota__row--on { background: var(--navy); border-left-color: var(--cyan); }
.ota__pending { color: var(--light-cyan); }
.ota__offline { color: var(--amber); }

/* Perspective overview, drawn in the grey of a stock HMI */
.hmi { margin: 16px; background: #D5D9DE; border-radius: 4px; overflow: hidden; color: #2A3440; font-family: var(--font-mono); font-size: 12px; }
.hmi--side { margin: 16px 18px; }
.hmi__head { padding: 8px 12px; background: #C6CBD1; border-bottom: 1px solid #AEB5BD; font-size: 11px; }
.hmi__alarms { display: flex; flex-direction: column; }
.hmi__alarm {
  display: grid;
  grid-template-columns: 40px 44px minmax(0, 1fr) 58px;
  gap: 8px;
  padding: 7px 12px;
  border-bottom: 1px solid #C6CBD1;
}
.hmi__alarm--head { font-size: 10px; color: #4A5560; }
.hmi__alarm--active { background: var(--amber); color: var(--deep-navy); font-weight: 500; }
.hmi__fp { display: flex; flex-direction: column; }
.hmi__fprow { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-bottom: 1px solid #C6CBD1; }
.hmi__fpval { font-weight: 500; }
.hmi__buttons { display: flex; gap: 6px; padding: 12px; }
.hmi__button { flex: 1 1 0; padding: 8px 0; background: #C6CBD1; border: 1px solid #8E97A1; border-radius: 3px; text-align: center; font-size: 11px; }

/* 01 what it is for */
.uses__entry { display: flex; gap: 20px; padding: 20px 0; border-top: 1px solid var(--rule); }
.uses__entry:first-child { border-top: 2px solid var(--navy); }
.uses__entry:last-child { border-bottom: 1px solid var(--rule); }
.uses__num { flex: 0 0 34px; font-family: var(--font-mono); font-size: 14px; color: var(--link-teal); padding-top: 3px; }
.uses__text { display: flex; flex-direction: column; gap: 4px; }
.uses__title { font-size: 19px; font-weight: 600; color: var(--navy); }
.uses__body { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* 02 how a build runs */
.how { background: var(--navy); color: var(--white); }
.how__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  overflow: hidden;
  container-type: inline-size;
}
/* Three columns fit from 602 px (3 x 200 + 2 px gaps) up to 802 px. In that
   range a last step alone on its row spans the row, so no empty cell shows. */
@container (602px <= width < 803px) {
  .how__step:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
}
.how__step { background: var(--navy); padding: 24px 22px; display: flex; flex-direction: column; gap: 8px; }
.how__label { font-family: var(--font-mono); font-size: 12px; color: var(--light-cyan); }
.how__title { font-size: 18px; font-weight: 600; }
.how__text { font-size: 14px; line-height: 1.5; color: var(--on-dark-strong); }
.how__figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 24px 40px;
  border-top: 1px solid var(--line-dark);
  padding-top: 28px;
}
.how__figure { display: flex; flex-direction: column; gap: 6px; }
.how__value {
  font-family: var(--font-head);
  font-size: 44px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--light-cyan);
}
.how__ftext { font-size: 14px; line-height: 1.5; color: var(--on-dark-strong); }
.how__method { font-size: 13px; line-height: 1.5; color: var(--on-dark); }

/* 03 where it fits */
.fit { background: var(--white); border: 1px solid var(--rule); border-radius: 8px; overflow-x: auto; }
.fit__table { min-width: 640px; display: flex; flex-direction: column; font-size: 15px; line-height: 1.45; }
.fit__row { display: flex; gap: 0; border-top: 1px solid var(--rule); }
.fit__row--head {
  border-top: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.fit__c1 { flex: 1 1 0; padding: 14px 20px; }
.fit__c2 { flex: 1.4 1 0; padding: 14px 20px; }
.fit__label { font-weight: 600; color: var(--navy); }
.fit__theirs { color: var(--muted); }
.fit__colname { display: none; }
/* Phones: no sideways scrolling. Each row stacks: its label, then each value
   under its column name. The header row stays for assistive tech only. */
@media (max-width: 639px) {
  .fit { position: relative; overflow-x: visible; }
  .fit__table { min-width: 0; }
  .fit__row { flex-direction: column; gap: 10px; padding: 16px 18px; }
  .fit__row--head {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .fit__row--head + .fit__row { border-top: 0; }
  .fit__c1, .fit__c2 { flex: none; padding: 0; }
  .fit__colname {
    display: block;
    margin-bottom: 2px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--link-teal);
  }
  .fit__theirs .fit__colname { color: var(--muted); }
}
.fitnote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding: 26px 28px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 8px;
}
.fitnote__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.fitnote__title { font-family: var(--font-head); font-size: 21px; font-weight: 700; color: var(--navy); }
.fitnote__body { font-size: 16px; line-height: 1.5; color: var(--muted); }
.fitnote__link { font-weight: 600; font-size: 16px; padding: 12px 0; }

/* 04 before you ask */
.faq__entry { padding: 20px 0; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; }
.faq__entry:first-child { border-top: 2px solid var(--navy); }
.faq__entry:last-child { border-bottom: 1px solid var(--rule); }
.faq__q { font-size: 18px; font-weight: 600; color: var(--navy); }
.faq__a { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* closing call to action */
.cta {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 48px;
}
.cta__text { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cta__h2 {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(32px, 2.6vw + 8px, 44px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.cta__lede { margin: 0; font-size: 18px; line-height: 1.55; color: var(--on-dark-strong); max-width: 640px; }

/* ------------------------------------------------------------ work page */

.cs-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cs-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.cs-crumbs__link { padding: 8px 0; }
.cs-crumbs__sep { color: var(--steel); }
.cs-crumbs__type,
.cs-crumbs__area { text-transform: uppercase; border-radius: 3px; }
.cs-crumbs__type { background: var(--navy); color: var(--white); padding: 5px 10px; }
.cs-crumbs__area { border: 1px solid var(--steel); color: var(--text); padding: 4px 10px; }
.cs-h1 {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(34px, 3vw + 10px, 52px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--navy);
  max-width: 980px;
  text-wrap: balance;
}
.cs-lede { margin: 0; font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 800px; }
.cs-facts { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--ground); }
.cs-facts__in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 18px 32px;
}
.cs-fact { display: flex; flex-direction: column; gap: 4px; }
.cs-fact__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); }
.cs-fact__text { font-size: 15px; font-weight: 600; color: var(--navy); }

/* what we measured and how */
.measure { background: var(--navy); color: var(--white); }
.measure__in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.measure__head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 48px; }
.measure__h2 {
  flex: 1 1 420px;
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(28px, 2vw + 12px, 38px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.measure__note { flex: 1 1 320px; font-size: 15px; line-height: 1.5; color: var(--on-dark-strong); }
.measure__wrap { border: 1px solid var(--line-dark); border-radius: 8px; overflow-x: auto; }
.measure__table { min-width: 680px; display: flex; flex-direction: column; font-size: 15px; line-height: 1.45; }
.measure__row { display: flex; border-top: 1px solid var(--line-dark); align-items: baseline; }
.measure__row--head {
  border-top: 0;
  align-items: stretch;
  background: var(--deep-navy);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--on-dark);
}
.measure__c1 { flex: 1.3 1 0; padding: 16px 20px; color: var(--on-dark-strong); }
.measure__c2 { flex: 1 1 0; padding: 16px 20px; }
.measure__c3 { flex: 2 1 0; padding: 16px 20px; color: var(--on-dark-strong); }
.measure__row--head > span { padding: 13px 20px; color: inherit; }
.measure__result {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 700;
  color: var(--light-cyan);
}
.measure__result--base { color: var(--white); }

/* article and aside */
.cs-details {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px 64px;
}
.cs-article { flex: 8 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 44px; }
.cs-block { display: flex; flex-direction: column; gap: 12px; }
.cs-block--arch { gap: 14px; }
.cs-h2 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--navy);
}
.cs-p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--text); }
.cs-list { margin: 0; padding-left: 22px; font-size: 17px; line-height: 1.75; color: var(--text); }
.arch {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--ground);
}
.arch__tier { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.arch__tier--small { grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); }
.arch__box { padding: 16px; border-radius: 4px; display: flex; flex-direction: column; gap: 4px; }
.arch__box--light { background: var(--white); border: 1px solid var(--steel); }
.arch__box--dark { background: var(--navy); color: var(--white); }
.arch__box--small {
  display: block;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--steel);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
}
.arch__box--dashed { border-style: dashed; }
.arch__title { font-size: 15px; font-weight: 600; color: var(--navy); }
.arch__box--dark .arch__title { color: inherit; }
.arch__note { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.arch__box--dark .arch__note { color: var(--on-dark); }
.arch__via { text-align: center; font-family: var(--font-mono); font-size: 12px; color: var(--link-teal); padding: 4px 0; }
.cs-not {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 28px;
  border: 1px solid var(--navy);
  border-radius: 8px;
}
.cs-not__h2 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--navy);
}
.cs-not__p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text); }

.cs-aside { flex: 4 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.cs-box { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--rule); border-radius: 8px; }
.cs-box--related { gap: 4px; }
.cs-box__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--link-teal); }
.cs-box__text { font-size: 15px; line-height: 1.6; color: var(--text); }
.cs-related { font-size: 16px; font-weight: 600; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.cs-related:last-child { border-bottom: 0; }
.cs-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
}
.cs-cta__title { font-family: var(--font-head); font-size: 21px; font-weight: 700; line-height: 1.2; }
.cs-cta__text { font-size: 15px; line-height: 1.5; color: var(--on-dark-strong); }
.cs-cta__btn {
  align-self: flex-start;
  margin-top: 4px;
  background: var(--cyan);
  color: var(--deep-navy);
  padding: 14px 20px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 16px;
}
a.cs-cta__btn:hover { color: var(--deep-navy); }

/* closing band */
.cs-end {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 48px;
}
.cs-end__h2 {
  flex: 1 1 520px;
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(26px, 1.6vw + 12px, 34px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.cs-end__link { border: 1px solid var(--navy); color: var(--navy); padding: 14px 22px; border-radius: 4px; font-weight: 600; font-size: 16px; }
a.cs-end__link:hover { color: var(--navy); }
