/* bess4mcs.eu: the AVIGUS pitch design of china.avigus.com, trimmed to what this site uses;
   site/src/extra.css (appended by the build) holds the parts of this site. Phone first. */

:root {
  --navy: #2B3440;
  --navy-deep: #1F2731;
  --navy-soft: #3A4655;
  --red: #C4472F;
  --red-dark: #A83A25;
  --salmon: #E8AA9C;
  --paper: #F7F6F3;
  --white: #FFFFFF;
  --ink: #232B35;
  --muted: #5C6875;
  --line: #E4E2DC;
  --volt: #16B978;
  --volt-dark: #0A7A4D;
  --sun: #FFC857;
  --diesel: #B8772A;

  --font: "Barlow", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-num: "Barlow Condensed", "Barlow", "Noto Sans SC", system-ui, sans-serif;
  --w-head: 800;
  --w-label: 600;
  --w-body: 500;
  --lh-body: 1.55;
  --lh-head: 1.06;
  --ls-head: -0.015em;

  --tx: 16px;          /* x of the red thread inside .wrap */
  --pad-l: 40px;
  --pad-r: 16px;
  --maxw: 1200px;
  --header-h: 56px;
  --radius: 14px;
  --ease: cubic-bezier(.215, .61, .355, 1);
  color-scheme: light;
}
html[lang="zh-CN"] {
  --font: "Noto Sans SC", "Barlow", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-num: "Barlow Condensed", "Barlow", "Noto Sans SC", sans-serif;
  --w-head: 900;
  --w-label: 700;
  --w-body: 500;
  --lh-body: 1.8;
  --lh-head: 1.24;
  --ls-head: 0.01em;
}
@media (min-width: 768px) {
  :root { --tx: 28px; --pad-l: 76px; --pad-r: 32px; --header-h: 64px; }
}
@media (min-width: 1100px) {
  :root { --tx: 40px; --pad-l: 104px; --pad-r: 48px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: var(--w-body);
  font-size: 17px;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
@media (min-width: 768px) { body { font-size: 18px; } }
html[lang="zh-CN"] body { font-size: 16.5px; line-break: strict; }
@media (min-width: 768px) { html[lang="zh-CN"] body { font-size: 17.5px; } }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: var(--w-head); line-height: var(--lh-head); letter-spacing: var(--ls-head); }
ul, ol { margin: 0; padding: 0; list-style: none; }
sub { font-size: .7em; line-height: 0; vertical-align: -.25em; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

/* ---------------------------------------------------------------- skies */
.sky-day, .sky-dawn, .page-auth, .page-admin {
  --bg: #F7F6F3; --fg: #232B35; --fg2: #5C6875; --hair: #E4E2DC;
  --card: #FFFFFF; --card-line: #E4E2DC; --dash: #9AA3AD;
  --ib: #2B3440; --ib2: #5C6875; --ic: #F7F6F3; --logo: #2B3440;
}
.sky-night, .sky-dusk {
  --bg: #1F2731; --fg: #F7F6F3; --fg2: #B7BEC7; --hair: rgba(247, 246, 243, .16);
  --card: #2B3440; --card-line: rgba(247, 246, 243, .12); --dash: #6E7A88;
  --ib: #F7F6F3; --ib2: #B7BEC7; --ic: #1F2731; --logo: #FFFFFF;
}
.sky-dusk { --bg: #2B3440; --ic: #2B3440; --card: #3A4655; }
.sky-day { background: #F7F6F3; color: var(--fg); }
.sky-dawn { background: linear-gradient(#F7F6F3 0%, #F7F6F3 45%, #FBEFD9 100%); color: var(--fg); }
.sky-dawn.dawn-after { background: linear-gradient(#FBEFD9 0%, #F7F6F3 70%); }
.sky-dusk { background: linear-gradient(#2B3440 0%, #2B3440 55%, #4A3B42 80%, #6B3D35 100%); color: var(--fg); }
.sky-night {
  color: var(--fg);
  background-color: #1F2731;
  background-image:
    radial-gradient(1.6px 1.6px at 8% 12%, rgba(247, 246, 243, .75) 50%, transparent 55%),
    radial-gradient(1.2px 1.2px at 23% 44%, rgba(247, 246, 243, .55) 50%, transparent 55%),
    radial-gradient(1.4px 1.4px at 41% 8%, rgba(247, 246, 243, .6) 50%, transparent 55%),
    radial-gradient(1.2px 1.2px at 57% 31%, rgba(247, 246, 243, .45) 50%, transparent 55%),
    radial-gradient(1.8px 1.8px at 72% 16%, rgba(247, 246, 243, .7) 50%, transparent 55%),
    radial-gradient(1.2px 1.2px at 88% 39%, rgba(247, 246, 243, .5) 50%, transparent 55%),
    radial-gradient(1.4px 1.4px at 95% 7%, rgba(247, 246, 243, .6) 50%, transparent 55%),
    radial-gradient(1.2px 1.2px at 33% 72%, rgba(247, 246, 243, .35) 50%, transparent 55%),
    radial-gradient(1.4px 1.4px at 64% 84%, rgba(247, 246, 243, .4) 50%, transparent 55%),
    radial-gradient(1.2px 1.2px at 83% 66%, rgba(247, 246, 243, .35) 50%, transparent 55%);
  background-size: 100% 760px;
}
.horizon { height: 88px; position: relative; }
@media (min-width: 768px) { .horizon { height: 132px; } }

/* ---------------------------------------------------------------- icons */
.ic { width: var(--s, 48px); height: var(--s, 48px); flex: none; overflow: visible; }
.ic.wide { width: calc(var(--s, 48px) * 2); }
.ic.potato, .ic.tall { height: var(--s, 48px); }

/* ---------------------------------------------------------------- header */
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 8px; }
.top {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; gap: 10px;
  padding: 0 var(--pad-r) 0 16px;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(var(--pad-r), env(safe-area-inset-right));
  background: rgba(247, 246, 243, .92);
  color: var(--ink);
  --logo: #2B3440; --ib: #2B3440; --ic: #F7F6F3;
  border-bottom: 1px solid rgba(43, 52, 64, .08);
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s;
}
@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .top { background: rgba(247, 246, 243, .82); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
}
.top[data-theme="night"] {
  background: rgba(31, 39, 49, .9); color: var(--paper);
  --logo: #FFFFFF; --ib: #F7F6F3; --ic: #1F2731;
  border-bottom-color: rgba(247, 246, 243, .08);
}
@media (min-width: 1100px) { .top { padding-left: max(24px, calc((100% - var(--maxw)) / 2 + 24px)); padding-right: max(24px, calc((100% - var(--maxw)) / 2 + 24px)); } }
.brand { display: flex; align-items: center; min-height: 44px; flex: none; text-decoration: none; }
.brand .logo { height: 24px; width: auto; }
@media (min-width: 768px) { .brand .logo { height: 28px; } }
.charge { flex: 1 1 auto; min-width: 36px; max-width: 220px; display: flex; align-items: center; gap: 6px; margin-left: 4px; }
.charge-bar { position: relative; flex: 1; height: 12px; border-radius: 6px; border: 2px solid currentColor; opacity: .9; overflow: hidden; }
.charge-bar i { position: absolute; left: 2px; top: 2px; bottom: 2px; right: 2px; border-radius: 2px; background: var(--red); transform-origin: left center; transform: scaleX(0); }
.charge.full .charge-bar i { background: linear-gradient(90deg, var(--red) 80%, var(--volt)); }
.charge .bolt { width: 12px; height: 14px; color: var(--volt); flex: none; }
.sky-ind { width: 22px; height: 22px; flex: none; display: none; }
@media (min-width: 420px) { .sky-ind { display: block; } }
.sky-ind .ic { --s: 22px; }
.sky-ind .moon-i { display: none; }
.top[data-theme="night"] .sky-ind .sun-i { display: none; }
.top[data-theme="night"] .sky-ind .moon-i { display: block; }
.top-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; flex: none; }
.top-btn {
  min-height: 44px; min-width: 44px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: none; border: 0; border-radius: 10px;
  font-weight: var(--w-label); font-size: 15px; line-height: 1; text-decoration: none; color: inherit;
  white-space: nowrap;
}
.top-btn:hover { background: rgba(127, 127, 127, .12); }
.top-btn.lang { border: 1.5px solid currentColor; min-height: 36px; margin: 4px 2px; padding: 0 10px; border-radius: 999px; }
.top-btn.lang::before { content: ""; position: absolute; }
.top-btn.lang { position: relative; }
.top-btn.lang::after { content: ""; position: absolute; inset: -5px -2px; }   /* 44 px tap area */
.top-btn .lang-zh { font-family: "Noto Sans SC", var(--font); }

/* ---------------------------------------------------------------- layout */
.wrap { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-r) 0 var(--pad-l); }
.story { position: relative; }
.sec { position: relative; padding: 56px 0 64px; overflow: hidden; }
@media (min-width: 768px) { .sec { padding: 88px 0 96px; } }
.sec > .wrap { z-index: 3; }

.thread {
  position: absolute; top: 0; bottom: 0; z-index: 4; /* story.js moves its ends to the hero road and the last node */ width: 3px; pointer-events: none;
  left: calc(max(0px, (100% - var(--maxw)) / 2) + var(--tx) - 1.5px);
  background: repeating-linear-gradient(to bottom, rgba(140, 150, 162, .55) 0 9px, transparent 9px 19px);
}
.thread-fill { position: absolute; inset: 0; background: var(--red); transform-origin: top center; transform: scaleY(0); border-radius: 2px; }
.no-js .thread-fill { transform: none; }
.thread-dot {
  position: absolute; left: 50%; top: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 5px rgba(196, 71, 47, .22), 0 0 0 1.5px #fff inset;
}
.no-js .thread-dot { display: none; }

.node { position: absolute; left: calc(var(--tx) - 8px); width: 16px; height: 16px; border-radius: 50%; background: var(--bg, #F7F6F3); border: 3px solid var(--red); z-index: 5; top: 6px; }
.sec.seen .node { background: var(--red); }

.kicker {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  font-family: var(--font-num); font-weight: 600; font-size: 15px; letter-spacing: .09em; text-transform: uppercase; color: var(--red);
  margin-bottom: 14px;
}
html[lang="zh-CN"] .kicker { font-family: var(--font); font-weight: 700; letter-spacing: .14em; font-size: 14px; text-transform: none; }
.sky-night .kicker, .sky-dusk .kicker { color: var(--salmon); }
.sec-head { position: relative; }
.sec h2 { font-size: clamp(30px, 7.6vw, 56px); max-width: 15em; text-wrap: balance; }
html[lang="zh-CN"] .sec h2 { font-size: clamp(27px, 6.6vw, 48px); max-width: 14em; }
.sec-body { margin-top: 20px; max-width: 36em; display: grid; gap: 12px; color: var(--fg); }
.sec-body p { color: var(--fg); opacity: .92; }
.sec-body p:first-child { font-size: 1.12em; font-weight: var(--w-label); opacity: 1; }
.sec-grid { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) {
  .sec-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
  .sec-grid.art-left > .art { order: -1; }
}
.block { margin-top: 44px; }
@media (min-width: 768px) { .block { margin-top: 56px; } }
.block-t {
  font-family: var(--font-num); font-weight: 600; font-size: 15px; letter-spacing: .09em; text-transform: uppercase; color: var(--fg2);
  margin-bottom: 14px;
}
html[lang="zh-CN"] .block-t { font-family: var(--font); font-weight: 700; letter-spacing: .1em; text-transform: none; font-size: 15px; }
.src { font-size: 12.5px; line-height: 1.45; color: var(--fg2); margin-top: 8px; font-weight: 500; }
html[lang="zh-CN"] .src { font-size: 12.5px; }

/* chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px;
  font-family: var(--font-num); font-weight: 600; font-size: 13px; letter-spacing: .08em; line-height: 1; text-transform: uppercase;
  white-space: nowrap; vertical-align: middle;
}
html[lang="zh-CN"] .chip { font-family: var(--font); font-weight: 700; letter-spacing: .06em; font-size: 12.5px; }
.chip-live { background: var(--volt); color: #fff; }
.chip-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .3); }
.chip-build { border: 1.5px dashed currentColor; color: var(--fg); opacity: .9; background: transparent; }
.chip-build::before { content: ""; width: 9px; height: 9px; border: 2px solid currentColor; border-radius: 2px; border-style: dashed; display: none; }
.kicker .chip { color: var(--fg); }
.kicker .chip-live { color: #fff; }

/* reveal */
.js .rv { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: 28px 0 0; }
@media (min-width: 768px) { .hero { padding-top: 56px; } }
.hero-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); grid-template-areas: "head head" "text film"; column-gap: 56px; row-gap: 36px; align-items: start; }
  .hero-head { grid-area: head; }
  .hero-text { grid-area: text; padding-top: 6px; }
  .hero-grid .film { grid-area: film; }
  .hero-grid.tall { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); grid-template-areas: "head film" "text film"; }
  .hero-grid.tall .hero-head { align-self: end; }
  .hero h1 { max-width: 17em; }
  .hero-grid.tall h1 { font-size: clamp(36px, 4.6vw, 64px); }
}
.hero .kicker { color: var(--red); }
@media (max-width: 999px) {
  .hero-grid .film { order: 1; }
  .hero-text { order: 2; }
}
/* 9:16 on a phone: the Play button sits in the middle of the poster, so it is on the first screen. */
.film-frame.tall .film-play { align-items: center; justify-content: center; }
.film-frame.tall .film-play .pp { margin: 0; }
.hero h1 { font-size: clamp(36px, 9.6vw, 74px); line-height: 1.02; text-wrap: balance; }
html[lang="zh-CN"] .hero h1 { font-size: clamp(31px, 8.2vw, 62px); line-height: 1.2; }
.hero h1 .accent { color: var(--red); }
.lede { margin-top: 18px; font-size: 18.5px; line-height: 1.5; color: var(--fg); max-width: 34em; }
@media (min-width: 768px) { .lede { font-size: 21px; } }
html[lang="zh-CN"] .lede { font-size: 17.5px; line-height: 1.8; }
@media (min-width: 768px) { html[lang="zh-CN"] .lede { font-size: 19px; } }
.hero-icons { display: flex; align-items: center; gap: 0; margin-top: 26px; max-width: 360px; }
.hero-icons .ic { --s: 44px; }
.hero-icons .link { flex: 1; height: 3px; margin: 0 10px; background: var(--red); border-radius: 2px; min-width: 16px; }
.hero-icons .link.dash { background: repeating-linear-gradient(90deg, var(--red) 0 8px, transparent 8px 14px); }

/* hero road: the red route line the truck drives in on */
.road { position: relative; margin-top: 36px; height: 92px; }
@media (min-width: 768px) { .road { height: 110px; margin-top: 52px; } }
.road .line { position: absolute; left: 0; right: 0; bottom: 18px; height: 4px; background: var(--red); }
.road .line::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 22%; background: repeating-linear-gradient(90deg, var(--red) 0 10px, transparent 10px 20px); }
.road .truck { position: absolute; bottom: 22px; left: max(12px, calc((100% - var(--maxw)) / 2 + var(--pad-l))); --s: 46px; }
@media (min-width: 768px) { .road .truck { --s: 58px; } }
.road .beam { position: absolute; bottom: 31px; width: 70px; height: 18px; left: calc(max(12px, calc((100% - var(--maxw)) / 2 + var(--pad-l))) + 88px); background: linear-gradient(90deg, rgba(255, 200, 87, .55), rgba(255, 200, 87, 0)); clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 60%); }
@media (min-width: 768px) { .road .beam { left: calc(max(12px, calc((100% - var(--maxw)) / 2 + var(--pad-l))) + 112px); bottom: 36px; } }
.road .sun { position: absolute; right: max(20px, calc((100% - var(--maxw)) / 2 + 48px)); bottom: 46px; width: 30px; height: 30px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 10px rgba(255, 200, 87, .18), 0 0 50px 18px rgba(255, 200, 87, .3); }
@media (prefers-reduced-motion: no-preference) {
  .js .road .truck, .js .road .beam { animation: drive-in 1.6s var(--ease) .2s both; }
  .js .road .sun { animation: sun-up 2.2s var(--ease) .1s both; }
}
@keyframes drive-in { from { transform: translateX(-60vw); } to { transform: none; } }
@keyframes sun-up { from { transform: translateY(36px); opacity: 0; } to { transform: none; opacity: 1; } }

.hero-foot { padding: 6px 0 40px; }
.hero-foot .hint { font-weight: var(--w-label); color: var(--fg); display: flex; align-items: center; gap: 10px; }
.hero-foot .hint::before { content: ""; width: 10px; height: 10px; border-right: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(45deg) translateY(-3px); }
.chapters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chapters a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--hair); background: rgba(255, 255, 255, .6); text-decoration: none; font-weight: var(--w-label); font-size: 14.5px;
}
.chapters a:hover { border-color: var(--red); color: var(--red); }
.legend { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--fg2); }
.legend li { display: flex; align-items: center; gap: 10px; }

