/* Genesis Tech. Colours taken from the logo. */
:root {
  --navy: #021e48;
  --blue: #0064f0;
  --blue-text: #0057d6;
  --sky: #9cc3f7;
  --ice: #dbe8fd;
  --ink: #16233a;
  --text: #2c3a50;
  --muted: #5a6880;
  --line: #dfe4ec;
  --steel: #c9d2df;
  --tint: #f5f7fa;
  --white: #ffffff;

  --font-head: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --max: 1200px;
  --gutter: 24px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-text); }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--navy);
  font-weight: 600;
  margin: 0;
}
h1 { font-size: clamp(2.4rem, 4.4vw, 3.7rem); line-height: 1.03; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.6rem); line-height: 1.08; }
h3 { font-size: 1.3rem; line-height: 1.2; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 14px; text-decoration: none;
}
.skip-link:focus { left: 12px; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Buttons and links */
.button {
  display: inline-block;
  padding: 14px 22px;
  border: 1px solid var(--navy);
  border-radius: 3px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .15s, border-color .15s;
}
.button:hover { background: var(--blue); border-color: var(--blue); }
.button-small { padding: 9px 16px; font-size: .95rem; }
.button-light { background: var(--white); border-color: var(--white); color: var(--navy); }
.button-light:hover { background: var(--ice); border-color: var(--ice); }

.text-link {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: text-decoration-color .15s;
}
.text-link:hover { text-decoration-color: var(--blue); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo img { height: 40px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.button) {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.button):hover { border-bottom-color: var(--blue); }

.menu-button {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 8px 14px;
  font: 600 .95rem var(--font-body);
  color: var(--navy);
  cursor: pointer;
}

/* Hero: looping video behind a navy shade */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex;
  min-height: min(calc(100vh - var(--header-h)), 860px);
  background: #061733 url("/assets/video/hero-poster-640.webp") 62% 40% / cover no-repeat;
  color: #d3ddeb;
}
@media (min-width: 900px) {
  .hero { background-image: url("/assets/video/hero-poster-1280.webp"); }
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 16, 42, .93) 0%, rgba(3, 16, 42, .82) 36%, rgba(3, 16, 42, .38) 68%, rgba(3, 16, 42, .18) 100%),
    linear-gradient(0deg, rgba(3, 16, 42, .9) 0%, rgba(3, 16, 42, 0) 38%);
}
.hero-inner { display: flex; flex-direction: column; justify-content: space-between; gap: 64px; padding-top: 120px; padding-bottom: 40px; }
.hero-text { max-width: 640px; }
.hero h1 { color: var(--white); max-width: 15ch; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--text); max-width: 34em; margin: 26px 0 34px; }
.hero .lead { color: #d3ddeb; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }
.hero .button { background: var(--white); border-color: var(--white); color: var(--navy); }
.hero .button:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.hero .text-link { color: var(--white); text-decoration-color: rgba(255, 255, 255, .35); }
.hero .text-link:hover { text-decoration-color: var(--white); }

.network-figure { margin: 0; }
.network { display: block; width: 100%; height: auto; }
.network .globe circle, .network .globe ellipse, .network .globe path { fill: none; stroke: #e6ebf2; stroke-width: 1; }
.network .ring, .network .spokes { fill: none; stroke: var(--navy); stroke-width: 1.5; }
.network .pulses circle { fill: var(--blue); stroke: var(--white); stroke-width: 2; }
.network .hub { fill: var(--navy); }
.network .hub-ring { fill: none; stroke: var(--blue); stroke-width: 2; stroke-dasharray: 3 5; }
.network .hub-t { font-family: var(--font-head); font-size: 26px; font-weight: 600; letter-spacing: .02em; fill: var(--white); }
.network .hub-s { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em; fill: #b9c7de; }
.network .node > circle { fill: var(--white); stroke: var(--navy); stroke-width: 2; }
.network .ic { fill: var(--white); stroke: var(--navy); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.network .ic-fill { fill: var(--blue); }
.network .ic-fill-s { fill: var(--blue); stroke: var(--navy); stroke-width: 1.8; stroke-linejoin: round; }
.network .ic-accent { fill: none; stroke: var(--blue); stroke-width: 1.8; }
.network .ic-dot { fill: none; stroke: var(--navy); stroke-width: 3; stroke-linecap: round; }
.network .labels text { font-family: var(--font-body); font-size: 16px; font-weight: 600; fill: var(--navy); }

.facts {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid rgba(255, 255, 255, .7);
}
.facts li { padding: 16px 24px 0 0; color: var(--white); font-weight: 500; line-height: 1.4; }
.facts li + li { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .18); }
.facts span {
  display: block; margin-bottom: 6px;
  font-family: var(--font-mono); font-size: .78rem; font-weight: 400; color: #9fb2cf;
}

/* SAP Joule on SAP TM */
.joule-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; margin: 8px 0 56px; }
.asks { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.asks li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.ask-k { display: block; margin-bottom: 6px; font-family: var(--font-mono); font-size: .78rem; color: var(--blue-text); }
.asks q { display: block; color: var(--navy); font-weight: 600; font-size: 1.08rem; line-height: 1.4; }
.asks p { margin: 6px 0 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.joule-figure { margin: 0; }
.joule-art { display: block; width: 100%; height: auto; }
.joule-art .j-box { fill: var(--white); stroke: var(--line); stroke-width: 1; }
.joule-art .j-box.strong { stroke: var(--navy); stroke-width: 1.5; }
.joule-art .j-ic { fill: var(--ice); stroke: var(--navy); stroke-width: 1.6; stroke-linejoin: round; }
.joule-art .j-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; fill: var(--muted); }
.joule-art .j-q { font-family: var(--font-body); font-size: 14px; font-weight: 500; fill: var(--navy); }
.joule-art .j-line { fill: none; stroke: var(--navy); stroke-width: 1.5; }
.joule-art .j-head { fill: none; stroke: var(--navy); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.joule-art .up { stroke: var(--blue); }
.joule-art .j-ring { fill: none; stroke: var(--blue); stroke-width: 2; stroke-dasharray: 3 5; }
.joule-art .j-core { fill: var(--navy); }
.joule-art .j-t { font-family: var(--font-head); font-size: 26px; font-weight: 600; fill: var(--white); }
.joule-art .j-s { font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; fill: #b9c7de; }
.joule-art .j-tile > rect { fill: var(--tint); stroke: var(--line); }
.joule-art .j-tile svg * { fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.joule-art .j-tile text { font-family: var(--font-body); font-size: 13px; font-weight: 500; fill: var(--ink); }
.joule-art .j-dash { fill: none; stroke: var(--steel); stroke-width: 1.5; stroke-dasharray: 5 4; }
.joule-art .j-n { font-family: var(--font-body); font-size: 12.5px; font-weight: 500; fill: var(--text); }
.joule-how { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.joule-how > div { border-top: 2px solid var(--navy); padding-top: 18px; }
.joule-how h3 { margin-bottom: 10px; }
.joule-how p { margin: 0; }
.joule .note a { color: var(--blue-text); font-weight: 600; text-underline-offset: 4px; }

/* End-to-end supply chain */
.e2e { padding: 0 0 100px; }
.e2e > .container { position: relative; padding-top: 40px; }
.e2e > .container::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line);
}
.e2e-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px 64px; align-items: center; margin-bottom: 72px; }
.e2e-head h2 { max-width: 17ch; margin: 4px 0 20px; }
.e2e-head .intro { margin-bottom: 16px; }
.e2e-head .network-figure { max-width: 500px; justify-self: end; width: 100%; }
.e2e-key { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }
.key-node { width: 16px; height: 16px; border-radius: 50%; background: var(--blue); }

.snake {
  --node: 64px;
  --gap: 24px;
  --row-gap: 64px;
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: var(--gap); row-gap: var(--row-gap);
}
.step { position: relative; text-align: center; }
.step:nth-child(1) { grid-area: 1 / 1; }
.step:nth-child(2) { grid-area: 1 / 2; }
.step:nth-child(3) { grid-area: 1 / 3; }
.step:nth-child(4) { grid-area: 1 / 4; }
.step:nth-child(5) { grid-area: 1 / 5; }
.step:nth-child(6) { grid-area: 2 / 5; }
.step:nth-child(7) { grid-area: 2 / 4; }
.step:nth-child(8) { grid-area: 2 / 3; }
.step:nth-child(9) { grid-area: 2 / 2; }
.step:nth-child(10) { grid-area: 2 / 1; }

.step-node {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: var(--node); height: var(--node); margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--navy);
}
.step-node svg { width: 28px; height: 28px; fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.step.tm .step-node { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 5px var(--white); }
.step.tm .step-node svg { stroke: var(--white); }
.step-num { display: block; margin-bottom: 4px; font-family: var(--font-mono); font-size: .75rem; color: var(--muted); }
.step h3 { font-size: 1.12rem; margin-bottom: 6px; }
.step p { margin: 0 auto; max-width: 22ch; font-size: .92rem; line-height: 1.45; color: var(--muted); }
.tm-tag {
  display: inline-block; margin-top: 10px; padding: 2px 8px;
  border: 1px solid var(--blue); border-radius: 2px;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .04em; color: var(--blue-text);
}

/* The route: steps 1-5 run right, a U-turn, steps 6-10 run left */
.step::after { content: ""; position: absolute; top: calc(var(--node) / 2 - 1px); height: 2px; background: var(--navy); }
.step:nth-child(-n+4)::after { left: 50%; width: calc(100% + var(--gap)); }
.step:nth-child(n+6):nth-child(-n+9)::after { right: 50%; width: calc(100% + var(--gap)); }
.step:nth-child(5)::after {
  left: 50%; width: calc(50% + 20px); height: calc(100% + var(--row-gap) + 2px);
  background: none; border: 2px solid var(--navy); border-left: 0; border-radius: 0 56px 56px 0;
}
.step:nth-child(10)::after { display: none; }

/* Process chain */
.chain-band { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 0 64px; }
.chain-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; margin-bottom: 40px; }
.chain-head h2 { font-size: 1.5rem; }
.chain-head p { margin: 0; color: var(--muted); }

.chain {
  --node: 46px;
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 28px;
  position: relative;
}
.chain::before {
  content: ""; position: absolute; left: 0; right: 0;
  top: calc(var(--node) / 2 - 1px); height: 2px; background: var(--blue);
}
.chain li { position: relative; padding-top: calc(var(--node) + 18px); }
.chain .node {
  position: absolute; top: 0; left: 0;
  display: grid; place-items: center;
  width: var(--node); height: var(--node); border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--navy);
  box-shadow: 0 0 0 6px var(--tint);
}
.chain .node svg {
  width: 22px; height: 22px;
  fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.chain h3 { font-size: 1.15rem; margin-bottom: 6px; }
.chain p { margin: 0; font-size: .95rem; color: var(--muted); line-height: 1.5; }

/* Sections */
.section { padding: 96px 0; }
.section-rule { padding-top: 0; }
.section-rule .section-grid { position: relative; padding-top: 40px; }
.section-rule .section-grid::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line);
}
.section-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; }
.section-label {
  margin: 0;
  padding-top: 10px;
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--muted);
}
.section-label::before {
  content: ""; display: block; width: 28px; height: 2px; background: var(--blue); margin-bottom: 12px;
}
.section-body > h2 { max-width: 22ch; margin-bottom: 20px; }
.intro { font-size: 1.15rem; max-width: 42em; margin-bottom: 40px; }
.note { margin: 20px 0 0; font-size: .88rem; color: var(--muted); }

