:root {
  color-scheme: light;
  --ink: #111b17;
  --muted: #52645c;
  --line: rgba(33, 52, 43, 0.1);
  --paper: #f7f5ec;
  --surface: rgba(255, 253, 246, 0.82);
  --surface-strong: #fffdf6;
  --leaf: #176a58;
  --leaf-soft: #e7f5ec;
  --copper: #b76d3e;
  --gold: #f7c46b;
  --blue-soft: #e7f3f7;
  --red: #b64d42;
  --shadow: 0 24px 70px rgba(42, 61, 51, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.website-shell {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #f7f5ec 0%, #f4f2e9 48%, #eef5ef 100%);
}

.website-hero {
  position: relative;
  min-height: 820px;
  padding: 22px clamp(18px, 4vw, 58px) 54px;
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.98) 0%, rgba(255, 250, 240, 0.9) 36%, rgba(255, 250, 240, 0.42) 68%, rgba(255, 250, 240, 0.78) 100%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.54), rgba(245, 246, 237, 0.92)),
    url("/brand/baiboon-temple-wide.png");
  background-position: center;
  background-size: cover;
  isolation: isolate;
  overflow: hidden;
}

.website-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(16, 28, 23, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 28, 23, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, black 0%, transparent 78%);
  opacity: 0.72;
}

.website-nav,
.website-hero-inner,
.website-scroll-cue,
.website-section {
  position: relative;
  z-index: 2;
}

.website-nav {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1260px;
  min-height: 48px;
  margin: 0 auto;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #17221d;
  font-weight: 850;
  letter-spacing: 0;
}

.website-brand {
  min-height: 42px;
  border-radius: 999px;
  padding: 3px 12px 3px 3px;
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(14px);
}

.brand-symbol {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(28, 38, 32, 0.18);
  border-radius: 9px;
  background: #17221d;
  color: #fff8e8;
  box-shadow: 0 12px 32px rgba(23, 34, 29, 0.14);
}

.website-links,
.website-nav-actions,
.website-actions,
.website-proof-line,
.console-topline,
.console-question,
.console-result,
.console-route-row,
.floating-card,
.chat-bubble.bot,
.review-row {
  display: flex;
  align-items: center;
}

.website-links {
  gap: clamp(16px, 3vw, 36px);
  color: #4f6158;
  font-size: 0.9rem;
  font-weight: 850;
}

.website-links a:hover {
  color: var(--leaf);
}

.website-nav-actions {
  gap: 10px;
}

.language-switcher {
  position: relative;
  z-index: 20;
}

.language-trigger,
.language-option {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(17, 27, 23, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #40564c;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
  backdrop-filter: blur(14px);
}

.language-trigger {
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  box-shadow: 0 14px 36px rgba(38, 60, 49, 0.06);
}

.language-trigger:hover,
.language-trigger:focus-visible,
.language-option:hover,
.language-option:focus-visible {
  background: rgba(23, 106, 88, 0.08);
  color: var(--leaf);
  outline: none;
}

.language-switcher.is-open .language-trigger,
.language-option.active,
.language-option[aria-selected="true"] {
  background: var(--leaf);
  color: #fffdf4;
  box-shadow: 0 10px 22px rgba(23, 106, 88, 0.18);
}

.language-flag {
  display: inline-flex;
  align-items: center;
  min-width: 1.35em;
  font-size: 1rem;
  line-height: 1;
}

.language-current {
  font-size: 0.82rem;
}

.language-chevron {
  font-size: 0.9rem;
  transform: translateY(-1px);
  transition: transform 160ms ease;
}

.language-switcher.is-open .language-chevron {
  transform: rotate(180deg) translateY(1px);
}

.language-menu {
  position: absolute;
  z-index: 45;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  gap: 5px;
  min-width: 188px;
  border: 1px solid rgba(17, 27, 23, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 6px;
  box-shadow: 0 22px 52px rgba(38, 60, 49, 0.16);
  backdrop-filter: blur(18px);
}

.language-menu[hidden] {
  display: none;
}

.language-option {
  gap: 10px;
  width: 100%;
  min-height: 36px;
  justify-content: flex-start;
  border-color: transparent;
  border-radius: 7px;
  padding: 0 10px;
  font-size: 0.82rem;
  box-shadow: none;
}

.website-domain,
.website-chat-link,
.website-liff-link,
.launch-domain,
.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 900;
}

.website-domain,
.launch-domain {
  border: 1px solid rgba(23, 106, 88, 0.16);
  background: rgba(231, 245, 236, 0.74);
  color: var(--leaf);
  font-size: 0.88rem;
  box-shadow: 0 14px 36px rgba(38, 60, 49, 0.06);
}

.website-chat-link,
.primary-action {
  border: 1px solid rgba(23, 106, 88, 0.24);
  background: var(--leaf);
  color: #fffdf4;
  box-shadow: 0 16px 38px rgba(23, 106, 88, 0.24);
}

.website-liff-link,
.secondary-action {
  border: 1px solid rgba(17, 27, 23, 0.14);
  background: rgba(255, 255, 255, 0.68);
  color: #25322b;
  box-shadow: 0 14px 36px rgba(38, 60, 49, 0.08);
  backdrop-filter: blur(14px);
}

.website-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 0.88fr);
  gap: clamp(20px, 5vw, 70px);
  align-items: center;
  max-width: 1260px;
  min-height: 650px;
  margin: 0 auto;
  padding: 48px 0 8px;
}

