:root {
  --bg: #0f1220;
  --bg-alt: #161a2e;
  --card: #1c2140;
  --text: #e8eaf6;
  --muted: #9aa3c7;
  --accent: #6c8cff;
  --accent-2: #46e0c3;
  --border: #2a3056;
  --radius: 12px;
  --max: 1121px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(108, 140, 255, 0.35); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 6px;
}

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

code {
  background: var(--bg-alt);
  padding: 0.15em 0.4em;
  border-radius: 6px;
  font-size: 0.92em;
}

pre {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin: 1rem 0;
  line-height: 1.55;
}

pre code { background: none; padding: 0; }

#kimono code {
  color: var(--accent-2);
  background: var(--bg);
  border: 1px solid var(--border);
  font-weight: 600;
}

.kimono-page :not(pre) > code {
  color: var(--accent-2);
  background: var(--bg);
  border: 1px solid var(--border);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.kimono-diagram { margin: 2rem 0; }
.kimono-illustration {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.kimono-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}
.kimono-arrow { color: var(--accent-2); font-size: 2rem; text-align: center; }
.kimono-diagram figcaption { margin-top: 1rem; color: var(--muted); }
.kimono-page .grid > * { min-width: 0; }
.kimono-page pre { max-width: 100%; }

.kimono-page #why-kimono .banner-img {
  filter: saturate(0.65) brightness(0.88);
}

.kimono-page .page-head {
  background:
    linear-gradient(90deg, rgba(15, 18, 32, 0.88), rgba(15, 18, 32, 0.65)),
    url("../images/K1.webp") center / cover no-repeat,
    var(--bg);
}

