/* Nikola Logic site styles, shared by index.html and products.html */
/* Layout: datasheet. A label column on the left of every section, content on the right; brands as full-width bands. */
:root {
  --bg: #f5f7f9;
  --surface: #ffffff;
  --fg: #0f1a24;
  --muted: #566573;
  --line: #d6dee5;
  --accent: #008bd8;
  --accent-ink: #006aa6;
  --band: #0f1a24;
  --band-fg: #e2eaf0;
  --band-muted: #93a3b1;
  --band-line: #26343f;
  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, "Courier New", monospace;
  --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1218; --surface: #111a22; --fg: #e2eaf0; --muted: #8b9aa7; --line: #223140;
    --accent: #3aa9f0; --accent-ink: #6cc0f5;
    --band: #16222d; --band-fg: #e2eaf0; --band-muted: #93a3b1; --band-line: #2a3a48;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1218; --surface: #111a22; --fg: #e2eaf0; --muted: #8b9aa7; --line: #223140;
  --accent: #3aa9f0; --accent-ink: #6cc0f5;
  --band: #16222d; --band-fg: #e2eaf0; --band-muted: #93a3b1; --band-line: #2a3a48;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  max-width: var(--max); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
header.site {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; }
.logo { display: block; height: 40px; width: auto; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
nav.site { display: flex; gap: 22px; flex-wrap: wrap; }
nav.site a {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
}
nav.site a:hover { color: var(--fg); }
@media (max-width: 640px) { nav.site { display: none; } }

/* Shared type */
.eyebrow {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin: 0;
}
h1, h2, h3 { font-family: var(--font-display); font-stretch: 112%; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 750; line-height: 1.04; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; line-height: 1.1; }
h3 { font-size: 20px; font-weight: 650; line-height: 1.25; }
p { margin: 0; max-width: 64ch; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); line-height: 1.55; }
.sub { font-size: 17px; color: var(--muted); line-height: 1.55; }

/* Section frame: label column + content */
section { border-bottom: 1px solid var(--line); }
/* sections: label on top, everything centred on the page */
section > .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; padding-block: 44px 72px; justify-items: center; text-align: center; }
.content { display: grid; gap: 28px; min-width: 0; width: 100%; justify-items: center; }
.content p { margin-inline: auto; }
.content > .lines, .content > .cycles, .content > .contact-rows, .content > .hv-grid, .content > .facts, .content > .shot, .content > .store, .subblock { width: 100%; }
.cycle, .contact-rows, .hv-grid, .facts, .store { text-align: left; }
/* section labels sit centred between two rules; headings and intro text sit left, balancing the hero */
section > .wrap > .label, .subblock > .eyebrow { display: flex; align-items: center; justify-content: center; gap: 18px; }
section > .wrap > .label::before, section > .wrap > .label::after,
.subblock > .eyebrow::before, .subblock > .eyebrow::after { content: ""; flex: none; width: 72px; height: 1px; background: var(--line); }
section.band > .wrap > .label::before, section.band > .wrap > .label::after { background: var(--band-line); }
.content > h2, .content > .lead, .content > .sub, .content > .lead-band, .content > .brand-head, .subblock > h2 { justify-self: center; text-align: center; }
section h2 { font-size: clamp(20px, 2vw, 24px); font-weight: 560; font-stretch: 105%; letter-spacing: 0; }
.subblock > .eyebrow { margin-bottom: 16px; }
section > .wrap > .label .eyebrow, .subblock > .eyebrow { color: var(--accent-ink); }
section.band > .wrap > .label .eyebrow { color: var(--accent); }
.subblock { gap: 30px; margin-top: 40px; }
@media (max-width: 820px) {
  section > .wrap { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: 52px; }
}

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); padding-block: 88px 30px; }
.hero .copy { display: grid; gap: 26px; min-width: 0; max-width: 680px; }
.sectors { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) { .hero-fx { display: none; } }
.hero h1 em { font-style: normal; color: var(--accent); }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-block; padding: 12px 20px; border-radius: 3px;
  font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.04em; text-decoration: none;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--fg); background: transparent; }