/* ---------------------------------------------------------------- numbers */
.nums { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.num { margin: 0; padding: 20px 20px 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--card-line); --ic: var(--card); position: relative; }
.num .ic { --s: 40px; margin-bottom: 6px; }
.num .ic.wide { --s: 34px; }
.num-v {
  font-family: var(--font-num); font-weight: 800; color: var(--red); line-height: .92; letter-spacing: -.01em;
  font-size: clamp(48px, 12vw, 92px); white-space: nowrap; display: flex; align-items: baseline; flex-wrap: nowrap;
}
@supports (container-type: inline-size) {
  .num { container-type: inline-size; }
  .num-v { font-size: min(var(--num-max, 112px), calc(100cqi / var(--ems, 3))); }
}
.num-v .pre, .num-v .unit { font-size: .44em; font-weight: 800; letter-spacing: 0; }
.num-v .pre { margin-right: .08em; }
.num-v .unit { margin-left: .06em; }
html[lang="zh-CN"] .num-v .pre, html[lang="zh-CN"] .num-v .unit { font-family: "Noto Sans SC", var(--font-num); font-weight: 900; font-size: .36em; }
.num-l { margin-top: 10px; font-weight: var(--w-label); font-size: 15.5px; line-height: 1.4; color: var(--fg); }
.sky-night .num-v, .sky-dusk .num-v { color: #E0634A; }
.nums.small { --num-max: 88px; }

/* ---------------------------------------------------------------- tiles */
/* Tiles: a centred flex grid; each list sets its columns (--cols) per width, so the last row is
   full or centred and no tile is left alone (3 no-signs; 5 = 3+2; 7 = 4+3; 6 hub parts = 3x2). */
.tiles { --cols: 3; --gap: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.tiles > li { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; }
@media (min-width: 768px) { .tiles { --gap: 12px; } }
.tiles.c-5 { --cols: 3; }
@media (min-width: 600px) { .tiles.c-5 { --cols: 5; } }
@media (min-width: 1000px) { .tiles.c-5 { max-width: 760px; } }
.tiles.c-3 { --cols: 3; }
.tiles.c-7 { --cols: 4; }
@media (min-width: 700px) and (max-width: 999px) { .tiles.c-7 { --cols: 7; } }
@media (max-width: 479px) { .tiles.c-7 { --gap: 8px; } .tiles.c-7 .tile { padding: 12px 3px 10px; font-size: 12.5px; gap: 8px; } .tiles.c-7 .tile .ic { --s: 32px; } .tiles.c-7 .tile .ic.wide { --s: 26px; } }
.tiles.c-own { --cols: 3; }
@media (min-width: 700px) and (max-width: 999px) { .tiles.c-own { --cols: 6; } }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px;
  padding: 16px 10px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--card-line); --ic: var(--card);
  text-align: center; font-weight: var(--w-label); font-size: 14.5px; line-height: 1.3;
}
.tile .ic { --s: 40px; }
.tile .ic.wide { --s: 30px; }
.tile .pair { display: flex; gap: 2px; align-items: center; }
.tile .pair .ic { --s: 34px; }
.tile.no .stack {
  position: relative; width: 52px; height: 52px; display: grid; place-items: center;
  background: radial-gradient(circle, #FFFFFF 0 40%, transparent 41%);
  --ib: #2B3440; --ib2: #5C6875; --ic: #FFFFFF;
}
.tile.no .stack .ic { position: absolute; }
.tile.no .stack .ic.base { --s: 26px; left: 13px; top: 13px; }
.tile.no .stack .ic.over { --s: 52px; left: 0; top: 0; --ib: var(--red); }
.list { display: grid; gap: 10px; }
.list li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--card-line); --ic: var(--card); font-weight: var(--w-label); line-height: 1.35; }
.list li .ic { --s: 36px; }
.list li .ic.wide { --s: 28px; }
/* Every row icon sits in the same box, so the texts of all rows start on one line. */
.ibox { width: 60px; flex: none; display: flex; align-items: center; justify-content: center; }
.list .ibox .pair .ic { --s: 26px; }
.night-row { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px; border-radius: 12px; border: 1.5px solid rgba(232, 170, 156, .55); background: var(--card); --ic: var(--card); font-weight: var(--w-label); line-height: 1.35; }
.night-row .ic { --s: 36px; }
.list.plain li { background: transparent; border: 0; padding: 6px 0; border-bottom: 1px solid var(--hair); border-radius: 0; --ic: var(--bg); }
.list.plain li:last-child { border-bottom: 0; }