@media (max-width: 640px) {
  .kimono-flow { grid-template-columns: minmax(0, 1fr); }
  .kimono-arrow { transform: rotate(90deg); }
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 18, 32, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  min-height: 64px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.brand {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

.brand-logo {
  width: 30px;
  height: 30px;
  margin-right: 0.55rem;
  vertical-align: -8px;
  border-radius: 7px;
}

.brand:hover { text-decoration: none; }
.brand span { color: var(--accent-2); }

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
}

.nav a { color: var(--muted); font-size: 0.95rem; transition: color 0.15s ease; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav a.current { color: var(--text); font-weight: 600; }

/* Language switcher */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.lang-switch a {
  padding: 0.15rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.lang-switch a.active {
  background: var(--accent);
  color: #0b0e1c;
}

.lang-switch a:hover { text-decoration: none; }

/* Hero and page header share the same background */
.hero,
.page-head {
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(108, 140, 255, 0.2), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 44px 44px, 44px 44px, auto;
  border-bottom: 1px solid var(--border);
}

.hero { padding: 5.5rem 0 4.5rem; }
.page-head { padding: 4rem 0 3rem; }

/* Illustrated hero: dark veil behind the text, lighter towards the edges where the artwork lives */
.hero {
  background:
    radial-gradient(ellipse 65% 78% at 50% 42%, rgba(15, 18, 32, 0.9), rgba(15, 18, 32, 0.38) 100%),
    linear-gradient(180deg, transparent 72%, var(--bg) 100%),
    url("../images/H1.webp") center bottom / cover no-repeat,
    var(--bg);
}

/* Illustrated page header: the bright ribbon of the artwork runs behind the text, so the veil is
   stronger in the middle and the text is lightened and given a soft shadow */
.page-head {
  background:
    radial-gradient(ellipse 70% 95% at 50% 50%, rgba(15, 18, 32, 0.82), rgba(15, 18, 32, 0.3) 100%),
    linear-gradient(180deg, rgba(15, 18, 32, 0.55) 0%, rgba(15, 18, 32, 0.3) 55%, rgba(15, 18, 32, 0.9) 100%),
    url("../images/H2.webp") center 78% / cover no-repeat,
    var(--bg);
}

.page-head h1,
.page-head p { text-shadow: 0 1px 14px rgba(15, 18, 32, 0.95); }
.page-head p { color: #c9d0ee; }

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 1.1rem;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  max-width: 780px;
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: 1.2rem;
}

.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.2; margin: 0 0 0.9rem; }
.page-head p { max-width: 820px; margin: 0 auto; color: var(--muted); font-size: 1.1rem; }

.btn-row { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid var(--accent);
  color: var(--text);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover { text-decoration: none; background: rgba(108, 140, 255, 0.14); transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: #0b0e1c; }
.btn.primary:hover { background: #869fff; }

/* Sections */
section { padding: 4.5rem 0; }
section[id] { scroll-margin-top: 80px; }

section.alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

section h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.25;
  margin: 0 0 1rem;
}

section h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 0.7rem;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* Intro text: same width as the blocks below it */
section .sub {
  color: var(--muted);
  font-size: 1.07rem;
  line-height: 1.75;
  margin: 0 0 2rem;
  max-width: none;
}

section .sub + .sub { margin-top: -0.75rem; }

/* Grids */
.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* 6 belts: three per row, two rows */
.grid.belts { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(108, 140, 255, 0.6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* Picture at the top of a card or step, flush with the card edges */
.card-img {
  display: block;
  width: calc(100% + 2.7rem);
  max-width: none;
  height: auto;
  aspect-ratio: 832 / 512;
  object-fit: cover;
  margin: -1.35rem -1.35rem 1rem;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  border-bottom: 1px solid var(--border);
}

/* Small pictogram at the top of a capability or use-case card */
.card-icon {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 0 0.8rem;
}

.card h3 { margin: 0 0 0.45rem; font-size: 1.1rem; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent-2);
  border: 1px solid var(--accent-2);
  border-radius: 999px;
  padding: 0.05rem 0.55rem;
  margin-bottom: 0.6rem;
}

/* Belt colours: filled tags on cards and filled pills on the home page.
   --belt = background, --belt-text = readable text colour, --belt-edge = outline */
.belt-white  { --belt: #f4f5fb; --belt-text: #141830; --belt-edge: #f4f5fb; }
.belt-yellow { --belt: #f5d547; --belt-text: #2a2200; --belt-edge: #f5d547; }
.belt-orange { --belt: #f59a3d; --belt-text: #2b1500; --belt-edge: #f59a3d; }
.belt-green  { --belt: #3fb860; --belt-text: #05210f; --belt-edge: #3fb860; }
.belt-blue   { --belt: #4f8cff; --belt-text: #06112e; --belt-edge: #4f8cff; }
/* Black belt: near-black fill, light text and a light outline so it stays visible on the dark theme */
.belt-black  { --belt: #05060d; --belt-text: #f4f5fb; --belt-edge: #e8eaf6; }

.card[class*="belt-"] { border-top: 3px solid var(--belt-edge); }

.card[class*="belt-"] .tag,
.pills li[class*="belt-"] {
  background: var(--belt);
  color: var(--belt-text);
  border-color: var(--belt-edge);
  font-weight: 700;
}

.card[class*="belt-"] .tag { padding: 0.15rem 0.75rem; }

/* Belt card header: picture next to the tag and the title */
.belt-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.belt-head img {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.belt-head .tag { margin-bottom: 0.35rem; }
.belt-head h3 { margin: 0; }

/* Belt cards share one layout: intro, four points, outcome pinned to the bottom */
.card[class*="belt-"] {
  display: flex;
  flex-direction: column;
}

.card .belt-intro {
  margin: 0 0 0.9rem;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.55;
}

.belt-list {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.belt-list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.belt-list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--belt-edge);
}

.card .belt-outcome {
  margin: auto 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.card .belt-outcome strong { color: var(--text); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 2.25rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.site-footer a { color: var(--muted); text-decoration: underline; }
.site-footer a:hover { color: var(--text); }

/* Stats */
.stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin: 2rem 0 0;
}

.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem;
  text-align: center;
}

.stat .num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat .lbl { color: var(--muted); font-size: 0.85rem; }

/* Overview bar: design / first repository / numbered versions */
.span-bar {
  display: flex;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 1.5rem 0 0.5rem;
  font-size: 0.85rem;
  text-align: center;
}

.span-bar > div { padding: 0.9rem 0.6rem; }
.span-bar .s1 { flex: 4.5; background: repeating-linear-gradient(45deg, var(--card), var(--card) 10px, var(--bg-alt) 10px, var(--bg-alt) 20px); }
.span-bar .s2 { flex: 6.2; background: var(--card); border-left: 1px solid var(--border); }
.span-bar .s3 { flex: 10.5; background: rgba(108, 140, 255, 0.22); border-left: 1px solid var(--border); }
.span-bar strong { display: block; color: var(--text); }
.span-bar span { color: var(--muted); }

.note { color: var(--muted); font-size: 0.85rem; margin: 0.5rem 0 0; }

/* Timeline */
.timeline {
  position: relative;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0 0 0 1.75rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: linear-gradient(var(--accent), var(--accent-2));
  opacity: 0.6;
}

.tl-item { position: relative; margin: 0 0 1.5rem; }

.tl-item::before {
  content: "";
  position: absolute;
  left: -1.75rem;
  top: 0.35rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}

.tl-item.milestone::before { background: var(--accent-2); border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(70, 224, 195, 0.18); }
.tl-item.tag::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(108, 140, 255, 0.22); }
.tl-item.nogit::before { border-style: dashed; border-color: var(--muted); }

.tl-date {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 0.3rem;
}

.tl-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.35rem;
  transition: border-color 0.15s ease;
}

.tl-card:hover { border-color: rgba(108, 140, 255, 0.6); }
.tl-item.tag .tl-card { border-color: var(--accent); }
.tl-item.nogit .tl-card { border-style: dashed; }

.tl-card h3 { margin: 0 0 0.4rem; font-size: 1.1rem; line-height: 1.3; }
.tl-card p { margin: 0 0 0.5rem; color: var(--muted); font-size: 0.95rem; }
.tl-card ul { margin: 0.25rem 0 0.5rem; padding-left: 1.2rem; color: var(--muted); font-size: 0.92rem; }
.tl-card li { margin: 0.15rem 0; }
.tl-card .facts { font-size: 0.82rem; color: var(--text); }
.tl-card .facts code { font-size: 0.8rem; }

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.05rem 0.6rem;
  border-radius: 999px;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.badge.tag { background: var(--accent); color: #0b0e1c; }
.badge.first { background: var(--accent-2); color: #0b0e1c; }
.badge.nogit { border: 1px dashed var(--muted); color: var(--muted); }

/* Pills (hero highlights, belts) */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.pills li {
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 0.85rem;
}

/* Numbered steps */
.steps {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  padding: 1.35rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.steps li:hover {
  transform: translateY(-2px);
  border-color: rgba(108, 140, 255, 0.6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.6rem;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #0b0e1c;
  font-weight: 700;
}

/* Steps with a picture: the number becomes a badge over the picture */
.steps li.has-img { position: relative; }

.steps li.has-img::before {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  margin: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.steps h3 { margin: 0 0 0.4rem; font-size: 1.1rem; line-height: 1.3; }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Structure: code block next to its picture */
.split-structure {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.75rem;
  align-items: center;
}

.split-structure pre { margin: 0; }

.split-structure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* Wide picture above the agents grid */
.banner-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  margin: 0 0 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* 404 page: its own artwork behind the message */
.hero.err {
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%, rgba(15, 18, 32, 0.78), rgba(15, 18, 32, 0.3) 100%),
    url("../images/E404.webp") center / cover no-repeat,
    var(--bg);
}

/* Closing call to action */
.cta {
  text-align: center;
  background:
    radial-gradient(ellipse at bottom, rgba(70, 224, 195, 0.14), transparent 60%),
    var(--bg-alt);
}

/* Illustrated closing block: strong veil over the bright centre of the picture so the text stays readable.
   "section.cta" is needed to win over "section.alt" (same specificity, declared earlier). */
section.cta {
  background:
    radial-gradient(ellipse 75% 110% at 50% 45%, rgba(15, 18, 32, 0.86), rgba(15, 18, 32, 0.42) 100%),
    url("../images/H4.webp") center 62% / cover no-repeat,
    var(--bg-alt);
}

.cta h2::after { margin-left: auto; margin-right: auto; }
.cta .sub { margin-left: auto; margin-right: auto; max-width: 760px; }

/* Quote with its illustration: picture on the left, quote on the right */
.quote-feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2rem;
  align-items: center;
  margin: 2rem 0 0;
}

.quote-feature img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.quote-feature .quote { margin: 0; font-size: 1.3rem; }

/* Quote */
.quote {
  margin: 2rem 0 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--accent-2);
  background: var(--card);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.15rem;
  font-style: italic;
}

.quote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--muted);
}

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.25rem 0 0; }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

table.data th, table.data td {
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

table.data th { color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* Bars */
.bars { margin: 1.25rem 0 0; display: grid; gap: 0.4rem; }
.bar-row { display: grid; grid-template-columns: 90px 1fr 36px; gap: 0.6rem; align-items: center; font-size: 0.85rem; color: var(--muted); }
.bar-track { background: var(--bg-alt); border-radius: 999px; height: 10px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.bar-row .n { text-align: right; color: var(--text); }

/* Tablet */
@media (max-width: 980px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  /* The header takes too much room when the menu wraps: let it scroll away */
  .site-header { position: static; }
  .site-header .container { flex-direction: column; justify-content: center; padding-top: 0.75rem; padding-bottom: 0.75rem; }
  .nav { justify-content: center; }
  section[id] { scroll-margin-top: 16px; }
}

@media (max-width: 860px) {
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }

  .grid.belts { grid-template-columns: repeat(2, 1fr); }

  .steps { grid-template-columns: 1fr; }

  /* Structure: picture under the code block */
  .split-structure { grid-template-columns: 1fr; }
  .split-structure img { max-width: 300px; margin: 0 auto; }

  /* Illustrated quote: picture above the text */
  .quote-feature { grid-template-columns: 1fr; gap: 1.25rem; }
  .quote-feature img { max-width: 520px; margin: 0 auto; }
}

/* Phone */
@media (max-width: 640px) {
  section { padding: 3rem 0; }
  .hero { padding: 3.25rem 0 2.75rem; }
  .page-head { padding: 2.75rem 0 2.25rem; }

  .grid.cols-3,
  .grid.cols-4,
  .grid.belts { grid-template-columns: 1fr; }

  /* Hero artwork is centred on a narrow screen: a stronger veil keeps the text readable */
  .hero {
    background:
      linear-gradient(180deg, rgba(15, 18, 32, 0.82), rgba(15, 18, 32, 0.55) 100%),
      url("../images/H1.webp") center bottom / cover no-repeat,
      var(--bg);
  }

  .quote-feature .quote { font-size: 1.15rem; }

  .span-bar { flex-direction: column; }
  .span-bar > div { border-left: 0 !important; border-top: 1px solid var(--border); }
  .bar-row { grid-template-columns: 70px 1fr 28px; }

  .timeline { padding-left: 1.5rem; }
  .tl-item::before { left: -1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .card:hover, .steps li:hover, .btn:hover { transform: none; }
}
