@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600&display=swap');

:root {
  --paper: #efeee8;
  --ink: #171714;
  --muted: #6f7069;
  --line: rgba(23, 23, 20, 0.18);
  --acid: #d8ff3e;
  --orange: #ff5a36;
  font-family: 'DM Sans', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  min-width: 320px;
  background: var(--paper);
}

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

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

button {
  color: inherit;
  font: inherit;
}

button:focus-visible,
a:focus-visible,
canvas:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 5px;
}

::selection {
  color: var(--ink);
  background: var(--acid);
}

.site-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100vh;
  height: 100svh;
  padding: 26px 38px 22px;
  overflow: hidden;
}

.grain {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.topbar,
.footer {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.topbar {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 11px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--acid);
  background: var(--ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  transition: transform 300ms ease;
}

.brand:hover .brand-mark {
  transform: rotate(-8deg);
}

.brand-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-name sup {
  position: relative;
  top: -0.2em;
  margin-left: 2px;
  font-size: 7px;
}

.availability {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.status-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6c8f17;
}

.status-dot::after {
  position: absolute;
  inset: -4px;
  border: 1px solid #6c8f17;
  border-radius: inherit;
  content: '';
  animation: status-pulse 2.6s ease-out infinite;
}

.local-time {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 14px;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.local-time time {
  min-width: 58px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero {
  position: relative;
  min-height: 0;
}

.intro {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 0;
  width: 62%;
  transform: translateY(-49%);
  pointer-events: none;
}

.intro > * {
  pointer-events: auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 clamp(18px, 3vh, 34px);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.19em;
}

.eyebrow span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 18px;
  color: var(--paper);
  background: var(--ink);
  font-size: 8px;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  line-height: 0.84;
}

.greeting {
  display: block;
  margin: 0 0 14px 5px;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: clamp(16px, 1.55vw, 24px);
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.4;
}

.display-name {
  display: block;
  width: max-content;
  font-family: 'Arial Narrow', 'DM Sans', sans-serif;
  font-size: clamp(72px, 10.15vw, 172px);
  font-weight: 700;
  letter-spacing: -0.085em;
  white-space: nowrap;
}

.accent-dot {
  color: var(--orange);
}

.intro-copy {
  margin: clamp(24px, 4vh, 42px) 0 0 5px;
  color: #484943;
  font-size: clamp(13px, 1.05vw, 16px);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.9;
}

.disciplines {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 0 5px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.disciplines i {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: currentColor;
}

.actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: clamp(22px, 4vh, 38px) 0 0 5px;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 48px;
  padding: 0 17px 0 20px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 250ms ease, background 250ms ease, transform 250ms ease;
}

.primary-link svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 1.5;
  transition: transform 250ms ease;
}

.primary-link:hover {
  color: var(--ink);
  background: var(--acid);
  transform: translateY(-2px);
}

.primary-link:hover svg {
  transform: translate(2px, -2px);
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  transition: border-color 200ms ease;
}

.copy-button:hover {
  border-color: var(--ink);
}

.copy-button svg {
  width: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.scene {
  position: absolute;
  z-index: 1;
  top: 0;
  right: -1.5%;
  width: 57%;
  height: 100%;
}

.scene::before,
.scene::after {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 53%;
  border: 1px solid rgba(23, 23, 20, 0.09);
  border-radius: 50%;
  content: '';
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.scene::before {
  width: min(38vw, 560px);
  aspect-ratio: 1;
}

.scene::after {
  width: min(29vw, 420px);
  aspect-ratio: 1;
  border-style: dashed;
  animation: orbit 50s linear infinite;
}

#scene-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  opacity: 0;
  transition: opacity 800ms ease;
}

#scene-canvas.is-ready {
  opacity: 1;
}

#scene-canvas:active {
  cursor: grabbing;
}

.scene-meta {
  position: absolute;
  z-index: 2;
  top: 24px;
  right: 4px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.15em;
  pointer-events: none;
}

.scene-meta span:first-child {
  color: var(--ink);
  font-weight: 600;
}

.interaction-hint {
  position: absolute;
  right: 0;
  bottom: 26px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.17em;
  pointer-events: none;
}

.interaction-hint svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
}

.scene-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
}

.scene-fallback[hidden] {
  display: none;
}

.scene-fallback span {
  display: grid;
  place-items: center;
  width: 180px;
  height: 180px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--acid);
  font-size: 46px;
  font-weight: 700;
}

.scene-fallback p {
  color: var(--muted);
  font-size: 11px;
}

.side-note {
  position: absolute;
  right: -9px;
  bottom: 85px;
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
}

.footer {
  padding-top: 19px;
  border-top: 1px solid var(--line);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.15em;
}

.footer p {
  margin: 0;
}

.footer-index {
  display: inline-block;
  margin-right: 8px;
  color: var(--orange);
  font-size: 13px;
}

.footer nav {
  display: flex;
  gap: 28px;
}

.footer nav a {
  position: relative;
  padding: 4px 0;
}

.footer nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--ink);
  content: '';
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 250ms ease;
}

.footer nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer nav span {
  margin-left: 4px;
  color: var(--orange);
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 18px;
}

