:root { color-scheme: light; --paper: #fafafa; --ink: #080808; }
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; }
body { background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; overflow: hidden; }
::selection { background: #080808; color: #fafafa; }
.hero { position: relative; isolation: isolate; width: 100%; height: 100vh; height: 100svh; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(circle, #d8d8d8 1px, transparent 1px); background-size: 36px 36px; background-position: 18px 18px; opacity: .5; }
.masthead, .colophon { position: absolute; left: 4.2%; right: 4.2%; display: flex; align-items: center; justify-content: space-between; }
.masthead { top: 34px; z-index: 3; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); min-height: 44px; background: var(--paper); }
.hero .masthead, .hero .colophon { left: max(4.2%, env(safe-area-inset-left)); right: max(4.2%, env(safe-area-inset-right)); }
.hero .masthead { top: calc(34px + env(safe-area-inset-top)); }
.wordmark { position: relative; justify-self: start; color: inherit; text-decoration: none; font-weight: 800; letter-spacing: -2px; font-size: 31px; }
.hero .wordmark { font-family: 'Arial Black', Arial, Helvetica, sans-serif; font-weight: 900; }
.wordmark-dot { display: inline-block; vertical-align: top; font-size: 10px; letter-spacing: 0; margin: 5px 0 0 5px; }
.wordmark:focus-visible { outline: 1px solid; outline-offset: 7px; }
.colophon { font-family: 'Courier New', monospace; font-size: 10px; line-height: 1.65; letter-spacing: 1px; }
[hidden] { display: none !important; }
.primary-nav { justify-self: center; }
.nav-list { display: flex; align-items: center; gap: clamp(26px, 3.3vw, 56px); list-style: none; margin: 0; padding: 0; }
.nav-link { position: relative; display: block; padding: 13px 2px; color: #777; text-decoration: none; font-size: 13px; line-height: 18px; letter-spacing: .12em; white-space: nowrap; }
.nav-link::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 16px; height: 1px; background: #080808; transform: translateX(-50%) scaleX(0); transform-origin: center; transition: transform 180ms ease; }
.nav-link:hover, .nav-link[aria-current="page"] { color: #080808; }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: translateX(-50%) scaleX(1); }
.nav-link:focus-visible, .login-button:focus-visible, .avatar-button:focus-visible { outline: 1px solid #080808; outline-offset: 4px; }
.account-controls { position: relative; justify-self: end; display: flex; align-items: center; }
.login-button { display: inline-flex; align-items: center; justify-content: center; gap: 15px; min-height: 34px; padding: 6px 13px; border: 1px solid #bcbcbc; border-radius: 0; background: transparent; color: #080808; font: inherit; font-size: 12px; letter-spacing: .1em; cursor: pointer; }
.login-button:hover { background: #080808; color: #fff; border-color: #080808; }
.avatar-button { position: relative; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid #080808; border-radius: 50%; background: #080808; color: #fff; overflow: hidden; cursor: pointer; }
.user-avatar { position: absolute; inset: 0; display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: cover; object-position: center; filter: none; }
.avatar-fallback { font-size: 13px; line-height: 1; font-weight: 600; }
.account-menu { position: absolute; right: 0; top: calc(100% + 14px); width: 188px; padding: 17px; border: 1px solid #d8d8d8; background: var(--paper); }
.account-menu > p { margin: 0 0 14px; font-size: 12px; overflow-wrap: anywhere; }
.account-menu > a, .account-menu > button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; border: 0; border-top: 1px solid #ddd; padding: 12px 0; background: transparent; color: #777; font: inherit; font-size: 12px; text-decoration: none; cursor: pointer; }
.account-menu > a:hover, .account-menu > button:hover { color: #080808; }
.account-menu > a:focus-visible, .account-menu > button:focus-visible { outline: 1px solid #080808; outline-offset: 3px; }
.account-menu > button:disabled { opacity: .5; cursor: wait; }
.account-menu > .account-error { margin: 12px 0 0; color: #555; font-size: 10px; line-height: 1.5; }
/* The anchor stays fixed; only its inner disc receives animated transforms. */
.hero-touch-surface { position: absolute; inset: var(--orb-region-top, 94px) 0 0; z-index: 0; }
/* Preserve finger tracking across blank paper and text without a browser pan gesture. */
.hero-touch-surface, .hero > .composition, .hero .colophon { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.orb-stage { position: absolute; inset: var(--orb-region-top, 94px) 0 0; z-index: 2; overflow: hidden; pointer-events: none; }
.orb-anchor { position: absolute; z-index: 2; pointer-events: none; visibility: hidden; left: 50%; top: 45.5%; width: clamp(280px, 22vw, 360px); aspect-ratio: 1; transform: translate(-50%, -50%); }
.hero[data-orb-visible="true"] .orb-anchor { visibility: visible; }
.orb { width: 100%; height: 100%; overflow: hidden; border-radius: 50%; background: #000; will-change: transform; }
/* A stationary viewport-sized text layer is revealed only inside the moving disc. */
.orb-reveal { position: absolute; top: 0; left: 0; width: 100vw; height: 100vh; height: 100svh; will-change: transform; }
.composition { position: absolute; z-index: 1; top: 48.5%; left: 50%; width: max-content; max-width: 92%; transform: translate(-50%, -50%); }
.title-perspective { perspective: 1000px; }
h1, .reveal-title { margin: 0; white-space: nowrap; font-size: clamp(72px, 9vw, 150px); font-weight: 900; line-height: 1.12; letter-spacing: -.075em; transform-style: preserve-3d; will-change: transform; }
h1 span, .reveal-title span { display: inline-block; font-family: 'Arial Black', Arial, Helvetica, sans-serif; }
.hello { transform: translateZ(5px); }
.intro { transform: translateZ(15px); }
h1 em, .reveal-title em { display: inline-block; margin-left: .06em; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -.065em; transform: translateZ(30px); }
.hero h1 em { font-family: 'Arial Black', Arial, Helvetica, sans-serif; font-weight: 900; font-style: normal; letter-spacing: inherit; }
.title-perspective { color: #000; }
.reveal-composition .title-perspective { color: #fff; }
.reveal-greeting { transform: translateZ(5px); font-size: .78em; letter-spacing: -.08em; }
.subtitle { margin-top: 26px; margin-left: 49%; display: flex; gap: 17px; align-items: flex-start; will-change: transform; }
.subtitle-rule { display: block; width: 1px; height: 47px; margin-top: 3px; background: #bcbcbc; flex: 0 0 auto; }
.subtitle p { margin: 0; color: #777; font-weight: 400; line-height: 1.55; white-space: nowrap; }
.chinese { font-size: clamp(18px, 1.3vw, 24px); letter-spacing: .04em; }
.subtitle .english { margin-top: 4px; font-size: clamp(14px, 1.1vw, 18px); letter-spacing: -.015em; }
.colophon { bottom: 34px; z-index: 3; color: #777; align-items: flex-end; }
.hero .colophon { bottom: calc(34px + env(safe-area-inset-bottom)); }
.interaction-note { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.crosshair { color: #111; font: 22px Arial, sans-serif; }
.issue { display: flex; align-items: center; gap: 22px; }
.footer-arrow { color: #111; font: 24px Arial, sans-serif; }
.touch-gesture-hint { position: absolute; right: 0; bottom: calc(100% + 14px); color: var(--ink); font: 12px/1.6 Arial, 'Microsoft YaHei', sans-serif; letter-spacing: .08em; white-space: nowrap; pointer-events: none; animation: hero-hint-blink 750ms ease-in-out 4, hero-hint-hide 0s linear 3s forwards; }
@keyframes hero-hint-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes hero-hint-hide { to { opacity: 0; visibility: hidden; } }
@media (min-width: 1700px) { .composition { top: 48%; } }
@media (max-width: 800px) {
  .masthead { top: 26px; } .colophon { bottom: 25px; }
  .hero .masthead { top: calc(26px + env(safe-area-inset-top)); } .hero .colophon { bottom: calc(25px + env(safe-area-inset-bottom)); }
  .composition { max-width: 94%; top: 48%; }
  h1, .reveal-title { font-size: 9.8vw; }
  .orb-anchor { width: clamp(180px, 38vw, 280px); top: 42%; }
  .subtitle { margin-left: 29%; margin-top: 30px; gap: 12px; }
  .chinese { font-size: 16px; } .subtitle .english { font-size: 12px; }
  .colophon { font-size: 8px; letter-spacing: .5px; }
  .interaction-note { display: none; }
}
@media (max-width: 640px) {
  .masthead { grid-template-columns: 1fr 1fr; row-gap: 12px; }
  .primary-nav { grid-column: 1 / -1; grid-row: 2; }
  .account-controls { grid-column: 2; grid-row: 1; }
  .nav-list { gap: clamp(20px, 6vw, 38px); }
  .nav-link { font-size: 12px; padding-block: 10px; }
  .hero .nav-link { min-height: 44px; padding-block: 13px; }
  .hero .login-button { min-height: 44px; }
  .hero .avatar-button { width: 44px; height: 44px; }
  .wordmark { font-size: 27px; }
}
@media (max-width: 400px) { .subtitle { margin-left: 19%; } }
@media (max-height: 500px) { .masthead { top: 16px; } .colophon { bottom: 16px; } .orb-anchor { width: 180px; } .subtitle { margin-top: 15px; } }
@media (max-height: 500px) { .hero .masthead { top: calc(16px + env(safe-area-inset-top)); } .hero .colophon { bottom: calc(16px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { h1, .reveal-title, .subtitle { will-change: auto; } .nav-link::after { transition: none; } }