/* ---------------------------------------------------------------- section art */
.art { position: relative; }
.art-hook { display: flex; align-items: center; gap: 0; min-height: 180px; }
.art-hook .ic.truck { --s: 54px; flex: none; }
.art-hook .route { flex: 1; height: 4px; margin: 0 -2px; background: repeating-linear-gradient(90deg, var(--red) 0 10px, transparent 10px 18px); min-width: 30px; }
.art-hook .map { position: relative; flex: none; }
.art-hook .map .ic { --s: 170px; }
@media (min-width: 768px) { .art-hook .map .ic { --s: 240px; } .art-hook .ic.truck { --s: 70px; } }
.art-hook .pin { position: absolute; left: 44%; top: 44%; width: 22px; height: 22px; margin: -11px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 6px rgba(196, 71, 47, .22), 0 0 0 14px rgba(196, 71, 47, .1); }
.art-hook .pin::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }

.cmp-card { margin: 0; display: grid; gap: 16px; padding: 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--card-line); --ic: var(--card); align-content: center; }
.cmp-top { display: flex; align-items: center; gap: 10px; font-weight: var(--w-head); font-size: 19px; line-height: 1.2; }
.cmp-top .ic { --s: 40px; }
.cmp-r { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: end; }
.cmp-r .who { display: flex; align-items: flex-end; gap: 2px; padding-bottom: 2px; }
.cmp-r .who .ic { --s: 34px; }
.cmp-r .who .ic.wide { --s: 31px; }
.cmp-b { display: grid; gap: 4px; min-width: 0; }
.cmp-b .lbl { font-weight: var(--w-label); font-size: 14.5px; line-height: 1.25; color: var(--fg); }
.cmp-r .track { display: flex; align-items: center; gap: 8px; height: 20px; }
.cmp-r .b { display: block; height: 100%; border-radius: 5px; flex: none; }
.cmp-r .b.one { width: 38%; background: var(--diesel); }
.cmp-r .b.two { width: 76%; background: var(--red); }
.cmp-r .x { font-family: var(--font-num); font-weight: 800; font-size: 18px; line-height: 1; color: var(--fg); white-space: nowrap; }
html[lang="zh-CN"] .cmp-r .x { font-size: 16px; }
.cost-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .cost-row { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: stretch; } }

