@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-500.woff2") format("woff2");
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700; font-display: swap;
}

:root {
  --ink: #14213D;
  --ink-deep: #0D172C;
  --paper: #F4F5F1;
  --white: #FFFFFF;
  --steel: #56657A;
  --rule: #D3D8D6;
  --signal: #F2B705;
  --link: #1F5BC7;

  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --cond: "Barlow Condensed", "PingFang SC", "Microsoft YaHei", sans-serif;

  /* type scale, ratio ~1.25 from 17px */
  --t-sm: 14px;
  --t-base: 17px;
  --t-md: 21px;
  --t-lg: 26px;
  --t-xl: clamp(26px, 3.2vw, 34px);
  --t-hero: clamp(34px, 5.6vw, 62px);

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: var(--link); text-underline-offset: 3px; }
img { display: block; }

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

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: 4px;
}
.skip:focus { top: 12px; }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--ink);
  transition: background-color .15s, color .15s;
}
.btn:hover { background: var(--ink-deep); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--white); }
.btn-small { padding: 6px 16px; font-size: var(--t-sm); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: var(--t-md); letter-spacing: .04em; }
.brand img { width: 96px; height: auto; }
.site-header nav { margin-left: auto; }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--link); }

/* ---------- hero ---------- */
.hero { background: var(--white); }
.hero-text { padding-top: clamp(56px, 9vw, 112px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero h1 {
  font-size: var(--t-hero);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 15em;
}
.lede { margin-top: 28px; max-width: 36em; font-size: var(--t-md); line-height: 1.7; color: var(--steel); }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- journey / road ---------- */
.journey { padding-bottom: clamp(48px, 7vw, 88px); background: var(--white); }
.journey-title { font-size: var(--t-md); font-weight: 600; max-width: 30em; line-height: 1.6; margin-bottom: 28px; }

.road {
  position: relative;
  background: var(--ink);
  height: 128px;
}
.road::before, .road::after {           /* road edge lines */
  content: ""; position: absolute; left: 0; right: 0; height: 3px; background: rgba(255,255,255,.55);
}
.road::before { top: 12px; }
.road::after { bottom: 12px; }
.road-line {
  position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px;
  background: repeating-linear-gradient(90deg, var(--signal) 0 56px, transparent 56px 96px);
  transform-origin: left center;
  animation: paint 1.6s cubic-bezier(.6,.05,.3,1) .2s both;
}
@keyframes paint { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.road-stops {
  position: relative; height: 100%;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stop {
  appearance: none; border: 0; background: none; cursor: pointer;
  font: inherit; color: var(--white);
  display: flex; align-items: center; gap: 14px;
  padding: 0 8px;
  justify-self: start;
}
.stop-no {
  width: 52px; height: 52px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 3px solid var(--white);
  background: var(--ink);
  font-family: var(--cond); font-weight: 700; font-size: 26px; line-height: 1;
  transition: background-color .2s, color .2s, border-color .2s;
}
.stop-name {
  font-size: var(--t-lg); font-weight: 700; letter-spacing: .12em;
  background: var(--ink); padding: 0 6px;
}
.stop:hover .stop-no { border-color: var(--signal); }
.stop[aria-selected="true"] .stop-no { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.stop[aria-selected="true"] .stop-name { color: var(--signal); }
.stop:focus-visible { outline-color: var(--signal); }

.panels { padding-top: 36px; }
.panel { display: grid; grid-template-columns: 5fr 7fr; gap: 24px 56px; }
.panel[hidden] { display: none; }
.panel-lead { font-size: var(--t-md); line-height: 1.65; }
.modules { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; }
.modules li { color: var(--steel); font-size: 15px; line-height: 1.6; padding-left: 16px; border-left: 3px solid var(--signal); }
.modules strong { display: block; color: var(--ink); font-size: var(--t-base); margin-bottom: 2px; }
.panel-case { grid-column: 2; font-size: 15px; color: var(--steel); }

/* ---------- generic section ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-title { font-size: var(--t-xl); line-height: 1.3; font-weight: 700; }
.section-note { margin-top: 12px; color: var(--steel); max-width: 40em; }

/* capabilities */
.caps { margin-top: 40px; border-top: 2px solid var(--ink); }
.cap {
  display: grid; grid-template-columns: 4fr 8fr; gap: 8px 40px;
  padding: 26px 0; border-bottom: 1px solid var(--rule);
}
.cap dt { font-size: var(--t-md); font-weight: 700; }
.cap dd { max-width: 38em; color: var(--steel); }
.caps-foot { margin-top: 24px; color: var(--steel); font-size: 15px; }

/* cases */
.section-cases { background: var(--white); }
.cases { margin-top: 44px; border-top: 2px solid var(--ink); }
.case {
  display: grid; grid-template-columns: 7fr 5fr; gap: 20px 56px;
  padding: 36px 0; border-bottom: 1px solid var(--rule);
  align-items: start;
}
.case h3 { font-size: var(--t-md); line-height: 1.45; margin-bottom: 10px; }
.case-head p { color: var(--steel); max-width: 34em; }
.figures { display: flex; flex-wrap: wrap; gap: 20px 36px; }
.figures dt { font-size: var(--t-sm); color: var(--steel); order: 2; }
.figures div { display: flex; flex-direction: column; }
.figures dd { order: 1; font-weight: 600; font-size: var(--t-base); line-height: 1; }
.num { font-family: var(--cond); font-weight: 600; font-size: 56px; line-height: 1; letter-spacing: -0.01em; margin-right: 2px; }
.case-scope {
  align-self: center;
  font-size: var(--t-base); font-weight: 600;
  padding-left: 16px; border-left: 3px solid var(--signal);
}

/* process */
.steps { margin-top: 44px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 32px 24px; }
.steps li { border-top: 2px solid var(--ink); padding-top: 14px; }
.step-no { font-family: var(--cond); font-weight: 600; font-size: 40px; line-height: 1; color: var(--steel); }
.steps h3 { font-size: var(--t-md); margin: 10px 0 6px; }
.steps p { font-size: 15px; line-height: 1.6; color: var(--steel); }

/* about */
.section-about { border-top: 1px solid var(--rule); }
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 32px 56px; }
.about-motto { margin-top: 18px; font-size: var(--t-lg); font-weight: 600; line-height: 1.5; }
.about-body p + p { margin-top: 16px; }
.about-body p { max-width: 36em; }

/* contact */
.contact { background: var(--ink); color: var(--white); padding: clamp(64px, 9vw, 104px) 0; }
.contact-grid { display: grid; grid-template-columns: 6fr 6fr; gap: 40px 56px; align-items: start; }
.contact h2 { font-size: var(--t-xl); line-height: 1.3; }
.contact-grid > div > p { margin-top: 16px; color: rgba(255,255,255,.78); max-width: 26em; }
.contact-list div { display: grid; grid-template-columns: 4em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.contact-list div:first-child { border-top: 1px solid rgba(255,255,255,.18); }
.contact-list dt { color: rgba(255,255,255,.6); }
.contact-list a { color: var(--white); text-decoration-color: var(--signal); }
.contact-list a:hover { color: var(--signal); }
.contact :focus-visible { outline-color: var(--signal); }

/* footer */
.site-footer { background: var(--ink-deep); color: rgba(255,255,255,.6); font-size: var(--t-sm); }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.site-footer a { color: inherit; }
.site-footer a:hover { color: var(--white); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .header-inner { justify-content: space-between; }
  .panel, .case, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .panel-case { grid-column: auto; }
  .cap { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .road { height: 112px; }
  .stop { flex-direction: column; gap: 4px; justify-self: center; padding: 0; }
  .stop-no { width: 44px; height: 44px; font-size: 22px; }
  .stop-name { font-size: var(--t-base); letter-spacing: .08em; }
  .modules { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .num { font-size: 46px; }
}

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

/* case highlighted after jumping from a journey panel */
.case.is-target { animation: mark 2.4s ease-out; }
@keyframes mark { 0%, 30% { box-shadow: inset 4px 0 0 var(--signal); background: #FFF8E0; } 100% { box-shadow: inset 4px 0 0 transparent; background: transparent; } }
@media (prefers-reduced-motion: reduce) { .case.is-target { animation: none; box-shadow: inset 4px 0 0 var(--signal); } }