/* Services index */
.services { margin-top: 44px; border-bottom: 1px solid var(--line); }
.service {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 4fr);
  gap: 32px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.service h3 { font-size: 1.35rem; }
.service p { margin: 0; }
.scope { list-style: none; margin: 0; padding: 0; font-size: .95rem; color: var(--muted); }
.scope li { position: relative; padding-left: 22px; }
.scope li + li { margin-top: 6px; }
.scope li::before {
  content: ""; position: absolute; left: 0; top: .8em; width: 12px; height: 1px; background: var(--blue);
}

/* Illustrations: shared */
.art { border-radius: 3px; margin-bottom: 20px; }
.mode-art, .panel-art { display: block; width: 100%; height: auto; }

/* Transport modes */
.modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.mode .art { background: var(--tint); border: 1px solid var(--line); padding: 22px 16px 12px; }
.mode h3 { margin-bottom: 8px; }
.mode p { margin: 0; font-size: .97rem; }

.mode-art .ground { stroke: var(--navy); stroke-width: 2; }
.mode-art .ground-mark { stroke: var(--steel); stroke-width: 2; stroke-dasharray: 10 8; }
.mode-art .ties { stroke: var(--navy); stroke-width: 5; stroke-dasharray: 2 7; }
.mode-art .body { fill: var(--white); stroke: var(--navy); stroke-width: 2; stroke-linejoin: round; }
.mode-art .box-blue { fill: var(--blue); stroke: var(--navy); stroke-width: 2; }
.mode-art .box-tint { fill: var(--ice); stroke: var(--navy); stroke-width: 2; }
.mode-art .accent { fill: var(--blue); }
.mode-art .solid { fill: var(--navy); }
.mode-art .glass { fill: var(--ice); stroke: var(--navy); stroke-width: 1.5; stroke-linejoin: round; }
.mode-art .line { fill: none; stroke: var(--navy); stroke-width: 2; }
.mode-art .rib { fill: none; stroke: var(--white); stroke-width: 2; opacity: .55; }
.mode-art .wheel circle { fill: var(--white); stroke: var(--navy); stroke-width: 2; }
.mode-art .hub { fill: var(--navy); }
.mode-art .wave { fill: none; stroke: var(--sky); stroke-width: 2; stroke-linecap: round; }
.mode-art .dots { fill: none; stroke: var(--sky); stroke-width: 3; stroke-dasharray: 0 9; stroke-linecap: round; }
.mode-art .windows { fill: none; stroke: var(--navy); stroke-width: 3; stroke-dasharray: 0 8; stroke-linecap: round; }