/* Datasheet panel in hero */
.sheet { border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.sheet .head { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.sheet dl { margin: 0; }
.sheet .row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sheet .row:last-child { border-bottom: 0; }
.sheet dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.sheet dd { margin: 0; font-size: 15.5px; line-height: 1.45; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 56px; } }

/* Three lines of business index */
.lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.lines a { display: grid; gap: 10px; align-content: start; justify-items: start; text-align: left; padding: 22px 22px 26px; text-decoration: none; color: var(--fg); border-bottom: 1px solid var(--line); }
.lines a + a { padding-left: 22px; border-left: 1px solid var(--line); }
.lines a:hover h3 { color: var(--accent); }
.lines h3 { font-size: 18px; font-stretch: 100%; white-space: nowrap; }
.subblock { display: grid; gap: 14px; margin-top: 28px; justify-items: center; }
.lines.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wordmark, .mark-slot { display: flex; align-items: center; height: 44px; }
.wordmark { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; letter-spacing: 0.18em; font-size: 15px; color: var(--fg); }
.lines p { font-size: 15.5px; color: var(--muted); }
/* short ticked lists inside the service cards and engineering modes */
ul.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 7px; text-align: left; justify-self: start; }
ul.ticks li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.4; color: var(--muted); }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 9px; height: 1.5px; background: var(--accent); }
.lines .go { font-family: var(--font-mono); font-size: 13px; color: var(--accent-ink); }
/* cards: no rules above or below, a short divider between neighbours, everything centred */
.lines { border-top: 0; }
.lines a { position: relative; border-bottom: 0; justify-items: center; text-align: center; padding: 18px 26px 22px; }
.lines a + a { border-left: 0; padding-left: 26px; }
.lines a + a::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 54px; transform: translateY(-50%); background: var(--line); }
/* card titles take the small label size; section labels take the card-title size */
.lines h3 { font-family: var(--font-mono); font-size: 14px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg); display: flex; align-items: center; gap: 10px; }
.lines h3::before, .lines h3::after { content: ""; width: 16px; height: 1px; background: var(--line); }
section > .wrap > .label .eyebrow, .subblock > .eyebrow { font-size: 18px; letter-spacing: 0.08em; }
/* arrowhead marker */
ul.ticks li::before { top: 0.5em; left: 1px; width: 6px; height: 6px; border: solid var(--accent); border-width: 1.6px 1.6px 0 0; border-radius: 0; background: none; box-sizing: border-box; transform: rotate(45deg); }
/* the list sits centred in the card as one block, with its rings on a single left edge */
.lines ul.ticks { display: inline-grid; justify-self: center; justify-items: start; text-align: left; gap: 8px; margin-top: 6px; }
@media (max-width: 1100px) {
  .lines, .lines.two { grid-template-columns: minmax(0, 1fr); }
  .lines a, .lines a + a { padding: 18px 0; border-left: 0; }
  .lines a + a::before { left: 50%; top: 0; width: 54px; height: 1px; transform: translateX(-50%); }
}

