:root {
  color-scheme: light dark;
  --background: #d1cdff;
  --background-deep: #bdb5f5;
  --brand: #8b7fd4;
  --accent: #544891;
  --ink: #15131b;
  --muted: #403c4c;
  --surface: rgb(255 255 255 / 58%);
  --surface-strong: rgb(255 255 255 / 78%);
  --hairline: rgb(21 19 27 / 12%);
  --shadow: rgb(45 35 85 / 22%);
  --focus: #32276d;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  min-width: 20rem;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 14%, rgb(255 255 255 / 62%), transparent 28rem),
    radial-gradient(circle at 12% 92%, rgb(139 127 212 / 34%), transparent 32rem),
    linear-gradient(145deg, var(--background), #ddd9ff 52%, var(--background-deep));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  border-radius: .8rem;
  color: var(--ink);
  background: var(--surface-strong);
  box-shadow: 0 .25rem 1rem var(--shadow);
  font-weight: 650;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  display: grid;
  width: min(100% - 2rem, 76rem);
  min-height: 100svh;
  margin-inline: auto;
  grid-template-rows: auto 1fr auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: clamp(1.25rem, 3vw, 2.25rem);
  gap: 1rem;
}

.wordmark {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1;
  text-decoration: none;
}

.wordmark span {
  color: var(--accent);
}

.language-switcher {
  display: flex;
  padding: .22rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 45%);
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
}

.language-switcher button {
  display: grid;
  width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .035em;
  cursor: pointer;
  place-items: center;
}

.language-switcher button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--surface-strong);
  box-shadow: 0 .15rem .55rem rgb(45 35 85 / 16%);
}

.hero {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.04fr) minmax(18rem, .96fr);
  gap: clamp(2rem, 7vw, 7rem);
  padding-block: clamp(2.5rem, 8vh, 6.5rem);
}

.hero-copy {
  max-width: 42rem;
}

.eyebrow {
  margin: 0 0 1.3rem;
  color: var(--accent);
  font-size: clamp(.82rem, 1.5vw, .95rem);
  font-weight: 720;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6.8vw, 6rem);
  font-weight: 650;
  letter-spacing: -.055em;
  line-height: .96;
  text-wrap: balance;
}

.intro {
  max-width: 38rem;
  margin: clamp(1.5rem, 3vw, 2rem) 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.6vw, 1.22rem);
  letter-spacing: -.01em;
  line-height: 1.6;
  text-wrap: pretty;
}

.arrival {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  margin-top: 1.75rem;
  padding: .62rem 1rem .62rem .78rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--surface-strong);
  box-shadow: 0 .5rem 1.6rem rgb(55 42 112 / 10%);
  font-size: .95rem;
  font-weight: 700;
  gap: .65rem;
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
}

.arrival-dot {
  width: .68rem;
  height: .68rem;
  border: .18rem solid rgb(255 255 255 / 72%);
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 .2rem rgb(103 91 168 / 14%);
}

.audience {
  max-width: 35rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}

html[lang="ja"] .eyebrow {
  letter-spacing: .035em;
  text-transform: none;
}

html[lang="ja"] h1 {
  letter-spacing: -.035em;
  line-height: 1.1;
}

.hero-art {
  position: relative;
  display: grid;
  width: min(100%, 32rem);
  margin: 0 auto;
  place-items: center;
  isolation: isolate;
}

.hero-art::before {
  position: absolute;
  z-index: -2;
  width: 92%;
  aspect-ratio: 1;
  border: 1px solid rgb(255 255 255 / 48%);
  border-radius: 42% 58% 55% 45% / 46% 43% 57% 54%;
  background: rgb(255 255 255 / 22%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 56%);
  content: "";
  transform: rotate(8deg);
}

.hero-media {
  position: relative;
  overflow: hidden;
  width: min(76vw, 24rem);
  aspect-ratio: 1;
  border: .55rem solid rgb(255 255 255 / 52%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2.2rem 5rem var(--shadow), inset 0 0 0 1px rgb(21 19 27 / 10%);
}

.hero-poster,
#welcomeVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster {
  padding: 23%;
  background: #fff;
  object-fit: contain;
}

#welcomeVideo {
  opacity: 0;
  transition: opacity .35s ease;
}

#welcomeVideo.is-ready {
  opacity: 1;
}

.quote-orbit {
  position: absolute;
  z-index: -1;
  color: rgb(139 127 212 / 42%);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 700;
  line-height: 1;
  user-select: none;
}

.quote-orbit-left {
  top: -4%;
  left: 1%;
  transform: rotate(-12deg);
}

.quote-orbit-right {
  right: 0;
  bottom: 2%;
  transform: rotate(10deg);
}

.motion-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: 1.25rem;
  padding: .5rem .85rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 42%);
  font-size: .78rem;
  font-weight: 650;
  cursor: pointer;
  gap: .5rem;
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
}

.motion-icon {
  width: .65rem;
  height: .65rem;
  border-left: .18rem solid currentColor;
  border-right: .18rem solid currentColor;
}

.motion-toggle[data-playing="false"] .motion-icon {
  width: 0;
  height: 0;
  border: 0;
  border-top: .38rem solid transparent;
  border-bottom: .38rem solid transparent;
  border-left: .62rem solid currentColor;
}

.site-footer {
  padding-block: 1.4rem 2rem;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.5;
}

.site-footer p {
  margin: 0;
}

.visually-hidden {
  position: absolute !important;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

:focus-visible {
  outline: .2rem solid var(--focus);
  outline-offset: .2rem;
}

@media (max-width: 48rem) {
  .page-shell {
    width: min(100% - 1.5rem, 38rem);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 3.25rem;
    padding-block: 2.5rem 4rem;
  }

  .hero-copy {
    text-align: center;
  }

  .eyebrow,
  h1,
  .intro,
  .audience {
    margin-inline: auto;
  }

  h1 {
    max-width: 14ch;
    font-size: clamp(2.75rem, 13.5vw, 4.7rem);
  }

  .arrival {
    text-align: left;
  }

  .hero-art {
    order: -1;
    width: min(92%, 27rem);
  }

  .hero-media {
    width: min(70vw, 19rem);
  }

  .site-footer {
    text-align: center;
  }
}

@media (max-width: 25rem) {
  .site-header {
    align-items: flex-start;
  }

  .language-switcher button {
    width: 2.55rem;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #171624;
    --background-deep: #211d36;
    --brand: #8b7fd4;
    --accent: #c5bdf9;
    --ink: #f7f5ff;
    --muted: #cbc7db;
    --surface: rgb(255 255 255 / 10%);
    --surface-strong: rgb(255 255 255 / 15%);
    --hairline: rgb(255 255 255 / 15%);
    --shadow: rgb(0 0 0 / 35%);
    --focus: #ded8ff;
  }

  body {
    background:
      radial-gradient(circle at 82% 12%, rgb(139 127 212 / 23%), transparent 30rem),
      radial-gradient(circle at 8% 90%, rgb(96 82 171 / 19%), transparent 32rem),
      linear-gradient(145deg, var(--background), var(--background-deep));
  }

  .hero-poster,
  .hero-media {
    background: #f7f5ff;
  }

  .wordmark span,
  .eyebrow {
    color: var(--accent);
  }
}

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