.website-copy h1 {
  max-width: 780px;
  margin: 0 0 clamp(24px, 2.8vw, 42px);
  font-size: clamp(5.1rem, 11.4vw, 10.6rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 16px 40px rgba(255, 250, 240, 0.68);
}

.website-copy p {
  max-width: 720px;
  margin: 0 0 28px;
  color: #2d4037;
  font-size: clamp(1.05rem, 1.65vw, 1.32rem);
  line-height: 1.72;
  font-weight: 680;
}

:lang(en) .website-copy p,
:lang(zh-Hant-HK) .website-copy p,
:lang(zh-Hans-CN) .website-copy p,
:lang(ja) .website-copy p,
:lang(en) .website-section-copy p,
:lang(zh-Hant-HK) .website-section-copy p,
:lang(zh-Hans-CN) .website-section-copy p,
:lang(ja) .website-section-copy p,
:lang(en) .capability-copy p,
:lang(zh-Hant-HK) .capability-copy p,
:lang(zh-Hans-CN) .capability-copy p,
:lang(ja) .capability-copy p {
  font-weight: 620;
}

:lang(en) .website-copy h1,
:lang(zh-Hant-HK) .website-copy h1,
:lang(zh-Hans-CN) .website-copy h1,
:lang(ja) .website-copy h1 {
  font-size: clamp(4.2rem, 9.2vw, 8.5rem);
}

.website-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.primary-action,
.secondary-action {
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
}

.arrow {
  font-size: 1.45rem;
  line-height: 1;
}

.website-proof-line {
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
  color: #40564c;
  font-size: 0.88rem;
  font-weight: 900;
}

.website-proof-line span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.website-proof-line span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 5px rgba(23, 106, 88, 0.1);
}

.website-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(270px, 0.86fr) minmax(300px, 0.78fr);
  gap: clamp(18px, 3vw, 42px);
  min-height: 620px;
  align-items: center;
  justify-items: stretch;
  perspective: 1000px;
}

.website-stage::before {
  content: "";
  position: absolute;
  bottom: 28px;
  width: min(92%, 560px);
  height: 150px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(33, 60, 49, 0.18), transparent 62%),
    radial-gradient(circle at 50% 60%, rgba(255, 191, 103, 0.24), transparent 72%);
  filter: blur(12px);
  opacity: 0.72;
  animation: stageGlow 7s ease-in-out infinite;
}

.stage-console {
  position: relative;
  z-index: 2;
  justify-self: start;
  width: min(100%, 420px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.82);
  box-shadow: 0 28px 90px rgba(46, 61, 52, 0.2);
  backdrop-filter: blur(18px);
  padding: 18px;
  transform: rotateY(-12deg) rotateX(4deg) translateZ(20px);
  animation: consoleFloat 5.8s ease-in-out infinite;
}

.console-topline {
  gap: 10px;
  color: #597067;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.console-topline span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2f8f67;
  box-shadow: 0 0 0 6px rgba(47, 143, 103, 0.12);
}

.console-question,
.console-result {
  gap: 10px;
  margin-top: 14px;
  border-radius: 8px;
  padding: 14px;
}

.console-question {
  border: 1px solid var(--line);
  background: #fff;
  color: #15231d;
  font-size: 1.02rem;
  line-height: 1.45;
}

.console-result {
  background: #eaf7ef;
  color: #234034;
}

.console-result span:not(.mini-icon) {
  display: block;
  color: #2f6c55;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.console-result p {
  margin: 2px 0 0;
  font-size: 0.94rem;
  font-weight: 780;
  line-height: 1.5;
}

.console-route-row {
  gap: 8px;
  margin-top: 12px;
}

