@font-face {
  font-family: "MedCore WenKai";
  src: url("/assets/portal-a4ccc3de112f595b/fonts/wenkai-headings.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url("/assets/portal-a4ccc3de112f595b/fonts/spectral-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --brand-teal: #14b8a6;
  --bg: #fbfcfd;
  --panel: #fff;
  --text: #172638;
  --muted: #526373;
  --line: #d8e0e7;
  --blue: #2056be;
  --wash: #edf3fc;
  --accent: #0b756d;
  --ink: #0b1220;
  --primary: #2563eb;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b1220;
    --panel: #121e2e;
    --text: #edf3fb;
    --muted: #b1c1d1;
    --line: #344358;
    --blue: #9ebfff;
    --wash: #182a42;
    --accent: #60d8c9;
    --ink: #f2f7ff;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1220;
  --panel: #121e2e;
  --text: #edf3fb;
  --muted: #b1c1d1;
  --line: #344358;
  --blue: #9ebfff;
  --wash: #182a42;
  --accent: #60d8c9;
  --ink: #f2f7ff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.65 -apple-system,
    BlinkMacSystemFont,
    "Inter",
    "PingFang SC",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
summary,
select {
  cursor: pointer;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
.button {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  color: var(--text);
  padding: 9px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 600;
}
.button:hover,
button:hover {
  background: var(--wash);
  text-decoration: none;
}
button[hidden] {
  display: none;
}
.button.primary {
  background: var(--primary);
  color: white;
  border-color: transparent;
}
.button.primary:hover {
  background: #194fcb;
}
.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  background: var(--panel);
  padding: 10px;
  z-index: 20;
}
.skip:focus {
  top: 6px;
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
.shell {
  max-width: 1320px;
  width: calc(100% - clamp(32px, 9vw, 144px));
  margin: auto;
}
.top {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.topbar,
.tools,
nav,
.brand,
.actions,
.foot,
.foot > div {
  display: flex;
  align-items: center;
}
.topbar {
  min-height: 76px;
  gap: clamp(20px, 4vw, 66px);
}
.brand {
  color: var(--ink);
  font-size: 24px;
  letter-spacing: -1.25px;
  font-weight: 720;
  gap: 10px;
  line-height: 1;
}
.mark {
  height: 33px;
  width: 33px;
  background: var(--primary);
  border-radius: 9px;
  color: white;
  display: grid;
  place-items: center;
  font:
    italic bold 27px/1 Georgia,
    serif;
}
.brand:hover {
  text-decoration: none;
}
nav,
.tools {
  gap: clamp(14px, 2vw, 30px);
}
nav a,
nav summary,
.tools a {
  color: var(--text);
  font-size: 14px;
  font-weight: 550;
  white-space: nowrap;
}
.tools {
  margin-left: auto;
  gap: 13px;
}
.menu {
  position: relative;
}
.menu summary {
  list-style: none;
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu > div {
  display: grid;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  min-width: 200px;
  position: absolute;
  top: 38px;
  left: 0;
  z-index: 5;
  box-shadow: 0 10px 26px #13253b15;
}
.menu a {
  padding: 6px 10px;
}
.menu a:hover {
  background: var(--wash);
}
.tools .acct {
  border: 1px solid var(--line);
  padding: 5px 13px;
  border-radius: 20px;
}
.theme {
  border: 0;
  background: transparent;
  font-size: 20px;
  padding: 4px;
}
.lang {
  font-size: 13px !important;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 72px);
  align-items: center;
  padding: clamp(38px, 5vw, 76px) 0;
}
.herocopy h1,
.pagehead h1,
.tour h2,
.band h2 {
  color: var(--ink);
  margin: 0;
  line-height: 1.12;
  font-family: "Spectral", Georgia, "Songti SC", serif;
  font-weight: 400;
  letter-spacing: -0.025em;
}
.herocopy h1 {
  font-size: clamp(48px, 5.3vw, 86px);
  margin: 0.32em 0;
}
.herocopy h1 em {
  color: var(--blue);
  font-style: normal;
}
.kicker {
  font-weight: 650;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0;
}
.kicker > span {
  display: inline-block;
  height: 1px;
  width: 28px;
  background: var(--brand-teal);
  margin: 0 10px 4px 0;
}
.lead {
  max-width: 48ch;
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--muted);
  line-height: 1.75;
}
.actions {
  gap: 12px;
  flex-wrap: wrap;
  margin: 25px 0 10px;
}
.actions .button {
  padding: 11px 20px;
}
small,
.crumb {
  color: var(--muted);
  font-size: 13px;
}
.atlas {
  margin: 0;
  border: 1px solid #c2d2df;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: #e8f0f7;
}
.atlas img,
.tour img,
.screenshot img {
  display: block;
  width: 100%;
  height: auto;
}
.atlas figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #c7d5de;
  background: #eef3f7;
  color: #364b5c;
  padding: 9px 18px;
  font-size: 12px;
}
.atlas i {
  font-family: Georgia, serif;
}
.sectionhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.band {
  padding: 30px 0 50px;
  border-top: 1px solid var(--line);
}
.band h2,
.tour h2 {
  font-size: clamp(27px, 3vw, 45px);
}
.sectionhead > a {
  font-size: 14px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}
.card,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(18px, 2vw, 32px);
}
.card {
  position: relative;
  display: block;
  color: var(--text);
  transition: border-color 0.15s;
}
.card:hover {
  text-decoration: none;
  border-color: var(--blue);
}
.glyph {
  color: var(--blue);
  background: var(--wash);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 23px;
}
.card h3 {
  margin: 16px 0 3px;
  font-size: 21px;
}
.card p,
.tour p,
.reading p,
.panel p {
  color: var(--muted);
  margin: 0.5em 0 1em;
}
.arrow {
  position: absolute;
  top: 22px;
  right: 24px;
  color: var(--blue);
}
.tour {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 2fr;
  gap: 5%;
  padding: 36px;
  background: var(--wash);
  border-radius: 16px;
}
.tour h2 {
  margin: 12px 0;
}
.tour img,
.screenshot img {
  border-radius: 9px;
  border: 1px solid var(--line);
}
main {
  min-height: 70vh;
  padding-bottom: 64px;
}
footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}
.foot {
  justify-content: space-between;
  gap: 20px;
}
.foot > div {
  gap: 20px;
  flex-wrap: wrap;
}
.foot > div > a {
  font-size: 13px;
  color: var(--muted);
}
.pagehead {
  padding: 45px 0 16px;
}
.pagehead h1 {
  font-size: clamp(38px, 4vw, 62px);
  margin: 14px 0 8px;
}
.pagehead .lead {
  margin-top: 8px;
  max-width: 65ch;
}
.reading,
.stack {
  max-width: 860px;
}
.reading section {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.reading h2,
.panel h2 {
  font-size: 23px;
  line-height: 1.35;
  margin: 0 0 10px;
}
.reading p {
  max-width: 74ch;
}
.screenshot {
  max-width: 960px;
  margin: 32px auto;
}
.stack,
.accountgrid {
  display: grid;
  gap: 16px;
}
.accountgrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.authbox {
  max-width: 450px;
}
.authbox .button {
  width: 100%;
}
.apple {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--panel);
}
.apple:hover {
  background: var(--text);
  color: var(--panel);
}
.rule {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 14px 0 4px;
}
.panel form {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}
.panel form > button {
  justify-self: start;
}
.panel label {
  display: grid;
  gap: 5px;
  font-weight: 600;
  font-size: 14px;
}
.panel input,
.panel select,
.panel textarea {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 10px;
  background: var(--bg);
  width: 100%;
}
.panel textarea {
  min-height: 80px;
  resize: vertical;
}
.panel dl {
  margin: 13px 0;
}
.panel dt {
  color: var(--muted);
  font-size: 14px;
}
.panel dd {
  margin: 0 0 10px;
}
.panel .facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 36px;
}
.fold,
.item {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 14px;
}
.fold summary {
  color: var(--blue);
  font-weight: 550;
}
.fold code {
  display: block;
  margin-top: 12px;
}
.tag {
  color: var(--accent);
  font:
    600 13px ui-monospace,
    monospace;
}
.notice {
  padding: 12px 18px;
  background: var(--wash);
  border-left: 3px solid var(--blue);
}
code,
.panel {
  overflow-wrap: anywhere;
}
.panel ul {
  padding-left: 20px;
}
nav a[aria-current] {
  color: var(--blue);
}
@media (max-width: 830px) {
  .topbar {
    gap: 20px;
    flex-wrap: wrap;
    padding: 15px 0 7px;
  }
  .tools {
    margin-left: auto;
  }
  .topbar nav {
    order: 3;
    width: 100%;
    gap: 24px;
    min-height: 35px;
  }
  .hero {
    gap: 20px;
  }
  .herocopy h1 {
    font-size: clamp(40px, 5.7vw, 54px);
  }
  .foot {
    flex-wrap: wrap;
  }
}
@media (max-width: 650px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 30px 0;
    gap: 24px;
  }
  .herocopy h1 {
    font-size: clamp(43px, 10vw, 66px);
  }
  .atlas {
    max-width: 100%;
  }
  .cards,
  .tour,
  .accountgrid {
    grid-template-columns: minmax(0, 1fr);
  }
  .tour {
    padding: 22px;
    gap: 18px;
  }
  .actions {
    margin-top: 18px;
  }
  .card {
    padding: 20px;
  }
  .cards {
    gap: 12px;
  }
  .foot > div {
    gap: 12px;
  }
  .topbar nav {
    gap: clamp(9px, 3.5vw, 23px);
  }
  .navlink,
  nav summary {
    font-size: 13px !important;
  }
  .brand {
    font-size: 21px;
  }
  .tools {
    gap: 8px;
  }
  .sectionhead {
    flex-wrap: wrap;
  }
  .pagehead {
    padding-top: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

.tour a,
.reading p a,
.fold p a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.product {
  margin: 0;
  min-width: 0;
}
.product figcaption,
.screenshot figcaption {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}
.screenshot img {
  max-height: 540px;
  object-fit: contain;
}

.study-hero {
  grid-template-columns: minmax(0, 0.83fr) minmax(0, 1.17fr);
}
.study-hero h1 { font-size: clamp(42px, 4.2vw, 70px); }
.study-gallery { min-width: 0; }
.study-controls { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.study-controls a { display: inline-flex; align-items: center; min-height: 32px; font-weight: 600; }
.study-controls a[aria-current="step"] { text-decoration: underline; text-underline-offset: 0.3em; }
.study-film {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain; border: 1px solid var(--line); border-radius: 14px;
}
.study-frame { margin: 0; flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.study-frame a { display: block; }
.study-frame img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: contain; }
.study-frame figcaption {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap;
  gap: 0.25rem 0.75rem; padding: 0.6rem 1rem; border-top: 1px solid var(--line);
}
.home-release p { max-width: 70ch; }
@media (max-width: 830px) { .study-hero { grid-template-columns: minmax(0, 1fr); } }
.stack .panel > a:not(.button) { text-decoration: underline; text-underline-offset: 0.18em; }
@media (max-width: 650px) { .study-frame img { aspect-ratio: 4 / 3; } }
.herocopy h1,
.pagehead h1 {
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-weight: 550;
  line-height: 1.12;
  letter-spacing: -0.045em;
}
:lang(zh) :is(.band, .reading) h2 {
  font-family: "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.015em;
}
:lang(en) .reading h2 { font-family: "Spectral", Georgia, serif; font-weight: 400; }
.reading p { max-width: 68ch; font-size: 1.0625rem; line-height: 1.78; }
:lang(zh) .reading p { max-width: 38em; line-height: 1.9; }
.kicker { font-weight: 550; letter-spacing: 0.035em; }