.beian {
  color: var(--muted);
  letter-spacing: 0.04em;
  transition: color 200ms ease;
}

.beian:hover {
  color: var(--ink);
}

.copyright {
  color: var(--muted);
  white-space: nowrap;
}

.toast {
  position: fixed;
  z-index: 50;
  bottom: 28px;
  left: 50%;
  padding: 13px 20px;
  color: var(--paper);
  background: var(--ink);
  box-shadow: 0 8px 35px rgba(23, 23, 20, 0.18);
  font-size: 12px;
  letter-spacing: 0.05em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 250ms ease, transform 250ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes status-pulse {
  0% { opacity: 0.8; transform: scale(0.5); }
  70%, 100% { opacity: 0; transform: scale(1.5); }
}

@keyframes orbit {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (min-width: 1700px) {
  .site-shell { padding: 34px 52px 28px; }
  .intro { width: 58%; }
  .intro-copy { font-size: 17px; }
}

@media (max-width: 900px) {
  .site-shell { padding: 22px 24px 18px; }
  .availability { display: none; }
  .topbar { grid-template-columns: 1fr 1fr; }
  .intro { width: 68%; }
  .display-name { font-size: clamp(66px, 10.8vw, 100px); }
  .scene { right: -5%; width: 61%; }
  .scene-meta { right: 7%; }
  .side-note { display: none; }
  .footer { grid-template-columns: 1fr auto; }
  .footer nav { display: none; }
}

@media (max-width: 600px) {
  .site-shell { padding: 18px 20px 16px; }
  .topbar { padding-bottom: 16px; }
  .brand-mark { width: 27px; height: 27px; font-size: 15px; }
  .brand-name { font-size: 11px; }
  .local-time { gap: 8px; font-size: 7px; }
  .local-time > span { display: none; }
  .local-time time { font-size: 9px; text-align: right; }
  .intro {
    top: 6.5%;
    width: 100%;
    transform: none;
  }
  .eyebrow { margin-bottom: 15px; font-size: 8px; }
  .eyebrow span { width: 22px; height: 16px; }
  .greeting { margin-bottom: 9px; margin-left: 2px; font-size: 14px; }
  .display-name { font-size: clamp(57px, 17.2vw, 96px); letter-spacing: -0.08em; }
  .intro-copy { margin: 19px 0 0 2px; font-size: 11px; line-height: 1.75; }
  .disciplines { margin: 10px 0 0 2px; font-size: 7px; }
  .actions { gap: 16px; margin: 20px 0 0 2px; }
  .primary-link { min-height: 42px; gap: 20px; padding: 0 13px 0 15px; font-size: 10px; }
  .primary-link svg { width: 14px; }
  .copy-button { font-size: 9px; }
  .scene { top: 39%; right: -12%; width: 124%; height: 61%; }
  .scene::before { width: 75vw; }
  .scene::after { width: 56vw; }
  .scene-meta { top: 8%; right: 13%; font-size: 6px; }
  .interaction-hint { bottom: 5%; font-size: 6px; }
  .interaction-hint svg { width: 12px; }
  .footer { padding-top: 14px; font-size: 7px; }
  .footer-meta { flex-direction: column-reverse; align-items: flex-end; gap: 4px; }
  .beian { font-size: 7px; }
  .footer-index { font-size: 10px; }
  .toast { bottom: 22px; width: max-content; max-width: calc(100vw - 40px); font-size: 11px; }
}

@media (max-width: 370px) {
  .site-shell { padding-right: 16px; padding-left: 16px; }
  .display-name { font-size: 56px; }
  .copy-button span { display: none; }
  .copy-button svg { width: 17px; }
  .scene { top: 41%; }
}

@media (max-height: 720px) and (min-width: 601px) {
  .site-shell { padding-top: 18px; padding-bottom: 15px; }
  .topbar { padding-bottom: 15px; }
  .eyebrow { margin-bottom: 16px; }
  .greeting { margin-bottom: 10px; }
  .display-name { font-size: clamp(64px, 9vw, 118px); }
  .intro-copy { margin-top: 22px; line-height: 1.65; }
  .actions { margin-top: 20px; }
  .footer { padding-top: 13px; }
}

@media (max-height: 700px) and (max-width: 600px) {
  .intro { top: 4%; }
  .eyebrow { margin-bottom: 10px; }
  .greeting { margin-bottom: 6px; font-size: 12px; }
  .display-name { font-size: clamp(50px, 15vw, 72px); }
  .intro-copy { margin-top: 13px; line-height: 1.55; }
  .disciplines { display: none; }
  .actions { margin-top: 13px; }
  .primary-link { min-height: 38px; }
  .scene { top: 40%; height: 60%; }
  .interaction-hint { bottom: 2%; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .site-shell { padding: 12px 20px; }
  .topbar { padding-bottom: 10px; }
  .intro { top: 50%; width: 58%; transform: translateY(-50%); }
  .eyebrow, .intro-copy, .disciplines { display: none; }
  .greeting { font-size: 12px; }
  .display-name { font-size: clamp(52px, 9vw, 90px); }
  .actions { margin-top: 20px; }
  .scene { top: 0; right: 0; width: 50%; height: 100%; }
  .footer { padding-top: 10px; }
}

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