.mini-icon,
.research-icon,
.capability-icon,
.line-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--leaf-soft);
  color: var(--leaf);
  font-weight: 950;
}

.mini-icon {
  width: 32px;
  height: 32px;
}

.mini-icon.check {
  background: var(--leaf);
  color: #fff;
}

.character-plate {
  position: relative;
  z-index: 3;
  display: grid;
  justify-self: end;
  width: min(100%, 430px);
  min-height: 620px;
  place-items: end center;
  border-radius: 8px;
  background: radial-gradient(circle at 52% 38%, rgba(255, 214, 136, 0.48), transparent 38%);
}

.website-character {
  position: relative;
  width: min(100%, 400px);
  max-height: 720px;
  object-fit: contain;
  filter: drop-shadow(0 36px 58px rgba(55, 55, 35, 0.24));
  animation: characterFloat 4.8s ease-in-out infinite;
}

.floating-card {
  position: absolute;
  z-index: 4;
  min-height: 46px;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.82);
  color: #1d2d26;
  padding: 0 14px;
  font-size: 0.86rem;
  font-weight: 900;
  box-shadow: 0 22px 58px rgba(43, 64, 52, 0.14);
  backdrop-filter: blur(16px);
  animation: cardFloat 4.4s ease-in-out infinite;
}

.floating-card.source {
  top: 8%;
  left: 30%;
}

.floating-card.citation {
  right: 1%;
  top: 16%;
  animation-delay: -1.4s;
}

.floating-card.gate {
  left: 22%;
  bottom: 9%;
  animation-delay: -2.2s;
}

.risk-badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.risk-badge.green {
  background: #e4f6ea;
  color: #176a58;
}

.risk-badge.yellow {
  background: #fff3d4;
  color: #8a550e;
}

.risk-badge.red {
  background: #ffe4df;
  color: #9b332c;
}

.risk-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.risk-dot.green {
  background: #2f8f67;
}

.website-scroll-cue {
  display: grid;
  grid-template-columns: 46px minmax(0, 620px);
  gap: 14px;
  align-items: center;
  max-width: 1260px;
  margin: -10px auto 0;
  color: #33483e;
  font-size: 0.95rem;
  font-weight: 820;
}

.website-scroll-cue span {
  height: 2px;
  background: var(--leaf);
}

.website-scroll-cue p {
  margin: 0;
}

.website-section {
  max-width: 1260px;
  margin: 0 auto;
  padding: 76px clamp(18px, 4vw, 28px);
}

.experience-section,
.trust-motion-section,
.launch-section {
  display: grid;
  gap: 28px;
}

.experience-section {
  grid-template-columns: minmax(0, 0.68fr) minmax(420px, 0.9fr);
  align-items: end;
}

.website-section-copy h2,
.launch-section h2 {
  margin: 0 0 14px;
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.website-section-copy p,
.launch-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.experience-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.experience-card {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 249, 233, 0.92)),
    var(--surface-strong);
  padding: 20px;
  box-shadow: 0 24px 54px rgba(42, 61, 51, 0.08);
  animation: liftIn 0.8s ease both;
}

.experience-card:nth-child(2) {
  animation-delay: 0.16s;
}

.experience-card:nth-child(3) {
  animation-delay: 0.32s;
}

.experience-card span {
  color: var(--copper);
  font-size: 0.82rem;
  font-weight: 950;
}

.experience-card h3 {
  margin: 96px 0 10px;
  font-size: 1.35rem;
}

.experience-card p {
  margin: 0;
  color: #5a6b62;
}

.trust-motion-section {
  grid-template-columns: minmax(420px, 0.86fr) minmax(0, 0.7fr);
  align-items: center;
}

.research-board {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(246, 249, 241, 0.94)),
    var(--surface-strong);
  box-shadow: var(--shadow);
  padding: 18px;
}

.research-board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 0 2px 16px;
}

.research-board-header span,
.research-query span,
.research-evidence span {
  display: block;
  color: #607269;
  font-size: 0.8rem;
  font-weight: 900;
}

.research-board-header strong {
  display: block;
  margin-top: 4px;
  color: #15231d;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.35;
}

.line-icon {
  width: 46px;
  height: 46px;
  background: #fff3d9;
  color: var(--copper);
  font-size: 1.35rem;
}

.research-query,
.research-evidence,
.research-route {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 44px rgba(42, 61, 51, 0.07);
}

.research-query,
.research-evidence {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 13px 14px;
  align-items: start;
  padding: 18px;
}

.research-icon {
  width: 46px;
  height: 46px;
  grid-row: span 3;
}