/* In practice panels */
.panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.panel .art { border: 1px solid var(--line); border-top: 2px solid var(--navy); padding: 14px 10px 10px; background: var(--white); }
.panel h3 { margin-bottom: 8px; }
.panel p { margin: 0; font-size: .97rem; }

.panel-art .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; fill: var(--muted); }
.panel-art .t { font-family: var(--font-body); font-size: 14px; font-weight: 500; fill: var(--ink); }
.panel-art .num { font-family: var(--font-mono); font-size: 12.5px; fill: var(--ink); }
.panel-art .v { font-family: var(--font-body); font-size: 14px; font-weight: 600; fill: var(--navy); }
.panel-art .fu-a { fill: var(--navy); }
.panel-art .fu-b { fill: var(--blue); }
.panel-art .fu-c { fill: var(--sky); }
.panel-art .body { fill: var(--white); stroke: var(--navy); stroke-width: 2; stroke-linejoin: round; }
.panel-art .line { fill: none; stroke: var(--navy); stroke-width: 2; }
.panel-art .wheel circle { fill: var(--white); stroke: var(--navy); stroke-width: 2; }
.panel-art .arrow { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.panel-art .bar-bg { fill: var(--line); }
.panel-art .bar { fill: var(--blue); }
.panel-art .rule { stroke: var(--line); stroke-width: 1; }
.panel-art .rule-strong { stroke: var(--navy); stroke-width: 2; }
.panel-art .tag text { font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: .05em; }
.panel-art .tag-yes rect { fill: var(--blue); }
.panel-art .tag-yes text { fill: var(--white); }
.panel-art .tag-wait rect { fill: var(--white); stroke: var(--navy); stroke-width: 1.5; }
.panel-art .tag-wait text { fill: var(--navy); }
.panel-art .tag-no rect { fill: var(--line); }
.panel-art .tag-no text { fill: var(--muted); }
.panel-art .seg-1 { fill: var(--navy); }
.panel-art .seg-2 { fill: var(--blue); }
.panel-art .seg-3 { fill: var(--sky); }
.panel-art .seg-4 { fill: var(--steel); }

/* Who we work with */
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 40px; }
.three-col > div { border-top: 2px solid var(--navy); padding-top: 20px; }
.three-col .icon {
  display: block; width: 34px; height: 34px; margin-bottom: 14px;
  fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.three-col h3 { margin-bottom: 10px; }
.three-col p { margin: 0; }

/* Approach */
.phases {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.phases li { padding: 22px 20px 0 0; position: relative; }
.phases li::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 100%; height: 2px; background: var(--navy);
  transform-origin: left; transform: scaleX(.25);
}
.phases h3 { font-size: 1.2rem; margin-bottom: 8px; }
.phases p { margin: 0; font-size: .95rem; color: var(--muted); line-height: 1.5; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; }
.about h2 { margin-bottom: 20px; max-width: 18ch; }
.principles { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.principles li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.principles strong { color: var(--navy); font-weight: 600; }

/* Contact */
.contact { background: var(--navy); color: #d6deea; padding: 88px 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: end; }
.contact h2 { color: var(--white); max-width: 18ch; margin-bottom: 18px; }
.contact p { margin: 0; max-width: 38em; font-size: 1.1rem; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.contact-link { color: var(--white); font-family: var(--font-mono); font-size: .9rem; text-underline-offset: 5px; }

/* Footer */
.site-footer { padding: 48px 0 40px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 24px 40px; }
.footer-inner .logo img { height: 36px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 28px; }
.footer-nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.footer-nav a:hover { color: var(--blue-text); text-decoration: underline; text-underline-offset: 4px; }
.fine { grid-column: 1 / -1; margin: 0; font-size: .85rem; color: var(--muted); }
.fine:first-of-type { border-top: 1px solid var(--line); padding-top: 22px; }
.trademark { font-size: .78rem; max-width: 80em; }

/* Tablet */
@media (max-width: 1080px) {
  .menu-button { display: block; }
  .site-nav {
    display: none;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.button) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav .button { margin-top: 16px; text-align: center; }

  .hero-inner { padding-top: 88px; }
  .joule-grid { grid-template-columns: 1fr; gap: 36px; }
  .joule-figure { max-width: 560px; }
  .e2e-head .network-figure { justify-self: start; max-width: 520px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .e2e-head { grid-template-columns: 1fr; align-items: start; margin-bottom: 44px; }
  .snake { grid-template-columns: 1fr; row-gap: 0; max-width: 640px; }
  .snake .step:nth-child(n) {
    grid-area: auto; text-align: left;
    display: grid; grid-template-columns: var(--node) minmax(0, 1fr); column-gap: 20px;
    padding-bottom: 28px;
  }
  .step-node { margin: 0; }
  .step p { margin: 0; max-width: none; }
  .snake .step:nth-child(n)::after {
    left: calc(var(--node) / 2 - 1px); right: auto; top: var(--node); bottom: 0;
    width: 2px; height: auto; border: 0; border-radius: 0; background: var(--navy);
  }
  .snake .step:nth-child(10)::after { display: none; }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { margin-top: 16px; border-top: 1px solid rgba(255, 255, 255, .18); }

  .chain { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
  .chain::before { display: none; }

  .section-grid { grid-template-columns: 1fr; gap: 20px; }
  .section-label { padding-top: 0; }
  .service { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .service h3 { grid-column: 1 / -1; }
  .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .panels { grid-template-columns: 1fr; gap: 44px; }
  .panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 0 32px; align-items: start; }
  .panel .art { grid-row: span 2; margin-bottom: 0; }
  .phases { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
  .about, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* Phone */
@media (max-width: 760px) {
  :root { --gutter: 16px; --header-h: 64px; }
  body { font-size: 1rem; }
  .logo img { height: 34px; }

  .hero { min-height: 0; }
  .hero::before { background: linear-gradient(180deg, rgba(3, 16, 42, .58) 0%, rgba(3, 16, 42, .76) 50%, rgba(3, 16, 42, .94) 100%); }
  .hero-inner { gap: 44px; padding-top: 56px; padding-bottom: 28px; }
  .lead { font-size: 1.1rem; margin: 20px 0 28px; }
  .network .labels text { font-size: 17px; }
  .facts { grid-template-columns: 1fr; }
  .e2e { padding: 0 0 56px; }
  .e2e > .container { padding-top: 32px; }
  .joule-grid { margin-bottom: 40px; }
  .joule-how { grid-template-columns: 1fr; gap: 28px; }
  .snake { --node: 52px; }
  .snake .step:nth-child(n) { column-gap: 16px; padding-bottom: 24px; }
  .step-node svg { width: 24px; height: 24px; }
  .facts li:nth-child(n) { padding: 14px 0; border-left: 0; margin-top: 0; border-top: 0; }
  .facts li:nth-child(n+2) { border-top: 1px solid rgba(255, 255, 255, .18); }

  .chain-band { padding: 44px 0 48px; }
  .chain { grid-template-columns: 1fr; gap: 0; }
  .chain li { padding: 10px 0 28px 66px; min-height: var(--node); }
  .chain li:not(:last-child)::after {
    content: ""; position: absolute; left: calc(var(--node) / 2 - 1px); top: var(--node); bottom: 0; width: 2px; background: var(--blue);
  }
  .chain li:last-child { padding-bottom: 0; }

  .section { padding: 64px 0; }
  .section-rule { padding-top: 0; }
  .section-rule .section-grid { padding-top: 32px; }
  .service { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; }
  .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .mode .art { padding: 14px 8px 6px; margin-bottom: 14px; }
  .mode h3 { font-size: 1.15rem; }
  .mode p { font-size: .92rem; }
  .panel { display: block; }
  .panel .art { margin-bottom: 18px; }
  .three-col { grid-template-columns: 1fr; gap: 28px; }
  .phases { grid-template-columns: 1fr; row-gap: 0; border-top: 0; }
  .phases li { border-top: 1px solid var(--line); padding: 16px 0; }
  .phases li::before { transform: scaleX(.12); }

  .contact { padding: 64px 0; }
  .contact-actions .button { width: 100%; text-align: center; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .site-header, .menu-button, .contact-actions, .hero-actions { display: none; }
  .contact { background: none; color: var(--text); }
  .contact h2 { color: var(--navy); }
}
