@font-face { font-family: "YY Serif"; src: url("fonts/serif-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "YY Sans"; src: url("fonts/sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "YY Sans"; src: url("fonts/sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #091438;
  --ink-soft: #101012;
  --mute: #5f5d60;
  --ground: #f6f2f0;
  --gold: #e8b830;
  --serif: "YY Serif", "Noto Serif SC", "Songti SC", serif;
  --sans: "YY Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--ground); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; text-underline-offset: .22em; }
:focus-visible { outline: 2px solid #8c6a12; outline-offset: 3px; border-radius: 4px; }
.cta:focus-visible, .nav-cta:focus-visible { border-radius: 999px; }
.chip a:focus-visible { border-radius: 10px; }
::selection { background: rgba(232, 184, 48, .32); color: var(--ink); }
ul, ol { list-style: none; }

.hero { container-type: inline-size; max-width: 1680px; margin-inline: auto; }
.stage {
  --u: calc(100cqw / 1280);
  position: relative;
  width: 100%;
  aspect-ratio: 1280 / 720;
  overflow: hidden;
  background:
    radial-gradient(40% 50% at 70% 40%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #f8f5f3 0%, var(--ground) 100%);
}
.stage > *, .masthead > * { position: absolute; }
.light {
  left: 56%; top: 8%; width: 44%; height: 92%;
  background: url(plates/light.jpg) center / 100% 100% no-repeat;
  mix-blend-mode: multiply; pointer-events: none;
  -webkit-mask: linear-gradient(90deg, transparent, #000 35%), linear-gradient(180deg, transparent, #000 30%);
  -webkit-mask-composite: source-in;
          mask: linear-gradient(90deg, transparent, #000 35%), linear-gradient(180deg, transparent, #000 30%);
          mask-composite: intersect;
}

/* masthead */
.masthead { position: absolute; inset: 0; pointer-events: none; }
.masthead a { pointer-events: auto; }
.brand { position: static; }
.logo { position: absolute; left: 3.75%; top: 4.31%; width: 4.84%; height: 7.78%; object-fit: contain; }
.wordmark {
  position: absolute; left: 9.38%; top: 5.56%; height: 4.17%;
  display: flex; align-items: center;
  font-size: calc(27 * var(--u)); font-weight: 500; letter-spacing: .04em; color: var(--ink);
}
.nav {
  left: 78.13%; top: 5.83%; width: 11.56%; height: 3.33%;
  display: flex; align-items: center; justify-content: space-between;
  font-size: calc(17 * var(--u)); font-weight: 500; color: var(--ink-soft);
}
.nav a { transition: color .2s; }
.nav a:hover { color: #8c6a12; }
.nav-cta {
  left: 90.85%; top: 5.6%; width: 4.5%; height: 3.7%;
  display: grid; place-items: center;
  border-radius: 999px; background: #08163c; color: #f4eeed;
  font-size: calc(16 * var(--u)); font-weight: 500;
}

/* copy */
.headline {
  left: 4.45%; top: 21.2%; width: 36%;
  font-family: var(--serif); font-weight: 600; white-space: nowrap;
  font-size: calc(73 * var(--u)); line-height: 1.32; letter-spacing: 0;
  color: var(--ink);
}
.subcopy {
  left: 4.45%; top: 62.5%; width: 37%; height: 3.06%;
  display: flex; align-items: center; white-space: nowrap;
  font-size: calc(16 * var(--u)); color: #5f5d60;
}
.cta {
  left: 4.45%; top: 70.14%; width: 11.72%; height: 6.81%;
  display: flex; align-items: center; justify-content: center; gap: .5em;
  border-radius: 999px; background: #081742; color: #f1f3f7;
  font-size: calc(17 * var(--u)); font-weight: 500;
  box-shadow: 0 calc(10 * var(--u)) calc(24 * var(--u)) rgba(30, 28, 36, .16);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 calc(14 * var(--u)) calc(28 * var(--u)) rgba(30, 28, 36, .22); }
.cta-link {
  left: 17.73%; top: 71.2%; height: 3.06%;
  display: flex; align-items: center; white-space: nowrap;
  font-size: calc(16 * var(--u)); font-weight: 500; color: #2a2c3c;
}
.cta-link:hover { color: #8c6a12; }

/* specimen */
.specimen { inset: 0; pointer-events: none; }
.tilt {
  position: absolute; left: 48.05%; top: 12.78%; width: 43.83%; height: 84.03%;
  transform-style: preserve-3d; will-change: transform;
}
.brain { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.sheen, .aura {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url("plates/brain.webp") center / contain no-repeat;
          mask: url("plates/brain.webp") center / contain no-repeat;
}
.sheen {
  background: radial-gradient(28% 22% at var(--gx, 30%) var(--gy, 25%), rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 70%);
  mix-blend-mode: soft-light; opacity: .9;
}
.aura {
  background: radial-gradient(30% 24% at 58% 38%, rgba(255, 196, 120, .55), rgba(255, 196, 120, 0) 70%);
  mix-blend-mode: screen; opacity: 0;
  animation: breathe 5.5s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: .15; } 50% { opacity: .75; } }

/* motion: entrance */
.headline .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.headline .ln > span { display: block; }
.js .headline .ln > span { transform: translateY(105%); transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.js .headline .ln:nth-child(2) > span { transition-delay: .1s; }
.js .headline .ln:nth-child(3) > span { transition-delay: .2s; }
.js .subcopy, .js .cta, .js .cta-link, .js .scroll-hint, .js .markers, .js .rule { opacity: 0; transition: opacity .9s ease .45s; }
.js .tilt { opacity: 0; filter: blur(14px); scale: .94; transition: opacity 1.3s ease .15s, filter 1.3s ease .15s, scale 1.6s cubic-bezier(.2, .8, .2, 1) .15s; }
.js .chip { opacity: 0; scale: .9; transition: opacity .6s ease, scale .6s cubic-bezier(.3, 1.4, .5, 1), box-shadow .3s, border-color .3s; }
.js .wire { scale: 0 1; transition: scale .7s cubic-bezier(.2, .8, .2, 1); }
.ready .headline .ln > span { transform: none; }
.ready .subcopy, .ready .cta, .ready .cta-link, .ready .scroll-hint, .ready .markers, .ready .rule { opacity: 1; }
.ready .tilt { opacity: 1; filter: none; scale: 1; }
.ready .chip { opacity: 1; scale: 1; }
.ready .wire { scale: 1 1; }
.ready .chip-time  { transition-delay: .9s; }  .ready .w1 { transition-delay: 1.05s; }
.ready .chip-pmid  { transition-delay: 1.0s; } .ready .w2 { transition-delay: 1.15s; }
.ready .chip-nct   { transition-delay: 1.1s; } .ready .w3 { transition-delay: 1.25s; }
.ready .chip-mhra  { transition-delay: 1.2s; } .ready .w4 { transition-delay: 1.35s; }
.ready .chip-count { transition-delay: 1.3s; } .ready .w5 { transition-delay: 1.45s; }

/* motion: idle float + hover on chips (translate is the float, transform is parallax) */
.chip { animation: float 7s ease-in-out infinite; will-change: transform; }
.chip-pmid  { animation-delay: -1.5s; animation-duration: 8s; }
.chip-nct   { animation-delay: -3s;   animation-duration: 6.5s; }
.chip-mhra  { animation-delay: -4.5s; animation-duration: 7.5s; }
.chip-count { animation-delay: -2.2s; animation-duration: 8.5s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 calc(-6 * var(--u)); } }
.chip:hover { border-color: rgba(232, 184, 48, .7); box-shadow: 0 calc(14 * var(--u)) calc(34 * var(--u)) rgba(70, 50, 60, .14), inset 0 1px 0 #fff; }
.chip a:hover span:last-child { color: #8c6a12; }

/* motion: markers light up with scroll progress */
.markers li { transition: color .35s; }
.markers li.lit { color: #8c6a12; }

/* motion: section reveals */
.js .reveal { opacity: 0; translate: 0 28px; transition: opacity .9s ease, translate .9s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; translate: 0 0; }
.js .issue-col:nth-child(2) { transition-delay: .12s; }
.js .issue-col:nth-child(3) { transition-delay: .24s; }

/* small screens: the stage becomes a column */
.wire {
  position: absolute; height: calc(14 * var(--u)); transform-origin: 0 0;
  border-top: 1px solid rgba(120, 112, 118, .42);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.w1 { left: 51.72%; top: 26.4%; width: 3.9%; transform: rotate(18deg); }
.w2 { left: 79.84%; top: 22.9%; width: 3.6%; transform: rotate(146deg); }
.w3 { left: 87.66%; top: 43.3%; width: 3.3%; transform: rotate(160deg); }
.w4 { left: 51.8%;  top: 65.3%; width: 4.4%; transform: rotate(-30deg); }
.w5 { left: 85.94%; top: 69.4%; width: 3.2%; transform: rotate(-150deg); }

/* chips */
.chips { inset: 0; pointer-events: none; }
.chip {
  position: absolute; pointer-events: auto;
  display: flex; flex-direction: column; justify-content: center; gap: calc(3 * var(--u));
  padding: 0 calc(12 * var(--u));
  border-radius: calc(10 * var(--u));
  background: rgba(250, 247, 246, .62);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 calc(8 * var(--u)) calc(24 * var(--u)) rgba(70, 50, 60, .08), inset 0 1px 0 rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  font-size: calc(13.5 * var(--u)); line-height: 1.35; color: var(--ink-soft);
  white-space: nowrap;
}
.chip a { display: contents; }
.chip span { display: block; }
.chip-time  { left: 45.47%; top: 20.28%; width: 6.25%;  height: 10.28%; }
.chip-pmid  { left: 79.84%; top: 15.97%; width: 10%;    height: 13.19%; }
.chip-nct   { left: 87.66%; top: 36.81%; width: 9.22%;  height: 11.81%; }
.chip-mhra  { left: 44.14%; top: 60%;    width: 7.66%;  height: 10.83%; }
.chip-count { left: 85.94%; top: 63.89%; width: 8.44%;  height: 11.11%; }
.donut {
  position: absolute; right: calc(12 * var(--u)); top: calc(14 * var(--u));
  width: calc(16 * var(--u)); height: calc(16 * var(--u)); border-radius: 50%;
  background: conic-gradient(#e8b830 0 40%, #f08aa0 0 62%, #7fb6e8 0 82%, #9be0c8 0);
  -webkit-mask: radial-gradient(circle, transparent 42%, #000 44%);
          mask: radial-gradient(circle, transparent 42%, #000 44%);
}

/* footer band of the first viewport */
.rule { left: 4.7%; right: 4.7%; top: 88.4%; height: 1px; background: rgba(9, 20, 56, .1); }
.scroll-hint {
  left: 4.69%; top: 90.28%; height: 3.47%;
  display: flex; align-items: center; gap: .35em; white-space: nowrap;
  font-size: calc(15 * var(--u)); color: var(--mute);
}
.scroll-hint .dash { display: inline-block; width: calc(70 * var(--u)); height: 1px; background: rgba(9, 20, 56, .18); margin-right: .6em; }
.scroll-hint b { font-weight: 500; color: #2a2c3c; font-size: calc(16 * var(--u)); }
/* sections */
.sec { padding: clamp(72px, 10vw, 152px) 4.45vw; border-top: 1px solid rgba(9, 20, 56, .08); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 4vw; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-title { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 4.4vw, 64px); line-height: 1.22; color: var(--ink); }
.sec-lede { max-width: 30em; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.85; color: #5d5b5d; }

.spec-list { border-top: 1px solid rgba(9, 20, 56, .12); }
.spec-list li {
  display: grid; grid-template-columns: 4.5em minmax(7em, 1fr) minmax(0, 2fr) 5em; align-items: baseline; gap: 2vw;
  padding: clamp(16px, 1.6vw, 22px) 0;
  border-bottom: 1px solid rgba(9, 20, 56, .08);
  color: #6c6a6c;
  transition: color .4s, background-color .4s;
}
.spec-list .n { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.spec-list .name { font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 2.2vw, 32px); color: #868286; transition: color .4s; }
.spec-list .focus { font-size: clamp(14px, 1.1vw, 16px); }
.spec-list time { justify-self: end; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.spec-list li.on, .spec-list li:hover { color: #4f4e4f; }
.spec-list li.on .name, .spec-list li:hover .name { color: var(--ink); }
.spec-list li.on .n { color: #8c6a12; }

.issue {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-radius: 18px;
  background: rgba(252, 250, 248, .7);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 30px 80px rgba(70, 50, 60, .08), inset 0 1px 0 #fff;
}
.issue-col { padding: clamp(24px, 2.6vw, 40px); }
.issue-col + .issue-col { border-left: 1px solid rgba(9, 20, 56, .07); }
.issue-col h3 { font-size: 13px; font-weight: 500; letter-spacing: .08em; color: #8c6a12; margin-bottom: 18px; }
.issue-col li { padding: 16px 0; border-top: 1px solid rgba(9, 20, 56, .07); }
.issue-col li a { display: block; font-size: clamp(15px, 1.15vw, 17px); font-weight: 500; line-height: 1.6; color: var(--ink); transition: color .2s; }
.issue-col li a:hover { color: #8c6a12; }
.issue-col .src { display: block; margin-top: 6px; font-size: 12.5px; color: #6c6a6c; font-variant-numeric: tabular-nums; }

.sec-lede b { font-weight: 600; color: var(--ink); }
.agent-card {
  padding: clamp(20px, 2.6vw, 36px); border-radius: 18px;
  background: rgba(252, 250, 248, .7);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 30px 80px rgba(70, 50, 60, .08), inset 0 1px 0 #fff;
}
.caps { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.caps button {
  height: 38px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  font: 500 14px/1 var(--sans); color: #4f4e4f;
  background: rgba(255, 255, 255, .6); border: 1px solid rgba(9, 20, 56, .12);
  transition: background-color .2s, color .2s, border-color .2s;
}
.caps button:hover { border-color: rgba(9, 20, 56, .3); color: var(--ink); }
.caps button[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #f1f3f7; }
.spec-pick { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 14px; color: #4f4e4f; }
.spec-pick[hidden] { display: none; }
.spec-pick select {
  height: 38px; padding: 0 12px; border-radius: 10px; font: 500 14px var(--sans); color: var(--ink);
  background: #fff; border: 1px solid rgba(9, 20, 56, .16);
}
.agent-card textarea {
  display: block; width: 100%; resize: vertical; min-height: 112px;
  padding: 14px 16px; border-radius: 12px; font: 400 16px/1.7 var(--sans); color: var(--ink);
  background: #fff; border: 1px solid rgba(9, 20, 56, .14);
}
.agent-card textarea::placeholder { color: #6c6a6c; }
.agent-card textarea:focus { outline: 2px solid #8c6a12; outline-offset: 1px; }
.agent-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 16px; }
.run {
  height: 48px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer;
  font: 500 16px/1 var(--sans); color: #f1f3f7; background: #081742;
  box-shadow: 0 10px 24px rgba(30, 28, 36, .16);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), opacity .2s;
}
.run:hover { transform: translateY(-2px); }
.run[disabled] { opacity: .55; cursor: progress; transform: none; }
.agent-note { font-size: 13px; color: #6c6a6c; }
.agent-note.err { color: #9b2c2c; }
.agent-out {
  margin-top: 22px; padding: 18px 20px; border-radius: 12px;
  background: #fff; border: 1px solid rgba(9, 20, 56, .08);
  white-space: pre-wrap; overflow-wrap: anywhere;
  font-size: 15px; line-height: 1.8; color: #2a2c3c;
  max-height: 560px; overflow: auto;
}
.agent-out a { color: #8c6a12; text-decoration: underline; }
.agent-out.busy { color: #6c6a6c; }

.star { padding-block: clamp(96px, 12vw, 180px); }
.star-line { max-width: 25em; text-wrap: balance; font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 3vw, 44px); line-height: 1.5; color: var(--ink); }
.star-line b { font-weight: 600; color: #8c6a12; }
.star-note { margin-top: 24px; font-size: 14px; color: #6c6a6c; }

.join { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 6vw; align-items: center; }
.steps { margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid rgba(9, 20, 56, .12); }
.steps li { display: flex; gap: 1.5em; align-items: baseline; padding: 18px 0; border-bottom: 1px solid rgba(9, 20, 56, .08); font-size: clamp(15px, 1.25vw, 18px); color: #2a2c3c; }
.steps .n { font-size: 13px; font-weight: 500; color: #8c6a12; font-variant-numeric: tabular-nums; }
.qr-card {
  justify-self: center; width: min(320px, 100%);
  padding: 24px 24px 18px; border-radius: 20px; text-align: center;
  background: rgba(252, 250, 248, .75);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 30px 80px rgba(70, 50, 60, .1), inset 0 1px 0 #fff;
}
.qr-card img { display: block; width: 100%; height: auto; border-radius: 8px; }
.qr-card figcaption { margin-top: 14px; font-size: 14px; color: #5d5b5d; }

.foot {
  display: flex; align-items: center; gap: 12px;
  padding: 32px 4.45vw 40px; border-top: 1px solid rgba(9, 20, 56, .08);
  font-size: 15px; font-weight: 500; color: var(--ink);
}
.foot img { width: 32px; height: auto; }
.foot-meta { margin-left: auto; font-size: 13px; font-weight: 400; color: #6c6a6c; }

.markers {
  left: 38.59%; top: 90.56%; width: 45.55%; height: 2.5%;
  display: flex; align-items: center; justify-content: space-between;
  font-size: calc(12.5 * var(--u)); font-weight: 500; color: #413d3e;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1024px) {
  .stage {
    --u: 1px;
    aspect-ratio: auto; display: flex; flex-direction: column;
    padding: 18px 20px 36px;
    background:
      radial-gradient(90% 40% at 100% 62%, rgba(240, 200, 176, .5), rgba(240, 200, 176, 0) 72%),
      linear-gradient(180deg, #f8f5f3 0%, var(--ground) 100%);
  }
  .stage > *, .masthead > * { position: static; }
  .masthead { position: static; display: flex; align-items: center; gap: 10px; pointer-events: auto; }
  .brand { display: flex; align-items: center; gap: 10px; }
  .logo { position: static; width: 38px; height: auto; }
  .wordmark { position: static; height: auto; font-size: 19px; }
  .nav { display: none; }
  .nav-cta { margin-left: auto; width: auto; height: 34px; padding: 0 16px; font-size: 14px; }
  .headline { width: auto; margin-top: 44px; font-size: clamp(36px, 11vw, 48px); line-height: 1.3; }
  .subcopy { width: auto; height: auto; margin-top: 16px; white-space: normal; font-size: 14px; line-height: 1.7; }
  .cta { width: auto; height: 50px; align-self: flex-start; margin-top: 26px; padding: 0 26px; font-size: 16px; }
  .cta-link { height: auto; margin-top: 16px; font-size: 15px; }
  .specimen { position: relative; inset: auto; height: min(92vw, 420px); margin-top: 28px; }
  .tilt { left: 0; top: 0; width: 100%; height: 100%; }
  .wire, .rule, .markers, .light { display: none; }
  .chips { position: static; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
  .chip { position: static; width: auto; height: auto; padding: 10px 12px; flex-direction: row; gap: 6px; font-size: 12.5px; border-radius: 10px; }
  .chip a { display: flex; gap: 6px; }
  .chip-pmid span:first-child { display: none; }
  .donut { position: static; width: 14px; height: 14px; align-self: center; }
  .scroll-hint { height: auto; margin-top: 28px; font-size: 13px; }
  .scroll-hint .dash { width: 32px; }
  .scroll-hint b { font-size: 13px; }

  .sec { padding: 72px 20px; }
  .sec-head { grid-template-columns: 1fr; gap: 18px; }
  .spec-list li { grid-template-columns: 2.4em 1fr auto; grid-template-areas: "n name time" ". focus focus"; row-gap: 4px; }
  .spec-list .n { grid-area: n; }
  .spec-list .name { grid-area: name; font-size: 24px; }
  .spec-list .focus { grid-area: focus; font-size: 13.5px; }
  .spec-list time { grid-area: time; font-size: 14px; }
  .issue { grid-template-columns: 1fr; }
  .issue-col + .issue-col { border-left: 0; border-top: 1px solid rgba(9, 20, 56, .07); }
  .join { grid-template-columns: 1fr; gap: 40px; }
  .foot { flex-wrap: wrap; padding: 28px 20px 36px; }
  .foot-meta { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .headline .ln > span, .js .tilt, .js .chip, .js .wire, .js .reveal,
  .js .subcopy, .js .cta, .js .cta-link, .js .scroll-hint, .js .markers, .js .rule {
    transform: none; opacity: 1; filter: none; scale: 1; translate: 0 0;
  }
}