.depot { margin: 0; padding: 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--card-line); --ic: var(--card); }
.depot-row { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.depot figcaption { margin-top: 12px; font-weight: var(--w-label); font-size: 17px; line-height: 1.35; color: var(--fg); }
.depot .ic { --s: 48px; }
.depot .ic.wide { --s: 46px; }
.depot .arrow { flex: 1; min-width: 20px; height: 3px; background: repeating-linear-gradient(90deg, var(--salmon) 0 7px, transparent 7px 13px); position: relative; }
.depot .arrow::after { content: ""; position: absolute; right: -2px; top: -5px; border-left: 9px solid var(--salmon); border-top: 6.5px solid transparent; border-bottom: 6.5px solid transparent; }

.swap { display: grid; gap: 6px; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; }
.swap .st { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 4px; border-radius: 12px; background: var(--card); border: 1px dashed var(--card-line); --ic: var(--card); }
.swap .st .row { display: flex; align-items: flex-end; gap: 2px; }
.swap .st .ic { --s: 30px; }
.swap .st .ic.wide { --s: 34px; }
@media (min-width: 420px) { .swap .st .ic { --s: 38px; } .swap .st .ic.wide { --s: 40px; } .swap { gap: 10px; } }
.swap .st.hub { border-color: rgba(232, 170, 156, .5); }
.swap .lnk { width: 14px; height: 3px; background: var(--red); border-radius: 2px; }
@media (min-width: 768px) { .swap .st .ic { --s: 52px; } .swap .st .ic.wide { --s: 50px; } .swap .lnk { width: 40px; } }

.milence { padding: 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--card-line); --ic: var(--card); }
.milence .list.plain li { --ic: var(--card); }
.own { padding: 18px; border-radius: var(--radius); background: var(--navy); color: var(--paper); --ib: #F7F6F3; --ib2: #B7BEC7; --ic: #2B3440; --card: #3A4655; --card-line: rgba(247, 246, 243, .1); --fg: #F7F6F3; --fg2: #B7BEC7; }
.own h3 { font-size: 20px; line-height: 1.25; margin-bottom: 14px; letter-spacing: 0; }
.own .tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 94px), 1fr)); }
.own .tile { --ic: #3A4655; }
.net-blocks { display: grid; gap: 18px; }
@media (min-width: 1000px) { .net-blocks { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; } }
@media (min-width: 1000px) { #drivers .net-blocks { align-items: end; } }

/* flywheel */
.fly { display: grid; gap: 28px; align-items: center; }
@media (min-width: 768px) { .fly { grid-template-columns: auto minmax(0, 1fr); gap: 40px; } }
/* The flywheel: six labelled segments, red arrows in the gaps (clockwise), handshake hub.
   It turns slowly; each label turns back the other way, so it stays upright. */
.wheel { position: relative; width: min(100%, 340px); aspect-ratio: 1; margin: 0 auto; --spin: 90s; }
@media (min-width: 768px) { .wheel { width: min(100%, 420px); } }
.wheel .spin { position: absolute; inset: 0; }
.wheel .ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.wheel .ring .wedge { fill: #F7F6F3; }
.wheel .ring .wedge.last { fill: #FBEFD9; }
.wheel .ring .arr { fill: #E0634A; }
.wheel .w-items { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.wheel .w-items li { position: absolute; width: 0; height: 0; }
.wheel .wi {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); width: 96px;
  display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center;
  --ib: #2B3440; --ib2: #5C6875; --ic: #F7F6F3; color: #232B35;
}
.wheel .wi .ic { --s: 26px; }
.wheel .wi .ic.wide { --s: 21px; }
.wheel .wi .pair { display: flex; gap: 1px; align-items: flex-end; }
.wheel .wi .pair .ic { --s: 21px; }
.wheel .wl { display: block; font-weight: var(--w-label); font-size: 11.5px; line-height: 1.12; max-width: 62px; }
.wheel .wl-s { display: none; }
html[lang="zh-CN"] .wheel .wl { word-break: keep-all; font-size: 12px; }
@media (max-width: 767px) { .wheel .wl.has-s .wl-f { display: none; } .wheel .wl.has-s .wl-s { display: inline; } }
@media (min-width: 768px) { .wheel .wi { width: 120px; } .wheel .wi .ic { --s: 38px; } .wheel .wi .ic.wide { --s: 30px; } .wheel .wi .pair .ic { --s: 30px; } .wheel .wl { font-size: 14px; max-width: 96px; } }
@media (prefers-reduced-motion: no-preference) {
  .js .wheel .spin { animation: spin var(--spin) linear infinite; }
  .js .wheel .wi { animation: spin-back var(--spin) linear infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-back { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(-360deg); } }
.wheel .hub-c { position: absolute; inset: 29%; border-radius: 50%; background: var(--red); display: grid; place-items: center; color: #fff; text-align: center; box-shadow: 0 0 0 8px rgba(196, 71, 47, .2); }
.wheel .hub-c b { font-family: var(--font-num); font-weight: 800; font-size: clamp(38px, 11vw, 54px); line-height: .9; display: block; }
.wheel .hub-c b small { font-size: .5em; }
.wheel .hub-c span { display: block; font-size: 11.5px; font-weight: var(--w-label); line-height: 1.2; padding: 0 10px; margin-top: 4px; opacity: .95; }
.cycle { display: grid; gap: 8px; counter-reset: c; }
.cycle li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--card-line); --ic: var(--card); font-weight: var(--w-label); position: relative; }
.cycle li .icons { display: flex; gap: 2px; width: 70px; justify-content: center; flex: none; }
.cycle li .ic { --s: 32px; }
.cycle li .ic.wide { --s: 30px; }
.cycle li:not(:last-child)::after { content: ""; position: absolute; left: 46px; bottom: -9px; width: 2px; height: 10px; background: var(--red); z-index: 1; }
.cycle li:last-child { border-color: rgba(232, 170, 156, .6); }
.nums.pair2 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .nums.pair2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .fly-more .nums.pair2 { max-width: 760px; } }
/* "Faster together" is a statement, not a button: big red words with the handshake, no pill. */
.together { margin-top: 28px; display: flex; align-items: center; gap: 14px; color: #E0634A; font-weight: var(--w-head); font-size: clamp(28px, 7vw, 44px); line-height: 1.05; letter-spacing: var(--ls-head); }
.together .ic { --s: 56px; }
@media (min-width: 768px) { .together .ic { --s: 68px; } }

/* platform: phone + mini programs */
.platform-grid { display: grid; gap: 32px; }
@media (min-width: 1000px) { .platform-grid { grid-template-columns: 330px minmax(0, 1fr); gap: 56px; align-items: start; } }
.phone {
  width: min(100%, 300px); margin: 0 auto; border-radius: 40px; padding: 12px; background: #11161D;
  box-shadow: 0 0 0 2px rgba(247, 246, 243, .85), 0 30px 80px -30px rgba(0, 0, 0, .8);
}
@media (min-width: 1000px) { .phone { position: sticky; top: calc(var(--header-h) + 24px); } }
.phone .scr { border-radius: 30px; background: var(--navy-deep); padding: 18px 12px 16px; --ic: #2B3440; --card: #2B3440; }
.phone .bar { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 12px; }
.phone .bar .logo { height: 16px; width: auto; --logo: #fff; }
.phone .rows { display: grid; gap: 6px; }
.phone .row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: #2B3440; border: 1px dashed rgba(247, 246, 243, .18); }
.phone .row .ic { --s: 22px; }
.phone .row .ic.wide { --s: 18px; }
.phone .row .ibox { width: 38px; }
.phone .row b { display: block; font-size: 12.5px; line-height: 1.2; }
.phone .row span { display: block; font-size: 10.5px; color: #B7BEC7; line-height: 1.25; }
.phone .row.live { border: 1px solid rgba(22, 185, 120, .55); }
.phone .grip { width: 60px; height: 4px; border-radius: 2px; background: rgba(247, 246, 243, .3); margin: 12px auto 0; }
.progs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 228px), 1fr)); }
.prog { padding: 18px; border-radius: var(--radius); background: var(--card); border: 1.5px dashed rgba(247, 246, 243, .22); --ic: var(--card); display: flex; flex-direction: column; gap: 10px; }
.prog .icons { display: flex; flex-wrap: nowrap; gap: 6px; align-items: flex-end; min-height: 38px; }
.prog .icons .ic { --s: 36px; }
.prog .icons .ic.wide { --s: 34px; }
.prog .icons.n5 { gap: 5px; }
.prog .icons.n5 .ic { --s: 30px; }
.prog .icons.n5 .ic.wide { --s: 28px; }
.prog h3 { font-size: 21px; line-height: 1.2; letter-spacing: 0; }
.prog .tag { color: var(--salmon); font-weight: var(--w-label); font-size: 15px; }
.prog p { font-size: 15.5px; color: var(--fg2); line-height: 1.5; }
.prog .chip { align-self: flex-start; margin-top: auto; }
.prog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }

/* shared costs */
.funnel { display: grid; gap: 14px; }
.funnel .result { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--card-line); --ic: var(--card); }
.funnel .result .ic { --s: 64px; }
.funnel .result .ic.wide { --s: 56px; }
.funnel .down { width: 3px; height: 26px; background: var(--red); margin: 0 auto; position: relative; }
.funnel .down::after { content: ""; position: absolute; left: -6px; bottom: -6px; border-top: 9px solid var(--red); border-left: 7.5px solid transparent; border-right: 7.5px solid transparent; }

/* standard units */
.units { display: grid; gap: 14px; justify-items: center; padding: 18px 12px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--card-line); --ic: var(--card); }
.units .ic.wide { --s: 72px; }
.units .ic.sq { --s: 70px; }
.units .rig { display: flex; align-items: flex-end; gap: 0; }
.units .rig .ic.wide { --s: 66px; }
.units .eq { font-family: var(--font-num); font-weight: 800; color: var(--red); font-size: 34px; line-height: 1; }
.units .row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
@media (min-width: 768px) { .units .ic.wide { --s: 96px; } .units .rig .ic.wide { --s: 84px; } .units .ic.sq { --s: 84px; } }

/* live sites */
.cards { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 18px; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 18px 40px -26px rgba(31, 39, 49, .35); --ic: #fff;
}
.card-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.card-top .mark { width: 40px; height: 40px; border-radius: 9px; flex: none; }
.card-top h3 { flex: 0 1 auto; font-size: 17px; line-height: 1.2; letter-spacing: 0; font-family: "Barlow", var(--font); font-weight: 800; }
@media (min-width: 400px) { .card-top h3 { font-size: 20px; } }
.card-top .chip { flex: none; margin-left: auto; }
.card p.desc { color: var(--ink); font-weight: var(--w-label); }
.ways { display: grid; gap: 6px; }
@media (min-width: 1100px) { .ways { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ways li { flex-direction: column; align-items: flex-start; gap: 6px; } }
.card .counters { margin-top: auto; }
.ways li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--paper); --ic: var(--paper); font-weight: var(--w-label); font-size: 15px; }
.ways .ic { --s: 26px; }
.counters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.counter { padding: 12px; border-radius: 12px; background: var(--paper); --ic: var(--paper); display: flex; flex-direction: column; gap: 4px; }
.counter .ic { --s: 28px; }
.counter .v { font-family: var(--font-num); font-weight: 800; font-size: clamp(40px, 11vw, 54px); line-height: .9; color: var(--navy); white-space: nowrap; }
.counter .v .unit { font-size: .34em; font-family: var(--font); font-weight: var(--w-label); color: var(--muted); margin-left: 4px; letter-spacing: .02em; }
html[lang="zh-CN"] .counter .v .unit { font-size: .3em; color: var(--ink); }
.counter .l { font-size: 14px; color: var(--muted); font-weight: var(--w-label); text-transform: uppercase; letter-spacing: .06em; font-family: var(--font-num); }
.card .src { margin-top: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 12px;
  font-weight: var(--w-label); font-size: 16px; text-decoration: none; border: 0; background: var(--navy); color: #fff; line-height: 1.2; text-align: center;
}
.btn:hover { background: var(--navy-deep); }
.btn.red { background: var(--red); }
.btn.red:hover { background: var(--red-dark); }
.btn.ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn .arr { width: 14px; height: 14px; border-top: 2.5px solid currentColor; border-right: 2.5px solid currentColor; transform: rotate(45deg); margin-left: -2px; flex: none; }
.card .btn { align-self: flex-start; overflow-wrap: anywhere; }