.research-query strong,
.research-evidence strong {
  color: #14231d;
  font-size: clamp(1.12rem, 1.6vw, 1.42rem);
  line-height: 1.38;
}

.research-evidence {
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 216, 128, 0.3), transparent 28%),
    rgba(255, 255, 255, 0.82);
}

.research-evidence p {
  margin: 0;
  color: #596b62;
  font-size: 0.95rem;
  font-weight: 760;
  line-height: 1.55;
}

.research-routes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.research-route {
  display: flex;
  min-height: 176px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 18px;
}

.research-route.green {
  box-shadow: inset 0 4px 0 #2f8f67, 0 18px 44px rgba(42, 61, 51, 0.07);
}

.research-route.yellow {
  box-shadow: inset 0 4px 0 #c98623, 0 18px 44px rgba(42, 61, 51, 0.07);
}

.research-route.red {
  box-shadow: inset 0 4px 0 var(--red), 0 18px 44px rgba(42, 61, 51, 0.07);
}

.research-route h3 {
  margin: 22px 0 8px;
  color: #15231d;
  font-size: clamp(1.08rem, 1.5vw, 1.34rem);
  line-height: 1.24;
}

.research-route p {
  margin: 0;
  color: #5a6b62;
  font-size: 0.92rem;
  line-height: 1.55;
}

.capability-section {
  display: grid;
  gap: 18px;
}

.capability-block {
  display: grid;
  min-height: 320px;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.58fr);
  gap: clamp(22px, 4vw, 58px);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.76);
  box-shadow: 0 24px 70px rgba(42, 61, 51, 0.08);
  padding: clamp(22px, 4vw, 38px);
  overflow: hidden;
}

.capability-block.line {
  background:
    radial-gradient(circle at 88% 12%, rgba(33, 137, 103, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(235, 247, 239, 0.84));
}

.capability-block.library {
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 196, 103, 0.28), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 249, 233, 0.86));
}

.capability-block.review {
  background:
    radial-gradient(circle at 88% 24%, rgba(96, 151, 189, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(242, 247, 246, 0.86));
}

.capability-copy {
  display: grid;
  justify-items: start;
}

.capability-icon {
  width: 52px;
  height: 52px;
}

.capability-copy span {
  margin-top: 22px;
  color: #607269;
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.capability-copy h2 {
  max-width: 760px;
  margin: 10px 0 14px;
  color: var(--ink);
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.capability-copy p {
  max-width: 670px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.72;
}

.capability-preview {
  position: relative;
  display: grid;
  gap: 12px;
}

.chat-bubble {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #17221d;
  padding: 16px;
  box-shadow: 0 18px 44px rgba(42, 61, 51, 0.08);
  font-weight: 860;
  line-height: 1.45;
}

.chat-bubble.user {
  margin-left: 28px;
}

.chat-bubble.bot {
  gap: 10px;
  align-items: flex-start;
  margin-right: 24px;
  background: var(--leaf-soft);
  color: #234034;
}

.chat-bubble.meta {
  justify-self: end;
  background: #fff6dd;
  color: #8a550e;
  font-size: 0.86rem;
  text-transform: uppercase;
}

.library-preview div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 15px;
  box-shadow: 0 18px 44px rgba(42, 61, 51, 0.07);
}

.library-preview strong {
  color: #15231d;
}

.library-preview span {
  border-radius: 6px;
  background: var(--leaf-soft);
  color: var(--leaf);
  padding: 6px 8px;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.review-preview {
  align-content: center;
}

.review-row {
  min-height: 62px;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: 12px 14px;
  box-shadow: 0 18px 44px rgba(42, 61, 51, 0.07);
  color: #15231d;
  font-size: 1.08rem;
  font-weight: 920;
}

.launch-section {
  grid-template-columns: minmax(0, 0.78fr) auto auto;
  align-items: center;
  margin-bottom: 50px;
  border-top: 1px solid rgba(33, 52, 43, 0.12);
}

@keyframes characterFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotateZ(-1deg);
  }
  50% {
    transform: translate3d(0, -18px, 0) rotateZ(1deg);
  }
}

@keyframes cardFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -12px, 24px);
  }
}

@keyframes consoleFloat {
  0%,
  100% {
    transform: rotateY(-12deg) rotateX(4deg) translate3d(0, 0, 20px);
  }
  50% {
    transform: rotateY(-8deg) rotateX(6deg) translate3d(0, -12px, 34px);
  }
}

@keyframes stageGlow {
  0%,
  100% {
    transform: scale(0.98);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.94;
  }
}

