.hero-label { color: #ffbba7; margin-bottom: 1rem; }
.hero-intro { color: #f0eef5; font-size: clamp(1rem, 1.35vw, 1.16rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem 1.35rem; margin-top: 1.3rem; }
.version-link { color: var(--white); font-size: .9rem; font-weight: 650; }
.version-link:hover { color: #ffad96; }
.module-hero h1, .journey-intro h1 {
  font-size: clamp(3.2rem, 6.25vw, 7.35rem);
  line-height: .95;
  letter-spacing: -.06em;
}
.module-hero h1 span, .module-hero h1 em, .journey-intro h1 span, .journey-intro h1 em { display: block; }
.module-hero h1 em, .journey-intro h1 em {
  color: var(--signal);
  font: italic 500 1.04em/.98 var(--serif);
  letter-spacing: -.06em;
}
:lang(zh-Hans) :is(.module-hero, .journey-intro) h1 { font-size: clamp(3.15rem, 5.7vw, 6.7rem); line-height: 1.05; }
:lang(zh-Hans) :is(.module-hero, .journey-intro) h1 em {
  font-family: "Songti SC", SimSun, "Noto Serif CJK SC", serif;
  font-style: normal;
  font-weight: 800;
  line-height: 1.1;
}
:is(.module-hero, .journey) :focus-visible { outline-color: var(--signal); }

.module-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr);
  gap: .8rem;
  padding-top: .85rem;
}
.module-hero {
  position: relative;
  min-height: clamp(32rem, 44vw, 42rem);
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: clamp(1.4rem, 3.35vw, 3.25rem);
  color: var(--white);
  background: var(--poster-ink);
  border-radius: .5rem 2.4rem .5rem .5rem;
}
.module-poster, .module-hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.module-poster { object-fit: cover; object-position: 30% center; z-index: -2; }
.module-hero::after {
  content: "";
  z-index: -1;
  background: linear-gradient(90deg, rgb(14 17 33 / .91), rgb(14 17 33 / .62) 43%, transparent 82%),
    linear-gradient(0deg, rgb(14 17 33 / .9), transparent 65%);
}
.module-hero-copy { max-width: 100%; }
.module-hero .hero-intro { margin-top: 1rem; max-width: 23rem; }
.module-doors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 1.13fr .87fr;
  gap: .8rem;
}
.module-door {
  display: grid;
  align-items: end;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(.8rem, 2.25vw, 1.85rem);
  border-radius: .5rem 1.65rem .5rem .5rem;
  text-decoration: none;
  transition: filter .2s ease;
}
.module-door:hover { filter: brightness(1.1); }
.module-door:hover strong { text-decoration: underline; }
.module-door div { max-width: 14rem; }
.module-door strong, .module-door div > span { display: block; }
.module-door strong { font-size: clamp(1.1rem, 2.6vw, 2.1rem); line-height: 1.08; letter-spacing: -.035em; }
.module-door div > span { margin-top: .35rem; font-size: clamp(.875rem, 1.2vw, 1rem); line-height: 1.35; }
.module-door img { position: absolute; z-index: -2; object-fit: cover; width: 100%; height: 100%; inset: 0; }
.module-door--brand { grid-column: 1 / -1; background: #e7c8b6; color: #201f32; }
.module-door--brand img { inset: 0 0 0 auto; width: 68%; object-position: center; }
.module-door--brand::after, .module-door--culture::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.module-door--brand::after { background: linear-gradient(90deg, #e7c8b6 19%, #e7c8b6 36%, transparent 49%); }
.module-door--brand div { max-width: 49%; }
.module-door--culture { background: #6d3c2b; color: var(--white); }
.module-door--culture img { object-position: 52% 56%; }
.module-door--culture::after { background: linear-gradient(0deg, #211628 1%, rgb(29 20 39 / .59) 41%, transparent 83%); }
.module-door--social { color: var(--white); background: #3b49a0; }
.module-door--social::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgb(29 31 86 / .97), rgb(29 31 86 / .57) 38%, transparent 70%);
}
.module-orbits {
  position: absolute;
  z-index: -1;
  width: 132%;
  aspect-ratio: 1.13;
  left: 3%;
  top: -24%;
  border: 1px solid #91a1e6;
  border-radius: 50%;
  rotate: -29deg;
}
.module-orbits::before, .module-orbits::after { content: ""; position: absolute; inset: 12%; border: 1px solid #91a1e6; border-radius: 50%; }
.module-orbits::after { inset: 25%; background: var(--signal); border: 0; }

.module-services { padding-block: clamp(3.15rem, 6vw, 6.4rem); }
.service-controls { display: flex; justify-content: end; gap: .45rem; margin: 0 0 .75rem; }
.service-controls button {
  padding: .42rem .78rem;
  min-height: 2.65rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid #777586;
  border-radius: .3rem;
  font-weight: 650;
  font-size: .875rem;
}
.service-controls button:hover:not(:disabled) { background: var(--ink); color: var(--white); }
.service-controls button:disabled { opacity: .42; cursor: default; }
.service-rail {
  display: flex;
  gap: .7rem;
  max-width: 100%;
  margin: 0;
  padding: 0 0 .85rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #9e91a1 transparent;
  list-style: none;
}
.service-rail > li {
  flex: 0 0 clamp(15rem, 28vw, 22rem);
  display: flex;
  flex-direction: column;
  gap: .7rem;
  align-items: start;
  padding: clamp(1rem, 2.05vw, 1.65rem);
  border-radius: .4rem 1.7rem .4rem .4rem;
  background: #eadfd5;
  color: #23243b;
  scroll-snap-align: start;
}
.service-rail > li:first-child { flex-basis: clamp(16rem, 31vw, 24rem); background: #fdc8ad; }
.service-rail > li:nth-child(2) { background: #e9a88d; }
.service-rail > li:nth-child(3) { background: #c8cef0; }
.service-rail > li:nth-child(4) { background: #dad6eb; }
.service-rail > li:nth-child(5) { background: #cddceb; }
.service-rail > li:nth-child(6) { background: #2a3359; color: var(--white); }
.service-rail h3 { font-size: clamp(1.25rem, 2.1vw, 1.8rem); line-height: 1.13; }
.service-rail p { flex: 1; }
.service-rail a { font-size: .88rem; font-weight: 700; }

.layout-modules {
  --examples-surface: #ede8e1;
  --examples-line: #a59aa7;
  --examples-hover: #e0d7cf;
  --examples-selected: #e3d9d1;
  --examples-key: #92301e;
  --examples-details: #514359;
}
.layout-journey {
  padding-top: 0;
  --examples-surface: #e6f4f9;
  --examples-line: #9dbdcc;
  --examples-hover: #d9edf6;
  --examples-selected: #d3e9f4;
  --examples-key: #164768;
  --examples-details: #3a5c70;
  --journey-orange: #ff8c50;
}
.layout-journey .site-header {
  background: rgb(245 252 252 / .82);
  backdrop-filter: blur(13px);
}
.layout-journey .header-inner { border-bottom-color: rgb(31 83 111 / .17); }
:is(.layout-modules, .layout-journey) .examples { background: var(--examples-surface); color: var(--ink); }
:is(.layout-modules, .layout-journey) .examples .eyebrow { color: var(--accent); }
:is(.layout-modules, .layout-journey) .example-tabs,
:is(.layout-modules, .layout-journey) .example-tabs button { border-color: var(--examples-line); }
:is(.layout-modules, .layout-journey) .example-tabs button { color: var(--ink); border-left-color: transparent; }
:is(.layout-modules, .layout-journey) .example-tabs button:hover { background: var(--examples-hover); }
:is(.layout-modules, .layout-journey) .example-tabs button[aria-selected="true"] {
  color: var(--examples-key);
  border-left-color: var(--accent);
  background: var(--examples-selected);
}
:is(.layout-modules, .layout-journey) .example-copy > div > p:not(.eyebrow) { color: var(--muted); }
:is(.layout-modules, .layout-journey) .deliverables { color: var(--examples-details); border-color: var(--examples-line); }
:is(.layout-modules, .layout-journey) .text-button:hover { color: var(--accent); }
:is(.layout-modules, .layout-journey) .examples :focus-visible { outline-color: var(--accent); }

.journey {
  display: grid;
  isolation: isolate;
  background: #dceef6;
  color: #142b46;
  --scene-height: 100svh;
}
.journey-art, .journey-flow, .journey-navigation { grid-area: 1 / 1; }
.journey-art {
  position: sticky;
  top: 0;
  align-self: start;
  height: var(--scene-height);
  overflow: hidden;
  background: #dceef6;
}
.journey-panorama, .journey-cover {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.journey-panorama { object-position: center calc(var(--journey-pan, .34) * 100%); }
.journey-cover {
  position: absolute;
  inset: 0;
  object-position: center 51%;
  opacity: var(--journey-cover, 1);
}
.journey-art::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: calc(1 - .68 * var(--journey-cover, 1));
  background: linear-gradient(90deg, rgb(237 250 253 / .92), rgb(237 250 253 / .77) 27%, rgb(237 250 253 / .10) 66%, transparent 82%),
    linear-gradient(0deg, rgb(235 250 255 / .52), transparent 56%);
}
.journey-flow { z-index: 1; pointer-events: none; }
.journey-chapter {
  min-height: var(--scene-height);
  display: grid;
  align-content: end;
  padding-block: clamp(3.75rem, 12svh, 8rem);
  padding-bottom: max(clamp(3.75rem, 12svh, 8rem), calc(var(--header-height) + 1.8rem));
}
.journey-intro {
  align-content: start;
  padding-top: max(calc(var(--header-height) + 2.9rem), 17svh);
}
.journey-copy { max-width: min(53vw, 42rem); pointer-events: auto; }
.journey-copy > .eyebrow { color: #245270; }
.journey-intro h1 em { color: #145788; }
.journey .button--accent { background: var(--journey-orange); }
.journey .button--accent:hover { background: #ffae77; }
.journey .version-link { color: #24466c; }
.journey .version-link:hover { color: #183554; }
.journey :focus-visible { outline-color: var(--accent); }
.layout-journey .contact { background: #dceef7; border-top: 1px solid #bad7e4; }
.layout-journey .contact .button--dark { background: var(--journey-orange); color: var(--poster-ink); }
.layout-journey .contact .button--dark:hover { background: #ffad96; }
.journey-copy > h2 { font-size: clamp(2.5rem, 5.1vw, 5.4rem); margin: .55rem 0 1rem; text-wrap: balance; }
.journey-copy > p:not(.eyebrow) { max-width: 29rem; color: #263e5a; font-size: clamp(1rem, 1.4vw, 1.18rem); }
.journey-copy .hero-intro { margin-top: 1rem; }
.journey-copy > .button { margin-top: 1.25rem; }
.journey-navigation {
  z-index: 2;
  position: sticky;
  top: calc(100svh - clamp(11rem, 25svh, 14.5rem));
  align-self: start;
  justify-self: end;
  margin-right: var(--gutter);
  display: grid;
  min-width: 7.5rem;
  border-inline-start: 1px solid #7ea7bd;
  background: rgb(242 251 252 / .84);
  padding: .15rem .48rem .15rem .65rem;
}
.journey-navigation a {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.1rem;
  padding-inline: .33rem;
  color: #2f4c6c;
  font-weight: 650;
  font-size: .84rem;
  text-decoration: none;
}
.journey-navigation a::before {
  content: "";
  width: .42rem;
  height: .42rem;
  flex: none;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.journey-navigation a[aria-current] { color: #132a45; }
.journey-navigation a[aria-current]::before { background: var(--journey-orange); border-color: var(--journey-orange); }
.journey-navigation a:hover > span { text-decoration: underline; }
.journey-support { padding-block: clamp(2.8rem, 5.9vw, 5.2rem); }
.journey-support h2 { margin-bottom: 1.25rem; font-size: clamp(2.1rem, 4.3vw, 3.5rem); }
.journey-support .service-list h3 { color: #365985; }

@media (max-width: 60rem) {
  .module-masthead { grid-template-columns: minmax(0, 1fr); }
  .module-hero { min-height: clamp(27rem, 66vw, 37rem); }
  .module-doors { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: minmax(8.8rem, auto); }
  .module-door--brand { grid-column: auto; }
  .module-door--brand div { max-width: 65%; }
}

@media (max-width: 55rem) {
  :is(.layout-modules, .layout-journey) .example-tabs button[aria-selected="true"] { border-bottom-color: var(--accent); }
}

@media (max-width: 45rem) {
  .module-masthead { padding-top: .45rem; gap: .55rem; }
  .module-hero { padding: 1.1rem; min-height: 26rem; border-top-right-radius: 1.4rem; }
  .module-poster { object-position: 47% center; }
  .module-hero h1, .journey-intro h1 { font-size: clamp(2.55rem, 11vw, 4rem); }
  :lang(zh-Hans) :is(.module-hero, .journey-intro) h1 { font-size: clamp(2.55rem, 10.65vw, 4rem); }
  .module-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(8.5rem, auto) minmax(7.5rem, auto); gap: .55rem; }
  .module-door--brand { grid-column: 1 / -1; }
  .module-door--brand img { width: 58%; }
  .module-door--brand div { max-width: 53%; }
  .service-rail > li, .service-rail > li:first-child { flex-basis: 84%; }
  .journey-chapter { padding-block: 3.15rem; }
  .journey-chapter:not(.journey-intro) { padding-bottom: calc(var(--header-height) + 2.4rem); }
  .journey-intro { align-content: end; padding-top: calc(var(--header-height) + 2.3rem); }
  .journey-copy { max-width: calc(100% - .6rem); }
  .journey-panorama { width: 128%; margin-inline-start: -14%; }
  .journey-cover {
    height: min(60svh, 31rem);
    object-position: 83% center;
    mask-image: linear-gradient(#000 83%, transparent 100%);
  }
  .journey-art::after {
    opacity: 1;
    background: linear-gradient(0deg, #effbfc 4%, rgb(239 251 252 / .95) 27%, rgb(239 251 252 / .64) 47%, transparent 69%);
  }
  .journey-navigation { top: calc(var(--header-height) + 1.05rem); min-width: 0; padding: .22rem; margin-right: .35rem; }
  .journey-navigation a { justify-content: center; padding: 0 .3rem; min-width: 1.6rem; min-height: 2rem; }
  .journey-navigation a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