.makers ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.makers li { flex: 0 0 calc(50% - 4px); }
@media (min-width: 640px) { .makers li { flex-basis: calc((100% - 32px) / 5); } }
@media (min-width: 1000px) { .makers li { flex-basis: calc((100% - 48px) / 7); } }
.makers li { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-family: "Barlow", var(--font); font-weight: 600; font-size: 16px; line-height: 1.2; color: var(--ink); }
.makers .note { margin-top: 12px; font-size: 14.5px; color: var(--muted); }

.next ul { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.next li { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; border: 1.5px dashed #AEB5BE; background: transparent; --ic: var(--paper); font-weight: var(--w-label); }
.next li .icons { display: flex; gap: 2px; }
.next li .ic { --s: 34px; }
.next-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.next-head h3 { font-size: 22px; letter-spacing: 0; }

/* close */
.close { text-align: center; padding: 96px 0 72px; }
.close .logo { width: min(78%, 460px); height: auto; margin: 0 auto; --logo: #fff; }
.close .logo .logo-bar { transform-box: fill-box; transform-origin: left center; }
@media (prefers-reduced-motion: no-preference) {
  .js .close .logo .logo-bar { transform: scaleX(0); transition: transform 1.1s var(--ease) .2s; }
  .js .close.in .logo .logo-bar { transform: none; }
}
.close .url { display: inline-flex; align-items: center; min-height: 48px; margin-top: 18px; padding: 0 18px; font-size: 22px; font-weight: 600; letter-spacing: .04em; text-decoration: none; color: #B7BEC7; border-radius: 10px; }
.close .url:hover { color: #fff; }

.foot { background: #1F2731; color: #B7BEC7; padding: 32px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 14.5px; border-top: 1px solid rgba(247, 246, 243, .08); --logo: #fff; }
.foot .wrap { display: grid; gap: 6px; }
.foot a { color: #F7F6F3; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; }
.foot a:hover { text-decoration: underline; }
.foot .private { color: #E8AA9C; }

/* ---------------------------------------------------------------- additions */
.block-h { font-size: clamp(24px, 5.6vw, 34px); line-height: 1.15; margin-bottom: 16px; }
html[lang="zh-CN"] .block-h { font-size: clamp(22px, 5vw, 30px); line-height: 1.3; }
.block-sub { color: var(--fg2); margin-top: -8px; margin-bottom: 4px; }
.list .pair, .tile .pair { display: flex; gap: 2px; align-items: center; flex: none; }
.list .pair .ic { --s: 30px; }
.sec-grid.solo { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 479px) {
  .auth-main { padding: 8px 12px 32px; }
  .auth-card { padding: 22px 16px 20px; border-radius: 16px; }
}

.hero-text .lede { margin-top: 0; }
@media (max-width: 999px) { .hero-text .lede { margin-top: 4px; } }
.num-v .unit.w { margin-left: .22em; }
@media (min-width: 1000px) { .art .nums { grid-template-columns: minmax(0, 1fr); } }
/* tap targets: at least 44 px */
.seg button { min-height: 44px; }
.chapters a { min-height: 44px; }
.btn.sm { min-height: 44px; }
@media (max-width: 599px) {
  .page-admin .top { height: auto; flex-wrap: wrap; padding-top: 4px; padding-bottom: 4px; position: relative; }
  .page-admin .admin-nav { margin-left: -10px; width: calc(100% + 10px); justify-content: space-between; }
}
.ph { display: inline-block; }
html[lang="zh-CN"] .sec h2 { font-size: clamp(27px, 6.6vw, 44px); max-width: none; }

/* ---------------------------------------------------------------- review fixes (5 Oct 2026) */
/* Hook: Europe as in the film: a light fill, a thin navy outline, the red hub dot. */
.art-hook .map .eu-map { width: 170px; height: 170px; overflow: visible; }
@media (min-width: 768px) { .art-hook .map .eu-map { width: 240px; height: 240px; } }
.eu-map .land { fill: var(--ib, #2B3440); fill-opacity: .07; stroke: var(--ib, #2B3440); stroke-width: 1.5; stroke-linejoin: round; }
.eu-map .dot { fill: var(--red); }
.eu-map .ring { fill: none; stroke: var(--red); stroke-width: 1.4; opacity: .45; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) { .js .eu-map .ring { animation: hub-pulse 2.6s var(--ease) infinite; } }
@keyframes hub-pulse { from { transform: scale(.6); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }
/* Site-only glyphs (build.mjs GLYPHS): a brighter red on dark backgrounds. */
.sky-night, .sky-dusk { --red-i: #E0634A; }
.wheel .hub-c .ic { width: 54%; height: 54%; }
.num .pair { display: flex; align-items: flex-end; gap: 6px; margin-bottom: 6px; }
.num .pair .ic { margin-bottom: 0; }

/* No line break inside these (numbers with units, dates, names, the last characters of a line). */
.nw { white-space: nowrap; }
/* Chinese: headlines break only between phrases (U+200B points in pitch.json, punctuation). */
html[lang="zh-CN"] .sec h2, html[lang="zh-CN"] .hero h1, html[lang="zh-CN"] .block-h, html[lang="zh-CN"] .own h3 { word-break: keep-all; }
html[lang="zh-CN"] p, html[lang="zh-CN"] li, html[lang="zh-CN"] .hint, html[lang="zh-CN"] .num-l, html[lang="zh-CN"] .src { text-wrap: pretty; }

/* A share as a row of people (film s03): filled drivers + outlined empty seats. */
.num .people { display: flex; flex-wrap: nowrap; gap: 4px; margin-bottom: 8px; }
.num .people .ic { --s: 30px; margin: 0; flex: 0 1 auto; min-width: 0; }
@media (min-width: 420px) { .num .people .ic { --s: 34px; } }

/* ---------------------------------------------------------------- bess4mcs.eu parts */
/* The pages of this site are public and indexable; everything else is the china.avigus.com design. */

/* hero: the flow (wind/solar → battery → megawatt charger → truck) and the three roles */
.hero-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); grid-template-areas: "head head" "text art"; column-gap: 56px; row-gap: 32px; align-items: center; }
  .hero-grid .hero-art { grid-area: art; }
}
@media (max-width: 999px) { .hero-grid .hero-art { order: 1; } .hero-text { order: 2; } }
.hero-roles { margin-top: 24px; display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 560px; }
.hero-roles li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 12px 6px 10px; border-radius: 12px; background: rgba(255, 255, 255, .7); border: 1px solid var(--hair); --ic: #FFFFFF; }
.hero-roles .ic { --s: 34px; }
.hero-roles b { font-family: var(--font-num); font-weight: 800; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--red); line-height: 1.1; }
html[lang="zh-CN"] .hero-roles b { font-family: var(--font); font-weight: 900; letter-spacing: .1em; text-transform: none; font-size: 15px; }
.hero-roles span { font-size: 12.5px; line-height: 1.3; color: var(--fg2); font-weight: var(--w-label); }
@media (min-width: 420px) { .hero-roles span { font-size: 13.5px; } .hero-roles .ic { --s: 40px; } }

/* the flow: stations joined by red links; a column on phones, a row from 640 px */
.flow { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.flow .st { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--card-line); --ic: var(--card); font-weight: var(--w-label); line-height: 1.25; min-width: 0; }
.flow .st .icons { display: flex; align-items: flex-end; gap: 4px; flex: none; }
.flow .st .ic { --s: 40px; }
.flow .st .ic.wide { --s: 38px; }
.flow .st.on { border-color: rgba(196, 71, 47, .55); }
.flow .lnk { width: 3px; height: 22px; margin: 0 auto; background: var(--red); border-radius: 2px; position: relative; flex: none; }
.flow .lnk::after { content: ""; position: absolute; left: -5px; bottom: -4px; border-top: 8px solid var(--red); border-left: 6.5px solid transparent; border-right: 6.5px solid transparent; }
.flow .lnk.dash { background: repeating-linear-gradient(180deg, var(--volt) 0 6px, transparent 6px 11px); }
.flow .lnk.dash::after { border-top-color: var(--volt); }
@media (min-width: 640px) {
  .flow { flex-direction: row; align-items: stretch; }
  .flow .st { flex: 1 1 0; flex-direction: column; text-align: center; justify-content: flex-start; gap: 10px; padding: 16px 10px 14px; font-size: 14.5px; }
  .flow .st .ic { --s: 46px; }
  .flow .st .ic.wide { --s: 42px; }
  .flow .lnk { width: 24px; height: 3px; margin: 0; align-self: center; }
  .flow .lnk::after { left: auto; right: -4px; bottom: -5.5px; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 9px solid var(--red); border-right: 0; }
  .flow .lnk.dash { background: repeating-linear-gradient(90deg, var(--volt) 0 6px, transparent 6px 11px); }
  .flow .lnk.dash::after { border-left-color: var(--volt); border-top-color: transparent; }
}
@media (min-width: 1000px) { .flow .st .ic { --s: 54px; } .flow .st .ic.wide { --s: 48px; } .flow .lnk { width: 34px; } }
.hero-art .flow .st { background: rgba(255, 255, 255, .72); }

/* who: the three roles as cards, the status rows */
.roles { display: grid; gap: 12px; }
@media (min-width: 640px) { .roles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .sec-grid .roles { grid-template-columns: minmax(0, 1fr); } }
.role { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--card-line); --ic: var(--card); }
.role .rb { display: flex; align-items: center; gap: 12px; }
.role .rb .ic { --s: 40px; }
.role h3 { font-size: 22px; line-height: 1.15; letter-spacing: 0; color: var(--red); }
html[lang="zh-CN"] .role h3 { font-size: 21px; }
.role p { font-size: 15.5px; line-height: 1.5; color: var(--fg); }
.status { display: grid; gap: 8px; max-width: 640px; }
.status li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--card-line); --ic: var(--card); font-weight: var(--w-label); }
.status li .ic { --s: 30px; }
.status li .ic.wide { --s: 30px; }
.status li .chip { margin-left: auto; flex: none; }
.status li > span:not(.chip):not(.ibox) { min-width: 0; overflow-wrap: anywhere; }

/* power: the schematic price curve */
.pchart { margin: 0; padding: 16px 16px 12px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--card-line); --ic: var(--card); }
.pchart > svg { width: 100%; height: auto; overflow: visible; }
.pchart .bar { fill: var(--ib2, #5C6875); opacity: .55; }
.pchart .bar.neg { fill: var(--volt); opacity: 1; }
.pchart .bar.peak { fill: var(--red); opacity: 1; }
.pchart .zero { stroke: var(--fg2); stroke-width: 1; stroke-dasharray: 3 3; }
.pchart .lbl { font-family: var(--font); font-weight: 600; font-size: 11px; fill: var(--fg); }
.pchart .lbl.neg { fill: var(--volt-dark); }
.sky-night .pchart .lbl.neg, .sky-dusk .pchart .lbl.neg { fill: var(--volt); }
.pchart .lbl.peak { fill: var(--red); }
.sky-night .pchart .lbl.peak, .sky-dusk .pchart .lbl.peak { fill: #E0634A; }
.pchart figcaption { margin-top: 8px; font-size: 13px; color: var(--fg2); font-weight: var(--w-label); }
.pchart .marks { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 13px; font-weight: var(--w-label); color: var(--fg); }
.pchart .marks span { display: inline-flex; align-items: center; gap: 6px; }
.pchart .marks .ic { --s: 24px; }

/* wanted: the note before quoting */
.note-box { margin-top: 18px; padding: 16px 18px; border-radius: var(--radius); border: 1.5px solid rgba(232, 170, 156, .6); background: var(--card); --ic: var(--card); max-width: 760px; }
.note-box h3 { font-size: 17px; line-height: 1.3; letter-spacing: 0; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.note-box h3 .ic { --s: 26px; }
.note-box p { font-size: 15.5px; line-height: 1.5; color: var(--fg); }
.tiles.c-3w { --cols: 2; }
@media (min-width: 640px) { .tiles.c-3w { --cols: 3; max-width: 820px; } }
.tiles.c-3w .tile { font-size: 14px; }

/* next: three steps, the contact block with the QR code */
.steps { display: grid; gap: 10px; counter-reset: s; max-width: 640px; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--card-line); --ic: var(--card); font-weight: var(--w-label); line-height: 1.35; position: relative; }
.steps li .n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-family: var(--font-num); font-weight: 800; font-size: 19px; }
.steps li .ibox { width: 46px; }
.steps li .ic { --s: 32px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 30px; bottom: -10px; width: 3px; height: 10px; background: var(--red); z-index: 1; }
.contact { margin-top: 32px; display: grid; gap: 20px; }
@media (min-width: 760px) { .contact { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 36px; } }
.contact .cname { font-weight: var(--w-head); font-size: 24px; line-height: 1.15; letter-spacing: var(--ls-head); }
.contact .ccompany { color: var(--fg2); font-weight: var(--w-label); margin-top: 2px; }
.contact .cbtns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.contact .btn { max-width: 100%; overflow-wrap: anywhere; }
.qr { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.qr .qrs { position: relative; width: min(100%, 200px); padding: 10px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.qr .qrs svg { width: 100%; height: auto; display: block; }
.qr figcaption { font-weight: var(--w-label); font-size: 15px; line-height: 1.35; max-width: 240px; }
.qr figcaption small { display: block; font-weight: 500; font-size: 13px; color: var(--fg2); margin-top: 4px; }
.qr .qrlink { font-size: 13px; color: var(--fg2); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }

/* the full-screen QR page */
.page-qr { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: #fff; }
.page-qr .top { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; position: relative; }
.qr-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 16px 32px; gap: 14px; text-align: center; }
.qr-main .qrs { width: min(100%, 68vh, 440px); }
.qr-main .qrs svg { width: 100%; height: auto; display: block; }
.qr-main .url { font-family: var(--font-num); font-weight: 800; font-size: clamp(28px, 7vw, 44px); letter-spacing: .02em; color: var(--navy); line-height: 1; }
.qr-main .hint { font-weight: var(--w-label); color: var(--muted); font-size: 16px; }
.qr-main .hint .zh { font-family: "Noto Sans SC", var(--font); }
.qr-main .back { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.qr-main .back a { min-height: 44px; display: inline-flex; align-items: center; font-weight: var(--w-label); color: var(--ink); }

/* where: Europe map at the left, the two site cards below */
#where .art-hook { justify-content: center; }
#where .art-hook .map .eu-map { width: 200px; height: 200px; }
@media (min-width: 768px) { #where .art-hook .map .eu-map { width: 260px; height: 260px; } }

/* sources under the number tiles stay small; estimate marks */
.src .est { font-style: normal; }

/* the 404 page */
.nf { text-align: center; padding: 40px 16px; }
.nf h1 { font-size: 64px; color: var(--red); }
.nf p { margin-top: 10px; }
.nf .btn { margin-top: 22px; }
.page-plain { min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); }
.page-plain .top { position: relative; }
.plain-main { flex: 1; display: flex; align-items: center; justify-content: center; }

/* Safety net: a Chinese headline clause longer than the column may still wrap inside. */
html[lang="zh-CN"] .sec h2 .ph, html[lang="zh-CN"] .hero h1 .ph { max-width: 100%; overflow-wrap: anywhere; }