@keyframes liftIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1040px) {
  .website-hero-inner,
  .experience-section,
  .trust-motion-section,
  .capability-block,
  .launch-section {
    grid-template-columns: 1fr;
  }

  .website-stage {
    grid-template-columns: minmax(250px, 0.92fr) minmax(260px, 0.72fr);
    gap: clamp(14px, 3vw, 28px);
    min-height: 660px;
  }

  .website-character {
    width: min(100%, 360px);
  }

  .experience-rail {
    grid-template-columns: 1fr;
  }

  .experience-card {
    min-height: 190px;
  }

  .experience-card h3 {
    margin-top: 54px;
  }
}

@media (max-width: 1180px) {
  .website-nav {
    align-items: flex-start;
  }

  .website-nav-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 540px;
  }

  .language-switcher {
    order: 3;
  }
}

@media (max-width: 980px) {
  .website-links {
    display: none;
  }
}

@media (max-width: 780px) {
  .website-hero {
    min-height: auto;
    padding: 16px;
    background-position: 58% center;
  }

  .website-nav {
    align-items: flex-start;
    gap: 12px;
  }

  .website-links {
    display: none;
  }

  .website-liff-link,
  .website-chat-link {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .website-domain {
    display: none;
  }

  .website-nav-actions {
    gap: 7px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .language-switcher {
    order: 3;
    width: 100%;
  }

  .language-trigger {
    width: 100%;
    justify-content: space-between;
  }

  .language-menu {
    right: auto;
    left: 0;
    width: min(100%, 260px);
  }

  .website-hero-inner {
    min-height: auto;
    gap: 18px;
    padding: 34px 0 18px;
  }

  .website-copy h1 {
    margin-top: 18px;
    margin-bottom: 24px;
    font-size: clamp(4.4rem, 19vw, 5.9rem);
    line-height: 1;
  }

  :lang(en) .website-copy h1,
  :lang(zh-Hant-HK) .website-copy h1,
  :lang(zh-Hans-CN) .website-copy h1,
  :lang(ja) .website-copy h1 {
    font-size: clamp(3.5rem, 16vw, 4.8rem);
  }

  .website-copy p {
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.58;
  }

  .website-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 360px;
  }

  .website-proof-line {
    gap: 8px 12px;
    max-width: 360px;
    font-size: 0.82rem;
  }

  .website-stage {
    grid-template-columns: minmax(0, 1fr);
    min-height: 520px;
  }

  .stage-console {
    justify-self: start;
    margin-top: 8px;
    width: min(90%, 330px);
    padding: 12px;
  }

  .console-question,
  .console-result {
    padding: 12px;
    font-size: 0.9rem;
  }

  .character-plate {
    width: 78%;
    min-height: 455px;
    margin-left: auto;
    margin-top: -48px;
  }

  .website-character {
    width: min(100%, 270px);
  }

  .floating-card {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.76rem;
  }

  .floating-card.source {
    top: 11%;
    left: 0;
  }

  .floating-card.citation {
    right: 0;
    top: 42%;
  }

  .floating-card.gate {
    left: 0;
    bottom: 20%;
  }

  .website-scroll-cue {
    grid-template-columns: 1fr;
    margin: 0 auto;
    padding-bottom: 8px;
  }

  .website-section {
    padding: 48px 16px;
  }

  .research-board {
    padding: 12px;
  }

  .research-board-header {
    align-items: flex-start;
  }

  .research-query,
  .research-evidence {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .research-icon {
    grid-row: auto;
  }

  .research-routes {
    grid-template-columns: 1fr;
  }

  .research-route {
    min-height: 132px;
  }

  .capability-section {
    gap: 14px;
  }

  .capability-block {
    min-height: auto;
    padding: 20px;
  }

  .capability-copy h2 {
    font-size: clamp(2rem, 10vw, 3.25rem);
  }

  .capability-copy span {
    margin-top: 18px;
  }

  .launch-domain {
    justify-self: start;
  }

  .library-preview div {
    grid-template-columns: 1fr;
  }

  .library-preview span {
    justify-self: start;
  }

  .chat-bubble.user,
  .chat-bubble.bot {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 520px) {
  .website-nav {
    flex-wrap: wrap;
  }

  .website-nav-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .website-stage {
    display: none;
  }

  .website-copy h1 {
    font-size: clamp(4.1rem, 24vw, 5.25rem);
    line-height: 1;
  }

  :lang(en) .website-copy h1,
  :lang(zh-Hant-HK) .website-copy h1,
  :lang(zh-Hans-CN) .website-copy h1,
  :lang(ja) .website-copy h1 {
    font-size: clamp(3.1rem, 18vw, 4.2rem);
  }
}
