:root {
  color-scheme: light;
  --ink: #17251f;
  --cream: #f6f2e8;
  --lime: #d7f25a;
  --coral: #ff796c;
  --line: rgba(23, 37, 31, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Hina Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
}
button, a { color: inherit; }

.hero { min-height: 100vh; overflow: hidden; }
.nav {
  height: 88px;
  padding: 0 clamp(24px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 14px; font-weight: 800; letter-spacing: .04em; }
.brand-mark { width: 24px; height: 24px; border-radius: 50% 50% 12% 50%; background: var(--coral); transform: rotate(45deg); }
.nav-link { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-underline-offset: 5px; }

.stage {
  width: min(1440px, 100%);
  min-height: calc(100vh - 88px);
  margin: 0 auto;
  padding: clamp(52px, 7vw, 108px) clamp(24px, 6vw, 92px);
  display: grid;
  grid-template-columns: minmax(310px, .82fr) minmax(420px, 1.18fr);
  align-items: center;
  gap: clamp(30px, 5vw, 88px);
}
.eyebrow { margin: 0 0 24px; color: var(--coral); font-size: clamp(14px, 1.4vw, 18px); font-weight: 900; letter-spacing: .18em; }
h1 { margin: 0; font-size: clamp(64px, 7vw, 108px); line-height: 1; letter-spacing: -.055em; font-weight: 800; }
.animation-meta { margin-top: 32px; padding: 22px 0 0; border-top: 1px solid var(--line); }
.motion-type { margin: 9px 0 0; font-size: clamp(14px, 1.15vw, 17px); font-weight: 700; }
.play-note { margin: 12px 0 0; font-size: 13px; line-height: 1.7; opacity: .72; }
.art-wrap {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 720px;
  background: transparent;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
#rive-canvas { position: absolute; z-index: 2; inset: 4%; width: 92%; height: 92%; cursor: pointer; touch-action: pan-y; }
.orbit { display: none; }
.orbit-one { inset: -5%; }
.orbit-two { inset: -10%; border-style: dashed; animation: spin 24s linear infinite; }
.loading { position: absolute; z-index: 3; inset: 0; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; font-size: 11px; letter-spacing: .12em; }
.loading.is-hidden { opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s; }
.loader { width: 26px; height: 26px; border: 2px solid rgba(23,37,31,.2); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; }
.about {
  min-height: 65vh;
  padding: 100px clamp(24px, 8vw, 120px);
  background: var(--ink);
  color: var(--cream);
  display: grid;
  grid-template-columns: 1fr 3fr;
  align-items: center;
  gap: 40px;
}
.section-number { align-self: start; font-size: 12px; letter-spacing: .15em; }
.about h2 { margin: 0; max-width: 820px; font-size: clamp(38px, 5vw, 76px); line-height: 1.2; letter-spacing: -.05em; }
.about div > p { max-width: 600px; margin: 38px 0 0; color: rgba(246,242,232,.68); font-size: 15px; line-height: 2; }

@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 800px) {
  .nav { height: 72px; }
  .brand { font-size: 12px; }
  .nav-link { display: none; }
  .stage { min-height: auto; grid-template-columns: 1fr; padding-top: 50px; gap: 54px; }
  .copy { text-align: center; }
  .animation-meta { padding-left: 0; border-left: 0; }
  .art-wrap { max-width: 620px; margin-inline: auto; }
  .about { grid-template-columns: 1fr; align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
