:root {
  color-scheme: light;
  --paper: #fbfbfb;
  --ink: #141414;
  --blue: #2858c5;
  --mint: #89d8b1;
  --yellow: #f2d66e;
  --red: #d44327;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #9c9d95 var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: sans-serif; overscroll-behavior-y: none; }
::selection { color: var(--paper); background: var(--blue); }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
svg { display: block; fill: currentColor; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.chrome { position: fixed; inset: 0 0 auto; height: 104px; display: flex; align-items: center; justify-content: space-between; padding: 0 3.1vw; z-index: 20; color: white; mix-blend-mode: difference; pointer-events: none; }
.home { width: 96px; min-height: 44px; display: grid; align-items: center; pointer-events: auto; }
.home svg { width: 100%; height: auto; }
.chrome-actions { display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); pointer-events: auto; }
.contact-jump { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 0; font-size: 14px; line-height: 1.4; text-decoration: none; }
.contact-jump svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.motion-toggle { display: grid; place-items: center; border: 1px solid currentColor; width: 46px; height: 46px; padding: 10px; border-radius: 50%; background: transparent; pointer-events: auto; }
.motion-toggle svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.motion-toggle .play-icon { display: none; }
.motion-toggle[aria-pressed="true"] .pause-icon { display: none; }
.motion-toggle[aria-pressed="true"] .play-icon { display: block; }
.scene { position: relative; width: 100%; overflow: hidden; isolation: isolate; }
.hero { height: 100svh; min-height: 480px; background: var(--paper); }
.hero-fallback { position: absolute; top: 50%; left: 2%; width: 96%; transform: translateY(-50%); }
.hero-fallback svg { width: 100%; height: auto; }
.thermal-canvas, #film { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; }
.scene.ready > canvas, .scene.ready > #film { opacity: 1; }
.scene.ready .hero-fallback, .scene.ready .film-fallback, .scene.ready .echo-fallback { visibility: hidden; }
.next { position: absolute; z-index: 2; bottom: 28px; left: calc(50% - 24px); width: 48px; height: 48px; display: grid; place-items: center; }
.next svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.spectrum { position: absolute; bottom: 47px; left: 3.1vw; width: 88px; height: 7px; background: linear-gradient(90deg, #2858c5, #559ec0 24%, #89d8b1 43%, #f2d66e 65%, #e7783b 82%, #9a2926); }
.matter { height: 100svh; min-height: 480px; background: #4b79bb; }
.film-fallback { position: absolute; inset: 0; display: grid; place-items: center; background: #2858c5; }
.film-fallback img { width: 100%; height: 100%; object-fit: cover; }
.film-wordmark { position: absolute; z-index: 1; width: 96%; height: auto; left: 2%; bottom: 1.5vw; color: var(--paper); mix-blend-mode: screen; }
.badge { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: 100svh; min-height: 480px; background: #050505; }
.badge-photo { display: flex; justify-content: center; align-items: stretch; margin: 0; min-width: 0; min-height: 0; height: 100%; overflow: hidden; background: linear-gradient(180deg, #a4a4a6, #b8b9bb 25%, #cdcdcf 50%, #e5e5e6 75%, #f8f7f8); }
/* Fill the vertical frame; only surplus neutral background can fall outside
   the column. The whole plaque and the image's bottom margin stay in view. */
.badge-photo img { display: block; flex: 0 0 auto; width: auto; height: 100%; max-width: none; object-fit: contain; mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.badge-cards { --badge-inset: clamp(24px, 3.5vw, 60px); --badge-gap: clamp(24px, 2vw, 36px); position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: var(--badge-gap); min-width: 0; min-height: 0; padding: var(--badge-inset); background: #050505; color: var(--paper); }
.badge-card { position: relative; display: grid; place-items: start center; flex: 0 0 auto; width: 100%; max-width: calc((max(480px, 100svh) - var(--badge-inset) * 2 - var(--badge-gap)) * .95); aspect-ratio: 1.9; padding: clamp(10px, 1vw, 18px); }
.badge-card--dark { background: #111; color: var(--paper); border: 1px solid #292929; }
.badge-card--light { background: var(--paper); color: var(--ink); }
.badge-card svg { width: 100%; height: auto; }
.badge-card-name { position: absolute; left: clamp(20px, 2.8vw, 48px); bottom: clamp(16px, 2vw, 32px); font-size: 14px; line-height: 1; font-weight: 500; letter-spacing: -.02em; }
.contact-card { text-align: left; text-decoration: none; }
.contact-card > svg[data-wordmark] { pointer-events: none; }
.contact-details { position: absolute; left: clamp(20px, 2.8vw, 48px); bottom: clamp(17px, 2vw, 32px); display: grid; gap: 7px; max-width: calc(100% - 80px); }
.contact-name { display: block; font-size: 14px; line-height: 1.3; font-weight: 500; }
.contact-value { display: block; font-size: clamp(14px, 1.2vw, 18px); line-height: 1.3; letter-spacing: -.02em; font-weight: 500; overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; }
.wechat-handle { width: 98px; padding: 0; border: 0; border-radius: 0; outline-offset: 4px; background: transparent; color: inherit; font-family: inherit; cursor: text; }
.wechat-handle::selection { background: var(--blue); color: var(--paper); }
.contact-copy { position: absolute; right: clamp(18px, 2.8vw, 48px); bottom: clamp(15px, 2vw, 32px); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 132px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: var(--paper); font-size: 14px; line-height: 1.3; cursor: pointer; transition: transform 120ms var(--ease-out), background-color 160ms var(--ease-out), color 160ms var(--ease-out); }
.contact-copy svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.contact-copy .copy-check { display: none; }
.contact-copy[data-state="copied"] .copy-symbol { display: none; }
.contact-copy[data-state="copied"] .copy-check { display: block; }
.contact-copy:disabled { cursor: progress; }
.contact-copy:active { transform: translateY(1px); }
.contact-copy:focus-visible, .wechat-handle:focus-visible { outline: 2px solid var(--blue); }
.contact-mail-arrow { position: absolute; right: clamp(22px, 2.8vw, 48px); bottom: clamp(22px, 2.2vw, 36px); width: 28px !important; height: 28px !important; fill: none; stroke: currentColor; stroke-width: 1.2; transition: transform 180ms var(--ease-out); }
.contact-email:focus-visible { outline-color: var(--mint); }
.contact-feedback { position: absolute; left: var(--badge-inset); right: var(--badge-inset); bottom: 3px; margin: 0; color: #deded9; font-size: 14px; line-height: 1.35; }
.echo { height: 116svh; min-height: 650px; background: var(--ink); color: var(--paper); }
.echo-fallback { position: absolute; inset: -2% -5%; display: flex; flex-direction: column; justify-content: center; }
.echo-fallback svg { flex: 0 0 auto; width: 110%; margin: -.8% 0; }
.echo-fallback svg:nth-child(even) { transform: translateX(-13%); }
.close { height: 32svh; min-height: 220px; background: var(--paper); display: grid; place-items: center; }
.close a { display: flex; align-items: center; gap: 40px; min-height: 80px; text-decoration: none; }
.close [data-wordmark] { width: clamp(150px, 21vw, 360px); }
.return-icon { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.25; }
.scene-nav { position: fixed; z-index: 20; right: 2.4vw; bottom: 29px; display: flex; color: white; mix-blend-mode: difference; }
.scene-nav a { width: 36px; height: 44px; display: grid; place-items: center; }
.scene-nav span { height: 5px; width: 5px; background: currentColor; border-radius: 50%; }
.scene-nav .current span { width: 18px; border-radius: 2px; }
.pointer { position: fixed; left: -80px; top: -80px; z-index: 30; pointer-events: none; width: 28px; height: 28px; border: 1px solid white; border-radius: 50%; mix-blend-mode: difference; display: none; }
.pointer span { position: absolute; inset: 11px; background: white; border-radius: 50%; }
@media (hover: hover) and (pointer: fine) {
  .pointer.visible { display: block; }
  body.has-pointer .thermal-canvas { cursor: none; }
  .motion-toggle:hover { background: #ffffff22; }
  .home:hover { opacity: .68; }
  .contact-jump:hover { opacity: .68; }
  .contact-copy:hover { background: var(--blue); }
  .contact-email:hover .contact-mail-arrow { transform: translate(3px, -3px); }
  .next:hover svg, .close a:hover .return-icon { transform: translateY(3px); }
  .close a:hover .return-icon { transform: translateY(-3px); }
  .next svg, .return-icon { transition: transform 180ms var(--ease-out); }
}
@media (max-width: 800px), (max-aspect-ratio: 3/4) {
  .badge { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; }
  .badge-photo { height: auto; aspect-ratio: 1122 / 1402; }
  .badge-photo img { width: 100%; height: 100%; max-width: 100%; mask-image: none; }
  .badge-cards { gap: 24px; padding: 40px 24px 44px; }
  #contact { scroll-margin-top: 84px; }
  .badge-card { max-width: none; padding: 12px; }
  .badge-card-name { left: 24px; bottom: 20px; }
  .contact-details { left: 24px; bottom: 20px; }
  .contact-copy { right: 20px; bottom: 17px; }
  .contact-mail-arrow { right: 24px; bottom: 24px; }
  .contact-feedback { left: 24px; right: 24px; bottom: 12px; }
}
@media (min-width: 801px) and (max-height: 620px) and (min-aspect-ratio: 3/4) {
  .badge-cards { padding-block: 94px 64px; }
  .badge-card { max-width: calc((max(480px, 100svh) - 158px - var(--badge-gap)) * .95); }
}
@media (max-width: 600px) {
  .chrome { height: 84px; padding: 0 22px; }
  .home { width: 88px; }
  .hero { min-height: 500px; }
  .hero-fallback { left: 7%; width: 86%; }
  .hero-fallback svg { height: 80vw; }
  .motion-toggle { width: 44px; height: 44px; }
  .chrome-actions { gap: 22px; }
  .contact-jump { gap: 6px; }
  .contact-details { gap: 5px; }
  .spectrum { left: 24px; width: 64px; bottom: 41px; height: 6px; }
  .next { bottom: 20px; }
  .scene-nav { right: 13px; bottom: 22px; }
  .scene-nav a { width: 27px; }
  .scene-nav .current span { width: 14px; }
  .matter { height: 100svh; min-height: 600px; }
  .film-wordmark { bottom: 5vw; width: 96%; }
  .echo { height: 100svh; min-height: 600px; }
  .close { min-height: 180px; }
  .close a { gap: 24px; }
}
@media (max-width: 360px) {
  .contact-details { left: 18px; bottom: 16px; }
  .contact-copy { right: 16px; bottom: 13px; min-width: 118px; padding-inline: 9px; gap: 7px; }
  .contact-mail-arrow { right: 18px; bottom: 21px; width: 23px !important; height: 23px !important; }
  .contact-email .contact-details { max-width: calc(100% - 66px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .next svg, .return-icon { transition: none; }
  .pointer { display: none !important; }
  body.has-pointer .thermal-canvas { cursor: auto; }
  .contact-copy, .contact-mail-arrow { transition: none; }
  .contact-copy:active, .contact-email:hover .contact-mail-arrow { transform: none; }
}