/* Two ways we are hired */
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.path { background: var(--surface); border: 1px solid var(--line); padding: 22px 24px 24px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.path .eyebrow { color: var(--accent-ink); }
.path p { font-size: 16px; color: var(--muted); }
@media (max-width: 760px) { .paths { grid-template-columns: minmax(0, 1fr); } }
.partners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.partners div { padding: 18px 18px 4px 0; display: grid; gap: 6px; align-content: start; min-width: 0; }
.partners div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.partners p { font-size: 15.5px; color: var(--muted); }
.partners .eyebrow { font-size: 12px; }
@media (max-width: 820px) {
  .partners { grid-template-columns: minmax(0, 1fr); }
  .partners div, .partners div + div { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* Ways of working: two cycles, outward and inward */
.cycles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cycle { background: var(--surface); border: 1px solid var(--line); padding: 8px 20px 22px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.cycle svg { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto; overflow: visible; }
.cy-ring { fill: none; stroke: var(--line); stroke-width: 1.5; }
.cy-trail { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; opacity: 0.55; }
.cy-dot { fill: var(--accent); }
.cy-spin { transform-origin: 240px 190px; animation: cy-spin 12s linear infinite; }
@keyframes cy-spin { to { transform: rotate(360deg); } }
.cy-node circle { fill: var(--surface); stroke: var(--muted); stroke-width: 1.5; }
.cy-node text { font-family: var(--font-mono); font-size: 12px; fill: var(--muted); }
.cy-node.lit circle { fill: var(--accent); stroke: var(--accent); }
.cy-node.lit text.cy-num { fill: #fff; }
.cy-label { font-family: var(--font-body); font-size: 14px; fill: var(--fg); }
.cy-c-eye { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; fill: var(--accent-ink); }
.cy-c-title { font-family: var(--font-display); font-stretch: 108%; font-size: 17px; font-weight: 650; fill: var(--fg); }
.modes { display: grid; gap: 0; border-top: 1px solid var(--line); }
.mode { display: grid; gap: 3px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mode:last-child { border-bottom: 0; padding-bottom: 0; }
.mode h4 { margin: 0; font-family: var(--font-display); font-stretch: 108%; font-size: 17px; font-weight: 650; }
.mode p { font-size: 15px; color: var(--muted); }
.mx-note { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .cycles { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .cy-spin { animation: none; display: none; } }

/* Capabilities list */
.caps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.cap { display: grid; gap: 6px; padding: 20px 0; border-top: 1px solid var(--line); min-width: 0; }
.cap p { font-size: 15.5px; color: var(--muted); }
@media (max-width: 700px) { .caps { grid-template-columns: minmax(0, 1fr); } }

.custom {
  border-left: 3px solid var(--accent); padding: 4px 0 4px 20px;
  font-family: var(--font-display); font-stretch: 105%; font-size: clamp(20px, 2.4vw, 25px); font-weight: 600; line-height: 1.35;
  max-width: 40ch;
}

/* Process */
ol.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); counter-reset: s; }
ol.steps li { counter-increment: s; padding: 18px 16px 4px 0; display: grid; gap: 6px; align-content: start; min-width: 0; }
ol.steps li + li { padding-left: 16px; border-left: 1px solid var(--line); }
ol.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-mono); font-size: 12.5px; color: var(--accent-ink); }
ol.steps b { font-family: var(--font-display); font-stretch: 108%; font-size: 17px; font-weight: 650; }
ol.steps span { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
@media (max-width: 900px) {
  ol.steps { grid-template-columns: minmax(0, 1fr); }
  ol.steps li, ol.steps li + li { padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* Industries */
.inds { display: flex; flex-wrap: wrap; gap: 10px; }
.inds span { font-family: var(--font-mono); font-size: 13.5px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 2px; }

/* Brand bands */
section.band { background: var(--band); color: var(--band-fg); border-bottom-color: var(--band-line); }
section.band .eyebrow { color: var(--band-muted); }
section.band p { color: var(--band-muted); }
section.band .brand { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; letter-spacing: 0.18em; font-size: 15px; color: var(--band-fg); }
section.band .lead-band { font-size: clamp(18px, 2vw, 21px); color: var(--band-fg); line-height: 1.55; max-width: 60ch; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--band-line); }
.facts div { padding: 16px 16px 0 0; display: grid; gap: 4px; min-width: 0; }
.facts div + div { padding-left: 16px; border-left: 1px solid var(--band-line); }
.facts b { font-family: var(--font-display); font-stretch: 108%; font-weight: 650; font-size: 16.5px; color: var(--band-fg); }
.facts span { font-size: 14.5px; color: var(--band-muted); line-height: 1.45; }
@media (max-width: 820px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div, .facts div + div { padding: 14px 12px 14px 0; border-left: 0; border-bottom: 1px solid var(--band-line); }
}
figure.shot { margin: 0; display: grid; gap: 10px; min-width: 0; }
figure.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--band-line); border-radius: 3px; }
figure.shot figcaption { font-family: var(--font-mono); font-size: 12.5px; color: var(--band-muted); }
.tag {
  display: inline-block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border: 1px solid var(--accent); color: var(--accent); border-radius: 2px; width: fit-content;
}
.brand-head { display: flex; align-items: center; justify-content: center; gap: 14px 32px; flex-wrap: wrap; }
.hv-logo { height: 44px; width: auto; }

/* Hidden Via */
.hv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.hv-grid div { padding: 18px 18px 0 0; display: grid; gap: 6px; min-width: 0; }
.hv-grid div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.hv-grid p { font-size: 15.5px; color: var(--muted); }
@media (max-width: 820px) {
  .hv-grid { grid-template-columns: minmax(0, 1fr); }
  .hv-grid div, .hv-grid div + div { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}
.store {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border: 1px dashed var(--line); padding: 16px 20px; background: var(--surface);
}
.store b { font-family: var(--font-display); font-stretch: 108%; font-weight: 650; }
.store span { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }

/* Contact */
.contact-rows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-rows .row { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-rows .k { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.contact-rows .v { font-size: 18px; overflow-wrap: anywhere; user-select: all; }
.copy-btn {
  font-family: var(--font-mono); font-size: 12.5px; padding: 6px 12px; cursor: pointer;
  background: transparent; color: var(--fg); border: 1px solid var(--line); border-radius: 2px;
}
.copy-btn:hover { border-color: var(--fg); }
@media (max-width: 560px) { .contact-rows .row { grid-template-columns: minmax(0, 1fr) auto; } .contact-rows .k { grid-column: 1 / -1; } }

footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 28px 40px; }
footer.site p { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }

/* Hidden Via section: intro text left-aligned; its three cards styled like the core services cards */
#hidden-via .content > h2, #hidden-via .content > .lead, #hidden-via .content > p, #hidden-via .content > .brand-head { justify-self: start; text-align: left; margin-inline: 0; }
#hidden-via .hv-grid { border-top: 0; text-align: center; }
#hidden-via .hv-grid div { position: relative; justify-items: center; align-content: start; padding: 18px 26px 22px; border-bottom: 0; gap: 10px; }
#hidden-via .hv-grid div + div { border-left: 0; padding-left: 26px; }
#hidden-via .hv-grid div + div::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 54px; transform: translateY(-50%); background: var(--line); }
#hidden-via .hv-grid h3 { font-family: var(--font-mono); font-size: 14px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap; }
#hidden-via .hv-grid h3::before, #hidden-via .hv-grid h3::after { content: ""; width: 16px; height: 1px; background: var(--line); }
#hidden-via .hv-grid p { max-width: 30ch; }
@media (max-width: 820px) {
  #hidden-via .hv-grid div, #hidden-via .hv-grid div + div { padding: 18px 0; }
  #hidden-via .hv-grid div + div::before { left: 50%; top: 0; width: 54px; height: 1px; transform: translateX(-50%); }
}

/* Cards read as links: a lifted tile on hover, title and side lines turn blue, the arrow slides */
.lines a { border-radius: 4px; transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.lines a h3, .lines a h3::before, .lines a h3::after, .lines .go { transition: color .2s ease, background-color .2s ease, width .2s ease, transform .2s ease; }
.lines a:hover, .lines a:focus-visible { background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 10px 24px -14px rgba(10, 30, 50, .35); transform: translateY(-2px); }
.lines a:hover::before, .lines a:hover + a::before { opacity: 0; }
.lines a:hover h3 { color: var(--accent-ink); }
.lines a:hover h3::before, .lines a:hover h3::after { background: var(--accent); width: 24px; }
.lines a:hover .go { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .lines a, .lines a * { transition: none !important; } .lines a:hover { transform: none; } }

/* Services page */
nav.site a[aria-current="page"] { color: var(--fg); }
section[id] { scroll-margin-top: 72px; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; max-width: 760px; }
.cols > div { position: relative; display: grid; gap: 10px; justify-items: center; align-content: start; padding: 10px 26px; }
.cols > div + div::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 54px; transform: translateY(-50%); background: var(--line); }
.cols h3 { font-family: var(--font-mono); font-size: 14px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.cols h3::before, .cols h3::after { content: ""; width: 16px; height: 1px; background: var(--line); }
.cols ul.ticks { justify-self: center; gap: 8px; }
.content > a.go { font-family: var(--font-mono); font-size: 13px; color: var(--accent-ink); text-decoration: none; }
.content > a.go:hover { color: var(--accent); }
@media (max-width: 700px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .cols > div { padding: 18px 0; }
  .cols > div + div::before { left: 50%; top: 0; width: 54px; height: 1px; transform: translateX(-50%); }
}

/* longer reading text: a left-aligned column centred on the page */
.prose { display: grid; gap: 16px; width: 100%; text-align: left; }
.prose p { margin: 0; max-width: none; font-size: 17px; line-height: 1.7; color: var(--muted); }

/* three cycles across: larger type inside each drawing so it reads at a third of the width */
.cycles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cycles.three .cycle { padding: 14px 10px 18px; }
.cycles.three .cy-label { font-size: 18px; }
.cycles.three .cy-c-eye { font-size: 13.5px; }
.cycles.three .cy-c-title { font-size: 21px; }
.cycles.three .cy-node text { font-size: 14px; }
@media (max-width: 1000px) { .cycles.three { grid-template-columns: minmax(0, 1fr); } .cycles.three .cycle svg { max-width: 420px; } }

/* two described items side by side: centred title with side lines, reading text below */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; width: 100%; }
.pair > div { position: relative; display: grid; gap: 12px; align-content: start; padding: 8px 34px; }
.pair > div:first-child { padding-left: 0; }
.pair > div:last-child { padding-right: 0; }
.pair > div + div::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 54px; transform: translateY(-50%); background: var(--line); }
.pair h3 { justify-self: center; font-family: var(--font-mono); font-size: 14px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.pair h3::before, .pair h3::after { content: ""; width: 16px; height: 1px; background: var(--line); }
.pair p { margin: 0; max-width: none; text-align: left; font-size: 16px; line-height: 1.65; color: var(--muted); }
@media (max-width: 760px) {
  .pair { grid-template-columns: minmax(0, 1fr); }
  .pair > div, .pair > div:first-child, .pair > div:last-child { padding: 18px 0; }
  .pair > div + div::before { left: 50%; top: 0; width: 54px; height: 1px; transform: translateX(-50%); }
}

/* production flow: the stages a product passes through, test stations picked out in blue */
ol.flow { list-style: none; margin: 30px 0 26px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 0; }
ol.flow li { display: flex; align-items: center; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
/* arrows between stages: a line, then its head, then the stage name */
ol.flow li > span { order: 2; }
ol.flow li + li::before { content: ""; order: 0; width: 38px; height: 1px; margin-left: 14px; background: var(--muted); opacity: .55; }
ol.flow li + li::after { content: ""; order: 1; width: 7px; height: 7px; margin: 0 14px 0 -7px; border: solid var(--muted); border-width: 1.4px 1.4px 0 0; transform: rotate(45deg); opacity: .8; }
ol.flow li.hit { color: var(--accent-ink); }
ol.flow li.hit span { padding: 7px 12px; border: 1px solid var(--accent); border-radius: 2px; }
@media (max-width: 760px) {
  ol.flow { flex-direction: column; gap: 0; }
  ol.flow li { flex-direction: column; }
  ol.flow li + li::before { width: 1px; height: 18px; margin: 8px 0 0; }
  ol.flow li + li::after { margin: -7px 0 10px; transform: rotate(135deg); }
}

/* a section's one-line summary, set small and grey and tucked up under its label */
.content > h2.kicker { margin-top: -22px; font-family: var(--font-body); font-stretch: 100%; font-size: 15px; font-weight: 400; letter-spacing: 0.01em; color: var(--muted); }

/* Gallus sits on the page ground like every other section; its band colours fall back to the page colours */
#gallus { --band-fg: var(--fg); --band-muted: var(--muted); --band-line: var(--line); }
#gallus .brand { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; letter-spacing: 0.18em; font-size: 15px; color: var(--fg); }
#gallus .lead-band { color: var(--fg); }

/* Product line sections: label centred like every page, everything below it on one left edge */
section.line .content { justify-items: start; text-align: left; }
section.line .content p { margin-inline: 0; }
section.line .brand-head { justify-self: start; justify-content: flex-start; }
.features { display: grid; width: 100%; border-top: 1px solid var(--line); }
.features.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.features.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.features div { display: grid; gap: 4px; align-content: start; justify-items: center; text-align: center; min-width: 0; padding: 16px 12px 0; }
.features div + div { border-left: 1px solid var(--line); }
.features b { font-family: var(--font-display); font-stretch: 108%; font-weight: 650; font-size: 16.5px; color: var(--fg); }
.features span { font-size: 14.5px; line-height: 1.45; color: var(--muted); }
section.line figure.shot { width: 100%; }
section.line figure.shot img { border-color: var(--line); }
section.line figure.shot figcaption { color: var(--muted); }
section.line .note { font-size: 15px; color: var(--muted); }
@media (max-width: 1100px) {
  .features.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features.four div:nth-child(3) { border-left: 0; }
  .features.four div:nth-child(n+3) { padding-top: 22px; }
}
@media (max-width: 820px) {
  .features.four, .features.three { grid-template-columns: minmax(0, 1fr); }
  .features div, .features div + div { padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ===== Light: white ground, blue current and accents, whatever the viewer's theme ===== */
:root, :root:not([data-theme="light"]), :root[data-theme="dark"], :root[data-theme="light"] {
  --bg: #ffffff; --surface: #f4f8fb; --fg: #0f1a24; --muted: #566573; --line: #d6dee5;
  --accent: #008bd8; --accent-ink: #006aa6;
  --band: #0a66a3; --band-fg: #ffffff; --band-muted: #cfe2f1; --band-line: #3d8bc2;
  color-scheme: light;
}
.logo-dark, .hv-logo.logo-dark { display: none !important; }
.logo-light, .hv-logo.logo-light { display: block !important; }
section.band .tag { border-color: var(--band-fg); color: var(--band-fg); }
section.band > .wrap > .label .eyebrow { color: var(--band-fg); }
